@flarehr/superhero-basic-profile 3.79.68 → 3.81.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dialog-warning.cc77f3ba.svg +5 -0
- package/dist/assets/index.563ec337.css +1 -0
- package/dist/index.html +2 -2
- package/dist/superhero-basic-profile.js +16 -16
- package/package.json +1 -1
- package/dist/assets/dialog-warning.47bbbd52.svg +0 -17
- package/dist/assets/index.1a465540.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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,
|
|
3
|
-
`)+" }"}function yp(e){const t=Object.values(e).map(n=>cn(n));return Er(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 Cp(e){return e instanceof Promise}function qo(e){return Ap(e)||Cp(e)?e:new Error(String(e))}const Dn=Symbol("numeric");function Gu(e){return typeof e=="number"||(e==null?void 0:e[Dn])}function Ep(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 Er([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)}}},xp=28,Sp=1,Wn=1e6,Kl=1e6,Dp=-29,kp=29,Fp=!1,vo="[big.js] ",qn=vo+"Invalid ",Ai=qn+"decimal places",Tp=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=xp,e.RM=Sp,e.NE=Dp,e.PE=kp,e.strict=Fp,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(Tp);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(),m=a=i.length,y=o.length,w=o.slice(0,a),_=w.length,b=r,T=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}T[R++]=d?u:++u,w[0]&&d?w[_]=o[m]||0:w=[o[m]]}while((m++<y||w[0]!==Ut)&&s--);return!T[0]&&R!=1&&(T.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?Fe(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 Fe(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 Fn(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(Fe(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=Fn(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=Fn(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 Fe(e){return!e.unsigned&>(e,vt)?vt:Zn(Wp(e),qr)}function Zn(e,t){Ot(t)||(t=Fn(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=Fn(t)),Zn(e,Fe(t))}function ft(e,t){if(Ln(e))return e.unsigned?_n:Mt;if(Ot(t)||(t=Fn(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(Fe(e),Fe(t)):Fe(ft(Fe(e),t));if(wt(t))return Fe(ft(e,Fe(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,m=0;return m+=s*u,p+=m>>>16,m&=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|m,d<<16|f,e.unsigned)}function tn(e,t){if(Ot(t)||(t=Fn(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(Fe(e),Fe(t)):Fe(tn(Fe(e),t));if(wt(t))return Fe(tn(e,Fe(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=Fn(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=Fn(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=Fe,Fr=Zp,Ci=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 Cs(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 Er([t,...n])}function Cs(e,t){return e.fullname===""?t.fullname===""&&ys(fo(e),fo(t),([n,r],[o,i])=>n===o&&Cs(r,i)):e.fullname===t.fullname&&ys(yt(e),yt(t),Cs)}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 Ei(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 Et=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 xi(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 C0(e){return e.kind===1?e:tl(e.getTime(),1)}function E0(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 x0(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=E0(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 Ep(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=xi(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 m=d;if(o>=0)m=o,o=-1;else if(m==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=D0(c,u,m,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 F0(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[m,y]=c.split(".");y||(y="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;m=Xi(m,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=m.length%3,T=Math.floor(m.length/3);let R=b>0?m.substr(0,b)+(T>0?",":""):"";for(let B=0;B<T;B++)R+=m.substr(b+B*3,3)+(B<T-1?",":"");m=R}return y.length>0?m+"."+y:m}),c=u+c}}else c instanceof Date?c=xi(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 T0(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 Tr(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 Co(e,t){return new Qt(e,t)}function Eo(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 Tn(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 Co(e,t)}function Te(e){return Co(e,Kt())}function z(e){return Eo(e)}function J0(e){return gc(e)}function D(e){return Di(e)}function U(e){return Tn(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(!Eo(l)){n[s]=Di(l),o=s+1,i=Tn(l);continue e}break}})(0,e),n}function In(e,t,n){let r=t,o=n;for(;!Eo(o);)r=e(r,D(o)),o=Tn(o);return r}function wc(e){return In((t,n)=>Co(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=Co(e[r],n);return n}function C(e){return ae(e,Kt())}function X0(e){let t,n;if(zt(e))return C(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,Tn(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,Tn(t)}function Fi(e,t){return In((n,r)=>Co(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,Tn(n)}function q0(e,t){return(r=>{e:for(;;){const o=r;if(Eo(o))return;{const i=e(Di(o));if(i==null){r=Tn(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(Eo(s))return;if(e(Di(s)))return i;r=i+1,o=Tn(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 x0(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 Cc(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*Cc(n*n,~~(r/2))|0}}Ie(2013265921,0,!1);Ie(2013265921,0,!0);const uh=29;Tr(uh-1,e=>Cc(2,e),Int32Array);function Es(e){return e.bound}function Yr(e,t){return e.digits[t]}function xs(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 xo(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=Ci(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=xo(1),mh=xo(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(Fr(r,Ir))),si(n,1,~~Zt(Wt(r,Jt))),Xt(n)}function Ec(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Ci(o,Ie(0,0,!1))>0){const s=bt(xs(r,i),o);si(r,i,~~Zt(Fr(s,Ir))),e=r,t=Wt(s,Jt),n=i+1;continue e}break}}function pa(e,t){const n=Es(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,xs(r,s)),At(xs(e,s),o));si(r,s,~~Zt(Fr(l,Ir))),i=Wt(l,Jt)}return Ec(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(Fr(u,Ir))|0,s=Wt(u,Jt),l=l+1|0}Ec(n,s,l)}return Xt(n)}function vh(e,t){const n=Es(e)===1,r=Es(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),Tr(~~(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)];Tr(br,e=>vr(2,e)-1,Int32Array);Tr(br,e=>vr(2,e),Int32Array);Tr(br,e=>ll(Ie(2,0,!1),e),null);~~(Ah[0].bigN/br);function Ch(e,t){return vh(e,t)}function Eh(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(;Ci(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(Fr(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 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(;Ci(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(Fr(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?(Eh(n,a,t,s),xh(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)]}}xo(2);function Ss(e){return xo(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=Ch(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),m=Dh(d,D(f)[1]),y=m[1],w=m[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,xo(10)));return z(o)?"0":fn("",ki(o))}function Fh(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&&xc(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=Tr(Ue.smallLim,Ss,null),Ue.one=ts(1),Ue.two=ts(2),Ue.zero=ts(0);function es(e){return Fh(e)&&ma(e)<Ue.smallLim?Ue.smallPosTab[ma(e)]:e}function Kn(e){return e.signInt}function re(e){return e.v}function xc(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 Th(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 Th(e,t)?-1:xc(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.",Fc="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 Ti(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 Ti(()=>(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 Ti(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{se(t)}finally{e()}})}function Tc(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 Ti(()=>(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 Ti(()=>{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 Cn(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 Ct(e){return zt(e)?C(e):e instanceof Qt?e:X0(e)}function sm(e,t,n){return Mr(()=>Tc(e,t,n))}function Mc(e,t,n){return Mr(()=>{let r=-1;return Tc(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=Cn(t);try{const o=Cn(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=Cn(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=Cn(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(()=>Cn(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(()=>Cn(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=Cn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Fc+"\\nParameter name: source");return nm(()=>{},n)}catch(r){throw se(n),r}})}function cm(e,t){return Mc(()=>Cn(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(Fc+"\\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(Te(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 Cm(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 Cm(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=>F0("({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=>{xr(2,t,[o[1]])(o[0])(r)},r)}}function Do(e,t){return new li(e,t)}function Em(e){return Do(e,void 0)}function xm(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 xm(n,e,t)}function Lc(e,t){return Dm(t,e)}function Vc(e,t){return Sm(t,e)}function Fm(e,t){return Do(t,$c(t,e))}function Tm(e,t){return Do(t,$c(t,e))}function fl(e){return Em(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 Ca(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?Ca(mo(e,t,Y(r)),I(r),J(r)):o===0?n:Ca(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 Ea(e){return new Mm(Zc(Te(e)),!1)}function Rm(){throw new Error("Enumeration not started")}function Nm(){throw new Error("Enumeration already started")}function xa(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=Ea(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xa(t)},"System.Collections.IEnumerator.get_Current"(){return xa(t)},"System.Collections.IEnumerator.MoveNext"(){return Pm(t)},"System.Collections.IEnumerator.Reset"(){t=Ea(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,Te(t),Te(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=>{xr(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(){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&>(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?`
|
|
4
4
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
5
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
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]+`.
|
|
@@ -8,7 +8,7 @@ Reason: `+t.fields[2]:t.tag===3?Qr(t.fields[0],t.fields[1],!0):t.tag===4?Qr(t.fi
|
|
|
8
8
|
|
|
9
9
|
`+fn(`
|
|
10
10
|
|
|
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=xr(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])]])},Fa=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])]])},Ta=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,[C0(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=Fi(l,Te(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 Fm(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=xr(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,m=d,y=ka(p)(m);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:Ft})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return u=>d=>{const f=r,p=u,m=d,y=Fa(p)(m);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:Ft})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return u=>d=>{const f=r,p=u,m=d,y=Ta(p)(m);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:Ft})?new g(0,[ar(f,sp(w))]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return u=>d=>{const f=r,p=u,m=d,y=Ia(p)(m);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:Ft})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return u=>d=>{const f=r,p=u,m=d,y=Ma(p)(m);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:Ft})?new g(0,[ar(f,bn(w))]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return u=>d=>{const f=r,p=u,m=d,y=Ra(p)(m);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:Ft})?new g(0,[ar(f,w.toString())]):new g(1,[[p,new S(1,[ee(f),m,"Unkown value provided for the enum"])]])}};{const u=ee(r),f=dc(gn(`Cannot generate auto decoder for %s.
|
|
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
12
|
Thoth.Json.Net only support the folluwing enum types:
|
|
13
13
|
- sbyte
|
|
14
14
|
- byte
|
|
@@ -17,8 +17,8 @@ Thoth.Json.Net only support the folluwing enum types:
|
|
|
17
17
|
- int
|
|
18
18
|
- uint32
|
|
19
19
|
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=C([m=>y=>cg(oe(2,u),oe(2,d),m,y),(s=sg(oe(2,u),oe(2,d)),m=>y=>Pa(oe(2,s),m,y))]);return f=m=>y=>rg(p,m,y),m=>y=>ig(lg,oe(2,f),m,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"?Fa:l==="System.Int16"?Ta: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",Et],["Roles",u0(Et)]),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,C(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 Cg(){return new Ag}function Eg(e,t){return new g(0,[t])}const xg=Cg();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 Fg(){return mn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],kg,()=>[["ImportId",Oe],["User",Et],["Filename",Et],["NumberOfRecords",Oe],["CompletedSuccessfully",Oe],["CompletedFailed",Oe],["NextRow",Xs(Oe)],["StartTime",co("System.DateTime")]])}class Tg 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",[],Tg,()=>[["ImportId",Oe],["User",Et],["Filename",Et],["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(Fg())],["ImportHistory",Ei(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",Et],["Message",Et]])}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",Ei(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",Et]],[],[],[],[["Item",Ei(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",Et],["Filename",Et],["TotalRecordCount",Oe],["SucceededRecordCount",Oe],["FailedRecordCount",Oe],["FailedRecords",Ei(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",Et]])}var ko,x,tf,Bn,La,nf,Fs,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 h(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&&x.vnode!=null&&x.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 Ts(e){(!e.__d&&(e.__d=!0)&&Bn.push(e)&&!ui.__r++||La!==x.debounceRendering)&&((La=x.debounceRendering)||nf)(ui)}function ui(){var e,t,n,r,o,i,s,l;for(Bn.sort(Fs);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(Fs));ui.__r=0}function af(e,t,n,r,o,i,s,l,a,c){var u,d,f,p,m,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),m=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||m,p)),m!=null?(y==null&&(y=m),typeof p.type=="function"&&p.__k===f.__k?p.__d=a=uf(p,a,e):a=cf(e,p,f,_,m,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](x.event?x.event(e):e)}function za(e){return this.l[e.type+!0](x.event?x.event(e):e)}function wl(e,t,n,r,o,i,s,l,a){var c,u,d,f,p,m,y,w,_,b,T,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=x.__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)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);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,m)})}if(u.context=b,u.props=w,u.__P=e,R=x.__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||(m=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=x.diffed)&&c(t)}catch(ne){t.__v=null,(a||i!=null)&&(t.__e=l,t.__h=!!a,i[i.indexOf(l)]=null),x.__e(ne,t,n)}}function df(e,t){x.__c&&x.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){x.__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,m=0;if(p==="svg"&&(o=!0),i!=null){for(;m<i.length;m++)if((a=i[m])&&"setAttribute"in a==!!p&&(p?a.localName===p:a.nodeType===3)){e=a,i[m]=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={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].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(m=t.props.children)?m:[m],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&go(n,0),l),i!=null)for(m=i.length;m--;)i[m]!=null&&sf(i[m]);l||("value"in f&&(m=f.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==d.value)&&ci(e,"value",m,d.value,!1),"checked"in f&&(m=f.checked)!==void 0&&m!==e.checked&&ci(e,"checked",m,d.checked,!1))}return e}function pf(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){x.__e(r,n)}}function hf(e,t,n){var r,o;if(x.unmount&&x.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){x.__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 En(e,t,n){var r,o,i;x.__&&x.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],wl(t,e=(!r&&n||t).__k=h(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){En(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,Ts(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,x={__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),Ts(this))},Rt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ts(this))},Rt.prototype.render=de,Bn=[],nf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fs=function(e,t){return e.__v.__b-t.__v.__b},ui.__r=0,rf=0;var hn,X,os,Ga,Cr=0,mf=[],Qo=[],Wa=x.__b,Za=x.__r,Qa=x.diffed,Ka=x.__c,Ja=x.unmount;function er(e,t){x.__h&&x.__h(X,e,Cr||t),Cr=0;var n=X.__H||(X.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Qo}),n.__[e]}function Ae(e){return Cr=1,Fo(yf,e)}function Fo(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);!x.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,X.__H.__h.push(n))}function Rr(e,t){var n=er(hn++,4);!x.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,X.__h.push(n))}function L(e){return Cr=5,K(function(){return{current:e}},[])}function vl(e,t,n){Cr=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 Cr=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){x.useDebugValue&&x.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=[],x.__e(t,e.__v)}}x.__b=function(e){X=null,Wa&&Wa(e)},x.__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},x.diffed=function(e){Qa&&Qa(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mf.push(t)!==1&&Ga===x.requestAnimationFrame||((Ga=x.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},x.__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=[],x.__e(r,n.__v)}}),Ka&&Ka(e,t)},x.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&&x.__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,h(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=x.__b;x.__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=x.__e;x.__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=x.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 Cf(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Cf(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 Ef(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function xf(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 h(n,i)}return o.displayName="Lazy",o.__f=!0,o}function dr(){this.u=null,this.o=null}x.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=Ef(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]=Cf(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&&h(de,null,e.fallback);return o&&(o.__h=null),[h(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(){En(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)}}),En(h(Xg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Al(e,t){var n=h(qg,{__v:e,i:t});return n.containerInfo=t,n}(dr.prototype=new Rt).__a=function(e){var t=this,n=Ef(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=""),En(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=x.event;function ow(){}function iw(){return this.cancelBubble}function sw(){return this.defaultPrevented}x.event=function(e){return nu&&(e=nu(e)),e.persist=ow,e.isPropagationStopped=iw,e.isDefaultPrevented=sw,e.nativeEvent=e};var Cl,lw={enumerable:!1,configurable:!0,get:function(){return this.class}},ru=x.vnode;x.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=x.__r;x.__r=function(e){ou&&ou(e),Cl=e.__c};var iu=x.diffed;x.diffed=function(e){iu&&iu(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Cl=null};var Ff={ReactCurrentDispatcher:{current:{readContext:function(e){return Cl.__n[e.__c].props.value}}}},aw="17.0.2";function Tf(e){return h.bind(null,e)}function Oi(e){return!!e&&e.$$typeof===Sf}function El(e){return Oi(e)?_l.apply(null,arguments):e}function If(e){return!!e.__k&&(En(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 xl(e){e()}function Of(e){return e}function Bf(){return[!1,xl]}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 F={useState:Ae,useId:wf,useReducer:Fo,useEffect:W,useLayoutEffect:Rr,useInsertionEffect:$f,useTransition:Bf,useDeferredValue:Of,useSyncExternalStore:Hf,startTransition:xl,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:h,createContext:ht,createFactory:Tf,cloneElement:El,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:xf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ff};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:Ff,cloneElement:El,createFactory:Tf,createPortal:Al,default:F,findDOMNode:Mf,flushSync:Nf,forwardRef:Pi,hydrate:kf,isValidElement:Oi,lazy:xf,memo:vf,render:Df,startTransition:xl,unmountComponentAtNode:If,unstable_batchedUpdates:Rf,useDeferredValue:Of,useInsertionEffect:$f,useSyncExternalStore:Hf,useTransition:Bf,version:aw,Component:Rt,Fragment:de,createContext:ht,createElement:h,createRef:gl,useCallback:ce,useContext:je,useDebugValue:gf,useEffect:W,useErrorBoundary:Wg,useId:wf,useImperativeHandle:vl,useLayoutEffect:Rr,useMemo:K,useReducer:Fo,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),uw=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},E=F,jf=uw;function Sl(e){return{Dispose(){e()}}}function su(e){return E.useState(e)}function Lf(e,t){jf(e,t)}function cw(e){const t=E.useRef(void 0),n=E.useRef(!1),r=E.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 E.useRef(e)}function oo(e){return E.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 Cw{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 Ew(e,t){console.error(fe(e),t)}function xw(e,t){let n,r=new Cw(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 Tt(e){return Te(t=>{t(e)})}function so(e,t,n,r){return Te(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){xw(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,[])),Tt(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 Fw(){return new kw}function Dl(e,t){const n=Eg(xg,t);return v.Return(n)}function qt(e,t){return v.Delay(t)}const pt=Fw();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 To 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 To("",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 T0(t)?[t]:hc(t,[e],void 0,0)}function Tw(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 To(e,Nn.method,Nn.headers,Nn.withCredentials,Nn.overridenMimeType,Nn.overridenResponseType,Nn.timeout,Nn.content)}function Or(e,t){return new To(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xn(e,t){return new To(t.url,t.method,Fi(t.headers,Te(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zf(e,t){return new To(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(Tw(e.method),e.url),n.onreadystatechange=()=>{let a,c,u,d,f,p,m;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])),m=Tm(V0(y=>{const w=C(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,
|
|
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.
|
|
22
22
|
Thoth.Json.Net only support the folluwing enum types:
|
|
23
23
|
- sbyte
|
|
24
24
|
- byte
|
|
@@ -27,16 +27,16 @@ Thoth.Json.Net only support the folluwing enum types:
|
|
|
27
27
|
- int
|
|
28
28
|
- uint32
|
|
29
29
|
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),Tt(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 Tl(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,Tt(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,Tt(new ke(1,[]))]:[o,io([Tt(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,Tt(new ke(1,[]))]:[new Ht(o.Mode,void 0,o.Config,void 0),io([Tt(new ke(0,[new Rl(0,[])])),Tt(t1())])]}const s1=e=>h("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_764_3455)"}),h("g",{clipPath:"url(#clip0_764_3455)"},h("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77464 18.5963 9.49318 18.9222 9.29687C19.2482 9.10056 19.6215 8.99683 20.002 8.99683C20.3825 8.99683 20.7559 9.10056 21.0818 9.29687C21.4078 9.49318 21.6741 9.77464 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6265 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9114 29.2672 30.0022 28.908 30H11.092C10.7332 30.0015 10.3801 29.9102 10.0671 29.7349C9.75404 29.5596 9.49169 29.3063 9.30555 28.9995C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),h("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),h("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),h("defs",null,h("linearGradient",{id:"paint0_linear_764_3455",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},h("stop",{stopColor:"#FECACA"}),h("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),h("clipPath",{id:"clip0_764_3455"},h("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),l1=e=>h("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},h("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=>h("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},h("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 E.createElement(e,H(t))}function u1(e){return Nl(s1,e)}const c1=u1([]),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 F.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=F.useId)!=null?du:function(){let e=Lr(),[t,n]=F.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 C1(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 E1(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 x1(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,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!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(m=>` - ${m}`).join(`
|
|
31
|
-
`),"","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(
|
|
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
|
+
`),"","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
32
|
`)].join(`
|
|
33
|
-
`));let d=c.props,f=typeof(d==null?void 0:d.className)=="function"?(...m)=>Bs(d==null?void 0:d.className(...m),l.className):Bs(d==null?void 0:d.className,l.className),p=f?{className:f}:{};return El(c,Object.assign({},ud(c.props,$s(as(l,["ref"]))),u,a,S1(c.ref,a.ref),p))}return h(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 F1="div";var wo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wo||{});function T1(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:F1,name:"Hidden"})}let mi=Ke(T1),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 F.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),m={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 F.createElement(F.Fragment,null,Boolean(s&4)&&F.createElement(mi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:wo.Focusable}),Qe({ourProps:m,theirProps:l,defaultTag:O1,name:"FocusTrap"}),Boolean(s&4)&&F.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 F.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(x1(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 F.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 F.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 F.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]),F.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 F.createElement(mi,{features:wo.Hidden,ref:n})},[n])}}var Cy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Cy||{}),Ey=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ey||{});let xy={[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,xy,e,t)}let ky="div",Fy=hi.RenderStrategy|hi.Static;function Ty(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),m=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,[T,R]=Fo(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,[Ce,Le]=K1(),{resolveContainers:Je,mainTreeNodeRef:Ee,MainTreeNode:_e}=Ay({portals:Ce,defaultContainers:[(n=T.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(xe=>xe.id==="headlessui-portal-root"?!1:xe.contains(Ee.current)&&xe instanceof HTMLElement))!=null?Xe:null},[Ee]);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(xe=>xe.contains(Ee.current)&&xe instanceof HTMLElement))!=null?Xe:null},[Ee]);mu(zr,ve);let ot=(()=>!(!N||M))();C1(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 xe of Xe){let xt=xe.target.getBoundingClientRect();xt.x===0&&xt.y===0&&xt.width===0&&xt.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},T],[b,T,B,P]),Gr=K(()=>({open:b===0}),[b]),Bo={ref:m,id:o,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":T.titleId,"aria-describedby":wn};return F.createElement(ny,{type:"Dialog",enabled:b===0,element:p,onUpdate:Z((he,Xe)=>{Xe==="Dialog"&&$e(he,{[Vs.Add]:()=>d(xe=>xe+1),[Vs.Remove]:()=>d(xe=>xe-1)})})},F.createElement(Hs,{force:!0},F.createElement(Ls,null,F.createElement(wi.Provider,{value:Yt},F.createElement(Ls.Group,{target:p},F.createElement(Hs,{force:!1},F.createElement(Oo,{slot:Gr,name:"Dialog.Description"},F.createElement(Kr,{initialFocus:l,containers:Je,features:N?$e(pe,{parent:Kr.features.RestoreFocus,leaf:Kr.features.All&~Kr.features.FocusLock}):Kr.features.None},F.createElement(Le,null,Qe({ourProps:Bo,theirProps:c,slot:Gr,defaultTag:ky,features:Fy,visible:b===0,name:"Dialog"}))))))))),F.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 F.createElement(Hs,{force:!0},F.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(Ty),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 Cd(){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,Cd),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 F.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=Cd(),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 F.createElement(l,{name:"Switch.Description"},F.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}))}}},F.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),[m,y]=M1(o,s,i),w=Z(()=>y==null?void 0:y(!m)),_=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)}),T=Z(N=>N.preventDefault()),R=K(()=>({checked:m}),[m]),B={id:r,ref:p,role:"switch",type:E1(e,f),tabIndex:0,"aria-checked":m,"aria-labelledby":d==null?void 0:d.labelledby,"aria-describedby":d==null?void 0:d.describedby,onClick:_,onKeyUp:b,onKeyPress:T},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]),F.createElement(F.Fragment,null,l!=null&&m&&F.createElement(mi,{features:wo.Hidden,...$s({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:c,checked:m,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 Ed(e,t){let n=un(e),r=L([]),o=Io(),i=$i(),s=Z((p,m=sn.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&($e(m,{[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 m=r.current.find(({el:y})=>y===p);return m?m.state!=="visible"&&(m.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,m,y)=>{a.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([w])=>w!==p)),t==null||t.chains.current[m].push([p,new Promise(w=>{a.current.push(w)})]),t==null||t.chains.current[m].push([p,new Promise(w=>{Promise.all(u.current[m].map(([_,b])=>b)).then(()=>w())})]),m==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(m)):y(m)}),f=Z((p,m,y)=>{Promise.all(u.current[m].splice(0).map(([w,_])=>_)).then(()=>{var w;(w=a.current.shift())==null||w()}).then(()=>y(m))});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",xd=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,m=L(null),y=mt(m,t),w=p.unmount?sn.Unmount:sn.Hidden,{show:_,appear:b,initial:T}=l_(),[R,B]=Ae(_?"visible":"hidden"),P=a_(),{register:N,unregister:M}=P,ne=L(null);W(()=>N(m),[N,m]),W(()=>{if(w===sn.Hidden&&m.current){if(_&&R!=="visible"){B("visible");return}return $e(R,{hidden:()=>M(m),visible:()=>N(m)})}},[R,m,N,M,_,w]);let Ce=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"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,R,Je]);let Ee=T&&!b,_e=(()=>!Je||Ee||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=Ed(()=>{B("hidden"),M(m)},P);i_({container:m,classes:Ce,direction:_e,onStart:un(ot=>{Bt.onStart(m,ot,nr)}),onStop:un(ot=>{Bt.onStop(m,ot,rr),ot==="leave"&&!Li(Bt)&&(B("hidden"),M(m))})}),W(()=>{Ee&&(w===sn.Hidden?ne.current=null:ne.current=_)},[_,Ee,R]);let ve=p,zr={ref:y};return b&&_&&T&&(ve={...ve,className:Bs(p.className,...Ce.current.enter,...Ce.current.enterFrom)}),F.createElement(ji.Provider,{value:Bt},F.createElement(I1,{value:$e(R,{visible:ct.Open,hidden:ct.Closed})|pe.flags},Qe({ourProps:zr,theirProps:ve,defaultTag:d_,features:xd,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=Ed(()=>{u("hidden")}),[f,p]=Ae(!0),m=L([n]);nt(()=>{f!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,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 T=s.current;if(!T)return;let R=T.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&u("hidden")}},[n,d]);let w={unmount:o},_=Z(()=>{var T;f&&p(!1),(T=e.beforeEnter)==null||T.call(e)}),b=Z(()=>{var T;f&&p(!1),(T=e.beforeLeave)==null||T.call(e)});return F.createElement(ji.Provider,{value:d},F.createElement(Hi.Provider,{value:y},Qe({ourProps:{...w,as:de,children:F.createElement(Sd,{ref:l,...w,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:de,features:xd,visible:c==="visible",name:"Transition"})))}function m_(e,t){let n=je(Hi)!==null,r=Ol()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(Us,{ref:t,...e}):F.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 h(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 h(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 h(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 h(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 h(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 h(Hl,t)}class hs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function C_(e){const t=Mn(e,1);return h(Hl.Panel,t)}class zo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function E_(e){const t=Mn(e,1);return h(Hl.Title,t)}class x_ 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_(C([new ps(0,["1"]),new ps(2,[e.show]),new ps(3,[[A_(C([new Xr(1,["1"]),new Xr(0,["div"]),new Xr(2,["relative z-10"]),new Xr(4,[e.cancelButtonClick]),new Xr(5,[[yu(C([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"])])),h("div",H(C([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[h("div",H(C([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[yu(C([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,[[C_(C([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,[[h("div",H(C([["key","1"],["className","sm:flex sm:items-start"],(r=Ct($(()=>{let i,s;return ge((i=e.dialogIcon,i==null?ul():(s=i,O(h("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",children:E.Children.toArray([s])})))),$(()=>{let l,a;return O(h("div",H(C([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[E_(C([new zo(1,["1"]),new zo(0,["h3"]),new zo(2,["text-lg font-medium leading-6 text-gray-900"]),new zo(3,[[h("span",{children:e.title,key:"1"})]])])),h("div",H(C([["className","mt-2"],["key","2"],(a=[h("p",{className:"text-sm text-gray-500",children:e.message})],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(l))])]))))}))})),["children",E.Children.toArray(Array.from(r))])]))),h("div",H(C([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Ct($(()=>ge(O(h("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(h("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",E.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.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 F_(e,t,n,r,o){const i=k_(t,n,r,o);return $(()=>im(i,e))}function T_(e,t,n){return F_(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()),T_(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 Fd(e,t,n){return new kd(e,t,r=>Ye(),n,oe(2,r=>{const o=xr(1,n,[r]);return i=>{o(i)}}),r=>{Ew(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),m=p[0];t.setState(m,a),au(a,p[1]),s=m}catch(p){t.onError([(u=Yn(gn("Unable to process the message: %A")),u(f)),p])}d=R_(o)}i=!1}},a=xr(1,t.syncDispatch,[l]);t.setState(r,a),au(a,Fi((()=>{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 Td(e,t){return W_(e,void 0,t)}function Z_(e,t,n){return Td(()=>Fd(e,t,(r,o)=>{}),n)}function Id(e,t,n){return Td(()=>Fd(()=>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 h("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 h("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 Fl(0,[]))?"":"hidden";return h("div",H(C([["className","basis-3/4"],(r=[h("button",{className:`${s} 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(n1())},type:"button",children:"Save"}),h("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"}),h("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:E.Children.toArray([f1])}),h("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:E.Children.toArray([d1])})],["children",E.Children.toArray(Array.from(r))])])))}function Y_(e,t,n,r){return v_(Te(new __(0,[[w_(C([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,[[h("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_(C([new wu(0,["ml-3"]),new wu(1,[[h("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 Profile Configuration","Are you sure you want to reset the current profile configuration? This action cannot be undone.",c1,"Reset",()=>{t(r1())},new x_(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 h("div",{children:["Please wait"]});case 3:return h("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 h("div",H(C([["className","flex flex-col mt-5 w-full "],(t=[h("div",H(C([["className","flex flex-row"],(n=[X_(u,pi(i.Mode)),q_(e,i,s)],["children",E.Children.toArray(Array.from(n))])]))),h("div",H(C([["className","mt-5"],(r=[Y_(u.AdminUserManagementEnabled,"User Management",l,d=>{s(new ke(3,[d]))})],["children",E.Children.toArray(Array.from(r))])]))),J_(i),ev(i,s)],["children",E.Children.toArray(Array.from(t))])])))}else return h("div",{children:[`${c.fields[0]}`]})}default:return h("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-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-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-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 h("div",H(C([["className","border-b border-gray-200"],(t=[h("nav",H(C([["className","-mb-px flex space-x-8"],(n=Ct($(()=>Be(s=>h("a",{key:uu(s),className:fn(" ",Ct($(()=>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",E.Children.toArray(Array.from(n))])])))],["children",E.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))),xn(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))),xn(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))),xn(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 m=l;return m.tag===1?v.Return(new g(1,[m.fields[0]])):v.ReturnFrom((a=m.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 h("div",H(C([["className","text-center"],(t=[h("p",{children:["Oops, something went wrong."]}),h("p",{children:[`Error: ${e}.`]}),h("p",{children:["Please refresh the page and try again."]}),h("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",E.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 h("div",H(C([["className","text-center"],(t=Ct($(()=>ge(O(h("p",{children:[`Import ID: ${c.ImportId}`]})),$(()=>ge(O(h("p",{children:[`Creator: ${c.User}`]})),$(()=>ge(O(h("p",{children:[`Filename: ${c.Filename}`]})),$(()=>ge(O(h("p",{children:[`Date started: ${Ze(c.StartTime)}`]})),$(()=>{let u;return ge((u=c.StopTime,u==null?O(He()):O(h("p",{children:[`Date completed: ${Ze(u)}`]}))),$(()=>ge(O(h("p",{children:[`Total rows: ${c.TotalRecordCount}`]})),$(()=>ge(O(h("p",{children:[`Succeeded rows: ${c.SucceededRecordCount}`]})),$(()=>ge(O(h("p",{children:[`Failed rows: ${c.FailedRecordCount}`]})),$(()=>{let d;return ge(c.FailedRecordCount>0?O(h("div",H(C([["className","mt-8"],(d=Ct($(()=>ge(O(h("p",{children:["The following profiles could not be created"]})),$(()=>Be(f=>h("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),c.FailedRecords))))),["children",E.Children.toArray(Array.from(d))])])))):ul(),$(()=>O(h("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",E.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?h("div",H(C([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[h("div",H(C([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[h("div",H(C([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[h("table",H(C([["className","min-w-full divide-y divide-gray-300"],(o=[h("thead",H(C([["className","bg-gray-100"],(i=[(s=C([h("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"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),h("tr",{children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(i))])]))),h("tbody",H(C([["className","divide-y divide-gray-200 bg-white"],(l=Ct($(()=>Be(m=>{let y;return h("tr",H(C([["key",m.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new gs(1,[m.ImportId]))}],(y=[h("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:m.ImportId}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ze(m.StartTime)}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m.User}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m.Succeeded})],["children",E.Children.toArray(Array.from(y))])])))},u.ImportHistory))),["children",E.Children.toArray(Array.from(l))])])))],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])]))):h("div",H(C([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(a=[h(Rd,{importId:f.fields[0],fetchImport:c,onDone:()=>{p(new gs(0,[]))}})],["children",E.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,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",cv="data:image/jpeg;base64,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";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 Cu(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,Cv(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 Cv(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(Ev))]):[3,2];case 1:return r=o.sent(),[2,Eu(Od(r))];case 2:return[2,Eu(zs(e.files).map(function(i){return No(i)}))]}})})}function Eu(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 Ev(e){if(typeof e.webkitGetAsEntry!="function")return xu(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Bd(t):xu(e)}function Od(e){return e.reduce(function(t,n){return Cu(Cu([],Au(t),!1),Au(Array.isArray(n)?Od(n):[n]),!1)},[])}function xu(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 xv(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(xv)),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 Tv(e)||Fv(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
|
|
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)}},
|
|
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,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",cv="data:image/jpeg;base64,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";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
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]),F.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,m=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,T=t.preventDropOnDocument,R=t.noClick,B=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ne=t.validator,Ce=K(function(){return Wv(n)},[n]),Le=K(function(){return Gv(n)},[n]),Je=K(function(){return typeof w=="function"?w:Ru},[w]),Ee=K(function(){return typeof y=="function"?y:Ru},[y]),_e=L(null),pe=L(null),nr=Fo(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"}),Ee())}},300)};W(function(){return window.addEventListener("focus",Po,!1),function(){window.removeEventListener("focus",Po,!1)}},[pe,ot,Ee,or]);var wn=L([]),Oo=function(k){_e.current&&_e.current.contains(k.target)||(k.preventDefault(),wn.current=[])};W(function(){return T&&(document.addEventListener("dragover",Iu,!1),document.addEventListener("drop",Oo,!1)),function(){T&&(document.removeEventListener("dragover",Iu),document.removeEventListener("drop",Oo))}},[_e,T]),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:Ce,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,Ce,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,Ce),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&&m&&m(Se,k),me.length>0&&p&&p(me,k)},[ve,l,Ce,s,i,a,f,p,m,ne]),xe=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]),xt=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)?(Ee(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,Ee,_,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(),xt())},[_e,xt]),Gl=ce(function(){ve({type:"focus"})},[]),Wl=ce(function(){ve({type:"blur"})},[]),Zl=ce(function(){R||(Uv()?setTimeout(xt,0):xt())},[R,xt]),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,xe)),role:typeof Se=="string"&&Se!==""?Se:"presentation"},me,_e),!r&&!B?{tabIndex:0}:{}),Zi)}},[_e,zl,Gl,Wl,Zl,Gr,Bo,he,xe,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:Ce,multiple:l,type:"file",style:{display:"none"},onChange:ir($t(Se,xe)),onClick:ir($t(it,Xd)),tabIndex:-1},me,pe);return ue(ue({},sr),Wr)}},[pe,n,l,xe,r]);return ue(ue({},Bt),{},{isFocused:zr&&!r,getRootProps:Jd,getInputProps:qd,rootRef:_e,inputRef:pe,open:ir(xt)})}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,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",ub="data:image/jpeg;base64,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";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 x.vnode&&x.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(Tt,n.fields[0].fields[0].tag===1?Te(new Re(0,[new kt(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Te(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?Te(new Re(0,[new kt(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,C([new Re(0,[new kt(3,[o])]),new Re(2,[new Ge(0,[void 0])])]))))]:[r,io(C([Tt(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(Tt,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,C([new Re(0,[new kt(3,[s])]),new Re(2,[new Ge(0,[void 0])])])):Te(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,C([new Re(0,[new kt(3,[s])]),new Re(2,[new Ge(0,[void 0])])])):Te(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 h("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 h("form",H(C([["key",s],(t=Ct($(()=>ge(O(h(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,m,y;return r[0]?O((c=C([h("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),h("div",H(C([["className","fixed inset-0 z-10 overflow-y-auto"],(u=[h("div",H(C([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[h("div",H(C([["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=C([h("div",H(C([["className","mt-3 text-center sm:mt-5 space-y-6"],(m=[h("img",{src:Qd,className:"mx-auto"}),h("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),h("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",E.Children.toArray(Array.from(m))])]))),h("div",H(C([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(y=[h("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])]))}}),h("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",E.Children.toArray(Array.from(y))])])))]),h("div",{children:E.Children.toArray(Array.from(p))}))],["children",E.Children.toArray(Array.from(f))])])))],["children",E.Children.toArray(Array.from(d))])])))],["children",E.Children.toArray(Array.from(u))])])))]),h("div",{children:E.Children.toArray(Array.from(c))}))):ul()})))),["children",E.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,m=Id(db(),(_,b)=>pb(d,u,_,b)),y=m[1];Vf(()=>{y(new Re(2,[new Ge(1,[f])]))},[f]);const w=C([h("div",H(C([["className","space-y-6"],(t=[(n=C([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
39
|
-
The file will be validated `,
|
|
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,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",ub="data:image/jpeg;base64,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";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.
|
|
39
|
+
The file will be validated `,m("b",{children:["before"]}),` creating the profiles.
|
|
40
40
|
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.`]),
|
|
42
|
-
`,_c(
|
|
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();
|