@flarehr/superhero-bank-details 3.10.0 → 3.12.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 +48 -1
- package/package.json +14 -11
@@ -1 +1,48 @@
|
|
1
|
-
(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Children:()=>Ae,Component:()=>y,Fragment:()=>v,PureComponent:()=>xe,StrictMode:()=>_t,Suspense:()=>Fe,SuspenseList:()=>He,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ut,cloneElement:()=>dt,createContext:()=>$,createElement:()=>g,createFactory:()=>at,createPortal:()=>$e,createRef:()=>w,default:()=>St,findDOMNode:()=>pt,flushSync:()=>gt,forwardRef:()=>Ne,hydrate:()=>Ze,isElement:()=>Ct,isFragment:()=>ft,isValidElement:()=>ct,lazy:()=>je,memo:()=>Te,render:()=>Ke,startTransition:()=>wt,unmountComponentAtNode:()=>ht,unstable_batchedUpdates:()=>mt,useCallback:()=>ce,useContext:()=>fe,useDebugValue:()=>de,useDeferredValue:()=>vt,useEffect:()=>ie,useErrorBoundary:()=>he,useId:()=>pe,useImperativeHandle:()=>le,useInsertionEffect:()=>bt,useLayoutEffect:()=>se,useMemo:()=>ae,useReducer:()=>oe,useRef:()=>ue,useState:()=>re,useSyncExternalStore:()=>Et,useTransition:()=>yt,version:()=>lt});var n,r,o,i,s,u,l,a,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,s,u={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===u[s]&&(u[s]=e.defaultProps[s]);return _(e,u,o,i,null)}function _(e,t,n,i,s){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=r.vnode&&r.vnode(u),u}function w(){return{current:null}}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof e.type?b(e):null}function C(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function E(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){var e,t,n,r,o,s,u,a,c;for(i.sort(l);e=i.shift();)e.__d&&(t=i.length,r=void 0,o=void 0,s=void 0,a=(u=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=p({},u)).__v=u.__v+1,D(c,u,s,n.__n,void 0!==c.ownerSVGElement,null!=u.__h?[a]:null,r,null==a?b(u):a,u.__h,o),L(r,u,o),u.__e!=a&&C(u)),i.length>t&&i.sort(l));S.__r=0}function x(e,t,n,r,o,i,s,u,l,a,d){var p,m,g,w,y,C,E,S,x,k=0,I=r&&r.__k||f,A=I.length,M=A,P=t.length;for(n.__k=[],p=0;p<P;p++)null!=(w=n.__k[p]=null==(w=t[p])||"boolean"==typeof w||"function"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?_(null,w,null,null,w):h(w)?_(v,{children:w},null,null,null):w.__b>0?_(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)?(w.__=n,w.__b=n.__b+1,-1===(S=N(w,I,E=p+k,M))?g=c:(g=I[S]||c,I[S]=void 0,M--),D(e,w,g,o,i,s,u,l,a,d),y=w.__e,(m=w.ref)&&g.ref!=m&&(g.ref&&R(g.ref,null,w),d.push(m,w.__c||y,w)),null!=y&&(null==C&&(C=y),(x=g===c||null===g.__v)?-1==S&&k--:S!==E&&(S===E+1?k++:S>E?M>P-E?k+=S-E:k--:k=S<E&&S==E-1?S-E:0),E=p+k,"function"!=typeof w.type||S===E&&g.__k!==w.__k?"function"==typeof w.type||S===E&&!x?void 0!==w.__d?(l=w.__d,w.__d=void 0):l=y.nextSibling:l=O(e,y,l):l=T(w,l,e),"function"==typeof n.type&&(n.__d=l))):(g=I[p])&&null==g.key&&g.__e&&(g.__e==l&&(g.__=r,l=b(g)),j(g,g,!1),I[p]=null);for(n.__e=C,p=A;p--;)null!=I[p]&&("function"==typeof n.type&&null!=I[p].__e&&I[p].__e==n.__d&&(n.__d=I[p].__e.nextSibling),j(I[p],I[p]))}function T(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?T(r,t,n):O(n,r.__e,t));return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function O(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function N(e,t,n,r){var o=e.key,i=e.type,s=n-1,u=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l?1:0))for(;s>=0||u<t.length;){if(s>=0){if((l=t[s])&&o==l.key&&i===l.type)return s;s--}if(u<t.length){if((l=t[u])&&o==l.key&&i===l.type)return u;u++}}return-1}function I(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function A(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?P:M,i)):e.removeEventListener(t,i?P:M,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function M(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(r.event?r.event(e):e)}function P(e){return this.l[e.type+!0](r.event?r.event(e):e)}function D(e,t,n,o,i,s,u,l,a,c){var f,d,m,g,_,w,b,C,E,S,T,k,O,N,I,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(f=r.__b)&&f(t);e:if("function"==typeof A)try{if(C=t.props,E=(f=A.contextType)&&o[f.__c],S=f?E?E.props.value:f.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(C,S):(t.__c=d=new y(C,S),d.constructor=A,d.render=H),E&&E.sub(d),d.props=C,d.state||(d.state={}),d.context=S,d.__n=o,m=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,A.getDerivedStateFromProps(C,d.__s))),g=d.props,_=d.state,d.__v=t,m)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&C!==g&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(C,S),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(C,d.__s,S)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=C,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(C,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(g,_,w)}))}if(d.context=S,d.props=C,d.__P=e,d.__e=!1,k=r.__r,O=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(t),f=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,k&&k(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++O<25);d.state=d.__s,null!=d.getChildContext&&(o=p(p({},o),d.getChildContext())),m||null==d.getSnapshotBeforeUpdate||(w=d.getSnapshotBeforeUpdate(g,_)),x(e,h(I=null!=f&&f.type===v&&null==f.key?f.props.children:f)?I:[I],t,n,o,i,s,u,l,a,c),d.base=t.__e,t.__h=null,d.__h.length&&u.push(d),b&&(d.__E=d.__=null)}catch(e){t.__v=null,(a||null!=s)&&(t.__e=l,t.__h=!!a,s[s.indexOf(l)]=null),r.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=F(n.__e,t,n,o,i,s,u,a,c);(f=r.diffed)&&f(t)}function L(e,t,n){for(var o=0;o<n.length;o++)R(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function F(e,t,r,o,i,s,u,l,a){var f,d,p,g=r.props,_=t.props,w=t.type,v=0;if("svg"===w&&(i=!0),null!=s)for(;v<s.length;v++)if((f=s[v])&&"setAttribute"in f==!!w&&(w?f.localName===w:3===f.nodeType)){e=f,s[v]=null;break}if(null==e){if(null===w)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,_.is&&_),s=null,l=!1}if(null===w)g===_||l&&e.data===_||(e.data=_);else{if(s=s&&n.call(e.childNodes),d=(g=r.props||c).dangerouslySetInnerHTML,p=_.dangerouslySetInnerHTML,!l){if(null!=s)for(g={},v=0;v<e.attributes.length;v++)g[e.attributes[v].name]=e.attributes[v].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||A(e,i,t[i],n[i],r)}(e,_,g,i,l),p)t.__k=[];else if(x(e,h(v=t.props.children)?v:[v],t,r,o,i&&"foreignObject"!==w,s,u,s?s[0]:r.__k&&b(r,0),l,a),null!=s)for(v=s.length;v--;)null!=s[v]&&m(s[v]);l||("value"in _&&void 0!==(v=_.value)&&(v!==e.value||"progress"===w&&!v||"option"===w&&v!==g.value)&&A(e,"value",v,g.value,!1),"checked"in _&&void 0!==(v=_.checked)&&v!==e.checked&&A(e,"checked",v,g.checked,!1))}return e}function R(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||R(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,n||"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__=e.__e=e.__d=void 0}function H(e,t,n){return this.constructor(e,n)}function U(e,t,o){var i,s,u,l;r.__&&r.__(e,t),s=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],l=[],D(t,e=(!i&&o||t).__k=g(v,null,[e]),s||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:s?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:s?s.__e:t.firstChild,i,l),L(u,e,l)}function B(e,t){U(e,t,B)}function G(e,t,r){var o,i,s,u,l=p({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=void 0===t[s]&&void 0!==u?u[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),_(e.type,l,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+a++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n=f.slice,r={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},y.prototype.render=v,i=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,a=0;var V,W,q,z,J=0,Y=[],K=[],Z=r.__b,X=r.__r,Q=r.diffed,ee=r.__c,te=r.unmount;function ne(e,t){r.__h&&r.__h(W,e,J||t),J=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:K}),n.__[e]}function re(e){return J=1,oe(be,e)}function oe(e,t,n){var r=ne(V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):be(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};W.u=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},W.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,t){var n=ne(V++,3);!r.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function se(e,t){var n=ne(V++,4);!r.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function ue(e){return J=5,ae((function(){return{current:e}}),[])}function le(e,t,n){J=6,se((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ae(e,t){var n=ne(V++,7);return ye(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ce(e,t){return J=8,ae((function(){return e}),t)}function fe(e){var t=W.context[e.__c],n=ne(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(W)),t.props.value):e.__}function de(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function he(e){var t=ne(V++,10),n=re();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){var e=ne(V++,11);if(!e.__){for(var t=W.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function me(){for(var e;e=Y.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(we),e.__H.__h.forEach(ve),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}}r.__b=function(e){W=null,Z&&Z(e)},r.__r=function(e){X&&X(e),V=0;var t=(W=e.__c).__H;t&&(q===W?(t.__h=[],W.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=K,e.__N=e.i=void 0}))):(t.__h.forEach(we),t.__h.forEach(ve),t.__h=[],V=0)),q=W},r.diffed=function(e){Q&&Q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Y.push(t)&&z===r.requestAnimationFrame||((z=r.requestAnimationFrame)||_e)(me)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==K&&(e.__=e.__V),e.i=void 0,e.__V=K}))),q=W=null},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(we),e.__h=e.__h.filter((function(e){return!e.__||ve(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),ee&&ee(e,t)},r.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{we(e)}catch(e){t=e}})),n.__H=void 0,t&&r.__e(t,n.__v))};var ge="function"==typeof requestAnimationFrame;function _e(e){var t,n=function(){clearTimeout(r),ge&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ge&&(t=requestAnimationFrame(n))}function we(e){var t=W,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),W=t}function ve(e){var t=W;e.__c=e.__(),W=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function be(e,t){return"function"==typeof t?t(e):t}function Ce(e,t){for(var n in t)e[n]=t[n];return e}function Ee(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Se(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function xe(e){this.props=e}function Te(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ee(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(xe.prototype=new y).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var ke=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ke&&ke(e)};var Oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ne(e){function t(t){var n=Ce({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Oe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ie=function(e,t){return null==e?null:k(k(e).map(t))},Ae={map:Ie,forEach:Ie,count:function(e){return e?k(e).length:0},only:function(e){var t=k(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:k},Me=r.__e;r.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Me(e,t,n,r)};var Pe=r.unmount;function De(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Ce({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)}))),e}function Le(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Le(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Fe(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function je(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return g(n,o)}return o.displayName="Lazy",o.__f=!0,o}function He(){this.u=null,this.o=null}r.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Pe&&Pe(e)},(Fe.prototype=new y).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Re(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Le(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Fe.prototype.componentWillUnmount=function(){this.t=[]},Fe.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]=De(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(v,null,e.fallback);return o&&(o.__h=null),[g(v,null,t.__a?null:e.children),o]};var Ue=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Be(e){return this.getChildContext=function(){return e.context},e.children}function Ge(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),U(g(Be,{context:t.context},e.__v),t.l)}function $e(e,t){var n=g(Ge,{__v:e,i:t});return n.containerInfo=t,n}(He.prototype=new y).__a=function(e){var t=this,n=Re(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ue(t,e,r)):o()};n?n(i):i()}},He.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},He.prototype.componentDidUpdate=He.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ue(e,n,t)}))};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,We=/^(?: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]/,qe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ze=/[A-Z0-9]/g,Je="undefined"!=typeof document,Ye=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ke(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ze(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null}y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=r.event;function Qe(){}function et(){return this.cancelBubble}function tt(){return this.defaultPrevented}r.event=function(e){return Xe&&(e=Xe(e)),e.persist=Qe,e.isPropagationStopped=et,e.isDefaultPrevented=tt,e.nativeEvent=e};var nt,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},ot=r.vnode;r.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Je&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ye(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":qe.test(o)?o=s:-1===n.indexOf("-")&&We.test(o)?o=o.replace(ze,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=k(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=k(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ve,ot&&ot(e)};var it=r.__r;r.__r=function(e){it&&it(e),nt=e.__c};var st=r.diffed;r.diffed=function(e){st&&st(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),nt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return nt.__n[e.__c].props.value}}}},lt="17.0.2";function at(e){return g.bind(null,e)}function ct(e){return!!e&&e.$$typeof===Ve}function ft(e){return ct(e)&&e.type===v}function dt(e){return ct(e)?G.apply(null,arguments):e}function ht(e){return!!e.__k&&(U(null,e),!0)}function pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var mt=function(e,t){return e(t)},gt=function(e,t){return e(t)},_t=v;function wt(e){e()}function vt(e){return e}function yt(){return[!1,wt]}var bt=se,Ct=ct;function Et(e,t){var n=t(),r=re({h:{__:n,v:t}}),o=r[0].h,i=r[1];return se((function(){o.__=n,o.v=t,Se(o.__,t())||i({h:o})}),[e,n,t]),ie((function(){return Se(o.__,o.v())||i({h:o}),e((function(){Se(o.__,o.v())||i({h:o})}))}),[e]),n}var St={useState:re,useId:pe,useReducer:oe,useEffect:ie,useLayoutEffect:se,useInsertionEffect:bt,useTransition:yt,useDeferredValue:vt,useSyncExternalStore:Et,startTransition:wt,useRef:ue,useImperativeHandle:le,useMemo:ae,useCallback:ce,useContext:fe,useDebugValue:de,version:"17.0.2",Children:Ae,render:Ke,hydrate:Ze,unmountComponentAtNode:ht,createPortal:$e,createElement:g,createContext:$,createFactory:at,cloneElement:dt,createRef:w,Fragment:v,isValidElement:ct,isElement:Ct,isFragment:ft,findDOMNode:pt,Component:y,PureComponent:xe,memo:Te,forwardRef:Ne,flushSync:gt,unstable_batchedUpdates:mt,StrictMode:_t,Suspense:Fe,SuspenseList:He,lazy:je,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut};class xt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Vt(this.value)}Equals(e){return null!=e&&Jt(this.value,e instanceof xt?e.value:e)}CompareTo(e){return null==e?1:Xt(this.value,e instanceof xt?e.value:e)}}function Tt(e){if(null==e)throw new Error("Option has no value");return e instanceof xt?e.value:e}function kt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ot(e){return null!=e&&"function"==typeof e.GetHashCode}function Nt(e){return null!=e&&"function"==typeof e.Dispose}function It(e){Nt(e)&&e.Dispose()}function At(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}Symbol.iterator;class Mt{constructor(e){this.iter=e,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Pt(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new Mt(e[Symbol.iterator]())}function Dt(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Lt{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Ft(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function Rt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function jt(e,t){return(e=e<0&&null!=t&&10!==t?65535+e+1:e).toString(t)}function Ht(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Ut{static id(e){return Ut.idMap.has(e)||Ut.idMap.set(e,++Ut.count),Ut.idMap.get(e)}}function Bt(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function Gt(e){return 2654435761*e|0}function $t(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function Vt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Gt(e);case"string":return Bt(e);default:if(Ot(e))return e.GetHashCode();if(kt(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Vt(e[r]);return $t(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>Vt(e)));return $t(t)}return Gt(Ut.id(e))}}function Wt(e){return function(e){return Ot(e)?e.GetHashCode():function(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Gt(e);case"string":return Bt(e);default:return Gt(Ut.id(e))}}(e)}(e)}function qt(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 zt(e,t){return qt(e,t,Jt)}function Jt(e,t){var n;return e===t||(null==e?null==t:null!=t&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(t):kt(e)?kt(t)&&zt(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===Yt(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!Jt(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function Yt(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Rt(e),r=t.getTime()+Rt(t)),n===r?0:n<r?-1:1}function Kt(e,t){return e===t?0:e<t?-1:1}function Zt(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,Xt)}function Xt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(t):kt(e)?kt(t)?Zt(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?Yt(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(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=Xt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function Qt(e,t,n){return e(t,n)>0?t:n}function en(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Ut.idMap=new WeakMap,Ut.count=0;const tn=Symbol("curried");function nn(e,t){if(null==t)return t;const n=Tt(t);if(n.length>1)return n;const r=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return r[tn]=n,r}function rn(e,t,n){return r=>1===t?n(...e.concat([r])):rn(e.concat([r]),t-1,n)}function on(e,t,n){if(null!=t){if(tn in t){t=t[tn];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return rn(n,e,t)}}function sn(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=sn(r);else{if(100===t){n+="; ...";break}n+="; "+sn(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+sn(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class un{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n,r=!0;return 1===t.length?(n=sn(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>sn(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Vt(e)));return e.splice(0,0,Gt(this.tag)),$t(e)}Equals(e){return this===e||!!At(this,e)&&this.tag===e.tag&&zt(this.fields,e.fields)}CompareTo(e){return this===e?0:At(this,e)?this.tag===e.tag?Zt(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class ln{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,t])=>e+" = "+sn(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Vt(e)));return $t(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(At(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Jt(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(At(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Xt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class an{get contents(){return this.getter()}set contents(e){this.setter(e)}constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}}class cn{constructor(e){this.message=e}}function fn(e){return function(e){return e instanceof cn||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}const dn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function hn(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function pn(e,t=dn.None){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case dn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case dn.SnakeCase:return hn(e,"_");case dn.SnakeCaseAllCaps:return hn(e,"_").toUpperCase();case dn.KebabCase:return hn(e,"-");case dn.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=dn.None;if(null==t&&o(t),t instanceof un){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function mn(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function gn(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gn),r}var _n,wn=((_n=wn||{})[_n.None=0]="None",_n[_n.RenderStrategy=1]="RenderStrategy",_n[_n.Static=2]="Static",_n),vn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vn||{});function yn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let u=Cn(t,e);if(i)return bn(u,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=u;if(e)return bn(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=u;return gn(e?0:1,{0:()=>null,1:()=>bn({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return bn(u,n,r,s)}function bn(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...u}=xn(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},a="function"==typeof i?i(t):i;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let c={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(c["data-headlessui-state"]=n.join(" "))}if(o===v&&Object.keys(Sn(u)).length>0){if(!ct(a)||Array.isArray(a)&&a.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(u).map((e=>` - ${e}`)).join("\n"),"","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((e=>` - ${e}`)).join("\n")].join("\n"));let e=a.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>mn(null==e?void 0:e.className(...t),u.className):mn(null==e?void 0:e.className,u.className),n=t?{className:t}:{};return dt(a,Object.assign({},Cn(a.props,Sn(xn(u,["ref"]))),c,l,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(a.ref,l.ref),n))}return g(o,Object.assign({},xn(u,["ref"]),o!==v&&l,o!==v&&c),a)}function Cn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function En(e){var t;return Object.assign(Ne(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Sn(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xn(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Tn=Object.defineProperty,kn=(e,t,n)=>(((e,t,n)=>{t in e?Tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let On=new class{constructor(){kn(this,"current",this.detect()),kn(this,"handoffState","pending"),kn(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Nn=(e,t)=>{On.isServer?ie(e,t):se(e,t)};function In(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(t)((()=>()=>{}),(()=>!1),(()=>!e))}(),[n,r]=re(On.isHandoffComplete);return n&&!1===On.isHandoffComplete&&r(!1),ie((()=>{!0!==n&&r(!0)}),[n]),ie((()=>On.handoff()),[]),!e&&n}var An;let Mn=null!=(An=St.useId)?An:function(){let e=In(),[t,n]=St.useState(e?()=>On.nextId():null);return Nn((()=>{null===t&&n(On.nextId())}),[t]),null!=t?""+t:void 0};var Pn=(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))(Pn||{});function Dn(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}function Ln(e){let t=ue(e);return Nn((()=>{t.current=e}),[e]),t}let Fn=function(e){let t=Ln(e);return St.useCallback(((...e)=>t.current(...e)),[t])},Rn=Symbol();function jn(...e){let t=ue(e);ie((()=>{t.current=e}),[e]);let n=Fn((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Rn])))?void 0:n}let Hn=$(null);function Un(){let e=fe(Hn);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Un),e}return e}let Bn=En((function(e,t){let n=Mn(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Un(),u=jn(t);Nn((()=>s.register(r)),[r,s.register]);let l={ref:u,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),yn({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:"label",name:s.name||"Label"})})),Gn=Object.assign(Bn,{}),$n=$(null);function Vn(){let e=fe($n);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vn),e}return e}function Wn(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,ae((()=>function(e){let n=Fn((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=ae((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return St.createElement($n.Provider,{value:r},e.children)}),[t])]}let qn=En((function(e,t){let n=Mn(),{id:r=`headlessui-description-${n}`,...o}=e,i=Vn(),s=jn(t);return Nn((()=>i.register(r)),[r,i.register]),yn({ourProps:{ref:s,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),zn=Object.assign(qn,{});function Jn(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Yn(e,t){let[n,r]=re((()=>Jn(e)));return Nn((()=>{r(Jn(e))}),[e.type,e.as]),Nn((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var Kn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Kn||{});let Zn=En((function(e,t){let{features:n=1,...r}=e;return yn({ourProps:{ref:t,"aria-hidden":!(2&~n)||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",...!(4&~n)&&!!(2&~n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Xn(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Qn(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Xn((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Qn();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function er(){let[e]=re(Qn);return ie((()=>()=>e.dispose()),[e]),e}let tr=$(null);tr.displayName="GroupContext";let nr=v,rr=En((function(e,t){let n=Mn(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:u,value:l,form:a,...c}=e,f=fe(tr),d=ue(null),h=jn(d,t,null===f?null:f.setSwitch),[p,m]=function(e,t,n){let[r,o]=re(n),i=void 0!==e,s=ue(i),u=ue(!1),l=ue(!1);return!i||s.current||u.current?!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.")):(u.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?e:r,Fn((e=>(i||o(e),null==t?void 0:t(e))))]}(o,s,i),g=Fn((()=>null==m?void 0:m(!p))),_=Fn((e=>{if(Dn(e.currentTarget))return e.preventDefault();e.preventDefault(),g()})),w=Fn((e=>{e.key===Pn.Space?(e.preventDefault(),g()):e.key===Pn.Enter&&function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget)})),v=Fn((e=>e.preventDefault())),y=ae((()=>({checked:p})),[p]),b={id:r,ref:h,role:"switch",type:Yn(e,d),tabIndex:0,"aria-checked":p,"aria-labelledby":null==f?void 0:f.labelledby,"aria-describedby":null==f?void 0:f.describedby,onClick:_,onKeyUp:w,onKeyPress:v},C=er();return ie((()=>{var e;let t=null==(e=d.current)?void 0:e.closest("form");t&&void 0!==i&&C.addEventListener(t,"reset",(()=>{m(i)}))}),[d,m]),St.createElement(St.Fragment,null,null!=u&&p&&St.createElement(Zn,{features:Kn.Hidden,...Sn({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:a,checked:p,name:u,value:l})}),yn({ourProps:b,theirProps:c,slot:y,defaultTag:"button",name:"Switch"}))})),or=Object.assign(rr,{Group:function(e){var t;let[n,r]=re(null),[o,i]=function(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,ae((()=>function(e){let n=Fn((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=ae((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return St.createElement(Hn.Provider,{value:r},e.children)}),[t])]}(),[s,u]=Wn(),l=ae((()=>({switch:n,setSwitch:r,labelledby:o,describedby:s})),[n,r,o,s]),a=e;return St.createElement(u,{name:"Switch.Description"},St.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(t=l.switch)?void 0:t.id,onClick(e){n&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},St.createElement(tr.Provider,{value:l},yn({ourProps:{},theirProps:a,defaultTag:nr,name:"Switch.Group"}))))},Label:Gn,Description:zn});class ir extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Checked","OnChange","ClassName","Children"]}}function sr(e){const t=pn(e,1);return g(or,t)}class ur extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["ClassName","Children"]}}function lr(e){const t=pn(e,1);return g(or.Label,t)}class ar extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Children"]}}function cr(e){const t=pn(e,1);return g(or.Group,t)}function fr(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ft(~~(e/36e5),2)+":"+Ft(n,2)}function dr(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function hr(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:Ft(r,t.length)}))}function pr(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+fr(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return hr(i,t,!0);switch(t){case"D":case"d":return dr(i,"first");case"T":case"t":return dr(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+fr(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return hr(e,t,n);switch(t){case"D":case"d":return n?dr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?dr(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return Ft(e.getFullYear(),4)+"-"+Ft(e.getMonth()+1,2)+"-"+Ft(e.getDate(),2)+"T"+Ft(e.getHours(),2)+":"+Ft(e.getMinutes(),2)+":"+Ft(e.getSeconds(),2)+"."+Ft(e.getMilliseconds(),3)+(t?fr(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function mr(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function gr(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function _r(e,t){try{return t.contents=function(e,t=!1){const[n,r]=gr(e),o=null!=r?t&&"Z"===r?1:2:0;return mr(n.getTime(),o)}(e),!0}catch(e){return!1}}const wr=Symbol("numeric");function vr(e){return"number"==typeof e||(null==e?void 0:e[wr])}function yr(e,t){return"number"==typeof e?e*t:e[wr]().multiply(t)}function br(e,t){return"number"==typeof e?e.toFixed(t):e[wr]().toFixed(t)}function Cr(e,t){return"number"==typeof e?e.toPrecision(t):e[wr]().toPrecision(t)}function Er(e,t){return"number"==typeof e?e.toExponential(t):e[wr]().toExponential(t)}function Sr(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[wr]().toHex()}function xr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Tr(e,t,n=0){if(null==t)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(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const kr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Or=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Nr(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ir(e){return{input:e,cont:(t=e,e=>{kr.lastIndex=0;const n=[],r=[];let o=0,i=kr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=kr.lastIndex,kr.lastIndex-=1,i=kr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Lr(e,n,r))})};var t}function Ar(e,t){return"string"==typeof t?e(t):t.cont(e)}function Mr(e){return Ar((e=>e),e)}function Pr(e){return Ar((e=>{throw new Error(e)}),e)}function Dr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",vr(e))switch("x"!==o.toLowerCase()&&(Nr(e,0)?(e=yr(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=br(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Cr(e,r):Cr(e);break;case"e":case"E":e=null!=r?Er(e,r):Er(e);break;case"x":e=Sr(e);break;case"X":e=Sr(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?pr(e):sn(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Rr(e,n-i.length,s,o)):Rr(i+e,n,s,o)}return e}function Lr(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),l=n.slice();for(const e of i){const[,,t,n,r,i]=l[0];let a=n;if(o>=0)a=o,o=-1;else if("*"===a){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Dr(e,t,a,r,i),u.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=u[0],e(s)):Lr(e,u,l,s,o)}}function Fr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Rr(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function jr(e,t,n){return Rr(e,t,n)}function Hr(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=!(1&~r),i=!(2&~r);t=(t=t||[]).filter((e=>e)).map(xr),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let l=!0,a=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(a).trim():e.substring(a);(!o||t.length>0)&&s.push(t),l=!1}else{const r=i?e.substring(a,t.index).trim():e.substring(a,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(a).trim():e.substring(a)),l=!1):s.push(r)),a=u.lastIndex}}while(l);return s}const Ur="Collection was empty.";function Br(e,t){return"function"==typeof e?new e(t):new Array(t)}function Gr(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function $r(e,t,n){const r=0|t.length,o=Br(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Vr(e,t,n){return n.reduce(e,t)}class Wr extends ln{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Fr("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const s=o,u=i;if(Jt(n.head,r.head)){e=s,t=u;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+Vt(i.head)+631*r,n=u}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const s=o,u=i,l=0|Xt(n.head,r.head);if(0===l){e=s,t=u;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new qr(this)}[Symbol.iterator](){return Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Pt(this)}}class qr{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function zr(){return new Wr(null,void 0)}function Jr(e,t){return new Wr(e,t)}function Yr(e){return null==e.tail}function Kr(e){if(null!=e.tail)return e.head;throw new Error(Ur+"\\nParameter name: list")}function Zr(e){const t=e.tail;if(null!=t)return t;throw new Error(Ur+"\\nParameter name: list")}function Xr(){return zr()}function Qr(e,t){return Jr(e,t)}function eo(e){return Jr(e,zr())}function to(e){return Yr(e)}function no(e){return Kr(e)}function ro(e){return Zr(e)}function oo(e){const t=0|function(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}(e),n=Gr(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Yr(o))break;n[r]=Kr(o),e=r+1,t=Zr(o)}})(0,e),n}function io(e,t,n){let r=t,o=n;for(;!Yr(o);)r=e(r,no(o)),o=Zr(o);return r}function so(e){return io(((e,t)=>Jr(t,e)),zr(),e)}function uo(e,t){io(((t,n)=>{e(n)}),void 0,t)}function lo(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Jr(e[t],n);return n}function ao(e){return lo(e,zr())}function co(e,t){return io(((e,t)=>Jr(t,e)),t,so(e))}function fo(e,t,n){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Yr(o))return;if(e(Kr(o)))return r;t=r+1,n=Zr(o)}})(0,t)}((t=>n.Equals(e,t)),t)}const ho=St;function po(e){return null==e||e instanceof xt?new xt(e):e}function mo(e,t){return null!=e?Tt(e):t}const go="Enumeration already finished.",_o="Enumeration has not started. Call MoveNext.",wo="The input sequence has an insufficient number of elements.";function vo(){throw new Error(_o)}function yo(){throw new Error(go)}class bo{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Pt(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=sn(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{It(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Co{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Eo(e,t,n){return new Co(e,t,n)}function So(e,t,n){let r,o=!1,i=po(e());const s=()=>{if(null!=i){const e=Tt(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Eo((()=>(o||vo(),null!=r?Tt(r):yo())),(()=>{if(o||(o=!0),null!=i){const e=Tt(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function xo(e){return function(e){return new bo(e)}(e)}function To(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Pt(e);var t}function ko(e){return xo((()=>Pt(e())))}function Oo(e){return xo((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{It(e)}finally{n=void 0}}if(null!=t){const e=t;try{It(e)}finally{t=void 0}}};return Eo((()=>(o?i&&yo():vo(),null!=r?Tt(r):yo())),(()=>{let u;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=t;if(null!=i)if(null!=n){const e=n;if(e["System.Collections.IEnumerator.MoveNext"]())r=po(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{It(e)}finally{n=void 0}}else{const e=i;e["System.Collections.IEnumerator.MoveNext"]()?(u=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Pt(u)):(s(),o=!1)}else t=Pt(e)}return Tt(o)}}),(()=>{i||s()}))}(e)))}function No(){return ko((()=>new Array(0)))}function Io(e){return ko((()=>function(e,t){const n=Br(null,1);return n[0]=e,n}(e)))}function Ao(e){return kt(e)?ao(e):e instanceof Wr?e:function(e){let t,n;if(kt(e))return ao(e);if(e instanceof Wr)return e;{const r=zr();let o=r;const i=Pt(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Wr(e,void 0),t.tail=n,o=n}}finally{It(i)}const s=o,u=zr();return s.tail=u,Zr(r)}}(e)}function Mo(e,t,n){return xo((()=>{let r=-1;return So(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Po(e,t){return Oo([e,t])}function Do(e,t,n){const r=To(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{It(r)}}function Lo(e,t,n){const r=To(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{It(r)}}function Fo(e,t){Lo(((t,n)=>{e(n)}),void 0,t)}function Ro(e,t){return n=()=>To(t),r=t=>t["System.Collections.IEnumerator.MoveNext"]()?po(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{It(e)},xo((()=>So(n,r,o)));var n,r,o}function jo(e){return ko((()=>function(e){return e.slice().reverse()}(function(e){return e instanceof Wr?oo(e):Array.from(e)}(e))))}function Ho(e,t){return xo((()=>{const n=To(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(wo+"\\nParameter name: source");return function(e,t){return Eo((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{It(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw It(n),e}}))}Symbol.iterator;class Uo{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Bo{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Xo(this)}GetHashCode(){return $o(this)}Equals(e){return Vo(this,e)}}function Go(e){return null!=e.generics?e.generics:[]}function $o(e){return $t([Bt(e.fullname),...Go(e).map($o)])}function Vo(e,t){return""===e.fullname?""===t.fullname&&qt(li(e),li(t),(([e,t],[n,r])=>e===n&&Vo(t,r))):e.fullname===t.fullname&&qt(Go(e),Go(t),Vo)}function Wo(e,t,n,r){return new Bo(e,t,n,void 0,r)}function qo(...e){return new Bo("",void 0,void 0,void 0,(()=>e))}const zo=new Bo("System.Object"),Jo=(new Bo("Microsoft.FSharp.Core.Unit"),new Bo("System.Char"),new Bo("System.String")),Yo=new Bo("System.Boolean"),Ko=(new Bo("System.SByte"),new Bo("System.Byte"),new Bo("System.Int16"),new Bo("System.UInt16"),new Bo("System.Int32"));function Zo(e){if(Array.isArray(e))return e[0];if(e instanceof Bo){const t=ei(e);if(null!=t)return Zo(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Xo(e){const t=ei(e);return null!=t?Xo(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Xo(e))).join(",")+"]"}function Qo(e){return null!=ei(e)}function ei(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ti(e){return null!=e.generics&&e.generics.length>0}function ni(e){return null!=e.enumCases&&e.enumCases.length>0}function ri(e){return null==e.generics?e:new Bo(e.fullname,e.generics.map((()=>zo)))}function oi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function ii(e){if(ni(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function si(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function ui(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function li(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ai(e){if(di(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function ci(e){return e instanceof Bo?null!=e.cases:e instanceof un}function fi(e){return e instanceof Bo?null!=e.fields:e instanceof ln}function di(e){return e.fullname.startsWith("System.Tuple")}function hi(e){return null==e.fields?[]:e.fields}new Bo("System.UInt32"),new Bo("System.Int64"),new Bo("System.UInt64"),new Bo("System.Int128"),new Bo("System.UInt128"),new Bo("System.IntPtr"),new Bo("System.UIntPtr"),new Bo("System.Half"),new Bo("System.Single"),new Bo("System.Double"),new Bo("System.Decimal"),new Bo("System.Numerics.BigInteger");class pi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function mi(e,t){return 0===t.tag?new pi(0,[e(t.fields[0])]):new pi(1,[t.fields[0]])}class gi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class _i extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class vi{constructor(){this.cache=new Map([])}}function yi(){return new vi}function bi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ci(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(-284&t)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=Tr(e,s),l=Tr.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}return t.replace(e,n)}(bi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bi(t)}}yi(),yi();const Ei=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Si=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,xi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ti(e,t){try{return t.contents=function(e){function t(e){return e.replace(Si,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ei.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+xr(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Si.test(n))return t(n);if(xi.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var ki;function Oi(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 Ni(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&ki.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Oi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Oi(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function Ii(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Ai(e,t){try{return t.contents=function(e){const[t,n]=gr(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Ii(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ki||(ki={}));var Mi=null;try{Mi=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(a){}function Pi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Di(e){return!0===(e&&e.__isLong__)}Pi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Pi.prototype.Equals=function(e){return us(this,e)},Pi.prototype.CompareTo=function(e){return fs(this,e)},Pi.prototype.toString=function(e){return rs(this,e)},Pi.prototype.toJSON=function(){return rs(this)},Pi.prototype[wr]=function(){const e=this;return{multiply:t=>ms(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>rs(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Pi(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new Pi(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}(function(e,t){return t?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(e):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(e)}(e),!0),16)}},Pi.prototype.__isLong__,Object.defineProperty(Pi.prototype,"__isLong__",{value:!0});var Li={},Fi={};function Ri(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Fi[e])?r:(n=Hi(e,(0|e)<0?-1:0,!0),o&&(Fi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Li[e])?r:(n=Hi(e,e<0?-1:0,!1),o&&(Li[e]=n),n)}function ji(e,t){if(isNaN(e))return t?Ji:zi;if(t){if(e<0)return Ji;if(e>=Vi)return Qi}else{if(e<=-Wi)return es;if(e+1>=Wi)return Xi}return e<0?ds(ji(-e,t)):Hi(e%$i|0,e/$i|0,t)}function Hi(e,t,n){return new Pi(e,t,n)}var Ui=Math.pow;function Bi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return zi;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return ds(Bi(e.substring(1),t,n));for(var o=ji(Ui(n,8)),i=zi,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),n);i=hs(u<8?ms(i,ji(Ui(n,u))):i=ms(i,o),ji(l))}return i.unsigned=t,i}function Gi(e,t){return"number"==typeof e?ji(e,t):"string"==typeof e?Bi(e,t):Hi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var $i=4294967296,Vi=$i*$i,Wi=Vi/2,qi=Ri(1<<24),zi=Ri(0),Ji=Ri(0,!0),Yi=Ri(1),Ki=Ri(1,!0),Zi=Ri(-1),Xi=Hi(-1,2147483647,!1),Qi=Hi(-1,-1,!0),es=Hi(0,-2147483648,!1);function ts(e){return e.unsigned?e.low>>>0:e.low}function ns(e){return e.unsigned?(e.high>>>0)*$i+(e.low>>>0):e.high*$i+(e.low>>>0)}function rs(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(os(e))return"0";if(is(e)){if(us(e,es)){var n=ji(t),r=gs(e,n),o=ps(ms(r,n),e);return rs(r,t)+ts(o).toString(t)}return"-"+rs(ds(e),t)}for(var i=ji(Ui(t,6),e.unsigned),s=e,u="";;){var l=gs(s,i),a=(ts(ps(s,ms(l,i)))>>>0).toString(t);if(os(s=l))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function os(e){return 0===e.high&&0===e.low}function is(e){return!e.unsigned&&e.high<0}function ss(e){return!(1&~e.low)}function us(e,t){return Di(t)||(t=Gi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ls(e,t){return fs(e,t)<0}function as(e,t){return fs(e,t)>0}function cs(e,t){return fs(e,t)>=0}function fs(e,t){if(Di(t)||(t=Gi(t)),us(e,t))return 0;var n=is(e),r=is(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:is(ps(e,t))?-1:1}function ds(e){return!e.unsigned&&us(e,es)?es:hs(function(e){return Hi(~e.low,~e.high,e.unsigned)}(e),Yi)}function hs(e,t){Di(t)||(t=Gi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+l)>>>16,a+=(c+=r+u)>>>16,a+=n+s,Hi((f&=65535)<<16|(d&=65535),(a&=65535)<<16|(c&=65535),e.unsigned)}function ps(e,t){return Di(t)||(t=Gi(t)),hs(e,ds(t))}function ms(e,t){if(os(e))return e.unsigned?Ji:zi;if(Di(t)||(t=Gi(t)),Mi)return Hi(Mi.mul(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned);if(os(t))return e.unsigned?Ji:zi;if(us(e,es))return ss(t)?es:zi;if(us(t,es))return ss(e)?es:zi;if(is(e))return is(t)?ms(ds(e),ds(t)):ds(ms(ds(e),t));if(is(t))return ds(ms(e,ds(t)));if(ls(e,qi)&&ls(t,qi))return ji(ns(e)*ns(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=65535&t.low,c=0,f=0,d=0,h=0;return d+=(h+=i*a)>>>16,f+=(d+=o*a)>>>16,d&=65535,f+=(d+=i*l)>>>16,c+=(f+=r*a)>>>16,f&=65535,c+=(f+=o*l)>>>16,f&=65535,c+=(f+=i*u)>>>16,c+=n*a+r*l+o*u+i*s,Hi((d&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function gs(e,t){if(Di(t)||(t=Gi(t)),os(t))throw Error("division by zero");var n,r,o;if(Mi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Hi((e.unsigned?Mi.div_u:Mi.div_s)(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned):e;if(os(e))return e.unsigned?Ji:zi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Hi(e.low,e.high,!0)}(t)),as(t,e))return Ji;if(as(t,function(e,t){if(Di(t)&&(t=ts(t)),0==(t&=63))return e;var n=e.high;return t<32?Hi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Hi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ki;o=Ji}else{if(us(e,es))return us(t,Yi)||us(t,Zi)?es:us(t,es)?Yi:us(n=function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Hi(0,e.low<<t-32,e.unsigned)}(gs(function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Hi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),zi)?is(t)?Yi:Zi:o=hs(n,gs(r=ps(e,ms(t,n)),t));if(us(t,es))return e.unsigned?Ji:zi;if(is(e))return is(t)?gs(ds(e),ds(t)):ds(gs(ds(e),t));if(is(t))return ds(gs(e,ds(t)));o=zi}for(r=e;cs(r,t);){n=Math.max(1,Math.floor(ns(r)/ns(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ui(2,i-48),u=ji(n),l=ms(u,t);is(l)||as(l,r);)l=ms(u=ji(n-=s,e.unsigned),t);os(u)&&(u=Yi),o=hs(o,u),r=ps(r,l)}return o}const _s=gs,ws=ns;function vs(e){return e<0?Math.ceil(e):Math.floor(e)}function ys(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ws(_s(arguments[0],1e4));case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function bs(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ys(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ys(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Cs{constructor(e,t){this.k=e,this.v=t}}function Es(e,t){return new Cs(e,t)}function Ss(e){return e.k}function xs(e){return e.v}class Ts extends Cs{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ks(e,t,n,r,o){return new Ts(e,t,n,r,o)}function Os(e){return e.left}function Ns(e){return e.right}function Is(e){return e.h}function As(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Ts){e=As(n+1,Os(r)),t=Ns(r);continue e}return n+1|0}return 0|n}}function Ms(e){return As(0,e)}function Ps(e,t,n,r){let o,i;o=null!=e?e instanceof Ts?Is(e):1:0,i=null!=r?r instanceof Ts?Is(r):1:0;const s=0|(o<i?i:o);return 0===s?Es(t,n):ks(t,n,e,r,s+1)}function Ds(e,t,n,r){let o,i,s,u,l,a;if(l=null!=e?e instanceof Ts?Is(e):1:0,a=null!=r?r instanceof Ts?Is(r):1:0,a>l+2){const s=Tt(r);if(s instanceof Ts){if(o=Os(s),(null!=o?(i=o,i instanceof Ts?Is(i):1):0)>l+1){const r=Tt(Os(s));if(r instanceof Ts)return Ps(Ps(e,t,n,Os(r)),Ss(r),xs(r),Ps(Ns(r),Ss(s),xs(s),Ns(s)));throw new Error("internal error: Map.rebalance")}return Ps(Ps(e,t,n,Os(s)),Ss(s),xs(s),Ns(s))}throw new Error("internal error: Map.rebalance")}if(l>a+2){const o=Tt(e);if(o instanceof Ts){if(s=Ns(o),(null!=s?(u=s,u instanceof Ts?Is(u):1):0)>a+1){const e=Tt(Ns(o));if(e instanceof Ts)return Ps(Ps(Os(o),Ss(o),xs(o),Os(e)),Ss(e),xs(e),Ps(Ns(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ps(Os(o),Ss(o),xs(o),Ps(Ns(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ps(e,t,n,r)}function Ls(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Ss(o));return o instanceof Ts?i<0?Ds(Ls(e,t,n,Os(o)),Ss(o),xs(o),Ns(o)):0===i?ks(t,n,Os(o),Ns(o),Is(o)):Ds(Os(o),Ss(o),xs(o),Ls(e,t,n,Ns(o))):i<0?ks(t,n,void 0,r,2):0===i?Es(t,n):ks(t,n,r,void 0,2)}return Es(t,n)}function Fs(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Ss(i));if(0===s)return po(xs(i));if(i instanceof Ts){e=r,t=o,n=s<0?Os(i):Ns(i);continue e}return}return}}function Rs(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Ts){Rs(n,Os(r)),n(Ss(r),xs(r)),e=n,t=Ns(r);continue e}n(Ss(r),xs(r))}break}}function js(e,t){Rs(e,t)}function Hs(e,t){if(null!=t){const n=t;if(n instanceof Ts){const t=Hs(e,Os(n)),r=e(Ss(n),xs(n)),o=Hs(e,Ns(n));return ks(Ss(n),r,t,o,Is(n))}return Es(Ss(n),e(Ss(n),xs(n)))}}function Us(e,t){return Hs(e,t)}function Bs(e,t){if(kt(t))return function(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ls(e,o[0],o[1],n)}return n}(e,t);if(t instanceof Wr)return function(e,t){return io(((t,n)=>Ls(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Pt(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Ls(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{It(n)}}}class Gs extends ln{constructor(e,t){super(),this.stack=e,this.started=t}}function $s(e){e:for(;;){const t=e;if(to(t))return Xr();{const n=ro(t),r=no(t);if(null!=r){const o=r;if(o instanceof Ts){e=lo([Os(o),Es(Ss(o),xs(o)),Ns(o)],n);continue e}return t}e=n;continue e}}}function Vs(e){return new Gs($s(eo(e)),!1)}function Ws(e){if(e.started){const t=e.stack;if(to(t))return function(){throw new Error("enumeration already finished")}();if(null!=no(t)){const e=no(t);if(e instanceof Ts)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ss(e),xs(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function qs(e){let t=Vs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ws(t),"System.Collections.IEnumerator.get_Current":()=>Ws(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(to(t))return!1;if(null!=no(t)){if(no(t)instanceof Ts)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=$s(ro(t)),!to(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!to(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Vs(e)},Dispose(){}}}class zs{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Pt(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Vt(e[0])),n=0|t(n,Vt(e[1]))}}finally{It(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zs))return!1;{const t=Pt(this);try{const n=Pt(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Jt(r[0],o[0])||!Jt(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{It(n)}}finally{It(t)}}}toString(){return"map ["+Fr("; ",Ro((e=>function(e,...t){let n;return"object"==typeof e?(n=String(t[0]),t.shift()):n=e,n.replace(Or,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[n];if(vr(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=br(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Cr(u,i):Cr(u);break;case"e":case"E":u=null!=i?Er(u,i):Er(u);break;case"p":case"P":i=null!=i?i:2,u=br(yr(u,100),i)+" %";break;case"d":case"D":u=null!=i?jr(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?jr(Sr(u),i,"0"):Sr(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Nr(u,0)&&(u=yr(u,-1),e="-"),r=null==r?"":r.substring(1),u=br(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=jr(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Rr(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?pr(u,s||o):sn(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Rr(String(u),Math.abs(r)," ",r<0)),u}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return qs(this.tree)}[Symbol.iterator](){return Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return qs(this.tree)}CompareTo(e){const t=this;if(e instanceof zs)return 0|function(e,t,n){const r=To(t);try{const t=To(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{It(t)}}finally{It(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:Xt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Zs(this,e[0])&&Jt(Ys(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){!function(e,t,n){let r=n;js(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ks(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ks(this)}get size(){return 0|Ks(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ro((e=>[e[0],e[1]]),this)}get(e){return Ys(this,e)}has(e){return Zs(this,e)}keys(){return Ro((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Ro((e=>e[1]),this)}forEach(e,t){const n=this;Fo((t=>{on(2,e,[t[1]])(t[0])(n)}),n)}}function Js(e,t){return new zs(e,t)}function Ys(e,t){return function(e,t,n){const r=Fs(e,t,n);if(null==r)throw new Error;return Tt(r)}(e.comparer,t,e.tree)}function Ks(e){return Ms(e.tree)}function Zs(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Ss(i));if(i instanceof Ts){if(s<0){e=r,t=o,n=Os(i);continue e}if(0===s)return!0;e=r,t=o,n=Ns(i);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Xs(e,t,n){return function(e,t,n){return Js(e.comparer,Ls(e.comparer,t,n,e.tree))}(n,e,t)}function Qs(e,t){return function(e,t){return Fs(e.comparer,t,e.tree)}(t,e)}function eu(e,t){return function(e,t){return Js(e.comparer,Us(t,e.tree))}(t,e)}function tu(e){return function(e){return Js(e,void 0)}(e)}class nu{constructor(e){this.k=e}}function ru(e){return new nu(e)}function ou(e){return e.k}class iu extends nu{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function su(e,t,n,r){return new iu(e,t,n,r)}function uu(e){return e.left}function lu(e){return e.right}function au(e){return e.h}function cu(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof iu){e=uu(r),t=cu(lu(r),n+1);continue e}return n+1|0}return 0|n}}function fu(e){return cu(e,0)}function du(e,t,n){let r,o;r=null!=e?e instanceof iu?au(e):1:0,o=null!=n?n instanceof iu?au(n):1:0;const i=0|(r<o?o:r);return 0===i?ru(t):su(t,e,n,i+1)}function hu(e,t,n){let r,o,i,s,u,l;if(u=null!=e?e instanceof iu?au(e):1:0,l=null!=n?n instanceof iu?au(n):1:0,l>u+2){const i=Tt(n);if(i instanceof iu){if(r=uu(i),(null!=r?(o=r,o instanceof iu?au(o):1):0)>u+1){const n=Tt(uu(i));if(n instanceof iu)return du(du(e,t,uu(n)),ou(n),du(lu(n),ou(i),lu(i)));throw new Error("internal error: Set.rebalance")}return du(du(e,t,uu(i)),ou(i),lu(i))}throw new Error("internal error: Set.rebalance")}if(u>l+2){const r=Tt(e);if(r instanceof iu){if(i=lu(r),(null!=i?(s=i,s instanceof iu?au(s):1):0)>l+1){const e=Tt(lu(r));if(e instanceof iu)return du(du(uu(r),ou(r),uu(e)),ou(e),du(lu(e),t,n));throw new Error("internal error: Set.rebalance")}return du(uu(r),ou(r),du(lu(r),t,n))}throw new Error("internal error: Set.rebalance")}return du(e,t,n)}function pu(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,ou(r));if(r instanceof iu)return o<0?hu(pu(e,t,uu(r)),ou(r),lu(r)):0===o?n:hu(uu(r),ou(r),pu(e,t,lu(r)));{const o=0|e.Compare(t,ou(r));return o<0?su(t,void 0,n,2):0===o?n:su(t,n,void 0,2)}}return ru(t)}function mu(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,ou(i));if(i instanceof iu){if(s<0){e=r,t=o,n=uu(i);continue e}if(0===s)return!0;e=r,t=o,n=lu(i);continue e}return 0===s}return!1}}function gu(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof iu){gu(n,uu(r)),n(ou(r)),e=n,t=lu(r);continue e}n(ou(r))}break}}class _u extends ln{constructor(e,t){super(),this.stack=e,this.started=t}}function wu(e){e:for(;;){const t=e;if(to(t))return Xr();{const n=no(t),r=ro(t);if(null!=n){const o=n;if(o instanceof iu){e=lo([uu(o),ru(ou(o)),lu(o)],r);continue e}return t}e=r;continue e}}}function vu(e){return new _u(wu(eo(e)),!1)}function yu(e){if(e.started){const t=e.stack;if(to(t))return function(){throw new Error("Enumeration already started")}();if(null!=no(t))return ou(no(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function bu(e){let t=vu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>yu(t),"System.Collections.IEnumerator.get_Current":()=>yu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(to(t))return!1;if(null!=no(t)){if(no(t)instanceof iu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wu(ro(t)),!to(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!to(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=vu(e)},Dispose(){}}}function Cu(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(to(o))return to(i)?0:-1;if(to(i))return 1;if(null!=no(i))if(null!=no(o)){const s=no(o),u=no(i);if(s instanceof iu)if(null==uu(s)){if(!(u instanceof iu)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=Qr(lu(s),ro(o)),n=Qr(void 0,ro(i));continue e}if(null==uu(u)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=Qr(lu(s),ro(o)),n=Qr(lu(u),ro(i));continue e}{let s,u,l,a,c;switch(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let s,u,l,a,c;switch(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof iu)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=ro(o),n=ro(i);continue e}if(null==uu(u)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=Qr(void 0,ro(o)),n=Qr(lu(u),ro(i));continue e}{let s,u,l,a,c;switch(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let s,u,l,a,c;switch(no(i),to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==no(o)){e=r,t=ro(o),n=ro(i);continue e}{let s,u,l,a,c;switch(no(o),to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,eo(t),eo(n))}function Eu(e,t,n){let r=n;gu((e=>{t[r]=e,r=r+1|0}),e)}function Su(e,t){if(kt(t))return function(e,t){return Vr(((t,n)=>pu(e,n,t)),void 0,t)}(e,t);if(t instanceof Wr)return function(e,t){return io(((t,n)=>pu(e,n,t)),void 0,t)}(e,t);{const n=Pt(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=pu(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{It(n)}}}class xu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=Pt(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+Vt(n["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{It(n)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof xu&&0===Cu(Tu(this),ku(this),ku(e))}toString(){return"set ["+Fr("; ",Ro((e=>sn(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Cu(Tu(this),ku(this),ku(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return mu(Tu(this),e,ku(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){Eu(ku(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ou(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ou(this)}GetEnumerator(){return bu(ku(this))}[Symbol.iterator](){return Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return bu(ku(this))}get size(){return 0|Ou(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return n=e,mu(Tu(t=this),n,ku(t));var t,n}keys(){return Ro((e=>e),this)}values(){return Ro((e=>e),this)}entries(){return Ro((e=>[e,e]),this)}forEach(e,t){const n=this;Fo((t=>{on(2,e,[t])(t)(n)}),n)}}function Tu(e){return e.comparer}function ku(e){return e.tree}function Ou(e){return fu(ku(e))}function Nu(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function Iu(e,t){const n=2===t.tag?Nu(t.fields[0],t.fields[1],!0):1===t.tag?Nu(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Nu(t.fields[0],t.fields[1],!0):4===t.tag?Nu(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Fr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Nu(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Au(e,t,n){let r;if(r=on(1,t,[e])(n),1===r.tag){const e=r.fields[0];return new pi(1,[Iu(e[0],e[1])])}return new pi(0,[r.fields[0]])}function Mu(e,t){try{return Au("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new pi(1,["Given an invalid JSON: "+e.message]);throw e}}function Pu(e,t){return"string"==typeof t?new pi(0,[t]):new pi(1,[[e,new _i(0,["a string",t])]])}const Du=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new pi(0,[(e+128&255)-128]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,8,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Lu=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new pi(0,[255&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,8,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Fu=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new pi(0,[(e+32768&65535)-32768]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,16,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Ru=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new pi(0,[65535&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,16,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},ju=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new pi(0,[~~e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,32,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Hu=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new pi(0,[e>>>0]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,32,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])};function Uu(e,t,n,r){let o;const i=n+".["+Ht(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new pi(1,[[i,new _i(5,["a longer array. Need index `"+Ht(e)+"` but there are only `"+(o=n.length,Ht(o)+"` entries"),r])]])}return new pi(1,[[i,new _i(0,["an array",r])]])}function Bu(e,t,n){if(Array.isArray(n)){let r=-1;return mi(so,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ht(r)+"]",o);return 0===i.tag?new pi(0,[Qr(i.fields[0],n.fields[0])]):new pi(1,[i.fields[0]])}return n}),new pi(0,[Xr()]),n))}return new pi(1,[[t,new _i(0,["a list",n])]])}function Gu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+Ht(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new pi(0,[i])):new pi(1,[s.fields[0]])}return n}),new pi(0,[Gr(new Array(o.length),0,o.length,null)]),o)}return new pi(1,[[t,new _i(0,["an array",n])]])}function $u(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new pi(1,[o.fields[0]])}function Vu(e,t){let n;const r=e;return n=e=>t=>Uu(0,r,e,t),e=>r=>$u(nn(3,(e=>{let n;const r=t;return n=e=>t=>Uu(1,r,e,t),t=>r=>$u(((t,n,r)=>new pi(0,[[e,t]])),nn(2,n),t,r)})),nn(2,n),e,r)}function Wu(e){return Js(t={Compare:Xt},Bs(t,e));var t}function qu(e){return function(e,t){return new xu(e,t)}(t={Compare:Xt},Su(t,e));var t}function zu(e,t,n,r){let o,i,s;const u=t.length+e|0;if(u!==r.length)return new pi(1,[[n,new _i(6,[(o=0|r.length,i=Mr(Ir("Expected array of length %i but got %i")),s=i(u),s(o))])]]);{let o=new pi(0,[Xr()]);for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0];let u;u=Mr(Ir("%s[%i]"))(n)(i);const l=t[i-e],a=r[i];o=mi((e=>Qr(e,s)),l(u)(a))}return mi(so,o)}}function Ju(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Zo(e)===r))}(0,ui(n));if(null!=s){const n=s,r=$r((n=>Ku(e,t,!1,n[1])),hi(n),null);return mi((e=>function(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,t):{}}(n,oo(e))),0===r.length&&i.length<=1?new pi(0,[Xr()]):zu(1,r,o,i))}return new pi(1,[[o,new _i(6,["Cannot find case "+r+" in "+Xo(n)])]])}function Yu(e,t,n,r){let o,i;const s=new an(null);let u;const l=Xo(r);let a;if(u=""===l?e:Xs(l,s,e),fi(r)){const e=$r((e=>[Ci(t,Zo(e)),Ku(u,t,!1,e[1])]),li(r),null);a=t=>n=>mi((e=>function(e,t){const n=li(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,oo(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new pi(1,[[t,new _i(0,["an object",n])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?mi((e=>Qr(e,r.fields[0])),e[1](t+"."+o)(n[o])):r})(r,e)),o)}(0,e,new pi(0,[Xr()]))}(e,t,n))}else if(ci(r))a=e=>n=>{if("string"==typeof n)return Ju(u,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>Ju(u,t,r,n,e,s),0===(i=Pu(e+"[0]",s[0])).tag?o(i.fields[0]):new pi(1,[i.fields[0]])}return new pi(1,[[e,new _i(0,["a string or array",n])]]);var o,i};else{if(!n)throw new Error((o=Xo(r),i=Mr(Ir("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders")),i(o)));a=e=>t=>new pi(1,[[e,new _i(2,["an extra coder for "+Xo(r),t])]])}return s.contents=a,a}function Ku(e,t,n,r){let o,i,s,u;const l=Xo(r),a=Qs(l,e);if(null==a){if(Qo(r)){const n=Ku(e,t,!1,ei(r));return e=>t=>Gu(nn(2,n),e,t)}if(ni(r)){const e=Xo(oi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Du(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Lu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Fu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,jt(e))]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Ru(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=ju(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,Ht(e))]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Hu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};{const e=Xo(r),t=Pr(Ir("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(ti(r)){if(di(r)){const n=$r((n=>Ku(e,t,!1,n)),ai(r),null);return e=>t=>Array.isArray(t)?mi((e=>oo(e)),zu(0,n,e,t)):new pi(1,[[e,new _i(0,["an array",t])]])}{const l=Xo(ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===l)return o=Ku(e,t,!0,Go(r)[0]),e=>t=>{return n=nn(2,o),r=e,null==(i=t)?new pi(0,[void 0]):mi(po,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===l)return i=Ku(e,t,!1,Go(r)[0]),e=>t=>Bu(nn(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===l)return s=Ku(e,t,!1,Go(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return mi(jo,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ht(r)+"]",o);return 0===i.tag?new pi(0,[Po([i.fields[0]],n.fields[0])]):new pi(1,[i.fields[0]])}return n}),new pi(0,[[]]),n))}return new pi(1,[[t,new _i(0,["a seq",n])]])}(nn(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===l){const n=Ku(e,t,!1,Go(r)[0]),o=Ku(e,t,!1,Go(r)[1]);let i;const s=ao([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new pi(1,[[n,new _i(0,["an object",r])]]):Lo(((o,i)=>{if(0===o.tag){let s;if(s=on(1,e,[n])(i),0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new pi(0,[Qr([s.fields[0],e.fields[0]],o.fields[0])]):new pi(1,[e.fields[0]])}return new pi(1,[s.fields[0]])}return o}),new pi(0,[Xr()]),Object.keys(r))}(nn(2,n),nn(2,o),e,t),(u=Vu(nn(2,n),nn(2,o)),e=>t=>Bu(nn(2,u),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(to(o))return new pi(1,[[n,new _i(7,[i])]]);{const s=Au(n,nn(2,no(o)),r);if(1===s.tag){e=ro(o),t=co(i,eo(s.fields[0]));continue e}return new pi(0,[s.fields[0]])}}})(s,Xr());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new pi(1,[o.fields[0]]):new pi(0,[e(o.fields[0])])}(Wu,nn(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===l){const n=Ku(e,t,!1,Go(r)[0]);return e=>t=>{const r=Gu(nn(2,n),e,t);return 0===r.tag?new pi(0,[qu(r.fields[0])]):new pi(1,[r.fields[0]])}}return Yu(e,t,n,r)}}return"System.Boolean"===l?e=>t=>{return n=e,"boolean"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a boolean",r])]]);var n,r}:"Microsoft.FSharp.Core.Unit"===l?e=>t=>{return n=e,null==(r=t)?new pi(0,[void 0]):new pi(1,[[n,new _i(0,["null",r])]]);var n,r}:"System.String"===l?e=>t=>Pu(e,t):"System.Char"===l?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new pi(0,[n[0]]):new pi(1,[[e,new _i(0,["a single character string",t])]])}return new pi(1,[[e,new _i(0,["a char",t])]])}(e,t):"System.SByte"===l?Du:"System.Byte"===l?Lu:"System.Int16"===l?Fu:"System.UInt16"===l?Ru:"System.Int32"===l?ju:"System.UInt32"===l?Hu:"System.Double"===l?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a float",r])]]);var n,r}:"System.Single"===l?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a float32",r])]]);var n,r}:"System.DateTime"===l?e=>t=>function(e,t){if("string"==typeof t){let r,o=mr(-621355968e5,0);return r=[_r(t,new an((()=>o),(e=>{o=e}))),o],r[0]?new pi(0,[(n=r[1],1===n.kind?n:mr(n.getTime(),1))]):new pi(1,[[e,new _i(0,["a datetime",t])]])}var n;return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.DateTimeOffset"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ii(-621355968e5,0);return n=[Ai(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a datetimeoffset",t])]])}return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.TimeSpan"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[bs(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a timespan",t])]])}return new pi(1,[[e,new _i(0,["a timespan",t])]])}(e,t):"System.Guid"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Ti(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a guid",t])]])}return new pi(1,[[e,new _i(0,["a guid",t])]])}(e,t):"System.Object"===l?e=>e=>new pi(0,[e]):Yu(e,t,n,r)}{const e=a;return t=>n=>e.contents(t)(n)}}function Zu(e,t,n){const r=mo(t,new wi(0,[]));return Ku(function(e){return null!=e?eu(((e,t)=>new an(t[1])),e.Coders):tu({Compare:Kt})}(n),r,!1,e)}class Xu extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xu.prototype)}}class Qu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Qu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function el(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xu);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(fn(e))}}));else try{e(t)}catch(e){t.onError(fn(e))}}}const tl=new class{Bind(e,t){return function(e,t){return el((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(fn(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return el((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return el((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return el((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return el((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(fn(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return el((e=>e.onSuccess(void 0)))}};function nl(e){}const rl=new class{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}};function ol(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Qu;e({onSuccess:t||nl,onError:n||nl,onCancel:r||nl,cancelToken:o||rl,trampoline:i})}(e,t)}(e,t)}class il extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class sl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Header"]}}class ul extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ll extends ln{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class al extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class cl extends ln{constructor(e,t,n,r,o,i){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseUrl=r,this.responseHeaders=o,this.content=i}}const fl=new ll("",new il(0,[]),Xr(),!1,void 0,void 0,void 0,new ul(0,[]));function dl(e,t){return"string"!=typeof(n=t)||0===n.length?new Array(0):Hr(t,[e],void 0,0);var n}function hl(e){return new ll(e,fl.method,fl.headers,fl.withCredentials,fl.overridenMimeType,fl.overridenResponseType,fl.timeout,fl.content)}function pl(e,t){return new ll(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ml(e){return function(e){return el((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,u,l;var a,c;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new al(0,[n.responseText]):new al("arraybuffer"===u?2:"blob"===u?1:3,[n.response]),a=function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=Tt(o);r.push(e)}}return Jt(null,null)?r:$r((e=>e),r,null)}((e=>{const t=ao(dl(":",e));return to(t)?void 0:[no(t).toLocaleLowerCase(),Fr(":",ro(t)).trim()]}),dl("\r\n",n.getAllResponseHeaders())),l=Js(c={Compare:Kt},Bs(c,a)),new cl(o,e,i,n.responseURL,l,s)))};const r=Pt(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{It(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const u=e.content;switch(u.tag){case 1:case 3:case 2:n.send(po(u.fields[0]));break;default:n.send()}}))}function gl(e){return e}new cl(0,"","","",tu({Compare:Kt}),new al(0,[""]));const _l=null;function wl(e){return Array.from(e)}function vl(e){return pr(e,"O")}function yl(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return vs(e/864e5)}(e)),o=Math.abs(function(e){return vs(e%864e5/36e5)}(e)),i=Math.abs(function(e){return vs(e%36e5/6e4)}(e)),s=Math.abs(function(e){return vs(e%6e4/1e3)}(e)),u=Math.abs(function(e){return vs(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ft(o,2)}:${Ft(i,2)}:${Ft(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+Ft(u,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(u):""}`}(e)}function bl(){return null}function Cl(e){return pr(e,"O")}function El(e){return t=>{return function(e,t){return null!=e?Tt(e):_l}(null!=(n=t)?po(e(Tt(n))):void 0);var n}}function Sl(e,t,n,r){let o,i;const s=new an(null);let u;const l=Xo(r);let a;if(u=""===l?e:Xs(l,s,e),fi(r)){const e=$r((e=>{const r=Ci(t,Zo(e)),o=xl(u,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),li(r),null);a=t=>Lo(((e,n)=>n(t)(e)),{},e)}else{if(!ci(r))throw new Error((o=Xo(r),i=Mr(Ir("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders")),i(o)));a=e=>{const o=function(e,t){const n=ui(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Zo(i);{const e=0|l,r=hi(i),o=Gr(new Array(e+1),0,e+1,null);o[0]=Zo(i);for(let i=1;i<=e;i++){const e=xl(u,t,n,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return s.contents=a,a}function xl(e,t,n,r){const o=Xo(r),i=Qs(o,e);if(null==i){if(Qo(r)){const o=xl(e,t,n,ei(r));return e=>wl(Ro(o,e))}if(ni(r)){const e=Xo(oi(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Xo(r);return Pr(Ir("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(ti(r)){if(di(r)){const o=$r((r=>xl(e,t,n,r)),ai(r),null);return e=>{return wl((t=(e,t)=>o[e](t),n=e,Mo((()=>To(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?po(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{It(e)}))));var t,n}}{const o=Xo(ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Lt((()=>El(xl(e,t,n,Go(r)[0]))));return e=>null==e?_l:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=xl(e,t,n,Go(r)[0]);return e=>wl(Ro(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Go(r)[0],i=xl(e,t,n,Go(r)[1]);if("System.String"===Xo(o)||"System.Guid"===Xo(o))return e=>Lo(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=xl(e,t,n,o);return r=s,e=>wl(Ro((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Sl(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?bl:"System.String"===o?e=>e:"System.Char"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Cl:"System.DateTimeOffset"===o?vl:"System.TimeSpan"===o?yl:"System.Guid"===o?gl:"System.Object"===o?e=>e:Sl(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Tl(e,t,n,r){const o=mo(t,new wi(0,[])),i=mo(r,!0);return xl(function(e){return null!=e?eu(((e,t)=>new an(t[0])),e.Coders):tu({Compare:Kt})}(n),o,i,e)}class kl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Inherited","Default","Specific"]}}class Ol extends ln{constructor(e,t,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=t,this.AllowPercentageSplit=n}}class Nl extends ln{constructor(e){super(),this.Message=e}}function Il(e){return`${e}/bank-details/admin`}function Al(e,t){return tl.Delay((()=>{let n,r;const o=(n=Mr(Ir("Bearer %s")),i=n(e),new sl(0,["Authorization",i]));var i;let s;r=function(e,t){return new ll(t.url,t.method,co(t.headers,eo(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}(o,t);const u=ml(r);return s=tl.Bind(u,(e=>tl.Return(new pi(0,[e])))),tl.Bind(s,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ml(r);return tl.Bind(e,(e=>tl.Return(new pi(0,[e]))))}return tl.Return(new pi(0,[e]))}}))}))}function Ml(e,t){let n;const r=Mu(nn(2,Zu(Wo("BankDetails.AdminUI.Service.ErrorMessage",[],Nl,(()=>[["Message",Jo]])),new wi(1,[]),void 0)),t);return 0===r.tag?new pi(1,[r.fields[0].Message]):new pi(1,[(n=Mr(Ir("Error code: %d")),n(e))])}class Pl{constructor(e,t,n,r){this.baseUrl=e,this.accessToken=t,this.partnerId=n,this.accountId=r}}function Dl(e,t){return n=e.baseUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,s=t.MaxAccounts,u=t.AllowPercentageSplit,tl.Delay((()=>{let e,t;const l=Il(n);t=null==i?`${l}/partners/${o}/config`:`${l}/partners/${o}/accounts/${i}/config`;const a=new ul(1,[(e={AllowPercentageSplit:u,MaxAccounts:s},h=0,p=Tl(qo(["AllowPercentageSplit",Yo],["MaxAccounts",Ko]),new wi(1,[]),void 0,void 0)(e),JSON.stringify(p,nn(2,void 0),po(h)))]),c=Al(r,pl(new il(2,[]),(f=a,d=hl(t),new ll(d.url,d.method,d.headers,d.withCredentials,d.overridenMimeType,d.overridenResponseType,d.timeout,f))));var f,d,h,p;return tl.Bind(c,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var n,r,o,i,s,u}class Ll extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}const Fl=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}},Rl=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Fl}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,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}};class jl{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Hl(e,t){uo((t=>{t(e)}),t)}function Ul(){return Xr()}function Bl(e){return function(e){const t=zr();let n=t;const r=e=>{n=io(((e,t)=>{const n=new Wr(t,void 0);return e.tail=n,n}),n,e)};if(kt(e))e.forEach(r);else if(e instanceof Wr)uo(r,e);else{const t=Pt(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{It(t)}}const o=n,i=zr();return o.tail=i,Zr(t)}(e)}function Gl(e){return eo((t=>{t(e)}))}function $l(e,t,n,r){return eo((o=>{e(tl.Delay((()=>{return tl.Bind((e=t(n),el((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new gi(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new gi(1,[e])}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return 0===t.tag?(o(r(t.fields[0])),tl.Zero()):tl.Zero()}));var e})))}))}function Vl(e){!function(e,t){let n,r=new Rl(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new jl(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}(0,(t=>{ol(e)}))}class Wl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["AccessRole"]}}function ql(e){return new Wl(0,[e])}class zl extends ln{constructor(e,t){super(),this.UserName=e,this.Roles=t}}function Jl(e){return null!=(t=e.Roles,fo(new Wl(0,["BankDetails.EditConfig"]),t,{Equals:Jt,GetHashCode:Wt})?po(void 0):void 0);var t}class Yl extends ln{constructor(e,t,n,r,o,i){super(),this.Config=e,this.Error=t,this.IsLoading=n,this.Mode=r,this.ShowConfirmationDialog=o,this.ShowEditButton=i}}class Kl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["View","Edit"]}}function Zl(e){return 0!==e.Mode.tag}class Xl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Ql(){return new Xl(2,[new Ll(0,[void 0])])}function ea(e,t,n,r){let o,i;return 5===n.tag?[new Yl(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,0===n.fields[0].tag&&Jl(e)),Ul()]:6===n.tag?[r,Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:0===n.tag?[new Yl((o=r.Config,new Ol(n.fields[0],o.ConfigOwnership,o.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:1===n.tag?[new Yl((i=r.Config,new Ol(i.MaxAccounts,i.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:2===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),$l((e=>{Vl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Al(n,pl(new il(0,[]),hl((e=Il(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){const t=Mu(nn(2,Zu(Wo("BankDetails.AdminUI.Service.Model",[],Ol,(()=>[["MaxAccounts",Ko],["ConfigOwnership",function(e,t,n,r){const o=new Bo("BankDetails.AdminUI.Service.ConfigOwnership",[],n,void 0,void 0,(()=>{const e=n.prototype.cases();return[[],[],[]].map(((t,n)=>new Uo(o,n,e[n],t)))}));return o}(0,0,kl)],["AllowPercentageSplit",Yo]])),new wi(1,[]),void 0)),e.responseText);return tl.Return(t)}{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Xl(2,[new Ll(1,[e])])))]:3===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:[r,$l((e=>{Vl(e)}),(e=>Dl(t,e)),r.Config,(e=>new Xl(3,[new Ll(1,[e])])))]:4===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:[r,$l((e=>{Vl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Al(n,pl(new il(4,[]),hl((e=Il(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Xl(4,[new Ll(1,[e])])))]:8===n.tag?[r,Bl(ao([Gl(new Xl(7,[!1])),Gl(new Xl(4,[new Ll(0,[void 0])]))]))]:[new Yl(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),Ul()]}var ta;function na(){return na=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},na.apply(this,arguments)}var ra;function oa(){return oa=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},oa.apply(this,arguments)}var ia;function sa(){return sa=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},sa.apply(this,arguments)}function ua(e,t){return ho.createElement(e,pn(t,1))}const la=ua((function(e){return g("svg",na({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600"},e),ta||(ta=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})))}),eo(new class extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["ClassName"]}}(0,["h-6 w-6 text-red-500"])));const aa=ua((function(e){return g("svg",oa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},e),ra||(ra=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})))}),Xr()),ca=ua((function(e){return g("svg",sa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},e),ia||(ia=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})))}),Xr());let fa=$(null);fa.displayName="OpenClosedContext";var da=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(da||{});function ha(){return fe(fa)}function pa({value:e,children:t}){return St.createElement(fa.Provider,{value:e},t)}function ma(){let e=ue(!1);return Nn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ga(e,...t){e&&t.length>0&&e.classList.add(...t)}function _a(e,...t){e&&t.length>0&&e.classList.remove(...t)}function wa(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let va=$(null);va.displayName="TransitionContext";var ya=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ya||{});let ba=$(null);function Ca(e){return"children"in e?Ca(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ea(e,t){let n=Ln(e),r=ue([]),o=ma(),i=er(),s=Fn(((e,t=vn.Hidden)=>{let s=r.current.findIndex((({el:t})=>t===e));-1!==s&&(gn(t,{[vn.Unmount](){r.current.splice(s,1)},[vn.Hidden](){r.current[s].state="hidden"}}),i.microTask((()=>{var e;!Ca(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),u=Fn((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,vn.Unmount)})),l=ue([]),a=ue(Promise.resolve()),c=ue({enter:[],leave:[],idle:[]}),f=Fn(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(c.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?a.current=a.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),d=Fn(((e,t,n)=>{Promise.all(c.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return ae((()=>({children:r,register:u,unregister:s,onStart:f,onStop:d,wait:a,chains:c})),[u,s,r,f,d,c,a])}function Sa(){}ba.displayName="NestingContext";let xa=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ta(e){var t;let n={};for(let r of xa)n[r]=null!=(t=e[r])?t:Sa;return n}let ka=wn.RenderStrategy,Oa=En((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=ue(null),u=jn(s,t);In();let l=ha();if(void 0===n&&null!==l&&(n=(l&da.Open)===da.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,c]=re(n?"visible":"hidden"),f=Ea((()=>{c("hidden")})),[d,h]=re(!0),p=ue([n]);Nn((()=>{!1!==d&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))}),[p,n]);let m=ae((()=>({show:n,appear:r,initial:d})),[n,r,d]);ie((()=>{if(n)c("visible");else if(Ca(f)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&c("hidden")}else c("hidden")}),[n,f]);let g={unmount:o},_=Fn((()=>{var t;d&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),w=Fn((()=>{var t;d&&h(!1),null==(t=e.beforeLeave)||t.call(e)}));return St.createElement(ba.Provider,{value:f},St.createElement(va.Provider,{value:m},yn({ourProps:{...g,as:v,children:St.createElement(Na,{ref:u,...g,...i,beforeEnter:_,beforeLeave:w})},theirProps:{},defaultTag:v,features:ka,visible:"visible"===a,name:"Transition"})))})),Na=En((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:u,enter:l,enterFrom:a,enterTo:c,entered:f,leave:d,leaveFrom:h,leaveTo:p,...m}=e,g=ue(null),_=jn(g,t),w=null==(n=m.unmount)||n?vn.Unmount:vn.Hidden,{show:v,appear:y,initial:b}=function(){let e=fe(va);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,E]=re(v?"visible":"hidden"),S=function(){let e=fe(ba);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:x,unregister:T}=S;ie((()=>x(g)),[x,g]),ie((()=>{if(w===vn.Hidden&&g.current)return v&&"visible"!==C?void E("visible"):gn(C,{hidden:()=>T(g),visible:()=>x(g)})}),[C,g,x,T,v,w]);let k=Ln({base:wa(m.className),enter:wa(l),enterFrom:wa(a),enterTo:wa(c),entered:wa(f),leave:wa(d),leaveFrom:wa(h),leaveTo:wa(p)}),O=function(e){let t=ue(Ta(e));return ie((()=>{t.current=Ta(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:u}),N=In();ie((()=>{if(N&&"visible"===C&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,C,N]);let I=y&&v&&b,A=!N||b&&!y?"idle":v?"enter":"leave",M=function(e=0){let[t,n]=re(e),r=ma(),o=ce((e=>{r.current&&n((t=>t|e))}),[t,r]),i=ce((e=>Boolean(t&e)),[t]),s=ce((e=>{r.current&&n((t=>t&~e))}),[n,r]),u=ce((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:u}}(0),P=Fn((e=>gn(e,{enter:()=>{M.addFlag(da.Opening),O.current.beforeEnter()},leave:()=>{M.addFlag(da.Closing),O.current.beforeLeave()},idle:()=>{}}))),D=Fn((e=>gn(e,{enter:()=>{M.removeFlag(da.Opening),O.current.afterEnter()},leave:()=>{M.removeFlag(da.Closing),O.current.afterLeave()},idle:()=>{}}))),L=Ea((()=>{E("hidden"),T(g)}),S);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=ma(),u=er(),l=Ln(n);Nn((()=>{e&&(l.current="enter")}),[e]),Nn((()=>{let e=Qn();u.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&s.current)return e.dispose(),o.current(l.current),e.add(function(e,t,n,r){let o=n?"enter":"leave",i=Qn(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let u=gn(o,{enter:()=>t.enter,leave:()=>t.leave}),l=gn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=gn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return _a(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ga(e,...t.base,...u,...a),i.nextFrame((()=>{_a(e,...t.base,...u,...a),ga(e,...t.base,...u,...l),function(e,t){let n=Qn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),u=i+s;if(0!==u){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),u),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(_a(e,...t.base,...u),ga(e,...t.base,...t.entered),s())))})),i.dispose}(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:I,container:g,classes:k,direction:A,onStart:Ln((e=>{L.onStart(g,e,P)})),onStop:Ln((e=>{L.onStop(g,e,D),"leave"===e&&!Ca(L)&&(E("hidden"),T(g))}))});let F=m,R={ref:_};return I?F={...F,className:mn(m.className,...k.current.enter,...k.current.enterFrom)}:(F.className=mn(m.className,null==(r=g.current)?void 0:r.className),""===F.className&&delete F.className),St.createElement(ba.Provider,{value:L},St.createElement(pa,{value:gn(C,{visible:da.Open,hidden:da.Closed})|M.flags},yn({ourProps:R,theirProps:F,defaultTag:"div",features:ka,visible:"visible"===C,name:"Transition.Child"})))})),Ia=En((function(e,t){let n=null!==fe(va),r=null!==ha();return St.createElement(St.Fragment,null,!n&&r?St.createElement(Oa,{ref:t,...e}):St.createElement(Na,{ref:t,...e}))})),Aa=Object.assign(Oa,{Child:Ia,Root:Oa});class Ma extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","As","Show","Children"]}}class Pa extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Da(e){const t=pn(e,1);return g(Aa.Child,t)}function La(e){return On.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Fa=["[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 Ra,ja=(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))(ja||{}),Ha=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ha||{}),Ua=((Ra=Ua||{})[Ra.Previous=-1]="Previous",Ra[Ra.Next=1]="Next",Ra);var Ba=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ba||{});var Ga=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ga||{});function $a(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Va=["textarea","input"].join(",");function Wa(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?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Fa)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let u,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},f=0,d=s.length;do{if(f>=d||f+d<=0)return 0;let e=a+f;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}u=s[e],null==u||u.focus(c),f+=l}while(u!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Va))&&n}(u)&&u.select(),2}function qa(e,t,n){let r=Ln(t);ie((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var za=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(za||{});function Ja(...e){return ae((()=>La(...e)),[...e])}function Ya(e,t,n,r){let o=Ln(n);ie((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Ka(e,t){let n=ue([]),r=Fn(e);ie((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}function Za(e){let t=Fn(e),n=ue(!1);ie((()=>(n.current=!1,()=>{n.current=!0,Xn((()=>{n.current&&t()}))})),[t])}function Xa(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var Qa=(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))(Qa||{});let ec=En((function(e,t){let n=ue(null),r=jn(n,t),{initialFocus:o,containers:i,features:s=30,...u}=e;In()||(s=1);let l=Ja(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=ue(nc.slice());return Ka((([e],[n])=>{!0===n&&!1===e&&Xn((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=nc.slice())}),[e,nc,t]),Fn((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Ka((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&$a(n())}),[t]),Za((()=>{t&&$a(n())}))}({ownerDocument:l},Boolean(16&s));let a=function({ownerDocument:e,container:t,initialFocus:n},r){let o=ue(null),i=ma();return Ka((()=>{if(!r)return;let s=t.current;s&&Xn((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(s.contains(t))return void(o.current=t);null!=n&&n.current?$a(n.current):Wa(s,ja.First)===Ha.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:l,container:n,initialFocus:o},Boolean(2&s));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=ma();Ya(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=Xa(n);t.current instanceof HTMLElement&&s.add(t.current);let u=r.current;if(!u)return;let l=e.target;l&&l instanceof HTMLElement?rc(s,l)?(r.current=l,$a(l)):(e.preventDefault(),e.stopPropagation(),$a(u)):$a(r.current)}),!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:a},Boolean(8&s));let c=function(){let e=ue(0);return qa("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Fn((e=>{let t=n.current;t&&gn(c.current,{[za.Forwards]:()=>{Wa(t,ja.First,{skipElements:[e.relatedTarget]})},[za.Backwards]:()=>{Wa(t,ja.Last,{skipElements:[e.relatedTarget]})}})})),d=er(),h=ue(!1),p={ref:r,onKeyDown(e){"Tab"==e.key&&(h.current=!0,d.requestAnimationFrame((()=>{h.current=!1})))},onBlur(e){let t=Xa(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(rc(t,r)||(h.current?Wa(n.current,gn(c.current,{[za.Forwards]:()=>ja.Next,[za.Backwards]:()=>ja.Previous})|ja.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&$a(e.target)))}};return St.createElement(St.Fragment,null,Boolean(4&s)&&St.createElement(Zn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Kn.Focusable}),yn({ourProps:p,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&St.createElement(Zn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Kn.Focusable}))})),tc=Object.assign(ec,{features:Qa}),nc=[];function rc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&nc[0]!==e.target&&(nc.unshift(e.target),nc=nc.filter((e=>null!=e&&e.isConnected)),nc.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})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();let oc=$(!1);function ic(e){return St.createElement(oc.Provider,{value:e.force},e.children)}let sc=v,uc=v,lc=$(null),ac=$(null),cc=En((function(e,t){let n=e,r=ue(null),o=jn(function(e,t=!0){return Object.assign(e,{[Rn]:t})}((e=>{r.current=e})),t),i=Ja(r),s=function(e){let t=fe(oc),n=fe(lc),r=Ja(e),[o,i]=re((()=>{if(!t&&null!==n||On.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return ie((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),ie((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[u]=re((()=>{var e;return On.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),l=fe(ac),a=In();return Nn((()=>{!s||!u||s.contains(u)||(u.setAttribute("data-headlessui-portal",""),s.appendChild(u))}),[s,u]),Nn((()=>{if(u&&l)return l.register(u)}),[l,u]),Za((()=>{var e;!s||!u||(u instanceof Node&&s.contains(u)&&s.removeChild(u),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),a&&s&&u?$e(yn({ourProps:{ref:o},theirProps:n,defaultTag:sc,name:"Portal"}),u):null})),fc=En((function(e,t){let{target:n,...r}=e,o={ref:jn(t)};return St.createElement(lc.Provider,{value:n},yn({ourProps:o,theirProps:r,defaultTag:uc,name:"Popover.Group"}))})),dc=Object.assign(cc,{Group:fc}),hc=$((()=>{}));hc.displayName="StackContext";var pc=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(pc||{});function mc({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=fe(hc),s=Fn(((...e)=>{null==t||t(...e),i(...e)}));return Nn((()=>{let e=void 0===o||!0===o;return e&&s(0,n,r),()=>{e&&s(1,n,r)}}),[s,n,r,o]),St.createElement(hc.Provider,{value:s},e)}function gc(e,t,n){let r=Ln(t);ie((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}"function"==typeof Object.is&&Object.is;const{useState:_c,useEffect:wc,useLayoutEffect:vc,useDebugValue:yc}=t;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const bc=(e=>e.useSyncExternalStore)(t);function Cc(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=(null!=(n=t.defaultView)?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 Ec(){if(!(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0))return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=Qn();e.style(t.documentElement,"scroll-behavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let r=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=t.querySelector(i);s&&!o(s)&&(r=s)}catch{}}),!0),n.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!o(e.target)&&e.preventDefault()}),{passive:!1}),n.add((()=>{window.scrollTo(0,window.pageYOffset+e),r&&r.isConnected&&(r.scrollIntoView({block:"nearest"}),r=null)}))}))}}}function Sc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let xc=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Qn(),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:Sc(n)},o=[Ec(),Cc(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});xc.subscribe((()=>{let e=xc.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&xc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&xc.dispatch("TEARDOWN",n)}}));let Tc=new Map,kc=new Map;function Oc(e,t=!0){Nn((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=kc.get(r))?n:0;return kc.set(r,o+1),0!==o||(Tc.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=kc.get(r))?e:1;if(1===t?kc.delete(r):kc.set(r,t-1),1!==t)return;let n=Tc.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,Tc.delete(r))}}),[e,t])}var Nc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nc||{}),Ic=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ic||{});let Ac={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Mc=$(null);function Pc(e){let t=fe(Mc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pc),t}return t}function Dc(e,t){return gn(t.type,Ac,e,t)}Mc.displayName="DialogContext";let Lc=wn.RenderStrategy|wn.Static,Fc=En((function(e,t){var n;let r=Mn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:u,__demoMode:l=!1,...a}=e,[c,f]=re(0),d=ha();void 0===i&&null!==d&&(i=(d&da.Open)===da.Open);let h=ue(null),p=jn(h,t),m=Ja(h),g=e.hasOwnProperty("open")||null!==d,_=e.hasOwnProperty("onClose");if(!g&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)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("boolean"!=typeof i)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let w=i?0:1,[v,y]=oe(Dc,{titleId:null,descriptionId:null,panelRef:{current:null}}),b=Fn((()=>s(!1))),C=Fn((e=>y({type:0,id:e}))),E=!!In()&&!l&&0===w,S=c>1,x=null!==fe(Mc),[T,k]=function(){let e=fe(ac),t=ue([]),n=Fn((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=Fn((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),o=ae((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,ae((()=>function({children:e}){return St.createElement(ac.Provider,{value:o},e)}),[o])]}(),{resolveContainers:O,mainTreeNodeRef:N,MainTreeNode:I}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=ue(null!=(r=null==n?void 0:n.current)?r:null),i=Ja(o),s=Fn((()=>{var n;let r=[];for(let t of e)null!==t&&(t instanceof HTMLElement?r.push(t):"current"in t&&t.current instanceof HTMLElement&&r.push(t.current));if(null!=t&&t.current)for(let e of t.current)r.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||r.some((t=>e.contains(t)))||r.push(e));return r}));return{resolveContainers:s,contains:Fn((e=>s().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:ae((()=>function(){return null!=n?null:St.createElement(Zn,{features:Kn.Hidden,ref:o})}),[o,n])}}({portals:T,defaultContainers:[null!=(n=v.panelRef.current)?n:h.current]}),A=S?"parent":"leaf",M=null!==d&&(d&da.Closing)===da.Closing,P=!x&&!M&&E,D=ce((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==m?void 0:m.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(N.current)&&e instanceof HTMLElement)))?t:null}),[N]);Oc(D,P);let L=!!S||E,F=ce((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==m?void 0:m.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(N.current)&&e instanceof HTMLElement)))?t:null}),[N]);Oc(F,L),function(e,t,n=!0){let r=ue(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=La(e))?void 0:n.body)&&gn(t,{0:()=>e.matches(Fa),1(){let t=e;for(;null!==t;){if(t.matches(Fa))return!0;t=t.parentElement}return!1}})}(i,Ba.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}ie((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ue(null);gc("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),gc("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),gc("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),gc("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),qa("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(O,b,!(!E||S));let R=!(S||0!==w);Ya(null==m?void 0:m.defaultView,"keydown",(e=>{R&&(e.defaultPrevented||e.key===Pn.Escape&&(e.preventDefault(),e.stopPropagation(),b()))})),function(e,t,n=(()=>[document.body])){!function(e,t,n){let r=function(e){return bc(e.subscribe,e.getSnapshot,e.getSnapshot)}(xc),o=e?r.get(e):void 0,i=!!o&&o.count>0;Nn((()=>{if(e&&t)return xc.dispatch("PUSH",e,n),()=>xc.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(m,!(M||0!==w||x),O),ie((()=>{if(0!==w||!h.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&b()}}));return e.observe(h.current),()=>e.disconnect()}),[w,h,b]);let[j,H]=Wn(),U=ae((()=>[{dialogState:w,close:b,setTitleId:C},v]),[w,v,b,C]),B=ae((()=>({open:0===w})),[w]),G={ref:p,id:o,role:"dialog","aria-modal":0===w||void 0,"aria-labelledby":v.titleId,"aria-describedby":j};return St.createElement(mc,{type:"Dialog",enabled:0===w,element:h,onUpdate:Fn(((e,t)=>{"Dialog"===t&&gn(e,{[pc.Add]:()=>f((e=>e+1)),[pc.Remove]:()=>f((e=>e-1))})}))},St.createElement(ic,{force:!0},St.createElement(dc,null,St.createElement(Mc.Provider,{value:U},St.createElement(dc.Group,{target:h},St.createElement(ic,{force:!1},St.createElement(H,{slot:B,name:"Dialog.Description"},St.createElement(tc,{initialFocus:u,containers:O,features:E?gn(A,{parent:tc.features.RestoreFocus,leaf:tc.features.All&~tc.features.FocusLock}):tc.features.None},St.createElement(k,null,yn({ourProps:G,theirProps:a,slot:B,defaultTag:"div",features:Lc,visible:0===w,name:"Dialog"}))))))))),St.createElement(I,null))})),Rc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Pc("Dialog.Backdrop"),u=jn(t);ie((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let l=ae((()=>({open:0===i})),[i]);return St.createElement(ic,{force:!0},St.createElement(dc,null,yn({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),jc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Pc("Dialog.Panel"),u=jn(t,s.panelRef),l=ae((()=>({open:0===i})),[i]);return yn({ourProps:{ref:u,id:r,onClick:Fn((e=>{e.stopPropagation()}))},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Panel"})})),Hc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Pc("Dialog.Overlay");return yn({ourProps:{ref:jn(t),id:r,"aria-hidden":!0,onClick:Fn((e=>{if(e.target===e.currentTarget){if(Dn(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}))},theirProps:o,slot:ae((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Uc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Pc("Dialog.Title"),u=jn(t);ie((()=>(s(r),()=>s(null))),[r,s]);let l=ae((()=>({open:0===i})),[i]);return yn({ourProps:{ref:u,id:r},theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),Bc=Object.assign(Fc,{Backdrop:Rc,Panel:jc,Overlay:Hc,Title:Uc,Description:zn});class Gc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function $c(e){const t=pn(e,1);return g(Bc,t)}class Vc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function Wc(e){const t=pn(e,1);return g(Bc.Panel,t)}class qc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function zc(e){const t=pn(e,1);return g(Bc.Title,t)}class Jc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","Warning"]}}class Yc extends ln{constructor(e,t,n,r,o,i,s,u,l){super(),this.show=e,this.title=t,this.message=n,this.dialogIcon=r,this.okButtonText=o,this.okButtonClick=i,this.okButtonThem=s,this.cancelButtonText=u,this.cancelButtonClick=l}}function Kc(e,t,n,r,o){const i=function(e,t,n,r){const o=0|Xt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|Xt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return ko((()=>{return t=i,n=e,xo((()=>function(e,t){let n,r=t;return Eo((()=>{if(null!=n){const e=n[0];return n[1],e}return vo()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Zc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Xc{constructor(e){this.state=new Zc(0,[Gr(new Array(Qt(Kt,e,10)),0,Qt(Kt,e,10),null),0])}}function Qc(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Zc(0,[o,n]):new Zc(1,[o,n,i]),po(o[r])}}class ef extends ln{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function tf(e,t){const n=t.init(e),r=n[0],o=new Xc(10);let i=!1,s=r;const u=on(1,t.syncDispatch,[e=>{let n;if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],u=n.fields[0];u[i]=t;const l=(i+1)%u.length|0;e.state=new Zc(1,l===s?[(r=s,o=u,Array.from(ko((()=>Po(Ho(r,o),ko((()=>{return Po((e=r,t=o,Mo((()=>To(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return po(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(wo+"\\nParameter name: source")}}),(e=>{It(e)}))),ko((()=>{return t=e=>Io(null),e=o.length,n=Kc(0,1,e,0,((e,t)=>e+t)),ko((()=>Oo(Ro(t,n))));var e,t,n})));var e,t}))))))),u.length,0]:[u,l,s])}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Zc(1,[o,i,r])}var r,o}(o,e);else{i=!0;let r=po(e);for(;null!=r;){const e=Tt(r);try{const n=t.update(e,s),r=n[0];t.setState(r,u),Hl(u,n[1]),s=r}catch(r){t.onError([(n=Mr(Ir("Unable to process the message: %A")),n(e)),r])}r=Qc(o)}i=!1}}]);t.setState(r,u),Hl(u,co((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Ul()}})(),n[1]))}const nf=(e,t)=>{ie((()=>{const t=e();return()=>{t.Dispose()}}),t)};function rf(e){return ho.useState(e)}class of{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function sf(){return new of}function uf(e,t,n,r){tf(t,function(e,t){return new ef(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=po(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return Tt(o);throw new Error("Elmish program has not initialized")}function lf(e,t,n){const r=rf(sf)[0],o=rf((()=>uf(e,t,r))),i=o[1];return function(e,t){nf(e,t)}((()=>{return function(e){return e.hasDisposedOnce}(r)&&i(uf(e,t,r)),n=()=>{!function(e){const t=e.state;if(null!=t){const e=Tt(t);Nt(e)&&It(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)},{Dispose(){n()}};var n}),mo(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}function af(){return(af=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cf(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return G(t,n)}function ff(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(cf,af({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[df(s[i].name)]=s[i].value);for(i=u.length;i--;){var l=e(u[i],null),a=u[i].slot;a?o[a]=g(mf,{name:a},l):r[i]=l}var c=n?g(mf,null,r):r;return g(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:U)(this._vdom,this._root)}function df(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function hf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[df(e)]=n,this._vdom=G(this._vdom,r),U(this._vdom,this._root)}}function pf(){U(this._vdom=null,this._root)}function mf(e,t){var n=this;return g("slot",af({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function gf(e){return 2===e.tag?"":`(${e})`}function _f(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return g("div",en(ao([["className","mt-3"],(t=[cr(eo(new ar(0,[[sr(ao([new ir(0,[i]),new ir(1,[e=>{r&&n(e)}]),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,[[g("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"})]])])),lr(ao([new ur(0,["ml-3"]),new ur(1,[[g("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))]])))],["children",ho.Children.toArray(Array.from(t))])])))}function wf(e){let t;return g("div",en(ao([["className","mt-4"],(t=[g("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${gf(e.configOwnership)}: `}),g("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:t=>{const n=t.target.valueAsNumber;null==n||Number.isNaN(n)||e.handleMaxAccountChanged(function(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return t?s/n:s}(n))},disabled:e.readOnly})],["children",ho.Children.toArray(Array.from(t))])])))}function vf(e){let t;return g("div",en(ao([["className","text-sm font-medium text-gray-900 my-5"],(t=[g("span",{children:[e.msg]})],["children",ho.Children.toArray(Array.from(t))])])))}function yf(e,t,n){let r,o;const i=2===e.tag&&t?"":"hidden";return g("div",en(ao([["className","flex-1"],(r=[g("div",en(ao([["className","flex flex-row space-x-2"],(o=Ao(ko((()=>t?Po(Io(g("button",{className:"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",type:"button",onClick:e=>{n(new Xl(5,[new Kl(1,[])]))},children:ho.Children.toArray([aa])})),ko((()=>Io(g("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:e=>{n(new Xl(7,[!0]))},children:ho.Children.toArray([ca])}))))):Po(Io(g("button",{className:"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",type:"button",children:"Save",onClick:e=>{n(new Xl(3,[new Ll(0,[void 0])]))}})),ko((()=>Io(g("button",{className:"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",type:"button",children:"Cancel",onClick:e=>{n(new Xl(6,[]))}})))))))),["children",ho.Children.toArray(Array.from(o))])])))],["children",ho.Children.toArray(Array.from(r))])])))}function bf(e){let t;return g("div",en(ao([["className","flex-1"],(t=[g("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${gf(e)}`})],["children",ho.Children.toArray(Array.from(t))])])))}function Cf(e){let t;const n=function(e){let t;const n=Hr(null==e?"":e,["."],void 0,0);if(null==n||3!==n.length)t=new pi(1,["Failed to identify the user"]);else{let e;const o=n[1];e=atob(o),t=Mu(nn(2,Zu(qo(["Name",Jo],["Roles",(r=Jo,new Bo("[]",[r]))]),new wi(1,[]),void 0)),e)}var r;if(1===t.tag)return new zl(void 0,Xr());{const e=t.fields[0];return new zl(e.Name,function(e,t){const n=zr(),r=io(((t,n)=>{const r=new Wr(e(n),void 0);return t.tail=r,r}),n,t),o=zr();return r.tail=o,Zr(n)}(ql,ao(e.Roles)))}}(e.accessToken),r=(o=e.backendUrl,i=e.accessToken,s=e.partnerId,u=e.accountId,new Pl(o,i,s,u));var o,i,s,u;const l=(a=function(e){let t;return[(t=new Yl(new Ol(0,new kl(1,[]),!1),void 0,!0,new Kl(0,[]),!1,!1),new Yl(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,Jl(e))),Gl(Ql())]}(n),c=(e,t)=>ea(n,r,e,t),function(e,t){return lf(e,void 0,t)}((()=>function(e,t,n){return new ef(e,t,(e=>Ul()),n,nn(2,(e=>{const t=on(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(po(t),n)}),nn(2,(e=>e)))}((()=>a),c,((e,t)=>{}))),undefined));var a,c;const f=l[0],d=l[1];let h;const p=f.Error;return h=null!=p?g(vf,{msg:p}):null,null!=(m=n.Roles,fo(new Wl(0,["BankDetails.Access"]),m,{Equals:Jt,GetHashCode:Wt})?po(void 0):void 0)?f.IsLoading?null==f.Error?g("div",{children:["Please wait"]}):h:g("div",en(ao([["className","mt-5"],(t=Ao(ko((()=>{let e;return Po(Io(g("div",en(ao([["className","flex"],(e=[bf(f.Config.ConfigOwnership),yf(f.Config.ConfigOwnership,f.ShowEditButton,d)],["children",ho.Children.toArray(Array.from(e))])])))),ko((()=>Po(Io(g(wf,{configOwnership:f.Config.ConfigOwnership,handleMaxAccountChanged:e=>{d(new Xl(0,[e]))},readOnly:!Zl(f),selected:f.Config.MaxAccounts})),ko((()=>Po(Io(g(_f,{isChecked:f.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:Zl(f),onChange:e=>{d(new Xl(1,[e]))}})),ko((()=>Po(f.ShowConfirmationDialog?Io(function(e){return function(e){let t,n,r,o;return function(e){const t=pn(e,1);return g(Aa.Root,t)}(ao([new Ma(0,["1"]),new Ma(2,[e.show]),new Ma(3,[[$c(ao([new Gc(1,["1"]),new Gc(0,["div"]),new Gc(2,["relative z-10"]),new Gc(4,[e.cancelButtonClick]),new Gc(5,[[Da(ao([new Pa(0,["1"]),new Pa(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new Pa(4,["ease-out duration-300"]),new Pa(5,["opacity-0"]),new Pa(6,["opacity-100"]),new Pa(7,["ease-in duration-200"]),new Pa(8,["opacity-100"]),new Pa(9,["opacity-0"])])),g("div",en(ao([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[g("div",en(ao([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Da(ao([new Pa(0,["1"]),new Pa(4,["ease-out duration-300"]),new Pa(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Pa(6,["opacity-100 translate-y-0 sm:scale-100"]),new Pa(7,["ease-in duration-200"]),new Pa(8,["opacity-100 translate-y-0 sm:scale-100"]),new Pa(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Pa(10,[[Wc(ao([new Vc(0,["1"]),new Vc(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 Vc(2,[[g("div",en(ao([["key","1"],["className","sm:flex sm:items-start"],(r=Ao(ko((()=>{let t,n;return Po((t=e.dialogIcon,null==t?No():(n=t,Io(g("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:ho.Children.toArray([n])})))),ko((()=>{let t,n;return Io(g("div",en(ao([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(t=[zc(ao([new qc(1,["1"]),new qc(0,["h3"]),new qc(2,["text-lg font-medium leading-6 text-gray-900"]),new qc(3,[[g("span",{children:e.title,key:"1"})]])])),g("div",en(ao([["className","mt-2"],["key","2"],(n=[g("p",{className:"text-sm text-gray-500",children:e.message})],["children",ho.Children.toArray(Array.from(n))])])))],["children",ho.Children.toArray(Array.from(t))])]))))})))}))),["children",ho.Children.toArray(Array.from(r))])]))),g("div",en(ao([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Ao(ko((()=>Po(Io(g("button",{key:"Ok",type:"button",className:1===e.okButtonThem.tag?"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:t=>{e.okButtonClick()},children:e.okButtonText})),ko((()=>Io(g("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:t=>{e.cancelButtonClick()},children:e.cancelButtonText})))))))),["children",ho.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",ho.Children.toArray(Array.from(n))])])))],["children",ho.Children.toArray(Array.from(t))])])))]])]))]])]))}(new Yc(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",la,"Reset",(()=>{e(new Xl(8,[]))}),new Jc(1,[]),"Cancel",(()=>{e(new Xl(7,[!1]))})))}(d)):No(),ko((()=>Io(h)))))))))))))}))),["children",ho.Children.toArray(Array.from(t))])]))):g(vf,{msg:"You do not have the appropriate permissions to view this information"});var m}var Ef;Ef=e=>g(Cf,e),function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ff,o.prototype.attributeChangedCallback=hf,o.prototype.disconnectedCallback=pf,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("superhero-bank-details",o)}(Ef)})();
|
1
|
+
var Mn,T,Xs,Mt,Ii,Qs,fo,ea,Do,ho,po,ta,En={},na=[],bu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Sr=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function Fo(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?Mn.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 vn(e,s,r,o,null)}function vn(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??++Xs,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Ro(){return{current:null}}function se(e){return e.children}function Ze(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 ra(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 ra(e)}}function mo(e){(!e.__d&&(e.__d=!0)&&Mt.push(e)&&!ir.__r++||Ii!==T.debounceRendering)&&((Ii=T.debounceRendering)||Qs)(ir)}function ir(){var e,t,n,r,o,i,s,a;for(Mt.sort(fo);e=Mt.shift();)e.__d&&(t=Mt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=at({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),Lo(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,sa(s,r,a),r.__e!=i&&ra(r)),Mt.length>t&&Mt.sort(fo));ir.__r=0}function oa(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,p,g,m,_=r&&r.__k||na,y=t.length;for(l=vu(n,t,_,l,y),c=0;c<y;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?En:_[d.__i]||En,d.__i=c,m=Lo(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=ia(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 vu(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?vn(null,s,null,null,null):Sr(s)?vn(se,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?vn(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=Su(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)),aa(a,a));return r}function ia(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=ia(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 ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(Sr(e)?e.some(function(n){ct(n,t)}):t.push(e)),t}function Su(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 Oi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||bu.test(t)?n:n+"px"}function Gn(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||Oi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Oi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ea,"$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=Do,e.addEventListener(t,i?po:ho,i)):e.removeEventListener(t,i?po:ho,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 Ni(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Do++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Lo(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,p,g,m,_,y,C,D,W,Q,V,me,je,et,fe=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 fe=="function")try{if(_=t.props,y="prototype"in fe&&fe.prototype.render,C=(f=fe.contextType)&&r[f.__c],D=f?C?C.props.value:f.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new fe(_,D):(t.__c=c=new Ze(_,D),c.constructor=fe,c.render=Eu),C&&C.sub(c),c.props=_,c.state||(c.state={}),c.context=D,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&fe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=at({},c.__s)),at(c.__s,fe.getDerivedStateFromProps(_,c.__s))),d=c.props,p=c.state,c.__v=t,h)y&&fe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&fe.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,D),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,D)===!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(Ce){Ce&&(Ce.__=t)}),W=0;W<c._sb.length;W++)c.__h.push(c._sb[W]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,D),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,g)})}if(c.context=D,c.props=_,c.__P=e,c.__e=!1,Q=T.__r,V=0,y){for(c.state=c.__s,c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),me=0;me<c._sb.length;me++)c.__h.push(c._sb[me]);c._sb=[]}else do c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++V<25);c.state=c.__s,c.getChildContext!=null&&(r=at(at({},r),c.getChildContext())),y&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(d,p)),a=oa(e,Sr(je=f!=null&&f.type===se&&f.key==null?f.props.children:f)?je:[je],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(Ce){if(t.__v=null,l||i!=null)if(Ce.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(et=i.length;et--;)Fo(i[et]);else t.__e=n.__e,t.__k=n.__k;T.__e(Ce,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Cu(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function sa(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 Cu(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,p,g,m=n.props,_=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="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==!!y&&(y?d.localName==y:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(_);e=document.createElementNS(o,y,_.is&&_),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(y===null)m===_||a&&e.data===_||(e.data=_);else{if(i=i&&Mn.call(e.childNodes),m=n.props||En,!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;Gn(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||Gn(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=""),oa(e,Sr(h)?h:[h],t,n,r,y=="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--;)Fo(i[u]);a||(u="value",y=="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||y=="progress"&&!p||y=="option"&&p!==m[u])&&Gn(e,u,p,m[u],o),u="checked",g!==void 0&&g!==e[u]&&Gn(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 aa(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]&&aa(r[o],t,n||typeof e.type!="function");n||Fo(e.__e),e.__c=e.__=e.__e=void 0}function Eu(e,t,n){return this.constructor(e,n)}function vt(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=[],Lo(t,e=(!r&&n||t).__k=v(se,null,[e]),o||En,En,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Mn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),sa(i,e,s)}function Uo(e,t){vt(e,t,Uo)}function Vo(e,t,n){var r,o,i,s,a=at({},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?Mn.call(arguments,2):n),vn(e.type,a,r||e.key,o||e.ref,null)}function Ne(e,t){var n={__c:t="__cC"+ta++,__: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,mo(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}Mn=na.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}},Xs=0,Ze.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),mo(this))},Ze.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mo(this))},Ze.prototype.render=se,Mt=[],Qs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fo=function(e,t){return e.__v.__b-t.__v.__b},ir.__r=0,ea=/(PointerCapture)$|Capture$/i,Do=0,ho=Ni(!1),po=Ni(!0),ta=0;var ht,L,zr,Pi,en=0,la=[],Z=T,Di=Z.__b,Fi=Z.__r,Ri=Z.diffed,Li=Z.__c,Hi=Z.unmount,Ui=Z.__;function Lt(e,t){Z.__h&&Z.__h(L,e,en||t),en=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return en=1,An(ua,e)}function An(e,t,n){var r=Lt(ht++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ua(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=L,!L.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};L.u=!0;var i=L.shouldComponentUpdate,s=L.componentWillUpdate;L.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)},L.shouldComponentUpdate=o}return r.__N||r.__}function H(e,t){var n=Lt(ht++,3);!Z.__s&&zo(n.__H,t)&&(n.__=e,n.i=t,L.__H.__h.push(n))}function Ht(e,t){var n=Lt(ht++,4);!Z.__s&&zo(n.__H,t)&&(n.__=e,n.i=t,L.__h.push(n))}function A(e){return en=5,K(function(){return{current:e}},[])}function jo(e,t,n){en=6,Ht(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function K(e,t){var n=Lt(ht++,7);return zo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lt(e,t){return en=8,K(function(){return e},t)}function ce(e){var t=L.context[e.__c],n=Lt(ht++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function Bo(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function xu(e){var t=Lt(ht++,10),n=re();return t.__=e,L.componentDidCatch||(L.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Go(){var e=Lt(ht++,11);if(!e.__){for(var t=L.__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 ku(){for(var e;e=la.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(er),e.__H.__h.forEach(go),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){L=null,Di&&Di(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ui&&Ui(e,t)},Z.__r=function(e){Fi&&Fi(e),ht=0;var t=(L=e.__c).__H;t&&(zr===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(er),t.__h.forEach(go),t.__h=[],ht=0)),zr=L},Z.diffed=function(e){Ri&&Ri(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(la.push(t)!==1&&Pi===Z.requestAnimationFrame||((Pi=Z.requestAnimationFrame)||$u)(ku)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),zr=L=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(er),n.__h=n.__h.filter(function(r){return!r.__||go(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),Li&&Li(e,t)},Z.unmount=function(e){Hi&&Hi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{er(r)}catch(o){t=o}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var Vi=typeof requestAnimationFrame=="function";function $u(e){var t,n=function(){clearTimeout(r),Vi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vi&&(t=requestAnimationFrame(n))}function er(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function go(e){var t=L;e.__c=e.__(),L=t}function zo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ua(e,t){return typeof t=="function"?t(e):t}function ca(e,t){for(var n in t)e[n]=t[n];return e}function wo(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 Wo(e,t){var n=t(),r=re({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ht(function(){o.__=n,o.u=t,Wr(o)&&i({t:o})},[e,n,t]),H(function(){return Wr(o)&&i({t:o}),e(function(){Wr(o)&&i({t:o})})},[e]),n}function Wr(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 qo(e){e()}function Yo(e){return e}function Zo(){return[!1,qo]}var Jo=Ht;function sr(e,t){this.props=e,this.context=t}function fa(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:wo(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}(sr.prototype=new Ze).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return wo(this.props,e)||wo(this.state,t)};var ji=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ji&&ji(e)};var Tu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ko(e){function t(n){var r=ca({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Tu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bi=function(e,t){return e==null?null:ct(ct(e).map(t))},da={map:Bi,forEach:Bi,count:function(e){return e?ct(e).length:0},only:function(e){var t=ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ct},Mu=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)}Mu(e,t,n,r)};var Gi=T.unmount;function ha(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=ca({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ha(r,t,n)})),e}function pa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return pa(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 Sn(){this.__u=0,this.o=null,this.__b=null}function ma(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ga(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 Wt(){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),Gi&&Gi(e)},(Sn.prototype=new Ze).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ma(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]=pa(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)},Sn.prototype.componentWillUnmount=function(){this.o=[]},Sn.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]=ha(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(se,null,e.fallback);return o&&(o.__u&=-33),[v(se,null,t.__a?null:e.children),o]};var zi=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 Au(e){return this.getChildContext=function(){return e.context},e.children}function Iu(e){var t=this,n=e.h;t.componentWillUnmount=function(){vt(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)}}),vt(v(Au,{context:t.context},e.__v),t.v)}function Xo(e,t){var n=v(Iu,{__v:e,h:t});return n.containerInfo=t,n}(Wt.prototype=new Ze).__a=function(e){var t=this,n=ma(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),zi(t,e,r)):o()};n?n(i):i()}},Wt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ct(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},Wt.prototype.componentDidUpdate=Wt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){zi(e,n,t)})};var wa=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ou=/^(?: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]/,Nu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pu=/[A-Z0-9]/g,Du=typeof document<"u",Fu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _a(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ya(e,t,n){return Uo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ze.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wi=T.event;function Ru(){}function Lu(){return this.cancelBubble}function Hu(){return this.defaultPrevented}T.event=function(e){return Wi&&(e=Wi(e)),e.persist=Ru,e.isPropagationStopped=Lu,e.isDefaultPrevented=Hu,e.nativeEvent=e};var Qo,Uu={enumerable:!1,configurable:!0,get:function(){return this.class}},qi=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||Du&&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"||Fu(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Nu.test(s)&&(s=l):l=s="oninput":i&&Ou.test(s)?s=s.replace(Pu,"-$&").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=ct(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ct(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",Uu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=wa,qi&&qi(e)};var Yi=T.__r;T.__r=function(e){Yi&&Yi(e),Qo=e.__c};var Zi=T.diffed;T.diffed=function(e){Zi&&Zi(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),Qo=null};var ba={ReactCurrentDispatcher:{current:{readContext:function(e){return Qo.__n[e.__c].props.value},useCallback:lt,useContext:ce,useDebugValue:Bo,useDeferredValue:Yo,useEffect:H,useId:Go,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ht,useMemo:K,useReducer:An,useRef:A,useState:re,useSyncExternalStore:Wo,useTransition:Zo}}},Vu="18.3.1";function va(e){return v.bind(null,e)}function sn(e){return!!e&&e.$$typeof===wa}function Sa(e){return sn(e)&&e.type===se}function Ca(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ei(e){return sn(e)?Vo.apply(null,arguments):e}function Ea(e){return!!e.__k&&(vt(null,e),!0)}function xa(e){return e&&(e.base||e.nodeType===1&&e)||null}var ka=function(e,t){return e(t)},$a=function(e,t){return e(t)},Ta=se,Ma=sn,x={useState:re,useId:Go,useReducer:An,useEffect:H,useLayoutEffect:Ht,useInsertionEffect:Jo,useTransition:Zo,useDeferredValue:Yo,useSyncExternalStore:Wo,startTransition:qo,useRef:A,useImperativeHandle:jo,useMemo:K,useCallback:lt,useContext:ce,useDebugValue:Bo,version:"18.3.1",Children:da,render:_a,hydrate:ya,unmountComponentAtNode:Ea,createPortal:Xo,createElement:v,createContext:Ne,createFactory:va,cloneElement:ei,createRef:Ro,Fragment:se,isValidElement:sn,isElement:Ma,isFragment:Sa,isMemo:Ca,findDOMNode:xa,Component:Ze,PureComponent:sr,memo:fa,forwardRef:Ko,flushSync:$a,unstable_batchedUpdates:ka,StrictMode:Ta,Suspense:Sn,SuspenseList:Wt,lazy:ga,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ba};const tn=Object.freeze(Object.defineProperty({__proto__:null,Children:da,Component:Ze,Fragment:se,PureComponent:sr,StrictMode:Ta,Suspense:Sn,SuspenseList:Wt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ba,cloneElement:ei,createContext:Ne,createElement:v,createFactory:va,createPortal:Xo,createRef:Ro,default:x,findDOMNode:xa,flushSync:$a,forwardRef:Ko,hydrate:ya,isElement:Ma,isFragment:Sa,isMemo:Ca,isValidElement:sn,lazy:ga,memo:fa,render:_a,startTransition:qo,unmountComponentAtNode:Ea,unstable_batchedUpdates:ka,useCallback:lt,useContext:ce,useDebugValue:Bo,useDeferredValue:Yo,useEffect:H,useErrorBoundary:xu,useId:Go,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ht,useMemo:K,useReducer:An,useRef:A,useState:re,useSyncExternalStore:Wo,useTransition:Zo,version:Vu},Symbol.toStringTag,{value:"Module"}));function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ju(e){return e!=null&&typeof e.GetEnumerator=="function"}function Bu(e){return e!=null&&typeof e.CompareTo=="function"}function Gu(e){return e!=null&&typeof e.Equals=="function"}function Aa(e){return e!=null&&typeof e.GetHashCode=="function"}function _o(e){return e!=null&&typeof e.Dispose=="function"}function G(e){_o(e)&&e.Dispose()}function Ke(){return null}function ar(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 zu{constructor(t){this.iter=t,this.current=Ke()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function ne(e){return ju(e)?e.GetEnumerator():new zu(e[Symbol.iterator]())}function Cr(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 Wu{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 qu(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ji(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Yu(e,t){return e=e,e.toString(t)}function Dt(e,t){return e=e,e.toString(t)}class ut{static id(t){return ut.idMap.has(t)||ut.idMap.set(t,++ut.count),ut.idMap.get(t)}}ut.idMap=new WeakMap;ut.count=0;function Er(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function qe(e){return e*2654435761|0}function Ia(e){return Er(e.toString(32))}function In(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 qe(e);case"bigint":return Ia(e);case"string":return Er(e);default:return qe(ut.id(e))}}function Ju(e){return Aa(e)?e.GetHashCode():Zu(e)}function Ku(e){return e.getTime()}function Xu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return In(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"bigint":return Ia(e);case"string":return Er(e);default:{if(Aa(e))return e.GetHashCode();if(Je(e))return Xu(e);if(e instanceof Date)return Ku(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return In(n)}else return qe(ut.id(e))}}}function Oa(e){return Ju(e)}function yo(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 Na(e,t){return yo(e,t,Oe)}function Qu(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]||!Oe(e[n[o]],t[r[o]]))return!1;return!0}function Oe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Gu(e)?e.Equals(t):Je(e)?Je(t)&&Na(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Pa(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Qu(e,t)}function Pa(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ji(e),r=t.getTime()+Ji(t)),n===r?0:n<r?-1:1}function xr(e,t){return e===t?0:e<t?-1:1}function ec(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 Da(e,t){return ec(e,t,Le)}function tc(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=Le(e[s],t[s]),i!==0)return i}return 0}function Le(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Bu(e)?e.CompareTo(t):Je(e)?Je(t)?Da(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Pa(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?tc(e,t):-1}function B(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function nc(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 rc(e){Je(e)?e.splice(0):e.clear()}const kr=new WeakMap;function Y(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return kr.set(t,e),t}function At(e){return kr.get(e)??(t=>n=>e(t,n))}function bo(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return kr.set(t,e),t}function qr(e){return kr.get(e)??(t=>n=>r=>e(t,n,r))}function oc(e){let t=0,n="[";for(const r of e){if(t===0)n+=Xe(r);else if(t===100){n+="; ...";break}else n+="; "+Xe(r);t++}return n+"]"}function Xe(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return oc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+Xe(i,t+1)).join(`
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function ic(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Xe(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Xe(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ic(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,qe(this.tag)),In(t)}Equals(t){return this===t?!0:ar(this,t)&&this.tag===t.tag?Na(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ar(this,t)?this.tag===t.tag?Da(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function sc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function ac(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Xe(n)).join(`
|
3
|
+
`)+" }"}function lc(e){const t=Object.values(e).map(n=>pt(n));return In(t)}function uc(e,t){if(e===t)return!0;if(ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Oe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function cc(e,t){if(e===t)return 0;if(ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Le(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class He{toJSON(){return sc(this)}toString(){return ac(this)}GetHashCode(){return lc(this)}Equals(t){return uc(this,t)}CompareTo(t){return cc(this,t)}}class Ue{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 fc{constructor(t){this.message=t}}function dc(e){return e instanceof fc||e instanceof Error}function hc(e){return e instanceof Promise}function lr(e){return dc(e)||hc(e)?e:new Error(String(e))}const an=Symbol("numeric");function Fa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[an])}function pc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function vo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[an]().multiply(t)}function tr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[an]().toFixed(t)}function ur(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[an]().toPrecision(t)}function cr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[an]().toExponential(t)}function fr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[an]().toHex()}class mc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ve{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 j(this)}GetHashCode(){return Ra(this)}Equals(t){return So(this,t)}}function Me(e){return e.generics!=null?e.generics:[]}function Ra(e){const t=Er(e.fullname),n=Me(e).map(Ra);return In([t,...n])}function So(e,t){return e.fullname===""?t.fullname===""&&yo(xn(e),xn(t),([n,r],[o,i])=>n===o&&So(r,i)):e.fullname===t.fullname&&yo(Me(e),Me(t),So)}function La(e,t,n,r){return new Ve(e,t,n,void 0,r)}function Ha(...e){return new Ve("",void 0,void 0,void 0,()=>e)}function gc(e,t,n,r){const o=new Ve(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 wc(e){return new Ve("[]",[e])}const _c=new Ve("System.Object"),Co=new Ve("System.String"),Ua=new Ve("System.Boolean"),Va=new Ve("System.Int32");function Yt(e){if(Array.isArray(e))return e[0];if(e instanceof Ve){const t=On(e);if(t!=null)return Yt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function j(e){const t=On(e);return t!=null?j(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>j(n)).join(",")+"]"}function ja(e){return On(e)!=null}function On(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ba(e){return e.generics!=null&&e.generics.length>0}function ti(e){return e.enumCases!=null&&e.enumCases.length>0}function Ga(e){return e.generics==null?e:new Ve(e.fullname,e.generics.map(()=>_c))}function za(e){var t;return(t=e.generics)==null?void 0:t[0]}function jt(e){if(ti(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function yc(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 Bt(e,t){const n=parseInt(t,10);return yc(e,isNaN(n)?t:n)[1]}function Wa(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function xn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function qa(e){if(ni(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ya(e){return e instanceof Ve?e.cases!=null:e instanceof z}function Za(e){return e instanceof Ve?e.fields!=null:e instanceof He}function ni(e){return e.fullname.startsWith("System.Tuple")}function bc(e,t){const r=Wa(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ja(e){return e.fields==null?[]:e.fields}function vc(e,t){return e[t[0]]}function Sc(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 Cc(e,t){const n=xn(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 Ec(e,t){return e}var xc=Object.defineProperty,kc=(e,t,n)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yr=(e,t,n)=>(kc(e,typeof t!="symbol"?t+"":t,n),n);let $c=class{constructor(){Yr(this,"current",this.detect()),Yr(this,"handoffState","pending"),Yr(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"}},ft=new $c,ye=(e,t)=>{ft.isServer?H(e,t):Ht(e,t)};function dt(e){let t=A(e);return ye(()=>{t.current=e},[e]),t}function $r(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ut(){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 $r(()=>{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=Ut();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 Tr(){let[e]=re(Ut);return H(()=>()=>e.dispose(),[e]),e}let N=function(e){let t=dt(e);return x.useCallback((...n)=>t.current(...n),[t])};function Tc(){let e=typeof document>"u";return"useSyncExternalStore"in tn?(t=>t.useSyncExternalStore)(tn)(()=>()=>{},()=>!1,()=>!e):!1}function ln(){let e=Tc(),[t,n]=re(ft.isHandoffComplete);return t&&ft.isHandoffComplete===!1&&n(!1),H(()=>{t!==!0&&n(!0)},[t]),H(()=>ft.handoff(),[]),e?!1:t}var Ki;let Et=(Ki=x.useId)!=null?Ki:function(){let e=ln(),[t,n]=x.useState(e?()=>ft.nextId():null);return ye(()=>{t===null&&n(ft.nextId())},[t]),t!=null?""+t:void 0};function he(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,he),r}function Ka(e){return ft.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Eo=["[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 It=(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))(It||{}),Xa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xa||{}),Mc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Mc||{});function Ac(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Eo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Qa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Qa||{});function Ic(e,t=0){var n;return e===((n=Ka(e))==null?void 0:n.body)?!1:he(t,{0(){return e.matches(Eo)},1(){let r=e;for(;r!==null;){if(r.matches(Eo))return!0;r=r.parentElement}return!1}})}var Oc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Oc||{});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 Ft(e){e==null||e.focus({preventScroll:!0})}let Nc=["textarea","input"].join(",");function Pc(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Nc))!=null?n:!1}function Dc(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 nr(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?Dc(e):e:Ac(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&&Pc(h)&&h.select(),2}function zn(e,t,n){let r=dt(t);H(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function el(e,t,n){let r=dt(t);H(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Fc(e,t,n=!0){let r=A(!1);H(()=>{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!Ic(l,Qa.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=A(null);zn("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),zn("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),zn("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),zn("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),el("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Xi(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 Rc(e,t){let[n,r]=re(()=>Xi(e));return ye(()=>{r(Xi(e))},[e.type,e.as]),ye(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let tl=Symbol();function Lc(e,t=!0){return Object.assign(e,{[tl]:t})}function Pe(...e){let t=A(e);H(()=>{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[tl]))?void 0:n}function dr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var hr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hr||{}),yt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yt||{});function ve({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=nl(t,e);if(i)return Wn(a,n,r,s);let l=o??0;if(l&2){let{static:u=!1,...f}=a;if(u)return Wn(f,n,r,s)}if(l&1){let{unmount:u=!0,...f}=a;return he(u?0:1,{0(){return null},1(){return Wn({...f,hidden:!0,style:{display:"none"}},n,r,s)}})}return Wn(a,n,r,s)}function Wn(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=Zr(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===se&&Object.keys(xo(a)).length>0){if(!sn(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
|
+
`),"","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
|
+
`)].join(`
|
6
|
+
`));let c=u.props,h=typeof(c==null?void 0:c.className)=="function"?(...p)=>dr(c==null?void 0:c.className(...p),a.className):dr(c==null?void 0:c.className,a.className),d=h?{className:h}:{};return ei(u,Object.assign({},nl(u.props,xo(Zr(a,["ref"]))),f,l,Hc(u.ref,l.ref),d))}return v(o,Object.assign({},Zr(a,["ref"]),o!==se&&l,o!==se&&f),u)}function Hc(...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 nl(...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 Se(e){var t;return Object.assign(Ko(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Zr(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function rl(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&&Uc(n)?!1:r}function Uc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Vc(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 jc="div";var kn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(kn||{});function Bc(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 ve({ourProps:o,theirProps:r,slot:{},defaultTag:jc,name:"Hidden"})}let pr=Se(Bc),ri=Ne(null);ri.displayName="OpenClosedContext";var Ae=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ae||{});function oi(){return ce(ri)}function Gc({value:e,children:t}){return x.createElement(ri.Provider,{value:e},t)}var mr=(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))(mr||{});function zc(e,t,n){let[r,o]=re(n),i=e!==void 0,s=A(i),a=A(!1),l=A(!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 ii(e,t){let n=A([]),r=N(e);H(()=>{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 Wc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Nn(...e){return K(()=>Ka(...e),[...e])}var bn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(bn||{});function qc(){let e=A(0);return el("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Pn(){let e=A(!1);return ye(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ol(e,t,n,r){let o=dt(n);H(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Yc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function il(e){let t=N(e),n=A(!1);H(()=>(n.current=!1,()=>{n.current=!0,$r(()=>{n.current&&t()})}),[t])}function sl(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 al=(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))(al||{});function Jc(e,t){let n=A(null),r=Pe(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;ln()||(s=1);let l=Nn(n);Qc({ownerDocument:l},!!(s&16));let u=ef({ownerDocument:l,container:n,initialFocus:o},!!(s&2));tf({ownerDocument:l,container:n,containers:i,previousActiveElement:u},!!(s&8));let f=qc(),c=N(g=>{let m=n.current;m&&(_=>_())(()=>{he(f.current,{[bn.Forwards]:()=>{nr(m,It.First,{skipElements:[g.relatedTarget]})},[bn.Backwards]:()=>{nr(m,It.Last,{skipElements:[g.relatedTarget]})}})})}),h=Tr(),d=A(!1),p={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let m=sl(i);n.current instanceof HTMLElement&&m.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(ll(m,_)||(d.current?nr(n.current,he(f.current,{[bn.Forwards]:()=>It.Next,[bn.Backwards]:()=>It.Previous})|It.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Ft(g.target)))}};return x.createElement(x.Fragment,null,!!(s&4)&&x.createElement(pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:kn.Focusable}),ve({ourProps:p,theirProps:a,defaultTag:Zc,name:"FocusTrap"}),!!(s&4)&&x.createElement(pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:kn.Focusable}))}let Kc=Se(Jc),pn=Object.assign(Kc,{features:al}),_t=[];Yc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&_t[0]!==t.target&&(_t.unshift(t.target),_t=_t.filter(n=>n!=null&&n.isConnected),_t.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 Xc(e=!0){let t=A(_t.slice());return ii(([n],[r])=>{r===!0&&n===!1&&$r(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=_t.slice())},[e,_t,t]),N(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Qc({ownerDocument:e},t){let n=Xc(t);ii(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ft(n())},[t]),il(()=>{t&&Ft(n())})}function ef({ownerDocument:e,container:t,initialFocus:n},r){let o=A(null),i=Pn();return ii(()=>{if(!r)return;let s=t.current;s&&$r(()=>{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?Ft(n.current):nr(s,It.First)===Xa.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function tf({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Pn();ol(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=sl(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?ll(a,u)?(r.current=u,Ft(u)):(s.preventDefault(),s.stopPropagation(),Ft(l)):Ft(r.current)},!0)}function ll(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ul=Ne(!1);function nf(){return ce(ul)}function ko(e){return x.createElement(ul.Provider,{value:e.force},e.children)}function rf(e){let t=nf(),n=ce(cl),r=Nn(e),[o,i]=re(()=>{if(!t&&n!==null||ft.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 H(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),H(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let of=se;function sf(e,t){let n=e,r=A(null),o=Pe(Lc(f=>{r.current=f}),t),i=Nn(r),s=rf(r),[a]=re(()=>{var f;return ft.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),l=ce($o),u=ln();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]),il(()=>{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:Xo(ve({ourProps:{ref:o},theirProps:n,defaultTag:of,name:"Portal"}),a):null}let af=se,cl=Ne(null);function lf(e,t){let{target:n,...r}=e,o={ref:Pe(t)};return x.createElement(cl.Provider,{value:n},ve({ourProps:o,theirProps:r,defaultTag:af,name:"Popover.Group"}))}let $o=Ne(null);function uf(){let e=ce($o),t=A([]),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=K(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,K(()=>function({children:i}){return x.createElement($o.Provider,{value:o},i)},[o])]}let cf=Se(sf),ff=Se(lf),To=Object.assign(cf,{Group:ff}),fl=Ne(null);function dl(){let e=ce(fl);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,dl),t}return e}function hl(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,K(()=>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=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(fl.Provider,{value:o},n.children)},[t])]}let df="p";function hf(e,t){let n=Et(),{id:r=`headlessui-description-${n}`,...o}=e,i=dl(),s=Pe(t);ye(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return ve({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:df,name:i.name||"Description"})}let pf=Se(hf),pl=Object.assign(pf,{}),si=Ne(()=>{});si.displayName="StackContext";var Mo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Mo||{});function mf(){return ce(si)}function gf({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=mf(),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]),x.createElement(si.Provider,{value:s},e)}function wf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const _f=typeof Object.is=="function"?Object.is:wf,{useState:yf,useEffect:bf,useLayoutEffect:vf,useDebugValue:Sf}=tn;function Cf(e,t,n){const r=t(),[{inst:o},i]=yf({inst:{value:r,getSnapshot:t}});return vf(()=>{o.value=r,o.getSnapshot=t,Jr(o)&&i({inst:o})},[e,r,t]),bf(()=>(Jr(o)&&i({inst:o}),e(()=>{Jr(o)&&i({inst:o})})),[e]),Sf(r),r}function Jr(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!_f(n,r)}catch{return!0}}function Ef(e,t,n){return t()}const xf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kf=!xf,$f=kf?Ef:Cf,Tf="useSyncExternalStore"in tn?(e=>e.useSyncExternalStore)(tn):$f;function Mf(e){return Tf(e.subscribe,e.getSnapshot,e.getSnapshot)}function Af(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 If(){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 Of(){if(!Wc())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=Ut();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 Nf(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Pf(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Nt=Af(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ut(),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:Pf(n)},o=[Of(),If(),Nf()];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)}});Nt.subscribe(()=>{let e=Nt.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)&&Nt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Nt.dispatch("TEARDOWN",n)}});function Df(e,t,n){let r=Mf(Nt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return ye(()=>{if(!(!e||!t))return Nt.dispatch("PUSH",e,n),()=>Nt.dispatch("POP",e,n)},[t,e]),i}let Kr=new Map,mn=new Map;function Qi(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=mn.get(r))!=null?s:1;if(a===1?mn.delete(r):mn.set(r,a-1),a!==1)return;let l=Kr.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,Kr.delete(r))}let i=(n=mn.get(r))!=null?n:0;return mn.set(r,i+1),i!==0||(Kr.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Ff({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=A((r=n==null?void 0:n.current)!=null?r:null),i=Nn(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:K(()=>function(){return n!=null?null:x.createElement(pr,{features:kn.Hidden,ref:o})},[o,n])}}var Rf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rf||{}),Lf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Lf||{});let Hf={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},gr=Ne(null);gr.displayName="DialogContext";function Dn(e){let t=ce(gr);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 Uf(e,t,n=()=>[document.body]){Df(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Vf(e,t){return he(t.type,Hf,e,t)}let jf="div",Bf=hr.RenderStrategy|hr.Static;function Gf(e,t){var n;let r=Et(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[f,c]=re(0),h=oi();i===void 0&&h!==null&&(i=(h&Ae.Open)===Ae.Open);let d=A(null),p=Pe(d,t),g=Nn(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 y=i?0:1,[C,D]=An(Vf,{titleId:null,descriptionId:null,panelRef:Ro()}),W=N(()=>s(!1)),Q=N(ae=>D({type:0,id:ae})),V=ln()?l?!1:y===0:!1,me=f>1,je=ce(gr)!==null,[et,fe]=uf(),{resolveContainers:Ce,mainTreeNodeRef:gt,MainTreeNode:Vr}=Ff({portals:et,defaultContainers:[(n=C.panelRef.current)!=null?n:d.current]}),Vn=me?"parent":"leaf",jn=h!==null?(h&Ae.Closing)===Ae.Closing:!1,kt=je||jn?!1:V,jr=lt(()=>{var ae,ot;return(ot=Array.from((ae=g==null?void 0:g.querySelectorAll("body > *"))!=null?ae:[]).find(De=>De.id==="headlessui-portal-root"?!1:De.contains(gt.current)&&De instanceof HTMLElement))!=null?ot:null},[gt]);Qi(jr,kt);let Br=me?!0:V,Vt=lt(()=>{var ae,ot;return(ot=Array.from((ae=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?ae:[]).find(De=>De.contains(gt.current)&&De instanceof HTMLElement))!=null?ot:null},[gt]);Qi(Vt,Br),Fc(Ce,W,!(!V||me));let Gr=!(me||y!==0);ol(g==null?void 0:g.defaultView,"keydown",ae=>{Gr&&(ae.defaultPrevented||ae.key===mr.Escape&&(ae.preventDefault(),ae.stopPropagation(),W()))}),Uf(g,!(jn||y!==0||je),Ce),H(()=>{if(y!==0||!d.current)return;let ae=new ResizeObserver(ot=>{for(let De of ot){let Bn=De.target.getBoundingClientRect();Bn.x===0&&Bn.y===0&&Bn.width===0&&Bn.height===0&&W()}});return ae.observe(d.current),()=>ae.disconnect()},[y,d,W]);let[gu,wu]=hl(),_u=K(()=>[{dialogState:y,close:W,setTitleId:Q},C],[y,C,W,Q]),Ai=K(()=>({open:y===0}),[y]),yu={ref:p,id:o,role:"dialog","aria-modal":y===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":gu};return x.createElement(gf,{type:"Dialog",enabled:y===0,element:d,onUpdate:N((ae,ot)=>{ot==="Dialog"&&he(ae,{[Mo.Add]:()=>c(De=>De+1),[Mo.Remove]:()=>c(De=>De-1)})})},x.createElement(ko,{force:!0},x.createElement(To,null,x.createElement(gr.Provider,{value:_u},x.createElement(To.Group,{target:d},x.createElement(ko,{force:!1},x.createElement(wu,{slot:Ai,name:"Dialog.Description"},x.createElement(pn,{initialFocus:a,containers:Ce,features:V?he(Vn,{parent:pn.features.RestoreFocus,leaf:pn.features.All&~pn.features.FocusLock}):pn.features.None},x.createElement(fe,null,ve({ourProps:yu,theirProps:u,slot:Ai,defaultTag:jf,features:Bf,visible:y===0,name:"Dialog"}))))))))),x.createElement(Vr,null))}let zf="div";function Wf(e,t){let n=Et(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Dn("Dialog.Overlay"),a=Pe(t),l=N(f=>{if(f.target===f.currentTarget){if(rl(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),u=K(()=>({open:i===0}),[i]);return ve({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:zf,name:"Dialog.Overlay"})}let qf="div";function Yf(e,t){let n=Et(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Backdrop"),a=Pe(t);H(()=>{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=K(()=>({open:i===0}),[i]);return x.createElement(ko,{force:!0},x.createElement(To,null,ve({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:qf,name:"Dialog.Backdrop"})))}let Zf="div";function Jf(e,t){let n=Et(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Panel"),a=Pe(t,s.panelRef),l=K(()=>({open:i===0}),[i]),u=N(f=>{f.stopPropagation()});return ve({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:Zf,name:"Dialog.Panel"})}let Kf="h2";function Xf(e,t){let n=Et(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Dn("Dialog.Title"),a=Pe(t);H(()=>(s(r),()=>s(null)),[r,s]);let l=K(()=>({open:i===0}),[i]);return ve({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:Kf,name:"Dialog.Title"})}let Qf=Se(Gf),ed=Se(Yf),td=Se(Jf),nd=Se(Wf),rd=Se(Xf),ai=Object.assign(Qf,{Backdrop:ed,Panel:td,Overlay:nd,Title:rd,Description:pl});function od(e=0){let[t,n]=re(e),r=Pn(),o=lt(l=>{r.current&&n(u=>u|l)},[t,r]),i=lt(l=>!!(t&l),[t]),s=lt(l=>{r.current&&n(u=>u&~l)},[n,r]),a=lt(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let ml=Ne(null);function gl(){let e=ce(ml);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,gl),t}return e}function id(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,K(()=>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=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(ml.Provider,{value:o},n.children)},[t])]}let sd="label";function ad(e,t){let n=Et(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=gl(),a=Pe(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),ve({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:sd,name:s.name||"Label"})}let ld=Se(ad),ud=Object.assign(ld,{}),li=Ne(null);li.displayName="GroupContext";let cd=se;function fd(e){var t;let[n,r]=re(null),[o,i]=id(),[s,a]=hl(),l=K(()=>({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(li.Provider,{value:l},ve({ourProps:u,theirProps:f,defaultTag:cd,name:"Switch.Group"}))))}let dd="button";function hd(e,t){let n=Et(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...f}=e,c=ce(li),h=A(null),d=Pe(h,t,c===null?null:c.setSwitch),[p,g]=zc(o,s,i),m=N(()=>g==null?void 0:g(!p)),_=N(V=>{if(rl(V.currentTarget))return V.preventDefault();V.preventDefault(),m()}),y=N(V=>{V.key===mr.Space?(V.preventDefault(),m()):V.key===mr.Enter&&Vc(V.currentTarget)}),C=N(V=>V.preventDefault()),D=K(()=>({checked:p}),[p]),W={id:r,ref:d,role:"switch",type:Rc(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:y,onKeyPress:C},Q=Tr();return H(()=>{var V;let me=(V=h.current)==null?void 0:V.closest("form");me&&i!==void 0&&Q.addEventListener(me,"reset",()=>{g(i)})},[h,g]),x.createElement(x.Fragment,null,a!=null&&p&&x.createElement(pr,{features:kn.Hidden,...xo({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:p,name:a,value:l})}),ve({ourProps:W,theirProps:f,slot:D,defaultTag:dd,name:"Switch"}))}let pd=Se(hd),md=fd,ui=Object.assign(pd,{Group:md,Label:ud,Description:pl});function gd(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Xr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Qr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function wd(e,t){let n=Ut();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 _d(e,t,n,r){let o=n?"enter":"leave",i=Ut(),s=r!==void 0?gd(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=he(o,{enter:()=>t.enter,leave:()=>t.leave}),l=he(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=he(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Qr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xr(e,...t.base,...a,...u),i.nextFrame(()=>{Qr(e,...t.base,...a,...u),Xr(e,...t.base,...a,...l),wd(e,()=>(Qr(e,...t.base,...a),Xr(e,...t.base,...t.entered),s()))}),i.dispose}function yd({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=Pn(),a=Tr(),l=dt(n);ye(()=>{e&&(l.current="enter")},[e]),ye(()=>{let u=Ut();a.add(u.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return u.dispose(),o.current(l.current),u.add(_d(f,r.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function wt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Mr=Ne(null);Mr.displayName="TransitionContext";var bd=(e=>(e.Visible="visible",e.Hidden="hidden",e))(bd||{});function vd(){let e=ce(Mr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Sd(){let e=ce(Ar);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ar=Ne(null);Ar.displayName="NestingContext";function Ir(e){return"children"in e?Ir(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function wl(e,t){let n=dt(e),r=A([]),o=Pn(),i=Tr(),s=N((d,p=yt.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===d);g!==-1&&(he(p,{[yt.Unmount](){r.current.splice(g,1)},[yt.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var m;!Ir(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,yt.Unmount)}),l=A([]),u=A(Promise.resolve()),f=A({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(([_,y])=>y)).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 K(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}function Cd(){}let Ed=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function es(e){var t;let n={};for(let r of Ed)n[r]=(t=e[r])!=null?t:Cd;return n}function xd(e){let t=A(es(e));return H(()=>{t.current=es(e)},[e]),t}let kd="div",_l=hr.RenderStrategy;function $d(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=A(null),_=Pe(m,t),y=(n=g.unmount)==null||n?yt.Unmount:yt.Hidden,{show:C,appear:D,initial:W}=vd(),[Q,V]=re(C?"visible":"hidden"),me=Sd(),{register:je,unregister:et}=me;H(()=>je(m),[je,m]),H(()=>{if(y===yt.Hidden&&m.current){if(C&&Q!=="visible"){V("visible");return}return he(Q,{hidden:()=>et(m),visible:()=>je(m)})}},[Q,m,je,et,C,y]);let fe=dt({base:wt(g.className),enter:wt(l),enterFrom:wt(u),enterTo:wt(f),entered:wt(c),leave:wt(h),leaveFrom:wt(d),leaveTo:wt(p)}),Ce=xd({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),gt=ln();H(()=>{if(gt&&Q==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,Q,gt]);let Vr=W&&!D,Vn=D&&C&&W,jn=!gt||Vr?"idle":C?"enter":"leave",kt=od(0),jr=N(rt=>he(rt,{enter:()=>{kt.addFlag(Ae.Opening),Ce.current.beforeEnter()},leave:()=>{kt.addFlag(Ae.Closing),Ce.current.beforeLeave()},idle:()=>{}})),Br=N(rt=>he(rt,{enter:()=>{kt.removeFlag(Ae.Opening),Ce.current.afterEnter()},leave:()=>{kt.removeFlag(Ae.Closing),Ce.current.afterLeave()},idle:()=>{}})),Vt=wl(()=>{V("hidden"),et(m)},me);yd({immediate:Vn,container:m,classes:fe,direction:jn,onStart:dt(rt=>{Vt.onStart(m,rt,jr)}),onStop:dt(rt=>{Vt.onStop(m,rt,Br),rt==="leave"&&!Ir(Vt)&&(V("hidden"),et(m))})});let $t=g,Gr={ref:_};return Vn?$t={...$t,className:dr(g.className,...fe.current.enter,...fe.current.enterFrom)}:($t.className=dr(g.className,(r=m.current)==null?void 0:r.className),$t.className===""&&delete $t.className),x.createElement(Ar.Provider,{value:Vt},x.createElement(Gc,{value:he(Q,{visible:Ae.Open,hidden:Ae.Closed})|kt.flags},ve({ourProps:Gr,theirProps:$t,defaultTag:kd,features:_l,visible:Q==="visible",name:"Transition.Child"})))}function Td(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=A(null),a=Pe(s,t);ln();let l=oi();if(n===void 0&&l!==null&&(n=(l&Ae.Open)===Ae.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=wl(()=>{f("hidden")}),[h,d]=re(!0),p=A([n]);ye(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),d(!1))},[p,n]);let g=K(()=>({show:n,appear:r,initial:h}),[n,r,h]);H(()=>{if(n)f("visible");else if(!Ir(c))f("hidden");else{let C=s.current;if(!C)return;let D=C.getBoundingClientRect();D.x===0&&D.y===0&&D.width===0&&D.height===0&&f("hidden")}},[n,c]);let m={unmount:o},_=N(()=>{var C;h&&d(!1),(C=e.beforeEnter)==null||C.call(e)}),y=N(()=>{var C;h&&d(!1),(C=e.beforeLeave)==null||C.call(e)});return x.createElement(Ar.Provider,{value:c},x.createElement(Mr.Provider,{value:g},ve({ourProps:{...m,as:se,children:x.createElement(yl,{ref:a,...m,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:se,features:_l,visible:u==="visible",name:"Transition"})))}function Md(e,t){let n=ce(Mr)!==null,r=oi()!==null;return x.createElement(x.Fragment,null,!n&&r?x.createElement(Ao,{ref:t,...e}):x.createElement(yl,{ref:t,...e}))}let Ao=Se(Td),yl=Se($d),Ad=Se(Md),bl=Object.assign(Ao,{Child:Ad,Root:Ao});const Ot={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function eo(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 Id(e,t){switch(t){case Ot.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ot.SnakeCase:return eo(e,"_");case Ot.SnakeCaseAllCaps:return eo(e,"_").toUpperCase();case Ot.KebabCase:return eo(e,"-");case Ot.None:default:return e}}function xt(e,t=Ot.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=Id(s,a),n[s]=l}for(let s of e){let a=Ot.None;if(s==null&&o(s),s instanceof z){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0: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 qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}};function Od(e){return v(ui,xt(e,1))}class ts extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Nd(e){return v(ui.Label,xt(e,1))}class Pd extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function Dd(e){return v(ui.Group,xt(e,1))}const Fd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ld=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hd=["January","February","March","April","May","June","July","August","September","October","November","December"];function xe(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function ns(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ud(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 ci(e,t,n){let r=0,o=0,i="";const s=n?Fn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=xe(t,r,"d"),r+=o,o){case 1:i+=os(s);break;case 2:i+=P(os(s),2);break;case 3:i+=Fd[as(s)];break;case 4:i+=Rd[as(s)];break}break;case"f":if(o=xe(t,r,"f"),r+=o,o<=3){const m=10**(3-o);i+=P(Math.floor(Zn(s)/m),o)}else o<=7&&(i+=(""+Zn(s)).padEnd(o,"0"));break;case"F":if(o=xe(t,r,"F"),r+=o,o<=3){const m=10**(3-o),_=Math.floor(Zn(s)/m);_!=0&&(i+=P(_,o))}else if(o<=7){const m=Zn(s);m!=0&&(i+=P(m,3))}break;case"g":o=xe(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=xe(t,r,"h"),r+=o,o){case 1:i+=Yn(s)%12;break;case 2:i+=P(Yn(s)%12,2);break}break;case"H":switch(o=xe(t,r,"H"),r+=o,o){case 1:i+=Yn(s);break;case 2:i+=P(Yn(s),2);break}break;case"K":switch(o=xe(t,r,"K"),r+=o,o){case 1:switch(rs(s)){case 1:i+="Z";break;case 2:i+=Zt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=xe(t,r,"m"),r+=o,o){case 1:i+=is(s);break;case 2:i+=P(is(s),2);break}break;case"M":switch(o=xe(t,r,"M"),r+=o,o){case 1:i+=Jn(s);break;case 2:i+=P(Jn(s),2);break;case 3:i+=Ld[Jn(s)-1];break;case 4:i+=Hd[Jn(s)-1];break}break;case"s":switch(o=xe(t,r,"s"),r+=o,o){case 1:i+=ss(s);break;case 2:i+=P(ss(s),2);break}break;case"t":switch(o=xe(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=xe(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=xe(t,r,"z"),r+=o;let l="";switch(rs(s)){case 1:l="+00:00";break;case 2:l=Zt(s.getTimezoneOffset()*-6e4);break;case 0:l=Zt(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]=Ud(t,r);i+=h,r+=d;break;case"%":const p=ns(t,r);if(p>=0&&p!==37)r+=2,i+=ci(s,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=ns(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 rs(e){return e.kind||0}function Zt(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 wr(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 Vd(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?Zt(e.getTimezoneOffset()*-6e4):"")}}function jd(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Zt(t)}function Bd(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," ")+Zt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return wr(n,"first");case"T":case"t":return wr(n,"second");case"O":case"o":return jd(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ci(n,t,!0)}function Gd(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?wr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?wr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Vd(e,n);default:throw new Error("Unrecognized Date print format")}else return ci(e,t,n)}function Or(e,t,n){return e.offset!=null?Bd(e,t):Gd(e,t)}function Fn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function zd(){return Fn(-621355968e5,1)}function vl(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 Wd(e,t=!1){const[n,r]=vl(e),o=r!=null?t&&r==="Z"?1:2:0;return Fn(n.getTime(),o)}function qd(e,t){try{return t.contents=Wd(e),!0}catch{return!1}}function Yd(e){return e.kind===1?e:Fn(e.getTime(),1)}function Zd(e){return e.kind===2?e:Fn(e.getTime(),2)}function os(e){return e.kind===1?e.getUTCDate():e.getDate()}function Yn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Zn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function is(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Jn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ss(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function as(e){return e.kind===1?e.getUTCDay():e.getDay()}function Jd(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 Sl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ls(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 Kd(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=Jd(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=ls(e,a),u=ls.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 gn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,wn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Xd=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Cl(e,t){return pc(e,t)<0}function St(e){return{input:e,cont:eh(e)}}function Qd(e,t){let n=0,r=0,o="";wn.lastIndex=0;let i=wn.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=wn.lastIndex,o+=kl(t[n++],a,l,u,f),wn.lastIndex=r-1,i=wn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function El(e,t){return typeof t=="string"?e(t):t.cont(e)}function Rt(e){return El(t=>t,e)}function xl(e){return El(t=>{throw new Error(t)},e)}function kl(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Fa(e))switch(o.toLowerCase()!=="x"&&(Cl(e,0)?(e=vo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=tr(e,r);break;case"g":case"G":e=r!=null?ur(e,r):ur(e);break;case"e":case"E":e=r!=null?cr(e,r):cr(e);break;case"x":e=fr(e);break;case"X":e=fr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Or(e):e=Xe(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=$n(e,n-i.length,l,a),e=i+e):e=$n(i+e,n,l,a)}return e}function $l(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+=kl(u,f,p,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):$l(e,a,l,s,o)}}function eh(e){return t=>{gn.lastIndex=0;const n=[],r=[];let o=0,i=gn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=gn.lastIndex,gn.lastIndex-=1,i=gn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),$l(t,n,r))}}function th(e,...t){let n;return n=e,n.replace(Xd,(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(Fa(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=tr(u,a);break;case"g":case"G":u=a!=null?ur(u,a):ur(u);break;case"e":case"E":u=a!=null?cr(u,a):cr(u);break;case"p":case"P":a=a??2,u=tr(vo(u,100),a)+" %";break;case"d":case"D":u=a!=null?to(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?to(fr(u),a,"0"):fr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Cl(u,0)&&(u=vo(u,-1),f="-"),d=d==null?"":d.substring(1),u=tr(u,Math.max(d.length,0));let[p,g]=u.split(".");g||(g="");const m=h.replace(/,/g,"").replace(/^#+/,"").length;p=to(p,m,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=rh(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const y=p.length%3,C=Math.floor(p.length/3);let D=y>0?p.substr(0,y)+(C>0?",":""):"";for(let W=0;W<C;W++)D+=p.substr(y+W*3,3)+(W<C-1?",":"");p=D}return g.length>0?p+"."+g:p}),u=f+u}}else u instanceof Date?u=Or(u,l||s):u=Xe(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=$n(String(u),Math.abs(i)," ",i<0)),u})}function nh(e){return typeof e!="string"||e.length===0}function un(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function $n(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 to(e,t,n){return $n(e,t,n)}function rh(e,t,n){return $n(e,t,n,!0)}function Tl(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(Sl),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 oh(e,...t){if(t.length===0)return e.trim();const n="["+Sl(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class nn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:Oe(this.value,t instanceof nn?t.value:t)}CompareTo(t){return t==null?1:Le(this.value,t instanceof nn?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof nn?e.value:e}function pe(e){return e==null||e instanceof nn?new nn(e):e}function Io(e,t){return e!=null?b(e):t}function ih(e,t){return e!=null?b(e):t()}function sh(e,t){return t!=null?pe(e(b(t))):void 0}const Ml="Collection was empty.";function Al(e,t){return new Array(t)}function us(e,t){return e>t?e:t}function Nr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function cn(e,t,n){const r=t.length|0,o=Al(n,r);for(let i=0;i<=r-1;i++)tt(o,i,e(J(i,t)));return o}function ah(e,t){const n=Al(t,1);return tt(n,0,e),n}function lh(e){return e.slice().reverse()}function uh(e,t){return t.find(e)}function ch(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(J(o,t));if(i!=null){const s=b(i);r.push(s)}}return Oe(n,Ke())?r:cn(o=>o,r,n)}function Pr(e,t,n){const r=e;return n.reduce(r,t)}function fh(e,t,n){return t==null}function J(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 tt(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 Il(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class be extends He{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+un("; ",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=b(l),c=b(u);if(Oe(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=b(u);if(s>18)return a|0;r=s+1,o=(a<<1)+pt(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=b(l),c=b(u),h=Le(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 hh(this)}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ne(this)}}class dh{constructor(t){this.xs=t,this.it=this.xs,this.current=Ke()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=b(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Ke()}Dispose(){}}function hh(e){return new dh(e)}function ie(){return new be(Ke(),void 0)}function Rn(e,t){return new be(e,t)}function Dr(e){return e.tail==null}function ph(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function fi(e){if(e.tail!=null)return e.head;throw new Error(Ml+"\\nParameter name: list")}function Qe(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ml+"\\nParameter name: list")}function ue(){return ie()}function Fe(e,t){return Rn(e,t)}function ee(e){return Rn(e,ie())}function I(e){return Dr(e)}function E(e){return fi(e)}function M(e){return Qe(e)}function Ln(e){const t=ph(e)|0,n=Nr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Dr(a)){tt(n,s,fi(a)),o=s+1,i=Qe(a);continue e}break}})(0,e),n}function nt(e,t,n){let r=t,o=n;for(;!Dr(o);)r=e(r,E(o)),o=Qe(o);return r}function di(e){return nt((t,n)=>Rn(n,t),ie(),e)}function mh(e,t,n){return Il(e,Ln(t),n)}function Tn(e,t){nt((n,r)=>{e(r)},void 0,t)}function q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Rn(J(r,e),n);return n}function $(e){return q(e,ie())}function gh(e){let t,n;if(Je(e))return $(e);if(e instanceof be)return e;{const r=ie();let o=r;const i=ne(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new be(l,void 0),t.tail=n,n)}}finally{G(i)}const s=o,a=ie();return s.tail=a,Qe(r)}}function wh(e){const t=ie();let n=t;const r=s=>{n=nt((a,l)=>{const u=new be(l,void 0);return a.tail=u,u},n,s)};if(Je(e))e.forEach(r);else if(e instanceof be)Tn(r,e);else{const s=ne(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{G(s)}}const o=n,i=ie();return o.tail=i,Qe(t)}function hi(e,t){return nt((n,r)=>Rn(r,n),t,di(e))}function Ol(e,t){const n=ie(),r=nt((i,s)=>{const a=new be(e(s),void 0);return i.tail=a,a},n,t),o=ie();return r.tail=o,Qe(n)}function _h(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Dr(s))return;if(e(fi(s)))return i;r=i+1,o=Qe(s);continue e}})(0,t)}function yh(e,t){const n=ie(),r=nt((i,s)=>{if(e(s)){const a=new be(s,void 0);return i.tail=a,a}else return i},n,t),o=ie();return r.tail=o,Qe(n)}function bh(e,t){const n=ie(),r=ie(),o=n,i=nt((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new be(u,void 0),h.tail=f,f),d]:[h,(c=new be(u,void 0),d.tail=c,c)]},[o,r],t),s=ie();i[0].tail=s;const a=ie();return i[1].tail=a,[Qe(o),Qe(r)]}function vh(e,t){const n=ie(),r=nt((i,s)=>{const a=e(s);if(a==null)return i;{const l=new be(b(a),void 0);return i.tail=l,l}},n,t),o=ie();return r.tail=o,Qe(n)}function Nl(e,t,n){return _h(r=>n.Equals(e,r),t)!=null}const X=x;function Sh(e){throw new Error(e)}const Ch="Enumeration already finished.",Eh="Enumeration has not started. Call MoveNext.",Pl="The input sequence has an insufficient number of elements.",xh="Reset is not supported on this enumerator.";function kh(){throw new Error(xh)}function pi(){throw new Error(Eh)}function Oo(){throw new Error(Ch)}class $h{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ne(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Xe(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{G(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Th(e){return new $h(e)}class Mh{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"(){kh()}Dispose(){this.dispose()}}function Fr(e,t,n){return new Mh(e,t,n)}function Ah(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{G(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{G(a)}finally{t=void 0}}};return Fr(()=>(r?o&&Oo():pi(),i!=null?b(i):Oo()),()=>{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=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=pe(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{G(c)}finally{n=void 0}}else{const c=b(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ne(a)):(s(),l=!1)}else t=ne(e)}return b(l)}},()=>{o||s()})}function Ih(e,t){return Fr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{G(t)}finally{}})}function Dl(e,t,n){let r=!1,o,i=pe(e());const s=()=>{if(i!=null){const l=b(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Fr(()=>(r||pi(),o!=null?b(o):Oo()),()=>{if(r||(r=!0),i!=null){const l=b(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 Oh(e,t){let n,r=t;return Fr(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return pi()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function Nh(e,t){t==null&&Sh(e)}function fn(e){return Th(e)}function Ct(e){return Nh("source",e),ne(e)}function te(e){return fn(()=>ne(e()))}function Fl(e){return fn(()=>Ah(e))}function Ph(e,t){return fn(()=>Oh(e,t))}function Rl(){return te(()=>new Array(0))}function Ee(e){return te(()=>ah(e))}function Dh(e){return e instanceof be?Ln(e):Array.from(e)}function _r(e){return Je(e)?$(e):e instanceof be?e:gh(e)}function Fh(e,t,n){return fn(()=>Dl(e,t,n))}function Ll(e,t,n){return fn(()=>{let r=-1;return Dl(e,o=>(r=r+1|0,t(r,o)),n)})}function Ye(e,t){return Fl([e,t])}function Rh(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{G(o)}}finally{G(r)}}function Gt(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{G(r)}}function Rr(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{G(r)}}function Hl(e,t){Rr((n,r)=>{e(r)},void 0,t)}function Re(e,t){return Fh(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function Lh(e,t){return Ll(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?pe(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function Hh(e){return te(()=>lh(Dh(e)))}function Uh(e,t){return fn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Pl+"\\nParameter name: source");return Ih(()=>{},n)}catch(r){throw G(n),r}})}function Vh(e,t){return Ll(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return pe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Pl+"\\nParameter name: source")}else return},n=>{G(n)})}function jh(e,t){return te(()=>Fl(Re(e,t)))}function Bh(e){return new w(0,[e])}function Ul(e){return new w(1,[e])}class w extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function mt(e,t){return t.tag===0?Bh(e(t.fields[0])):Ul(t.fields[0])}function Gh(e,t){return t.tag===0?e(t.fields[0]):Ul(t.fields[0])}class S extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class dn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function cs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Vl(e,t){switch(e.tag){case 2:return Kd(cs(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return cs(t)}}const zh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Wh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function qh(e){function t(r){return r.replace(fs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(zh.test(n))return oh(n,"{","}","(",")");if(fs.test(n))return t(n);if(Wh.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 Yh(e,t){try{return t.contents=qh(e),!0}catch{return!1}}var No;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(No||(No={}));function Zh(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ds(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 Jh(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 Kh(e,t){if(t&No.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 Xh(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||Kh(i,t),!Jh(n).test(s))return Zh(o,n)}return null}function Qh(e,t,n,r,o){const i=Xh(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=ds(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=ds(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function hn(e,t,n,r,o){try{return o.contents=Qh(e,t,n,r),!0}catch{return!1}}function jl(e,t){ep(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function ep(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 tp(){return jl(-621355968e5,0)}function np(e){const[t,n]=vl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return jl(t.getTime(),r)}function rp(e,t){try{return t.contents=np(e),!0}catch{return!1}}function Hn(e){return e<0?Math.ceil(e):Math.floor(e)}function hs(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return op(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 op(e){return Number(BigInt(e)/10000n)}function ip(e){return Hn(e/864e5)}function sp(e){return Hn(e%864e5/36e5)}function ap(e){return Hn(e%36e5/6e4)}function lp(e){return Hn(e%6e4/1e3)}function up(e){return Hn(e%1e3)}function cp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(ip(e)),o=Math.abs(sp(e)),i=Math.abs(ap(e)),s=Math.abs(lp(e)),a=Math.abs(up(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):"."+qu(a,3,7)}`}function fp(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 hs(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*hs(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function dp(e,t){try{return t.contents=fp(e),!0}catch{return!1}}class Bl{constructor(t,n){this.k=t,this.v=n}}function yr(e,t){return new Bl(e,t)}function _e(e){return e.k}function Ie(e){return e.v}class oe extends Bl{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function rr(e,t,n,r,o){return new oe(e,t,n,r,o)}function ge(e){return e.left}function we(e){return e.right}function Pt(e){return e.h}function Gl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=Gl(n+1,ge(i)),t=we(i);continue e}else return n+1|0}else return n|0}}function hp(e){return Gl(0,e)}function Be(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof oe?(o=c,Pt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=b(u);l=c instanceof oe?(i=c,Pt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?yr(t,n):rr(t,n,e,r,f+1)}function ps(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const m=b(d);h=m instanceof oe?(o=m,Pt(o)):1}else h=0;let p;const g=r;if(g!=null){const m=b(g);p=m instanceof oe?(i=m,Pt(i)):1}else p=0;if(p>h+2){const m=b(r);if(m instanceof oe){const _=m;if(s=ge(_),(s!=null?(a=b(s),a instanceof oe?(l=a,Pt(l)):1):0)>h+1){const y=b(ge(_));if(y instanceof oe){const C=y;return Be(Be(e,t,n,ge(C)),_e(C),Ie(C),Be(we(C),_e(_),Ie(_),we(_)))}else throw new Error("internal error: Map.rebalance")}else return Be(Be(e,t,n,ge(_)),_e(_),Ie(_),we(_))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const m=b(e);if(m instanceof oe){const _=m;if(u=we(_),(u!=null?(f=b(u),f instanceof oe?(c=f,Pt(c)):1):0)>p+1){const y=b(we(_));if(y instanceof oe){const C=y;return Be(Be(ge(_),_e(_),Ie(_),ge(C)),_e(C),Ie(C),Be(we(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Be(ge(_),_e(_),Ie(_),Be(we(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Be(e,t,n,r)}function rn(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,_e(o))|0;if(o instanceof oe){const s=o;return i<0?ps(rn(e,t,n,ge(s)),_e(s),Ie(s),we(s)):i===0?rr(t,n,ge(s),we(s),Pt(s)):ps(ge(s),_e(s),Ie(s),rn(e,t,n,we(s)))}else return i<0?rr(t,n,void 0,r,2):i===0?yr(t,n):rr(t,n,r,void 0,2)}else return yr(t,n)}function zl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,_e(s))|0;if(a===0)return pe(Ie(s));if(s instanceof oe){const l=s;e=r,t=o,n=a<0?ge(l):we(l);continue e}else return}else return}}function pp(e,t,n){const r=zl(e,t,n);if(r==null)throw new Error;return b(r)}function mp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,_e(s))|0;if(s instanceof oe){const l=s;if(a<0){e=r,t=o,n=ge(l);continue e}else{if(a===0)return!0;e=r,t=o,n=we(l);continue e}}else return a===0}else return!1}}function Wl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;Wl(n,ge(i)),n(_e(i),Ie(i)),e=n,t=we(i);continue e}else n(_e(o),Ie(o))}break}}function gp(e,t){Wl(e,t)}function wp(e,t,n){let r=n;gp((o,i)=>{tt(t,r,[o,i]),r=r+1|0},e)}function _p(e,t){return nt((n,r)=>rn(e,r[0],r[1],n),void 0,t)}function yp(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=rn(r,s[0],s[1],o),n=i;continue e}else return o}}function bp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=J(r,t);n=rn(e,o[0],o[1],n)}return n}function ql(e,t){if(Je(t))return bp(e,t);if(t instanceof be)return _p(e,t);{const n=ne(t);try{return yp(e,void 0,n)}finally{G(n)}}}class vp extends He{constructor(t,n){super(),this.stack=t,this.started=n}}function Yl(e){e:for(;;){const t=e;if(I(t))return ue();{const n=M(t),r=E(t);if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=q([ge(i),yr(_e(i),Ie(i)),we(i)],n);continue e}else return t}else{e=n;continue e}}}}function ms(e){return new vp(Yl(ee(e)),!1)}function Sp(){throw new Error("enumeration not started")}function Cp(){throw new Error("enumeration already finished")}function gs(e){if(e.started){const t=e.stack;if(I(t))return Cp();if(E(t)!=null){const n=b(E(t));if(n instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_e(n),Ie(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Sp()}function Ep(e){if(e.started){const t=e.stack;if(I(t))return!1;if(E(t)!=null){if(b(E(t))instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Yl(M(t)),!I(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function ws(e){let t=ms(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return gs(t)},"System.Collections.IEnumerator.get_Current"(){return gs(t)},"System.Collections.IEnumerator.MoveNext"(){return Ep(t)},"System.Collections.IEnumerator.Reset"(){t=ms(e)},Dispose(){}}}class br{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Tp(this)|0}Equals(t){const n=this;if(t instanceof br){const r=t,o=ne(n);try{const i=ne(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Oe(l[0],u[0])&&Oe(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{G(i)}}finally{G(o)}}else return!1}toString(){return"map ["+un("; ",Re(n=>th("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return ws(this.tree)}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ws(this.tree)}CompareTo(t){const n=this;if(t instanceof br)return Rh((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Le(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ys(n,t[0])&&Oe(_s(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){wp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return no(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return no(this)|0}get size(){return no(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Re(n=>[n[0],n[1]],this)}get(t){return _s(this,t)}has(t){return ys(this,t)}keys(){return Re(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Re(n=>n[1],this)}forEach(t,n){const r=this;Hl(o=>{t(o[1],o[0],r)},r)}}function Lr(e,t){return new br(e,t)}function xp(e){return Lr(e,void 0)}function kp(e,t,n){return Lr(e.comparer,rn(e.comparer,t,n,e.tree))}function _s(e,t){return pp(e.comparer,t,e.tree)}function no(e){return hp(e.tree)}function ys(e,t){return mp(e.comparer,t,e.tree)}function $p(e,t){return zl(e.comparer,t,e.tree)}function Tp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=ne(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{G(r)}return n|0}function Zl(e,t,n){return kp(n,e,t)}function Jl(e,t){return $p(t,e)}function Mp(e,t){return Lr(t,ql(t,e))}function Ap(e,t){return Lr(t,ql(t,e))}function mi(e){return xp(e)}class Kl{constructor(t){this.k=t}}function $e(e){return new Kl(e)}function k(e){return e.k}class O extends Kl{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Te(e,t,n,r){return new O(e,t,n,r)}function U(e){return e.left}function F(e){return e.right}function qt(e){return e.h}function Xl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof O){const i=o;e=U(i),t=Xl(F(i),r+1);continue e}else return r+1|0}else return r|0}}function Ip(e){return Xl(e,0)}function Ge(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof O?(r=f,qt(r)):1}else i=0;let a;const l=n;if(l!=null){const f=b(l);a=f instanceof O?(o=f,qt(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?$e(t):Te(t,e,n,u+1)}function bs(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const g=b(h);c=g instanceof O?(r=g,qt(r)):1}else c=0;let d;const p=n;if(p!=null){const g=b(p);d=g instanceof O?(o=g,qt(o)):1}else d=0;if(d>c+2){const g=b(n);if(g instanceof O){const m=g;if(i=U(m),(i!=null?(s=b(i),s instanceof O?(a=s,qt(a)):1):0)>c+1){const _=b(U(m));if(_ instanceof O){const y=_;return Ge(Ge(e,t,U(y)),k(y),Ge(F(y),k(m),F(m)))}else throw new Error("internal error: Set.rebalance")}else return Ge(Ge(e,t,U(m)),k(m),F(m))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const g=b(e);if(g instanceof O){const m=g;if(l=F(m),(l!=null?(u=b(l),u instanceof O?(f=u,qt(f)):1):0)>d+1){const _=b(F(m));if(_ instanceof O){const y=_;return Ge(Ge(U(m),k(m),U(y)),k(y),Ge(F(y),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ge(U(m),k(m),Ge(F(m),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ge(e,t,n)}function on(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,k(r))|0;if(r instanceof O){const i=r;return o<0?bs(on(e,t,U(i)),k(i),F(i)):o===0?n:bs(U(i),k(i),on(e,t,F(i)))}else{const i=e.Compare(t,k(r))|0;return i<0?Te(t,void 0,n,2):i===0?n:Te(t,n,void 0,2)}}else return $e(t)}function Ql(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,k(s))|0;if(s instanceof O){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=F(l);continue e}}else return a===0}else return!1}}function eu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof O){const i=o;eu(n,U(i)),n(k(i)),e=n,t=F(i);continue e}else n(k(o))}break}}class Op extends He{constructor(t,n){super(),this.stack=t,this.started=n}}function tu(e){e:for(;;){const t=e;if(I(t))return ue();{const n=E(t),r=M(t);if(n!=null){const o=b(n);if(o instanceof O){const i=o;e=q([U(i),$e(k(i)),F(i)],r);continue e}else return t}else{e=r;continue e}}}}function vs(e){return new Op(tu(ee(e)),!1)}function Np(){throw new Error("Enumeration not started")}function Pp(){throw new Error("Enumeration already started")}function Ss(e){if(e.started){const t=e.stack;if(I(t))return Pp();if(E(t)!=null){const n=b(E(t));return k(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Np()}function Dp(e){if(e.started){const t=e.stack;if(I(t))return!1;if(E(t)!=null){if(b(E(t))instanceof O)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=tu(M(t)),!I(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function Cs(e){let t=vs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ss(t)},"System.Collections.IEnumerator.get_Current"(){return Ss(t)},"System.Collections.IEnumerator.MoveNext"(){return Dp(t)},"System.Collections.IEnumerator.Reset"(){t=vs(e)},Dispose(){}}}function Fp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(I(o))return I(i)?0:-1;if(I(i))return 1;if(E(i)!=null)if(E(o)!=null){const s=b(E(o)),a=b(E(i));if(s instanceof O){const l=s;if(U(l)==null)if(a instanceof O){const u=a;if(U(u)==null){const f=r.Compare(k(l),k(u))|0;if(f!==0)return f|0;e=r,t=Fe(F(l),M(o)),n=Fe(F(u),M(i));continue e}else{let f,c,h,d,p;switch(I(o)?I(i)?f=2:E(i)!=null?(f=1,d=M(i),p=b(E(i))):f=2:E(o)!=null?(f=0,c=M(o),h=b(E(o))):I(i)?f=2:E(i)!=null?(f=1,d=M(i),p=b(E(i))):f=2,f){case 0:if(h instanceof O){const g=h;e=r,t=q([U(g),Te(k(g),void 0,F(g),0)],c),n=i;continue e}else{e=r,t=q([void 0,$e(k(h))],c),n=i;continue e}case 1:if(p instanceof O){const g=p;e=r,t=o,n=q([U(g),Te(k(g),void 0,F(g),0)],d);continue e}else{e=r,t=o,n=q([void 0,$e(k(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(k(l),k(a))|0;if(u!==0)return u|0;e=r,t=Fe(F(l),M(o)),n=Fe(void 0,M(i));continue e}else{let u,f,c,h,d;switch(I(o)?I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2:E(o)!=null?(u=0,f=M(o),c=b(E(o))):I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2,u){case 0:if(c instanceof O){const p=c;e=r,t=q([U(p),Te(k(p),void 0,F(p),0)],f),n=i;continue e}else{e=r,t=q([void 0,$e(k(c))],f),n=i;continue e}case 1:if(d instanceof O){const p=d;e=r,t=o,n=q([U(p),Te(k(p),void 0,F(p),0)],h);continue e}else{e=r,t=o,n=q([void 0,$e(k(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof O){const l=a;if(U(l)==null){const u=r.Compare(k(s),k(l))|0;if(u!==0)return u|0;e=r,t=Fe(void 0,M(o)),n=Fe(F(l),M(i));continue e}else{let u,f,c,h,d;switch(I(o)?I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2:E(o)!=null?(u=0,f=M(o),c=b(E(o))):I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2,u){case 0:if(c instanceof O){const p=c;e=r,t=q([U(p),Te(k(p),void 0,F(p),0)],f),n=i;continue e}else{e=r,t=q([void 0,$e(k(c))],f),n=i;continue e}case 1:if(d instanceof O){const p=d;e=r,t=o,n=q([U(p),Te(k(p),void 0,F(p),0)],h);continue e}else{e=r,t=o,n=q([void 0,$e(k(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(k(s),k(a))|0;if(l!==0)return l|0;e=r,t=M(o),n=M(i);continue e}}else{b(E(i));let s,a,l,u,f;switch(I(o)?I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=M(o),l=b(E(o))):I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2,s){case 0:if(l instanceof O){const c=l;e=r,t=q([U(c),Te(k(c),void 0,F(c),0)],a),n=i;continue e}else{e=r,t=q([void 0,$e(k(l))],a),n=i;continue e}case 1:if(f instanceof O){const c=f;e=r,t=o,n=q([U(c),Te(k(c),void 0,F(c),0)],u);continue e}else{e=r,t=o,n=q([void 0,$e(k(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){b(E(o));let s,a,l,u,f;switch(I(o)?I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=M(o),l=b(E(o))):I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2,s){case 0:if(l instanceof O){const c=l;e=r,t=q([U(c),Te(k(c),void 0,F(c),0)],a),n=i;continue e}else{e=r,t=q([void 0,$e(k(l))],a),n=i;continue e}case 1:if(f instanceof O){const c=f;e=r,t=o,n=q([U(c),Te(k(c),void 0,F(c),0)],u);continue e}else{e=r,t=o,n=q([void 0,$e(k(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=M(o),n=M(i);continue e}}}function Es(e,t,n){return t==null?n==null?0:-1:n==null?1:Fp(e,ee(t),ee(n))|0}function Rp(e,t,n){let r=n;eu(o=>{tt(t,r,o),r=r+1|0},e)}function Lp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=on(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Hp(e,t){return Pr((n,r)=>on(e,r,n),void 0,t)}function Up(e,t){return nt((n,r)=>on(e,r,n),void 0,t)}function nu(e,t){if(Je(t))return Hp(e,t);if(t instanceof be)return Up(e,t);{const n=ne(t);try{return Lp(e,void 0,n)}finally{G(n)}}}class gi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Bp(this)|0}Equals(t){let n;const r=this;return t instanceof gi&&(n=t,Es(Jt(r),ze(r),ze(n))===0)}toString(){return"set ["+un("; ",Re(n=>Xe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Es(Jt(n),ze(n),ze(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 Ql(Jt(n),t,ze(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Rp(ze(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ro(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ro(this)|0}GetEnumerator(){return Cs(ze(this))}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Cs(ze(this))}get size(){return ro(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 ru(this,t)}keys(){return Re(n=>n,this)}values(){return Re(n=>n,this)}entries(){return Re(n=>[n,n],this)}forEach(t,n){const r=this;Hl(o=>{t(o,o,r)},r)}}function Hr(e,t){return new gi(e,t)}function Jt(e){return e.comparer}function ze(e){return e.tree}function Vp(e){return Hr(e,void 0)}function jp(e,t){return Hr(Jt(e),on(Jt(e),t,ze(e)))}function ro(e){return Ip(ze(e))}function ru(e,t){return Ql(Jt(e),t,ze(e))}function Bp(e){let t=0;const n=ne(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{G(n)}return Math.abs(t)|0}function Po(e,t){return ru(t,e)}function Gp(e,t){return jp(t,e)}function zp(e){return Vp(e)}function Wp(e,t){return Hr(t,nu(t,e))}function qp(e,t){return Hr(t,nu(t,e))}function _n(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
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 Yp(e,t){const n=t.tag===2?_n(t.fields[0],t.fields[1],!0):t.tag===1?_n(t.fields[0],t.fields[1],!1)+`
|
9
|
+
Reason: `+t.fields[2]:t.tag===3?_n(t.fields[0],t.fields[1],!0):t.tag===4?_n(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
10
|
+
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
11
|
+
|
12
|
+
`+un(`
|
13
|
+
|
14
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:_n(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ou(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new w(1,[Yp(o[0],o[1])])}else return new w(0,[r.fields[0]])}function wi(e,t){try{return ou("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function iu(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new S(0,["a string",t])]])}function Zp(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 Jp(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Yh(t,new Ue(()=>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 Kp(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new S(0,["null",t])]])}const xs=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=[hn(r,511,!1,8,new Ue(()=>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])]])},ks=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=[hn(r,511,!0,8,new Ue(()=>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])]])},$s=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=[hn(r,511,!1,16,new Ue(()=>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])]])},Ts=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=[hn(r,511,!0,16,new Ue(()=>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])]])},Ms=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=[hn(r,511,!1,32,new Ue(()=>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])]])},As=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=[hn(r,511,!0,32,new Ue(()=>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 Xp(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new S(0,["a boolean",t])]])}function Qp(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float",t])]])}function em(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float32",t])]])}function tm(e,t){if(typeof t=="string"){let n,r=zd();return n=[qd(t,new Ue(()=>r,o=>{r=o})),r],n[0]?new w(0,[Yd(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 nm(e,t){if(typeof t=="string"){let n,r=tp();return n=[rp(t,new Ue(()=>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 rm(e,t){if(typeof t=="string"){let n,r=0;return n=[dp(t,new Ue(()=>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 Is(e,t,n,r){let o;const i=n+".["+Dt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,J(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 om(e,t,n){return n==null?new w(0,[void 0]):mt(pe,e(t,n))}function Os(e,t,n){if(Array.isArray(n)){let r=-1;return mt(di,Pr((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,[ue()]),n))}else return new w(1,[[t,new S(0,["a list",n])]])}function im(e,t,n){if(Array.isArray(n)){let r=-1;return mt(Hh,Pr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Dt(r)+"]",i);return s.tag===0?new w(0,[Ye([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 Ns(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Pr((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?(tt(a,r,l.fields[0]),new w(0,[a])):new w(1,[l.fields[0]])}else return i},new w(0,[Nr(new Array(o.length),0,o.length,null)]),o)}else return new w(1,[[t,new S(0,["an array",n])]])}function sm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(I(s))return new w(1,[[t,new S(7,[a])]]);{const l=ou(t,Y(E(s)),n);if(l.tag===1){o=M(s),i=hi(a,ee(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,ue())}function am(e,t,n){return new w(0,[e])}function Ps(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 lm(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 um(e,t){let n;const r=e;return n=o=>i=>Is(0,r,o,i),o=>i=>Ps(bo(s=>{let a;const l=t;return a=u=>f=>Is(1,l,u,f),u=>f=>Ps((c,h,d)=>am([s,c]),Y(a),u,f)}),Y(n),o,i)}function cm(e){return Mp(e,{Compare:Le})}function fm(e){return qp(e,{Compare:Le})}function dm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Il((r,o)=>{const i=r[0];return o.tag===0?mt(s=>Fe(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new w(0,[ue()])):new w(1,[[t,new S(0,["an object",n])]])}function hm(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Rr((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,[Fe([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,[ue()]),Object.keys(r)):new w(1,[[n,new S(0,["an object",r])]])}function su(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,Rt(St("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new w(0,[ue()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Rt(St("%s[%i]"))(n)(a),f=J(a-e,t),c=J(a,r);s=mt(h=>Fe(h,l),f(u)(c))}return mt(di,s)}}function Ds(e,t,n,r,o,i){const s=uh(a=>Yt(a)===r,Wa(n));if(s!=null){const a=s,l=cn(u=>We(e,t,!1,u[1]),Ja(a));return mt(u=>Sc(a,Ln(u)),l.length===0&&i.length<=1?new w(0,[ue()]):su(1,l,o,i))}else return new w(1,[[o,new S(6,["Cannot find case "+r+" in "+j(n)])]])}function Fs(e,t,n,r){let o;const i=new Ue(Ke());let s;const a=j(r);s=a===""?e:Zl(a,i,e);let l;if(Za(r)){const u=cn(f=>[Vl(t,Yt(f)),We(s,t,!1,f[1])],xn(r));l=f=>c=>mt(h=>Cc(r,Ln(h)),dm(u,f,c))}else if(Ya(r))l=u=>f=>{if(typeof f=="string")return Ds(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Gh(h=>Ds(s,t,r,h,u,c),iu(u+"[0]",J(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 "+j(r),f])]]);else throw new Error((o=j(r),Rt(St(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
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 We(e,t,n,r){let o,i,s,a;const l=j(r),u=Jl(l,e);if(u==null)if(ja(r)){const f=We(e,t,!1,On(r));return c=>h=>Ns(Y(f),c,h)}else if(ti(r))switch(j(za(r))){case"System.SByte":return c=>h=>{const d=r,p=c,g=h,m=xs(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,g=h,m=ks(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,g=h,m=$s(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,Yu(_))]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,g=h,m=Ts(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,g=h,m=Ms(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,Dt(_))]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,g=h,m=As(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};default:{const c=j(r),h=xl(St(`Cannot generate auto decoder for %s.
|
17
|
+
Thoth.Json.Net only support the following enum types:
|
18
|
+
- sbyte
|
19
|
+
- byte
|
20
|
+
- int16
|
21
|
+
- uint16
|
22
|
+
- int
|
23
|
+
- uint32
|
24
|
+
If you can't use one of these types, please pass an extra decoder.
|
25
|
+
`))(c);return d=>h(d)}}else if(Ba(r))if(ni(r)){const f=cn(c=>We(e,t,!1,c),qa(r));return c=>h=>Array.isArray(h)?mt(d=>Ec(Ln(d)),su(0,f,c,h)):new w(1,[[c,new S(0,["an array",h])]])}else switch(j(Ga(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=We(e,t,!0,J(0,Me(r))),c=>h=>om(Y(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=We(e,t,!1,J(0,Me(r))),c=>h=>Os(Y(i),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=We(e,t,!1,J(0,Me(r))),c=>h=>im(Y(s),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=We(e,t,!1,J(0,Me(r))),h=We(e,t,!1,J(1,Me(r)));let d;const p=$([g=>m=>hm(Y(c),Y(h),g,m),(a=um(Y(c),Y(h)),g=>m=>Os(Y(a),g,m))]);return d=g=>m=>sm(p,g,m),g=>m=>lm(cm,Y(d),g,m)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=We(e,t,!1,J(0,Me(r)));return h=>d=>{const p=Ns(Y(c),h,d);return p.tag===0?new w(0,[fm(p.fields[0])]):new w(1,[p.fields[0]])}}default:return Fs(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>Xp(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Kp(f,c);case"System.String":return f=>c=>iu(f,c);case"System.Char":return f=>c=>Zp(f,c);case"System.SByte":return xs;case"System.Byte":return ks;case"System.Int16":return $s;case"System.UInt16":return Ts;case"System.Int32":return Ms;case"System.UInt32":return As;case"System.Double":return f=>c=>Qp(f,c);case"System.Single":return f=>c=>em(f,c);case"System.DateTime":return f=>c=>tm(f,c);case"System.DateTimeOffset":return f=>c=>nm(f,c);case"System.TimeSpan":return f=>c=>rm(f,c);case"System.Guid":return f=>c=>Jp(f,c);case"System.Object":return f=>c=>new w(0,[c]);default:return Fs(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function pm(e){return mi({Compare:xr})}function _i(e,t,n){const r=Io(t,new dn(0,[]));return We(pm(),r,!1,e)}class mm{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 yi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yi.prototype)}}class bi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>bi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function bt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new yi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(lr(n))}});else try{e(t)}catch(n){t.onError(lr(n))}}}function gm(e,t){return bt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(lr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function wm(e){return bt(t=>t.onSuccess(e))}class _m{Bind(t,n){return gm(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return bt(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 wm(t)}ReturnFrom(t){return t}TryFinally(t,n){return bt(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 bt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(lr(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 bt(t=>t.onSuccess(void 0))}}const R=new _m;function ym(e){return new au(0,[e])}function bm(e){return new au(1,[e])}class au extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function vm(e){return ym(e)}function Sm(e){return bm(e)}function oo(e){}const Cm=new mm;function Em(e){return bt(t=>{e({onSuccess:n=>t.onSuccess(vm(n)),onError:n=>t.onSuccess(Sm(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function xm(e){return bt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function km(e,t){return Tm(e,t)}function $m(e,t){return km(e,t)}function Tm(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new bi;e({onSuccess:t||oo,onError:oo,onCancel:oo,cancelToken:o||Cm,trampoline:i})}class Ur extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Mm extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class lu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Un extends He{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 zt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class uu extends He{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 Am(e){return new Mm("Authorization",e)}const Tt=new Un("",new Ur(0,[]),ue(),!1,void 0,void 0,void 0,new lu(0,[]));new uu(0,"","","",mi({Compare:xr}),new zt(0,[""]));function Rs(e,t){return nh(t)?new Array(0):Tl(t,[e],void 0,0)}function Im(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 vi(e){return new Un(e,Tt.method,Tt.headers,Tt.withCredentials,Tt.overridenMimeType,Tt.overridenResponseType,Tt.timeout,Tt.content)}function Si(e,t){return new Un(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Om(e,t){return new Un(t.url,t.method,hi(t.headers,ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Nm(e,t){return new Un(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ls(e){return xm(t=>{const n=new XMLHttpRequest;n.open(Im(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 zt(0,[n.responseText]):d==="text"?new zt(0,[n.responseText]):d==="arraybuffer"?new zt(2,[n.response]):d==="blob"?new zt(1,[n.response]):new zt(3,[n.response])),p=Ap(ch(g=>{const m=$(Rs(":",g));if(!I(m))return[E(m).toLocaleLowerCase(),un(":",M(m)).trim()]},Rs(`\r
|
26
|
+
`,n.getAllResponseHeaders())),{Compare:xr}),new uu(f,l,c,n.responseURL,p,h)))};const r=ne(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{G(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(pe(a.fields[0]));break}case 3:{n.send(pe(a.fields[0]));break}case 2:{n.send(pe(a.fields[0]));break}default:n.send()}})}function Pm(e){return e}const cu=Ke();function Kn(e){return Array.from(e)}function Dm(e){return Or(e,"O")}function Fm(e){return cp(e)}function Rm(){return Ke()}function Lm(e){return Or(e,"O")}function Hm(e,t){return JSON.stringify(t,void 0,pe(e))}function Um(e){return t=>ih(sh(e,t),()=>cu)}function Hs(e,t,n,r){let o;const i=new Ue(Ke());let s;const a=j(r);s=a===""?e:Zl(a,i,e);let l;if(Za(r)){const u=cn(f=>{const c=Vl(t,Yt(f)),h=st(s,t,n,f[1]);return d=>p=>{const g=vc(d,f);return(!n||n&&g!=null)&&(p[c]=h(g)),p}},xn(r));l=f=>Rr((c,h)=>h(f)(c),{},u)}else if(Ya(r))l=u=>{const f=bc(u,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return Yt(c);{const p=d|0,g=Ja(c),m=Nr(new Array(p+1),0,p+1,null);tt(m,0,Yt(c));for(let _=1;_<=p;_++){const y=st(s,t,n,J(_-1,g)[1]);tt(m,_,y(J(_-1,h)))}return m}};else throw new Error((o=j(r),Rt(St(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
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 st(e,t,n,r){const o=j(r),i=Jl(o,e);if(i==null)if(ja(r)){const s=st(e,t,n,On(r));return a=>Kn(Re(s,a))}else if(ti(r))switch(j(za(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=j(r);return xl(St(`Cannot generate auto encoder for %s.
|
29
|
+
Thoth.Json.Net only support the following enum types:
|
30
|
+
- sbyte
|
31
|
+
- byte
|
32
|
+
- int16
|
33
|
+
- uint16
|
34
|
+
- int
|
35
|
+
- uint32
|
36
|
+
|
37
|
+
If you can't use one of these types, please pass an extra encoder.
|
38
|
+
|
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(Ba(r))if(ni(r)){const s=cn(a=>st(e,t,n,a),qa(r));return a=>Kn(Lh((l,u)=>J(l,s)(u),a))}else{const s=j(Ga(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Wu(()=>Um(st(e,t,n,J(0,Me(r)))));return l=>l==null?cu: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=st(e,t,n,J(0,Me(r)));return l=>Kn(Re(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=J(0,Me(r)),l=st(e,t,n,J(1,Me(r)));if(j(a)==="System.String"||j(a)==="System.Guid")return u=>Rr((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=st(e,t,n,a),c=>Kn(Re(h=>{const d=h;return[u(d[0]),l(d[1])]},c))}}else return Hs(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Rm;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 Lm;case"System.DateTimeOffset":return Dm;case"System.TimeSpan":return Fm;case"System.Guid":return Pm;case"System.Object":return s=>s;default:return Hs(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function Vm(e){return mi({Compare:xr})}function jm(e,t,n,r){const o=Io(t,new dn(0,[])),i=Io(r,!0);return st(Vm(),o,i,e)}class fu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inherited","Default","Specific"]}}function Bm(){return gc("BankDetails.AdminUI.Service.ConfigOwnership",[],fu,()=>[[],[],[]])}class vr extends He{constructor(t,n,r){super(),this.MaxAccounts=t|0,this.ConfigOwnership=n,this.AllowPercentageSplit=r}}function Gm(){return La("BankDetails.AdminUI.Service.Model",[],vr,()=>[["MaxAccounts",Va],["ConfigOwnership",Bm()],["AllowPercentageSplit",Ua]])}function zm(){return new vr(0,new fu(1,[]),!1)}class Wm extends He{constructor(t){super(),this.Message=t}}function qm(){return La("BankDetails.AdminUI.Service.ErrorMessage",[],Wm,()=>[["Message",Co]])}function Ci(e){return`${e}/bank-details/admin`}function Ei(e,t){return R.Delay(()=>{const n=Om(Am(`Bearer ${e}`),t);let r;const o=Ls(n);return r=R.Bind(o,i=>R.Return(new w(0,[i]))),R.Bind(r,i=>{const s=i;if(s.tag===1)return R.Return(new w(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Ls(n);return R.Bind(l,u=>R.Return(new w(0,[u])))}else return R.Return(new w(0,[a]))}})})}function xi(e,t){const n=wi(Y(_i(qm(),new dn(1,[]))),t);return n.tag===0?new w(1,[n.fields[0].Message]):new w(1,[Rt(Qd("Error code: %d%P()",[e]))])}function Ym(e,t,n,r){return R.Delay(()=>{let o;const i=Ei(t,Si(new Ur(0,[]),vi((o=Ci(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${b(r)}/config`))));return R.Bind(i,s=>{const a=s;if(a.tag===1)return R.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=wi(Y(_i(Gm(),new dn(1,[]))),l.responseText);return R.Return(u)}else{const u=xi(l.statusCode,l.responseText);return R.Return(u)}}})})}function Zm(e,t,n,r,o,i){return R.Delay(()=>{let s,a;const l=Ci(e);a=r==null?`${l}/partners/${n}/config`:`${l}/partners/${n}/accounts/${r}/config`;const u=Ei(t,Si(new Ur(2,[]),Nm(new lu(1,[(s={AllowPercentageSplit:i,MaxAccounts:o},Hm(0,jm(Ha(["AllowPercentageSplit",Ua],["MaxAccounts",Va]),new dn(1,[]),void 0,void 0)(s)))]),vi(a))));return R.Bind(u,f=>{const c=f;if(c.tag===1)return R.Return(new w(1,[c.fields[0]]));{const h=c.fields[0];if(h.statusCode===200)return R.Return(new w(0,[void 0]));{const d=xi(h.statusCode,h.responseText);return R.Return(d)}}})})}function Jm(e,t,n,r){return R.Delay(()=>{let o;const i=Ei(t,Si(new Ur(4,[]),vi((o=Ci(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${b(r)}/config`))));return R.Bind(i,s=>{const a=s;if(a.tag===1)return R.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return R.Return(new w(0,[void 0]));{const u=xi(l.statusCode,l.responseText);return R.Return(u)}}})})}class Km{constructor(t,n,r,o){this.baseUrl=t,this.accessToken=n,this.partnerId=r,this.accountId=o}}function Xm(e,t,n,r){return new Km(e,t,n,r)}function Qm(e){return Ym(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function e0(e,t){return Zm(e.baseUrl,e.accessToken,e.partnerId,e.accountId,t.MaxAccounts,t.AllowPercentageSplit)}function t0(e){return Jm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}class Kt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class n0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function r0(e,t){t.Subscribe(new n0(e))}class o0{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 s0(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 i0=class extends o0{};function s0(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 a0{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 i0}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 l0(e,t){console.error(pe(e),t)}function u0(e,t){let n,r=new a0(e);r.AutoReset=!1,n=r,r0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Us(e,t,n){Tn(r=>{try{r(t)}catch(o){e(o)}},n)}function it(){return ue()}function Xn(e){return wh(e)}function io(e,t,n,r){return ee(o=>{e(R.Delay(()=>R.Bind(Em(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),R.Zero()})))})}function so(e){u0(1,t=>{$m(e)})}class ki extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function c0(e){return new ki(e)}function f0(e){return Ol(c0,e)}function d0(e){if(Nl(new ki("BankDetails.Access"),e,{Equals:Oe,GetHashCode:Oa}))return pe(void 0)}function h0(e){if(Nl(new ki("BankDetails.EditConfig"),e,{Equals:Oe,GetHashCode:Oa}))return pe(void 0)}class Vs extends He{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function du(e){return h0(e.Roles)!=null}function p0(e){let t;const n=Tl(e??"",["."],void 0,0);if(!fh((r,o)=>r===o,n)&&n.length===3){let r;const o=J(1,n);r=atob(o),t=wi(Y(_i(Ha(["Name",Co],["Roles",wc(Co)]),new dn(1,[]))),r)}else t=new w(1,["Failed to identify the user"]);if(t.tag===1)return new Vs(void 0,ue());{const r=t.fields[0];return new Vs(r.Name,f0($(r.Roles)))}}class ke extends He{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 Cn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function m0(){return new ke(zm(),void 0,!0,new Cn(0,[]),!1,!1)}function js(e){return e.Mode.tag!==0}class le extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function or(){return new le(2,[new Kt(0,[void 0])])}function g0(){return new le(3,[new Kt(0,[void 0])])}function w0(){return new le(4,[new Kt(0,[void 0])])}function _0(e){let t,n;return[(t=m0(),new ke(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,du(e))),(n=or(),ee(r=>{r(n)}))]}function y0(e,t,n,r){let o,i,s,a,l,u;switch(n.tag){case 5:return[new ke(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,n.fields[0].tag===0&&du(e)),it()];case 6:return[r,Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(o=or(),ee(f=>{f(o)}))]))];case 0:return[new ke((i=r.Config,new vr(n.fields[0],i.ConfigOwnership,i.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()];case 1:return[new ke((s=r.Config,new vr(s.MaxAccounts,s.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()];case 2:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),io(f=>{so(f)},()=>Qm(t),void 0,f=>new le(2,[new Kt(1,[f])]))];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(a=or(),ee(f=>{f(a)}))]))]:[r,io(f=>{so(f)},f=>e0(t,f),r.Config,f=>new le(3,[new Kt(1,[f])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(l=or(),ee(f=>{f(l)}))]))]:[r,io(f=>{so(f)},()=>t0(t),void 0,f=>new le(4,[new Kt(1,[f])]))];case 8:return[r,Xn($([ee(f=>{f(new le(7,[!1]))}),(u=w0(),ee(f=>{f(u)}))]))];default:return[new ke(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),it()]}}const b0=v("svg",B($([["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=ee(v("path",B($([["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))]})()]))),v0=v("svg",B($([["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=ee(v("path",B($([["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))]})()]))),S0=v("svg",B($([["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=ee(v("path",B($([["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 ao extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function C0(e){return v(bl.Root,xt(e,1))}class de extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Bs(e){return v(bl.Child,xt(e,1))}let yn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function E0(e){return v(ai,xt(e,1))}class lo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function x0(e){return v(ai.Panel,xt(e,1))}class Qn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function k0(e){return v(ai.Title,xt(e,1))}class $0 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class T0 extends He{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 M0(e){let t,n,r,o;return C0($([new ao(0,["1"]),new ao(2,[e.show]),new ao(3,[[E0($([new yn(1,["1"]),new yn(0,["div"]),new yn(2,["relative z-10"]),new yn(4,[e.cancelButtonClick]),new yn(5,[[Bs($([new de(0,["1"]),new de(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new de(4,["ease-out duration-300"]),new de(5,["opacity-0"]),new de(6,["opacity-100"]),new de(7,["ease-in duration-200"]),new de(8,["opacity-100"]),new de(9,["opacity-0"])])),v("div",B($([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",B($([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Bs($([new de(0,["1"]),new de(4,["ease-out duration-300"]),new de(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new de(6,["opacity-100 translate-y-0 sm:scale-100"]),new de(7,["ease-in duration-200"]),new de(8,["opacity-100 translate-y-0 sm:scale-100"]),new de(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new de(10,[[x0($([new lo(0,["1"]),new lo(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 lo(2,[[v("div",B($([["key","1"],["className","sm:flex sm:items-start"],(r=_r(te(()=>{let i,s,a;return Ye((i=e.dialogIcon,i==null?Rl():(s=i,Ee(v("div",B($([["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])]])))))),te(()=>{let l,u;return Ee(v("div",B($([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[k0($([new Qn(1,["1"]),new Qn(0,["h3"]),new Qn(2,["text-lg font-medium leading-6 text-gray-900"]),new Qn(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",B($([["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",B($([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=_r(te(()=>Ye(Ee(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})),te(()=>{let i;return Ee(v("button",B($([["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 A0(){return ue()}function $i(e){return un("/",e)}function I0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+$i(t),n])}function hu(e,t,n){try{G(n)}catch(r){e(["Error stopping subscription: "+$i(t),r])}}function O0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+$i(n),o]);return}}function N0(e,t){Tn(n=>{hu(e,n[0],n[1])},t)}function Gs(e,t,n,r,o,i){return Tn(s=>{I0(e,s)},n),Tn(s=>{hu(e,s[0],s[1])},r),hi(o,vh(s=>O0(e,t,s[0],s[1]),i))}function P0(){return[ue(),zp({Compare:Le}),ue()]}function D0(e,t,n,r,o){return Po(e,r)?[Fe(e,n),r,o]:[n,Gp(e,r),Fe([e,t],o)]}function F0(e){return mh((t,n)=>D0(t[0],t[1],n[0],n[1],n[2]),e,P0())}const R0=ue();function zs(e,t){const n=Wp(Ol(s=>s[0],e),{Compare:Le}),r=F0(t),o=r[1],i=r[0];if(n.Equals(o))return[i,ue(),e,ue()];{const s=bh(a=>Po(a[0],o),e);return[i,s[1],s[0],yh(a=>!Po(a[0],n),r[2])]}}function L0(e,t,n,r){const o=Le(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=Le(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function H0(e,t,n,r,o){const i=L0(t,n,r,o);return te(()=>Ph(i,e))}function U0(e,t,n){return H0(e,t,n,0,(r,o)=>r+o)}class Xt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class V0{constructor(t){this.state=new Xt(0,[Nr(new Array(us(t,10)),0,us(t,10),null),0])}}function j0(e){return new V0(e)}function Ws(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 Xt(0,[o,n]):e.state=new Xt(1,[o,n,i]),pe(J(r,o))}else return}function B0(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];tt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new Xt(1,[G0(e,o,i),i.length,0]):e.state=new Xt(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];tt(o,r,t);const i=(r+1)%o.length|0;e.state=new Xt(1,[o,i,r])}}function G0(e,t,n){return Array.from(te(()=>Ye(Uh(t,n),te(()=>Ye(Vh(t,n),te(()=>jh(r=>Ee(Ke()),U0(0,1,n.length))))))))}class Ti extends He{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 z0(e,t,n){return new Ti(e,t,r=>A0(),n,Y(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{l0(r[0],r[1])},[r=>!1,r=>{}])}function W0(e,t){return new Ti(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function q0(e){return e.init}function Y0(e,t,n,r,o,i,s){const a=At(e)(s.init),l=qr(t)(At(s.update)),u=qr(n)(At(s.view)),f=qr(r)(At(s.setState));return new Ti(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=j0(10);let u=!1,f=i,c=R0,h=!1;const d=m=>{h||(B0(l,m),u||(u=!0,g(),u=!1))},p=At(e)(d),g=()=>{let m,_=Ws(l);for(;!h&&_!=null;){const y=b(_);if(a[0](y))N0(n.onError,c),a[1](f),h=!0;else{const C=n.update(y,f),D=C[0],W=n.subscribe(D);n.setState(D,p),Us(Q=>{n.onError([Rt(St("Error handling the message: %A"))(y),Q])},p,C[1]),f=D,c=(m=zs(c,W),Gs(n.onError,p,m[0],m[1],m[2],m[3])),_=Ws(l)}}};u=!0,n.setState(i,p),Us(m=>{n.onError([Rt(St("Error intitializing:")),m])},p,o[1]),c=(r=zs(c,s),Gs(n.onError,p,r[0],r[1],r[2],r[3])),g(),u=!1}function J0(e,t){Z0(Y(n=>n),e,t)}function K0(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 uo={exports:{}},co={};const X0=K0(tn);/**
|
41
|
+
* @license React
|
42
|
+
* use-sync-external-store-shim.production.js
|
43
|
+
*
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
45
|
+
*
|
46
|
+
* This source code is licensed under the MIT license found in the
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
48
|
+
*/var qs;function Q0(){if(qs)return co;qs=1;var e=X0;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 co.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,co}var Ys;function eg(){return Ys||(Ys=1,uo.exports=Q0()),uo.exports}var tg=eg();class ng{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=q0(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=_o(this.state[0]);return J0(this.arg,W0((d,p)=>{const g=this.state;this.finalDispatch=p,this.state=[d,g[1],!0,i],d!==g[0]&&f()},Y0((d,p)=>{const g=this.cmd;return this.cmd=it(),[this.state[0],g]},(d,p,g)=>d(p)(this.state[0]),bo(d=>d),bo(d=>d),Y(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const g=p;_o(g)?G(g):d[1](p)}],o))),()=>{c=!0}}}}function Zs(e,t,n){return new ng(e,t,n)}function rg(e){return e.state}function og(e){return e.subscribe}function ig(e,t,n){return Oe(e.arg,t)?!Oe(e.dependencies,n):!0}function sg(e,t,n){const r=re(()=>Zs(e,t,n)),o=r[0];ig(o,t,n)&&r[1](Zs(e,t,n));const i=tg.useSyncExternalStore(og(o),()=>rg(o)),s=i[2],a=i[3],l=i[1];return H(()=>{if(s&&a.length>0){let u=ne(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{G(u)}rc(a)}},[s,a]),[i[0],l]}const ag='*,: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}}',lg=Xe(ag);function Mi(){return(Mi=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 ug=["context","children"];function cg(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,ug);return Vo(t,n)}function fg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(cg,Mi({},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[pu(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(Js,{name:f},u):o[s]=u}var c=r?v(Js,null,o):o;return v(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Uo:vt)(this._vdom,this._root)}function pu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function dg(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[pu(e)]=n,this._vdom=Vo(this._vdom,r),vt(this._vdom,this._root)}}function hg(){vt(this._vdom=null,this._root)}function Js(e,t){var n=this;return v("slot",Mi({},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 pg(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=dg,o.prototype.disconnectedCallback=hg,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 mg(e,t){pg(e,t)}function mu(e){return e.tag===2?"":`(${e})`}function gg(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return v("div",B($([["className","mt-3"],(t=[Dd(ee(new Pd([Od($([new qn(0,[i]),new qn(1,[s=>{r&&n(s)}]),new qn(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 qn(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`})]])])),Nd($([new ts(0,["ml-3"]),new ts(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))])))],["children",X.Children.toArray(Array.from(t))])])))}function wg(e){let t;return v("div",B($([["className","mt-4"],(t=[v("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${mu(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(nc(r))},disabled:e.readOnly})],["children",X.Children.toArray(Array.from(t))])])))}function Ks(e){let t;const n=e.msg;return v("div",B($([["className","text-sm font-medium text-gray-900 my-5"],(t=[v("span",{children:[n]})],["children",X.Children.toArray(Array.from(t))])])))}function _g(e,t,n){let r,o;const i=e.tag===2&&t?"":"hidden";return v("div",B($([["className","flex-1"],(r=[v("div",B($([["className","flex flex-row space-x-2"],(o=_r(te(()=>{let s,a;return t?Ye(Ee(v("button",B($([(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 le(5,[new Cn(1,[])]))}],["children",X.Children.toArray([v0])]])))),te(()=>Ee(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 le(7,[!0]))},children:X.Children.toArray([S0])})))):Ye(Ee(v("button",B($([(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(g0())}]])))),te(()=>{let l;return Ee(v("button",B($([(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 le(6,[]))}]]))))}))})),["children",X.Children.toArray(Array.from(o))])])))],["children",X.Children.toArray(Array.from(r))])])))}function yg(e){let t;return v("div",B($([["className","flex-1"],(t=[v("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${mu(e)}`})],["children",X.Children.toArray(Array.from(t))])])))}function bg(e){return M0(new T0(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",b0,"Reset",()=>{e(new le(8,[]))},new $0(1,[]),"Cancel",()=>{e(new le(7,[!1]))}))}function vg(e){let t;const n=p0(e.accessToken),r=Xm(e.backendUrl,e.accessToken,e.partnerId,e.accountId);let o;const i=_0(n);o=sg(()=>z0(()=>i,(h,d)=>y0(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(Ks,{msg:u}):l=Ke();const f=d0(n.Roles)!=null?s.IsLoading?s.Error==null?v("div",{children:["Please wait"]}):l:v("div",B($([["className","mt-5"],(t=_r(te(()=>{let h;return Ye(Ee(v("div",B($([["className","flex"],(h=[yg(s.Config.ConfigOwnership),_g(s.Config.ConfigOwnership,s.ShowEditButton,a)],["children",X.Children.toArray(Array.from(h))])])))),te(()=>Ye(Ee(v(wg,{configOwnership:s.Config.ConfigOwnership,handleMaxAccountChanged:d=>{a(new le(0,[d]))},readOnly:!js(s),selected:s.Config.MaxAccounts})),te(()=>Ye(Ee(v(gg,{isChecked:s.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:js(s),onChange:d=>{a(new le(1,[d]))}})),te(()=>Ye(s.ShowConfirmationDialog?Ee(bg(a)):Rl(),te(()=>Ee(l)))))))))})),["children",X.Children.toArray(Array.from(t))])]))):v(Ks,{msg:"You do not have the appropriate permissions to view this information"}),c=$([v("style",{children:[lg]}),f]);return v("div",{children:X.Children.toArray(Array.from(c))})}mg(e=>v(vg,e),"superhero-bank-details");
|
package/package.json
CHANGED
@@ -1,26 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flarehr/superhero-bank-details",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.12.0",
|
4
|
+
"type": "module",
|
4
5
|
"description": "Flare Superhero Bank Details Components",
|
5
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
7
|
"files": [
|
7
8
|
"dist/"
|
8
9
|
],
|
9
10
|
"scripts": {
|
10
|
-
"
|
11
|
-
"
|
11
|
+
"postinstall": "dotnet tool restore",
|
12
|
+
"start": "dotnet fable watch . -s --run vite",
|
13
|
+
"build": "dotnet fable . -s --run vite build --emptyOutDir"
|
12
14
|
},
|
13
15
|
"dependencies": {
|
14
16
|
"@headlessui/react": "^1.7.8",
|
15
|
-
"preact": "^10.
|
16
|
-
"preact-custom-element": "^4.
|
17
|
+
"preact": "^10.25.4",
|
18
|
+
"preact-custom-element": "^4.3.0",
|
19
|
+
"use-sync-external-store": "^1.4.0"
|
17
20
|
},
|
18
21
|
"devDependencies": {
|
19
|
-
"@
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
22
|
+
"@preact/preset-vite": "^2.9.4",
|
23
|
+
"tailwindcss": "^3.4.17",
|
24
|
+
"autoprefixer": "^10.4.20",
|
25
|
+
"postcss": "^8.4.49",
|
26
|
+
"cssnano": "^7.0.6",
|
27
|
+
"vite": "^6.0.7"
|
25
28
|
}
|
26
29
|
}
|