@flarehr/superhero-bank-details 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/superhero-bank-details.js +14 -14
- package/package.json +1 -1
@@ -1,19 +1,19 @@
|
|
1
|
-
(function(){"use strict";var pn,T,Ai,kt,Ii,Oi,Vr,Ni,jr,Br,Gr,Pi,mn={},Di=[],gu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vn=Array.isArray;function rt(e,t){for(var n in t)e[n]=t[n];return e}function zr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(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?pn.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 gn(e,s,r,o,null)}function gn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Ai,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Wr(){return{current:null}}function ie(e){return e.children}function je(e,t){this.props=e,this.context=t}function Vt(e,t){if(t==null)return e.__?Vt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Vt(e):null}function Fi(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 Fi(e)}}function qr(e){(!e.__d&&(e.__d=!0)&&kt.push(e)&&!jn.__r++||Ii!==T.debounceRendering)&&((Ii=T.debounceRendering)||Oi)(jn)}function jn(){var e,t,n,r,o,i,s,a;for(kt.sort(Vr);e=kt.shift();)e.__d&&(t=kt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=rt({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),Yr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Vt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Vi(s,r,a),r.__e!=i&&Fi(r)),kt.length>t&&kt.sort(Vr));jn.__r=0}function Ri(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,p,g,m,_=r&&r.__k||Di,b=t.length;for(l=wu(n,t,_,l,b),c=0;c<b;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?mn:_[d.__i]||mn,d.__i=c,m=Yr(e,d,h,o,i,s,a,l,u,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Zr(h.ref,null,d),f.push(d.ref,d.__c||p,d)),g==null&&p!=null&&(g=p),4&d.__u||h.__k===d.__k?l=Li(d,l,e):typeof d.type=="function"&&m!==void 0?l=m:p&&(l=p.nextSibling),d.__u&=-7);return n.__e=g,l}function wu(e,t,n,r,o){var i,s,a,l,u,f=n.length,c=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?gn(null,s,null,null,null):Vn(s)?gn(ie,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?gn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=_u(s,n,l,c))!==-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&h--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(a=n[i])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Vt(a)),ji(a,a));return r}function Li(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Li(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Vt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ot(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vn(e)?e.some(function(n){ot(n,t)}):t.push(e)),t}function _u(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i++}}return-1}function Hi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||gu.test(t)?n:n+"px"}function Bn(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||Hi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Hi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ni,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=jr,e.addEventListener(t,i?Gr:Br,i)):e.removeEventListener(t,i?Gr:Br,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ui(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=jr++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Yr(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,p,g,m,_,b,C,H,K,re,z,Se,Qe,nt,pe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof pe=="function")try{if(_=t.props,b="prototype"in pe&&pe.prototype.render,C=(f=pe.contextType)&&r[f.__c],H=f?C?C.props.value:f.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:(b?t.__c=c=new pe(_,H):(t.__c=c=new je(_,H),c.constructor=pe,c.render=bu),C&&C.sub(c),c.props=_,c.state||(c.state={}),c.context=H,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&pe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=rt({},c.__s)),rt(c.__s,pe.getDerivedStateFromProps(_,c.__s))),d=c.props,p=c.state,c.__v=t,h)b&&pe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&pe.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,H),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,H)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ee){Ee&&(Ee.__=t)}),K=0;K<c._sb.length;K++)c.__h.push(c._sb[K]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,H),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,g)})}if(c.context=H,c.props=_,c.__P=e,c.__e=!1,re=T.__r,z=0,b){for(c.state=c.__s,c.__d=!1,re&&re(t),f=c.render(c.props,c.state,c.context),Se=0;Se<c._sb.length;Se++)c.__h.push(c._sb[Se]);c._sb=[]}else do c.__d=!1,re&&re(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++z<25);c.state=c.__s,c.getChildContext!=null&&(r=rt(rt({},r),c.getChildContext())),b&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(d,p)),a=Ri(e,Vn(Qe=f!=null&&f.type===ie&&f.key==null?f.props.children:f)?Qe:[Qe],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),m&&(c.__E=c.__=null)}catch(Ee){if(t.__v=null,l||i!=null)if(Ee.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(nt=i.length;nt--;)zr(i[nt]);else t.__e=n.__e,t.__k=n.__k;T.__e(Ee,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=yu(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function Vi(e,t,n){for(var r=0;r<n.length;r++)Zr(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function yu(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,p,g,m=n.props,_=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!b&&(b?d.localName==b:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(_);e=document.createElementNS(o,b,_.is&&_),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(b===null)m===_||a&&e.data===_||(e.data=_);else{if(i=i&&pn.call(e.childNodes),m=n.props||mn,!a&&i!=null)for(m={},u=0;u<e.attributes.length;u++)m[(d=e.attributes[u]).name]=d.value;for(u in m)if(d=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Bn(e,u,null,d,o)}}for(u in _)d=_[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?p=d:u=="checked"?g=d:a&&typeof d!="function"||m[u]===d||Bn(e,u,d,m[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ri(e,Vn(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Vt(n,0),a,l),i!=null)for(u=i.length;u--;)zr(i[u]);a||(u="value",b=="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||b=="progress"&&!p||b=="option"&&p!==m[u])&&Bn(e,u,p,m[u],o),u="checked",g!==void 0&&g!==e[u]&&Bn(e,u,g,m[u],o))}return e}function Zr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function ji(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ji(r[o],t,n||typeof e.type!="function");n||zr(e.__e),e.__c=e.__=e.__e=void 0}function bu(e,t,n){return this.constructor(e,n)}function gt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Yr(t,e=(!r&&n||t).__k=v(ie,null,[e]),o||mn,mn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?pn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Vi(i,e,s)}function Jr(e,t){gt(e,t,Jr)}function Kr(e,t,n){var r,o,i,s,a=rt({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?pn.call(arguments,2):n),gn(e.type,a,r||e.key,o||e.ref,null)}function xe(e,t){var n={__c:t="__cC"+Pi++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,qr(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}pn=Di.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Ai=0,je.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=rt({},this.state),typeof e=="function"&&(e=e(rt({},n),this.props)),e&&rt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qr(this))},je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qr(this))},je.prototype.render=ie,kt=[],Oi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vr=function(e,t){return e.__v.__b-t.__v.__b},jn.__r=0,Ni=/(PointerCapture)$|Capture$/i,jr=0,Br=Ui(!1),Gr=Ui(!0),Pi=0;var it,D,Xr,Bi,jt=0,Gi=[],W=T,zi=W.__b,Wi=W.__r,qi=W.diffed,Yi=W.__c,Zi=W.unmount,Ji=W.__;function $t(e,t){W.__h&&W.__h(D,e,jt||t),jt=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return jt=1,wn(Xi,e)}function wn(e,t,n){var r=$t(it++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Xi(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=D,!D.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};D.u=!0;var i=D.shouldComponentUpdate,s=D.componentWillUpdate;D.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},D.shouldComponentUpdate=o}return r.__N||r.__}function F(e,t){var n=$t(it++,3);!W.__s&&ro(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function Tt(e,t){var n=$t(it++,4);!W.__s&&ro(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function M(e){return jt=5,q(function(){return{current:e}},[])}function Qr(e,t,n){jt=6,Tt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function q(e,t){var n=$t(it++,7);return ro(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function st(e,t){return jt=8,q(function(){return e},t)}function ae(e){var t=D.context[e.__c],n=$t(it++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function eo(e,t){W.useDebugValue&&W.useDebugValue(t?t(e):e)}function vu(e){var t=$t(it++,10),n=Q();return t.__=e,D.componentDidCatch||(D.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function to(){var e=$t(it++,11);if(!e.__){for(var t=D.__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 Su(){for(var e;e=Gi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gn),e.__H.__h.forEach(no),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){D=null,zi&&zi(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ji&&Ji(e,t)},W.__r=function(e){Wi&&Wi(e),it=0;var t=(D=e.__c).__H;t&&(Xr===D?(t.__h=[],D.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Gn),t.__h.forEach(no),t.__h=[],it=0)),Xr=D},W.diffed=function(e){qi&&qi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gi.push(t)!==1&&Bi===W.requestAnimationFrame||((Bi=W.requestAnimationFrame)||Cu)(Su)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Xr=D=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Gn),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],W.__e(r,n.__v)}}),Yi&&Yi(e,t)},W.unmount=function(e){Zi&&Zi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Gn(r)}catch(o){t=o}}),n.__H=void 0,t&&W.__e(t,n.__v))};var Ki=typeof requestAnimationFrame=="function";function Cu(e){var t,n=function(){clearTimeout(r),Ki&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ki&&(t=requestAnimationFrame(n))}function Gn(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function no(e){var t=D;e.__c=e.__(),D=t}function ro(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Xi(e,t){return typeof t=="function"?t(e):t}function Qi(e,t){for(var n in t)e[n]=t[n];return e}function oo(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 io(e,t){var n=t(),r=Q({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Tt(function(){o.__=n,o.u=t,so(o)&&i({t:o})},[e,n,t]),F(function(){return so(o)&&i({t:o}),e(function(){so(o)&&i({t:o})})},[e]),n}function so(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function ao(e){e()}function lo(e){return e}function uo(){return[!1,ao]}var co=Tt;function zn(e,t){this.props=e,this.context=t}function es(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:oo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(zn.prototype=new je).isPureReactComponent=!0,zn.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var ts=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ts&&ts(e)};var Eu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fo(e){function t(n){var r=Qi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Eu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ns=function(e,t){return e==null?null:ot(ot(e).map(t))},rs={map:ns,forEach:ns,count:function(e){return e?ot(e).length:0},only:function(e){var t=ot(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ot},xu=T.__e;T.__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)}xu(e,t,n,r)};var os=T.unmount;function is(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=Qi({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return is(r,t,n)})),e}function ss(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ss(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function _n(){this.__u=0,this.o=null,this.__b=null}function as(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ls(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 v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Bt(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),os&&os(e)},(_n.prototype=new je).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=as(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ss(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},_n.prototype.componentWillUnmount=function(){this.o=[]},_n.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]=is(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(ie,null,e.fallback);return o&&(o.__u&=-33),[v(ie,null,t.__a?null:e.children),o]};var us=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ku(e){return this.getChildContext=function(){return e.context},e.children}function $u(e){var t=this,n=e.h;t.componentWillUnmount=function(){gt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),gt(v(ku,{context:t.context},e.__v),t.v)}function ho(e,t){var n=v($u,{__v:e,h:t});return n.containerInfo=t,n}(Bt.prototype=new je).__a=function(e){var t=this,n=as(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),us(t,e,r)):o()};n?n(i):i()}},Bt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ot(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Bt.prototype.componentDidUpdate=Bt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){us(e,n,t)})};var cs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tu=/^(?: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]/,Mu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Au=/[A-Z0-9]/g,Iu=typeof document<"u",Ou=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function fs(e,t,n){return t.__k==null&&(t.textContent=""),gt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ds(e,t,n){return Jr(e,t),typeof n=="function"&&n(),e?e.__c:null}je.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hs=T.event;function Nu(){}function Pu(){return this.cancelBubble}function Du(){return this.defaultPrevented}T.event=function(e){return hs&&(e=hs(e)),e.persist=Nu,e.isPropagationStopped=Pu,e.isDefaultPrevented=Du,e.nativeEvent=e};var po,Fu={enumerable:!1,configurable:!0,get:function(){return this.class}},ps=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Iu&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ou(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Mu.test(s)&&(s=l):l=s="oninput":i&&Tu.test(s)?s=s.replace(Au,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ot(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ot(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Fu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=cs,ps&&ps(e)};var ms=T.__r;T.__r=function(e){ms&&ms(e),po=e.__c};var gs=T.diffed;T.diffed=function(e){gs&&gs(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),po=null};var ws={ReactCurrentDispatcher:{current:{readContext:function(e){return po.__n[e.__c].props.value},useCallback:st,useContext:ae,useDebugValue:eo,useDeferredValue:lo,useEffect:F,useId:to,useImperativeHandle:Qr,useInsertionEffect:co,useLayoutEffect:Tt,useMemo:q,useReducer:wn,useRef:M,useState:Q,useSyncExternalStore:io,useTransition:uo}}},Ru="18.3.1";function _s(e){return v.bind(null,e)}function Gt(e){return!!e&&e.$$typeof===cs}function ys(e){return Gt(e)&&e.type===ie}function bs(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function mo(e){return Gt(e)?Kr.apply(null,arguments):e}function vs(e){return!!e.__k&&(gt(null,e),!0)}function Ss(e){return e&&(e.base||e.nodeType===1&&e)||null}var Cs=function(e,t){return e(t)},Es=function(e,t){return e(t)},xs=ie,ks=Gt,x={useState:Q,useId:to,useReducer:wn,useEffect:F,useLayoutEffect:Tt,useInsertionEffect:co,useTransition:uo,useDeferredValue:lo,useSyncExternalStore:io,startTransition:ao,useRef:M,useImperativeHandle:Qr,useMemo:q,useCallback:st,useContext:ae,useDebugValue:eo,version:"18.3.1",Children:rs,render:fs,hydrate:ds,unmountComponentAtNode:vs,createPortal:ho,createElement:v,createContext:xe,createFactory:_s,cloneElement:mo,createRef:Wr,Fragment:ie,isValidElement:Gt,isElement:ks,isFragment:ys,isMemo:bs,findDOMNode:Ss,Component:je,PureComponent:zn,memo:es,forwardRef:fo,flushSync:Es,unstable_batchedUpdates:Cs,StrictMode:xs,Suspense:_n,SuspenseList:Bt,lazy:ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ws};const zt=Object.freeze(Object.defineProperty({__proto__:null,Children:rs,Component:je,Fragment:ie,PureComponent:zn,StrictMode:xs,Suspense:_n,SuspenseList:Bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ws,cloneElement:mo,createContext:xe,createElement:v,createFactory:_s,createPortal:ho,createRef:Wr,default:x,findDOMNode:Ss,flushSync:Es,forwardRef:fo,hydrate:ds,isElement:ks,isFragment:ys,isMemo:bs,isValidElement:Gt,lazy:ls,memo:es,render:fs,startTransition:ao,unmountComponentAtNode:vs,unstable_batchedUpdates:Cs,useCallback:st,useContext:ae,useDebugValue:eo,useDeferredValue:lo,useEffect:F,useErrorBoundary:vu,useId:to,useImperativeHandle:Qr,useInsertionEffect:co,useLayoutEffect:Tt,useMemo:q,useReducer:wn,useRef:M,useState:Q,useSyncExternalStore:io,useTransition:uo,version:Ru},Symbol.toStringTag,{value:"Module"}));function Be(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Lu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Hu(e){return e!=null&&typeof e.CompareTo=="function"}function Uu(e){return e!=null&&typeof e.Equals=="function"}function $s(e){return e!=null&&typeof e.GetHashCode=="function"}function go(e){return e!=null&&typeof e.Dispose=="function"}function V(e){go(e)&&e.Dispose()}function Ge(){return null}function Wn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Vu{constructor(t){this.iter=t,this.current=Ge()}"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 ee(e){return Lu(e)?e.GetEnumerator():new Vu(e[Symbol.iterator]())}function qn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class ju{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 P(e,t){return e.toString(10).padStart(t,"0")}function Bu(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ts(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Gu(e,t){return e=e,e.toString(t)}function Mt(e,t){return e=e,e.toString(t)}class at{static id(t){return at.idMap.has(t)||at.idMap.set(t,++at.count),at.idMap.get(t)}}at.idMap=new WeakMap,at.count=0;function Yn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ze(e){return e*2654435761|0}function Ms(e){return Yn(e.toString(32))}function yn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function zu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ze(e);case"bigint":return Ms(e);case"string":return Yn(e);default:return ze(at.id(e))}}function Wu(e){return $s(e)?e.GetHashCode():zu(e)}function qu(e){return e.getTime()}function Yu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=lt(e[r]);return yn(n)}function lt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ze(e);case"bigint":return Ms(e);case"string":return Yn(e);default:{if($s(e))return e.GetHashCode();if(Be(e))return Yu(e);if(e instanceof Date)return qu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>lt(r));return yn(n)}else return ze(at.id(e))}}}function As(e){return Wu(e)}function wo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Is(e,t){return wo(e,t,ke)}function Zu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!ke(e[n[o]],t[r[o]]))return!1;return!0}function ke(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Uu(e)?e.Equals(t):Be(e)?Be(t)&&Is(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Os(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Zu(e,t)}function Os(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ts(e),r=t.getTime()+Ts(t)),n===r?0:n<r?-1:1}function Zn(e,t){return e===t?0:e<t?-1:1}function Ju(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 Ns(e,t){return Ju(e,t,De)}function Ku(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=De(e[s],t[s]),i!==0)return i}return 0}function De(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Hu(e)?e.CompareTo(t):Be(e)?Be(t)?Ns(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Os(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Ku(e,t):-1}function j(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Xu(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=1e-8,a=i>.5-s&&i<.5+s?o%2===0?o:o+1:Math.round(r);return t?a/n:a}function Qu(e){Be(e)?e.splice(0):e.clear()}const Jn=new WeakMap;function Y(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Jn.set(t,e),t}function At(e){return Jn.get(e)??(t=>n=>e(t,n))}function _o(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Jn.set(t,e),t}function yo(e){return Jn.get(e)??(t=>n=>r=>e(t,n,r))}function ec(e){let t=0,n="[";for(const r of e){if(t===0)n+=We(r);else if(t===100){n+="; ...";break}else n+="; "+We(r);t++}return n+"]"}function We(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ec(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+We(i,t+1)).join(`
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
3
|
-
`)+" }"}function oc(e){const t=Object.values(e).map(n=>lt(n));return yn(t)}function ic(e,t){if(e===t)return!0;if(Wn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ke(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function sc(e,t){if(e===t)return 0;if(Wn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=De(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Fe{toJSON(){return nc(this)}toString(){return rc(this)}GetHashCode(){return oc(this)}Equals(t){return ic(this,t)}CompareTo(t){return sc(this,t)}}class Re{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 ac{constructor(t){this.message=t}}function lc(e){return e instanceof ac||e instanceof Error}function uc(e){return e instanceof Promise}function Kn(e){return lc(e)||uc(e)?e:new Error(String(e))}const Wt=Symbol("numeric");function Ps(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Wt])}function cc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function bo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Wt]().multiply(t)}function Xn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Wt]().toFixed(t)}function Qn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Wt]().toPrecision(t)}function er(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Wt]().toExponential(t)}function tr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Wt]().toHex()}class fc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Le{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Ds(this)}Equals(t){return vo(this,t)}}function $e(e){return e.generics!=null?e.generics:[]}function Ds(e){const t=Yn(e.fullname),n=$e(e).map(Ds);return yn([t,...n])}function vo(e,t){return e.fullname===""?t.fullname===""&&wo(vn(e),vn(t),([n,r],[o,i])=>n===o&&vo(r,i)):e.fullname===t.fullname&&wo($e(e),$e(t),vo)}function Fs(e,t,n,r){return new Le(e,t,n,void 0,r)}function Rs(...e){return new Le("",void 0,void 0,void 0,()=>e)}function dc(e,t,n,r){const o=new Le(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new fc(o,a,i[a],s))});return o}function hc(e){return new Le("[]",[e])}const pc=new Le("System.Object"),So=new Le("System.String"),Ls=new Le("System.Boolean"),Hs=new Le("System.Int32");function qt(e){if(Array.isArray(e))return e[0];if(e instanceof Le){const t=bn(e);if(t!=null)return qt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=bn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function Us(e){return bn(e)!=null}function bn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Vs(e){return e.generics!=null&&e.generics.length>0}function Co(e){return e.enumCases!=null&&e.enumCases.length>0}function js(e){return e.generics==null?e:new Le(e.fullname,e.generics.map(()=>pc))}function Bs(e){var t;return(t=e.generics)==null?void 0:t[0]}function Yt(e){if(Co(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function mc(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 Zt(e,t){const n=parseInt(t,10);return mc(e,isNaN(n)?t:n)[1]}function Gs(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function vn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function zs(e){if(Eo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ws(e){return e instanceof Le?e.cases!=null:e instanceof B}function qs(e){return e instanceof Le?e.fields!=null:e instanceof Fe}function Eo(e){return e.fullname.startsWith("System.Tuple")}function gc(e,t){const r=Gs(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ys(e){return e.fields==null?[]:e.fields}function wc(e,t){return e[t[0]]}function Sg(e){return e}function _c(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function yc(e,t){const n=vn(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 bc(e,t){return e}var vc=Object.defineProperty,Sc=(e,t,n)=>t in e?vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t,n)=>(Sc(e,typeof t!="symbol"?t+"":t,n),n);let Cc=class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(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"}},ut=new Cc,me=(e,t)=>{ut.isServer?F(e,t):Tt(e,t)};function ct(e){let t=M(e);return me(()=>{t.current=e},[e]),t}function nr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function It(){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 nr(()=>{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=It();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 rr(){let[e]=Q(It);return F(()=>()=>e.dispose(),[e]),e}let I=function(e){let t=ct(e);return x.useCallback((...n)=>t.current(...n),[t])};function Ec(){let e=typeof document>"u";return"useSyncExternalStore"in zt?(t=>t.useSyncExternalStore)(zt)(()=>()=>{},()=>!1,()=>!e):!1}function Jt(){let e=Ec(),[t,n]=Q(ut.isHandoffComplete);return t&&ut.isHandoffComplete===!1&&n(!1),F(()=>{t!==!0&&n(!0)},[t]),F(()=>ut.handoff(),[]),e?!1:t}var Zs;let wt=(Zs=x.useId)!=null?Zs:function(){let e=Jt(),[t,n]=x.useState(e?()=>ut.nextId():null);return me(()=>{t===null&&n(ut.nextId())},[t]),t!=null?""+t:void 0};function fe(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,fe),r}function Js(e){return ut.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ko=["[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 Ot=(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))(Ot||{}),Ks=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ks||{}),xc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xc||{});function kc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ko)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xs=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xs||{});function $c(e,t=0){var n;return e===((n=Js(e))==null?void 0:n.body)?!1:fe(t,{0(){return e.matches(ko)},1(){let r=e;for(;r!==null;){if(r.matches(ko))return!0;r=r.parentElement}return!1}})}var Tc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Tc||{});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 Nt(e){e==null||e.focus({preventScroll:!0})}let Mc=["textarea","input"].join(",");function Ac(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Mc))!=null?n:!1}function Ic(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 or(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?Ic(e):e:kc(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,h;do{if(f>=c||f+c<=0)return 0;let d=l+f;if(t&16)d=(d+c)%c;else{if(d<0)return 3;if(d>=c)return 1}h=s[d],h==null||h.focus(u),f+=a}while(h!==i.activeElement);return t&6&&Ac(h)&&h.select(),2}function ir(e,t,n){let r=ct(t);F(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Qs(e,t,n){let r=ct(t);F(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Oc(e,t,n=!0){let r=M(!1);F(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let u=function f(c){return typeof c=="function"?f(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let f of u){if(f===null)continue;let c=f instanceof HTMLElement?f:f.current;if(c!=null&&c.contains(l)||s.composed&&s.composedPath().includes(c))return}return!$c(l,Xs.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=M(null);ir("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),ir("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Qs("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ea(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 Nc(e,t){let[n,r]=Q(()=>ea(e));return me(()=>{r(ea(e))},[e.type,e.as]),me(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let ta=Symbol();function Pc(e,t=!0){return Object.assign(e,{[ta]:t})}function Te(...e){let t=M(e);F(()=>{t.current=e},[e]);let n=I(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[ta]))?void 0:n}function sr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ar||{}),_t=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_t||{});function ge({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=na(t,e);if(i)return lr(a,n,r,s);let l=o??0;if(l&2){let{static:u=!1,...f}=a;if(u)return lr(f,n,r,s)}if(l&1){let{unmount:u=!0,...f}=a;return fe(u?0:1,{0(){return null},1(){return lr({...f,hidden:!0,style:{display:"none"}},n,r,s)}})}return lr(a,n,r,s)}function lr(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=To(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let f={};if(t){let c=!1,h=[];for(let[d,p]of Object.entries(t))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(f["data-headlessui-state"]=h.join(" "))}if(o===ie&&Object.keys($o(a)).length>0){if(!Gt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(`
|
1
|
+
(function(){"use strict";var bn,T,Vi,At,Ui,Bi,oo,ji,io,so,ao,Gi,vn={},zi=[],Nu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,er=Array.isArray;function lt(e,t){for(var n in t)e[n]=t[n];return e}function lo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(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?bn.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 Sn(e,s,r,o,null)}function Sn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Vi,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function uo(){return{current:null}}function ne(e){return e.children}function Ye(e,t){this.props=e,this.context=t}function qt(e,t){if(t==null)return e.__?qt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qt(e):null}function Wi(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 Wi(e)}}function co(e){(!e.__d&&(e.__d=!0)&&At.push(e)&&!tr.__r++||Ui!==T.debounceRendering)&&((Ui=T.debounceRendering)||Bi)(tr)}function tr(){var e,t,n,r,o,i,s,a;for(At.sort(oo);e=At.shift();)e.__d&&(t=At.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=lt({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),fo(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??qt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ki(s,r,a),r.__e!=i&&Wi(r)),At.length>t&&At.sort(oo));tr.__r=0}function qi(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,p,g,m,_=r&&r.__k||zi,b=t.length;for(l=Du(n,t,_,l,b),c=0;c<b;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?vn:_[d.__i]||vn,d.__i=c,m=fo(e,d,h,o,i,s,a,l,u,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&ho(h.ref,null,d),f.push(d.ref,d.__c||p,d)),g==null&&p!=null&&(g=p),4&d.__u||h.__k===d.__k?l=Yi(d,l,e):typeof d.type=="function"&&m!==void 0?l=m:p&&(l=p.nextSibling),d.__u&=-7);return n.__e=g,l}function Du(e,t,n,r,o){var i,s,a,l,u,f=n.length,c=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Sn(null,s,null,null,null):er(s)?Sn(ne,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Sn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=Pu(s,n,l,c))!==-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&h--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(a=n[i])!=null&&!(2&a.__u)&&(a.__e==r&&(r=qt(a)),Xi(a,a));return r}function Yi(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Yi(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=qt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(er(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Pu(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i++}}return-1}function Zi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Nu.test(t)?n:n+"px"}function nr(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||Zi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Zi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ji,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=io,e.addEventListener(t,i?ao:so,i)):e.removeEventListener(t,i?ao:so,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ji(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=io++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function fo(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,p,g,m,_,b,C,G,te,ie,Y,ke,nt,at,we=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof we=="function")try{if(_=t.props,b="prototype"in we&&we.prototype.render,C=(f=we.contextType)&&r[f.__c],G=f?C?C.props.value:f.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:(b?t.__c=c=new we(_,G):(t.__c=c=new Ye(_,G),c.constructor=we,c.render=Lu),C&&C.sub(c),c.props=_,c.state||(c.state={}),c.context=G,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&we.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=lt({},c.__s)),lt(c.__s,we.getDerivedStateFromProps(_,c.__s))),d=c.props,p=c.state,c.__v=t,h)b&&we.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&we.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,G),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,G)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Me){Me&&(Me.__=t)}),te=0;te<c._sb.length;te++)c.__h.push(c._sb[te]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,G),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,g)})}if(c.context=G,c.props=_,c.__P=e,c.__e=!1,ie=T.__r,Y=0,b){for(c.state=c.__s,c.__d=!1,ie&&ie(t),f=c.render(c.props,c.state,c.context),ke=0;ke<c._sb.length;ke++)c.__h.push(c._sb[ke]);c._sb=[]}else do c.__d=!1,ie&&ie(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Y<25);c.state=c.__s,c.getChildContext!=null&&(r=lt(lt({},r),c.getChildContext())),b&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(d,p)),a=qi(e,er(nt=f!=null&&f.type===ne&&f.key==null?f.props.children:f)?nt:[nt],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),m&&(c.__E=c.__=null)}catch(Me){if(t.__v=null,l||i!=null)if(Me.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(at=i.length;at--;)lo(i[at]);else t.__e=n.__e,t.__k=n.__k;T.__e(Me,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Ru(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function Ki(e,t,n){for(var r=0;r<n.length;r++)ho(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function Ru(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,p,g,m=n.props,_=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!b&&(b?d.localName==b:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(_);e=document.createElementNS(o,b,_.is&&_),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(b===null)m===_||a&&e.data===_||(e.data=_);else{if(i=i&&bn.call(e.childNodes),m=n.props||vn,!a&&i!=null)for(m={},u=0;u<e.attributes.length;u++)m[(d=e.attributes[u]).name]=d.value;for(u in m)if(d=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;nr(e,u,null,d,o)}}for(u in _)d=_[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?p=d:u=="checked"?g=d:a&&typeof d!="function"||m[u]===d||nr(e,u,d,m[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),qi(e,er(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&qt(n,0),a,l),i!=null)for(u=i.length;u--;)lo(i[u]);a||(u="value",b=="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||b=="progress"&&!p||b=="option"&&p!==m[u])&&nr(e,u,p,m[u],o),u="checked",g!==void 0&&g!==e[u]&&nr(e,u,g,m[u],o))}return e}function ho(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function Xi(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ho(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Xi(r[o],t,n||typeof e.type!="function");n||lo(e.__e),e.__c=e.__=e.__e=void 0}function Lu(e,t,n){return this.constructor(e,n)}function bt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],fo(t,e=(!r&&n||t).__k=v(ne,null,[e]),o||vn,vn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Ki(i,e,s)}function po(e,t){bt(e,t,po)}function mo(e,t,n){var r,o,i,s,a=lt({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?bn.call(arguments,2):n),Sn(e.type,a,r||e.key,o||e.ref,null)}function Ie(e,t){var n={__c:t="__cC"+Gi++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,co(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}bn=zi.slice,T={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Vi=0,Ye.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=lt({},this.state),typeof e=="function"&&(e=e(lt({},n),this.props)),e&<(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),co(this))},Ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),co(this))},Ye.prototype.render=ne,At=[],Bi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,oo=function(e,t){return e.__v.__b-t.__v.__b},tr.__r=0,ji=/(PointerCapture)$|Capture$/i,io=0,so=Ji(!1),ao=Ji(!0),Gi=0;var ct,V,go,Qi,Yt=0,es=[],K=T,ts=K.__b,ns=K.__r,rs=K.diffed,os=K.__c,is=K.unmount,ss=K.__;function Ot(e,t){K.__h&&K.__h(V,e,Yt||t),Yt=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return Yt=1,Cn(ls,e)}function Cn(e,t,n){var r=Ot(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ls(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};V.u=!0;var i=V.shouldComponentUpdate,s=V.componentWillUpdate;V.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},V.shouldComponentUpdate=o}return r.__N||r.__}function U(e,t){var n=Ot(ct++,3);!K.__s&&vo(n.__H,t)&&(n.__=e,n.i=t,V.__H.__h.push(n))}function Nt(e,t){var n=Ot(ct++,4);!K.__s&&vo(n.__H,t)&&(n.__=e,n.i=t,V.__h.push(n))}function F(e){return Yt=5,X(function(){return{current:e}},[])}function wo(e,t,n){Yt=6,Nt(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 X(e,t){var n=Ot(ct++,7);return vo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ft(e,t){return Yt=8,X(function(){return e},t)}function ue(e){var t=V.context[e.__c],n=Ot(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(V)),t.props.value):e.__}function _o(e,t){K.useDebugValue&&K.useDebugValue(t?t(e):e)}function Hu(e){var t=Ot(ct++,10),n=re();return t.__=e,V.componentDidCatch||(V.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function yo(){var e=Ot(ct++,11);if(!e.__){for(var t=V.__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 Vu(){for(var e;e=es.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rr),e.__H.__h.forEach(bo),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){V=null,ts&&ts(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ss&&ss(e,t)},K.__r=function(e){ns&&ns(e),ct=0;var t=(V=e.__c).__H;t&&(go===V?(t.__h=[],V.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(rr),t.__h.forEach(bo),t.__h=[],ct=0)),go=V},K.diffed=function(e){rs&&rs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(es.push(t)!==1&&Qi===K.requestAnimationFrame||((Qi=K.requestAnimationFrame)||Uu)(Vu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),go=V=null},K.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rr),n.__h=n.__h.filter(function(r){return!r.__||bo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],K.__e(r,n.__v)}}),os&&os(e,t)},K.unmount=function(e){is&&is(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{rr(r)}catch(o){t=o}}),n.__H=void 0,t&&K.__e(t,n.__v))};var as=typeof requestAnimationFrame=="function";function Uu(e){var t,n=function(){clearTimeout(r),as&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);as&&(t=requestAnimationFrame(n))}function rr(e){var t=V,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),V=t}function bo(e){var t=V;e.__c=e.__(),V=t}function vo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ls(e,t){return typeof t=="function"?t(e):t}function us(e,t){for(var n in t)e[n]=t[n];return e}function So(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 Co(e,t){var n=t(),r=re({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Nt(function(){o.__=n,o.u=t,Eo(o)&&i({t:o})},[e,n,t]),U(function(){return Eo(o)&&i({t:o}),e(function(){Eo(o)&&i({t:o})})},[e]),n}function Eo(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function xo(e){e()}function ko(e){return e}function $o(){return[!1,xo]}var To=Nt;function or(e,t){this.props=e,this.context=t}function cs(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:So(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(or.prototype=new Ye).isPureReactComponent=!0,or.prototype.shouldComponentUpdate=function(e,t){return So(this.props,e)||So(this.state,t)};var fs=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fs&&fs(e)};var Bu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mo(e){function t(n){var r=us({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Bu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ds=function(e,t){return e==null?null:ut(ut(e).map(t))},hs={map:ds,forEach:ds,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},ju=T.__e;T.__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)}ju(e,t,n,r)};var ps=T.unmount;function ms(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=us({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ms(r,t,n)})),e}function gs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return gs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function En(){this.__u=0,this.o=null,this.__b=null}function ws(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _s(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 v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Zt(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ps&&ps(e)},(En.prototype=new Ye).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ws(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=gs(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},En.prototype.componentWillUnmount=function(){this.o=[]},En.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]=ms(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(ne,null,e.fallback);return o&&(o.__u&=-33),[v(ne,null,t.__a?null:e.children),o]};var ys=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Gu(e){return this.getChildContext=function(){return e.context},e.children}function zu(e){var t=this,n=e.h;t.componentWillUnmount=function(){bt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),bt(v(Gu,{context:t.context},e.__v),t.v)}function Io(e,t){var n=v(zu,{__v:e,h:t});return n.containerInfo=t,n}(Zt.prototype=new Ye).__a=function(e){var t=this,n=ws(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ys(t,e,r)):o()};n?n(i):i()}},Zt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Zt.prototype.componentDidUpdate=Zt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ys(e,n,t)})};var bs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wu=/^(?: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]/,qu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yu=/[A-Z0-9]/g,Zu=typeof document<"u",Ju=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function vs(e,t,n){return t.__k==null&&(t.textContent=""),bt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ss(e,t,n){return po(e,t),typeof n=="function"&&n(),e?e.__c:null}Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Cs=T.event;function Ku(){}function Xu(){return this.cancelBubble}function Qu(){return this.defaultPrevented}T.event=function(e){return Cs&&(e=Cs(e)),e.persist=Ku,e.isPropagationStopped=Xu,e.isDefaultPrevented=Qu,e.nativeEvent=e};var Fo,ec={enumerable:!1,configurable:!0,get:function(){return this.class}},Es=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Zu&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ju(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":qu.test(s)&&(s=l):l=s="oninput":i&&Wu.test(s)?s=s.replace(Yu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ec)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=bs,Es&&Es(e)};var xs=T.__r;T.__r=function(e){xs&&xs(e),Fo=e.__c};var ks=T.diffed;T.diffed=function(e){ks&&ks(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Fo=null};var $s={ReactCurrentDispatcher:{current:{readContext:function(e){return Fo.__n[e.__c].props.value},useCallback:ft,useContext:ue,useDebugValue:_o,useDeferredValue:ko,useEffect:U,useId:yo,useImperativeHandle:wo,useInsertionEffect:To,useLayoutEffect:Nt,useMemo:X,useReducer:Cn,useRef:F,useState:re,useSyncExternalStore:Co,useTransition:$o}}},tc="18.3.1";function Ts(e){return v.bind(null,e)}function Jt(e){return!!e&&e.$$typeof===bs}function Ms(e){return Jt(e)&&e.type===ne}function Is(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ao(e){return Jt(e)?mo.apply(null,arguments):e}function Fs(e){return!!e.__k&&(bt(null,e),!0)}function As(e){return e&&(e.base||e.nodeType===1&&e)||null}var Os=function(e,t){return e(t)},Ns=function(e,t){return e(t)},Ds=ne,Ps=Jt,k={useState:re,useId:yo,useReducer:Cn,useEffect:U,useLayoutEffect:Nt,useInsertionEffect:To,useTransition:$o,useDeferredValue:ko,useSyncExternalStore:Co,startTransition:xo,useRef:F,useImperativeHandle:wo,useMemo:X,useCallback:ft,useContext:ue,useDebugValue:_o,version:"18.3.1",Children:hs,render:vs,hydrate:Ss,unmountComponentAtNode:Fs,createPortal:Io,createElement:v,createContext:Ie,createFactory:Ts,cloneElement:Ao,createRef:uo,Fragment:ne,isValidElement:Jt,isElement:Ps,isFragment:Ms,isMemo:Is,findDOMNode:As,Component:Ye,PureComponent:or,memo:cs,forwardRef:Mo,flushSync:Ns,unstable_batchedUpdates:Os,StrictMode:Ds,Suspense:En,SuspenseList:Zt,lazy:_s,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$s};const Kt=Object.freeze(Object.defineProperty({__proto__:null,Children:hs,Component:Ye,Fragment:ne,PureComponent:or,StrictMode:Ds,Suspense:En,SuspenseList:Zt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$s,cloneElement:Ao,createContext:Ie,createElement:v,createFactory:Ts,createPortal:Io,createRef:uo,default:k,findDOMNode:As,flushSync:Ns,forwardRef:Mo,hydrate:Ss,isElement:Ps,isFragment:Ms,isMemo:Is,isValidElement:Jt,lazy:_s,memo:cs,render:vs,startTransition:xo,unmountComponentAtNode:Fs,unstable_batchedUpdates:Os,useCallback:ft,useContext:ue,useDebugValue:_o,useDeferredValue:ko,useEffect:U,useErrorBoundary:Hu,useId:yo,useImperativeHandle:wo,useInsertionEffect:To,useLayoutEffect:Nt,useMemo:X,useReducer:Cn,useRef:F,useState:re,useSyncExternalStore:Co,useTransition:$o,version:tc},Symbol.toStringTag,{value:"Module"}));function Ze(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function nc(e){return e!=null&&typeof e.GetEnumerator=="function"}function rc(e){return e!=null&&typeof e.CompareTo=="function"}function oc(e){return e!=null&&typeof e.Equals=="function"}function Rs(e){return e!=null&&typeof e.GetHashCode=="function"}function Oo(e){return e!=null&&typeof e.Dispose=="function"}function W(e){Oo(e)&&e.Dispose()}function Fe(){return null}function ir(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class ic{constructor(t){this.iter=t,this.current=Fe()}"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 oe(e){return nc(e)?e.GetEnumerator():new ic(e[Symbol.iterator]())}function sr(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class sc{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 L(e,t){return e.toString(10).padStart(t,"0")}function ac(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ls(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function lc(e,t){return e=e,e.toString(t)}function Dt(e,t){return e=e,e.toString(t)}class dt{static id(t){return dt.idMap.has(t)||dt.idMap.set(t,++dt.count),dt.idMap.get(t)}}dt.idMap=new WeakMap,dt.count=0;function ar(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Je(e){return e*2654435761|0}function Hs(e){return ar(e.toString(32))}function xn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function uc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Je(e);case"bigint":return Hs(e);case"string":return ar(e);default:return Je(dt.id(e))}}function cc(e){return Rs(e)?e.GetHashCode():uc(e)}function fc(e){return e.getTime()}function dc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ht(e[r]);return xn(n)}function ht(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Je(e);case"bigint":return Hs(e);case"string":return ar(e);default:{if(Rs(e))return e.GetHashCode();if(Ze(e))return dc(e);if(e instanceof Date)return fc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ht(r));return xn(n)}else return Je(dt.id(e))}}}function Vs(e){return cc(e)}function No(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 Us(e,t){return No(e,t,Ae)}function hc(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]||!Ae(e[n[o]],t[r[o]]))return!1;return!0}function Ae(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:oc(e)?e.Equals(t):Ze(e)?Ze(t)&&Us(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Bs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&hc(e,t)}function Bs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ls(e),r=t.getTime()+Ls(t)),n===r?0:n<r?-1:1}function lr(e,t){return e===t?0:e<t?-1:1}function pc(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 js(e,t){return pc(e,t,Be)}function mc(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=Be(e[s],t[s]),i!==0)return i}return 0}function Be(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:rc(e)?e.CompareTo(t):Ze(e)?Ze(t)?js(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Bs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?mc(e,t):-1}function O(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function gc(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=1e-8,a=i>.5-s&&i<.5+s?o%2===0?o:o+1:Math.round(r);return t?a/n:a}function wc(e){Ze(e)?e.splice(0):e.clear()}const ur=new WeakMap;function Z(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ur.set(t,e),t}function Pt(e){return ur.get(e)??(t=>n=>e(t,n))}function Do(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return ur.set(t,e),t}function Po(e){return ur.get(e)??(t=>n=>r=>e(t,n,r))}function _c(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ke(r);else if(t===100){n+="; ...";break}else n+="; "+Ke(r);t++}return n+"]"}function Ke(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return _c(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+Ke(i,t+1)).join(`
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function yc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ke(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ke(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class H{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return yc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ht(n));return t.splice(0,0,Je(this.tag)),xn(t)}Equals(t){return this===t?!0:ir(this,t)&&this.tag===t.tag?Us(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ir(this,t)?this.tag===t.tag?js(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function bc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function vc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ke(n)).join(`
|
3
|
+
`)+" }"}function Sc(e){const t=Object.values(e).map(n=>ht(n));return xn(t)}function Cc(e,t){if(e===t)return!0;if(ir(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ae(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Ec(e,t){if(e===t)return 0;if(ir(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Be(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class _e{toJSON(){return bc(this)}toString(){return vc(this)}GetHashCode(){return Sc(this)}Equals(t){return Cc(this,t)}CompareTo(t){return Ec(this,t)}}class je{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class xc{constructor(t){this.message=t}}function kc(e){return e instanceof xc||e instanceof Error}function $c(e){return e instanceof Promise}function cr(e){return kc(e)||$c(e)?e:new Error(String(e))}const Xt=Symbol("numeric");function Gs(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Xt])}function Tc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ro(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Xt]().multiply(t)}function fr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Xt]().toFixed(t)}function dr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Xt]().toPrecision(t)}function hr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Xt]().toExponential(t)}function pr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Xt]().toHex()}class Mc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Oe{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return q(this)}GetHashCode(){return zs(this)}Equals(t){return Lo(this,t)}}function Ne(e){return e.generics!=null?e.generics:[]}function zs(e){const t=ar(e.fullname),n=Ne(e).map(zs);return xn([t,...n])}function Lo(e,t){return e.fullname===""?t.fullname===""&&No(Tn(e),Tn(t),([n,r],[o,i])=>n===o&&Lo(r,i)):e.fullname===t.fullname&&No(Ne(e),Ne(t),Lo)}function Ho(e,t,n,r){return new Oe(e,t,n,void 0,r)}function mr(...e){return new Oe("",void 0,void 0,void 0,()=>e)}function Ic(e,t,n,r){const o=new Oe(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Mc(o,a,i[a],s))});return o}function Fc(e){return new Oe("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Ac(e){return new Oe("[]",[e])}const Oc=new Oe("System.Object"),kn=new Oe("System.String"),gr=new Oe("System.Boolean"),Ws=new Oe("System.Int32");function Qt(e){if(Array.isArray(e))return e[0];if(e instanceof Oe){const t=$n(e);if(t!=null)return Qt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function q(e){const t=$n(e);return t!=null?q(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>q(n)).join(",")+"]"}function qs(e){return $n(e)!=null}function $n(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ys(e){return e.generics!=null&&e.generics.length>0}function Vo(e){return e.enumCases!=null&&e.enumCases.length>0}function Zs(e){return e.generics==null?e:new Oe(e.fullname,e.generics.map(()=>Oc))}function Js(e){var t;return(t=e.generics)==null?void 0:t[0]}function en(e){if(Vo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Nc(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 tn(e,t){const n=parseInt(t,10);return Nc(e,isNaN(n)?t:n)[1]}function Ks(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Tn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Xs(e){if(Uo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Qs(e){return e instanceof Oe?e.cases!=null:e instanceof H}function ea(e){return e instanceof Oe?e.fields!=null:e instanceof _e}function Uo(e){return e.fullname.startsWith("System.Tuple")}function Dc(e,t){const r=Ks(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function ta(e){return e.fields==null?[]:e.fields}function Pc(e,t){return e[t[0]]}function Wg(e){return e}function Rc(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Lc(e,t){const n=Tn(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 Hc(e,t){return e}var Vc=Object.defineProperty,Uc=(e,t,n)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bo=(e,t,n)=>(Uc(e,typeof t!="symbol"?t+"":t,n),n);let Bc=class{constructor(){Bo(this,"current",this.detect()),Bo(this,"handoffState","pending"),Bo(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"}},pt=new Bc,ye=(e,t)=>{pt.isServer?U(e,t):Nt(e,t)};function mt(e){let t=F(e);return ye(()=>{t.current=e},[e]),t}function wr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Rt(){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 wr(()=>{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=Rt();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 _r(){let[e]=re(Rt);return U(()=>()=>e.dispose(),[e]),e}let N=function(e){let t=mt(e);return k.useCallback((...n)=>t.current(...n),[t])};function jc(){let e=typeof document>"u";return"useSyncExternalStore"in Kt?(t=>t.useSyncExternalStore)(Kt)(()=>()=>{},()=>!1,()=>!e):!1}function nn(){let e=jc(),[t,n]=re(pt.isHandoffComplete);return t&&pt.isHandoffComplete===!1&&n(!1),U(()=>{t!==!0&&n(!0)},[t]),U(()=>pt.handoff(),[]),e?!1:t}var na;let vt=(na=k.useId)!=null?na:function(){let e=nn(),[t,n]=k.useState(e?()=>pt.nextId():null);return ye(()=>{t===null&&n(pt.nextId())},[t]),t!=null?""+t:void 0};function me(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,me),r}function ra(e){return pt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let jo=["[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 Lt=(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))(Lt||{}),oa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(oa||{}),Gc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gc||{});function zc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(jo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ia=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ia||{});function Wc(e,t=0){var n;return e===((n=ra(e))==null?void 0:n.body)?!1:me(t,{0(){return e.matches(jo)},1(){let r=e;for(;r!==null;){if(r.matches(jo))return!0;r=r.parentElement}return!1}})}var qc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(qc||{});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 Ht(e){e==null||e.focus({preventScroll:!0})}let Yc=["textarea","input"].join(",");function Zc(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Yc))!=null?n:!1}function Jc(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 yr(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?Jc(e):e:zc(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,h;do{if(f>=c||f+c<=0)return 0;let d=l+f;if(t&16)d=(d+c)%c;else{if(d<0)return 3;if(d>=c)return 1}h=s[d],h==null||h.focus(u),f+=a}while(h!==i.activeElement);return t&6&&Zc(h)&&h.select(),2}function br(e,t,n){let r=mt(t);U(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function sa(e,t,n){let r=mt(t);U(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Kc(e,t,n=!0){let r=F(!1);U(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let u=function f(c){return typeof c=="function"?f(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let f of u){if(f===null)continue;let c=f instanceof HTMLElement?f:f.current;if(c!=null&&c.contains(l)||s.composed&&s.composedPath().includes(c))return}return!Wc(l,ia.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=F(null);br("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),br("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),br("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),br("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),sa("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function aa(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 Xc(e,t){let[n,r]=re(()=>aa(e));return ye(()=>{r(aa(e))},[e.type,e.as]),ye(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let la=Symbol();function Qc(e,t=!0){return Object.assign(e,{[la]:t})}function De(...e){let t=F(e);U(()=>{t.current=e},[e]);let n=N(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[la]))?void 0:n}function vr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Sr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Sr||{}),St=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(St||{});function be({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=ua(t,e);if(i)return Cr(a,n,r,s);let l=o??0;if(l&2){let{static:u=!1,...f}=a;if(u)return Cr(f,n,r,s)}if(l&1){let{unmount:u=!0,...f}=a;return me(u?0:1,{0(){return null},1(){return Cr({...f,hidden:!0,style:{display:"none"}},n,r,s)}})}return Cr(a,n,r,s)}function Cr(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=zo(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let f={};if(t){let c=!1,h=[];for(let[d,p]of Object.entries(t))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(f["data-headlessui-state"]=h.join(" "))}if(o===ne&&Object.keys(Go(a)).length>0){if(!Jt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(`
|
4
4
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
5
5
|
`)].join(`
|
6
|
-
`));let c=u.props,h=typeof(c==null?void 0:c.className)=="function"?(...p)=>sr(c==null?void 0:c.className(...p),a.className):sr(c==null?void 0:c.className,a.className),d=h?{className:h}:{};return mo(u,Object.assign({},na(u.props,$o(To(a,["ref"]))),f,l,Dc(u.ref,l.ref),d))}return v(o,Object.assign({},To(a,["ref"]),o!==ie&&l,o!==ie&&f),u)}function Dc(...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 na(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function we(e){var t;return Object.assign(fo(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $o(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function To(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ra(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&&Fc(n)?!1:r}function Fc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Rc(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let Lc="div";var Sn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Sn||{});function Hc(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 ge({ourProps:o,theirProps:r,slot:{},defaultTag:Lc,name:"Hidden"})}let ur=we(Hc),Mo=xe(null);Mo.displayName="OpenClosedContext";var Me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Me||{});function Ao(){return ae(Mo)}function Uc({value:e,children:t}){return x.createElement(Mo.Provider,{value:e},t)}var cr=(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))(cr||{});function Vc(e,t,n){let[r,o]=Q(n),i=e!==void 0,s=M(i),a=M(!1),l=M(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,I(u=>(i||o(u),t==null?void 0:t(u)))]}function Io(e,t){let n=M([]),r=I(e);F(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function jc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Cn(...e){return q(()=>Js(...e),[...e])}var En=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(En||{});function Bc(){let e=M(0);return Qs("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function xn(){let e=M(!1);return me(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function oa(e,t,n,r){let o=ct(n);F(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Gc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function ia(e){let t=I(e),n=M(!1);F(()=>(n.current=!1,()=>{n.current=!0,nr(()=>{n.current&&t()})}),[t])}function sa(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 zc="div";var aa=(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))(aa||{});function Wc(e,t){let n=M(null),r=Te(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Jt()||(s=1);let l=Cn(n);Zc({ownerDocument:l},!!(s&16));let u=Jc({ownerDocument:l,container:n,initialFocus:o},!!(s&2));Kc({ownerDocument:l,container:n,containers:i,previousActiveElement:u},!!(s&8));let f=Bc(),c=I(g=>{let m=n.current;m&&(_=>_())(()=>{fe(f.current,{[En.Forwards]:()=>{or(m,Ot.First,{skipElements:[g.relatedTarget]})},[En.Backwards]:()=>{or(m,Ot.Last,{skipElements:[g.relatedTarget]})}})})}),h=rr(),d=M(!1),p={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let m=sa(i);n.current instanceof HTMLElement&&m.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(la(m,_)||(d.current?or(n.current,fe(f.current,{[En.Forwards]:()=>Ot.Next,[En.Backwards]:()=>Ot.Previous})|Ot.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Nt(g.target)))}};return x.createElement(x.Fragment,null,!!(s&4)&&x.createElement(ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Sn.Focusable}),ge({ourProps:p,theirProps:a,defaultTag:zc,name:"FocusTrap"}),!!(s&4)&&x.createElement(ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Sn.Focusable}))}let qc=we(Wc),kn=Object.assign(qc,{features:aa}),yt=[];Gc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yt[0]!==t.target&&(yt.unshift(t.target),yt=yt.filter(n=>n!=null&&n.isConnected),yt.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 Yc(e=!0){let t=M(yt.slice());return Io(([n],[r])=>{r===!0&&n===!1&&nr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=yt.slice())},[e,yt,t]),I(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Zc({ownerDocument:e},t){let n=Yc(t);Io(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Nt(n())},[t]),ia(()=>{t&&Nt(n())})}function Jc({ownerDocument:e,container:t,initialFocus:n},r){let o=M(null),i=xn();return Io(()=>{if(!r)return;let s=t.current;s&&nr(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Nt(n.current):or(s,Ot.First)===Ks.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Kc({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=xn();oa(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=sa(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?la(a,u)?(r.current=u,Nt(u)):(s.preventDefault(),s.stopPropagation(),Nt(l)):Nt(r.current)},!0)}function la(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ua=xe(!1);function Xc(){return ae(ua)}function Oo(e){return x.createElement(ua.Provider,{value:e.force},e.children)}function Qc(e){let t=Xc(),n=ae(ca),r=Cn(e),[o,i]=Q(()=>{if(!t&&n!==null||ut.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return F(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),F(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let ef=ie;function tf(e,t){let n=e,r=M(null),o=Te(Pc(f=>{r.current=f}),t),i=Cn(r),s=Qc(r),[a]=Q(()=>{var f;return ut.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),l=ae(No),u=Jt();return me(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),me(()=>{if(a&&l)return l.register(a)},[l,a]),ia(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),u?!s||!a?null:ho(ge({ourProps:{ref:o},theirProps:n,defaultTag:ef,name:"Portal"}),a):null}let nf=ie,ca=xe(null);function rf(e,t){let{target:n,...r}=e,o={ref:Te(t)};return x.createElement(ca.Provider,{value:n},ge({ourProps:o,theirProps:r,defaultTag:nf,name:"Popover.Group"}))}let No=xe(null);function of(){let e=ae(No),t=M([]),n=I(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=I(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,q(()=>function({children:i}){return x.createElement(No.Provider,{value:o},i)},[o])]}let sf=we(tf),af=we(rf),Po=Object.assign(sf,{Group:af}),fa=xe(null);function da(){let e=ae(fa);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,da),t}return e}function ha(){let[e,t]=Q([]);return[e.length>0?e.join(" "):void 0,q(()=>function(n){let r=I(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(fa.Provider,{value:o},n.children)},[t])]}let lf="p";function uf(e,t){let n=wt(),{id:r=`headlessui-description-${n}`,...o}=e,i=da(),s=Te(t);me(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return ge({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:lf,name:i.name||"Description"})}let cf=we(uf),pa=Object.assign(cf,{}),Do=xe(()=>{});Do.displayName="StackContext";var Fo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Fo||{});function ff(){return ae(Do)}function df({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=ff(),s=I((...a)=>{t==null||t(...a),i(...a)});return me(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),x.createElement(Do.Provider,{value:s},e)}function hf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const pf=typeof Object.is=="function"?Object.is:hf,{useState:mf,useEffect:gf,useLayoutEffect:wf,useDebugValue:_f}=zt;function yf(e,t,n){const r=t(),[{inst:o},i]=mf({inst:{value:r,getSnapshot:t}});return wf(()=>{o.value=r,o.getSnapshot=t,Ro(o)&&i({inst:o})},[e,r,t]),gf(()=>(Ro(o)&&i({inst:o}),e(()=>{Ro(o)&&i({inst:o})})),[e]),_f(r),r}function Ro(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!pf(n,r)}catch{return!0}}function bf(e,t,n){return t()}const vf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sf=!vf,Cf=Sf?bf:yf,Ef="useSyncExternalStore"in zt?(e=>e.useSyncExternalStore)(zt):Cf;function xf(e){return Ef(e.subscribe,e.getSnapshot,e.getSnapshot)}function kf(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function $f(){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 Tf(){if(!jc())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let s=It();s.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}}function Mf(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Af(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Pt=kf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:It(),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:Af(n)},o=[Tf(),$f(),Mf()];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)}});Pt.subscribe(()=>{let e=Pt.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)&&Pt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Pt.dispatch("TEARDOWN",n)}});function If(e,t,n){let r=xf(Pt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return me(()=>{if(!(!e||!t))return Pt.dispatch("PUSH",e,n),()=>Pt.dispatch("POP",e,n)},[t,e]),i}let Lo=new Map,$n=new Map;function ma(e,t=!0){me(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=$n.get(r))!=null?s:1;if(a===1?$n.delete(r):$n.set(r,a-1),a!==1)return;let l=Lo.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,Lo.delete(r))}let i=(n=$n.get(r))!=null?n:0;return $n.set(r,i+1),i!==0||(Lo.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Of({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=M((r=n==null?void 0:n.current)!=null?r:null),i=Cn(o),s=I(()=>{var a;let l=[];for(let u of e)u!==null&&(u instanceof HTMLElement?l.push(u):"current"in u&&u.current instanceof HTMLElement&&l.push(u.current));if(t!=null&&t.current)for(let u of t.current)l.push(u);for(let u of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||l.some(f=>u.contains(f))||l.push(u));return l});return{resolveContainers:s,contains:I(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:q(()=>function(){return n!=null?null:x.createElement(ur,{features:Sn.Hidden,ref:o})},[o,n])}}var Nf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nf||{}),Pf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Pf||{});let Df={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},fr=xe(null);fr.displayName="DialogContext";function Tn(e){let t=ae(fr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Tn),n}return t}function Ff(e,t,n=()=>[document.body]){If(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Rf(e,t){return fe(t.type,Df,e,t)}let Lf="div",Hf=ar.RenderStrategy|ar.Static;function Uf(e,t){var n;let r=wt(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[f,c]=Q(0),h=Ao();i===void 0&&h!==null&&(i=(h&Me.Open)===Me.Open);let d=M(null),p=Te(d,t),g=Cn(d),m=e.hasOwnProperty("open")||h!==null,_=e.hasOwnProperty("onClose");if(!m&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)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,[C,H]=wn(Rf,{titleId:null,descriptionId:null,panelRef:Wr()}),K=I(()=>s(!1)),re=I(ce=>H({type:0,id:ce})),z=Jt()?l?!1:b===0:!1,Se=f>1,Qe=ae(fr)!==null,[nt,pe]=of(),{resolveContainers:Ee,mainTreeNodeRef:xt,MainTreeNode:ki}=Of({portals:nt,defaultContainers:[(n=C.panelRef.current)!=null?n:d.current]}),Lr=Se?"parent":"leaf",Hr=h!==null?(h&Me.Closing)===Me.Closing:!1,Ht=Qe||Hr?!1:z,$i=st(()=>{var ce,mt;return(mt=Array.from((ce=g==null?void 0:g.querySelectorAll("body > *"))!=null?ce:[]).find(Ve=>Ve.id==="headlessui-portal-root"?!1:Ve.contains(xt.current)&&Ve instanceof HTMLElement))!=null?mt:null},[xt]);ma($i,Ht);let Ti=Se?!0:z,hn=st(()=>{var ce,mt;return(mt=Array.from((ce=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?ce:[]).find(Ve=>Ve.contains(xt.current)&&Ve instanceof HTMLElement))!=null?mt:null},[xt]);ma(hn,Ti),Oc(Ee,K,!(!z||Se));let Mi=!(Se||b!==0);oa(g==null?void 0:g.defaultView,"keydown",ce=>{Mi&&(ce.defaultPrevented||ce.key===cr.Escape&&(ce.preventDefault(),ce.stopPropagation(),K()))}),Ff(g,!(Hr||b!==0||Qe),Ee),F(()=>{if(b!==0||!d.current)return;let ce=new ResizeObserver(mt=>{for(let Ve of mt){let Ur=Ve.target.getBoundingClientRect();Ur.x===0&&Ur.y===0&&Ur.width===0&&Ur.height===0&&K()}});return ce.observe(d.current),()=>ce.disconnect()},[b,d,K]);let[_g,yg]=ha(),bg=q(()=>[{dialogState:b,close:K,setTitleId:re},C],[b,C,K,re]),mu=q(()=>({open:b===0}),[b]),vg={ref:p,id:o,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":_g};return x.createElement(df,{type:"Dialog",enabled:b===0,element:d,onUpdate:I((ce,mt)=>{mt==="Dialog"&&fe(ce,{[Fo.Add]:()=>c(Ve=>Ve+1),[Fo.Remove]:()=>c(Ve=>Ve-1)})})},x.createElement(Oo,{force:!0},x.createElement(Po,null,x.createElement(fr.Provider,{value:bg},x.createElement(Po.Group,{target:d},x.createElement(Oo,{force:!1},x.createElement(yg,{slot:mu,name:"Dialog.Description"},x.createElement(kn,{initialFocus:a,containers:Ee,features:z?fe(Lr,{parent:kn.features.RestoreFocus,leaf:kn.features.All&~kn.features.FocusLock}):kn.features.None},x.createElement(pe,null,ge({ourProps:vg,theirProps:u,slot:mu,defaultTag:Lf,features:Hf,visible:b===0,name:"Dialog"}))))))))),x.createElement(ki,null))}let Vf="div";function jf(e,t){let n=wt(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Tn("Dialog.Overlay"),a=Te(t),l=I(f=>{if(f.target===f.currentTarget){if(ra(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),u=q(()=>({open:i===0}),[i]);return ge({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:Vf,name:"Dialog.Overlay"})}let Bf="div";function Gf(e,t){let n=wt(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Tn("Dialog.Backdrop"),a=Te(t);F(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=q(()=>({open:i===0}),[i]);return x.createElement(Oo,{force:!0},x.createElement(Po,null,ge({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:Bf,name:"Dialog.Backdrop"})))}let zf="div";function Wf(e,t){let n=wt(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Tn("Dialog.Panel"),a=Te(t,s.panelRef),l=q(()=>({open:i===0}),[i]),u=I(f=>{f.stopPropagation()});return ge({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:zf,name:"Dialog.Panel"})}let qf="h2";function Yf(e,t){let n=wt(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Tn("Dialog.Title"),a=Te(t);F(()=>(s(r),()=>s(null)),[r,s]);let l=q(()=>({open:i===0}),[i]);return ge({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:qf,name:"Dialog.Title"})}let Zf=we(Uf),Jf=we(Gf),Kf=we(Wf),Xf=we(jf),Qf=we(Yf),Ho=Object.assign(Zf,{Backdrop:Jf,Panel:Kf,Overlay:Xf,Title:Qf,Description:pa});function ed(e=0){let[t,n]=Q(e),r=xn(),o=st(l=>{r.current&&n(u=>u|l)},[t,r]),i=st(l=>!!(t&l),[t]),s=st(l=>{r.current&&n(u=>u&~l)},[n,r]),a=st(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let ga=xe(null);function wa(){let e=ae(ga);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,wa),t}return e}function td(){let[e,t]=Q([]);return[e.length>0?e.join(" "):void 0,q(()=>function(n){let r=I(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(ga.Provider,{value:o},n.children)},[t])]}let nd="label";function rd(e,t){let n=wt(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=wa(),a=Te(t);me(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),ge({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:nd,name:s.name||"Label"})}let od=we(rd),id=Object.assign(od,{}),Uo=xe(null);Uo.displayName="GroupContext";let sd=ie;function ad(e){var t;let[n,r]=Q(null),[o,i]=td(),[s,a]=ha(),l=q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},f=e;return x.createElement(a,{name:"Switch.Description"},x.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(c){n&&(c.currentTarget.tagName==="LABEL"&&c.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},x.createElement(Uo.Provider,{value:l},ge({ourProps:u,theirProps:f,defaultTag:sd,name:"Switch.Group"}))))}let ld="button";function ud(e,t){let n=wt(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...f}=e,c=ae(Uo),h=M(null),d=Te(h,t,c===null?null:c.setSwitch),[p,g]=Vc(o,s,i),m=I(()=>g==null?void 0:g(!p)),_=I(z=>{if(ra(z.currentTarget))return z.preventDefault();z.preventDefault(),m()}),b=I(z=>{z.key===cr.Space?(z.preventDefault(),m()):z.key===cr.Enter&&Rc(z.currentTarget)}),C=I(z=>z.preventDefault()),H=q(()=>({checked:p}),[p]),K={id:r,ref:d,role:"switch",type:Nc(e,h),tabIndex:0,"aria-checked":p,"aria-labelledby":c==null?void 0:c.labelledby,"aria-describedby":c==null?void 0:c.describedby,onClick:_,onKeyUp:b,onKeyPress:C},re=rr();return F(()=>{var z;let Se=(z=h.current)==null?void 0:z.closest("form");Se&&i!==void 0&&re.addEventListener(Se,"reset",()=>{g(i)})},[h,g]),x.createElement(x.Fragment,null,a!=null&&p&&x.createElement(ur,{features:Sn.Hidden,...$o({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:p,name:a,value:l})}),ge({ourProps:K,theirProps:f,slot:H,defaultTag:ld,name:"Switch"}))}let cd=we(ud),fd=ad,Vo=Object.assign(cd,{Group:fd,Label:id,Description:pa});function dd(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function jo(e,...t){e&&t.length>0&&e.classList.add(...t)}function Bo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function hd(e,t){let n=It();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,c)=>c-f);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function pd(e,t,n,r){let o=n?"enter":"leave",i=It(),s=r!==void 0?dd(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=fe(o,{enter:()=>t.enter,leave:()=>t.leave}),l=fe(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=fe(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Bo(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),jo(e,...t.base,...a,...u),i.nextFrame(()=>{Bo(e,...t.base,...a,...u),jo(e,...t.base,...a,...l),hd(e,()=>(Bo(e,...t.base,...a),jo(e,...t.base,...t.entered),s()))}),i.dispose}function md({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=xn(),a=rr(),l=ct(n);me(()=>{e&&(l.current="enter")},[e]),me(()=>{let u=It();a.add(u.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return u.dispose(),o.current(l.current),u.add(pd(f,r.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function bt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let dr=xe(null);dr.displayName="TransitionContext";var gd=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gd||{});function wd(){let e=ae(dr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function _d(){let e=ae(hr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let hr=xe(null);hr.displayName="NestingContext";function pr(e){return"children"in e?pr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _a(e,t){let n=ct(e),r=M([]),o=xn(),i=rr(),s=I((d,p=_t.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===d);g!==-1&&(fe(p,{[_t.Unmount](){r.current.splice(g,1)},[_t.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var m;!pr(r)&&o.current&&((m=n.current)==null||m.call(n))}))}),a=I(d=>{let p=r.current.find(({el:g})=>g===d);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,_t.Unmount)}),l=M([]),u=M(Promise.resolve()),f=M({enter:[],leave:[],idle:[]}),c=I((d,p,g)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([m])=>m!==d)),t==null||t.chains.current[p].push([d,new Promise(m=>{l.current.push(m)})]),t==null||t.chains.current[p].push([d,new Promise(m=>{Promise.all(f.current[p].map(([_,b])=>b)).then(()=>m())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(p)):g(p)}),h=I((d,p,g)=>{Promise.all(f.current[p].splice(0).map(([m,_])=>_)).then(()=>{var m;(m=l.current.shift())==null||m()}).then(()=>g(p))});return q(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}function yd(){}let bd=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ya(e){var t;let n={};for(let r of bd)n[r]=(t=e[r])!=null?t:yd;return n}function vd(e){let t=M(ya(e));return F(()=>{t.current=ya(e)},[e]),t}let Sd="div",ba=ar.RenderStrategy;function Cd(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:f,entered:c,leave:h,leaveFrom:d,leaveTo:p,...g}=e,m=M(null),_=Te(m,t),b=(n=g.unmount)==null||n?_t.Unmount:_t.Hidden,{show:C,appear:H,initial:K}=wd(),[re,z]=Q(C?"visible":"hidden"),Se=_d(),{register:Qe,unregister:nt}=Se;F(()=>Qe(m),[Qe,m]),F(()=>{if(b===_t.Hidden&&m.current){if(C&&re!=="visible"){z("visible");return}return fe(re,{hidden:()=>nt(m),visible:()=>Qe(m)})}},[re,m,Qe,nt,C,b]);let pe=ct({base:bt(g.className),enter:bt(l),enterFrom:bt(u),enterTo:bt(f),entered:bt(c),leave:bt(h),leaveFrom:bt(d),leaveTo:bt(p)}),Ee=vd({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),xt=Jt();F(()=>{if(xt&&re==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,re,xt]);let ki=K&&!H,Lr=H&&C&&K,Hr=!xt||ki?"idle":C?"enter":"leave",Ht=ed(0),$i=I(pt=>fe(pt,{enter:()=>{Ht.addFlag(Me.Opening),Ee.current.beforeEnter()},leave:()=>{Ht.addFlag(Me.Closing),Ee.current.beforeLeave()},idle:()=>{}})),Ti=I(pt=>fe(pt,{enter:()=>{Ht.removeFlag(Me.Opening),Ee.current.afterEnter()},leave:()=>{Ht.removeFlag(Me.Closing),Ee.current.afterLeave()},idle:()=>{}})),hn=_a(()=>{z("hidden"),nt(m)},Se);md({immediate:Lr,container:m,classes:pe,direction:Hr,onStart:ct(pt=>{hn.onStart(m,pt,$i)}),onStop:ct(pt=>{hn.onStop(m,pt,Ti),pt==="leave"&&!pr(hn)&&(z("hidden"),nt(m))})});let Ut=g,Mi={ref:_};return Lr?Ut={...Ut,className:sr(g.className,...pe.current.enter,...pe.current.enterFrom)}:(Ut.className=sr(g.className,(r=m.current)==null?void 0:r.className),Ut.className===""&&delete Ut.className),x.createElement(hr.Provider,{value:hn},x.createElement(Uc,{value:fe(re,{visible:Me.Open,hidden:Me.Closed})|Ht.flags},ge({ourProps:Mi,theirProps:Ut,defaultTag:Sd,features:ba,visible:re==="visible",name:"Transition.Child"})))}function Ed(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=M(null),a=Te(s,t);Jt();let l=Ao();if(n===void 0&&l!==null&&(n=(l&Me.Open)===Me.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,f]=Q(n?"visible":"hidden"),c=_a(()=>{f("hidden")}),[h,d]=Q(!0),p=M([n]);me(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),d(!1))},[p,n]);let g=q(()=>({show:n,appear:r,initial:h}),[n,r,h]);F(()=>{if(n)f("visible");else if(!pr(c))f("hidden");else{let C=s.current;if(!C)return;let H=C.getBoundingClientRect();H.x===0&&H.y===0&&H.width===0&&H.height===0&&f("hidden")}},[n,c]);let m={unmount:o},_=I(()=>{var C;h&&d(!1),(C=e.beforeEnter)==null||C.call(e)}),b=I(()=>{var C;h&&d(!1),(C=e.beforeLeave)==null||C.call(e)});return x.createElement(hr.Provider,{value:c},x.createElement(dr.Provider,{value:g},ge({ourProps:{...m,as:ie,children:x.createElement(va,{ref:a,...m,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:ie,features:ba,visible:u==="visible",name:"Transition"})))}function xd(e,t){let n=ae(dr)!==null,r=Ao()!==null;return x.createElement(x.Fragment,null,!n&&r?x.createElement(Go,{ref:t,...e}):x.createElement(va,{ref:t,...e}))}let Go=we(Ed),va=we(Cd),kd=we(xd),Sa=Object.assign(Go,{Child:kd,Root:Go});const Dt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function zo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function $d(e,t){switch(t){case Dt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Dt.SnakeCase:return zo(e,"_");case Dt.SnakeCaseAllCaps:return zo(e,"_").toUpperCase();case Dt.KebabCase:return zo(e,"-");case Dt.None:default:return e}}function vt(e,t=Dt.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=$d(s,a),n[s]=l}for(let s of e){let a=Dt.None;if(s==null&&o(s),s instanceof B){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}let mr=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}};function Td(e){return v(Vo,vt(e,1))}class Ca extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Md(e){return v(Vo.Label,vt(e,1))}class Ad extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function Id(e){return v(Vo.Group,vt(e,1))}const Od=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Pd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Dd=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ae(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Ea(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Fd(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Wo(e,t,n){let r=0,o=0,i="";const s=n?Mn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ae(t,r,"d"),r+=o,o){case 1:i+=$a(s);break;case 2:i+=P($a(s),2);break;case 3:i+=Od[Aa(s)];break;case 4:i+=Nd[Aa(s)];break}break;case"f":if(o=Ae(t,r,"f"),r+=o,o<=3){const m=10**(3-o);i+=P(Math.floor(yr(s)/m),o)}else o<=7&&(i+=(""+yr(s)).padEnd(o,"0"));break;case"F":if(o=Ae(t,r,"F"),r+=o,o<=3){const m=10**(3-o),_=Math.floor(yr(s)/m);_!=0&&(i+=P(_,o))}else if(o<=7){const m=yr(s);m!=0&&(i+=P(m,3))}break;case"g":o=Ae(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Ae(t,r,"h"),r+=o,o){case 1:i+=_r(s)%12;break;case 2:i+=P(_r(s)%12,2);break}break;case"H":switch(o=Ae(t,r,"H"),r+=o,o){case 1:i+=_r(s);break;case 2:i+=P(_r(s),2);break}break;case"K":switch(o=Ae(t,r,"K"),r+=o,o){case 1:switch(xa(s)){case 1:i+="Z";break;case 2:i+=Kt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ae(t,r,"m"),r+=o,o){case 1:i+=Ta(s);break;case 2:i+=P(Ta(s),2);break}break;case"M":switch(o=Ae(t,r,"M"),r+=o,o){case 1:i+=br(s);break;case 2:i+=P(br(s),2);break;case 3:i+=Pd[br(s)-1];break;case 4:i+=Dd[br(s)-1];break}break;case"s":switch(o=Ae(t,r,"s"),r+=o,o){case 1:i+=Ma(s);break;case 2:i+=P(Ma(s),2);break}break;case"t":switch(o=Ae(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ae(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=P(s.getFullYear()%100,2);break;case 3:i+=P(s.getFullYear(),3);break;case 4:i+=P(s.getFullYear(),4);break;case 5:i+=P(s.getFullYear(),5);break}break;case"z":o=Ae(t,r,"z"),r+=o;let l="";switch(xa(s)){case 1:l="+00:00";break;case 2:l=Kt(s.getTimezoneOffset()*-6e4);break;case 0:l=Kt(zd(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${P(f,2)}`;break;default:i+=`${u}${P(f,2)}:${P(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=Fd(t,r);i+=h,r+=d;break;case"%":const p=Ea(t,r);if(p>=0&&p!==37)r+=2,i+=Wo(s,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=Ea(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function xa(e){return e.kind||0}function Kt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+P(n,2)+":"+P(r,2)}function gr(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 Rd(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return P(e.getFullYear(),4)+"-"+P(e.getMonth()+1,2)+"-"+P(e.getDate(),2)+"T"+P(e.getHours(),2)+":"+P(e.getMinutes(),2)+":"+P(e.getSeconds(),2)+"."+P(e.getMilliseconds(),3)+(n?Kt(e.getTimezoneOffset()*-6e4):"")}}function Ld(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Kt(t)}function Hd(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Kt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return gr(n,"first");case"T":case"t":return gr(n,"second");case"O":case"o":return Ld(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Wo(n,t,!0)}function Ud(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?gr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?gr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Rd(e,n);default:throw new Error("Unrecognized Date print format")}else return Wo(e,t,n)}function wr(e,t,n){return e.offset!=null?Hd(e,t):Ud(e,t)}function Mn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vd(){return Mn(-621355968e5,1)}function ka(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function jd(e,t=!1){const[n,r]=ka(e),o=r!=null?t&&r==="Z"?1:2:0;return Mn(n.getTime(),o)}function Bd(e,t){try{return t.contents=jd(e),!0}catch{return!1}}function Gd(e){return e.kind===1?e:Mn(e.getTime(),1)}function zd(e){return e.kind===2?e:Mn(e.getTime(),2)}function $a(e){return e.kind===1?e.getUTCDate():e.getDate()}function _r(e){return e.kind===1?e.getUTCHours():e.getHours()}function yr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ta(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function br(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Ma(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Aa(e){return e.kind===1?e.getUTCDay():e.getDay()}function Wd(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ia(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Oa(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 qd(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Wd(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Oa(e,a),u=Oa.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const An=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,In=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Yd=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Na(e,t){return cc(e,t)<0}function St(e){return{input:e,cont:Jd(e)}}function Zd(e,t){let n=0,r=0,o="";In.lastIndex=0;let i=In.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=In.lastIndex,o+=Fa(t[n++],a,l,u,f),In.lastIndex=r-1,i=In.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Pa(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ft(e){return Pa(t=>t,e)}function Da(e){return Pa(t=>{throw new Error(t)},e)}function Fa(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Ps(e))switch(o.toLowerCase()!=="x"&&(Na(e,0)?(e=bo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Xn(e,r);break;case"g":case"G":e=r!=null?Qn(e,r):Qn(e);break;case"e":case"E":e=r!=null?er(e,r):er(e);break;case"x":e=tr(e);break;case"X":e=tr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=wr(e):e=We(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=On(e,n-i.length,l,a),e=i+e):e=On(i+e,n,l,a)}return e}function Ra(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,h,d]=l[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=Fa(u,f,p,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Ra(e,a,l,s,o)}}function Jd(e){return t=>{An.lastIndex=0;const n=[],r=[];let o=0,i=An.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=An.lastIndex,An.lastIndex-=1,i=An.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ra(t,n,r))}}function Kd(e,...t){let n;return n=e,n.replace(Yd,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Ps(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Xn(u,a);break;case"g":case"G":u=a!=null?Qn(u,a):Qn(u);break;case"e":case"E":u=a!=null?er(u,a):er(u);break;case"p":case"P":a=a??2,u=Xn(bo(u,100),a)+" %";break;case"d":case"D":u=a!=null?qo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?qo(tr(u),a,"0"):tr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Na(u,0)&&(u=bo(u,-1),f="-"),d=d==null?"":d.substring(1),u=Xn(u,Math.max(d.length,0));let[p,g]=u.split(".");g||(g="");const m=h.replace(/,/g,"").replace(/^#+/,"").length;p=qo(p,m,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=Qd(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const b=p.length%3,C=Math.floor(p.length/3);let H=b>0?p.substr(0,b)+(C>0?",":""):"";for(let K=0;K<C;K++)H+=p.substr(b+K*3,3)+(K<C-1?",":"");p=H}return g.length>0?p+"."+g:p}),u=f+u}}else u instanceof Date?u=wr(u,l||s):u=We(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=On(String(u),Math.abs(i)," ",i<0)),u})}function Xd(e){return typeof e!="string"||e.length===0}function Xt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function On(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 qo(e,t,n){return On(e,t,n)}function Qd(e,t,n){return On(e,t,n,!0)}function La(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ia),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function eh(e,...t){if(t.length===0)return e.trim();const n="["+Ia(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Qt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return lt(this.value)}Equals(t){return t==null?!1:ke(this.value,t instanceof Qt?t.value:t)}CompareTo(t){return t==null?1:De(this.value,t instanceof Qt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof Qt?e.value:e}function de(e){return e==null||e instanceof Qt?new Qt(e):e}function Yo(e,t){return e!=null?y(e):t}function th(e,t){return e!=null?y(e):t()}function nh(e,t){return t!=null?de(e(y(t))):void 0}const Ha="Collection was empty.";function Ua(e,t){return new Array(t)}function Va(e,t){return e>t?e:t}function vr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function en(e,t,n){const r=t.length|0,o=Ua(n,r);for(let i=0;i<=r-1;i++)et(o,i,e(Z(i,t)));return o}function rh(e,t){const n=Ua(t,1);return et(n,0,e),n}function oh(e){return e.slice().reverse()}function ih(e,t){return t.find(e)}function sh(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(Z(o,t));if(i!=null){const s=y(i);r.push(s)}}return ke(n,Ge())?r:en(o=>o,r,n)}function Sr(e,t,n){const r=e;return n.reduce(r,t)}function ah(e,t,n){return t==null}function Z(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function et(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function ja(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class _e extends Fe{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Xt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u);if(ke(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=y(u);if(s>18)return a|0;r=s+1,o=(a<<1)+lt(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u),h=De(s.head,a.head)|0;if(h===0){o=f,i=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return uh(this)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ee(this)}}class lh{constructor(t){this.xs=t,this.it=this.xs,this.current=Ge()}"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=y(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=Ge()}Dispose(){}}function uh(e){return new lh(e)}function se(){return new _e(Ge(),void 0)}function Nn(e,t){return new _e(e,t)}function Cr(e){return e.tail==null}function ch(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=y(s);continue e}else return o|0}})(0,e)|0}function Zo(e){if(e.tail!=null)return e.head;throw new Error(Ha+"\\nParameter name: list")}function qe(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Ha+"\\nParameter name: list")}function le(){return se()}function He(e,t){return Nn(e,t)}function te(e){return Nn(e,se())}function O(e){return Cr(e)}function E(e){return Zo(e)}function A(e){return qe(e)}function Pn(e){const t=ch(e)|0,n=vr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Cr(a)){et(n,s,Zo(a)),o=s+1,i=qe(a);continue e}break}})(0,e),n}function tt(e,t,n){let r=t,o=n;for(;!Cr(o);)r=e(r,E(o)),o=qe(o);return r}function Jo(e){return tt((t,n)=>Nn(n,t),se(),e)}function fh(e,t,n){return ja(e,Pn(t),n)}function Dn(e,t){tt((n,r)=>{e(r)},void 0,t)}function J(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Nn(Z(r,e),n);return n}function k(e){return J(e,se())}function dh(e){let t,n;if(Be(e))return k(e);if(e instanceof _e)return e;{const r=se();let o=r;const i=ee(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new _e(l,void 0),t.tail=n,n)}}finally{V(i)}const s=o,a=se();return s.tail=a,qe(r)}}function hh(e){const t=se();let n=t;const r=s=>{n=tt((a,l)=>{const u=new _e(l,void 0);return a.tail=u,u},n,s)};if(Be(e))e.forEach(r);else if(e instanceof _e)Dn(r,e);else{const s=ee(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{V(s)}}const o=n,i=se();return o.tail=i,qe(t)}function Ko(e,t){return tt((n,r)=>Nn(r,n),t,Jo(e))}function Ba(e,t){const n=se(),r=tt((i,s)=>{const a=new _e(e(s),void 0);return i.tail=a,a},n,t),o=se();return r.tail=o,qe(n)}function ph(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Cr(s))return;if(e(Zo(s)))return i;r=i+1,o=qe(s);continue e}})(0,t)}function mh(e,t){const n=se(),r=tt((i,s)=>{if(e(s)){const a=new _e(s,void 0);return i.tail=a,a}else return i},n,t),o=se();return r.tail=o,qe(n)}function gh(e,t){const n=se(),r=se(),o=n,i=tt((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new _e(u,void 0),h.tail=f,f),d]:[h,(c=new _e(u,void 0),d.tail=c,c)]},[o,r],t),s=se();i[0].tail=s;const a=se();return i[1].tail=a,[qe(o),qe(r)]}function wh(e,t){const n=se(),r=tt((i,s)=>{const a=e(s);if(a==null)return i;{const l=new _e(y(a),void 0);return i.tail=l,l}},n,t),o=se();return r.tail=o,qe(n)}function Ga(e,t,n){return ph(r=>n.Equals(e,r),t)!=null}const X=x;function _h(e){throw new Error(e)}const yh="Enumeration already finished.",bh="Enumeration has not started. Call MoveNext.",za="The input sequence has an insufficient number of elements.",vh="Reset is not supported on this enumerator.";function Sh(){throw new Error(vh)}function Xo(){throw new Error(bh)}function Qo(){throw new Error(yh)}class Ch{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ee(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+We(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{V(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Eh(e){return new Ch(e)}class xh{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Sh()}Dispose(){this.dispose()}}function Er(e,t,n){return new xh(e,t,n)}function kh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=y(n);try{V(a)}finally{n=void 0}}if(t!=null){const a=y(t);try{V(a)}finally{t=void 0}}};return Er(()=>(r?o&&Qo():Xo(),i!=null?y(i):Qo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=y(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=de(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{V(c)}finally{n=void 0}}else{const c=y(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ee(a)):(s(),l=!1)}else t=ee(e)}return y(l)}},()=>{o||s()})}function $h(e,t){return Er(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{V(t)}finally{}})}function Wa(e,t,n){let r=!1,o,i=de(e());const s=()=>{if(i!=null){const l=y(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Er(()=>(r||Xo(),o!=null?y(o):Qo()),()=>{if(r||(r=!0),i!=null){const l=y(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Th(e,t){let n,r=t;return Er(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return Xo()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Mh(e,t){t==null&&_h(e)}function tn(e){return Eh(e)}function Ct(e){return Mh("source",e),ee(e)}function ne(e){return tn(()=>ee(e()))}function qa(e){return tn(()=>kh(e))}function Ah(e,t){return tn(()=>Th(e,t))}function Ya(){return ne(()=>new Array(0))}function Ce(e){return ne(()=>rh(e))}function Cg(e){return e}function Ih(e){return e instanceof _e?Pn(e):Array.from(e)}function xr(e){return Be(e)?k(e):e instanceof _e?e:dh(e)}function Oh(e,t,n){return tn(()=>Wa(e,t,n))}function Za(e,t,n){return tn(()=>{let r=-1;return Wa(e,o=>(r=r+1|0,t(r,o)),n)})}function Ye(e,t){return qa([e,t])}function Nh(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{V(o)}}finally{V(r)}}function nn(e,t,n){const r=Ct(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{V(r)}}function kr(e,t,n){const r=Ct(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{V(r)}}function Ja(e,t){kr((n,r)=>{e(r)},void 0,t)}function Ue(e,t){return Oh(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?de(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{V(n)})}function Ph(e,t){return Za(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?de(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{V(n)})}function Dh(e){return ne(()=>oh(Ih(e)))}function Fh(e,t){return tn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(za+"\\nParameter name: source");return $h(()=>{},n)}catch(r){throw V(n),r}})}function Rh(e,t){return Za(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return de(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(za+"\\nParameter name: source")}else return},n=>{V(n)})}function Lh(e,t){return ne(()=>qa(Ue(e,t)))}function Hh(e){return new w(0,[e])}function Ka(e){return new w(1,[e])}class w extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ft(e,t){return t.tag===0?Hh(e(t.fields[0])):Ka(t.fields[0])}function Uh(e,t){return t.tag===0?e(t.fields[0]):Ka(t.fields[0])}class S extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class rn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Xa(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Qa(e,t){switch(e.tag){case 2:return qd(Xa(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Xa(t)}}const Vh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,el=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,jh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Bh(e){function t(r){return r.replace(el,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vh.test(n))return eh(n,"{","}","(",")");if(el.test(n))return t(n);if(jh.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 Gh(e,t){try{return t.contents=Bh(e),!0}catch{return!1}}var ei;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ei||(ei={}));function zh(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function tl(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 Wh(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 qh(e,t){if(t&ei.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 Yh(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||qh(i,t),!Wh(n).test(s))return zh(o,n)}return null}function Zh(e,t,n,r,o){const i=Yh(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=tl(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=tl(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function on(e,t,n,r,o){try{return o.contents=Zh(e,t,n,r),!0}catch{return!1}}function nl(e,t){Jh(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Jh(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 Kh(){return nl(-621355968e5,0)}function Xh(e){const[t,n]=ka(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return nl(t.getTime(),r)}function Qh(e,t){try{return t.contents=Xh(e),!0}catch{return!1}}function Fn(e){return e<0?Math.ceil(e):Math.floor(e)}function rl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ep(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 ep(e){return Number(BigInt(e)/10000n)}function tp(e){return Fn(e/864e5)}function np(e){return Fn(e%864e5/36e5)}function rp(e){return Fn(e%36e5/6e4)}function op(e){return Fn(e%6e4/1e3)}function ip(e){return Fn(e%1e3)}function sp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(tp(e)),o=Math.abs(np(e)),i=Math.abs(rp(e)),s=Math.abs(op(e)),a=Math.abs(ip(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:P(o,2)}:${P(i,2)}:${P(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+P(a,3):"."+Bu(a,3,7)}`}function ap(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 rl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*rl(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function lp(e,t){try{return t.contents=ap(e),!0}catch{return!1}}class ol{constructor(t,n){this.k=t,this.v=n}}function $r(e,t){return new ol(e,t)}function ye(e){return e.k}function Ie(e){return e.v}class oe extends ol{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Tr(e,t,n,r,o){return new oe(e,t,n,r,o)}function be(e){return e.left}function ve(e){return e.right}function Rt(e){return e.h}function Eg(){}function il(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof oe){const i=o;e=il(n+1,be(i)),t=ve(i);continue e}else return n+1|0}else return n|0}}function up(e){return il(0,e)}function Ze(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=y(a);s=c instanceof oe?(o=c,Rt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=y(u);l=c instanceof oe?(i=c,Rt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?$r(t,n):Tr(t,n,e,r,f+1)}function sl(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const m=y(d);h=m instanceof oe?(o=m,Rt(o)):1}else h=0;let p;const g=r;if(g!=null){const m=y(g);p=m instanceof oe?(i=m,Rt(i)):1}else p=0;if(p>h+2){const m=y(r);if(m instanceof oe){const _=m;if(s=be(_),(s!=null?(a=y(s),a instanceof oe?(l=a,Rt(l)):1):0)>h+1){const b=y(be(_));if(b instanceof oe){const C=b;return Ze(Ze(e,t,n,be(C)),ye(C),Ie(C),Ze(ve(C),ye(_),Ie(_),ve(_)))}else throw new Error("internal error: Map.rebalance")}else return Ze(Ze(e,t,n,be(_)),ye(_),Ie(_),ve(_))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const m=y(e);if(m instanceof oe){const _=m;if(u=ve(_),(u!=null?(f=y(u),f instanceof oe?(c=f,Rt(c)):1):0)>p+1){const b=y(ve(_));if(b instanceof oe){const C=b;return Ze(Ze(be(_),ye(_),Ie(_),be(C)),ye(C),Ie(C),Ze(ve(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ze(be(_),ye(_),Ie(_),Ze(ve(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ze(e,t,n,r)}function sn(e,t,n,r){if(r!=null){const o=y(r),i=e.Compare(t,ye(o))|0;if(o instanceof oe){const s=o;return i<0?sl(sn(e,t,n,be(s)),ye(s),Ie(s),ve(s)):i===0?Tr(t,n,be(s),ve(s),Rt(s)):sl(be(s),ye(s),Ie(s),sn(e,t,n,ve(s)))}else return i<0?Tr(t,n,void 0,r,2):i===0?$r(t,n):Tr(t,n,r,void 0,2)}else return $r(t,n)}function al(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,ye(s))|0;if(a===0)return de(Ie(s));if(s instanceof oe){const l=s;e=r,t=o,n=a<0?be(l):ve(l);continue e}else return}else return}}function cp(e,t,n){const r=al(e,t,n);if(r==null)throw new Error;return y(r)}function fp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,ye(s))|0;if(s instanceof oe){const l=s;if(a<0){e=r,t=o,n=be(l);continue e}else{if(a===0)return!0;e=r,t=o,n=ve(l);continue e}}else return a===0}else return!1}}function ll(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof oe){const i=o;ll(n,be(i)),n(ye(i),Ie(i)),e=n,t=ve(i);continue e}else n(ye(o),Ie(o))}break}}function dp(e,t){ll(e,t)}function hp(e,t,n){let r=n;dp((o,i)=>{et(t,r,[o,i]),r=r+1|0},e)}function pp(e,t){return tt((n,r)=>sn(e,r[0],r[1],n),void 0,t)}function mp(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=sn(r,s[0],s[1],o),n=i;continue e}else return o}}function gp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=Z(r,t);n=sn(e,o[0],o[1],n)}return n}function ul(e,t){if(Be(t))return gp(e,t);if(t instanceof _e)return pp(e,t);{const n=ee(t);try{return mp(e,void 0,n)}finally{V(n)}}}class wp extends Fe{constructor(t,n){super(),this.stack=t,this.started=n}}function cl(e){e:for(;;){const t=e;if(O(t))return le();{const n=A(t),r=E(t);if(r!=null){const o=y(r);if(o instanceof oe){const i=o;e=J([be(i),$r(ye(i),Ie(i)),ve(i)],n);continue e}else return t}else{e=n;continue e}}}}function fl(e){return new wp(cl(te(e)),!1)}function _p(){throw new Error("enumeration not started")}function yp(){throw new Error("enumeration already finished")}function dl(e){if(e.started){const t=e.stack;if(O(t))return yp();if(E(t)!=null){const n=y(E(t));if(n instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ye(n),Ie(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return _p()}function bp(e){if(e.started){const t=e.stack;if(O(t))return!1;if(E(t)!=null){if(y(E(t))instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=cl(A(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function hl(e){let t=fl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return dl(t)},"System.Collections.IEnumerator.get_Current"(){return dl(t)},"System.Collections.IEnumerator.MoveNext"(){return bp(t)},"System.Collections.IEnumerator.Reset"(){t=fl(e)},Dispose(){}}}class Mr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ep(this)|0}Equals(t){const n=this;if(t instanceof Mr){const r=t,o=ee(n);try{const i=ee(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ke(l[0],u[0])&&ke(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{V(i)}}finally{V(o)}}else return!1}toString(){return"map ["+Xt("; ",Ue(n=>Kd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return hl(this.tree)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return hl(this.tree)}CompareTo(t){const n=this;if(t instanceof Mr)return Nh((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:De(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ml(n,t[0])&&ke(pl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){hp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ti(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ti(this)|0}get size(){return ti(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ue(n=>[n[0],n[1]],this)}get(t){return pl(this,t)}has(t){return ml(this,t)}keys(){return Ue(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ue(n=>n[1],this)}forEach(t,n){const r=this;Ja(o=>{t(o[1],o[0],r)},r)}}function Ar(e,t){return new Mr(e,t)}function vp(e){return Ar(e,void 0)}function Sp(e,t,n){return Ar(e.comparer,sn(e.comparer,t,n,e.tree))}function pl(e,t){return cp(e.comparer,t,e.tree)}function ti(e){return up(e.tree)}function ml(e,t){return fp(e.comparer,t,e.tree)}function Cp(e,t){return al(e.comparer,t,e.tree)}function Ep(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=ee(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,lt(o[0]))|0,n=t(n,lt(o[1]))|0}}finally{V(r)}return n|0}function gl(e,t,n){return Sp(n,e,t)}function wl(e,t){return Cp(t,e)}function xp(e,t){return Ar(t,ul(t,e))}function kp(e,t){return Ar(t,ul(t,e))}function ni(e){return vp(e)}class _l{constructor(t){this.k=t}}function Oe(e){return new _l(e)}function $(e){return e.k}class N extends _l{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ne(e,t,n,r){return new N(e,t,n,r)}function U(e){return e.left}function R(e){return e.right}function an(e){return e.h}function xg(){}function yl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof N){const i=o;e=U(i),t=yl(R(i),r+1);continue e}else return r+1|0}else return r|0}}function $p(e){return yl(e,0)}function Je(e,t,n){let r,o,i;const s=e;if(s!=null){const f=y(s);i=f instanceof N?(r=f,an(r)):1}else i=0;let a;const l=n;if(l!=null){const f=y(l);a=f instanceof N?(o=f,an(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?Oe(t):Ne(t,e,n,u+1)}function bl(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const g=y(h);c=g instanceof N?(r=g,an(r)):1}else c=0;let d;const p=n;if(p!=null){const g=y(p);d=g instanceof N?(o=g,an(o)):1}else d=0;if(d>c+2){const g=y(n);if(g instanceof N){const m=g;if(i=U(m),(i!=null?(s=y(i),s instanceof N?(a=s,an(a)):1):0)>c+1){const _=y(U(m));if(_ instanceof N){const b=_;return Je(Je(e,t,U(b)),$(b),Je(R(b),$(m),R(m)))}else throw new Error("internal error: Set.rebalance")}else return Je(Je(e,t,U(m)),$(m),R(m))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const g=y(e);if(g instanceof N){const m=g;if(l=R(m),(l!=null?(u=y(l),u instanceof N?(f=u,an(f)):1):0)>d+1){const _=y(R(m));if(_ instanceof N){const b=_;return Je(Je(U(m),$(m),U(b)),$(b),Je(R(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(U(m),$(m),Je(R(m),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(e,t,n)}function ln(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,$(r))|0;if(r instanceof N){const i=r;return o<0?bl(ln(e,t,U(i)),$(i),R(i)):o===0?n:bl(U(i),$(i),ln(e,t,R(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?Ne(t,void 0,n,2):i===0?n:Ne(t,n,void 0,2)}}else return Oe(t)}function vl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,$(s))|0;if(s instanceof N){const l=s;if(a<0){e=r,t=o,n=U(l);continue e}else{if(a===0)return!0;e=r,t=o,n=R(l);continue e}}else return a===0}else return!1}}function Sl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof N){const i=o;Sl(n,U(i)),n($(i)),e=n,t=R(i);continue e}else n($(o))}break}}class Tp extends Fe{constructor(t,n){super(),this.stack=t,this.started=n}}function Cl(e){e:for(;;){const t=e;if(O(t))return le();{const n=E(t),r=A(t);if(n!=null){const o=y(n);if(o instanceof N){const i=o;e=J([U(i),Oe($(i)),R(i)],r);continue e}else return t}else{e=r;continue e}}}}function El(e){return new Tp(Cl(te(e)),!1)}function Mp(){throw new Error("Enumeration not started")}function Ap(){throw new Error("Enumeration already started")}function xl(e){if(e.started){const t=e.stack;if(O(t))return Ap();if(E(t)!=null){const n=y(E(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Mp()}function Ip(e){if(e.started){const t=e.stack;if(O(t))return!1;if(E(t)!=null){if(y(E(t))instanceof N)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cl(A(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function kl(e){let t=El(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xl(t)},"System.Collections.IEnumerator.get_Current"(){return xl(t)},"System.Collections.IEnumerator.MoveNext"(){return Ip(t)},"System.Collections.IEnumerator.Reset"(){t=El(e)},Dispose(){}}}function Op(e,t,n){e:for(;;){const r=e,o=t,i=n;if(O(o))return O(i)?0:-1;if(O(i))return 1;if(E(i)!=null)if(E(o)!=null){const s=y(E(o)),a=y(E(i));if(s instanceof N){const l=s;if(U(l)==null)if(a instanceof N){const u=a;if(U(u)==null){const f=r.Compare($(l),$(u))|0;if(f!==0)return f|0;e=r,t=He(R(l),A(o)),n=He(R(u),A(i));continue e}else{let f,c,h,d,p;switch(O(o)?O(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2:E(o)!=null?(f=0,c=A(o),h=y(E(o))):O(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2,f){case 0:if(h instanceof N){const g=h;e=r,t=J([U(g),Ne($(g),void 0,R(g),0)],c),n=i;continue e}else{e=r,t=J([void 0,Oe($(h))],c),n=i;continue e}case 1:if(p instanceof N){const g=p;e=r,t=o,n=J([U(g),Ne($(g),void 0,R(g),0)],d);continue e}else{e=r,t=o,n=J([void 0,Oe($(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare($(l),$(a))|0;if(u!==0)return u|0;e=r,t=He(R(l),A(o)),n=He(void 0,A(i));continue e}else{let u,f,c,h,d;switch(O(o)?O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof N){const p=c;e=r,t=J([U(p),Ne($(p),void 0,R(p),0)],f),n=i;continue e}else{e=r,t=J([void 0,Oe($(c))],f),n=i;continue e}case 1:if(d instanceof N){const p=d;e=r,t=o,n=J([U(p),Ne($(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=J([void 0,Oe($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof N){const l=a;if(U(l)==null){const u=r.Compare($(s),$(l))|0;if(u!==0)return u|0;e=r,t=He(void 0,A(o)),n=He(R(l),A(i));continue e}else{let u,f,c,h,d;switch(O(o)?O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof N){const p=c;e=r,t=J([U(p),Ne($(p),void 0,R(p),0)],f),n=i;continue e}else{e=r,t=J([void 0,Oe($(c))],f),n=i;continue e}case 1:if(d instanceof N){const p=d;e=r,t=o,n=J([U(p),Ne($(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=J([void 0,Oe($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=A(o),n=A(i);continue e}}else{y(E(i));let s,a,l,u,f;switch(O(o)?O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof N){const c=l;e=r,t=J([U(c),Ne($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Oe($(l))],a),n=i;continue e}case 1:if(f instanceof N){const c=f;e=r,t=o,n=J([U(c),Ne($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=J([void 0,Oe($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){y(E(o));let s,a,l,u,f;switch(O(o)?O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof N){const c=l;e=r,t=J([U(c),Ne($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Oe($(l))],a),n=i;continue e}case 1:if(f instanceof N){const c=f;e=r,t=o,n=J([U(c),Ne($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=J([void 0,Oe($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=A(o),n=A(i);continue e}}}function $l(e,t,n){return t==null?n==null?0:-1:n==null?1:Op(e,te(t),te(n))|0}function Np(e,t,n){let r=n;Sl(o=>{et(t,r,o),r=r+1|0},e)}function Pp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ln(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Dp(e,t){return Sr((n,r)=>ln(e,r,n),void 0,t)}function Fp(e,t){return tt((n,r)=>ln(e,r,n),void 0,t)}function Tl(e,t){if(Be(t))return Dp(e,t);if(t instanceof _e)return Fp(e,t);{const n=ee(t);try{return Pp(e,void 0,n)}finally{V(n)}}}class ri{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hp(this)|0}Equals(t){let n;const r=this;return t instanceof ri&&(n=t,$l(un(r),Ke(r),Ke(n))===0)}toString(){return"set ["+Xt("; ",Ue(n=>We(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return $l(un(n),Ke(n),Ke(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 vl(un(n),t,Ke(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Np(Ke(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return oi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return oi(this)|0}GetEnumerator(){return kl(Ke(this))}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return kl(Ke(this))}get size(){return oi(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 Ml(this,t)}keys(){return Ue(n=>n,this)}values(){return Ue(n=>n,this)}entries(){return Ue(n=>[n,n],this)}forEach(t,n){const r=this;Ja(o=>{t(o,o,r)},r)}}function Ir(e,t){return new ri(e,t)}function un(e){return e.comparer}function Ke(e){return e.tree}function Rp(e){return Ir(e,void 0)}function Lp(e,t){return Ir(un(e),ln(un(e),t,Ke(e)))}function oi(e){return $p(Ke(e))}function Ml(e,t){return vl(un(e),t,Ke(e))}function Hp(e){let t=0;const n=ee(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+lt(r)+631|0}}finally{V(n)}return Math.abs(t)|0}function ii(e,t){return Ml(t,e)}function Up(e,t){return Lp(t,e)}function Vp(e){return Rp(e)}function jp(e,t){return Ir(t,Tl(t,e))}function Bp(e,t){return Ir(t,Tl(t,e))}function Rn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
6
|
+
`));let c=u.props,h=typeof(c==null?void 0:c.className)=="function"?(...p)=>vr(c==null?void 0:c.className(...p),a.className):vr(c==null?void 0:c.className,a.className),d=h?{className:h}:{};return Ao(u,Object.assign({},ua(u.props,Go(zo(a,["ref"]))),f,l,ef(u.ref,l.ref),d))}return v(o,Object.assign({},zo(a,["ref"]),o!==ne&&l,o!==ne&&f),u)}function ef(...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 ua(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function ve(e){var t;return Object.assign(Mo(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Go(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function zo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ca(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&&tf(n)?!1:r}function tf(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function nf(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let rf="div";var Mn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Mn||{});function of(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 be({ourProps:o,theirProps:r,slot:{},defaultTag:rf,name:"Hidden"})}let Er=ve(of),Wo=Ie(null);Wo.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function qo(){return ue(Wo)}function sf({value:e,children:t}){return k.createElement(Wo.Provider,{value:e},t)}var xr=(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))(xr||{});function af(e,t,n){let[r,o]=re(n),i=e!==void 0,s=F(i),a=F(!1),l=F(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,N(u=>(i||o(u),t==null?void 0:t(u)))]}function Yo(e,t){let n=F([]),r=N(e);U(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function lf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function In(...e){return X(()=>ra(...e),[...e])}var Fn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Fn||{});function uf(){let e=F(0);return sa("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function An(){let e=F(!1);return ye(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function fa(e,t,n,r){let o=mt(n);U(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function cf(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function da(e){let t=N(e),n=F(!1);U(()=>(n.current=!1,()=>{n.current=!0,wr(()=>{n.current&&t()})}),[t])}function ha(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 ff="div";var pa=(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))(pa||{});function df(e,t){let n=F(null),r=De(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;nn()||(s=1);let l=In(n);mf({ownerDocument:l},!!(s&16));let u=gf({ownerDocument:l,container:n,initialFocus:o},!!(s&2));wf({ownerDocument:l,container:n,containers:i,previousActiveElement:u},!!(s&8));let f=uf(),c=N(g=>{let m=n.current;m&&(_=>_())(()=>{me(f.current,{[Fn.Forwards]:()=>{yr(m,Lt.First,{skipElements:[g.relatedTarget]})},[Fn.Backwards]:()=>{yr(m,Lt.Last,{skipElements:[g.relatedTarget]})}})})}),h=_r(),d=F(!1),p={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let m=ha(i);n.current instanceof HTMLElement&&m.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(ma(m,_)||(d.current?yr(n.current,me(f.current,{[Fn.Forwards]:()=>Lt.Next,[Fn.Backwards]:()=>Lt.Previous})|Lt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Ht(g.target)))}};return k.createElement(k.Fragment,null,!!(s&4)&&k.createElement(Er,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Mn.Focusable}),be({ourProps:p,theirProps:a,defaultTag:ff,name:"FocusTrap"}),!!(s&4)&&k.createElement(Er,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Mn.Focusable}))}let hf=ve(df),On=Object.assign(hf,{features:pa}),Ct=[];cf(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ct[0]!==t.target&&(Ct.unshift(t.target),Ct=Ct.filter(n=>n!=null&&n.isConnected),Ct.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 pf(e=!0){let t=F(Ct.slice());return Yo(([n],[r])=>{r===!0&&n===!1&&wr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ct.slice())},[e,Ct,t]),N(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function mf({ownerDocument:e},t){let n=pf(t);Yo(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ht(n())},[t]),da(()=>{t&&Ht(n())})}function gf({ownerDocument:e,container:t,initialFocus:n},r){let o=F(null),i=An();return Yo(()=>{if(!r)return;let s=t.current;s&&wr(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Ht(n.current):yr(s,Lt.First)===oa.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function wf({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=An();fa(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=ha(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?ma(a,u)?(r.current=u,Ht(u)):(s.preventDefault(),s.stopPropagation(),Ht(l)):Ht(r.current)},!0)}function ma(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ga=Ie(!1);function _f(){return ue(ga)}function Zo(e){return k.createElement(ga.Provider,{value:e.force},e.children)}function yf(e){let t=_f(),n=ue(wa),r=In(e),[o,i]=re(()=>{if(!t&&n!==null||pt.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return U(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),U(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let bf=ne;function vf(e,t){let n=e,r=F(null),o=De(Qc(f=>{r.current=f}),t),i=In(r),s=yf(r),[a]=re(()=>{var f;return pt.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),l=ue(Jo),u=nn();return ye(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),ye(()=>{if(a&&l)return l.register(a)},[l,a]),da(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),u?!s||!a?null:Io(be({ourProps:{ref:o},theirProps:n,defaultTag:bf,name:"Portal"}),a):null}let Sf=ne,wa=Ie(null);function Cf(e,t){let{target:n,...r}=e,o={ref:De(t)};return k.createElement(wa.Provider,{value:n},be({ourProps:o,theirProps:r,defaultTag:Sf,name:"Popover.Group"}))}let Jo=Ie(null);function Ef(){let e=ue(Jo),t=F([]),n=N(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=N(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=X(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,X(()=>function({children:i}){return k.createElement(Jo.Provider,{value:o},i)},[o])]}let xf=ve(vf),kf=ve(Cf),Ko=Object.assign(xf,{Group:kf}),_a=Ie(null);function ya(){let e=ue(_a);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,ya),t}return e}function ba(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,X(()=>function(n){let r=N(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=X(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return k.createElement(_a.Provider,{value:o},n.children)},[t])]}let $f="p";function Tf(e,t){let n=vt(),{id:r=`headlessui-description-${n}`,...o}=e,i=ya(),s=De(t);ye(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return be({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:$f,name:i.name||"Description"})}let Mf=ve(Tf),va=Object.assign(Mf,{}),Xo=Ie(()=>{});Xo.displayName="StackContext";var Qo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Qo||{});function If(){return ue(Xo)}function Ff({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=If(),s=N((...a)=>{t==null||t(...a),i(...a)});return ye(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),k.createElement(Xo.Provider,{value:s},e)}function Af(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Of=typeof Object.is=="function"?Object.is:Af,{useState:Nf,useEffect:Df,useLayoutEffect:Pf,useDebugValue:Rf}=Kt;function Lf(e,t,n){const r=t(),[{inst:o},i]=Nf({inst:{value:r,getSnapshot:t}});return Pf(()=>{o.value=r,o.getSnapshot=t,ei(o)&&i({inst:o})},[e,r,t]),Df(()=>(ei(o)&&i({inst:o}),e(()=>{ei(o)&&i({inst:o})})),[e]),Rf(r),r}function ei(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Of(n,r)}catch{return!0}}function Hf(e,t,n){return t()}const Vf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uf=!Vf,Bf=Uf?Hf:Lf,jf="useSyncExternalStore"in Kt?(e=>e.useSyncExternalStore)(Kt):Bf;function Gf(e){return jf(e.subscribe,e.getSnapshot,e.getSnapshot)}function zf(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function Wf(){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 qf(){if(!lf())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let s=Rt();s.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}}function Yf(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Zf(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Vt=zf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Rt(),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:Zf(n)},o=[qf(),Wf(),Yf()];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)}});Vt.subscribe(()=>{let e=Vt.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)&&Vt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Vt.dispatch("TEARDOWN",n)}});function Jf(e,t,n){let r=Gf(Vt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return ye(()=>{if(!(!e||!t))return Vt.dispatch("PUSH",e,n),()=>Vt.dispatch("POP",e,n)},[t,e]),i}let ti=new Map,Nn=new Map;function Sa(e,t=!0){ye(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=Nn.get(r))!=null?s:1;if(a===1?Nn.delete(r):Nn.set(r,a-1),a!==1)return;let l=ti.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,ti.delete(r))}let i=(n=Nn.get(r))!=null?n:0;return Nn.set(r,i+1),i!==0||(ti.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Kf({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=F((r=n==null?void 0:n.current)!=null?r:null),i=In(o),s=N(()=>{var a;let l=[];for(let u of e)u!==null&&(u instanceof HTMLElement?l.push(u):"current"in u&&u.current instanceof HTMLElement&&l.push(u.current));if(t!=null&&t.current)for(let u of t.current)l.push(u);for(let u of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||l.some(f=>u.contains(f))||l.push(u));return l});return{resolveContainers:s,contains:N(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:X(()=>function(){return n!=null?null:k.createElement(Er,{features:Mn.Hidden,ref:o})},[o,n])}}var Xf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Xf||{}),Qf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Qf||{});let ed={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},kr=Ie(null);kr.displayName="DialogContext";function Dn(e){let t=ue(kr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Dn),n}return t}function td(e,t,n=()=>[document.body]){Jf(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function nd(e,t){return me(t.type,ed,e,t)}let rd="div",od=Sr.RenderStrategy|Sr.Static;function id(e,t){var n;let r=vt(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[f,c]=re(0),h=qo();i===void 0&&h!==null&&(i=(h&Pe.Open)===Pe.Open);let d=F(null),p=De(d,t),g=In(d),m=e.hasOwnProperty("open")||h!==null,_=e.hasOwnProperty("onClose");if(!m&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)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,[C,G]=Cn(nd,{titleId:null,descriptionId:null,panelRef:uo()}),te=N(()=>s(!1)),ie=N(pe=>G({type:0,id:pe})),Y=nn()?l?!1:b===0:!1,ke=f>1,nt=ue(kr)!==null,[at,we]=Ef(),{resolveContainers:Me,mainTreeNodeRef:Ft,MainTreeNode:Pi}=Kf({portals:at,defaultContainers:[(n=C.panelRef.current)!=null?n:d.current]}),to=ke?"parent":"leaf",no=h!==null?(h&Pe.Closing)===Pe.Closing:!1,zt=nt||no?!1:Y,Ri=ft(()=>{var pe,yt;return(yt=Array.from((pe=g==null?void 0:g.querySelectorAll("body > *"))!=null?pe:[]).find(qe=>qe.id==="headlessui-portal-root"?!1:qe.contains(Ft.current)&&qe instanceof HTMLElement))!=null?yt:null},[Ft]);Sa(Ri,zt);let Li=ke?!0:Y,yn=ft(()=>{var pe,yt;return(yt=Array.from((pe=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?pe:[]).find(qe=>qe.contains(Ft.current)&&qe instanceof HTMLElement))!=null?yt:null},[Ft]);Sa(yn,Li),Kc(Me,te,!(!Y||ke));let Hi=!(ke||b!==0);fa(g==null?void 0:g.defaultView,"keydown",pe=>{Hi&&(pe.defaultPrevented||pe.key===xr.Escape&&(pe.preventDefault(),pe.stopPropagation(),te()))}),td(g,!(no||b!==0||nt),Me),U(()=>{if(b!==0||!d.current)return;let pe=new ResizeObserver(yt=>{for(let qe of yt){let ro=qe.target.getBoundingClientRect();ro.x===0&&ro.y===0&&ro.width===0&&ro.height===0&&te()}});return pe.observe(d.current),()=>pe.disconnect()},[b,d,te]);let[Bg,jg]=ba(),Gg=X(()=>[{dialogState:b,close:te,setTitleId:ie},C],[b,C,te,ie]),Ou=X(()=>({open:b===0}),[b]),zg={ref:p,id:o,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":Bg};return k.createElement(Ff,{type:"Dialog",enabled:b===0,element:d,onUpdate:N((pe,yt)=>{yt==="Dialog"&&me(pe,{[Qo.Add]:()=>c(qe=>qe+1),[Qo.Remove]:()=>c(qe=>qe-1)})})},k.createElement(Zo,{force:!0},k.createElement(Ko,null,k.createElement(kr.Provider,{value:Gg},k.createElement(Ko.Group,{target:d},k.createElement(Zo,{force:!1},k.createElement(jg,{slot:Ou,name:"Dialog.Description"},k.createElement(On,{initialFocus:a,containers:Me,features:Y?me(to,{parent:On.features.RestoreFocus,leaf:On.features.All&~On.features.FocusLock}):On.features.None},k.createElement(we,null,be({ourProps:zg,theirProps:u,slot:Ou,defaultTag:rd,features:od,visible:b===0,name:"Dialog"}))))))))),k.createElement(Pi,null))}let sd="div";function ad(e,t){let n=vt(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Dn("Dialog.Overlay"),a=De(t),l=N(f=>{if(f.target===f.currentTarget){if(ca(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),u=X(()=>({open:i===0}),[i]);return be({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:sd,name:"Dialog.Overlay"})}let ld="div";function ud(e,t){let n=vt(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Backdrop"),a=De(t);U(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=X(()=>({open:i===0}),[i]);return k.createElement(Zo,{force:!0},k.createElement(Ko,null,be({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:ld,name:"Dialog.Backdrop"})))}let cd="div";function fd(e,t){let n=vt(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Panel"),a=De(t,s.panelRef),l=X(()=>({open:i===0}),[i]),u=N(f=>{f.stopPropagation()});return be({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:cd,name:"Dialog.Panel"})}let dd="h2";function hd(e,t){let n=vt(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Dn("Dialog.Title"),a=De(t);U(()=>(s(r),()=>s(null)),[r,s]);let l=X(()=>({open:i===0}),[i]);return be({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:dd,name:"Dialog.Title"})}let pd=ve(id),md=ve(ud),gd=ve(fd),wd=ve(ad),_d=ve(hd),ni=Object.assign(pd,{Backdrop:md,Panel:gd,Overlay:wd,Title:_d,Description:va});function yd(e=0){let[t,n]=re(e),r=An(),o=ft(l=>{r.current&&n(u=>u|l)},[t,r]),i=ft(l=>!!(t&l),[t]),s=ft(l=>{r.current&&n(u=>u&~l)},[n,r]),a=ft(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let Ca=Ie(null);function Ea(){let e=ue(Ca);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,Ea),t}return e}function bd(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,X(()=>function(n){let r=N(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=X(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return k.createElement(Ca.Provider,{value:o},n.children)},[t])]}let vd="label";function Sd(e,t){let n=vt(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Ea(),a=De(t);ye(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),be({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:vd,name:s.name||"Label"})}let Cd=ve(Sd),Ed=Object.assign(Cd,{}),ri=Ie(null);ri.displayName="GroupContext";let xd=ne;function kd(e){var t;let[n,r]=re(null),[o,i]=bd(),[s,a]=ba(),l=X(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},f=e;return k.createElement(a,{name:"Switch.Description"},k.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(c){n&&(c.currentTarget.tagName==="LABEL"&&c.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},k.createElement(ri.Provider,{value:l},be({ourProps:u,theirProps:f,defaultTag:xd,name:"Switch.Group"}))))}let $d="button";function Td(e,t){let n=vt(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...f}=e,c=ue(ri),h=F(null),d=De(h,t,c===null?null:c.setSwitch),[p,g]=af(o,s,i),m=N(()=>g==null?void 0:g(!p)),_=N(Y=>{if(ca(Y.currentTarget))return Y.preventDefault();Y.preventDefault(),m()}),b=N(Y=>{Y.key===xr.Space?(Y.preventDefault(),m()):Y.key===xr.Enter&&nf(Y.currentTarget)}),C=N(Y=>Y.preventDefault()),G=X(()=>({checked:p}),[p]),te={id:r,ref:d,role:"switch",type:Xc(e,h),tabIndex:0,"aria-checked":p,"aria-labelledby":c==null?void 0:c.labelledby,"aria-describedby":c==null?void 0:c.describedby,onClick:_,onKeyUp:b,onKeyPress:C},ie=_r();return U(()=>{var Y;let ke=(Y=h.current)==null?void 0:Y.closest("form");ke&&i!==void 0&&ie.addEventListener(ke,"reset",()=>{g(i)})},[h,g]),k.createElement(k.Fragment,null,a!=null&&p&&k.createElement(Er,{features:Mn.Hidden,...Go({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:p,name:a,value:l})}),be({ourProps:te,theirProps:f,slot:G,defaultTag:$d,name:"Switch"}))}let Md=ve(Td),Id=kd,oi=Object.assign(Md,{Group:Id,Label:Ed,Description:va});function Fd(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ii(e,...t){e&&t.length>0&&e.classList.add(...t)}function si(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Ad(e,t){let n=Rt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,c)=>c-f);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Od(e,t,n,r){let o=n?"enter":"leave",i=Rt(),s=r!==void 0?Fd(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=me(o,{enter:()=>t.enter,leave:()=>t.leave}),l=me(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=me(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return si(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ii(e,...t.base,...a,...u),i.nextFrame(()=>{si(e,...t.base,...a,...u),ii(e,...t.base,...a,...l),Ad(e,()=>(si(e,...t.base,...a),ii(e,...t.base,...t.entered),s()))}),i.dispose}function Nd({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=An(),a=_r(),l=mt(n);ye(()=>{e&&(l.current="enter")},[e]),ye(()=>{let u=Rt();a.add(u.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return u.dispose(),o.current(l.current),u.add(Od(f,r.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function Et(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let $r=Ie(null);$r.displayName="TransitionContext";var Dd=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Dd||{});function Pd(){let e=ue($r);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Rd(){let e=ue(Tr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Tr=Ie(null);Tr.displayName="NestingContext";function Mr(e){return"children"in e?Mr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function xa(e,t){let n=mt(e),r=F([]),o=An(),i=_r(),s=N((d,p=St.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===d);g!==-1&&(me(p,{[St.Unmount](){r.current.splice(g,1)},[St.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var m;!Mr(r)&&o.current&&((m=n.current)==null||m.call(n))}))}),a=N(d=>{let p=r.current.find(({el:g})=>g===d);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,St.Unmount)}),l=F([]),u=F(Promise.resolve()),f=F({enter:[],leave:[],idle:[]}),c=N((d,p,g)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([m])=>m!==d)),t==null||t.chains.current[p].push([d,new Promise(m=>{l.current.push(m)})]),t==null||t.chains.current[p].push([d,new Promise(m=>{Promise.all(f.current[p].map(([_,b])=>b)).then(()=>m())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(p)):g(p)}),h=N((d,p,g)=>{Promise.all(f.current[p].splice(0).map(([m,_])=>_)).then(()=>{var m;(m=l.current.shift())==null||m()}).then(()=>g(p))});return X(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}function Ld(){}let Hd=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ka(e){var t;let n={};for(let r of Hd)n[r]=(t=e[r])!=null?t:Ld;return n}function Vd(e){let t=F(ka(e));return U(()=>{t.current=ka(e)},[e]),t}let Ud="div",$a=Sr.RenderStrategy;function Bd(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:f,entered:c,leave:h,leaveFrom:d,leaveTo:p,...g}=e,m=F(null),_=De(m,t),b=(n=g.unmount)==null||n?St.Unmount:St.Hidden,{show:C,appear:G,initial:te}=Pd(),[ie,Y]=re(C?"visible":"hidden"),ke=Rd(),{register:nt,unregister:at}=ke;U(()=>nt(m),[nt,m]),U(()=>{if(b===St.Hidden&&m.current){if(C&&ie!=="visible"){Y("visible");return}return me(ie,{hidden:()=>at(m),visible:()=>nt(m)})}},[ie,m,nt,at,C,b]);let we=mt({base:Et(g.className),enter:Et(l),enterFrom:Et(u),enterTo:Et(f),entered:Et(c),leave:Et(h),leaveFrom:Et(d),leaveTo:Et(p)}),Me=Vd({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),Ft=nn();U(()=>{if(Ft&&ie==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,ie,Ft]);let Pi=te&&!G,to=G&&C&&te,no=!Ft||Pi?"idle":C?"enter":"leave",zt=yd(0),Ri=N(_t=>me(_t,{enter:()=>{zt.addFlag(Pe.Opening),Me.current.beforeEnter()},leave:()=>{zt.addFlag(Pe.Closing),Me.current.beforeLeave()},idle:()=>{}})),Li=N(_t=>me(_t,{enter:()=>{zt.removeFlag(Pe.Opening),Me.current.afterEnter()},leave:()=>{zt.removeFlag(Pe.Closing),Me.current.afterLeave()},idle:()=>{}})),yn=xa(()=>{Y("hidden"),at(m)},ke);Nd({immediate:to,container:m,classes:we,direction:no,onStart:mt(_t=>{yn.onStart(m,_t,Ri)}),onStop:mt(_t=>{yn.onStop(m,_t,Li),_t==="leave"&&!Mr(yn)&&(Y("hidden"),at(m))})});let Wt=g,Hi={ref:_};return to?Wt={...Wt,className:vr(g.className,...we.current.enter,...we.current.enterFrom)}:(Wt.className=vr(g.className,(r=m.current)==null?void 0:r.className),Wt.className===""&&delete Wt.className),k.createElement(Tr.Provider,{value:yn},k.createElement(sf,{value:me(ie,{visible:Pe.Open,hidden:Pe.Closed})|zt.flags},be({ourProps:Hi,theirProps:Wt,defaultTag:Ud,features:$a,visible:ie==="visible",name:"Transition.Child"})))}function jd(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=F(null),a=De(s,t);nn();let l=qo();if(n===void 0&&l!==null&&(n=(l&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,f]=re(n?"visible":"hidden"),c=xa(()=>{f("hidden")}),[h,d]=re(!0),p=F([n]);ye(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),d(!1))},[p,n]);let g=X(()=>({show:n,appear:r,initial:h}),[n,r,h]);U(()=>{if(n)f("visible");else if(!Mr(c))f("hidden");else{let C=s.current;if(!C)return;let G=C.getBoundingClientRect();G.x===0&&G.y===0&&G.width===0&&G.height===0&&f("hidden")}},[n,c]);let m={unmount:o},_=N(()=>{var C;h&&d(!1),(C=e.beforeEnter)==null||C.call(e)}),b=N(()=>{var C;h&&d(!1),(C=e.beforeLeave)==null||C.call(e)});return k.createElement(Tr.Provider,{value:c},k.createElement($r.Provider,{value:g},be({ourProps:{...m,as:ne,children:k.createElement(Ta,{ref:a,...m,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:ne,features:$a,visible:u==="visible",name:"Transition"})))}function Gd(e,t){let n=ue($r)!==null,r=qo()!==null;return k.createElement(k.Fragment,null,!n&&r?k.createElement(ai,{ref:t,...e}):k.createElement(Ta,{ref:t,...e}))}let ai=ve(jd),Ta=ve(Bd),zd=ve(Gd),Ma=Object.assign(ai,{Child:zd,Root:ai});const Ut={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function li(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 Wd(e,t){switch(t){case Ut.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ut.SnakeCase:return li(e,"_");case Ut.SnakeCaseAllCaps:return li(e,"_").toUpperCase();case Ut.KebabCase:return li(e,"-");case Ut.None:default:return e}}function xt(e,t=Ut.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Wd(s,a),n[s]=l}for(let s of e){let a=Ut.None;if(s==null&&o(s),s instanceof H){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}let Ir=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}};function qd(e){return v(oi,xt(e,1))}class Ia extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Yd(e){return v(oi.Label,xt(e,1))}class Zd extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function Jd(e){return v(oi.Group,xt(e,1))}const Kd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Qd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eh=["January","February","March","April","May","June","July","August","September","October","November","December"];function Re(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Fa(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function th(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function ui(e,t,n){let r=0,o=0,i="";const s=n?Pn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Re(t,r,"d"),r+=o,o){case 1:i+=Na(s);break;case 2:i+=L(Na(s),2);break;case 3:i+=Kd[Ra(s)];break;case 4:i+=Xd[Ra(s)];break}break;case"f":if(o=Re(t,r,"f"),r+=o,o<=3){const m=10**(3-o);i+=L(Math.floor(Nr(s)/m),o)}else o<=7&&(i+=(""+Nr(s)).padEnd(o,"0"));break;case"F":if(o=Re(t,r,"F"),r+=o,o<=3){const m=10**(3-o),_=Math.floor(Nr(s)/m);_!=0&&(i+=L(_,o))}else if(o<=7){const m=Nr(s);m!=0&&(i+=L(m,3))}break;case"g":o=Re(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Re(t,r,"h"),r+=o,o){case 1:i+=Or(s)%12;break;case 2:i+=L(Or(s)%12,2);break}break;case"H":switch(o=Re(t,r,"H"),r+=o,o){case 1:i+=Or(s);break;case 2:i+=L(Or(s),2);break}break;case"K":switch(o=Re(t,r,"K"),r+=o,o){case 1:switch(Aa(s)){case 1:i+="Z";break;case 2:i+=rn(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Re(t,r,"m"),r+=o,o){case 1:i+=Da(s);break;case 2:i+=L(Da(s),2);break}break;case"M":switch(o=Re(t,r,"M"),r+=o,o){case 1:i+=Dr(s);break;case 2:i+=L(Dr(s),2);break;case 3:i+=Qd[Dr(s)-1];break;case 4:i+=eh[Dr(s)-1];break}break;case"s":switch(o=Re(t,r,"s"),r+=o,o){case 1:i+=Pa(s);break;case 2:i+=L(Pa(s),2);break}break;case"t":switch(o=Re(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Re(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=L(s.getFullYear()%100,2);break;case 3:i+=L(s.getFullYear(),3);break;case 4:i+=L(s.getFullYear(),4);break;case 5:i+=L(s.getFullYear(),5);break}break;case"z":o=Re(t,r,"z"),r+=o;let l="";switch(Aa(s)){case 1:l="+00:00";break;case 2:l=rn(s.getTimezoneOffset()*-6e4);break;case 0:l=rn(ch(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${L(f,2)}`;break;default:i+=`${u}${L(f,2)}:${L(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=th(t,r);i+=h,r+=d;break;case"%":const p=Fa(t,r);if(p>=0&&p!==37)r+=2,i+=ui(s,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=Fa(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Aa(e){return e.kind||0}function rn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+L(n,2)+":"+L(r,2)}function Fr(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 nh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return L(e.getFullYear(),4)+"-"+L(e.getMonth()+1,2)+"-"+L(e.getDate(),2)+"T"+L(e.getHours(),2)+":"+L(e.getMinutes(),2)+":"+L(e.getSeconds(),2)+"."+L(e.getMilliseconds(),3)+(n?rn(e.getTimezoneOffset()*-6e4):"")}}function rh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+rn(t)}function oh(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+rn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Fr(n,"first");case"T":case"t":return Fr(n,"second");case"O":case"o":return rh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ui(n,t,!0)}function ih(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?Fr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Fr(e,"second"):e.toLocaleTimeString();case"O":case"o":return nh(e,n);default:throw new Error("Unrecognized Date print format")}else return ui(e,t,n)}function Ar(e,t,n){return e.offset!=null?oh(e,t):ih(e,t)}function Pn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function sh(){return Pn(-621355968e5,1)}function Oa(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function ah(e,t=!1){const[n,r]=Oa(e),o=r!=null?t&&r==="Z"?1:2:0;return Pn(n.getTime(),o)}function lh(e,t){try{return t.contents=ah(e),!0}catch{return!1}}function uh(e){return e.kind===1?e:Pn(e.getTime(),1)}function ch(e){return e.kind===2?e:Pn(e.getTime(),2)}function Na(e){return e.kind===1?e.getUTCDate():e.getDate()}function Or(e){return e.kind===1?e.getUTCHours():e.getHours()}function Nr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Da(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Dr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Pa(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ra(e){return e.kind===1?e.getUTCDay():e.getDay()}function fh(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function La(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ha(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 dh(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=fh(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Ha(e,a),u=Ha.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const Rn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ln=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,hh=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Va(e,t){return Tc(e,t)<0}function kt(e){return{input:e,cont:mh(e)}}function ph(e,t){let n=0,r=0,o="";Ln.lastIndex=0;let i=Ln.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=Ln.lastIndex,o+=ja(t[n++],a,l,u,f),Ln.lastIndex=r-1,i=Ln.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Ua(e,t){return typeof t=="string"?e(t):t.cont(e)}function Bt(e){return Ua(t=>t,e)}function Ba(e){return Ua(t=>{throw new Error(t)},e)}function ja(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Gs(e))switch(o.toLowerCase()!=="x"&&(Va(e,0)?(e=Ro(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=fr(e,r);break;case"g":case"G":e=r!=null?dr(e,r):dr(e);break;case"e":case"E":e=r!=null?hr(e,r):hr(e);break;case"x":e=pr(e);break;case"X":e=pr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ar(e):e=Ke(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=Hn(e,n-i.length,l,a),e=i+e):e=Hn(i+e,n,l,a)}return e}function Ga(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,h,d]=l[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=ja(u,f,p,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Ga(e,a,l,s,o)}}function mh(e){return t=>{Rn.lastIndex=0;const n=[],r=[];let o=0,i=Rn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Rn.lastIndex,Rn.lastIndex-=1,i=Rn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ga(t,n,r))}}function gh(e,...t){let n;return n=e,n.replace(hh,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Gs(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=fr(u,a);break;case"g":case"G":u=a!=null?dr(u,a):dr(u);break;case"e":case"E":u=a!=null?hr(u,a):hr(u);break;case"p":case"P":a=a??2,u=fr(Ro(u,100),a)+" %";break;case"d":case"D":u=a!=null?ci(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ci(pr(u),a,"0"):pr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Va(u,0)&&(u=Ro(u,-1),f="-"),d=d==null?"":d.substring(1),u=fr(u,Math.max(d.length,0));let[p,g]=u.split(".");g||(g="");const m=h.replace(/,/g,"").replace(/^#+/,"").length;p=ci(p,m,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=_h(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const b=p.length%3,C=Math.floor(p.length/3);let G=b>0?p.substr(0,b)+(C>0?",":""):"";for(let te=0;te<C;te++)G+=p.substr(b+te*3,3)+(te<C-1?",":"");p=G}return g.length>0?p+"."+g:p}),u=f+u}}else u instanceof Date?u=Ar(u,l||s):u=Ke(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Hn(String(u),Math.abs(i)," ",i<0)),u})}function wh(e){return typeof e!="string"||e.length===0}function $e(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Hn(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 ci(e,t,n){return Hn(e,t,n)}function _h(e,t,n){return Hn(e,t,n,!0)}function za(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(La),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function yh(e,...t){if(t.length===0)return e.trim();const n="["+La(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class on{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ht(this.value)}Equals(t){return t==null?!1:Ae(this.value,t instanceof on?t.value:t)}CompareTo(t){return t==null?1:Be(this.value,t instanceof on?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof on?e.value:e}function ce(e){return e==null||e instanceof on?new on(e):e}function fi(e,t){return e!=null?y(e):t}function bh(e,t){return e!=null?y(e):t()}function vh(e,t){return t!=null?ce(e(y(t))):void 0}const Wa="Collection was empty.";function qa(e,t){return new Array(t)}function Ya(e,t){return e>t?e:t}function Pr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function sn(e,t,n){const r=t.length|0,o=qa(n,r);for(let i=0;i<=r-1;i++)rt(o,i,e(Q(i,t)));return o}function Sh(e,t){const n=qa(t,1);return rt(n,0,e),n}function Ch(e){return e.slice().reverse()}function Eh(e,t){return t.find(e)}function xh(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(Q(o,t));if(i!=null){const s=y(i);r.push(s)}}return Ae(n,Fe())?r:sn(o=>o,r,n)}function Rr(e,t,n){const r=e;return n.reduce(r,t)}function kh(e,t,n){return t==null}function Q(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function rt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Za(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Se extends _e{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+$e("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u);if(Ae(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=y(u);if(s>18)return a|0;r=s+1,o=(a<<1)+ht(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u),h=Be(s.head,a.head)|0;if(h===0){o=f,i=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Th(this)}[Symbol.iterator](){return sr(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return oe(this)}}class $h{constructor(t){this.xs=t,this.it=this.xs,this.current=Fe()}"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=y(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=Fe()}Dispose(){}}function Th(e){return new $h(e)}function ae(){return new Se(Fe(),void 0)}function Vn(e,t){return new Se(e,t)}function Un(e){return e.tail==null}function Mh(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=y(s);continue e}else return o|0}})(0,e)|0}function Lr(e){if(e.tail!=null)return e.head;throw new Error(Wa+"\\nParameter name: list")}function Ge(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Wa+"\\nParameter name: list")}function le(){return ae()}function ze(e,t){return Vn(e,t)}function J(e){return Vn(e,ae())}function D(e){return Un(e)}function E(e){return Lr(e)}function A(e){return Ge(e)}function Bn(e){const t=Mh(e)|0,n=Pr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Un(a)){rt(n,s,Lr(a)),o=s+1,i=Ge(a);continue e}break}})(0,e),n}function ot(e,t,n){let r=t,o=n;for(;!Un(o);)r=e(r,E(o)),o=Ge(o);return r}function di(e){return ot((t,n)=>Vn(n,t),ae(),e)}function Ih(e,t,n){return Za(e,Bn(t),n)}function jn(e,t){ot((n,r)=>{e(r)},void 0,t)}function ee(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Vn(Q(r,e),n);return n}function x(e){return ee(e,ae())}function Fh(e){let t,n;if(Ze(e))return x(e);if(e instanceof Se)return e;{const r=ae();let o=r;const i=oe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Se(l,void 0),t.tail=n,n)}}finally{W(i)}const s=o,a=ae();return s.tail=a,Ge(r)}}function Ah(e){const t=ae();let n=t;const r=s=>{n=ot((a,l)=>{const u=new Se(l,void 0);return a.tail=u,u},n,s)};if(Ze(e))e.forEach(r);else if(e instanceof Se)jn(r,e);else{const s=oe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{W(s)}}const o=n,i=ae();return o.tail=i,Ge(t)}function hi(e,t){return ot((n,r)=>Vn(r,n),t,di(e))}function Hr(e,t){const n=ae(),r=ot((i,s)=>{const a=new Se(e(s),void 0);return i.tail=a,a},n,t),o=ae();return r.tail=o,Ge(n)}function Oh(e,t){return(r=>{e:for(;;){const o=r;if(Un(o))return;{const i=e(Lr(o));if(i==null){r=Ge(o);continue e}else return i}}})(t)}function Nh(e,t){return Oh(n=>e(n)?ce(n):void 0,t)}function Dh(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Un(s))return;if(e(Lr(s)))return i;r=i+1,o=Ge(s);continue e}})(0,t)}function Ph(e,t){const n=ae(),r=ot((i,s)=>{if(e(s)){const a=new Se(s,void 0);return i.tail=a,a}else return i},n,t),o=ae();return r.tail=o,Ge(n)}function Rh(e,t){const n=ae(),r=ae(),o=n,i=ot((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new Se(u,void 0),h.tail=f,f),d]:[h,(c=new Se(u,void 0),d.tail=c,c)]},[o,r],t),s=ae();i[0].tail=s;const a=ae();return i[1].tail=a,[Ge(o),Ge(r)]}function Lh(e,t){const n=ae(),r=ot((i,s)=>{const a=e(s);if(a==null)return i;{const l=new Se(y(a),void 0);return i.tail=l,l}},n,t),o=ae();return r.tail=o,Ge(n)}function Ja(e,t,n){return Dh(r=>n.Equals(e,r),t)!=null}const B=k;function Hh(e){throw new Error(e)}const Vh="Enumeration already finished.",Uh="Enumeration has not started. Call MoveNext.",Ka="The input sequence has an insufficient number of elements.",Bh="Reset is not supported on this enumerator.";function jh(){throw new Error(Bh)}function pi(){throw new Error(Uh)}function mi(){throw new Error(Vh)}class Gh{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=oe(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ke(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{W(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return sr(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function zh(e){return new Gh(e)}class Wh{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"(){jh()}Dispose(){this.dispose()}}function Vr(e,t,n){return new Wh(e,t,n)}function qh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=y(n);try{W(a)}finally{n=void 0}}if(t!=null){const a=y(t);try{W(a)}finally{t=void 0}}};return Vr(()=>(r?o&&mi():pi(),i!=null?y(i):mi()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=y(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=ce(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{W(c)}finally{n=void 0}}else{const c=y(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),oe(a)):(s(),l=!1)}else t=oe(e)}return y(l)}},()=>{o||s()})}function Yh(e,t){return Vr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{W(t)}finally{}})}function Xa(e,t,n){let r=!1,o,i=ce(e());const s=()=>{if(i!=null){const l=y(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Vr(()=>(r||pi(),o!=null?y(o):mi()),()=>{if(r||(r=!0),i!=null){const l=y(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Zh(e,t){let n,r=t;return Vr(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return pi()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Jh(e,t){t==null&&Hh(e)}function an(e){return zh(e)}function $t(e){return Jh("source",e),oe(e)}function P(e){return an(()=>oe(e()))}function Qa(e){return an(()=>qh(e))}function Kh(e,t){return an(()=>Zh(e,t))}function el(){return P(()=>new Array(0))}function I(e){return P(()=>Sh(e))}function qg(e){return e}function Xh(e){return e instanceof Se?Bn(e):Array.from(e)}function Tt(e){return Ze(e)?x(e):e instanceof Se?e:Fh(e)}function Qh(e,t,n){return an(()=>Xa(e,t,n))}function tl(e,t,n){return an(()=>{let r=-1;return Xa(e,o=>(r=r+1|0,t(r,o)),n)})}function fe(e,t){return Qa([e,t])}function ep(e,t,n){const r=$t(t);try{const o=$t(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{W(o)}}finally{W(r)}}function ln(e,t,n){const r=$t(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{W(r)}}function Ur(e,t,n){const r=$t(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{W(r)}}function nl(e,t){Ur((n,r)=>{e(r)},void 0,t)}function We(e,t){return Qh(()=>$t(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ce(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{W(n)})}function tp(e,t){return tl(()=>$t(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ce(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{W(n)})}function np(e){return P(()=>Ch(Xh(e)))}function rp(e,t){return an(()=>{const n=$t(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ka+"\\nParameter name: source");return Yh(()=>{},n)}catch(r){throw W(n),r}})}function op(e,t){return tl(()=>$t(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ce(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ka+"\\nParameter name: source")}else return},n=>{W(n)})}function ip(e,t){return P(()=>Qa(We(e,t)))}function sp(e){return new w(0,[e])}function rl(e){return new w(1,[e])}class w extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gt(e,t){return t.tag===0?sp(e(t.fields[0])):rl(t.fields[0])}function ap(e,t){return t.tag===0?e(t.fields[0]):rl(t.fields[0])}class S extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Mt extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function ol(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function il(e,t){switch(e.tag){case 2:return dh(ol(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ol(t)}}const lp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,sl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,up=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function cp(e){function t(r){return r.replace(sl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(lp.test(n))return yh(n,"{","}","(",")");if(sl.test(n))return t(n);if(up.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 fp(e,t){try{return t.contents=cp(e),!0}catch{return!1}}var gi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(gi||(gi={}));function dp(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function al(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 hp(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 pp(e,t){if(t&gi.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 mp(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||pp(i,t),!hp(n).test(s))return dp(o,n)}return null}function gp(e,t,n,r,o){const i=mp(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=al(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=al(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function un(e,t,n,r,o){try{return o.contents=gp(e,t,n,r),!0}catch{return!1}}function ll(e,t){wp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function wp(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 _p(){return ll(-621355968e5,0)}function yp(e){const[t,n]=Oa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return ll(t.getTime(),r)}function bp(e,t){try{return t.contents=yp(e),!0}catch{return!1}}function Gn(e){return e<0?Math.ceil(e):Math.floor(e)}function ul(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return vp(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 vp(e){return Number(BigInt(e)/10000n)}function Sp(e){return Gn(e/864e5)}function Cp(e){return Gn(e%864e5/36e5)}function Ep(e){return Gn(e%36e5/6e4)}function xp(e){return Gn(e%6e4/1e3)}function kp(e){return Gn(e%1e3)}function $p(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Sp(e)),o=Math.abs(Cp(e)),i=Math.abs(Ep(e)),s=Math.abs(xp(e)),a=Math.abs(kp(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:L(o,2)}:${L(i,2)}:${L(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+L(a,3):"."+ac(a,3,7)}`}function Tp(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 ul(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*ul(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Mp(e,t){try{return t.contents=Tp(e),!0}catch{return!1}}class cl{constructor(t,n){this.k=t,this.v=n}}function Br(e,t){return new cl(e,t)}function Ce(e){return e.k}function Le(e){return e.v}class se extends cl{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function jr(e,t,n,r,o){return new se(e,t,n,r,o)}function Ee(e){return e.left}function xe(e){return e.right}function jt(e){return e.h}function Yg(){}function fl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof se){const i=o;e=fl(n+1,Ee(i)),t=xe(i);continue e}else return n+1|0}else return n|0}}function Ip(e){return fl(0,e)}function Xe(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=y(a);s=c instanceof se?(o=c,jt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=y(u);l=c instanceof se?(i=c,jt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?Br(t,n):jr(t,n,e,r,f+1)}function dl(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const m=y(d);h=m instanceof se?(o=m,jt(o)):1}else h=0;let p;const g=r;if(g!=null){const m=y(g);p=m instanceof se?(i=m,jt(i)):1}else p=0;if(p>h+2){const m=y(r);if(m instanceof se){const _=m;if(s=Ee(_),(s!=null?(a=y(s),a instanceof se?(l=a,jt(l)):1):0)>h+1){const b=y(Ee(_));if(b instanceof se){const C=b;return Xe(Xe(e,t,n,Ee(C)),Ce(C),Le(C),Xe(xe(C),Ce(_),Le(_),xe(_)))}else throw new Error("internal error: Map.rebalance")}else return Xe(Xe(e,t,n,Ee(_)),Ce(_),Le(_),xe(_))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const m=y(e);if(m instanceof se){const _=m;if(u=xe(_),(u!=null?(f=y(u),f instanceof se?(c=f,jt(c)):1):0)>p+1){const b=y(xe(_));if(b instanceof se){const C=b;return Xe(Xe(Ee(_),Ce(_),Le(_),Ee(C)),Ce(C),Le(C),Xe(xe(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Xe(Ee(_),Ce(_),Le(_),Xe(xe(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Xe(e,t,n,r)}function cn(e,t,n,r){if(r!=null){const o=y(r),i=e.Compare(t,Ce(o))|0;if(o instanceof se){const s=o;return i<0?dl(cn(e,t,n,Ee(s)),Ce(s),Le(s),xe(s)):i===0?jr(t,n,Ee(s),xe(s),jt(s)):dl(Ee(s),Ce(s),Le(s),cn(e,t,n,xe(s)))}else return i<0?jr(t,n,void 0,r,2):i===0?Br(t,n):jr(t,n,r,void 0,2)}else return Br(t,n)}function hl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,Ce(s))|0;if(a===0)return ce(Le(s));if(s instanceof se){const l=s;e=r,t=o,n=a<0?Ee(l):xe(l);continue e}else return}else return}}function Fp(e,t,n){const r=hl(e,t,n);if(r==null)throw new Error;return y(r)}function Ap(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,Ce(s))|0;if(s instanceof se){const l=s;if(a<0){e=r,t=o,n=Ee(l);continue e}else{if(a===0)return!0;e=r,t=o,n=xe(l);continue e}}else return a===0}else return!1}}function pl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof se){const i=o;pl(n,Ee(i)),n(Ce(i),Le(i)),e=n,t=xe(i);continue e}else n(Ce(o),Le(o))}break}}function Op(e,t){pl(e,t)}function Np(e,t,n){let r=n;Op((o,i)=>{rt(t,r,[o,i]),r=r+1|0},e)}function Dp(e,t){return ot((n,r)=>cn(e,r[0],r[1],n),void 0,t)}function Pp(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=cn(r,s[0],s[1],o),n=i;continue e}else return o}}function Rp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=Q(r,t);n=cn(e,o[0],o[1],n)}return n}function ml(e,t){if(Ze(t))return Rp(e,t);if(t instanceof Se)return Dp(e,t);{const n=oe(t);try{return Pp(e,void 0,n)}finally{W(n)}}}class Lp extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function gl(e){e:for(;;){const t=e;if(D(t))return le();{const n=A(t),r=E(t);if(r!=null){const o=y(r);if(o instanceof se){const i=o;e=ee([Ee(i),Br(Ce(i),Le(i)),xe(i)],n);continue e}else return t}else{e=n;continue e}}}}function wl(e){return new Lp(gl(J(e)),!1)}function Hp(){throw new Error("enumeration not started")}function Vp(){throw new Error("enumeration already finished")}function _l(e){if(e.started){const t=e.stack;if(D(t))return Vp();if(E(t)!=null){const n=y(E(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ce(n),Le(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Hp()}function Up(e){if(e.started){const t=e.stack;if(D(t))return!1;if(E(t)!=null){if(y(E(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=gl(A(t)),!D(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function yl(e){let t=wl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _l(t)},"System.Collections.IEnumerator.get_Current"(){return _l(t)},"System.Collections.IEnumerator.MoveNext"(){return Up(t)},"System.Collections.IEnumerator.Reset"(){t=wl(e)},Dispose(){}}}class Gr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return zp(this)|0}Equals(t){const n=this;if(t instanceof Gr){const r=t,o=oe(n);try{const i=oe(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ae(l[0],u[0])&&Ae(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{W(i)}}finally{W(o)}}else return!1}toString(){return"map ["+$e("; ",We(n=>gh("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return yl(this.tree)}[Symbol.iterator](){return sr(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return yl(this.tree)}CompareTo(t){const n=this;if(t instanceof Gr)return ep((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Be(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return vl(n,t[0])&&Ae(bl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Np(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return wi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return wi(this)|0}get size(){return wi(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return We(n=>[n[0],n[1]],this)}get(t){return bl(this,t)}has(t){return vl(this,t)}keys(){return We(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return We(n=>n[1],this)}forEach(t,n){const r=this;nl(o=>{t(o[1],o[0],r)},r)}}function zr(e,t){return new Gr(e,t)}function Bp(e){return zr(e,void 0)}function jp(e,t,n){return zr(e.comparer,cn(e.comparer,t,n,e.tree))}function bl(e,t){return Fp(e.comparer,t,e.tree)}function wi(e){return Ip(e.tree)}function vl(e,t){return Ap(e.comparer,t,e.tree)}function Gp(e,t){return hl(e.comparer,t,e.tree)}function zp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=oe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ht(o[0]))|0,n=t(n,ht(o[1]))|0}}finally{W(r)}return n|0}function Sl(e,t,n){return jp(n,e,t)}function Cl(e,t){return Gp(t,e)}function Wp(e,t){return zr(t,ml(t,e))}function qp(e,t){return zr(t,ml(t,e))}function _i(e){return Bp(e)}class El{constructor(t){this.k=t}}function He(e){return new El(e)}function $(e){return e.k}class R extends El{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ve(e,t,n,r){return new R(e,t,n,r)}function z(e){return e.left}function j(e){return e.right}function fn(e){return e.h}function Zg(){}function xl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof R){const i=o;e=z(i),t=xl(j(i),r+1);continue e}else return r+1|0}else return r|0}}function Yp(e){return xl(e,0)}function Qe(e,t,n){let r,o,i;const s=e;if(s!=null){const f=y(s);i=f instanceof R?(r=f,fn(r)):1}else i=0;let a;const l=n;if(l!=null){const f=y(l);a=f instanceof R?(o=f,fn(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?He(t):Ve(t,e,n,u+1)}function kl(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const g=y(h);c=g instanceof R?(r=g,fn(r)):1}else c=0;let d;const p=n;if(p!=null){const g=y(p);d=g instanceof R?(o=g,fn(o)):1}else d=0;if(d>c+2){const g=y(n);if(g instanceof R){const m=g;if(i=z(m),(i!=null?(s=y(i),s instanceof R?(a=s,fn(a)):1):0)>c+1){const _=y(z(m));if(_ instanceof R){const b=_;return Qe(Qe(e,t,z(b)),$(b),Qe(j(b),$(m),j(m)))}else throw new Error("internal error: Set.rebalance")}else return Qe(Qe(e,t,z(m)),$(m),j(m))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const g=y(e);if(g instanceof R){const m=g;if(l=j(m),(l!=null?(u=y(l),u instanceof R?(f=u,fn(f)):1):0)>d+1){const _=y(j(m));if(_ instanceof R){const b=_;return Qe(Qe(z(m),$(m),z(b)),$(b),Qe(j(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Qe(z(m),$(m),Qe(j(m),t,n))}else throw new Error("internal error: Set.rebalance")}else return Qe(e,t,n)}function dn(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,$(r))|0;if(r instanceof R){const i=r;return o<0?kl(dn(e,t,z(i)),$(i),j(i)):o===0?n:kl(z(i),$(i),dn(e,t,j(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?Ve(t,void 0,n,2):i===0?n:Ve(t,n,void 0,2)}}else return He(t)}function $l(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,$(s))|0;if(s instanceof R){const l=s;if(a<0){e=r,t=o,n=z(l);continue e}else{if(a===0)return!0;e=r,t=o,n=j(l);continue e}}else return a===0}else return!1}}function Tl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof R){const i=o;Tl(n,z(i)),n($(i)),e=n,t=j(i);continue e}else n($(o))}break}}class Zp extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function Ml(e){e:for(;;){const t=e;if(D(t))return le();{const n=E(t),r=A(t);if(n!=null){const o=y(n);if(o instanceof R){const i=o;e=ee([z(i),He($(i)),j(i)],r);continue e}else return t}else{e=r;continue e}}}}function Il(e){return new Zp(Ml(J(e)),!1)}function Jp(){throw new Error("Enumeration not started")}function Kp(){throw new Error("Enumeration already started")}function Fl(e){if(e.started){const t=e.stack;if(D(t))return Kp();if(E(t)!=null){const n=y(E(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Jp()}function Xp(e){if(e.started){const t=e.stack;if(D(t))return!1;if(E(t)!=null){if(y(E(t))instanceof R)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ml(A(t)),!D(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function Al(e){let t=Il(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Fl(t)},"System.Collections.IEnumerator.get_Current"(){return Fl(t)},"System.Collections.IEnumerator.MoveNext"(){return Xp(t)},"System.Collections.IEnumerator.Reset"(){t=Il(e)},Dispose(){}}}function Qp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(D(o))return D(i)?0:-1;if(D(i))return 1;if(E(i)!=null)if(E(o)!=null){const s=y(E(o)),a=y(E(i));if(s instanceof R){const l=s;if(z(l)==null)if(a instanceof R){const u=a;if(z(u)==null){const f=r.Compare($(l),$(u))|0;if(f!==0)return f|0;e=r,t=ze(j(l),A(o)),n=ze(j(u),A(i));continue e}else{let f,c,h,d,p;switch(D(o)?D(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2:E(o)!=null?(f=0,c=A(o),h=y(E(o))):D(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2,f){case 0:if(h instanceof R){const g=h;e=r,t=ee([z(g),Ve($(g),void 0,j(g),0)],c),n=i;continue e}else{e=r,t=ee([void 0,He($(h))],c),n=i;continue e}case 1:if(p instanceof R){const g=p;e=r,t=o,n=ee([z(g),Ve($(g),void 0,j(g),0)],d);continue e}else{e=r,t=o,n=ee([void 0,He($(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare($(l),$(a))|0;if(u!==0)return u|0;e=r,t=ze(j(l),A(o)),n=ze(void 0,A(i));continue e}else{let u,f,c,h,d;switch(D(o)?D(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):D(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof R){const p=c;e=r,t=ee([z(p),Ve($(p),void 0,j(p),0)],f),n=i;continue e}else{e=r,t=ee([void 0,He($(c))],f),n=i;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=ee([z(p),Ve($(p),void 0,j(p),0)],h);continue e}else{e=r,t=o,n=ee([void 0,He($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof R){const l=a;if(z(l)==null){const u=r.Compare($(s),$(l))|0;if(u!==0)return u|0;e=r,t=ze(void 0,A(o)),n=ze(j(l),A(i));continue e}else{let u,f,c,h,d;switch(D(o)?D(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):D(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof R){const p=c;e=r,t=ee([z(p),Ve($(p),void 0,j(p),0)],f),n=i;continue e}else{e=r,t=ee([void 0,He($(c))],f),n=i;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=ee([z(p),Ve($(p),void 0,j(p),0)],h);continue e}else{e=r,t=o,n=ee([void 0,He($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=A(o),n=A(i);continue e}}else{y(E(i));let s,a,l,u,f;switch(D(o)?D(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):D(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof R){const c=l;e=r,t=ee([z(c),Ve($(c),void 0,j(c),0)],a),n=i;continue e}else{e=r,t=ee([void 0,He($(l))],a),n=i;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=ee([z(c),Ve($(c),void 0,j(c),0)],u);continue e}else{e=r,t=o,n=ee([void 0,He($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){y(E(o));let s,a,l,u,f;switch(D(o)?D(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):D(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof R){const c=l;e=r,t=ee([z(c),Ve($(c),void 0,j(c),0)],a),n=i;continue e}else{e=r,t=ee([void 0,He($(l))],a),n=i;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=ee([z(c),Ve($(c),void 0,j(c),0)],u);continue e}else{e=r,t=o,n=ee([void 0,He($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=A(o),n=A(i);continue e}}}function Ol(e,t,n){return t==null?n==null?0:-1:n==null?1:Qp(e,J(t),J(n))|0}function em(e,t,n){let r=n;Tl(o=>{rt(t,r,o),r=r+1|0},e)}function tm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=dn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function nm(e,t){return Rr((n,r)=>dn(e,r,n),void 0,t)}function rm(e,t){return ot((n,r)=>dn(e,r,n),void 0,t)}function Nl(e,t){if(Ze(t))return nm(e,t);if(t instanceof Se)return rm(e,t);{const n=oe(t);try{return tm(e,void 0,n)}finally{W(n)}}}class yi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return sm(this)|0}Equals(t){let n;const r=this;return t instanceof yi&&(n=t,Ol(hn(r),et(r),et(n))===0)}toString(){return"set ["+$e("; ",We(n=>Ke(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ol(hn(n),et(n),et(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 $l(hn(n),t,et(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){em(et(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return bi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return bi(this)|0}GetEnumerator(){return Al(et(this))}[Symbol.iterator](){return sr(oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Al(et(this))}get size(){return bi(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 Dl(this,t)}keys(){return We(n=>n,this)}values(){return We(n=>n,this)}entries(){return We(n=>[n,n],this)}forEach(t,n){const r=this;nl(o=>{t(o,o,r)},r)}}function Wr(e,t){return new yi(e,t)}function hn(e){return e.comparer}function et(e){return e.tree}function om(e){return Wr(e,void 0)}function im(e,t){return Wr(hn(e),dn(hn(e),t,et(e)))}function bi(e){return Yp(et(e))}function Dl(e,t){return $l(hn(e),t,et(e))}function sm(e){let t=0;const n=oe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ht(r)+631|0}}finally{W(n)}return Math.abs(t)|0}function vi(e,t){return Dl(t,e)}function am(e,t){return im(t,e)}function lm(e){return om(e)}function um(e,t){return Wr(t,Nl(t,e))}function cm(e,t){return Wr(t,Nl(t,e))}function zn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
7
7
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
8
|
-
`:" ")}}function
|
9
|
-
Reason: `+t.fields[2]:t.tag===3?
|
8
|
+
`:" ")}}function fm(e,t){const n=t.tag===2?zn(t.fields[0],t.fields[1],!0):t.tag===1?zn(t.fields[0],t.fields[1],!1)+`
|
9
|
+
Reason: `+t.fields[2]:t.tag===3?zn(t.fields[0],t.fields[1],!0):t.tag===4?zn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
10
10
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
11
11
|
|
12
|
-
|
12
|
+
`+$e(`
|
13
13
|
|
14
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
14
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:zn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Pl(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new w(1,[fm(o[0],o[1])])}else return new w(0,[r.fields[0]])}function qr(e,t){try{return Pl("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function Rl(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new S(0,["a string",t])]])}function dm(e,t){if(typeof t=="string"){const n=t;return n.length===1?new w(0,[n[0]]):new w(1,[[e,new S(0,["a single character string",t])]])}else return new w(1,[[e,new S(0,["a char",t])]])}function hm(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[fp(t,new je(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a guid",t])]])}else return new w(1,[[e,new S(0,["a guid",t])]])}function pm(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new S(0,["null",t])]])}const Ll=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new w(0,[(o+128&255)-128]):new w(1,[[n,new S(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new w(1,[[n,new S(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!1,8,new je(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a sbyte",r])]])}else return new w(1,[[n,new S(0,["a sbyte",r])]])},Hl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new w(0,[o&255]):new w(1,[[n,new S(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new w(1,[[n,new S(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!0,8,new je(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a byte",r])]])}else return new w(1,[[n,new S(0,["a byte",r])]])},Vl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new w(0,[(o+32768&65535)-32768]):new w(1,[[n,new S(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new w(1,[[n,new S(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!1,16,new je(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int16",r])]])}else return new w(1,[[n,new S(0,["an int16",r])]])},Ul=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new w(0,[o&65535]):new w(1,[[n,new S(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new w(1,[[n,new S(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!0,16,new je(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint16",r])]])}else return new w(1,[[n,new S(0,["an uint16",r])]])},Bl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new w(0,[~~o]):new w(1,[[n,new S(1,["an int",o,"Value was either too large or too small for an int"])]]):new w(1,[[n,new S(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!1,32,new je(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int",r])]])}else return new w(1,[[n,new S(0,["an int",r])]])},jl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new w(0,[o>>>0]):new w(1,[[n,new S(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new w(1,[[n,new S(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[un(r,511,!0,32,new je(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint32",r])]])}else return new w(1,[[n,new S(0,["an uint32",r])]])};function mm(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new S(0,["a boolean",t])]])}function gm(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float",t])]])}function wm(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float32",t])]])}function _m(e,t){if(typeof t=="string"){let n,r=sh();return n=[lh(t,new je(()=>r,o=>{r=o})),r],n[0]?new w(0,[uh(n[1])]):new w(1,[[e,new S(0,["a datetime",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function ym(e,t){if(typeof t=="string"){let n,r=_p();return n=[bp(t,new je(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function bm(e,t){if(typeof t=="string"){let n,r=0;return n=[Mp(t,new je(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a timespan",t])]])}else return new w(1,[[e,new S(0,["a timespan",t])]])}function Gl(e,t,n,r){let o;const i=n+".["+Dt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,Q(e,s)):new w(1,[[i,new S(5,["a longer array. Need index `"+Dt(e)+"` but there are only `"+(o=s.length,Dt(o))+"` entries",r])]])}else return new w(1,[[i,new S(0,["an array",r])]])}function vm(e,t,n){return n==null?new w(0,[void 0]):gt(ce,e(t,n))}function zl(e,t,n){if(Array.isArray(n)){let r=-1;return gt(di,Rr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Dt(r)+"]",i);return s.tag===0?new w(0,[ze(s.fields[0],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[le()]),n))}else return new w(1,[[t,new S(0,["a list",n])]])}function Sm(e,t,n){if(Array.isArray(n)){let r=-1;return gt(np,Rr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Dt(r)+"]",i);return s.tag===0?new w(0,[fe([s.fields[0]],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[[]]),n))}else return new w(1,[[t,new S(0,["a seq",n])]])}function Wl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Rr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Dt(r)+"]",s);return l.tag===0?(rt(a,r,l.fields[0]),new w(0,[a])):new w(1,[l.fields[0]])}else return i},new w(0,[Pr(new Array(o.length),0,o.length,null)]),o)}else return new w(1,[[t,new S(0,["an array",n])]])}function Cm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(D(s))return new w(1,[[t,new S(7,[a])]]);{const l=Pl(t,Z(E(s)),n);if(l.tag===1){o=A(s),i=hi(a,J(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,le())}function Em(e,t,n){return new w(0,[e])}function ql(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new w(1,[o.fields[0]])}function xm(e,t,n,r){const o=t(n,r);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[e(o.fields[0])])}function km(e,t){let n;const r=e;return n=o=>i=>Gl(0,r,o,i),o=>i=>ql(Do(s=>{let a;const l=t;return a=u=>f=>Gl(1,l,u,f),u=>f=>ql((c,h,d)=>Em([s,c]),Z(a),u,f)}),Z(n),o,i)}function $m(e){return Wp(e,{Compare:Be})}function Tm(e){return cm(e,{Compare:Be})}function Mm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Za((r,o)=>{const i=r[0];return o.tag===0?gt(s=>ze(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new w(0,[le()])):new w(1,[[t,new S(0,["an object",n])]])}function Im(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Ur((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new w(0,[ze([s.fields[0],a.fields[0]],o.fields[0])]):new w(1,[a.fields[0]])}else return new w(1,[s.fields[0]])}else return o},new w(0,[le()]),Object.keys(r)):new w(1,[[n,new S(0,["an object",r])]])}function Yl(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new w(1,[[n,new S(6,[(o=r.length|0,Bt(kt("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new w(0,[le()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Bt(kt("%s[%i]"))(n)(a),f=Q(a-e,t),c=Q(a,r);s=gt(h=>ze(h,l),f(u)(c))}return gt(di,s)}}function Zl(e,t,n,r,o,i){const s=Eh(a=>Qt(a)===r,Ks(n));if(s!=null){const a=s,l=sn(u=>tt(e,t,!1,u[1]),ta(a));return gt(u=>Rc(a,Bn(u)),l.length===0&&i.length<=1?new w(0,[le()]):Yl(1,l,o,i))}else return new w(1,[[o,new S(6,["Cannot find case "+r+" in "+q(n)])]])}function Jl(e,t,n,r){let o;const i=new je(Fe());let s;const a=q(r);s=a===""?e:Sl(a,i,e);let l;if(ea(r)){const u=sn(f=>[il(t,Qt(f)),tt(s,t,!1,f[1])],Tn(r));l=f=>c=>gt(h=>Lc(r,Bn(h)),Mm(u,f,c))}else if(Qs(r))l=u=>f=>{if(typeof f=="string")return Zl(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return ap(h=>Zl(s,t,r,h,u,c),Rl(u+"[0]",Q(0,c)))}else return new w(1,[[u,new S(0,["a string or array",f])]])};else if(n)l=u=>f=>new w(1,[[u,new S(2,["an extra coder for "+q(r),f])]]);else throw new Error((o=q(r),Bt(kt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
15
15
|
|
16
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function
|
16
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function tt(e,t,n,r){let o,i,s,a;const l=q(r),u=Cl(l,e);if(u==null)if(qs(r)){const f=tt(e,t,!1,$n(r));return c=>h=>Wl(Z(f),c,h)}else if(Vo(r))switch(q(Js(r))){case"System.SByte":return c=>h=>{const d=r,p=c,g=h,m=Ll(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,_.toString())]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,g=h,m=Hl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,_.toString())]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,g=h,m=Vl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,lc(_))]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,g=h,m=Ul(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,_.toString())]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,g=h,m=Bl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,Dt(_))]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,g=h,m=jl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return ln(_,en(d),{Equals:(b,C)=>b===C,GetHashCode:Je})?new w(0,[tn(d,_.toString())]):new w(1,[[p,new S(1,[q(d),g,"Unkown value provided for the enum"])]])}};default:{const c=q(r),h=Ba(kt(`Cannot generate auto decoder for %s.
|
17
17
|
Thoth.Json.Net only support the following enum types:
|
18
18
|
- sbyte
|
19
19
|
- byte
|
@@ -22,10 +22,10 @@ Thoth.Json.Net only support the following enum types:
|
|
22
22
|
- int
|
23
23
|
- uint32
|
24
24
|
If you can't use one of these types, please pass an extra decoder.
|
25
|
-
`))(c);return d=>h(d)}}else if(
|
26
|
-
`,n.getAllResponseHeaders())),{Compare:
|
25
|
+
`))(c);return d=>h(d)}}else if(Ys(r))if(Uo(r)){const f=sn(c=>tt(e,t,!1,c),Xs(r));return c=>h=>Array.isArray(h)?gt(d=>Hc(Bn(d)),Yl(0,f,c,h)):new w(1,[[c,new S(0,["an array",h])]])}else switch(q(Zs(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=tt(e,t,!0,Q(0,Ne(r))),c=>h=>vm(Z(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=tt(e,t,!1,Q(0,Ne(r))),c=>h=>zl(Z(i),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=tt(e,t,!1,Q(0,Ne(r))),c=>h=>Sm(Z(s),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=tt(e,t,!1,Q(0,Ne(r))),h=tt(e,t,!1,Q(1,Ne(r)));let d;const p=x([g=>m=>Im(Z(c),Z(h),g,m),(a=km(Z(c),Z(h)),g=>m=>zl(Z(a),g,m))]);return d=g=>m=>Cm(p,g,m),g=>m=>xm($m,Z(d),g,m)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=tt(e,t,!1,Q(0,Ne(r)));return h=>d=>{const p=Wl(Z(c),h,d);return p.tag===0?new w(0,[Tm(p.fields[0])]):new w(1,[p.fields[0]])}}default:return Jl(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>mm(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>pm(f,c);case"System.String":return f=>c=>Rl(f,c);case"System.Char":return f=>c=>dm(f,c);case"System.SByte":return Ll;case"System.Byte":return Hl;case"System.Int16":return Vl;case"System.UInt16":return Ul;case"System.Int32":return Bl;case"System.UInt32":return jl;case"System.Double":return f=>c=>gm(f,c);case"System.Single":return f=>c=>wm(f,c);case"System.DateTime":return f=>c=>_m(f,c);case"System.DateTimeOffset":return f=>c=>ym(f,c);case"System.TimeSpan":return f=>c=>bm(f,c);case"System.Guid":return f=>c=>hm(f,c);case"System.Object":return f=>c=>new w(0,[c]);default:return Jl(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function Fm(e){return _i({Compare:lr})}function Yr(e,t,n){const r=fi(t,new Mt(0,[]));return tt(Fm(),r,!1,e)}class Am{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Si extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Si.prototype)}}class Ci{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ci.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function It(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Si);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(cr(n))}});else try{e(t)}catch(n){t.onError(cr(n))}}}function Om(e,t){return It(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(cr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Nm(e){return It(t=>t.onSuccess(e))}class Dm{Bind(t,n){return Om(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return It(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 Nm(t)}ReturnFrom(t){return t}TryFinally(t,n){return It(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 It(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(cr(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 It(t=>t.onSuccess(void 0))}}const M=new Dm;function Pm(e){return new Kl(0,[e])}function Rm(e){return new Kl(1,[e])}class Kl extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Lm(e){return Pm(e)}function Hm(e){return Rm(e)}function Ei(e){}const Vm=new Am;function Um(e){return It(t=>{e({onSuccess:n=>t.onSuccess(Lm(n)),onError:n=>t.onSuccess(Hm(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Bm(e){return It(t=>e([t.onSuccess,t.onError,t.onCancel]))}function jm(e,t){return zm(e,t)}function Gm(e,t){return jm(e,t)}function zm(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Ci;e({onSuccess:t||Ei,onError:Ei,onCancel:Ei,cancelToken:o||Vm,trampoline:i})}class pn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Wm extends H{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class xi extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Wn extends _e{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class mn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Xl extends _e{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 qm(e){return new Wm("Authorization",e)}const Gt=new Wn("",new pn(0,[]),le(),!1,void 0,void 0,void 0,new xi(0,[]));new Xl(0,"","","",_i({Compare:lr}),new mn(0,[""]));function Ql(e,t){return wh(t)?new Array(0):za(t,[e],void 0,0)}function Ym(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 qn(e){return new Wn(e,Gt.method,Gt.headers,Gt.withCredentials,Gt.overridenMimeType,Gt.overridenResponseType,Gt.timeout,Gt.content)}function Yn(e,t){return new Wn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zm(e,t){return new Wn(t.url,t.method,hi(t.headers,J(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function eu(e,t){return new Wn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function tu(e){return Bm(t=>{const n=new XMLHttpRequest;n.open(Ym(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,h,d,p;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new mn(0,[n.responseText]):d==="text"?new mn(0,[n.responseText]):d==="arraybuffer"?new mn(2,[n.response]):d==="blob"?new mn(1,[n.response]):new mn(3,[n.response])),p=qp(xh(g=>{const m=x(Ql(":",g));if(!D(m))return[E(m).toLocaleLowerCase(),$e(":",A(m)).trim()]},Ql(`\r
|
26
|
+
`,n.getAllResponseHeaders())),{Compare:lr}),new Xl(f,l,c,n.responseURL,p,h)))};const r=oe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{W(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ce(a.fields[0]));break}case 3:{n.send(ce(a.fields[0]));break}case 2:{n.send(ce(a.fields[0]));break}default:n.send()}})}function Jm(e){return e}const nu=Fe();function Zr(e){return Array.from(e)}function Km(e){return Ar(e,"O")}function Xm(e){return $p(e)}function Qm(){return Fe()}function e0(e){return Ar(e,"O")}function ru(e,t){return JSON.stringify(t,void 0,ce(e))}function t0(e){return t=>bh(vh(e,t),()=>nu)}function ou(e,t,n,r){let o;const i=new je(Fe());let s;const a=q(r);s=a===""?e:Sl(a,i,e);let l;if(ea(r)){const u=sn(f=>{const c=il(t,Qt(f)),h=wt(s,t,n,f[1]);return d=>p=>{const g=Pc(d,f);return(!n||n&&g!=null)&&(p[c]=h(g)),p}},Tn(r));l=f=>Ur((c,h)=>h(f)(c),{},u)}else if(Qs(r))l=u=>{const f=Dc(u,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return Qt(c);{const p=d|0,g=ta(c),m=Pr(new Array(p+1),0,p+1,null);rt(m,0,Qt(c));for(let _=1;_<=p;_++){const b=wt(s,t,n,Q(_-1,g)[1]);rt(m,_,b(Q(_-1,h)))}return m}};else throw new Error((o=q(r),Bt(kt(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
27
27
|
|
28
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function
|
28
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function wt(e,t,n,r){const o=q(r),i=Cl(o,e);if(i==null)if(qs(r)){const s=wt(e,t,n,$n(r));return a=>Zr(We(s,a))}else if(Vo(r))switch(q(Js(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=q(r);return Ba(kt(`Cannot generate auto encoder for %s.
|
29
29
|
Thoth.Json.Net only support the following enum types:
|
30
30
|
- sbyte
|
31
31
|
- byte
|
@@ -37,7 +37,7 @@ Thoth.Json.Net only support the following enum types:
|
|
37
37
|
If you can't use one of these types, please pass an extra encoder.
|
38
38
|
|
39
39
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
40
|
-
`))(a)}}else if(Vs(r))if(Eo(r)){const s=en(a=>dt(e,t,n,a),zs(r));return a=>Nr(Ph((l,u)=>Z(l,s)(u),a))}else{const s=G(js(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new ju(()=>Fm(dt(e,t,n,Z(0,$e(r)))));return l=>l==null?Jl:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=dt(e,t,n,Z(0,$e(r)));return l=>Nr(Ue(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=Z(0,$e(r)),l=dt(e,t,n,Z(1,$e(r)));if(G(a)==="System.String"||G(a)==="System.Guid")return u=>kr((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=dt(e,t,n,a),c=>Nr(Ue(h=>{const d=h;return[u(d[0]),l(d[1])]},c))}}else return Kl(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Nm;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Pm;case"System.DateTimeOffset":return Im;case"System.TimeSpan":return Om;case"System.Guid":return Am;case"System.Object":return s=>s;default:return Kl(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function Rm(e){return ni({Compare:Zn})}function Lm(e,t,n,r){const o=Yo(t,new rn(0,[])),i=Yo(r,!0);return dt(Rm(),o,i,e)}class Xl extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inherited","Default","Specific"]}}function Hm(){return dc("BankDetails.AdminUI.Service.ConfigOwnership",[],Xl,()=>[[],[],[]])}class Pr extends Fe{constructor(t,n,r){super(),this.MaxAccounts=t|0,this.ConfigOwnership=n,this.AllowPercentageSplit=r}}function Um(){return Fs("BankDetails.AdminUI.Service.Model",[],Pr,()=>[["MaxAccounts",Hs],["ConfigOwnership",Hm()],["AllowPercentageSplit",Ls]])}function Vm(){return new Pr(0,new Xl(1,[]),!1)}class jm extends Fe{constructor(t){super(),this.Message=t}}function Bm(){return Fs("BankDetails.AdminUI.Service.ErrorMessage",[],jm,()=>[["Message",So]])}function hi(e){return`${e}/bank-details/admin`}function pi(e,t){return L.Delay(()=>{const n=Tm(km(`Bearer ${e}`),t);let r;const o=Zl(n);return r=L.Bind(o,i=>L.Return(new w(0,[i]))),L.Bind(r,i=>{const s=i;if(s.tag===1)return L.Return(new w(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Zl(n);return L.Bind(l,u=>L.Return(new w(0,[u])))}else return L.Return(new w(0,[a]))}})})}function mi(e,t){const n=si(Y(ai(Bm(),new rn(1,[]))),t);return n.tag===0?new w(1,[n.fields[0].Message]):new w(1,[Ft(Zd("Error code: %d%P()",[e]))])}function Gm(e,t,n,r){return L.Delay(()=>{let o;const i=pi(t,di(new Or(0,[]),fi((o=hi(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return L.Bind(i,s=>{const a=s;if(a.tag===1)return L.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=si(Y(ai(Um(),new rn(1,[]))),l.responseText);return L.Return(u)}else{const u=mi(l.statusCode,l.responseText);return L.Return(u)}}})})}function zm(e,t,n,r,o,i){return L.Delay(()=>{let s,a;const l=hi(e);a=r==null?`${l}/partners/${n}/config`:`${l}/partners/${n}/accounts/${r}/config`;const u=pi(t,di(new Or(2,[]),Mm(new Wl(1,[(s={AllowPercentageSplit:i,MaxAccounts:o},Dm(0,Lm(Rs(["AllowPercentageSplit",Ls],["MaxAccounts",Hs]),new rn(1,[]),void 0,void 0)(s)))]),fi(a))));return L.Bind(u,f=>{const c=f;if(c.tag===1)return L.Return(new w(1,[c.fields[0]]));{const h=c.fields[0];if(h.statusCode===200)return L.Return(new w(0,[void 0]));{const d=mi(h.statusCode,h.responseText);return L.Return(d)}}})})}function Wm(e,t,n,r){return L.Delay(()=>{let o;const i=pi(t,di(new Or(4,[]),fi((o=hi(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return L.Bind(i,s=>{const a=s;if(a.tag===1)return L.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return L.Return(new w(0,[void 0]));{const u=mi(l.statusCode,l.responseText);return L.Return(u)}}})})}class qm{constructor(t,n,r,o){this.baseUrl=t,this.accessToken=n,this.partnerId=r,this.accountId=o}}function Ym(e,t,n,r){return new qm(e,t,n,r)}function Zm(e){return Gm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function Jm(e,t){return zm(e.baseUrl,e.accessToken,e.partnerId,e.accountId,t.MaxAccounts,t.AllowPercentageSplit)}function Km(e){return Wm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}class fn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Xm{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Qm(e,t){t.Subscribe(new Xm(e))}class e0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return n0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let t0=class extends e0{};function n0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class r0{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 t0}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function o0(e,t){console.error(de(e),t)}function i0(e,t){let n,r=new r0(e);r.AutoReset=!1,n=r,Qm(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ql(e,t,n){Dn(r=>{try{r(t)}catch(o){e(o)}},n)}function ht(){return le()}function Dr(e){return hh(e)}function gi(e,t,n,r){return te(o=>{e(L.Delay(()=>L.Bind(bm(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),L.Zero()})))})}function wi(e){i0(1,t=>{Cm(e)})}class _i extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function s0(e){return new _i(e)}function a0(e){return Ba(s0,e)}function l0(e){if(Ga(new _i("BankDetails.Access"),e,{Equals:ke,GetHashCode:As}))return de(void 0)}function u0(e){if(Ga(new _i("BankDetails.EditConfig"),e,{Equals:ke,GetHashCode:As}))return de(void 0)}class eu extends Fe{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function tu(e){return u0(e.Roles)!=null}function c0(e){let t;const n=La(e??"",["."],void 0,0);if(!ah((r,o)=>r===o,n)&&n.length===3){let r;const o=Z(1,n);r=atob(o),t=si(Y(ai(Rs(["Name",So],["Roles",hc(So)]),new rn(1,[]))),r)}else t=new w(1,["Failed to identify the user"]);if(t.tag===1)return new eu(void 0,le());{const r=t.fields[0];return new eu(r.Name,a0(k(r.Roles)))}}class Pe extends Fe{constructor(t,n,r,o,i,s){super(),this.Config=t,this.Error=n,this.IsLoading=r,this.Mode=o,this.ShowConfirmationDialog=i,this.ShowEditButton=s}}class Hn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function f0(){return new Pe(Vm(),void 0,!0,new Hn(0,[]),!1,!1)}function nu(e){return e.Mode.tag!==0}class ue extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Fr(){return new ue(2,[new fn(0,[void 0])])}function d0(){return new ue(3,[new fn(0,[void 0])])}function h0(){return new ue(4,[new fn(0,[void 0])])}function p0(e){let t,n;return[(t=f0(),new Pe(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,tu(e))),(n=Fr(),te(r=>{r(n)}))]}function m0(e,t,n,r){let o,i,s,a,l,u;switch(n.tag){case 5:return[new Pe(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,n.fields[0].tag===0&&tu(e)),ht()];case 6:return[r,Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(o=Fr(),te(f=>{f(o)}))]))];case 0:return[new Pe((i=r.Config,new Pr(n.fields[0],i.ConfigOwnership,i.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()];case 1:return[new Pe((s=r.Config,new Pr(s.MaxAccounts,s.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()];case 2:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),gi(f=>{wi(f)},()=>Zm(t),void 0,f=>new ue(2,[new fn(1,[f])]))];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(a=Fr(),te(f=>{f(a)}))]))]:[r,gi(f=>{wi(f)},f=>Jm(t,f),r.Config,f=>new ue(3,[new fn(1,[f])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(l=Fr(),te(f=>{f(l)}))]))]:[r,gi(f=>{wi(f)},()=>Km(t),void 0,f=>new ue(4,[new fn(1,[f])]))];case 8:return[r,Dr(k([te(f=>{f(new ue(7,[!1]))}),(u=h0(),te(f=>{f(u)}))]))];default:return[new Pe(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),ht()]}}const g0=v("svg",j(k([["className","h-6 w-6 text-red-600"],["fill","none"],["iconType","2"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),w0=v("svg",j(k([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),_0=v("svg",j(k([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()])));class yi extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function y0(e){return v(Sa.Root,vt(e,1))}class he extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function ru(e){return v(Sa.Child,vt(e,1))}let Un=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function b0(e){return v(Ho,vt(e,1))}class bi extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function v0(e){return v(Ho.Panel,vt(e,1))}class Rr extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function S0(e){return v(Ho.Title,vt(e,1))}class C0 extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class E0 extends Fe{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function x0(e){let t,n,r,o;return y0(k([new yi(0,["1"]),new yi(2,[e.show]),new yi(3,[[b0(k([new Un(1,["1"]),new Un(0,["div"]),new Un(2,["relative z-10"]),new Un(4,[e.cancelButtonClick]),new Un(5,[[ru(k([new he(0,["1"]),new he(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new he(4,["ease-out duration-300"]),new he(5,["opacity-0"]),new he(6,["opacity-100"]),new he(7,["ease-in duration-200"]),new he(8,["opacity-100"]),new he(9,["opacity-0"])])),v("div",j(k([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",j(k([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[ru(k([new he(0,["1"]),new he(4,["ease-out duration-300"]),new he(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new he(6,["opacity-100 translate-y-0 sm:scale-100"]),new he(7,["ease-in duration-200"]),new he(8,["opacity-100 translate-y-0 sm:scale-100"]),new he(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new he(10,[[v0(k([new bi(0,["1"]),new bi(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 bi(2,[[v("div",j(k([["key","1"],["className","sm:flex sm:items-start"],(r=xr(ne(()=>{let i,s,a;return Ye((i=e.dialogIcon,i==null?Ya():(s=i,Ce(v("div",j(k([["key","1"],(a="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",["className",a]),["children",X.Children.toArray([s])]])))))),ne(()=>{let l,u;return Ce(v("div",j(k([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[S0(k([new Rr(1,["1"]),new Rr(0,["h3"]),new Rr(2,["text-lg font-medium leading-6 text-gray-900"]),new Rr(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",j(k([["className","mt-2"],["key","2"],(u=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",X.Children.toArray(Array.from(u))])])))],["children",X.Children.toArray(Array.from(l))])]))))}))})),["children",X.Children.toArray(Array.from(r))])]))),v("div",j(k([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=xr(ne(()=>Ye(Ce(v("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})),ne(()=>{let i;return Ce(v("button",j(k([["key","Cancel"],["type","button"],(i="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",["className",i]),["onClick",s=>{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 k0(){return le()}function vi(e){return Xt("/",e)}function $0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+vi(t),n])}function ou(e,t,n){try{V(n)}catch(r){e(["Error stopping subscription: "+vi(t),r])}}function T0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+vi(n),o]);return}}function M0(e,t){Dn(n=>{ou(e,n[0],n[1])},t)}function iu(e,t,n,r,o,i){return Dn(s=>{$0(e,s)},n),Dn(s=>{ou(e,s[0],s[1])},r),Ko(o,wh(s=>T0(e,t,s[0],s[1]),i))}function A0(){return[le(),Vp({Compare:De}),le()]}function I0(e,t,n,r,o){return ii(e,r)?[He(e,n),r,o]:[n,Up(e,r),He([e,t],o)]}function O0(e){return fh((t,n)=>I0(t[0],t[1],n[0],n[1],n[2]),e,A0())}const N0=le();function su(e,t){const n=jp(Ba(s=>s[0],e),{Compare:De}),r=O0(t),o=r[1],i=r[0];if(n.Equals(o))return[i,le(),e,le()];{const s=gh(a=>ii(a[0],o),e);return[i,s[1],s[0],mh(a=>!ii(a[0],n),r[2])]}}function P0(e,t,n,r){const o=De(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=De(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function D0(e,t,n,r,o){const i=P0(t,n,r,o);return ne(()=>Ah(i,e))}function F0(e,t,n){return D0(e,t,n,0,(r,o)=>r+o)}class dn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class R0{constructor(t){this.state=new dn(0,[vr(new Array(Va(t,10)),0,Va(t,10),null),0])}}function L0(e){return new R0(e)}function au(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 dn(0,[o,n]):e.state=new dn(1,[o,n,i]),de(Z(r,o))}else return}function H0(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];et(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new dn(1,[U0(e,o,i),i.length,0]):e.state=new dn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];et(o,r,t);const i=(r+1)%o.length|0;e.state=new dn(1,[o,i,r])}}function U0(e,t,n){return Array.from(ne(()=>Ye(Fh(t,n),ne(()=>Ye(Rh(t,n),ne(()=>Lh(r=>Ce(Ge()),F0(0,1,n.length))))))))}class Si extends Fe{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function V0(e,t,n){return new Si(e,t,r=>k0(),n,Y(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{o0(r[0],r[1])},[r=>!1,r=>{}])}function j0(e,t){return new Si(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function B0(e){return e.init}function G0(e,t,n,r,o,i,s){const a=At(e)(s.init),l=yo(t)(At(s.update)),u=yo(n)(At(s.view)),f=yo(r)(At(s.setState));return new Si(a,Y(l),At(o)(s.subscribe),Y(u),Y(f),s.onError,i(s.termination))}function z0(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=L0(10);let u=!1,f=i,c=N0,h=!1;const d=m=>{h||(H0(l,m),u||(u=!0,g(),u=!1))},p=At(e)(d),g=()=>{let m,_=au(l);for(;!h&&_!=null;){const b=y(_);if(a[0](b))M0(n.onError,c),a[1](f),h=!0;else{const C=n.update(b,f),H=C[0],K=n.subscribe(H);n.setState(H,p),Ql(re=>{n.onError([Ft(St("Error handling the message: %A"))(b),re])},p,C[1]),f=H,c=(m=su(c,K),iu(n.onError,p,m[0],m[1],m[2],m[3])),_=au(l)}}};u=!0,n.setState(i,p),Ql(m=>{n.onError([Ft(St("Error intitializing:")),m])},p,o[1]),c=(r=su(c,s),iu(n.onError,p,r[0],r[1],r[2],r[3])),g(),u=!1}function W0(e,t){z0(Y(n=>n),e,t)}function q0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ci={exports:{}},Ei={};const Y0=q0(zt);/**
|
40
|
+
`))(a)}}else if(Ys(r))if(Uo(r)){const s=sn(a=>wt(e,t,n,a),Xs(r));return a=>Zr(tp((l,u)=>Q(l,s)(u),a))}else{const s=q(Zs(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new sc(()=>t0(wt(e,t,n,Q(0,Ne(r)))));return l=>l==null?nu:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=wt(e,t,n,Q(0,Ne(r)));return l=>Zr(We(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=Q(0,Ne(r)),l=wt(e,t,n,Q(1,Ne(r)));if(q(a)==="System.String"||q(a)==="System.Guid")return u=>Ur((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=wt(e,t,n,a),c=>Zr(We(h=>{const d=h;return[u(d[0]),l(d[1])]},c))}}else return ou(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Qm;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return e0;case"System.DateTimeOffset":return Km;case"System.TimeSpan":return Xm;case"System.Guid":return Jm;case"System.Object":return s=>s;default:return ou(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function n0(e){return _i({Compare:lr})}function iu(e,t,n,r){const o=fi(t,new Mt(0,[])),i=fi(r,!0);return wt(n0(),o,i,e)}class su extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inherited","Default","Specific"]}}function r0(){return Ic("BankDetails.AdminUI.Service.ConfigOwnership",[],su,()=>[[],[],[]])}class Jr extends _e{constructor(t,n,r){super(),this.MaxAccounts=t|0,this.ConfigOwnership=n,this.AllowPercentageSplit=r}}function o0(){return Ho("BankDetails.AdminUI.Service.Config",[],Jr,()=>[["MaxAccounts",Ws],["ConfigOwnership",r0()],["AllowPercentageSplit",gr]])}function i0(){return new Jr(0,new su(1,[]),!1)}class au extends _e{constructor(t,n,r){super(),this.Id=t,this.PartnerId=n,this.Enabled=r}}function s0(){return Ho("BankDetails.AdminUI.Service.FeatureFlagDto",[],au,()=>[["Id",kn],["PartnerId",kn],["Enabled",gr]])}class a0 extends _e{constructor(t){super(),this.Message=t}}function l0(){return Ho("BankDetails.AdminUI.Service.ErrorMessage",[],a0,()=>[["Message",kn]])}function Zn(e){return`${e}/bank-details/admin`}function Jn(e,t){return M.Delay(()=>{const n=Zm(qm(`Bearer ${e}`),t);let r;const o=tu(n);return r=M.Bind(o,i=>M.Return(new w(0,[i]))),M.Bind(r,i=>{const s=i;if(s.tag===1)return M.Return(new w(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=tu(n);return M.Bind(l,u=>M.Return(new w(0,[u])))}else return M.Return(new w(0,[a]))}})})}function Kn(e,t){const n=qr(Z(Yr(l0(),new Mt(1,[]))),t);return n.tag===0?new w(1,[n.fields[0].Message]):new w(1,[Bt(ph("Error code: %d%P()",[e]))])}function u0(e,t,n,r){return M.Delay(()=>{let o;const i=Jn(t,Yn(new pn(0,[]),qn((o=Zn(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return M.Bind(i,s=>{const a=s;if(a.tag===1)return M.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=qr(Z(Yr(o0(),new Mt(1,[]))),l.responseText);return M.Return(u)}else{const u=Kn(l.statusCode,l.responseText);return M.Return(u)}}})})}function c0(e,t,n,r,o,i){return M.Delay(()=>{let s,a;const l=Zn(e);a=r==null?`${l}/partners/${n}/config`:`${l}/partners/${n}/accounts/${r}/config`;const u=Jn(t,Yn(new pn(2,[]),eu(new xi(1,[(s={AllowPercentageSplit:i,MaxAccounts:o},ru(0,iu(mr(["AllowPercentageSplit",gr],["MaxAccounts",Ws]),new Mt(1,[]),void 0,void 0)(s)))]),qn(a))));return M.Bind(u,f=>{const c=f;if(c.tag===1)return M.Return(new w(1,[c.fields[0]]));{const h=c.fields[0];if(h.statusCode===200)return M.Return(new w(0,[void 0]));{const d=Kn(h.statusCode,h.responseText);return M.Return(d)}}})})}function f0(e,t,n,r){return M.Delay(()=>{let o;const i=Jn(t,Yn(new pn(4,[]),qn((o=Zn(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return M.Bind(i,s=>{const a=s;if(a.tag===1)return M.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return M.Return(new w(0,[void 0]));{const u=Kn(l.statusCode,l.responseText);return M.Return(u)}}})})}function d0(e,t,n){return M.Delay(()=>{const r=Jn(t,Yn(new pn(0,[]),qn(`${Zn(e)}/partners/${n}/feature-flags`)));return M.Bind(r,o=>{const i=o;if(i.tag===1)return M.Return(new w(1,[i.fields[0]]));{const s=i.fields[0];if(s.statusCode===200){let a;const l=qr(Z(Yr(mr(["Items",Fc(s0())]),new Mt(1,[]))),s.responseText);return a=l.tag===1?new w(1,[l.fields[0]]):new w(0,[l.fields[0].Items]),M.Return(a)}else{const a=Kn(s.statusCode,s.responseText);return M.Return(a)}}})})}function h0(e,t,n,r){return M.Delay(()=>{let o;const i=Jn(t,eu(new xi(1,[(o={Enabled:r.Enabled},ru(0,iu(mr(["Enabled",gr]),new Mt(1,[]),void 0,void 0)(o)))]),Yn(new pn(2,[]),qn(`${Zn(e)}/partners/${n}/feature-flags/${r.Id}`))));return M.Bind(i,s=>{const a=s;if(a.tag===1)return M.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return M.Return(new w(0,[void 0]));{const u=Kn(l.statusCode,l.responseText);return M.Return(u)}}})})}class p0{constructor(t,n,r,o){this.baseUrl=t,this.accessToken=n,this.partnerId=r,this.accountId=o}}function m0(e,t,n,r){return new p0(e,t,n,r)}function g0(e){return u0(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function w0(e,t){return c0(e.baseUrl,e.accessToken,e.partnerId,e.accountId,t.MaxAccounts,t.AllowPercentageSplit)}function _0(e){return f0(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function y0(e){return d0(e.baseUrl,e.accessToken,e.partnerId)}function lu(e,t){return h0(e.baseUrl,e.accessToken,e.partnerId,t)}class Te extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class b0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function v0(e,t){t.Subscribe(new b0(e))}class S0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return E0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let C0=class extends S0{};function E0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class x0{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 C0}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function k0(e,t){console.error(ce(e),t)}function $0(e,t){let n,r=new x0(e);r.AutoReset=!1,n=r,v0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function uu(e,t,n){jn(r=>{try{r(t)}catch(o){e(o)}},n)}function de(){return le()}function Kr(e){return Ah(e)}function gn(e,t,n,r){return J(o=>{e(M.Delay(()=>M.Bind(Um(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),M.Zero()})))})}function wn(e){$0(1,t=>{Gm(e)})}class ki extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function T0(e){return new ki(e)}function M0(e){return Hr(T0,e)}function I0(e){if(Ja(new ki("BankDetails.Access"),e,{Equals:Ae,GetHashCode:Vs}))return ce(void 0)}function cu(e){if(Ja(new ki("BankDetails.EditConfig"),e,{Equals:Ae,GetHashCode:Vs}))return ce(void 0)}class fu extends _e{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function du(e){return cu(e.Roles)!=null}function F0(e){let t;const n=za(e??"",["."],void 0,0);if(!kh((r,o)=>r===o,n)&&n.length===3){let r;const o=Q(1,n);r=atob(o),t=qr(Z(Yr(mr(["Name",kn],["Roles",Ac(kn)]),new Mt(1,[]))),r)}else t=new w(1,["Failed to identify the user"]);if(t.tag===1)return new fu(void 0,le());{const r=t.fields[0];return new fu(r.Name,M0(x(r.Roles)))}}class Xr extends _e{constructor(t,n,r){super(),this.Id=t,this.PartnerId=n,this.Enabled=r}}const A0=J("BankDesignV2");function O0(e,t){return Hr(n=>{const r=Nh(o=>o.Id===n,t);if(r==null)return new Xr(n,e,!1);{const o=r;return new Xr(o.Id,e,o.Enabled)}},A0)}function hu(e){return new au(e.Id,e.PartnerId,e.Enabled)}let Ue=class extends _e{constructor(t,n,r,o,i,s,a){super(),this.Config=t,this.FeatureFlags=n,this.Error=r,this.IsLoading=o,this.Mode=i,this.ShowConfirmationDialog=s,this.ShowEditButton=a}};class Xn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function N0(){return new Ue(i0(),le(),void 0,!0,new Xn(0,[]),!1,!1)}function pu(e){return e.Mode.tag!==0}let he=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}};function Qr(){return new he(2,[new Te(0,[void 0])])}function D0(){return new he(3,[new Te(0,[void 0])])}function P0(){return new he(4,[new Te(0,[void 0])])}function R0(e){let t,n;return[(t=N0(),new Ue(t.Config,t.FeatureFlags,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,du(e))),(n=Qr(),J(r=>{r(n)}))]}function L0(e,t,n,r){let o,i,s,a,l,u;switch(n.tag){case 5:return[new Ue(r.Config,r.FeatureFlags,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,n.fields[0].tag===0&&du(e)),de()];case 6:return[r,Kr(x([J(f=>{f(new he(5,[new Xn(0,[])]))}),(o=Qr(),J(f=>{f(o)}))]))];case 0:return[new Ue((i=r.Config,new Jr(n.fields[0],i.ConfigOwnership,i.AllowPercentageSplit)),r.FeatureFlags,r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()];case 1:return[new Ue((s=r.Config,new Jr(s.MaxAccounts,s.ConfigOwnership,n.fields[0])),r.FeatureFlags,r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()];case 2:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Ue(r.Config,r.FeatureFlags,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()]:[new Ue(n.fields[0].fields[0].fields[0],r.FeatureFlags,void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()]:[new Ue(r.Config,r.FeatureFlags,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),gn(f=>{wn(f)},()=>g0(t),void 0,f=>new he(2,[new Te(1,[f])]))];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Ue(r.Config,r.FeatureFlags,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()]:[new Ue(r.Config,r.FeatureFlags,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Kr(x([J(f=>{f(new he(5,[new Xn(0,[])]))}),(a=Qr(),J(f=>{f(a)}))]))]:[r,gn(f=>{wn(f)},f=>w0(t,f),r.Config,f=>new he(3,[new Te(1,[f])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Ue(r.Config,r.FeatureFlags,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),de()]:[new Ue(r.Config,r.FeatureFlags,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Kr(x([J(f=>{f(new he(5,[new Xn(0,[])]))}),(l=Qr(),J(f=>{f(l)}))]))]:[r,gn(f=>{wn(f)},()=>_0(t),void 0,f=>new he(4,[new Te(1,[f])]))];case 8:return[r,Kr(x([J(f=>{f(new he(7,[!1]))}),(u=P0(),J(f=>{f(u)}))]))];default:return[new Ue(r.Config,r.FeatureFlags,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),de()]}}const mu=v("svg",O(x([["className","h-6 w-6 text-red-600"],["fill","none"],["iconType","2"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=J(v("path",O(x([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",B.Children.toArray(Array.from(t))]})()]))),H0=v("svg",O(x([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=J(v("path",O(x([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",B.Children.toArray(Array.from(t))]})()]))),V0=v("svg",O(x([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=J(v("path",O(x([["strokeLinecap","round"],["strokeLinejoin","round"],(e="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",["d",e])]))));return["children",B.Children.toArray(Array.from(t))]})()])));class $i extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function U0(e){return v(Ma.Root,xt(e,1))}class ge extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function gu(e){return v(Ma.Child,xt(e,1))}let Qn=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function B0(e){return v(ni,xt(e,1))}class Ti extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function j0(e){return v(ni.Panel,xt(e,1))}class eo extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function G0(e){return v(ni.Title,xt(e,1))}class wu extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class _u extends _e{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function yu(e){let t,n,r,o;return U0(x([new $i(0,["1"]),new $i(2,[e.show]),new $i(3,[[B0(x([new Qn(1,["1"]),new Qn(0,["div"]),new Qn(2,["relative z-10"]),new Qn(4,[e.cancelButtonClick]),new Qn(5,[[gu(x([new ge(0,["1"]),new ge(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new ge(4,["ease-out duration-300"]),new ge(5,["opacity-0"]),new ge(6,["opacity-100"]),new ge(7,["ease-in duration-200"]),new ge(8,["opacity-100"]),new ge(9,["opacity-0"])])),v("div",O(x([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",O(x([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[gu(x([new ge(0,["1"]),new ge(4,["ease-out duration-300"]),new ge(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new ge(6,["opacity-100 translate-y-0 sm:scale-100"]),new ge(7,["ease-in duration-200"]),new ge(8,["opacity-100 translate-y-0 sm:scale-100"]),new ge(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new ge(10,[[j0(x([new Ti(0,["1"]),new Ti(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 Ti(2,[[v("div",O(x([["key","1"],["className","sm:flex sm:items-start"],(r=Tt(P(()=>{let i,s,a;return fe((i=e.dialogIcon,i==null?el():(s=i,I(v("div",O(x([["key","1"],(a="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",["className",a]),["children",B.Children.toArray([s])]])))))),P(()=>{let l,u;return I(v("div",O(x([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[G0(x([new eo(1,["1"]),new eo(0,["h3"]),new eo(2,["text-lg font-medium leading-6 text-gray-900"]),new eo(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",O(x([["className","mt-2"],["key","2"],(u=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",B.Children.toArray(Array.from(u))])])))],["children",B.Children.toArray(Array.from(l))])]))))}))})),["children",B.Children.toArray(Array.from(r))])]))),v("div",O(x([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Tt(P(()=>fe(I(v("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})),P(()=>{let i;return I(v("button",O(x([["key","Cancel"],["type","button"],(i="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",["className",i]),["onClick",s=>{e.cancelButtonClick()}],["children",e.cancelButtonText]]))))})))),["children",B.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",B.Children.toArray(Array.from(n))])])))],["children",B.Children.toArray(Array.from(t))])])))]])]))]])]))}function z0(){return le()}function Mi(e){return $e("/",e)}function W0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Mi(t),n])}function bu(e,t,n){try{W(n)}catch(r){e(["Error stopping subscription: "+Mi(t),r])}}function q0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Mi(n),o]);return}}function Y0(e,t){jn(n=>{bu(e,n[0],n[1])},t)}function vu(e,t,n,r,o,i){return jn(s=>{W0(e,s)},n),jn(s=>{bu(e,s[0],s[1])},r),hi(o,Lh(s=>q0(e,t,s[0],s[1]),i))}function Z0(){return[le(),lm({Compare:Be}),le()]}function J0(e,t,n,r,o){return vi(e,r)?[ze(e,n),r,o]:[n,am(e,r),ze([e,t],o)]}function K0(e){return Ih((t,n)=>J0(t[0],t[1],n[0],n[1],n[2]),e,Z0())}const X0=le();function Su(e,t){const n=um(Hr(s=>s[0],e),{Compare:Be}),r=K0(t),o=r[1],i=r[0];if(n.Equals(o))return[i,le(),e,le()];{const s=Rh(a=>vi(a[0],o),e);return[i,s[1],s[0],Ph(a=>!vi(a[0],n),r[2])]}}function Q0(e,t,n,r){const o=Be(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=Be(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function eg(e,t,n,r,o){const i=Q0(t,n,r,o);return P(()=>Kh(i,e))}function tg(e,t,n){return eg(e,t,n,0,(r,o)=>r+o)}class _n extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ng{constructor(t){this.state=new _n(0,[Pr(new Array(Ya(t,10)),0,Ya(t,10),null),0])}}function rg(e){return new ng(e)}function Cu(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 _n(0,[o,n]):e.state=new _n(1,[o,n,i]),ce(Q(r,o))}else return}function og(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];rt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new _n(1,[ig(e,o,i),i.length,0]):e.state=new _n(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];rt(o,r,t);const i=(r+1)%o.length|0;e.state=new _n(1,[o,i,r])}}function ig(e,t,n){return Array.from(P(()=>fe(rp(t,n),P(()=>fe(op(t,n),P(()=>ip(r=>I(Fe()),tg(0,1,n.length))))))))}class Ii extends _e{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function Eu(e,t,n){return new Ii(e,t,r=>z0(),n,Z(r=>{const o=Pt(n)(r);return i=>{o(i)}}),r=>{k0(r[0],r[1])},[r=>!1,r=>{}])}function sg(e,t){return new Ii(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function ag(e){return e.init}function lg(e,t,n,r,o,i,s){const a=Pt(e)(s.init),l=Po(t)(Pt(s.update)),u=Po(n)(Pt(s.view)),f=Po(r)(Pt(s.setState));return new Ii(a,Z(l),Pt(o)(s.subscribe),Z(u),Z(f),s.onError,i(s.termination))}function ug(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=rg(10);let u=!1,f=i,c=X0,h=!1;const d=m=>{h||(og(l,m),u||(u=!0,g(),u=!1))},p=Pt(e)(d),g=()=>{let m,_=Cu(l);for(;!h&&_!=null;){const b=y(_);if(a[0](b))Y0(n.onError,c),a[1](f),h=!0;else{const C=n.update(b,f),G=C[0],te=n.subscribe(G);n.setState(G,p),uu(ie=>{n.onError([Bt(kt("Error handling the message: %A"))(b),ie])},p,C[1]),f=G,c=(m=Su(c,te),vu(n.onError,p,m[0],m[1],m[2],m[3])),_=Cu(l)}}};u=!0,n.setState(i,p),uu(m=>{n.onError([Bt(kt("Error intitializing:")),m])},p,o[1]),c=(r=Su(c,s),vu(n.onError,p,r[0],r[1],r[2],r[3])),g(),u=!1}function cg(e,t){ug(Z(n=>n),e,t)}function fg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Fi={exports:{}},Ai={};const dg=fg(Kt);/**
|
41
41
|
* @license React
|
42
42
|
* use-sync-external-store-shim.production.js
|
43
43
|
*
|
@@ -45,4 +45,4 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
|
|
45
45
|
*
|
46
46
|
* This source code is licensed under the MIT license found in the
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
48
|
-
*/var lu;function Z0(){if(lu)return Ei;lu=1;var e=Y0;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,h){var d=h(),p=r({inst:{value:d,getSnapshot:h}}),g=p[0].inst,m=p[1];return i(function(){g.value=d,g.getSnapshot=h,l(g)&&m({inst:g})},[c,d,h]),o(function(){return l(g)&&m({inst:g}),c(function(){l(g)&&m({inst:g})})},[c]),s(d),d}function l(c){var h=c.getSnapshot;c=c.value;try{var d=h();return!n(c,d)}catch{return!0}}function u(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ei.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ei}var uu;function J0(){return uu||(uu=1,Ci.exports=Z0()),Ci.exports}var K0=J0();class X0{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=B0(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const h=go(this.state[0]);return W0(this.arg,j0((d,p)=>{const g=this.state;this.finalDispatch=p,this.state=[d,g[1],!0,i],d!==g[0]&&f()},G0((d,p)=>{const g=this.cmd;return this.cmd=ht(),[this.state[0],g]},(d,p,g)=>d(p)(this.state[0]),_o(d=>d),_o(d=>d),Y(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const g=p;go(g)?V(g):d[1](p)}],o))),()=>{c=!0}}}}function cu(e,t,n){return new X0(e,t,n)}function Q0(e){return e.state}function eg(e){return e.subscribe}function tg(e,t,n){return ke(e.arg,t)?!ke(e.dependencies,n):!0}function ng(e,t,n){const r=Q(()=>cu(e,t,n)),o=r[0];tg(o,t,n)&&r[1](cu(e,t,n));const i=K0.useSyncExternalStore(eg(o),()=>Q0(o)),s=i[2],a=i[3],l=i[1];return F(()=>{if(s&&a.length>0){let u=ee(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{V(u)}Qu(a)}},[s,a]),[i[0],l]}const rg='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.ml-3{margin-left:.75rem}.mr-5{margin-right:1.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.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%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.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))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.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)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.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-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.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-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.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\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.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, 1))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.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\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}',og=We(rg);function xi(){return(xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ig=["context","children"];function sg(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,ig);return Kr(t,n)}function ag(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(sg,xi({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[fu(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=v(du,{name:f},u):o[s]=u}var c=r?v(du,null,o):o;return v(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Jr:gt)(this._vdom,this._root)}function fu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function lg(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[fu(e)]=n,this._vdom=Kr(this._vdom,r),gt(this._vdom,this._root)}}function ug(){gt(this._vdom=null,this._root)}function du(e,t){var n=this;return v("slot",xi({},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 cg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ag,o.prototype.attributeChangedCallback=lg,o.prototype.disconnectedCallback=ug,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function fg(e,t){cg(e,t)}function hu(e){return e.tag===2?"":`(${e})`}function dg(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return v("div",j(k([["className","mt-3"],(t=[Id(te(new Ad([Td(k([new mr(0,[i]),new mr(1,[s=>{r&&n(s)}]),new mr(2,[`${i?"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 mr(3,[[v("span",{className:`${i?"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`})]])])),Md(k([new Ca(0,["ml-3"]),new Ca(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))])))],["children",X.Children.toArray(Array.from(t))])])))}function hg(e){let t;return v("div",j(k([["className","mt-4"],(t=[v("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${hu(e.configOwnership)}: `}),v("input",{className:"inline-flex",id:"max-accounts",type:"number",min:1,max:3,value:e.selected,onChange:n=>{const r=n.target.valueAsNumber;r!=null&&!Number.isNaN(r)&&e.handleMaxAccountChanged(Xu(r))},disabled:e.readOnly})],["children",X.Children.toArray(Array.from(t))])])))}function pu(e){let t;const n=e.msg;return v("div",j(k([["className","text-sm font-medium text-gray-900 my-5"],(t=[v("span",{children:[n]})],["children",X.Children.toArray(Array.from(t))])])))}function pg(e,t,n){let r,o;const i=e.tag===2&&t?"":"hidden";return v("div",j(k([["className","flex-1"],(r=[v("div",j(k([["className","flex flex-row space-x-2"],(o=xr(ne(()=>{let s,a;return t?Ye(Ce(v("button",j(k([(s="inline-flex items-center rounded border border-transparent bg-indigo-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",s]),["type","button"],["onClick",l=>{n(new ue(5,[new Hn(1,[])]))}],["children",X.Children.toArray([w0])]])))),ne(()=>Ce(v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-red-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,type:"button",children:"Reset",onClick:l=>{n(new ue(7,[!0]))},children:X.Children.toArray([_0])})))):Ye(Ce(v("button",j(k([(a="inline-flex items-center rounded border border-transparent bg-indigo-600 py-2 px-4 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",a]),["type","button"],["children","Save"],["onClick",l=>{n(d0())}]])))),ne(()=>{let l;return Ce(v("button",j(k([(l="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",["className",l]),["type","button"],["children","Cancel"],["onClick",u=>{n(new ue(6,[]))}]]))))}))})),["children",X.Children.toArray(Array.from(o))])])))],["children",X.Children.toArray(Array.from(r))])])))}function mg(e){let t;return v("div",j(k([["className","flex-1"],(t=[v("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${hu(e)}`})],["children",X.Children.toArray(Array.from(t))])])))}function gg(e){return x0(new E0(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",g0,"Reset",()=>{e(new ue(8,[]))},new C0(1,[]),"Cancel",()=>{e(new ue(7,[!1]))}))}function wg(e){let t;const n=c0(e.accessToken),r=Ym(e.backendUrl,e.accessToken,e.partnerId,e.accountId);let o;const i=p0(n);o=ng(()=>V0(()=>i,(h,d)=>m0(n,r,h,d),(h,d)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=s.Error;u!=null?l=v(pu,{msg:u}):l=Ge();const f=l0(n.Roles)!=null?s.IsLoading?s.Error==null?v("div",{children:["Please wait"]}):l:v("div",j(k([["className","mt-5"],(t=xr(ne(()=>{let h;return Ye(Ce(v("div",j(k([["className","flex"],(h=[mg(s.Config.ConfigOwnership),pg(s.Config.ConfigOwnership,s.ShowEditButton,a)],["children",X.Children.toArray(Array.from(h))])])))),ne(()=>Ye(Ce(v(hg,{configOwnership:s.Config.ConfigOwnership,handleMaxAccountChanged:d=>{a(new ue(0,[d]))},readOnly:!nu(s),selected:s.Config.MaxAccounts})),ne(()=>Ye(Ce(v(dg,{isChecked:s.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:nu(s),onChange:d=>{a(new ue(1,[d]))}})),ne(()=>Ye(s.ShowConfirmationDialog?Ce(gg(a)):Ya(),ne(()=>Ce(l)))))))))})),["children",X.Children.toArray(Array.from(t))])]))):v(pu,{msg:"You do not have the appropriate permissions to view this information"}),c=k([v("style",{children:[og]}),f]);return v("div",{children:X.Children.toArray(Array.from(c))})}fg(e=>v(wg,e),"superhero-bank-details")})();
|
48
|
+
*/var xu;function hg(){if(xu)return Ai;xu=1;var e=dg;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,h){var d=h(),p=r({inst:{value:d,getSnapshot:h}}),g=p[0].inst,m=p[1];return i(function(){g.value=d,g.getSnapshot=h,l(g)&&m({inst:g})},[c,d,h]),o(function(){return l(g)&&m({inst:g}),c(function(){l(g)&&m({inst:g})})},[c]),s(d),d}function l(c){var h=c.getSnapshot;c=c.value;try{var d=h();return!n(c,d)}catch{return!0}}function u(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ai.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ai}var ku;function pg(){return ku||(ku=1,Fi.exports=hg()),Fi.exports}var mg=pg();class gg{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=ag(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const h=Oo(this.state[0]);return cg(this.arg,sg((d,p)=>{const g=this.state;this.finalDispatch=p,this.state=[d,g[1],!0,i],d!==g[0]&&f()},lg((d,p)=>{const g=this.cmd;return this.cmd=de(),[this.state[0],g]},(d,p,g)=>d(p)(this.state[0]),Do(d=>d),Do(d=>d),Z(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const g=p;Oo(g)?W(g):d[1](p)}],o))),()=>{c=!0}}}}function $u(e,t,n){return new gg(e,t,n)}function wg(e){return e.state}function _g(e){return e.subscribe}function yg(e,t,n){return Ae(e.arg,t)?!Ae(e.dependencies,n):!0}function Tu(e,t,n){const r=re(()=>$u(e,t,n)),o=r[0];yg(o,t,n)&&r[1]($u(e,t,n));const i=mg.useSyncExternalStore(_g(o),()=>wg(o)),s=i[2],a=i[3],l=i[1];return U(()=>{if(s&&a.length>0){let u=oe(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{W(u)}wc(a)}},[s,a]),[i[0],l]}class it extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadFeatureFlags","ShowFeatureFlagModal","HideFeatureFlagModal","EnableFeatureFlag","DisableFeatureFlag"]}}class Oi extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Visible"]}}class Ni extends _e{constructor(t,n){super(),this.FeatureFlags=t,this.ShowFeatureFlagModal=n}}class st extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","LoadingError","ChangeFeatureFlagError"]}}const bg=[new st(0,[]),J(e=>{e(new it(0,[new Te(0,[void 0])]))})];function vg(e,t,n,r){switch(n.tag){case 1:return r.tag===1?[new st(1,[new Ni(r.fields[0].FeatureFlags,new Oi(1,[n.fields[0]]))]),de()]:[r,de()];case 2:return r.tag===1?[new st(1,[new Ni(r.fields[0].FeatureFlags,new Oi(0,[]))]),de()]:[r,de()];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new st(3,[n.fields[0].fields[0].fields[0]]),de()]:[r,J(o=>{o(new it(0,[new Te(0,[void 0])]))})]:[new st(0,[]),gn(o=>{wn(o)},o=>lu(t,o),hu(new Xr(n.fields[0].fields[0].Id,n.fields[0].fields[0].PartnerId,!0)),o=>new it(3,[new Te(1,[o])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new st(3,[n.fields[0].fields[0].fields[0]]),de()]:[r,J(o=>{o(new it(0,[new Te(0,[void 0])]))})]:[new st(0,[]),gn(o=>{wn(o)},o=>lu(t,o),hu(new Xr(n.fields[0].fields[0].Id,n.fields[0].fields[0].PartnerId,!1)),o=>new it(4,[new Te(1,[o])]))];default:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new st(2,[n.fields[0].fields[0].fields[0]]),de()]:[new st(1,[new Ni(O0(e,n.fields[0].fields[0].fields[0]),new Oi(0,[]))]),de()]:[new st(0,[]),gn(o=>{wn(o)},()=>y0(t),void 0,o=>new it(0,[new Te(1,[o])]))]}}function Sg(e,t){const n=e.Enabled?"Disable":"Enable",r=e.Enabled?o=>new it(4,[new Te(0,[o])]):o=>new it(3,[new Te(0,[o])]);return yu(new _u(!0,e.Id,`This will ${n.toLocaleLowerCase()} the ${e.Id} feature`,mu,n,()=>{t(r(e))},new wu(1,[]),"Cancel",()=>{t(new it(2,[]))}))}function Cg(e){let t;return v("div",O(x([["className",$e(" ",["px-4 py-4 sm:px-0"])],(t=[v("h3",{className:$e(" ",["text-lg font-semibold leading-7 text-gray-900"]),children:e})],["children",B.Children.toArray(Array.from(t))])])))}function Eg(e,t,n){let r;const o=cu(e)==null;return v("button",O(x([["className",$e(" ",Tt(P(()=>fe(I("relative inline-flex h-6 w-11 gap-4 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-indigo-600 focus:ring-offset-2"),P(()=>fe(I(o?"cursor-not-allowed":""),P(()=>n.Enabled?I("bg-indigo-600"):I("bg-gray-300"))))))))],["role",$e(" ",["switch"])],["disabled",o],["onClick",i=>{t(new it(1,[n]))}],(r=[v("span",{className:$e(" ",Tt(P(()=>fe(I("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"),P(()=>n.Enabled?I("translate-x-5"):I("translate-x-0"))))))})],["children",B.Children.toArray(Array.from(r))])])))}function xg(e,t,n){let r,o,i;return v("div",O(x([["className",$e(" ",["px-4 py-5 sm:grid sm:grid-cols-5 sm:gap-4 sm:px-6"])],(r=[v("dt",{className:$e(" ",["text-sm font-medium text-gray-500"]),children:n.Id}),v("dd",O(x([["className",$e(" ",["mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"])],(o=[v("span",O(x([["className","flex-grow"],(i=[Eg(e,t,n)],["children",B.Children.toArray(Array.from(i))])])))],["children",B.Children.toArray(Array.from(o))])])))],["children",B.Children.toArray(Array.from(r))])])))}function kg(e){const t=e.api,n=e.user,r=e.partnerId,o=Tu(()=>Eu(()=>bg,(a,l)=>vg(r,t,a,l),(a,l)=>{}),void 0,void 0),i=o[1],s=Tt(P(()=>fe(I(Cg("Feature Flags")),P(()=>{let a;const l=o[0];switch(l.tag){case 2:return I(v("p",{children:l.fields[0]}));case 3:return I(v("p",{children:`Failed to updated feature flag: ${l.fields[0]}`}));case 1:{const u=l.fields[0];return I((a=Tt(P(()=>{let f;return fe(I((f=Hr(c=>xg(n.Roles,i,c),u.FeatureFlags),v("dl",{children:B.Children.toArray(Array.from(f))}))),P(()=>{const c=u.ShowFeatureFlagModal;return c.tag===1?I(Sg(c.fields[0],i)):I(Fe())}))})),v(ne,{},...a)))}default:return I(v("p",{children:"Loading..."}))}}))));return v(ne,{},...s)}const $g='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.ml-3{margin-left:.75rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.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%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.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))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.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)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.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-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.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}.leading-7{line-height:1.75rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.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\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.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, 1))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.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\\: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-cols-5{grid-template-columns:repeat(5,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-4{gap:1rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}',Tg=Ke($g);function Di(){return(Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mg=["context","children"];function Ig(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,Mg);return mo(t,n)}function Fg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(Ig,Di({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Mu(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=v(Iu,{name:f},u):o[s]=u}var c=r?v(Iu,null,o):o;return v(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?po:bt)(this._vdom,this._root)}function Mu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ag(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Mu(e)]=n,this._vdom=mo(this._vdom,r),bt(this._vdom,this._root)}}function Og(){bt(this._vdom=null,this._root)}function Iu(e,t){var n=this;return v("slot",Di({},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 Ng(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Fg,o.prototype.attributeChangedCallback=Ag,o.prototype.disconnectedCallback=Og,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function Dg(e,t){Ng(e,t)}function Fu(e){return e.tag===2?"":`(${e})`}function Pg(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return v("div",O(x([["className","mt-3"],(t=[Jd(J(new Zd([qd(x([new Ir(0,[i]),new Ir(1,[s=>{r&&n(s)}]),new Ir(2,[`${i?"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 Ir(3,[[v("span",{className:`${i?"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`})]])])),Yd(x([new Ia(0,["ml-3"]),new Ia(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))])))],["children",B.Children.toArray(Array.from(t))])])))}function Rg(e){let t;return v("div",O(x([["className","mt-4"],(t=[v("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${Fu(e.configOwnership)}: `}),v("input",{className:"inline-flex",id:"max-accounts",type:"number",min:1,max:3,value:e.selected,onChange:n=>{const r=n.target.valueAsNumber;r!=null&&!Number.isNaN(r)&&e.handleMaxAccountChanged(gc(r))},disabled:e.readOnly})],["children",B.Children.toArray(Array.from(t))])])))}function Au(e){let t;const n=e.msg;return v("div",O(x([["className","text-sm font-medium text-gray-900 my-5"],(t=[v("span",{children:[n]})],["children",B.Children.toArray(Array.from(t))])])))}function Lg(e,t,n){let r,o;const i=e.tag===2&&t?"":"hidden";return v("div",O(x([["className","flex-1"],(r=[v("div",O(x([["className","flex flex-row space-x-2"],(o=Tt(P(()=>{let s,a;return t?fe(I(v("button",O(x([(s="inline-flex items-center rounded border border-transparent bg-indigo-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",s]),["type","button"],["onClick",l=>{n(new he(5,[new Xn(1,[])]))}],["children",B.Children.toArray([H0])]])))),P(()=>I(v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-red-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,type:"button",children:"Reset",onClick:l=>{n(new he(7,[!0]))},children:B.Children.toArray([V0])})))):fe(I(v("button",O(x([(a="inline-flex items-center rounded border border-transparent bg-indigo-600 py-2 px-4 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",a]),["type","button"],["children","Save"],["onClick",l=>{n(D0())}]])))),P(()=>{let l;return I(v("button",O(x([(l="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",["className",l]),["type","button"],["children","Cancel"],["onClick",u=>{n(new he(6,[]))}]]))))}))})),["children",B.Children.toArray(Array.from(o))])])))],["children",B.Children.toArray(Array.from(r))])])))}function Hg(e){let t;return v("div",O(x([["className","flex-1"],(t=[v("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${Fu(e)}`})],["children",B.Children.toArray(Array.from(t))])])))}function Vg(e){return yu(new _u(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",mu,"Reset",()=>{e(new he(8,[]))},new wu(1,[]),"Cancel",()=>{e(new he(7,[!1]))}))}function Ug(e){let t;const n=F0(e.accessToken),r=m0(e.backendUrl,e.accessToken,e.partnerId,e.accountId);let o;const i=R0(n);o=Tu(()=>Eu(()=>i,(h,d)=>L0(n,r,h,d),(h,d)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=s.Error;u!=null?l=v(Au,{msg:u}):l=Fe();const f=I0(n.Roles)!=null?s.IsLoading?s.Error==null?v("div",{children:["Please wait"]}):l:v("div",O(x([["className","mt-5"],(t=Tt(P(()=>{let h;return fe(I(v("div",O(x([["className","flex"],(h=[Hg(s.Config.ConfigOwnership),Lg(s.Config.ConfigOwnership,s.ShowEditButton,a)],["children",B.Children.toArray(Array.from(h))])])))),P(()=>fe(I(v(Rg,{configOwnership:s.Config.ConfigOwnership,handleMaxAccountChanged:d=>{a(new he(0,[d]))},readOnly:!pu(s),selected:s.Config.MaxAccounts})),P(()=>fe(I(v(Pg,{isChecked:s.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:pu(s),onChange:d=>{a(new he(1,[d]))}})),P(()=>fe(s.ShowConfirmationDialog?I(Vg(a)):el(),P(()=>fe(I(l),P(()=>e.accountId==null?I(v(kg,{partnerId:e.partnerId,user:n,api:r})):I(Fe())))))))))))})),["children",B.Children.toArray(Array.from(t))])]))):v(Au,{msg:"You do not have the appropriate permissions to view this information"}),c=x([v("style",{children:[Tg]}),f]);return v("div",{children:B.Children.toArray(Array.from(c))})}Dg(e=>v(Ug,e),"superhero-bank-details")})();
|