@flarehr/superhero-bank-details 0.1.939 → 0.1.948
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
(()=>{"use strict";var e,n,t,r,o,i,u={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return h(n,s,o,i,null)}function h(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function d(e){return e.children}function _(e,n){this.props=e,this.context=n}function p(e,n){if(null==n)return e.__?p(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?p(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=c({},o)).__v=o.__v+1,T(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?p(o):i,o.__h),I(t,o),o.__e!=i&&m(o)))}))}function w(e,n,t,r,o,i,l,c,a,f){var _,m,g,y,w,b,S,E=r&&r.__k||s,x=E.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(y=t.__k[_]=null==(y=n[_])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?h(null,y,null,null,y):Array.isArray(y)?h(d,{children:y},null,null,null):y.__b>0?h(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(g=E[_])||g&&y.key==g.key&&y.type===g.type)E[_]=void 0;else for(m=0;m<x;m++){if((g=E[m])&&y.key==g.key&&y.type===g.type){E[m]=void 0;break}g=null}T(e,y,g=g||u,o,i,l,c,a,f),w=y.__e,(m=y.ref)&&g.ref!=m&&(S||(S=[]),g.ref&&S.push(g.ref,null,y),S.push(m,y.__c||w,y)),null!=w?(null==b&&(b=w),"function"==typeof y.type&&y.__k===g.__k?y.__d=a=v(y,a,e):a=C(e,y,g,E,w,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=p(g))}for(t.__e=b,_=x;_--;)null!=E[_]&&N(E[_],E[_]);if(S)for(_=0;_<S.length;_++)M(S[_],S[++_],S[++_])}function v(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?v(r,n,t):C(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function S(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||l.test(n)?t:t+"px"}function E(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?k:x,i):e.removeEventListener(n,i?k:x,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&-1==n.indexOf("-")?e.removeAttribute(n):e.setAttribute(n,t))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function k(e){this.l[e.type+!0](n.event?n.event(e):e)}function T(e,t,r,o,i,u,s,l,a){var f,h,p,m,g,y,v,b,C,S,E,x,k,T,I,M=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(a=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof M){if(b=t.props,C=(f=M.contextType)&&o[f.__c],S=f?C?C.props.value:f.__:o,r.__c?v=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(b,S):(t.__c=h=new _(b,S),h.constructor=M,h.render=A),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=S,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=c({},h.__s)),c(h.__s,M.getDerivedStateFromProps(b,h.__s))),m=h.props,g=h.state,p)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&b!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,S)||t.__v===r.__v){for(h.props=b,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,y)}))}if(h.context=S,h.props=b,h.__v=t,h.__P=e,x=n.__r,k=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(o=c(c({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(y=h.getSnapshotBeforeUpdate(m,g)),I=null!=f&&f.type===d&&null==f.key?f.props.children:f,w(e,Array.isArray(I)?I:[I],t,r,o,i,u,s,l,a),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=O(r.__e,t,r,o,i,u,s,a);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(a||null!=u)&&(t.__e=l,t.__h=!!a,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function I(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function O(n,t,r,o,i,s,l,c){var f,h,d,_=r.props,m=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=s)for(;y<s.length;y++)if((f=s[y])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){n=f,s[y]=null;break}if(null==n){if(null===g)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)_===m||c&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),h=(_=r.props||u).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!c){if(null!=s)for(_={},y=0;y<n.attributes.length;y++)_[n.attributes[y].name]=n.attributes[y].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||E(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||E(e,i,n[i],t[i],r)}(n,m,_,i,c),d)t.__k=[];else if(y=t.props.children,w(n,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,s,l,s?s[0]:r.__k&&p(r,0),c),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);c||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===g&&!y||"option"===g&&y!==_.value)&&E(n,"value",y,_.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&E(n,"checked",y,_.checked,!1))}return n}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function N(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__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]&&N(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||a(e.__e),e.__=e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function D(t,r,o){var i,s,l;n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=f(d,null,[t]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:s?s.__e:r.firstChild,i),I(l,t)}function R(e,n){D(e,n,R)}function G(n,t,r){var o,i,u,s=c({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),h(n.type,s,o||n.key,i||n.ref,null)}e=s.slice,n={__e:function(e,n,t,r){for(var o,i,u;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),u=o.__d),u)return o.__E=o}catch(n){e=n}throw e}},t=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},t),this.props)),e&&c(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),g(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},_.prototype.render=d,r=[],y.__r=0,i=0;var P,U,$,F,H=0,j=[],B=[],L=n.__b,V=n.__r,W=n.diffed,q=n.__c,z=n.unmount;function J(e,t){n.__h&&n.__h(U,e,H||t),H=0;var r=U.__H||(U.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:B}),r.__[e]}function Z(e){return H=1,Y(ue,e)}function Y(e,n,t){var r=J(P++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ue(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.u)){U.u=!0;var o=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,n,t){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,n,t);var u=!1;return i.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}})),!(!u&&r.__c.props===e)&&(!o||o.call(this,e,n,t))}}return r.__N||r.__}function X(e,t){var r=J(P++,3);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__H.__h.push(r))}function K(e,t){var r=J(P++,4);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__h.push(r))}function Q(e,n){var t=J(P++,7);return ie(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function ee(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){U=null,L&&L(e)},n.__r=function(e){V&&V(e),P=0;var n=(U=e.__c).__H;n&&($===U?(n.__h=[],U.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(n.__h.forEach(re),n.__h.forEach(oe),n.__h=[])),$=U},n.diffed=function(e){W&&W(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&F===n.requestAnimationFrame||((F=n.requestAnimationFrame)||te)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),$=U=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),q&&q(e,t)},n.unmount=function(e){z&&z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var ne="function"==typeof requestAnimationFrame;function te(e){var n,t=function(){clearTimeout(r),ne&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);ne&&(n=requestAnimationFrame(t))}function re(e){var n=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=n}function oe(e){var n=U;e.__c=e.__(),U=n}function ie(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ue(e,n){return"function"==typeof n?n(e):n}function se(e,n){for(var t in n)e[t]=n[t];return e}function le(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function ce(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function ae(e){this.props=e}(ae.prototype=new _).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,n){return le(this.props,e)||le(this.state,n)};var fe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,de=function(e,n){return null==e?null:b(b(e).map(n))},_e={map:de,forEach:de,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},pe=n.__e;n.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);pe(e,n,t,r)};var me=n.unmount;function ge(e,n,t){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=se({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ge(e,n,t)}))),e}function ye(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ye(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function we(){this.__u=0,this.t=null,this.__b=null}function ve(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function be(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),me&&me(e)},(we.prototype=new _).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=ve(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ye(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},we.prototype.componentWillUnmount=function(){this.t=[]},we.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ge(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&f(d,null,e.fallback);return o&&(o.__h=null),[f(d,null,n.__a?null:e.children),o]};var Ce=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Se(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var n=this,t=e.i;n.componentWillUnmount=function(){D(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),D(f(Se,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(be.prototype=new _).__a=function(e){var n=this,t=ve(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ce(n,e,r)):o()};t?t(i):i()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ce(e,t,n)}))};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,Te="undefined"!=typeof document,Ie=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Oe=n.event;function Me(){}function Ne(){return this.cancelBubble}function Ae(){return this.defaultPrevented}n.event=function(e){return Oe&&(e=Oe(e)),e.persist=Me,e.isPropagationStopped=Ne,e.isDefaultPrevented=Ae,e.nativeEvent=e};var De,Re={configurable:!0,get:function(){return this.class}},Ge=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Te&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Ie(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(Re.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Re))}e.$$typeof=xe,Ge&&Ge(e)};var Pe=n.__r;n.__r=function(e){Pe&&Pe(e),De=e.__c};var Ue={ReactCurrentDispatcher:{current:{readContext:function(e){return De.__n[e.__c].props.value}}}};function $e(e){return!!e&&e.$$typeof===xe}function Fe(e){e()}var He={useState:Z,useId:function(){var e=J(P++,11);if(!e.__){for(var n=U.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:Y,useEffect:X,useLayoutEffect:K,useInsertionEffect:K,useTransition:function(){return[!1,Fe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=Z({h:{__:t,v:n}}),o=r[0].h,i=r[1];return K((function(){o.__=t,o.v=n,ce(o.__,n())||i({h:o})}),[e,t,n]),X((function(){return ce(o.__,o.v())||i({h:o}),e((function(){ce(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:Fe,useRef:function(e){return H=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){H=6,K((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:Q,useCallback:function(e,n){return H=8,Q((function(){return e}),n)},useContext:function(e){var n=U.context[e.__c],t=J(P++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(U)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:_e,render:function(e,n,t){return null==n.__k&&(n.textContent=""),D(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return R(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,n){var t=f(Ee,{__v:e,i:n});return t.containerInfo=n,t},createElement:f,createContext:function(e,n){var t={__c:n="__cC"+i++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(g)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return f.bind(null,e)},cloneElement:function(e){return $e(e)?G.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:$e,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ae,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:le(this.props,e)}function r(n){return this.shouldComponentUpdate=t,f(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n){var t=se({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=he,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:d,Suspense:we,SuspenseList:be,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return f(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ue};const je=He,Be=f;function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function We(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class qe{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class ze{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 Je(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new ze(e[Symbol.iterator]())}function Ze(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Ye{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 Xe(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Ke(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Qe(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class en{static id(e){return en.idMap.has(e)||en.idMap.set(e,++en.count),en.idMap.get(e)}}function nn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function tn(e){return 2654435761*e|0}function rn(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function on(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return tn(e);case"string":return nn(e);default:if(function(e){return null!=e&&"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=on(e[r]);return rn(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){const n=Object.values(e).map((e=>on(e)));return rn(n)}return tn(en.id(e))}}function un(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function sn(e,n){return un(e,n,ln)}function ln(e,n){var t;return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):Le(e)?Le(n)&&sn(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===cn(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!ln(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function cn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Ke(e),r=n.getTime()+Ke(n)),t===r?0:t<r?-1:1}function an(e,n){return e===n?0:e<n?-1:1}function fn(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,hn)}function hn(e,n){var t;return e===n?0:null==e?null==n?0:-1:null==n?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(n):Le(e)?Le(n)?fn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?cn(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=hn(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function dn(e){const n={};for(const t of e)n[t[0]]=t[1];return n}en.idMap=new WeakMap,en.count=0;const _n=Symbol("curried");function pn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[_n]=n,t}function mn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Xe(~~(e/36e5),2)+":"+Xe(t,2)}function gn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function yn(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:Xe(r,n.length)}))}function wn(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+mn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return yn(i,n,!0);switch(n){case"D":case"d":return gn(i,"first");case"T":case"t":return gn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+mn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return yn(e,n,t);switch(n){case"D":case"d":return t?gn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?gn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?mn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function vn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function bn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.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,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.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,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function Cn(e,n){try{return n.contents=function(e,n=!1){const[t,r]=bn(e),o=null!=r?n&&"Z"===r?1:2:0;return vn(t.getTime(),o)}(e),!0}catch(e){return!1}}const Sn=Symbol("numeric");function En(e){return"number"==typeof e||(null==e?void 0:e[Sn])}function xn(e,n){return"number"==typeof e?e*n:e[Sn]().multiply(n)}function kn(e,n){return"number"==typeof e?e.toFixed(n):e[Sn]().toFixed(n)}function Tn(e,n){return"number"==typeof e?e.toPrecision(n):e[Sn]().toPrecision(n)}function In(e,n){return"number"==typeof e?e.toExponential(n):e[Sn]().toExponential(n)}function On(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Sn]().toHex()}function Mn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Nn(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function An(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=An(r);else{if(100===n){t+="; ...";break}t+="; "+An(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+An(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Dn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t,r=!0;return 1===n.length?(t=An(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>An(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>on(e)));return e.splice(0,0,tn(this.tag)),rn(e)}Equals(e){return this===e||!!We(this,e)&&this.tag===e.tag&&sn(this.fields,e.fields)}CompareTo(e){return this===e?0:We(this,e)?this.tag===e.tag?fn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Rn{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+An(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>on(e)));return rn(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!ln(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=hn(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Gn{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Pn{constructor(e){this.message=e}}function Un(e){return function(e){return e instanceof Pn||e instanceof Error}(e)?e:new Error(String(e))}const $n=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Fn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Hn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function jn(e){return{input:e,cont:(n=e,e=>{$n.lastIndex=0;const t=[],r=[];let o=0,i=$n.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=$n.lastIndex,$n.lastIndex-=1,i=$n.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),qn(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function Ln(e){return Bn((e=>e),e)}function Vn(e){return Bn((e=>{throw new Error(e)}),e)}function Wn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",En(e))switch("x"!==o.toLowerCase()&&(Hn(e,0)?(e=xn(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=kn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Tn(e,r):Tn(e);break;case"e":case"E":e=null!=r?In(e,r):In(e);break;case"x":e=On(e);break;case"X":e=On(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?wn(e):An(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Jn(e,t-i.length,u,o)):Jn(i+e,t,u,o)}return e}function qn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=Wn(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):qn(e,s,l,u,o)}}function zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Jn(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function Zn(e,n,t){return Jn(e,n,t)}const Yn="Collection was empty.";class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return on(this.value)}Equals(e){return null!=e&&ln(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:hn(this.value,e instanceof Xn?e.value:e)}}function Kn(e){return null==e||e instanceof Xn?new Xn(e):e}function Qn(e){if(null==e)throw new Error("Option has no value");return e instanceof Xn?e.value:e}function et(e,n){return null!=e?Qn(e):n}function nt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function tt(e,n,t){const r=0|n.length,o=function(e,n){return"function"==typeof e?new e(n):new Array(n)}(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function rt(e,n,t){return t.reduce(e,n)}function ot(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class it extends Rn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i;if(ln(t.head,r.head)){e=u,n=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+on(i.head)+631*r,t=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i,l=0|hn(t.head,r.head);if(0===l){e=u,n=s;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ut(this)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class ut{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,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function st(){return new it(null,void 0)}function lt(e,n){return new it(e,n)}function ct(e){return null==e.tail}function at(e){if(null!=e.tail)return e.head;throw new Error(Yn+"\\nParameter name: list")}function ft(e){const n=e.tail;if(null!=n)return n;throw new Error(Yn+"\\nParameter name: list")}function ht(){return st()}function dt(e,n){return lt(e,n)}function _t(e){return lt(e,st())}function pt(e){return ct(e)}function mt(e){return at(e)}function gt(e){return ft(e)}function yt(e){const n=0|function(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}(e),t=nt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ct(o))break;t[r]=at(o),e=r+1,n=ft(o)}})(0,e),t}function wt(e,n,t){let r=n,o=t;for(;!ct(o);)r=e(r,at(o)),o=ft(o);return r}function vt(e){return wt(((e,n)=>lt(n,e)),st(),e)}function bt(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=lt(e[n],t);return t}function Ct(e){return bt(e,st())}function St(e,n){return wt(((e,n)=>lt(n,e)),n,vt(e))}const Et=(e,n)=>{X((()=>{const n=e();return()=>{n.Dispose()}}),n)};function xt(e){return{Dispose(){e()}}}function kt(e){return je.useRef(e)}function Tt(e){const n=kt(e),t=function(e,t){const r=et([],[]);return je.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),xt((()=>{}))),K((()=>{const e=o();return()=>{e.Dispose()}})),t}function It(e){return je.useState(e)}class Ot{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class Mt{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return $t(this)}GetHashCode(){return At(this)}Equals(e){return Dt(this,e)}}function Nt(e){return null!=e.generics?e.generics:[]}function At(e){return rn([nn(e.fullname),...Nt(e).map(At)])}function Dt(e,n){return""===e.fullname?""===n.fullname&&un(Jt(e),Jt(n),(([e,n],[t,r])=>e===t&&Dt(n,r))):e.fullname===n.fullname&&un(Nt(e),Nt(n),Dt)}function Rt(...e){return new Mt("",void 0,void 0,void 0,(()=>e))}const Gt=new Mt("System.Object"),Pt=(new Mt("Microsoft.FSharp.Core.Unit"),new Mt("System.Char"),new Mt("System.String"),new Mt("System.Boolean"),new Mt("System.SByte"),new Mt("System.Byte"),new Mt("System.Int16"),new Mt("System.UInt16"),new Mt("System.Int32"));function Ut(e){if(Array.isArray(e))return e[0];if(e instanceof Mt){const n=Ht(e);if(null!=n)return Ut(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function $t(e){const n=Ht(e);return null!=n?$t(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>$t(e))).join(",")+"]"}function Ft(e){return null!=Ht(e)}function Ht(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function jt(e){return null!=e.generics&&e.generics.length>0}function Bt(e){return null!=e.enumCases&&e.enumCases.length>0}function Lt(e){return null==e.generics?e:new Mt(e.fullname,e.generics.map((()=>Gt)))}function Vt(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}function Wt(e){if(Bt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function qt(e,n){const t=parseInt(n,10);return function(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(t)?n:t)[1]}function zt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Zt(e){if(Kt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Yt(e){return e instanceof Mt?null!=e.cases:e instanceof Dn}function Xt(e){return e instanceof Mt?null!=e.fields:e instanceof Rn}function Kt(e){return e.fullname.startsWith("System.Tuple")}function Qt(e){return null==e.fields?[]:e.fields}function er(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,n):{}}new Mt("System.UInt32"),new Mt("System.Int64"),new Mt("System.UInt64"),new Mt("System.Numerics.BigInteger"),new Mt("System.IntPtr"),new Mt("System.UIntPtr"),new Mt("System.Single"),new Mt("System.Double"),new Mt("System.Decimal");class nr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Inherited","Default","Specific"]}}class tr extends Rn{constructor(e,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=n}}class rr{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 n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class or extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,or.prototype)}}class ir{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ir.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ur(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new or);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(Un(e))}}));else try{e(n)}catch(e){n.onError(Un(e))}}}const sr=new class{Bind(e,n){return function(e,n){return ur((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(Un(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return ur((n=>e()(n)))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While((()=>!r.done),this.Delay((()=>{const e=n(r.value);return r=t.next(),e})))}Return(e){return function(e){return ur((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return ur((t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})}))}TryWith(e,n){return ur((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(Un(e))}}})}))}Using(e,n){return this.TryFinally(n(e),(()=>e.Dispose()))}While(e,n){return e()?this.Bind(n,(()=>this.While(e,n))):this.Return(void 0)}Zero(){return ur((e=>e.onSuccess(void 0)))}};function lr(e){}const cr=new rr;function ar(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ir;e({onSuccess:n||lr,onError:t||lr,onCancel:r||lr,cancelToken:o||cr,trampoline:i})}(e,n)}(e,n)}class fr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function hr(e,n){const t=kt(function(e){const n=new rr(!1);return n}());return Et((()=>xt((()=>{t.current.cancel()}))),[]),Tt((r=>{var o,i;null!=(i=t.current)&&i.isCancelled||ar((o=r,sr.Delay((()=>sr.TryWith(sr.Delay((()=>(n(new fr(1,[])),sr.Bind(e(o),(e=>(n(new fr(2,[e])),sr.Zero())))))),(e=>(n(new fr(3,[e])),sr.Zero())))))),t.current)}))}class dr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function _r(e,n){return 0===n.tag?new dr(0,[e(n.fields[0])]):new dr(1,[n.fields[0]])}function pr(e,n){return new dr(0,[n])}new class{constructor(){}};function mr(e){const n=pr();return sr.Return(n)}function gr(e,n){return sr.Delay(n)}new class{constructor(){}};class yr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class wr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Header"]}}class vr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class br extends Rn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class Cr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Sr extends Rn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}class Er{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Je(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=An(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{Ve(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class xr{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"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 kr(e,n,t){let r,o=!1,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return function(e,n,t){return new xr(e,n,t)}((()=>(o||function(){throw new Error("Enumeration has not started. Call MoveNext.")}(),null!=r?Qn(r):function(){throw new Error("Enumeration already finished.")}())),(()=>{if(o||(o=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function Tr(e){return function(e){return new Er(e)}(e)}function Ir(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Je(e);var n}function Or(e,n,t){const r=Ir(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{Ve(r)}}function Mr(e,n,t){const r=Ir(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{Ve(r)}}function Nr(e,n){Mr(((n,t)=>{e(t)}),void 0,n)}function Ar(e,n){return t=()=>Ir(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Tr((()=>kr(t,r,o)));var t,r,o}function Dr(e,n){return t=()=>Ir(n),r=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Tr((()=>{let e=-1;return kr(t,(n=>(e=e+1|0,r(e,n))),o)}));var t,r,o}class Rr{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}class Gr{constructor(e,n){this.k=e,this.v=n}}function Pr(e,n){return new Gr(e,n)}function Ur(e){return e.k}function $r(e){return e.v}class Fr extends Gr{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Hr(e,n,t,r,o){return new Fr(e,n,t,r,o)}function jr(e){return e.left}function Br(e){return e.right}function Lr(e){return e.h}function Vr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Fr){e=Vr(t+1,jr(r)),n=Br(r);continue e}return t+1|0}return 0|t}}function Wr(e){return Vr(0,e)}function qr(e,n,t,r){let o,i;o=null!=e?e instanceof Fr?Lr(e):1:0,i=null!=r?r instanceof Fr?Lr(r):1:0;const u=0|(o<i?i:o);return 0===u?Pr(n,t):Hr(n,t,e,r,u+1)}function zr(e,n,t,r){let o,i,u,s,l,c;if(l=null!=e?e instanceof Fr?Lr(e):1:0,c=null!=r?r instanceof Fr?Lr(r):1:0,c>l+2){const u=Qn(r);if(u instanceof Fr){if(o=jr(u),(null!=o?(i=o,i instanceof Fr?Lr(i):1):0)>l+1){const r=Qn(jr(u));if(r instanceof Fr)return qr(qr(e,n,t,jr(r)),Ur(r),$r(r),qr(Br(r),Ur(u),$r(u),Br(u)));throw new Error("internal error: Map.rebalance")}return qr(qr(e,n,t,jr(u)),Ur(u),$r(u),Br(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=Qn(e);if(o instanceof Fr){if(u=Br(o),(null!=u?(s=u,s instanceof Fr?Lr(s):1):0)>c+1){const e=Qn(Br(o));if(e instanceof Fr)return qr(qr(jr(o),Ur(o),$r(o),jr(e)),Ur(e),$r(e),qr(Br(e),n,t,r));throw new Error("internal error: Map.rebalance")}return qr(jr(o),Ur(o),$r(o),qr(Br(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return qr(e,n,t,r)}function Jr(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Ur(o));return o instanceof Fr?i<0?zr(Jr(e,n,t,jr(o)),Ur(o),$r(o),Br(o)):0===i?Hr(n,t,jr(o),Br(o),Lr(o)):zr(jr(o),Ur(o),$r(o),Jr(e,n,t,Br(o))):i<0?Hr(n,t,void 0,r,2):0===i?Pr(n,t):Hr(n,t,r,void 0,2)}return Pr(n,t)}function Zr(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Ur(i));if(0===u)return Kn($r(i));if(i instanceof Fr){e=r,n=o,t=u<0?jr(i):Br(i);continue e}return}return}}function Yr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Fr){Yr(t,jr(r)),t(Ur(r),$r(r)),e=t,n=Br(r);continue e}t(Ur(r),$r(r))}break}}function Xr(e,n){Yr(e,n)}function Kr(e,n){if(null!=n){const t=n;if(t instanceof Fr){const n=Kr(e,jr(t)),r=e(Ur(t),$r(t)),o=Kr(e,Br(t));return Hr(Ur(t),r,n,o,Lr(t))}return Pr(Ur(t),e(Ur(t),$r(t)))}}function Qr(e,n){return Kr(e,n)}function eo(e,n){if(Le(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Jr(e,o[0],o[1],t)}return t}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>Jr(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Je(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Jr(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{Ve(t)}}}class no extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function to(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=gt(n),r=mt(n);if(null!=r){const o=r;if(o instanceof Fr){e=bt([jr(o),Pr(Ur(o),$r(o)),Br(o)],t);continue e}return n}e=t;continue e}}}function ro(e){return new no(to(_t(e)),!1)}function oo(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("enumeration already finished")}();if(null!=mt(n)){const e=mt(n);if(e instanceof Fr)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ur(e),$r(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function io(e){let n=ro(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>oo(n),"System.Collections.IEnumerator.get_Current":()=>oo(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof Fr)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=to(gt(n)),!pt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ro(e)},Dispose(){}}}class uo{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,on(e[0])),t=0|n(t,on(e[1]))}}finally{Ve(r)}return 0|t}(this)}Equals(e){if(!(e instanceof uo))return!1;{const n=Je(this);try{const t=Je(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ln(r[0],o[0])||!ln(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ve(t)}}finally{Ve(n)}}}toString(){return"map ["+zn("; ",Ar((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Fn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(En(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=kn(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Tn(s,i):Tn(s);break;case"e":case"E":s=null!=i?In(s,i):In(s);break;case"p":case"P":i=null!=i?i:2,s=kn(xn(s,100),i)+" %";break;case"d":case"D":s=null!=i?Zn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Zn(On(s),i,"0"):On(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Hn(s,0)&&(s=xn(s,-1),e="-"),r=null==r?"":r.substring(1),s=kn(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Zn(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const u=r.replace(/#+$/,"").length;if(u>i.length?i=function(e,n,t){return Jn(e,n,"0",!0)}(i,u):u<i.length&&(i=i.substring(0,u)+i.substring(u).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?wn(s,u||o):An(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return io(this.tree)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return io(this.tree)}CompareTo(e){const n=this;if(e instanceof uo)return 0|function(e,n,t){const r=Ir(n);try{const n=Ir(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{Ve(n)}}finally{Ve(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:hn(e[1],t[1]))}),n,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 ao(this,e[0])&&ln(lo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Xr(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|co(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|co(this)}get size(){return 0|co(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ar((e=>[e[0],e[1]]),this)}get(e){return lo(this,e)}has(e){return ao(this,e)}keys(){return Ar((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Ar((e=>e[1]),this)}forEach(e,n){const t=this;Nr((n=>{e(n[1],n[0],t)}),t)}}function so(e,n){return new uo(e,n)}function lo(e,n){return function(e,n,t){const r=Zr(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function co(e){return Wr(e.tree)}function ao(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Ur(i));if(i instanceof Fr){if(u<0){e=r,n=o,t=jr(i);continue e}if(0===u)return!0;e=r,n=o,t=Br(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function fo(e,n,t){return function(e,n,t){return so(e.comparer,Jr(e.comparer,n,t,e.tree))}(t,e,n)}function ho(e,n){return function(e,n){return Zr(e.comparer,n,e.tree)}(n,e)}function _o(e,n){return function(e,n){return so(e.comparer,Qr(n,e.tree))}(n,e)}function po(e){return function(e){return so(e,void 0)}(e)}const mo=new br("",new yr(0,[]),ht(),!1,void 0,void 0,void 0,new vr(0,[]));function go(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:function(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(Mn),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}(n,[e],null,0);var t}function yo(e){return new br(e,mo.method,mo.headers,mo.withCredentials,mo.overridenMimeType,mo.overridenResponseType,mo.timeout,mo.content)}function wo(e,n){return new br(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function vo(e){return function(e){return ur((n=>e([n.onSuccess,n.onError,n.onCancel])))}((n=>{const t=new XMLHttpRequest;t.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),t.onreadystatechange=()=>{let e,r,o,i,u,s;var l,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new Cr(0,[t.responseText]):new Cr("arraybuffer"===s?2:"blob"===s?1:3,[t.response]),new Sr(o,e,i,(l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=Qn(o);r.push(e)}}return ln(null,null)?r:tt((e=>e),r,null)}((e=>{const n=Ct(go(":",e));return pt(n)?void 0:[mt(n).toLocaleLowerCase(),zn(":",gt(n)).trim()]}),go("\r\n",t.getAllResponseHeaders())),so(c={Compare:an},eo(c,l))),u)))};const r=Je(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{Ve(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=e.content;0===e.method.tag?t.send(Kn(void 0)):1===s.tag||3===s.tag||2===s.tag?t.send(Kn(s.fields[0])):t.send(Kn(void 0))}))}new Sr(0,"","",po({Compare:an}),new Cr(0,[""]));class bo extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Co extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class So{constructor(){this.cache=new Map([])}}function Eo(){return new So}function xo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ko(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=function(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Nn(e,u),l=Nn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(xo(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return xo(n)}}Eo(),Eo();const To=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Io=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Oo=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Mo(e,n){try{return n.contents=function(e){function n(e){return e.replace(Io,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(To.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Mn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(Io.test(t))return n(t);if(Oo.test(t))return n(t.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 No;function Ao(e,n){switch(n){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 Do(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&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}}(e,n);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.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=Ao(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=Ao(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function Ro(e,n){!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.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function Go(e,n){try{return n.contents=function(e){const[n,t]=bn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return Ro(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(No||(No={}));var Po=null;try{Po=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(s){}function Uo(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function $o(e){return!0===(e&&e.__isLong__)}Uo.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Uo.prototype.Equals=function(e){return fi(this,e)},Uo.prototype.CompareTo=function(e){return pi(this,e)},Uo.prototype.toString=function(e){return si(this,e)},Uo.prototype.toJSON=function(){return si(this)},Uo.prototype[Sn]=function(){const e=this;return{multiply:n=>wi(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return si(e.unsigned?e:function(e,n,t){return t?function(e,n){return new Uo(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Uo(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},Uo.prototype.__isLong__,Object.defineProperty(Uo.prototype,"__isLong__",{value:!0});var Fo={},Ho={};function jo(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=Ho[e])?r:(t=Lo(e,(0|e)<0?-1:0,!0),o&&(Ho[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Fo[e])?r:(t=Lo(e,e<0?-1:0,!1),o&&(Fo[e]=t),t)}function Bo(e,n){if(isNaN(e))return n?Ko:Xo;if(n){if(e<0)return Ko;if(e>=Jo)return ri}else{if(e<=-Zo)return oi;if(e+1>=Zo)return ti}return e<0?mi(Bo(-e,n)):Lo(e%zo|0,e/zo|0,n)}function Lo(e,n,t){return new Uo(e,n,t)}var Vo=Math.pow;function Wo(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Xo;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return mi(Wo(e.substring(1),n,t));for(var o=Bo(Vo(t,8)),i=Xo,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=gi(s<8?wi(i,Bo(Vo(t,s))):i=wi(i,o),Bo(l))}return i.unsigned=n,i}function qo(e,n){return"number"==typeof e?Bo(e,n):"string"==typeof e?Wo(e,n):Lo(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var zo=4294967296,Jo=zo*zo,Zo=Jo/2,Yo=jo(1<<24),Xo=jo(0),Ko=jo(0,!0),Qo=jo(1),ei=jo(1,!0),ni=jo(-1),ti=Lo(-1,2147483647,!1),ri=Lo(-1,-1,!0),oi=Lo(0,-2147483648,!1);function ii(e){return e.unsigned?e.low>>>0:e.low}function ui(e){return e.unsigned?(e.high>>>0)*zo+(e.low>>>0):e.high*zo+(e.low>>>0)}function si(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(li(e))return"0";if(ci(e)){if(fi(e,oi)){var t=Bo(n),r=vi(e,t),o=yi(wi(r,t),e);return si(r,n)+ii(o).toString(n)}return"-"+si(mi(e),n)}for(var i=Bo(Vo(n,6),e.unsigned),u=e,s="";;){var l=vi(u,i),c=(ii(yi(u,wi(l,i)))>>>0).toString(n);if(li(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function li(e){return 0===e.high&&0===e.low}function ci(e){return!e.unsigned&&e.high<0}function ai(e){return 1==(1&e.low)}function fi(e,n){return $o(n)||(n=qo(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function hi(e,n){return pi(e,n)<0}function di(e,n){return pi(e,n)>0}function _i(e,n){return pi(e,n)>=0}function pi(e,n){if($o(n)||(n=qo(n)),fi(e,n))return 0;var t=ci(e),r=ci(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:ci(yi(e,n))?-1:1}function mi(e){return!e.unsigned&&fi(e,oi)?oi:gi(function(e){return Lo(~e.low,~e.high,e.unsigned)}(e),Qo)}function gi(e,n){$o(n)||(n=qo(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,Lo((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function yi(e,n){return $o(n)||(n=qo(n)),gi(e,mi(n))}function wi(e,n){if(li(e))return e.unsigned?Ko:Xo;if($o(n)||(n=qo(n)),Po)return Lo(Po.mul(e.low,e.high,n.low,n.high),Po.get_high(),e.unsigned);if(li(n))return e.unsigned?Ko:Xo;if(fi(e,oi))return ai(n)?oi:Xo;if(fi(n,oi))return ai(e)?oi:Xo;if(ci(e))return ci(n)?wi(mi(e),mi(n)):mi(wi(mi(e),n));if(ci(n))return mi(wi(e,mi(n)));if(hi(e,Yo)&&hi(n,Yo))return Bo(ui(e)*ui(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,Lo((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function vi(e,n){if($o(n)||(n=qo(n)),li(n))throw Error("division by zero");var t,r,o;if(Po)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Lo((e.unsigned?Po.div_u:Po.div_s)(e.low,e.high,n.low,n.high),Po.get_high(),e.unsigned):e;if(li(e))return e.unsigned?Ko:Xo;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Lo(e.low,e.high,!0)}(n)),di(n,e))return Ko;if(di(n,function(e,n){if($o(n)&&(n=ii(n)),0==(n&=63))return e;var t=e.high;return n<32?Lo(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Lo(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return ei;o=Ko}else{if(fi(e,oi))return fi(n,Qo)||fi(n,ni)?oi:fi(n,oi)?Qo:fi(t=function(e,n){return $o(n)&&(n=ii(n)),0==(n&=63)?e:n<32?Lo(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Lo(0,e.low<<n-32,e.unsigned)}(vi(function(e,n){return $o(n)&&(n=ii(n)),0==(n&=63)?e:n<32?Lo(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Lo(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Xo)?ci(n)?Qo:ni:o=gi(t,vi(r=yi(e,wi(n,t)),n));if(fi(n,oi))return e.unsigned?Ko:Xo;if(ci(e))return ci(n)?vi(mi(e),mi(n)):mi(vi(mi(e),n));if(ci(n))return mi(vi(e,mi(n)));o=Xo}for(r=e;_i(r,n);){t=Math.max(1,Math.floor(ui(r)/ui(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:Vo(2,i-48),s=Bo(t),l=wi(s,n);ci(l)||di(l,r);)l=wi(s=Bo(t-=u,e.unsigned),n);li(s)&&(s=Qo),o=gi(o,s),r=yi(r,l)}return o}const bi=vi,Ci=ui;function Si(e){return e<0?Math.ceil(e):Math.floor(e)}function Ei(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return xi(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function xi(e){return Ci(bi(e,1e4))}function ki(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ei(n,0,0,0,0)}if(t>0){const n=/^(-?)((\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!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,u=+n[4],s=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Ei(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Ti{constructor(e){this.k=e}}function Ii(e){return new Ti(e)}function Oi(e){return e.k}class Mi extends Ti{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Ni(e,n,t,r){return new Mi(e,n,t,r)}function Ai(e){return e.left}function Di(e){return e.right}function Ri(e){return e.h}function Gi(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof Mi){e=Ai(r),n=Gi(Di(r),t+1);continue e}return t+1|0}return 0|t}}function Pi(e){return Gi(e,0)}function Ui(e,n,t){let r,o;r=null!=e?e instanceof Mi?Ri(e):1:0,o=null!=t?t instanceof Mi?Ri(t):1:0;const i=0|(r<o?o:r);return 0===i?Ii(n):Ni(n,e,t,i+1)}function $i(e,n,t){let r,o,i,u,s,l;if(s=null!=e?e instanceof Mi?Ri(e):1:0,l=null!=t?t instanceof Mi?Ri(t):1:0,l>s+2){const i=Qn(t);if(i instanceof Mi){if(r=Ai(i),(null!=r?(o=r,o instanceof Mi?Ri(o):1):0)>s+1){const t=Qn(Ai(i));if(t instanceof Mi)return Ui(Ui(e,n,Ai(t)),Oi(t),Ui(Di(t),Oi(i),Di(i)));throw new Error("internal error: Set.rebalance")}return Ui(Ui(e,n,Ai(i)),Oi(i),Di(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=Qn(e);if(r instanceof Mi){if(i=Di(r),(null!=i?(u=i,u instanceof Mi?Ri(u):1):0)>l+1){const e=Qn(Di(r));if(e instanceof Mi)return Ui(Ui(Ai(r),Oi(r),Ai(e)),Oi(e),Ui(Di(e),n,t));throw new Error("internal error: Set.rebalance")}return Ui(Ai(r),Oi(r),Ui(Di(r),n,t))}throw new Error("internal error: Set.rebalance")}return Ui(e,n,t)}function Fi(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,Oi(r));if(r instanceof Mi)return o<0?$i(Fi(e,n,Ai(r)),Oi(r),Di(r)):0===o?t:$i(Ai(r),Oi(r),Fi(e,n,Di(r)));{const o=0|e.Compare(n,Oi(r));return o<0?Ni(n,void 0,t,2):0===o?t:Ni(n,t,void 0,2)}}return Ii(n)}function Hi(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Oi(i));if(i instanceof Mi){if(u<0){e=r,n=o,t=Ai(i);continue e}if(0===u)return!0;e=r,n=o,t=Di(i);continue e}return 0===u}return!1}}function ji(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Mi){ji(t,Ai(r)),t(Oi(r)),e=t,n=Di(r);continue e}t(Oi(r))}break}}class Bi extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function Li(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=mt(n),r=gt(n);if(null!=t){const o=t;if(o instanceof Mi){e=bt([Ai(o),Ii(Oi(o)),Di(o)],r);continue e}return n}e=r;continue e}}}function Vi(e){return new Bi(Li(_t(e)),!1)}function Wi(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("Enumeration already started")}();if(null!=mt(n))return Oi(mt(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function qi(e){let n=Vi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Wi(n),"System.Collections.IEnumerator.get_Current":()=>Wi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof Mi)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Li(gt(n)),!pt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Vi(e)},Dispose(){}}}function zi(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(pt(o))return pt(i)?0:-1;if(pt(i))return 1;if(null!=mt(i))if(null!=mt(o)){const u=mt(o),s=mt(i);if(u instanceof Mi)if(null==Ai(u)){if(!(s instanceof Mi)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(Di(u),gt(o)),t=dt(void 0,gt(i));continue e}if(null==Ai(s)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(Di(u),gt(o)),t=dt(Di(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(s instanceof Mi)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=gt(o),t=gt(i);continue e}if(null==Ai(s)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(void 0,gt(o)),t=dt(Di(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,l,c,a;switch(mt(i),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==mt(o)){e=r,n=gt(o),t=gt(i);continue e}{let u,s,l,c,a;switch(mt(o),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,_t(n),_t(t))}function Ji(e,n,t){let r=t;ji((e=>{n[r]=e,r=r+1|0}),e)}function Zi(e,n){if(Le(n))return function(e,n){return rt(((n,t)=>Fi(e,t,n)),void 0,n)}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>Fi(e,t,n)),void 0,n)}(e,n);{const t=Je(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=Fi(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{Ve(t)}}}class Yi{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|n(t,on(r["System.Collections.Generic.IEnumerator`1.get_Current"]()))}finally{Ve(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Yi&&0===zi(Xi(this),Ki(this),Ki(e))}toString(){return"set ["+zn("; ",Ar((e=>An(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|zi(Xi(this),Ki(this),Ki(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 Hi(Xi(this),e,Ki(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){Ji(Ki(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Qi(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Qi(this)}GetEnumerator(){return qi(Ki(this))}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return qi(Ki(this))}get size(){return 0|Qi(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 function(e,n){return Hi(Xi(e),n,Ki(e))}(this,e)}keys(){return Ar((e=>e),this)}values(){return Ar((e=>e),this)}entries(){return Ar((e=>[e,e]),this)}forEach(e,n){const t=this;Nr((n=>{e(n,n,t)}),t)}}function Xi(e){return e.comparer}function Ki(e){return e.tree}function Qi(e){return Pi(Ki(e))}function eu(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function nu(e,n){const t=2===n.tag?eu(n.fields[0],n.fields[1],!0):1===n.tag?eu(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?eu(n.fields[0],n.fields[1],!0):4===n.tag?eu(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:eu(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function tu(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new dr(1,[nu(e[0],e[1])])}return new dr(0,[r.fields[0]])}const ru=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new dr(0,[(e+128&255)-128]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,8,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},ou=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new dr(0,[255&e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,8,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},iu=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new dr(0,[(e+32768&65535)-32768]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,16,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},uu=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new dr(0,[65535&e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,16,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},su=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new dr(0,[~~e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,32,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},lu=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new dr(0,[e>>>0]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,32,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])};function cu(e,n,t,r){let o;const i=t+".["+Qe(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new dr(1,[[i,new bo(5,["a longer array. Need index `"+Qe(e)+"` but there are only `"+(o=t.length,Qe(o)+"` entries"),r])]])}return new dr(1,[[i,new bo(0,["an array",r])]])}function au(e,n,t){if(Array.isArray(t)){let r=-1;return _r(vt,rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+Qe(r)+"]",o);return 0===i.tag?new dr(0,[dt(i.fields[0],t.fields[0])]):new dr(1,[i.fields[0]])}return t}),new dr(0,[ht()]),t))}return new dr(1,[[n,new bo(0,["a list",t])]])}function fu(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+Qe(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new dr(0,[i])):new dr(1,[u.fields[0]])}return t}),new dr(0,[nt(new Array(o.length),0,o.length,null)]),o)}return new dr(1,[[n,new bo(0,["an array",t])]])}function hu(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new dr(1,[o.fields[0]])}function du(e,n){let t;const r=e;return t=e=>n=>cu(0,r,e,n),e=>r=>hu(pn(3,(e=>{let t;const r=n;return t=e=>n=>cu(1,r,e,n),n=>r=>hu(((n,t,r)=>new dr(0,[[e,n]])),pn(2,t),n,r)})),pn(2,t),e,r)}function _u(e){return so(n={Compare:hn},eo(n,e));var n}function pu(e){return function(e,n){return new Yi(e,n)}(n={Compare:hn},Zi(n,e));var n}function mu(e,n,t,r){let o,i;return n.length!==r.length?new dr(1,[[t,new bo(6,[(o=0|r.length,i=0|n.length,Ln(jn("Expected %i %s but got %i"))(i)(e)(o))])]]):ot(((e,n,r)=>0===r.tag?_r((e=>dt(e,r.fields[0])),n(t)(e)):r),r,n,new dr(0,[ht()]))}function gu(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>Ut(e)===r))}(0,zt(t));if(null!=u){const t=u;return 0===i.length?new dr(0,[er(t,[])]):_r((e=>er(t,yt(e))),mu("union fields",tt((t=>wu(e,n,!1,t[1])),Qt(t),null),o,i))}return new dr(1,[[o,new bo(6,["Cannot find case "+r+" in "+$t(t)])]])}function yu(e,n,t,r){let o;const i=new Gn(null),u=fo($t(r),i,e);let s;if(Xt(r)){const e=tt((e=>[ko(n,Ut(e)),wu(u,n,!1,e[1])]),Jt(r),null);s=n=>t=>_r((e=>function(e,n){const t=Jt(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce(((e,[t,r],o)=>(e[t]=n[o],e)),{})}(r,yt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new dr(1,[[n,new bo(0,["an object",t])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?_r((e=>dt(e,r.fields[0])),e[1](n+"."+o)(t[o])):r})(r,e)),o)}(0,e,new dr(0,[ht()]))}(e,n,t))}else if(Yt(r))s=e=>t=>{if("string"==typeof t)return gu(u,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return gu(u,n,r,o[0],e,o.slice(1,o.length))}return new dr(1,[[e,new bo(0,["a string or array",t])]])};else{if(!t)throw new Error((o=$t(r),Ln(jn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(o)));s=e=>n=>new dr(1,[[e,new bo(2,["an extra coder for "+$t(r),n])]])}return i.contents=s,s}function wu(e,n,t,r){let o,i,u;const s=$t(r),l=ho(s,e);if(null==l){if(Ft(r)){const t=wu(e,n,!1,Ht(r));return e=>n=>fu(pn(2,t),e,n)}if(Bt(r)){const e=$t(Vt(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=ru(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=ou(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=iu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,(s=e,(s=s<0&&null!=l&&10!==l?65535+s+1:s).toString(l)))]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}var s,l};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=uu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=su(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,Qe(e))]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=lu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};{const e=$t(r),n=Vn(jn("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing 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=>n(e)}}if(jt(r)){if(Kt(r)){const t=tt((t=>wu(e,n,!1,t)),Zt(r),null);return e=>n=>Array.isArray(n)?_r((e=>yt(e)),mu("tuple elements",t,e,n)):new dr(1,[[e,new bo(0,["an array",n])]])}{const s=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=wu(e,n,!0,Nt(r)[0]),e=>n=>{return t=pn(2,o),r=e,null==(i=n)?new dr(0,[void 0]):_r(Kn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=wu(e,n,!1,Nt(r)[0]),e=>n=>au(pn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=wu(e,n,!1,Nt(r)[0]),o=wu(e,n,!1,Nt(r)[1]);let i;const s=Ct([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new dr(1,[[t,new bo(0,["an object",r])]]):Mr(((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new dr(0,[dt([u.fields[0],e.fields[0]],o.fields[0])]):new dr(1,[e.fields[0]])}return new dr(1,[u.fields[0]])}return o}),new dr(0,[ht()]),Object.keys(r))}(pn(2,t),pn(2,o),e,n),(u=du(pn(2,t),pn(2,o)),e=>n=>au(pn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(pt(o))return new dr(1,[[t,new bo(7,[i])]]);{const u=tu(t,pn(2,mt(o)),r);if(1===u.tag){e=gt(o),n=St(i,_t(u.fields[0]));continue e}return new dr(0,[u.fields[0]])}}})(s,ht());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new dr(1,[o.fields[0]]):new dr(0,[e(o.fields[0])])}(_u,pn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=wu(e,n,!1,Nt(r)[0]);return e=>n=>{const r=fu(pn(2,t),e,n);return 0===r.tag?new dr(0,[pu(r.fields[0])]):new dr(1,[r.fields[0]])}}return yu(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a boolean",r])]]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new dr(0,[void 0]):new dr(1,[[t,new bo(0,["null",r])]]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a string",r])]]);var t,r}:"System.SByte"===s?ru:"System.Byte"===s?ou:"System.Int16"===s?iu:"System.UInt16"===s?uu:"System.Int32"===s?su:"System.UInt32"===s?lu:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a float",r])]]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a float32",r])]]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=vn(-621355968e5,0);return r=[Cn(n,new Gn((()=>o),(e=>{o=e}))),o],r[0]?new dr(0,[(t=r[1],1===t.kind?t:vn(t.getTime(),1))]):new dr(1,[[e,new bo(0,["a datetime",n])]])}var t;return new dr(1,[[e,new bo(0,["a datetime",n])]])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=Ro(-621355968e5,0);return t=[Go(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a datetimeoffset",n])]])}return new dr(1,[[e,new bo(0,["a datetime",n])]])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[ki(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a timespan",n])]])}return new dr(1,[[e,new bo(0,["a timespan",n])]])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[Mo(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a guid",n])]])}return new dr(1,[[e,new bo(0,["a guid",n])]])}(e,n):"System.Object"===s?e=>e=>new dr(0,[e]):yu(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function vu(e){return e}function bu(e){return Array.from(e)}function Cu(e){return wn(e,"O")}function Su(e){return function(e,n="c",t){if(-1===["c","g","G"].indexOf(n))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Si(e/864e5)}(e)),o=Math.abs(function(e){return Si(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Si(e%36e5/6e4)}(e)),u=Math.abs(function(e){return Si(e%6e4/1e3)}(e)),s=Math.abs(function(e){return Si(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==n&&"g"!==n?"c"===n?r+".":r+":":""}${"g"===n?o:Xe(o,2)}:${Xe(i,2)}:${Xe(u,2)}${0!==s||"c"!==n&&"g"!==n?"g"===n?"."+Xe(s,3):"."+function(e,n,t){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function Eu(){return null}function xu(e){return wn(e,"O")}function ku(e,n){return JSON.stringify(n,pn(2,null),Kn(e))}function Tu(e,n,t,r){let o;const i=new Gn(null),u=fo($t(r),i,e);let s;if(Xt(r)){const e=tt((e=>{const r=ko(n,Ut(e)),o=Iu(u,n,t,e[1]);return n=>i=>{const u=function(e,n){return e[n[0]]}(n,e);return(!t||t&&null!=u)&&(i[r]=o(u)),i}}),Jt(r),null);s=n=>Mr(((e,t)=>t(n)(e)),{},e)}else{if(!Yt(r))throw new Error((o=$t(r),Ln(jn("Cannot generate auto encoder for %s. Please pass an extra encoder."))(o)));s=e=>{const o=function(e,n){const t=zt(n)[e.tag];if(null==t)throw new Error(`Cannot find case ${e.name} in union type`);return[t,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Ut(i);{const e=0|l,r=Qt(i),o=nt(new Array(e+1),0,e+1,null);o[0]=Ut(i);for(let i=1;i<=e;i++){const e=Iu(u,n,t,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return i.contents=s,s}function Iu(e,n,t,r){const o=$t(r),i=ho(o,e);if(null==i){if(Ft(r)){const o=Iu(e,n,t,Ht(r));return e=>bu(Ar(o,e))}if(Bt(r)){const e=$t(Vt(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=$t(r);return Vn(jn("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(jt(r)){if(Kt(r)){const o=tt((r=>Iu(e,n,t,r)),Zt(r),null);return e=>bu(Dr(((e,n)=>o[e](n)),e))}{const o=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=Iu(e,n,t,Nt(r)[0]),e=>{return function(e,n){return null!=e?Qn(e):null}(null!=(n=e)?Kn(o(Qn(n))):void 0);var n};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Iu(e,n,t,Nt(r)[0]);return e=>bu(Ar(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Nt(r)[0],i=Iu(e,n,t,Nt(r)[1]);if("System.String"===$t(o)||"System.Guid"===$t(o))return e=>Mr(((e,n)=>{const t=n;return e[t[0]]=i(t[1]),e}),{},e);{let r;const u=Iu(e,n,t,o);return r=u,e=>bu(Ar((e=>{const n=e;return[r(n[0]),i(n[1])]}),e))}}return Tu(e,n,t,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Eu:"System.String"===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?xu:"System.DateTimeOffset"===o?Cu:"System.TimeSpan"===o?Su:"System.Guid"===o?vu:"System.Object"===o?e=>e:Tu(e,n,t,r)}{const e=i;return n=>e.contents(n)}}function Ou(e,n,t,r){const o=et(n,new Co(0,[])),i=et(r,!0);return Iu(function(e){return null!=e?_o(((e,n)=>new Gn(n[0])),e.Coders):po({Compare:an})}(t),o,i,e)}function Mu(e){return`${e}/bank-details/admin`}function Nu(e,n){return gr(0,(()=>{const t=(r=function(e){return new wr(0,["Authorization",e])}(Ln(jn("Bearer %s"))(e)),new br((o=n).url,o.method,St(o.headers,_t(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;let i;const u=vo(t);return i=sr.Bind(u,(e=>sr.Return(new dr(0,[e])))),sr.Delay((()=>sr.Bind(i,(e=>{let n,r;const o=e;return 1===o.tag?sr.Return(new dr(1,[o.fields[0]])):sr.ReturnFrom((n=o.fields[0],429===n.statusCode||n.statusCode>=500?(r=vo(t),sr.Bind(r,(e=>sr.Return(new dr(0,[e]))))):function(e,n){const t=pr(0,n);return sr.Return(t)}(0,n)))}))))}))}function Au(e,n,t,r){return gr(0,(()=>{const o=Nu(n,wo(new yr(0,[]),yo((i=Mu(e),null==r?`${i}/max-accounts/${t}`:(Qn(r),`${i}/max-accounts/${t}/${r}`)))));var i;return sr.Delay((()=>sr.Bind(o,(e=>{let n,t;const r=e;return 1===r.tag?sr.Return(new dr(1,[r.fields[0]])):sr.ReturnFrom((n=r.fields[0],200===n.statusCode?(t=function(e,n){try{return tu("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new dr(1,["Given an invalid JSON: "+e.message]);throw e}}(pn(2,function(e,n,t){const r=et(n,new Co(0,[]));return wu(function(e){return null!=e?_o(((e,n)=>new Gn(n[1])),e.Coders):po({Compare:an})}(void 0),r,!1,e)}(new Mt("Types.Model",[],tr,void 0,(()=>[["MaxAccounts",Pt],["ConfigOwnership",function(e,n,t,r){const o=new Mt("Types.ConfigOwnership",[],t,void 0,void 0,(()=>{const e=t.prototype.cases();return[[],[],[]].map(((n,t)=>new Ot(o,t,e[t],n)))}));return o}(0,0,nr)]])),new Co(1,[]))),n.responseText),sr.Return(t)):sr.Return(new dr(1,[n.responseText]))))}))))}))}function Du(){return(Du=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ru(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return G(n,t)}function Gu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Ru,Du({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[Pu(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=f(Fu,{name:c},l):r[i]=l}var a=t?f(Fu,null,r):r;return f(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?R:D)(this._vdom,this._root)}function Pu(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function Uu(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[Pu(e)]=t,this._vdom=G(this._vdom,r),D(this._vdom,this._root)}}function $u(){D(this._vdom=null,this._root)}function Fu(e,n){var t=this;return f("slot",Du({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function Hu(e){let n;return Be("div",dn(Ct([["className","py-10"],(n=[Be("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${t=e.configOwnership,2===t.tag?"":`(${t})`}: `}),Be("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:n=>{const t=n.target.valueAsNumber;null==t||Number.isNaN(t)||e.handleMaxAccountChanged(function(e,n=0){const t=Math.pow(10,n),r=+(n?e*t:e).toFixed(8),o=Math.floor(r),i=r-o,u=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return n?u/t:u}(t))}})],["children",je.Children.toArray(Array.from(n))])])));var t}function ju(e){let n;const t=e.msg;return null==t?null:Be("div",dn(Ct([["className","text-sm font-medium text-gray-900 my-5"],(n=[Be("span",{children:[t]})],["children",je.Children.toArray(Array.from(n))])])))}function Bu(e){let n;const t=It(0),r=t[1],o=0|t[0],i=It(new nr(1,[])),u=It(new fr(0,[])),s=u[1],l=u[0],c=gr(0,(()=>{const n=Au(e.backendUrl,e.accessToken,e.partnerId,e.accountId);return sr.Delay((()=>sr.Bind(n,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],r(n.MaxAccounts),i[1](n.ConfigOwnership),mr()))}))))})),a=gr(0,(()=>{const n=function(e,n,t,r,o){return gr(0,(()=>{let i;const u=(a=Mu(e),null==r?`${a}/max-accounts/${t}`:`${a}/max-accounts/${t}/${r}`),s=Nu(n,wo(new yr(2,[]),(l=new vr(1,[(i={maxAccounts:o},ku(0,Ou(Rt(["maxAccounts",Pt]),new Co(1,[]),void 0,void 0)(i)))]),c=yo(u),new br(c.url,c.method,c.headers,c.withCredentials,c.overridenMimeType,c.overridenResponseType,c.timeout,l))));var l,c,a;return sr.Delay((()=>sr.Bind(s,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],200===n.statusCode?sr.Return(new dr(0,[void 0])):sr.Return(new dr(1,[n.responseText]))))}))))}))}(e.backendUrl,e.accessToken,e.partnerId,e.accountId,o);return sr.Delay((()=>sr.Bind(n,(e=>{const n=e;return 1===n.tag?sr.Return(new dr(1,[n.fields[0]])):sr.ReturnFrom(sr.Bind(c,(e=>{const n=_r((()=>{}),e);return sr.Return(n)})))}))))})),h=gr(0,(()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,gr(0,(()=>{const e=Nu(r,wo(new yr(4,[]),yo((n=Mu(t),null==i?`${n}/max-accounts/${o}`:(Qn(i),`${n}/max-accounts/${o}/${i}`)))));var n;return sr.Delay((()=>sr.Bind(e,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],200===n.statusCode?sr.Return(new dr(0,[void 0])):sr.Return(new dr(1,[n.responseText]))))}))))})));var t,r,o,i;return sr.Delay((()=>sr.Bind(n,(e=>{const n=e;return 1===n.tag?sr.Return(new dr(1,[n.fields[0]])):sr.ReturnFrom(sr.Bind(c,(e=>{const n=_r((()=>{}),e);return sr.Return(n)})))}))))})),d=hr((()=>c),s),_=hr((()=>a),s),p=hr((()=>h),s);let m,g,y,w;switch(function(e,n){Et((n=>(e(),xt((()=>{})))),[])}(d),2===l.tag?1===l.fields[0].tag?(g=0,y=l.fields[0].fields[0]):g=2:3===l.tag?(g=1,w=l.fields[0]):g=2,g){case 0:m=f(ju,{msg:y});break;case 1:m=f(ju,{msg:An(w)});break;case 2:m=f(ju,{msg:void 0})}const v=Ct([f(Hu,{configOwnership:i[0],handleMaxAccountChanged:r,selected:o}),Be("div",dn(_t((n=[Be("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Update",onClick:e=>{_()}}),Be("button",{className:"inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none",type:"button",children:"Reset",onClick:e=>{p()}}),m],["children",je.Children.toArray(Array.from(n))]))))]);return Be("div",{children:je.Children.toArray(Array.from(v))})}!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Gu,o.prototype.attributeChangedCallback=Uu,o.prototype.disconnectedCallback=$u,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-bank-details",o)}((e=>f(Bu,e)))})();
|
1
|
+
(()=>{"use strict";var e,n,t,r,o,i,u={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return h(n,s,o,i,null)}function h(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function d(e){return e.children}function _(e,n){this.props=e,this.context=n}function p(e,n){if(null==n)return e.__?p(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?p(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!w.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||setTimeout)(w)}function w(){for(var e;w.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=c({},o)).__v=o.__v+1,T(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?p(o):i,o.__h),I(t,o),o.__e!=i&&m(o)))}))}function y(e,n,t,r,o,i,l,c,a,f){var _,m,g,w,y,b,S,E=r&&r.__k||s,x=E.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(w=t.__k[_]=null==(w=n[_])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(d,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)){if(w.__=t,w.__b=t.__b+1,null===(g=E[_])||g&&w.key==g.key&&w.type===g.type)E[_]=void 0;else for(m=0;m<x;m++){if((g=E[m])&&w.key==g.key&&w.type===g.type){E[m]=void 0;break}g=null}T(e,w,g=g||u,o,i,l,c,a,f),y=w.__e,(m=w.ref)&&g.ref!=m&&(S||(S=[]),g.ref&&S.push(g.ref,null,w),S.push(m,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===g.__k?w.__d=a=v(w,a,e):a=C(e,w,g,E,y,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=p(g))}for(t.__e=b,_=x;_--;)null!=E[_]&&N(E[_],E[_]);if(S)for(_=0;_<S.length;_++)M(S[_],S[++_],S[++_])}function v(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?v(r,n,t):C(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function S(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||l.test(n)?t:t+"px"}function E(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?k:x,i):e.removeEventListener(n,i?k:x,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&-1==n.indexOf("-")?e.removeAttribute(n):e.setAttribute(n,t))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function k(e){this.l[e.type+!0](n.event?n.event(e):e)}function T(e,t,r,o,i,u,s,l,a){var f,h,p,m,g,w,v,b,C,S,E,x,k,T,I,M=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(a=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof M){if(b=t.props,C=(f=M.contextType)&&o[f.__c],S=f?C?C.props.value:f.__:o,r.__c?v=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(b,S):(t.__c=h=new _(b,S),h.constructor=M,h.render=A),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=S,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=c({},h.__s)),c(h.__s,M.getDerivedStateFromProps(b,h.__s))),m=h.props,g=h.state,p)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&b!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,S)||t.__v===r.__v){for(h.props=b,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,w)}))}if(h.context=S,h.props=b,h.__v=t,h.__P=e,x=n.__r,k=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(o=c(c({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(m,g)),I=null!=f&&f.type===d&&null==f.key?f.props.children:f,y(e,Array.isArray(I)?I:[I],t,r,o,i,u,s,l,a),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=O(r.__e,t,r,o,i,u,s,a);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(a||null!=u)&&(t.__e=l,t.__h=!!a,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function I(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function O(n,t,r,o,i,s,l,c){var f,h,d,_=r.props,m=t.props,g=t.type,w=0;if("svg"===g&&(i=!0),null!=s)for(;w<s.length;w++)if((f=s[w])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){n=f,s[w]=null;break}if(null==n){if(null===g)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)_===m||c&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),h=(_=r.props||u).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!c){if(null!=s)for(_={},w=0;w<n.attributes.length;w++)_[n.attributes[w].name]=n.attributes[w].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||E(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||E(e,i,n[i],t[i],r)}(n,m,_,i,c),d)t.__k=[];else if(w=t.props.children,y(n,Array.isArray(w)?w:[w],t,r,o,i&&"foreignObject"!==g,s,l,s?s[0]:r.__k&&p(r,0),c),null!=s)for(w=s.length;w--;)null!=s[w]&&a(s[w]);c||("value"in m&&void 0!==(w=m.value)&&(w!==n.value||"progress"===g&&!w||"option"===g&&w!==_.value)&&E(n,"value",w,_.value,!1),"checked"in m&&void 0!==(w=m.checked)&&w!==n.checked&&E(n,"checked",w,_.checked,!1))}return n}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function N(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__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]&&N(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||a(e.__e),e.__=e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function R(t,r,o){var i,s,l;n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=f(d,null,[t]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:s?s.__e:r.firstChild,i),I(l,t)}function D(e,n){R(e,n,D)}function G(n,t,r){var o,i,u,s=c({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),h(n.type,s,o||n.key,i||n.ref,null)}e=s.slice,n={__e:function(e,n,t,r){for(var o,i,u;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),u=o.__d),u)return o.__E=o}catch(n){e=n}throw e}},t=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},t),this.props)),e&&c(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),g(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},_.prototype.render=d,r=[],w.__r=0,i=0;var P,U,F,$,H=0,j=[],B=[],L=n.__b,V=n.__r,q=n.diffed,W=n.__c,z=n.unmount;function J(e,t){n.__h&&n.__h(U,e,H||t),H=0;var r=U.__H||(U.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:B}),r.__[e]}function Z(e){return H=1,Y(ue,e)}function Y(e,n,t){var r=J(P++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ue(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.u)){U.u=!0;var o=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,n,t){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,n,t);var u=!1;return i.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}})),!(!u&&r.__c.props===e)&&(!o||o.call(this,e,n,t))}}return r.__N||r.__}function X(e,t){var r=J(P++,3);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__H.__h.push(r))}function K(e,t){var r=J(P++,4);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__h.push(r))}function Q(e,n){var t=J(P++,7);return ie(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function ee(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){U=null,L&&L(e)},n.__r=function(e){V&&V(e),P=0;var n=(U=e.__c).__H;n&&(F===U?(n.__h=[],U.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(n.__h.forEach(re),n.__h.forEach(oe),n.__h=[])),F=U},n.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&$===n.requestAnimationFrame||(($=n.requestAnimationFrame)||te)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),F=U=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),W&&W(e,t)},n.unmount=function(e){z&&z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var ne="function"==typeof requestAnimationFrame;function te(e){var n,t=function(){clearTimeout(r),ne&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);ne&&(n=requestAnimationFrame(t))}function re(e){var n=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=n}function oe(e){var n=U;e.__c=e.__(),U=n}function ie(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ue(e,n){return"function"==typeof n?n(e):n}function se(e,n){for(var t in n)e[t]=n[t];return e}function le(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function ce(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function ae(e){this.props=e}(ae.prototype=new _).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,n){return le(this.props,e)||le(this.state,n)};var fe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,de=function(e,n){return null==e?null:b(b(e).map(n))},_e={map:de,forEach:de,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},pe=n.__e;n.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);pe(e,n,t,r)};var me=n.unmount;function ge(e,n,t){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=se({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ge(e,n,t)}))),e}function we(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return we(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function ye(){this.__u=0,this.t=null,this.__b=null}function ve(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function be(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),me&&me(e)},(ye.prototype=new _).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=ve(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=we(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},ye.prototype.componentWillUnmount=function(){this.t=[]},ye.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ge(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&f(d,null,e.fallback);return o&&(o.__h=null),[f(d,null,n.__a?null:e.children),o]};var Ce=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Se(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var n=this,t=e.i;n.componentWillUnmount=function(){R(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),R(f(Se,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(be.prototype=new _).__a=function(e){var n=this,t=ve(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ce(n,e,r)):o()};t?t(i):i()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ce(e,t,n)}))};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,Te="undefined"!=typeof document,Ie=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Oe=n.event;function Me(){}function Ne(){return this.cancelBubble}function Ae(){return this.defaultPrevented}n.event=function(e){return Oe&&(e=Oe(e)),e.persist=Me,e.isPropagationStopped=Ne,e.isDefaultPrevented=Ae,e.nativeEvent=e};var Re,De={configurable:!0,get:function(){return this.class}},Ge=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Te&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Ie(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(De.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",De))}e.$$typeof=xe,Ge&&Ge(e)};var Pe=n.__r;n.__r=function(e){Pe&&Pe(e),Re=e.__c};var Ue={ReactCurrentDispatcher:{current:{readContext:function(e){return Re.__n[e.__c].props.value}}}};function Fe(e){return!!e&&e.$$typeof===xe}function $e(e){e()}var He={useState:Z,useId:function(){var e=J(P++,11);if(!e.__){for(var n=U.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:Y,useEffect:X,useLayoutEffect:K,useInsertionEffect:K,useTransition:function(){return[!1,$e]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=Z({h:{__:t,v:n}}),o=r[0].h,i=r[1];return K((function(){o.__=t,o.v=n,ce(o.__,n())||i({h:o})}),[e,t,n]),X((function(){return ce(o.__,o.v())||i({h:o}),e((function(){ce(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:$e,useRef:function(e){return H=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){H=6,K((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:Q,useCallback:function(e,n){return H=8,Q((function(){return e}),n)},useContext:function(e){var n=U.context[e.__c],t=J(P++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(U)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:_e,render:function(e,n,t){return null==n.__k&&(n.textContent=""),R(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return D(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(R(null,e),!0)},createPortal:function(e,n){var t=f(Ee,{__v:e,i:n});return t.containerInfo=n,t},createElement:f,createContext:function(e,n){var t={__c:n="__cC"+i++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(g)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return f.bind(null,e)},cloneElement:function(e){return Fe(e)?G.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:Fe,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ae,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:le(this.props,e)}function r(n){return this.shouldComponentUpdate=t,f(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n){var t=se({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=he,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:d,Suspense:ye,SuspenseList:be,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return f(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ue};const je=He,Be=f;function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){return null!=e&&"function"==typeof e.GetHashCode}function qe(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function We(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class ze{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class Je{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 Ze(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new Je(e[Symbol.iterator]())}function Ye(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Xe{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 Ke(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Qe(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function en(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class nn{static id(e){return nn.idMap.has(e)||nn.idMap.set(e,++nn.count),nn.idMap.get(e)}}function tn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function rn(e){return 2654435761*e|0}function on(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function un(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return rn(e);case"string":return tn(e);default:if(Ve(e))return e.GetHashCode();if(Le(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=un(e[r]);return on(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){const n=Object.values(e).map((e=>un(e)));return on(n)}return rn(nn.id(e))}}function sn(e){return function(e){return Ve(e)?e.GetHashCode():function(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return rn(e);case"string":return tn(e);default:return rn(nn.id(e))}}(e)}(e)}function ln(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function cn(e,n){return ln(e,n,an)}function an(e,n){var t;return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):Le(e)?Le(n)&&cn(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===fn(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!an(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function fn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Qe(e),r=n.getTime()+Qe(n)),t===r?0:t<r?-1:1}function hn(e,n){return e===n?0:e<n?-1:1}function dn(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,_n)}function _n(e,n){var t;return e===n?0:null==e?null==n?0:-1:null==n?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(n):Le(e)?Le(n)?dn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?fn(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=_n(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function pn(e){const n={};for(const t of e)n[t[0]]=t[1];return n}nn.idMap=new WeakMap,nn.count=0;const mn=Symbol("curried");function gn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[mn]=n,t}function wn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Ke(~~(e/36e5),2)+":"+Ke(t,2)}function yn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function vn(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:Ke(r,n.length)}))}function bn(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+wn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return vn(i,n,!0);switch(n){case"D":case"d":return yn(i,"first");case"T":case"t":return yn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+wn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return vn(e,n,t);switch(n){case"D":case"d":return t?yn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?yn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return Ke(e.getFullYear(),4)+"-"+Ke(e.getMonth()+1,2)+"-"+Ke(e.getDate(),2)+"T"+Ke(e.getHours(),2)+":"+Ke(e.getMinutes(),2)+":"+Ke(e.getSeconds(),2)+"."+Ke(e.getMilliseconds(),3)+(n?wn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function Cn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Sn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.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,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.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,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function En(e,n){try{return n.contents=function(e,n=!1){const[t,r]=Sn(e),o=null!=r?n&&"Z"===r?1:2:0;return Cn(t.getTime(),o)}(e),!0}catch(e){return!1}}const xn=Symbol("numeric");function kn(e){return"number"==typeof e||(null==e?void 0:e[xn])}function Tn(e,n){return"number"==typeof e?e*n:e[xn]().multiply(n)}function In(e,n){return"number"==typeof e?e.toFixed(n):e[xn]().toFixed(n)}function On(e,n){return"number"==typeof e?e.toPrecision(n):e[xn]().toPrecision(n)}function Mn(e,n){return"number"==typeof e?e.toExponential(n):e[xn]().toExponential(n)}function Nn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[xn]().toHex()}function An(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rn(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Dn(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=Dn(r);else{if(100===n){t+="; ...";break}t+="; "+Dn(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+Dn(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Gn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t,r=!0;return 1===n.length?(t=Dn(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>Dn(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>un(e)));return e.splice(0,0,rn(this.tag)),on(e)}Equals(e){return this===e||!!We(this,e)&&this.tag===e.tag&&cn(this.fields,e.fields)}CompareTo(e){return this===e?0:We(this,e)?this.tag===e.tag?dn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Pn{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+Dn(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>un(e)));return on(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!an(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=_n(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Un{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Fn{constructor(e){this.message=e}}function $n(e){return function(e){return e instanceof Fn||e instanceof Error}(e)?e:new Error(String(e))}const Hn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Bn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Ln(e){return{input:e,cont:(n=e,e=>{Hn.lastIndex=0;const t=[],r=[];let o=0,i=Hn.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Hn.lastIndex,Hn.lastIndex-=1,i=Hn.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Jn(e,t,r))})};var n}function Vn(e,n){return"string"==typeof n?e(n):n.cont(e)}function qn(e){return Vn((e=>e),e)}function Wn(e){return Vn((e=>{throw new Error(e)}),e)}function zn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",kn(e))switch("x"!==o.toLowerCase()&&(Bn(e,0)?(e=Tn(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=In(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?On(e,r):On(e);break;case"e":case"E":e=null!=r?Mn(e,r):Mn(e);break;case"x":e=Nn(e);break;case"X":e=Nn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?bn(e):Dn(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Yn(e,t-i.length,u,o)):Yn(i+e,t,u,o)}return e}function Jn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=zn(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):Jn(e,s,l,u,o)}}function Zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Yn(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function Xn(e,n,t){return Yn(e,n,t)}function Kn(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(An),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}const Qn="Collection was empty.";class et{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return un(this.value)}Equals(e){return null!=e&&an(this.value,e instanceof et?e.value:e)}CompareTo(e){return null==e?1:_n(this.value,e instanceof et?e.value:e)}}function nt(e){return null==e||e instanceof et?new et(e):e}function tt(e){if(null==e)throw new Error("Option has no value");return e instanceof et?e.value:e}function rt(e,n){return null!=e?tt(e):n}function ot(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function it(e,n,t){const r=0|n.length,o=function(e,n){return"function"==typeof e?new e(n):new Array(n)}(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function ut(e,n,t){return t.reduce(e,n)}function st(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class lt extends Pn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+Zn("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i;if(an(t.head,r.head)){e=u,n=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+un(i.head)+631*r,t=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i,l=0|_n(t.head,r.head);if(0===l){e=u,n=s;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ct(this)}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ze(this)}}class ct{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,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function at(){return new lt(null,void 0)}function ft(e,n){return new lt(e,n)}function ht(e){return null==e.tail}function dt(e){if(null!=e.tail)return e.head;throw new Error(Qn+"\\nParameter name: list")}function _t(e){const n=e.tail;if(null!=n)return n;throw new Error(Qn+"\\nParameter name: list")}function pt(){return at()}function mt(e,n){return ft(e,n)}function gt(e){return ft(e,at())}function wt(e){return ht(e)}function yt(e){return dt(e)}function vt(e){return _t(e)}function bt(e){const n=0|function(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}(e),t=ot(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ht(o))break;t[r]=dt(o),e=r+1,n=_t(o)}})(0,e),t}function Ct(e,n,t){let r=n,o=t;for(;!ht(o);)r=e(r,dt(o)),o=_t(o);return r}function St(e){return Ct(((e,n)=>ft(n,e)),at(),e)}function Et(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=ft(e[n],t);return t}function xt(e){return Et(e,at())}function kt(e,n){return Ct(((e,n)=>ft(n,e)),n,St(e))}class Tt{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class It{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return Ut(this)}GetHashCode(){return Mt(this)}Equals(e){return Nt(this,e)}}function Ot(e){return null!=e.generics?e.generics:[]}function Mt(e){return on([tn(e.fullname),...Ot(e).map(Mt)])}function Nt(e,n){return""===e.fullname?""===n.fullname&&ln(zt(e),zt(n),(([e,n],[t,r])=>e===t&&Nt(n,r))):e.fullname===n.fullname&&ln(Ot(e),Ot(n),Nt)}function At(...e){return new It("",void 0,void 0,void 0,(()=>e))}const Rt=new It("System.Object"),Dt=(new It("Microsoft.FSharp.Core.Unit"),new It("System.Char"),new It("System.String")),Gt=(new It("System.Boolean"),new It("System.SByte"),new It("System.Byte"),new It("System.Int16"),new It("System.UInt16"),new It("System.Int32"));function Pt(e){if(Array.isArray(e))return e[0];if(e instanceof It){const n=$t(e);if(null!=n)return Pt(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function Ut(e){const n=$t(e);return null!=n?Ut(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ut(e))).join(",")+"]"}function Ft(e){return null!=$t(e)}function $t(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function Ht(e){return null!=e.generics&&e.generics.length>0}function jt(e){return null!=e.enumCases&&e.enumCases.length>0}function Bt(e){return null==e.generics?e:new It(e.fullname,e.generics.map((()=>Rt)))}function Lt(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}function Vt(e){if(jt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function qt(e,n){const t=parseInt(n,10);return function(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(t)?n:t)[1]}function Wt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function zt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Jt(e){if(Xt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Zt(e){return e instanceof It?null!=e.cases:e instanceof Gn}function Yt(e){return e instanceof It?null!=e.fields:e instanceof Pn}function Xt(e){return e.fullname.startsWith("System.Tuple")}function Kt(e){return null==e.fields?[]:e.fields}function Qt(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,n):{}}new It("System.UInt32"),new It("System.Int64"),new It("System.UInt64"),new It("System.Numerics.BigInteger"),new It("System.IntPtr"),new It("System.UIntPtr"),new It("System.Single"),new It("System.Double"),new It("System.Decimal");class er extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function nr(e,n){return 0===n.tag?new er(0,[e(n.fields[0])]):new er(1,[n.fields[0]])}class tr extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class rr extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class or{constructor(){this.cache=new Map([])}}function ir(){return new or}function ur(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function sr(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=function(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Rn(e,u),l=Rn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(ur(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return ur(n)}}ir(),ir();const lr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,cr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ar=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function fr(e,n){try{return n.contents=function(e){function n(e){return e.replace(cr,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(lr.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+An(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(cr.test(t))return n(t);if(ar.test(t))return n(t.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 hr;function dr(e,n){switch(n){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 _r(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&hr.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,n);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.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=dr(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=dr(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function pr(e,n){!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.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function mr(e,n){try{return n.contents=function(e){const[n,t]=Sn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return pr(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(hr||(hr={}));var gr=null;try{gr=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(s){}function wr(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function yr(e){return!0===(e&&e.__isLong__)}wr.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},wr.prototype.Equals=function(e){return Wr(this,e)},wr.prototype.CompareTo=function(e){return Yr(this,e)},wr.prototype.toString=function(e){return Br(this,e)},wr.prototype.toJSON=function(){return Br(this)},wr.prototype[xn]=function(){const e=this;return{multiply:n=>eo(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return Br(e.unsigned?e:function(e,n,t){return t?function(e,n){return new wr(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new wr(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},wr.prototype.__isLong__,Object.defineProperty(wr.prototype,"__isLong__",{value:!0});var vr={},br={};function Cr(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=br[e])?r:(t=Er(e,(0|e)<0?-1:0,!0),o&&(br[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=vr[e])?r:(t=Er(e,e<0?-1:0,!1),o&&(vr[e]=t),t)}function Sr(e,n){if(isNaN(e))return n?Rr:Ar;if(n){if(e<0)return Rr;if(e>=Or)return Fr}else{if(e<=-Mr)return $r;if(e+1>=Mr)return Ur}return e<0?Xr(Sr(-e,n)):Er(e%Ir|0,e/Ir|0,n)}function Er(e,n,t){return new wr(e,n,t)}var xr=Math.pow;function kr(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Ar;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Xr(kr(e.substring(1),n,t));for(var o=Sr(xr(t,8)),i=Ar,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=Kr(s<8?eo(i,Sr(xr(t,s))):i=eo(i,o),Sr(l))}return i.unsigned=n,i}function Tr(e,n){return"number"==typeof e?Sr(e,n):"string"==typeof e?kr(e,n):Er(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Ir=4294967296,Or=Ir*Ir,Mr=Or/2,Nr=Cr(1<<24),Ar=Cr(0),Rr=Cr(0,!0),Dr=Cr(1),Gr=Cr(1,!0),Pr=Cr(-1),Ur=Er(-1,2147483647,!1),Fr=Er(-1,-1,!0),$r=Er(0,-2147483648,!1);function Hr(e){return e.unsigned?e.low>>>0:e.low}function jr(e){return e.unsigned?(e.high>>>0)*Ir+(e.low>>>0):e.high*Ir+(e.low>>>0)}function Br(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Lr(e))return"0";if(Vr(e)){if(Wr(e,$r)){var t=Sr(n),r=no(e,t),o=Qr(eo(r,t),e);return Br(r,n)+Hr(o).toString(n)}return"-"+Br(Xr(e),n)}for(var i=Sr(xr(n,6),e.unsigned),u=e,s="";;){var l=no(u,i),c=(Hr(Qr(u,eo(l,i)))>>>0).toString(n);if(Lr(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function Lr(e){return 0===e.high&&0===e.low}function Vr(e){return!e.unsigned&&e.high<0}function qr(e){return 1==(1&e.low)}function Wr(e,n){return yr(n)||(n=Tr(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function zr(e,n){return Yr(e,n)<0}function Jr(e,n){return Yr(e,n)>0}function Zr(e,n){return Yr(e,n)>=0}function Yr(e,n){if(yr(n)||(n=Tr(n)),Wr(e,n))return 0;var t=Vr(e),r=Vr(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:Vr(Qr(e,n))?-1:1}function Xr(e){return!e.unsigned&&Wr(e,$r)?$r:Kr(function(e){return Er(~e.low,~e.high,e.unsigned)}(e),Dr)}function Kr(e,n){yr(n)||(n=Tr(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,Er((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function Qr(e,n){return yr(n)||(n=Tr(n)),Kr(e,Xr(n))}function eo(e,n){if(Lr(e))return e.unsigned?Rr:Ar;if(yr(n)||(n=Tr(n)),gr)return Er(gr.mul(e.low,e.high,n.low,n.high),gr.get_high(),e.unsigned);if(Lr(n))return e.unsigned?Rr:Ar;if(Wr(e,$r))return qr(n)?$r:Ar;if(Wr(n,$r))return qr(e)?$r:Ar;if(Vr(e))return Vr(n)?eo(Xr(e),Xr(n)):Xr(eo(Xr(e),n));if(Vr(n))return Xr(eo(e,Xr(n)));if(zr(e,Nr)&&zr(n,Nr))return Sr(jr(e)*jr(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,Er((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function no(e,n){if(yr(n)||(n=Tr(n)),Lr(n))throw Error("division by zero");var t,r,o;if(gr)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Er((e.unsigned?gr.div_u:gr.div_s)(e.low,e.high,n.low,n.high),gr.get_high(),e.unsigned):e;if(Lr(e))return e.unsigned?Rr:Ar;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Er(e.low,e.high,!0)}(n)),Jr(n,e))return Rr;if(Jr(n,function(e,n){if(yr(n)&&(n=Hr(n)),0==(n&=63))return e;var t=e.high;return n<32?Er(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Er(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return Gr;o=Rr}else{if(Wr(e,$r))return Wr(n,Dr)||Wr(n,Pr)?$r:Wr(n,$r)?Dr:Wr(t=function(e,n){return yr(n)&&(n=Hr(n)),0==(n&=63)?e:n<32?Er(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Er(0,e.low<<n-32,e.unsigned)}(no(function(e,n){return yr(n)&&(n=Hr(n)),0==(n&=63)?e:n<32?Er(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Er(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Ar)?Vr(n)?Dr:Pr:o=Kr(t,no(r=Qr(e,eo(n,t)),n));if(Wr(n,$r))return e.unsigned?Rr:Ar;if(Vr(e))return Vr(n)?no(Xr(e),Xr(n)):Xr(no(Xr(e),n));if(Vr(n))return Xr(no(e,Xr(n)));o=Ar}for(r=e;Zr(r,n);){t=Math.max(1,Math.floor(jr(r)/jr(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:xr(2,i-48),s=Sr(t),l=eo(s,n);Vr(l)||Jr(l,r);)l=eo(s=Sr(t-=u,e.unsigned),n);Lr(s)&&(s=Dr),o=Kr(o,s),r=Qr(r,l)}return o}const to=no,ro=jr;function oo(e){return e<0?Math.ceil(e):Math.floor(e)}function io(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return uo(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function uo(e){return ro(to(e,1e4))}function so(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return io(n,0,0,0,0)}if(t>0){const n=/^(-?)((\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!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,u=+n[4],s=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*io(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class lo{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Ze(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=Dn(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{qe(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class co{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"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 ao(e,n,t){let r,o=!1,i=nt(e());const u=()=>{if(null!=i){const e=tt(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return function(e,n,t){return new co(e,n,t)}((()=>(o||function(){throw new Error("Enumeration has not started. Call MoveNext.")}(),null!=r?tt(r):function(){throw new Error("Enumeration already finished.")}())),(()=>{if(o||(o=!0),null!=i){const e=tt(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function fo(e){return function(e){return new lo(e)}(e)}function ho(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Ze(e);var n}function _o(e,n,t){const r=ho(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function po(e,n,t){const r=ho(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function mo(e,n){po(((n,t)=>{e(t)}),void 0,n)}function go(e,n){return t=()=>ho(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?nt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{qe(e)},fo((()=>ao(t,r,o)));var t,r,o}function wo(e,n){return t=()=>ho(n),r=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?nt(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{qe(e)},fo((()=>{let e=-1;return ao(t,(n=>(e=e+1|0,r(e,n))),o)}));var t,r,o}class yo{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}class vo{constructor(e,n){this.k=e,this.v=n}}function bo(e,n){return new vo(e,n)}function Co(e){return e.k}function So(e){return e.v}class Eo extends vo{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function xo(e,n,t,r,o){return new Eo(e,n,t,r,o)}function ko(e){return e.left}function To(e){return e.right}function Io(e){return e.h}function Oo(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Eo){e=Oo(t+1,ko(r)),n=To(r);continue e}return t+1|0}return 0|t}}function Mo(e){return Oo(0,e)}function No(e,n,t,r){let o,i;o=null!=e?e instanceof Eo?Io(e):1:0,i=null!=r?r instanceof Eo?Io(r):1:0;const u=0|(o<i?i:o);return 0===u?bo(n,t):xo(n,t,e,r,u+1)}function Ao(e,n,t,r){let o,i,u,s,l,c;if(l=null!=e?e instanceof Eo?Io(e):1:0,c=null!=r?r instanceof Eo?Io(r):1:0,c>l+2){const u=tt(r);if(u instanceof Eo){if(o=ko(u),(null!=o?(i=o,i instanceof Eo?Io(i):1):0)>l+1){const r=tt(ko(u));if(r instanceof Eo)return No(No(e,n,t,ko(r)),Co(r),So(r),No(To(r),Co(u),So(u),To(u)));throw new Error("internal error: Map.rebalance")}return No(No(e,n,t,ko(u)),Co(u),So(u),To(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=tt(e);if(o instanceof Eo){if(u=To(o),(null!=u?(s=u,s instanceof Eo?Io(s):1):0)>c+1){const e=tt(To(o));if(e instanceof Eo)return No(No(ko(o),Co(o),So(o),ko(e)),Co(e),So(e),No(To(e),n,t,r));throw new Error("internal error: Map.rebalance")}return No(ko(o),Co(o),So(o),No(To(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return No(e,n,t,r)}function Ro(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Co(o));return o instanceof Eo?i<0?Ao(Ro(e,n,t,ko(o)),Co(o),So(o),To(o)):0===i?xo(n,t,ko(o),To(o),Io(o)):Ao(ko(o),Co(o),So(o),Ro(e,n,t,To(o))):i<0?xo(n,t,void 0,r,2):0===i?bo(n,t):xo(n,t,r,void 0,2)}return bo(n,t)}function Do(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Co(i));if(0===u)return nt(So(i));if(i instanceof Eo){e=r,n=o,t=u<0?ko(i):To(i);continue e}return}return}}function Go(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Eo){Go(t,ko(r)),t(Co(r),So(r)),e=t,n=To(r);continue e}t(Co(r),So(r))}break}}function Po(e,n){Go(e,n)}function Uo(e,n){if(null!=n){const t=n;if(t instanceof Eo){const n=Uo(e,ko(t)),r=e(Co(t),So(t)),o=Uo(e,To(t));return xo(Co(t),r,n,o,Io(t))}return bo(Co(t),e(Co(t),So(t)))}}function Fo(e,n){return Uo(e,n)}function $o(e,n){if(Le(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ro(e,o[0],o[1],t)}return t}(e,n);if(n instanceof lt)return function(e,n){return Ct(((n,t)=>Ro(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Ze(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Ro(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{qe(t)}}}class Ho extends Pn{constructor(e,n){super(),this.stack=e,this.started=n}}function jo(e){e:for(;;){const n=e;if(wt(n))return pt();{const t=vt(n),r=yt(n);if(null!=r){const o=r;if(o instanceof Eo){e=Et([ko(o),bo(Co(o),So(o)),To(o)],t);continue e}return n}e=t;continue e}}}function Bo(e){return new Ho(jo(gt(e)),!1)}function Lo(e){if(e.started){const n=e.stack;if(wt(n))return function(){throw new Error("enumeration already finished")}();if(null!=yt(n)){const e=yt(n);if(e instanceof Eo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Co(e),So(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Vo(e){let n=Bo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Lo(n),"System.Collections.IEnumerator.get_Current":()=>Lo(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(wt(n))return!1;if(null!=yt(n)){if(yt(n)instanceof Eo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=jo(vt(n)),!wt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!wt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Bo(e)},Dispose(){}}}class qo{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,un(e[0])),t=0|n(t,un(e[1]))}}finally{qe(r)}return 0|t}(this)}Equals(e){if(!(e instanceof qo))return!1;{const n=Ze(this);try{const t=Ze(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!an(r[0],o[0])||!an(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(t)}}finally{qe(n)}}}toString(){return"map ["+Zn("; ",go((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(jn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(kn(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=In(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?On(s,i):On(s);break;case"e":case"E":s=null!=i?Mn(s,i):Mn(s);break;case"p":case"P":i=null!=i?i:2,s=In(Tn(s,100),i)+" %";break;case"d":case"D":s=null!=i?Xn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Xn(Nn(s),i,"0"):Nn(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Bn(s,0)&&(s=Tn(s,-1),e="-"),r=null==r?"":r.substring(1),s=In(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Xn(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const u=r.replace(/#+$/,"").length;if(u>i.length?i=function(e,n,t){return Yn(e,n,"0",!0)}(i,u):u<i.length&&(i=i.substring(0,u)+i.substring(u).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?bn(s,u||o):Dn(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Yn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return Vo(this.tree)}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Vo(this.tree)}CompareTo(e){const n=this;if(e instanceof qo)return 0|function(e,n,t){const r=ho(n);try{const n=ho(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{qe(n)}}finally{qe(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:_n(e[1],t[1]))}),n,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 Zo(this,e[0])&&an(zo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Po(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Jo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Jo(this)}get size(){return 0|Jo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return go((e=>[e[0],e[1]]),this)}get(e){return zo(this,e)}has(e){return Zo(this,e)}keys(){return go((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return go((e=>e[1]),this)}forEach(e,n){const t=this;mo((n=>{e(n[1],n[0],t)}),t)}}function Wo(e,n){return new qo(e,n)}function zo(e,n){return function(e,n,t){const r=Do(e,n,t);if(null==r)throw new Error;return tt(r)}(e.comparer,n,e.tree)}function Jo(e){return Mo(e.tree)}function Zo(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Co(i));if(i instanceof Eo){if(u<0){e=r,n=o,t=ko(i);continue e}if(0===u)return!0;e=r,n=o,t=To(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function Yo(e,n,t){return function(e,n,t){return Wo(e.comparer,Ro(e.comparer,n,t,e.tree))}(t,e,n)}function Xo(e,n){return function(e,n){return Do(e.comparer,n,e.tree)}(n,e)}function Ko(e,n){return function(e,n){return Wo(e.comparer,Fo(n,e.tree))}(n,e)}function Qo(e){return function(e){return Wo(e,void 0)}(e)}class ei{constructor(e){this.k=e}}function ni(e){return new ei(e)}function ti(e){return e.k}class ri extends ei{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function oi(e,n,t,r){return new ri(e,n,t,r)}function ii(e){return e.left}function ui(e){return e.right}function si(e){return e.h}function li(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof ri){e=ii(r),n=li(ui(r),t+1);continue e}return t+1|0}return 0|t}}function ci(e){return li(e,0)}function ai(e,n,t){let r,o;r=null!=e?e instanceof ri?si(e):1:0,o=null!=t?t instanceof ri?si(t):1:0;const i=0|(r<o?o:r);return 0===i?ni(n):oi(n,e,t,i+1)}function fi(e,n,t){let r,o,i,u,s,l;if(s=null!=e?e instanceof ri?si(e):1:0,l=null!=t?t instanceof ri?si(t):1:0,l>s+2){const i=tt(t);if(i instanceof ri){if(r=ii(i),(null!=r?(o=r,o instanceof ri?si(o):1):0)>s+1){const t=tt(ii(i));if(t instanceof ri)return ai(ai(e,n,ii(t)),ti(t),ai(ui(t),ti(i),ui(i)));throw new Error("internal error: Set.rebalance")}return ai(ai(e,n,ii(i)),ti(i),ui(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=tt(e);if(r instanceof ri){if(i=ui(r),(null!=i?(u=i,u instanceof ri?si(u):1):0)>l+1){const e=tt(ui(r));if(e instanceof ri)return ai(ai(ii(r),ti(r),ii(e)),ti(e),ai(ui(e),n,t));throw new Error("internal error: Set.rebalance")}return ai(ii(r),ti(r),ai(ui(r),n,t))}throw new Error("internal error: Set.rebalance")}return ai(e,n,t)}function hi(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ti(r));if(r instanceof ri)return o<0?fi(hi(e,n,ii(r)),ti(r),ui(r)):0===o?t:fi(ii(r),ti(r),hi(e,n,ui(r)));{const o=0|e.Compare(n,ti(r));return o<0?oi(n,void 0,t,2):0===o?t:oi(n,t,void 0,2)}}return ni(n)}function di(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,ti(i));if(i instanceof ri){if(u<0){e=r,n=o,t=ii(i);continue e}if(0===u)return!0;e=r,n=o,t=ui(i);continue e}return 0===u}return!1}}function _i(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof ri){_i(t,ii(r)),t(ti(r)),e=t,n=ui(r);continue e}t(ti(r))}break}}class pi extends Pn{constructor(e,n){super(),this.stack=e,this.started=n}}function mi(e){e:for(;;){const n=e;if(wt(n))return pt();{const t=yt(n),r=vt(n);if(null!=t){const o=t;if(o instanceof ri){e=Et([ii(o),ni(ti(o)),ui(o)],r);continue e}return n}e=r;continue e}}}function gi(e){return new pi(mi(gt(e)),!1)}function wi(e){if(e.started){const n=e.stack;if(wt(n))return function(){throw new Error("Enumeration already started")}();if(null!=yt(n))return ti(yt(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function yi(e){let n=gi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>wi(n),"System.Collections.IEnumerator.get_Current":()=>wi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(wt(n))return!1;if(null!=yt(n)){if(yt(n)instanceof ri)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=mi(vt(n)),!wt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!wt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=gi(e)},Dispose(){}}}function vi(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(wt(o))return wt(i)?0:-1;if(wt(i))return 1;if(null!=yt(i))if(null!=yt(o)){const u=yt(o),s=yt(i);if(u instanceof ri)if(null==ii(u)){if(!(s instanceof ri)){const l=0|r.Compare(ti(u),ti(s));if(0!==l)return 0|l;e=r,n=mt(ui(u),vt(o)),t=mt(void 0,vt(i));continue e}if(null==ii(s)){const l=0|r.Compare(ti(u),ti(s));if(0!==l)return 0|l;e=r,n=mt(ui(u),vt(o)),t=mt(ui(s),vt(i));continue e}{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof ri){e=r,n=Et([ii(l),oi(ti(l),void 0,ui(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ni(ti(l))],s),t=i;continue e;case 1:if(a instanceof ri){e=r,n=o,t=Et([ii(a),oi(ti(a),void 0,ui(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ni(ti(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof ri){e=r,n=Et([ii(l),oi(ti(l),void 0,ui(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ni(ti(l))],s),t=i;continue e;case 1:if(a instanceof ri){e=r,n=o,t=Et([ii(a),oi(ti(a),void 0,ui(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ni(ti(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(s instanceof ri)){const l=0|r.Compare(ti(u),ti(s));if(0!==l)return 0|l;e=r,n=vt(o),t=vt(i);continue e}if(null==ii(s)){const l=0|r.Compare(ti(u),ti(s));if(0!==l)return 0|l;e=r,n=mt(void 0,vt(o)),t=mt(ui(s),vt(i));continue e}{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof ri){e=r,n=Et([ii(l),oi(ti(l),void 0,ui(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ni(ti(l))],s),t=i;continue e;case 1:if(a instanceof ri){e=r,n=o,t=Et([ii(a),oi(ti(a),void 0,ui(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ni(ti(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,l,c,a;switch(yt(i),wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof ri){e=r,n=Et([ii(l),oi(ti(l),void 0,ui(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ni(ti(l))],s),t=i;continue e;case 1:if(a instanceof ri){e=r,n=o,t=Et([ii(a),oi(ti(a),void 0,ui(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ni(ti(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==yt(o)){e=r,n=vt(o),t=vt(i);continue e}{let u,s,l,c,a;switch(yt(o),wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof ri){e=r,n=Et([ii(l),oi(ti(l),void 0,ui(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ni(ti(l))],s),t=i;continue e;case 1:if(a instanceof ri){e=r,n=o,t=Et([ii(a),oi(ti(a),void 0,ui(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ni(ti(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,gt(n),gt(t))}function bi(e,n,t){let r=t;_i((e=>{n[r]=e,r=r+1|0}),e)}function Ci(e,n){if(Le(n))return function(e,n){return ut(((n,t)=>hi(e,t,n)),void 0,n)}(e,n);if(n instanceof lt)return function(e,n){return Ct(((n,t)=>hi(e,t,n)),void 0,n)}(e,n);{const t=Ze(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=hi(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{qe(t)}}}class Si{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|n(t,un(r["System.Collections.Generic.IEnumerator`1.get_Current"]()))}finally{qe(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Si&&0===vi(Ei(this),xi(this),xi(e))}toString(){return"set ["+Zn("; ",go((e=>Dn(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|vi(Ei(this),xi(this),xi(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 di(Ei(this),e,xi(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){bi(xi(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ki(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ki(this)}GetEnumerator(){return yi(xi(this))}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return yi(xi(this))}get size(){return 0|ki(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 function(e,n){return di(Ei(e),n,xi(e))}(this,e)}keys(){return go((e=>e),this)}values(){return go((e=>e),this)}entries(){return go((e=>[e,e]),this)}forEach(e,n){const t=this;mo((n=>{e(n,n,t)}),t)}}function Ei(e){return e.comparer}function xi(e){return e.tree}function ki(e){return ci(xi(e))}function Ti(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function Ii(e,n){const t=2===n.tag?Ti(n.fields[0],n.fields[1],!0):1===n.tag?Ti(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Ti(n.fields[0],n.fields[1],!0):4===n.tag?Ti(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+Zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:Ti(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function Oi(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new er(1,[Ii(e[0],e[1])])}return new er(0,[r.fields[0]])}function Mi(e,n){try{return Oi("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new er(1,["Given an invalid JSON: "+e.message]);throw e}}const Ni=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new er(0,[(e+128&255)-128]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!1,8,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])},Ai=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new er(0,[255&e]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!0,8,new Un((()=>n),(e=>{n=e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])},Ri=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new er(0,[(e+32768&65535)-32768]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!1,16,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])},Di=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new er(0,[65535&e]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!0,16,new Un((()=>n),(e=>{n=e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])},Gi=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new er(0,[~~e]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!1,32,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])},Pi=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new er(0,[e>>>0]):new er(1,[[r,new tr(1,[t,e,"Value was either too large or too small for "+t])]]):new er(1,[[r,new tr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[_r(o,511,!0,32,new Un((()=>n),(e=>{n=e}))),n],e[0]?new er(0,[e[1]]):new er(1,[[r,new tr(0,[t,o])]])}return new er(1,[[r,new tr(0,[t,o])]])};function Ui(e,n,t,r){let o;const i=t+".["+en(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new er(1,[[i,new tr(5,["a longer array. Need index `"+en(e)+"` but there are only `"+(o=t.length,en(o)+"` entries"),r])]])}return new er(1,[[i,new tr(0,["an array",r])]])}function Fi(e,n,t){if(Array.isArray(t)){let r=-1;return nr(St,ut(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+en(r)+"]",o);return 0===i.tag?new er(0,[mt(i.fields[0],t.fields[0])]):new er(1,[i.fields[0]])}return t}),new er(0,[pt()]),t))}return new er(1,[[n,new tr(0,["a list",t])]])}function $i(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ut(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+en(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new er(0,[i])):new er(1,[u.fields[0]])}return t}),new er(0,[ot(new Array(o.length),0,o.length,null)]),o)}return new er(1,[[n,new tr(0,["an array",t])]])}function Hi(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new er(1,[o.fields[0]])}function ji(e,n){let t;const r=e;return t=e=>n=>Ui(0,r,e,n),e=>r=>Hi(gn(3,(e=>{let t;const r=n;return t=e=>n=>Ui(1,r,e,n),n=>r=>Hi(((n,t,r)=>new er(0,[[e,n]])),gn(2,t),n,r)})),gn(2,t),e,r)}function Bi(e){return Wo(n={Compare:_n},$o(n,e));var n}function Li(e){return function(e,n){return new Si(e,n)}(n={Compare:_n},Ci(n,e));var n}function Vi(e,n,t,r){let o,i;return n.length!==r.length?new er(1,[[t,new tr(6,[(o=0|r.length,i=0|n.length,qn(Ln("Expected %i %s but got %i"))(i)(e)(o))])]]):st(((e,n,r)=>0===r.tag?nr((e=>mt(e,r.fields[0])),n(t)(e)):r),r,n,new er(0,[pt()]))}function qi(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>Pt(e)===r))}(0,Wt(t));if(null!=u){const t=u;return 0===i.length?new er(0,[Qt(t,[])]):nr((e=>Qt(t,bt(e))),Vi("union fields",it((t=>zi(e,n,!1,t[1])),Kt(t),null),o,i))}return new er(1,[[o,new tr(6,["Cannot find case "+r+" in "+Ut(t)])]])}function Wi(e,n,t,r){let o;const i=new Un(null),u=Yo(Ut(r),i,e);let s;if(Yt(r)){const e=it((e=>[sr(n,Pt(e)),zi(u,n,!1,e[1])]),zt(r),null);s=n=>t=>nr((e=>function(e,n){const t=zt(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce(((e,[t,r],o)=>(e[t]=n[o],e)),{})}(r,bt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new er(1,[[n,new tr(0,["an object",t])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?nr((e=>mt(e,r.fields[0])),e[1](n+"."+o)(t[o])):r})(r,e)),o)}(0,e,new er(0,[pt()]))}(e,n,t))}else if(Zt(r))s=e=>t=>{if("string"==typeof t)return qi(u,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return qi(u,n,r,o[0],e,o.slice(1,o.length))}return new er(1,[[e,new tr(0,["a string or array",t])]])};else{if(!t)throw new Error((o=Ut(r),qn(Ln("Cannot generate auto decoder for %s. Please pass an extra decoder."))(o)));s=e=>n=>new er(1,[[e,new tr(2,["an extra coder for "+Ut(r),n])]])}return i.contents=s,s}function zi(e,n,t,r){let o,i,u;const s=Ut(r),l=Xo(s,e);if(null==l){if(Ft(r)){const t=zi(e,n,!1,$t(r));return e=>n=>$i(gn(2,t),e,n)}if(jt(r)){const e=Ut(Lt(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=Ni(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=0|u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,e.toString())]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=Ai(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,e.toString())]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=Ri(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=0|u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,(s=e,(s=s<0&&null!=l&&10!==l?65535+s+1:s).toString(l)))]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}var s,l};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Di(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,e.toString())]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Gi(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=0|u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,en(e))]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=Pi(o)(i);if(1===u.tag)return new er(1,[u.fields[0]]);{const e=u.fields[0];return _o(e,Vt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new er(0,[qt(t,e.toString())]):new er(1,[[o,new tr(1,[Ut(t),i,"Unkown value provided for the enum"])]])}};{const e=Ut(r),n=Wn(Ln("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing 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=>n(e)}}if(Ht(r)){if(Xt(r)){const t=it((t=>zi(e,n,!1,t)),Jt(r),null);return e=>n=>Array.isArray(n)?nr((e=>bt(e)),Vi("tuple elements",t,e,n)):new er(1,[[e,new tr(0,["an array",n])]])}{const s=Ut(Bt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=zi(e,n,!0,Ot(r)[0]),e=>n=>{return t=gn(2,o),r=e,null==(i=n)?new er(0,[void 0]):nr(nt,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=zi(e,n,!1,Ot(r)[0]),e=>n=>Fi(gn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=zi(e,n,!1,Ot(r)[0]),o=zi(e,n,!1,Ot(r)[1]);let i;const s=xt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new er(1,[[t,new tr(0,["an object",r])]]):po(((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new er(0,[mt([u.fields[0],e.fields[0]],o.fields[0])]):new er(1,[e.fields[0]])}return new er(1,[u.fields[0]])}return o}),new er(0,[pt()]),Object.keys(r))}(gn(2,t),gn(2,o),e,n),(u=ji(gn(2,t),gn(2,o)),e=>n=>Fi(gn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(wt(o))return new er(1,[[t,new tr(7,[i])]]);{const u=Oi(t,gn(2,yt(o)),r);if(1===u.tag){e=vt(o),n=kt(i,gt(u.fields[0]));continue e}return new er(0,[u.fields[0]])}}})(s,pt());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new er(1,[o.fields[0]]):new er(0,[e(o.fields[0])])}(Bi,gn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=zi(e,n,!1,Ot(r)[0]);return e=>n=>{const r=$i(gn(2,t),e,n);return 0===r.tag?new er(0,[Li(r.fields[0])]):new er(1,[r.fields[0]])}}return Wi(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new er(0,[r]):new er(1,[[t,new tr(0,["a boolean",r])]]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new er(0,[void 0]):new er(1,[[t,new tr(0,["null",r])]]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new er(0,[r]):new er(1,[[t,new tr(0,["a string",r])]]);var t,r}:"System.SByte"===s?Ni:"System.Byte"===s?Ai:"System.Int16"===s?Ri:"System.UInt16"===s?Di:"System.Int32"===s?Gi:"System.UInt32"===s?Pi:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new er(0,[r]):new er(1,[[t,new tr(0,["a float",r])]]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new er(0,[r]):new er(1,[[t,new tr(0,["a float32",r])]]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=Cn(-621355968e5,0);return r=[En(n,new Un((()=>o),(e=>{o=e}))),o],r[0]?new er(0,[(t=r[1],1===t.kind?t:Cn(t.getTime(),1))]):new er(1,[[e,new tr(0,["a datetime",n])]])}var t;return new er(1,[[e,new tr(0,["a datetime",n])]])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=pr(-621355968e5,0);return t=[mr(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new er(0,[t[1]]):new er(1,[[e,new tr(0,["a datetimeoffset",n])]])}return new er(1,[[e,new tr(0,["a datetime",n])]])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[so(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new er(0,[t[1]]):new er(1,[[e,new tr(0,["a timespan",n])]])}return new er(1,[[e,new tr(0,["a timespan",n])]])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[fr(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new er(0,[t[1]]):new er(1,[[e,new tr(0,["a guid",n])]])}return new er(1,[[e,new tr(0,["a guid",n])]])}(e,n):"System.Object"===s?e=>e=>new er(0,[e]):Wi(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function Ji(e,n,t){const r=rt(n,new rr(0,[]));return zi(function(e){return null!=e?Ko(((e,n)=>new Un(n[1])),e.Coders):Qo({Compare:hn})}(t),r,!1,e)}class Zi extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["AccessRole"]}}function Yi(e){return new Zi(0,[e])}function Xi(e){return function(e,n,t){return null!=function(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(ht(o))return;if(e(dt(o)))return r;n=r+1,t=_t(o)}})(0,n)}((n=>t.Equals(e,n)),n)}(new Zi(0,["BankDetails.Access"]),e,{Equals:an,GetHashCode:sn})?nt(void 0):void 0}class Ki extends Pn{constructor(e,n){super(),this.UserName=e,this.Roles=n}}class Qi extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Inherited","Default","Specific"]}}class eu extends Pn{constructor(e,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=n}}const nu=(e,n)=>{X((()=>{const n=e();return()=>{n.Dispose()}}),n)};function tu(e){return{Dispose(){e()}}}function ru(e){return je.useRef(e)}function ou(e){const n=ru(e),t=function(e,t){const r=rt([],[]);return je.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),tu((()=>{}))),K((()=>{const e=o();return()=>{e.Dispose()}})),t}function iu(e){return je.useState(e)}class uu{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 n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class su extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,su.prototype)}}class lu{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>lu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function cu(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new su);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError($n(e))}}));else try{e(n)}catch(e){n.onError($n(e))}}}const au=new class{Bind(e,n){return function(e,n){return cu((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError($n(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return cu((n=>e()(n)))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While((()=>!r.done),this.Delay((()=>{const e=n(r.value);return r=t.next(),e})))}Return(e){return function(e){return cu((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return cu((t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})}))}TryWith(e,n){return cu((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError($n(e))}}})}))}Using(e,n){return this.TryFinally(n(e),(()=>e.Dispose()))}While(e,n){return e()?this.Bind(n,(()=>this.While(e,n))):this.Return(void 0)}Zero(){return cu((e=>e.onSuccess(void 0)))}};function fu(e){}const hu=new uu;function du(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new lu;e({onSuccess:n||fu,onError:t||fu,onCancel:r||fu,cancelToken:o||hu,trampoline:i})}(e,n)}(e,n)}class _u extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function pu(e,n){const t=ru(function(e){const n=new uu(!1);return n}());return nu((()=>tu((()=>{t.current.cancel()}))),[]),ou((r=>{var o,i;null!=(i=t.current)&&i.isCancelled||du((o=r,au.Delay((()=>au.TryWith(au.Delay((()=>(n(new _u(1,[])),au.Bind(e(o),(e=>(n(new _u(2,[e])),au.Zero())))))),(e=>(n(new _u(3,[e])),au.Zero())))))),t.current)}))}function mu(e,n){return new er(0,[n])}new class{constructor(){}};function gu(e){const n=mu();return au.Return(n)}function wu(e,n){return au.Delay(n)}new class{constructor(){}};class yu extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class vu extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Header"]}}class bu extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Cu extends Pn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class Su extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Eu extends Pn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const xu=new Cu("",new yu(0,[]),pt(),!1,void 0,void 0,void 0,new bu(0,[]));function ku(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:Kn(n,[e],null,0);var t}function Tu(e){return new Cu(e,xu.method,xu.headers,xu.withCredentials,xu.overridenMimeType,xu.overridenResponseType,xu.timeout,xu.content)}function Iu(e,n){return new Cu(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Ou(e){return function(e){return cu((n=>e([n.onSuccess,n.onError,n.onCancel])))}((n=>{const t=new XMLHttpRequest;t.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),t.onreadystatechange=()=>{let e,r,o,i,u,s;var l,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new Su(0,[t.responseText]):new Su("arraybuffer"===s?2:"blob"===s?1:3,[t.response]),new Eu(o,e,i,(l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=tt(o);r.push(e)}}return an(null,null)?r:it((e=>e),r,null)}((e=>{const n=xt(ku(":",e));return wt(n)?void 0:[yt(n).toLocaleLowerCase(),Zn(":",vt(n)).trim()]}),ku("\r\n",t.getAllResponseHeaders())),Wo(c={Compare:hn},$o(c,l))),u)))};const r=Ze(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=e.content;0===e.method.tag?t.send(nt(void 0)):1===s.tag||3===s.tag||2===s.tag?t.send(nt(s.fields[0])):t.send(nt(void 0))}))}function Mu(e){return e}function Nu(e){return Array.from(e)}function Au(e){return bn(e,"O")}function Ru(e){return function(e,n="c",t){if(-1===["c","g","G"].indexOf(n))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return oo(e/864e5)}(e)),o=Math.abs(function(e){return oo(e%864e5/36e5)}(e)),i=Math.abs(function(e){return oo(e%36e5/6e4)}(e)),u=Math.abs(function(e){return oo(e%6e4/1e3)}(e)),s=Math.abs(function(e){return oo(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==n&&"g"!==n?"c"===n?r+".":r+":":""}${"g"===n?o:Ke(o,2)}:${Ke(i,2)}:${Ke(u,2)}${0!==s||"c"!==n&&"g"!==n?"g"===n?"."+Ke(s,3):"."+function(e,n,t){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function Du(){return null}function Gu(e){return bn(e,"O")}function Pu(e,n){return JSON.stringify(n,gn(2,null),nt(e))}function Uu(e,n,t,r){let o;const i=new Un(null),u=Yo(Ut(r),i,e);let s;if(Yt(r)){const e=it((e=>{const r=sr(n,Pt(e)),o=Fu(u,n,t,e[1]);return n=>i=>{const u=function(e,n){return e[n[0]]}(n,e);return(!t||t&&null!=u)&&(i[r]=o(u)),i}}),zt(r),null);s=n=>po(((e,t)=>t(n)(e)),{},e)}else{if(!Zt(r))throw new Error((o=Ut(r),qn(Ln("Cannot generate auto encoder for %s. Please pass an extra encoder."))(o)));s=e=>{const o=function(e,n){const t=Wt(n)[e.tag];if(null==t)throw new Error(`Cannot find case ${e.name} in union type`);return[t,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Pt(i);{const e=0|l,r=Kt(i),o=ot(new Array(e+1),0,e+1,null);o[0]=Pt(i);for(let i=1;i<=e;i++){const e=Fu(u,n,t,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return i.contents=s,s}function Fu(e,n,t,r){const o=Ut(r),i=Xo(o,e);if(null==i){if(Ft(r)){const o=Fu(e,n,t,$t(r));return e=>Nu(go(o,e))}if(jt(r)){const e=Ut(Lt(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=Ut(r);return Wn(Ln("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(Ht(r)){if(Xt(r)){const o=it((r=>Fu(e,n,t,r)),Jt(r),null);return e=>Nu(wo(((e,n)=>o[e](n)),e))}{const o=Ut(Bt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Xe((()=>{return o=Fu(e,n,t,Ot(r)[0]),e=>{return function(e,n){return null!=e?tt(e):null}(null!=(n=e)?nt(o(tt(n))):void 0);var n};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Fu(e,n,t,Ot(r)[0]);return e=>Nu(go(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Ot(r)[0],i=Fu(e,n,t,Ot(r)[1]);if("System.String"===Ut(o)||"System.Guid"===Ut(o))return e=>po(((e,n)=>{const t=n;return e[t[0]]=i(t[1]),e}),{},e);{let r;const u=Fu(e,n,t,o);return r=u,e=>Nu(go((e=>{const n=e;return[r(n[0]),i(n[1])]}),e))}}return Uu(e,n,t,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Du:"System.String"===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?Gu:"System.DateTimeOffset"===o?Au:"System.TimeSpan"===o?Ru:"System.Guid"===o?Mu:"System.Object"===o?e=>e:Uu(e,n,t,r)}{const e=i;return n=>e.contents(n)}}function $u(e,n,t,r){const o=rt(n,new rr(0,[])),i=rt(r,!0);return Fu(function(e){return null!=e?Ko(((e,n)=>new Un(n[0])),e.Coders):Qo({Compare:hn})}(t),o,i,e)}function Hu(e){return`${e}/bank-details/admin`}function ju(e,n){return wu(0,(()=>{const t=(r=function(e){return new vu(0,["Authorization",e])}(qn(Ln("Bearer %s"))(e)),new Cu((o=n).url,o.method,kt(o.headers,gt(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;let i;const u=Ou(t);return i=au.Bind(u,(e=>au.Return(new er(0,[e])))),au.Delay((()=>au.Bind(i,(e=>{let n,r;const o=e;return 1===o.tag?au.Return(new er(1,[o.fields[0]])):au.ReturnFrom((n=o.fields[0],429===n.statusCode||n.statusCode>=500?(r=Ou(t),au.Bind(r,(e=>au.Return(new er(0,[e]))))):function(e,n){const t=mu(0,n);return au.Return(t)}(0,n)))}))))}))}function Bu(){return(Bu=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Lu(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return G(n,t)}function Vu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Lu,Bu({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[qu(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=f(Ju,{name:c},l):r[i]=l}var a=t?f(Ju,null,r):r;return f(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?D:R)(this._vdom,this._root)}function qu(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function Wu(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[qu(e)]=t,this._vdom=G(this._vdom,r),R(this._vdom,this._root)}}function zu(){R(this._vdom=null,this._root)}function Ju(e,n){var t=this;return f("slot",Bu({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function Zu(e){let n;return Be("div",pn(xt([["className","py-10"],(n=[Be("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${t=e.configOwnership,2===t.tag?"":`(${t})`}: `}),Be("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:n=>{const t=n.target.valueAsNumber;null==t||Number.isNaN(t)||e.handleMaxAccountChanged(function(e,n=0){const t=Math.pow(10,n),r=+(n?e*t:e).toFixed(8),o=Math.floor(r),i=r-o,u=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return n?u/t:u}(t))}})],["children",je.Children.toArray(Array.from(n))])])));var t}function Yu(e){let n;const t=e.msg;return Be("div",pn(xt([["className","text-sm font-medium text-gray-900 my-5"],(n=[Be("span",{children:[t]})],["children",je.Children.toArray(Array.from(n))])])))}function Xu(e){let n;const t=function(e){let n;const t=Kn(null==e?"":e,["."],null,0);if(null==t||3!==t.length)n=new er(1,["Failed to identify the user"]);else{let e;const o=t[1];e=atob(o),n=Mi(gn(2,Ji(At(["Name",Dt],["Roles",(r=Dt,new It("[]",[r]))]),new rr(1,[]),void 0)),e)}var r;if(1===n.tag)return new Ki(void 0,pt());{const e=n.fields[0];return new Ki(e.Name,function(e,n){const t=at(),r=Ct(((n,t)=>{const r=new lt(e(t),void 0);return n.tail=r,r}),t,n),o=at();return r.tail=o,_t(t)}(Yi,xt(e.Roles)))}}(e.accessToken),r=iu(0),o=r[1],i=0|r[0],u=iu(new Qi(1,[])),s=iu(new _u(0,[])),l=s[1],c=s[0],a=wu(0,(()=>{const n=(t=e.backendUrl,r=e.accessToken,i=e.partnerId,s=e.accountId,wu(0,(()=>{const e=ju(r,Iu(new yu(0,[]),Tu((n=Hu(t),null==s?`${n}/partners/${i}/max-accounts`:(tt(s),`${n}/partners/${i}/accounts/${s}/max-accounts`)))));var n;return au.Delay((()=>au.Bind(e,(e=>{let n,t;const r=e;return 1===r.tag?au.Return(new er(1,[r.fields[0]])):au.ReturnFrom((n=r.fields[0],200===n.statusCode?(t=Mi(gn(2,Ji(new It("Types.Model",[],eu,void 0,(()=>[["MaxAccounts",Gt],["ConfigOwnership",function(e,n,t,r){const o=new It("Types.ConfigOwnership",[],t,void 0,void 0,(()=>{const e=t.prototype.cases();return[[],[],[]].map(((n,t)=>new Tt(o,t,e[t],n)))}));return o}(0,0,Qi)]])),new rr(1,[]),void 0)),n.responseText),au.Return(t)):au.Return(new er(1,[n.responseText]))))}))))})));var t,r,i,s;return au.Delay((()=>au.Bind(n,(e=>{let n;const t=e;return 1===t.tag?au.Return(new er(1,[t.fields[0]])):au.ReturnFrom((n=t.fields[0],o(n.MaxAccounts),u[1](n.ConfigOwnership),gu()))}))))})),h=wu(0,(()=>{const n=function(e,n,t,r,o){return wu(0,(()=>{let i;const u=(a=Hu(e),null==r?`${a}/partners/${t}/max-accounts`:`${a}/partners/${t}/accounts/${r}/max-accounts`),s=ju(n,Iu(new yu(2,[]),(l=new bu(1,[(i={maxAccounts:o},Pu(0,$u(At(["maxAccounts",Gt]),new rr(1,[]),void 0,void 0)(i)))]),c=Tu(u),new Cu(c.url,c.method,c.headers,c.withCredentials,c.overridenMimeType,c.overridenResponseType,c.timeout,l))));var l,c,a;return au.Delay((()=>au.Bind(s,(e=>{let n;const t=e;return 1===t.tag?au.Return(new er(1,[t.fields[0]])):au.ReturnFrom((n=t.fields[0],200===n.statusCode?au.Return(new er(0,[void 0])):au.Return(new er(1,[n.responseText]))))}))))}))}(e.backendUrl,e.accessToken,e.partnerId,e.accountId,i);return au.Delay((()=>au.Bind(n,(e=>{const n=e;return 1===n.tag?au.Return(new er(1,[n.fields[0]])):au.ReturnFrom(au.Bind(a,(e=>{const n=nr((()=>{}),e);return au.Return(n)})))}))))})),d=wu(0,(()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,wu(0,(()=>{const e=ju(r,Iu(new yu(4,[]),Tu((n=Hu(t),null==i?`${n}/partners/${o}/max-accounts`:(tt(i),`${n}/partners/${o}/accounts/${i}/max-accounts`)))));var n;return au.Delay((()=>au.Bind(e,(e=>{let n;const t=e;return 1===t.tag?au.Return(new er(1,[t.fields[0]])):au.ReturnFrom((n=t.fields[0],200===n.statusCode?au.Return(new er(0,[void 0])):au.Return(new er(1,[n.responseText]))))}))))})));var t,r,o,i;return au.Delay((()=>au.Bind(n,(e=>{const n=e;return 1===n.tag?au.Return(new er(1,[n.fields[0]])):au.ReturnFrom(au.Bind(a,(e=>{const n=nr((()=>{}),e);return au.Return(n)})))}))))})),_=pu((()=>a),l),p=pu((()=>h),l),m=pu((()=>d),l);let g,w,y,v;switch(function(e,n){nu((n=>(e(),tu((()=>{})))),[])}(_),2===c.tag?1===c.fields[0].tag?(w=0,y=c.fields[0].fields[0]):w=2:3===c.tag?(w=1,v=c.fields[0]):w=2,w){case 0:g=f(Yu,{msg:y});break;case 1:g=f(Yu,{msg:Dn(v)});break;case 2:g=null}if(null!=Xi(t.Roles)){const e=xt([f(Zu,{configOwnership:u[0],handleMaxAccountChanged:o,selected:i}),Be("div",pn(gt((n=[Be("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Update",onClick:e=>{p()}}),Be("button",{className:"inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none",type:"button",children:"Reset",onClick:e=>{m()}}),g],["children",je.Children.toArray(Array.from(n))]))))]);return Be("div",{children:je.Children.toArray(Array.from(e))})}return f(Yu,{msg:"You do not have the appropriate permissions to view this information"})}new Eu(0,"","",Qo({Compare:hn}),new Su(0,[""])),function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Vu,o.prototype.attributeChangedCallback=Wu,o.prototype.disconnectedCallback=zu,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-bank-details",o)}((e=>f(Xu,e)))})();
|