@flarehr/superhero-import-app 0.1.849 → 0.1.853
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.
- package/dist/superhero-import-app.js +22 -47
- package/package.json +12 -13
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
(function(){"use strict";var vr,B,us,kn,ds,ps,fs,ms,uo,po,fo,hs,yr={},gs=[],Qd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xr=Array.isArray;function Ft(e,t){for(var n in t)e[n]=t[n];return e}function mo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?vr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return br(e,a,r,i,null)}function br(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++us,__i:-1,__u:0};return i==null&&B.vnode!=null&&B.vnode(o),o}function ho(){return{current:null}}function J(e){return e.children}function gt(e,t){this.props=e,this.context=t}function Ln(e,t){if(t==null)return e.__?Ln(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"?Ln(e):null}function ws(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 ws(e)}}function go(e){(!e.__d&&(e.__d=!0)&&kn.push(e)&&!Xr.__r++||ds!=B.debounceRendering)&&((ds=B.debounceRendering)||ps)(Xr)}function Xr(){for(var e,t,n,r,i,o,a,s=1;kn.length;)kn.length>s&&kn.sort(fs),e=kn.shift(),s=kn.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],a=[],t.__P&&((n=Ft({},r)).__v=r.__v+1,B.vnode&&B.vnode(n),wo(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Ln(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,_s(o,n,a),n.__e!=i&&ws(n)));Xr.__r=0}function vs(e,t,n,r,i,o,a,s,l,c,d){var u,m,f,h,v,g,x=r&&r.__k||gs,A=t.length;for(l=Kd(n,t,x,l,A),u=0;u<A;u++)(f=n.__k[u])!=null&&(m=f.__i==-1?yr:x[f.__i]||yr,f.__i=u,g=wo(e,f,m,i,o,a,s,l,c,d),h=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&vo(m.ref,null,f),d.push(f.ref,f.__c||h,f)),v==null&&h!=null&&(v=h),4&f.__u||m.__k===f.__k?l=ys(f,l,e):typeof f.type=="function"&&g!==void 0?l=g:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=v,l}function Kd(e,t,n,r,i){var o,a,s,l,c,d=n.length,u=d,m=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+m,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?br(null,a,null,null,null):xr(a)?br(J,{children:a},null,null,null):a.constructor==null&&a.__b>0?br(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=Zd(a,n,l,u))!=-1&&(u--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>d?m--:i<d&&m++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?m--:c==l+1?m++:(c>l?m--:m++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Ln(s)),ks(s,s));return r}function ys(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=ys(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ln(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function qt(e,t){return t=t||[],e==null||typeof e=="boolean"||(xr(e)?e.some(function(n){qt(n,t)}):t.push(e)),t}function Zd(e,t,n,r){var i,o,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o++}}return-1}function xs(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Qd.test(t)?n:n+"px"}function Yr(e,t,n,r,i){var o,a;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||xs(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||xs(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(ms,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=uo,e.addEventListener(t,o?fo:po,o)):e.removeEventListener(t,o?fo:po,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 bs(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=uo++;else if(t.t<n.u)return;return n(B.event?B.event(t):t)}}}function wo(e,t,n,r,i,o,a,s,l,c){var d,u,m,f,h,v,g,x,A,S,R,M,N,L,ue,Se,de,we=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(d=B.__b)&&d(t);e:if(typeof we=="function")try{if(x=t.props,A="prototype"in we&&we.prototype.render,S=(d=we.contextType)&&r[d.__c],R=d?S?S.props.value:d.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:(A?t.__c=u=new we(x,R):(t.__c=u=new gt(x,R),u.constructor=we,u.render=Xd),S&&S.sub(u),u.props=x,u.state||(u.state={}),u.context=R,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),A&&u.__s==null&&(u.__s=u.state),A&&we.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ft({},u.__s)),Ft(u.__s,we.getDerivedStateFromProps(x,u.__s))),f=u.props,h=u.state,u.__v=t,m)A&&we.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),A&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(A&&we.getDerivedStateFromProps==null&&x!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(x,R),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(x,u.__s,R)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=x,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ke){Ke&&(Ke.__=t)}),M=0;M<u._sb.length;M++)u.__h.push(u._sb[M]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(x,u.__s,R),A&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,v)})}if(u.context=R,u.props=x,u.__P=e,u.__e=!1,N=B.__r,L=0,A){for(u.state=u.__s,u.__d=!1,N&&N(t),d=u.render(u.props,u.state,u.context),ue=0;ue<u._sb.length;ue++)u.__h.push(u._sb[ue]);u._sb=[]}else do u.__d=!1,N&&N(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++L<25);u.state=u.__s,u.getChildContext!=null&&(r=Ft(Ft({},r),u.getChildContext())),A&&!m&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,h)),Se=d,d!=null&&d.type===J&&d.key==null&&(Se=As(d.props.children)),s=vs(e,xr(Se)?Se:[Se],t,n,r,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),g&&(u.__E=u.__=null)}catch(Ke){if(t.__v=null,l||o!=null)if(Ke.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(de=o.length;de--;)mo(o[de]);else t.__e=n.__e,t.__k=n.__k;B.__e(Ke,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Jd(n.__e,t,n,r,i,o,a,l,c);return(d=B.diffed)&&d(t),128&t.__u?void 0:s}function _s(e,t,n){for(var r=0;r<n.length;r++)vo(n[r],n[++r],n[++r]);B.__c&&B.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){B.__e(o,i.__v)}})}function As(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:xr(e)?e.map(As):Ft({},e)}function Jd(e,t,n,r,i,o,a,s,l){var c,d,u,m,f,h,v,g=n.props,x=t.props,A=t.type;if(A=="svg"?i="http://www.w3.org/2000/svg":A=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!A&&(A?f.localName==A:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(A==null)return document.createTextNode(x);e=document.createElementNS(i,A,x.is&&x),s&&(B.__m&&B.__m(t,o),s=!1),o=null}if(A==null)g===x||s&&e.data==x||(e.data=x);else{if(o=o&&vr.call(e.childNodes),g=n.props||yr,!s&&o!=null)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)if(f=g[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;Yr(e,c,null,f,i)}}for(c in x)f=x[c],c=="children"?m=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?v=f:s&&typeof f!="function"||g[c]===f||Yr(e,c,f,g[c],i);if(d)s||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),vs(t.type=="template"?e.content:e,xr(m)?m:[m],t,n,r,A=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&Ln(n,0),s,l),o!=null)for(c=o.length;c--;)mo(o[c]);s||(c="value",A=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[c]||A=="progress"&&!h||A=="option"&&h!=g[c])&&Yr(e,c,h,g[c],i),c="checked",v!=null&&v!=e[c]&&Yr(e,c,v,g[c],i))}return e}function vo(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){B.__e(i,n)}}function ks(e,t,n){var r,i;if(B.unmount&&B.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||vo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){B.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ks(r[i],t,n||typeof e.type!="function");n||mo(e.__e),e.__c=e.__=e.__e=void 0}function Xd(e,t,n){return this.constructor(e,n)}function sn(e,t,n){var r,i,o,a;t==document&&(t=document.documentElement),B.__&&B.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],a=[],wo(t,e=(!r&&n||t).__k=p(J,null,[e]),i||yr,yr,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?vr.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),_s(o,e,a)}function yo(e,t){sn(e,t,yo)}function xo(e,t,n){var r,i,o,a,s=Ft({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!=null?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?vr.call(arguments,2):n),br(e.type,s,r||e.key,i||e.ref,null)}function tt(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(a){a.__e=!0,go(a)})},this.sub=function(o){r.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),a&&a.call(o)}}),n.children}return t.__c="__cC"+hs++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}vr=gs.slice,B={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},us=0,gt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ft({},this.state),typeof e=="function"&&(e=e(Ft({},n),this.props)),e&&Ft(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),go(this))},gt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),go(this))},gt.prototype.render=J,kn=[],ps=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fs=function(e,t){return e.__v.__b-t.__v.__b},Xr.__r=0,ms=/(PointerCapture)$|Capture$/i,uo=0,po=bs(!1),fo=bs(!0),hs=0;var Wt,X,bo,Cs,Un=0,Ss=[],pe=B,Es=pe.__b,Is=pe.__r,Ds=pe.diffed,Ts=pe.__c,Rs=pe.unmount,Fs=pe.__;function Cn(e,t){pe.__h&&pe.__h(X,e,Un||t),Un=0;var n=X.__H||(X.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ve(e){return Un=1,Vn(js,e)}function Vn(e,t,n){var r=Cn(Wt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):js(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=X,!X.__f)){var i=function(s,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(m){return!!m.__c});if(d.every(function(m){return!m.__N}))return!o||o.call(this,s,l,c);var u=r.__c.props!==s;return d.forEach(function(m){if(m.__N){var f=m.__[0];m.__=m.__N,m.__N=void 0,f!==m.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};X.__f=!0;var o=X.shouldComponentUpdate,a=X.componentWillUpdate;X.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},X.shouldComponentUpdate=i}return r.__N||r.__}function fe(e,t){var n=Cn(Wt++,3);!pe.__s&&ko(n.__H,t)&&(n.__=e,n.u=t,X.__H.__h.push(n))}function Sn(e,t){var n=Cn(Wt++,4);!pe.__s&&ko(n.__H,t)&&(n.__=e,n.u=t,X.__h.push(n))}function U(e){return Un=5,se(function(){return{current:e}},[])}function ei(e,t,n){Un=6,Sn(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function se(e,t){var n=Cn(Wt++,7);return ko(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ne(e,t){return Un=8,se(function(){return e},t)}function Pe(e){var t=X.context[e.__c],n=Cn(Wt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(X)),t.props.value):e.__}function _o(e,t){pe.useDebugValue&&pe.useDebugValue(t?t(e):e)}function Yd(e){var t=Cn(Wt++,10),n=ve();return t.__=e,X.componentDidCatch||(X.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ln(){var e=Cn(Wt++,11);if(!e.__){for(var t=X.__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 ep(){for(var e;e=Ss.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ti),e.__H.__h.forEach(Ao),e.__H.__h=[]}catch(t){e.__H.__h=[],pe.__e(t,e.__v)}}pe.__b=function(e){X=null,Es&&Es(e)},pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Fs&&Fs(e,t)},pe.__r=function(e){Is&&Is(e),Wt=0;var t=(X=e.__c).__H;t&&(bo===X?(t.__h=[],X.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ti),t.__h.forEach(Ao),t.__h=[],Wt=0)),bo=X},pe.diffed=function(e){Ds&&Ds(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ss.push(t)!==1&&Cs===pe.requestAnimationFrame||((Cs=pe.requestAnimationFrame)||tp)(ep)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),bo=X=null},pe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ti),n.__h=n.__h.filter(function(r){return!r.__||Ao(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],pe.__e(r,n.__v)}}),Ts&&Ts(e,t)},pe.unmount=function(e){Rs&&Rs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ti(r)}catch(i){t=i}}),n.__H=void 0,t&&pe.__e(t,n.__v))};var Ms=typeof requestAnimationFrame=="function";function tp(e){var t,n=function(){clearTimeout(r),Ms&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ms&&(t=requestAnimationFrame(n))}function ti(e){var t=X,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),X=t}function Ao(e){var t=X;e.__c=e.__(),X=t}function ko(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function js(e,t){return typeof t=="function"?t(e):t}function $s(e,t){for(var n in t)e[n]=t[n];return e}function Co(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 ni(e,t){var n=t(),r=ve({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Sn(function(){i.__=n,i.u=t,So(i)&&o({t:i})},[e,n,t]),fe(function(){return So(i)&&o({t:i}),e(function(){So(i)&&o({t:i})})},[e]),n}function So(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 Eo(e){e()}function Io(e){return e}function Do(){return[!1,Eo]}var To=Sn;function ri(e,t){this.props=e,this.context=t}function Ns(e,t){function n(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Co(this.props,i)}function r(i){return this.shouldComponentUpdate=n,p(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ri.prototype=new gt).isPureReactComponent=!0,ri.prototype.shouldComponentUpdate=function(e,t){return Co(this.props,e)||Co(this.state,t)};var Os=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Os&&Os(e)};var np=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ii(e){function t(n){var r=$s({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=np,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ps=function(e,t){return e==null?null:qt(qt(e).map(t))},Bs={map:Ps,forEach:Ps,count:function(e){return e?qt(e).length:0},only:function(e){var t=qt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:qt},rp=B.__e;B.__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)}rp(e,t,n,r)};var Hs=B.unmount;function zs(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=$s({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return zs(r,t,n)})),e}function Ls(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ls(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 _r(){this.__u=0,this.o=null,this.__b=null}function Us(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vs(e){var t,n,r;function i(o){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return p(n,o)}return i.displayName="Lazy",i.__f=!0,i}function qn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Hs&&Hs(e)},(_r.prototype=new gt).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Us(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ls(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},_r.prototype.componentWillUnmount=function(){this.o=[]},_r.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]=zs(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&p(J,null,e.fallback);return i&&(i.__u&=-33),[p(J,null,t.__a?null:e.children),i]};var qs=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 ip(e){return this.getChildContext=function(){return e.context},e.children}function op(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){sn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}sn(p(ip,{context:t.context},e.__v),t.v)}function Ro(e,t){var n=p(op,{__v:e,h:t});return n.containerInfo=t,n}(qn.prototype=new gt).__a=function(e){var t=this,n=Us(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),qs(t,e,r)):i()};n?n(o):o()}},qn.prototype.render=function(e){this.i=null,this.l=new Map;var t=qt(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},qn.prototype.componentDidUpdate=qn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){qs(e,n,t)})};var Ws=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ap=/^(?: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]/,sp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lp=/[A-Z0-9]/g,cp=typeof document<"u",up=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gs(e,t,n){return t.__k==null&&(t.textContent=""),sn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qs(e,t,n){return yo(e,t),typeof n=="function"&&n(),e?e.__c:null}gt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(gt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ks=B.event;function dp(){}function pp(){return this.cancelBubble}function fp(){return this.defaultPrevented}B.event=function(e){return Ks&&(e=Ks(e)),e.persist=dp,e.isPropagationStopped=pp,e.isDefaultPrevented=fp,e.nativeEvent=e};var Fo,mp={enumerable:!1,configurable:!0,get:function(){return this.class}},Zs=B.vnode;B.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||cp&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||up(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":sp.test(a)&&(a=l):l=a="oninput":o&&ap.test(a)?a=a.replace(lp,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",mp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ws,Zs&&Zs(e)};var Js=B.__r;B.__r=function(e){Js&&Js(e),Fo=e.__c};var Xs=B.diffed;B.diffed=function(e){Xs&&Xs(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),Fo=null};var Ys={ReactCurrentDispatcher:{current:{readContext:function(e){return Fo.__n[e.__c].props.value},useCallback:ne,useContext:Pe,useDebugValue:_o,useDeferredValue:Io,useEffect:fe,useId:ln,useImperativeHandle:ei,useInsertionEffect:To,useLayoutEffect:Sn,useMemo:se,useReducer:Vn,useRef:U,useState:ve,useSyncExternalStore:ni,useTransition:Do}}},hp="18.3.1";function el(e){return p.bind(null,e)}function Wn(e){return!!e&&e.$$typeof===Ws}function tl(e){return Wn(e)&&e.type===J}function nl(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mo(e){return Wn(e)?xo.apply(null,arguments):e}function rl(e){return!!e.__k&&(sn(null,e),!0)}function il(e){return e&&(e.base||e.nodeType===1&&e)||null}var ol=function(e,t){return e(t)},al=function(e,t){return e(t)},sl=J,ll=Wn,$={useState:ve,useId:ln,useReducer:Vn,useEffect:fe,useLayoutEffect:Sn,useInsertionEffect:To,useTransition:Do,useDeferredValue:Io,useSyncExternalStore:ni,startTransition:Eo,useRef:U,useImperativeHandle:ei,useMemo:se,useCallback:ne,useContext:Pe,useDebugValue:_o,version:"18.3.1",Children:Bs,render:Gs,hydrate:Qs,unmountComponentAtNode:rl,createPortal:Ro,createElement:p,createContext:tt,createFactory:el,cloneElement:Mo,createRef:ho,Fragment:J,isValidElement:Wn,isElement:ll,isFragment:tl,isMemo:nl,findDOMNode:il,Component:gt,PureComponent:ri,memo:Ns,forwardRef:ii,flushSync:al,unstable_batchedUpdates:ol,StrictMode:sl,Suspense:_r,SuspenseList:qn,lazy:Vs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ys};const jo=Object.freeze(Object.defineProperty({__proto__:null,Children:Bs,Component:gt,Fragment:J,PureComponent:ri,StrictMode:sl,Suspense:_r,SuspenseList:qn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ys,cloneElement:Mo,createContext:tt,createElement:p,createFactory:el,createPortal:Ro,createRef:ho,default:$,findDOMNode:il,flushSync:al,forwardRef:ii,hydrate:Qs,isElement:ll,isFragment:tl,isMemo:nl,isValidElement:Wn,lazy:Vs,memo:Ns,render:Gs,startTransition:Eo,unmountComponentAtNode:rl,unstable_batchedUpdates:ol,useCallback:ne,useContext:Pe,useDebugValue:_o,useDeferredValue:Io,useEffect:fe,useErrorBoundary:Yd,useId:ln,useImperativeHandle:ei,useInsertionEffect:To,useLayoutEffect:Sn,useMemo:se,useReducer:Vn,useRef:U,useState:ve,useSyncExternalStore:ni,useTransition:Do,version:hp},Symbol.toStringTag,{value:"Module"}));function wt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function gp(e){return e!=null&&typeof e.GetEnumerator=="function"}function wp(e){return e!=null&&typeof e.CompareTo=="function"}function vp(e){return e!=null&&typeof e.Equals=="function"}function cl(e){return e!=null&&typeof e.GetHashCode=="function"}function $o(e){return e!=null&&typeof e.Dispose=="function"}function ie(e){$o(e)&&e.Dispose()}function ct(){return null}function oi(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 yp{constructor(t){this.iter=t,this.current=ct()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function ye(e){return gp(e)?e.GetEnumerator():new yp(e[Symbol.iterator]())}function ai(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 xp{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 Q(e,t){return e.toString(10).padStart(t,"0")}function bp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function ul(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function _p(e,t){return e=e,e.toString(t)}function Mt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Gt{static id(t){return Gt.idMap.has(t)||Gt.idMap.set(t,++Gt.count),Gt.idMap.get(t)}}Gt.idMap=new WeakMap,Gt.count=0;function si(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function vt(e){return e*2654435761|0}function dl(e){return si(e.toString(32))}function Ar(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 Ap(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return vt(e);case"bigint":return dl(e);case"string":return si(e);default:return vt(Gt.id(e))}}function kp(e){return cl(e)?e.GetHashCode():Ap(e)}function Cp(e){return e.getTime()}function Sp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Qt(e[r]);return Ar(n)}function Qt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return vt(e);case"bigint":return dl(e);case"string":return si(e);default:{if(cl(e))return e.GetHashCode();if(wt(e))return Sp(e);if(e instanceof Date)return Cp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Qt(r));return Ar(n)}else return vt(Gt.id(e))}}}function No(e){return kp(e)}function Oo(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 pl(e,t){return Oo(e,t,Ae)}function Ep(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]||!Ae(e[n[i]],t[r[i]]))return!1;return!0}function Ae(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:vp(e)?e.Equals(t):wt(e)?wt(t)&&pl(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Po(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Ep(e,t)}function Po(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ul(e),r=t.getTime()+ul(t)),n===r?0:n<r?-1:1}function li(e,t){return e===t?0:e<t?-1:1}function Ip(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 fl(e,t){return Ip(e,t,ut)}function Dp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const a=n[i];if(a!==r[i])return a<r[i]?-1:1;if(o=ut(e[a],t[a]),o!==0)return o}return 0}function ut(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:wp(e)?e.CompareTo(t):wt(e)?wt(t)?fl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Po(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Dp(e,t):-1}function _(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Tp(e){wt(e)?e.splice(0):e.clear()}const ci=new WeakMap;function K(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ci.set(t,e),t}function Be(e){return ci.get(e)??(t=>n=>e(t,n))}function Bo(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return ci.set(t,e),t}function ui(e){return ci.get(e)??(t=>n=>r=>e(t,n,r))}function Rp(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ee(r);else if(t===100){n+="; ...";break}else n+="; "+Ee(r);t++}return n+"]"}function Ee(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 Rp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Ee(o,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Fp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ee(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ee(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 Fp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Qt(n));return t.splice(0,0,vt(this.tag)),Ar(t)}Equals(t){return this===t?!0:oi(this,t)&&this.tag===t.tag?pl(this.fields,t.fields):!1}CompareTo(t){return this===t?0:oi(this,t)?this.tag===t.tag?fl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Mp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function jp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ee(n)).join(`
|
|
3
|
-
`)+" }"}function $p(e){const t=Object.values(e).map(n=>Qt(n));return Ar(t)}function Np(e,t){if(e===t)return!0;if(oi(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ae(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Op(e,t){if(e===t)return 0;if(oi(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ut(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Z{toJSON(){return Mp(this)}toString(){return jp(this)}GetHashCode(){return $p(this)}Equals(t){return Np(this,t)}CompareTo(t){return Op(this,t)}}class dt{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 Pp{constructor(t){this.message=t}}function Bp(e){return e instanceof Pp||e instanceof Error}function Hp(e){return e instanceof Promise}function di(e){return Bp(e)||Hp(e)?e:new Error(String(e))}const Gn=Symbol("numeric");function ml(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Gn])}function zp(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ho(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Gn]().multiply(t)}function pi(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Gn]().toFixed(t)}function fi(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Gn]().toPrecision(t)}function mi(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Gn]().toExponential(t)}function hi(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Gn]().toHex()}class Lp{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class He{constructor(t,n,r,i,o,a,s){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=a,this.enumCases=s}toString(){return oe(this)}GetHashCode(){return hl(this)}Equals(t){return zo(this,t)}}function nt(e){return e.generics!=null?e.generics:[]}function hl(e){const t=si(e.fullname),n=nt(e).map(hl);return Ar([t,...n])}function zo(e,t){return e.fullname===""?t.fullname===""&&Oo(Cr(e),Cr(t),([n,r],[i,o])=>n===i&&zo(r,o)):e.fullname===t.fullname&&Oo(nt(e),nt(t),zo)}function yt(e,t,n,r){return new He(e,t,n,r)}function Ze(e,t,n,r){return new He(e,t,n,void 0,r)}function gi(...e){return new He("",void 0,void 0,void 0,()=>e)}function cn(e,t,n,r){const i=new He(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((a,s)=>new Lp(i,s,o[s],a))});return i}function Qn(e){return new He("Microsoft.FSharp.Core.FSharpOption`1",[e])}function jt(e){return new He("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Up(e){return new He("[]",[e])}const Vp=new He("System.Object"),ke=new He("System.String"),Lo=new He("System.Boolean"),Ie=new He("System.Int32");function Kn(e){if(Array.isArray(e))return e[0];if(e instanceof He){const t=kr(e);if(t!=null)return Kn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function oe(e){const t=kr(e);return t!=null?oe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>oe(n)).join(",")+"]"}function gl(e){return kr(e)!=null}function kr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function wl(e){return e.generics!=null&&e.generics.length>0}function Uo(e){return e.enumCases!=null&&e.enumCases.length>0}function vl(e){return e.generics==null?e:new He(e.fullname,e.generics.map(()=>Vp))}function yl(e){var t;return(t=e.generics)==null?void 0:t[0]}function Zn(e){if(Uo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function qp(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 Jn(e,t){const n=parseInt(t,10);return qp(e,isNaN(n)?t:n)[1]}function xl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Cr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function bl(e){if(Vo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function _l(e){return e instanceof He?e.cases!=null:e instanceof z}function Al(e){return e instanceof He?e.fields!=null:e instanceof Z}function Vo(e){return e.fullname.startsWith("System.Tuple")}function Wp(e,t){const r=xl(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function kl(e){return e.fields==null?[]:e.fields}function Gp(e,t){return e[t[0]]}function _b(e){return e}function Qp(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 Kp(e,t){const n=Cr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],a)=>(r[i]=t[a],r),{})}function Zp(e,t){return e}const Jp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Yp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ef=["January","February","March","April","May","June","July","August","September","October","November","December"];function rt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Cl(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function tf(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const a=e[t];if(a===r){o=!0;break}else if(a==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=a}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function qo(e,t,n){let r=0,i=0,o="";const a=n?Er(e.getTime(),1):e;for(;r<t.length;){const s=t[r];switch(s){case"d":switch(i=rt(t,r,"d"),r+=i,i){case 1:o+=Il(a);break;case 2:o+=Q(Il(a),2);break;case 3:o+=Jp[Rl(a)];break;case 4:o+=Xp[Rl(a)];break}break;case"f":if(i=rt(t,r,"f"),r+=i,i<=3){const g=10**(3-i);o+=Q(Math.floor(yi(a)/g),i)}else i<=7&&(o+=(""+yi(a)).padEnd(i,"0"));break;case"F":if(i=rt(t,r,"F"),r+=i,i<=3){const g=10**(3-i),x=Math.floor(yi(a)/g);x!=0&&(o+=Q(x,i))}else if(i<=7){const g=yi(a);g!=0&&(o+=Q(g,3))}break;case"g":i=rt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=rt(t,r,"h"),r+=i,i){case 1:o+=vi(a)%12;break;case 2:o+=Q(vi(a)%12,2);break}break;case"H":switch(i=rt(t,r,"H"),r+=i,i){case 1:o+=vi(a);break;case 2:o+=Q(vi(a),2);break}break;case"K":switch(i=rt(t,r,"K"),r+=i,i){case 1:switch(Sl(a)){case 1:o+="Z";break;case 2:o+=Xn(a.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=rt(t,r,"m"),r+=i,i){case 1:o+=Dl(a);break;case 2:o+=Q(Dl(a),2);break}break;case"M":switch(i=rt(t,r,"M"),r+=i,i){case 1:o+=xi(a);break;case 2:o+=Q(xi(a),2);break;case 3:o+=Yp[xi(a)-1];break;case 4:o+=ef[xi(a)-1];break}break;case"s":switch(i=rt(t,r,"s"),r+=i,i){case 1:o+=Tl(a);break;case 2:o+=Q(Tl(a),2);break}break;case"t":switch(i=rt(t,r,"t"),r+=i,i){case 1:o+=a.getHours()<12?"A":"P";break;case 2:o+=a.getHours()<12?"AM":"PM";break}break;case"y":switch(i=rt(t,r,"y"),r+=i,i){case 1:o+=a.getFullYear()%100;break;case 2:o+=Q(a.getFullYear()%100,2);break;case 3:o+=Q(a.getFullYear(),3);break;case 4:o+=Q(a.getFullYear(),4);break;case 5:o+=Q(a.getFullYear(),5);break}break;case"z":i=rt(t,r,"z"),r+=i;let l="";switch(Sl(a)){case 1:l="+00:00";break;case 2:l=Xn(a.getTimezoneOffset()*-6e4);break;case 0:l=Xn(df(a).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${c}${d}`;break;case 2:o+=`${c}${Q(d,2)}`;break;default:o+=`${c}${Q(d,2)}:${Q(u,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[m,f]=tf(t,r);o+=m,r+=f;break;case"%":const h=Cl(t,r);if(h>=0&&h!==37)r+=2,o+=qo(a,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const v=Cl(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=s;break}}return o}function Sl(e){return e.kind||0}function Xn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Q(n,2)+":"+Q(r,2)}function wi(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 nf(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Q(e.getFullYear(),4)+"-"+Q(e.getMonth()+1,2)+"-"+Q(e.getDate(),2)+"T"+Q(e.getHours(),2)+":"+Q(e.getMinutes(),2)+":"+Q(e.getSeconds(),2)+"."+Q(e.getMilliseconds(),3)+(n?Xn(e.getTimezoneOffset()*-6e4):"")}}function rf(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Xn(t)}function of(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," ")+Xn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return wi(n,"first");case"T":case"t":return wi(n,"second");case"O":case"o":return rf(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return qo(n,t,!0)}function af(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?wi(e,"first"):e.toLocaleDateString();case"T":case"t":return n?wi(e,"second"):e.toLocaleTimeString();case"O":case"o":return nf(e,n);default:throw new Error("Unrecognized Date print format")}else return qo(e,t,n)}function Sr(e,t,n){return e.offset!=null?of(e,t):af(e,t)}function Er(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function sf(){return Er(-621355968e5,1)}function El(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,a=0;if(i[2]!=null){const s=i[2].split(":"),l=parseInt(s[0],10);a=l*3600+parseInt(s[1]||"0",10)*60+parseFloat(s[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(a+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const s=new Date;o=new Date(s.getUTCFullYear()+"/"+(s.getUTCMonth()+1)+"/"+s.getUTCDate())}if(i[4]==="Z")r="Z";else{let s=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(s*=-1),r=s,a-=s*60}}else if(i[1]!=null)o=new Date(i[1]);else{const s=new Date;o=new Date(s.getFullYear()+"/"+(s.getMonth()+1)+"/"+s.getDate())}n=new Date(o.getTime()+a*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function lf(e,t=!1){const[n,r]=El(e),i=r!=null?t&&r==="Z"?1:2:0;return Er(n.getTime(),i)}function cf(e,t){try{return t.contents=lf(e),!0}catch{return!1}}function uf(e){return e.kind===1?e:Er(e.getTime(),1)}function df(e){return e.kind===2?e:Er(e.getTime(),2)}function Il(e){return e.kind===1?e.getUTCDate():e.getDate()}function vi(e){return e.kind===1?e.getUTCHours():e.getHours()}function yi(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Dl(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function xi(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Tl(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Rl(e){return e.kind===1?e.getUTCDay():e.getDay()}const pf=Po;function ff(e,t=0){if((t&-284)!==0)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 bi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Fl(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 mf(e,t,n,r,i=0){function o(){let a=arguments[0];if(r){r--;const s=[],l=arguments.length,c=typeof arguments[l-1]!="string";let d=c?l-3:l-2;for(let u=0;u<d;u++)s.push(arguments[u]);s.index=arguments[d++],s.input=arguments[d++],c&&(s.groups=arguments[d]),a=n(s)}return a}if(typeof e=="string"){const a=e;e=ff(t,r??0),t=a,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,a=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let a;const s=t.substring(i),l=Fl(e,s),c=Fl.length>r?(a=l[r-1],s.substring(0,a.index+a[0].length)):s;return t.substring(0,i)+c.replace(e,n)+t.substring(i+c.length)}else return t.replace(e,n)}const Ir=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Dr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,hf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ml(e,t){return zp(e,t)<0}function ze(e){return{input:e,cont:wf(e)}}function gf(e,t){let n=0,r=0,i="";Dr.lastIndex=0;let o=Dr.exec(e);for(;o;){const a=o.index+(o[1]||"").length;i+=e.substring(r,a).replace(/%%/g,"%");const[,,s,l,c,d]=o;r=Dr.lastIndex,i+=Nl(t[n++],s,l,c,d),Dr.lastIndex=r-1,o=Dr.exec(e)}return i+=e.substring(r).replace(/%%/g,"%"),i}function jl(e,t){return typeof t=="string"?e(t):t.cont(e)}function Je(e){return jl(t=>t,e)}function $l(e){return jl(t=>{throw new Error(t)},e)}function Nl(e,t,n,r,i){let o="";if(t=t||"",i=i||"",ml(e))switch(i.toLowerCase()!=="x"&&(Ml(e,0)?(e=Ho(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=pi(e,r);break;case"g":case"G":e=r!=null?fi(e,r):fi(e);break;case"e":case"E":e=r!=null?mi(e,r):mi(e);break;case"x":e=hi(e);break;case"X":e=hi(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Sr(e):e=Ee(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const a=t.indexOf("0")>=0,s=t.indexOf("-")>=0,l=s||!a?" ":"0";l==="0"?(e=Tr(e,n-o.length,l,s),e=o+e):e=Tr(o+e,n,l,s)}return e}function Ol(e,t,n,r="",i=-1){return(...o)=>{let a=r;const s=t.slice(),l=n.slice();for(const c of o){const[,,d,u,m,f]=l[0];let h=u;if(i>=0)h=i,i=-1;else if(h==="*"){if(c<0)throw new Error("Non-negative number required");i=c;continue}a+=s[0],a+=Nl(c,d,h,m,f),s.splice(0,1),l.splice(0,1)}return l.length===0?(a+=s[0],e(a)):Ol(e,s,l,a,i)}}function wf(e){return t=>{Ir.lastIndex=0;const n=[],r=[];let i=0,o=Ir.exec(e);for(;o;){const a=o.index+(o[1]||"").length;n.push(e.substring(i,a).replace(/%%/g,"%")),r.push(o),i=Ir.lastIndex,Ir.lastIndex-=1,o=Ir.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Ol(t,n,r))}}function vf(e,...t){let n;return n=e,n.replace(hf,(r,i,o,a,s,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[i];if(ml(c))switch(s=s==null?null:parseInt(s,10),a){case"f":case"F":s=s??2,c=pi(c,s);break;case"g":case"G":c=s!=null?fi(c,s):fi(c);break;case"e":case"E":c=s!=null?mi(c,s):mi(c);break;case"p":case"P":s=s??2,c=pi(Ho(c,100),s)+" %";break;case"d":case"D":c=s!=null?Wo(String(c),s,"0"):String(c);break;case"x":case"X":c=s!=null?Wo(hi(c),s,"0"):hi(c),a==="X"&&(c=c.toUpperCase());break;default:if(l){let d="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,m,f)=>{Ml(c,0)&&(c=Ho(c,-1),d="-"),f=f==null?"":f.substring(1),c=pi(c,Math.max(f.length,0));let[h,v]=c.split(".");v||(v="");const g=m.replace(/,/g,"").replace(/^#+/,"").length;h=Wo(h,g,"0");const x=f.replace(/#+$/,"").length;if(x>v.length?v=xf(v,x,"0"):x<v.length&&(v=v.substring(0,x)+v.substring(x).replace(/0+$/,"")),m.indexOf(",")>0){const A=h.length%3,S=Math.floor(h.length/3);let R=A>0?h.substr(0,A)+(S>0?",":""):"";for(let M=0;M<S;M++)R+=h.substr(A+M*3,3)+(M<S-1?",":"");h=R}return v.length>0?h+"."+v:h}),c=d+c}}else c instanceof Date?c=Sr(c,l||a):c=Ee(c);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(c=Tr(String(c),Math.abs(o)," ",o<0)),c})}function yf(e){return typeof e!="string"||e.length===0}function Le(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Tr(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 Wo(e,t,n){return Tr(e,t,n)}function xf(e,t,n){return Tr(e,t,n,!0)}function Pl(e,t,n){return e.replace(new RegExp(bi(t),"g"),n)}function Go(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(d=>d).map(bi),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const d=s.exec(e);if(d===null){const u=o?e.substring(c).trim():e.substring(c);(!i||u.length>0)&&a.push(u),l=!1}else{const u=o?e.substring(c,d.index).trim():e.substring(c,d.index);(!i||u.length>0)&&(n!=null&&a.length+1===n?(a.push(o?e.substring(c).trim():e.substring(c)),l=!1):a.push(u)),c=s.lastIndex}}while(l);return a}function bf(e,...t){if(t.length===0)return e.trim();const n="["+bi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function _f(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+bi(t.join(""))+"]+$"),"")}class Yn{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:Ae(this.value,t instanceof Yn?t.value:t)}CompareTo(t){return t==null?1:ut(this.value,t instanceof Yn?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof Yn?e.value:e}function Ue(e){return e==null||e instanceof Yn?new Yn(e):e}function _i(e,t){return e!=null?C(e):t}function Af(e,t){return e!=null?C(e):t()}function Bl(e,t){return t!=null?Ue(e(C(t))):void 0}function kf(e,t,n){return t!=null&&n!=null?e(C(t),C(n)):void 0}const Hl="Collection was empty.";function zl(e,t){return new Array(t)}function Ll(e,t){return e>t?e:t}function Ai(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function xt(e,t,n){const r=t.length|0,i=zl(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(le(o,t)));return i}function Cf(e,t){const n=zl(t,1);return $t(n,0,e),n}function Sf(e){return e.slice().reverse()}function Ef(e,t){return t.find(e)}function If(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(le(i,t));if(o!=null){const a=C(o);r.push(a)}}return Ae(n,ct())?r:xt(i=>i,r,n)}function ki(e,t,n){const r=e;return n.reduce(r,t)}function Df(e,t,n){return t==null}function le(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 $t(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 Ul(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Ve extends Z{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Le("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,c=s.tail;if(l!=null)if(c!=null){const d=C(l),u=C(c);if(Ae(a.head,s.head)){i=d,o=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const a=r,s=i,l=o,c=l.tail;if(c!=null){const d=C(c);if(a>18)return s|0;r=a+1,i=(s<<1)+Qt(l.head)+631*a,o=d;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,c=s.tail;if(l!=null)if(c!=null){const d=C(l),u=C(c),m=ut(a.head,s.head)|0;if(m===0){i=d,o=u;continue e}else return m|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Rf(this)}[Symbol.iterator](){return ai(ye(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ye(this)}}class Tf{constructor(t){this.xs=t,this.it=this.xs,this.current=ct()}"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=C(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=ct()}Dispose(){}}function Rf(e){return new Tf(e)}function De(){return new Ve(ct(),void 0)}function Rr(e,t){return new Ve(e,t)}function Fr(e){return e.tail==null}function Vl(e){return((n,r)=>{e:for(;;){const i=n,a=r.tail;if(a!=null){n=i+1,r=C(a);continue e}else return i|0}})(0,e)|0}function Ci(e){if(e.tail!=null)return e.head;throw new Error(Hl+"\\nParameter name: list")}function pt(e){const t=e.tail;if(t!=null)return C(t);throw new Error(Hl+"\\nParameter name: list")}function Fe(){return De()}function ft(e,t){return Rr(e,t)}function P(e){return Rr(e,De())}function q(e){return Fr(e)}function Mr(e){return Vl(e)}function F(e){return Ci(e)}function W(e){return pt(e)}function er(e){const t=Vl(e)|0,n=Ai(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const a=i,s=o;if(!Fr(s)){$t(n,a,Ci(s)),i=a+1,o=pt(s);continue e}break}})(0,e),n}function bt(e,t,n){let r=t,i=n;for(;!Fr(i);)r=e(r,F(i)),i=pt(i);return r}function Qo(e){return bt((t,n)=>Rr(n,t),De(),e)}function Ff(e,t,n){return Ul(e,er(t),n)}function jr(e,t){bt((n,r)=>{e(r)},void 0,t)}function me(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Rr(le(r,e),n);return n}function y(e){return me(e,De())}function Mf(e){let t,n;if(wt(e))return y(e);if(e instanceof Ve)return e;{const r=De();let i=r;const o=ye(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Ve(l,void 0),t.tail=n,n)}}finally{ie(o)}const a=i,s=De();return a.tail=s,pt(r)}}function jf(e){const t=De();let n=t;const r=a=>{n=bt((s,l)=>{const c=new Ve(l,void 0);return s.tail=c,c},n,a)};if(wt(e))e.forEach(r);else if(e instanceof Ve)jr(r,e);else{const a=ye(e);try{for(;a["System.Collections.IEnumerator.MoveNext"]();)r(a["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{ie(a)}}const i=n,o=De();return i.tail=o,pt(t)}function $r(e,t){return bt((n,r)=>Rr(r,n),t,Qo(e))}function Kt(e,t){const n=De(),r=bt((o,a)=>{const s=new Ve(e(a),void 0);return o.tail=s,s},n,t),i=De();return r.tail=i,pt(n)}function $f(e,t){return(r=>{e:for(;;){const i=r;if(Fr(i))return;{const o=e(Ci(i));if(o==null){r=pt(i);continue e}else return o}}})(t)}function Nf(e,t){return $f(n=>e(n)?Ue(n):void 0,t)}function Of(e,t){return((r,i)=>{e:for(;;){const o=r,a=i;if(Fr(a))return;if(e(Ci(a)))return o;r=o+1,i=pt(a);continue e}})(0,t)}function Pf(e,t){const n=De(),r=bt((o,a)=>{if(e(a)){const s=new Ve(a,void 0);return o.tail=s,s}else return o},n,t),i=De();return r.tail=i,pt(n)}function Bf(e,t){const n=De(),r=De(),i=n,o=bt((l,c)=>{let d,u;const m=l[0],f=l[1];return e(c)?[(d=new Ve(c,void 0),m.tail=d,d),f]:[m,(u=new Ve(c,void 0),f.tail=u,u)]},[i,r],t),a=De();o[0].tail=a;const s=De();return o[1].tail=s,[pt(i),pt(r)]}function Hf(e,t){const n=De(),r=bt((o,a)=>{const s=e(a);if(s==null)return o;{const l=new Ve(C(s),void 0);return o.tail=l,l}},n,t),i=De();return r.tail=i,pt(n)}function Ko(e,t,n){return Of(r=>n.Equals(e,r),t)!=null}function zf(e,t){const n=er(t);return n.sort(e),y(n)}function Lf(e,t,n){return zf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Uf(e){return new w(0,[e])}function ql(e){return new w(1,[e])}class w extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Zt(e,t){return t.tag===0?Uf(e(t.fields[0])):ql(t.fields[0])}function Vf(e,t){return t.tag===0?e(t.fields[0]):ql(t.fields[0])}const En={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Zo(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 qf(e,t){switch(t){case En.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case En.SnakeCase:return Zo(e,"_");case En.SnakeCaseAllCaps:return Zo(e,"_").toUpperCase();case En.KebabCase:return Zo(e,"-");case En.None:default:return e}}function Si(e,t=En.None){const n={},r=t;function i(a){throw new Error("Cannot infer key and value of "+String(a))}function o(a,s,l){a=qf(a,s),n[a]=l}for(let a of e){let s=En.None;if(a==null&&i(a),a instanceof z){const l=a.cases()[a.tag];a=a.fields.length===0?l:[l].concat(a.fields),s=r}if(Array.isArray(a))switch(a.length){case 0:i(a);break;case 1:o(a[0],s,!0);break;case 2:const l=a[1];o(a[0],s,l);break;default:o(a[0],s,a.slice(1))}else typeof a=="string"?o(a,s,!0):i(a)}return n}class T extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class _t extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Wl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Gl(e,t){switch(e.tag){case 2:return mf(Wl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Wl(t)}}const Wf=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ql=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Gf=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Qf(e){function t(r){return r.replace(Ql,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Wf.test(n))return bf(n,"{","}","(",")");if(Ql.test(n))return t(n);if(Gf.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 Kf(e,t){try{return t.contents=Qf(e),!0}catch{return!1}}var Jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Jo||(Jo={}));function Zf(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Kl(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 Jf(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 Xf(e,t){if(t&Jo.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 Yf(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,a]=i;if(n=n||Xf(o,t),!Jf(n).test(a))return Zf(i,n)}return null}function em(e,t,n,r,i){const o=Yf(e,t,i);if(o!=null){let a=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(a)){const[s,l]=Kl(!0,r);!n&&o.radix!==10&&a>=s&&a<=l&&(a=a<<32-r>>32-r);const[c,d]=Kl(n,r);if(a>=c&&a<=d)return a}}throw new Error(`The input string ${e} was not in a correct format.`)}function tr(e,t,n,r,i){try{return i.contents=em(e,t,n,r),!0}catch{return!1}}function Zl(e,t){tm(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function tm(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 nm(){return Zl(-621355968e5,0)}function rm(e){const[t,n]=El(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Zl(t.getTime(),r)}function im(e,t){try{return t.contents=rm(e),!0}catch{return!1}}function Nr(e){return e<0?Math.ceil(e):Math.floor(e)}function Jl(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return om(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 om(e){return Number(BigInt(e)/10000n)}function am(e){return Nr(e/864e5)}function sm(e){return Nr(e%864e5/36e5)}function lm(e){return Nr(e%36e5/6e4)}function cm(e){return Nr(e%6e4/1e3)}function um(e){return Nr(e%1e3)}function dm(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(am(e)),i=Math.abs(sm(e)),o=Math.abs(lm(e)),a=Math.abs(cm(e)),s=Math.abs(um(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:Q(i,2)}:${Q(o,2)}:${Q(a,2)}${s===0&&(t==="c"||t==="g")?"":t==="g"?"."+Q(s,3):"."+bp(s,3,7)}`}function pm(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 Jl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,a=0;const s=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(a=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return s*Jl(i,l,c,a,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function fm(e,t){try{return t.contents=pm(e),!0}catch{return!1}}function mm(e){throw new Error(e)}const hm="Enumeration already finished.",gm="Enumeration has not started. Call MoveNext.",Xl="The input sequence has an insufficient number of elements.",wm="Reset is not supported on this enumerator.";function vm(){throw new Error(wm)}function Xo(){throw new Error(gm)}function Yo(){throw new Error(hm)}class ym{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=ye(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ee(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{ie(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return ai(ye(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function xm(e){return new ym(e)}class bm{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"(){vm()}Dispose(){this.dispose()}}function Ei(e,t,n){return new bm(e,t,n)}function _m(e){let t,n,r=!1,i=!1,o;const a=()=>{if(i=!0,n!=null){const s=C(n);try{ie(s)}finally{n=void 0}}if(t!=null){const s=C(t);try{ie(s)}finally{t=void 0}}};return Ei(()=>(r?i&&Yo():Xo(),o!=null?C(o):Yo()),()=>{let s;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const c=t,d=n;if(c!=null)if(d!=null){const u=C(d);if(u["System.Collections.IEnumerator.MoveNext"]())o=Ue(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{ie(u)}finally{n=void 0}}else{const u=C(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(s=u["System.Collections.Generic.IEnumerator`1.get_Current"](),ye(s)):(a(),l=!1)}else t=ye(e)}return C(l)}},()=>{i||a()})}function Am(e,t){return Ei(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{ie(t)}finally{}})}function Yl(e,t,n){let r=!1,i,o=Ue(e());const a=()=>{if(o!=null){const l=C(o);try{n(l)}finally{o=void 0}}},s=()=>{try{a()}finally{i=void 0}};return Ei(()=>(r||Xo(),i!=null?C(i):Yo()),()=>{if(r||(r=!0),o!=null){const l=C(o);let c;try{c=t(l)}catch(d){throw s(),d}return c!=null?(i=c,!0):(s(),!1)}else return!1},a)}function km(e,t){let n,r=t;return Ei(()=>{if(n!=null){const i=C(n)[0];return C(n)[1],i}else return Xo()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function Cm(e,t){t==null&&mm(e)}function nr(e){return xm(e)}function un(e){return Cm("source",e),ye(e)}function I(e){return nr(()=>ye(e()))}function ec(e){return nr(()=>_m(e))}function Sm(e,t){return nr(()=>km(e,t))}function In(){return I(()=>new Array(0))}function E(e){return I(()=>Cf(e))}function Ab(e){return e}function Em(e){return e instanceof Ve?er(e):Array.from(e)}function ae(e){return wt(e)?y(e):e instanceof Ve?e:Mf(e)}function Im(e,t,n){return nr(()=>Yl(e,t,n))}function tc(e,t,n){return nr(()=>{let r=-1;return Yl(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return ec([e,t])}function Dm(e,t,n){const r=un(t);try{const i=un(n);try{let o=0,a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&a&&s;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:a?1:s?-1:0)|0}finally{ie(i)}}finally{ie(r)}}function rr(e,t,n){const r=un(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{ie(r)}}function Ii(e,t,n){const r=un(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{ie(r)}}function nc(e,t){Ii((n,r)=>{e(r)},void 0,t)}function Xe(e,t){return Im(()=>un(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ue(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ie(n)})}function Tm(e,t){return tc(()=>un(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ue(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ie(n)})}function Rm(e){return I(()=>Sf(Em(e)))}function Fm(e,t){return nr(()=>{const n=un(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Xl+"\\nParameter name: source");return Am(()=>{},n)}catch(r){throw ie(n),r}})}function Mm(e,t){return tc(()=>un(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ue(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Xl+"\\nParameter name: source")}else return},n=>{ie(n)})}function Or(e,t){return I(()=>ec(Xe(e,t)))}class rc{constructor(t,n){this.k=t,this.v=n}}function Di(e,t){return new rc(e,t)}function qe(e){return e.k}function it(e){return e.v}class Ce extends rc{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Ti(e,t,n,r,i){return new Ce(e,t,n,r,i)}function We(e){return e.left}function Ge(e){return e.right}function Dn(e){return e.h}function kb(){}function ic(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=C(r);if(i instanceof Ce){const o=i;e=ic(n+1,We(o)),t=Ge(o);continue e}else return n+1|0}else return n|0}}function jm(e){return ic(0,e)}function At(e,t,n,r){let i,o,a;const s=e;if(s!=null){const u=C(s);a=u instanceof Ce?(i=u,Dn(i)):1}else a=0;let l;const c=r;if(c!=null){const u=C(c);l=u instanceof Ce?(o=u,Dn(o)):1}else l=0;const d=(a<l?l:a)|0;return d===0?Di(t,n):Ti(t,n,e,r,d+1)}function oc(e,t,n,r){let i,o,a,s,l,c,d,u,m;const f=e;if(f!=null){const g=C(f);m=g instanceof Ce?(i=g,Dn(i)):1}else m=0;let h;const v=r;if(v!=null){const g=C(v);h=g instanceof Ce?(o=g,Dn(o)):1}else h=0;if(h>m+2){const g=C(r);if(g instanceof Ce){const x=g;if(a=We(x),(a!=null?(s=C(a),s instanceof Ce?(l=s,Dn(l)):1):0)>m+1){const A=C(We(x));if(A instanceof Ce){const S=A;return At(At(e,t,n,We(S)),qe(S),it(S),At(Ge(S),qe(x),it(x),Ge(x)))}else throw new Error("internal error: Map.rebalance")}else return At(At(e,t,n,We(x)),qe(x),it(x),Ge(x))}else throw new Error("internal error: Map.rebalance")}else if(m>h+2){const g=C(e);if(g instanceof Ce){const x=g;if(c=Ge(x),(c!=null?(d=C(c),d instanceof Ce?(u=d,Dn(u)):1):0)>h+1){const A=C(Ge(x));if(A instanceof Ce){const S=A;return At(At(We(x),qe(x),it(x),We(S)),qe(S),it(S),At(Ge(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(We(x),qe(x),it(x),At(Ge(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(e,t,n,r)}function ir(e,t,n,r){if(r!=null){const i=C(r),o=e.Compare(t,qe(i))|0;if(i instanceof Ce){const a=i;return o<0?oc(ir(e,t,n,We(a)),qe(a),it(a),Ge(a)):o===0?Ti(t,n,We(a),Ge(a),Dn(a)):oc(We(a),qe(a),it(a),ir(e,t,n,Ge(a)))}else return o<0?Ti(t,n,void 0,r,2):o===0?Di(t,n):Ti(t,n,r,void 0,2)}else return Di(t,n)}function ac(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=C(o),s=r.Compare(i,qe(a))|0;if(s===0)return Ue(it(a));if(a instanceof Ce){const l=a;e=r,t=i,n=s<0?We(l):Ge(l);continue e}else return}else return}}function $m(e,t,n){const r=ac(e,t,n);if(r==null)throw new Error;return C(r)}function Nm(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=C(o),s=r.Compare(i,qe(a))|0;if(a instanceof Ce){const l=a;if(s<0){e=r,t=i,n=We(l);continue e}else{if(s===0)return!0;e=r,t=i,n=Ge(l);continue e}}else return s===0}else return!1}}function sc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=C(r);if(i instanceof Ce){const o=i;sc(n,We(o)),n(qe(o),it(o)),e=n,t=Ge(o);continue e}else n(qe(i),it(i))}break}}function Om(e,t){sc(e,t)}function Pm(e,t,n){let r=n;Om((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function Bm(e,t){return bt((n,r)=>ir(e,r[0],r[1],n),void 0,t)}function Hm(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ir(r,a[0],a[1],i),n=o;continue e}else return i}}function zm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=le(r,t);n=ir(e,i[0],i[1],n)}return n}function lc(e,t){if(wt(t))return zm(e,t);if(t instanceof Ve)return Bm(e,t);{const n=ye(t);try{return Hm(e,void 0,n)}finally{ie(n)}}}class Lm extends Z{constructor(t,n){super(),this.stack=t,this.started=n}}function cc(e){e:for(;;){const t=e;if(q(t))return Fe();{const n=W(t),r=F(t);if(r!=null){const i=C(r);if(i instanceof Ce){const o=i;e=me([We(o),Di(qe(o),it(o)),Ge(o)],n);continue e}else return t}else{e=n;continue e}}}}function uc(e){return new Lm(cc(P(e)),!1)}function Um(){throw new Error("enumeration not started")}function Vm(){throw new Error("enumeration already finished")}function dc(e){if(e.started){const t=e.stack;if(q(t))return Vm();if(F(t)!=null){const n=C(F(t));if(n instanceof Ce)throw new Error("Please report error: Map iterator, unexpected stack for current");return[qe(n),it(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Um()}function qm(e){if(e.started){const t=e.stack;if(q(t))return!1;if(F(t)!=null){if(C(F(t))instanceof Ce)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=cc(W(t)),!q(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!q(e.stack)}function pc(e){let t=uc(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 qm(t)},"System.Collections.IEnumerator.Reset"(){t=uc(e)},Dispose(){}}}class Ri{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Km(this)|0}Equals(t){const n=this;if(t instanceof Ri){const r=t,i=ye(n);try{const o=ye(r);try{const a=()=>{const s=i["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),c=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ae(l[0],c[0])&&Ae(l[1],c[1])?a():!1}else return!0;else return!1};return a()}finally{ie(o)}}finally{ie(i)}}else return!1}toString(){return"map ["+Le("; ",Xe(n=>vf("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return pc(this.tree)}[Symbol.iterator](){return ai(ye(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pc(this.tree)}CompareTo(t){const n=this;if(t instanceof Ri)return Dm((i,o)=>{const a=n.comparer.Compare(i[0],o[0])|0;return(a!==0?a:ut(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 mc(n,t[0])&&Ae(fc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Pm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ea(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ea(this)|0}get size(){return ea(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Xe(n=>[n[0],n[1]],this)}get(t){return fc(this,t)}has(t){return mc(this,t)}keys(){return Xe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Xe(n=>n[1],this)}forEach(t,n){const r=this;nc(i=>{t(i[1],i[0],r)},r)}}function Fi(e,t){return new Ri(e,t)}function Wm(e){return Fi(e,void 0)}function Gm(e,t,n){return Fi(e.comparer,ir(e.comparer,t,n,e.tree))}function fc(e,t){return $m(e.comparer,t,e.tree)}function ea(e){return jm(e.tree)}function mc(e,t){return Nm(e.comparer,t,e.tree)}function Qm(e,t){return ac(e.comparer,t,e.tree)}function Km(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=ye(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{ie(r)}return n|0}function hc(e,t,n){return Gm(n,e,t)}function gc(e,t){return Qm(t,e)}function Zm(e,t){return Fi(t,lc(t,e))}function Jm(e,t){return Fi(t,lc(t,e))}function ta(e){return Wm(e)}class wc{constructor(t){this.k=t}}function ot(e){return new wc(e)}function O(e){return e.k}class G extends wc{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function at(e,t,n,r){return new G(e,t,n,r)}function re(e){return e.left}function Y(e){return e.right}function or(e){return e.h}function Cb(){}function vc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=C(n);if(i instanceof G){const o=i;e=re(o),t=vc(Y(o),r+1);continue e}else return r+1|0}else return r|0}}function Xm(e){return vc(e,0)}function kt(e,t,n){let r,i,o;const a=e;if(a!=null){const d=C(a);o=d instanceof G?(r=d,or(r)):1}else o=0;let s;const l=n;if(l!=null){const d=C(l);s=d instanceof G?(i=d,or(i)):1}else s=0;const c=(o<s?s:o)|0;return c===0?ot(t):at(t,e,n,c+1)}function yc(e,t,n){let r,i,o,a,s,l,c,d,u;const m=e;if(m!=null){const v=C(m);u=v instanceof G?(r=v,or(r)):1}else u=0;let f;const h=n;if(h!=null){const v=C(h);f=v instanceof G?(i=v,or(i)):1}else f=0;if(f>u+2){const v=C(n);if(v instanceof G){const g=v;if(o=re(g),(o!=null?(a=C(o),a instanceof G?(s=a,or(s)):1):0)>u+1){const x=C(re(g));if(x instanceof G){const A=x;return kt(kt(e,t,re(A)),O(A),kt(Y(A),O(g),Y(g)))}else throw new Error("internal error: Set.rebalance")}else return kt(kt(e,t,re(g)),O(g),Y(g))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const v=C(e);if(v instanceof G){const g=v;if(l=Y(g),(l!=null?(c=C(l),c instanceof G?(d=c,or(d)):1):0)>f+1){const x=C(Y(g));if(x instanceof G){const A=x;return kt(kt(re(g),O(g),re(A)),O(A),kt(Y(A),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt(re(g),O(g),kt(Y(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt(e,t,n)}function ar(e,t,n){if(n!=null){const r=C(n),i=e.Compare(t,O(r))|0;if(r instanceof G){const o=r;return i<0?yc(ar(e,t,re(o)),O(o),Y(o)):i===0?n:yc(re(o),O(o),ar(e,t,Y(o)))}else{const o=e.Compare(t,O(r))|0;return o<0?at(t,void 0,n,2):o===0?n:at(t,n,void 0,2)}}else return ot(t)}function xc(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=C(o),s=r.Compare(i,O(a))|0;if(a instanceof G){const l=a;if(s<0){e=r,t=i,n=re(l);continue e}else{if(s===0)return!0;e=r,t=i,n=Y(l);continue e}}else return s===0}else return!1}}function bc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=C(r);if(i instanceof G){const o=i;bc(n,re(o)),n(O(o)),e=n,t=Y(o);continue e}else n(O(i))}break}}class Ym extends Z{constructor(t,n){super(),this.stack=t,this.started=n}}function _c(e){e:for(;;){const t=e;if(q(t))return Fe();{const n=F(t),r=W(t);if(n!=null){const i=C(n);if(i instanceof G){const o=i;e=me([re(o),ot(O(o)),Y(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ac(e){return new Ym(_c(P(e)),!1)}function eh(){throw new Error("Enumeration not started")}function th(){throw new Error("Enumeration already started")}function kc(e){if(e.started){const t=e.stack;if(q(t))return th();if(F(t)!=null){const n=C(F(t));return O(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return eh()}function nh(e){if(e.started){const t=e.stack;if(q(t))return!1;if(F(t)!=null){if(C(F(t))instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=_c(W(t)),!q(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!q(e.stack)}function Cc(e){let t=Ac(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return kc(t)},"System.Collections.IEnumerator.get_Current"(){return kc(t)},"System.Collections.IEnumerator.MoveNext"(){return nh(t)},"System.Collections.IEnumerator.Reset"(){t=Ac(e)},Dispose(){}}}function rh(e,t,n){e:for(;;){const r=e,i=t,o=n;if(q(i))return q(o)?0:-1;if(q(o))return 1;if(F(o)!=null)if(F(i)!=null){const a=C(F(i)),s=C(F(o));if(a instanceof G){const l=a;if(re(l)==null)if(s instanceof G){const c=s;if(re(c)==null){const d=r.Compare(O(l),O(c))|0;if(d!==0)return d|0;e=r,t=ft(Y(l),W(i)),n=ft(Y(c),W(o));continue e}else{let d,u,m,f,h;switch(q(i)?q(o)?d=2:F(o)!=null?(d=1,f=W(o),h=C(F(o))):d=2:F(i)!=null?(d=0,u=W(i),m=C(F(i))):q(o)?d=2:F(o)!=null?(d=1,f=W(o),h=C(F(o))):d=2,d){case 0:if(m instanceof G){const v=m;e=r,t=me([re(v),at(O(v),void 0,Y(v),0)],u),n=o;continue e}else{e=r,t=me([void 0,ot(O(m))],u),n=o;continue e}case 1:if(h instanceof G){const v=h;e=r,t=i,n=me([re(v),at(O(v),void 0,Y(v),0)],f);continue e}else{e=r,t=i,n=me([void 0,ot(O(h))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(O(l),O(s))|0;if(c!==0)return c|0;e=r,t=ft(Y(l),W(i)),n=ft(void 0,W(o));continue e}else{let c,d,u,m,f;switch(q(i)?q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=C(F(o))):c=2:F(i)!=null?(c=0,d=W(i),u=C(F(i))):q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=C(F(o))):c=2,c){case 0:if(u instanceof G){const h=u;e=r,t=me([re(h),at(O(h),void 0,Y(h),0)],d),n=o;continue e}else{e=r,t=me([void 0,ot(O(u))],d),n=o;continue e}case 1:if(f instanceof G){const h=f;e=r,t=i,n=me([re(h),at(O(h),void 0,Y(h),0)],m);continue e}else{e=r,t=i,n=me([void 0,ot(O(f))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(s instanceof G){const l=s;if(re(l)==null){const c=r.Compare(O(a),O(l))|0;if(c!==0)return c|0;e=r,t=ft(void 0,W(i)),n=ft(Y(l),W(o));continue e}else{let c,d,u,m,f;switch(q(i)?q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=C(F(o))):c=2:F(i)!=null?(c=0,d=W(i),u=C(F(i))):q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=C(F(o))):c=2,c){case 0:if(u instanceof G){const h=u;e=r,t=me([re(h),at(O(h),void 0,Y(h),0)],d),n=o;continue e}else{e=r,t=me([void 0,ot(O(u))],d),n=o;continue e}case 1:if(f instanceof G){const h=f;e=r,t=i,n=me([re(h),at(O(h),void 0,Y(h),0)],m);continue e}else{e=r,t=i,n=me([void 0,ot(O(f))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(O(a),O(s))|0;if(l!==0)return l|0;e=r,t=W(i),n=W(o);continue e}}else{C(F(o));let a,s,l,c,d;switch(q(i)?q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=C(F(o))):a=2:F(i)!=null?(a=0,s=W(i),l=C(F(i))):q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=C(F(o))):a=2,a){case 0:if(l instanceof G){const u=l;e=r,t=me([re(u),at(O(u),void 0,Y(u),0)],s),n=o;continue e}else{e=r,t=me([void 0,ot(O(l))],s),n=o;continue e}case 1:if(d instanceof G){const u=d;e=r,t=i,n=me([re(u),at(O(u),void 0,Y(u),0)],c);continue e}else{e=r,t=i,n=me([void 0,ot(O(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(F(i)!=null){C(F(i));let a,s,l,c,d;switch(q(i)?q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=C(F(o))):a=2:F(i)!=null?(a=0,s=W(i),l=C(F(i))):q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=C(F(o))):a=2,a){case 0:if(l instanceof G){const u=l;e=r,t=me([re(u),at(O(u),void 0,Y(u),0)],s),n=o;continue e}else{e=r,t=me([void 0,ot(O(l))],s),n=o;continue e}case 1:if(d instanceof G){const u=d;e=r,t=i,n=me([re(u),at(O(u),void 0,Y(u),0)],c);continue e}else{e=r,t=i,n=me([void 0,ot(O(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=W(i),n=W(o);continue e}}}function Sc(e,t,n){return t==null?n==null?0:-1:n==null?1:rh(e,P(t),P(n))|0}function ih(e,t,n){let r=n;bc(i=>{$t(t,r,i),r=r+1|0},e)}function oh(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ar(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function ah(e,t){return ki((n,r)=>ar(e,r,n),void 0,t)}function sh(e,t){return bt((n,r)=>ar(e,r,n),void 0,t)}function Ec(e,t){if(wt(t))return ah(e,t);if(t instanceof Ve)return sh(e,t);{const n=ye(t);try{return oh(e,void 0,n)}finally{ie(n)}}}class na{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return uh(this)|0}Equals(t){let n;const r=this;return t instanceof na&&(n=t,Sc(sr(r),Ct(r),Ct(n))===0)}toString(){return"set ["+Le("; ",Xe(n=>Ee(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Sc(sr(n),Ct(n),Ct(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 xc(sr(n),t,Ct(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ih(Ct(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ra(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ra(this)|0}GetEnumerator(){return Cc(Ct(this))}[Symbol.iterator](){return ai(ye(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Cc(Ct(this))}get size(){return ra(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 Ic(this,t)}keys(){return Xe(n=>n,this)}values(){return Xe(n=>n,this)}entries(){return Xe(n=>[n,n],this)}forEach(t,n){const r=this;nc(i=>{t(i,i,r)},r)}}function Mi(e,t){return new na(e,t)}function sr(e){return e.comparer}function Ct(e){return e.tree}function lh(e){return Mi(e,void 0)}function ch(e,t){return Mi(sr(e),ar(sr(e),t,Ct(e)))}function ra(e){return Xm(Ct(e))}function Ic(e,t){return xc(sr(e),t,Ct(e))}function uh(e){let t=0;const n=ye(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{ie(n)}return Math.abs(t)|0}function ia(e,t){return Ic(t,e)}function dh(e,t){return ch(t,e)}function ph(e){return lh(e)}function fh(e,t){return Mi(t,Ec(t,e))}function mh(e,t){return Mi(t,Ec(t,e))}function Pr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){"use strict";var ei=document.createElement("style");ei.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{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}*,: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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-3{margin-right:.75rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.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}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.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))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.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-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.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-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.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}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.outline{outline-style:solid}.ring{--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(3px + 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-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))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.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)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.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-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
2
|
+
`,document.head.appendChild(ei);var gn,O,ti,Ct,ni,ri,Rr,Mr,Fr,Or,oi,wn={},ii=[],$l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vn=Array.isArray;function ct(e,t){for(var n in t)e[n]=t[n];return e}function si(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?gn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return _n(e,s,r,o,null)}function _n(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ti,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(i),i}function ai(){return{current:null}}function be(e){return e.children}function qe(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(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"?Et(e):null}function li(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 li(e)}}function Nr(e){(!e.__d&&(e.__d=!0)&&Ct.push(e)&&!Ln.__r++||ni!==O.debounceRendering)&&((ni=O.debounceRendering)||ri)(Ln)}function Ln(){var e,t,n,r,o,i,s,a;for(Ct.sort(Rr);e=Ct.shift();)e.__d&&(t=Ct.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ct({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),Pr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Et(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,pi(s,r,a),r.__e!=i&&li(r)),Ct.length>t&&Ct.sort(Rr));Ln.__r=0}function ci(e,t,n,r,o,i,s,a,u,l,f){var c,m,p,g,_,w=r&&r.__k||ii,y=t.length;for(n.__d=u,Hl(n,t,w),u=n.__d,c=0;c<y;c++)(p=n.__k[c])!=null&&typeof p!="boolean"&&typeof p!="function"&&(m=p.__i===-1?wn:w[p.__i]||wn,p.__i=c,Pr(e,p,m,o,i,s,a,u,l,f),g=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&Br(m.ref,null,p),f.push(p.ref,p.__c||g,p)),_==null&&g!=null&&(_=g),65536&p.__u||m.__k===p.__k?(u&&!u.isConnected&&(u=Et(m)),u=ui(p,u,e)):typeof p.type=="function"&&p.__d!==void 0?u=p.__d:g&&(u=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=_}function Hl(e,t,n){var r,o,i,s,a,u=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<u;r++)s=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?_n(null,o,null,null,null):Vn(o)?_n(be,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?_n(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=Ul(o,n,s,f),o.__i=a,i=null,a!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?c++:a>s?f>u-s?c+=a-s:c--:a<s?a==s-1&&(c=a-s):c=0,a!==r+c&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i))}function ui(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ui(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vn(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Ul(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a++}}return-1}function fi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$l.test(t)?n:n+"px"}function zn(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||fi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Mr,e.addEventListener(t,i?Or:Fr,i)):e.removeEventListener(t,i?Or:Fr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function di(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Mr++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Pr(e,t,n,r,o,i,s,a,u,l){var f,c,m,p,g,_,w,y,C,T,ee,Q,X,oe,fe,te=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof te=="function")try{if(y=t.props,C=(f=te.contextType)&&r[f.__c],T=f?C?C.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:("prototype"in te&&te.prototype.render?t.__c=c=new te(y,T):(t.__c=c=new qe(y,T),c.constructor=te,c.render=Ll),C&&C.sub(c),c.props=y,c.state||(c.state={}),c.context=T,c.__n=r,m=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),te.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ct({},c.__s)),ct(c.__s,te.getDerivedStateFromProps(y,c.__s))),p=c.props,g=c.state,c.__v=t,m)te.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(te.getDerivedStateFromProps==null&&y!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,T),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,T)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(lt){lt&&(lt.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,g,_)})}if(c.context=T,c.props=y,c.__P=e,c.__e=!1,Q=O.__r,X=0,"prototype"in te&&te.prototype.render){for(c.state=c.__s,c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),oe=0;oe<c._sb.length;oe++)c.__h.push(c._sb[oe]);c._sb=[]}else do c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++X<25);c.state=c.__s,c.getChildContext!=null&&(r=ct(ct({},r),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(p,g)),ci(e,Vn(fe=f!=null&&f.type===be&&f.key==null?f.props.children:f)?fe:[fe],t,n,r,o,i,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(lt){t.__v=null,u||i!=null?(t.__e=a,t.__u|=u?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),O.__e(lt,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vl(n.__e,t,n,r,o,i,s,u,l);(f=O.diffed)&&f(t)}function pi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Br(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){O.__e(i,o.__v)}})}function Vl(e,t,n,r,o,i,s,a,u){var l,f,c,m,p,g,_,w=n.props,y=t.props,C=t.type;if(C==="svg"?o="http://www.w3.org/2000/svg":C==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!C&&(C?p.localName===C:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(C===null)return document.createTextNode(y);e=document.createElementNS(o,C,y.is&&y),i=null,a=!1}if(C===null)w===y||a&&e.data===y||(e.data=y);else{if(i=i&&gn.call(e.childNodes),w=n.props||wn,!a&&i!=null)for(w={},l=0;l<e.attributes.length;l++)w[(p=e.attributes[l]).name]=p.value;for(l in w)if(p=w[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=p;else if(l!=="key"&&!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;zn(e,l,null,p,o)}}for(l in y)p=y[l],l=="children"?m=p:l=="dangerouslySetInnerHTML"?f=p:l=="value"?g=p:l=="checked"?_=p:l==="key"||a&&typeof p!="function"||w[l]===p||zn(e,l,p,w[l],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ci(e,Vn(m)?m:[m],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Et(n,0),a,u),i!=null)for(l=i.length;l--;)i[l]!=null&&si(i[l]);a||(l="value",g!==void 0&&(g!==e[l]||C==="progress"&&!g||C==="option"&&g!==w[l])&&zn(e,l,g,w[l],o),l="checked",_!==void 0&&_!==e[l]&&zn(e,l,_,w[l],o))}return e}function Br(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){O.__e(r,n)}}function jr(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Br(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){O.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jr(r[o],t,n||typeof e.type!="function");n||e.__e==null||si(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ll(e,t,n){return this.constructor(e,n)}function yt(e,t,n){var r,o,i,s;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pr(t,e=(!r&&n||t).__k=d(be,null,[e]),o||wn,wn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?gn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),pi(i,e,s)}function $r(e,t){yt(e,t,$r)}function Hr(e,t,n){var r,o,i,s,a=ct({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?gn.call(arguments,2):n),_n(e.type,a,r||e.key,o||e.ref,null)}function hi(e,t){var n={__c:t="__cC"+oi++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Nr(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}gn=ii.slice,O={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},ti=0,qe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ct({},this.state),typeof e=="function"&&(e=e(ct({},n),this.props)),e&&ct(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nr(this))},qe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nr(this))},qe.prototype.render=be,Ct=[],ri=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rr=function(e,t){return e.__v.__b-t.__v.__b},Ln.__r=0,Mr=0,Fr=di(!1),Or=di(!0),oi=0;var ft,j,Ur,mi,Ht=0,gi=[],Gn=[],Z=O,wi=Z.__b,_i=Z.__r,yi=Z.diffed,bi=Z.__c,Ai=Z.unmount,vi=Z.__;function kt(e,t){Z.__h&&Z.__h(j,e,Ht||t),Ht=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Gn}),n.__[e]}function Ut(e){return Ht=1,yn(Si,e)}function yn(e,t,n){var r=kt(ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Si(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.u)){var o=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!i||i.call(this,a,u,l);var c=!1;return f.forEach(function(m){if(m.__N){var p=m.__[0];m.__=m.__N,m.__N=void 0,p!==m.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,u,l))};j.u=!0;var i=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=i;i=void 0,o(a,u,l),i=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=o}return r.__N||r.__}function bt(e,t){var n=kt(ft++,3);!Z.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,j.__H.__h.push(n))}function Vt(e,t){var n=kt(ft++,4);!Z.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,j.__h.push(n))}function It(e){return Ht=5,Ze(function(){return{current:e}},[])}function Wn(e,t,n){Ht=6,Vt(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 Ze(e,t){var n=kt(ft++,7);return Wr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function we(e,t){return Ht=8,Ze(function(){return e},t)}function Vr(e){var t=j.context[e.__c],n=kt(ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function Lr(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function zl(e){var t=kt(ft++,10),n=Ut();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function zr(){var e=kt(ft++,11);if(!e.__){for(var t=j.__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 Gl(){for(var e;e=gi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qn),e.__H.__h.forEach(Gr),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){j=null,wi&&wi(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),vi&&vi(e,t)},Z.__r=function(e){_i&&_i(e),ft=0;var t=(j=e.__c).__H;t&&(Ur===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Gn,n.__N=n.i=void 0})):(t.__h.forEach(Qn),t.__h.forEach(Gr),t.__h=[],ft=0)),Ur=j},Z.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gi.push(t)!==1&&mi===Z.requestAnimationFrame||((mi=Z.requestAnimationFrame)||Wl)(Gl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Gn&&(n.__=n.__V),n.i=void 0,n.__V=Gn})),Ur=j=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qn),n.__h=n.__h.filter(function(r){return!r.__||Gr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),bi&&bi(e,t)},Z.unmount=function(e){Ai&&Ai(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qn(r)}catch(o){t=o}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var xi=typeof requestAnimationFrame=="function";function Wl(e){var t,n=function(){clearTimeout(r),xi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xi&&(t=requestAnimationFrame(n))}function Qn(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function Gr(e){var t=j;e.__c=e.__(),j=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Si(e,t){return typeof t=="function"?t(e):t}function Ci(e,t){for(var n in t)e[n]=t[n];return e}function Qr(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 qn(e,t){this.props=e,this.context=t}function Ei(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Qr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,d(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new qe).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return Qr(this.props,e)||Qr(this.state,t)};var ki=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ki&&ki(e)};var Ql=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qr(e){function t(n){var r=Ci({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ql,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ii=function(e,t){return e==null?null:ut(ut(e).map(t))},Di={map:Ii,forEach:Ii,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},ql=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ql(e,t,n,r)};var Ti=O.unmount;function Ri(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=Ci({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ri(r,t,n)})),e}function Mi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Mi(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 bn(){this.__u=0,this.t=null,this.__b=null}function Fi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oi(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return d(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(bn.prototype=new qe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Mi(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},bn.prototype.componentWillUnmount=function(){this.t=[]},bn.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]=Ri(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&d(be,null,e.fallback);return o&&(o.__u&=-33),[d(be,null,t.__a?null:e.children),o]};var Ni=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Zl(e){return this.getChildContext=function(){return e.context},e.children}function Jl(e){var t=this,n=e.i;t.componentWillUnmount=function(){yt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),yt(d(Zl,{context:t.context},e.__v),t.l)}function Pi(e,t){var n=d(Jl,{__v:e,i:t});return n.containerInfo=t,n}(Lt.prototype=new qe).__a=function(e){var t=this,n=Fi(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ni(t,e,r)):o()};n?n(i):i()}},Lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ni(e,n,t)})};var Bi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kl=/^(?: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]/,Xl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yl=/[A-Z0-9]/g,ec=typeof document<"u",tc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ji(e,t,n){return t.__k==null&&(t.textContent=""),yt(e,t),typeof n=="function"&&n(),e?e.__c:null}function $i(e,t,n){return $r(e,t),typeof n=="function"&&n(),e?e.__c:null}qe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(qe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hi=O.event;function nc(){}function rc(){return this.cancelBubble}function oc(){return this.defaultPrevented}O.event=function(e){return Hi&&(e=Hi(e)),e.persist=nc,e.isPropagationStopped=rc,e.isDefaultPrevented=oc,e.nativeEvent=e};var Zr,ic={enumerable:!1,configurable:!0,get:function(){return this.class}},Ui=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||ec&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||tc(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Xl.test(i)?i=a:r.indexOf("-")===-1&&Kl.test(i)?i=i.replace(Yl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ic)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Bi,Ui&&Ui(e)};var Vi=O.__r;O.__r=function(e){Vi&&Vi(e),Zr=e.__c};var Li=O.diffed;O.diffed=function(e){Li&&Li(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),Zr=null};var zi={ReactCurrentDispatcher:{current:{readContext:function(e){return Zr.__n[e.__c].props.value},useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useId:zr,useImperativeHandle:Wn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Ze,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr}}},sc="17.0.2";function Gi(e){return d.bind(null,e)}function An(e){return!!e&&e.$$typeof===Bi}function Wi(e){return An(e)&&e.type===be}function Qi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function qi(e){return An(e)?Hr.apply(null,arguments):e}function Zi(e){return!!e.__k&&(yt(null,e),!0)}function Ji(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ki=function(e,t){return e(t)},Xi=function(e,t){return e(t)},Yi=be;function Jr(e){e()}function Kr(e){return e}function Xr(){return[!1,Jr]}var Yr=Vt,es=An;function eo(e,t){var n=t(),r=Ut({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Vt(function(){o.__=n,o.v=t,to(o)&&i({h:o})},[e,n,t]),bt(function(){return to(o)&&i({h:o}),e(function(){to(o)&&i({h:o})})},[e]),n}function to(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var no={useState:Ut,useId:zr,useReducer:yn,useEffect:bt,useLayoutEffect:Vt,useInsertionEffect:Yr,useTransition:Xr,useDeferredValue:Kr,useSyncExternalStore:eo,startTransition:Jr,useRef:It,useImperativeHandle:Wn,useMemo:Ze,useCallback:we,useContext:Vr,useDebugValue:Lr,version:"17.0.2",Children:Di,render:ji,hydrate:$i,unmountComponentAtNode:Zi,createPortal:Pi,createElement:d,createContext:hi,createFactory:Gi,cloneElement:qi,createRef:ai,Fragment:be,isValidElement:An,isElement:es,isFragment:Wi,isMemo:Qi,findDOMNode:Ji,Component:qe,PureComponent:qn,memo:Ei,forwardRef:qr,flushSync:Xi,unstable_batchedUpdates:Ki,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,lazy:Oi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi};const ac=Object.freeze(Object.defineProperty({__proto__:null,Children:Di,Component:qe,Fragment:be,PureComponent:qn,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi,cloneElement:qi,createContext:hi,createElement:d,createFactory:Gi,createPortal:Pi,createRef:ai,default:no,findDOMNode:Ji,flushSync:Xi,forwardRef:qr,hydrate:$i,isElement:es,isFragment:Wi,isMemo:Qi,isValidElement:An,lazy:Oi,memo:Ei,render:ji,startTransition:Jr,unmountComponentAtNode:Zi,unstable_batchedUpdates:Ki,useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useErrorBoundary:zl,useId:zr,useImperativeHandle:Wn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Ze,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr,version:sc},Symbol.toStringTag,{value:"Module"}));function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function lc(e){return e!=null&&typeof e.GetEnumerator=="function"}function cc(e){return e!=null&&typeof e.CompareTo=="function"}function uc(e){return e!=null&&typeof e.Equals=="function"}function ts(e){return e!=null&&typeof e.GetHashCode=="function"}function ro(e){return e!=null&&typeof e.Dispose=="function"}function q(e){ro(e)&&e.Dispose()}function At(){return null}function Zn(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 fc{constructor(t){this.iter=t,this.current=At()}"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 ne(e){return lc(e)?e.GetEnumerator():new fc(e[Symbol.iterator]())}function Jn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function z(e,t){return e.toString(10).padStart(t,"0")}function ns(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function dc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function it(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class dt{static id(t){return dt.idMap.has(t)||dt.idMap.set(t,++dt.count),dt.idMap.get(t)}}dt.idMap=new WeakMap,dt.count=0;function Kn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ke(e){return e*2654435761|0}function rs(e){return Kn(e.toString(32))}function vn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function pc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return rs(e);case"string":return Kn(e);default:return Ke(dt.id(e))}}function hc(e){return ts(e)?e.GetHashCode():pc(e)}function mc(e){return e.getTime()}function gc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return vn(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return rs(e);case"string":return Kn(e);default:{if(ts(e))return e.GetHashCode();if(Je(e))return gc(e);if(e instanceof Date)return mc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return vn(n)}else return Ke(dt.id(e))}}}function os(e){return hc(e)}function oo(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 is(e,t){return oo(e,t,ke)}function wc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!ke(e[n[o]],t[r[o]]))return!1;return!0}function ke(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:uc(e)?e.Equals(t):Je(e)?Je(t)&&is(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&io(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&wc(e,t)}function io(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ns(e),r=t.getTime()+ns(t)),n===r?0:n<r?-1:1}function so(e,t){return e===t?0:e<t?-1:1}function _c(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function ss(e,t){return _c(e,t,$e)}function yc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=$e(e[s],t[s]),i!==0)return i}return 0}function $e(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:cc(e)?e.CompareTo(t):Je(e)?Je(t)?ss(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?io(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yc(e,t):-1}function I(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function bc(e){Je(e)?e.splice(0):e.clear()}const Xn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Xn.set(t,e),t}function He(e){return Xn.get(e)??(t=>n=>e(t,n))}function ao(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Xn.set(t,e),t}function Yn(e){return Xn.get(e)??(t=>n=>r=>e(t,n,r))}function Ac(e){let t=0,n="[";for(const r of e){if(t===0)n+=ae(r);else if(t===100){n+="; ...";break}else n+="; "+ae(r);t++}return n+"]"}function ae(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 Ac(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+ae(i,t+1)).join(`
|
|
3
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function vc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ae(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ae(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class Y{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,Ke(this.tag)),vn(t)}Equals(t){return this===t?!0:Zn(this,t)&&this.tag===t.tag?is(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Zn(this,t)?this.tag===t.tag?ss(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function xc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Sc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ae(n)).join(`
|
|
4
|
+
`)+" }"}function Cc(e){const t=Object.values(e).map(n=>pt(n));return vn(t)}function Ec(e,t){if(e===t)return!0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ke(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function kc(e,t){if(e===t)return 0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=$e(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class G{toJSON(){return xc(this)}toString(){return Sc(this)}GetHashCode(){return Cc(this)}Equals(t){return Ec(this,t)}CompareTo(t){return kc(this,t)}}class Xe{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 Ic{constructor(t){this.message=t}}function Dc(e){return e instanceof Ic||e instanceof Error}function Tc(e){return e instanceof Promise}function er(e){return Dc(e)||Tc(e)?e:new Error(String(e))}const zt=Symbol("numeric");function as(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[zt])}function Rc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function lo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[zt]().multiply(t)}function tr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[zt]().toFixed(t)}function nr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[zt]().toPrecision(t)}function rr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[zt]().toExponential(t)}function or(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[zt]().toHex()}class Mc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ae{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return de(this)}GetHashCode(){return ls(this)}Equals(t){return co(this,t)}}function ht(e){return e.generics!=null?e.generics:[]}function ls(e){const t=Kn(e.fullname),n=ht(e).map(ls);return vn([t,...n])}function co(e,t){return e.fullname===""?t.fullname===""&&oo(sr(e),sr(t),([n,r],[o,i])=>n===o&&co(r,i)):e.fullname===t.fullname&&oo(ht(e),ht(t),co)}function mt(e,t,n,r){return new Ae(e,t,n,r)}function Ue(e,t,n,r){return new Ae(e,t,n,void 0,r)}function uo(...e){return new Ae("",void 0,void 0,void 0,()=>e)}function xn(e,t,n,r){const o=new Ae(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Mc(o,a,i[a],s))});return o}function Gt(e){return new Ae("Microsoft.FSharp.Core.FSharpOption`1",[e])}function st(e){return new Ae("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Fc(e){return new Ae("[]",[e])}const Oc=new Ae("System.Object"),le=new Ae("System.String"),Nc=new Ae("System.Boolean"),ce=new Ae("System.Int32");function fo(e){if(Array.isArray(e))return e[0];if(e instanceof Ae){const t=ir(e);if(t!=null)return fo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function de(e){const t=ir(e);return t!=null?de(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>de(n)).join(",")+"]"}function Pc(e){return ir(e)!=null}function ir(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Bc(e){return e.generics!=null&&e.generics.length>0}function cs(e){return e.enumCases!=null&&e.enumCases.length>0}function jc(e){return e.generics==null?e:new Ae(e.fullname,e.generics.map(()=>Oc))}function $c(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wt(e){if(cs(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Hc(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 Qt(e,t){const n=parseInt(t,10);return Hc(e,isNaN(n)?t:n)[1]}function Uc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function sr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Vc(e){if(us(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Lc(e){return e instanceof Ae?e.cases!=null:e instanceof Y}function zc(e){return e instanceof Ae?e.fields!=null:e instanceof G}function us(e){return e.fullname.startsWith("System.Tuple")}function Gc(e){return e.fields==null?[]:e.fields}function Wc(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 Qc(e,t){const n=sr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function qc(e,t){return e}const Zc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Jc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Kc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xc=["January","February","March","April","May","June","July","August","September","October","November","December"];function Te(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function fs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Yc(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function po(e,t,n){let r=0,o=0,i="";const s=n?Sn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Te(t,r,"d"),r+=o,o){case 1:i+=ms(s);break;case 2:i+=z(ms(s),2);break;case 3:i+=Zc[_s(s)];break;case 4:i+=Jc[_s(s)];break}break;case"f":if(o=Te(t,r,"f"),r+=o,o<=3){const w=10**(3-o);i+=z(Math.floor(cr(s)/w),o)}else o<=7&&(i+=(""+cr(s)).padEnd(o,"0"));break;case"F":if(o=Te(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(cr(s)/w);y!=0&&(i+=z(y,o))}else if(o<=7){const w=cr(s);w!=0&&(i+=z(w,3))}break;case"g":o=Te(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Te(t,r,"h"),r+=o,o){case 1:i+=lr(s)%12;break;case 2:i+=z(lr(s)%12,2);break}break;case"H":switch(o=Te(t,r,"H"),r+=o,o){case 1:i+=lr(s);break;case 2:i+=z(lr(s),2);break}break;case"K":switch(o=Te(t,r,"K"),r+=o,o){case 1:switch(ds(s)){case 1:i+="Z";break;case 2:i+=qt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Te(t,r,"m"),r+=o,o){case 1:i+=gs(s);break;case 2:i+=z(gs(s),2);break}break;case"M":switch(o=Te(t,r,"M"),r+=o,o){case 1:i+=ur(s);break;case 2:i+=z(ur(s),2);break;case 3:i+=Kc[ur(s)-1];break;case 4:i+=Xc[ur(s)-1];break}break;case"s":switch(o=Te(t,r,"s"),r+=o,o){case 1:i+=ws(s);break;case 2:i+=z(ws(s),2);break}break;case"t":switch(o=Te(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Te(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=z(s.getFullYear()%100,2);break;case 3:i+=z(s.getFullYear(),3);break;case 4:i+=z(s.getFullYear(),4);break;case 5:i+=z(s.getFullYear(),5);break}break;case"z":o=Te(t,r,"z"),r+=o;let u="";switch(ds(s)){case 1:u="+00:00";break;case 2:u=qt(s.getTimezoneOffset()*-6e4);break;case 0:u=qt(lu(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(o){case 1:i+=`${l}${f}`;break;case 2:i+=`${l}${z(f,2)}`;break;default:i+=`${l}${z(f,2)}:${z(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[m,p]=Yc(t,r);i+=m,r+=p;break;case"%":const g=fs(t,r);if(g>=0&&g!==37)r+=2,i+=po(s,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const _=fs(t,r);if(_>=0)r+=2,i+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ds(e){return e.kind||0}function qt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+z(n,2)+":"+z(r,2)}function ar(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 eu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return z(e.getFullYear(),4)+"-"+z(e.getMonth()+1,2)+"-"+z(e.getDate(),2)+"T"+z(e.getHours(),2)+":"+z(e.getMinutes(),2)+":"+z(e.getSeconds(),2)+"."+z(e.getMilliseconds(),3)+(n?qt(e.getTimezoneOffset()*-6e4):"")}}function tu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+qt(t)}function nu(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," ")+qt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ar(n,"first");case"T":case"t":return ar(n,"second");case"O":case"o":return tu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return po(n,t,!0)}function ru(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?ar(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ar(e,"second"):e.toLocaleTimeString();case"O":case"o":return eu(e,n);default:throw new Error("Unrecognized Date print format")}else return po(e,t,n)}function ps(e,t,n){return e.offset!=null?nu(e,t):ru(e,t)}function Sn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ou(){return Sn(-621355968e5,1)}function hs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function iu(e,t=!1){const[n,r]=hs(e),o=r!=null?t&&r==="Z"?1:2:0;return Sn(n.getTime(),o)}function su(e,t){try{return t.contents=iu(e),!0}catch{return!1}}function au(e){return e.kind===1?e:Sn(e.getTime(),1)}function lu(e){return e.kind===2?e:Sn(e.getTime(),2)}function ms(e){return e.kind===1?e.getUTCDate():e.getDate()}function lr(e){return e.kind===1?e.getUTCHours():e.getHours()}function cr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function gs(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ur(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ws(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function _s(e){return e.kind===1?e.getUTCDay():e.getDay()}const cu=io;function uu(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 ho(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ys(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function fu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=uu(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),u=ys(e,a),l=ys.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const Cn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,du=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function bs(e,t){return Rc(e,t)<0}function Re(e){return{input:e,cont:mu(e)}}function As(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ve(e){return As(t=>t,e)}function pu(e){return As(t=>{throw new Error(t)},e)}function hu(e,t,n,r,o){let i="";if(t=t||"",o=o||"",as(e))switch(o.toLowerCase()!=="x"&&(bs(e,0)?(e=lo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=tr(e,r);break;case"g":case"G":e=r!=null?nr(e,r):nr(e);break;case"e":case"E":e=r!=null?rr(e,r):rr(e);break;case"x":e=or(e);break;case"X":e=or(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ps(e):e=ae(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=En(e,n-i.length,u,a),e=i+e):e=En(i+e,n,u,a)}return e}function vs(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of i){const[,,f,c,m,p]=u[0];let g=c;if(o>=0)g=o,o=-1;else if(g==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}s+=a[0],s+=hu(l,f,g,m,p),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):vs(e,a,u,s,o)}}function mu(e){return t=>{Cn.lastIndex=0;const n=[],r=[];let o=0,i=Cn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Cn.lastIndex,Cn.lastIndex-=1,i=Cn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),vs(t,n,r))}}function gu(e,...t){let n;return n=e,n.replace(du,(r,o,i,s,a,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(as(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=tr(l,a);break;case"g":case"G":l=a!=null?nr(l,a):nr(l);break;case"e":case"E":l=a!=null?rr(l,a):rr(l);break;case"p":case"P":a=a??2,l=tr(lo(l,100),a)+" %";break;case"d":case"D":l=a!=null?mo(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?mo(or(l),a,"0"):or(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,m,p)=>{bs(l,0)&&(l=lo(l,-1),f="-"),p=p==null?"":p.substring(1),l=tr(l,Math.max(p.length,0));let[g,_]=l.split(".");_||(_="");const w=m.replace(/,/g,"").replace(/^#+/,"").length;g=mo(g,w,"0");const y=p.replace(/#+$/,"").length;if(y>_.length?_=_u(_,y,"0"):y<_.length&&(_=_.substring(0,y)+_.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const C=g.length%3,T=Math.floor(g.length/3);let ee=C>0?g.substr(0,C)+(T>0?",":""):"";for(let Q=0;Q<T;Q++)ee+=g.substr(C+Q*3,3)+(Q<T-1?",":"");g=ee}return _.length>0?g+"."+_:g}),l=f+l}}else l instanceof Date?l=ps(l,u||s):l=ae(l);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(l=En(String(l),Math.abs(i)," ",i<0)),l})}function wu(e){return typeof e!="string"||e.length===0}function Me(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function En(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function mo(e,t,n){return En(e,t,n)}function _u(e,t,n){return En(e,t,n,!0)}function xs(e,t,n){return e.replace(new RegExp(ho(t),"g"),n)}function go(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ho),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&s.push(c),u=!1}else{const c=i?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function yu(e,...t){if(t.length===0)return e.trim();const n="["+ho(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Zt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:ke(this.value,t instanceof Zt?t.value:t)}CompareTo(t){return t==null?1:$e(this.value,t instanceof Zt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Fe(e){return e==null||e instanceof Zt?new Zt(e):e}function Ss(e,t){return e!=null?b(e):t}function bu(e,t){return t!=null?Fe(e(b(t))):void 0}function Au(e,t,n){return t!=null&&n!=null?e(b(t),b(n)):void 0}const Cs="Collection was empty.";function Es(e,t){return new Array(t)}function ks(e,t){return e>t?e:t}function wo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function gt(e,t,n){const r=t.length|0,o=Es(n,r);for(let i=0;i<=r-1;i++)vt(o,i,e(pe(i,t)));return o}function vu(e,t){const n=Es(t,1);return vt(n,0,e),n}function xu(e){return e.slice().reverse()}function Su(e,t){return t.find(e)}function Cu(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(pe(o,t));if(i!=null){const s=b(i);r.push(s)}}return ke(n,At())?r:gt(o=>o,r,n)}function fr(e,t,n){const r=e;return n.reduce(r,t)}function Eu(e,t,n){return t==null}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 vt(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 Is(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class ve extends G{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Me("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(ke(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,u=i,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,o=(a<<1)+pt(u.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),m=$e(s.head,a.head)|0;if(m===0){o=f,i=c;continue e}else return m|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return Iu(this)}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ne(this)}}class ku{constructor(t){this.xs=t,this.it=this.xs,this.current=At()}"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=b(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=At()}Dispose(){}}function Iu(e){return new ku(e)}function ue(){return new ve(At(),void 0)}function kn(e,t){return new ve(e,t)}function In(e){return e.tail==null}function Ds(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function dr(e){if(e.tail!=null)return e.head;throw new Error(Cs+"\\nParameter name: list")}function Le(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Cs+"\\nParameter name: list")}function he(){return ue()}function ze(e,t){return kn(e,t)}function W(e){return kn(e,ue())}function P(e){return In(e)}function Dn(e){return Ds(e)}function k(e){return dr(e)}function N(e){return Le(e)}function Jt(e){const t=Ds(e)|0,n=wo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!In(a)){vt(n,s,dr(a)),o=s+1,i=Le(a);continue e}break}})(0,e),n}function Ye(e,t,n){let r=t,o=n;for(;!In(o);)r=e(r,k(o)),o=Le(o);return r}function _o(e){return Ye((t,n)=>kn(n,t),ue(),e)}function Du(e,t,n){return Is(e,Jt(t),n)}function Tn(e,t){Ye((n,r)=>{e(r)},void 0,t)}function J(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=kn(pe(r,e),n);return n}function x(e){return J(e,ue())}function Tu(e){let t,n;if(Je(e))return x(e);if(e instanceof ve)return e;{const r=ue();let o=r;const i=ne(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new ve(u,void 0),t.tail=n,n)}}finally{q(i)}const s=o,a=ue();return s.tail=a,Le(r)}}function Ru(e){const t=ue();let n=t;const r=s=>{n=Ye((a,u)=>{const l=new ve(u,void 0);return a.tail=l,l},n,s)};if(Je(e))e.forEach(r);else if(e instanceof ve)Tn(r,e);else{const s=ne(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{q(s)}}const o=n,i=ue();return o.tail=i,Le(t)}function Rn(e,t){return Ye((n,r)=>kn(r,n),t,_o(e))}function xt(e,t){const n=ue(),r=Ye((i,s)=>{const a=new ve(e(s),void 0);return i.tail=a,a},n,t),o=ue();return r.tail=o,Le(n)}function Mu(e,t){return(r=>{e:for(;;){const o=r;if(In(o))return;{const i=e(dr(o));if(i==null){r=Le(o);continue e}else return i}}})(t)}function Fu(e,t){return Mu(n=>e(n)?Fe(n):void 0,t)}function Ou(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(In(s))return;if(e(dr(s)))return i;r=i+1,o=Le(s);continue e}})(0,t)}function Nu(e,t){const n=ue(),r=Ye((i,s)=>{if(e(s)){const a=new ve(s,void 0);return i.tail=a,a}else return i},n,t),o=ue();return r.tail=o,Le(n)}function Pu(e,t){const n=ue(),r=ue(),o=n,i=Ye((u,l)=>{let f,c;const m=u[0],p=u[1];return e(l)?[(f=new ve(l,void 0),m.tail=f,f),p]:[m,(c=new ve(l,void 0),p.tail=c,c)]},[o,r],t),s=ue();i[0].tail=s;const a=ue();return i[1].tail=a,[Le(o),Le(r)]}function Bu(e,t){const n=ue(),r=Ye((i,s)=>{const a=e(s);if(a==null)return i;{const u=new ve(b(a),void 0);return i.tail=u,u}},n,t),o=ue();return r.tail=o,Le(n)}function Ts(e,t,n){return Ou(r=>n.Equals(e,r),t)!=null}function ju(e,t){const n=Jt(t);return n.sort(e),x(n)}function $u(e,t,n){return ju((r,o)=>n.Compare(e(r),e(o))*-1,t)}function Hu(e){return new h(0,[e])}function Rs(e){return new h(1,[e])}class h extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function wt(e,t){return t.tag===0?Hu(e(t.fields[0])):Rs(t.fields[0])}function Uu(e,t){return t.tag===0?e(t.fields[0]):Rs(t.fields[0])}class E extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Dt extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ms(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Vu(e,t){switch(e.tag){case 2:return fu(Ms(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ms(t)}}const Lu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Fs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,zu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Gu(e){function t(r){return r.replace(Fs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Lu.test(n))return yu(n,"{","}","(",")");if(Fs.test(n))return t(n);if(zu.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 Wu(e,t){try{return t.contents=Gu(e),!0}catch{return!1}}var yo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(yo||(yo={}));function Qu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Os(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 qu(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 Zu(e,t){if(t&yo.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 Ju(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Zu(i,t),!qu(n).test(s))return Qu(o,n)}return null}function Ku(e,t,n,r,o){const i=Ju(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,u]=Os(!0,r);!n&&i.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=Os(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Kt(e,t,n,r,o){try{return o.contents=Ku(e,t,n,r),!0}catch{return!1}}function Ns(e,t){Xu(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Xu(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 Yu(){return Ns(-621355968e5,0)}function ef(e){const[t,n]=hs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ns(t.getTime(),r)}function tf(e,t){try{return t.contents=ef(e),!0}catch{return!1}}function Ps(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return nf(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function nf(e){return Number(BigInt(e)/10000n)}function rf(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 Ps(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Ps(o,u,l,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function of(e,t){try{return t.contents=rf(e),!0}catch{return!1}}function sf(e){throw new Error(e)}const af="Enumeration already finished.",lf="Enumeration has not started. Call MoveNext.",Bs="The input sequence has an insufficient number of elements.",cf="Reset is not supported on this enumerator.";function uf(){throw new Error(cf)}function bo(){throw new Error(lf)}function Ao(){throw new Error(af)}class ff{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ne(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ae(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{q(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function df(e){return new ff(e)}class pf{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"(){uf()}Dispose(){this.dispose()}}function pr(e,t,n){return new pf(e,t,n)}function hf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{q(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{q(a)}finally{t=void 0}}};return pr(()=>(r?o&&Ao():bo(),i!=null?b(i):Ao()),()=>{let a;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Fe(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{q(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ne(a)):(s(),u=!1)}else t=ne(e)}return b(u)}},()=>{o||s()})}function mf(e,t){return pr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{q(t)}finally{}})}function js(e,t,n){let r=!1,o,i=Fe(e());const s=()=>{if(i!=null){const u=b(i);try{n(u)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return pr(()=>(r||bo(),o!=null?b(o):Ao()),()=>{if(r||(r=!0),i!=null){const u=b(i);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(o=l,!0):(a(),!1)}else return!1},s)}function gf(e,t){let n,r=t;return pr(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return bo()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function wf(e,t){t==null&&sf(e)}function Xt(e){return df(e)}function Tt(e){return wf("source",e),ne(e)}function M(e){return Xt(()=>ne(e()))}function $s(e){return Xt(()=>hf(e))}function _f(e,t){return Xt(()=>gf(e,t))}function Mn(){return M(()=>new Array(0))}function R(e){return M(()=>vu(e))}function b0(e){return e}function yf(e){return e instanceof ve?Jt(e):Array.from(e)}function Ge(e){return Je(e)?x(e):e instanceof ve?e:Tu(e)}function bf(e,t,n){return Xt(()=>js(e,t,n))}function Af(e,t,n){return Xt(()=>{let r=-1;return js(e,o=>(r=r+1|0,t(r,o)),n)})}function $(e,t){return $s([e,t])}function vf(e,t,n){const r=Tt(t);try{const o=Tt(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{q(o)}}finally{q(r)}}function Yt(e,t,n){const r=Tt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function Hs(e,t,n){const r=Tt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function Us(e,t){Hs((n,r)=>{e(r)},void 0,t)}function et(e,t){return bf(()=>Tt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Fe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{q(n)})}function xf(e){return M(()=>xu(yf(e)))}function Sf(e,t){return Xt(()=>{const n=Tt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bs+"\\nParameter name: source");return mf(()=>{},n)}catch(r){throw q(n),r}})}function Cf(e,t){return Af(()=>Tt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Fe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bs+"\\nParameter name: source")}else return},n=>{q(n)})}function Fn(e,t){return M(()=>$s(et(e,t)))}class Vs{constructor(t,n){this.k=t,this.v=n}}function hr(e,t){return new Vs(e,t)}function xe(e){return e.k}function Oe(e){return e.v}class se extends Vs{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function mr(e,t,n,r,o){return new se(e,t,n,r,o)}function Se(e){return e.left}function Ce(e){return e.right}function Rt(e){return e.h}function A0(){}function Ls(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof se){const i=o;e=Ls(n+1,Se(i)),t=Ce(i);continue e}else return n+1|0}else return n|0}}function Ef(e){return Ls(0,e)}function tt(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof se?(o=c,Rt(o)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof se?(i=c,Rt(i)):1}else u=0;const f=(s<u?u:s)|0;return f===0?hr(t,n):mr(t,n,e,r,f+1)}function zs(e,t,n,r){let o,i,s,a,u,l,f,c,m;const p=e;if(p!=null){const w=b(p);m=w instanceof se?(o=w,Rt(o)):1}else m=0;let g;const _=r;if(_!=null){const w=b(_);g=w instanceof se?(i=w,Rt(i)):1}else g=0;if(g>m+2){const w=b(r);if(w instanceof se){const y=w;if(s=Se(y),(s!=null?(a=b(s),a instanceof se?(u=a,Rt(u)):1):0)>m+1){const C=b(Se(y));if(C instanceof se){const T=C;return tt(tt(e,t,n,Se(T)),xe(T),Oe(T),tt(Ce(T),xe(y),Oe(y),Ce(y)))}else throw new Error("internal error: Map.rebalance")}else return tt(tt(e,t,n,Se(y)),xe(y),Oe(y),Ce(y))}else throw new Error("internal error: Map.rebalance")}else if(m>g+2){const w=b(e);if(w instanceof se){const y=w;if(l=Ce(y),(l!=null?(f=b(l),f instanceof se?(c=f,Rt(c)):1):0)>g+1){const C=b(Ce(y));if(C instanceof se){const T=C;return tt(tt(Se(y),xe(y),Oe(y),Se(T)),xe(T),Oe(T),tt(Ce(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return tt(Se(y),xe(y),Oe(y),tt(Ce(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return tt(e,t,n,r)}function en(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,xe(o))|0;if(o instanceof se){const s=o;return i<0?zs(en(e,t,n,Se(s)),xe(s),Oe(s),Ce(s)):i===0?mr(t,n,Se(s),Ce(s),Rt(s)):zs(Se(s),xe(s),Oe(s),en(e,t,n,Ce(s)))}else return i<0?mr(t,n,void 0,r,2):i===0?hr(t,n):mr(t,n,r,void 0,2)}else return hr(t,n)}function Gs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,xe(s))|0;if(a===0)return Fe(Oe(s));if(s instanceof se){const u=s;e=r,t=o,n=a<0?Se(u):Ce(u);continue e}else return}else return}}function kf(e,t,n){const r=Gs(e,t,n);if(r==null)throw new Error;return b(r)}function If(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,xe(s))|0;if(s instanceof se){const u=s;if(a<0){e=r,t=o,n=Se(u);continue e}else{if(a===0)return!0;e=r,t=o,n=Ce(u);continue e}}else return a===0}else return!1}}function Ws(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof se){const i=o;Ws(n,Se(i)),n(xe(i),Oe(i)),e=n,t=Ce(i);continue e}else n(xe(o),Oe(o))}break}}function Df(e,t){Ws(e,t)}function Tf(e,t,n){let r=n;Df((o,i)=>{vt(t,r,[o,i]),r=r+1|0},e)}function Rf(e,t){return Ye((n,r)=>en(e,r[0],r[1],n),void 0,t)}function Mf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=en(r,s[0],s[1],o),n=i;continue e}else return o}}function Ff(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=pe(r,t);n=en(e,o[0],o[1],n)}return n}function Qs(e,t){if(Je(t))return Ff(e,t);if(t instanceof ve)return Rf(e,t);{const n=ne(t);try{return Mf(e,void 0,n)}finally{q(n)}}}class Of extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function qs(e){e:for(;;){const t=e;if(P(t))return he();{const n=N(t),r=k(t);if(r!=null){const o=b(r);if(o instanceof se){const i=o;e=J([Se(i),hr(xe(i),Oe(i)),Ce(i)],n);continue e}else return t}else{e=n;continue e}}}}function Zs(e){return new Of(qs(W(e)),!1)}function Nf(){throw new Error("enumeration not started")}function Pf(){throw new Error("enumeration already finished")}function Js(e){if(e.started){const t=e.stack;if(P(t))return Pf();if(k(t)!=null){const n=b(k(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[xe(n),Oe(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Nf()}function Bf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=qs(N(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function Ks(e){let t=Zs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Js(t)},"System.Collections.IEnumerator.get_Current"(){return Js(t)},"System.Collections.IEnumerator.MoveNext"(){return Bf(t)},"System.Collections.IEnumerator.Reset"(){t=Zs(e)},Dispose(){}}}class gr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Uf(this)|0}Equals(t){const n=this;if(t instanceof gr){const r=t,o=ne(n);try{const i=ne(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ke(u[0],l[0])&&ke(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{q(i)}}finally{q(o)}}else return!1}toString(){return"map ["+Me("; ",et(n=>gu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ks(this.tree)}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(this.tree)}CompareTo(t){const n=this;if(t instanceof gr)return vf((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:$e(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ys(n,t[0])&&ke(Xs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tf(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vo(this)|0}get size(){return vo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return et(n=>[n[0],n[1]],this)}get(t){return Xs(this,t)}has(t){return Ys(this,t)}keys(){return et(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return et(n=>n[1],this)}forEach(t,n){const r=this;Us(o=>{t(o[1],o[0],r)},r)}}function wr(e,t){return new gr(e,t)}function jf(e){return wr(e,void 0)}function $f(e,t,n){return wr(e.comparer,en(e.comparer,t,n,e.tree))}function Xs(e,t){return kf(e.comparer,t,e.tree)}function vo(e){return Ef(e.tree)}function Ys(e,t){return If(e.comparer,t,e.tree)}function Hf(e,t){return Gs(e.comparer,t,e.tree)}function Uf(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=ne(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{q(r)}return n|0}function Vf(e,t,n){return $f(n,e,t)}function Lf(e,t){return Hf(t,e)}function zf(e,t){return wr(t,Qs(t,e))}function Gf(e,t){return wr(t,Qs(t,e))}function ea(e){return jf(e)}class ta{constructor(t){this.k=t}}function Ne(e){return new ta(e)}function F(e){return e.k}class B extends ta{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Pe(e,t,n,r){return new B(e,t,n,r)}function L(e){return e.left}function H(e){return e.right}function tn(e){return e.h}function v0(){}function na(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=L(i),t=na(H(i),r+1);continue e}else return r+1|0}else return r|0}}function Wf(e){return na(e,0)}function nt(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof B?(r=f,tn(r)):1}else i=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof B?(o=f,tn(o)):1}else a=0;const l=(i<a?a:i)|0;return l===0?Ne(t):Pe(t,e,n,l+1)}function ra(e,t,n){let r,o,i,s,a,u,l,f,c;const m=e;if(m!=null){const _=b(m);c=_ instanceof B?(r=_,tn(r)):1}else c=0;let p;const g=n;if(g!=null){const _=b(g);p=_ instanceof B?(o=_,tn(o)):1}else p=0;if(p>c+2){const _=b(n);if(_ instanceof B){const w=_;if(i=L(w),(i!=null?(s=b(i),s instanceof B?(a=s,tn(a)):1):0)>c+1){const y=b(L(w));if(y instanceof B){const C=y;return nt(nt(e,t,L(C)),F(C),nt(H(C),F(w),H(w)))}else throw new Error("internal error: Set.rebalance")}else return nt(nt(e,t,L(w)),F(w),H(w))}else throw new Error("internal error: Set.rebalance")}else if(c>p+2){const _=b(e);if(_ instanceof B){const w=_;if(u=H(w),(u!=null?(l=b(u),l instanceof B?(f=l,tn(f)):1):0)>p+1){const y=b(H(w));if(y instanceof B){const C=y;return nt(nt(L(w),F(w),L(C)),F(C),nt(H(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return nt(L(w),F(w),nt(H(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return nt(e,t,n)}function nn(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,F(r))|0;if(r instanceof B){const i=r;return o<0?ra(nn(e,t,L(i)),F(i),H(i)):o===0?n:ra(L(i),F(i),nn(e,t,H(i)))}else{const i=e.Compare(t,F(r))|0;return i<0?Pe(t,void 0,n,2):i===0?n:Pe(t,n,void 0,2)}}else return Ne(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,F(s))|0;if(s instanceof B){const u=s;if(a<0){e=r,t=o,n=L(u);continue e}else{if(a===0)return!0;e=r,t=o,n=H(u);continue e}}else return a===0}else return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof B){const i=o;ia(n,L(i)),n(F(i)),e=n,t=H(i);continue e}else n(F(o))}break}}class Qf extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function sa(e){e:for(;;){const t=e;if(P(t))return he();{const n=k(t),r=N(t);if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=J([L(i),Ne(F(i)),H(i)],r);continue e}else return t}else{e=r;continue e}}}}function aa(e){return new Qf(sa(W(e)),!1)}function qf(){throw new Error("Enumeration not started")}function Zf(){throw new Error("Enumeration already started")}function la(e){if(e.started){const t=e.stack;if(P(t))return Zf();if(k(t)!=null){const n=b(k(t));return F(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return qf()}function Jf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sa(N(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return la(t)},"System.Collections.IEnumerator.get_Current"(){return la(t)},"System.Collections.IEnumerator.MoveNext"(){return Jf(t)},"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function Kf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(P(o))return P(i)?0:-1;if(P(i))return 1;if(k(i)!=null)if(k(o)!=null){const s=b(k(o)),a=b(k(i));if(s instanceof B){const u=s;if(L(u)==null)if(a instanceof B){const l=a;if(L(l)==null){const f=r.Compare(F(u),F(l))|0;if(f!==0)return f|0;e=r,t=ze(H(u),N(o)),n=ze(H(l),N(i));continue e}else{let f,c,m,p,g;switch(P(o)?P(i)?f=2:k(i)!=null?(f=1,p=N(i),g=b(k(i))):f=2:k(o)!=null?(f=0,c=N(o),m=b(k(o))):P(i)?f=2:k(i)!=null?(f=1,p=N(i),g=b(k(i))):f=2,f){case 0:if(m instanceof B){const _=m;e=r,t=J([L(_),Pe(F(_),void 0,H(_),0)],c),n=i;continue e}else{e=r,t=J([void 0,Ne(F(m))],c),n=i;continue e}case 1:if(g instanceof B){const _=g;e=r,t=o,n=J([L(_),Pe(F(_),void 0,H(_),0)],p);continue e}else{e=r,t=o,n=J([void 0,Ne(F(g))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(F(u),F(a))|0;if(l!==0)return l|0;e=r,t=ze(H(u),N(o)),n=ze(void 0,N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=J([L(g),Pe(F(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=J([void 0,Ne(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=J([L(g),Pe(F(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=J([void 0,Ne(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof B){const u=a;if(L(u)==null){const l=r.Compare(F(s),F(u))|0;if(l!==0)return l|0;e=r,t=ze(void 0,N(o)),n=ze(H(u),N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=J([L(g),Pe(F(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=J([void 0,Ne(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=J([L(g),Pe(F(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=J([void 0,Ne(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(F(s),F(a))|0;if(u!==0)return u|0;e=r,t=N(o),n=N(i);continue e}}else{b(k(i));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=J([L(c),Pe(F(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Ne(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=J([L(c),Pe(F(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=J([void 0,Ne(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){b(k(o));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=J([L(c),Pe(F(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Ne(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=J([L(c),Pe(F(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=J([void 0,Ne(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=N(o),n=N(i);continue e}}}function ua(e,t,n){return t==null?n==null?0:-1:n==null?1:Kf(e,W(t),W(n))|0}function Xf(e,t,n){let r=n;ia(o=>{vt(t,r,o),r=r+1|0},e)}function Yf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=nn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function ed(e,t){return fr((n,r)=>nn(e,r,n),void 0,t)}function td(e,t){return Ye((n,r)=>nn(e,r,n),void 0,t)}function fa(e,t){if(Je(t))return ed(e,t);if(t instanceof ve)return td(e,t);{const n=ne(t);try{return Yf(e,void 0,n)}finally{q(n)}}}class xo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return od(this)|0}Equals(t){let n;const r=this;return t instanceof xo&&(n=t,ua(rn(r),rt(r),rt(n))===0)}toString(){return"set ["+Me("; ",et(n=>ae(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ua(rn(n),rt(n),rt(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 oa(rn(n),t,rt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Xf(rt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return So(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return So(this)|0}GetEnumerator(){return ca(rt(this))}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(rt(this))}get size(){return So(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 da(this,t)}keys(){return et(n=>n,this)}values(){return et(n=>n,this)}entries(){return et(n=>[n,n],this)}forEach(t,n){const r=this;Us(o=>{t(o,o,r)},r)}}function _r(e,t){return new xo(e,t)}function rn(e){return e.comparer}function rt(e){return e.tree}function nd(e){return _r(e,void 0)}function rd(e,t){return _r(rn(e),nn(rn(e),t,rt(e)))}function So(e){return Wf(rt(e))}function da(e,t){return oa(rn(e),t,rt(e))}function od(e){let t=0;const n=ne(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{q(n)}return Math.abs(t)|0}function Co(e,t){return da(t,e)}function id(e,t){return rd(t,e)}function sd(e){return nd(e)}function ad(e,t){return _r(t,fa(t,e))}function ld(e,t){return _r(t,fa(t,e))}function On(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
4
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
5
|
-
`:" ")}}function
|
|
6
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function cd(e,t){const n=t.tag===2?On(t.fields[0],t.fields[1],!0):t.tag===1?On(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?On(t.fields[0],t.fields[1],!0):t.tag===4?On(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
7
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
8
9
|
|
|
9
|
-
`+
|
|
10
|
+
`+Me(`
|
|
10
11
|
|
|
11
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:On(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function pa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new h(1,[cd(o[0],o[1])])}else return new h(0,[r.fields[0]])}function on(e,t){try{return pa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function ha(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new E(0,["a string",t])]])}function ud(e,t){if(typeof t=="string"){const n=t;return n.length===1?new h(0,[n[0]]):new h(1,[[e,new E(0,["a single character string",t])]])}else return new h(1,[[e,new E(0,["a char",t])]])}function fd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Wu(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a guid",t])]])}else return new h(1,[[e,new E(0,["a guid",t])]])}function dd(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new E(0,["null",t])]])}const ma=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new h(0,[(o+128&255)-128]):new h(1,[[n,new E(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new h(1,[[n,new E(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,8,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a sbyte",r])]])}else return new h(1,[[n,new E(0,["a sbyte",r])]])},ga=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new h(0,[o&255]):new h(1,[[n,new E(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new h(1,[[n,new E(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,8,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a byte",r])]])}else return new h(1,[[n,new E(0,["a byte",r])]])},wa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new h(0,[(o+32768&65535)-32768]):new h(1,[[n,new E(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new h(1,[[n,new E(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,16,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int16",r])]])}else return new h(1,[[n,new E(0,["an int16",r])]])},_a=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new h(0,[o&65535]):new h(1,[[n,new E(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new h(1,[[n,new E(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,16,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint16",r])]])}else return new h(1,[[n,new E(0,["an uint16",r])]])},ya=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new h(0,[~~o]):new h(1,[[n,new E(1,["an int",o,"Value was either too large or too small for an int"])]]):new h(1,[[n,new E(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,32,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int",r])]])}else return new h(1,[[n,new E(0,["an int",r])]])},ba=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new h(0,[o>>>0]):new h(1,[[n,new E(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new h(1,[[n,new E(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,32,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint32",r])]])}else return new h(1,[[n,new E(0,["an uint32",r])]])};function pd(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new E(0,["a boolean",t])]])}function hd(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float",t])]])}function md(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float32",t])]])}function gd(e,t){if(typeof t=="string"){let n,r=ou();return n=[su(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[au(n[1])]):new h(1,[[e,new E(0,["a datetime",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function wd(e,t){if(typeof t=="string"){let n,r=Yu();return n=[tf(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function _d(e,t){if(typeof t=="string"){let n,r=0;return n=[of(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a timespan",t])]])}else return new h(1,[[e,new E(0,["a timespan",t])]])}function Aa(e,t,n,r){let o;const i=n+".["+it(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,pe(e,s)):new h(1,[[i,new E(5,["a longer array. Need index `"+it(e)+"` but there are only `"+(o=s.length,it(o))+"` entries",r])]])}else return new h(1,[[i,new E(0,["an array",r])]])}function yd(e,t,n){return n==null?new h(0,[void 0]):wt(Fe,e(t,n))}function va(e,t,n){if(Array.isArray(n)){let r=-1;return wt(_o,fr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+it(r)+"]",i);return s.tag===0?new h(0,[ze(s.fields[0],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[he()]),n))}else return new h(1,[[t,new E(0,["a list",n])]])}function bd(e,t,n){if(Array.isArray(n)){let r=-1;return wt(xf,fr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+it(r)+"]",i);return s.tag===0?new h(0,[$([s.fields[0]],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[[]]),n))}else return new h(1,[[t,new E(0,["a seq",n])]])}function xa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return fr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],u=e(t+".["+it(r)+"]",s);return u.tag===0?(vt(a,r,u.fields[0]),new h(0,[a])):new h(1,[u.fields[0]])}else return i},new h(0,[wo(new Array(o.length),0,o.length,null)]),o)}else return new h(1,[[t,new E(0,["an array",n])]])}function Ad(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new h(1,[[t,new E(7,[a])]]);{const u=pa(t,V(k(s)),n);if(u.tag===1){o=N(s),i=Rn(a,W(u.fields[0]));continue e}else return new h(0,[u.fields[0]])}}})(e,he())}function vd(e,t,n){return new h(0,[e])}function Sa(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new h(1,[o.fields[0]])}function xd(e,t,n,r){const o=t(n,r);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[e(o.fields[0])])}function Sd(e,t){let n;const r=e;return n=o=>i=>Aa(0,r,o,i),o=>i=>Sa(ao(s=>{let a;const u=t;return a=l=>f=>Aa(1,u,l,f),l=>f=>Sa((c,m,p)=>vd([s,c]),V(a),l,f)}),V(n),o,i)}function Cd(e){return zf(e,{Compare:$e})}function Ed(e){return ld(e,{Compare:$e})}function kd(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Is((r,o)=>{const i=r[0];return o.tag===0?wt(s=>ze(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new h(0,[he()])):new h(1,[[t,new E(0,["an object",n])]])}function Id(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Hs((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new h(0,[ze([s.fields[0],a.fields[0]],o.fields[0])]):new h(1,[a.fields[0]])}else return new h(1,[s.fields[0]])}else return o},new h(0,[he()]),Object.keys(r)):new h(1,[[n,new E(0,["an object",r])]])}function Ca(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new h(1,[[n,new E(6,[(o=r.length|0,Ve(Re("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new h(0,[he()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const u=s.fields[0],l=Ve(Re("%s[%i]"))(n)(a),f=pe(a-e,t),c=pe(a,r);s=wt(m=>ze(m,u),f(l)(c))}return wt(_o,s)}}function Ea(e,t,n,r,o,i){const s=Su(a=>fo(a)===r,Uc(n));if(s!=null){const a=s,u=gt(l=>ot(e,t,!1,l[1]),Gc(a));return wt(l=>Wc(a,Jt(l)),u.length===0&&i.length<=1?new h(0,[he()]):Ca(1,u,o,i))}else return new h(1,[[o,new E(6,["Cannot find case "+r+" in "+de(n)])]])}function ka(e,t,n,r){let o;const i=new Xe(At());let s;const a=de(r);s=a===""?e:Vf(a,i,e);let u;if(zc(r)){const l=gt(f=>[Vu(t,fo(f)),ot(s,t,!1,f[1])],sr(r));u=f=>c=>wt(m=>Qc(r,Jt(m)),kd(l,f,c))}else if(Lc(r))u=l=>f=>{if(typeof f=="string")return Ea(s,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Uu(m=>Ea(s,t,r,m,l,c),ha(l+"[0]",pe(0,c)))}else return new h(1,[[l,new E(0,["a string or array",f])]])};else if(n)u=l=>f=>new h(1,[[l,new E(2,["an extra coder for "+de(r),f])]]);else throw new Error((o=de(r),Ve(Re(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
12
13
|
|
|
13
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(
|
|
14
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=u,u}function ot(e,t,n,r){let o,i,s,a;const u=de(r),l=Lf(u,e);if(l==null)if(Pc(r)){const f=ot(e,t,!1,ir(r));return c=>m=>xa(V(f),c,m)}else if(cs(r))switch(de($c(r))){case"System.SByte":return c=>m=>{const p=r,g=c,_=m,w=ma(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>m=>{const p=r,g=c,_=m,w=ga(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>m=>{const p=r,g=c,_=m,w=wa(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,dc(y))]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>m=>{const p=r,g=c,_=m,w=_a(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>m=>{const p=r,g=c,_=m,w=ya(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,it(y))]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>m=>{const p=r,g=c,_=m,w=ba(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};default:{const c=de(r),m=pu(Re(`Cannot generate auto decoder for %s.
|
|
14
15
|
Thoth.Json.Net only support the following enum types:
|
|
15
16
|
- sbyte
|
|
16
17
|
- byte
|
|
@@ -19,49 +20,23 @@ Thoth.Json.Net only support the following enum types:
|
|
|
19
20
|
- int
|
|
20
21
|
- uint32
|
|
21
22
|
If you can't use one of these types, please pass an extra decoder.
|
|
22
|
-
`))(u);return f=>m(f)}}else if(wl(r))if(Vo(r)){const d=xt(u=>St(e,t,!1,u),bl(r));return u=>m=>Array.isArray(m)?Zt(f=>Zp(er(f)),zc(0,d,u,m)):new w(1,[[u,new T(0,["an array",m])]])}else switch(oe(vl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=St(e,t,!0,le(0,nt(r))),u=>m=>Ch(K(i),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=St(e,t,!1,le(0,nt(r))),u=>m=>Pc(K(o),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return a=St(e,t,!1,le(0,nt(r))),u=>m=>Sh(K(a),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=St(e,t,!1,le(0,nt(r))),m=St(e,t,!1,le(1,nt(r)));let f;const h=y([v=>g=>jh(K(u),K(m),v,g),(s=Th(K(u),K(m)),v=>g=>Pc(K(s),v,g))]);return f=v=>g=>Eh(h,v,g),v=>g=>Dh(Rh,K(f),v,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=St(e,t,!1,le(0,nt(r)));return m=>f=>{const h=Bc(K(u),m,f);return h.tag===0?new w(0,[Fh(h.fields[0])]):new w(1,[h.fields[0]])}}default:return Uc(e,t,n,r)}else switch(l){case"System.Boolean":return d=>u=>yh(d,u);case"Microsoft.FSharp.Core.Unit":return d=>u=>vh(d,u);case"System.String":return d=>u=>Tc(d,u);case"System.Char":return d=>u=>gh(d,u);case"System.SByte":return Rc;case"System.Byte":return Fc;case"System.Int16":return Mc;case"System.UInt16":return jc;case"System.Int32":return $c;case"System.UInt32":return Nc;case"System.Double":return d=>u=>xh(d,u);case"System.Single":return d=>u=>bh(d,u);case"System.DateTime":return d=>u=>_h(d,u);case"System.DateTimeOffset":return d=>u=>Ah(d,u);case"System.TimeSpan":return d=>u=>kh(d,u);case"System.Guid":return d=>u=>wh(d,u);case"System.Object":return d=>u=>new w(0,[u]);default:return Uc(e,t,n,r)}else{const d=c;return u=>m=>d.contents(u)(m)}}function $h(e){return ta({Compare:li})}function pn(e,t,n){const r=_i(t,new _t(0,[]));return St($h(),r,!1,e)}class ji extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Nh(e){return new ji(e)}const Oh=new ji("Import.RunInvites"),Ph=new ji("Import.RunImports"),Vc=new ji("Import.ConfigureSCIM");class Bh extends Z{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function oa(e){return Ko(Oh,e.Roles,{Equals:Ae,GetHashCode:No})}function aa(e){return Ko(Ph,e.Roles,{Equals:Ae,GetHashCode:No})}function qc(e){return Ko(Vc,e.Roles,{Equals:Ae,GetHashCode:No})}function Hh(e){let t;const n=Go(e??"",["."],void 0,0);if(!Df((r,i)=>r===i,n)&&n.length===3){const r=le(1,n),i=atob(r);t=dn(K(pn(gi(["Name",ke],["Roles",Up(ke)]),new _t(1,[]))),i)}else t=new w(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new Bh(r.Name,y(xt(Nh,r.Roles)))}}class zh extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function sa(){return cn("Import.Dto.Shared.AdminApi.Read.ImportStageDto",[],zh,()=>[[],[]])}class Lh extends Z{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Uh(){return Ze("Import.Dto.Shared.AdminApi.Read.FailedRowInfoDto",[],Lh,()=>[["RowId",Ie],["Reason",ke]])}class Vh extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function qh(){return cn("Import.Dto.Shared.AdminApi.Read.BenefitsRequestTypeDto",[],Vh,()=>[[],[]])}class Wh extends Z{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Gh(){return Ze("Import.Dto.Shared.AdminApi.Read.BenefitsRequestInfoDto",[],Wh,()=>[["User",ke],["ProfileCount",Ie],["RequestType",qh()],["RequestedAt",yt("System.DateTime")]])}class Qh extends Z{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=a}}function Kh(){return Ze("Import.Dto.Shared.AdminApi.Read.RunningStageDto",[],Qh,()=>[["Stage",sa()],["InputRowCount",Ie],["StartTime",yt("System.DateTime")],["SucceededRowCount",Qn(Ie)],["FailedRowCount",Qn(Ie)],["RemainingRowCount",Qn(Ie)]])}class Zh extends Z{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=a}}function Wc(){return Ze("Import.Dto.Shared.AdminApi.Read.CompletedStageDto",[],Zh,()=>[["Stage",sa()],["InputRowCount",Ie],["SucceededRowCount",Ie],["FailedRowCount",Ie],["StartTime",yt("System.DateTime")],["StopTime",yt("System.DateTime")]])}class Jh extends Z{constructor(t,n,r,i,o,a,s){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=a,this.StartTime=s}}function Gc(){return Ze("Import.Dto.Shared.AdminApi.Read.ActiveImportDto",[],Jh,()=>[["ImportId",Ie],["User",ke],["Filename",ke],["NumberOfRecords",Ie],["CurrentStage",Qn(Kh())],["CompletedStages",jt(Wc())],["StartTime",yt("System.DateTime")]])}class Xh extends Z{constructor(t,n,r,i,o,a,s,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=a,this.StartTime=s,this.StopTime=l}}function Qc(){return Ze("Import.Dto.Shared.AdminApi.Read.PastImportDto",[],Xh,()=>[["ImportId",Ie],["User",ke],["Filename",ke],["NumberOfRecords",Ie],["CompletedStages",jt(Wc())],["BenefitsRequests",jt(Gh())],["StartTime",yt("System.DateTime")],["StopTime",yt("System.DateTime")]])}class Kc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Yh(){return cn("Import.Dto.Shared.AdminApi.Read.ImportStatusDto",[],Kc,()=>[[["Item",Gc()]],[["Item",Qc()]]])}class eg extends Z{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function tg(){return Ze("Import.Dto.Shared.AdminApi.Read.AccountImportsDto",[],eg,()=>[["ActiveImport",Qn(Gc())],["ImportHistory",jt(Qc())]])}class ng extends Z{constructor(t,n){super(),this.Column=t,this.Message=n}}function rg(){return Ze("Import.Dto.Shared.AdminApi.Read.FieldError",[],ng,()=>[["Column",ke],["Message",ke]])}class ig extends Z{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function og(){return Ze("Import.Dto.Shared.AdminApi.Read.RowValidationError",[],ig,()=>[["RowId",Ie],["FieldErrors",jt(rg())]])}class ag extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function sg(){return cn("Import.Dto.Shared.AdminApi.Read.ApiError",[],ag,()=>[[],[],[],[],[],[],[["Item",ke]],[],[],[],[["Item",jt(og())]],[],[],[],[],[["Item",gi(["Message",ke])]],[["Item",gi(["Message",ke])]]])}class lg extends Z{constructor(t,n,r,i,o,a,s){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=i|0,this.FailedRowCount=o|0,this.StartTime=a,this.StopTime=s}}function cg(){return Ze("Import.Dto.Shared.AdminApi.Read.CompletedStageDetailsDto",[],lg,()=>[["Stage",sa()],["FailedRows",jt(Uh())],["TotalRowCount",Ie],["SucceededRowCount",Ie],["FailedRowCount",Ie],["StartTime",yt("System.DateTime")],["StopTime",yt("System.DateTime")]])}class ug extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function dg(){return cn("Import.Dto.Shared.AdminApi.Read.ValidationRule",[],ug,()=>[[["Item",Ie]],[["Item",ke]],[["Item",jt(ke)]]])}class pg extends Z{constructor(t,n,r,i,o){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=i,this.ValidationRules=o}}function fg(){return Ze("Import.Dto.Shared.AdminApi.Read.ColumnDefinitionDto",[],pg,()=>[["DisplayName",ke],["PropName",ke],["Description",Qn(ke)],["Required",Lo],["ValidationRules",jt(dg())]])}class mg extends Z{constructor(t){super(),this.ColumnsInfo=t}}function hg(){return Ze("Import.Dto.Shared.AdminApi.Read.ImportSchemaDto",[],mg,()=>[["ColumnsInfo",jt(fg())]])}let Zc=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}};function gg(){return cn("Import.Dto.Shared.AdminApi.Read.ScimProviderDto",[],Zc,()=>[[["Item",gi(["TokenExpiresAt",yt("System.DateTime")],["TokenIsExpired",Lo])]]])}class Jc extends Z{constructor(t,n){super(),this.ScimProvider=t,this.Enabled=n}}function wg(){return Ze("Import.Dto.Shared.AdminApi.Read.ScimConfigDto",[],Jc,()=>[["ScimProvider",gg()],["Enabled",Lo]])}class vg extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraIdToken"]}}function yg(){return cn("Import.Dto.Shared.AdminApi.Read.ScimProviderAuth",[],vg,()=>[[["Item",bg()]]])}class xg extends Z{constructor(t,n){super(),this.Token=t,this.TokenExpiresAt=n}}function bg(){return Ze("Import.Dto.Shared.AdminApi.Read.EntraIdTokenPayload",[],xg,()=>[["Token",ke],["TokenExpiresAt",yt("System.DateTime")]])}class _g{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 $i extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,$i.prototype)}}class la{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>la.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Jt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new $i);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(di(n))}});else try{e(t)}catch(n){t.onError(di(n))}}}function Ag(e,t){return Jt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(di(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function kg(e){return Jt(t=>t.onSuccess(e))}class Cg{Bind(t,n){return Ag(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Jt(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 kg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Jt(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 Jt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(di(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 Jt(t=>t.onSuccess(void 0))}}const k=new Cg;function Sg(e){return new Xc(0,[e])}function Eg(e){return new Xc(1,[e])}class Xc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Ig(e){return Sg(e)}function Dg(e){return Eg(e)}function ca(e){}const Tg=new _g;function Rg(e){return Jt(t=>{e({onSuccess:n=>t.onSuccess(Ig(n)),onError:n=>t.onSuccess(Dg(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Fg(e){return Jt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Yc(e){return Jt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new $i)})})}function Mg(e,t){return jg(e,t)}function ua(e,t){return Mg(e,t)}function jg(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new la;e({onSuccess:t||ca,onError:ca,onCancel:ca,cancelToken:i||Tg,trampoline:o})}class Et extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class $g extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class da extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Br extends Z{constructor(t,n,r,i,o,a,s,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=a,this.timeout=s,this.content=l}}class lr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class eu extends Z{constructor(t,n,r,i,o,a){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=a}}function Nt(e){return new $g("Authorization",e)}const Tn=new Br("",new Et(0,[]),Fe(),!1,void 0,void 0,void 0,new da(0,[]));new eu(0,"","","",ta({Compare:li}),new lr(0,[""]));function tu(e,t){return yf(t)?new Array(0):Go(t,[e],void 0,0)}function Ng(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 Ot(e){return new Br(e,Tn.method,Tn.headers,Tn.withCredentials,Tn.overridenMimeType,Tn.overridenResponseType,Tn.timeout,Tn.content)}function Pt(e,t){return new Br(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Bt(e,t){return new Br(t.url,t.method,$r(t.headers,P(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function nu(e,t){return new Br(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fn(e){return Fg(t=>{const n=new XMLHttpRequest;n.open(Ng(e.method),e.url),n.onreadystatechange=()=>{let l,c,d,u,m,f,h;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),d=n.status|0,u=n.responseType,m=(f=n.responseType,f===""?new lr(0,[n.responseText]):f==="text"?new lr(0,[n.responseText]):f==="arraybuffer"?new lr(2,[n.response]):f==="blob"?new lr(1,[n.response]):new lr(3,[n.response])),h=Jm(If(v=>{const g=y(tu(":",v));if(!q(g))return[F(g).toLocaleLowerCase(),Le(":",W(g)).trim()]},tu(`\r
|
|
23
|
-
`,n.getAllResponseHeaders())),{Compare:li}),new eu(d,l,u,n.responseURL,h,m)))};const r=ye(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{ie(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const a=e.timeout;if(a!=null){const l=a|0;n.timeout=l|0}const s=e.content;switch(s.tag){case 1:{n.send(Ue(s.fields[0]));break}case 3:{n.send(Ue(s.fields[0]));break}case 2:{n.send(Ue(s.fields[0]));break}default:n.send()}})}class pa extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class Og{constructor(t,n,r,i){this.backendUrl=t,this.accessToken=i,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function Pg(e,t,n,r){return new Og(e,t,n,r)}function Bg(e){return k.Delay(()=>{let t,n;const r=fn((t=Pt(new Et(0,[]),Ot(`${e.backendUrl}/import/admin/schema`)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),t)));return n=k.Bind(r,i=>k.Return(new w(0,[i]))),k.Bind(n,i=>{const o=i;if(o.tag===1)return k.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===200){const s=dn(K(pn(hg(),new _t(1,[]))),a.responseText);return k.Return(s)}else return k.Return(new w(1,["Failed to get import schema"]))}})})}function Hg(e,t){return k.Delay(()=>{let n,r;const i=fn((n=Pt(new Et(0,[]),Ot(`${e.baseUrl}/${t}/status`)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),n)));return r=k.Bind(i,o=>k.Return(new w(0,[o]))),k.Bind(r,o=>{const a=o;if(a.tag===1)return k.Return(new w(1,[a.fields[0]]));{const s=a.fields[0];if(s.statusCode===200){const l=dn(K(pn(Yh(),new _t(1,[]))),s.responseText);return k.Return(l)}else return k.Return(new w(1,["Failed to get import status"]))}})})}function zg(e,t,n){return k.Delay(()=>{let r,i;const o=fn((r=Pt(new Et(0,[]),Ot(`${e.baseUrl}/${t}/stages/${n}`)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),r)));return i=k.Bind(o,a=>k.Return(new w(0,[a]))),k.Bind(i,a=>{const s=a;if(s.tag===1)return k.Return(new w(1,[s.fields[0]]));{const l=s.fields[0];if(l.statusCode===200){const c=dn(K(pn(cg(),new _t(1,[]))),l.responseText);return k.Return(c)}else return k.Return(new w(1,["Failed to get import stage details"]))}})})}function Lg(e){return k.Delay(()=>{let t,n;const r=fn((t=Pt(new Et(0,[]),Ot(e.baseUrl)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),t)));return n=k.Bind(r,i=>k.Return(new w(0,[i]))),k.Bind(n,i=>{const o=i;if(o.tag===1)return k.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];switch(a.statusCode|0){case 200:{let l;const c=dn(K(pn(tg(),new _t(1,[]))),a.responseText);return l=c.tag===1?new w(1,[c.fields[0]]):new w(0,[c.fields[0]]),k.Return(l)}case 404:return k.Return(new w(0,[void 0]));default:return k.Return(new w(1,["Failed to get account imports"]))}}})})}function Ug(e,t){return k.Delay(()=>{let n,r;const i=fn((n=nu(new da(3,[t]),Pt(new Et(1,[]),Ot(e.baseUrl))),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),n)));return r=k.Bind(i,o=>k.Return(new w(0,[o]))),k.Bind(r,o=>{const a=o;if(a.tag===1)return k.Return(new w(1,[a.fields[0]]));{const s=a.fields[0];switch(s.statusCode|0){case 201:return k.Return(new w(0,[void 0]));case 400:{let c,d;const u=dn(K(pn(sg(),new _t(1,[]))),s.responseText);return d=u.tag===1?new w(1,[new pa(1,[u.fields[0]])]):new w(0,[u.fields[0]]),c=k.Return(d),k.Bind(c,m=>{const f=m;return f.tag===1?k.Return(new w(1,[f.fields[0]])):k.Return(new w(1,[new pa(0,[f.fields[0]])]))})}default:return k.Return(new w(1,[new pa(1,["Failed to start import"])]))}}})})}function Vg(e,t){return k.Delay(()=>{let n,r;const i=fn((n=Pt(new Et(2,[]),Ot(`${e.baseUrl}/${t}/benefits/invite-all`)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),n)));return r=k.Bind(i,o=>k.Return(new w(0,[o]))),k.Bind(r,o=>{const a=o;return a.tag===1?k.Return(new w(1,[a.fields[0]])):a.fields[0].statusCode===202?k.Return(new w(0,[void 0])):k.Return(new w(1,["Failed to send invites"]))})})}function qg(e,t){return k.Delay(()=>{let n,r;const i=fn((n=Pt(new Et(2,[]),Ot(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Bt(Nt(Je(ze("Bearer %s"))(e.accessToken)),n)));return r=k.Bind(i,o=>k.Return(new w(0,[o]))),k.Bind(r,o=>{const a=o;return a.tag===1?k.Return(new w(1,[a.fields[0]])):a.fields[0].statusCode===202?k.Return(new w(0,[void 0])):k.Return(new w(1,["Failed to revoke invites"]))})})}class Wg{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function Gg(e,t){t.Subscribe(new Wg(e))}class Qg{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 Zg(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 Kg=class extends Qg{};function Zg(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 Jg{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 Kg}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 Xg(e,t){console.error(Ue(e),t)}function Yg(e,t){let n,r=new Jg(e);r.AutoReset=!1,n=r,Gg(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ru(e,t,n){jr(r=>{try{r(t)}catch(i){e(i)}},n)}function ce(){return Fe()}function Xt(e,t,n,r){return P(i=>{e(k.Delay(()=>k.Bind(Rg(t(n)),o=>{const a=o;return a.tag===0&&i(r(a.fields[0])),k.Zero()})))})}function Yt(e){Yg(1,t=>{ua(e)})}function fa(e){return e.tag===1?"tax":"profiles"}class je extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Qe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports","ScimConfiguration"]}}function iu(e){switch(e.tag){case 1:return"Past Imports";case 2:return"SCIM Configuration";default:return"Active Import"}}class ew extends Z{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class Ye extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class Hr extends Z{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}let $e=class extends Z{constructor(t,n,r,i,o){super(),this.User=t,this.CurrentTab=n,this.AccountInfo=r,this.ActiveImportTabState=i,this.ImportHistoryTabState=o}},xe=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus","SendInvites","RevokeInvites"]}};function tw(e,t){let n;return[new $e(e,(n=e.Roles,q(n)?new Qe(0,[]):q(W(n))?Ae(F(n),Vc)?new Qe(2,[]):new Qe(0,[]):new Qe(0,[])),t,new Ye(0,[]),new Hr(Fe(),void 0)),P(r=>{r(new xe(4,[new je(0,[void 0])]))})]}function nw(e,t,n){let r,i,o;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new $e(n.User,n.CurrentTab,n.AccountInfo,new Ye(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ce()];if(t.fields[0].fields[0].fields[0]==null)return[new $e(n.User,n.CurrentTab,n.AccountInfo,new Ye(1,[]),n.ImportHistoryTabState),ce()];{const a=t.fields[0].fields[0].fields[0];let s;const l=a.ActiveImport;if(l==null)s=[new Ye(1,[]),ce()];else{const c=l;s=[new Ye(4,[new Kc(0,[c])]),P(d=>{d(new xe(6,[new je(0,[c.ImportId])]))})]}return[new $e(n.User,n.CurrentTab,n.AccountInfo,s[0],new Hr(a.ImportHistory,(r=n.ImportHistoryTabState.ImportSummary,r==null?void 0:(i=r,Nf(c=>c.ImportId===i.ImportId,a.ImportHistory))))),s[1]]}}else return[n,Xt(a=>{Yt(a)},()=>Lg(e),t.fields[0].fields[0],a=>new xe(4,[new je(1,[a])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Qe(0,[]),n.AccountInfo,new Ye(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(o=n.ActiveImportTabState,o.tag===4&&o.fields[0].tag===0?P(a=>{a(new xe(6,[new je(0,[o.fields[0].fields[0].ImportId])]))}):ce())]:t.fields[0].fields[0].fields[0].tag===1?[new $e(n.User,new Qe(1,[]),n.AccountInfo,new Ye(1,[]),new Hr(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),P(a=>{a(new xe(4,[new je(0,[void 0])]))})]:[new $e(n.User,n.CurrentTab,n.AccountInfo,new Ye(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),P(a=>{a(new xe(6,[new je(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,Xt(a=>{Yt(a)},a=>k.Delay(()=>k.Bind(Yc(1e4),()=>k.ReturnFrom(Hg(e,a)))),t.fields[0].fields[0],a=>new xe(6,[new je(1,[a])]))];case 1:return[new $e(n.User,n.CurrentTab,n.AccountInfo,new Ye(1,[]),n.ImportHistoryTabState),ce()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new $e(n.User,new Qe(0,[]),n.AccountInfo,new Ye(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ce()]:[new $e(n.User,new Qe(0,[]),n.AccountInfo,new Ye(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ce()]:[n,P(a=>{a(new xe(4,[new je(0,[void 0])]))})]:[new $e(n.User,n.CurrentTab,n.AccountInfo,new Ye(2,[]),n.ImportHistoryTabState),Xt(a=>{Yt(a)},a=>Ug(e,a),t.fields[0].fields[0],a=>new xe(5,[new je(1,[a])]))];case 2:return[new $e(n.User,new Qe(1,[]),n.AccountInfo,n.ActiveImportTabState,new Hr(n.ImportHistoryTabState.PastImports,t.fields[0])),ce()];case 3:return[new $e(n.User,new Qe(1,[]),n.AccountInfo,n.ActiveImportTabState,new Hr(n.ImportHistoryTabState.PastImports,void 0)),ce()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Qe(0,[]),n.AccountInfo,new Ye(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ce()]:[n,P(a=>{a(new xe(4,[new je(0,[void 0])]))})]:[n,Xt(a=>{Yt(a)},a=>Vg(e,a),t.fields[0].fields[0],a=>new xe(7,[new je(1,[a])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Qe(0,[]),n.AccountInfo,new Ye(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ce()]:[n,P(a=>{a(new xe(4,[new je(0,[void 0])]))})]:[n,Xt(a=>{Yt(a)},a=>qg(e,a),t.fields[0].fields[0],a=>new xe(8,[new je(1,[a])]))];default:return[new $e(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),ce()]}}const rw=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-\\[1px\\]{left:1px}.left-\\[6px\\]{left:6px}.right-0{right:0}.top-0{top:0}.top-\\[1px\\]{top:1px}.top-\\[6px\\]{top:6px}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-3{margin-right:.75rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.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}.h-0{height:0px}.h-1\\.5{height:.375rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-1\\.5{width:.375rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-6{width:1.5rem}.w-\\[480px\\]{width:480px}.w-full{width:100%}.w-screen{width:100vw}.min-w-20{min-width:5rem}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[280px\\]{min-width:280px}.min-w-full{min-width:100%}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[720px\\]{max-width:720px}.flex-1{flex:1 1 0%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.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-baseline{align-items:baseline}.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-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}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.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-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.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-\\[15px\\]{border-radius:15px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.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-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / 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-300\\/20{background-color:#d1d5db33}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.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-8{padding-left:2rem;padding-right:2rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-px{padding-left:1px;padding-right:1px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-\\[11px\\]{padding-left:11px}.pl-\\[15px\\]{padding-left:15px}.pr-12{padding-right:3rem}.pr-2\\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-\\[13px\\]{padding-right:13px}.pr-\\[17px\\]{padding-right:17px}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.font-inter{font-family:Inter,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-\\[18px\\]{line-height:18px}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#2e66f7\\]{--tw-text-opacity: 1;color:rgb(46 102 247 / var(--tw-text-opacity, 1))}.text-\\[\\#686f7d\\]{--tw-text-opacity: 1;color:rgb(104 111 125 / var(--tw-text-opacity, 1))}.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-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.outline{outline-style:solid}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-offset-\\[-0\\.50px\\]{outline-offset:-.5px}.outline-offset-\\[-1px\\]{outline-offset:-1px}.outline-gray-100{outline-color:#f3f4f6}.outline-gray-200{outline-color:#e5e7eb}.outline-gray-300{outline-color:#d1d5db}.outline-gray-400{outline-color:#9ca3af}.ring{--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(3px + 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-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}.duration-300{transition-duration:.3s}.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)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / 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-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-indigo-600:focus-visible{outline-color:#4f46e5}.focus-visible\\:outline-red-600:focus-visible{outline-color:#dc2626}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:#e5e7eb}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,Ni=Ee(rw);function ou(e,t){return k.Delay(()=>{const n=document.createElement("a");let r;const i=new Blob([e],{type:"text/csv;charset=utf-8;"});return r=window.URL.createObjectURL(i),n.setAttribute("href",r),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),k.Zero()})}function Oi(e,t,n){return k.Delay(()=>k.Bind(fn(n),r=>{let i,o;const a=r,s=a.statusCode|0;return i=s|0,i>=200&&i<=299?k.Return(a):(o=s|0,(o===412||o===425||o===429?!0:o>=500)&&e>=1?k.Bind(Yc(t),()=>k.ReturnFrom(Oi(e-1,t,n))):k.Return(a))}))}function iw(e){return e}const au=ct();function Pi(e){return Array.from(e)}function ow(e){return Sr(e,"O")}function aw(e){return dm(e)}function sw(){return ct()}function lw(e){return Sr(e,"O")}function cw(e,t){return JSON.stringify(t,void 0,Ue(e))}function uw(e){return t=>Af(Bl(e,t),()=>au)}function su(e,t,n,r){let i;const o=new dt(ct());let a;const s=oe(r);a=s===""?e:hc(s,o,e);let l;if(Al(r)){const c=xt(d=>{const u=Gl(t,Kn(d)),m=en(a,t,n,d[1]);return f=>h=>{const v=Gp(f,d);return(!n||n&&v!=null)&&(h[u]=m(v)),h}},Cr(r));l=d=>Ii((u,m)=>m(d)(u),{},c)}else if(_l(r))l=c=>{const d=Wp(c,r),u=d[0],m=d[1],f=m.length|0;if(f===0)return Kn(u);{const h=f|0,v=kl(u),g=Ai(new Array(h+1),0,h+1,null);$t(g,0,Kn(u));for(let x=1;x<=h;x++){const A=en(a,t,n,le(x-1,v)[1]);$t(g,x,A(le(x-1,m)))}return g}};else throw new Error((i=oe(r),Je(ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
24
|
-
|
|
25
|
-
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 en(e,t,n,r){const i=oe(r),o=gc(i,e);if(o==null)if(gl(r)){const a=en(e,t,n,kr(r));return s=>Pi(Xe(a,s))}else if(Uo(r))switch(oe(yl(r))){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;default:{const s=oe(r);return $l(ze(`Cannot generate auto encoder for %s.
|
|
26
|
-
Thoth.Json.Net only support the following enum types:
|
|
27
|
-
- sbyte
|
|
28
|
-
- byte
|
|
29
|
-
- int16
|
|
30
|
-
- uint16
|
|
31
|
-
- int
|
|
32
|
-
- uint32
|
|
33
|
-
|
|
34
|
-
If you can't use one of these types, please pass an extra encoder.
|
|
35
|
-
|
|
36
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
37
|
-
`))(s)}}else if(wl(r))if(Vo(r)){const a=xt(s=>en(e,t,n,s),bl(r));return s=>Pi(Tm((l,c)=>le(l,a)(c),s))}else{const a=oe(vl(r));if(a==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const s=new xp(()=>uw(en(e,t,n,le(0,nt(r)))));return l=>l==null?au:s.Value(l)}else if(a==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||a==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||a==="System.Collections.Generic.IEnumerable`1[System.Object]"){const s=en(e,t,n,le(0,nt(r)));return l=>Pi(Xe(s,l))}else if(a==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const s=le(0,nt(r)),l=en(e,t,n,le(1,nt(r)));if(oe(s)==="System.String"||oe(s)==="System.Guid")return c=>Ii((d,u)=>{const m=u;return d[m[0]]=l(m[1]),d},{},c);{let c;return c=en(e,t,n,s),u=>Pi(Xe(m=>{const f=m;return[c(f[0]),l(f[1])]},u))}}else return su(e,t,n,r)}else switch(i){case"System.Boolean":return a=>a;case"Microsoft.FSharp.Core.Unit":return sw;case"System.String":return a=>a;case"System.Char":return a=>a;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;case"System.Double":return a=>a;case"System.Single":return a=>a;case"System.DateTime":return lw;case"System.DateTimeOffset":return ow;case"System.TimeSpan":return aw;case"System.Guid":return iw;case"System.Object":return a=>a;default:return su(e,t,n,r)}else{const a=o;return s=>a.contents(s)}}function dw(e){return ta({Compare:li})}function pw(e,t,n,r){const i=_i(t,new _t(0,[])),o=_i(r,!0);return en(dw(),i,o,e)}class lu extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["EntraId"]}}function fw(){return cn("Import.Dto.Shared.AdminApi.Write.ScimProviderDto",[],lu,()=>[[]])}class mw{constructor(t,n,r,i){this.accessToken=i,this.baseUrl=`${_f(t,"/")}/import/admin/partners/${n}/accounts/${r}/scim`}}function hw(e,t,n,r){return new mw(e,t,n,r)}function cu(e){return()=>k.Delay(()=>{let t,n;const r=Oi(3,3e3,(t=Pt(new Et(0,[]),Ot(`${e.baseUrl}/config`)),Bt(Nt(`Bearer ${e.accessToken}`),t)));return n=k.Bind(r,i=>k.Return(new w(0,[i]))),k.Bind(n,i=>{const o=i;if(o.tag===1)return k.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];switch(a.statusCode|0){case 200:{let l,c;const d=dn(K(pn(wg(),new _t(1,[]))),a.responseText);return c=d.tag===1?new w(1,[d.fields[0]]):new w(0,[d.fields[0]]),l=c.tag===1?new w(1,["Failed to parse SCIM configuration"]):new w(0,[c.fields[0]]),k.Return(l)}case 401:case 403:return k.Return(new w(1,["Unauthorized access to SCIM configuration"]));case 404:return k.Return(new w(0,[void 0]));default:return k.Return(new w(1,["Failed to load SCIM configuration"]))}}})})}function gw(e){return()=>k.Delay(()=>{let t,n;const r=Oi(3,3e3,nu(new da(1,[cw(0,pw(fw(),new _t(1,[]),void 0,void 0)(new lu))]),(t=Pt(new Et(2,[]),Ot(`${e.baseUrl}/config`)),Bt(Nt(`Bearer ${e.accessToken}`),t))));return n=k.Bind(r,i=>k.Return(new w(0,[i]))),k.Bind(n,i=>{const o=i;if(o.tag===1)return k.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===200){const s=dn(K(pn(yg(),new _t(1,[]))),a.responseText);return k.Return(s)}else return k.Return(new w(1,["Failed to update SCIM configuration"]))}})})}function ww(e){return()=>k.Delay(()=>{let t,n;const r=Oi(3,3e3,(t=Pt(new Et(4,[]),Ot(`${e.baseUrl}/config`)),Bt(Nt(`Bearer ${e.accessToken}`),t)));return n=k.Bind(r,i=>k.Return(new w(0,[i]))),k.Bind(n,i=>{const o=i;return o.tag===1?k.Return(new w(1,[o.fields[0]])):o.fields[0].statusCode===200?k.Return(new w(0,[void 0])):k.Return(new w(1,["Failed to revoke SCIM token"]))})})}function vw(){return Fe()}function ma(e){return Le("/",e)}function yw(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ma(t),n])}function uu(e,t,n){try{ie(n)}catch(r){e(["Error stopping subscription: "+ma(t),r])}}function xw(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+ma(n),i]);return}}function bw(e,t){jr(n=>{uu(e,n[0],n[1])},t)}function du(e,t,n,r,i,o){return jr(a=>{yw(e,a)},n),jr(a=>{uu(e,a[0],a[1])},r),$r(i,Hf(a=>xw(e,t,a[0],a[1]),o))}function _w(){return[Fe(),ph({Compare:ut}),Fe()]}function Aw(e,t,n,r,i){return ia(e,r)?[ft(e,n),r,i]:[n,dh(e,r),ft([e,t],i)]}function kw(e){return Ff((t,n)=>Aw(t[0],t[1],n[0],n[1],n[2]),e,_w())}const Cw=Fe();function pu(e,t){const n=fh(Kt(a=>a[0],e),{Compare:ut}),r=kw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,Fe(),e,Fe()];{const a=Bf(s=>ia(s[0],i),e);return[o,a[1],a[0],Pf(s=>!ia(s[0],n),r[2])]}}function Sw(e,t,n,r){const i=ut(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return a=>{const s=ut(a,t)|0;return o&&s<=0||!o&&s>=0?[a,r(a,e)]:void 0}}function Ew(e,t,n,r,i){const o=Sw(t,n,r,i);return I(()=>Sm(o,e))}function Iw(e,t,n){return Ew(e,t,n,0,(r,i)=>r+i)}class cr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Dw{constructor(t){this.state=new cr(0,[Ai(new Array(Ll(t,10)),0,Ll(t,10),null),0])}}function Tw(e){return new Dw(e)}function fu(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 cr(0,[i,n]):e.state=new cr(1,[i,n,o]),Ue(le(r,i))}else return}function Rw(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];$t(o,r,t);const a=(r+1)%o.length|0;a===i?e.state=new cr(1,[Fw(e,i,o),o.length,0]):e.state=new cr(1,[o,a,i])}else{const r=n.fields[1]|0,i=n.fields[0];$t(i,r,t);const o=(r+1)%i.length|0;e.state=new cr(1,[i,o,r])}}function Fw(e,t,n){return Array.from(I(()=>H(Fm(t,n),I(()=>H(Mm(t,n),I(()=>Or(r=>E(ct()),Iw(0,1,n.length))))))))}class ha extends Z{constructor(t,n,r,i,o,a,s){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=a,this.termination=s}}function ga(e,t,n){return new ha(e,t,r=>vw(),n,K(r=>{const i=Be(n)(r);return o=>{i(o)}}),r=>{Xg(r[0],r[1])},[r=>!1,r=>{}])}function Mw(e,t){return new ha(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function jw(e){return e.init}function $w(e,t,n,r,i,o,a){const s=Be(e)(a.init),l=ui(t)(Be(a.update)),c=ui(n)(Be(a.view)),d=ui(r)(Be(a.setState));return new ha(s,K(l),Be(i)(a.subscribe),K(c),K(d),a.onError,o(a.termination))}function Nw(e,t,n){let r;const i=n.init(t),o=i[0],a=n.subscribe(o),s=n.termination,l=Tw(10);let c=!1,d=o,u=Cw,m=!1;const f=g=>{m||(Rw(l,g),c||(c=!0,v(),c=!1))},h=Be(e)(f),v=()=>{let g,x=fu(l);for(;!m&&x!=null;){const A=C(x);if(s[0](A))bw(n.onError,u),s[1](d),m=!0;else{const S=n.update(A,d),R=S[0],M=n.subscribe(R);n.setState(R,h),ru(N=>{n.onError([Je(ze("Error handling the message: %A"))(A),N])},h,S[1]),d=R,u=(g=pu(u,M),du(n.onError,h,g[0],g[1],g[2],g[3])),x=fu(l)}}};c=!0,n.setState(o,h),ru(g=>{n.onError([Je(ze("Error intitializing:")),g])},h,i[1]),u=(r=pu(u,a),du(n.onError,h,r[0],r[1],r[2],r[3])),v(),c=!1}function Ow(e,t){Nw(K(n=>n),e,t)}function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pw(e){if(Object.prototype.hasOwnProperty.call(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 wa={exports:{}},va={};const hu=Pw(jo);/**
|
|
38
|
-
* @license React
|
|
39
|
-
* use-sync-external-store-shim.production.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var gu;function Bw(){if(gu)return va;gu=1;var e=hu;function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(u,m){var f=m(),h=r({inst:{value:f,getSnapshot:m}}),v=h[0].inst,g=h[1];return o(function(){v.value=f,v.getSnapshot=m,l(v)&&g({inst:v})},[u,f,m]),i(function(){return l(v)&&g({inst:v}),u(function(){l(v)&&g({inst:v})})},[u]),a(f),f}function l(u){var m=u.getSnapshot;u=u.value;try{var f=m();return!n(u,f)}catch{return!0}}function c(u,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return va.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,va}var wu;function Hw(){return wu||(wu=1,wa.exports=Bw()),wa.exports}var zw=Hw();class Lw{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let a;const s=jw(i)(this.arg);let l=s[0],c=s[1];a=[[l,d=>{const u=this.finalDispatch;u==null?o.push(d):u(d)},!1,o],c],this.state=a[0],this.cmd=a[1],this.subscribe=d=>{let u=!1;const m=$o(this.state[0]);return Ow(this.arg,Mw((f,h)=>{const v=this.state;this.finalDispatch=h,this.state=[f,v[1],!0,o],f!==v[0]&&d()},$w((f,h)=>{const v=this.cmd;return this.cmd=ce(),[this.state[0],v]},(f,h,v)=>f(h)(this.state[0]),Bo(f=>f),Bo(f=>f),K(f=>f),f=>[h=>f[0](h)?!0:m&&u,h=>{const v=h;$o(v)?ie(v):f[1](h)}],i))),()=>{u=!0}}}}function vu(e,t,n){return new Lw(e,t,n)}function Uw(e){return e.state}function Vw(e){return e.subscribe}function qw(e,t,n){return Ae(e.arg,t)?!Ae(e.dependencies,n):!0}function ya(e,t,n){const r=ve(()=>vu(e,t,n)),i=r[0];qw(i,t,n)&&r[1](vu(e,t,n));const o=zw.useSyncExternalStore(Vw(i),()=>Uw(i)),a=o[2],s=o[3],l=o[1];return fe(()=>{if(a&&s.length>0){let c=ye(s);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const d=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{ie(c)}Tp(s)}},[a,s]),[o[0],l]}class Ww extends Z{constructor(t,n,r,i,o,a,s,l,c){super(),this.SetCurrentTab=t,this.SelectFile=n,this.ShowImportSummary=r,this.ShowImportHistory=i,this.DownloadStageFailures=o,this.DownloadSchema=a,this.RequestStartImport=s,this.SendInvites=l,this.RevokeInvites=c}}function Gw(e,t,n){return k.Delay(()=>k.Bind(zg(n,e,t),r=>{const i=r;if(i.tag===1)return k.Return(void 0);{const o=Le(`\r
|
|
46
|
-
`,$r(P("Row,Reason"),Kt(a=>Le(",",xt(s=>`"${s}"`,xt(s=>Pl(s,'"','""'),[Mt(a.RowId),a.Reason]))),i.fields[0].FailedRows)));return k.Bind(ou(o,`${t}_stage_failed_rows.csv`),()=>k.Return(void 0))}}))}function Qw(e){return k.Delay(()=>k.Bind(Bg(e),t=>{const n=t;if(n.tag===1)return k.Return(void 0);{const r=Le(",",Kt(i=>i.DisplayName,n.fields[0].ColumnsInfo));return k.Bind(ou(r,"schema.csv"),()=>k.Return(void 0))}}))}function Kw(e,t){return new Ww((n,r)=>{e(new xe(0,[n]))},n=>{e(new xe(1,[]))},(n,r)=>{e(new xe(2,[n]))},n=>{e(new xe(3,[]))},(n,r,i)=>{ua(Gw(n,r,t))},n=>{ua(Qw(t))},(n,r)=>{e(new xe(5,[new je(0,[n])]))},(n,r)=>{e(new xe(7,[new je(0,[n])]))},(n,r)=>{e(new xe(8,[new je(0,[n])]))})}const b=$;function Zw(e){return Le(", ",Kt(fa,Kt(t=>t.Stage,e.CompletedStages)))}function Jw(e){let t,n,r,i,o,a,s;const l=e.userActions,c=e.pastImports;return p("div",_(y([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[p("div",_(y([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[p("div",_(y([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[p("table",_(y([["className","min-w-full divide-y divide-gray-300"],(i=[p("thead",_(y([["className","bg-gray-100"],(o=[(a=y([p("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Has errors"})]),p("tr",{children:b.Children.toArray(Array.from(a))}))],["children",b.Children.toArray(Array.from(o))])]))),p("tbody",_(y([["className","divide-y divide-gray-200 bg-white"],(s=ae(I(()=>Or(d=>{let u;const m=Zw(d),f=Mr(d.BenefitsRequests)>0?"Yes":"No",h=bt((v,g)=>v+g,0,Kt(v=>v.FailedRowCount,d.CompletedStages))>0?"Yes":"No";return E(p("tr",_(y([["key",d.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",Be(l.ShowImportSummary)(d)],(u=[p("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:d.ImportId}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ee(d.StartTime)}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:d.User}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:d.NumberOfRecords}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h})],["children",b.Children.toArray(Array.from(u))])]))))},c))),["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}const Xw="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='4'%20fill='url(%23paint0_linear_764_3086)'/%3e%3cpath%20d='M29%2011L17%2023'%20stroke='%232563EB'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29%2011L22%2031L17%2023L9%2018L29%2011Z'%20stroke='%23111827'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_764_3086'%20x1='40'%20y1='5.71311e-06'%20x2='4.50001'%20y2='35.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D6E2FC'/%3e%3cstop%20offset='1'%20stop-color='%23D6E2FC'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Yw(e){let t,n,r,i,o,a,s,l,c,d,u,m;const f=e.onCancel,h=e.onConfirm,v=e.actionName,g=e.text,x=e.title,A=y([p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),p("div",_(y([["className","fixed inset-0 z-10 overflow-y-auto"],(t=[p("div",_(y([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[p("div",_(y([(r="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",r]),(i=[(o=y([p("div",_(y([["className","mt-3 text-center sm:mt-5 space-y-6"],(a=[p("img",{src:Xw,className:"mx-auto"}),p("div",_(P((s=[(l=P(p("b",{children:[x]})),p("p",{children:b.Children.toArray(Array.from(l))}))],["children",b.Children.toArray(Array.from(s))])))),p("div",_(y([["className","mt-2 text-left"],(c=[p("p",{children:[g]})],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(d=[p("button",_(y([["type","button"],(u="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",u]),["children",v],["onClick",h]]))),p("button",_(y([["type","button"],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",m]),["children","Cancel"],["onClick",f]])))],["children",b.Children.toArray(Array.from(d))])])))]),p("div",{children:b.Children.toArray(Array.from(o))}))],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))]);return p("div",{children:b.Children.toArray(Array.from(A))})}class e0 extends Z{constructor(t,n,r,i,o){super(),this.Title=t,this.Text=n,this.ActionName=r,this.OnConfirm=i,this.OnCancel=o}}function yu(e){let t,n,r;const i=e.userActions,o=e.import,a=e.user,s=b.useState(void 0),l=s[1],c=(f,h,v,g)=>new e0(f,h,v,x=>{g(x),l(void 0)},x=>{l(void 0)}),d="All profiles will receive an invite to workplace benefits in this import. You can't undo this action",u=Lf(f=>f.RequestedAt,o.BenefitsRequests,{Compare:pf}),m=[p("div",_(P((t=ae(I(()=>H(E(p("p",{children:[`Import ID: ${o.ImportId}`]})),I(()=>H(E(p("p",{children:[`Creator: ${o.User}`]})),I(()=>H(E(p("p",{children:[`Filename: ${o.Filename}`]})),I(()=>H(E(p("p",{children:[`Date started: ${Ee(o.StartTime)}`]})),I(()=>H(E(p("p",{children:[`Date completed: ${Ee(o.StopTime)}`]})),I(()=>H(E(p("p",{children:[`Total rows: ${o.NumberOfRecords}`]})),I(()=>{let f;return H(oa(a)?E(p("div",_(P((f=ae(I(()=>{let h;return H(E(p("button",_(y([["type","button"],["children",Mr(u)===0?"Send Benefits Invites":"Resend Benefits Invites"],(h="mt-4 mr-3 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",h]),["onClick",v=>{l(c("Send invites to Flare Benefits",d,"Send Invites",Be(i.SendInvites)(o.ImportId)))}]])))),I(()=>{let v;return Mr(u)>0?E(p("button",_(y([["type","button"],["children","Revoke Benefits Invites"],(v="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",v]),["onClick",g=>{l(c("Revoke invites to Flare Benefits","All invites to workplace benefits in this import will be revoked. You can't undo this action","Revoke Invites",Be(i.RevokeInvites)(o.ImportId)))}]])))):In()}))})),["children",b.Children.toArray(Array.from(f))]))))):In(),I(()=>{let h,v,g,x,A,S;return H((h=s[0],h==null?E(ct()):(v=h.Title,g=h.Text,x=h.OnConfirm,A=h.OnCancel,S=h.ActionName,E(p(Yw,{title:v,text:g,actionName:S,onConfirm:x,onCancel:A})))),I(()=>{let R;return H(E(p("div",_(y([["className","mt-4"],(R=ae(I(()=>{let M;return H(E((M=P(p("b",{children:["Completed stages"]})),p("p",{children:b.Children.toArray(Array.from(M))}))),I(()=>Or(N=>{let L;const ue=fa(N.Stage);return E(p("div",_(y([["className","mt-4"],(L=ae(I(()=>H(E(p("p",{children:[`Stage: ${ue}`]})),I(()=>H(E(p("p",{children:[`Row count: ${N.InputRowCount}`]})),I(()=>H(E(p("p",{children:[`Successful count: ${N.SucceededRowCount}`]})),I(()=>H(E(p("p",{children:[`Failed count: ${N.FailedRowCount}`]})),I(()=>H(E(p("p",{children:[`Date started: ${Ee(N.StartTime)}`]})),I(()=>H(E(p("p",{children:[`Date completed: ${Ee(N.StopTime)}`]})),I(()=>{let Se;return N.FailedRowCount>0?E(p("button",_(y([["type","button"],["children","Download Errors"],(Se="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",Se]),["onClick",ui(i.DownloadStageFailures)(o.ImportId)(ue)]])))):In()})))))))))))))),["children",b.Children.toArray(Array.from(L))])]))))},o.CompletedStages)))})),["children",b.Children.toArray(Array.from(R))])])))),I(()=>{let M,N,L;return Mr(u)>0?E(p("div",_(y([["className","mt-4"],(M=[(N=P(p("b",{children:["Invite Log"]})),p("p",{children:b.Children.toArray(Array.from(N))})),p("div",_(y([["className","mt-4"],(L=ae(I(()=>Or(ue=>ue.RequestType.tag===1?E(p("p",{children:[`${ue.User} revoked invites of ${ue.ProfileCount} users at ${Ee(ue.RequestedAt)}`]})):E(p("p",{children:[`${ue.User} sent invites to ${ue.ProfileCount} users at ${Ee(ue.RequestedAt)}`]})),u))),["children",b.Children.toArray(Array.from(L))])])))],["children",b.Children.toArray(Array.from(M))])])))):In()}))}))}))})))))))))))))),["children",b.Children.toArray(Array.from(t))])))),p("div",_(y([["className","text-center"],(n=[p("button",_(y([["type","button"],["children","Close"],(r="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",i.ShowImportHistory]])))],["children",b.Children.toArray(Array.from(n))])])))];return p(J,{},...m)}function t0(e){const t=e.userActions,n=e.state,r=e.user,i=n.ImportSummary;return i==null?p(Jw,{pastImports:n.PastImports,userActions:t}):p(yu,{user:r,import:i,userActions:t})}class n0 extends Z{constructor(t){super(),this.Value=t}}class ur extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoConfig","HasConfig"]}}class mn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Closed","CreatingAndManagingTheToken","KeepingTheTokenSecure","TroubleshootingTheToken"]}}class dr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFreshToken","GeneratingFreshToken","FreshTokenGenerated","FreshTokenGenerationFailed"]}}let hn=class extends Z{constructor(t,n,r){super(),this.Config=t,this.FreshToken=n,this.InfoPanel=r}},Ht=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetConfig","SetInfoPanel","GenerateFreshToken","TokenGenerated","DismissTokenResultWindow","RevokeToken","TokenRevoked"]}};function r0(e,t){return[new hn(e,new dr(0,[]),new mn(0,[])),ce()]}function i0(e,t,n){switch(t.tag){case 1:return[new hn(n.Config,n.FreshToken,t.fields[0]),ce()];case 2:return[new hn(n.Config,new dr(1,[]),n.InfoPanel),Xt(r=>{Yt(r)},gw(e),void 0,r=>new Ht(3,[r]))];case 3:return t.fields[0].tag===1?[new hn(n.Config,new dr(3,[t.fields[0].fields[0]]),n.InfoPanel),ce()]:[new hn(new ur(1,[new Jc(new Zc({TokenExpiresAt:t.fields[0].fields[0].fields[0].TokenExpiresAt,TokenIsExpired:!1}),!0)]),new dr(2,[new n0(t.fields[0].fields[0].fields[0].Token)]),n.InfoPanel),ce()];case 4:return[new hn(n.Config,new dr(0,[]),n.InfoPanel),ce()];case 5:return[n,Xt(r=>{Yt(r)},ww(e),void 0,r=>new Ht(6,[r]))];case 6:return t.fields[0].tag===1?[new hn(n.Config,new dr(3,[Je(gf("Failed to revoke token: %A%P()",[t.fields[0].fields[0]]))]),n.InfoPanel),ce()]:[n,Xt(r=>{Yt(r)},cu(e),void 0,r=>r.tag===1?new Ht(0,[new ur(0,[])]):r.fields[0]==null?new Ht(0,[new ur(0,[])]):new Ht(0,[new ur(1,[r.fields[0]])]))];default:return[new hn(t.fields[0],n.FreshToken,n.InfoPanel),ce()]}}var o0=Object.defineProperty,a0=(e,t,n)=>t in e?o0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xa=(e,t,n)=>(a0(e,typeof t!="symbol"?t+"":t,n),n);let s0=class{constructor(){xa(this,"current",this.detect()),xa(this,"handoffState","pending"),xa(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"}},Rn=new s0;function Bi(e){var t,n;return Rn.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function Hi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function tn(){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 Hi(()=>{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=tn();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 ba(){let[e]=ve(tn);return fe(()=>()=>e.dispose(),[e]),e}let Ne=(e,t)=>{Rn.isServer?fe(e,t):Sn(e,t)};function Fn(e){let t=U(e);return Ne(()=>{t.current=e},[e]),t}let ee=function(e){let t=Fn(e);return $.useCallback((...n)=>t.current(...n),[t])},l0=tt(void 0);function c0(){return Pe(l0)}function _a(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function nn(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,nn),r}var zi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(zi||{}),gn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gn||{});function mt(){let e=d0();return ne(t=>u0({mergeRefs:e,...t}),[e])}function u0({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??p0;let l=xu(t,e);if(o)return Li(l,n,r,a,s);let c=i??0;if(c&2){let{static:d=!1,...u}=l;if(d)return Li(u,n,r,a,s)}if(c&1){let{unmount:d=!0,...u}=l;return nn(d?0:1,{0(){return null},1(){return Li({...u,hidden:!0,style:{display:"none"}},n,r,a,s)}})}return Li(l,n,r,a,s)}function Li(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Aa(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let u={};if(t){let m=!1,f=[];for(let[h,v]of Object.entries(t))typeof v=="boolean"&&(m=!0),v===!0&&f.push(h.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(m){u["data-headlessui-state"]=f.join(" ");for(let h of f)u[`data-${h}`]=""}}if(o===J&&(Object.keys(Mn(l)).length>0||Object.keys(Mn(u)).length>0))if(!Wn(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Mn(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(Mn(l)).concat(Object.keys(Mn(u))).map(m=>` - ${m}`).join(`
|
|
47
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
|
|
48
|
-
`)].join(`
|
|
49
|
-
`))}else{let m=d.props,f=m==null?void 0:m.className,h=typeof f=="function"?(...x)=>_a(f(...x),l.className):_a(f,l.className),v=h?{className:h}:{},g=xu(d.props,Mn(Aa(l,["ref"])));for(let x in u)x in g&&delete u[x];return Mo(d,Object.assign({},g,u,c,{ref:i(f0(d),c.ref)},v))}return p(o,Object.assign({},Aa(l,["ref"]),o!==J&&c,o!==J&&u),d)}function d0(){let e=U([]),t=ne(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 p0(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function xu(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let a=n[r];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function et(e){var t;return Object.assign(ii(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Mn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Aa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function f0(e){return $.version.split(".")[0]>="19"?e.props.ref:e.ref}let m0="span";var Ui=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ui||{});function h0(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 mt()({ourProps:o,theirProps:i,slot:{},defaultTag:m0,name:"Hidden"})}let ka=et(h0);function bu(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function wn(e){return bu(e)&&"tagName"in e}function jn(e){return wn(e)&&"accessKey"in e}function vn(e){return wn(e)&&"tabIndex"in e}function g0(e){return wn(e)&&"style"in e}function w0(e){return jn(e)&&e.nodeName==="IFRAME"}function v0(e){return jn(e)&&e.nodeName==="INPUT"}let _u=Symbol();function y0(e,t=!0){return Object.assign(e,{[_u]:t})}function zt(...e){let t=U(e);fe(()=>{t.current=e},[e]);let n=ee(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[_u]))?void 0:n}let Ca=tt(null);Ca.displayName="DescriptionContext";function Au(){let e=Pe(Ca);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,Au),t}return e}function x0(){let[e,t]=ve([]);return[e.length>0?e.join(" "):void 0,se(()=>function(n){let r=ee(o=>(t(a=>[...a,o]),()=>t(a=>{let s=a.slice(),l=s.indexOf(o);return l!==-1&&s.splice(l,1),s}))),i=se(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return $.createElement(Ca.Provider,{value:i},n.children)},[t])]}let b0="p";function _0(e,t){let n=ln(),r=c0(),{id:i=`headlessui-description-${n}`,...o}=e,a=Au(),s=zt(t);Ne(()=>a.register(i),[i,a.register]);let l=r||!1,c=se(()=>({...a.slot,disabled:l}),[a.slot,l]),d={ref:s,...a.props,id:i};return mt()({ourProps:d,theirProps:o,slot:c,defaultTag:b0,name:a.name||"Description"})}let A0=et(_0),k0=Object.assign(A0,{});var ku=(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))(ku||{});let C0=tt(()=>{});function S0({value:e,children:t}){return $.createElement(C0.Provider,{value:e},t)}let Cu=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}};var E0=Object.defineProperty,I0=(e,t,n)=>t in e?E0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D0=(e,t,n)=>(I0(e,t+"",n),n),Su=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ht=(e,t,n)=>(Su(e,t,"read from private field"),n?n.call(e):t.get(e)),Sa=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Eu=(e,t,n,r)=>(Su(e,t,"write to private field"),t.set(e,n),n),Lt,zr,Lr;let T0=class{constructor(t){Sa(this,Lt,{}),Sa(this,zr,new Cu(()=>new Set)),Sa(this,Lr,new Set),D0(this,"disposables",tn()),Eu(this,Lt,t)}dispose(){this.disposables.dispose()}get state(){return ht(this,Lt)}subscribe(t,n){let r={selector:t,callback:n,current:t(ht(this,Lt))};return ht(this,Lr).add(r),this.disposables.add(()=>{ht(this,Lr).delete(r)})}on(t,n){return ht(this,zr).get(t).add(n),this.disposables.add(()=>{ht(this,zr).get(t).delete(n)})}send(t){let n=this.reduce(ht(this,Lt),t);if(n!==ht(this,Lt)){Eu(this,Lt,n);for(let r of ht(this,Lr)){let i=r.selector(ht(this,Lt));Iu(r.current,i)||(r.current=i,r.callback(i))}for(let r of ht(this,zr).get(t.type))r(ht(this,Lt),t)}}};Lt=new WeakMap,zr=new WeakMap,Lr=new WeakMap;function Iu(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ea(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ea(e.entries(),t.entries()):Du(e)&&Du(t)?Ea(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ea(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function Du(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var R0=Object.defineProperty,F0=(e,t,n)=>t in e?R0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tu=(e,t,n)=>(F0(e,typeof t!="symbol"?t+"":t,n),n),M0=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(M0||{});let j0={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(i!==-1){let o=e.stack.slice();return o.splice(i,1),o.push(n),r=o,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}},$0=class Gd extends T0{constructor(){super(...arguments),Tu(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Tu(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new Gd({stack:[]})}reduce(t,n){return nn(n.type,j0,t,n)}};const Ru=new Cu(()=>$0.new());var Ia={exports:{}},Da={};/**
|
|
23
|
+
`))(c);return p=>m(p)}}else if(Bc(r))if(us(r)){const f=gt(c=>ot(e,t,!1,c),Vc(r));return c=>m=>Array.isArray(m)?wt(p=>qc(Jt(p)),Ca(0,f,c,m)):new h(1,[[c,new E(0,["an array",m])]])}else switch(de(jc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=ot(e,t,!0,pe(0,ht(r))),c=>m=>yd(V(o),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=ot(e,t,!1,pe(0,ht(r))),c=>m=>va(V(i),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=ot(e,t,!1,pe(0,ht(r))),c=>m=>bd(V(s),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=ot(e,t,!1,pe(0,ht(r))),m=ot(e,t,!1,pe(1,ht(r)));let p;const g=x([_=>w=>Id(V(c),V(m),_,w),(a=Sd(V(c),V(m)),_=>w=>va(V(a),_,w))]);return p=_=>w=>Ad(g,_,w),_=>w=>xd(Cd,V(p),_,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=ot(e,t,!1,pe(0,ht(r)));return m=>p=>{const g=xa(V(c),m,p);return g.tag===0?new h(0,[Ed(g.fields[0])]):new h(1,[g.fields[0]])}}default:return ka(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>pd(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>dd(f,c);case"System.String":return f=>c=>ha(f,c);case"System.Char":return f=>c=>ud(f,c);case"System.SByte":return ma;case"System.Byte":return ga;case"System.Int16":return wa;case"System.UInt16":return _a;case"System.Int32":return ya;case"System.UInt32":return ba;case"System.Double":return f=>c=>hd(f,c);case"System.Single":return f=>c=>md(f,c);case"System.DateTime":return f=>c=>gd(f,c);case"System.DateTimeOffset":return f=>c=>wd(f,c);case"System.TimeSpan":return f=>c=>_d(f,c);case"System.Guid":return f=>c=>fd(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return ka(e,t,n,r)}else{const f=l;return c=>m=>f.contents(c)(m)}}function Dd(e){return ea({Compare:so})}function sn(e,t,n){const r=Ss(t,new Dt(0,[]));return ot(Dd(),r,!1,e)}class Eo extends Y{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Td(e){return new Eo(e)}const Rd=new Eo("Import.RunInvites"),Md=new Eo("Import.RunImports");class Fd extends G{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Ia(e){return Ts(Rd,e.Roles,{Equals:ke,GetHashCode:os})}function Da(e){return Ts(Md,e.Roles,{Equals:ke,GetHashCode:os})}function Od(e){let t;const n=go(e??"",["."],void 0,0);if(!Eu((r,o)=>r===o,n)&&n.length===3){const r=pe(1,n),o=atob(r);t=on(V(sn(uo(["Name",le],["Roles",Fc(le)]),new Dt(1,[]))),o)}else t=new h(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new Fd(r.Name,x(gt(Td,r.Roles)))}}class Nd extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function ko(){return xn("Import.Dto.Shared.AdminApi.Read.ImportStageDto",[],Nd,()=>[[],[]])}class Pd extends G{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bd(){return Ue("Import.Dto.Shared.AdminApi.Read.FailedRowInfoDto",[],Pd,()=>[["RowId",ce],["Reason",le]])}class jd extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function $d(){return xn("Import.Dto.Shared.AdminApi.Read.BenefitsRequestTypeDto",[],jd,()=>[[],[]])}class Hd extends G{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Ud(){return Ue("Import.Dto.Shared.AdminApi.Read.BenefitsRequestInfoDto",[],Hd,()=>[["User",le],["ProfileCount",ce],["RequestType",$d()],["RequestedAt",mt("System.DateTime")]])}class Vd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function Ld(){return Ue("Import.Dto.Shared.AdminApi.Read.RunningStageDto",[],Vd,()=>[["Stage",ko()],["InputRowCount",ce],["StartTime",mt("System.DateTime")],["SucceededRowCount",Gt(ce)],["FailedRowCount",Gt(ce)],["RemainingRowCount",Gt(ce)]])}class zd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function Ta(){return Ue("Import.Dto.Shared.AdminApi.Read.CompletedStageDto",[],zd,()=>[["Stage",ko()],["InputRowCount",ce],["SucceededRowCount",ce],["FailedRowCount",ce],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Gd extends G{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function Ra(){return Ue("Import.Dto.Shared.AdminApi.Read.ActiveImportDto",[],Gd,()=>[["ImportId",ce],["User",le],["Filename",le],["NumberOfRecords",ce],["CurrentStage",Gt(Ld())],["CompletedStages",st(Ta())],["StartTime",mt("System.DateTime")]])}class Wd extends G{constructor(t,n,r,o,i,s,a,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=u}}function Ma(){return Ue("Import.Dto.Shared.AdminApi.Read.PastImportDto",[],Wd,()=>[["ImportId",ce],["User",le],["Filename",le],["NumberOfRecords",ce],["CompletedStages",st(Ta())],["BenefitsRequests",st(Ud())],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Fa extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Qd(){return xn("Import.Dto.Shared.AdminApi.Read.ImportStatusDto",[],Fa,()=>[[["Item",Ra()]],[["Item",Ma()]]])}class qd extends G{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zd(){return Ue("Import.Dto.Shared.AdminApi.Read.AccountImportsDto",[],qd,()=>[["ActiveImport",Gt(Ra())],["ImportHistory",st(Ma())]])}class Jd extends G{constructor(t,n){super(),this.Column=t,this.Message=n}}function Kd(){return Ue("Import.Dto.Shared.AdminApi.Read.FieldError",[],Jd,()=>[["Column",le],["Message",le]])}class Xd extends G{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Yd(){return Ue("Import.Dto.Shared.AdminApi.Read.RowValidationError",[],Xd,()=>[["RowId",ce],["FieldErrors",st(Kd())]])}class ep extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function tp(){return xn("Import.Dto.Shared.AdminApi.Read.ApiError",[],ep,()=>[[],[],[],[],[],[],[["Item",le]],[],[],[],[["Item",st(Yd())]],[],[],[],[],[["Item",uo(["Message",le])]],[["Item",uo(["Message",le])]]])}class np extends G{constructor(t,n,r,o,i,s,a){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=o|0,this.FailedRowCount=i|0,this.StartTime=s,this.StopTime=a}}function rp(){return Ue("Import.Dto.Shared.AdminApi.Read.CompletedStageDetailsDto",[],np,()=>[["Stage",ko()],["FailedRows",st(Bd())],["TotalRowCount",ce],["SucceededRowCount",ce],["FailedRowCount",ce],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class op extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function ip(){return xn("Import.Dto.Shared.AdminApi.Read.ValidationRule",[],op,()=>[[["Item",ce]],[["Item",le]],[["Item",st(le)]]])}class sp extends G{constructor(t,n,r,o,i){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=o,this.ValidationRules=i}}function ap(){return Ue("Import.Dto.Shared.AdminApi.Read.ColumnDefinitionDto",[],sp,()=>[["DisplayName",le],["PropName",le],["Description",Gt(le)],["Required",Nc],["ValidationRules",st(ip())]])}class lp extends G{constructor(t){super(),this.ColumnsInfo=t}}function cp(){return Ue("Import.Dto.Shared.AdminApi.Read.ImportSchemaDto",[],lp,()=>[["ColumnsInfo",st(ap())]])}class up{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class yr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yr.prototype)}}class Io{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Io.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function _t(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new yr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(er(n))}});else try{e(t)}catch(n){t.onError(er(n))}}}function fp(e,t){return _t(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(er(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function dp(e){return _t(t=>t.onSuccess(e))}class pp{Bind(t,n){return fp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return _t(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return dp(t)}ReturnFrom(t){return t}TryFinally(t,n){return _t(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return _t(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(er(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return _t(t=>t.onSuccess(void 0))}}const A=new pp;function hp(e){return new Oa(0,[e])}function mp(e){return new Oa(1,[e])}class Oa extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function gp(e){return hp(e)}function wp(e){return mp(e)}function Do(e){}const _p=new up;function yp(e){return _t(t=>{e({onSuccess:n=>t.onSuccess(gp(n)),onError:n=>t.onSuccess(wp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function bp(e){return _t(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Ap(e){return _t(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new yr)})})}function vp(e,t){return xp(e,t)}function To(e,t){return vp(e,t)}function xp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Io;e({onSuccess:t||Do,onError:Do,onCancel:Do,cancelToken:o||_p,trampoline:i})}class St extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Sp extends Y{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Na extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Nn extends G{constructor(t,n,r,o,i,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=u}}class an extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Pa extends G{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Mt(e){return new Sp("Authorization",e)}const Ft=new Nn("",new St(0,[]),he(),!1,void 0,void 0,void 0,new Na(0,[]));new Pa(0,"","","",ea({Compare:so}),new an(0,[""]));function Ba(e,t){return wu(t)?new Array(0):go(t,[e],void 0,0)}function Cp(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 Ot(e){return new Nn(e,Ft.method,Ft.headers,Ft.withCredentials,Ft.overridenMimeType,Ft.overridenResponseType,Ft.timeout,Ft.content)}function Nt(e,t){return new Nn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Pt(e,t){return new Nn(t.url,t.method,Rn(t.headers,W(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ep(e,t){return new Nn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Bt(e){return bp(t=>{const n=new XMLHttpRequest;n.open(Cp(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,m,p,g;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,m=(p=n.responseType,p===""?new an(0,[n.responseText]):p==="text"?new an(0,[n.responseText]):p==="arraybuffer"?new an(2,[n.response]):p==="blob"?new an(1,[n.response]):new an(3,[n.response])),g=Gf(Cu(_=>{const w=x(Ba(":",_));if(!P(w))return[k(w).toLocaleLowerCase(),Me(":",N(w)).trim()]},Ba(`\r
|
|
24
|
+
`,n.getAllResponseHeaders())),{Compare:so}),new Pa(f,u,c,n.responseURL,g,m)))};const r=ne(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{q(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Fe(a.fields[0]));break}case 3:{n.send(Fe(a.fields[0]));break}case 2:{n.send(Fe(a.fields[0]));break}default:n.send()}})}class Ro extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class kp{constructor(t,n,r,o){this.backendUrl=t,this.accessToken=o,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function Ip(e,t,n,r){return new kp(e,t,n,r)}function Dp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new St(0,[]),Ot(`${e.backendUrl}/import/admin/schema`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];if(s.statusCode===200){const a=on(V(sn(cp(),new Dt(1,[]))),s.responseText);return A.Return(a)}else return A.Return(new h(1,["Failed to get import schema"]))}})})}function Tp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(0,[]),Ot(`${e.baseUrl}/${t}/status`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const u=on(V(sn(Qd(),new Dt(1,[]))),a.responseText);return A.Return(u)}else return A.Return(new h(1,["Failed to get import status"]))}})})}function Rp(e,t,n){return A.Delay(()=>{let r,o;const i=Bt((r=Nt(new St(0,[]),Ot(`${e.baseUrl}/${t}/stages/${n}`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),r)));return o=A.Bind(i,s=>A.Return(new h(0,[s]))),A.Bind(o,s=>{const a=s;if(a.tag===1)return A.Return(new h(1,[a.fields[0]]));{const u=a.fields[0];if(u.statusCode===200){const l=on(V(sn(rp(),new Dt(1,[]))),u.responseText);return A.Return(l)}else return A.Return(new h(1,["Failed to get import stage details"]))}})})}function Mp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new St(0,[]),Ot(e.baseUrl)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];switch(s.statusCode|0){case 200:{let u;const l=on(V(sn(Zd(),new Dt(1,[]))),s.responseText);return u=l.tag===1?new h(1,[l.fields[0]]):new h(0,[l.fields[0]]),A.Return(u)}case 404:return A.Return(new h(0,[void 0]));default:return A.Return(new h(1,["Failed to get account imports"]))}}})})}function Fp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Ep(new Na(3,[t]),Nt(new St(1,[]),Ot(e.baseUrl))),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 201:return A.Return(new h(0,[void 0]));case 400:{let l,f;const c=on(V(sn(tp(),new Dt(1,[]))),a.responseText);return f=c.tag===1?new h(1,[new Ro(1,[c.fields[0]])]):new h(0,[c.fields[0]]),l=A.Return(f),A.Bind(l,m=>{const p=m;return p.tag===1?A.Return(new h(1,[p.fields[0]])):A.Return(new h(1,[new Ro(0,[p.fields[0]])]))})}default:return A.Return(new h(1,[new Ro(1,["Failed to start import"])]))}}})})}function Op(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(2,[]),Ot(`${e.baseUrl}/${t}/benefits/invite-all`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to send invites"]))})})}function Np(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(2,[]),Ot(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to revoke invites"]))})})}class Pp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Bp(e,t){t.Subscribe(new Pp(e))}class jp{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 Hp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}class $p extends jp{}function Hp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class Up{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 $p}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 Vp(e,t){console.error(Fe(e),t)}function Lp(e,t){let n,r=new Up(e);r.AutoReset=!1,n=r,Bp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ja(e,t,n){Tn(r=>{try{r(t)}catch(o){e(o)}},n)}function Ie(){return he()}function Pn(e,t,n,r){return W(o=>{e(A.Delay(()=>A.Bind(yp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),A.Zero()})))})}function Bn(e){Lp(1,t=>{To(e)})}function Mo(e){return e.tag===1?"tax":"profiles"}class _e extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class We extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports"]}}function $a(e){return e.tag===1?"Past Imports":"Active Import"}class zp extends G{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class De extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class jn extends G{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}class ye extends G{constructor(t,n,r,o,i){super(),this.User=t,this.CurrentTab=n,this.AccountInfo=r,this.ActiveImportTabState=o,this.ImportHistoryTabState=i}}class re extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus","SendInvites","RevokeInvites"]}}function Gp(e,t){return[new ye(e,new We(0,[]),t,new De(0,[]),new jn(he(),void 0)),W(n=>{n(new re(4,[new _e(0,[void 0])]))})]}function Wp(e,t,n){let r,o,i;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()];if(t.fields[0].fields[0].fields[0]==null)return[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(1,[]),n.ImportHistoryTabState),Ie()];{const s=t.fields[0].fields[0].fields[0];let a;const u=s.ActiveImport;if(u==null)a=[new De(1,[]),Ie()];else{const l=u;a=[new De(4,[new Fa(0,[l])]),W(f=>{f(new re(6,[new _e(0,[l.ImportId])]))})]}return[new ye(n.User,n.CurrentTab,n.AccountInfo,a[0],new jn(s.ImportHistory,(r=n.ImportHistoryTabState.ImportSummary,r==null?void 0:(o=r,Fu(l=>l.ImportId===o.ImportId,s.ImportHistory))))),a[1]]}}else return[n,Pn(s=>{Bn(s)},()=>Mp(e),t.fields[0].fields[0],s=>new re(4,[new _e(1,[s])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(i=n.ActiveImportTabState,i.tag===4&&i.fields[0].tag===0?W(s=>{s(new re(6,[new _e(0,[i.fields[0].fields[0].ImportId])]))}):Ie())]:t.fields[0].fields[0].fields[0].tag===1?[new ye(n.User,new We(1,[]),n.AccountInfo,new De(1,[]),new jn(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),W(s=>{s(new re(6,[new _e(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,Pn(s=>{Bn(s)},s=>A.Delay(()=>A.Bind(Ap(1e4),()=>A.ReturnFrom(Tp(e,s)))),t.fields[0].fields[0],s=>new re(6,[new _e(1,[s])]))];case 1:return[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(1,[]),n.ImportHistoryTabState),Ie()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[new ye(n.User,new We(0,[]),n.AccountInfo,new De(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(2,[]),n.ImportHistoryTabState),Pn(s=>{Bn(s)},s=>Fp(e,s),t.fields[0].fields[0],s=>new re(5,[new _e(1,[s])]))];case 2:return[new ye(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,t.fields[0])),Ie()];case 3:return[new ye(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,void 0)),Ie()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Op(e,s),t.fields[0].fields[0],s=>new re(7,[new _e(1,[s])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Np(e,s),t.fields[0].fields[0],s=>new re(8,[new _e(1,[s])]))];default:return[new ye(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),Ie()]}}function Qp(){return he()}function Fo(e){return Me("/",e)}function qp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Fo(t),n])}function Ha(e,t,n){try{q(n)}catch(r){e(["Error stopping subscription: "+Fo(t),r])}}function Zp(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Fo(n),o]);return}}function Jp(e,t){Tn(n=>{Ha(e,n[0],n[1])},t)}function Ua(e,t,n,r,o,i){return Tn(s=>{qp(e,s)},n),Tn(s=>{Ha(e,s[0],s[1])},r),Rn(o,Bu(s=>Zp(e,t,s[0],s[1]),i))}function Kp(){return[he(),sd({Compare:$e}),he()]}function Xp(e,t,n,r,o){return Co(e,r)?[ze(e,n),r,o]:[n,id(e,r),ze([e,t],o)]}function Yp(e){return Du((t,n)=>Xp(t[0],t[1],n[0],n[1],n[2]),e,Kp())}const eh=he();function Va(e,t){const n=ad(xt(s=>s[0],e),{Compare:$e}),r=Yp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,he(),e,he()];{const s=Pu(a=>Co(a[0],o),e);return[i,s[1],s[0],Nu(a=>!Co(a[0],n),r[2])]}}function th(e,t,n,r){const o=$e(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=$e(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function nh(e,t,n,r,o){const i=th(t,n,r,o);return M(()=>_f(i,e))}function rh(e,t,n){return nh(e,t,n,0,(r,o)=>r+o)}class ln extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class oh{constructor(t){this.state=new ln(0,[wo(new Array(ks(t,10)),0,ks(t,10),null),0])}}function ih(e){return new oh(e)}function La(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new ln(0,[o,n]):e.state=new ln(1,[o,n,i]),Fe(pe(r,o))}else return}function sh(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];vt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new ln(1,[ah(e,o,i),i.length,0]):e.state=new ln(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];vt(o,r,t);const i=(r+1)%o.length|0;e.state=new ln(1,[o,i,r])}}function ah(e,t,n){return Array.from(M(()=>$(Sf(t,n),M(()=>$(Cf(t,n),M(()=>Fn(r=>R(At()),rh(0,1,n.length))))))))}class Oo extends G{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function lh(e,t,n){return new Oo(e,t,r=>Qp(),n,V(r=>{const o=He(n)(r);return i=>{o(i)}}),r=>{Vp(r[0],r[1])},[r=>!1,r=>{}])}function ch(e,t){return new Oo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function uh(e){return e.init}function fh(e,t,n,r,o,i,s){const a=He(e)(s.init),u=Yn(t)(He(s.update)),l=Yn(n)(He(s.view)),f=Yn(r)(He(s.setState));return new Oo(a,V(u),He(o)(s.subscribe),V(l),V(f),s.onError,i(s.termination))}function dh(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,u=ih(10);let l=!1,f=i,c=eh,m=!1;const p=w=>{m||(sh(u,w),l||(l=!0,_(),l=!1))},g=He(e)(p),_=()=>{let w,y=La(u);for(;!m&&y!=null;){const C=b(y);if(a[0](C))Jp(n.onError,c),a[1](f),m=!0;else{const T=n.update(C,f),ee=T[0],Q=n.subscribe(ee);n.setState(ee,g),ja(X=>{n.onError([Ve(Re("Error handling the message: %A"))(C),X])},g,T[1]),f=ee,c=(w=Va(c,Q),Ua(n.onError,g,w[0],w[1],w[2],w[3])),y=La(u)}}};l=!0,n.setState(i,g),ja(w=>{n.onError([Ve(Re("Error intitializing:")),w])},g,o[1]),c=(r=Va(c,s),Ua(n.onError,g,r[0],r[1],r[2],r[3])),_(),l=!1}function ph(e,t){dh(V(n=>n),e,t)}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var za={exports:{}},Ga={};const gh=mh(ac);/**
|
|
50
25
|
* @license React
|
|
51
|
-
* use-sync-external-store-
|
|
26
|
+
* use-sync-external-store-shim.production.min.js
|
|
52
27
|
*
|
|
53
|
-
* Copyright (c)
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
29
|
*
|
|
55
30
|
* This source code is licensed under the MIT license found in the
|
|
56
31
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var Fu;function N0(){if(Fu)return Da;Fu=1;var e=hu;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return Da.useSyncExternalStoreWithSelector=function(l,c,d,u,m){var f=i(null);if(f.current===null){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=a(function(){function g(M){if(!x){if(x=!0,A=M,M=u(M),m!==void 0&&h.hasValue){var N=h.value;if(m(N,M))return S=N}return S=M}if(N=S,n(A,M))return N;var L=u(M);return m!==void 0&&m(N,L)?(A=M,N):(A=M,S=L)}var x=!1,A,S,R=d===void 0?null:d;return[function(){return g(c())},R===null?void 0:function(){return g(R())}]},[c,d,u,m]);var v=r(l,f[0],f[1]);return o(function(){h.hasValue=!0,h.value=v},[v]),s(v),v},Da}var Mu;function O0(){return Mu||(Mu=1,Ia.exports=N0()),Ia.exports}var P0=O0();function ju(e,t,n=Iu){return P0.useSyncExternalStoreWithSelector(ee(r=>e.subscribe(B0,r)),ee(()=>e.state),ee(()=>e.state),ee(t),n)}function B0(e){return e}function Ur(e,t){let n=ln(),r=Ru.get(t),[i,o]=ju(r,ne(a=>[r.selectors.isTop(a,n),r.selectors.inStack(a,n)],[r,n]));return Ne(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?o?i:!0:!1}let Ta=new Map,Vr=new Map;function $u(e){var t;let n=(t=Vr.get(e))!=null?t:0;return Vr.set(e,n+1),n!==0?()=>Nu(e):(Ta.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Nu(e))}function Nu(e){var t;let n=(t=Vr.get(e))!=null?t:1;if(n===1?Vr.delete(e):Vr.set(e,n-1),n!==1)return;let r=Ta.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ta.delete(e))}function H0(e,{allowed:t,disallowed:n}={}){let r=Ur(e,"inert-others");Ne(()=>{var i,o;if(!r)return;let a=tn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&a.add($u(l));let s=(o=t==null?void 0:t())!=null?o:[];for(let l of s){if(!l)continue;let c=Bi(l);if(!c)continue;let d=l.parentElement;for(;d&&d!==c.body;){for(let u of d.children)s.some(m=>u.contains(m))||a.add($u(u));d=d.parentElement}}return a.dispose},[r,t,n])}function z0(e,t,n){let r=Fn(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});fe(()=>{if(!e)return;let i=t===null?null:jn(t)?t:t.current;if(!i)return;let o=tn();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}return()=>o.dispose()},[t,r,e])}let Vi=["[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(","),L0=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var rn=(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))(rn||{}),Ra=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ra||{}),U0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(U0||{});function V0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function q0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(L0)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ou=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ou||{});function W0(e,t=0){var n;return e===((n=Bi(e))==null?void 0:n.body)?!1:nn(t,{0(){return e.matches(Vi)},1(){let r=e;for(;r!==null;){if(r.matches(Vi))return!0;r=r.parentElement}return!1}})}var G0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(G0||{});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 on(e){e==null||e.focus({preventScroll:!0})}let Q0=["textarea","input"].join(",");function K0(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Q0))!=null?n:!1}function Z0(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function 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,a=Array.isArray(e)?n?Z0(e):e:t&64?q0(e):V0(e);i.length>0&&a.length>1&&(a=a.filter(f=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===f:h===f))),r=r??o.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,u=a.length,m;do{if(d>=u||d+u<=0)return 0;let f=l+d;if(t&16)f=(f+u)%u;else{if(f<0)return 3;if(f>=u)return 1}m=a[f],m==null||m.focus(c),d+=s}while(m!==o.activeElement);return t&6&&K0(m)&&m.select(),2}function Pu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function J0(){return/Android/gi.test(window.navigator.userAgent)}function Bu(){return Pu()||J0()}function qi(e,t,n,r){let i=Fn(n);fe(()=>{if(!e)return;function o(a){i.current(a)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Hu(e,t,n,r){let i=Fn(n);fe(()=>{if(!e)return;function o(a){i.current(a)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const zu=30;function X0(e,t,n){let r=Fn(n),i=ne(function(s,l){if(s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let d=function u(m){return typeof m=="function"?u(m()):Array.isArray(m)||m instanceof Set?m:[m]}(t);for(let u of d)if(u!==null&&(u.contains(c)||s.composed&&s.composedPath().includes(u)))return;return!W0(c,Ou.Loose)&&c.tabIndex!==-1&&s.preventDefault(),r.current(s,c)},[r,t]),o=U(null);qi(e,"pointerdown",s=>{var l,c;Bu()||(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),qi(e,"pointerup",s=>{if(Bu()||!o.current)return;let l=o.current;return o.current=null,i(s,()=>l)},!0);let a=U({x:0,y:0});qi(e,"touchstart",s=>{a.current.x=s.touches[0].clientX,a.current.y=s.touches[0].clientY},!0),qi(e,"touchend",s=>{let l={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(l.x-a.current.x)>=zu||Math.abs(l.y-a.current.y)>=zu))return i(s,()=>vn(s.target)?s.target:null)},!0),Hu(e,"blur",s=>i(s,()=>w0(window.document.activeElement)?window.document.activeElement:null),!0)}function Wi(...e){return se(()=>Bi(...e),[...e])}function Lu(e,t,n,r){let i=Fn(n);fe(()=>{e=e??window;function o(a){i.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function Y0(e){return ni(e.subscribe,e.getSnapshot,e.getSnapshot)}function ev(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let a=t[i].call(n,...o);a&&(n=a,r.forEach(s=>s()))}}}function tv(){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 nv(){return Pu()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=tn();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(vn(s.target))try{let l=s.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=e.querySelector(c);vn(d)&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(vn(s.target)&&g0(s.target))if(r(s.target)){let l=s.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(vn(s.target)){if(v0(s.target))return;if(r(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;o!==l&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function rv(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function iv(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let $n=ev(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:tn(),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:iv(n)},i=[nv(),tv(),rv()];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)}});$n.subscribe(()=>{let e=$n.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)&&$n.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&$n.dispatch("TEARDOWN",n)}});function ov(e,t,n=()=>({containers:[]})){let r=Y0($n),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ne(()=>{if(!(!t||!e))return $n.dispatch("PUSH",t,n),()=>$n.dispatch("POP",t,n)},[e,t]),o}function av(e,t,n=()=>[document.body]){let r=Ur(e,"scroll-lock");ov(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function sv(e=0){let[t,n]=ve(e),r=ne(l=>n(l),[t]),i=ne(l=>n(c=>c|l),[t]),o=ne(l=>(t&l)===l,[t]),a=ne(l=>n(c=>c&~l),[n]),s=ne(l=>n(c=>c^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}var lv={},Uu,Vu;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Uu=process==null?void 0:lv)==null?void 0:Uu.NODE_ENV)==="test"&&typeof((Vu=Element==null?void 0:Element.prototype)==null?void 0:Vu.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(`
|
|
58
|
-
`)),[]});var cv=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(cv||{});function uv(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function dv(e,t,n,r){let[i,o]=ve(n),{hasFlag:a,addFlag:s,removeFlag:l}=sv(e&&i?3:0),c=U(!1),d=U(!1),u=ba();return Ne(()=>{var m;if(e){if(n&&o(!0),!t){n&&s(3);return}return(m=r==null?void 0:r.start)==null||m.call(r,n),pv(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var f;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),(f=r==null?void 0:r.end)==null||f.call(r,n))}})}},[e,n,t,u]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function pv(e,{prepare:t,run:n,done:r,inFlight:i}){let o=tn();return mv(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(fv(e,r))})}),o.dispose}function fv(e,t){var n,r;let i=tn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(s=>s instanceof CSSTransition))!=null?r:[];return a.length===0?(t(),i.dispose):(Promise.allSettled(a.map(s=>s.finished)).then(()=>{o||t()}),i.dispose)}function mv(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Fa(e,t){let n=U([]),r=ee(e);fe(()=>{let i=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let s=r(t,i);return n.current=t,s}},[r,...t])}let Gi=tt(null);Gi.displayName="OpenClosedContext";var It=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(It||{});function Qi(){return Pe(Gi)}function hv({value:e,children:t}){return $.createElement(Gi.Provider,{value:e},t)}function gv({children:e}){return $.createElement(Gi.Provider,{value:null},e)}function wv(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let yn=[];wv(()=>{function e(t){if(!vn(t.target)||t.target===document.body||yn[0]===t.target)return;let n=t.target;n=n.closest(Vi),yn.unshift(n??t.target),yn=yn.filter(r=>r!=null&&r.isConnected),yn.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 qu(e){let t=ee(e),n=U(!1);fe(()=>(n.current=!1,()=>{n.current=!0,Hi(()=>{n.current&&t()})}),[t])}function vv(){let e=typeof document>"u";return"useSyncExternalStore"in jo?(t=>t.useSyncExternalStore)(jo)(()=>()=>{},()=>!1,()=>!e):!1}function Wr(){let e=vv(),[t,n]=ve(Rn.isHandoffComplete);return t&&Rn.isHandoffComplete===!1&&n(!1),fe(()=>{t!==!0&&n(!0)},[t]),fe(()=>Rn.handoff(),[]),e?!1:t}let Wu=tt(!1);function yv(){return Pe(Wu)}function Gu(e){return $.createElement(Wu.Provider,{value:e.force},e.children)}function xv(e){let t=yv(),n=Pe(Ku),[r,i]=ve(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(Rn.isServer)return null;let a=e==null?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(e===null)return null;let s=e.createElement("div");return s.setAttribute("id","headlessui-portal-root"),e.body.appendChild(s)});return fe(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),fe(()=>{t||n!==null&&i(n.current)},[n,i,t]),r}let Qu=J,bv=et(function(e,t){let{ownerDocument:n=null,...r}=e,i=U(null),o=zt(y0(f=>{i.current=f}),t),a=Wi(i),s=n??a,l=xv(s),[c]=ve(()=>{var f;return Rn.isServer?null:(f=s==null?void 0:s.createElement("div"))!=null?f:null}),d=Pe(Ma),u=Wr();Ne(()=>{!l||!c||l.contains(c)||(c.setAttribute("data-headlessui-portal",""),l.appendChild(c))},[l,c]),Ne(()=>{if(c&&d)return d.register(c)},[d,c]),qu(()=>{var f;!l||!c||(bu(c)&&l.contains(c)&&l.removeChild(c),l.childNodes.length<=0&&((f=l.parentElement)==null||f.removeChild(l)))});let m=mt();return u?!l||!c?null:Ro(m({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:Qu,name:"Portal"}),c):null});function _v(e,t){let n=zt(t),{enabled:r=!0,ownerDocument:i,...o}=e,a=mt();return r?$.createElement(bv,{...o,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:Qu,name:"Portal"})}let Av=J,Ku=tt(null);function kv(e,t){let{target:n,...r}=e,i={ref:zt(t)},o=mt();return $.createElement(Ku.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Av,name:"Popover.Group"}))}let Ma=tt(null);function Cv(){let e=Pe(Ma),t=U([]),n=ee(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ee(o=>{let a=t.current.indexOf(o);a!==-1&&t.current.splice(a,1),e&&e.unregister(o)}),i=se(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,se(()=>function({children:o}){return $.createElement(Ma.Provider,{value:i},o)},[i])]}let Sv=et(_v),Zu=et(kv),Ev=Object.assign(Sv,{Group:Zu});function Iv(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ur(e,"escape");Lu(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===ku.Escape&&n(i))})}function Dv(){var e;let[t]=ve(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ve((e=t==null?void 0:t.matches)!=null?e:!1);return Ne(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Tv({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Wi(n),i=ee(()=>{var o,a;let s=[];for(let l of e)l!==null&&(wn(l)?s.push(l):"current"in l&&wn(l.current)&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&wn(l)&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((a=n==null?void 0:n.getRootNode())==null?void 0:a.host))||s.some(c=>l.contains(c))||s.push(l));return s});return{resolveContainers:i,contains:ee(o=>i().some(a=>a.contains(o)))}}let Ju=tt(null);function Xu({children:e,node:t}){let[n,r]=ve(null),i=Yu(t??n);return $.createElement(Ju.Provider,{value:i},e,i===null&&$.createElement(ka,{features:Ui.Hidden,ref:o=>{var a,s;if(o){for(let l of(s=(a=Bi(o))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&wn(l)&&l!=null&&l.contains(o)){r(l);break}}}}))}function Yu(e=null){var t;return(t=Pe(Ju))!=null?t:e}function ja(){let e=U(!1);return Ne(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Gr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Gr||{});function Rv(){let e=U(0);return Hu(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function ed(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)wn(n.current)&&t.add(n.current);return t}let Fv="div";var Nn=(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))(Nn||{});function Mv(e,t){let n=U(null),r=zt(n,t),{initialFocus:i,initialFocusFallback:o,containers:a,features:s=15,...l}=e;Wr()||(s=0);let c=Wi(n);Ov(s,{ownerDocument:c});let d=Pv(s,{ownerDocument:c,container:n,initialFocus:i,initialFocusFallback:o});Bv(s,{ownerDocument:c,container:n,containers:a,previousActiveElement:d});let u=Rv(),m=ee(A=>{if(!jn(n.current))return;let S=n.current;(R=>R())(()=>{nn(u.current,{[Gr.Forwards]:()=>{qr(S,rn.First,{skipElements:[A.relatedTarget,o]})},[Gr.Backwards]:()=>{qr(S,rn.Last,{skipElements:[A.relatedTarget,o]})}})})}),f=Ur(!!(s&2),"focus-trap#tab-lock"),h=ba(),v=U(!1),g={ref:r,onKeyDown(A){A.key=="Tab"&&(v.current=!0,h.requestAnimationFrame(()=>{v.current=!1}))},onBlur(A){if(!(s&4))return;let S=ed(a);jn(n.current)&&S.add(n.current);let R=A.relatedTarget;vn(R)&&R.dataset.headlessuiFocusGuard!=="true"&&(td(S,R)||(v.current?qr(n.current,nn(u.current,{[Gr.Forwards]:()=>rn.Next,[Gr.Backwards]:()=>rn.Previous})|rn.WrapAround,{relativeTo:A.target}):vn(A.target)&&on(A.target)))}},x=mt();return $.createElement($.Fragment,null,f&&$.createElement(ka,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Ui.Focusable}),x({ourProps:g,theirProps:l,defaultTag:Fv,name:"FocusTrap"}),f&&$.createElement(ka,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Ui.Focusable}))}let jv=et(Mv),$v=Object.assign(jv,{features:Nn});function Nv(e=!0){let t=U(yn.slice());return Fa(([n],[r])=>{r===!0&&n===!1&&Hi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=yn.slice())},[e,yn,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Ov(e,{ownerDocument:t}){let n=!!(e&8),r=Nv(n);Fa(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&on(r())},[n]),qu(()=>{n&&on(r())})}function Pv(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=U(null),a=Ur(!!(e&1),"focus-trap#initial-focus"),s=ja();return Fa(()=>{if(e===0)return;if(!a){i!=null&&i.current&&on(i.current);return}let l=n.current;l&&Hi(()=>{if(!s.current)return;let c=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}if(r!=null&&r.current)on(r.current);else{if(e&16){if(qr(l,rn.First|rn.AutoFocus)!==Ra.Error)return}else if(qr(l,rn.First)!==Ra.Error)return;if(i!=null&&i.current&&(on(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,a,e]),o}function Bv(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=ja(),a=!!(e&4);Lu(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!o.current)return;let l=ed(r);jn(n.current)&&l.add(n.current);let c=i.current;if(!c)return;let d=s.target;jn(d)?td(l,d)?(i.current=d,on(d)):(s.preventDefault(),s.stopPropagation(),on(c)):on(i.current)},!0)}function td(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function nd(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:id)!==J||$.Children.count(e.children)===1}let Ki=tt(null);Ki.displayName="TransitionContext";var Hv=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Hv||{});function zv(){let e=Pe(Ki);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Lv(){let e=Pe(Zi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Zi=tt(null);Zi.displayName="NestingContext";function Ji(e){return"children"in e?Ji(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function rd(e,t){let n=Fn(e),r=U([]),i=ja(),o=ba(),a=ee((f,h=gn.Hidden)=>{let v=r.current.findIndex(({el:g})=>g===f);v!==-1&&(nn(h,{[gn.Unmount](){r.current.splice(v,1)},[gn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var g;!Ji(r)&&i.current&&((g=n.current)==null||g.call(n))}))}),s=ee(f=>{let h=r.current.find(({el:v})=>v===f);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:f,state:"visible"}),()=>a(f,gn.Unmount)}),l=U([]),c=U(Promise.resolve()),d=U({enter:[],leave:[]}),u=ee((f,h,v)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([g])=>g!==f)),t==null||t.chains.current[h].push([f,new Promise(g=>{l.current.push(g)})]),t==null||t.chains.current[h].push([f,new Promise(g=>{Promise.all(d.current[h].map(([x,A])=>A)).then(()=>g())})]),h==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(h)):v(h)}),m=ee((f,h,v)=>{Promise.all(d.current[h].splice(0).map(([g,x])=>x)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>v(h))});return se(()=>({children:r,register:s,unregister:a,onStart:u,onStop:m,wait:c,chains:d}),[s,a,r,u,m,d,c])}let id=J,od=zi.RenderStrategy;function Uv(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:d,enterTo:u,entered:m,leave:f,leaveFrom:h,leaveTo:v,...g}=e,[x,A]=ve(null),S=U(null),R=nd(e),M=zt(...R?[S,t,A]:t===null?[]:[t]),N=(n=g.unmount)==null||n?gn.Unmount:gn.Hidden,{show:L,appear:ue,initial:Se}=zv(),[de,we]=ve(L?"visible":"hidden"),Ke=Lv(),{register:Oe,unregister:ge}=Ke;Ne(()=>Oe(S),[Oe,S]),Ne(()=>{if(N===gn.Hidden&&S.current){if(L&&de!=="visible"){we("visible");return}return nn(de,{hidden:()=>ge(S),visible:()=>Oe(S)})}},[de,S,Oe,ge,L,N]);let Te=Wr();Ne(()=>{if(R&&Te&&de==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,de,Te,R]);let Zr=Se&&!ue,Hn=ue&&L&&Se,Vt=U(!1),be=rd(()=>{Vt.current||(we("hidden"),ge(S))},Ke),fr=ee(mr=>{Vt.current=!0;let zn=mr?"enter":"leave";be.onStart(S,zn,An=>{An==="enter"?o==null||o():An==="leave"&&(s==null||s())})}),Tt=ee(mr=>{let zn=mr?"enter":"leave";Vt.current=!1,be.onStop(S,zn,An=>{An==="enter"?a==null||a():An==="leave"&&(l==null||l())}),zn==="leave"&&!Ji(be)&&(we("hidden"),ge(S))});fe(()=>{R&&i||(fr(L),Tt(L))},[L,R,i]);let bn=!(!i||!R||!Te||Zr),[,V]=dv(bn,x,L,{start:fr,end:Tt}),Rt=Mn({ref:M,className:((r=_a(g.className,Hn&&c,Hn&&d,V.enter&&c,V.enter&&V.closed&&d,V.enter&&!V.closed&&u,V.leave&&f,V.leave&&!V.closed&&h,V.leave&&V.closed&&v,!V.transition&&L&&m))==null?void 0:r.trim())||void 0,...uv(V)}),_n=0;de==="visible"&&(_n|=It.Open),de==="hidden"&&(_n|=It.Closed),L&&de==="hidden"&&(_n|=It.Opening),!L&&de==="visible"&&(_n|=It.Closing);let an=mt();return $.createElement(Zi.Provider,{value:be},$.createElement(hv,{value:_n},an({ourProps:Rt,theirProps:g,defaultTag:id,features:od,visible:de==="visible",name:"Transition.Child"})))}function Vv(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=U(null),s=nd(e),l=zt(...s?[a,t]:t===null?[]:[t]);Wr();let c=Qi();if(n===void 0&&c!==null&&(n=(c&It.Open)===It.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=ve(n?"visible":"hidden"),m=rd(()=>{n||u("hidden")}),[f,h]=ve(!0),v=U([n]);Ne(()=>{f!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),h(!1))},[v,n]);let g=se(()=>({show:n,appear:r,initial:f}),[n,r,f]);Ne(()=>{n?u("visible"):!Ji(m)&&a.current!==null&&u("hidden")},[n,m]);let x={unmount:i},A=ee(()=>{var M;f&&h(!1),(M=e.beforeEnter)==null||M.call(e)}),S=ee(()=>{var M;f&&h(!1),(M=e.beforeLeave)==null||M.call(e)}),R=mt();return $.createElement(Zi.Provider,{value:m},$.createElement(Ki.Provider,{value:g},R({ourProps:{...x,as:J,children:$.createElement(ad,{ref:l,...x,...o,beforeEnter:A,beforeLeave:S})},theirProps:{},defaultTag:J,features:od,visible:d==="visible",name:"Transition"})))}function qv(e,t){let n=Pe(Ki)!==null,r=Qi()!==null;return $.createElement($.Fragment,null,!n&&r?$.createElement($a,{ref:t,...e}):$.createElement(ad,{ref:t,...e}))}let $a=et(Vv),ad=et(Uv),Na=et(qv),Wv=Object.assign($a,{Child:Na,Root:$a});var Gv=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Gv||{}),Qv=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Qv||{});let Kv={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Oa=tt(null);Oa.displayName="DialogContext";function Xi(e){let t=Pe(Oa);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xi),n}return t}function Zv(e,t){return nn(t.type,Kv,e,t)}let sd=et(function(e,t){let n=ln(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...u}=e,m=U(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(m.current||(m.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let f=Qi();i===void 0&&f!==null&&(i=(f&It.Open)===It.Open);let h=U(null),v=zt(h,t),g=Wi(h),x=i?0:1,[A,S]=Vn(Zv,{titleId:null,descriptionId:null,panelRef:ho()}),R=ee(()=>o(!1)),M=ee(V=>S({type:0,id:V})),N=Wr()?x===0:!1,[L,ue]=Cv(),Se={get current(){var V;return(V=A.panelRef.current)!=null?V:h.current}},de=Yu(),{resolveContainers:we}=Tv({mainTreeNode:de,portals:L,defaultContainers:[Se]}),Ke=f!==null?(f&It.Closing)===It.Closing:!1;H0(c||Ke?!1:N,{allowed:ee(()=>{var V,Rt;return[(Rt=(V=h.current)==null?void 0:V.closest("[data-headlessui-portal]"))!=null?Rt:null]}),disallowed:ee(()=>{var V;return[(V=de==null?void 0:de.closest("body > *:not(#headlessui-portal-root)"))!=null?V:null]})});let Oe=Ru.get(null);Ne(()=>{if(N)return Oe.actions.push(r),()=>Oe.actions.pop(r)},[Oe,r,N]);let ge=ju(Oe,ne(V=>Oe.selectors.isTop(V,r),[Oe,r]));X0(ge,we,V=>{V.preventDefault(),R()}),Iv(ge,g==null?void 0:g.defaultView,V=>{V.preventDefault(),V.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),R()}),av(c||Ke?!1:N,g,we),z0(N,h,R);let[Te,Zr]=x0(),Hn=se(()=>[{dialogState:x,close:R,setTitleId:M,unmount:d},A],[x,A,R,M,d]),Vt=se(()=>({open:x===0}),[x]),be={ref:v,id:r,role:s,tabIndex:-1,"aria-modal":c?void 0:x===0?!0:void 0,"aria-labelledby":A.titleId,"aria-describedby":Te,unmount:d},fr=!Dv(),Tt=Nn.None;N&&!c&&(Tt|=Nn.RestoreFocus,Tt|=Nn.TabLock,l&&(Tt|=Nn.AutoFocus),fr&&(Tt|=Nn.InitialFocus));let bn=mt();return $.createElement(gv,null,$.createElement(Gu,{force:!0},$.createElement(Ev,null,$.createElement(Oa.Provider,{value:Hn},$.createElement(Zu,{target:h},$.createElement(Gu,{force:!1},$.createElement(Zr,{slot:Vt},$.createElement(ue,null,$.createElement($v,{initialFocus:a,initialFocusFallback:h,containers:we,features:Tt},$.createElement(S0,{value:R},bn({ourProps:be,theirProps:u,slot:Vt,defaultTag:Jv,features:Xv,visible:x===0,name:"Dialog"})))))))))))}),Jv="div",Xv=zi.RenderStrategy|zi.Static;function Yv(e,t){let{transition:n=!1,open:r,...i}=e,o=Qi(),a=e.hasOwnProperty("open")||o!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?$.createElement(Xu,null,$.createElement(Wv,{show:r,transition:n,unmount:i.unmount},$.createElement(sd,{ref:t,...i}))):$.createElement(Xu,null,$.createElement(sd,{ref:t,open:r,...i}))}let ey="div";function ty(e,t){let n=ln(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:a,unmount:s},l]=Xi("Dialog.Panel"),c=zt(t,l.panelRef),d=se(()=>({open:a===0}),[a]),u=ee(g=>{g.stopPropagation()}),m={ref:c,id:r,onClick:u},f=i?Na:J,h=i?{unmount:s}:{},v=mt();return $.createElement(f,{...h},v({ourProps:m,theirProps:o,slot:d,defaultTag:ey,name:"Dialog.Panel"}))}let ny="div";function ry(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Xi("Dialog.Backdrop"),a=se(()=>({open:i===0}),[i]),s={ref:t,"aria-hidden":!0},l=n?Na:J,c=n?{unmount:o}:{},d=mt();return $.createElement(l,{...c},d({ourProps:s,theirProps:r,slot:a,defaultTag:ny,name:"Dialog.Backdrop"}))}let iy="h2";function oy(e,t){let n=ln(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=Xi("Dialog.Title"),s=zt(t);fe(()=>(a(r),()=>a(null)),[r,a]);let l=se(()=>({open:o===0}),[o]),c={ref:s,id:r};return mt()({ourProps:c,theirProps:i,slot:l,defaultTag:iy,name:"Dialog.Title"})}let ay=et(Yv),sy=et(ty),ly=et(ry),cy=et(oy),Pa=Object.assign(ay,{Panel:sy,Title:cy,Description:k0});class Dt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function Ba(e){return p(Pa,Si(e,1))}class On extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children","Transition"]}}function Ha(e){return p(Pa.Panel,Si(e,1))}class uy extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children","Text"]}}function dy(e){return p(Pa.Title,Si(e,1))}class Qr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Transition"]}}function za(e){return p(ly,Si(e,1))}const py=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fy=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})),my=e=>p("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hy=e=>p("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M12.6665 4.66667L12.0883 12.7617C12.0385 13.4594 11.4579 14 10.7583 14H5.24133C4.54181 14 3.96122 13.4594 3.91138 12.7617L3.33317 4.66667M6.6665 7.33333V11.3333M9.33317 7.33333V11.3333M9.99984 4.66667V2.66667C9.99984 2.29848 9.70136 2 9.33317 2H6.6665C6.29831 2 5.99984 2.29848 5.99984 2.66667V4.66667M2.6665 4.66667H13.3332",stroke:"#686F7D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),gy=e=>p("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M2.6665 2.66666V5.99999H3.05418M13.2919 7.33332C12.9638 4.70245 10.7196 2.66666 7.99984 2.66666C5.76159 2.66666 3.84536 4.04544 3.05418 5.99999M3.05418 5.99999H5.99984M13.3332 13.3333V9.99999H12.9455M12.9455 9.99999C12.1543 11.9545 10.2381 13.3333 7.99984 13.3333C5.28009 13.3333 3.03583 11.2975 2.70777 8.66666M12.9455 9.99999H9.99984",stroke:"#686F7D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ld=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M13 7H15C16.105 7 17 7.895 17 9V15C17 16.105 16.105 17 15 17H9C7.895 17 7 16.105 7 15V13",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),p("path",{d:"M11 3H5C3.89543 3 3 3.89543 3 5V11C3 12.1046 3.89543 13 5 13H11C12.1046 13 13 12.1046 13 11V5C13 3.89543 12.1046 3 11 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),wy=e=>p("svg",{viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e},p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}));function xn(e,t){return b.createElement(e,_(t))}function vy(e){return xn(py,e)}function cd(e){return xn(fy,e)}function yy(e){return xn(my,e)}function xy(e){return xn(hy,e)}function by(e){return xn(gy,e)}function _y(e){return xn(ld,ae(I(()=>H(E(["style",{color:"#2e66f7"}]),I(()=>e)))))}function Ay(e){return xn(ld,ae(I(()=>H(E(["style",{color:"#FFFFFF"}]),I(()=>e)))))}function ky(e){return xn(wy,ae(I(()=>H(E(["style",{color:"#e7000b"}]),I(()=>e)))))}function ud(e){return p("div",{className:"justify-start text-base leading-normal font-semibold text-black",children:e})}function st(e,t){let n,r;return p("div",_(y([["className","inline-flex flex-col items-center justify-start self-stretch pb-8"],(n=[p("div",_(y([["className","flex flex-col items-center justify-start gap-2 self-stretch"],(r=ae(I(()=>{let i;return H(E(p("div",_(y([["className","inline-flex items-center justify-start gap-6 self-stretch"],(i=[p("div",{className:"flex-1 justify-start text-sm leading-tight font-semibold text-black",children:e})],["children",b.Children.toArray(Array.from(i))])])))),I(()=>Kt(o=>{let a;return p("div",_(y([["className","inline-flex items-start justify-start self-stretch pr-12"],(a=[p("div",{className:"flex-1 justify-start text-sm leading-tight font-normal text-gray-500",children:o})],["children",b.Children.toArray(Array.from(a))])])))},t)))})),["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))}function La(e,t,n,r){let i,o;return Ba(y([new Dt(3,[e]),new Dt(4,[t]),new Dt(5,[[p("style",{children:[Ni]}),za(P(new Qr(2,["fixed inset-0 bg-gray-500/50"]))),p("div",_(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto font-inter"],(i=[Ha(P(new On(2,[[p("div",_(y([["className","flex flex-col mt-6 mb-6 px-6 gap-6"],(o=ae(I(()=>{let a,s;return H(E(p("div",_(y([["className","flex flex-row justify-between"],(a=[p("span",{className:"text-gray-900 font-semibold text-lg",children:n}),p("button",_(y([["onClick",l=>{t()}],["type","button"],["className","text-gray-600"],(s=[yy([])],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(a))])])))),I(()=>r))})),["children",b.Children.toArray(Array.from(o))])])))]])))],["children",b.Children.toArray(Array.from(i))])])))]])]))}function Cy(e,t){let n,r,i,o;return La(e,t,"Creating and managing the token",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start gap-3"],(n=[ud("Creating tokens"),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(r=[st("How many tokens can I create?",P("You can have one active token per customer at a time. To create a new token, you must first Regenerate the existing one.")),st("Why can I only see the token once?",P("For security, tokens are shown only when created. This prevents unauthorized access to previously generated tokens.")),st("What if I forget to copy the token?",P("You'll need to Regenerate the token to generate a new one. The previous token cannot be retrieved or viewed again."))],["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])]))),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start gap-3"],(i=[ud("Managing tokens"),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(o=[st("What happens when the token expires?",P("User syncing stops immediately. Create a new token and work with the customer to update their external system (like Entra ID) to restore syncing.")),st("What happens if I regenerate my token?",P("The current token becomes invalid instantly. You must work with the customer to update their external system with the new token to maintain syncing.")),st("What if the customer loses access to their external system?",P("You can Regenerate the token here, but the customer will still need external system access to enter the new token and restore syncing."))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(i))])])))])}function Sy(e,t){let n;return La(e,t,"Keeping the token secure",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(n=[st("Can I share this token with my team?",y(["Only share with team members who need it to help your customer set up their system. Use secure methods like Egnyte - never email or message tokens.","Once your customer has received the token, delete all files that reference the token from your machine, then delete the customer’s folder containing any references of the token from Egnyte."])),st("What can someone do with the customer’s token?",P("They can create, update, and deactivate users in your customer’s system.")),st("What happens if my customer informs me that the token was compromised?",P("Revoke the token immediately if you or the customer suspects compromise.")),st("Is the customer’s token secure?",P("Yes, tokens are encrypted in our system.")),st("Why does my token look cut off in the interface?",P("We hide most characters for security. The full token was only shown when you first created it."))],["children",b.Children.toArray(Array.from(n))])])))])}function Ey(e,t){let n;return La(e,t,"Troubleshooting the token",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(n=[st("My customer’s users aren't syncing. What's wrong?",P("Check if the token expired or verify your customer’s external system configuration. Regenerate the token if sync issues persist.")),st("My customer’s getting authentication errors. What should I do?",P("Their token may be expired or incorrectly configured. Regenerate the token and work with them to update their external system settings."))],["children",b.Children.toArray(Array.from(n))])])))])}const Iy=p("div",_(y([["className","w-full inline-flex flex-col items-start justify-start gap-2 border-b border-gray-200 bg-white px-6 pt-6 pb-4"],(()=>{const e=[p("div",{className:"justify-start self-stretch text-xl leading-normal font-bold text-gray-900",children:"Secret token generated"})];return["children",b.Children.toArray(Array.from(e))]})()])));function Dy(e){let t,n;return p("div",_(y([(t="inline-flex items-center justify-center gap-2.5 self-stretch rounded-[5px] bg-gray-50 p-3 outline outline-1 outline-offset-[-1px] outline-gray-200",["className",t]),(n=[p("div",{className:"flex-1 justify-start text-xs leading-[18px] font-normal text-[#686f7d] break-all",children:e})],["children",b.Children.toArray(Array.from(n))])])))}function Ty(e){let t,n,r,i,o,a,s,l,c,d,u,m;return p("div",_(y([["className","inline-flex flex-col items-start justify-start self-stretch"],(t=[p("div",_(y([["className","flex flex-col items-start justify-start gap-6 self-stretch"],(n=[p("div",_(y([["className","justify-start self-stretch"],(r=[p("span",_(y([["className","text-sm leading-tight font-normal tracking-tight text-gray-700"],(i=[(o="Your secret token has been generated. Treat this token like a password. Anyone with this token can manage users in the customer’s system. ",o),""],["children",b.Children.toArray(Array.from(i))])]))),p("span",{className:"text-sm leading-tight font-semibold tracking-tight text-gray-700",children:"Never share it in emails, chat, or screenshots."})],["children",b.Children.toArray(Array.from(r))])]))),p("div",_(y([["className","flex min-w-[180px] flex-col items-start justify-start gap-2 self-stretch"],(a=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(s=[p("div",_(y([["className","inline-flex items-baseline justify-start gap-2.5 self-stretch px-px"],(l=[p("div",{className:"flex-1 justify-start text-sm leading-tight font-medium tracking-tight text-gray-700",children:"Secret token"})],["children",b.Children.toArray(Array.from(l))])]))),Dy(e)],["children",b.Children.toArray(Array.from(s))])]))),p("button",_(y([["className","inline-flex items-center justify-start gap-1"],(c=[p("div",_(y([["className","flex items-center justify-start"],(d=[p("div",{className:"justify-start text-sm leading-tight font-medium text-[#2e66f7]",children:"Copy to clipboard",onClick:f=>{navigator.clipboard.writeText(e)}})],["children",b.Children.toArray(Array.from(d))])]))),_y([])],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-3 self-stretch rounded-md bg-amber-50 p-4"],(u=[cd([]),p("div",_(y([["className","inline-flex flex-1 flex-col items-start justify-start gap-2"],(m=[p("div",{className:"justify-start self-stretch text-sm leading-tight font-medium text-amber-800",children:"Important: This token will only be shown once"}),p("div",{className:"justify-start self-stretch text-sm leading-tight font-normal text-amber-700",children:"Copy it now and store it safely - you won't be able to see it again."})],["children",b.Children.toArray(Array.from(m))])])))],["children",b.Children.toArray(Array.from(u))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}function Ry(e,t){let n,r,i,o,a,s;return p("div",_(y([(n="inline-flex items-center justify-end gap-3 self-stretch border-t border-gray-200 bg-white px-6 pt-4 pb-6",["className",n]),(r=[p("button",_(y([(i="flex items-center justify-center overflow-hidden rounded-md bg-white px-[17px] py-[9px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",i]),["onClick",l=>{t()}],(o=[p("div",{className:"justify-start text-sm leading-tight font-medium text-gray-700",children:"Close"})],["children",b.Children.toArray(Array.from(o))])]))),p("button",_(y([(a="flex items-center justify-center gap-2 overflow-hidden rounded-md bg-blue-700 py-[9px] pr-[17px] pl-[15px] shadow-sm",["className",a]),["onClick",l=>{navigator.clipboard.writeText(e)}],(s=[Ay([]),p("div",{className:"justify-start text-sm leading-tight font-medium text-white",children:"Copy token to clipboard"})],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(r))])])))}function Fy(e,t,n){let r,i;return Ba(y([new Dt(3,[n]),new Dt(4,[t]),new Dt(2,["relative z-50"]),new Dt(5,[[p("style",{children:[Ni]}),za(y([new Qr(3,[!0]),new Qr(2,["fixed inset-0 bg-black/30 duration-300 ease-out data-closed:opacity-0"])])),p("div",_(y([["className","fixed inset-0 flex w-screen items-center justify-center font-inter"],(r=[Ha(y([new On(3,[!0]),new On(1,["w-full max-w-[480px] relative bg-white rounded-lg shadow-xl inline-flex flex-col justify-start items-start overflow-hidden"]),new On(2,[[dy(P(new uy(3,[[Iy]]))),p("div",_(y([["className","self-stretch px-6 pt-6 pb-6 inline-flex flex-col justify-start items-start gap-2"],(i=[Ty(e)],["children",b.Children.toArray(Array.from(i))])]))),Ry(e,t)]])]))],["children",b.Children.toArray(Array.from(r))])])))]])]))}function My(e){let t,n,r,i,o,a,s;return p("div",_(y([["className","relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left"],(t=[(n=y([p("div",_(y([["className","mx-auto flex size-12 items-center justify-center rounded-full bg-red-100"],(r=[ky([])],["children",b.Children.toArray(Array.from(r))])]))),p("div",_(y([["className","mt-3 text-center sm:mt-5"],(i=[p("h3",{className:"text-base font-semibold text-gray-900",id:"dialog-title",children:"Token Revocation Failed"}),p("div",_(y([["className","mt-2"],(o=[p("p",{className:"text-sm text-gray-500",children:"There was an issue revoking the token. Please try again."}),p("p",{className:"text-sm text-gray-500",children:"If the problem persists, contact support."})],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(i))])])))]),p("div",{children:b.Children.toArray(Array.from(n))})),p("div",_(y([["className","mt-5 sm:mt-6"],(a=[p("button",_(y([(s="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",["className",s]),["children","Close"],["onClick",l=>{e()}]])))],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(t))])])))}function jy(e,t){let n;return Ba(y([new Dt(3,[t]),new Dt(4,[e]),new Dt(2,["relative z-50"]),new Dt(5,[[p("style",{children:[Ni]}),za(y([new Qr(3,[!0]),new Qr(2,["fixed inset-0 bg-black/30 duration-300 ease-out data-closed:opacity-0"])])),p("div",_(y([["className","fixed inset-0 flex w-screen items-center justify-center font-inter"],(n=[Ha(y([new On(3,[!0]),new On(1,["max-w-[480px] relative bg-white rounded-lg shadow-xl inline-flex flex-col justify-start items-start overflow-hidden"]),new On(2,[[My(e)]])]))],["children",b.Children.toArray(Array.from(n))])])))]])]))}function $y(e,t,n){let r,i,o,a,s,l,c,d,u,m,f,h,v,g,x,A,S;const R=n.ScimProvider.fields[0];S=[R.TokenExpiresAt,!R.TokenIsExpired];const M=S[1];return p("div",_(y([(r="inline-flex w-full max-w-[480px] min-w-[280px] flex-col items-start justify-start gap-4 overflow-hidden rounded-lg bg-white p-6 shadow-sm",["className",r]),(i=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(o=[p("div",_(y([["className","inline-flex items-center justify-center gap-2.5 self-stretch"],(a=[p("div",{className:"flex-1 justify-start text-base leading-tight font-bold text-gray-900",children:"SCIM secret token"}),p("div",_(y([["className","flex items-start justify-start"],(s=[p("div",_(y([["className","flex items-center justify-center gap-1.5 rounded bg-gray-100 py-1 pr-2.5 pl-2"],(l=[p("div",_(y([["className","relative h-2 w-2"],(c=[p("div",{className:Le(" ",ae(I(()=>H(E("absolute top-[1px] left-[1px] h-1.5 w-1.5 rounded-full"),I(()=>n.Enabled?E(M?"bg-emerald-400":"bg-red-400"):E("bg-red-400"))))))})],["children",b.Children.toArray(Array.from(c))])]))),p("div",_(ae(I(()=>H(E(["className","justify-start text-center text-xs leading-none font-medium text-gray-800"]),I(()=>n.Enabled?E(M?["children","Active"]:["children","Expired"]):E(["children","Disabled"])))))))],["children",b.Children.toArray(Array.from(l))])])))],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-2 self-stretch"],(d=ae(I(()=>{const N=Sr(S[0],"dd MMMM yyyy HH:mm tt");return E(p("div",_(ae(I(()=>H(E(["className","justify-start text-sm leading-tight font-normal tracking-tight text-[#686f7d]"]),I(()=>n.Enabled?E(M?["children",`Expires ${N}`]:["children",`Token Expired ${N}`]):E(["children","Token disabled"]))))))))})),["children",b.Children.toArray(Array.from(d))])])))],["children",b.Children.toArray(Array.from(o))])]))),p("div",{className:"h-0 self-stretch outline outline-1 outline-offset-[-0.50px] outline-gray-100"}),p("div",_(y([["className","flex min-w-[180px] flex-col items-start justify-start gap-2 self-stretch"],(u=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(m=[p("div",_(y([(f="inline-flex items-center justify-center gap-2.5 self-stretch overflow-hidden rounded-[5px] bg-gray-50 p-3 outline outline-1 outline-offset-[-1px] outline-gray-200",["className",f]),(h=[p("div",{className:"flex-1 justify-start text-xs leading-[18px] font-normal text-[#686f7d]",children:"*********************************************************************"})],["children",b.Children.toArray(Array.from(h))])])))],["children",b.Children.toArray(Array.from(m))])])))],["children",b.Children.toArray(Array.from(u))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-2"],(v=[p("button",_(y([["className",Le(" ",["flex items-center justify-center gap-2 overflow-hidden rounded-md bg-white py-[9px] pr-[13px] pl-[11px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300","disabled:opacity-50 disabled:cursor-not-allowed disabled:text-gray-500 disabled:outline-gray-200"])],["disabled",n.Enabled?!M:!0],["onClick",t],(g=[xy([]),p("div",{className:"justify-start text-sm leading-none font-medium text-gray-700",children:"Revoke"})],["children",b.Children.toArray(Array.from(g))])]))),p("button",_(y([(x="flex items-center justify-center gap-2 overflow-hidden rounded-md bg-white py-[9px] pr-[13px] pl-[11px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",x]),(A=[by([]),p("div",{className:"justify-start text-sm leading-none font-medium text-gray-700",children:"Regenerate",onClick:e})],["children",b.Children.toArray(Array.from(A))])])))],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(i))])])))}function Ny(e){let t,n,r,i,o,a;return p("div",_(y([(t="inline-flex w-full max-w-[480px] flex-col items-start justify-start gap-4 overflow-hidden p-6 bg-gray-300/20 rounded-lg font-inter",["className",t]),(n=[p("div",{className:"justify-start self-stretch text-base font-bold text-black",children:"No secret token exists yet"}),p("div",_(y([["className","inline-flex items-start justify-start gap-3 self-stretch rounded-md bg-amber-50 p-4"],(r=[cd([]),p("div",_(y([["className","inline-flex flex-1 flex-col items-start justify-start gap-2"],(i=[p("div",{className:"justify-start self-stretch text-sm font-medium leading-5 text-amber-800",children:"You'll only see this token once after clicking ‘Generate token’"}),p("div",{className:"justify-start self-stretch text-sm font-normal leading-5 text-amber-700",children:"Make sure you're ready to copy and save it immediately."})],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))])]))),p("div",_(y([(o="inline-flex items-center justify-center gap-2 overflow-hidden rounded-md bg-blue-700 py-[9px] pl-[15px] pr-[17px] shadow-sm",["className",o]),(a=[vy([]),p("button",{className:"justify-start text-sm font-medium leading-tight text-white",children:"Generate token",onClick:e})],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(n))])])))}const Oy=p("div",{className:"justify-start self-stretch text-xl leading-normal font-semibold text-gray-900",children:"User provisioning"}),Py=p("div",_(y([["className","justify-start self-stretch text-sm leading-tight font-normal tracking-tight text-gray-700"],["children","Generate and share a secret token with your customer to enable automated user provisioning from their identity providers."]])));function Ua(e,t){let n,r;return p("button",_(y([(n="inline-flex min-w-20 items-center justify-center overflow-hidden rounded-[15px] bg-white px-[13px] py-[7px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",n]),["onClick",e],(r=[p("div",{className:"justify-start text-gray-600 text-xs font-medium leading-none",children:t})],["children",b.Children.toArray(Array.from(r))])])))}function By(e){let t;return p("div",_(y([["className","inline-flex justify-start items-start gap-2"],(t=[Ua(Be(e)(new mn(1,[])),"Creating and managing the token"),Ua(Be(e)(new mn(2,[])),"Keeping the token secure"),Ua(Be(e)(new mn(3,[])),"Troubleshooting the token")],["children",b.Children.toArray(Array.from(t))])])))}function Hy(e,t){return y([Cy(Ae(e,new mn(1,[])),t),Sy(Ae(e,new mn(2,[])),t),Ey(Ae(e,new mn(3,[])),t)])}function zy(e,t){switch(e.tag){case 2:return Fy(e.fields[0].Value,t,!0);case 3:return jy(t,!0);default:return ct()}}function Ly(e){let t;const n=e.config,r=e.scimConfigService,i=ya(()=>ga(()=>r0(n),(l,c)=>i0(r,l,c),(l,c)=>{}),void 0,void 0),o=i[0],a=i[1],s=l=>{a(new Ht(2,[]))};return p("div",_(y([["className","inline-flex flex-col items-start justify-start gap-8 self-stretch font-inter"],(t=ae(I(()=>H(E(zy(o.FreshToken,()=>{a(new Ht(4,[]))})),I(()=>H(Hy(o.InfoPanel,()=>{a(new Ht(1,[new mn(0,[])]))}),I(()=>{let l;return E(p("div",_(y([["className","flex w-full max-w-[720px] flex-col items-start justify-start gap-6"],(l=ae(I(()=>{let c;return H(E(p("div",_(y([["className","flex flex-col items-start justify-start gap-3 self-stretch"],(c=[p("div",{className:"flex flex-col items-start justify-start gap-2 self-stretch",children:b.Children.toArray([Oy,Py])}),By((d,u)=>{a(new Ht(1,[d]))})],["children",b.Children.toArray(Array.from(c))])])))),I(()=>{const d=o.Config;return d.tag===1?E($y(s,u=>{a(new Ht(5,[]))},d.fields[0])):E(Ny(s))}))})),["children",b.Children.toArray(Array.from(l))])]))))})))))),["children",b.Children.toArray(Array.from(t))])])))}class Yi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}class dd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedConfig"]}}function Uy(){return[new Yi(0,[]),P(e=>{e(new dd(0,[]))})]}function Vy(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Yi(2,[t.fields[0].fields[0]]),ce()]:t.fields[0].fields[0]!=null?[new Yi(1,[new ur(1,[t.fields[0].fields[0]])]),ce()]:[new Yi(1,[new ur(0,[])]),ce()]:[n,Xt(r=>{Yt(r)},e,void 0,r=>new dd(1,[r]))]}function qy(e){let t,n;const r=e.scimConfigService,i=(t=(n=cu(r),o=>a=>Vy(n,o,a)),ya(()=>ga(Uy,K(t),(o,a)=>{}),void 0,void 0))[0];switch(i.tag){case 2:return p("div",{children:i.fields[0]});case 1:return p(Ly,{scimConfigService:r,config:i.fields[0]});default:return p("div",{children:"Loading SCIM configuration..."})}}const pd="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var Wy=0;function Me(e,t,n,r,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wy,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return B.vnode&&B.vnode(c),c}var Va={exports:{}},qa,fd;function Gy(){if(fd)return qa;fd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qa=e,qa}var Wa,md;function Qy(){if(md)return Wa;md=1;var e=Gy();function t(){}function n(){}return n.resetWarningCache=t,Wa=function(){function r(a,s,l,c,d,u){if(u!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Wa}var hd;function Ky(){return hd||(hd=1,Va.exports=Qy()()),Va.exports}var Zy=Ky();const te=mu(Zy);function Pn(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(u){a(u)}}function l(d){try{c(r.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Jy=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function pr(e,t,n){const r=Xy(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&gd(r,"path",o),gd(r,"relativePath",o),r}function Xy(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=Jy.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function gd(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Yy=[".DS_Store","Thumbs.db"];function ex(e){return Pn(this,void 0,void 0,function*(){return eo(e)&&tx(e.dataTransfer)?ox(e.dataTransfer,e.type):nx(e)?rx(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?ix(e):[]})}function tx(e){return eo(e)}function nx(e){return eo(e)&&eo(e.target)}function eo(e){return typeof e=="object"&&e!==null}function rx(e){return Ga(e.target.files).map(t=>pr(t))}function ix(e){return Pn(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>pr(n))})}function ox(e,t){return Pn(this,void 0,void 0,function*(){if(e.items){const n=Ga(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(ax));return wd(vd(r))}return wd(Ga(e.files).map(n=>pr(n)))})}function wd(e){return e.filter(t=>Yy.indexOf(t.name)===-1)}function Ga(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function ax(e){if(typeof e.webkitGetAsEntry!="function")return yd(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?xd(t):yd(e,t)}function vd(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?vd(n):[n]],[])}function yd(e,t){return Pn(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,pr(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return pr(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function sx(e){return Pn(this,void 0,void 0,function*(){return e.isDirectory?xd(e):lx(e)})}function xd(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(a=>Pn(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(sx));i.push(s),o()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),a=>{r(a)})}o()})}function lx(e){return Pn(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=pr(r,e.fullPath);t(i)},r=>{n(r)})})})}var to={},bd;function cx(){return bd||(bd=1,to.__esModule=!0,to.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0}),to}var ux=cx();const Qa=mu(ux);function _d(e){return fx(e)||px(e)||Sd(e)||dx()}function dx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
60
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
61
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jd(e,t){if(e){if(typeof e=="string")return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ja(e,t)}}function Ja(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Ux(e){if(Array.isArray(e))return e}function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$d(Object(n),!0).forEach(function(r){Xa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function io(e,t){if(e==null)return{};var n=Vx(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ya=ii(function(e,t){var n=e.children,r=io(e,Mx),i=Od(r),o=i.open,a=io(i,jx);return ei(t,function(){return{open:o}},[o]),$.createElement(J,null,n(he(he({},a),{},{open:o})))});Ya.displayName="Dropzone";var Nd={disabled:!1,getFilesFromEvent:ex,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Ya.defaultProps=Nd,Ya.propTypes={children:te.func,accept:te.objectOf(te.arrayOf(te.string)),multiple:te.bool,preventDropOnDocument:te.bool,noClick:te.bool,noKeyboard:te.bool,noDrag:te.bool,noDragEventsBubbling:te.bool,minSize:te.number,maxSize:te.number,maxFiles:te.number,disabled:te.bool,getFilesFromEvent:te.func,onFileDialogCancel:te.func,onFileDialogOpen:te.func,useFsAccessApi:te.bool,autoFocus:te.bool,onDragEnter:te.func,onDragLeave:te.func,onDragOver:te.func,onDrop:te.func,onDropAccepted:te.func,onDropRejected:te.func,onError:te.func,validator:te.func};var es={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Od(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=he(he({},Nd),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,m=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,x=t.useFsAccessApi,A=t.autoFocus,S=t.preventDropOnDocument,R=t.noClick,M=t.noKeyboard,N=t.noDrag,L=t.noDragEventsBubbling,ue=t.onError,Se=t.validator,de=se(function(){return Tx(n)},[n]),we=se(function(){return Dx(n)},[n]),Ke=se(function(){return typeof g=="function"?g:Pd},[g]),Oe=se(function(){return typeof v=="function"?v:Pd},[v]),ge=U(null),Te=U(null),Zr=Vn(qx,es),Hn=Za(Zr,2),Vt=Hn[0],be=Hn[1],fr=Vt.isFocused,Tt=Vt.isFileDialogActive,bn=U(typeof window<"u"&&window.isSecureContext&&x&&Ix()),V=function(){!bn.current&&Tt&&setTimeout(function(){if(Te.current){var j=Te.current.files;j.length||(be({type:"closeDialog"}),Oe())}},300)};fe(function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}},[Te,Tt,Oe,bn]);var Rt=U([]),_n=function(j){ge.current&&ge.current.contains(j.target)||(j.preventDefault(),Rt.current=[])};fe(function(){return S&&(document.addEventListener("dragover",Rd,!1),document.addEventListener("drop",_n,!1)),function(){S&&(document.removeEventListener("dragover",Rd),document.removeEventListener("drop",_n))}},[ge,S]),fe(function(){return!r&&A&&ge.current&&ge.current.focus(),function(){}},[ge,A,r]);var an=ne(function(D){ue?ue(D):console.error(D)},[ue]),mr=ne(function(D){D.preventDefault(),D.persist(),lo(D),Rt.current=[].concat(Ox(Rt.current),[D.target]),ro(D)&&Promise.resolve(i(D)).then(function(j){if(!(no(D)&&!L)){var _e=j.length,Re=_e>0&&kx({files:j,accept:de,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:Se}),lt=_e>0&&!Re;be({isDragAccept:Re,isDragReject:lt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(D)}}).catch(function(j){return an(j)})},[i,c,an,L,de,a,o,s,l,Se]),zn=ne(function(D){D.preventDefault(),D.persist(),lo(D);var j=ro(D);if(j&&D.dataTransfer)try{D.dataTransfer.dropEffect="copy"}catch{}return j&&u&&u(D),!1},[u,L]),An=ne(function(D){D.preventDefault(),D.persist(),lo(D);var j=Rt.current.filter(function(Re){return ge.current&&ge.current.contains(Re)}),_e=j.indexOf(D.target);_e!==-1&&j.splice(_e,1),Rt.current=j,!(j.length>0)&&(be({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ro(D)&&d&&d(D))},[ge,d,L]),oo=ne(function(D,j){var _e=[],Re=[];D.forEach(function(lt){var Jr=Dd(lt,de),wr=Za(Jr,2),rs=wr[0],is=wr[1],os=Td(lt,a,o),co=Za(os,2),as=co[0],ss=co[1],ls=Se?Se(lt):null;if(rs&&as&&!ls)_e.push(lt);else{var cs=[is,ss];ls&&(cs=cs.concat(ls)),Re.push({file:lt,errors:cs.filter(function(bb){return bb})})}}),(!s&&_e.length>1||s&&l>=1&&_e.length>l)&&(_e.forEach(function(lt){Re.push({file:lt,errors:[Ax]})}),_e.splice(0)),be({acceptedFiles:_e,fileRejections:Re,isDragReject:Re.length>0,type:"setFiles"}),m&&m(_e,Re,j),Re.length>0&&h&&h(Re,j),_e.length>0&&f&&f(_e,j)},[be,s,de,a,o,l,m,f,h,Se]),ao=ne(function(D){D.preventDefault(),D.persist(),lo(D),Rt.current=[],ro(D)&&Promise.resolve(i(D)).then(function(j){no(D)&&!L||oo(j,D)}).catch(function(j){return an(j)}),be({type:"reset"})},[i,oo,an,L]),hr=ne(function(){if(bn.current){be({type:"openDialog"}),Ke();var D={multiple:s,types:we};window.showOpenFilePicker(D).then(function(j){return i(j)}).then(function(j){oo(j,null),be({type:"closeDialog"})}).catch(function(j){Rx(j)?(Oe(j),be({type:"closeDialog"})):Fx(j)?(bn.current=!1,Te.current?(Te.current.value=null,Te.current.click()):an(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):an(j)});return}Te.current&&(be({type:"openDialog"}),Ke(),Te.current.value=null,Te.current.click())},[be,Ke,Oe,x,oo,an,we,s]),Ud=ne(function(D){!ge.current||!ge.current.isEqualNode(D.target)||(D.key===" "||D.key==="Enter"||D.keyCode===32||D.keyCode===13)&&(D.preventDefault(),hr())},[ge,hr]),Vd=ne(function(){be({type:"focus"})},[]),qd=ne(function(){be({type:"blur"})},[]),Wd=ne(function(){R||(Ex()?setTimeout(hr,0):hr())},[R,hr]),gr=function(j){return r?null:j},ns=function(j){return M?null:gr(j)},so=function(j){return N?null:gr(j)},lo=function(j){L&&j.stopPropagation()},vb=se(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=D.refKey,_e=j===void 0?"ref":j,Re=D.role,lt=D.onKeyDown,Jr=D.onFocus,wr=D.onBlur,rs=D.onClick,is=D.onDragEnter,os=D.onDragOver,co=D.onDragLeave,as=D.onDrop,ss=io(D,$x);return he(he(Xa({onKeyDown:ns(Ut(lt,Ud)),onFocus:ns(Ut(Jr,Vd)),onBlur:ns(Ut(wr,qd)),onClick:gr(Ut(rs,Wd)),onDragEnter:so(Ut(is,mr)),onDragOver:so(Ut(os,zn)),onDragLeave:so(Ut(co,An)),onDrop:so(Ut(as,ao)),role:typeof Re=="string"&&Re!==""?Re:"presentation"},_e,ge),!r&&!M?{tabIndex:0}:{}),ss)}},[ge,Ud,Vd,qd,Wd,mr,zn,An,ao,M,N,r]),yb=ne(function(D){D.stopPropagation()},[]),xb=se(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=D.refKey,_e=j===void 0?"ref":j,Re=D.onChange,lt=D.onClick,Jr=io(D,Nx),wr=Xa({accept:de,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:gr(Ut(Re,ao)),onClick:gr(Ut(lt,yb)),tabIndex:-1},_e,Te);return he(he({},wr),Jr)}},[Te,n,s,ao,r]);return he(he({},Vt),{},{isFocused:fr&&!r,getRootProps:vb,getInputProps:xb,rootRef:ge,inputRef:Te,open:gr(hr)})}function qx(e,t){switch(t.type){case"focus":return he(he({},e),{},{isFocused:!0});case"blur":return he(he({},e),{},{isFocused:!1});case"openDialog":return he(he({},es),{},{isFileDialogActive:!0});case"closeDialog":return he(he({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return he(he({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return he(he({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return he({},es);default:return e}}function Pd(){}const Wx="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",Gx="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA7AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2T4//ABv8Yav8bfFkk3ibXAU1a5iRY72SNERJWVVCqQAAABxXH/8AC2vFX/QzeIP/AAYzf/FVN8a/+Sy+Lv8AsNXn/o965mvpYxVlofPSk7s6D/hbXir/AKGbxB/4MZv/AIqv0d/4Jc/tXzfGr4bS+FdevGuvEnhlBsllbdJeWhOFYnuyEhSfTaTya/MKus+B/wAZtY+APxN0zxTocire6c+TG+fLuYzw8TgdVYceo6jkA1liKCqQstzWhWcJ3ex+3lFfnD/w+j8b/wDQp+Ff++rj/wCLo/4fR+N/+hT8K/8AfVx/8XXl/Ua3Y9L65S7n6PUV+cP/AA+j8b/9Cn4V/wC+rj/4un23/BaXxmtwhm8IeGJIgw3qkk6sw7gEscH3wfpR9Rrdg+uUu5+jdFfJv/D1vQP+hb1D/v8AL/hRWX1ap2NPrFPufnf8a/8Aksvi7/sNXn/o965mum+Nf/JZfF3/AGGrz/0e9czXvx2R4ct2FaXhvwdq3jG6aHSdL1DVJl+8lrbvMV+u0HFdJ+zv8HZ/j18X9H8MxTfZYr12e6ucZFtAil5JD9FU9e+K9Z+J/wC29cfDxm8J/B2GPwZ4V0t/JF5DCn9oas6/KZ5ZCCfmPIHXGPoJlN35Y7lRirc0tjw3xb8MPEngJVbWtB1bSlc4Vrq1eJWPoCRisKvr39in9oH4l/Hv4h/8Iv4k1bTPFXg24iKavF4kMbxpC3B2ORvMh6KASPpjIv8A/BUH9nrwr8APhl8PbHwnp0NnZveag8sobzJbhnWAgu55bAXAyeAKy+sNTVOS1NHRvD2kdj4zooorpOc9QooornOg5X41/wDJZfF3/YavP/R71zNdN8a/+Sy+Lv8AsNXn/o965mto7Ixluz1b9j74Z+Lvi18ULzR/BetR6HrM2k3BMsjlFnhOxZIiQD94Nnp2pvx4/Y08ffs46el94o0+xt7GaTyoriLUIJBM3oqbvMPr93gcmpP2NP2gLX9mb4wSeKrq1kvlt9NuYI7dDtM0jgBAT2G7BJ9Aa9Y+J/xn+G37dkFjqXjHxFqXw38X6fF5DExSahpNwnYogO6Mnvj8d3WsJSnGpe3u+htGMHT394+UEdo3DKxVlOQQcEV6n8Y/hfqvgL4KeA9W1jxFeXdz4uWe+i0iZnb7FChVI5eSfvgnHA6Hriu38N/D74G/BS5/tjxB40m+JV1ZkPbaLpFlJbW88gOR5ssnVOBkAD8eleTfHf42ar8fPiHda9qmyEMogs7SLiGwt1z5cKDsqg/iST3q1JykrbEcqitdzjaKKK2Mj1Ciiiuc6DK/ad8H33gT9oPxhp2oQtDcJq1xLhhjckjmRGHsVYH8a4Sv16/bC/Zy8D/E/wANSa1rnhywvdXtlEaXg3Qzleys6FSwHYNkDJxivlr/AIZS8Af9C+n/AIF3H/xdY0cZFx1RpVwslLRnxVRX2r/wyl4A/wChfT/wLuP/AIuj/hlLwB/0L6f+Bdx/8XWv1qPmZ/V5HxVRX2r/AMMpeAP+hfT/AMC7j/4uj/hlLwB/0L6f+Bdx/wDF0fWo+YfV5HxVUlnZy6hdxW8EbTTTuI40UZZ2JwAB6k19o/8ADKXgD/oX0/8AAu4/+Lr3H9jr9lD4d6NrEmuQ+F7F9U02QNazzvJP5DcYZVdioYdQ2Mg8gionjIxV7FQwspO1z54/4YD8ff8APg//AH7NFfpTRXn/AF2Z6H1SB//Z";function Qx({onCancel:e,onSubmit:t,onFileDrop:n}){const r=ne(u=>{const m=u[0];n(m,m.path)},[]),{getRootProps:i,getInputProps:o,open:a,acceptedFiles:s,fileRejections:l}=Od({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),c=s.map(u=>Me("p",{children:u.path},u.path)),d=l.map(({file:u,errors:m})=>Me("li",{children:[u.path," - ",u.size," bytes",Me("ul",{children:m.map(f=>Me("li",{children:f.message},f.code))})]},u.path));return Me("div",{...i(),children:[Me("input",{...o(),name:"file"}),Me("img",{src:c.length?Gx:Wx,className:"mx-auto mb-2"}),l.length?Me("div",{className:"mb-2",children:[Me("div",{className:"mb-2 font-semibold",children:"Rejected files"}),Me("ul",{children:d})]}):Me(J,{}),c.length?Me(J,{children:[c,Me("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),Me("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):Me(J,{children:[Me("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),Me("button",{type:"button",onClick:a,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const Kx=pd;function Zx(e){let t;const n=b.useState(!1),r=n[1],i=b.useState(0),o=i[0]|0;let a;const s=new FormData;a=b.useState(s);const l=a[0],c=b.useState("profiles");return p("form",_(y([["key",o],(t=ae(I(()=>H(E(p("label",{for:"importStages"})),I(()=>{let d;return H(E(p("select",_(y([["className","m-2"],["name","importStages"],["id","importStages"],(d=[p("option",{children:"Profiles",value:"profiles"}),p("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",b.Children.toArray(Array.from(d))]),["onChange",u=>{c[1](u.target.value)}]])))),I(()=>H(E(p(Qx,{onCancel:()=>{i[1](o+1),a[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(u,m)=>{l.set("file",u,m)}})),I(()=>{let u,m,f,h,v,g,x,A,S,R,M;return n[0]?E((u=y([p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),p("div",_(y([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[p("div",_(y([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(f=[p("div",_(y([(h="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",h]),(v=[(g=y([p("div",_(y([["className","mt-3 text-center sm:mt-5 space-y-6"],(x=[p("img",{src:Kx,className:"mx-auto"}),p("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),p("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",b.Children.toArray(Array.from(x))])]))),p("div",_(y([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(A=[p("button",_(y([["type","button"],(S="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",S]),["children","I confirm"],["onClick",Be(e.RequestStartImport)((R=Go(c[0],[","],void 0,0),(()=>{for(let N=0;N<=R.length-1;N++){const L=le(N,R);l.append("importStages",L)}})(),l))]]))),p("button",_(y([["type","button"],(M="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",M]),["children","Cancel"],["onClick",N=>{r(!1)}]])))],["children",b.Children.toArray(Array.from(A))])])))]),p("div",{children:b.Children.toArray(Array.from(g))}))],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(f))])])))],["children",b.Children.toArray(Array.from(m))])])))]),p("div",{children:b.Children.toArray(Array.from(u))}))):In()}))))})))),["children",b.Children.toArray(Array.from(t))])])))}const Bd="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",Jx=Bd;function Xx(){const e=y([p("img",{src:Jx,className:"mx-auto animate-spin"}),p("p",{className:"mt-2",children:"Validating data"})]);return p("div",{children:b.Children.toArray(Array.from(e))})}const Yx=pd;function eb(e,t,n){let r;return p("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function Hd(e,t){let n;return p("p",_(y([["className","mt-6"],(n=["Download the full error report ",eb(Le(`\r
|
|
63
|
-
`,
|
|
32
|
+
*/var cn=gh;function wh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _h=typeof Object.is=="function"?Object.is:wh,yh=cn.useState,bh=cn.useEffect,Ah=cn.useLayoutEffect,vh=cn.useDebugValue;function xh(e,t){var n=t(),r=yh({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Ah(function(){o.value=n,o.getSnapshot=t,No(o)&&i({inst:o})},[e,n,t]),bh(function(){return No(o)&&i({inst:o}),e(function(){No(o)&&i({inst:o})})},[e]),vh(n),n}function No(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_h(e,n)}catch{return!0}}function Sh(e,t){return t()}var Ch=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Sh:xh;Ga.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Ch,za.exports=Ga;var Eh=za.exports;class kh{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=uh(o)(this.arg);let u=a[0],l=a[1];s=[[u,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],l],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const m=ro(this.state[0]);return ph(this.arg,ch((p,g)=>{const _=this.state;this.finalDispatch=g,this.state=[p,_[1],!0,i],p!==_[0]&&f()},fh((p,g)=>{const _=this.cmd;return this.cmd=Ie(),[this.state[0],_]},(p,g,_)=>p(g)(this.state[0]),ao(p=>p),ao(p=>p),V(p=>p),p=>[g=>p[0](g)?!0:m&&c,g=>{const _=g;ro(_)?q(_):p[1](g)}],o))),()=>{c=!0}}}}function Wa(e,t,n){return new kh(e,t,n)}function Ih(e){return e.state}function Dh(e){return e.subscribe}function Th(e,t,n){return ke(e.arg,t)?!ke(e.dependencies,n):!0}function Rh(e,t,n){const r=Ut(()=>Wa(e,t,n)),o=r[0];Th(o,t,n)&&r[1](Wa(e,t,n));const i=Eh.useSyncExternalStore(Dh(o),()=>Ih(o)),s=i[2],a=i[3],u=i[1];return bt(()=>{if(s&&a.length>0){let l=ne(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{u(f)})}}finally{q(l)}bc(a)}},[s,a]),[i[0],u]}function Qa(e,t){return A.Delay(()=>{const n=document.createElement("a");let r;const o=new Blob([e],{type:"text/csv;charset=utf-8;"});return r=window.URL.createObjectURL(o),n.setAttribute("href",r),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),A.Zero()})}class Mh extends G{constructor(t,n,r,o,i,s,a,u,l){super(),this.SetCurrentTab=t,this.SelectFile=n,this.ShowImportSummary=r,this.ShowImportHistory=o,this.DownloadStageFailures=i,this.DownloadSchema=s,this.RequestStartImport=a,this.SendInvites=u,this.RevokeInvites=l}}function Fh(e,t,n){return A.Delay(()=>A.Bind(Rp(n,e,t),r=>{const o=r;if(o.tag===1)return A.Return(void 0);{const i=Me(`\r
|
|
33
|
+
`,Rn(W("Row,Reason"),xt(s=>Me(",",gt(a=>`"${a}"`,gt(a=>xs(a,'"','""'),[it(s.RowId),s.Reason]))),o.fields[0].FailedRows)));return A.Bind(Qa(i,`${t}_stage_failed_rows.csv`),()=>A.Return(void 0))}}))}function Oh(e){return A.Delay(()=>A.Bind(Dp(e),t=>{const n=t;if(n.tag===1)return A.Return(void 0);{const r=Me(",",xt(o=>o.DisplayName,n.fields[0].ColumnsInfo));return A.Bind(Qa(r,"schema.csv"),()=>A.Return(void 0))}}))}function Nh(e,t){return new Mh((n,r)=>{e(new re(0,[n]))},n=>{e(new re(1,[]))},(n,r)=>{e(new re(2,[n]))},n=>{e(new re(3,[]))},(n,r,o)=>{To(Fh(n,r,t))},n=>{To(Oh(t))},(n,r)=>{e(new re(5,[new _e(0,[n])]))},(n,r)=>{e(new re(7,[new _e(0,[n])]))},(n,r)=>{e(new re(8,[new _e(0,[n])]))})}const Ph=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qa=ae(Ph),S=no;function Bh(e){return Me(", ",xt(Mo,xt(t=>t.Stage,e.CompletedStages)))}function jh(e){let t,n,r,o,i,s,a;const u=e.userActions,l=e.pastImports;return d("div",I(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[d("div",I(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[d("div",I(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[d("table",I(x([["className","min-w-full divide-y divide-gray-300"],(o=[d("thead",I(x([["className","bg-gray-100"],(i=[(s=x([d("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Has errors"})]),d("tr",{children:S.Children.toArray(Array.from(s))}))],["children",S.Children.toArray(Array.from(i))])]))),d("tbody",I(x([["className","divide-y divide-gray-200 bg-white"],(a=Ge(M(()=>Fn(f=>{let c;const m=Bh(f),p=Dn(f.BenefitsRequests)>0?"Yes":"No",g=Ye((_,w)=>_+w,0,xt(_=>_.FailedRowCount,f.CompletedStages))>0?"Yes":"No";return R(d("tr",I(x([["key",f.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",He(u.ShowImportSummary)(f)],(c=[d("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:f.ImportId}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:ae(f.StartTime)}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.User}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.NumberOfRecords}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:p}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g})],["children",S.Children.toArray(Array.from(c))])]))))},l))),["children",S.Children.toArray(Array.from(a))])])))],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(r))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}const $h="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='4'%20fill='url(%23paint0_linear_764_3086)'/%3e%3cpath%20d='M29%2011L17%2023'%20stroke='%232563EB'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29%2011L22%2031L17%2023L9%2018L29%2011Z'%20stroke='%23111827'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_764_3086'%20x1='40'%20y1='5.71311e-06'%20x2='4.50001'%20y2='35.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D6E2FC'/%3e%3cstop%20offset='1'%20stop-color='%23D6E2FC'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Hh(e){let t,n,r,o,i,s,a,u,l,f,c,m;const p=e.onCancel,g=e.onConfirm,_=e.actionName,w=e.text,y=e.title,C=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(t=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[d("div",I(x([(r="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",r]),(o=[(i=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(s=[d("img",{src:$h,className:"mx-auto"}),d("div",I(W((a=[(u=W(d("b",{children:[y]})),d("p",{children:S.Children.toArray(Array.from(u))}))],["children",S.Children.toArray(Array.from(a))])))),d("div",I(x([["className","mt-2 text-left"],(l=[d("p",{children:[w]})],["children",S.Children.toArray(Array.from(l))])])))],["children",S.Children.toArray(Array.from(s))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(f=[d("button",I(x([["type","button"],(c="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",c]),["children",_],["onClick",g]]))),d("button",I(x([["type","button"],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",m]),["children","Cancel"],["onClick",p]])))],["children",S.Children.toArray(Array.from(f))])])))]),d("div",{children:S.Children.toArray(Array.from(i))}))],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))]);return d("div",{children:S.Children.toArray(Array.from(C))})}class Uh extends G{constructor(t,n,r,o,i){super(),this.Title=t,this.Text=n,this.ActionName=r,this.OnConfirm=o,this.OnCancel=i}}function Za(e){let t,n,r;const o=e.userActions,i=e.import,s=e.user,a=S.useState(void 0),u=a[1],l=(p,g,_,w)=>new Uh(p,g,_,y=>{w(y),u(void 0)},y=>{u(void 0)}),f="All profiles will receive an invite to workplace benefits in this import. You can't undo this action",c=$u(p=>p.RequestedAt,i.BenefitsRequests,{Compare:cu}),m=[d("div",I(W((t=Ge(M(()=>$(R(d("p",{children:[`Import ID: ${i.ImportId}`]})),M(()=>$(R(d("p",{children:[`Creator: ${i.User}`]})),M(()=>$(R(d("p",{children:[`Filename: ${i.Filename}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ae(i.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ae(i.StopTime)}`]})),M(()=>$(R(d("p",{children:[`Total rows: ${i.NumberOfRecords}`]})),M(()=>{let p;return $(Ia(s)?R(d("div",I(W((p=Ge(M(()=>{let g;return $(R(d("button",I(x([["type","button"],["children",Dn(c)===0?"Send Benefits Invites":"Resend Benefits Invites"],(g="mt-4 mr-3 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",g]),["onClick",_=>{u(l("Send invites to Flare Benefits",f,"Send Invites",He(o.SendInvites)(i.ImportId)))}]])))),M(()=>{let _;return Dn(c)>0?R(d("button",I(x([["type","button"],["children","Revoke Benefits Invites"],(_="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",_]),["onClick",w=>{u(l("Revoke invites to Flare Benefits","All invites to workplace benefits in this import will be revoked. You can't undo this action","Revoke Invites",He(o.RevokeInvites)(i.ImportId)))}]])))):Mn()}))})),["children",S.Children.toArray(Array.from(p))]))))):Mn(),M(()=>{let g,_,w,y,C,T;return $((g=a[0],g==null?R(At()):(_=g.Title,w=g.Text,y=g.OnConfirm,C=g.OnCancel,T=g.ActionName,R(d(Hh,{title:_,text:w,actionName:T,onConfirm:y,onCancel:C})))),M(()=>{let ee;return $(R(d("div",I(x([["className","mt-4"],(ee=Ge(M(()=>{let Q;return $(R((Q=W(d("b",{children:["Completed stages"]})),d("p",{children:S.Children.toArray(Array.from(Q))}))),M(()=>Fn(X=>{let oe;const fe=Mo(X.Stage);return R(d("div",I(x([["className","mt-4"],(oe=Ge(M(()=>$(R(d("p",{children:[`Stage: ${fe}`]})),M(()=>$(R(d("p",{children:[`Row count: ${X.InputRowCount}`]})),M(()=>$(R(d("p",{children:[`Successful count: ${X.SucceededRowCount}`]})),M(()=>$(R(d("p",{children:[`Failed count: ${X.FailedRowCount}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ae(X.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ae(X.StopTime)}`]})),M(()=>{let te;return X.FailedRowCount>0?R(d("button",I(x([["type","button"],["children","Download Errors"],(te="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",te]),["onClick",Yn(o.DownloadStageFailures)(i.ImportId)(fe)]])))):Mn()})))))))))))))),["children",S.Children.toArray(Array.from(oe))])]))))},i.CompletedStages)))})),["children",S.Children.toArray(Array.from(ee))])])))),M(()=>{let Q,X,oe;return Dn(c)>0?R(d("div",I(x([["className","mt-4"],(Q=[(X=W(d("b",{children:["Invite Log"]})),d("p",{children:S.Children.toArray(Array.from(X))})),d("div",I(x([["className","mt-4"],(oe=Ge(M(()=>Fn(fe=>fe.RequestType.tag===1?R(d("p",{children:[`${fe.User} revoked invites of ${fe.ProfileCount} users at ${ae(fe.RequestedAt)}`]})):R(d("p",{children:[`${fe.User} sent invites to ${fe.ProfileCount} users at ${ae(fe.RequestedAt)}`]})),c))),["children",S.Children.toArray(Array.from(oe))])])))],["children",S.Children.toArray(Array.from(Q))])])))):Mn()}))}))}))})))))))))))))),["children",S.Children.toArray(Array.from(t))])))),d("div",I(x([["className","text-center"],(n=[d("button",I(x([["type","button"],["children","Close"],(r="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",o.ShowImportHistory]])))],["children",S.Children.toArray(Array.from(n))])])))];return d(be,{},...m)}function Vh(e){const t=e.userActions,n=e.state,r=e.user,o=n.ImportSummary;return o==null?d(jh,{pastImports:n.PastImports,userActions:t}):d(Za,{user:r,import:o,userActions:t})}const Ja="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var Ka={exports:{}},Lh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zh=Lh,Gh=zh;function Xa(){}function Ya(){}Ya.resetWarningCache=Xa;var Wh=function(){function e(r,o,i,s,a,u){if(u!==Gh){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ya,resetWarningCache:Xa};return n.PropTypes=n,n};Ka.exports=Wh();var Qh=Ka.exports;const U=hh(Qh);function un(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(c){s(c)}}function u(f){try{l(r.throw(f))}catch(c){s(c)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}function fn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function el(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function tl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var qh=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function $n(e,t){var n=Zh(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Zh(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=qh.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Jh=[".DS_Store","Thumbs.db"];function Kh(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return br(e)&&Xh(e.dataTransfer)?[2,nm(e.dataTransfer,e.type)]:Yh(e)?[2,em(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,tm(e)]:[2,[]]})})}function Xh(e){return br(e)}function Yh(e){return br(e)&&br(e.target)}function br(e){return typeof e=="object"&&e!==null}function em(e){return Po(e.target.files).map(function(t){return $n(t)})}function tm(e){return un(this,void 0,void 0,function(){var t;return fn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return $n(r)})]}})})}function nm(e,t){return un(this,void 0,void 0,function(){var n,r;return fn(this,function(o){switch(o.label){case 0:return e.items?(n=Po(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(rm))]):[3,2];case 1:return r=o.sent(),[2,nl(rl(r))];case 2:return[2,nl(Po(e.files).map(function(i){return $n(i)}))]}})})}function nl(e){return e.filter(function(t){return Jh.indexOf(t.name)===-1})}function Po(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function rm(e){if(typeof e.webkitGetAsEntry!="function")return ol(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?il(t):ol(e)}function rl(e){return e.reduce(function(t,n){return tl(tl([],el(t),!1),el(Array.isArray(n)?rl(n):[n]),!1)},[])}function ol(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=$n(t);return Promise.resolve(n)}function om(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,e.isDirectory?il(e):im(e)]})})}function il(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return un(s,void 0,void 0,function(){var u,l,f;return fn(this,function(c){switch(c.label){case 0:if(a.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=c.sent(),n(u),[3,4];case 3:return l=c.sent(),r(l),[3,4];case 4:return[3,6];case 5:f=Promise.all(a.map(om)),o.push(f),i(),c.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function im(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=$n(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var sm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0};function sl(e){return cm(e)||lm(e)||ul(e)||am()}function am(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
34
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cm(e){if(Array.isArray(e))return Bo(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(r){cl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e,t){return dm(e)||fm(e,t)||ul(e,t)||um()}function um(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ul(e,t){if(e){if(typeof e=="string")return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bo(e,t)}}function Bo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function dm(e){if(Array.isArray(e))return e}var pm="file-invalid-type",hm="file-too-large",mm="file-too-small",gm="too-many-files",wm=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:pm,message:"File type must be ".concat(n)}},fl=function(t){return{code:hm,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},dl=function(t){return{code:mm,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},_m={code:gm,message:"Too many files"};function pl(e,t){var n=e.type==="application/x-moz-file"||sm(e,t);return[n,n?null:wm(t)]}function hl(e,t,n){if(jt(e.size))if(jt(t)&&jt(n)){if(e.size>n)return[!1,fl(n)];if(e.size<t)return[!1,dl(t)]}else{if(jt(t)&&e.size<t)return[!1,dl(t)];if(jt(n)&&e.size>n)return[!1,fl(n)]}return[!0,null]}function jt(e){return e!=null}function ym(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(u){var l=pl(u,n),f=Hn(l,1),c=f[0],m=hl(u,r,o),p=Hn(m,1),g=p[0],_=a?a(u):null;return c&&g&&!_})}function Ar(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ml(e){e.preventDefault()}function bm(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Am(e){return e.indexOf("Edge/")!==-1}function vm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return bm(e)||Am(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(a){return!Ar(r)&&a&&a.apply(void 0,[r].concat(i)),Ar(r)})}}function xm(){return"showOpenFilePicker"in window}function Sm(e){if(jt(e)){var t=Object.entries(e).filter(function(n){var r=Hn(n,2),o=r[0],i=r[1],s=!0;return gl(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(wl))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Hn(r,2),i=o[0],s=o[1];return ll(ll({},n),{},cl({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Cm(e){if(jt(e))return Object.entries(e).reduce(function(t,n){var r=Hn(n,2),o=r[0],i=r[1];return[].concat(sl(t),[o],sl(i))},[]).filter(function(t){return gl(t)||wl(t)}).join(",")}function Em(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function km(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function gl(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function wl(e){return/^.*\.[\w]+$/.test(e)}var Im=["children"],Dm=["open"],Tm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Rm=["refKey","onChange","onClick"];function Mm(e){return Nm(e)||Om(e)||_l(e)||Fm()}function Fm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Om(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nm(e){if(Array.isArray(e))return $o(e)}function jo(e,t){return jm(e)||Bm(e,t)||_l(e,t)||Pm()}function Pm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _l(e,t){if(e){if(typeof e=="string")return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}}function $o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function jm(e){if(Array.isArray(e))return e}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(n),!0).forEach(function(r){Ho(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){if(e==null)return{};var n=$m(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $m(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Uo=qr(function(e,t){var n=e.children,r=xr(e,Im),o=Al(r),i=o.open,s=xr(o,Dm);return Wn(t,function(){return{open:i}},[i]),no.createElement(be,null,n(K(K({},s),{},{open:i})))});Uo.displayName="Dropzone";var bl={disabled:!1,getFilesFromEvent:Kh,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Uo.defaultProps=bl,Uo.propTypes={children:U.func,accept:U.objectOf(U.arrayOf(U.string)),multiple:U.bool,preventDropOnDocument:U.bool,noClick:U.bool,noKeyboard:U.bool,noDrag:U.bool,noDragEventsBubbling:U.bool,minSize:U.number,maxSize:U.number,maxFiles:U.number,disabled:U.bool,getFilesFromEvent:U.func,onFileDialogCancel:U.func,onFileDialogOpen:U.func,useFsAccessApi:U.bool,autoFocus:U.bool,onDragEnter:U.func,onDragLeave:U.func,onDragOver:U.func,onDrop:U.func,onDropAccepted:U.func,onDropRejected:U.func,onError:U.func,validator:U.func};var Vo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Al(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},bl),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,u=t.maxFiles,l=t.onDragEnter,f=t.onDragLeave,c=t.onDragOver,m=t.onDrop,p=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,y=t.useFsAccessApi,C=t.autoFocus,T=t.preventDropOnDocument,ee=t.noClick,Q=t.noKeyboard,X=t.noDrag,oe=t.noDragEventsBubbling,fe=t.onError,te=t.validator,lt=Ze(function(){return Cm(n)},[n]),kl=Ze(function(){return Sm(n)},[n]),zo=Ze(function(){return typeof w=="function"?w:vl},[w]),Sr=Ze(function(){return typeof _=="function"?_:vl},[_]),Ee=It(null),Qe=It(null),h0=yn(Hm,Vo),Il=jo(h0,2),Go=Il[0],Be=Il[1],m0=Go.isFocused,Dl=Go.isFileDialogActive,Cr=It(typeof window<"u"&&window.isSecureContext&&y&&xm()),Tl=function(){!Cr.current&&Dl&&setTimeout(function(){if(Qe.current){var D=Qe.current.files;D.length||(Be({type:"closeDialog"}),Sr())}},300)};bt(function(){return window.addEventListener("focus",Tl,!1),function(){window.removeEventListener("focus",Tl,!1)}},[Qe,Dl,Sr,Cr]);var dn=It([]),Rl=function(D){Ee.current&&Ee.current.contains(D.target)||(D.preventDefault(),dn.current=[])};bt(function(){return T&&(document.addEventListener("dragover",ml,!1),document.addEventListener("drop",Rl,!1)),function(){T&&(document.removeEventListener("dragover",ml),document.removeEventListener("drop",Rl))}},[Ee,T]),bt(function(){return!r&&C&&Ee.current&&Ee.current.focus(),function(){}},[Ee,C,r]);var $t=we(function(v){fe?fe(v):console.error(v)},[fe]),Ml=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[].concat(Mm(dn.current),[v.target]),vr(v)&&Promise.resolve(o(v)).then(function(D){if(!(Ar(v)&&!oe)){var ie=D.length,ge=ie>0&&ym({files:D,accept:lt,minSize:s,maxSize:i,multiple:a,maxFiles:u,validator:te}),je=ie>0&&!ge;Be({isDragAccept:ge,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),l&&l(v)}}).catch(function(D){return $t(D)})},[o,l,$t,oe,lt,s,i,a,u,te]),Fl=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=vr(v);if(D&&v.dataTransfer)try{v.dataTransfer.dropEffect="copy"}catch{}return D&&c&&c(v),!1},[c,oe]),Ol=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=dn.current.filter(function(ge){return Ee.current&&Ee.current.contains(ge)}),ie=D.indexOf(v.target);ie!==-1&&D.splice(ie,1),dn.current=D,!(D.length>0)&&(Be({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(v)&&f&&f(v))},[Ee,f,oe]),Er=we(function(v,D){var ie=[],ge=[];v.forEach(function(je){var Un=pl(je,lt),mn=jo(Un,2),Qo=mn[0],qo=mn[1],Zo=hl(je,s,i),Tr=jo(Zo,2),Jo=Tr[0],Ko=Tr[1],Xo=te?te(je):null;if(Qo&&Jo&&!Xo)ie.push(je);else{var Yo=[qo,Ko];Xo&&(Yo=Yo.concat(Xo)),ge.push({file:je,errors:Yo.filter(function(y0){return y0})})}}),(!a&&ie.length>1||a&&u>=1&&ie.length>u)&&(ie.forEach(function(je){ge.push({file:je,errors:[_m]})}),ie.splice(0)),Be({acceptedFiles:ie,fileRejections:ge,type:"setFiles"}),m&&m(ie,ge,D),ge.length>0&&g&&g(ge,D),ie.length>0&&p&&p(ie,D)},[Be,a,lt,s,i,u,m,p,g,te]),kr=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[],vr(v)&&Promise.resolve(o(v)).then(function(D){Ar(v)&&!oe||Er(D,v)}).catch(function(D){return $t(D)}),Be({type:"reset"})},[o,Er,$t,oe]),pn=we(function(){if(Cr.current){Be({type:"openDialog"}),zo();var v={multiple:a,types:kl};window.showOpenFilePicker(v).then(function(D){return o(D)}).then(function(D){Er(D,null),Be({type:"closeDialog"})}).catch(function(D){Em(D)?(Sr(D),Be({type:"closeDialog"})):km(D)?(Cr.current=!1,Qe.current?(Qe.current.value=null,Qe.current.click()):$t(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):$t(D)});return}Qe.current&&(Be({type:"openDialog"}),zo(),Qe.current.value=null,Qe.current.click())},[Be,zo,Sr,y,Er,$t,kl,a]),Nl=we(function(v){!Ee.current||!Ee.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),pn())},[Ee,pn]),Pl=we(function(){Be({type:"focus"})},[]),Bl=we(function(){Be({type:"blur"})},[]),jl=we(function(){ee||(vm()?setTimeout(pn,0):pn())},[ee,pn]),hn=function(D){return r?null:D},Wo=function(D){return Q?null:hn(D)},Ir=function(D){return X?null:hn(D)},Dr=function(D){oe&&D.stopPropagation()},g0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,ie=D===void 0?"ref":D,ge=v.role,je=v.onKeyDown,Un=v.onFocus,mn=v.onBlur,Qo=v.onClick,qo=v.onDragEnter,Zo=v.onDragOver,Tr=v.onDragLeave,Jo=v.onDrop,Ko=xr(v,Tm);return K(K(Ho({onKeyDown:Wo(at(je,Nl)),onFocus:Wo(at(Un,Pl)),onBlur:Wo(at(mn,Bl)),onClick:hn(at(Qo,jl)),onDragEnter:Ir(at(qo,Ml)),onDragOver:Ir(at(Zo,Fl)),onDragLeave:Ir(at(Tr,Ol)),onDrop:Ir(at(Jo,kr)),role:typeof ge=="string"&&ge!==""?ge:"presentation"},ie,Ee),!r&&!Q?{tabIndex:0}:{}),Ko)}},[Ee,Nl,Pl,Bl,jl,Ml,Fl,Ol,kr,Q,X,r]),w0=we(function(v){v.stopPropagation()},[]),_0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,ie=D===void 0?"ref":D,ge=v.onChange,je=v.onClick,Un=xr(v,Rm),mn=Ho({accept:lt,multiple:a,type:"file",style:{display:"none"},onChange:hn(at(ge,kr)),onClick:hn(at(je,w0)),tabIndex:-1},ie,Qe);return K(K({},mn),Un)}},[Qe,n,a,kr,r]);return K(K({},Go),{},{isFocused:m0&&!r,getRootProps:g0,getInputProps:_0,rootRef:Ee,inputRef:Qe,open:hn(pn)})}function Hm(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},Vo),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K({},Vo);default:return e}}function vl(){}const Um="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",Vm="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA7AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2T4//ABv8Yav8bfFkk3ibXAU1a5iRY72SNERJWVVCqQAAABxXH/8AC2vFX/QzeIP/AAYzf/FVN8a/+Sy+Lv8AsNXn/o965mvpYxVlofPSk7s6D/hbXir/AKGbxB/4MZv/AIqv0d/4Jc/tXzfGr4bS+FdevGuvEnhlBsllbdJeWhOFYnuyEhSfTaTya/MKus+B/wAZtY+APxN0zxTocire6c+TG+fLuYzw8TgdVYceo6jkA1liKCqQstzWhWcJ3ex+3lFfnD/w+j8b/wDQp+Ff++rj/wCLo/4fR+N/+hT8K/8AfVx/8XXl/Ua3Y9L65S7n6PUV+cP/AA+j8b/9Cn4V/wC+rj/4un23/BaXxmtwhm8IeGJIgw3qkk6sw7gEscH3wfpR9Rrdg+uUu5+jdFfJv/D1vQP+hb1D/v8AL/hRWX1ap2NPrFPufnf8a/8Aksvi7/sNXn/o965mum+Nf/JZfF3/AGGrz/0e9czXvx2R4ct2FaXhvwdq3jG6aHSdL1DVJl+8lrbvMV+u0HFdJ+zv8HZ/j18X9H8MxTfZYr12e6ucZFtAil5JD9FU9e+K9Z+J/wC29cfDxm8J/B2GPwZ4V0t/JF5DCn9oas6/KZ5ZCCfmPIHXGPoJlN35Y7lRirc0tjw3xb8MPEngJVbWtB1bSlc4Vrq1eJWPoCRisKvr39in9oH4l/Hv4h/8Iv4k1bTPFXg24iKavF4kMbxpC3B2ORvMh6KASPpjIv8A/BUH9nrwr8APhl8PbHwnp0NnZveag8sobzJbhnWAgu55bAXAyeAKy+sNTVOS1NHRvD2kdj4zooorpOc9QooornOg5X41/wDJZfF3/YavP/R71zNdN8a/+Sy+Lv8AsNXn/o965mto7Ixluz1b9j74Z+Lvi18ULzR/BetR6HrM2k3BMsjlFnhOxZIiQD94Nnp2pvx4/Y08ffs46el94o0+xt7GaTyoriLUIJBM3oqbvMPr93gcmpP2NP2gLX9mb4wSeKrq1kvlt9NuYI7dDtM0jgBAT2G7BJ9Aa9Y+J/xn+G37dkFjqXjHxFqXw38X6fF5DExSahpNwnYogO6Mnvj8d3WsJSnGpe3u+htGMHT394+UEdo3DKxVlOQQcEV6n8Y/hfqvgL4KeA9W1jxFeXdz4uWe+i0iZnb7FChVI5eSfvgnHA6Hriu38N/D74G/BS5/tjxB40m+JV1ZkPbaLpFlJbW88gOR5ssnVOBkAD8eleTfHf42ar8fPiHda9qmyEMogs7SLiGwt1z5cKDsqg/iST3q1JykrbEcqitdzjaKKK2Mj1Ciiiuc6DK/ad8H33gT9oPxhp2oQtDcJq1xLhhjckjmRGHsVYH8a4Sv16/bC/Zy8D/E/wANSa1rnhywvdXtlEaXg3Qzleys6FSwHYNkDJxivlr/AIZS8Af9C+n/AIF3H/xdY0cZFx1RpVwslLRnxVRX2r/wyl4A/wChfT/wLuP/AIuj/hlLwB/0L6f+Bdx/8XWv1qPmZ/V5HxVRX2r/AMMpeAP+hfT/AMC7j/4uj/hlLwB/0L6f+Bdx/wDF0fWo+YfV5HxVUlnZy6hdxW8EbTTTuI40UZZ2JwAB6k19o/8ADKXgD/oX0/8AAu4/+Lr3H9jr9lD4d6NrEmuQ+F7F9U02QNazzvJP5DcYZVdioYdQ2Mg8gionjIxV7FQwspO1z54/4YD8ff8APg//AH7NFfpTRXn/AF2Z6H1SB//Z";var Lm=0;function me(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var l={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Lm,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return O.vnode&&O.vnode(l),l}function zm({onCancel:e,onSubmit:t,onFileDrop:n}){const r=we(c=>{const m=c[0];n(m,m.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:u}=Al({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),l=a.map(c=>me("p",{children:c.path},c.path)),f=u.map(({file:c,errors:m})=>me("li",{children:[c.path," - ",c.size," bytes",me("ul",{children:m.map(p=>me("li",{children:p.message},p.code))})]},c.path));return me("div",{...o(),children:[me("input",{...i(),name:"file"}),me("img",{src:l.length?Vm:Um,className:"mx-auto mb-2"}),u.length?me("div",{className:"mb-2",children:[me("div",{className:"mb-2 font-semibold",children:"Rejected files"}),me("ul",{children:f})]}):me(be,{}),l.length?me(be,{children:[l,me("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),me("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):me(be,{children:[me("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),me("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const Gm=Ja;function Wm(e){let t;const n=S.useState(!1),r=n[1],o=S.useState(0),i=o[0]|0;let s;const a=new FormData;s=S.useState(a);const u=s[0],l=S.useState("profiles");return d("form",I(x([["key",i],(t=Ge(M(()=>$(R(d("label",{for:"importStages"})),M(()=>{let f;return $(R(d("select",I(x([["className","m-2"],["name","importStages"],["id","importStages"],(f=[d("option",{children:"Profiles",value:"profiles"}),d("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",S.Children.toArray(Array.from(f))]),["onChange",c=>{l[1](c.target.value)}]])))),M(()=>$(R(d(zm,{onCancel:()=>{o[1](i+1),s[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(c,m)=>{u.set("file",c,m)}})),M(()=>{let c,m,p,g,_,w,y,C,T,ee,Q;return n[0]?R((c=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(p=[d("div",I(x([(g="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",g]),(_=[(w=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(y=[d("img",{src:Gm,className:"mx-auto"}),d("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),d("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",S.Children.toArray(Array.from(y))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(C=[d("button",I(x([["type","button"],(T="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",T]),["children","I confirm"],["onClick",He(e.RequestStartImport)((ee=go(l[0],[","],void 0,0),(()=>{for(let X=0;X<=ee.length-1;X++){const oe=pe(X,ee);u.append("importStages",oe)}})(),u))]]))),d("button",I(x([["type","button"],(Q="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",Q]),["children","Cancel"],["onClick",X=>{r(!1)}]])))],["children",S.Children.toArray(Array.from(C))])])))]),d("div",{children:S.Children.toArray(Array.from(w))}))],["children",S.Children.toArray(Array.from(_))])])))],["children",S.Children.toArray(Array.from(p))])])))],["children",S.Children.toArray(Array.from(m))])])))]),d("div",{children:S.Children.toArray(Array.from(c))}))):Mn()}))))})))),["children",S.Children.toArray(Array.from(t))])])))}const xl="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",Qm=xl;function qm(){const e=x([d("img",{src:Qm,className:"mx-auto animate-spin"}),d("p",{className:"mt-2",children:"Validating data"})]);return d("div",{children:S.Children.toArray(Array.from(e))})}const Zm=Ja;function Jm(e,t,n){let r;return d("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function Sl(e,t){let n;return d("p",I(x([["className","mt-6"],(n=["Download the full error report ",Jm(Me(`\r
|
|
38
|
+
`,Ru(Rn(W(W("Row,Column,Error")),xt(r=>xt(o=>Me(",",gt(i=>`"${i}"`,gt(i=>xs(i,'"','""'),[it(r.RowId),o.Column,o.Message]))),r.FieldErrors),t)))),`${e}_validation_errors.csv`,"here"),"."],["children",S.Children.toArray(Array.from(n))])])))}function Km(e,t){switch(t.tag){case 15:return d("p",{children:["Internal API deserialization error"]});case 16:return d("p",{children:["Internal API client error"]});case 0:return d("p",{children:["Invalid file type"]});case 4:return d("p",{children:["Invalid file name"]});case 5:return d("p",{children:["CSV exceeds max row limit"]});case 14:return d("p",{children:["Duplicate row id"]});case 6:return d("p",{children:[t.fields[0]]});case 7:return d("p",{children:["CSV does not contain any data"]});case 8:return d("p",{children:["File not uploaded, ensure a file is selected"]});case 9:return d("p",{children:["Only a single file is allowed"]});case 11:return d("p",{children:["Unknown account"]});case 10:if(Dn(t.fields[0])<=10){const n=Ge(M(()=>$(R(d("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),M(()=>$(Fn(r=>et(o=>d("li",{children:[`Row ${r.RowId}, Column ${o.Column}: ${o.Message}`]}),r.FieldErrors),t.fields[0]),M(()=>R(Sl(e,t.fields[0]))))))));return d("div",{children:S.Children.toArray(Array.from(n))})}else{const n=x([d("p",{children:["The file contains more than 10 validation errors"]}),Sl(e,t.fields[0])]);return d("div",{children:S.Children.toArray(Array.from(n))})}case 12:return d("p",{children:["An import is already in progress"]});case 3:return d("p",{children:["Stage not completed"]});case 2:return d("p",{children:["Invalid import stage"]});case 1:return d("p",{children:["Invalid import stages"]});default:return d("p",{children:["Bad internal request payload"]})}}function Xm(e){const t=e.userActions,n=e.accountId,r=e.error,o=Ge(M(()=>{const i=Km(n,r);return $(R(d("img",{src:Zm,className:"mx-auto"})),M(()=>$(R(d("div",{className:"mt-2",children:S.Children.toArray([i])})),M(()=>{let s;return R(d("button",I(x([["type","button"],["children","Upload another file"],(s="mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",s]),["onClick",t.SelectFile]]))))}))))}));return d("div",{children:S.Children.toArray(Array.from(o))})}const Ym="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";function e0(e){const t=e.userActions,n=e.import,r=e.user,o=x([d("img",{src:Ym,className:"mx-auto"}),d("p",{className:"mt-2 mb-6",children:"Import has finished"}),d(Za,{user:r,import:n,userActions:t})]);return d("div",{children:S.Children.toArray(Array.from(o))})}const t0=xl;function n0(e){const t=e.CurrentStage;if(t==null)return d("p",{children:["No running stage. Please wait..."]});{const n=t,r=Mo(n.Stage),o=Ss(bu(it,Au((s,a)=>s+a,n.SucceededRowCount,n.FailedRowCount)),"Working..."),i=x([d("img",{src:t0,className:"mx-auto animate-spin"}),d("p",{className:"mt-2 mb-6",children:`Running stage: ${r}`}),d("p",{children:[`Creator: ${e.User}`]}),d("p",{children:[`Filename: ${e.Filename}`]}),d("p",{children:[`Rows processed: ${o}`]}),d("p",{children:[`Total rows: ${e.NumberOfRecords}`]})]);return d("div",{children:S.Children.toArray(Array.from(i))})}}function r0(e){let t,n;const r=e.errorText;return d("div",I(x([["className","text-center"],(t=[d("p",{children:["Oops, something went wrong."]}),d("p",{children:[`Error: ${r}.`]}),d("p",{children:["Please refresh the page and try again."]}),d("button",I(x([(n="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",n]),["onClick",o=>{window.location.reload()}],["children","Refresh"]])))],["children",S.Children.toArray(Array.from(t))])])))}function o0(e){let t,n,r,o,i,s,a,u,l,f;const c=e.userActions,m=e.accountId,p=e.tabState,g=e.user,_=x([d("div",I(x([["className","space-y-6"],(t=[(n=x([(r=`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
64
39
|
Optionally include employment info.
|
|
65
|
-
The file will be validated `,r),
|
|
40
|
+
The file will be validated `,r),d("b",{children:["before"]}),(o=` creating the profiles.
|
|
66
41
|
If validation fails, the file will be rejected, and no profiles or tax records created.
|
|
67
|
-
You'll get an error report to fix the information before re-uploading.`,
|
|
42
|
+
You'll get an error report to fix the information before re-uploading.`,o)]),d("p",{children:S.Children.toArray(Array.from(n))})),d("p",{children:"This feature doesn't update existing profiles or tax information in the account."}),(i=x([d("span",{children:["Not sure how to get started?"]}),d("ul",I(x([["className","ml-6 list-disc list-outside"],(s=[(a=x([d("a",{className:"cursor-pointer font-medium text-blue-600 underline",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),d("li",{children:S.Children.toArray(Array.from(a))})),d("button",I(x([["type","button"],["children","Download Template"],(u="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",u]),["onClick",c.DownloadSchema]])))],["children",S.Children.toArray(Array.from(s))])])))]),d("div",{children:S.Children.toArray(Array.from(i))}))],["children",S.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","px-8 mt-10"],(l=[d("div",I(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(f=Ge(M(()=>{switch(p.tag){case 1:return Da(g)?R(d(Wm,c)):R(d("div",{children:["You are not authorised to run imports"]}));case 2:return R(d(qm,null));case 3:return R(d(Xm,{error:p.fields[0],accountId:m,userActions:c}));case 4:{const w=p.fields[0];return w.tag===1?R(d(e0,{user:g,import:w.fields[0],userActions:c})):R(d(n0,w.fields[0]))}case 5:return R(d(r0,{errorText:p.fields[0]}));default:return R(d("div",{children:["Please wait..."]}))}})),["children",S.Children.toArray(Array.from(f))])])))],["children",S.Children.toArray(Array.from(l))])])))]);return d("div",{children:S.Children.toArray(Array.from(_))})}function i0(e){let t,n,r;const o=e.userActions,i=e.state,s=e.tabs,a=x([d("style",{children:[qa]}),d("div",I(x([["className","border-b border-gray-200"],(t=[d("nav",I(x([["className","-mb-px flex space-x-8"],(n=Ge(M(()=>et(u=>d("button",{type:"button",key:$a(u),disabled:ke(i.CurrentTab,u),className:Me(" ",["border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium","disabled:border-indigo-500 disabled:text-indigo-600"]),onClick:He(o.SetCurrentTab)(u),children:$a(u)}),s))),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","mt-4"],(r=Ge(M(()=>{let u;return i.CurrentTab.tag===1?R(d(Vh,{user:i.User,state:i.ImportHistoryTabState,userActions:o})):R((u=W(d(o0,{user:i.User,tabState:i.ActiveImportTabState,accountId:i.AccountInfo.AccountId,userActions:o})),d("div",{children:S.Children.toArray(Array.from(u))})))})),["children",S.Children.toArray(Array.from(r))])])))]);return d("div",{children:S.Children.toArray(Array.from(a))})}function Lo(){return(Lo=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 s0=["context","children"];function a0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(a[i]=r[i]);return a}(e,s0);return Hr(t,n)}function l0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(a0,Lo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,u=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Cl(a[s].name)]=a[s].value);for(s=u.length;s--;){var l=t(u[s],null),f=u[s].slot;f?i[f]=d(El,{name:f},l):o[s]=l}var c=r?d(El,null,o):o;return d(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?$r:yt)(this._vdom,this._root)}function Cl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function c0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Cl(e)]=n,this._vdom=Hr(this._vdom,r),yt(this._vdom,this._root)}}function u0(){yt(this._vdom=null,this._root)}function El(e,t){var n=this;return d("slot",Lo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function f0(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=l0,o.prototype.attributeChangedCallback=c0,o.prototype.disconnectedCallback=u0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function d0(e,t){f0(e,t)}function p0(e){let t;const n=Od(e.accessToken),r=e.accountId,o=e.partnerId,i=new zp(r,o);let s,a;switch(n!=null?(t=n,(Ia(t)?!0:Da(t))?(s=0,a=n):s=1):s=1,s){case 0:{const u=Ip(e.backendUrl,o,r,e.accessToken);let l;const f=Gp(a,i);l=Rh(()=>lh(()=>f,(m,p)=>Wp(u,m,p),(m,p)=>{}),void 0,void 0);const c=Nh(l[1],u);return d(i0,{tabs:x([new We(0,[]),new We(1,[])]),state:l[0],userActions:c})}default:{const u=x([d("style",{children:[qa]}),d("div",{children:"You do not have the appropriate permissions to view or perform an import."})]);return d("div",{children:S.Children.toArray(Array.from(u))})}}}d0(e=>d(p0,e),"superhero-import-app")})();
|