@flarehr/superhero-basic-profile 3.86.77 → 3.88.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,15 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();class gr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return cn(this.value)}Equals(t){return t==null?!1:tt(this.value,t instanceof gr?t.value:t)}CompareTo(t){return t==null?1:Gt(this.value,t instanceof gr?t.value:t)}}function ie(e){if(e==null)throw new Error("Option has no value");return e instanceof gr?e.value:e}function zt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ep(e){return e!=null&&typeof e.GetEnumerator=="function"}function tp(e){return e!=null&&typeof e.CompareTo=="function"}function np(e){return e!=null&&typeof e.Equals=="function"}function Hu(e){return e!=null&&typeof e.GetHashCode=="function"}function ju(e){return e!=null&&typeof e.Dispose=="function"}function se(e){ju(e)&&e.Dispose()}function He(){return null}function Xo(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class rp{constructor(t){this.iter=t,this.current=He()}"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 We(e){return ep(e)?e.GetEnumerator():new rp(e[Symbol.iterator]())}function bi(e){return{[Symbol.iterator](){return this},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 op{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 qe(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ip(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function Ql(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function sp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function bn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class nn{static id(t){return nn.idMap.has(t)||nn.idMap.set(t,++nn.count),nn.idMap.get(t)}}nn.idMap=new WeakMap;nn.count=0;function Ks(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Tt(e){return e*2654435761|0}function xr(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function lp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Tt(e);case"string":return Ks(e);default:return Tt(nn.id(e))}}function ap(e){return Hu(e)?e.GetHashCode():lp(e)}function up(e){return e.getTime()}function cp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=cn(e[r]);return xr(n)}function cn(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Tt(e);case"string":return Ks(e);default:{if(Hu(e))return e.GetHashCode();if(zt(e))return cp(e);if(e instanceof Date)return up(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>cn(r));return xr(n)}else return Tt(nn.id(e))}}}function Js(e){return ap(e)}function ys(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 Lu(e,t){return ys(e,t,tt)}function fp(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]||!tt(e[n[o]],t[r[o]]))return!1;return!0}function tt(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:np(e)?e.Equals(t):zt(e)?zt(t)&&Lu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Vu(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&fp(e,t)}function Vu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ql(e),r=t.getTime()+Ql(t)),n===r?0:n<r?-1:1}function Gn(e,t){return e===t?0:e<t?-1:1}function dp(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 Uu(e,t){return dp(e,t,Gt)}function pp(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=Gt(e[s],t[s]),i!==0)return i}return 0}function Gt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:tp(e)?e.CompareTo(t):zt(e)?zt(t)?Uu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Vu(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?pp(e,t):-1}function _s(e,t,n){return e(t,n)>0?t:n}function H(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const vs=Symbol("curried");function oe(e,t){if(t==null)return t;const n=ie(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[vs]=n,r}function zu(e,t,n){return r=>t===1?n(...e.concat([r])):zu(e.concat([r]),t-1,n)}function Cr(e,t,n){if(t!=null)if(vs in t){t=t[vs];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return zu(n,e,t)}function hp(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ze(r);else if(t===100){n+="; ...";break}else n+="; "+Ze(r);t++}return n+"]"}function Ze(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return hp(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Ze(s,t+1)).join(`
2
- `)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function mp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ze(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ze(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class j{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return mp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>cn(n));return t.splice(0,0,Tt(this.tag)),xr(t)}Equals(t){return this===t?!0:Xo(this,t)&&this.tag===t.tag?Lu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Xo(this,t)?this.tag===t.tag?Uu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function gp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function wp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ze(n)).join(`
3
- `)+" }"}function yp(e){const t=Object.values(e).map(n=>cn(n));return xr(t)}function _p(e,t){if(e===t)return!0;if(Xo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!tt(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function vp(e,t){if(e===t)return 0;if(Xo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Gt(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class te{toJSON(){return gp(this)}toString(){return wp(this)}GetHashCode(){return yp(this)}Equals(t){return _p(this,t)}CompareTo(t){return vp(this,t)}}class rt{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 bp{constructor(t){this.message=t}}function Ap(e){return e instanceof bp||e instanceof Error}function Ep(e){return e instanceof Promise}function qo(e){return Ap(e)||Ep(e)?e:new Error(String(e))}const Dn=Symbol("numeric");function Gu(e){return typeof e=="number"||(e==null?void 0:e[Dn])}function xp(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function bs(e,t){return typeof e=="number"?e*t:e[Dn]().multiply(t)}function Wo(e,t){return typeof e=="number"?e.toFixed(t):e[Dn]().toFixed(t)}function Yo(e,t){return typeof e=="number"?e.toPrecision(t):e[Dn]().toPrecision(t)}function ei(e,t){return typeof e=="number"?e.toExponential(t):e[Dn]().toExponential(t)}function ti(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[Dn]().toHex()}var q={GetHashCode(){return xr([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Dn](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Cp=28,Sp=1,Wn=1e6,Kl=1e6,Dp=-29,kp=29,Tp=!1,vo="[big.js] ",qn=vo+"Invalid ",Ai=qn+"decimal places",Fp=qn+"rounding mode",Wu=vo+"Division by zero",Ut=void 0,Ip=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Zu(){function e(t){var n=this;if(!(n instanceof e))return t===Ut?Zu():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Mp(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(qn+"number");t=t===0&&1/t<0?"-0":String(t)}Rp(n,t)}n.constructor=e}return e.prototype=q,e.DP=Cp,e.RM=Sp,e.NE=Dp,e.PE=kp,e.strict=Tp,e}function Mp(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Rp(e,t){var n,r,o;if(!Ip.test(t))throw Error(qn+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=kn(e,An.DP+1,An.RM),e}function kn(e,t,n,r){var o=e.c;if(n===Ut&&(n=An.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Fp);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==Ut))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,l)=>l>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==Ut||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function Sr(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}q.abs=function(){var e=new this.constructor(this);return e.s=1,e};q.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=r.s,a=o.s,c=r.e,u=o.e;if(!i[0]||!s[0])return i[0]?l:s[0]?-a:0;if(l!=a)return l;if(t=l<0,c!=u)return c>u^t?1:-1;for(a=Math.max(i.length,s.length),l=0;l<a;l++)if(c=l<i.length?i[l]:0,u=l<s.length?s[l]:0,c!=u)return c>u^t?1:-1;return 0};q.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,l=t.DP;if(l!==~~l||l<0||l>Wn)throw Error(Ai);if(!i[0])throw Error(Wu);if(!o[0])return r.s=s,r.c=[r.e=0],r;var a,c,u,d,f,p=i.slice(),h=a=i.length,y=o.length,w=o.slice(0,a),_=w.length,b=r,F=b.c=[],R=0,B=l+(b.e=n.e-r.e)+1;for(b.s=s,s=B<0?0:B,p.unshift(0);_++<a;)w.push(0);do{for(u=0;u<10;u++){if(a!=(_=w.length))d=a>_?1:-1;else for(f=-1,d=0;++f<a;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(c=_==a?i:p;_;){if(w[--_]<c[_]){for(f=_;f&&!w[--f];)w[f]=9;--w[f],w[_]+=10}w[_]-=c[_]}for(;!w[0];)w.shift()}else break}F[R++]=d?u:++u,w[0]&&d?w[_]=o[h]||0:w=[o[h]]}while((h++<y||w[0]!==Ut)&&s--);return!F[0]&&R!=1&&(F.shift(),b.e--,B--),R>B&&kn(b,B,t.RM,w[0]!==Ut),b};q.eq=function(e){return this.cmp(e)===0};q.gt=function(e){return this.cmp(e)>0};q.gte=function(e){return this.cmp(e)>-1};q.lt=function(e){return this.cmp(e)<0};q.lte=function(e){return this.cmp(e)<1};q.minus=q.sub=function(l){var t,n,r,o,i=this.constructor,s=new i(this),l=new i(l),a=s.s,c=l.s;if(a!=c)return l.s=-c,s.plus(l);var u=s.c.slice(),d=s.e,f=l.c,p=l.e;if(!u[0]||!f[0])return f[0]?l.s=-c:u[0]?l=new i(s):l.s=1,l;if(a=d-p){for((o=a<0)?(a=-a,r=u):(p=d,r=f),r.reverse(),c=a;c--;)r.push(0);r.reverse()}else for(n=((o=u.length<f.length)?u:f).length,a=c=0;c<n;c++)if(u[c]!=f[c]){o=u[c]<f[c];break}if(o&&(r=u,u=f,f=r,l.s=-l.s),(c=(n=f.length)-(t=u.length))>0)for(;c--;)u[t++]=0;for(c=t;n>a;){if(u[--n]<f[n]){for(t=n;t&&!u[--t];)u[t]=9;--u[t],u[n]+=10}u[n]-=f[n]}for(;u[--c]===0;)u.pop();for(;u[0]===0;)u.shift(),--p;return u[0]||(l.s=1,u=[p=0]),l.c=u,l.e=p,l};q.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(Wu);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))};q.plus=q.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var l=i.e,a=i.c,c=s.e,u=s.c;if(!a[0]||!u[0])return u[0]||(a[0]?s=new o(i):s.s=i.s),s;if(a=a.slice(),t=l-c){for(t>0?(c=l,r=u):(t=-t,r=a),r.reverse();t--;)r.push(0);r.reverse()}for(a.length-u.length<0&&(r=u,u=a,a=r),t=u.length,n=0;t;a[t]%=10)n=(a[--t]=a[t]+u[t]+n)/10|0;for(n&&(a.unshift(n),++c),t=a.length;a[--t]===0;)a.pop();return s.c=a,s.e=c,s};q.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-Kl||e>Kl)throw Error(qn+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r};q.prec=function(e,t){if(e!==~~e||e<1||e>Wn)throw Error(qn+"precision");return kn(new this.constructor(this),e,t)};q.round=function(e,t){if(e===Ut)e=0;else if(e!==~~e||e<-Wn||e>Wn)throw Error(Ai);return kn(new this.constructor(this),e+this.e+1,t)};q.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,l=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(vo+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=l.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return kn(e,(r.DP-=4)+e.e+1,r.RM)};q.times=q.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=i.length,a=s.length,c=r.e,u=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+u,l<a&&(t=i,i=s,s=t,u=l,l=a,a=u),t=new Array(u=l+a);u--;)t[u]=0;for(c=a;c--;){for(a=0,u=l+c;u>c;)a=t[u]+s[c]*i[u-c-1]+a,t[u--]=a%10,a=a/10|0;t[u]=a}for(a?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o};q.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==Ut){if(e!==~~e||e<0||e>Wn)throw Error(Ai);for(n=kn(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Sr(n,!0,!!r)};q.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==Ut){if(e!==~~e||e<0||e>Wn)throw Error(Ai);for(n=kn(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return Sr(n,!1,!!r)};q.toJSON=q.toString=function(){var e=this,t=e.constructor;return Sr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};q.toNumber=function(){var e=Number(Sr(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(vo+"Imprecise conversion");return e};q.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==Ut){if(e!==~~e||e<1||e>Wn)throw Error(qn+"precision");for(n=kn(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Sr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)};q.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(vo+"valueOf disallowed");return Sr(e,e.e<=t.NE||e.e>=t.PE,!0)};var An=Zu();new An(0);new An(1);new An(-1);new An("79228162514264337593543950335");new An("-79228162514264337593543950335");var As;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(As||(As={}));function Np(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Jl(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 Pp(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 Op(e,t){if(t&As.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 Bp(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||Op(i,t),!Pp(n).test(s))return Np(o,n)}return null}function $p(e,t,n,r,o){const i=Bp(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[l,a]=Jl(!0,r);!n&&i.radix!==10&&s>=l&&s<=a&&(s=s<<32-r>>32-r);const[c,u]=Jl(n,r);if(s>=c&&s<=u)return s}}throw new Error("Input string was not in a correct format.")}function Dr(e,t,n,r,o){try{return o.contents=$p(e,t,n,r),!0}catch{return!1}}function Hp(e){return e===-2147483648?e:-e}var _t=null;try{_t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Pt(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}Pt.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e};Pt.prototype.Equals=function(e){return gt(this,e)};Pt.prototype.CompareTo=function(e){return bo(this,e)};Pt.prototype.toString=function(e){return uo(this,e)};Pt.prototype.toJSON=function(){return uo(this)};Pt.prototype[Dn]=function(){const e=this;return{multiply:t=>ft(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>uo(e.unsigned?e:t0(qp(e),!0),16)}};Pt.prototype.__isLong__;Object.defineProperty(Pt.prototype,"__isLong__",{value:!0});function Ot(e){return(e&&e.__isLong__)===!0}var Xl={},ql={};function kr(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=ql[e],r)?r:(n=le(e,(e|0)<0?-1:0,!0),o&&(ql[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=Xl[e],r)?r:(n=le(e,e<0?-1:0,!1),o&&(Xl[e]=n),n))}function It(e,t){if(isNaN(e))return t?_n:Mt;if(t){if(e<0)return _n;if(e>=Ku)return Up}else{if(e<=-ea)return vt;if(e+1>=ea)return Vp}return e<0?Te(It(-e,t)):le(e%wr|0,e/wr|0,t)}function le(e,t,n){return new Pt(e,t,n)}var ni=Math.pow;function Qu(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Mt;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return Te(Qu(e.substring(1),t,n));for(var o=It(ni(n,8)),i=Mt,s=0;s<e.length;s+=8){var l=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+l),n);if(l<8){var c=It(ni(n,l));i=Zn(ft(i,c),It(a))}else i=ft(i,o),i=Zn(i,It(a))}return i.unsigned=t,i}function Tn(e,t){return typeof e=="number"?It(e,t):typeof e=="string"?Qu(e,t):le(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var Yl=1<<16,jp=1<<24,wr=Yl*Yl,Ku=wr*wr,ea=Ku/2,ta=kr(jp),Mt=kr(0),_n=kr(0,!0),qr=kr(1),Lp=kr(1,!0),na=kr(-1),Vp=le(-1,2147483647,!1),Up=le(-1,-1,!0),vt=le(0,-2147483648,!1);function yr(e){return e.unsigned?e.low>>>0:e.low}function ao(e){return e.unsigned?(e.high>>>0)*wr+(e.low>>>0):e.high*wr+(e.low>>>0)}function uo(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Ln(e))return"0";if(wt(e))if(gt(e,vt)){var n=It(t),r=tn(e,n),o=_r(ft(r,n),e);return uo(r,t)+yr(o).toString(t)}else return"-"+uo(Te(e),t);for(var i=It(ni(t,6),e.unsigned),s=e,l="";;){var a=tn(s,i),c=yr(_r(s,ft(a,i)))>>>0,u=c.toString(t);if(s=a,Ln(s))return u+l;for(;u.length<6;)u="0"+u;l=""+u+l}}function Ln(e){return e.high===0&&e.low===0}function wt(e){return!e.unsigned&&e.high<0}function ra(e){return(e.low&1)===1}function gt(e,t){return Ot(t)||(t=Tn(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function oa(e,t){return bo(e,t)<0}function Ji(e,t){return bo(e,t)>0}function zp(e,t){return bo(e,t)>=0}function bo(e,t){if(Ot(t)||(t=Tn(t)),gt(e,t))return 0;var n=wt(e),r=wt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:wt(_r(e,t))?-1:1}function Te(e){return!e.unsigned&&gt(e,vt)?vt:Zn(Wp(e),qr)}function Zn(e,t){Ot(t)||(t=Tn(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,l=t.high&65535,a=t.low>>>16,c=t.low&65535,u=0,d=0,f=0,p=0;return p+=i+c,f+=p>>>16,p&=65535,f+=o+a,d+=f>>>16,f&=65535,d+=r+l,u+=d>>>16,d&=65535,u+=n+s,u&=65535,le(f<<16|p,u<<16|d,e.unsigned)}function _r(e,t){return Ot(t)||(t=Tn(t)),Zn(e,Te(t))}function ft(e,t){if(Ln(e))return e.unsigned?_n:Mt;if(Ot(t)||(t=Tn(t)),_t){var n=_t.mul(e.low,e.high,t.low,t.high);return le(n,_t.get_high(),e.unsigned)}if(Ln(t))return e.unsigned?_n:Mt;if(gt(e,vt))return ra(t)?vt:Mt;if(gt(t,vt))return ra(e)?vt:Mt;if(wt(e))return wt(t)?ft(Te(e),Te(t)):Te(ft(Te(e),t));if(wt(t))return Te(ft(e,Te(t)));if(oa(e,ta)&&oa(t,ta))return It(ao(e)*ao(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,l=t.high>>>16,a=t.high&65535,c=t.low>>>16,u=t.low&65535,d=0,f=0,p=0,h=0;return h+=s*u,p+=h>>>16,h&=65535,p+=i*u,f+=p>>>16,p&=65535,p+=s*c,f+=p>>>16,p&=65535,f+=o*u,d+=f>>>16,f&=65535,f+=i*c,d+=f>>>16,f&=65535,f+=s*a,d+=f>>>16,f&=65535,d+=r*u+o*c+i*a+s*l,d&=65535,le(p<<16|h,d<<16|f,e.unsigned)}function tn(e,t){if(Ot(t)||(t=Tn(t)),Ln(t))throw Error("division by zero");if(_t){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?_t.div_u:_t.div_s)(e.low,e.high,t.low,t.high);return le(n,_t.get_high(),e.unsigned)}if(Ln(e))return e.unsigned?_n:Mt;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Xp(t)),Ji(t,e))return _n;if(Ji(t,Jp(e,1)))return Lp;i=_n}else{if(gt(e,vt)){if(gt(t,qr)||gt(t,na))return vt;if(gt(t,vt))return qr;var s=Kp(e,1);return r=Qp(tn(s,t),1),gt(r,Mt)?wt(t)?qr:na:(o=_r(e,ft(t,r)),i=Zn(r,tn(o,t)),i)}else if(gt(t,vt))return e.unsigned?_n:Mt;if(wt(e))return wt(t)?tn(Te(e),Te(t)):Te(tn(Te(e),t));if(wt(t))return Te(tn(e,Te(t)));i=Mt}for(o=e;zp(o,t);){r=Math.max(1,Math.floor(ao(o)/ao(t)));for(var l=Math.ceil(Math.log(r)/Math.LN2),a=l<=48?1:ni(2,l-48),c=It(r),u=ft(c,t);wt(u)||Ji(u,o);)r-=a,c=It(r,e.unsigned),u=ft(c,t);Ln(c)&&(c=qr),i=Zn(i,c),o=_r(o,u)}return i}function Gp(e,t){if(Ot(t)||(t=Tn(t)),_t){var n=(e.unsigned?_t.rem_u:_t.rem_s)(e.low,e.high,t.low,t.high);return le(n,_t.get_high(),e.unsigned)}return _r(e,ft(tn(e,t),t))}function Wp(e){return le(~e.low,~e.high,e.unsigned)}function Zp(e,t){return Ot(t)||(t=Tn(t)),le(e.low&t.low,e.high&t.high,e.unsigned)}function Qp(e,t){return Ot(t)&&(t=yr(t)),(t&=63)===0?e:t<32?le(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):le(0,e.low<<t-32,e.unsigned)}function Kp(e,t){return Ot(t)&&(t=yr(t)),(t&=63)===0?e:t<32?le(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):le(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Jp(e,t){if(Ot(t)&&(t=yr(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return le(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return le(t===32?n:n>>>t-32,0,e.unsigned)}function Xp(e){return e.unsigned?e:le(e.low,e.high,!0)}function qp(e,t){return t?Yp(e):e0(e)}function Yp(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function e0(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function t0(e,t,n){return n?n0(e,t):r0(e,t)}function n0(e,t){return new Pt(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function r0(e,t){return new Pt(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const bt=Zn,At=ft,Wt=tn,o0=Gp,i0=Te,Tr=Zp,Ei=bo,Ie=le,Zt=yr,s0=ao;function ye(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return le(r,o>>31,t)}class l0{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class V{constructor(t,n,r,o,i,s,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=l}toString(){return ee(this)}GetHashCode(){return Ju(this)}Equals(t){return Es(this,t)}}function yt(e){return e.generics!=null?e.generics:[]}function Ju(e){const t=Ks(e.fullname),n=yt(e).map(Ju);return xr([t,...n])}function Es(e,t){return e.fullname===""?t.fullname===""&&ys(fo(e),fo(t),([n,r],[o,i])=>n===o&&Es(r,i)):e.fullname===t.fullname&&ys(yt(e),yt(t),Es)}function co(e,t,n,r){return new V(e,t,n,r)}function mn(e,t,n,r){return new V(e,t,n,void 0,r)}function a0(...e){return new V("",void 0,void 0,void 0,()=>e)}function Xu(e,t,n,r){const o=new V(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,l)=>new l0(o,l,i[l],s))});return o}function Xs(e){return new V("Microsoft.FSharp.Core.FSharpOption`1",[e])}function xi(e){return new V("Microsoft.FSharp.Collections.FSharpList`1",[e])}function u0(e){return new V("[]",[e])}const c0=new V("System.Object");new V("Microsoft.FSharp.Core.Unit");new V("System.Char");const xt=new V("System.String"),qu=new V("System.Boolean");new V("System.SByte");new V("System.Byte");new V("System.Int16");new V("System.UInt16");const Oe=new V("System.Int32");new V("System.UInt32");new V("System.Int64");new V("System.UInt64");new V("System.Int128");new V("System.UInt128");new V("System.IntPtr");new V("System.UIntPtr");new V("System.Half");new V("System.Single");new V("System.Double");new V("System.Decimal");new V("System.Numerics.BigInteger");function pr(e){if(Array.isArray(e))return e[0];if(e instanceof V){const t=Ao(e);if(t!=null)return pr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ee(e){const t=Ao(e);return t!=null?ee(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ee(n)).join(",")+"]"}function Yu(e){return Ao(e)!=null}function Ao(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function ec(e){return e.generics!=null&&e.generics.length>0}function qs(e){return e.enumCases!=null&&e.enumCases.length>0}function tc(e){return e.generics==null?e:new V(e.fullname,e.generics.map(()=>c0))}function nc(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function lr(e){if(qs(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function f0(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 ar(e,t){const n=parseInt(t,10);return f0(e,isNaN(n)?t:n)[1]}function rc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function fo(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function oc(e){if(Ys(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function ic(e){return e instanceof V?e.cases!=null:e instanceof j}function sc(e){return e instanceof V?e.fields!=null:e instanceof te}function Ys(e){return e.fullname.startsWith("System.Tuple")}function d0(e,t){const r=rc(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function lc(e){return e.fields==null?[]:e.fields}function p0(e,t){return e[t[0]]}function ia(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function h0(e,t){const n=fo(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 m0(e,t){return e}function el(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+qe(n,2)+":"+qe(r,2)}function ri(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 g0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return qe(e.getFullYear(),4)+"-"+qe(e.getMonth()+1,2)+"-"+qe(e.getDate(),2)+"T"+qe(e.getHours(),2)+":"+qe(e.getMinutes(),2)+":"+qe(e.getSeconds(),2)+"."+qe(e.getMilliseconds(),3)+(n?el(e.getTimezoneOffset()*-6e4):"")}}function w0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+el(t)}function ac(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:qe(o,r.length)})}function y0(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+el((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return ri(i,"first");case"T":case"t":return ri(i,"second");case"O":case"o":return w0(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return ac(i,t,!0)}function _0(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?ri(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ri(e,"second"):e.toLocaleTimeString();case"O":case"o":return g0(e,n);default:throw new Error("Unrecognized Date print format")}else return ac(e,t,n)}function Ci(e,t,n){return e.offset!=null?y0(e,t):_0(e,t)}function tl(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function v0(){return tl(-621355968e5,0)}function uc(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 l=o[2].split(":");s=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const l=new Date;i=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,s-=l*60}}else if(o[1]!=null)i=new Date(o[1]);else{const l=new Date;i=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.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 b0(e,t=!1){const[n,r]=uc(e),o=r!=null?t&&r==="Z"?1:2:0;return tl(n.getTime(),o)}function A0(e,t){try{return t.contents=b0(e),!0}catch{return!1}}function E0(e){return e.kind===1?e:tl(e.getTime(),1)}function x0(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 nl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sa(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 C0(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const l=[],a=arguments.length,c=typeof arguments[a-1]!="string";let u=c?a-3:a-2;for(let d=0;d<u;d++)l.push(arguments[d]);l.index=arguments[u++],l.input=arguments[u++],c&&(l.groups=arguments[u]),s=n(l)}return s}if(typeof e=="string"){const s=e;e=x0(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,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 l=t.substring(o),a=sa(e,l),c=sa.length>r?(s=a[r-1],l.substring(0,s.index+s[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Zr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,S0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function cc(e,t){return xp(e,t)<0}function gn(e){return{input:e,cont:k0(e)}}function fc(e,t){return typeof t=="string"?e(t):t.cont(e)}function Yn(e){return fc(t=>t,e)}function dc(e){return fc(t=>{throw new Error(t)},e)}function D0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Gu(e))switch(o.toLowerCase()!=="x"&&(cc(e,0)?(e=bs(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!=null?r:6,e=Wo(e,r);break;case"g":case"G":e=r!=null?Yo(e,r):Yo(e);break;case"e":case"E":e=r!=null?ei(e,r):ei(e);break;case"x":e=ti(e);break;case"X":e=ti(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ci(e):e=Ze(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,l=t.indexOf("-")>=0,a=l||!s?" ":"0";a==="0"?(e=po(e,n-i.length,a,l),e=i+e):e=po(i+e,n,a,l)}return e}function pc(e,t,n,r="",o=-1){return(...i)=>{let s=r;const l=t.slice(),a=n.slice();for(const c of i){const[,,u,d,f,p]=a[0];let h=d;if(o>=0)h=o,o=-1;else if(h==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=D0(c,u,h,f,p),l.splice(0,1),a.splice(0,1)}return a.length===0?(s+=l[0],e(s)):pc(e,l,a,s,o)}}function k0(e){return t=>{Zr.lastIndex=0;const n=[],r=[];let o=0,i=Zr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Zr.lastIndex,Zr.lastIndex-=1,i=Zr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),pc(t,n,r))}}function T0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(S0,(r,o,i,s,l,a)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(Gu(c))switch(l=l==null?null:parseInt(l,10),s){case"f":case"F":l=l!=null?l:2,c=Wo(c,l);break;case"g":case"G":c=l!=null?Yo(c,l):Yo(c);break;case"e":case"E":c=l!=null?ei(c,l):ei(c);break;case"p":case"P":l=l!=null?l:2,c=Wo(bs(c,100),l)+" %";break;case"d":case"D":c=l!=null?Xi(String(c),l,"0"):String(c);break;case"x":case"X":c=l!=null?Xi(ti(c),l,"0"):ti(c),s==="X"&&(c=c.toUpperCase());break;default:if(a){let u="";c=a.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{cc(c,0)&&(c=bs(c,-1),u="-"),p=p==null?"":p.substring(1),c=Wo(c,Math.max(p.length,0));let[h,y]=c.split(".");y||(y="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;h=Xi(h,w,"0");const _=p.replace(/#+$/,"").length;if(_>y.length?y=I0(y,_,"0"):_<y.length&&(y=y.substring(0,_)+y.substring(_).replace(/0+$/,"")),f.indexOf(",")>0){const b=h.length%3,F=Math.floor(h.length/3);let R=b>0?h.substr(0,b)+(F>0?",":""):"";for(let B=0;B<F;B++)R+=h.substr(b+B*3,3)+(B<F-1?",":"");h=R}return y.length>0?h+"."+y:h}),c=u+c}}else c instanceof Date?c=Ci(c,a||s):c=Ze(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=po(String(c),Math.abs(i)," ",i<0)),c})}function F0(e){return typeof e!="string"||e.length===0}function fn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function po(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 Xi(e,t,n){return po(e,t,n)}function I0(e,t,n){return po(e,t,n,!0)}function M0(e,t,n){return e.replace(new RegExp(nl(t),"g"),n)}function hc(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(u=>u).map(nl),t=t.length>0?t:["\\s"];const s=[],l=new RegExp(t.join("|"),"g");let a=!0,c=0;do{const u=l.exec(e);if(u===null){const d=i?e.substring(c).trim():e.substring(c);(!o||d.length>0)&&s.push(d),a=!1}else{const d=i?e.substring(c,u.index).trim():e.substring(c,u.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),a=!1):s.push(d)),c=l.lastIndex}}while(a);return s}function R0(e,...t){if(t.length===0)return e.trim();const n="["+nl(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const mc="Collection was empty.",N0="An index satisfying the predicate was not found in the collection.";function fe(e){return e==null||e instanceof gr?new gr(e):e}function P0(e){return e==null?[]:[ie(e)]}function oi(e,t){return e!=null?ie(e):t}function O0(e,t){return e!=null?ie(e):t()}function B0(e,t){return t!=null?fe(e(ie(t))):void 0}function rl(e,t){return typeof e=="function"?new e(t):new Array(t)}function $0(){throw new Error("Arrays had different lengths")}function Si(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function dn(e,t,n){const r=t.length|0,o=rl(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function H0(e,t){const n=rl(t,1);return n[0]=e,n}function Fr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=rl(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function j0(e){return e.slice()}function L0(e,t){return t.find(e)}function V0(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=ie(i);r.push(s)}}return tt(n,He())?r:dn(o=>o,r,n)}function ol(e,t,n){return n.reduce(e,t)}function U0(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function z0(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function G0(e,t,n,r){let o=r;t.length!==n.length&&$0();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function W0(e,t,n,r){return G0((o,i,s,l)=>e(i,s,l),t,n,r)}class Qt extends te{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+fn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,l=i,a=s.tail,c=l.tail;if(a!=null)if(c!=null){const u=a,d=c;if(tt(s.head,l.head)){o=u,i=d;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,l=o,a=i,c=a.tail;if(c!=null){const u=c;if(s>18)return l|0;r=s+1,o=(l<<1)+cn(a.head)+631*s,i=u;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,l=i,a=s.tail,c=l.tail;if(a!=null)if(c!=null){const u=a,d=c,f=Gt(s.head,l.head)|0;if(f===0){o=u,i=d;continue e}else return f|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Q0(this)}[Symbol.iterator](){return bi(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return We(this)}}class Z0{constructor(t){this.xs=t,this.it=this.xs,this.current=He()}"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=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=He()}Dispose(){}}function Q0(e){return new Z0(e)}function Kt(){return new Qt(He(),void 0)}function Eo(e,t){return new Qt(e,t)}function xo(e){return e.tail==null}function gc(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function Di(e){if(e.tail!=null)return e.head;throw new Error(mc+"\\nParameter name: list")}function Fn(e){const t=e.tail;if(t!=null)return t;throw new Error(mc+"\\nParameter name: list")}function K0(){throw new Error(N0)}function dt(){return Kt()}function ut(e,t){return Eo(e,t)}function Fe(e){return Eo(e,Kt())}function z(e){return xo(e)}function J0(e){return gc(e)}function D(e){return Di(e)}function U(e){return Fn(e)}function ki(e){const t=gc(e)|0,n=Si(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,l=i;if(!xo(l)){n[s]=Di(l),o=s+1,i=Fn(l);continue e}break}})(0,e),n}function In(e,t,n){let r=t,o=n;for(;!xo(o);)r=e(r,D(o)),o=Fn(o);return r}function wc(e){return In((t,n)=>Eo(n,t),Kt(),e)}function yc(e,t){In((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Eo(e[r],n);return n}function E(e){return ae(e,Kt())}function X0(e){let t,n;if(zt(e))return E(e);if(e instanceof Qt)return e;{const r=Kt();let o=r;const i=We(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Qt(a,void 0),t.tail=n,n)}}finally{se(i)}const s=o,l=Kt();return s.tail=l,Fn(r)}}function _c(e){const t=Kt();let n=t;const r=s=>{n=In((l,a)=>{const c=new Qt(a,void 0);return l.tail=c,c},n,s)};if(zt(e))e.forEach(r);else if(e instanceof Qt)yc(r,e);else{const s=We(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{se(s)}}const o=n,i=Kt();return o.tail=i,Fn(t)}function Ti(e,t){return In((n,r)=>Eo(r,n),t,wc(e))}function ii(e,t){const n=Kt(),r=In((i,s)=>{const l=new Qt(e(s),void 0);return i.tail=l,l},n,t),o=Kt();return r.tail=o,Fn(n)}function q0(e,t){return(r=>{e:for(;;){const o=r;if(xo(o))return;{const i=e(Di(o));if(i==null){r=Fn(o);continue e}else return i}}})(t)}function Y0(e,t){return q0(n=>e(n)?fe(n):void 0,t)}function eh(e,t){const n=Y0(e,t);return n==null?K0():ie(n)}function th(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(xo(s))return;if(e(Di(s)))return i;r=i+1,o=Fn(s);continue e}})(0,t)}function il(e,t,n){return th(r=>n.Equals(e,r),t)!=null}class g extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function pn(e,t){return t.tag===0?new g(0,[e(t.fields[0])]):new g(1,[t.fields[0]])}function sl(e,t){return t.tag===0?new g(0,[t.fields[0]]):new g(1,[e(t.fields[0])])}class vc extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function nh(e){return new vc(0,[e])}function rh(e){return new vc(1,[e])}const On={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function qi(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 oh(e,t){switch(t){case On.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case On.SnakeCase:return qi(e,"_");case On.SnakeCaseAllCaps:return qi(e,"_").toUpperCase();case On.KebabCase:return qi(e,"-");case On.None:default:return e}}function Mn(e,t=On.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,l,a){s=oh(s,l),n[s]=a}for(let s of e){let l=On.None;if(s==null&&o(s),s instanceof j){const a=s.cases()[s.tag];s=s.fields.length===0?a:[a].concat(s.fields),l=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],l,!0);break;case 2:const a=s[1];i(s[0],l,a);break;default:i(s[0],l,s.slice(1))}else typeof s=="string"?i(s,l,!0):o(s)}return n}class S extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Nt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function la(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function bc(e,t){switch(e.tag){case 2:return C0(la(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return la(t)}}const ih=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,aa=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,sh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function lh(e){function t(r){return r.replace(aa,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ih.test(n))return R0(n,"{","}","(",")");if(aa.test(n))return t(n);if(sh.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 ah(e,t){try{return t.contents=lh(e),!0}catch{return!1}}class Ac extends te{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function Ec(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Ec(n*n,~~(r/2))|0}}Ie(2013265921,0,!1);Ie(2013265921,0,!0);const uh=29;Fr(uh-1,e=>Ec(2,e),Int32Array);function xs(e){return e.bound}function Yr(e,t){return e.digits[t]}function Cs(e,t){return ye(Yr(e,t),!1,2)}function si(e,t,n){e.digits[t]=n|0}function ll(e,t){e:for(;;){const n=e,r=t;if(r===0)return Ie(1,0,!1);if(r%2===0){e=At(n,n),t=~~(r/2);continue e}else return At(n,ll(At(n,n),~~(r/2)))}}function vr(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*vr(n*n,~~(r/2))|0}}function ch(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const br=24,Vn=16777216,Jt=Ie(16777216,0,!1),Ir=Ie(16777215,0,!1);Ie(16777215,0,!0);function Qn(e){return new Ac(e,new Int32Array(e))}function fh(e){return new Ac(e.bound,j0(e.digits))}function Xt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const ua=2,ca=3;function Co(e){const t=(e<0?0:e)|0;if(t<Vn){const n=Qn(1);return n.digits[0]=t|0,Xt(n)}else{const n=Qn(ua);for(let r=0;r<=ua-1;r++)n.digits[r]=~~(t/vr(Vn,r))%Vn|0;return Xt(n)}}function dh(e){const t=Ei(e,Ie(0,0,!1))<0?Ie(0,0,!1):e,n=Qn(ca);for(let r=0;r<=ca-1;r++)n.digits[r]=~~Zt(o0(Wt(t,ll(Jt,r)),Jt))|0;return Xt(n)}function ph(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Vn*t|0;return t|0}}const hh=Co(1),mh=Co(0);function et(e){return e.bound-1}function Ve(e){return e.bound===0}function fa(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,l=o,a=i;if(a===-1)return!0;if(s[a]===l[a]){r=s,o=l,i=a-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function gh(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,l)=>{e:for(;;){const a=i,c=s,u=l;if(u===-1)return 0;{const d=(u<t?0:a[u-t])|0,f=(u<r?0:c[u-r])|0;if(d===f){i=a,s=c,l=u-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function wh(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,l=o,a=i;if(a===-1)return 0;if(s[a]===l[a]){r=s,o=l,i=a-1;continue e}else return s[a]<l[a]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function da(e,t){return wh(e,t)===-1}function yh(e,t){const n=Qn(2),r=At(ye(e,!1,2),ye(t,!1,2));return si(n,0,~~Zt(Tr(r,Ir))),si(n,1,~~Zt(Wt(r,Jt))),Xt(n)}function xc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Ei(o,Ie(0,0,!1))>0){const s=bt(Cs(r,i),o);si(r,i,~~Zt(Tr(s,Ir))),e=r,t=Wt(s,Jt),n=i+1;continue e}break}}function pa(e,t){const n=xs(e)|0,r=Qn(n+1),o=ye(t,!1,2);let i=Ie(0,0,!1);for(let s=0;s<=n-1;s++){const l=bt(bt(i,Cs(r,s)),At(Cs(e,s),o));si(r,s,~~Zt(Tr(l,Ir))),i=Wt(l,Jt)}return xc(r,i,n),Xt(r)}function _h(e,t){const n=Qn(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=ye(e.digits[o],!1,2);let s=Ie(0,0,!1),l=o;for(let a=0;a<=t.bound-1;a++){const c=ye(t.digits[a],!1,2),u=bt(bt(ye(r[l],!1,2),s),At(i,c));r[l]=~~Zt(Tr(u,Ir))|0,s=Wt(u,Jt),l=l+1|0}xc(n,s,l)}return Xt(n)}function vh(e,t){const n=xs(e)===1,r=xs(t)===1;return n&&r?yh(Yr(e,0),Yr(t,0)):n?pa(t,Yr(e,0)):r?pa(e,Yr(t,0)):_h(e,t)}class bh extends te{constructor(t,n,r,o,i,s,l){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=l}}function st(e,t,n,r){return new bh(e,vr(2,e),t,n,r,~~(br/e),Fr(~~(br/e),o=>vr(2,e*o),Int32Array))}const Ah=[st(1,28,268435456,268435456),st(2,26,67108864,134217728),st(3,24,16777216,50331648),st(4,22,4194304,16777216),st(5,20,1048576,5242880),st(6,18,262144,1572864),st(7,16,65536,458752),st(8,14,16384,131072),st(9,12,4096,36864),st(10,10,1024,10240),st(11,8,256,2816),st(12,6,64,768),st(13,4,16,208)];Fr(br,e=>vr(2,e)-1,Int32Array);Fr(br,e=>vr(2,e),Int32Array);Fr(br,e=>ll(Ie(2,0,!1),e),null);~~(Ah[0].bigN/br);function Eh(e,t){return vh(e,t)}function xh(e,t,n,r){const o=et(e)|0,i=e.digits,s=et(n)|0,l=n.digits,a=ye(t,!1,2);let c=0,u=At(a,ye(l[0],!1,2));for(;Ei(u,Ie(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Zt(Tr(u,Ir)),f=Wt(u,Jt);d<=i[c+r]?i[c+r]=i[c+r]-d|0:(i[c+r]=i[c+r]+(Vn-d)|0,f=bt(f,Ie(1,0,!1))),c<s?u=bt(f,At(a,ye(l[c+1],!1,2))):u=f,c=c+1|0}Xt(e)}function Ch(e,t,n,r){const o=et(e)|0,i=e.digits,s=et(n)|0,l=n.digits,a=ye(t,!1,2);let c=0,u=At(a,ye(l[0],!1,2));for(;Ei(u,Ie(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Zt(Tr(u,Ir)),f=Wt(u,Jt);d<Vn-i[c+r]?i[c+r]=i[c+r]+d|0:(i[c+r]=d-(Vn-i[c+r])|0,f=bt(f,Ie(1,0,!1))),c<s?u=bt(f,At(a,ye(l[c+1],!1,2))):u=f,c=c+1|0}Xt(e)}function Sh(e,t,n){const r=et(t)|0,o=et(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,l=t.digits,a=(i===0?o===n?~~(s[n]/l[0]):~~Zt(Wt(bt(At(ye(s[o],!1,2),Jt),ye(s[o-1],!1,2)),ye(l[0],!1,2))):o===i+n?~~(s[o]/(l[i]+1)):~~Zt(Wt(bt(At(ye(s[o],!1,2),Jt),ye(s[o-1],!1,2)),bt(ye(l[i],!1,2),Ie(1,0,!1)))))|0;return a===0?gh(t,n,e,0)!==1?1:0:a|0}}function Dh(e,t){if(Ve(t))throw new Error;if(et(e)<et(t))return[mh,e];{const n=fh(e),r=Qn(et(e)-et(t)+1+1);let o=et(e);const i=et(t)|0;let s=o-i,l=!1;for(;!l;){const a=Sh(n,t,s)|0;a>0?(xh(n,a,t,s),Ch(r,a,hh,s)):(l=a===0&&s===0,l||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[Xt(r),Xt(n)]}}Co(2);function Ss(e){return Co(e)}function kh(e){return dh(e)}function ha(e){const t=et(e)|0,n=(i,s,l)=>{e:for(;;){const a=i,c=s,u=l;if(et(u)>t)return ut([c,u],a);i=ut([c,u],a),s=c+1,l=Eh(u,u);continue e}},r=(i,s,l,a)=>{e:for(;;){const c=i,u=s,d=l,f=a;if(z(f)){const p=ph(d)|0;return c&&p===0?u:ut(bn(p),u)}else{const p=U(f),h=Dh(d,D(f)[1]),y=h[1],w=h[0];if(c&&Ve(w)){i=c,s=u,l=y,a=p;continue e}else{i=c,s=r(!1,u,y,p),l=w,a=p;continue e}}}},o=r(!0,dt(),e,n(dt(),0,Co(10)));return z(o)?"0":fn("",ki(o))}function Th(e){return e.bound<=1}function ma(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class Ue{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Kn(t)|0;if(n===-1)return Ve(re(t))?"0":"-"+ha(re(t));if(n===0)return"0";if(n===1)return ha(re(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof Ue&&Cc(n,t)}GetHashCode(){return Mh(this)|0}toJSON(){return Ze(this)}CompareTo(t){const n=this;if(t instanceof Ue)return Ih(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function Yi(e,t){return new Ue(e,t)}Ue.smallLim=4096,Ue.smallPosTab=Fr(Ue.smallLim,Ss,null),Ue.one=ts(1),Ue.two=ts(2),Ue.zero=ts(0);function es(e){return Th(e)&&ma(e)<Ue.smallLim?Ue.smallPosTab[ma(e)]:e}function Kn(e){return e.signInt}function re(e){return e.v}function Cc(e,t){const n=Kn(e)|0,r=Kn(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return fa(re(e),re(t));case 1:return fa(re(e),re(t));case 2:return Ve(re(e))?Ve(re(t)):!1;case 3:return Ve(re(e))?Ve(re(t)):!1;case 4:return!0;case 5:return Ve(re(t));case 6:return Ve(re(t));case 7:return Ve(re(e));case 8:return Ve(re(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Fh(e,t){const n=Kn(e)|0,r=Kn(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return da(re(e),re(t));case 1:return da(re(t),re(e));case 2:return!1;case 3:return Ve(re(e))?!Ve(re(t)):!0;case 4:return!1;case 5:return!Ve(re(t));case 6:return!1;case 7:return!1;case 8:return!Ve(re(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Ih(e,t){return Fh(e,t)?-1:Cc(e,t)?0:1}function Mh(e){return Kn(e)===0?1:Kn(e)+ch(re(e))|0}function ts(e){return e>=0?Yi(1,es(Ss(e))):e===-2147483648?Yi(-1,es(kh(i0(ye(e,!1,2))))):Yi(-1,es(Ss(Hp(e))))}function Sc(){return Ue.one}function Rh(){return Ue.two}function Dc(){return Ue.zero}Dc();Sc();Rh();Dc();Sc();function kc(e,t){Nh(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function Nh(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 Ph(){return kc(-621355968e5,0)}function Oh(e){const[t,n]=uc(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return kc(t.getTime(),r)}function Bh(e,t){try{return t.contents=Oh(e),!0}catch{return!1}}function So(e){return e<0?Math.ceil(e):Math.floor(e)}function ga(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return $h(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 $h(e){return s0(Wt(e,1e4))}function Hh(e){return So(e/864e5)}function jh(e){return So(e%864e5/36e5)}function Lh(e){return So(e%36e5/6e4)}function Vh(e){return So(e%6e4/1e3)}function Uh(e){return So(e%1e3)}function zh(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Hh(e)),o=Math.abs(jh(e)),i=Math.abs(Lh(e)),s=Math.abs(Vh(e)),l=Math.abs(Uh(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:qe(o,2)}:${qe(i,2)}:${qe(s,2)}${l===0&&(t==="c"||t==="g")?"":t==="g"?"."+qe(l,3):"."+ip(l,3,7)}`}function Gh(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 ga(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 l=r[1]!=null&&r[1]==="-"?-1:1,a=+r[4],c=+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 l*ga(o,a,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wh(e,t){try{return t.contents=Gh(e),!0}catch{return!1}}function Zh(e){throw new Error(e)}const Qh="Enumeration already finished.",Kh="Enumeration has not started. Call MoveNext.",Tc="The input sequence has an insufficient number of elements.",Jh="Reset is not supported on this enumerator.";function Xh(){throw new Error(Jh)}function al(){throw new Error(Kh)}function Ds(){throw new Error(Qh)}class qh{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=We(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Ze(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{se(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return bi(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Yh(e){return new qh(e)}class em{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"(){Xh()}Dispose(){this.dispose()}}function Fi(e,t,n){return new em(e,t,n)}function tm(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const l=n;try{se(l)}finally{n=void 0}}if(t!=null){const l=t;try{se(l)}finally{t=void 0}}};return Fi(()=>(r?o&&Ds():al(),i!=null?ie(i):Ds()),()=>{let l;if(r||(r=!0),o)return!1;{let a;for(;a==null;){const c=t,u=n;if(c!=null)if(u!=null){const d=u;if(d["System.Collections.IEnumerator.MoveNext"]())i=fe(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),a=!0;else try{se(d)}finally{n=void 0}}else{const d=c;d["System.Collections.IEnumerator.MoveNext"]()?n=(l=d["System.Collections.Generic.IEnumerator`1.get_Current"](),We(l)):(s(),a=!1)}else t=We(e)}return ie(a)}},()=>{o||s()})}function nm(e,t){return Fi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{se(t)}finally{e()}})}function Fc(e,t,n){let r=!1,o,i=fe(e());const s=()=>{if(i!=null){const a=ie(i);try{n(a)}finally{i=void 0}}},l=()=>{try{s()}finally{o=void 0}};return Fi(()=>(r||al(),o!=null?ie(o):Ds()),()=>{if(r||(r=!0),i!=null){const a=ie(i);let c;try{c=t(a)}catch(u){throw l(),u}return c!=null?(o=c,!0):(l(),!1)}else return!1},s)}function rm(e,t){let n,r=t;return Fi(()=>{if(n!=null){const o=n[0];return n[1],o}else return al()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function om(e,t){t==null&&Zh(e)}function Mr(e){return Yh(e)}function En(e){return om("source",e),We(e)}function $(e){return Mr(()=>We(e()))}function Ic(e){return Mr(()=>tm(e))}function im(e,t){return Mr(()=>rm(e,t))}function ul(){return $(()=>new Array(0))}function O(e){return $(()=>H0(e,null))}function Et(e){return zt(e)?E(e):e instanceof Qt?e:X0(e)}function sm(e,t,n){return Mr(()=>Fc(e,t,n))}function Mc(e,t,n){return Mr(()=>{let r=-1;return Fc(e,o=>(r=r+1|0,t(r,o)),n)})}function ge(e,t){return Ic([e,t])}function lm(e,t,n){const r=En(t);try{const o=En(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&l;)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"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:l?-1:0)|0}finally{se(o)}}finally{se(r)}}function ur(e,t,n){const r=En(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{se(r)}}function Ii(e,t,n){const r=En(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{se(r)}}function cl(e,t){Ii((n,r)=>{e(r)},void 0,t)}function Be(e,t){return sm(()=>En(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?fe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{se(n)})}function am(e,t){return Mc(()=>En(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?fe(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{se(n)})}function um(e,t){return Mr(()=>{const n=En(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Tc+"\\nParameter name: source");return nm(()=>{},n)}catch(r){throw se(n),r}})}function cm(e,t){return Mc(()=>En(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(Tc+"\\nParameter name: source")}else return},n=>{se(n)})}function Rc(e,t){return $(()=>Ic(Be(e,t)))}class Nc{constructor(t,n){this.k=t,this.v=n}}function ho(e,t){return new Nc(e,t)}function be(e){return e.k}function ze(e){return e.v}class we extends Nc{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function to(e,t,n,r,o){return new we(e,t,n,r,o)}function Ne(e){return e.left}function Pe(e){return e.right}function vn(e){return e.h}function Pc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof we){e=Pc(n+1,Ne(o)),t=Pe(o);continue e}else return n+1|0}else return n|0}}function fm(e){return Pc(0,e)}function St(e,t,n,r){let o;const i=e;if(i!=null){const c=i;o=c instanceof we?vn(c):1}else o=0;let s;const l=r;if(l!=null){const c=l;s=c instanceof we?vn(c):1}else s=0;const a=(o<s?s:o)|0;return a===0?ho(t,n):to(t,n,e,r,a+1)}function wa(e,t,n,r){let o,i,s,l,a;const c=e;if(c!=null){const f=c;a=f instanceof we?vn(f):1}else a=0;let u;const d=r;if(d!=null){const f=d;u=f instanceof we?vn(f):1}else u=0;if(u>a+2){const f=ie(r);if(f instanceof we)if(o=Ne(f),(o!=null?(i=o,i instanceof we?vn(i):1):0)>a+1){const p=ie(Ne(f));if(p instanceof we)return St(St(e,t,n,Ne(p)),be(p),ze(p),St(Pe(p),be(f),ze(f),Pe(f)));throw new Error("internal error: Map.rebalance")}else return St(St(e,t,n,Ne(f)),be(f),ze(f),Pe(f));else throw new Error("internal error: Map.rebalance")}else if(a>u+2){const f=ie(e);if(f instanceof we)if(s=Pe(f),(s!=null?(l=s,l instanceof we?vn(l):1):0)>u+1){const p=ie(Pe(f));if(p instanceof we)return St(St(Ne(f),be(f),ze(f),Ne(p)),be(p),ze(p),St(Pe(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return St(Ne(f),be(f),ze(f),St(Pe(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return St(e,t,n,r)}function Ar(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,be(o))|0;return o instanceof we?i<0?wa(Ar(e,t,n,Ne(o)),be(o),ze(o),Pe(o)):i===0?to(t,n,Ne(o),Pe(o),vn(o)):wa(Ne(o),be(o),ze(o),Ar(e,t,n,Pe(o))):i<0?to(t,n,void 0,r,2):i===0?ho(t,n):to(t,n,r,void 0,2)}else return ho(t,n)}function Oc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,be(s))|0;if(l===0)return fe(ze(s));if(s instanceof we){e=r,t=o,n=l<0?Ne(s):Pe(s);continue e}else return}else return}}function dm(e,t,n){const r=Oc(e,t,n);if(r==null)throw new Error;return ie(r)}function pm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,be(s))|0;if(s instanceof we)if(l<0){e=r,t=o,n=Ne(s);continue e}else{if(l===0)return!0;e=r,t=o,n=Pe(s);continue e}else return l===0}else return!1}}function Bc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof we){Bc(n,Ne(o)),n(be(o),ze(o)),e=n,t=Pe(o);continue e}else n(be(o),ze(o))}break}}function hm(e,t){Bc(e,t)}function ks(e,t){if(t!=null){const n=t;if(n instanceof we){const r=ks(e,Ne(n)),o=e(be(n),ze(n)),i=ks(e,Pe(n));return to(be(n),o,r,i,vn(n))}else return ho(be(n),e(be(n),ze(n)))}else return void 0}function mm(e,t){return ks(e,t)}function gm(e,t,n){let r=n;hm((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function wm(e,t){return In((n,r)=>Ar(e,r[0],r[1],n),void 0,t)}function ym(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=Ar(r,s[0],s[1],o),n=i;continue e}else return o}}function _m(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ar(e,o[0],o[1],n)}return n}function $c(e,t){if(zt(t))return _m(e,t);if(t instanceof Qt)return wm(e,t);{const n=We(t);try{return ym(e,void 0,n)}finally{se(n)}}}class vm extends te{constructor(t,n){super(),this.stack=t,this.started=n}}function Hc(e){e:for(;;){const t=e;if(z(t))return dt();{const n=U(t),r=D(t);if(r!=null){const o=r;if(o instanceof we){e=ae([Ne(o),ho(be(o),ze(o)),Pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function ya(e){return new vm(Hc(Fe(e)),!1)}function bm(){throw new Error("enumeration not started")}function Am(){throw new Error("enumeration already finished")}function _a(e){if(e.started){const t=e.stack;if(z(t))return Am();if(D(t)!=null){const n=D(t);if(n instanceof we)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),ze(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return bm()}function Em(e){if(e.started){const t=e.stack;if(z(t))return!1;if(D(t)!=null){if(D(t)instanceof we)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Hc(U(t)),!z(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!z(e.stack)}function va(e){let t=ya(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _a(t)},"System.Collections.IEnumerator.get_Current"(){return _a(t)},"System.Collections.IEnumerator.MoveNext"(){return Em(t)},"System.Collections.IEnumerator.Reset"(){t=ya(e)},Dispose(){}}}class li{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return km(this)|0}Equals(t){const n=this;if(t instanceof li){const r=We(n);try{const o=We(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"](),a=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return tt(l[0],a[0])&&tt(l[1],a[1])?i():!1}else return!0;else return!1};return i()}finally{se(o)}}finally{se(r)}}else return!1}toString(){return"map ["+fn("; ",Be(n=>T0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return va(this.tree)}[Symbol.iterator](){return bi(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return va(this.tree)}CompareTo(t){const n=this;if(t instanceof li)return lm((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:Gt(r[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 Aa(n,t[0])&&tt(ba(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){gm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ns(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ns(this)|0}get size(){return ns(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Be(n=>[n[0],n[1]],this)}get(t){return ba(this,t)}has(t){return Aa(this,t)}keys(){return Be(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Be(n=>n[1],this)}forEach(t,n){const r=this;cl(o=>{Cr(2,t,[o[1]])(o[0])(r)},r)}}function Do(e,t){return new li(e,t)}function xm(e){return Do(e,void 0)}function Cm(e,t,n){return Do(e.comparer,Ar(e.comparer,t,n,e.tree))}function ba(e,t){return dm(e.comparer,t,e.tree)}function Sm(e,t){return Do(e.comparer,mm(t,e.tree))}function ns(e){return fm(e.tree)}function Aa(e,t){return pm(e.comparer,t,e.tree)}function Dm(e,t){return Oc(e.comparer,t,e.tree)}function km(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=We(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,cn(o[0]))|0,n=t(n,cn(o[1]))|0}}finally{se(r)}return n|0}function jc(e,t,n){return Cm(n,e,t)}function Lc(e,t){return Dm(t,e)}function Vc(e,t){return Sm(t,e)}function Tm(e,t){return Do(t,$c(t,e))}function Fm(e,t){return Do(t,$c(t,e))}function fl(e){return xm(e)}class Uc{constructor(t){this.k=t}}function lt(e){return new Uc(e)}function I(e){return e.k}class G extends Uc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function at(e,t,n,r){return new G(e,t,n,r)}function Y(e){return e.left}function J(e){return e.right}function fr(e){return e.h}function zc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof G){e=Y(o),t=zc(J(o),r+1);continue e}else return r+1|0}else return r|0}}function Im(e){return zc(e,0)}function Dt(e,t,n){let r;const o=e;if(o!=null){const a=o;r=a instanceof G?fr(a):1}else r=0;let i;const s=n;if(s!=null){const a=s;i=a instanceof G?fr(a):1}else i=0;const l=(r<i?i:r)|0;return l===0?lt(t):at(t,e,n,l+1)}function Ea(e,t,n){let r,o,i,s,l;const a=e;if(a!=null){const d=a;l=d instanceof G?fr(d):1}else l=0;let c;const u=n;if(u!=null){const d=u;c=d instanceof G?fr(d):1}else c=0;if(c>l+2){const d=ie(n);if(d instanceof G)if(r=Y(d),(r!=null?(o=r,o instanceof G?fr(o):1):0)>l+1){const f=ie(Y(d));if(f instanceof G)return Dt(Dt(e,t,Y(f)),I(f),Dt(J(f),I(d),J(d)));throw new Error("internal error: Set.rebalance")}else return Dt(Dt(e,t,Y(d)),I(d),J(d));else throw new Error("internal error: Set.rebalance")}else if(l>c+2){const d=ie(e);if(d instanceof G)if(i=J(d),(i!=null?(s=i,s instanceof G?fr(s):1):0)>c+1){const f=ie(J(d));if(f instanceof G)return Dt(Dt(Y(d),I(d),Y(f)),I(f),Dt(J(f),t,n));throw new Error("internal error: Set.rebalance")}else return Dt(Y(d),I(d),Dt(J(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Dt(e,t,n)}function mo(e,t,n){if(n!=null){const r=n,o=e.Compare(t,I(r))|0;if(r instanceof G)return o<0?Ea(mo(e,t,Y(r)),I(r),J(r)):o===0?n:Ea(Y(r),I(r),mo(e,t,J(r)));{const i=e.Compare(t,I(r))|0;return i<0?at(t,void 0,n,2):i===0?n:at(t,n,void 0,2)}}else return lt(t)}function Gc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,I(s))|0;if(s instanceof G)if(l<0){e=r,t=o,n=Y(s);continue e}else{if(l===0)return!0;e=r,t=o,n=J(s);continue e}else return l===0}else return!1}}function Wc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof G){Wc(n,Y(o)),n(I(o)),e=n,t=J(o);continue e}else n(I(o))}break}}class Mm extends te{constructor(t,n){super(),this.stack=t,this.started=n}}function Zc(e){e:for(;;){const t=e;if(z(t))return dt();{const n=D(t),r=U(t);if(n!=null){const o=n;if(o instanceof G){e=ae([Y(o),lt(I(o)),J(o)],r);continue e}else return t}else{e=r;continue e}}}}function xa(e){return new Mm(Zc(Fe(e)),!1)}function Rm(){throw new Error("Enumeration not started")}function Nm(){throw new Error("Enumeration already started")}function Ca(e){if(e.started){const t=e.stack;if(z(t))return Nm();if(D(t)!=null){const n=D(t);return I(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Rm()}function Pm(e){if(e.started){const t=e.stack;if(z(t))return!1;if(D(t)!=null){if(D(t)instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Zc(U(t)),!z(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!z(e.stack)}function Sa(e){let t=xa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ca(t)},"System.Collections.IEnumerator.get_Current"(){return Ca(t)},"System.Collections.IEnumerator.MoveNext"(){return Pm(t)},"System.Collections.IEnumerator.Reset"(){t=xa(e)},Dispose(){}}}function Om(e,t,n){e:for(;;){const r=e,o=t,i=n;if(z(o))return z(i)?0:-1;if(z(i))return 1;if(D(i)!=null)if(D(o)!=null){const s=D(o),l=D(i);if(s instanceof G)if(Y(s)==null)if(l instanceof G)if(Y(l)==null){const a=r.Compare(I(s),I(l))|0;if(a!==0)return a|0;e=r,t=ut(J(s),U(o)),n=ut(J(l),U(i));continue e}else{let a,c,u,d,f;switch(z(o)?z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2:D(o)!=null?(a=0,c=U(o),u=D(o)):z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2,a){case 0:if(u instanceof G){e=r,t=ae([Y(u),at(I(u),void 0,J(u),0)],c),n=i;continue e}else{e=r,t=ae([void 0,lt(I(u))],c),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=ae([Y(f),at(I(f),void 0,J(f),0)],d);continue e}else{e=r,t=o,n=ae([void 0,lt(I(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const a=r.Compare(I(s),I(l))|0;if(a!==0)return a|0;e=r,t=ut(J(s),U(o)),n=ut(void 0,U(i));continue e}else{let a,c,u,d,f;switch(z(o)?z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2:D(o)!=null?(a=0,c=U(o),u=D(o)):z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2,a){case 0:if(u instanceof G){e=r,t=ae([Y(u),at(I(u),void 0,J(u),0)],c),n=i;continue e}else{e=r,t=ae([void 0,lt(I(u))],c),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=ae([Y(f),at(I(f),void 0,J(f),0)],d);continue e}else{e=r,t=o,n=ae([void 0,lt(I(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(l instanceof G)if(Y(l)==null){const a=r.Compare(I(s),I(l))|0;if(a!==0)return a|0;e=r,t=ut(void 0,U(o)),n=ut(J(l),U(i));continue e}else{let a,c,u,d,f;switch(z(o)?z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2:D(o)!=null?(a=0,c=U(o),u=D(o)):z(i)?a=2:D(i)!=null?(a=1,d=U(i),f=D(i)):a=2,a){case 0:if(u instanceof G){e=r,t=ae([Y(u),at(I(u),void 0,J(u),0)],c),n=i;continue e}else{e=r,t=ae([void 0,lt(I(u))],c),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=ae([Y(f),at(I(f),void 0,J(f),0)],d);continue e}else{e=r,t=o,n=ae([void 0,lt(I(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const a=r.Compare(I(s),I(l))|0;if(a!==0)return a|0;e=r,t=U(o),n=U(i);continue e}}else{D(i);let s,l,a,c,u;switch(z(o)?z(i)?s=2:D(i)!=null?(s=1,c=U(i),u=D(i)):s=2:D(o)!=null?(s=0,l=U(o),a=D(o)):z(i)?s=2:D(i)!=null?(s=1,c=U(i),u=D(i)):s=2,s){case 0:if(a instanceof G){e=r,t=ae([Y(a),at(I(a),void 0,J(a),0)],l),n=i;continue e}else{e=r,t=ae([void 0,lt(I(a))],l),n=i;continue e}case 1:if(u instanceof G){e=r,t=o,n=ae([Y(u),at(I(u),void 0,J(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,lt(I(u))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(o)!=null){D(o);let s,l,a,c,u;switch(z(o)?z(i)?s=2:D(i)!=null?(s=1,c=U(i),u=D(i)):s=2:D(o)!=null?(s=0,l=U(o),a=D(o)):z(i)?s=2:D(i)!=null?(s=1,c=U(i),u=D(i)):s=2,s){case 0:if(a instanceof G){e=r,t=ae([Y(a),at(I(a),void 0,J(a),0)],l),n=i;continue e}else{e=r,t=ae([void 0,lt(I(a))],l),n=i;continue e}case 1:if(u instanceof G){e=r,t=o,n=ae([Y(u),at(I(u),void 0,J(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,lt(I(u))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(o),n=U(i);continue e}break}}function Da(e,t,n){return t==null?n==null?0:-1:n==null?1:Om(e,Fe(t),Fe(n))|0}function Bm(e,t,n){let r=n;Wc(o=>{t[r]=o,r=r+1|0},e)}function $m(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=mo(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Hm(e,t){return ol((n,r)=>mo(e,r,n),void 0,t)}function jm(e,t){return In((n,r)=>mo(e,r,n),void 0,t)}function Lm(e,t){if(zt(t))return Hm(e,t);if(t instanceof Qt)return jm(e,t);{const n=We(t);try{return $m(e,void 0,n)}finally{se(n)}}}class dl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return zm(this)|0}Equals(t){const n=this;return t instanceof dl&&Da(Zo(n),jt(n),jt(t))===0}toString(){return"set ["+fn("; ",Be(n=>Ze(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Da(Zo(n),jt(n),jt(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 Gc(Zo(n),t,jt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Bm(jt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return rs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return rs(this)|0}GetEnumerator(){return Sa(jt(this))}[Symbol.iterator](){return bi(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Sa(jt(this))}get size(){return rs(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 Um(this,t)}keys(){return Be(n=>n,this)}values(){return Be(n=>n,this)}entries(){return Be(n=>[n,n],this)}forEach(t,n){const r=this;cl(o=>{Cr(2,t,[o])(o)(r)},r)}}function Vm(e,t){return new dl(e,t)}function Zo(e){return e.comparer}function jt(e){return e.tree}function rs(e){return Im(jt(e))}function Um(e,t){return Gc(Zo(e),t,jt(e))}function zm(e){let t=0;const n=We(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+cn(r)+631|0}}finally{se(n)}return Math.abs(t)|0}function Gm(e,t){return Vm(t,Lm(t,e))}function Qr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ (function(){"use strict";var za=document.createElement("style");za.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.5rem}.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;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))}.translate-x-5{--tw-translate-x: 1.25rem;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))}.translate-y-0{--tw-translate-y: 0px;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))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.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}.align-middle{vertical-align:middle}.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-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.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)}.ring-0{--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(0px + 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}.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}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.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))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@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(za);class nr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return en(this.value)}Equals(t){return t==null?!1:Ye(this.value,t instanceof nr?t.value:t)}CompareTo(t){return t==null?1:$t(this.value,t instanceof nr?t.value:t)}}function ne(e){if(e==null)throw new Error("Option has no value");return e instanceof nr?e.value:e}function Bt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Yd(e){return e!=null&&typeof e.GetEnumerator=="function"}function Jd(e){return e!=null&&typeof e.CompareTo=="function"}function qd(e){return e!=null&&typeof e.Equals=="function"}function Ga(e){return e!=null&&typeof e.GetHashCode=="function"}function Wa(e){return e!=null&&typeof e.Dispose=="function"}function re(e){Wa(e)&&e.Dispose()}function Me(){return null}function Oo(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class ep{constructor(t){this.iter=t,this.current=Me()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Le(e){return Yd(e)?e.GetEnumerator():new ep(e[Symbol.iterator]())}function Po(e){return{[Symbol.iterator](){return this},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 tp{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 Xe(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function np(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function Za(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function rp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function wn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class qt{static id(t){return qt.idMap.has(t)||qt.idMap.set(t,++qt.count),qt.idMap.get(t)}}qt.idMap=new WeakMap,qt.count=0;function Vi(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Et(e){return e*2654435761|0}function rr(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function op(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Et(e);case"string":return Vi(e);default:return Et(qt.id(e))}}function ip(e){return Ga(e)?e.GetHashCode():op(e)}function sp(e){return e.getTime()}function ap(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=en(e[r]);return rr(n)}function en(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Et(e);case"string":return Vi(e);default:{if(Ga(e))return e.GetHashCode();if(Bt(e))return ap(e);if(e instanceof Date)return sp(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>en(r));return rr(n)}else return Et(qt.id(e))}}}function Ui(e){return ip(e)}function zi(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 Qa(e,t){return zi(e,t,Ye)}function lp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Ye(e[n[o]],t[r[o]]))return!1;return!0}function Ye(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:qd(e)?e.Equals(t):Bt(e)?Bt(t)&&Qa(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ka(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&lp(e,t)}function Ka(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Za(e),r=t.getTime()+Za(t)),n===r?0:n<r?-1:1}function Nn(e,t){return e===t?0:e<t?-1:1}function cp(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 Xa(e,t){return cp(e,t,$t)}function up(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=$t(e[s],t[s]),i!==0)return i}return 0}function $t(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Jd(e)?e.CompareTo(t):Bt(e)?Bt(t)?Xa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ka(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?up(e,t):-1}function Gi(e,t,n){return e(t,n)>0?t:n}function $(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const Wi=Symbol("curried");function oe(e,t){if(t==null)return t;const n=ne(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[Wi]=n,r}function Ya(e,t,n){return r=>t===1?n(...e.concat([r])):Ya(e.concat([r]),t-1,n)}function or(e,t,n){if(t!=null)if(Wi in t){t=t[Wi];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return Ya(n,e,t)}function fp(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ve(r);else if(t===100){n+="; ...";break}else n+="; "+Ve(r);t++}return n+"]"}function Ve(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return fp(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Ve(s,t+1)).join(`
3
+ `)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function dp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ve(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ve(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class j{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return dp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>en(n));return t.splice(0,0,Et(this.tag)),rr(t)}Equals(t){return this===t?!0:Oo(this,t)&&this.tag===t.tag?Qa(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Oo(this,t)?this.tag===t.tag?Xa(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function pp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function hp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ve(n)).join(`
4
+ `)+" }"}function mp(e){const t=Object.values(e).map(n=>en(n));return rr(t)}function gp(e,t){if(e===t)return!0;if(Oo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ye(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function wp(e,t){if(e===t)return 0;if(Oo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=$t(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ee{toJSON(){return pp(this)}toString(){return hp(this)}GetHashCode(){return mp(this)}Equals(t){return gp(this,t)}CompareTo(t){return wp(this,t)}}class Je{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 yp{constructor(t){this.message=t}}function bp(e){return e instanceof yp||e instanceof Error}function vp(e){return e instanceof Promise}function Bo(e){return bp(e)||vp(e)?e:new Error(String(e))}const yn=Symbol("numeric");function Ja(e){return typeof e=="number"||(e==null?void 0:e[yn])}function _p(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Zi(e,t){return typeof e=="number"?e*t:e[yn]().multiply(t)}function $o(e,t){return typeof e=="number"?e.toFixed(t):e[yn]().toFixed(t)}function jo(e,t){return typeof e=="number"?e.toPrecision(t):e[yn]().toPrecision(t)}function Ho(e,t){return typeof e=="number"?e.toExponential(t):e[yn]().toExponential(t)}function Lo(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[yn]().toHex()}var X={GetHashCode(){return rr([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[yn](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Ap=28,xp=1,On=1e6,qa=1e6,Cp=-29,Ep=29,kp=!1,zr="[big.js] ",Pn=zr+"Invalid ",Vo=Pn+"decimal places",Sp=Pn+"rounding mode",el=zr+"Division by zero",jt=void 0,Dp=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function tl(){function e(t){var n=this;if(!(n instanceof e))return t===jt?tl():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Fp(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(Pn+"number");t=t===0&&1/t<0?"-0":String(t)}Tp(n,t)}n.constructor=e}return e.prototype=X,e.DP=Ap,e.RM=xp,e.NE=Cp,e.PE=Ep,e.strict=kp,e}function Fp(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Tp(e,t){var n,r,o;if(!Dp.test(t))throw Error(Pn+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=bn(e,vn.DP+1,vn.RM),e}function bn(e,t,n,r){var o=e.c;if(n===jt&&(n=vn.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Sp);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==jt))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,a)=>a>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==jt||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function ir(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}X.abs=function(){var e=new this.constructor(this);return e.s=1,e},X.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=r.s,l=o.s,u=r.e,c=o.e;if(!i[0]||!s[0])return i[0]?a:s[0]?-l:0;if(a!=l)return a;if(t=a<0,u!=c)return u>c^t?1:-1;for(l=Math.max(i.length,s.length),a=0;a<l;a++)if(u=a<i.length?i[a]:0,c=a<s.length?s[a]:0,u!=c)return u>c^t?1:-1;return 0},X.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>On)throw Error(Vo);if(!i[0])throw Error(el);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,u,c,d,f,p=i.slice(),h=l=i.length,y=o.length,w=o.slice(0,l),b=w.length,_=r,I=_.c=[],R=0,B=a+(_.e=n.e-r.e)+1;for(_.s=s,s=B<0?0:B,p.unshift(0);b++<l;)w.push(0);do{for(c=0;c<10;c++){if(l!=(b=w.length))d=l>b?1:-1;else for(f=-1,d=0;++f<l;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(u=b==l?i:p;b;){if(w[--b]<u[b]){for(f=b;f&&!w[--f];)w[f]=9;--w[f],w[b]+=10}w[b]-=u[b]}for(;!w[0];)w.shift()}else break}I[R++]=d?c:++c,w[0]&&d?w[b]=o[h]||0:w=[o[h]]}while((h++<y||w[0]!==jt)&&s--);return!I[0]&&R!=1&&(I.shift(),_.e--,B--),R>B&&bn(_,B,t.RM,w[0]!==jt),_},X.eq=function(e){return this.cmp(e)===0},X.gt=function(e){return this.cmp(e)>0},X.gte=function(e){return this.cmp(e)>-1},X.lt=function(e){return this.cmp(e)<0},X.lte=function(e){return this.cmp(e)<1},X.minus=X.sub=function(a){var t,n,r,o,i=this.constructor,s=new i(this),a=new i(a),l=s.s,u=a.s;if(l!=u)return a.s=-u,s.plus(a);var c=s.c.slice(),d=s.e,f=a.c,p=a.e;if(!c[0]||!f[0])return f[0]?a.s=-u:c[0]?a=new i(s):a.s=1,a;if(l=d-p){for((o=l<0)?(l=-l,r=c):(p=d,r=f),r.reverse(),u=l;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,l=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,a.s=-a.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>l;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;c[--u]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(a.s=1,c=[p=0]),a.c=c,a.e=p,a},X.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(el);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))},X.plus=X.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var a=i.e,l=i.c,u=s.e,c=s.c;if(!l[0]||!c[0])return c[0]||(l[0]?s=new o(i):s.s=i.s),s;if(l=l.slice(),t=a-u){for(t>0?(u=a,r=c):(t=-t,r=l),r.reverse();t--;)r.push(0);r.reverse()}for(l.length-c.length<0&&(r=c,c=l,l=r),t=c.length,n=0;t;l[t]%=10)n=(l[--t]=l[t]+c[t]+n)/10|0;for(n&&(l.unshift(n),++u),t=l.length;l[--t]===0;)l.pop();return s.c=l,s.e=u,s},X.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-qa||e>qa)throw Error(Pn+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r},X.prec=function(e,t){if(e!==~~e||e<1||e>On)throw Error(Pn+"precision");return bn(new this.constructor(this),e,t)},X.round=function(e,t){if(e===jt)e=0;else if(e!==~~e||e<-On||e>On)throw Error(Vo);return bn(new this.constructor(this),e+this.e+1,t)},X.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(zr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=a.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return bn(e,(r.DP-=4)+e.e+1,r.RM)},X.times=X.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=i.length,l=s.length,u=r.e,c=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=u+c,a<l&&(t=i,i=s,s=t,c=a,a=l,l=c),t=new Array(c=a+l);c--;)t[c]=0;for(u=l;u--;){for(l=0,c=a+u;c>u;)l=t[c]+s[u]*i[c-u-1]+l,t[c--]=l%10,l=l/10|0;t[c]=l}for(l?++o.e:t.shift(),u=t.length;!t[--u];)t.pop();return o.c=t,o},X.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==jt){if(e!==~~e||e<0||e>On)throw Error(Vo);for(n=bn(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return ir(n,!0,!!r)},X.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==jt){if(e!==~~e||e<0||e>On)throw Error(Vo);for(n=bn(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return ir(n,!1,!!r)},X.toJSON=X.toString=function(){var e=this,t=e.constructor;return ir(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},X.toNumber=function(){var e=Number(ir(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(zr+"Imprecise conversion");return e},X.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==jt){if(e!==~~e||e<1||e>On)throw Error(Pn+"precision");for(n=bn(new r(n),e,t);n.c.length<e;)n.c.push(0)}return ir(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},X.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(zr+"valueOf disallowed");return ir(e,e.e<=t.NE||e.e>=t.PE,!0)};var vn=tl();new vn(0),new vn(1),new vn(-1),new vn("79228162514264337593543950335"),new vn("-79228162514264337593543950335");var Qi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Qi||(Qi={}));function Ip(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function nl(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 Mp(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 Rp(e,t){if(t&Qi.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 Np(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||Rp(i,t),!Mp(n).test(s))return Ip(o,n)}return null}function Op(e,t,n,r,o){const i=Np(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=nl(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,c]=nl(n,r);if(s>=u&&s<=c)return s}}throw new Error("Input string was not in a correct format.")}function sr(e,t,n,r,o){try{return o.contents=Op(e,t,n,r),!0}catch{return!1}}function Pp(e){return e===-2147483648?e:-e}var gt=null;try{gt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function kt(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}kt.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},kt.prototype.Equals=function(e){return bt(this,e)},kt.prototype.CompareTo=function(e){return Qr(this,e)},kt.prototype.toString=function(e){return Zr(this,e)},kt.prototype.toJSON=function(){return Zr(this)},kt.prototype[yn]=function(){const e=this;return{multiply:t=>ot(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>Zr(e.unsigned?e:Jp(Kp(e),!0),16)}},kt.prototype.__isLong__,Object.defineProperty(kt.prototype,"__isLong__",{value:!0});function St(e){return(e&&e.__isLong__)===!0}var rl={},ol={};function ar(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=ol[e],r)?r:(n=ie(e,(e|0)<0?-1:0,!0),o&&(ol[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=rl[e],r)?r:(n=ie(e,e<0?-1:0,!1),o&&(rl[e]=n),n))}function Dt(e,t){if(isNaN(e))return t?An:Ft;if(t){if(e<0)return An;if(e>=al)return Hp}else{if(e<=-ll)return wt;if(e+1>=ll)return jp}return e<0?xe(Dt(-e,t)):ie(e%lr|0,e/lr|0,t)}function ie(e,t,n){return new kt(e,t,n)}var Uo=Math.pow;function il(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Ft;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return xe(il(e.substring(1),t,n));for(var o=Dt(Uo(n,8)),i=Ft,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+a),n);if(a<8){var u=Dt(Uo(n,a));i=$n(ot(i,u),Dt(l))}else i=ot(i,o),i=$n(i,Dt(l))}return i.unsigned=t,i}function _n(e,t){return typeof e=="number"?Dt(e,t):typeof e=="string"?il(e,t):ie(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var sl=1<<16,Bp=1<<24,lr=sl*sl,al=lr*lr,ll=al/2,cl=ar(Bp),Ft=ar(0),An=ar(0,!0),Gr=ar(1),$p=ar(1,!0),ul=ar(-1),jp=ie(-1,2147483647,!1),Hp=ie(-1,-1,!0),wt=ie(0,-2147483648,!1);function cr(e){return e.unsigned?e.low>>>0:e.low}function Wr(e){return e.unsigned?(e.high>>>0)*lr+(e.low>>>0):e.high*lr+(e.low>>>0)}function Zr(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Bn(e))return"0";if(yt(e))if(bt(e,wt)){var n=Dt(t),r=tn(e,n),o=ur(ot(r,n),e);return Zr(r,t)+cr(o).toString(t)}else return"-"+Zr(xe(e),t);for(var i=Dt(Uo(t,6),e.unsigned),s=e,a="";;){var l=tn(s,i),u=cr(ur(s,ot(l,i)))>>>0,c=u.toString(t);if(s=l,Bn(s))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function Bn(e){return e.high===0&&e.low===0}function yt(e){return!e.unsigned&&e.high<0}function fl(e){return(e.low&1)===1}function bt(e,t){return St(t)||(t=_n(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function dl(e,t){return Qr(e,t)<0}function Ki(e,t){return Qr(e,t)>0}function Lp(e,t){return Qr(e,t)>=0}function Qr(e,t){if(St(t)||(t=_n(t)),bt(e,t))return 0;var n=yt(e),r=yt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:yt(ur(e,t))?-1:1}function xe(e){return!e.unsigned&&bt(e,wt)?wt:$n(Up(e),Gr)}function $n(e,t){St(t)||(t=_n(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,a=t.high&65535,l=t.low>>>16,u=t.low&65535,c=0,d=0,f=0,p=0;return p+=i+u,f+=p>>>16,p&=65535,f+=o+l,d+=f>>>16,f&=65535,d+=r+a,c+=d>>>16,d&=65535,c+=n+s,c&=65535,ie(f<<16|p,c<<16|d,e.unsigned)}function ur(e,t){return St(t)||(t=_n(t)),$n(e,xe(t))}function ot(e,t){if(Bn(e))return e.unsigned?An:Ft;if(St(t)||(t=_n(t)),gt){var n=gt.mul(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}if(Bn(t))return e.unsigned?An:Ft;if(bt(e,wt))return fl(t)?wt:Ft;if(bt(t,wt))return fl(e)?wt:Ft;if(yt(e))return yt(t)?ot(xe(e),xe(t)):xe(ot(xe(e),t));if(yt(t))return xe(ot(e,xe(t)));if(dl(e,cl)&&dl(t,cl))return Dt(Wr(e)*Wr(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,a=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,d=0,f=0,p=0,h=0;return h+=s*c,p+=h>>>16,h&=65535,p+=i*c,f+=p>>>16,p&=65535,p+=s*u,f+=p>>>16,p&=65535,f+=o*c,d+=f>>>16,f&=65535,f+=i*u,d+=f>>>16,f&=65535,f+=s*l,d+=f>>>16,f&=65535,d+=r*c+o*u+i*l+s*a,d&=65535,ie(p<<16|h,d<<16|f,e.unsigned)}function tn(e,t){if(St(t)||(t=_n(t)),Bn(t))throw Error("division by zero");if(gt){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?gt.div_u:gt.div_s)(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}if(Bn(e))return e.unsigned?An:Ft;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Qp(t)),Ki(t,e))return An;if(Ki(t,Zp(e,1)))return $p;i=An}else{if(bt(e,wt)){if(bt(t,Gr)||bt(t,ul))return wt;if(bt(t,wt))return Gr;var s=Wp(e,1);return r=Gp(tn(s,t),1),bt(r,Ft)?yt(t)?Gr:ul:(o=ur(e,ot(t,r)),i=$n(r,tn(o,t)),i)}else if(bt(t,wt))return e.unsigned?An:Ft;if(yt(e))return yt(t)?tn(xe(e),xe(t)):xe(tn(xe(e),t));if(yt(t))return xe(tn(e,xe(t)));i=Ft}for(o=e;Lp(o,t);){r=Math.max(1,Math.floor(Wr(o)/Wr(t)));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:Uo(2,a-48),u=Dt(r),c=ot(u,t);yt(c)||Ki(c,o);)r-=l,u=Dt(r,e.unsigned),c=ot(u,t);Bn(u)&&(u=Gr),i=$n(i,u),o=ur(o,c)}return i}function Vp(e,t){if(St(t)||(t=_n(t)),gt){var n=(e.unsigned?gt.rem_u:gt.rem_s)(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}return ur(e,ot(tn(e,t),t))}function Up(e){return ie(~e.low,~e.high,e.unsigned)}function zp(e,t){return St(t)||(t=_n(t)),ie(e.low&t.low,e.high&t.high,e.unsigned)}function Gp(e,t){return St(t)&&(t=cr(t)),(t&=63)===0?e:t<32?ie(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ie(0,e.low<<t-32,e.unsigned)}function Wp(e,t){return St(t)&&(t=cr(t)),(t&=63)===0?e:t<32?ie(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ie(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Zp(e,t){if(St(t)&&(t=cr(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return ie(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return ie(t===32?n:n>>>t-32,0,e.unsigned)}function Qp(e){return e.unsigned?e:ie(e.low,e.high,!0)}function Kp(e,t){return t?Xp(e):Yp(e)}function Xp(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function Yp(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function Jp(e,t,n){return n?qp(e,t):e0(e,t)}function qp(e,t){return new kt(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function e0(e,t){return new kt(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const vt=$n,_t=ot,Ht=tn,t0=Vp,n0=xe,fr=zp,zo=Qr,Ce=ie,Lt=cr,r0=Wr;function pe(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return ie(r,o>>31,t)}class o0{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class V{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 te(this)}GetHashCode(){return pl(this)}Equals(t){return Xi(this,t)}}function At(e){return e.generics!=null?e.generics:[]}function pl(e){const t=Vi(e.fullname),n=At(e).map(pl);return rr([t,...n])}function Xi(e,t){return e.fullname===""?t.fullname===""&&zi(Yr(e),Yr(t),([n,r],[o,i])=>n===o&&Xi(r,i)):e.fullname===t.fullname&&zi(At(e),At(t),Xi)}function Kr(e,t,n,r){return new V(e,t,n,r)}function nn(e,t,n,r){return new V(e,t,n,void 0,r)}function i0(...e){return new V("",void 0,void 0,void 0,()=>e)}function hl(e,t,n,r){const o=new V(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new o0(o,a,i[a],s))});return o}function Yi(e){return new V("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Go(e){return new V("Microsoft.FSharp.Collections.FSharpList`1",[e])}function s0(e){return new V("[]",[e])}const a0=new V("System.Object");new V("Microsoft.FSharp.Core.Unit"),new V("System.Char");const xt=new V("System.String"),ml=new V("System.Boolean");new V("System.SByte"),new V("System.Byte"),new V("System.Int16"),new V("System.UInt16");const Re=new V("System.Int32");new V("System.UInt32"),new V("System.Int64"),new V("System.UInt64"),new V("System.Int128"),new V("System.UInt128"),new V("System.IntPtr"),new V("System.UIntPtr"),new V("System.Half"),new V("System.Single"),new V("System.Double"),new V("System.Decimal"),new V("System.Numerics.BigInteger");function dr(e){if(Array.isArray(e))return e[0];if(e instanceof V){const t=Xr(e);if(t!=null)return dr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function te(e){const t=Xr(e);return t!=null?te(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>te(n)).join(",")+"]"}function gl(e){return Xr(e)!=null}function Xr(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function wl(e){return e.generics!=null&&e.generics.length>0}function Ji(e){return e.enumCases!=null&&e.enumCases.length>0}function yl(e){return e.generics==null?e:new V(e.fullname,e.generics.map(()=>a0))}function bl(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function pr(e){if(Ji(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function l0(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 hr(e,t){const n=parseInt(t,10);return l0(e,isNaN(n)?t:n)[1]}function vl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Yr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function _l(e){if(qi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Al(e){return e instanceof V?e.cases!=null:e instanceof j}function xl(e){return e instanceof V?e.fields!=null:e instanceof ee}function qi(e){return e.fullname.startsWith("System.Tuple")}function c0(e,t){const r=vl(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Cl(e){return e.fields==null?[]:e.fields}function u0(e,t){return e[t[0]]}function k_(e){return e}function El(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function f0(e,t){const n=Yr(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 d0(e,t){return e}function es(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Xe(n,2)+":"+Xe(r,2)}function Wo(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 p0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?es(e.getTimezoneOffset()*-6e4):"")}}function h0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+es(t)}function kl(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:Xe(o,r.length)})}function m0(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+es((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return Wo(i,"first");case"T":case"t":return Wo(i,"second");case"O":case"o":return h0(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return kl(i,t,!0)}function g0(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?Wo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Wo(e,"second"):e.toLocaleTimeString();case"O":case"o":return p0(e,n);default:throw new Error("Unrecognized Date print format")}else return kl(e,t,n)}function Zo(e,t,n){return e.offset!=null?m0(e,t):g0(e,t)}function ts(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function w0(){return ts(-621355968e5,0)}function Sl(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(":");s=parseInt(a[0],10)*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(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 y0(e,t=!1){const[n,r]=Sl(e),o=r!=null?t&&r==="Z"?1:2:0;return ts(n.getTime(),o)}function b0(e,t){try{return t.contents=y0(e),!0}catch{return!1}}function v0(e){return e.kind===1?e:ts(e.getTime(),1)}function _0(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 ns(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Dl(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 A0(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let c=u?l-3:l-2;for(let d=0;d<c;d++)a.push(arguments[d]);a.index=arguments[c++],a.input=arguments[c++],u&&(a.groups=arguments[c]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=_0(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Dl(e,a),u=Dl.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const Jr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,x0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Fl(e,t){return _p(e,t)<0}function rn(e){return{input:e,cont:E0(e)}}function Tl(e,t){return typeof t=="string"?e(t):t.cont(e)}function jn(e){return Tl(t=>t,e)}function Il(e){return Tl(t=>{throw new Error(t)},e)}function C0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Ja(e))switch(o.toLowerCase()!=="x"&&(Fl(e,0)?(e=Zi(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!=null?r:6,e=$o(e,r);break;case"g":case"G":e=r!=null?jo(e,r):jo(e);break;case"e":case"E":e=r!=null?Ho(e,r):Ho(e);break;case"x":e=Lo(e);break;case"X":e=Lo(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Zo(e):e=Ve(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=qr(e,n-i.length,l,a),e=i+e):e=qr(i+e,n,l,a)}return e}function Ml(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,c,d,f,p]=l[0];let h=d;if(o>=0)h=o,o=-1;else if(h==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=C0(u,c,h,f,p),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Ml(e,a,l,s,o)}}function E0(e){return t=>{Jr.lastIndex=0;const n=[],r=[];let o=0,i=Jr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Jr.lastIndex,Jr.lastIndex-=1,i=Jr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ml(t,n,r))}}function k0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(x0,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Ja(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a!=null?a:2,u=$o(u,a);break;case"g":case"G":u=a!=null?jo(u,a):jo(u);break;case"e":case"E":u=a!=null?Ho(u,a):Ho(u);break;case"p":case"P":a=a!=null?a:2,u=$o(Zi(u,100),a)+" %";break;case"d":case"D":u=a!=null?rs(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?rs(Lo(u),a,"0"):Lo(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let c="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{Fl(u,0)&&(u=Zi(u,-1),c="-"),p=p==null?"":p.substring(1),u=$o(u,Math.max(p.length,0));let[h,y]=u.split(".");y||(y="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;h=rs(h,w,"0");const b=p.replace(/#+$/,"").length;if(b>y.length?y=D0(y,b,"0"):b<y.length&&(y=y.substring(0,b)+y.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const _=h.length%3,I=Math.floor(h.length/3);let R=_>0?h.substr(0,_)+(I>0?",":""):"";for(let B=0;B<I;B++)R+=h.substr(_+B*3,3)+(B<I-1?",":"");h=R}return y.length>0?h+"."+y:h}),u=c+u}}else u instanceof Date?u=Zo(u,l||s):u=Ve(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=qr(String(u),Math.abs(i)," ",i<0)),u})}function S0(e){return typeof e!="string"||e.length===0}function on(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qr(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 rs(e,t,n){return qr(e,t,n)}function D0(e,t,n){return qr(e,t,n,!0)}function F0(e,t,n){return e.replace(new RegExp(ns(t),"g"),n)}function Rl(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(c=>c).map(ns),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const c=a.exec(e);if(c===null){const d=i?e.substring(u).trim():e.substring(u);(!o||d.length>0)&&s.push(d),l=!1}else{const d=i?e.substring(u,c.index).trim():e.substring(u,c.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function T0(e,...t){if(t.length===0)return e.trim();const n="["+ns(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Nl="Collection was empty.",I0="An index satisfying the predicate was not found in the collection.";function ue(e){return e==null||e instanceof nr?new nr(e):e}function M0(e){return e==null?[]:[ne(e)]}function Qo(e,t){return e!=null?ne(e):t}function R0(e,t){return e!=null?ne(e):t()}function N0(e,t){return t!=null?ue(e(ne(t))):void 0}function os(e,t){return typeof e=="function"?new e(t):new Array(t)}function O0(){throw new Error("Arrays had different lengths")}function Ko(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function sn(e,t,n){const r=t.length|0,o=os(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function P0(e,t){const n=os(t,1);return n[0]=e,n}function mr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=os(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function B0(e){return e.slice()}function $0(e,t){return t.find(e)}function j0(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=ne(i);r.push(s)}}return Ye(n,Me())?r:sn(o=>o,r,n)}function is(e,t,n){return n.reduce(e,t)}function H0(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function L0(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function V0(e,t,n,r){let o=r;t.length!==n.length&&O0();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function U0(e,t,n,r){return V0((o,i,s,a)=>e(i,s,a),t,n,r)}class Vt extends ee{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+on("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u;if(Ye(s.head,a.head)){o=c,i=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const c=u;if(s>18)return a|0;r=s+1,o=(a<<1)+en(l.head)+631*s,i=c;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u,f=$t(s.head,a.head)|0;if(f===0){o=c,i=d;continue e}else return f|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return G0(this)}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class z0{constructor(t){this.xs=t,this.it=this.xs,this.current=Me()}"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=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=Me()}Dispose(){}}function G0(e){return new z0(e)}function Ut(){return new Vt(Me(),void 0)}function eo(e,t){return new Vt(e,t)}function to(e){return e.tail==null}function Ol(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function Xo(e){if(e.tail!=null)return e.head;throw new Error(Nl+"\\nParameter name: list")}function xn(e){const t=e.tail;if(t!=null)return t;throw new Error(Nl+"\\nParameter name: list")}function W0(){throw new Error(I0)}function it(){return Ut()}function st(e,t){return eo(e,t)}function Ee(e){return eo(e,Ut())}function U(e){return to(e)}function Z0(e){return Ol(e)}function S(e){return Xo(e)}function z(e){return xn(e)}function Yo(e){const t=Ol(e)|0,n=Ko(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!to(a)){n[s]=Xo(a),o=s+1,i=xn(a);continue e}break}})(0,e),n}function Cn(e,t,n){let r=t,o=n;for(;!to(o);)r=e(r,S(o)),o=xn(o);return r}function Pl(e){return Cn((t,n)=>eo(n,t),Ut(),e)}function Bl(e,t){Cn((n,r)=>{e(r)},void 0,t)}function le(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=eo(e[r],n);return n}function x(e){return le(e,Ut())}function Q0(e){let t,n;if(Bt(e))return x(e);if(e instanceof Vt)return e;{const r=Ut();let o=r;const i=Le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Vt(l,void 0),t.tail=n,n)}}finally{re(i)}const s=o,a=Ut();return s.tail=a,xn(r)}}function $l(e){const t=Ut();let n=t;const r=s=>{n=Cn((a,l)=>{const u=new Vt(l,void 0);return a.tail=u,u},n,s)};if(Bt(e))e.forEach(r);else if(e instanceof Vt)Bl(r,e);else{const s=Le(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{re(s)}}const o=n,i=Ut();return o.tail=i,xn(t)}function Jo(e,t){return Cn((n,r)=>eo(r,n),t,Pl(e))}function qo(e,t){const n=Ut(),r=Cn((i,s)=>{const a=new Vt(e(s),void 0);return i.tail=a,a},n,t),o=Ut();return r.tail=o,xn(n)}function K0(e,t){return(r=>{e:for(;;){const o=r;if(to(o))return;{const i=e(Xo(o));if(i==null){r=xn(o);continue e}else return i}}})(t)}function X0(e,t){return K0(n=>e(n)?ue(n):void 0,t)}function Y0(e,t){const n=X0(e,t);return n==null?W0():ne(n)}function J0(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(to(s))return;if(e(Xo(s)))return i;r=i+1,o=xn(s);continue e}})(0,t)}function ss(e,t,n){return J0(r=>n.Equals(e,r),t)!=null}class g extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function an(e,t){return t.tag===0?new g(0,[e(t.fields[0])]):new g(1,[t.fields[0]])}function as(e,t){return t.tag===0?new g(0,[t.fields[0]]):new g(1,[e(t.fields[0])])}class jl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function q0(e){return new jl(0,[e])}function eh(e){return new jl(1,[e])}const Hn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ls(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function th(e,t){switch(t){case Hn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Hn.SnakeCase:return ls(e,"_");case Hn.SnakeCaseAllCaps:return ls(e,"_").toUpperCase();case Hn.KebabCase:return ls(e,"-");case Hn.None:default:return e}}function En(e,t=Hn.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=th(s,a),n[s]=l}for(let s of e){let a=Hn.None;if(s==null&&o(s),s instanceof j){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Hl(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Ll(e,t){switch(e.tag){case 2:return A0(Hl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Hl(t)}}const nh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Vl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,rh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function oh(e){function t(r){return r.replace(Vl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(nh.test(n))return T0(n,"{","}","(",")");if(Vl.test(n))return t(n);if(rh.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 ih(e,t){try{return t.contents=oh(e),!0}catch{return!1}}class Ul extends ee{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function zl(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*zl(n*n,~~(r/2))|0}}Ce(2013265921,0,!1),Ce(2013265921,0,!0),mr(29-1,e=>zl(2,e),Int32Array);function cs(e){return e.bound}function no(e,t){return e.digits[t]}function us(e,t){return pe(no(e,t),!1,2)}function ei(e,t,n){e.digits[t]=n|0}function fs(e,t){e:for(;;){const n=e,r=t;if(r===0)return Ce(1,0,!1);if(r%2===0){e=_t(n,n),t=~~(r/2);continue e}else return _t(n,fs(_t(n,n),~~(r/2)))}}function gr(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*gr(n*n,~~(r/2))|0}}function sh(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const wr=24,Ln=16777216,zt=Ce(16777216,0,!1),yr=Ce(16777215,0,!1);Ce(16777215,0,!0);function Vn(e){return new Ul(e,new Int32Array(e))}function ah(e){return new Ul(e.bound,B0(e.digits))}function Gt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Gl=2,Wl=3;function ro(e){const t=(e<0?0:e)|0;if(t<Ln){const n=Vn(1);return n.digits[0]=t|0,Gt(n)}else{const n=Vn(Gl);for(let r=0;r<=Gl-1;r++)n.digits[r]=~~(t/gr(Ln,r))%Ln|0;return Gt(n)}}function lh(e){const t=zo(e,Ce(0,0,!1))<0?Ce(0,0,!1):e,n=Vn(Wl);for(let r=0;r<=Wl-1;r++)n.digits[r]=~~Lt(t0(Ht(t,fs(zt,r)),zt))|0;return Gt(n)}function ch(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Ln*t|0;return t|0}}const uh=ro(1),fh=ro(0);function qe(e){return e.bound-1}function Ue(e){return e.bound===0}function Zl(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return!0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function dh(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(c===-1)return 0;{const d=(c<t?0:l[c-t])|0,f=(c<r?0:u[c-r])|0;if(d===f){i=l,s=u,a=c-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function ph(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return 0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return s[l]<a[l]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function Ql(e,t){return ph(e,t)===-1}function hh(e,t){const n=Vn(2),r=_t(pe(e,!1,2),pe(t,!1,2));return ei(n,0,~~Lt(fr(r,yr))),ei(n,1,~~Lt(Ht(r,zt))),Gt(n)}function Kl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(zo(o,Ce(0,0,!1))>0){const s=vt(us(r,i),o);ei(r,i,~~Lt(fr(s,yr))),e=r,t=Ht(s,zt),n=i+1;continue e}break}}function Xl(e,t){const n=cs(e)|0,r=Vn(n+1),o=pe(t,!1,2);let i=Ce(0,0,!1);for(let s=0;s<=n-1;s++){const a=vt(vt(i,us(r,s)),_t(us(e,s),o));ei(r,s,~~Lt(fr(a,yr))),i=Ht(a,zt)}return Kl(r,i,n),Gt(r)}function mh(e,t){const n=Vn(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=pe(e.digits[o],!1,2);let s=Ce(0,0,!1),a=o;for(let l=0;l<=t.bound-1;l++){const u=pe(t.digits[l],!1,2),c=vt(vt(pe(r[a],!1,2),s),_t(i,u));r[a]=~~Lt(fr(c,yr))|0,s=Ht(c,zt),a=a+1|0}Kl(n,s,a)}return Gt(n)}function gh(e,t){const n=cs(e)===1,r=cs(t)===1;return n&&r?hh(no(e,0),no(t,0)):n?Xl(t,no(e,0)):r?Xl(e,no(t,0)):mh(e,t)}class wh extends ee{constructor(t,n,r,o,i,s,a){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=a}}function at(e,t,n,r){return new wh(e,gr(2,e),t,n,r,~~(wr/e),mr(~~(wr/e),o=>gr(2,e*o),Int32Array))}const yh=[at(1,28,268435456,268435456),at(2,26,67108864,134217728),at(3,24,16777216,50331648),at(4,22,4194304,16777216),at(5,20,1048576,5242880),at(6,18,262144,1572864),at(7,16,65536,458752),at(8,14,16384,131072),at(9,12,4096,36864),at(10,10,1024,10240),at(11,8,256,2816),at(12,6,64,768),at(13,4,16,208)];mr(wr,e=>gr(2,e)-1,Int32Array),mr(wr,e=>gr(2,e),Int32Array),mr(wr,e=>fs(Ce(2,0,!1),e),null),~~(yh[0].bigN/wr);function bh(e,t){return gh(e,t)}function vh(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=_t(l,pe(a[0],!1,2));for(;zo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Lt(fr(c,yr)),f=Ht(c,zt);d<=i[u+r]?i[u+r]=i[u+r]-d|0:(i[u+r]=i[u+r]+(Ln-d)|0,f=vt(f,Ce(1,0,!1))),u<s?c=vt(f,_t(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}Gt(e)}function _h(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=_t(l,pe(a[0],!1,2));for(;zo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Lt(fr(c,yr)),f=Ht(c,zt);d<Ln-i[u+r]?i[u+r]=i[u+r]+d|0:(i[u+r]=d-(Ln-i[u+r])|0,f=vt(f,Ce(1,0,!1))),u<s?c=vt(f,_t(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}Gt(e)}function Ah(e,t,n){const r=qe(t)|0,o=qe(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,a=t.digits,l=(i===0?o===n?~~(s[n]/a[0]):~~Lt(Ht(vt(_t(pe(s[o],!1,2),zt),pe(s[o-1],!1,2)),pe(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Lt(Ht(vt(_t(pe(s[o],!1,2),zt),pe(s[o-1],!1,2)),vt(pe(a[i],!1,2),Ce(1,0,!1)))))|0;return l===0?dh(t,n,e,0)!==1?1:0:l|0}}function xh(e,t){if(Ue(t))throw new Error;if(qe(e)<qe(t))return[fh,e];{const n=ah(e),r=Vn(qe(e)-qe(t)+1+1);let o=qe(e);const i=qe(t)|0;let s=o-i,a=!1;for(;!a;){const l=Ah(n,t,s)|0;l>0?(vh(n,l,t,s),_h(r,l,uh,s)):(a=l===0&&s===0,a||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[Gt(r),Gt(n)]}}ro(2);function ds(e){return ro(e)}function Ch(e){return lh(e)}function Yl(e){const t=qe(e)|0,n=(i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(qe(c)>t)return st([u,c],l);i=st([u,c],l),s=u+1,a=bh(c,c);continue e}},r=(i,s,a,l)=>{e:for(;;){const u=i,c=s,d=a,f=l;if(U(f)){const p=ch(d)|0;return u&&p===0?c:st(wn(p),c)}else{const p=z(f),h=xh(d,S(f)[1]),y=h[1],w=h[0];if(u&&Ue(w)){i=u,s=c,a=y,l=p;continue e}else{i=u,s=r(!1,c,y,p),a=w,l=p;continue e}}}},o=r(!0,it(),e,n(it(),0,ro(10)));return U(o)?"0":on("",Yo(o))}function Eh(e){return e.bound<=1}function Jl(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class ze{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Un(t)|0;if(n===-1)return Ue(se(t))?"0":"-"+Yl(se(t));if(n===0)return"0";if(n===1)return Yl(se(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof ze&&ql(n,t)}GetHashCode(){return Dh(this)|0}toJSON(){return Ve(this)}CompareTo(t){const n=this;if(t instanceof ze)return Sh(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function ps(e,t){return new ze(e,t)}ze.smallLim=4096,ze.smallPosTab=mr(ze.smallLim,ds,null),ze.one=ms(1),ze.two=ms(2),ze.zero=ms(0);function hs(e){return Eh(e)&&Jl(e)<ze.smallLim?ze.smallPosTab[Jl(e)]:e}function Un(e){return e.signInt}function se(e){return e.v}function ql(e,t){const n=Un(e)|0,r=Un(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Zl(se(e),se(t));case 1:return Zl(se(e),se(t));case 2:return Ue(se(e))?Ue(se(t)):!1;case 3:return Ue(se(e))?Ue(se(t)):!1;case 4:return!0;case 5:return Ue(se(t));case 6:return Ue(se(t));case 7:return Ue(se(e));case 8:return Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function kh(e,t){const n=Un(e)|0,r=Un(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ql(se(e),se(t));case 1:return Ql(se(t),se(e));case 2:return!1;case 3:return Ue(se(e))?!Ue(se(t)):!0;case 4:return!1;case 5:return!Ue(se(t));case 6:return!1;case 7:return!1;case 8:return!Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Sh(e,t){return kh(e,t)?-1:ql(e,t)?0:1}function Dh(e){return Un(e)===0?1:Un(e)+sh(se(e))|0}function ms(e){return e>=0?ps(1,hs(ds(e))):e===-2147483648?ps(-1,hs(Ch(n0(pe(e,!1,2))))):ps(-1,hs(ds(Pp(e))))}function ec(){return ze.one}function Fh(){return ze.two}function tc(){return ze.zero}tc(),ec(),Fh(),tc(),ec();function nc(e,t){Th(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function Th(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 Ih(){return nc(-621355968e5,0)}function Mh(e){const[t,n]=Sl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return nc(t.getTime(),r)}function Rh(e,t){try{return t.contents=Mh(e),!0}catch{return!1}}function oo(e){return e<0?Math.ceil(e):Math.floor(e)}function rc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Nh(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 Nh(e){return r0(Ht(e,1e4))}function Oh(e){return oo(e/864e5)}function Ph(e){return oo(e%864e5/36e5)}function Bh(e){return oo(e%36e5/6e4)}function $h(e){return oo(e%6e4/1e3)}function jh(e){return oo(e%1e3)}function Hh(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Oh(e)),o=Math.abs(Ph(e)),i=Math.abs(Bh(e)),s=Math.abs($h(e)),a=Math.abs(jh(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:Xe(o,2)}:${Xe(i,2)}:${Xe(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Xe(a,3):"."+np(a,3,7)}`}function Lh(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 rc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*rc(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Vh(e,t){try{return t.contents=Lh(e),!0}catch{return!1}}function Uh(e){throw new Error(e)}const zh="Enumeration already finished.",Gh="Enumeration has not started. Call MoveNext.",oc="The input sequence has an insufficient number of elements.",Wh="Reset is not supported on this enumerator.";function Zh(){throw new Error(Wh)}function gs(){throw new Error(Gh)}function ws(){throw new Error(zh)}class Qh{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Le(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Ve(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{re(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Kh(e){return new Qh(e)}class Xh{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"(){Zh()}Dispose(){this.dispose()}}function ti(e,t,n){return new Xh(e,t,n)}function Yh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=n;try{re(a)}finally{n=void 0}}if(t!=null){const a=t;try{re(a)}finally{t=void 0}}};return ti(()=>(r?o&&ws():gs(),i!=null?ne(i):ws()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,c=n;if(u!=null)if(c!=null){const d=c;if(d["System.Collections.IEnumerator.MoveNext"]())i=ue(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{re(d)}finally{n=void 0}}else{const d=u;d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return ne(l)}},()=>{o||s()})}function Jh(e,t){return ti(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{re(t)}finally{e()}})}function ic(e,t,n){let r=!1,o,i=ue(e());const s=()=>{if(i!=null){const l=ne(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return ti(()=>(r||gs(),o!=null?ne(o):ws()),()=>{if(r||(r=!0),i!=null){const l=ne(i);let u;try{u=t(l)}catch(c){throw a(),c}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function qh(e,t){let n,r=t;return ti(()=>{if(n!=null){const o=n[0];return n[1],o}else return gs()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function em(e,t){t==null&&Uh(e)}function br(e){return Kh(e)}function kn(e){return em("source",e),Le(e)}function H(e){return br(()=>Le(e()))}function sc(e){return br(()=>Yh(e))}function tm(e,t){return br(()=>qh(e,t))}function ys(){return H(()=>new Array(0))}function O(e){return H(()=>P0(e,null))}function Ct(e){return Bt(e)?x(e):e instanceof Vt?e:Q0(e)}function nm(e,t,n){return br(()=>ic(e,t,n))}function ac(e,t,n){return br(()=>{let r=-1;return ic(e,o=>(r=r+1|0,t(r,o)),n)})}function he(e,t){return sc([e,t])}function rm(e,t,n){const r=kn(t);try{const o=kn(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{re(o)}}finally{re(r)}}function vr(e,t,n){const r=kn(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{re(r)}}function ni(e,t,n){const r=kn(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{re(r)}}function bs(e,t){ni((n,r)=>{e(r)},void 0,t)}function Ne(e,t){return nm(()=>kn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ue(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function om(e,t){return ac(()=>kn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ue(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function im(e,t){return br(()=>{const n=kn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(oc+"\\nParameter name: source");return Jh(()=>{},n)}catch(r){throw re(n),r}})}function sm(e,t){return ac(()=>kn(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(oc+"\\nParameter name: source")}else return},n=>{re(n)})}function lc(e,t){return H(()=>sc(Ne(e,t)))}class cc{constructor(t,n){this.k=t,this.v=n}}function io(e,t){return new cc(e,t)}function be(e){return e.k}function Ge(e){return e.v}class me extends cc{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function so(e,t,n,r,o){return new me(e,t,n,r,o)}function Oe(e){return e.left}function Pe(e){return e.right}function Sn(e){return e.h}function D_(){}function uc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){e=uc(n+1,Oe(o)),t=Pe(o);continue e}else return n+1|0}else return n|0}}function am(e){return uc(0,e)}function It(e,t,n,r){let o;const i=e;if(i!=null){const u=i;o=u instanceof me?Sn(u):1}else o=0;let s;const a=r;if(a!=null){const u=a;s=u instanceof me?Sn(u):1}else s=0;const l=(o<s?s:o)|0;return l===0?io(t,n):so(t,n,e,r,l+1)}function fc(e,t,n,r){let o,i,s,a,l;const u=e;if(u!=null){const f=u;l=f instanceof me?Sn(f):1}else l=0;let c;const d=r;if(d!=null){const f=d;c=f instanceof me?Sn(f):1}else c=0;if(c>l+2){const f=ne(r);if(f instanceof me)if(o=Oe(f),(o!=null?(i=o,i instanceof me?Sn(i):1):0)>l+1){const p=ne(Oe(f));if(p instanceof me)return It(It(e,t,n,Oe(p)),be(p),Ge(p),It(Pe(p),be(f),Ge(f),Pe(f)));throw new Error("internal error: Map.rebalance")}else return It(It(e,t,n,Oe(f)),be(f),Ge(f),Pe(f));else throw new Error("internal error: Map.rebalance")}else if(l>c+2){const f=ne(e);if(f instanceof me)if(s=Pe(f),(s!=null?(a=s,a instanceof me?Sn(a):1):0)>c+1){const p=ne(Pe(f));if(p instanceof me)return It(It(Oe(f),be(f),Ge(f),Oe(p)),be(p),Ge(p),It(Pe(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return It(Oe(f),be(f),Ge(f),It(Pe(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return It(e,t,n,r)}function _r(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,be(o))|0;return o instanceof me?i<0?fc(_r(e,t,n,Oe(o)),be(o),Ge(o),Pe(o)):i===0?so(t,n,Oe(o),Pe(o),Sn(o)):fc(Oe(o),be(o),Ge(o),_r(e,t,n,Pe(o))):i<0?so(t,n,void 0,r,2):i===0?io(t,n):so(t,n,r,void 0,2)}else return io(t,n)}function dc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(a===0)return ue(Ge(s));if(s instanceof me){e=r,t=o,n=a<0?Oe(s):Pe(s);continue e}else return}else return}}function lm(e,t,n){const r=dc(e,t,n);if(r==null)throw new Error;return ne(r)}function cm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(s instanceof me)if(a<0){e=r,t=o,n=Oe(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Pe(s);continue e}else return a===0}else return!1}}function pc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){pc(n,Oe(o)),n(be(o),Ge(o)),e=n,t=Pe(o);continue e}else n(be(o),Ge(o))}break}}function um(e,t){pc(e,t)}function vs(e,t){if(t!=null){const n=t;if(n instanceof me){const r=vs(e,Oe(n)),o=e(be(n),Ge(n)),i=vs(e,Pe(n));return so(be(n),o,r,i,Sn(n))}else return io(be(n),e(be(n),Ge(n)))}else return void 0}function fm(e,t){return vs(e,t)}function dm(e,t,n){let r=n;um((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function pm(e,t){return Cn((n,r)=>_r(e,r[0],r[1],n),void 0,t)}function hm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=_r(r,s[0],s[1],o),n=i;continue e}else return o}}function mm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=_r(e,o[0],o[1],n)}return n}function hc(e,t){if(Bt(t))return mm(e,t);if(t instanceof Vt)return pm(e,t);{const n=Le(t);try{return hm(e,void 0,n)}finally{re(n)}}}class gm extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function mc(e){e:for(;;){const t=e;if(U(t))return it();{const n=z(t),r=S(t);if(r!=null){const o=r;if(o instanceof me){e=le([Oe(o),io(be(o),Ge(o)),Pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function gc(e){return new gm(mc(Ee(e)),!1)}function wm(){throw new Error("enumeration not started")}function ym(){throw new Error("enumeration already finished")}function wc(e){if(e.started){const t=e.stack;if(U(t))return ym();if(S(t)!=null){const n=S(t);if(n instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ge(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return wm()}function bm(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=mc(z(t)),!U(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function yc(e){let t=gc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wc(t)},"System.Collections.IEnumerator.get_Current"(){return wc(t)},"System.Collections.IEnumerator.MoveNext"(){return bm(t)},"System.Collections.IEnumerator.Reset"(){t=gc(e)},Dispose(){}}}class ri{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cm(this)|0}Equals(t){const n=this;if(t instanceof ri){const r=Le(n);try{const o=Le(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ye(a[0],l[0])&&Ye(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{re(o)}}finally{re(r)}}else return!1}toString(){return"map ["+on("; ",Ne(n=>k0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return yc(this.tree)}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return yc(this.tree)}CompareTo(t){const n=this;if(t instanceof ri)return rm((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:$t(r[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 vc(n,t[0])&&Ye(bc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){dm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return _s(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return _s(this)|0}get size(){return _s(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ne(n=>[n[0],n[1]],this)}get(t){return bc(this,t)}has(t){return vc(this,t)}keys(){return Ne(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ne(n=>n[1],this)}forEach(t,n){const r=this;bs(o=>{or(2,t,[o[1]])(o[0])(r)},r)}}function ao(e,t){return new ri(e,t)}function vm(e){return ao(e,void 0)}function _m(e,t,n){return ao(e.comparer,_r(e.comparer,t,n,e.tree))}function bc(e,t){return lm(e.comparer,t,e.tree)}function Am(e,t){return ao(e.comparer,fm(t,e.tree))}function _s(e){return am(e.tree)}function vc(e,t){return cm(e.comparer,t,e.tree)}function xm(e,t){return dc(e.comparer,t,e.tree)}function Cm(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,en(o[0]))|0,n=t(n,en(o[1]))|0}}finally{re(r)}return n|0}function _c(e,t,n){return _m(n,e,t)}function Ac(e,t){return xm(t,e)}function xc(e,t){return Am(t,e)}function Em(e,t){return ao(t,hc(t,e))}function km(e,t){return ao(t,hc(t,e))}function As(e){return vm(e)}class Cc{constructor(t){this.k=t}}function lt(e){return new Cc(e)}function T(e){return e.k}class G extends Cc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ct(e,t,n,r){return new G(e,t,n,r)}function q(e){return e.left}function Y(e){return e.right}function Ar(e){return e.h}function F_(){}function Ec(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof G){e=q(o),t=Ec(Y(o),r+1);continue e}else return r+1|0}else return r|0}}function Sm(e){return Ec(e,0)}function Mt(e,t,n){let r;const o=e;if(o!=null){const l=o;r=l instanceof G?Ar(l):1}else r=0;let i;const s=n;if(s!=null){const l=s;i=l instanceof G?Ar(l):1}else i=0;const a=(r<i?i:r)|0;return a===0?lt(t):ct(t,e,n,a+1)}function kc(e,t,n){let r,o,i,s,a;const l=e;if(l!=null){const d=l;a=d instanceof G?Ar(d):1}else a=0;let u;const c=n;if(c!=null){const d=c;u=d instanceof G?Ar(d):1}else u=0;if(u>a+2){const d=ne(n);if(d instanceof G)if(r=q(d),(r!=null?(o=r,o instanceof G?Ar(o):1):0)>a+1){const f=ne(q(d));if(f instanceof G)return Mt(Mt(e,t,q(f)),T(f),Mt(Y(f),T(d),Y(d)));throw new Error("internal error: Set.rebalance")}else return Mt(Mt(e,t,q(d)),T(d),Y(d));else throw new Error("internal error: Set.rebalance")}else if(a>u+2){const d=ne(e);if(d instanceof G)if(i=Y(d),(i!=null?(s=i,s instanceof G?Ar(s):1):0)>u+1){const f=ne(Y(d));if(f instanceof G)return Mt(Mt(q(d),T(d),q(f)),T(f),Mt(Y(f),t,n));throw new Error("internal error: Set.rebalance")}else return Mt(q(d),T(d),Mt(Y(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Mt(e,t,n)}function lo(e,t,n){if(n!=null){const r=n,o=e.Compare(t,T(r))|0;if(r instanceof G)return o<0?kc(lo(e,t,q(r)),T(r),Y(r)):o===0?n:kc(q(r),T(r),lo(e,t,Y(r)));{const i=e.Compare(t,T(r))|0;return i<0?ct(t,void 0,n,2):i===0?n:ct(t,n,void 0,2)}}else return lt(t)}function Sc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,T(s))|0;if(s instanceof G)if(a<0){e=r,t=o,n=q(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Y(s);continue e}else return a===0}else return!1}}function Dc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof G){Dc(n,q(o)),n(T(o)),e=n,t=Y(o);continue e}else n(T(o))}break}}class Dm extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function Fc(e){e:for(;;){const t=e;if(U(t))return it();{const n=S(t),r=z(t);if(n!=null){const o=n;if(o instanceof G){e=le([q(o),lt(T(o)),Y(o)],r);continue e}else return t}else{e=r;continue e}}}}function Tc(e){return new Dm(Fc(Ee(e)),!1)}function Fm(){throw new Error("Enumeration not started")}function Tm(){throw new Error("Enumeration already started")}function Ic(e){if(e.started){const t=e.stack;if(U(t))return Tm();if(S(t)!=null){const n=S(t);return T(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Fm()}function Im(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Fc(z(t)),!U(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function Mc(e){let t=Tc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.MoveNext"(){return Im(t)},"System.Collections.IEnumerator.Reset"(){t=Tc(e)},Dispose(){}}}function Mm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(U(o))return U(i)?0:-1;if(U(i))return 1;if(S(i)!=null)if(S(o)!=null){const s=S(o),a=S(i);if(s instanceof G)if(q(s)==null)if(a instanceof G)if(q(a)==null){const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(void 0,z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(a instanceof G)if(q(a)==null){const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(void 0,z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=z(o),n=z(i);continue e}}else{S(i);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(T(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(T(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(T(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(T(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(S(o)!=null){S(o);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(T(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(T(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(T(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(T(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=z(o),n=z(i);continue e}break}}function Rc(e,t,n){return t==null?n==null?0:-1:n==null?1:Mm(e,Ee(t),Ee(n))|0}function Rm(e,t,n){let r=n;Dc(o=>{t[r]=o,r=r+1|0},e)}function Nm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=lo(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Om(e,t){return is((n,r)=>lo(e,r,n),void 0,t)}function Pm(e,t){return Cn((n,r)=>lo(e,r,n),void 0,t)}function Bm(e,t){if(Bt(t))return Om(e,t);if(t instanceof Vt)return Pm(e,t);{const n=Le(t);try{return Nm(e,void 0,n)}finally{re(n)}}}class xs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hm(this)|0}Equals(t){const n=this;return t instanceof xs&&Rc(oi(n),Wt(n),Wt(t))===0}toString(){return"set ["+on("; ",Ne(n=>Ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Rc(oi(n),Wt(n),Wt(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 Sc(oi(n),t,Wt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Rm(Wt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Cs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Cs(this)|0}GetEnumerator(){return Mc(Wt(this))}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Mc(Wt(this))}get size(){return Cs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return jm(this,t)}keys(){return Ne(n=>n,this)}values(){return Ne(n=>n,this)}entries(){return Ne(n=>[n,n],this)}forEach(t,n){const r=this;bs(o=>{or(2,t,[o])(o)(r)},r)}}function $m(e,t){return new xs(e,t)}function oi(e){return e.comparer}function Wt(e){return e.tree}function Cs(e){return Sm(Wt(e))}function jm(e,t){return Sc(oi(e),t,Wt(e))}function Hm(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+en(r)+631|0}}finally{re(n)}return Math.abs(t)|0}function Lm(e,t){return $m(t,Bm(t,e))}function co(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 Wm(e,t){const n=t.tag===2?Qr(t.fields[0],t.fields[1],!0):t.tag===1?Qr(t.fields[0],t.fields[1],!1)+`
6
- Reason: `+t.fields[2]:t.tag===3?Qr(t.fields[0],t.fields[1],!0):t.tag===4?Qr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function Vm(e,t){const n=t.tag===2?co(t.fields[0],t.fields[1],!0):t.tag===1?co(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?co(t.fields[0],t.fields[1],!0):t.tag===4?co(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
- `+fn(`
10
+ `+on(`
10
11
 
11
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Qr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Qc(e,t,n){let r;if(r=Cr(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new g(1,[Wm(i[0],i[1])])}else return new g(0,[r.fields[0]])}function Jn(e,t){try{return Qc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function Zm(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new S(0,["a string",t])]])}function Qm(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ah(t,new rt(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a guid",t])]])}else return new g(1,[[e,new S(0,["a guid",t])]])}function Km(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new S(0,["null",t])]])}const ka=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new g(0,[(i+128&255)-128]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!1,8,new rt(()=>s,l=>{s=l|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])},Ta=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new g(0,[i&255]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!0,8,new rt(()=>s,l=>{s=l})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])},Fa=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new g(0,[(i+32768&65535)-32768]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!1,16,new rt(()=>s,l=>{s=l|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])},Ia=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new g(0,[i&65535]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!0,16,new rt(()=>s,l=>{s=l})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])},Ma=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new g(0,[~~i]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!1,32,new rt(()=>s,l=>{s=l|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])},Ra=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new g(0,[i>>>0]):new g(1,[[r,new S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Dr(o,511,!0,32,new rt(()=>s,l=>{s=l})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])};function Jm(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new S(0,["a boolean",t])]])}function Xm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new S(0,["a float",t])]])}function qm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new S(0,["a float32",t])]])}function Ym(e,t){if(typeof t=="string"){let n,r=v0();return n=[A0(t,new rt(()=>r,o=>{r=o})),r],n[0]?new g(0,[E0(n[1])]):new g(1,[[e,new S(0,["a datetime",t])]])}else return new g(1,[[e,new S(0,["a datetime",t])]])}function eg(e,t){if(typeof t=="string"){let n,r=Ph();return n=[Bh(t,new rt(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new S(0,["a datetime",t])]])}function tg(e,t){if(typeof t=="string"){let n,r=0;return n=[Wh(t,new rt(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a timespan",t])]])}else return new g(1,[[e,new S(0,["a timespan",t])]])}function Na(e,t,n,r){let o;const i=n+".["+bn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new g(1,[[i,new S(5,["a longer array. Need index `"+bn(e)+"` but there are only `"+(o=s.length,bn(o))+"` entries",r])]])}else return new g(1,[[i,new S(0,["an array",r])]])}function ng(e,t,n){return n==null?new g(0,[void 0]):pn(fe,e(t,n))}function Pa(e,t,n){if(Array.isArray(n)){let r=-1;return pn(wc,ol((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+bn(r)+"]",i);return s.tag===0?new g(0,[ut(s.fields[0],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[dt()]),n))}else return new g(1,[[t,new S(0,["a list",n])]])}function Oa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ol((i,s)=>{if(r=r+1|0,i.tag===0){const l=i.fields[0],a=e(t+".["+bn(r)+"]",s);return a.tag===0?(l[r]=a.fields[0],new g(0,[l])):new g(1,[a.fields[0]])}else return i},new g(0,[Si(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new S(0,["an array",n])]])}function rg(e,t,n){return((o,i)=>{e:for(;;){const s=o,l=i;if(z(s))return new g(1,[[t,new S(7,[l])]]);{const a=Qc(t,oe(2,D(s)),n);if(a.tag===1){o=U(s),i=Ti(l,Fe(a.fields[0]));continue e}else return new g(0,[a.fields[0]])}}})(e,dt())}function og(e,t,n){return new g(0,[e])}function Ba(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new g(1,[o.fields[0]])}function ig(e,t,n,r){const o=t(n,r);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[e(o.fields[0])])}function sg(e,t){let n;const r=e;return n=o=>i=>Na(0,r,o,i),o=>i=>Ba(oe(3,s=>{let l;const a=t;return l=c=>u=>Na(1,a,c,u),c=>u=>Ba((d,f,p)=>og([s,d]),oe(2,l),c,u)}),oe(2,n),o,i)}function lg(e){return Tm(e,{Compare:Gt})}function ag(e){return Gm(e,{Compare:Gt})}function ug(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?z0((r,o)=>{const i=r[0];return o.tag===0?pn(s=>ut(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new g(0,[dt()])):new g(1,[[t,new S(0,["an object",n])]])}function cg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Ii((o,i)=>{if(o.tag===0){let s;if(s=Cr(1,e,[n])(i),s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new g(0,[ut([s.fields[0],a.fields[0]],o.fields[0])]):new g(1,[a.fields[0]])}else return new g(1,[s.fields[0]])}else return o},new g(0,[dt()]),Object.keys(r)):new g(1,[[n,new S(0,["an object",r])]])}function Kc(e,t,n,r){let o,i,s,l,a;return t.length!==r.length?new g(1,[[n,new S(6,[(o=t.length|0,i=r.length|0,s=Yn(gn("Expected %i %s but got %i")),l=s(o),a=l(e),a(i))])]]):W0((c,u,d)=>d.tag===0?pn(f=>ut(f,d.fields[0]),u(n)(c)):d,r,t,new g(0,[dt()]))}function $a(e,t,n,r,o,i){const s=L0(l=>pr(l)===r,rc(n));if(s!=null){const l=s;return i.length===0?new g(0,[ia(l,[])]):pn(a=>ia(l,ki(a)),Kc("union fields",dn(a=>Lt(e,t,!1,a[1]),lc(l),null),o,i))}else return new g(1,[[o,new S(6,["Cannot find case "+r+" in "+ee(n)])]])}function Ha(e,t,n,r){let o,i;const s=new rt(He());let l;const a=ee(r);l=jc(a,s,e);let c;if(sc(r)){const u=dn(d=>[bc(t,pr(d)),Lt(l,t,!1,d[1])],fo(r),null);c=d=>f=>pn(p=>h0(r,ki(p)),ug(u,d,f))}else if(ic(r))c=u=>d=>{if(typeof d=="string")return $a(l,t,r,d,u,[]);if(Array.isArray(d)){const f=d;return $a(l,t,r,f[0],u,f.slice(1,f.length))}else return new g(1,[[u,new S(0,["a string or array",d])]])};else if(n)c=u=>d=>new g(1,[[u,new S(2,["an extra coder for "+ee(r),d])]]);else throw new Error((o=ee(r),i=Yn(gn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=c,c}function Lt(e,t,n,r){let o,i,s;const l=ee(r),a=Lc(l,e);if(a==null)if(Yu(r)){const c=Lt(e,t,!1,Ao(r));return u=>d=>Oa(oe(2,c),u,d)}else if(qs(r)){const c=ee(nc(r));if(c==="System.SByte")return u=>d=>{const f=r,p=u,h=d,y=ka(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return u=>d=>{const f=r,p=u,h=d,y=Ta(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return u=>d=>{const f=r,p=u,h=d,y=Fa(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,sp(w))]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return u=>d=>{const f=r,p=u,h=d,y=Ia(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return u=>d=>{const f=r,p=u,h=d,y=Ma(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,bn(w))]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return u=>d=>{const f=r,p=u,h=d,y=Ra(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return ur(w,lr(f),{Equals:(_,b)=>_===b,GetHashCode:Tt})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),h,"Unkown value provided for the enum"])]])}};{const u=ee(r),f=dc(gn(`Cannot generate auto decoder for %s.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:co(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Nc(e,t,n){let r;if(r=or(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new g(1,[Vm(i[0],i[1])])}else return new g(0,[r.fields[0]])}function zn(e,t){try{return Nc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function Um(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new k(0,["a string",t])]])}function zm(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ih(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a guid",t])]])}else return new g(1,[[e,new k(0,["a guid",t])]])}function Gm(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new k(0,["null",t])]])}const Oc=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new g(0,[(i+128&255)-128]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,8,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Pc=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new g(0,[i&255]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,8,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Bc=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new g(0,[(i+32768&65535)-32768]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,16,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},$c=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new g(0,[i&65535]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,16,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},jc=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new g(0,[~~i]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,32,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Hc=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new g(0,[i>>>0]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,32,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])};function Wm(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new k(0,["a boolean",t])]])}function Zm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float",t])]])}function Qm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float32",t])]])}function Km(e,t){if(typeof t=="string"){let n,r=w0();return n=[b0(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[v0(n[1])]):new g(1,[[e,new k(0,["a datetime",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function Xm(e,t){if(typeof t=="string"){let n,r=Ih();return n=[Rh(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function Ym(e,t){if(typeof t=="string"){let n,r=0;return n=[Vh(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a timespan",t])]])}else return new g(1,[[e,new k(0,["a timespan",t])]])}function Lc(e,t,n,r){let o;const i=n+".["+wn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new g(1,[[i,new k(5,["a longer array. Need index `"+wn(e)+"` but there are only `"+(o=s.length,wn(o))+"` entries",r])]])}else return new g(1,[[i,new k(0,["an array",r])]])}function Jm(e,t,n){return n==null?new g(0,[void 0]):an(ue,e(t,n))}function Vc(e,t,n){if(Array.isArray(n)){let r=-1;return an(Pl,is((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+wn(r)+"]",i);return s.tag===0?new g(0,[st(s.fields[0],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[it()]),n))}else return new g(1,[[t,new k(0,["a list",n])]])}function Uc(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return is((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+wn(r)+"]",s);return l.tag===0?(a[r]=l.fields[0],new g(0,[a])):new g(1,[l.fields[0]])}else return i},new g(0,[Ko(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new k(0,["an array",n])]])}function qm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(U(s))return new g(1,[[t,new k(7,[a])]]);{const l=Nc(t,oe(2,S(s)),n);if(l.tag===1){o=z(s),i=Jo(a,Ee(l.fields[0]));continue e}else return new g(0,[l.fields[0]])}}})(e,it())}function eg(e,t,n){return new g(0,[e])}function zc(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new g(1,[o.fields[0]])}function tg(e,t,n,r){const o=t(n,r);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[e(o.fields[0])])}function ng(e,t){let n;const r=e;return n=o=>i=>Lc(0,r,o,i),o=>i=>zc(oe(3,s=>{let a;const l=t;return a=u=>c=>Lc(1,l,u,c),u=>c=>zc((d,f,p)=>eg([s,d]),oe(2,a),u,c)}),oe(2,n),o,i)}function rg(e){return Em(e,{Compare:$t})}function og(e){return Lm(e,{Compare:$t})}function ig(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?L0((r,o)=>{const i=r[0];return o.tag===0?an(s=>st(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new g(0,[it()])):new g(1,[[t,new k(0,["an object",n])]])}function sg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ni((o,i)=>{if(o.tag===0){let s;if(s=or(1,e,[n])(i),s.tag===0){const l=t(n+"."+i,r[i]);return l.tag===0?new g(0,[st([s.fields[0],l.fields[0]],o.fields[0])]):new g(1,[l.fields[0]])}else return new g(1,[s.fields[0]])}else return o},new g(0,[it()]),Object.keys(r)):new g(1,[[n,new k(0,["an object",r])]])}function Gc(e,t,n,r){let o,i,s,a,l;return t.length!==r.length?new g(1,[[n,new k(6,[(o=t.length|0,i=r.length|0,s=jn(rn("Expected %i %s but got %i")),a=s(o),l=a(e),l(i))])]]):U0((u,c,d)=>d.tag===0?an(f=>st(f,d.fields[0]),c(n)(u)):d,r,t,new g(0,[it()]))}function Wc(e,t,n,r,o,i){const s=$0(a=>dr(a)===r,vl(n));if(s!=null){const a=s;return i.length===0?new g(0,[El(a,[])]):an(l=>El(a,Yo(l)),Gc("union fields",sn(l=>Zt(e,t,!1,l[1]),Cl(a),null),o,i))}else return new g(1,[[o,new k(6,["Cannot find case "+r+" in "+te(n)])]])}function Zc(e,t,n,r){let o,i;const s=new Je(Me());let a;const l=te(r);a=_c(l,s,e);let u;if(xl(r)){const c=sn(d=>[Ll(t,dr(d)),Zt(a,t,!1,d[1])],Yr(r),null);u=d=>f=>an(p=>f0(r,Yo(p)),ig(c,d,f))}else if(Al(r))u=c=>d=>{if(typeof d=="string")return Wc(a,t,r,d,c,[]);if(Array.isArray(d)){const f=d;return Wc(a,t,r,f[0],c,f.slice(1,f.length))}else return new g(1,[[c,new k(0,["a string or array",d])]])};else if(n)u=c=>d=>new g(1,[[c,new k(2,["an extra coder for "+te(r),d])]]);else throw new Error((o=te(r),i=jn(rn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=u,u}function Zt(e,t,n,r){let o,i,s;const a=te(r),l=Ac(a,e);if(l==null)if(gl(r)){const u=Zt(e,t,!1,Xr(r));return c=>d=>Uc(oe(2,u),c,d)}else if(Ji(r)){const u=te(bl(r));if(u==="System.SByte")return c=>d=>{const f=r,p=c,h=d,y=Oc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Byte")return c=>d=>{const f=r,p=c,h=d,y=Pc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int16")return c=>d=>{const f=r,p=c,h=d,y=Bc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,rp(w))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt16")return c=>d=>{const f=r,p=c,h=d,y=$c(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int32")return c=>d=>{const f=r,p=c,h=d,y=jc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,wn(w))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt32")return c=>d=>{const f=r,p=c,h=d,y=Hc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};{const c=te(r),f=Il(rn(`Cannot generate auto decoder for %s.
12
13
  Thoth.Json.Net only support the folluwing enum types:
13
14
  - sbyte
14
15
  - byte
@@ -17,8 +18,8 @@ Thoth.Json.Net only support the folluwing enum types:
17
18
  - int
18
19
  - uint32
19
20
  If you can't use one of these types, please pass an extra decoder.
20
- `))(u);return p=>f(p)}}else if(ec(r))if(Ys(r)){const c=dn(u=>Lt(e,t,!1,u),oc(r),null);return u=>d=>Array.isArray(d)?pn(f=>m0(ki(f)),Kc("tuple elements",c,u,d)):new g(1,[[u,new S(0,["an array",d])]])}else{const c=ee(tc(r));if(c==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=Lt(e,t,!0,yt(r)[0]),u=>d=>ng(oe(2,o),u,d);if(c==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=Lt(e,t,!1,yt(r)[0]),u=>d=>Pa(oe(2,i),u,d);if(c==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const u=Lt(e,t,!1,yt(r)[0]),d=Lt(e,t,!1,yt(r)[1]);let f;const p=E([h=>y=>cg(oe(2,u),oe(2,d),h,y),(s=sg(oe(2,u),oe(2,d)),h=>y=>Pa(oe(2,s),h,y))]);return f=h=>y=>rg(p,h,y),h=>y=>ig(lg,oe(2,f),h,y)}else if(c==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const u=Lt(e,t,!1,yt(r)[0]);return d=>f=>{const p=Oa(oe(2,u),d,f);return p.tag===0?new g(0,[ag(p.fields[0])]):new g(1,[p.fields[0]])}}else return Ha(e,t,n,r)}else return l==="System.Boolean"?c=>u=>Jm(c,u):l==="Microsoft.FSharp.Core.Unit"?c=>u=>Km(c,u):l==="System.String"?c=>u=>Zm(c,u):l==="System.SByte"?ka:l==="System.Byte"?Ta:l==="System.Int16"?Fa:l==="System.UInt16"?Ia:l==="System.Int32"?Ma:l==="System.UInt32"?Ra:l==="System.Double"?c=>u=>Xm(c,u):l==="System.Single"?c=>u=>qm(c,u):l==="System.DateTime"?c=>u=>Ym(c,u):l==="System.DateTimeOffset"?c=>u=>eg(c,u):l==="System.TimeSpan"?c=>u=>tg(c,u):l==="System.Guid"?c=>u=>Qm(c,u):l==="System.Object"?c=>u=>new g(0,[u]):Ha(e,t,n,r);else{const c=a;return u=>d=>c.contents(u)(d)}}function fg(e){return e!=null?Vc((t,n)=>new rt(n[1]),e.Coders):fl({Compare:Gn})}function Xn(e,t,n){const r=oi(t,new Nt(0,[]));return Lt(fg(n),r,!1,e)}class Mi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function dg(e){return new Mi(0,[e])}const pg=new Mi(0,["BasicProfile.ImportData"]),hg=new Mi(0,["BasicProfile.AccessConfig"]),mg=new Mi(0,["BasicProfile.EditConfig"]);function Jc(e){if(il(pg,e,{Equals:tt,GetHashCode:Js}))return fe(void 0)}function Xc(e){if(il(hg,e,{Equals:tt,GetHashCode:Js}))return fe(void 0)}function pl(e){if(il(mg,e,{Equals:tt,GetHashCode:Js}))return fe(void 0)}function gg(e){return pl(e)!=null}class ja extends te{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function wg(e){let t;const n=hc(e==null?"":e,["."],void 0,0);if(!U0((r,o)=>r===o,n,He())&&n.length===3){const r=n[1],o=atob(r);t=Jn(oe(2,Xn(a0(["Name",xt],["Roles",u0(xt)]),new Nt(1,[]),void 0)),o)}else t=new g(1,["Failed to identify the user"]);if(t.tag===1)return new ja(void 0,dt());{const r=t.fields[0];return new ja(r.Name,E(dn(dg,r.Roles,null)))}}class qc{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 Ri extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ri.prototype)}}class hl{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>hl.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function rn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ri);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(qo(n))}});else try{e(t)}catch(n){t.onError(qo(n))}}}function yg(e,t){return rn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(qo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function _g(e){return rn(t=>t.onSuccess(e))}class vg{Bind(t,n){return yg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return rn(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 _g(t)}ReturnFrom(t){return t}TryFinally(t,n){return rn(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 rn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(qo(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 rn(t=>t.onSuccess(void 0))}}const v=new vg;function bg(e,t,n){return n.tag===1?t(n.fields[0]):e(n.fields[0])}class Ag{constructor(){}}function Eg(){return new Ag}function xg(e,t){return new g(0,[t])}const Cg=Eg();class ml extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Sg(e){return new ml(0,[e.fields[0]+1])}function Dg(e,t){return new ml(0,[_s(Gn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new ml(0,[0]);return e=n=>In(Dg,t,n),n=>Sg(e(n))})();class kg extends te{constructor(t,n,r,o,i,s,l,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=l,this.StartTime=a}}function Tg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],kg,()=>[["ImportId",Oe],["User",xt],["Filename",xt],["NumberOfRecords",Oe],["CompletedSuccessfully",Oe],["CompletedFailed",Oe],["NextRow",Xs(Oe)],["StartTime",co("System.DateTime")]])}class Fg extends te{constructor(t,n,r,o,i,s,l,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=l,this.StopTime=a}}function Ig(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],Fg,()=>[["ImportId",Oe],["User",xt],["Filename",xt],["NumberOfRecords",Oe],["Succeeded",Oe],["Failed",Oe],["StartTime",co("System.DateTime")],["StopTime",co("System.DateTime")]])}class Yc extends te{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function ef(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Yc,()=>[["ActiveImport",Xs(Tg())],["ImportHistory",xi(Ig())]])}new Yc(void 0,dt());class Mg extends te{constructor(t,n){super(),this.Column=t,this.Message=n}}function Rg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],Mg,()=>[["Column",xt],["Message",xt]])}class Ng extends te{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Pg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],Ng,()=>[["RowId",Oe],["FieldErrors",xi(Rg())]])}class Og extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function Bg(){return Xu("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],Og,()=>[[],[],[],[["Item",xt]],[],[],[],[["Item",xi(Pg())]],[],[]])}class $g extends te{constructor(t,n,r,o,i,s,l,a,c,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=l,this.RemainingRecordCount=a|0,this.StartTime=c,this.StopTime=u}}function Hg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],$g,()=>[["ImportId",Oe],["User",xt],["Filename",xt],["TotalRecordCount",Oe],["SucceededRecordCount",Oe],["FailedRecordCount",Oe],["FailedRecords",xi(Lg())],["RemainingRecordCount",Oe],["StartTime",co("System.DateTime")],["StopTime",Xs(co("System.DateTime"))]])}class jg extends te{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Lg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],jg,()=>[["RowId",Oe],["Reason",xt]])}var ko,C,tf,Bn,La,nf,Ts,rf,ai={},of=[],Vg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ni=Array.isArray;function on(e,t){for(var n in t)e[n]=t[n];return e}function sf(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ko.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 no(e,s,r,o,null)}function no(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,__h:null,constructor:void 0,__v:o==null?++tf:o};return o==null&&C.vnode!=null&&C.vnode(i),i}function gl(){return{current:null}}function de(e){return e.children}function Rt(e,t){this.props=e,this.context=t}function go(e,t){if(t==null)return e.__?go(e.__,e.__.__k.indexOf(e)+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"?go(e):null}function lf(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 lf(e)}}function Fs(e){(!e.__d&&(e.__d=!0)&&Bn.push(e)&&!ui.__r++||La!==C.debounceRendering)&&((La=C.debounceRendering)||nf)(ui)}function ui(){var e,t,n,r,o,i,s,l;for(Bn.sort(Ts);e=Bn.shift();)e.__d&&(t=Bn.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=on({},i)).__v=i.__v+1,wl(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?go(i):s,i.__h),df(r,i),i.__e!=s&&lf(i)),Bn.length>t&&Bn.sort(Ts));ui.__r=0}function af(e,t,n,r,o,i,s,l,a,c){var u,d,f,p,h,y,w,_=r&&r.__k||of,b=_.length;for(n.__k=[],u=0;u<t.length;u++)if((p=n.__k[u]=(p=t[u])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?no(null,p,null,null,p):Ni(p)?no(de,{children:p},null,null,null):p.__b>0?no(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=_[u])===null||f&&p.key==f.key&&p.type===f.type)_[u]=void 0;else for(d=0;d<b;d++){if((f=_[d])&&p.key==f.key&&p.type===f.type){_[d]=void 0;break}f=null}wl(e,p,f=f||ai,o,i,s,l,a,c),h=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||h,p)),h!=null?(y==null&&(y=h),typeof p.type=="function"&&p.__k===f.__k?p.__d=a=uf(p,a,e):a=cf(e,p,f,_,h,a),typeof n.type=="function"&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=go(f))}for(n.__e=y,u=b;u--;)_[u]!=null&&(typeof n.type=="function"&&_[u].__e!=null&&_[u].__e==n.__d&&(n.__d=ff(r).nextSibling),hf(_[u],_[u]));if(w)for(u=0;u<w.length;u++)pf(w[u],w[++u],w[++u])}function uf(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?uf(r,t,n):cf(n,r,r,o,r.__e,t));return t}function ln(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ni(e)?e.some(function(n){ln(n,t)}):t.push(e)),t}function cf(e,t,n,r,o,i){var s,l,a;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,a=0;(l=l.nextSibling)&&a<r.length;a+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function ff(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=ff(n)))return r}return null}function Ug(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||ci(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||ci(e,i,t[i],n[i],r)}function Va(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Vg.test(t)?n:n+"px"}function ci(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||Va(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Va(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?za:Ua,i):e.removeEventListener(t,i?za:Ua,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ua(e){return this.l[e.type+!1](C.event?C.event(e):e)}function za(e){return this.l[e.type+!0](C.event?C.event(e):e)}function wl(e,t,n,r,o,i,s,l,a){var c,u,d,f,p,h,y,w,_,b,F,R,B,P,N,M=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(c=C.__b)&&c(t);try{e:if(typeof M=="function"){if(w=t.props,_=(c=M.contextType)&&r[c.__c],b=c?_?_.props.value:c.__:r,n.__c?y=(u=t.__c=n.__c).__=u.__E:("prototype"in M&&M.prototype.render?t.__c=u=new M(w,b):(t.__c=u=new Rt(w,b),u.constructor=M,u.render=Gg),_&&_.sub(u),u.props=w,u.state||(u.state={}),u.context=b,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=on({},u.__s)),on(u.__s,M.getDerivedStateFromProps(w,u.__s))),f=u.props,p=u.state,u.__v=t,d)M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(M.getDerivedStateFromProps==null&&w!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,b),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,b)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ne){ne&&(ne.__=t)}),F=0;F<u._sb.length;F++)u.__h.push(u._sb[F]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,b),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,h)})}if(u.context=b,u.props=w,u.__P=e,R=C.__r,B=0,"prototype"in M&&M.prototype.render){for(u.state=u.__s,u.__d=!1,R&&R(t),c=u.render(u.props,u.state,u.context),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[]}else do u.__d=!1,R&&R(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++B<25);u.state=u.__s,u.getChildContext!=null&&(r=on(on({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(h=u.getSnapshotBeforeUpdate(f,p)),af(e,Ni(N=c!=null&&c.type===de&&c.key==null?c.props.children:c)?N:[N],t,n,r,o,i,s,l,a),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),y&&(u.__E=u.__=null),u.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zg(n.__e,t,n,r,o,i,s,a);(c=C.diffed)&&c(t)}catch(ne){t.__v=null,(a||i!=null)&&(t.__e=l,t.__h=!!a,i[i.indexOf(l)]=null),C.__e(ne,t,n)}}function df(e,t){C.__c&&C.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){C.__e(r,n.__v)}})}function zg(e,t,n,r,o,i,s,l){var a,c,u,d=n.props,f=t.props,p=t.type,h=0;if(p==="svg"&&(o=!0),i!=null){for(;h<i.length;h++)if((a=i[h])&&"setAttribute"in a==!!p&&(p?a.localName===p:a.nodeType===3)){e=a,i[h]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,l=!1}if(p===null)d===f||l&&e.data===f||(e.data=f);else{if(i=i&&ko.call(e.childNodes),c=(d=n.props||ai).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!l){if(i!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Ug(e,f,d,o,l),u)t.__k=[];else if(af(e,Ni(h=t.props.children)?h:[h],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&go(n,0),l),i!=null)for(h=i.length;h--;)i[h]!=null&&sf(i[h]);l||("value"in f&&(h=f.value)!==void 0&&(h!==e.value||p==="progress"&&!h||p==="option"&&h!==d.value)&&ci(e,"value",h,d.value,!1),"checked"in f&&(h=f.checked)!==void 0&&h!==e.checked&&ci(e,"checked",h,d.checked,!1))}return e}function pf(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){C.__e(r,n)}}function hf(e,t,n){var r,o;if(C.unmount&&C.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||pf(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){C.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&hf(r[o],t,n||typeof e.type!="function");n||e.__e==null||sf(e.__e),e.__=e.__e=e.__d=void 0}function Gg(e,t,n){return this.constructor(e,n)}function xn(e,t,n){var r,o,i;C.__&&C.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],wl(t,e=(!r&&n||t).__k=m(de,null,[e]),o||ai,ai,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ko.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),df(i,e)}function yl(e,t){xn(e,t,yl)}function _l(e,t,n){var r,o,i,s,l=on({},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]:l[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?ko.call(arguments,2):n),no(e.type,l,r||e.key,o||e.ref,null)}function ht(e,t){var n={__c:t="__cC"+rf++,__: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(l){l.__e=!0,Fs(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ko=of.slice,C={__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(l){e=l}throw e}},tf=0,Rt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=on({},this.state),typeof e=="function"&&(e=e(on({},n),this.props)),e&&on(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fs(this))},Rt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fs(this))},Rt.prototype.render=de,Bn=[],nf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ts=function(e,t){return e.__v.__b-t.__v.__b},ui.__r=0,rf=0;var hn,X,os,Ga,Er=0,mf=[],Qo=[],Wa=C.__b,Za=C.__r,Qa=C.diffed,Ka=C.__c,Ja=C.unmount;function er(e,t){C.__h&&C.__h(X,e,Er||t),Er=0;var n=X.__H||(X.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Qo}),n.__[e]}function Ae(e){return Er=1,To(yf,e)}function To(e,t,n){var r=er(hn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):yf(void 0,t),function(l){var a=r.__N?r.__N[0]:r.__[0],c=r.t(a,l);a!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=X,!X.u)){var o=function(l,a,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(f){return f.__c});if(u.every(function(f){return!f.__N}))return!i||i.call(this,l,a,c);var d=!1;return u.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===l)&&(!i||i.call(this,l,a,c))};X.u=!0;var i=X.shouldComponentUpdate,s=X.componentWillUpdate;X.componentWillUpdate=function(l,a,c){if(this.__e){var u=i;i=void 0,o(l,a,c),i=u}s&&s.call(this,l,a,c)},X.shouldComponentUpdate=o}return r.__N||r.__}function W(e,t){var n=er(hn++,3);!C.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,X.__H.__h.push(n))}function Rr(e,t){var n=er(hn++,4);!C.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,X.__h.push(n))}function L(e){return Er=5,K(function(){return{current:e}},[])}function vl(e,t,n){Er=6,Rr(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 K(e,t){var n=er(hn++,7);return bl(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ce(e,t){return Er=8,K(function(){return e},t)}function je(e){var t=X.context[e.__c],n=er(hn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(X)),t.props.value):e.__}function gf(e,t){C.useDebugValue&&C.useDebugValue(t?t(e):e)}function Wg(e){var t=er(hn++,10),n=Ae();return t.__=e,X.componentDidCatch||(X.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function wf(){var e=er(hn++,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 Zg(){for(var e;e=mf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ko),e.__H.__h.forEach(Is),e.__H.__h=[]}catch(t){e.__H.__h=[],C.__e(t,e.__v)}}C.__b=function(e){X=null,Wa&&Wa(e)},C.__r=function(e){Za&&Za(e),hn=0;var t=(X=e.__c).__H;t&&(os===X?(t.__h=[],X.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Qo,n.__N=n.i=void 0})):(t.__h.forEach(Ko),t.__h.forEach(Is),t.__h=[],hn=0)),os=X},C.diffed=function(e){Qa&&Qa(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mf.push(t)!==1&&Ga===C.requestAnimationFrame||((Ga=C.requestAnimationFrame)||Qg)(Zg)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Qo&&(n.__=n.__V),n.i=void 0,n.__V=Qo})),os=X=null},C.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ko),n.__h=n.__h.filter(function(r){return!r.__||Is(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],C.__e(r,n.__v)}}),Ka&&Ka(e,t)},C.unmount=function(e){Ja&&Ja(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ko(r)}catch(o){t=o}}),n.__H=void 0,t&&C.__e(t,n.__v))};var Xa=typeof requestAnimationFrame=="function";function Qg(e){var t,n=function(){clearTimeout(r),Xa&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xa&&(t=requestAnimationFrame(n))}function Ko(e){var t=X,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),X=t}function Is(e){var t=X;e.__c=e.__(),X=t}function bl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function yf(e,t){return typeof t=="function"?t(e):t}function _f(e,t){for(var n in t)e[n]=t[n];return e}function Ms(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function is(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function fi(e){this.props=e}function vf(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:Ms(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(fi.prototype=new Rt).isPureReactComponent=!0,fi.prototype.shouldComponentUpdate=function(e,t){return Ms(this.props,e)||Ms(this.state,t)};var qa=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qa&&qa(e)};var Kg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pi(e){function t(n){var r=_f({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Kg,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ya=function(e,t){return e==null?null:ln(ln(e).map(t))},bf={map:Ya,forEach:Ya,count:function(e){return e?ln(e).length:0},only:function(e){var t=ln(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ln},Jg=C.__e;C.__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)}Jg(e,t,n,r)};var eu=C.unmount;function Af(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=_f({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Af(r,t,n)})),e}function Ef(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ef(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ro(){this.__u=0,this.t=null,this.__b=null}function xf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Cf(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function dr(){this.u=null,this.o=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),eu&&eu(e)},(ro.prototype=new Rt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=xf(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Ef(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ro.prototype.componentWillUnmount=function(){this.t=[]},ro.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]=Af(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(de,null,e.fallback);return o&&(o.__h=null),[m(de,null,t.__a?null:e.children),o]};var tu=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 Xg(e){return this.getChildContext=function(){return e.context},e.children}function qg(e){var t=this,n=e.i;t.componentWillUnmount=function(){xn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(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)}}),xn(m(Xg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Al(e,t){var n=m(qg,{__v:e,i:t});return n.containerInfo=t,n}(dr.prototype=new Rt).__a=function(e){var t=this,n=xf(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),tu(t,e,r)):o()};n?n(i):i()}},dr.prototype.render=function(e){this.u=null,this.o=new Map;var t=ln(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},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){tu(e,n,t)})};var Sf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yg=/^(?: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]/,ew=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tw=/[A-Z0-9]/g,nw=typeof document<"u",rw=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Df(e,t,n){return t.__k==null&&(t.textContent=""),xn(e,t),typeof n=="function"&&n(),e?e.__c:null}function kf(e,t,n){return yl(e,t),typeof n=="function"&&n(),e?e.__c:null}Rt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Rt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var nu=C.event;function ow(){}function iw(){return this.cancelBubble}function sw(){return this.defaultPrevented}C.event=function(e){return nu&&(e=nu(e)),e.persist=ow,e.isPropagationStopped=iw,e.isDefaultPrevented=sw,e.nativeEvent=e};var El,lw={enumerable:!1,configurable:!0,get:function(){return this.class}},ru=C.vnode;C.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||nw&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||rw(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":ew.test(i)?i=l:r.indexOf("-")===-1&&Yg.test(i)?i=i.replace(tw,"-$&").toLowerCase():s===null&&(s=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ln(n.children).forEach(function(a){a.props.selected=o.value.indexOf(a.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ln(n.children).forEach(function(a){a.props.selected=o.multiple?o.defaultValue.indexOf(a.props.value)!=-1:o.defaultValue==a.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",lw)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Sf,ru&&ru(e)};var ou=C.__r;C.__r=function(e){ou&&ou(e),El=e.__c};var iu=C.diffed;C.diffed=function(e){iu&&iu(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),El=null};var Tf={ReactCurrentDispatcher:{current:{readContext:function(e){return El.__n[e.__c].props.value}}}},aw="17.0.2";function Ff(e){return m.bind(null,e)}function Oi(e){return!!e&&e.$$typeof===Sf}function xl(e){return Oi(e)?_l.apply(null,arguments):e}function If(e){return!!e.__k&&(xn(null,e),!0)}function Mf(e){return e&&(e.base||e.nodeType===1&&e)||null}var Rf=function(e,t){return e(t)},Nf=function(e,t){return e(t)},Pf=de;function Cl(e){e()}function Of(e){return e}function Bf(){return[!1,Cl]}var $f=Rr;function Hf(e,t){var n=t(),r=Ae({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Rr(function(){o.__=n,o.v=t,is(o.__,t())||i({h:o})},[e,n,t]),W(function(){return is(o.__,o.v())||i({h:o}),e(function(){is(o.__,o.v())||i({h:o})})},[e]),n}var T={useState:Ae,useId:wf,useReducer:To,useEffect:W,useLayoutEffect:Rr,useInsertionEffect:$f,useTransition:Bf,useDeferredValue:Of,useSyncExternalStore:Hf,startTransition:Cl,useRef:L,useImperativeHandle:vl,useMemo:K,useCallback:ce,useContext:je,useDebugValue:gf,version:"17.0.2",Children:bf,render:Df,hydrate:kf,unmountComponentAtNode:If,createPortal:Al,createElement:m,createContext:ht,createFactory:Ff,cloneElement:xl,createRef:gl,Fragment:de,isValidElement:Oi,findDOMNode:Mf,Component:Rt,PureComponent:fi,memo:vf,forwardRef:Pi,flushSync:Nf,unstable_batchedUpdates:Rf,StrictMode:Pf,Suspense:ro,SuspenseList:dr,lazy:Cf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Tf};const Rs=Object.freeze(Object.defineProperty({__proto__:null,Children:bf,PureComponent:fi,StrictMode:Pf,Suspense:ro,SuspenseList:dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Tf,cloneElement:xl,createFactory:Ff,createPortal:Al,default:T,findDOMNode:Mf,flushSync:Nf,forwardRef:Pi,hydrate:kf,isValidElement:Oi,lazy:Cf,memo:vf,render:Df,startTransition:Cl,unmountComponentAtNode:If,unstable_batchedUpdates:Rf,useDeferredValue:Of,useInsertionEffect:$f,useSyncExternalStore:Hf,useTransition:Bf,version:aw,Component:Rt,Fragment:de,createContext:ht,createElement:m,createRef:gl,useCallback:ce,useContext:je,useDebugValue:gf,useEffect:W,useErrorBoundary:Wg,useId:wf,useImperativeHandle:vl,useLayoutEffect:Rr,useMemo:K,useReducer:To,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),uw=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},x=T,jf=uw;function Sl(e){return{Dispose(){e()}}}function su(e){return x.useState(e)}function Lf(e,t){jf(e,t)}function cw(e){const t=x.useRef(void 0),n=x.useRef(!1),r=x.useRef(!1);n.current&&(r.current=!0),Lf(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=fe(e()),o=r.current?t.current:void 0),{Dispose(){cl(i=>{se(i)},P0(o))}}},[])}function Vf(e,t){jf(n=>(e(),Sl(()=>{})),t)}function lu(e){return x.useRef(e)}function oo(e){return x.useState(e)}function ss(e){}function fw(e){const t=new qc(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function dw(e){e.cancel()}const pw=new qc;function hw(e){return rn(t=>{e({onSuccess:n=>t.onSuccess(nh(n)),onError:n=>t.onSuccess(rh(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function mw(e){return rn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function gw(e){return rn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Ri)})})}function ww(e,t){return yw(e,t)}function Uf(e,t){return ww(e,t)}function yw(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new hl;e({onSuccess:t||ss,onError:n||ss,onCancel:r||ss,cancelToken:o||pw,trampoline:i})}class Vt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function _w(e,t){const n=oo(new Vt(0,[])),r=n[1];let o;const i=lu(fw()),s=lu(i.current);cw(()=>Sl(()=>{dw(i.current)})),o=s;const l=v.Delay(()=>v.TryWith(v.Delay(()=>(r(new Vt(1,[])),v.Bind(e,a=>(r(new Vt(2,[a])),v.Zero())))),a=>(r(new Vt(3,[a])),v.Zero())));return Vf(()=>{Uf(l,o.current)},t),n[0]}class Ge extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class vw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function bw(e,t){t.Subscribe(new vw(e))}class Aw{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class Ew{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 Aw}Elapsed(){return this._elapsed}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 xw(e,t){console.error(fe(e),t)}function Cw(e,t){let n,r=new Ew(e);r.AutoReset=!1,n=r,bw(t,n.Elapsed()),n.Enabled=!0,n.Start()}function au(e,t){yc(n=>{n(e)},t)}function Ye(){return dt()}function io(e){return _c(e)}function Ft(e){return Fe(t=>{t(e)})}function so(e,t,n,r){return Fe(o=>{e(v.Delay(()=>v.Bind(hw(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function hr(e){Cw(0,t=>{Uf(e)})}class Un extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Import","Configuration"]}}class di extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function uu(e){return e.tag===1?"Configuration":e.fields[0].tag===1?"Past Imports":"Profile Import"}class Ns extends te{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class lo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}function Sw(){return[new Ns(new Un(0,[new di(0,[])]),new Vt(0,[])),Ft(new lo(1,[new Ge(0,[void 0])]))]}function Dw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Ns(n.CurrentTab,new Vt(2,[t.fields[0].fields[0]])),Ye()]:[n,so(r=>{hr(r)},e,void 0,r=>new lo(1,[new Ge(1,[r])]))]:[new Ns(t.fields[0],n.AccountImports),Ye()]}class kw{constructor(){}}function Tw(){return new kw}function Dl(e,t){const n=xg(Cg,t);return v.Return(n)}function qt(e,t){return v.Delay(t)}const pt=Tw();class tr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class zf extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class kl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Fo extends te{constructor(t,n,r,o,i,s,l,a){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=l,this.content=a}}class cr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Gf extends te{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Wf(e){return new zf(0,["Content-Type",e])}function Nr(e){return new zf(0,["Authorization",e])}const Nn=new Fo("",new tr(0,[]),dt(),!1,void 0,void 0,void 0,new kl(0,[]));new Gf(0,"","","",fl({Compare:Gn}),new cr(0,[""]));function cu(e,t){return F0(t)?[t]:hc(t,[e],void 0,0)}function Fw(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 Pr(e){return new Fo(e,Nn.method,Nn.headers,Nn.withCredentials,Nn.overridenMimeType,Nn.overridenResponseType,Nn.timeout,Nn.content)}function Or(e,t){return new Fo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Cn(e,t){return new Fo(t.url,t.method,Ti(t.headers,Fe(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zf(e,t){return new Fo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Br(e){return mw(t=>{const n=new XMLHttpRequest;n.open(Fw(e.method),e.url),n.onreadystatechange=()=>{let a,c,u,d,f,p,h;n.readyState===4&&t[0]((a=(c=n.responseType,c===""||c==="text"?n.responseText:""),u=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new cr(0,[n.responseText]):p==="text"?new cr(0,[n.responseText]):p==="arraybuffer"?new cr(2,[n.response]):p==="blob"?new cr(1,[n.response]):new cr(3,[n.response])),h=Fm(V0(y=>{const w=E(cu(":",y));if(!z(w))return[D(w).toLocaleLowerCase(),fn(":",U(w)).trim()]},cu(`\r
21
- `,n.getAllResponseHeaders()),null),{Compare:Gn}),new Gf(u,a,d,n.responseURL,h,f)))};const r=We(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(a.fields[0],a.fields[1])}}finally{se(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const a=o;n.overrideMimeType(a)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const a=s|0;n.timeout=a|0}const l=e.content;switch(l.tag){case 1:{n.send(fe(l.fields[0]));break}case 3:{n.send(fe(l.fields[0]));break}case 2:{n.send(fe(l.fields[0]));break}default:n.send()}})}class Sn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class Iw{constructor(t){this.accessToken=t}}function Mw(e){return new Iw(e)}function Qf(e,t){return qt(pt,()=>{let n,r,o;const i=Br((n=Or(new tr(0,[]),Pr(t)),r=Nr(`Bearer ${e.accessToken}`),Cn(r,n)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Delay(()=>v.Bind(o,s=>{let l,a;const c=s;return c.tag===1?v.Return(new g(1,[c.fields[0]])):v.ReturnFrom((l=c.fields[0],a=l.statusCode|0,a===200?Dl(pt,l.responseText):a===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))))}))})}function Kf(e,t,n){return qt(pt,()=>{let r,o,i,s,l;const a=Br(Zf(new kl(1,[n]),(r=(o=Or(new tr(2,[]),Pr(t)),i=Nr(`Bearer ${e.accessToken}`),Cn(i,o)),s=Wf("application/json"),Cn(s,r))));return l=v.Bind(a,c=>v.Return(new g(0,[c]))),v.Delay(()=>v.Bind(l,c=>{let u;const d=c;return d.tag===1?v.Return(new g(1,[d.fields[0]])):v.ReturnFrom((u=d.fields[0].statusCode|0,u===200?Dl(pt,void 0):u===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))))}))})}function Jf(e,t){return qt(pt,()=>{let n,r,o,i,s;const l=Br((n=(r=Or(new tr(4,[]),Pr(t)),o=Nr(`Bearer ${e.accessToken}`),Cn(o,r)),i=Wf("application/json"),Cn(i,n)));return s=v.Bind(l,a=>v.Return(new g(0,[a]))),v.Delay(()=>v.Bind(s,a=>{let c;const u=a;return u.tag===1?v.Return(new g(1,[u.fields[0]])):v.ReturnFrom((c=u.fields[0].statusCode|0,c===200?Dl(pt,void 0):c===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))))}))})}function $r(e,t){return v.Bind(t,n=>{const r=sl(e,n);return v.Return(r)})}function Xf(e,t){return v.Bind(t,n=>bg(e,r=>v.Return(new g(1,[r])),n))}class Tl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function Rw(){return Xu("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],Tl,()=>[[],[],[]])}class Fl extends te{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function qf(){return mn("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],Fl,()=>[["AdminUserManagementEnabled",qu],["Ownership",Rw()]])}function Nw(){return new Fl(!1,new Tl(2,[]))}function Pw(e){return e}const Yf=He();function Lo(e){return Array.from(e)}function Ow(e){return Ci(e,"O")}function Bw(e){return zh(e)}function $w(){return He()}function Hw(e){return Ci(e,"O")}function ed(e,t){return JSON.stringify(t,oe(2,He()),fe(e))}function jw(e){return t=>O0(B0(e,t),()=>Yf)}function fu(e,t,n,r){let o,i;const s=new rt(He());let l;const a=ee(r);l=jc(a,s,e);let c;if(sc(r)){const u=dn(d=>{const f=bc(t,pr(d)),p=en(l,t,n,d[1]);return h=>y=>{const w=p0(h,d);return(!n||n&&w!=null)&&(y[f]=p(w)),y}},fo(r),null);c=d=>Ii((f,p)=>p(d)(f),{},u)}else if(ic(r))c=u=>{const d=d0(u,r),f=d[0],p=d[1],h=p.length|0;if(h===0)return pr(f);{const y=h|0,w=lc(f),_=Si(new Array(y+1),0,y+1,null);_[0]=pr(f);for(let b=1;b<=y;b++){const F=en(l,t,n,w[b-1][1]);_[b]=F(p[b-1])}return _}};else throw new Error((o=ee(r),i=Yn(gn("Cannot generate auto encoder for %s. Please pass an extra encoder.")),i(o)));return s.contents=c,c}function en(e,t,n,r){const o=ee(r),i=Lc(o,e);if(i==null)if(Yu(r)){const s=en(e,t,n,Ao(r));return l=>Lo(Be(s,l))}else if(qs(r)){const s=ee(nc(r));if(s==="System.SByte")return l=>l;if(s==="System.Byte")return l=>l;if(s==="System.Int16")return l=>l;if(s==="System.UInt16")return l=>l;if(s==="System.Int32")return l=>l;if(s==="System.UInt32")return l=>l;{const l=ee(r);return dc(gn(`Cannot generate auto encoder for %s.
21
+ `))(c);return p=>f(p)}}else if(wl(r))if(qi(r)){const u=sn(c=>Zt(e,t,!1,c),_l(r),null);return c=>d=>Array.isArray(d)?an(f=>d0(Yo(f)),Gc("tuple elements",u,c,d)):new g(1,[[c,new k(0,["an array",d])]])}else{const u=te(yl(r));if(u==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=Zt(e,t,!0,At(r)[0]),c=>d=>Jm(oe(2,o),c,d);if(u==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=Zt(e,t,!1,At(r)[0]),c=>d=>Vc(oe(2,i),c,d);if(u==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const c=Zt(e,t,!1,At(r)[0]),d=Zt(e,t,!1,At(r)[1]);let f;const p=x([h=>y=>sg(oe(2,c),oe(2,d),h,y),(s=ng(oe(2,c),oe(2,d)),h=>y=>Vc(oe(2,s),h,y))]);return f=h=>y=>qm(p,h,y),h=>y=>tg(rg,oe(2,f),h,y)}else if(u==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const c=Zt(e,t,!1,At(r)[0]);return d=>f=>{const p=Uc(oe(2,c),d,f);return p.tag===0?new g(0,[og(p.fields[0])]):new g(1,[p.fields[0]])}}else return Zc(e,t,n,r)}else return a==="System.Boolean"?u=>c=>Wm(u,c):a==="Microsoft.FSharp.Core.Unit"?u=>c=>Gm(u,c):a==="System.String"?u=>c=>Um(u,c):a==="System.SByte"?Oc:a==="System.Byte"?Pc:a==="System.Int16"?Bc:a==="System.UInt16"?$c:a==="System.Int32"?jc:a==="System.UInt32"?Hc:a==="System.Double"?u=>c=>Zm(u,c):a==="System.Single"?u=>c=>Qm(u,c):a==="System.DateTime"?u=>c=>Km(u,c):a==="System.DateTimeOffset"?u=>c=>Xm(u,c):a==="System.TimeSpan"?u=>c=>Ym(u,c):a==="System.Guid"?u=>c=>zm(u,c):a==="System.Object"?u=>c=>new g(0,[c]):Zc(e,t,n,r);else{const u=l;return c=>d=>u.contents(c)(d)}}function ag(e){return e!=null?xc((t,n)=>new Je(n[1]),e.Coders):As({Compare:Nn})}function Gn(e,t,n){const r=Qo(t,new Tt(0,[]));return Zt(ag(n),r,!1,e)}class ii extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function lg(e){return new ii(0,[e])}const cg=new ii(0,["BasicProfile.ImportData"]),ug=new ii(0,["BasicProfile.AccessConfig"]),fg=new ii(0,["BasicProfile.EditConfig"]);function Qc(e){if(ss(cg,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function Kc(e){if(ss(ug,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function Es(e){if(ss(fg,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function dg(e){return Es(e)!=null}class Xc extends ee{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function pg(e){let t;const n=Rl(e==null?"":e,["."],void 0,0);if(!H0((r,o)=>r===o,n,Me())&&n.length===3){const r=n[1],o=atob(r);t=zn(oe(2,Gn(i0(["Name",xt],["Roles",s0(xt)]),new Tt(1,[]),void 0)),o)}else t=new g(1,["Failed to identify the user"]);if(t.tag===1)return new Xc(void 0,it());{const r=t.fields[0];return new Xc(r.Name,x(sn(lg,r.Roles,null)))}}class Yc{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 si extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,si.prototype)}}class ks{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ks.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ln(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new si);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Bo(n))}});else try{e(t)}catch(n){t.onError(Bo(n))}}}function hg(e,t){return ln(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Bo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function mg(e){return ln(t=>t.onSuccess(e))}class gg{Bind(t,n){return hg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ln(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 mg(t)}ReturnFrom(t){return t}TryFinally(t,n){return ln(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 ln(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Bo(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 ln(t=>t.onSuccess(void 0))}}const v=new gg;function wg(e,t,n){return n.tag===1?t(n.fields[0]):e(n.fields[0])}class yg{constructor(){}}function bg(){return new yg}function vg(e,t){return new g(0,[t])}const _g=bg();class Ss extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Ag(e){return new Ss(0,[e.fields[0]+1])}function xg(e,t){return new Ss(0,[Gi(Nn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new Ss(0,[0]);return e=n=>Cn(xg,t,n),n=>Ag(e(n))})();class Cg extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=a,this.StartTime=l}}function Eg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],Cg,()=>[["ImportId",Re],["User",xt],["Filename",xt],["NumberOfRecords",Re],["CompletedSuccessfully",Re],["CompletedFailed",Re],["NextRow",Yi(Re)],["StartTime",Kr("System.DateTime")]])}class kg extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=a,this.StopTime=l}}function Sg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],kg,()=>[["ImportId",Re],["User",xt],["Filename",xt],["NumberOfRecords",Re],["Succeeded",Re],["Failed",Re],["StartTime",Kr("System.DateTime")],["StopTime",Kr("System.DateTime")]])}class Jc extends ee{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function qc(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Jc,()=>[["ActiveImport",Yi(Eg())],["ImportHistory",Go(Sg())]])}new Jc(void 0,it());class Dg extends ee{constructor(t,n){super(),this.Column=t,this.Message=n}}function Fg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],Dg,()=>[["Column",xt],["Message",xt]])}class Tg extends ee{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Ig(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],Tg,()=>[["RowId",Re],["FieldErrors",Go(Fg())]])}class Mg extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function Rg(){return hl("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],Mg,()=>[[],[],[],[["Item",xt]],[],[],[],[["Item",Go(Ig())]],[],[]])}class Ng extends ee{constructor(t,n,r,o,i,s,a,l,u,c){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=a,this.RemainingRecordCount=l|0,this.StartTime=u,this.StopTime=c}}function Og(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],Ng,()=>[["ImportId",Re],["User",xt],["Filename",xt],["TotalRecordCount",Re],["SucceededRecordCount",Re],["FailedRecordCount",Re],["FailedRecords",Go(Bg())],["RemainingRecordCount",Re],["StartTime",Kr("System.DateTime")],["StopTime",Yi(Kr("System.DateTime"))]])}class Pg extends ee{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],Pg,()=>[["RowId",Re],["Reason",xt]])}var uo,E,eu,Wn,tu,nu,Ds,ru,ai={},ou=[],$g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,li=Array.isArray;function cn(e,t){for(var n in t)e[n]=t[n];return e}function iu(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?uo.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 fo(e,s,r,o,null)}function fo(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,__h:null,constructor:void 0,__v:o==null?++eu:o};return o==null&&E.vnode!=null&&E.vnode(i),i}function Fs(){return{current:null}}function fe(e){return e.children}function Rt(e,t){this.props=e,this.context=t}function po(e,t){if(t==null)return e.__?po(e.__,e.__.__k.indexOf(e)+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"?po(e):null}function su(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 su(e)}}function Ts(e){(!e.__d&&(e.__d=!0)&&Wn.push(e)&&!ci.__r++||tu!==E.debounceRendering)&&((tu=E.debounceRendering)||nu)(ci)}function ci(){var e,t,n,r,o,i,s,a;for(Wn.sort(Ds);e=Wn.shift();)e.__d&&(t=Wn.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],(o=cn({},i)).__v=i.__v+1,Is(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?po(i):s,i.__h),hu(r,i),i.__e!=s&&su(i)),Wn.length>t&&Wn.sort(Ds));ci.__r=0}function au(e,t,n,r,o,i,s,a,l,u){var c,d,f,p,h,y,w,b=r&&r.__k||ou,_=b.length;for(n.__k=[],c=0;c<t.length;c++)if((p=n.__k[c]=(p=t[c])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?fo(null,p,null,null,p):li(p)?fo(fe,{children:p},null,null,null):p.__b>0?fo(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[c])===null||f&&p.key==f.key&&p.type===f.type)b[c]=void 0;else for(d=0;d<_;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}Is(e,p,f=f||ai,o,i,s,a,l,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||h,p)),h!=null?(y==null&&(y=h),typeof p.type=="function"&&p.__k===f.__k?p.__d=l=lu(p,l,e):l=cu(e,p,f,b,h,l),typeof n.type=="function"&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=po(f))}for(n.__e=y,c=_;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=uu(r).nextSibling),gu(b[c],b[c]));if(w)for(c=0;c<w.length;c++)mu(w[c],w[++c],w[++c])}function lu(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?lu(r,t,n):cu(n,r,r,o,r.__e,t));return t}function un(e,t){return t=t||[],e==null||typeof e=="boolean"||(li(e)?e.some(function(n){un(n,t)}):t.push(e)),t}function cu(e,t,n,r,o,i){var s,a,l;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function uu(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=uu(n)))return r}return null}function jg(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||ui(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||ui(e,i,t[i],n[i],r)}function fu(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||$g.test(t)?n:n+"px"}function ui(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||fu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?pu:du,i):e.removeEventListener(t,i?pu:du,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function du(e){return this.l[e.type+!1](E.event?E.event(e):e)}function pu(e){return this.l[e.type+!0](E.event?E.event(e):e)}function Is(e,t,n,r,o,i,s,a,l){var u,c,d,f,p,h,y,w,b,_,I,R,B,P,N,M=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=E.__b)&&u(t);try{e:if(typeof M=="function"){if(w=t.props,b=(u=M.contextType)&&r[u.__c],_=u?b?b.props.value:u.__:r,n.__c?y=(c=t.__c=n.__c).__=c.__E:("prototype"in M&&M.prototype.render?t.__c=c=new M(w,_):(t.__c=c=new Rt(w,_),c.constructor=M,c.render=Lg),b&&b.sub(c),c.props=w,c.state||(c.state={}),c.context=_,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=cn({},c.__s)),cn(c.__s,M.getDerivedStateFromProps(w,c.__s))),f=c.props,p=c.state,c.__v=t,d)M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(M.getDerivedStateFromProps==null&&w!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(w,_),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,_)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=w,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ae){ae&&(ae.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(w,c.__s,_),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,h)})}if(c.context=_,c.props=w,c.__P=e,R=E.__r,B=0,"prototype"in M&&M.prototype.render){for(c.state=c.__s,c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[]}else do c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++B<25);c.state=c.__s,c.getChildContext!=null&&(r=cn(cn({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(h=c.getSnapshotBeforeUpdate(f,p)),au(e,li(N=u!=null&&u.type===fe&&u.key==null?u.props.children:u)?N:[N],t,n,r,o,i,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),y&&(c.__E=c.__=null),c.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hg(n.__e,t,n,r,o,i,s,l);(u=E.diffed)&&u(t)}catch(ae){t.__v=null,(l||i!=null)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),E.__e(ae,t,n)}}function hu(e,t){E.__c&&E.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){E.__e(r,n.__v)}})}function Hg(e,t,n,r,o,i,s,a){var l,u,c,d=n.props,f=t.props,p=t.type,h=0;if(p==="svg"&&(o=!0),i!=null){for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,i[h]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,a=!1}if(p===null)d===f||a&&e.data===f||(e.data=f);else{if(i=i&&uo.call(e.childNodes),u=(d=n.props||ai).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!a){if(i!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(jg(e,f,d,o,a),c)t.__k=[];else if(au(e,li(h=t.props.children)?h:[h],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&po(n,0),a),i!=null)for(h=i.length;h--;)i[h]!=null&&iu(i[h]);a||("value"in f&&(h=f.value)!==void 0&&(h!==e.value||p==="progress"&&!h||p==="option"&&h!==d.value)&&ui(e,"value",h,d.value,!1),"checked"in f&&(h=f.checked)!==void 0&&h!==e.checked&&ui(e,"checked",h,d.checked,!1))}return e}function mu(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){E.__e(r,n)}}function gu(e,t,n){var r,o;if(E.unmount&&E.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||mu(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){E.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&gu(r[o],t,n||typeof e.type!="function");n||e.__e==null||iu(e.__e),e.__=e.__e=e.__d=void 0}function Lg(e,t,n){return this.constructor(e,n)}function Dn(e,t,n){var r,o,i;E.__&&E.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],Is(t,e=(!r&&n||t).__k=m(fe,null,[e]),o||ai,ai,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?uo.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),hu(i,e)}function Ms(e,t){Dn(e,t,Ms)}function Rs(e,t,n){var r,o,i,s,a=cn({},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?uo.call(arguments,2):n),fo(e.type,a,r||e.key,o||e.ref,null)}function ut(e,t){var n={__c:t="__cC"+ru++,__: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,Ts(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}uo=ou.slice,E={__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}},eu=0,Rt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=cn({},this.state),typeof e=="function"&&(e=e(cn({},n),this.props)),e&&cn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ts(this))},Rt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ts(this))},Rt.prototype.render=fe,Wn=[],nu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ds=function(e,t){return e.__v.__b-t.__v.__b},ci.__r=0,ru=0;var fn,J,Ns,wu,xr=0,yu=[],fi=[],bu=E.__b,vu=E.__r,_u=E.diffed,Au=E.__c,xu=E.unmount;function Zn(e,t){E.__h&&E.__h(J,e,xr||t),xr=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fi}),n.__[e]}function Ae(e){return xr=1,ho(Su,e)}function ho(e,t,n){var r=Zn(fn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Su(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(f){return f.__c});if(c.every(function(f){return!f.__N}))return!i||i.call(this,a,l,u);var d=!1;return c.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};J.u=!0;var i=J.shouldComponentUpdate,s=J.componentWillUpdate;J.componentWillUpdate=function(a,l,u){if(this.__e){var c=i;i=void 0,o(a,l,u),i=c}s&&s.call(this,a,l,u)},J.shouldComponentUpdate=o}return r.__N||r.__}function W(e,t){var n=Zn(fn++,3);!E.__s&&Bs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Cr(e,t){var n=Zn(fn++,4);!E.__s&&Bs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function L(e){return xr=5,Q(function(){return{current:e}},[])}function Os(e,t,n){xr=6,Cr(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 Q(e,t){var n=Zn(fn++,7);return Bs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return xr=8,Q(function(){return e},t)}function Be(e){var t=J.context[e.__c],n=Zn(fn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function Cu(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Vg(e){var t=Zn(fn++,10),n=Ae();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 Eu(){var e=Zn(fn++,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 Ug(){for(var e;e=yu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(di),e.__H.__h.forEach(Ps),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){J=null,bu&&bu(e)},E.__r=function(e){vu&&vu(e),fn=0;var t=(J=e.__c).__H;t&&(Ns===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=fi,n.__N=n.i=void 0})):(t.__h.forEach(di),t.__h.forEach(Ps),t.__h=[],fn=0)),Ns=J},E.diffed=function(e){_u&&_u(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(yu.push(t)!==1&&wu===E.requestAnimationFrame||((wu=E.requestAnimationFrame)||zg)(Ug)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==fi&&(n.__=n.__V),n.i=void 0,n.__V=fi})),Ns=J=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(di),n.__h=n.__h.filter(function(r){return!r.__||Ps(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],E.__e(r,n.__v)}}),Au&&Au(e,t)},E.unmount=function(e){xu&&xu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{di(r)}catch(o){t=o}}),n.__H=void 0,t&&E.__e(t,n.__v))};var ku=typeof requestAnimationFrame=="function";function zg(e){var t,n=function(){clearTimeout(r),ku&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ku&&(t=requestAnimationFrame(n))}function di(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function Ps(e){var t=J;e.__c=e.__(),J=t}function Bs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Su(e,t){return typeof t=="function"?t(e):t}function Du(e,t){for(var n in t)e[n]=t[n];return e}function $s(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 js(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function pi(e){this.props=e}function Fu(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:$s(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(pi.prototype=new Rt).isPureReactComponent=!0,pi.prototype.shouldComponentUpdate=function(e,t){return $s(this.props,e)||$s(this.state,t)};var Tu=E.__b;E.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tu&&Tu(e)};var Gg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function hi(e){function t(n){var r=Du({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Gg,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Iu=function(e,t){return e==null?null:un(un(e).map(t))},Mu={map:Iu,forEach:Iu,count:function(e){return e?un(e).length:0},only:function(e){var t=un(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:un},Wg=E.__e;E.__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)}Wg(e,t,n,r)};var Ru=E.unmount;function Nu(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=Du({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Nu(r,t,n)})),e}function Ou(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ou(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function mo(){this.__u=0,this.t=null,this.__b=null}function Pu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Bu(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Er(){this.u=null,this.o=null}E.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ru&&Ru(e)},(mo.prototype=new Rt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Pu(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]=Ou(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},mo.prototype.componentWillUnmount=function(){this.t=[]},mo.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]=Nu(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(fe,null,e.fallback);return o&&(o.__h=null),[m(fe,null,t.__a?null:e.children),o]};var $u=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 Zg(e){return this.getChildContext=function(){return e.context},e.children}function Qg(e){var t=this,n=e.i;t.componentWillUnmount=function(){Dn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(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)}}),Dn(m(Zg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Hs(e,t){var n=m(Qg,{__v:e,i:t});return n.containerInfo=t,n}(Er.prototype=new Rt).__a=function(e){var t=this,n=Pu(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),$u(t,e,r)):o()};n?n(i):i()}},Er.prototype.render=function(e){this.u=null,this.o=new Map;var t=un(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},Er.prototype.componentDidUpdate=Er.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){$u(e,n,t)})};var ju=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kg=/^(?: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]/,Xg=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yg=/[A-Z0-9]/g,Jg=typeof document<"u",qg=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Hu(e,t,n){return t.__k==null&&(t.textContent=""),Dn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Lu(e,t,n){return Ms(e,t),typeof n=="function"&&n(),e?e.__c:null}Rt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Rt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vu=E.event;function ew(){}function tw(){return this.cancelBubble}function nw(){return this.defaultPrevented}E.event=function(e){return Vu&&(e=Vu(e)),e.persist=ew,e.isPropagationStopped=tw,e.isDefaultPrevented=nw,e.nativeEvent=e};var Ls,rw={enumerable:!1,configurable:!0,get:function(){return this.class}},Uu=E.vnode;E.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||Jg&&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==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||qg(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Xg.test(i)?i=a:r.indexOf("-")===-1&&Kg.test(i)?i=i.replace(Yg,"-$&").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=un(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=un(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",rw)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ju,Uu&&Uu(e)};var zu=E.__r;E.__r=function(e){zu&&zu(e),Ls=e.__c};var Gu=E.diffed;E.diffed=function(e){Gu&&Gu(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),Ls=null};var Wu={ReactCurrentDispatcher:{current:{readContext:function(e){return Ls.__n[e.__c].props.value}}}},ow="17.0.2";function Zu(e){return m.bind(null,e)}function mi(e){return!!e&&e.$$typeof===ju}function Vs(e){return mi(e)?Rs.apply(null,arguments):e}function Qu(e){return!!e.__k&&(Dn(null,e),!0)}function Ku(e){return e&&(e.base||e.nodeType===1&&e)||null}var Xu=function(e,t){return e(t)},Yu=function(e,t){return e(t)},Ju=fe;function Us(e){e()}function qu(e){return e}function ef(){return[!1,Us]}var tf=Cr;function nf(e,t){var n=t(),r=Ae({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Cr(function(){o.__=n,o.v=t,js(o.__,t())||i({h:o})},[e,n,t]),W(function(){return js(o.__,o.v())||i({h:o}),e(function(){js(o.__,o.v())||i({h:o})})},[e]),n}var F={useState:Ae,useId:Eu,useReducer:ho,useEffect:W,useLayoutEffect:Cr,useInsertionEffect:tf,useTransition:ef,useDeferredValue:qu,useSyncExternalStore:nf,startTransition:Us,useRef:L,useImperativeHandle:Os,useMemo:Q,useCallback:de,useContext:Be,useDebugValue:Cu,version:"17.0.2",Children:Mu,render:Hu,hydrate:Lu,unmountComponentAtNode:Qu,createPortal:Hs,createElement:m,createContext:ut,createFactory:Zu,cloneElement:Vs,createRef:Fs,Fragment:fe,isValidElement:mi,findDOMNode:Ku,Component:Rt,PureComponent:pi,memo:Fu,forwardRef:hi,flushSync:Yu,unstable_batchedUpdates:Xu,StrictMode:Ju,Suspense:mo,SuspenseList:Er,lazy:Bu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wu};const zs=Object.freeze(Object.defineProperty({__proto__:null,Children:Mu,PureComponent:pi,StrictMode:Ju,Suspense:mo,SuspenseList:Er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wu,cloneElement:Vs,createFactory:Zu,createPortal:Hs,default:F,findDOMNode:Ku,flushSync:Yu,forwardRef:hi,hydrate:Lu,isValidElement:mi,lazy:Bu,memo:Fu,render:Hu,startTransition:Us,unmountComponentAtNode:Qu,unstable_batchedUpdates:Xu,useDeferredValue:qu,useInsertionEffect:tf,useSyncExternalStore:nf,useTransition:ef,version:ow,Component:Rt,Fragment:fe,createContext:ut,createElement:m,createRef:Fs,useCallback:de,useContext:Be,useDebugValue:Cu,useEffect:W,useErrorBoundary:Vg,useId:Eu,useImperativeHandle:Os,useLayoutEffect:Cr,useMemo:Q,useReducer:ho,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),iw=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},C=F,rf=iw;function Gs(e){return{Dispose(){e()}}}function of(e){return C.useState(e)}function sf(e,t){rf(e,t)}function sw(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),sf(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ue(e()),o=r.current?t.current:void 0),{Dispose(){bs(i=>{re(i)},M0(o))}}},[])}function af(e,t){rf(n=>(e(),Gs(()=>{})),t)}function lf(e){return C.useRef(e)}function go(e){return C.useState(e)}function Ws(e){}function aw(e){const t=new Yc(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function lw(e){e.cancel()}const cw=new Yc;function uw(e){return ln(t=>{e({onSuccess:n=>t.onSuccess(q0(n)),onError:n=>t.onSuccess(eh(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function fw(e){return ln(t=>e([t.onSuccess,t.onError,t.onCancel]))}function dw(e){return ln(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new si)})})}function pw(e,t){return hw(e,t)}function cf(e,t){return pw(e,t)}function hw(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new ks;e({onSuccess:t||Ws,onError:n||Ws,onCancel:r||Ws,cancelToken:o||cw,trampoline:i})}class Qt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function mw(e,t){const n=go(new Qt(0,[])),r=n[1];let o;const i=lf(aw()),s=lf(i.current);sw(()=>Gs(()=>{lw(i.current)})),o=s;const a=v.Delay(()=>v.TryWith(v.Delay(()=>(r(new Qt(1,[])),v.Bind(e,l=>(r(new Qt(2,[l])),v.Zero())))),l=>(r(new Qt(3,[l])),v.Zero())));return af(()=>{cf(a,o.current)},t),n[0]}class We extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class gw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function ww(e,t){t.Subscribe(new gw(e))}class yw{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class bw{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 yw}Elapsed(){return this._elapsed}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 vw(e,t){console.error(ue(e),t)}function _w(e,t){let n,r=new bw(e);r.AutoReset=!1,n=r,ww(t,n.Elapsed()),n.Enabled=!0,n.Start()}function uf(e,t){Bl(n=>{n(e)},t)}function et(){return it()}function wo(e){return $l(e)}function Nt(e){return Ee(t=>{t(e)})}function yo(e,t,n,r){return Ee(o=>{e(v.Delay(()=>v.Bind(uw(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function kr(e){_w(0,t=>{cf(e)})}class Qn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Import","Configuration"]}}class gi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function ff(e){return e.tag===1?"Configuration":e.fields[0].tag===1?"Past Imports":"Profile Import"}class Zs extends ee{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class bo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}function Aw(){return[new Zs(new Qn(0,[new gi(0,[])]),new Qt(0,[])),Nt(new bo(1,[new We(0,[void 0])]))]}function xw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Zs(n.CurrentTab,new Qt(2,[t.fields[0].fields[0]])),et()]:[n,yo(r=>{kr(r)},e,void 0,r=>new bo(1,[new We(1,[r])]))]:[new Zs(t.fields[0],n.AccountImports),et()]}class Cw{constructor(){}}function Ew(){return new Cw}function Qs(e,t){const n=vg(_g,t);return v.Return(n)}function Kt(e,t){return v.Delay(t)}const ft=Ew();class Kn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class df extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Ks extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class vo extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Sr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class pf extends ee{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 hf(e){return new df(0,["Content-Type",e])}function Dr(e){return new df(0,["Authorization",e])}const Xn=new vo("",new Kn(0,[]),it(),!1,void 0,void 0,void 0,new Ks(0,[]));new pf(0,"","","",As({Compare:Nn}),new Sr(0,[""]));function mf(e,t){return S0(t)?[t]:Rl(t,[e],void 0,0)}function kw(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 Fr(e){return new vo(e,Xn.method,Xn.headers,Xn.withCredentials,Xn.overridenMimeType,Xn.overridenResponseType,Xn.timeout,Xn.content)}function Tr(e,t){return new vo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Fn(e,t){return new vo(t.url,t.method,Jo(t.headers,Ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function gf(e,t){return new vo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ir(e){return fw(t=>{const n=new XMLHttpRequest;n.open(kw(e.method),e.url),n.onreadystatechange=()=>{let l,u,c,d,f,p,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),c=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new Sr(0,[n.responseText]):p==="text"?new Sr(0,[n.responseText]):p==="arraybuffer"?new Sr(2,[n.response]):p==="blob"?new Sr(1,[n.response]):new Sr(3,[n.response])),h=km(j0(y=>{const w=x(mf(":",y));if(!U(w))return[S(w).toLocaleLowerCase(),on(":",z(w)).trim()]},mf(`\r
22
+ `,n.getAllResponseHeaders()),null),{Compare:Nn}),new pf(c,l,d,n.responseURL,h,f)))};const r=Le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{re(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ue(a.fields[0]));break}case 3:{n.send(ue(a.fields[0]));break}case 2:{n.send(ue(a.fields[0]));break}default:n.send()}})}class Tn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class Sw{constructor(t){this.accessToken=t}}function Dw(e){return new Sw(e)}function wf(e,t){return Kt(ft,()=>{let n,r,o;const i=Ir((n=Tr(new Kn(0,[]),Fr(t)),r=Dr(`Bearer ${e.accessToken}`),Fn(r,n)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Delay(()=>v.Bind(o,s=>{let a,l;const u=s;return u.tag===1?v.Return(new g(1,[u.fields[0]])):v.ReturnFrom((a=u.fields[0],l=a.statusCode|0,l===200?Qs(ft,a.responseText):l===403?v.Return(new g(1,[new Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))))}))})}function yf(e,t,n){return Kt(ft,()=>{let r,o,i,s,a;const l=Ir(gf(new Ks(1,[n]),(r=(o=Tr(new Kn(2,[]),Fr(t)),i=Dr(`Bearer ${e.accessToken}`),Fn(i,o)),s=hf("application/json"),Fn(s,r))));return a=v.Bind(l,u=>v.Return(new g(0,[u]))),v.Delay(()=>v.Bind(a,u=>{let c;const d=u;return d.tag===1?v.Return(new g(1,[d.fields[0]])):v.ReturnFrom((c=d.fields[0].statusCode|0,c===200?Qs(ft,void 0):c===403?v.Return(new g(1,[new Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))))}))})}function bf(e,t){return Kt(ft,()=>{let n,r,o,i,s;const a=Ir((n=(r=Tr(new Kn(4,[]),Fr(t)),o=Dr(`Bearer ${e.accessToken}`),Fn(o,r)),i=hf("application/json"),Fn(i,n)));return s=v.Bind(a,l=>v.Return(new g(0,[l]))),v.Delay(()=>v.Bind(s,l=>{let u;const c=l;return c.tag===1?v.Return(new g(1,[c.fields[0]])):v.ReturnFrom((u=c.fields[0].statusCode|0,u===200?Qs(ft,void 0):u===403?v.Return(new g(1,[new Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))))}))})}function Mr(e,t){return v.Bind(t,n=>{const r=as(e,n);return v.Return(r)})}function vf(e,t){return v.Bind(t,n=>wg(e,r=>v.Return(new g(1,[r])),n))}class Xs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function Fw(){return hl("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],Xs,()=>[[],[],[]])}class Ys extends ee{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function _f(){return nn("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],Ys,()=>[["AdminUserManagementEnabled",ml],["Ownership",Fw()]])}function Tw(){return new Ys(!1,new Xs(2,[]))}function Iw(e){return e}const Af=Me();function wi(e){return Array.from(e)}function Mw(e){return Zo(e,"O")}function Rw(e){return Hh(e)}function Nw(){return Me()}function Ow(e){return Zo(e,"O")}function xf(e,t){return JSON.stringify(t,oe(2,Me()),ue(e))}function Pw(e){return t=>R0(N0(e,t),()=>Af)}function Cf(e,t,n,r){let o,i;const s=new Je(Me());let a;const l=te(r);a=_c(l,s,e);let u;if(xl(r)){const c=sn(d=>{const f=Ll(t,dr(d)),p=dn(a,t,n,d[1]);return h=>y=>{const w=u0(h,d);return(!n||n&&w!=null)&&(y[f]=p(w)),y}},Yr(r),null);u=d=>ni((f,p)=>p(d)(f),{},c)}else if(Al(r))u=c=>{const d=c0(c,r),f=d[0],p=d[1],h=p.length|0;if(h===0)return dr(f);{const y=h|0,w=Cl(f),b=Ko(new Array(y+1),0,y+1,null);b[0]=dr(f);for(let _=1;_<=y;_++){const I=dn(a,t,n,w[_-1][1]);b[_]=I(p[_-1])}return b}};else throw new Error((o=te(r),i=jn(rn("Cannot generate auto encoder for %s. Please pass an extra encoder.")),i(o)));return s.contents=u,u}function dn(e,t,n,r){const o=te(r),i=Ac(o,e);if(i==null)if(gl(r)){const s=dn(e,t,n,Xr(r));return a=>wi(Ne(s,a))}else if(Ji(r)){const s=te(bl(r));if(s==="System.SByte")return a=>a;if(s==="System.Byte")return a=>a;if(s==="System.Int16")return a=>a;if(s==="System.UInt16")return a=>a;if(s==="System.Int32")return a=>a;if(s==="System.UInt32")return a=>a;{const a=te(r);return Il(rn(`Cannot generate auto encoder for %s.
22
23
  Thoth.Json.Net only support the folluwing enum types:
23
24
  - sbyte
24
25
  - byte
@@ -27,16 +28,16 @@ Thoth.Json.Net only support the folluwing enum types:
27
28
  - int
28
29
  - uint32
29
30
  If you can't use one of these types, please pass an extra encoder.
30
- `))(l)}}else if(ec(r))if(Ys(r)){const s=dn(l=>en(e,t,n,l),oc(r),null);return l=>Lo(am((a,c)=>s[a](c),l))}else{const s=ee(tc(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const l=new op(()=>jw(en(e,t,n,yt(r)[0])));return a=>a==null?Yf:l.Value(a)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const l=en(e,t,n,yt(r)[0]);return a=>Lo(Be(l,a))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const l=yt(r)[0],a=en(e,t,n,yt(r)[1]);if(ee(l)==="System.String"||ee(l)==="System.Guid")return c=>Ii((u,d)=>{const f=d;return u[f[0]]=a(f[1]),u},{},c);{let c;return c=en(e,t,n,l),d=>Lo(Be(f=>{const p=f;return[c(p[0]),a(p[1])]},d))}}else return fu(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?$w:o==="System.String"?s=>s:o==="System.SByte"?s=>s:o==="System.Byte"?s=>s:o==="System.Int16"?s=>s:o==="System.UInt16"?s=>s:o==="System.Int32"?s=>s:o==="System.UInt32"?s=>s:o==="System.Double"?s=>s:o==="System.Single"?s=>s:o==="System.DateTime"?Hw:o==="System.DateTimeOffset"?Ow:o==="System.TimeSpan"?Bw:o==="System.Guid"?Pw:o==="System.Object"?s=>s:fu(e,t,n,r);else{const s=i;return l=>s.contents(l)}}function Lw(e){return e!=null?Vc((t,n)=>new rt(n[0]),e.Coders):fl({Compare:Gn})}function td(e,t,n,r){const o=oi(t,new Nt(0,[])),i=oi(r,!0);return en(Lw(n),o,i,e)}class Vw extends te{constructor(t){super(),this.AdminUserManagementEnabled=t}}new Vw(!1);class nd extends te{constructor(t){super(),this.AdminUserManagementEnabled=t}}function rd(){return mn("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],nd,()=>[["AdminUserManagementEnabled",qu]])}class Uw{constructor(t,n){this.backendUrl=t,this.httpClient=Mw(n)}}function zw(e,t){return new Uw(e,t)}function Gw(e,t){return $r(n=>Hr(e,"Failed to fetch partner's config",n),Xf(n=>qt(pt,()=>{const r=sl(o=>new Sn(1,[o]),Jn(oe(2,Xn(qf(),new Nt(1,[]),void 0)),n));return v.Return(r)}),Qf(e.httpClient,Il(e,t))))}function Ww(e,t,n){return qt(pt,()=>{const r=ed(0,td(rd(),new Nt(1,[]),void 0,void 0)(n));return $r(o=>Hr(e,"Failed to update partner's config",o),Kf(e.httpClient,Il(e,t),r))})}function Zw(e,t){return $r(n=>Hr(e,"Failed to delete partner's config",n),Jf(e.httpClient,Il(e,t)))}function Qw(e,t,n){return $r(r=>Hr(e,"Failed to fetch account's config",r),Xf(r=>qt(pt,()=>{const o=sl(i=>new Sn(1,[i]),Jn(oe(2,Xn(qf(),new Nt(1,[]),void 0)),r));return v.Return(o)}),Qf(e.httpClient,Ml(e,t,n))))}function Kw(e,t,n,r){return qt(pt,()=>{const o=ed(0,td(rd(),new Nt(1,[]),void 0,void 0)(r));return $r(i=>Hr(e,"Failed to update account's config",i),Kf(e.httpClient,Ml(e,t,n),o))})}function Jw(e,t,n){return $r(r=>Hr(e,"Failed to delete account's config",r),Jf(e.httpClient,Ml(e,t,n)))}function Xw(e,t,n){return n==null?Gw(e,t):Qw(e,t,n)}function qw(e,t,n,r){return n==null?Ww(e,t,r):Kw(e,t,n,r)}function Yw(e,t,n){return n==null?Zw(e,t):Jw(e,t,n)}function Il(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function Ml(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function Hr(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class Rl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function pi(e){return e.tag!==0}class e1 extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reset"]}}class Ht extends te{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function Ps(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;case 1:return Nw()}}class ke extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function t1(){return new ke(2,[new Ge(0,[void 0])])}function n1(){return new ke(4,[new Ge(0,[void 0])])}function r1(){return new ke(5,[new Ge(0,[void 0])])}const o1=[new Ht(new Rl(0,[]),void 0,new Vt(0,[]),void 0),Ft(new ke(1,[]))];function i1(e,t,n,r,o){if(r.tag===0)return[new Ht(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),Ye()];if(r.tag===2)return r.fields[0].tag===1?[new Ht(o.Mode,o.CurrentConfirmationDialog,new Vt(2,[r.fields[0].fields[0]]),o.Error),Ye()]:[new Ht(o.Mode,o.CurrentConfirmationDialog,new Vt(1,[]),o.Error),so(i=>{hr(i)},()=>Xw(n,e,t),void 0,i=>new ke(2,[new Ge(1,[i])]))];if(r.tag===3)return[new Ht(o.Mode,o.CurrentConfirmationDialog,new Vt(2,[new g(0,[new Fl(r.fields[0],Ps(o).Ownership)])]),o.Error),Ye()];if(r.tag===4){if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new Ht(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),Ye()]:[o,Ft(new ke(1,[]))];{const i=new nd(Ps(o).AdminUserManagementEnabled);return[o,so(s=>{hr(s)},()=>qw(n,e,t,i),void 0,s=>new ke(4,[new Ge(1,[s])]))]}}else return r.tag===5?r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new Ht(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),Ye()]:[o,Ft(new ke(1,[]))]:[o,io([Ft(new ke(7,[])),so(i=>{hr(i)},()=>Yw(n,e,t),void 0,i=>new ke(5,[new Ge(1,[i])]))])]:r.tag===6?[new Ht(o.Mode,new e1(0,[]),o.Config,o.Error),Ye()]:r.tag===7?[new Ht(o.Mode,void 0,o.Config,o.Error),Ye()]:r.tag===8?[o,Ft(new ke(1,[]))]:[new Ht(o.Mode,void 0,o.Config,void 0),io([Ft(new ke(0,[new Rl(0,[])])),Ft(t1())])]}const s1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),l1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})),a1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}));function Nl(e,t){return x.createElement(e,H(t))}function u1(e){return Nl(s1,e)}const c1=u1([["className","h-6 w-6 text-red-500"]]),f1=Nl(l1,[]),d1=Nl(a1,[]);var p1=Object.defineProperty,h1=(e,t,n)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ls=(e,t,n)=>(h1(e,typeof t!="symbol"?t+"":t,n),n);class m1{constructor(){ls(this,"current",this.detect()),ls(this,"handoffState","pending"),ls(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"}}let an=new m1,nt=(e,t)=>{an.isServer?W(e,t):Rr(e,t)};function un(e){let t=L(e);return nt(()=>{t.current=e},[e]),t}function Bi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function jr(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Bi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=jr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function $i(){let[e]=Ae(jr);return W(()=>()=>e.dispose(),[e]),e}let Z=function(e){let t=un(e);return T.useCallback((...n)=>t.current(...n),[t])};function Lr(){let[e,t]=Ae(an.isHandoffComplete);return e&&an.isHandoffComplete===!1&&t(!1),W(()=>{e!==!0&&t(!0)},[e]),W(()=>an.handoff(),[]),e}var du;let Rn=(du=T.useId)!=null?du:function(){let e=Lr(),[t,n]=T.useState(e?()=>an.nextId():null);return nt(()=>{t===null&&n(an.nextId())},[t]),t!=null?""+t:void 0};function $e(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$e),r}function od(e){return an.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Os=["[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(",");var $n=(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))($n||{}),id=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(id||{}),g1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(g1||{});function w1(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Os)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var sd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sd||{});function y1(e,t=0){var n;return e===((n=od(e))==null?void 0:n.body)?!1:$e(t,{[0](){return e.matches(Os)},[1](){let r=e;for(;r!==null;){if(r.matches(Os))return!0;r=r.parentElement}return!1}})}var _1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_1||{});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 zn(e){e==null||e.focus({preventScroll:!0})}let v1=["textarea","input"].join(",");function b1(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,v1))!=null?n:!1}function A1(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Jo(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?A1(e):e:w1(e);o.length>0&&s.length>1&&(s=s.filter(p=>!o.includes(p))),r=r!=null?r:i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},u=0,d=s.length,f;do{if(u>=d||u+d<=0)return 0;let p=a+u;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}f=s[p],f==null||f.focus(c),u+=l}while(f!==i.activeElement);return t&6&&b1(f)&&f.select(),2}function pu(e,t,n){let r=un(t);W(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function ld(e,t,n){let r=un(t);W(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function E1(e,t,n=!0){let r=L(!1);W(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,l){if(!r.current||s.defaultPrevented)return;let a=l(s);if(a===null||!a.getRootNode().contains(a))return;let c=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let u of c){if(u===null)continue;let d=u instanceof HTMLElement?u:u.current;if(d!=null&&d.contains(a)||s.composed&&s.composedPath().includes(d))return}return!y1(a,sd.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let i=L(null);pu("mousedown",s=>{var l,a;r.current&&(i.current=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),pu("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),ld("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function hu(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function x1(e,t){let[n,r]=Ae(()=>hu(e));return nt(()=>{r(hu(e))},[e.type,e.as]),nt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let ad=Symbol();function C1(e,t=!0){return Object.assign(e,{[ad]:t})}function mt(...e){let t=L(e);W(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ad]))?void 0:n}function Bs(...e){return e.filter(Boolean).join(" ")}var hi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hi||{}),sn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(sn||{});function Qe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let l=ud(t,e);if(i)return Vo(l,n,r,s);let a=o!=null?o:0;if(a&2){let{static:c=!1,...u}=l;if(c)return Vo(u,n,r,s)}if(a&1){let{unmount:c=!0,...u}=l;return $e(c?0:1,{[0](){return null},[1](){return Vo({...u,hidden:!0,style:{display:"none"}},n,r,s)}})}return Vo(l,n,r,s)}function Vo(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...l}=as(e,["unmount","static"]),a=e.ref!==void 0?{[s]:e.ref}:{},c=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let d=!1,f=[];for(let[p,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&f.push(p);d&&(u["data-headlessui-state"]=f.join(" "))}if(o===de&&Object.keys($s(l)).length>0){if(!Oi(c)||Array.isArray(c)&&c.length>1)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(l).map(h=>` - ${h}`).join(`
31
+ `))(a)}}else if(wl(r))if(qi(r)){const s=sn(a=>dn(e,t,n,a),_l(r),null);return a=>wi(om((l,u)=>s[l](u),a))}else{const s=te(yl(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new tp(()=>Pw(dn(e,t,n,At(r)[0])));return l=>l==null?Af:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=dn(e,t,n,At(r)[0]);return l=>wi(Ne(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=At(r)[0],l=dn(e,t,n,At(r)[1]);if(te(a)==="System.String"||te(a)==="System.Guid")return u=>ni((c,d)=>{const f=d;return c[f[0]]=l(f[1]),c},{},u);{let u;return u=dn(e,t,n,a),d=>wi(Ne(f=>{const p=f;return[u(p[0]),l(p[1])]},d))}}else return Cf(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?Nw:o==="System.String"?s=>s:o==="System.SByte"?s=>s:o==="System.Byte"?s=>s:o==="System.Int16"?s=>s:o==="System.UInt16"?s=>s:o==="System.Int32"?s=>s:o==="System.UInt32"?s=>s:o==="System.Double"?s=>s:o==="System.Single"?s=>s:o==="System.DateTime"?Ow:o==="System.DateTimeOffset"?Mw:o==="System.TimeSpan"?Rw:o==="System.Guid"?Iw:o==="System.Object"?s=>s:Cf(e,t,n,r);else{const s=i;return a=>s.contents(a)}}function Bw(e){return e!=null?xc((t,n)=>new Je(n[0]),e.Coders):As({Compare:Nn})}function Ef(e,t,n,r){const o=Qo(t,new Tt(0,[])),i=Qo(r,!0);return dn(Bw(n),o,i,e)}class $w extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}new $w(!1);class kf extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}function Sf(){return nn("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],kf,()=>[["AdminUserManagementEnabled",ml]])}class jw{constructor(t,n){this.backendUrl=t,this.httpClient=Dw(n)}}function Hw(e,t){return new jw(e,t)}function Lw(e,t){return Mr(n=>Rr(e,"Failed to fetch partner's config",n),vf(n=>Kt(ft,()=>{const r=as(o=>new Tn(1,[o]),zn(oe(2,Gn(_f(),new Tt(1,[]),void 0)),n));return v.Return(r)}),wf(e.httpClient,Js(e,t))))}function Vw(e,t,n){return Kt(ft,()=>{const r=xf(0,Ef(Sf(),new Tt(1,[]),void 0,void 0)(n));return Mr(o=>Rr(e,"Failed to update partner's config",o),yf(e.httpClient,Js(e,t),r))})}function Uw(e,t){return Mr(n=>Rr(e,"Failed to delete partner's config",n),bf(e.httpClient,Js(e,t)))}function zw(e,t,n){return Mr(r=>Rr(e,"Failed to fetch account's config",r),vf(r=>Kt(ft,()=>{const o=as(i=>new Tn(1,[i]),zn(oe(2,Gn(_f(),new Tt(1,[]),void 0)),r));return v.Return(o)}),wf(e.httpClient,qs(e,t,n))))}function Gw(e,t,n,r){return Kt(ft,()=>{const o=xf(0,Ef(Sf(),new Tt(1,[]),void 0,void 0)(r));return Mr(i=>Rr(e,"Failed to update account's config",i),yf(e.httpClient,qs(e,t,n),o))})}function Ww(e,t,n){return Mr(r=>Rr(e,"Failed to delete account's config",r),bf(e.httpClient,qs(e,t,n)))}function Zw(e,t,n){return n==null?Lw(e,t):zw(e,t,n)}function Qw(e,t,n,r){return n==null?Vw(e,t,r):Gw(e,t,n,r)}function Kw(e,t,n){return n==null?Uw(e,t):Ww(e,t,n)}function Js(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function qs(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function Rr(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class ea extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function yi(e){return e.tag!==0}class Xw extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reset"]}}class Xt extends ee{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function ta(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;case 1:return Tw()}}class ke extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function Yw(){return new ke(2,[new We(0,[void 0])])}function Jw(){return new ke(4,[new We(0,[void 0])])}function qw(){return new ke(5,[new We(0,[void 0])])}const e1=[new Xt(new ea(0,[]),void 0,new Qt(0,[]),void 0),Nt(new ke(1,[]))];function t1(e,t,n,r,o){if(r.tag===0)return[new Xt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),et()];if(r.tag===2)return r.fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[r.fields[0].fields[0]]),o.Error),et()]:[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(1,[]),o.Error),yo(i=>{kr(i)},()=>Zw(n,e,t),void 0,i=>new ke(2,[new We(1,[i])]))];if(r.tag===3)return[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[new g(0,[new Ys(r.fields[0],ta(o).Ownership)])]),o.Error),et()];if(r.tag===4){if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Nt(new ke(1,[]))];{const i=new kf(ta(o).AdminUserManagementEnabled);return[o,yo(s=>{kr(s)},()=>Qw(n,e,t,i),void 0,s=>new ke(4,[new We(1,[s])]))]}}else return r.tag===5?r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Nt(new ke(1,[]))]:[o,wo([Nt(new ke(7,[])),yo(i=>{kr(i)},()=>Kw(n,e,t),void 0,i=>new ke(5,[new We(1,[i])]))])]:r.tag===6?[new Xt(o.Mode,new Xw(0,[]),o.Config,o.Error),et()]:r.tag===7?[new Xt(o.Mode,void 0,o.Config,o.Error),et()]:r.tag===8?[o,Nt(new ke(1,[]))]:[new Xt(o.Mode,void 0,o.Config,void 0),wo([Nt(new ke(0,[new ea(0,[])])),Nt(Yw())])]}const n1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),r1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})),o1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}));function na(e,t){return C.createElement(e,$(t))}function i1(e){return na(n1,e)}const s1=i1([["className","h-6 w-6 text-red-500"]]),a1=na(r1,[]),l1=na(o1,[]);var c1=Object.defineProperty,u1=(e,t,n)=>t in e?c1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ra=(e,t,n)=>(u1(e,typeof t!="symbol"?t+"":t,n),n);class f1{constructor(){ra(this,"current",this.detect()),ra(this,"handoffState","pending"),ra(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"}}let pn=new f1,tt=(e,t)=>{pn.isServer?W(e,t):Cr(e,t)};function hn(e){let t=L(e);return tt(()=>{t.current=e},[e]),t}function bi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Nr(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return bi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Nr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function vi(){let[e]=Ae(Nr);return W(()=>()=>e.dispose(),[e]),e}let Z=function(e){let t=hn(e);return F.useCallback((...n)=>t.current(...n),[t])};function Or(){let[e,t]=Ae(pn.isHandoffComplete);return e&&pn.isHandoffComplete===!1&&t(!1),W(()=>{e!==!0&&t(!0)},[e]),W(()=>pn.handoff(),[]),e}var Df;let In=(Df=F.useId)!=null?Df:function(){let e=Or(),[t,n]=F.useState(e?()=>pn.nextId():null);return tt(()=>{t===null&&n(pn.nextId())},[t]),t!=null?""+t:void 0};function $e(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$e),r}function Ff(e){return pn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let oa=["[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(",");var Yn=(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))(Yn||{}),Tf=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tf||{}),d1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(d1||{});function p1(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(oa)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var If=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(If||{});function h1(e,t=0){var n;return e===((n=Ff(e))==null?void 0:n.body)?!1:$e(t,{[0](){return e.matches(oa)},[1](){let r=e;for(;r!==null;){if(r.matches(oa))return!0;r=r.parentElement}return!1}})}var m1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(m1||{});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 Jn(e){e==null||e.focus({preventScroll:!0})}let g1=["textarea","input"].join(",");function w1(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,g1))!=null?n:!1}function y1(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _i(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?y1(e):e:p1(e);o.length>0&&s.length>1&&(s=s.filter(p=>!o.includes(p))),r=r!=null?r:i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,d=s.length,f;do{if(c>=d||c+d<=0)return 0;let p=l+c;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}f=s[p],f==null||f.focus(u),c+=a}while(f!==i.activeElement);return t&6&&w1(f)&&f.select(),2}function Mf(e,t,n){let r=hn(t);W(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Rf(e,t,n){let r=hn(t);W(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function b1(e,t,n=!0){let r=L(!1);W(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l))return;let u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(l)||s.composed&&s.composedPath().includes(d))return}return!h1(l,If.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=L(null);Mf("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),Mf("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),Rf("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Nf(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function v1(e,t){let[n,r]=Ae(()=>Nf(e));return tt(()=>{r(Nf(e))},[e.type,e.as]),tt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Of=Symbol();function _1(e,t=!0){return Object.assign(e,{[Of]:t})}function dt(...e){let t=L(e);W(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Of]))?void 0:n}function ia(...e){return e.filter(Boolean).join(" ")}var Ai=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ai||{}),mn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(mn||{});function Ze({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=Pf(t,e);if(i)return xi(a,n,r,s);let l=o!=null?o:0;if(l&2){let{static:u=!1,...c}=a;if(u)return xi(c,n,r,s)}if(l&1){let{unmount:u=!0,...c}=a;return $e(u?0:1,{[0](){return null},[1](){return xi({...c,hidden:!0,style:{display:"none"}},n,r,s)}})}return xi(a,n,r,s)}function xi(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=aa(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let c={};if(t){let d=!1,f=[];for(let[p,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&f.push(p);d&&(c["data-headlessui-state"]=f.join(" "))}if(o===fe&&Object.keys(sa(a)).length>0){if(!mi(u)||Array.isArray(u)&&u.length>1)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(a).map(h=>` - ${h}`).join(`
31
32
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
32
33
  `)].join(`
33
- `));let d=c.props,f=typeof(d==null?void 0:d.className)=="function"?(...h)=>Bs(d==null?void 0:d.className(...h),l.className):Bs(d==null?void 0:d.className,l.className),p=f?{className:f}:{};return xl(c,Object.assign({},ud(c.props,$s(as(l,["ref"]))),u,a,S1(c.ref,a.ref),p))}return m(o,Object.assign({},as(l,["ref"]),o!==de&&a,o!==de&&u),c)}function S1(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function ud(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let l of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;l(o,...i)}}});return t}function Ke(e){var t;return Object.assign(Pi(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $s(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function as(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function cd(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&D1(n)?!1:r}function D1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function k1(e){var t;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let r of n.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let T1="div";var wo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wo||{});function F1(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!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",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Qe({ourProps:o,theirProps:r,slot:{},defaultTag:T1,name:"Hidden"})}let mi=Ke(F1),Pl=ht(null);Pl.displayName="OpenClosedContext";var ct=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ct||{});function Ol(){return je(Pl)}function I1({value:e,children:t}){return T.createElement(Pl.Provider,{value:e},t)}var gi=(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))(gi||{});function M1(e,t,n){let[r,o]=Ae(n),i=e!==void 0,s=L(i),l=L(!1),a=L(!1);return i&&!s.current&&!l.current?(l.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!a.current&&(a.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,Z(c=>(i||o(c),t==null?void 0:t(c)))]}function Bl(e,t){let n=L([]),r=Z(e);W(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let l=r(t,o);return n.current=t,l}},[r,...t])}function R1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var eo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(eo||{});function N1(){let e=L(0);return ld("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Io(){let e=L(!1);return nt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mo(...e){return K(()=>od(...e),[...e])}function fd(e,t,n,r){let o=un(n);W(()=>{e=e!=null?e:window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function P1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function dd(e){let t=Z(e),n=L(!1);W(()=>(n.current=!1,()=>{n.current=!0,Bi(()=>{n.current&&t()})}),[t])}function pd(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let O1="div";var hd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(hd||{});function B1(e,t){let n=L(null),r=mt(n,t),{initialFocus:o,containers:i,features:s=30,...l}=e;Lr()||(s=1);let a=Mo(n);j1({ownerDocument:a},Boolean(s&16));let c=L1({ownerDocument:a,container:n,initialFocus:o},Boolean(s&2));V1({ownerDocument:a,container:n,containers:i,previousActiveElement:c},Boolean(s&8));let u=N1(),d=Z(y=>{let w=n.current;!w||(_=>_())(()=>{$e(u.current,{[eo.Forwards]:()=>{Jo(w,$n.First,{skipElements:[y.relatedTarget]})},[eo.Backwards]:()=>{Jo(w,$n.Last,{skipElements:[y.relatedTarget]})}})})}),f=$i(),p=L(!1),h={ref:r,onKeyDown(y){y.key=="Tab"&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(y){let w=pd(i);n.current instanceof HTMLElement&&w.add(n.current);let _=y.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(md(w,_)||(p.current?Jo(n.current,$e(u.current,{[eo.Forwards]:()=>$n.Next,[eo.Backwards]:()=>$n.Previous})|$n.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&zn(y.target)))}};return T.createElement(T.Fragment,null,Boolean(s&4)&&T.createElement(mi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:wo.Focusable}),Qe({ourProps:h,theirProps:l,defaultTag:O1,name:"FocusTrap"}),Boolean(s&4)&&T.createElement(mi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:wo.Focusable}))}let $1=Ke(B1),Kr=Object.assign($1,{features:hd}),yn=[];P1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yn[0]!==t.target&&(yn.unshift(t.target),yn=yn.filter(n=>n!=null&&n.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 H1(e=!0){let t=L(yn.slice());return Bl(([n],[r])=>{r===!0&&n===!1&&Bi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=yn.slice())},[e,yn,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function j1({ownerDocument:e},t){let n=H1(t);Bl(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&zn(n())},[t]),dd(()=>{t&&zn(n())})}function L1({ownerDocument:e,container:t,initialFocus:n},r){let o=L(null),i=Io();return Bl(()=>{if(!r)return;let s=t.current;s&&Bi(()=>{if(!i.current)return;let l=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===l){o.current=l;return}}else if(s.contains(l)){o.current=l;return}n!=null&&n.current?zn(n.current):Jo(s,$n.First)===id.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function V1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Io();fd(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let l=pd(n);t.current instanceof HTMLElement&&l.add(t.current);let a=r.current;if(!a)return;let c=s.target;c&&c instanceof HTMLElement?md(l,c)?(r.current=c,zn(c)):(s.preventDefault(),s.stopPropagation(),zn(a)):zn(r.current)},!0)}function md(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let gd=ht(!1);function U1(){return je(gd)}function Hs(e){return T.createElement(gd.Provider,{value:e.force},e.children)}function z1(e){let t=U1(),n=je(wd),r=Mo(e),[o,i]=Ae(()=>{if(!t&&n!==null||an.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return W(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),W(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let G1=de;function W1(e,t){let n=e,r=L(null),o=mt(C1(u=>{r.current=u}),t),i=Mo(r),s=z1(r),[l]=Ae(()=>{var u;return an.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),a=je(js),c=Lr();return nt(()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))},[s,l]),nt(()=>{if(l&&a)return a.register(l)},[a,l]),dd(()=>{var u;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&((u=s.parentElement)==null||u.removeChild(s)))}),c?!s||!l?null:Al(Qe({ourProps:{ref:o},theirProps:n,defaultTag:G1,name:"Portal"}),l):null}let Z1=de,wd=ht(null);function Q1(e,t){let{target:n,...r}=e,o={ref:mt(t)};return T.createElement(wd.Provider,{value:n},Qe({ourProps:o,theirProps:r,defaultTag:Z1,name:"Popover.Group"}))}let js=ht(null);function K1(){let e=je(js),t=L([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=K(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,K(()=>function({children:i}){return T.createElement(js.Provider,{value:o},i)},[o])]}let J1=Ke(W1),X1=Ke(Q1),Ls=Object.assign(J1,{Group:X1}),yd=ht(null);function _d(){let e=je(yd);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,_d),t}return e}function vd(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,K(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let l=s.slice(),a=l.indexOf(i);return a!==-1&&l.splice(a,1),l}))),o=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return T.createElement(yd.Provider,{value:o},n.children)},[t])]}let q1="p";function Y1(e,t){let n=Rn(),{id:r=`headlessui-description-${n}`,...o}=e,i=_d(),s=mt(t);nt(()=>i.register(r),[r,i.register]);let l={ref:s,...i.props,id:r};return Qe({ourProps:l,theirProps:o,slot:i.slot||{},defaultTag:q1,name:i.name||"Description"})}let ey=Ke(Y1),bd=Object.assign(ey,{}),$l=ht(()=>{});$l.displayName="StackContext";var Vs=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Vs||{});function ty(){return je($l)}function ny({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=ty(),s=Z((...l)=>{t==null||t(...l),i(...l)});return nt(()=>{let l=o===void 0||o===!0;return l&&s(0,n,r),()=>{l&&s(1,n,r)}},[s,n,r,o]),T.createElement($l.Provider,{value:s},e)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const oy=typeof Object.is=="function"?Object.is:ry,{useState:iy,useEffect:sy,useLayoutEffect:ly,useDebugValue:ay}=Rs;function uy(e,t,n){const r=t(),[{inst:o},i]=iy({inst:{value:r,getSnapshot:t}});return ly(()=>{o.value=r,o.getSnapshot=t,us(o)&&i({inst:o})},[e,r,t]),sy(()=>(us(o)&&i({inst:o}),e(()=>{us(o)&&i({inst:o})})),[e]),ay(r),r}function us(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!oy(n,r)}catch{return!0}}function cy(e,t,n){return t()}const fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dy=!fy,py=dy?cy:uy,hy="useSyncExternalStore"in Rs?(e=>e.useSyncExternalStore)(Rs):py;function my(e){return hy(e.subscribe,e.getSnapshot,e.getSnapshot)}function gy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(l=>l()))}}}function wy(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function yy(){if(!R1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(s){return r.containers.flatMap(l=>l()).some(l=>l.contains(s))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:a}=new URL(l.href),c=t.querySelector(a);c&&!o(c)&&(i=c)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function _y(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function vy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let jn=gy(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:jr(),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:vy(n)},o=[yy(),wy(),_y()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});jn.subscribe(()=>{let e=jn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&jn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&jn.dispatch("TEARDOWN",n)}});function by(e,t,n){let r=my(jn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return nt(()=>{if(!(!e||!t))return jn.dispatch("PUSH",e,n),()=>jn.dispatch("POP",e,n)},[t,e]),i}let cs=new Map,Jr=new Map;function mu(e,t=!0){nt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let l=(s=Jr.get(r))!=null?s:1;if(l===1?Jr.delete(r):Jr.set(r,l-1),l!==1)return;let a=cs.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,cs.delete(r))}let i=(n=Jr.get(r))!=null?n:0;return Jr.set(r,i+1),i!==0||(cs.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Ay({defaultContainers:e=[],portals:t}={}){let n=L(null),r=Mo(n),o=Z(()=>{var i;let s=[];for(let l of e)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(n.current)||s.some(a=>l.contains(a))||s.push(l));return s});return{resolveContainers:o,contains:Z(i=>o().some(s=>s.contains(i))),mainTreeNodeRef:n,MainTreeNode:K(()=>function(){return T.createElement(mi,{features:wo.Hidden,ref:n})},[n])}}var Ey=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ey||{}),xy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(xy||{});let Cy={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},wi=ht(null);wi.displayName="DialogContext";function Ro(e){let t=je(wi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ro),n}return t}function Sy(e,t,n=()=>[document.body]){by(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Dy(e,t){return $e(t.type,Cy,e,t)}let ky="div",Ty=hi.RenderStrategy|hi.Static;function Fy(e,t){var n;let r=Rn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:l,__demoMode:a=!1,...c}=e,[u,d]=Ae(0),f=Ol();i===void 0&&f!==null&&(i=(f&ct.Open)===ct.Open);let p=L(null),h=mt(p,t),y=Mo(p),w=e.hasOwnProperty("open")||f!==null,_=e.hasOwnProperty("onClose");if(!w&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let b=i?0:1,[F,R]=To(Dy,{titleId:null,descriptionId:null,panelRef:gl()}),B=Z(()=>s(!1)),P=Z(he=>R({type:0,id:he})),N=Lr()?a?!1:b===0:!1,M=u>1,ne=je(wi)!==null,[Ee,Le]=K1(),{resolveContainers:Je,mainTreeNodeRef:xe,MainTreeNode:_e}=Ay({portals:Ee,defaultContainers:[(n=F.panelRef.current)!=null?n:p.current]}),pe=M?"parent":"leaf",nr=f!==null?(f&ct.Closing)===ct.Closing:!1,rr=(()=>ne||nr?!1:N)(),Bt=ce(()=>{var he,Xe;return(Xe=Array.from((he=y==null?void 0:y.querySelectorAll("body > *"))!=null?he:[]).find(Ce=>Ce.id==="headlessui-portal-root"?!1:Ce.contains(xe.current)&&Ce instanceof HTMLElement))!=null?Xe:null},[xe]);mu(Bt,rr);let ve=(()=>M?!0:N)(),zr=ce(()=>{var he,Xe;return(Xe=Array.from((he=y==null?void 0:y.querySelectorAll("[data-headlessui-portal]"))!=null?he:[]).find(Ce=>Ce.contains(xe.current)&&Ce instanceof HTMLElement))!=null?Xe:null},[xe]);mu(zr,ve);let ot=(()=>!(!N||M))();E1(Je,B,ot);let or=(()=>!(M||b!==0))();fd(y==null?void 0:y.defaultView,"keydown",he=>{or&&(he.defaultPrevented||he.key===gi.Escape&&(he.preventDefault(),he.stopPropagation(),B()))});let Po=(()=>!(nr||b!==0||ne))();Sy(y,Po,Je),W(()=>{if(b!==0||!p.current)return;let he=new ResizeObserver(Xe=>{for(let Ce of Xe){let Ct=Ce.target.getBoundingClientRect();Ct.x===0&&Ct.y===0&&Ct.width===0&&Ct.height===0&&B()}});return he.observe(p.current),()=>he.disconnect()},[b,p,B]);let[wn,Oo]=vd(),Yt=K(()=>[{dialogState:b,close:B,setTitleId:P},F],[b,F,B,P]),Gr=K(()=>({open:b===0}),[b]),Bo={ref:h,id:o,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":F.titleId,"aria-describedby":wn};return T.createElement(ny,{type:"Dialog",enabled:b===0,element:p,onUpdate:Z((he,Xe)=>{Xe==="Dialog"&&$e(he,{[Vs.Add]:()=>d(Ce=>Ce+1),[Vs.Remove]:()=>d(Ce=>Ce-1)})})},T.createElement(Hs,{force:!0},T.createElement(Ls,null,T.createElement(wi.Provider,{value:Yt},T.createElement(Ls.Group,{target:p},T.createElement(Hs,{force:!1},T.createElement(Oo,{slot:Gr,name:"Dialog.Description"},T.createElement(Kr,{initialFocus:l,containers:Je,features:N?$e(pe,{parent:Kr.features.RestoreFocus,leaf:Kr.features.All&~Kr.features.FocusLock}):Kr.features.None},T.createElement(Le,null,Qe({ourProps:Bo,theirProps:c,slot:Gr,defaultTag:ky,features:Ty,visible:b===0,name:"Dialog"}))))))))),T.createElement(_e,null))}let Iy="div";function My(e,t){let n=Rn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Ro("Dialog.Overlay"),l=mt(t),a=Z(u=>{if(u.target===u.currentTarget){if(cd(u.currentTarget))return u.preventDefault();u.preventDefault(),u.stopPropagation(),s()}}),c=K(()=>({open:i===0}),[i]);return Qe({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:a},theirProps:o,slot:c,defaultTag:Iy,name:"Dialog.Overlay"})}let Ry="div";function Ny(e,t){let n=Rn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Ro("Dialog.Backdrop"),l=mt(t);W(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let a=K(()=>({open:i===0}),[i]);return T.createElement(Hs,{force:!0},T.createElement(Ls,null,Qe({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:Ry,name:"Dialog.Backdrop"})))}let Py="div";function Oy(e,t){let n=Rn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Ro("Dialog.Panel"),l=mt(t,s.panelRef),a=K(()=>({open:i===0}),[i]),c=Z(u=>{u.stopPropagation()});return Qe({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:a,defaultTag:Py,name:"Dialog.Panel"})}let By="h2";function $y(e,t){let n=Rn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Ro("Dialog.Title"),l=mt(t);W(()=>(s(r),()=>s(null)),[r,s]);let a=K(()=>({open:i===0}),[i]);return Qe({ourProps:{ref:l,id:r},theirProps:o,slot:a,defaultTag:By,name:"Dialog.Title"})}let Hy=Ke(Fy),jy=Ke(Ny),Ly=Ke(Oy),Vy=Ke(My),Uy=Ke($y),Hl=Object.assign(Hy,{Backdrop:jy,Panel:Ly,Overlay:Vy,Title:Uy,Description:bd});function zy(e=0){let[t,n]=Ae(e),r=Io(),o=ce(a=>{r.current&&n(c=>c|a)},[t,r]),i=ce(a=>Boolean(t&a),[t]),s=ce(a=>{r.current&&n(c=>c&~a)},[n,r]),l=ce(a=>{r.current&&n(c=>c^a)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:l}}let Ad=ht(null);function Ed(){let e=je(Ad);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ed),t}return e}function Gy(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,K(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let l=s.slice(),a=l.indexOf(i);return a!==-1&&l.splice(a,1),l}))),o=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return T.createElement(Ad.Provider,{value:o},n.children)},[t])]}let Wy="label";function Zy(e,t){let n=Rn(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Ed(),l=mt(t);nt(()=>s.register(r),[r,s.register]);let a={ref:l,...s.props,id:r};return o&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in i&&delete i.onClick),Qe({ourProps:a,theirProps:i,slot:s.slot||{},defaultTag:Wy,name:s.name||"Label"})}let Qy=Ke(Zy),Ky=Object.assign(Qy,{}),jl=ht(null);jl.displayName="GroupContext";let Jy=de;function Xy(e){var t;let[n,r]=Ae(null),[o,i]=Gy(),[s,l]=vd(),a=K(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),c={},u=e;return T.createElement(l,{name:"Switch.Description"},T.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=a.switch)==null?void 0:t.id,onClick(d){n&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},T.createElement(jl.Provider,{value:a},Qe({ourProps:c,theirProps:u,defaultTag:Jy,name:"Switch.Group"}))))}let qy="button";function Yy(e,t){let n=Rn(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:l,value:a,form:c,...u}=e,d=je(jl),f=L(null),p=mt(f,t,d===null?null:d.setSwitch),[h,y]=M1(o,s,i),w=Z(()=>y==null?void 0:y(!h)),_=Z(N=>{if(cd(N.currentTarget))return N.preventDefault();N.preventDefault(),w()}),b=Z(N=>{N.key===gi.Space?(N.preventDefault(),w()):N.key===gi.Enter&&k1(N.currentTarget)}),F=Z(N=>N.preventDefault()),R=K(()=>({checked:h}),[h]),B={id:r,ref:p,role:"switch",type:x1(e,f),tabIndex:0,"aria-checked":h,"aria-labelledby":d==null?void 0:d.labelledby,"aria-describedby":d==null?void 0:d.describedby,onClick:_,onKeyUp:b,onKeyPress:F},P=$i();return W(()=>{var N;let M=(N=f.current)==null?void 0:N.closest("form");M&&i!==void 0&&P.addEventListener(M,"reset",()=>{y(i)})},[f,y]),T.createElement(T.Fragment,null,l!=null&&h&&T.createElement(mi,{features:wo.Hidden,...$s({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:c,checked:h,name:l,value:a})}),Qe({ourProps:B,theirProps:u,slot:R,defaultTag:qy,name:"Switch"}))}let e_=Ke(Yy),t_=Xy,Ll=Object.assign(e_,{Group:t_,Label:Ky,Description:bd});function n_(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function fs(e,...t){e&&t.length>0&&e.classList.add(...t)}function ds(e,...t){e&&t.length>0&&e.classList.remove(...t)}function r_(e,t){let n=jr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),l=i+s;if(l!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},l),c.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let a=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),a())})}else t();return n.add(()=>t()),n.dispose}function o_(e,t,n,r){let o=n?"enter":"leave",i=jr(),s=r!==void 0?n_(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=$e(o,{enter:()=>t.enter,leave:()=>t.leave}),a=$e(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=$e(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ds(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),fs(e,...l,...c),i.nextFrame(()=>{ds(e,...c),fs(e,...a),r_(e,()=>(ds(e,...l),fs(e,...t.entered),s()))}),i.dispose}function i_({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Io(),s=$i(),l=un(t);nt(()=>{let a=jr();s.add(a.dispose);let c=e.current;if(c&&l.current!=="idle"&&i.current)return a.dispose(),r.current(l.current),a.add(o_(c,n.current,l.current==="enter",()=>{a.dispose(),o.current(l.current)})),a.dispose},[t])}function Pn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Hi=ht(null);Hi.displayName="TransitionContext";var s_=(e=>(e.Visible="visible",e.Hidden="hidden",e))(s_||{});function l_(){let e=je(Hi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function a_(){let e=je(ji);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ji=ht(null);ji.displayName="NestingContext";function Li(e){return"children"in e?Li(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function xd(e,t){let n=un(e),r=L([]),o=Io(),i=$i(),s=Z((p,h=sn.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&($e(h,{[sn.Unmount](){r.current.splice(y,1)},[sn.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var w;!Li(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),l=Z(p=>{let h=r.current.find(({el:y})=>y===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>s(p,sn.Unmount)}),a=L([]),c=L(Promise.resolve()),u=L({enter:[],leave:[],idle:[]}),d=Z((p,h,y)=>{a.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{a.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(u.current[h].map(([_,b])=>b)).then(()=>w())})]),h==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(h)):y(h)}),f=Z((p,h,y)=>{Promise.all(u.current[h].splice(0).map(([w,_])=>_)).then(()=>{var w;(w=a.current.shift())==null||w()}).then(()=>y(h))});return K(()=>({children:r,register:l,unregister:s,onStart:d,onStop:f,wait:c,chains:u}),[l,s,r,d,f,u,c])}function u_(){}let c_=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gu(e){var t;let n={};for(let r of c_)n[r]=(t=e[r])!=null?t:u_;return n}function f_(e){let t=L(gu(e));return W(()=>{t.current=gu(e)},[e]),t}let d_="div",Cd=hi.RenderStrategy;function p_(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:l,enterTo:a,entered:c,leave:u,leaveFrom:d,leaveTo:f,...p}=e,h=L(null),y=mt(h,t),w=p.unmount?sn.Unmount:sn.Hidden,{show:_,appear:b,initial:F}=l_(),[R,B]=Ae(_?"visible":"hidden"),P=a_(),{register:N,unregister:M}=P,ne=L(null);W(()=>N(h),[N,h]),W(()=>{if(w===sn.Hidden&&h.current){if(_&&R!=="visible"){B("visible");return}return $e(R,{hidden:()=>M(h),visible:()=>N(h)})}},[R,h,N,M,_,w]);let Ee=un({enter:Pn(s),enterFrom:Pn(l),enterTo:Pn(a),entered:Pn(c),leave:Pn(u),leaveFrom:Pn(d),leaveTo:Pn(f)}),Le=f_({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),Je=Lr();W(()=>{if(Je&&R==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,R,Je]);let xe=F&&!b,_e=(()=>!Je||xe||ne.current===_?"idle":_?"enter":"leave")(),pe=zy(0),nr=Z(ot=>$e(ot,{enter:()=>{pe.addFlag(ct.Opening),Le.current.beforeEnter()},leave:()=>{pe.addFlag(ct.Closing),Le.current.beforeLeave()},idle:()=>{}})),rr=Z(ot=>$e(ot,{enter:()=>{pe.removeFlag(ct.Opening),Le.current.afterEnter()},leave:()=>{pe.removeFlag(ct.Closing),Le.current.afterLeave()},idle:()=>{}})),Bt=xd(()=>{B("hidden"),M(h)},P);i_({container:h,classes:Ee,direction:_e,onStart:un(ot=>{Bt.onStart(h,ot,nr)}),onStop:un(ot=>{Bt.onStop(h,ot,rr),ot==="leave"&&!Li(Bt)&&(B("hidden"),M(h))})}),W(()=>{xe&&(w===sn.Hidden?ne.current=null:ne.current=_)},[_,xe,R]);let ve=p,zr={ref:y};return b&&_&&F&&(ve={...ve,className:Bs(p.className,...Ee.current.enter,...Ee.current.enterFrom)}),T.createElement(ji.Provider,{value:Bt},T.createElement(I1,{value:$e(R,{visible:ct.Open,hidden:ct.Closed})|pe.flags},Qe({ourProps:zr,theirProps:ve,defaultTag:d_,features:Cd,visible:R==="visible",name:"Transition.Child"})))}function h_(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=L(null),l=mt(s,t);Lr();let a=Ol();if(n===void 0&&a!==null&&(n=(a&ct.Open)===ct.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Ae(n?"visible":"hidden"),d=xd(()=>{u("hidden")}),[f,p]=Ae(!0),h=L([n]);nt(()=>{f!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let y=K(()=>({show:n,appear:r,initial:f}),[n,r,f]);W(()=>{if(n)u("visible");else if(!Li(d))u("hidden");else{let F=s.current;if(!F)return;let R=F.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&u("hidden")}},[n,d]);let w={unmount:o},_=Z(()=>{var F;f&&p(!1),(F=e.beforeEnter)==null||F.call(e)}),b=Z(()=>{var F;f&&p(!1),(F=e.beforeLeave)==null||F.call(e)});return T.createElement(ji.Provider,{value:d},T.createElement(Hi.Provider,{value:y},Qe({ourProps:{...w,as:de,children:T.createElement(Sd,{ref:l,...w,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:de,features:Cd,visible:c==="visible",name:"Transition"})))}function m_(e,t){let n=je(Hi)!==null,r=Ol()!==null;return T.createElement(T.Fragment,null,!n&&r?T.createElement(Us,{ref:t,...e}):T.createElement(Sd,{ref:t,...e}))}let Us=Ke(h_),Sd=Ke(p_),g_=Ke(m_),Dd=Object.assign(Us,{Child:g_,Root:Us});class Uo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function w_(e){const t=Mn(e,1);return m(Ll,t)}class wu extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function y_(e){const t=Mn(e,1);return m(Ll.Label,t)}class __ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Children"]}}function v_(e){const t=Mn(e,1);return m(Ll.Group,t)}class ps extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function b_(e){const t=Mn(e,1);return m(Dd.Root,t)}class Me extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function yu(e){const t=Mn(e,1);return m(Dd.Child,t)}class Xr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function A_(e){const t=Mn(e,1);return m(Hl,t)}class hs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function E_(e){const t=Mn(e,1);return m(Hl.Panel,t)}class zo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function x_(e){const t=Mn(e,1);return m(Hl.Title,t)}class C_ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class S_ extends te{constructor(t,n,r,o,i,s,l,a,c){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=l,this.cancelButtonText=a,this.cancelButtonClick=c}}function D_(e){let t,n,r,o;return b_(E([new ps(0,["1"]),new ps(2,[e.show]),new ps(3,[[A_(E([new Xr(1,["1"]),new Xr(0,["div"]),new Xr(2,["relative z-10"]),new Xr(4,[e.cancelButtonClick]),new Xr(5,[[yu(E([new Me(0,["1"]),new Me(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new Me(4,["ease-out duration-300"]),new Me(5,["opacity-0"]),new Me(6,["opacity-100"]),new Me(7,["ease-in duration-200"]),new Me(8,["opacity-100"]),new Me(9,["opacity-0"])])),m("div",H(E([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[m("div",H(E([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[yu(E([new Me(0,["1"]),new Me(4,["ease-out duration-300"]),new Me(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Me(6,["opacity-100 translate-y-0 sm:scale-100"]),new Me(7,["ease-in duration-200"]),new Me(8,["opacity-100 translate-y-0 sm:scale-100"]),new Me(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Me(10,[[E_(E([new hs(0,["1"]),new hs(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new hs(2,[[m("div",H(E([["key","1"],["className","sm:flex sm:items-start"],(r=Et($(()=>{let i,s;return ge((i=e.dialogIcon,i==null?ul():(s=i,O(m("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:x.Children.toArray([s])})))),$(()=>{let l,a;return O(m("div",H(E([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[x_(E([new zo(1,["1"]),new zo(0,["h3"]),new zo(2,["text-lg font-medium leading-6 text-gray-900"]),new zo(3,[[m("span",{children:e.title,key:"1"})]])])),m("div",H(E([["className","mt-2"],["key","2"],(a=[m("p",{className:"text-sm text-gray-500",children:e.message})],["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(l))])]))))}))})),["children",x.Children.toArray(Array.from(r))])]))),m("div",H(E([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Et($(()=>ge(O(m("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),$(()=>O(m("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:i=>{e.cancelButtonClick()},children:e.cancelButtonText})))))),["children",x.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))]])]))]])]))}function k_(e,t,n,r){const o=Gt(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const l=Gt(s,t)|0;return i&&l<=0||!i&&l>=0?[s,r(s,e)]:void 0}}function T_(e,t,n,r,o){const i=k_(t,n,r,o);return $(()=>im(i,e))}function F_(e,t,n){return T_(e,t,n,0,(r,o)=>r+o)}class mr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class I_{constructor(t){this.state=new mr(0,[Si(new Array(_s(Gn,t,10)),0,_s(Gn,t,10),null),0])}}function M_(e){return new I_(e)}function R_(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 mr(0,[o,n]):e.state=new mr(1,[o,n,i]),fe(o[r])}else return}function N_(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];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new mr(1,[P_(e,o,i),i.length,0]):e.state=new mr(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new mr(1,[o,i,r])}}function P_(e,t,n){return Array.from($(()=>ge(um(t,n),$(()=>ge(cm(t,n),$(()=>Rc(r=>O(He()),F_(0,1,n.length))))))))}class kd extends te{constructor(t,n,r,o,i,s,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.syncDispatch=l}}function Td(e,t,n){return new kd(e,t,r=>Ye(),n,oe(2,r=>{const o=Cr(1,n,[r]);return i=>{o(i)}}),r=>{xw(r[0],r[1])},oe(2,r=>r))}function O_(e,t){return new kd(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function B_(e,t){const n=t.init(e),r=n[0],o=M_(10);let i=!1,s=r;const l=c=>{let u;if(i)N_(o,c);else{i=!0;let d=fe(c);for(;d!=null;){const f=ie(d);try{const p=t.update(f,s),h=p[0];t.setState(h,a),au(a,p[1]),s=h}catch(p){t.onError([(u=Yn(gn("Unable to process the message: %A")),u(f)),p])}d=R_(o)}i=!1}},a=Cr(1,t.syncDispatch,[l]);t.setState(r,a),au(a,Ti((()=>{try{return t.subscribe(r)}catch(c){return t.onError(["Unable to subscribe:",c]),Ye()}})(),n[1]))}class $_{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function H_(){return new $_}function j_(e){return e.state}function L_(e){return e.hasDisposedOnce}function V_(e,t,n){e.state=fe(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function U_(e,t){const n=e.dispatcher;n!=null&&n(t)}function z_(e,t){e.listener==null&&(e.listener=t)}function G_(e){const t=e.state;if(t!=null){const n=ie(t);ju(n)&&se(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function _u(e,t,n,r){B_(t,O_((i,s)=>{V_(n,i,s)},e()));const o=j_(n);if(o!=null)return ie(o);throw new Error("Elmish program has not initialized")}function W_(e,t,n){const r=su(H_)[0],o=su(()=>_u(e,t,r)),i=o[1];return Lf(()=>(L_(r)&&i(_u(e,t,r)),Sl(()=>{G_(r)})),oi(n,[])),z_(r,i),[o[0],s=>{U_(r,s)}]}function Fd(e,t){return W_(e,void 0,t)}function Z_(e,t,n){return Fd(()=>Td(e,t,(r,o)=>{}),n)}function Id(e,t,n){return Fd(()=>Td(()=>e,t,(r,o)=>{}),n)}class Q_ extends te{constructor(t,n,r,o){super(),this.PartnerId=t,this.AccountId=n,this.ConfigService=r,this.EditAllowed=o}}function K_(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function J_(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return m("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});case 1:return He()}}function X_(e,t){return m("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${K_(e)}`})}function q_(e,t,n){let r;const o=e.EditAllowed&&!pi(t.Mode),i=o?"":"hidden",s=pi(t.Mode)?"":"hidden",l=o&&tt(Ps(t).Ownership,new Tl(0,[]))?"":"hidden";return m("div",H(E([["className","flex flex-row space-x-2 basis-3/4"],(r=[m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:a=>{n(n1())},type:"button",children:"Save"}),m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:a=>{n(new ke(8,[]))},type:"button",children:"Cancel"}),m("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:a=>{n(new ke(0,[new Rl(1,[])]))},type:"button",children:x.Children.toArray([f1])}),m("button",{className:`${l} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:a=>{n(new ke(6,[]))},type:"button",children:x.Children.toArray([d1])})],["children",x.Children.toArray(Array.from(r))])])))}function Y_(e,t,n,r){return v_(Fe(new __(0,[[w_(E([new Uo(0,[e]),new Uo(1,[o=>{n&&r(o)}]),new Uo(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Uo(3,[[m("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),y_(E([new wu(0,["ml-3"]),new wu(1,[[m("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))]])))}function ev(e,t){return e.CurrentConfirmationDialog==null?He():D_(new S_(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",c1,"Reset",()=>{t(r1())},new C_(1,[]),"Cancel",()=>{t(new ke(7,[]))}))}function tv(e){let t,n,r;const o=Id(o1,(c,u)=>i1(e.PartnerId,e.AccountId,e.ConfigService,c,u)),i=o[0],s=o[1],l=e.EditAllowed&&pi(i.Mode),a=i.Config;switch(a.tag){case 1:return m("div",{children:["Please wait"]});case 3:return m("div",{children:["Something went wrong. Please try again"]});case 2:{const c=a.fields[0];if(c.tag===0){const u=c.fields[0];return m("div",H(E([["className","flex flex-col mt-5 w-full "],(t=[m("div",H(E([["className","flex flex-row"],(n=[X_(u,pi(i.Mode)),q_(e,i,s)],["children",x.Children.toArray(Array.from(n))])]))),m("div",H(E([["className","mt-5"],(r=[Y_(u.AdminUserManagementEnabled,"User Management",l,d=>{s(new ke(3,[d]))})],["children",x.Children.toArray(Array.from(r))])]))),J_(i),ev(i,s)],["children",x.Children.toArray(Array.from(t))])])))}else return m("div",{children:[`${c.fields[0]}`]})}default:return m("div",{children:["Please wait"]})}}const nv=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.5rem}.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;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))}.translate-x-5{--tw-translate-x: 1.25rem;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))}.translate-y-0{--tw-translate-y: 0px;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))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.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}.align-middle{vertical-align:middle}.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-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.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)}.ring-0{--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(0px + 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}.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}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.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))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
34
- `,ms=(()=>Ze(nv))();function vu(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return m("div",H(E([["className","border-b border-gray-200"],(t=[m("nav",H(E([["className","-mb-px flex space-x-8"],(n=Et($(()=>Be(s=>m("a",{key:uu(s),className:fn(" ",Et($(()=>ge(tt(o,s)?O("border-indigo-500 text-indigo-600"):O("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),$(()=>O("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:l=>{r(s)},children:uu(s)}),i))),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}class bu extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class rv{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function ov(e,t,n){return new rv(e,t,n)}function Md(e,t){return qt(pt,()=>{let n,r,o,i;const s=Br((n=Or(new tr(0,[]),Pr(`${e.baseUrl}/${t}`)),r=Nr((o=Yn(gn("Bearer %s")),o(e.accessToken))),Cn(r,n)));return i=v.Bind(s,l=>v.Return(new g(0,[l]))),v.Delay(()=>v.Bind(i,l=>{let a,c;const u=l;return u.tag===1?v.Return(new g(1,[u.fields[0]])):v.ReturnFrom((a=u.fields[0],a.statusCode===200?(c=Jn(oe(2,Xn(Hg(),new Nt(1,[]),void 0)),a.responseText),v.Return(c)):v.Return(new g(1,["Failed to fetch import"]))))}))})}function iv(e){return qt(pt,()=>{let t,n,r,o;const i=Br((t=Or(new tr(0,[]),Pr(e.baseUrl)),n=Nr((r=Yn(gn("Bearer %s")),r(e.accessToken))),Cn(n,t)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Delay(()=>v.Bind(o,s=>{let l,a;const c=s;return c.tag===1?v.Return(new g(1,[c.fields[0]])):v.ReturnFrom((l=c.fields[0],l.statusCode===200?(a=Jn(oe(2,Xn(ef(),new Nt(1,[]),void 0)),l.responseText),v.Return(a)):v.Return(new g(1,["Failed to fetch account imports"]))))}))})}function sv(e,t){return qt(pt,()=>{let n,r,o,i;const s=Br((n=Zf(new kl(3,[t]),Or(new tr(1,[]),Pr(e.baseUrl))),r=Nr((o=Yn(gn("Bearer %s")),o(e.accessToken))),Cn(r,n)));return i=v.Bind(s,l=>v.Return(new g(0,[l]))),v.Delay(()=>v.Bind(i,l=>{let a,c,u,d,f,p;const h=l;return h.tag===1?v.Return(new g(1,[h.fields[0]])):v.ReturnFrom((a=h.fields[0],c=a.statusCode|0,c===200?(u=(d=Jn(oe(2,Xn(ef(),new Nt(1,[]),void 0)),a.responseText),v.Return(d)),v.Bind(u,y=>{const w=pn(_=>new bu(0,[_]),y);return v.Return(w)})):c===400?(f=(p=Jn(oe(2,Xn(Bg(),new Nt(1,[]),void 0)),a.responseText),v.Return(p)),v.Bind(f,y=>{const w=pn(_=>new bu(1,[_]),y);return v.Return(w)})):v.Return(new g(1,["Failed to create account import"]))))}))})}function yo(e){let t;return m("div",H(E([["className","text-center"],(t=[m("p",{children:["Oops, something went wrong."]}),m("p",{children:[`Error: ${e}.`]}),m("p",{children:["Please refresh the page and try again."]}),m("button",{className:"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",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",x.Children.toArray(Array.from(t))])])))}function Rd(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=_w(r(o),[]);let s,l,a,c;switch(i.tag===1?s=0:i.tag===3?(s=1,l=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,c=i.fields[0].fields[0]):(s=2,a=i.fields[0].fields[0]):s=0,s){case 0:return He();case 1:return yo(l.message);case 2:return yo(a);case 3:return m("div",H(E([["className","text-center"],(t=Et($(()=>ge(O(m("p",{children:[`Import ID: ${c.ImportId}`]})),$(()=>ge(O(m("p",{children:[`Creator: ${c.User}`]})),$(()=>ge(O(m("p",{children:[`Filename: ${c.Filename}`]})),$(()=>ge(O(m("p",{children:[`Date started: ${Ze(c.StartTime)}`]})),$(()=>{let u;return ge((u=c.StopTime,u==null?O(He()):O(m("p",{children:[`Date completed: ${Ze(u)}`]}))),$(()=>ge(O(m("p",{children:[`Total rows: ${c.TotalRecordCount}`]})),$(()=>ge(O(m("p",{children:[`Succeeded rows: ${c.SucceededRecordCount}`]})),$(()=>ge(O(m("p",{children:[`Failed rows: ${c.FailedRecordCount}`]})),$(()=>{let d;return ge(c.FailedRecordCount>0?O(m("div",H(E([["className","mt-8"],(d=Et($(()=>ge(O(m("p",{children:["The following profiles could not be created"]})),$(()=>Be(f=>m("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),c.FailedRecords))))),["children",x.Children.toArray(Array.from(d))])])))):ul(),$(()=>O(m("button",{type:"button",children:"Done",className:"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",onClick:f=>{n()}}))))}))))))))})))))))))),["children",x.Children.toArray(Array.from(t))])])))}}class gs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function lv(e){let t,n,r,o,i,s,l,a;const c=e.fetchImport,u=e.accountImports,d=oo(new gs(0,[])),f=d[0],p=d[1];return f.tag===0?m("div",H(E([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",H(E([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",H(E([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",H(E([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",H(E([["className","bg-gray-100"],(i=[(s=E([m("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"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),m("tr",{children:x.Children.toArray(Array.from(s))}))],["children",x.Children.toArray(Array.from(i))])]))),m("tbody",H(E([["className","divide-y divide-gray-200 bg-white"],(l=Et($(()=>Be(h=>{let y;return m("tr",H(E([["key",h.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new gs(1,[h.ImportId]))}],(y=[m("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:h.ImportId}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ze(h.StartTime)}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.User}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.Succeeded})],["children",x.Children.toArray(Array.from(y))])])))},u.ImportHistory))),["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])]))):m("div",H(E([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(a=[m(Rd,{importId:f.fields[0],fetchImport:c,onDone:()=>{p(new gs(0,[]))}})],["children",x.Children.toArray(Array.from(a))])])))}const av="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",uv="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==",cv="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==";var Q={exports:{}},fv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",dv=fv,pv=dv;function Nd(){}function Pd(){}Pd.resetWarningCache=Nd;var hv=function(){function e(r,o,i,s,l,a){if(a!==pv){var c=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 c.name="Invariant Violation",c}}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:Pd,resetWarningCache:Nd};return n.PropTypes=n,n};Q.exports=hv();function Vr(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 l(u){try{c(r.next(u))}catch(d){s(d)}}function a(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(l,a)}c((r=r.apply(e,t||[])).next())})}function Ur(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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Au(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(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Eu(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))}var mv=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 No(e,t){var n=gv(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 gv(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=mv.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var wv=[".DS_Store","Thumbs.db"];function yv(e){return Vr(this,void 0,void 0,function(){return Ur(this,function(t){return yi(e)&&_v(e.dataTransfer)?[2,Ev(e.dataTransfer,e.type)]:vv(e)?[2,bv(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Av(e)]:[2,[]]})})}function _v(e){return yi(e)}function vv(e){return yi(e)&&yi(e.target)}function yi(e){return typeof e=="object"&&e!==null}function bv(e){return zs(e.target.files).map(function(t){return No(t)})}function Av(e){return Vr(this,void 0,void 0,function(){var t;return Ur(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 No(r)})]}})})}function Ev(e,t){return Vr(this,void 0,void 0,function(){var n,r;return Ur(this,function(o){switch(o.label){case 0:return e.items?(n=zs(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(xv))]):[3,2];case 1:return r=o.sent(),[2,xu(Od(r))];case 2:return[2,xu(zs(e.files).map(function(i){return No(i)}))]}})})}function xu(e){return e.filter(function(t){return wv.indexOf(t.name)===-1})}function zs(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function xv(e){if(typeof e.webkitGetAsEntry!="function")return Cu(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Bd(t):Cu(e)}function Od(e){return e.reduce(function(t,n){return Eu(Eu([],Au(t),!1),Au(Array.isArray(n)?Od(n):[n]),!1)},[])}function Cu(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=No(t);return Promise.resolve(n)}function Cv(e){return Vr(this,void 0,void 0,function(){return Ur(this,function(t){return[2,e.isDirectory?Bd(e):Sv(e)]})})}function Bd(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(l){return Vr(s,void 0,void 0,function(){var a,c,u;return Ur(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return a=d.sent(),n(a),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(l.map(Cv)),o.push(u),i(),d.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function Sv(e){return Vr(this,void 0,void 0,function(){return Ur(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=No(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var Dv=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 l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function Su(e){return Fv(e)||Tv(e)||Hd(e)||kv()}function kv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fv(e){if(Array.isArray(e))return Gs(e)}function Du(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 ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Du(Object(n),!0).forEach(function(r){$d(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){return Rv(e)||Mv(e,t)||Hd(e,t)||Iv()}function Iv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
36
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hd(e,t){if(!!e){if(typeof e=="string")return Gs(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 Gs(e,t)}}function Gs(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 Mv(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,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(a){i=!0,l=a}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Rv(e){if(Array.isArray(e))return e}var Nv="file-invalid-type",Pv="file-too-large",Ov="file-too-small",Bv="too-many-files",$v=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:Nv,message:"File type must be ".concat(n)}},Tu=function(t){return{code:Pv,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Fu=function(t){return{code:Ov,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Hv={code:Bv,message:"Too many files"};function jd(e,t){var n=e.type==="application/x-moz-file"||Dv(e,t);return[n,n?null:$v(t)]}function Ld(e,t,n){if(Hn(e.size))if(Hn(t)&&Hn(n)){if(e.size>n)return[!1,Tu(n)];if(e.size<t)return[!1,Fu(t)]}else{if(Hn(t)&&e.size<t)return[!1,Fu(t)];if(Hn(n)&&e.size>n)return[!1,Tu(n)]}return[!0,null]}function Hn(e){return e!=null}function jv(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=jd(a,n),u=_o(c,1),d=u[0],f=Ld(a,r,o),p=_o(f,1),h=p[0],y=l?l(a):null;return d&&h&&!y})}function _i(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Go(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 Iu(e){e.preventDefault()}function Lv(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Vv(e){return e.indexOf("Edge/")!==-1}function Uv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Lv(e)||Vv(e)}function $t(){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(l){return!_i(r)&&l&&l.apply(void 0,[r].concat(i)),_i(r)})}}function zv(){return"showOpenFilePicker"in window}function Gv(e){if(Hn(e)){var t=Object.entries(e).filter(function(n){var r=_o(n,2),o=r[0],i=r[1],s=!0;return Vd(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(Ud))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=_o(r,2),i=o[0],s=o[1];return ku(ku({},n),{},$d({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Wv(e){if(Hn(e))return Object.entries(e).reduce(function(t,n){var r=_o(n,2),o=r[0],i=r[1];return[].concat(Su(t),[o],Su(i))},[]).filter(function(t){return Vd(t)||Ud(t)}).join(",")}function Zv(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Qv(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Vd(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Ud(e){return/^.*\.[\w]+$/.test(e)}var Kv=["children"],Jv=["open"],Xv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qv=["refKey","onChange","onClick"];function Yv(e){return nb(e)||tb(e)||zd(e)||eb()}function eb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nb(e){if(Array.isArray(e))return Ws(e)}function ws(e,t){return ib(e)||ob(e,t)||zd(e,t)||rb()}function rb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
38
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zd(e,t){if(!!e){if(typeof e=="string")return Ws(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 Ws(e,t)}}function Ws(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 ob(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,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(a){i=!0,l=a}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function ib(e){if(Array.isArray(e))return e}function Mu(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 ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mu(Object(n),!0).forEach(function(r){Zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vi(e,t){if(e==null)return{};var n=sb(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 sb(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 Vl=Pi(function(e,t){var n=e.children,r=vi(e,Kv),o=Wd(r),i=o.open,s=vi(o,Jv);return vl(t,function(){return{open:i}},[i]),T.createElement(de,null,n(ue(ue({},s),{},{open:i})))});Vl.displayName="Dropzone";var Gd={disabled:!1,getFilesFromEvent:yv,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};Vl.defaultProps=Gd;Vl.propTypes={children:Q.exports.func,accept:Q.exports.objectOf(Q.exports.arrayOf(Q.exports.string)),multiple:Q.exports.bool,preventDropOnDocument:Q.exports.bool,noClick:Q.exports.bool,noKeyboard:Q.exports.bool,noDrag:Q.exports.bool,noDragEventsBubbling:Q.exports.bool,minSize:Q.exports.number,maxSize:Q.exports.number,maxFiles:Q.exports.number,disabled:Q.exports.bool,getFilesFromEvent:Q.exports.func,onFileDialogCancel:Q.exports.func,onFileDialogOpen:Q.exports.func,useFsAccessApi:Q.exports.bool,autoFocus:Q.exports.bool,onDragEnter:Q.exports.func,onDragLeave:Q.exports.func,onDragOver:Q.exports.func,onDrop:Q.exports.func,onDropAccepted:Q.exports.func,onDropRejected:Q.exports.func,onError:Q.exports.func,validator:Q.exports.func};var Qs={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Wd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ue(ue({},Gd),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,F=t.preventDropOnDocument,R=t.noClick,B=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ne=t.validator,Ee=K(function(){return Wv(n)},[n]),Le=K(function(){return Gv(n)},[n]),Je=K(function(){return typeof w=="function"?w:Ru},[w]),xe=K(function(){return typeof y=="function"?y:Ru},[y]),_e=L(null),pe=L(null),nr=To(lb,Qs),rr=ws(nr,2),Bt=rr[0],ve=rr[1],zr=Bt.isFocused,ot=Bt.isFileDialogActive,or=L(typeof window<"u"&&window.isSecureContext&&_&&zv()),Po=function(){!or.current&&ot&&setTimeout(function(){if(pe.current){var k=pe.current.files;k.length||(ve({type:"closeDialog"}),xe())}},300)};W(function(){return window.addEventListener("focus",Po,!1),function(){window.removeEventListener("focus",Po,!1)}},[pe,ot,xe,or]);var wn=L([]),Oo=function(k){_e.current&&_e.current.contains(k.target)||(k.preventDefault(),wn.current=[])};W(function(){return F&&(document.addEventListener("dragover",Iu,!1),document.addEventListener("drop",Oo,!1)),function(){F&&(document.removeEventListener("dragover",Iu),document.removeEventListener("drop",Oo))}},[_e,F]),W(function(){return!r&&b&&_e.current&&_e.current.focus(),function(){}},[_e,b,r]);var Yt=ce(function(A){M?M(A):console.error(A)},[M]),Gr=ce(function(A){A.preventDefault(),A.persist(),Ho(A),wn.current=[].concat(Yv(wn.current),[A.target]),Go(A)&&Promise.resolve(o(A)).then(function(k){if(!(_i(A)&&!N)){var me=k.length,Se=me>0&&jv({files:k,accept:Ee,minSize:s,maxSize:i,multiple:l,maxFiles:a,validator:ne}),it=me>0&&!Se;ve({isDragAccept:Se,isDragReject:it,isDragActive:!0,type:"setDraggedFiles"}),c&&c(A)}}).catch(function(k){return Yt(k)})},[o,c,Yt,N,Ee,s,i,l,a,ne]),Bo=ce(function(A){A.preventDefault(),A.persist(),Ho(A);var k=Go(A);if(k&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return k&&d&&d(A),!1},[d,N]),he=ce(function(A){A.preventDefault(),A.persist(),Ho(A);var k=wn.current.filter(function(Se){return _e.current&&_e.current.contains(Se)}),me=k.indexOf(A.target);me!==-1&&k.splice(me,1),wn.current=k,!(k.length>0)&&(ve({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Go(A)&&u&&u(A))},[_e,u,N]),Xe=ce(function(A,k){var me=[],Se=[];A.forEach(function(it){var Wr=jd(it,Ee),sr=ws(Wr,2),Ui=sr[0],zi=sr[1],Gi=Ld(it,s,i),jo=ws(Gi,2),Wi=jo[0],Zi=jo[1],Qi=ne?ne(it):null;if(Ui&&Wi&&!Qi)me.push(it);else{var Ki=[zi,Zi];Qi&&(Ki=Ki.concat(Qi)),Se.push({file:it,errors:Ki.filter(function(Yd){return Yd})})}}),(!l&&me.length>1||l&&a>=1&&me.length>a)&&(me.forEach(function(it){Se.push({file:it,errors:[Hv]})}),me.splice(0)),ve({acceptedFiles:me,fileRejections:Se,type:"setFiles"}),f&&f(me,Se,k),Se.length>0&&h&&h(Se,k),me.length>0&&p&&p(me,k)},[ve,l,Ee,s,i,a,f,p,h,ne]),Ce=ce(function(A){A.preventDefault(),A.persist(),Ho(A),wn.current=[],Go(A)&&Promise.resolve(o(A)).then(function(k){_i(A)&&!N||Xe(k,A)}).catch(function(k){return Yt(k)}),ve({type:"reset"})},[o,Xe,Yt,N]),Ct=ce(function(){if(or.current){ve({type:"openDialog"}),Je();var A={multiple:l,types:Le};window.showOpenFilePicker(A).then(function(k){return o(k)}).then(function(k){Xe(k,null),ve({type:"closeDialog"})}).catch(function(k){Zv(k)?(xe(k),ve({type:"closeDialog"})):Qv(k)?(or.current=!1,pe.current?(pe.current.value=null,pe.current.click()):Yt(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."))):Yt(k)});return}pe.current&&(ve({type:"openDialog"}),Je(),pe.current.value=null,pe.current.click())},[ve,Je,xe,_,Xe,Yt,Le,l]),zl=ce(function(A){!_e.current||!_e.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),Ct())},[_e,Ct]),Gl=ce(function(){ve({type:"focus"})},[]),Wl=ce(function(){ve({type:"blur"})},[]),Zl=ce(function(){R||(Uv()?setTimeout(Ct,0):Ct())},[R,Ct]),ir=function(k){return r?null:k},Vi=function(k){return B?null:ir(k)},$o=function(k){return P?null:ir(k)},Ho=function(k){N&&k.stopPropagation()},Jd=K(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=A.refKey,me=k===void 0?"ref":k,Se=A.role,it=A.onKeyDown,Wr=A.onFocus,sr=A.onBlur,Ui=A.onClick,zi=A.onDragEnter,Gi=A.onDragOver,jo=A.onDragLeave,Wi=A.onDrop,Zi=vi(A,Xv);return ue(ue(Zs({onKeyDown:Vi($t(it,zl)),onFocus:Vi($t(Wr,Gl)),onBlur:Vi($t(sr,Wl)),onClick:ir($t(Ui,Zl)),onDragEnter:$o($t(zi,Gr)),onDragOver:$o($t(Gi,Bo)),onDragLeave:$o($t(jo,he)),onDrop:$o($t(Wi,Ce)),role:typeof Se=="string"&&Se!==""?Se:"presentation"},me,_e),!r&&!B?{tabIndex:0}:{}),Zi)}},[_e,zl,Gl,Wl,Zl,Gr,Bo,he,Ce,B,P,r]),Xd=ce(function(A){A.stopPropagation()},[]),qd=K(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=A.refKey,me=k===void 0?"ref":k,Se=A.onChange,it=A.onClick,Wr=vi(A,qv),sr=Zs({accept:Ee,multiple:l,type:"file",style:{display:"none"},onChange:ir($t(Se,Ce)),onClick:ir($t(it,Xd)),tabIndex:-1},me,pe);return ue(ue({},sr),Wr)}},[pe,n,l,Ce,r]);return ue(ue({},Bt),{},{isFocused:zr&&!r,getRootProps:Jd,getInputProps:qd,rootRef:_e,inputRef:pe,open:ir(Ct)})}function lb(e,t){switch(t.type){case"focus":return ue(ue({},e),{},{isFocused:!0});case"blur":return ue(ue({},e),{},{isFocused:!1});case"openDialog":return ue(ue({},Qs),{},{isFileDialogActive:!0});case"closeDialog":return ue(ue({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ue(ue({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ue(ue({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ue({},Qs);default:return e}}function Ru(){}const ab="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==",ub="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 cb=0;function De(e,t,n,r,o,i){var s,l,a={};for(l in t)l=="ref"?s=t[l]:a[l]=t[l];var c={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--cb,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)a[l]===void 0&&(a[l]=s[l]);return C.vnode&&C.vnode(c),c}function fb({onCancel:e,onSubmit:t,onFileDrop:n}){const r=ce(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:l,fileRejections:a}=Wd({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),c=l.map(d=>De("p",{children:d.path},d.path)),u=a.map(({file:d,errors:f})=>De("li",{children:[d.path," - ",d.size," bytes",De("ul",{children:f.map(p=>De("li",{children:p.message},p.code))})]},d.path));return De("div",{...o(),children:[De("input",{...i(),name:"file"}),De("img",{src:c.length?ub:ab,className:"mx-auto mb-2"}),a.length?De("div",{className:"mb-2",children:[De("div",{className:"mb-2 font-semibold",children:"Rejected files"}),De("ul",{children:u})]}):De(de,{}),c.length?De(de,{children:[c,De("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"}),De("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"})]}):De(de,{children:[De("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),De("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"})]})]})}class kt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class Zd extends te{constructor(t){super(),this.View=t}}class Re extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function db(){return[new Zd(new kt(0,[])),Ye()]}function pb(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,io(ii(Ft,n.fields[0].fields[0].tag===1?Fe(new Re(0,[new kt(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Fe(new Re(0,[new kt(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Fe(new Re(0,[new kt(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,E([new Re(0,[new kt(3,[o])]),new Re(2,[new Ge(0,[void 0])])]))))]:[r,io(E([Ft(new Re(0,[new kt(1,[])])),so(l=>{hr(l)},l=>sv(t,l),n.fields[0].fields[0],l=>new Re(1,[new Ge(1,[l])]))]))]:n.tag===2?n.fields[0].tag===1?[r,io(ii(Ft,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,E([new Re(0,[new kt(3,[s])]),new Re(2,[new Ge(0,[void 0])])])):Fe(new Re(0,[new kt(4,[eh(l=>l.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,E([new Re(0,[new kt(3,[s])]),new Re(2,[new Ge(0,[void 0])])])):Fe(new Re(0,[new kt(0,[])])))))]:(hr(v.Delay(()=>v.Bind(gw(1e4),()=>(e(),v.Zero())))),[r,Ye()]):[new Zd(n.fields[0]),Ye()]}const Nu={Csv:"First Name,Middle Name,Last Name,Email,Mobile Number,External ID,Title,Gender,DoB,Address Line 1,Address Line 2,City,State,PostCode,CountryCode",Filename:"ProfileImportCsvTemplate.csv"},Qd=av,Pu=uv,hb=cv;function Ou(e,t,n){let r;return m("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 mb(e){let t;const n=e.dispatch,r=oo(!1),o=r[1],i=oo(0),s=i[0]|0,l=oo(new FormData),a=l[0];return m("form",H(E([["key",s],(t=Et($(()=>ge(O(m(fb,{onCancel:()=>{i[1](s+1),l[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(c,u)=>{a.set("file",c,u)}})),$(()=>{let c,u,d,f,p,h,y;return r[0]?O((c=E([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",H(E([["className","fixed inset-0 z-10 overflow-y-auto"],(u=[m("div",H(E([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[m("div",H(E([["className","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"],(f=[(p=E([m("div",H(E([["className","mt-3 text-center sm:mt-5 space-y-6"],(h=[m("img",{src:Qd,className:"mx-auto"}),m("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),m("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",x.Children.toArray(Array.from(h))])]))),m("div",H(E([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(y=[m("button",{type:"button",className:"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",children:"I confirm",onClick:w=>{n(new Re(1,[new Ge(0,[a])]))}}),m("button",{type:"button",className:"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",children:"Cancel",onClick:w=>{o(!1)}})],["children",x.Children.toArray(Array.from(y))])])))]),m("div",{children:x.Children.toArray(Array.from(p))}))],["children",x.Children.toArray(Array.from(f))])])))],["children",x.Children.toArray(Array.from(d))])])))],["children",x.Children.toArray(Array.from(u))])])))]),m("div",{children:x.Children.toArray(Array.from(c))}))):ul()})))),["children",x.Children.toArray(Array.from(t))])])))}function gb(e){let t,n,r,o,i,s,l,a;const c=e.onDone,u=e.importService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,h=Id(db(),(_,b)=>pb(d,u,_,b)),y=h[1];Vf(()=>{y(new Re(2,[new Ge(1,[f])]))},[f]);const w=E([m("div",H(E([["className","space-y-6"],(t=[(n=E([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
34
+ `));let d=u.props,f=typeof(d==null?void 0:d.className)=="function"?(...h)=>ia(d==null?void 0:d.className(...h),a.className):ia(d==null?void 0:d.className,a.className),p=f?{className:f}:{};return Vs(u,Object.assign({},Pf(u.props,sa(aa(a,["ref"]))),c,l,A1(u.ref,l.ref),p))}return m(o,Object.assign({},aa(a,["ref"]),o!==fe&&l,o!==fe&&c),u)}function A1(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Pf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Qe(e){var t;return Object.assign(hi(e),{displayName:(t=e.displayName)!=null?t:e.name})}function sa(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 Bf(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&x1(n)?!1:r}function x1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function C1(e){var t;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let r of n.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let E1="div";var _o=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_o||{});function k1(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!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",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Ze({ourProps:o,theirProps:r,slot:{},defaultTag:E1,name:"Hidden"})}let Ci=Qe(k1),la=ut(null);la.displayName="OpenClosedContext";var pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(pt||{});function ca(){return Be(la)}function S1({value:e,children:t}){return F.createElement(la.Provider,{value:e},t)}var Ei=(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))(Ei||{});function D1(e,t,n){let[r,o]=Ae(n),i=e!==void 0,s=L(i),a=L(!1),l=L(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,Z(u=>(i||o(u),t==null?void 0:t(u)))]}function ua(e,t){let n=L([]),r=Z(e);W(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function F1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var Ao=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ao||{});function T1(){let e=L(0);return Rf("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function xo(){let e=L(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Co(...e){return Q(()=>Ff(...e),[...e])}function $f(e,t,n,r){let o=hn(n);W(()=>{e=e!=null?e:window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function I1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function jf(e){let t=Z(e),n=L(!1);W(()=>(n.current=!1,()=>{n.current=!0,bi(()=>{n.current&&t()})}),[t])}function Hf(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let M1="div";var Lf=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Lf||{});function R1(e,t){let n=L(null),r=dt(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Or()||(s=1);let l=Co(n);P1({ownerDocument:l},Boolean(s&16));let u=B1({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));$1({ownerDocument:l,container:n,containers:i,previousActiveElement:u},Boolean(s&8));let c=T1(),d=Z(y=>{let w=n.current;!w||(b=>b())(()=>{$e(c.current,{[Ao.Forwards]:()=>{_i(w,Yn.First,{skipElements:[y.relatedTarget]})},[Ao.Backwards]:()=>{_i(w,Yn.Last,{skipElements:[y.relatedTarget]})}})})}),f=vi(),p=L(!1),h={ref:r,onKeyDown(y){y.key=="Tab"&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(y){let w=Hf(i);n.current instanceof HTMLElement&&w.add(n.current);let b=y.relatedTarget;b instanceof HTMLElement&&b.dataset.headlessuiFocusGuard!=="true"&&(Vf(w,b)||(p.current?_i(n.current,$e(c.current,{[Ao.Forwards]:()=>Yn.Next,[Ao.Backwards]:()=>Yn.Previous})|Yn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&Jn(y.target)))}};return F.createElement(F.Fragment,null,Boolean(s&4)&&F.createElement(Ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_o.Focusable}),Ze({ourProps:h,theirProps:a,defaultTag:M1,name:"FocusTrap"}),Boolean(s&4)&&F.createElement(Ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_o.Focusable}))}let N1=Qe(R1),Eo=Object.assign(N1,{features:Lf}),Mn=[];I1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Mn[0]!==t.target&&(Mn.unshift(t.target),Mn=Mn.filter(n=>n!=null&&n.isConnected),Mn.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 O1(e=!0){let t=L(Mn.slice());return ua(([n],[r])=>{r===!0&&n===!1&&bi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Mn.slice())},[e,Mn,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function P1({ownerDocument:e},t){let n=O1(t);ua(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Jn(n())},[t]),jf(()=>{t&&Jn(n())})}function B1({ownerDocument:e,container:t,initialFocus:n},r){let o=L(null),i=xo();return ua(()=>{if(!r)return;let s=t.current;s&&bi(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Jn(n.current):_i(s,Yn.First)===Tf.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function $1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=xo();$f(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=Hf(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?Vf(a,u)?(r.current=u,Jn(u)):(s.preventDefault(),s.stopPropagation(),Jn(l)):Jn(r.current)},!0)}function Vf(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Uf=ut(!1);function j1(){return Be(Uf)}function fa(e){return F.createElement(Uf.Provider,{value:e.force},e.children)}function H1(e){let t=j1(),n=Be(zf),r=Co(e),[o,i]=Ae(()=>{if(!t&&n!==null||pn.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return W(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),W(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let L1=fe;function V1(e,t){let n=e,r=L(null),o=dt(_1(c=>{r.current=c}),t),i=Co(r),s=H1(r),[a]=Ae(()=>{var c;return pn.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Be(da),u=Or();return tt(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),tt(()=>{if(a&&l)return l.register(a)},[l,a]),jf(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))}),u?!s||!a?null:Hs(Ze({ourProps:{ref:o},theirProps:n,defaultTag:L1,name:"Portal"}),a):null}let U1=fe,zf=ut(null);function z1(e,t){let{target:n,...r}=e,o={ref:dt(t)};return F.createElement(zf.Provider,{value:n},Ze({ourProps:o,theirProps:r,defaultTag:U1,name:"Popover.Group"}))}let da=ut(null);function G1(){let e=Be(da),t=L([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=Q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Q(()=>function({children:i}){return F.createElement(da.Provider,{value:o},i)},[o])]}let W1=Qe(V1),Z1=Qe(z1),pa=Object.assign(W1,{Group:Z1}),Gf=ut(null);function Wf(){let e=Be(Gf);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,Wf),t}return e}function Zf(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return F.createElement(Gf.Provider,{value:o},n.children)},[t])]}let Q1="p";function K1(e,t){let n=In(),{id:r=`headlessui-description-${n}`,...o}=e,i=Wf(),s=dt(t);tt(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return Ze({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:Q1,name:i.name||"Description"})}let X1=Qe(K1),Qf=Object.assign(X1,{}),ha=ut(()=>{});ha.displayName="StackContext";var ma=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ma||{});function Y1(){return Be(ha)}function J1({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=Y1(),s=Z((...a)=>{t==null||t(...a),i(...a)});return tt(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),F.createElement(ha.Provider,{value:s},e)}function q1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const ey=typeof Object.is=="function"?Object.is:q1,{useState:ty,useEffect:ny,useLayoutEffect:ry,useDebugValue:oy}=zs;function iy(e,t,n){const r=t(),[{inst:o},i]=ty({inst:{value:r,getSnapshot:t}});return ry(()=>{o.value=r,o.getSnapshot=t,ga(o)&&i({inst:o})},[e,r,t]),ny(()=>(ga(o)&&i({inst:o}),e(()=>{ga(o)&&i({inst:o})})),[e]),oy(r),r}function ga(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ey(n,r)}catch{return!0}}function sy(e,t,n){return t()}const ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ly=!ay,cy=ly?sy:iy,uy="useSyncExternalStore"in zs?(e=>e.useSyncExternalStore)(zs):cy;function fy(e){return uy(e.subscribe,e.getSnapshot,e.getSnapshot)}function dy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function py(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function hy(){if(!F1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(s){return r.containers.flatMap(a=>a()).some(a=>a.contains(s))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function my(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function gy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let qn=dy(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Nr(),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:gy(n)},o=[hy(),py(),my()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});qn.subscribe(()=>{let e=qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&qn.dispatch("TEARDOWN",n)}});function wy(e,t,n){let r=fy(qn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return tt(()=>{if(!(!e||!t))return qn.dispatch("PUSH",e,n),()=>qn.dispatch("POP",e,n)},[t,e]),i}let wa=new Map,ko=new Map;function Kf(e,t=!0){tt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=ko.get(r))!=null?s:1;if(a===1?ko.delete(r):ko.set(r,a-1),a!==1)return;let l=wa.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,wa.delete(r))}let i=(n=ko.get(r))!=null?n:0;return ko.set(r,i+1),i!==0||(wa.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function yy({defaultContainers:e=[],portals:t}={}){let n=L(null),r=Co(n),o=Z(()=>{var i;let s=[];for(let a of e)a!==null&&(a instanceof HTMLElement?s.push(a):"current"in a&&a.current instanceof HTMLElement&&s.push(a.current));if(t!=null&&t.current)for(let a of t.current)s.push(a);for(let a of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(n.current)||s.some(l=>a.contains(l))||s.push(a));return s});return{resolveContainers:o,contains:Z(i=>o().some(s=>s.contains(i))),mainTreeNodeRef:n,MainTreeNode:Q(()=>function(){return F.createElement(Ci,{features:_o.Hidden,ref:n})},[n])}}var by=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(by||{}),vy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(vy||{});let _y={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ki=ut(null);ki.displayName="DialogContext";function So(e){let t=Be(ki);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,So),n}return t}function Ay(e,t,n=()=>[document.body]){wy(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function xy(e,t){return $e(t.type,_y,e,t)}let Cy="div",Ey=Ai.RenderStrategy|Ai.Static;function ky(e,t){var n;let r=In(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[c,d]=Ae(0),f=ca();i===void 0&&f!==null&&(i=(f&pt.Open)===pt.Open);let p=L(null),h=dt(p,t),y=Co(p),w=e.hasOwnProperty("open")||f!==null,b=e.hasOwnProperty("onClose");if(!w&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let _=i?0:1,[I,R]=ho(xy,{titleId:null,descriptionId:null,panelRef:Fs()}),B=Z(()=>s(!1)),P=Z(we=>R({type:0,id:we})),N=Or()?l?!1:_===0:!1,M=c>1,ae=Be(ki)!==null,[De,Ke]=G1(),{resolveContainers:nt,mainTreeNodeRef:Fe,MainTreeNode:ve}=yy({portals:De,defaultContainers:[(n=I.panelRef.current)!=null?n:p.current]}),ge=M?"parent":"leaf",jr=f!==null?(f&pt.Closing)===pt.Closing:!1,Hr=(()=>ae||jr?!1:N)(),Jt=de(()=>{var we,rt;return(rt=Array.from((we=y==null?void 0:y.querySelectorAll("body > *"))!=null?we:[]).find(Te=>Te.id==="headlessui-portal-root"?!1:Te.contains(Fe.current)&&Te instanceof HTMLElement))!=null?rt:null},[Fe]);Kf(Jt,Hr);let _e=(()=>M?!0:N)(),Mo=de(()=>{var we,rt;return(rt=Array.from((we=y==null?void 0:y.querySelectorAll("[data-headlessui-portal]"))!=null?we:[]).find(Te=>Te.contains(Fe.current)&&Te instanceof HTMLElement))!=null?rt:null},[Fe]);Kf(Mo,_e);let ht=(()=>!(!N||M))();b1(nt,B,ht);let Lr=(()=>!(M||_!==0))();$f(y==null?void 0:y.defaultView,"keydown",we=>{Lr&&(we.defaultPrevented||we.key===Ei.Escape&&(we.preventDefault(),we.stopPropagation(),B()))});let Pi=(()=>!(jr||_!==0||ae))();Ay(y,Pi,nt),W(()=>{if(_!==0||!p.current)return;let we=new ResizeObserver(rt=>{for(let Te of rt){let Pt=Te.target.getBoundingClientRect();Pt.x===0&&Pt.y===0&&Pt.width===0&&Pt.height===0&&B()}});return we.observe(p.current),()=>we.disconnect()},[_,p,B]);let[Rn,Bi]=Zf(),gn=Q(()=>[{dialogState:_,close:B,setTitleId:P},I],[_,I,B,P]),Ro=Q(()=>({open:_===0}),[_]),$i={ref:h,id:o,role:"dialog","aria-modal":_===0?!0:void 0,"aria-labelledby":I.titleId,"aria-describedby":Rn};return F.createElement(J1,{type:"Dialog",enabled:_===0,element:p,onUpdate:Z((we,rt)=>{rt==="Dialog"&&$e(we,{[ma.Add]:()=>d(Te=>Te+1),[ma.Remove]:()=>d(Te=>Te-1)})})},F.createElement(fa,{force:!0},F.createElement(pa,null,F.createElement(ki.Provider,{value:gn},F.createElement(pa.Group,{target:p},F.createElement(fa,{force:!1},F.createElement(Bi,{slot:Ro,name:"Dialog.Description"},F.createElement(Eo,{initialFocus:a,containers:nt,features:N?$e(ge,{parent:Eo.features.RestoreFocus,leaf:Eo.features.All&~Eo.features.FocusLock}):Eo.features.None},F.createElement(Ke,null,Ze({ourProps:$i,theirProps:u,slot:Ro,defaultTag:Cy,features:Ey,visible:_===0,name:"Dialog"}))))))))),F.createElement(ve,null))}let Sy="div";function Dy(e,t){let n=In(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=So("Dialog.Overlay"),a=dt(t),l=Z(c=>{if(c.target===c.currentTarget){if(Bf(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),s()}}),u=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:Sy,name:"Dialog.Overlay"})}let Fy="div";function Ty(e,t){let n=In(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=So("Dialog.Backdrop"),a=dt(t);W(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=Q(()=>({open:i===0}),[i]);return F.createElement(fa,{force:!0},F.createElement(pa,null,Ze({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:Fy,name:"Dialog.Backdrop"})))}let Iy="div";function My(e,t){let n=In(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=So("Dialog.Panel"),a=dt(t,s.panelRef),l=Q(()=>({open:i===0}),[i]),u=Z(c=>{c.stopPropagation()});return Ze({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:Iy,name:"Dialog.Panel"})}let Ry="h2";function Ny(e,t){let n=In(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=So("Dialog.Title"),a=dt(t);W(()=>(s(r),()=>s(null)),[r,s]);let l=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:Ry,name:"Dialog.Title"})}let Oy=Qe(ky),Py=Qe(Ty),By=Qe(My),$y=Qe(Dy),jy=Qe(Ny),ya=Object.assign(Oy,{Backdrop:Py,Panel:By,Overlay:$y,Title:jy,Description:Qf});function Hy(e=0){let[t,n]=Ae(e),r=xo(),o=de(l=>{r.current&&n(u=>u|l)},[t,r]),i=de(l=>Boolean(t&l),[t]),s=de(l=>{r.current&&n(u=>u&~l)},[n,r]),a=de(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let Xf=ut(null);function Yf(){let e=Be(Xf);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Yf),t}return e}function Ly(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return F.createElement(Xf.Provider,{value:o},n.children)},[t])]}let Vy="label";function Uy(e,t){let n=In(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Yf(),a=dt(t);tt(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),Ze({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:Vy,name:s.name||"Label"})}let zy=Qe(Uy),Gy=Object.assign(zy,{}),ba=ut(null);ba.displayName="GroupContext";let Wy=fe;function Zy(e){var t;let[n,r]=Ae(null),[o,i]=Ly(),[s,a]=Zf(),l=Q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},c=e;return F.createElement(a,{name:"Switch.Description"},F.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(d){n&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},F.createElement(ba.Provider,{value:l},Ze({ourProps:u,theirProps:c,defaultTag:Wy,name:"Switch.Group"}))))}let Qy="button";function Ky(e,t){let n=In(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...c}=e,d=Be(ba),f=L(null),p=dt(f,t,d===null?null:d.setSwitch),[h,y]=D1(o,s,i),w=Z(()=>y==null?void 0:y(!h)),b=Z(N=>{if(Bf(N.currentTarget))return N.preventDefault();N.preventDefault(),w()}),_=Z(N=>{N.key===Ei.Space?(N.preventDefault(),w()):N.key===Ei.Enter&&C1(N.currentTarget)}),I=Z(N=>N.preventDefault()),R=Q(()=>({checked:h}),[h]),B={id:r,ref:p,role:"switch",type:v1(e,f),tabIndex:0,"aria-checked":h,"aria-labelledby":d==null?void 0:d.labelledby,"aria-describedby":d==null?void 0:d.describedby,onClick:b,onKeyUp:_,onKeyPress:I},P=vi();return W(()=>{var N;let M=(N=f.current)==null?void 0:N.closest("form");M&&i!==void 0&&P.addEventListener(M,"reset",()=>{y(i)})},[f,y]),F.createElement(F.Fragment,null,a!=null&&h&&F.createElement(Ci,{features:_o.Hidden,...sa({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:h,name:a,value:l})}),Ze({ourProps:B,theirProps:c,slot:R,defaultTag:Qy,name:"Switch"}))}let Xy=Qe(Ky),Yy=Zy,va=Object.assign(Xy,{Group:Yy,Label:Gy,Description:Qf});function Jy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function _a(e,...t){e&&t.length>0&&e.classList.add(...t)}function Aa(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qy(e,t){let n=Nr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function eb(e,t,n,r){let o=n?"enter":"leave",i=Nr(),s=r!==void 0?Jy(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=$e(o,{enter:()=>t.enter,leave:()=>t.leave}),l=$e(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=$e(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Aa(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_a(e,...a,...u),i.nextFrame(()=>{Aa(e,...u),_a(e,...l),qy(e,()=>(Aa(e,...a),_a(e,...t.entered),s()))}),i.dispose}function tb({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=xo(),s=vi(),a=hn(t);tt(()=>{let l=Nr();s.add(l.dispose);let u=e.current;if(u&&a.current!=="idle"&&i.current)return l.dispose(),r.current(a.current),l.add(eb(u,n.current,a.current==="enter",()=>{l.dispose(),o.current(a.current)})),l.dispose},[t])}function er(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Si=ut(null);Si.displayName="TransitionContext";var nb=(e=>(e.Visible="visible",e.Hidden="hidden",e))(nb||{});function rb(){let e=Be(Si);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ob(){let e=Be(Di);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Di=ut(null);Di.displayName="NestingContext";function Fi(e){return"children"in e?Fi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Jf(e,t){let n=hn(e),r=L([]),o=xo(),i=vi(),s=Z((p,h=mn.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&($e(h,{[mn.Unmount](){r.current.splice(y,1)},[mn.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var w;!Fi(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=Z(p=>{let h=r.current.find(({el:y})=>y===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>s(p,mn.Unmount)}),l=L([]),u=L(Promise.resolve()),c=L({enter:[],leave:[],idle:[]}),d=Z((p,h,y)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(c.current[h].map(([b,_])=>_)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(h)):y(h)}),f=Z((p,h,y)=>{Promise.all(c.current[h].splice(0).map(([w,b])=>b)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(h))});return Q(()=>({children:r,register:a,unregister:s,onStart:d,onStop:f,wait:u,chains:c}),[a,s,r,d,f,c,u])}function ib(){}let sb=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qf(e){var t;let n={};for(let r of sb)n[r]=(t=e[r])!=null?t:ib;return n}function ab(e){let t=L(qf(e));return W(()=>{t.current=qf(e)},[e]),t}let lb="div",ed=Ai.RenderStrategy;function cb(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:f,...p}=e,h=L(null),y=dt(h,t),w=p.unmount?mn.Unmount:mn.Hidden,{show:b,appear:_,initial:I}=rb(),[R,B]=Ae(b?"visible":"hidden"),P=ob(),{register:N,unregister:M}=P,ae=L(null);W(()=>N(h),[N,h]),W(()=>{if(w===mn.Hidden&&h.current){if(b&&R!=="visible"){B("visible");return}return $e(R,{hidden:()=>M(h),visible:()=>N(h)})}},[R,h,N,M,b,w]);let De=hn({enter:er(s),enterFrom:er(a),enterTo:er(l),entered:er(u),leave:er(c),leaveFrom:er(d),leaveTo:er(f)}),Ke=ab({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),nt=Or();W(()=>{if(nt&&R==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,R,nt]);let Fe=I&&!_,ve=(()=>!nt||Fe||ae.current===b?"idle":b?"enter":"leave")(),ge=Hy(0),jr=Z(ht=>$e(ht,{enter:()=>{ge.addFlag(pt.Opening),Ke.current.beforeEnter()},leave:()=>{ge.addFlag(pt.Closing),Ke.current.beforeLeave()},idle:()=>{}})),Hr=Z(ht=>$e(ht,{enter:()=>{ge.removeFlag(pt.Opening),Ke.current.afterEnter()},leave:()=>{ge.removeFlag(pt.Closing),Ke.current.afterLeave()},idle:()=>{}})),Jt=Jf(()=>{B("hidden"),M(h)},P);tb({container:h,classes:De,direction:ve,onStart:hn(ht=>{Jt.onStart(h,ht,jr)}),onStop:hn(ht=>{Jt.onStop(h,ht,Hr),ht==="leave"&&!Fi(Jt)&&(B("hidden"),M(h))})}),W(()=>{Fe&&(w===mn.Hidden?ae.current=null:ae.current=b)},[b,Fe,R]);let _e=p,Mo={ref:y};return _&&b&&I&&(_e={..._e,className:ia(p.className,...De.current.enter,...De.current.enterFrom)}),F.createElement(Di.Provider,{value:Jt},F.createElement(S1,{value:$e(R,{visible:pt.Open,hidden:pt.Closed})|ge.flags},Ze({ourProps:Mo,theirProps:_e,defaultTag:lb,features:ed,visible:R==="visible",name:"Transition.Child"})))}function ub(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=L(null),a=dt(s,t);Or();let l=ca();if(n===void 0&&l!==null&&(n=(l&pt.Open)===pt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=Ae(n?"visible":"hidden"),d=Jf(()=>{c("hidden")}),[f,p]=Ae(!0),h=L([n]);tt(()=>{f!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let y=Q(()=>({show:n,appear:r,initial:f}),[n,r,f]);W(()=>{if(n)c("visible");else if(!Fi(d))c("hidden");else{let I=s.current;if(!I)return;let R=I.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&c("hidden")}},[n,d]);let w={unmount:o},b=Z(()=>{var I;f&&p(!1),(I=e.beforeEnter)==null||I.call(e)}),_=Z(()=>{var I;f&&p(!1),(I=e.beforeLeave)==null||I.call(e)});return F.createElement(Di.Provider,{value:d},F.createElement(Si.Provider,{value:y},Ze({ourProps:{...w,as:fe,children:F.createElement(td,{ref:a,...w,...i,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:fe,features:ed,visible:u==="visible",name:"Transition"})))}function fb(e,t){let n=Be(Si)!==null,r=ca()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(xa,{ref:t,...e}):F.createElement(td,{ref:t,...e}))}let xa=Qe(ub),td=Qe(cb),db=Qe(fb),nd=Object.assign(xa,{Child:db,Root:xa});class Ti extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function pb(e){const t=En(e,1);return m(va,t)}class rd extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function hb(e){const t=En(e,1);return m(va.Label,t)}class mb extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Children"]}}function gb(e){const t=En(e,1);return m(va.Group,t)}class Ca extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function wb(e){const t=En(e,1);return m(nd.Root,t)}class je extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function od(e){const t=En(e,1);return m(nd.Child,t)}class Do extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function yb(e){const t=En(e,1);return m(ya,t)}class Ea extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function bb(e){const t=En(e,1);return m(ya.Panel,t)}class Ii extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function vb(e){const t=En(e,1);return m(ya.Title,t)}class _b extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class Ab extends ee{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function xb(e){let t,n,r,o;return wb(x([new Ca(0,["1"]),new Ca(2,[e.show]),new Ca(3,[[yb(x([new Do(1,["1"]),new Do(0,["div"]),new Do(2,["relative z-10"]),new Do(4,[e.cancelButtonClick]),new Do(5,[[od(x([new je(0,["1"]),new je(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0"]),new je(6,["opacity-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100"]),new je(9,["opacity-0"])])),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[m("div",$(x([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[od(x([new je(0,["1"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(6,["opacity-100 translate-y-0 sm:scale-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100 translate-y-0 sm:scale-100"]),new je(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(10,[[bb(x([new Ea(0,["1"]),new Ea(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Ea(2,[[m("div",$(x([["key","1"],["className","sm:flex sm:items-start"],(r=Ct(H(()=>{let i,s;return he((i=e.dialogIcon,i==null?ys():(s=i,O(m("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:C.Children.toArray([s])})))),H(()=>{let a,l;return O(m("div",$(x([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(a=[vb(x([new Ii(1,["1"]),new Ii(0,["h3"]),new Ii(2,["text-lg font-medium leading-6 text-gray-900"]),new Ii(3,[[m("span",{children:e.title,key:"1"})]])])),m("div",$(x([["className","mt-2"],["key","2"],(l=[m("p",{className:"text-sm text-gray-500",children:e.message})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])]))))}))})),["children",C.Children.toArray(Array.from(r))])]))),m("div",$(x([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Ct(H(()=>he(O(m("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),H(()=>O(m("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:i=>{e.cancelButtonClick()},children:e.cancelButtonText})))))),["children",C.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]])]))]])]))}function Cb(e,t,n,r){const o=$t(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=$t(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function Eb(e,t,n,r,o){const i=Cb(t,n,r,o);return H(()=>tm(i,e))}function kb(e,t,n){return Eb(e,t,n,0,(r,o)=>r+o)}class Pr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Sb{constructor(t){this.state=new Pr(0,[Ko(new Array(Gi(Nn,t,10)),0,Gi(Nn,t,10),null),0])}}function Db(e){return new Sb(e)}function Fb(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 Pr(0,[o,n]):e.state=new Pr(1,[o,n,i]),ue(o[r])}else return}function Tb(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];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new Pr(1,[Ib(e,o,i),i.length,0]):e.state=new Pr(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Pr(1,[o,i,r])}}function Ib(e,t,n){return Array.from(H(()=>he(im(t,n),H(()=>he(sm(t,n),H(()=>lc(r=>O(Me()),kb(0,1,n.length))))))))}class id extends ee{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.syncDispatch=a}}function sd(e,t,n){return new id(e,t,r=>et(),n,oe(2,r=>{const o=or(1,n,[r]);return i=>{o(i)}}),r=>{vw(r[0],r[1])},oe(2,r=>r))}function Mb(e,t){return new id(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function Rb(e,t){const n=t.init(e),r=n[0],o=Db(10);let i=!1,s=r;const a=u=>{let c;if(i)Tb(o,u);else{i=!0;let d=ue(u);for(;d!=null;){const f=ne(d);try{const p=t.update(f,s),h=p[0];t.setState(h,l),uf(l,p[1]),s=h}catch(p){t.onError([(c=jn(rn("Unable to process the message: %A")),c(f)),p])}d=Fb(o)}i=!1}},l=or(1,t.syncDispatch,[a]);t.setState(r,l),uf(l,Jo((()=>{try{return t.subscribe(r)}catch(u){return t.onError(["Unable to subscribe:",u]),et()}})(),n[1]))}class Nb{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Ob(){return new Nb}function Pb(e){return e.state}function Bb(e){return e.hasDisposedOnce}function $b(e,t,n){e.state=ue(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function jb(e,t){const n=e.dispatcher;n!=null&&n(t)}function Hb(e,t){e.listener==null&&(e.listener=t)}function Lb(e){const t=e.state;if(t!=null){const n=ne(t);Wa(n)&&re(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function ad(e,t,n,r){Rb(t,Mb((i,s)=>{$b(n,i,s)},e()));const o=Pb(n);if(o!=null)return ne(o);throw new Error("Elmish program has not initialized")}function Vb(e,t,n){const r=of(Ob)[0],o=of(()=>ad(e,t,r)),i=o[1];return sf(()=>(Bb(r)&&i(ad(e,t,r)),Gs(()=>{Lb(r)})),Qo(n,[])),Hb(r,i),[o[0],s=>{jb(r,s)}]}function ld(e,t){return Vb(e,void 0,t)}function Ub(e,t,n){return ld(()=>sd(e,t,(r,o)=>{}),n)}function cd(e,t,n){return ld(()=>sd(()=>e,t,(r,o)=>{}),n)}class zb extends ee{constructor(t,n,r,o){super(),this.PartnerId=t,this.AccountId=n,this.ConfigService=r,this.EditAllowed=o}}function Gb(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Wb(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return m("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});case 1:return Me()}}function Zb(e,t){return m("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Gb(e)}`})}function Qb(e,t,n){let r;const o=e.EditAllowed&&!yi(t.Mode),i=o?"":"hidden",s=yi(t.Mode)?"":"hidden",a=o&&Ye(ta(t).Ownership,new Xs(0,[]))?"":"hidden";return m("div",$(x([["className","flex flex-row space-x-2 basis-3/4"],(r=[m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:l=>{n(Jw())},type:"button",children:"Save"}),m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:l=>{n(new ke(8,[]))},type:"button",children:"Cancel"}),m("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:l=>{n(new ke(0,[new ea(1,[])]))},type:"button",children:C.Children.toArray([a1])}),m("button",{className:`${a} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:l=>{n(new ke(6,[]))},type:"button",children:C.Children.toArray([l1])})],["children",C.Children.toArray(Array.from(r))])])))}function Kb(e,t,n,r){return gb(Ee(new mb(0,[[pb(x([new Ti(0,[e]),new Ti(1,[o=>{n&&r(o)}]),new Ti(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Ti(3,[[m("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),hb(x([new rd(0,["ml-3"]),new rd(1,[[m("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))]])))}function Xb(e,t){return e.CurrentConfirmationDialog==null?Me():xb(new Ab(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",s1,"Reset",()=>{t(qw())},new _b(1,[]),"Cancel",()=>{t(new ke(7,[]))}))}function Yb(e){let t,n,r;const o=cd(e1,(u,c)=>t1(e.PartnerId,e.AccountId,e.ConfigService,u,c)),i=o[0],s=o[1],a=e.EditAllowed&&yi(i.Mode),l=i.Config;switch(l.tag){case 1:return m("div",{children:["Please wait"]});case 3:return m("div",{children:["Something went wrong. Please try again"]});case 2:{const u=l.fields[0];if(u.tag===0){const c=u.fields[0];return m("div",$(x([["className","flex flex-col mt-5 w-full "],(t=[m("div",$(x([["className","flex flex-row"],(n=[Zb(c,yi(i.Mode)),Qb(e,i,s)],["children",C.Children.toArray(Array.from(n))])]))),m("div",$(x([["className","mt-5"],(r=[Kb(c.AdminUserManagementEnabled,"User Management",a,d=>{s(new ke(3,[d]))})],["children",C.Children.toArray(Array.from(r))])]))),Wb(i),Xb(i,s)],["children",C.Children.toArray(Array.from(t))])])))}else return m("div",{children:[`${u.fields[0]}`]})}default:return m("div",{children:["Please wait"]})}}const Jb=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.5rem}.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;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))}.translate-x-5{--tw-translate-x: 1.25rem;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))}.translate-y-0{--tw-translate-y: 0px;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))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.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}.align-middle{vertical-align:middle}.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-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.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)}.ring-0{--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(0px + 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}.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}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.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))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
35
+ `,ka=(()=>Ve(Jb))();function ud(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return m("div",$(x([["className","border-b border-gray-200"],(t=[m("nav",$(x([["className","-mb-px flex space-x-8"],(n=Ct(H(()=>Ne(s=>m("a",{key:ff(s),className:on(" ",Ct(H(()=>he(Ye(o,s)?O("border-indigo-500 text-indigo-600"):O("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),H(()=>O("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:a=>{r(s)},children:ff(s)}),i))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class fd extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class qb{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function ev(e,t,n){return new qb(e,t,n)}function dd(e,t){return Kt(ft,()=>{let n,r,o,i;const s=Ir((n=Tr(new Kn(0,[]),Fr(`${e.baseUrl}/${t}`)),r=Dr((o=jn(rn("Bearer %s")),o(e.accessToken))),Fn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Delay(()=>v.Bind(i,a=>{let l,u;const c=a;return c.tag===1?v.Return(new g(1,[c.fields[0]])):v.ReturnFrom((l=c.fields[0],l.statusCode===200?(u=zn(oe(2,Gn(Og(),new Tt(1,[]),void 0)),l.responseText),v.Return(u)):v.Return(new g(1,["Failed to fetch import"]))))}))})}function tv(e){return Kt(ft,()=>{let t,n,r,o;const i=Ir((t=Tr(new Kn(0,[]),Fr(e.baseUrl)),n=Dr((r=jn(rn("Bearer %s")),r(e.accessToken))),Fn(n,t)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Delay(()=>v.Bind(o,s=>{let a,l;const u=s;return u.tag===1?v.Return(new g(1,[u.fields[0]])):v.ReturnFrom((a=u.fields[0],a.statusCode===200?(l=zn(oe(2,Gn(qc(),new Tt(1,[]),void 0)),a.responseText),v.Return(l)):v.Return(new g(1,["Failed to fetch account imports"]))))}))})}function nv(e,t){return Kt(ft,()=>{let n,r,o,i;const s=Ir((n=gf(new Ks(3,[t]),Tr(new Kn(1,[]),Fr(e.baseUrl))),r=Dr((o=jn(rn("Bearer %s")),o(e.accessToken))),Fn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Delay(()=>v.Bind(i,a=>{let l,u,c,d,f,p;const h=a;return h.tag===1?v.Return(new g(1,[h.fields[0]])):v.ReturnFrom((l=h.fields[0],u=l.statusCode|0,u===200?(c=(d=zn(oe(2,Gn(qc(),new Tt(1,[]),void 0)),l.responseText),v.Return(d)),v.Bind(c,y=>{const w=an(b=>new fd(0,[b]),y);return v.Return(w)})):u===400?(f=(p=zn(oe(2,Gn(Rg(),new Tt(1,[]),void 0)),l.responseText),v.Return(p)),v.Bind(f,y=>{const w=an(b=>new fd(1,[b]),y);return v.Return(w)})):v.Return(new g(1,["Failed to create account import"]))))}))})}function Fo(e){let t;return m("div",$(x([["className","text-center"],(t=[m("p",{children:["Oops, something went wrong."]}),m("p",{children:[`Error: ${e}.`]}),m("p",{children:["Please refresh the page and try again."]}),m("button",{className:"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",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",C.Children.toArray(Array.from(t))])])))}function pd(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=mw(r(o),[]);let s,a,l,u;switch(i.tag===1?s=0:i.tag===3?(s=1,a=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,u=i.fields[0].fields[0]):(s=2,l=i.fields[0].fields[0]):s=0,s){case 0:return Me();case 1:return Fo(a.message);case 2:return Fo(l);case 3:return m("div",$(x([["className","text-center"],(t=Ct(H(()=>he(O(m("p",{children:[`Import ID: ${u.ImportId}`]})),H(()=>he(O(m("p",{children:[`Creator: ${u.User}`]})),H(()=>he(O(m("p",{children:[`Filename: ${u.Filename}`]})),H(()=>he(O(m("p",{children:[`Date started: ${Ve(u.StartTime)}`]})),H(()=>{let c;return he((c=u.StopTime,c==null?O(Me()):O(m("p",{children:[`Date completed: ${Ve(c)}`]}))),H(()=>he(O(m("p",{children:[`Total rows: ${u.TotalRecordCount}`]})),H(()=>he(O(m("p",{children:[`Succeeded rows: ${u.SucceededRecordCount}`]})),H(()=>he(O(m("p",{children:[`Failed rows: ${u.FailedRecordCount}`]})),H(()=>{let d;return he(u.FailedRecordCount>0?O(m("div",$(x([["className","mt-8"],(d=Ct(H(()=>he(O(m("p",{children:["The following profiles could not be created"]})),H(()=>Ne(f=>m("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),u.FailedRecords))))),["children",C.Children.toArray(Array.from(d))])])))):ys(),H(()=>O(m("button",{type:"button",children:"Done",className:"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",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Sa extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function rv(e){let t,n,r,o,i,s,a,l;const u=e.fetchImport,c=e.accountImports,d=go(new Sa(0,[])),f=d[0],p=d[1];return f.tag===0?m("div",$(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",$(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",$(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",$(x([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",$(x([["className","bg-gray-100"],(i=[(s=x([m("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"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),m("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),m("tbody",$(x([["className","divide-y divide-gray-200 bg-white"],(a=Ct(H(()=>Ne(h=>{let y;return m("tr",$(x([["key",h.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new Sa(1,[h.ImportId]))}],(y=[m("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:h.ImportId}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ve(h.StartTime)}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.User}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.Succeeded})],["children",C.Children.toArray(Array.from(y))])])))},c.ImportHistory))),["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])]))):m("div",$(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=[m(pd,{importId:f.fields[0],fetchImport:u,onDone:()=>{p(new Sa(0,[]))}})],["children",C.Children.toArray(Array.from(l))])])))}const ov="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",iv="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==",sv="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==";var K={exports:{}},av="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lv=av,cv=lv;function hd(){}function md(){}md.resetWarningCache=hd;var uv=function(){function e(r,o,i,s,a,l){if(l!==cv){var u=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 u.name="Invariant Violation",u}}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:md,resetWarningCache:hd};return n.PropTypes=n,n};K.exports=uv();function Br(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(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function $r(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(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function gd(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 wd(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 fv=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 To(e,t){var n=dv(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 dv(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=fv.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var pv=[".DS_Store","Thumbs.db"];function hv(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return Mi(e)&&mv(e.dataTransfer)?[2,bv(e.dataTransfer,e.type)]:gv(e)?[2,wv(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,yv(e)]:[2,[]]})})}function mv(e){return Mi(e)}function gv(e){return Mi(e)&&Mi(e.target)}function Mi(e){return typeof e=="object"&&e!==null}function wv(e){return Da(e.target.files).map(function(t){return To(t)})}function yv(e){return Br(this,void 0,void 0,function(){var t;return $r(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 To(r)})]}})})}function bv(e,t){return Br(this,void 0,void 0,function(){var n,r;return $r(this,function(o){switch(o.label){case 0:return e.items?(n=Da(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(vv))]):[3,2];case 1:return r=o.sent(),[2,yd(bd(r))];case 2:return[2,yd(Da(e.files).map(function(i){return To(i)}))]}})})}function yd(e){return e.filter(function(t){return pv.indexOf(t.name)===-1})}function Da(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function vv(e){if(typeof e.webkitGetAsEntry!="function")return vd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?_d(t):vd(e)}function bd(e){return e.reduce(function(t,n){return wd(wd([],gd(t),!1),gd(Array.isArray(n)?bd(n):[n]),!1)},[])}function vd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=To(t);return Promise.resolve(n)}function _v(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return[2,e.isDirectory?_d(e):Av(e)]})})}function _d(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return Br(s,void 0,void 0,function(){var l,u,c;return $r(this,function(d){switch(d.label){case 0:if(a.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=d.sent(),n(l),[3,4];case 3:return u=d.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(_v)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function Av(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=To(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var xv=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 Ad(e){return kv(e)||Ev(e)||kd(e)||Cv()}function Cv(){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 Ev(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kv(e){if(Array.isArray(e))return Fa(e)}function xd(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(n),!0).forEach(function(r){Ed(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ed(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){return Fv(e)||Dv(e,t)||kd(e,t)||Sv()}function Sv(){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 kd(e,t){if(!!e){if(typeof e=="string")return Fa(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 Fa(e,t)}}function Fa(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 Dv(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(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Fv(e){if(Array.isArray(e))return e}var Tv="file-invalid-type",Iv="file-too-large",Mv="file-too-small",Rv="too-many-files",Nv=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:Tv,message:"File type must be ".concat(n)}},Sd=function(t){return{code:Iv,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Dd=function(t){return{code:Mv,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ov={code:Rv,message:"Too many files"};function Fd(e,t){var n=e.type==="application/x-moz-file"||xv(e,t);return[n,n?null:Nv(t)]}function Td(e,t,n){if(tr(e.size))if(tr(t)&&tr(n)){if(e.size>n)return[!1,Sd(n)];if(e.size<t)return[!1,Dd(t)]}else{if(tr(t)&&e.size<t)return[!1,Dd(t)];if(tr(n)&&e.size>n)return[!1,Sd(n)]}return[!0,null]}function tr(e){return e!=null}function Pv(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(l){var u=Fd(l,n),c=Io(u,1),d=c[0],f=Td(l,r,o),p=Io(f,1),h=p[0],y=a?a(l):null;return d&&h&&!y})}function Ri(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ni(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 Id(e){e.preventDefault()}function Bv(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function $v(e){return e.indexOf("Edge/")!==-1}function jv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Bv(e)||$v(e)}function Yt(){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!Ri(r)&&a&&a.apply(void 0,[r].concat(i)),Ri(r)})}}function Hv(){return"showOpenFilePicker"in window}function Lv(e){if(tr(e)){var t=Object.entries(e).filter(function(n){var r=Io(n,2),o=r[0],i=r[1],s=!0;return Md(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(Rd))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Io(r,2),i=o[0],s=o[1];return Cd(Cd({},n),{},Ed({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Vv(e){if(tr(e))return Object.entries(e).reduce(function(t,n){var r=Io(n,2),o=r[0],i=r[1];return[].concat(Ad(t),[o],Ad(i))},[]).filter(function(t){return Md(t)||Rd(t)}).join(",")}function Uv(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function zv(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Md(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Rd(e){return/^.*\.[\w]+$/.test(e)}var Gv=["children"],Wv=["open"],Zv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Qv=["refKey","onChange","onClick"];function Kv(e){return Jv(e)||Yv(e)||Nd(e)||Xv()}function Xv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
38
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jv(e){if(Array.isArray(e))return Ia(e)}function Ta(e,t){return t_(e)||e_(e,t)||Nd(e,t)||qv()}function qv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
39
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nd(e,t){if(!!e){if(typeof e=="string")return Ia(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 Ia(e,t)}}function Ia(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 e_(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(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function t_(e){if(Array.isArray(e))return e}function Od(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Od(Object(n),!0).forEach(function(r){Ma(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e,t){if(e==null)return{};var n=n_(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 n_(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 Ra=hi(function(e,t){var n=e.children,r=Oi(e,Gv),o=Bd(r),i=o.open,s=Oi(o,Wv);return Os(t,function(){return{open:i}},[i]),F.createElement(fe,null,n(ce(ce({},s),{},{open:i})))});Ra.displayName="Dropzone";var Pd={disabled:!1,getFilesFromEvent:hv,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};Ra.defaultProps=Pd,Ra.propTypes={children:K.exports.func,accept:K.exports.objectOf(K.exports.arrayOf(K.exports.string)),multiple:K.exports.bool,preventDropOnDocument:K.exports.bool,noClick:K.exports.bool,noKeyboard:K.exports.bool,noDrag:K.exports.bool,noDragEventsBubbling:K.exports.bool,minSize:K.exports.number,maxSize:K.exports.number,maxFiles:K.exports.number,disabled:K.exports.bool,getFilesFromEvent:K.exports.func,onFileDialogCancel:K.exports.func,onFileDialogOpen:K.exports.func,useFsAccessApi:K.exports.bool,autoFocus:K.exports.bool,onDragEnter:K.exports.func,onDragLeave:K.exports.func,onDragOver:K.exports.func,onDrop:K.exports.func,onDropAccepted:K.exports.func,onDropRejected:K.exports.func,onError:K.exports.func,validator:K.exports.func};var Na={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Bd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ce(ce({},Pd),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,_=t.autoFocus,I=t.preventDropOnDocument,R=t.noClick,B=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ae=t.validator,De=Q(function(){return Vv(n)},[n]),Ke=Q(function(){return Lv(n)},[n]),nt=Q(function(){return typeof w=="function"?w:$d},[w]),Fe=Q(function(){return typeof y=="function"?y:$d},[y]),ve=L(null),ge=L(null),jr=ho(r_,Na),Hr=Ta(jr,2),Jt=Hr[0],_e=Hr[1],Mo=Jt.isFocused,ht=Jt.isFileDialogActive,Lr=L(typeof window<"u"&&window.isSecureContext&&b&&Hv()),Pi=function(){!Lr.current&&ht&&setTimeout(function(){if(ge.current){var D=ge.current.files;D.length||(_e({type:"closeDialog"}),Fe())}},300)};W(function(){return window.addEventListener("focus",Pi,!1),function(){window.removeEventListener("focus",Pi,!1)}},[ge,ht,Fe,Lr]);var Rn=L([]),Bi=function(D){ve.current&&ve.current.contains(D.target)||(D.preventDefault(),Rn.current=[])};W(function(){return I&&(document.addEventListener("dragover",Id,!1),document.addEventListener("drop",Bi,!1)),function(){I&&(document.removeEventListener("dragover",Id),document.removeEventListener("drop",Bi))}},[ve,I]),W(function(){return!r&&_&&ve.current&&ve.current.focus(),function(){}},[ve,_,r]);var gn=de(function(A){M?M(A):console.error(A)},[M]),Ro=de(function(A){A.preventDefault(),A.persist(),Hi(A),Rn.current=[].concat(Kv(Rn.current),[A.target]),Ni(A)&&Promise.resolve(o(A)).then(function(D){if(!(Ri(A)&&!N)){var ye=D.length,Ie=ye>0&&Pv({files:D,accept:De,minSize:s,maxSize:i,multiple:a,maxFiles:l,validator:ae}),mt=ye>0&&!Ie;_e({isDragAccept:Ie,isDragReject:mt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(A)}}).catch(function(D){return gn(D)})},[o,u,gn,N,De,s,i,a,l,ae]),$i=de(function(A){A.preventDefault(),A.persist(),Hi(A);var D=Ni(A);if(D&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return D&&d&&d(A),!1},[d,N]),we=de(function(A){A.preventDefault(),A.persist(),Hi(A);var D=Rn.current.filter(function(Ie){return ve.current&&ve.current.contains(Ie)}),ye=D.indexOf(A.target);ye!==-1&&D.splice(ye,1),Rn.current=D,!(D.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ni(A)&&c&&c(A))},[ve,c,N]),rt=de(function(A,D){var ye=[],Ie=[];A.forEach(function(mt){var No=Fd(mt,De),Ur=Ta(No,2),Ba=Ur[0],$a=Ur[1],ja=Td(mt,s,i),Li=Ta(ja,2),Ha=Li[0],La=Li[1],Va=ae?ae(mt):null;if(Ba&&Ha&&!Va)ye.push(mt);else{var Ua=[$a,La];Va&&(Ua=Ua.concat(Va)),Ie.push({file:mt,errors:Ua.filter(function(E_){return E_})})}}),(!a&&ye.length>1||a&&l>=1&&ye.length>l)&&(ye.forEach(function(mt){Ie.push({file:mt,errors:[Ov]})}),ye.splice(0)),_e({acceptedFiles:ye,fileRejections:Ie,type:"setFiles"}),f&&f(ye,Ie,D),Ie.length>0&&h&&h(Ie,D),ye.length>0&&p&&p(ye,D)},[_e,a,De,s,i,l,f,p,h,ae]),Te=de(function(A){A.preventDefault(),A.persist(),Hi(A),Rn.current=[],Ni(A)&&Promise.resolve(o(A)).then(function(D){Ri(A)&&!N||rt(D,A)}).catch(function(D){return gn(D)}),_e({type:"reset"})},[o,rt,gn,N]),Pt=de(function(){if(Lr.current){_e({type:"openDialog"}),nt();var A={multiple:a,types:Ke};window.showOpenFilePicker(A).then(function(D){return o(D)}).then(function(D){rt(D,null),_e({type:"closeDialog"})}).catch(function(D){Uv(D)?(Fe(D),_e({type:"closeDialog"})):zv(D)?(Lr.current=!1,ge.current?(ge.current.value=null,ge.current.click()):gn(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."))):gn(D)});return}ge.current&&(_e({type:"openDialog"}),nt(),ge.current.value=null,ge.current.click())},[_e,nt,Fe,b,rt,gn,Ke,a]),Zd=de(function(A){!ve.current||!ve.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),Pt())},[ve,Pt]),Qd=de(function(){_e({type:"focus"})},[]),Kd=de(function(){_e({type:"blur"})},[]),Xd=de(function(){R||(jv()?setTimeout(Pt,0):Pt())},[R,Pt]),Vr=function(D){return r?null:D},Pa=function(D){return B?null:Vr(D)},ji=function(D){return P?null:Vr(D)},Hi=function(D){N&&D.stopPropagation()},A_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.role,mt=A.onKeyDown,No=A.onFocus,Ur=A.onBlur,Ba=A.onClick,$a=A.onDragEnter,ja=A.onDragOver,Li=A.onDragLeave,Ha=A.onDrop,La=Oi(A,Zv);return ce(ce(Ma({onKeyDown:Pa(Yt(mt,Zd)),onFocus:Pa(Yt(No,Qd)),onBlur:Pa(Yt(Ur,Kd)),onClick:Vr(Yt(Ba,Xd)),onDragEnter:ji(Yt($a,Ro)),onDragOver:ji(Yt(ja,$i)),onDragLeave:ji(Yt(Li,we)),onDrop:ji(Yt(Ha,Te)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},ye,ve),!r&&!B?{tabIndex:0}:{}),La)}},[ve,Zd,Qd,Kd,Xd,Ro,$i,we,Te,B,P,r]),x_=de(function(A){A.stopPropagation()},[]),C_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.onChange,mt=A.onClick,No=Oi(A,Qv),Ur=Ma({accept:De,multiple:a,type:"file",style:{display:"none"},onChange:Vr(Yt(Ie,Te)),onClick:Vr(Yt(mt,x_)),tabIndex:-1},ye,ge);return ce(ce({},Ur),No)}},[ge,n,a,Te,r]);return ce(ce({},Jt),{},{isFocused:Mo&&!r,getRootProps:A_,getInputProps:C_,rootRef:ve,inputRef:ge,open:Vr(Pt)})}function r_(e,t){switch(t.type){case"focus":return ce(ce({},e),{},{isFocused:!0});case"blur":return ce(ce({},e),{},{isFocused:!1});case"openDialog":return ce(ce({},Na),{},{isFileDialogActive:!0});case"closeDialog":return ce(ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ce(ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ce(ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ce({},Na);default:return e}}function $d(){}const o_="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==",i_="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 s_=0;function Se(e,t,n,r,o,i){var s,a,l={};for(a in t)a=="ref"?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--s_,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return E.vnode&&E.vnode(u),u}function a_({onCancel:e,onSubmit:t,onFileDrop:n}){const r=de(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:l}=Bd({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),u=a.map(d=>Se("p",{children:d.path},d.path)),c=l.map(({file:d,errors:f})=>Se("li",{children:[d.path," - ",d.size," bytes",Se("ul",{children:f.map(p=>Se("li",{children:p.message},p.code))})]},d.path));return Se("div",{...o(),children:[Se("input",{...i(),name:"file"}),Se("img",{src:u.length?i_:o_,className:"mx-auto mb-2"}),l.length?Se("div",{className:"mb-2",children:[Se("div",{className:"mb-2 font-semibold",children:"Rejected files"}),Se("ul",{children:c})]}):Se(fe,{}),u.length?Se(fe,{children:[u,Se("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"}),Se("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"})]}):Se(fe,{children:[Se("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),Se("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"})]})]})}class Ot extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class jd extends ee{constructor(t){super(),this.View=t}}class He extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function l_(){return[new jd(new Ot(0,[])),et()]}function c_(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,wo(qo(Nt,n.fields[0].fields[0].tag===1?Ee(new He(0,[new Ot(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Ee(new He(0,[new Ot(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Ee(new He(0,[new Ot(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[o])]),new He(2,[new We(0,[void 0])])]))))]:[r,wo(x([Nt(new He(0,[new Ot(1,[])])),yo(a=>{kr(a)},a=>nv(t,a),n.fields[0].fields[0],a=>new He(1,[new We(1,[a])]))]))]:n.tag===2?n.fields[0].tag===1?[r,wo(qo(Nt,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Ot(4,[Y0(a=>a.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Ot(0,[])])))))]:(kr(v.Delay(()=>v.Bind(dw(1e4),()=>(e(),v.Zero())))),[r,et()]):[new jd(n.fields[0]),et()]}const Hd={Csv:"First Name,Middle Name,Last Name,Email,Mobile Number,External ID,Title,Gender,DoB,Address Line 1,Address Line 2,City,State,PostCode,CountryCode",Filename:"ProfileImportCsvTemplate.csv"},Ld=ov,Vd=iv,u_=sv;function Ud(e,t,n){let r;return m("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 f_(e){let t;const n=e.dispatch,r=go(!1),o=r[1],i=go(0),s=i[0]|0,a=go(new FormData),l=a[0];return m("form",$(x([["key",s],(t=Ct(H(()=>he(O(m(a_,{onCancel:()=>{i[1](s+1),a[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(u,c)=>{l.set("file",u,c)}})),H(()=>{let u,c,d,f,p,h,y;return r[0]?O((u=x([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],(c=[m("div",$(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[m("div",$(x([["className","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"],(f=[(p=x([m("div",$(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(h=[m("img",{src:Ld,className:"mx-auto"}),m("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),m("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(h))])]))),m("div",$(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(y=[m("button",{type:"button",className:"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",children:"I confirm",onClick:w=>{n(new He(1,[new We(0,[l])]))}}),m("button",{type:"button",className:"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",children:"Cancel",onClick:w=>{o(!1)}})],["children",C.Children.toArray(Array.from(y))])])))]),m("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(c))])])))]),m("div",{children:C.Children.toArray(Array.from(u))}))):ys()})))),["children",C.Children.toArray(Array.from(t))])])))}function d_(e){let t,n,r,o,i,s,a,l;const u=e.onDone,c=e.importService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,h=cd(l_(),(b,_)=>c_(d,c,b,_)),y=h[1];af(()=>{y(new He(2,[new We(1,[f])]))},[f]);const w=x([m("div",$(x([["className","space-y-6"],(t=[(n=x([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
39
40
  The file will be validated `,m("b",{children:["before"]}),` creating the profiles.
40
41
  If validation fails, the file will be rejected, and no profiles created.
41
- You'll get an error report to fix the information before re-uploading.`]),m("p",{children:x.Children.toArray(Array.from(n))})),m("p",{children:"This feature doesn't update existing profiles in the account."}),(r=E([m("span",{children:["Not sure how to get started?"]}),m("ul",H(E([["className","ml-6 list-disc list-outside"],(o=[(i=E([Ou(Nu.Csv,Nu.Filename,"Download")," a blank CSV template"]),m("li",{children:x.Children.toArray(Array.from(i))})),(s=E([m("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"]),m("li",{children:x.Children.toArray(Array.from(s))}))],["children",x.Children.toArray(Array.from(o))])])))]),m("div",{children:x.Children.toArray(Array.from(r))}))],["children",x.Children.toArray(Array.from(t))])]))),m("div",H(E([["className","px-8 mt-10"],(l=[m("div",H(E([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(a=Et($(()=>{let _,b,F,R;const B=h[0].View;switch(B.tag){case 1:return O((_=E([m("img",{src:Pu,className:"mx-auto animate-spin"}),m("p",{className:"mt-2",children:"Validating data"})]),m("div",{children:x.Children.toArray(Array.from(_))})));case 2:{const P=B.fields[0];return O((b=Et($(()=>{const N=ne=>{let Ee;return m("p",H(E([["className","mt-6"],(Ee=["Download the full error report ",Ou(fn(`\r
42
- `,_c(Ti(Fe(Fe("Row,Column,Error")),ii(Le=>ii(Je=>fn(",",dn(xe=>`"${xe}"`,dn(xe=>M0(xe,'"','""'),[bn(Le.RowId),Je.Column,Je.Message],null),null)),Le.FieldErrors),ne)))),`${p}_validation_errors.csv`,"here"),"."],["children",x.Children.toArray(Array.from(Ee))])])))};let M;if(P.tag===1)M=m("p",{children:["Invalid file name"]});else if(P.tag===2)M=m("p",{children:["CSV exceeds max row limit"]});else if(P.tag===3)M=m("p",{children:[P.fields[0]]});else if(P.tag===4)M=m("p",{children:["CSV does not contain any data"]});else if(P.tag===5)M=m("p",{children:["File not uploaded, ensure a file is selected"]});else if(P.tag===6)M=m("p",{children:["Only a single file is allowed"]});else if(P.tag===8)M=m("p",{children:["Unknown account"]});else if(P.tag===7)if(J0(P.fields[0])<=10){const ne=Et($(()=>ge(O(m("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),$(()=>ge(Rc(Ee=>Be(Le=>m("li",{children:[`Row ${Ee.RowId}, Column ${Le.Column}: ${Le.Message}`]}),Ee.FieldErrors),P.fields[0]),$(()=>O(N(P.fields[0]))))))));M=m("div",{children:x.Children.toArray(Array.from(ne))})}else{const ne=E([m("p",{children:["The file contains more than 10 validation errors"]}),N(P.fields[0])]);M=m("div",{children:x.Children.toArray(Array.from(ne))})}else M=P.tag===9?m("p",{children:["An import is already in progress"]}):m("p",{children:["Invalid file type"]});return ge(O(m("img",{src:Qd,className:"mx-auto"})),$(()=>ge(O(m("div",{className:"mt-2",children:x.Children.toArray([M])})),$(()=>O(m("button",{type:"button",children:"Upload another file",className:"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",onClick:ne=>{y(new Re(0,[new kt(0,[])]))}}))))))})),m("div",{children:x.Children.toArray(Array.from(b))})))}case 3:{const P=B.fields[0];return O((F=E([m("img",{src:Pu,className:"mx-auto animate-spin"}),m("p",{className:"mt-2 mb-6",children:"Creating profiles"}),m("p",{children:[`Creator: ${P.User}`]}),m("p",{children:[`Filename: ${P.Filename}`]}),m("p",{children:[`Rows processed: ${P.CompletedSuccessfully+P.CompletedFailed}`]}),m("p",{children:[`Total rows: ${P.NumberOfRecords}`]})]),m("div",{children:x.Children.toArray(Array.from(F))})))}case 4:{const P=B.fields[0];return O((R=E([m("img",{src:hb,className:"mx-auto"}),m("p",{className:"mt-2 mb-6",children:`${P.Succeeded} Profiles successfully created`}),m(Rd,{importId:P.ImportId,fetchImport:N=>Md(u,N),onDone:c})]),m("div",{children:x.Children.toArray(Array.from(R))})))}case 5:return O(yo(B.fields[0]));default:return O(m(mb,{dispatch:y}))}})),["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(l))])])))]);return m("div",{children:x.Children.toArray(Array.from(w))})}function Ul(){return(Ul=Object.assign||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)}function wb(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,l={},a=Object.keys(r);for(s=0;s<a.length;s++)o.indexOf(i=a[s])>=0||(l[i]=r[i]);return l}(e,["context","children"]);return _l(t,n)}function yb(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(wb,Ul({},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,l=n.attributes,a=n.childNodes;for(s=l.length;s--;)l[s].name!=="slot"&&(i[l[s].name]=l[s].value,i[Kd(l[s].name)]=l[s].value);for(s=a.length;s--;){var c=t(a[s],null),u=a[s].slot;u?i[u]=m(Bu,{name:u},c):o[s]=c}var d=r?m(Bu,null,o):o;return m(r||n.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?yl:xn)(this._vdom,this._root)}function Kd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function _b(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[Kd(e)]=n,this._vdom=_l(this._vdom,r),xn(this._vdom,this._root)}}function vb(){xn(this._vdom=null,this._root)}function Bu(e,t){var n=this;return m("slot",Ul({},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 bb(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=yb,o.prototype.attributeChangedCallback=_b,o.prototype.disconnectedCallback=vb,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 l=typeof s;s!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Ab(e,t){bb(e,t,void 0,{shadow:!0})}function Eb(e){const t=[];Jc(e)!=null&&(t.push(new Un(0,[new di(0,[])])),t.push(new Un(0,[new di(1,[])])));let n;switch(pl(e)!=null||Xc(e)!=null?n=0:n=1,n){case 0:{t.push(new Un(1,[]));break}}return E(t.slice())}function $u(e,t){return m(tv,new Q_(e.partnerId,e.accountId,zw(e.backendUrl,e.accessToken),gg(t.Roles)))}function xb(e){let t,n;const r=wg(e.accessToken),o=e.accountId,i=r.Roles;let s;switch(o==null&&(Xc(i)!=null||pl(i)!=null)?s=0:s=1,s){case 0:{const l=E([m("style",{children:[ms]}),m(vu,{tabs:Fe(new Un(1,[])),currentTab:new Un(1,[]),setCurrentTab:a=>{}}),m("div",H(E([["className","mt-4"],(t=[$u(e,r)],["children",x.Children.toArray(Array.from(t))])])))]);return m("div",{children:x.Children.toArray(Array.from(l))})}case 1:{let l,a;switch(o!=null&&Jc(i)!=null?(l=0,a=o):l=1,l){case 0:{const c=ov(e.backendUrl,a,e.accessToken),u=Z_(Sw,(y,w)=>Dw(()=>iv(c),y,w)),d=u[0],f=u[1],p=Eb(r.Roles),h=E([m("style",{children:[ms]}),m(vu,{tabs:p,currentTab:d.CurrentTab,setCurrentTab:y=>{f(new lo(0,[y]))}}),m("div",H(E([["className","mt-4"],(n=Et($(()=>{const y=d.CurrentTab;if(y.tag===0){const w=d.AccountImports;let _,b,F,R;switch(w.tag===1?_=0:w.tag===3?(_=1,b=w.fields[0]):w.tag===2?w.fields[0].tag===0?(_=3,R=w.fields[0].fields[0]):(_=2,F=w.fields[0].fields[0]):_=0,_){case 0:return O(m("div",{children:["Please wait..."]}));case 1:return O(yo(b.message));case 2:return O(yo(F));case 3:return y.fields[0].tag===1?O(m(lv,{accountImports:R,fetchImport:B=>Md(c,B)})):O(m(gb,{accountId:a,accountImports:R,dispatchFetchImports:()=>{f(new lo(1,[new Ge(0,[void 0])]))},importService:c,onDone:()=>{f(new lo(0,[new Un(0,[new di(1,[])])]))}}))}}else return O($u(e,r))})),["children",x.Children.toArray(Array.from(n))])])))]);return m("div",{children:x.Children.toArray(Array.from(h))})}case 1:{const c=E([m("style",{children:[ms]}),m("div",{children:"You do not have the appropriate permissions to view or do the imports."})]);return m("div",{children:x.Children.toArray(Array.from(c))})}}}}}function Cb(){Ab(e=>m(xb,e),"superhero-profile-directory-app")}Cb();
42
+ You'll get an error report to fix the information before re-uploading.`]),m("p",{children:C.Children.toArray(Array.from(n))})),m("p",{children:"This feature doesn't update existing profiles in the account."}),(r=x([m("span",{children:["Not sure how to get started?"]}),m("ul",$(x([["className","ml-6 list-disc list-outside"],(o=[(i=x([Ud(Hd.Csv,Hd.Filename,"Download")," a blank CSV template"]),m("li",{children:C.Children.toArray(Array.from(i))})),(s=x([m("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"]),m("li",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(o))])])))]),m("div",{children:C.Children.toArray(Array.from(r))}))],["children",C.Children.toArray(Array.from(t))])]))),m("div",$(x([["className","px-8 mt-10"],(a=[m("div",$(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=Ct(H(()=>{let b,_,I,R;const B=h[0].View;switch(B.tag){case 1:return O((b=x([m("img",{src:Vd,className:"mx-auto animate-spin"}),m("p",{className:"mt-2",children:"Validating data"})]),m("div",{children:C.Children.toArray(Array.from(b))})));case 2:{const P=B.fields[0];return O((_=Ct(H(()=>{const N=ae=>{let De;return m("p",$(x([["className","mt-6"],(De=["Download the full error report ",Ud(on(`\r
43
+ `,$l(Jo(Ee(Ee("Row,Column,Error")),qo(Ke=>qo(nt=>on(",",sn(Fe=>`"${Fe}"`,sn(Fe=>F0(Fe,'"','""'),[wn(Ke.RowId),nt.Column,nt.Message],null),null)),Ke.FieldErrors),ae)))),`${p}_validation_errors.csv`,"here"),"."],["children",C.Children.toArray(Array.from(De))])])))};let M;if(P.tag===1)M=m("p",{children:["Invalid file name"]});else if(P.tag===2)M=m("p",{children:["CSV exceeds max row limit"]});else if(P.tag===3)M=m("p",{children:[P.fields[0]]});else if(P.tag===4)M=m("p",{children:["CSV does not contain any data"]});else if(P.tag===5)M=m("p",{children:["File not uploaded, ensure a file is selected"]});else if(P.tag===6)M=m("p",{children:["Only a single file is allowed"]});else if(P.tag===8)M=m("p",{children:["Unknown account"]});else if(P.tag===7)if(Z0(P.fields[0])<=10){const ae=Ct(H(()=>he(O(m("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),H(()=>he(lc(De=>Ne(Ke=>m("li",{children:[`Row ${De.RowId}, Column ${Ke.Column}: ${Ke.Message}`]}),De.FieldErrors),P.fields[0]),H(()=>O(N(P.fields[0]))))))));M=m("div",{children:C.Children.toArray(Array.from(ae))})}else{const ae=x([m("p",{children:["The file contains more than 10 validation errors"]}),N(P.fields[0])]);M=m("div",{children:C.Children.toArray(Array.from(ae))})}else M=P.tag===9?m("p",{children:["An import is already in progress"]}):m("p",{children:["Invalid file type"]});return he(O(m("img",{src:Ld,className:"mx-auto"})),H(()=>he(O(m("div",{className:"mt-2",children:C.Children.toArray([M])})),H(()=>O(m("button",{type:"button",children:"Upload another file",className:"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",onClick:ae=>{y(new He(0,[new Ot(0,[])]))}}))))))})),m("div",{children:C.Children.toArray(Array.from(_))})))}case 3:{const P=B.fields[0];return O((I=x([m("img",{src:Vd,className:"mx-auto animate-spin"}),m("p",{className:"mt-2 mb-6",children:"Creating profiles"}),m("p",{children:[`Creator: ${P.User}`]}),m("p",{children:[`Filename: ${P.Filename}`]}),m("p",{children:[`Rows processed: ${P.CompletedSuccessfully+P.CompletedFailed}`]}),m("p",{children:[`Total rows: ${P.NumberOfRecords}`]})]),m("div",{children:C.Children.toArray(Array.from(I))})))}case 4:{const P=B.fields[0];return O((R=x([m("img",{src:u_,className:"mx-auto"}),m("p",{className:"mt-2 mb-6",children:`${P.Succeeded} Profiles successfully created`}),m(pd,{importId:P.ImportId,fetchImport:N=>dd(c,N),onDone:u})]),m("div",{children:C.Children.toArray(Array.from(R))})))}case 5:return O(Fo(B.fields[0]));default:return O(m(f_,{dispatch:y}))}})),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])])))]);return m("div",{children:C.Children.toArray(Array.from(w))})}function Oa(){return(Oa=Object.assign||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)}function p_(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,["context","children"]);return Rs(t,n)}function h_(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(p_,Oa({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[zd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),c=l[s].slot;c?i[c]=m(Gd,{name:c},u):o[s]=u}var d=r?m(Gd,null,o):o;return m(r||n.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ms:Dn)(this._vdom,this._root)}function zd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function m_(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[zd(e)]=n,this._vdom=Rs(this._vdom,r),Dn(this._vdom,this._root)}}function g_(){Dn(this._vdom=null,this._root)}function Gd(e,t){var n=this;return m("slot",Oa({},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 w_(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=h_,o.prototype.attributeChangedCallback=m_,o.prototype.disconnectedCallback=g_,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function y_(e,t){w_(e,t,void 0,{shadow:!0})}function b_(e){const t=[];Qc(e)!=null&&(t.push(new Qn(0,[new gi(0,[])])),t.push(new Qn(0,[new gi(1,[])])));let n;switch(Es(e)!=null||Kc(e)!=null?n=0:n=1,n){case 0:{t.push(new Qn(1,[]));break}}return x(t.slice())}function Wd(e,t){return m(Yb,new zb(e.partnerId,e.accountId,Hw(e.backendUrl,e.accessToken),dg(t.Roles)))}function v_(e){let t,n;const r=pg(e.accessToken),o=e.accountId,i=r.Roles;let s;switch(o==null&&(Kc(i)!=null||Es(i)!=null)?s=0:s=1,s){case 0:{const a=x([m("style",{children:[ka]}),m(ud,{tabs:Ee(new Qn(1,[])),currentTab:new Qn(1,[]),setCurrentTab:l=>{}}),m("div",$(x([["className","mt-4"],(t=[Wd(e,r)],["children",C.Children.toArray(Array.from(t))])])))]);return m("div",{children:C.Children.toArray(Array.from(a))})}case 1:{let a,l;switch(o!=null&&Qc(i)!=null?(a=0,l=o):a=1,a){case 0:{const u=ev(e.backendUrl,l,e.accessToken),c=Ub(Aw,(y,w)=>xw(()=>tv(u),y,w)),d=c[0],f=c[1],p=b_(r.Roles),h=x([m("style",{children:[ka]}),m(ud,{tabs:p,currentTab:d.CurrentTab,setCurrentTab:y=>{f(new bo(0,[y]))}}),m("div",$(x([["className","mt-4"],(n=Ct(H(()=>{const y=d.CurrentTab;if(y.tag===0){const w=d.AccountImports;let b,_,I,R;switch(w.tag===1?b=0:w.tag===3?(b=1,_=w.fields[0]):w.tag===2?w.fields[0].tag===0?(b=3,R=w.fields[0].fields[0]):(b=2,I=w.fields[0].fields[0]):b=0,b){case 0:return O(m("div",{children:["Please wait..."]}));case 1:return O(Fo(_.message));case 2:return O(Fo(I));case 3:return y.fields[0].tag===1?O(m(rv,{accountImports:R,fetchImport:B=>dd(u,B)})):O(m(d_,{accountId:l,accountImports:R,dispatchFetchImports:()=>{f(new bo(1,[new We(0,[void 0])]))},importService:u,onDone:()=>{f(new bo(0,[new Qn(0,[new gi(1,[])])]))}}))}}else return O(Wd(e,r))})),["children",C.Children.toArray(Array.from(n))])])))]);return m("div",{children:C.Children.toArray(Array.from(h))})}case 1:{const u=x([m("style",{children:[ka]}),m("div",{children:"You do not have the appropriate permissions to view or do the imports."})]);return m("div",{children:C.Children.toArray(Array.from(u))})}}}}}function __(){y_(e=>m(v_,e),"superhero-profile-directory-app")}__()})();