@flarehr/superhero-fasttrack-middleware 1.61.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){"use strict";function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function u(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}t.r(n),t.d(n,"State",(function(){return Il})),t.d(n,"State$reflection",(function(){return Al})),t.d(n,"DataToLoad",(function(){return Ol})),t.d(n,"DataToLoad$reflection",(function(){return Nl})),t.d(n,"Msg",(function(){return Ml})),t.d(n,"Msg$reflection",(function(){return Pl})),t.d(n,"StateModule_init",(function(){return Dl})),t.d(n,"StateModule_update",(function(){return Fl})),t.d(n,"Component",(function(){return Rl}));class s{constructor(e){this.iter=e}"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 c(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new s(e[Symbol.iterator]())}function l(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function a(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function f(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function p(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function _(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function g(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=g(e[r]);return m(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return m(Object.values(e).map(e=>g(e)))}return _(d.id(e))}}function w(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 y(e,n){return w(e,n,v)}function v(e,n){return e===n||(null==e?null==n:null!=n&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(n):r(e)?r(n)&&y(e,n):e instanceof Date?n instanceof Date&&0===b(e,n):Object.getPrototypeOf(e).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]||!v(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function b(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+f(e),r=n.getTime()+f(n)),t===r?0:t<r?-1:1}function C(e,n){return e===n?0:e<n?-1:1}function E(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,S)}function S(e,n){return e===n?0:null==e?null==n?0:-1:null==n?1:"object"!=typeof e?e<n?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(n):r(e)?r(n)?E(e,n):-1:e instanceof Date?n instanceof Date?b(e,n):-1:Object.getPrototypeOf(e).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=S(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function x(e,n,t){return e(n,t)>0?n:t}function k(e){const n={};for(const t of e)n[t[0]]=t[1];return n}d.idMap=new WeakMap,d.count=0;function T(e,n){if(null==n||n.length>1)return n;let t;switch(e){case 2:t=(e,t)=>n(e)(t);break;case 3:t=(e,t,r)=>n(e)(t)(r);break;case 4:t=(e,t,r,o)=>n(e)(t)(r)(o);break;case 5:t=(e,t,r,o,i)=>n(e)(t)(r)(o)(i);break;case 6:t=(e,t,r,o,i,u)=>n(e)(t)(r)(o)(i)(u);break;case 7:t=(e,t,r,o,i,u,s)=>n(e)(t)(r)(o)(i)(u)(s);break;case 8:t=(e,t,r,o,i,u,s,c)=>n(e)(t)(r)(o)(i)(u)(s)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return t.__CURRIED__=n,t}function I(e,n){if(null==n||1===n.length)return n;if("__CURRIED__"in n)return n.__CURRIED__;switch(e){case 2:return e=>t=>n(e,t);case 3:return e=>t=>r=>n(e,t,r);case 4:return e=>t=>r=>o=>n(e,t,r,o);case 5:return e=>t=>r=>o=>i=>n(e,t,r,o,i);case 6:return e=>t=>r=>o=>i=>u=>n(e,t,r,o,i,u);case 7:return e=>t=>r=>o=>i=>u=>s=>n(e,t,r,o,i,u,s);case 8:return e=>t=>r=>o=>i=>u=>s=>c=>n(e,t,r,o,i,u,s,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function A(e,n){return t=>function e(n,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=I(e,t)),n>1&&(t=T(n,t))}const u=n(t);return o+1===r.length?u:n=>e(u,n,r,o+1)}(e,t,n,0)}function O(e,n=0){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+=O(r);else{if(100===n){t+="; ...";break}t+="; "+O(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+O(t,n+1)).join("\n ")+" }":t.name}}return String(e)}class N{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=O(n[0]),r=t.indexOf(" ")>=0):t=n.map(e=>O(e)).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>g(e));return e.splice(0,0,_(this.tag)),m(e)}Equals(e){return this===e||!!u(this,e)&&(this.tag===e.tag&&y(this.fields,e.fields))}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function M(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function P(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+O(n)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>g(e)))}function F(e,n){if(e===n)return!0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!v(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=S(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return M(this)}toString(){return P(this)}GetHashCode(){return D(this)}Equals(e){return F(this,e)}CompareTo(e){return R(this,e)}}class j{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 L{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class G{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 Q(this)}GetHashCode(){return B(this)}Equals(e){return $(this,e)}}function H(e){return null!=e.generics?e.generics:[]}function B(e){return m([p(e.fullname),...H(e).map(B)])}function $(e,n){return""===e.fullname?""===n.fullname&&w(ue(e),ue(n),([e,n],[t,r])=>e===t&&$(n,r)):e.fullname===n.fullname&&w(H(e),H(n),$)}function V(e,n,t,r){return new G(e,n,t,r)}function W(e,n,t,r){return new G(e,n,t,void 0,r)}function q(e,n,t,r){const o=new G(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new L(o,t,e[t],n))});return o}function z(e){return new G("Microsoft.FSharp.Core.FSharpOption`1",[e])}function J(e){return new G("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Z=new G("System.Object"),Y=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String")),X=new G("System.Boolean");new G("System.SByte"),new G("System.Byte"),new G("System.Int16"),new G("System.UInt16"),new G("System.Int32"),new G("System.UInt32"),new G("System.Single"),new G("System.Double"),new G("System.Decimal");function K(e){if(Array.isArray(e))return e[0];if(e instanceof L)return e.name;{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}function Q(e){const n=null==e.generics||ee(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map(e=>Q(e)).join(",")+"]":e.fullname}function ee(e){return e.fullname.endsWith("[]")}function ne(e){return null!=e.enumCases&&e.enumCases.length>0}function te(e){if(ne(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function re(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")}function oe(e,n){const t=parseInt(n,10);return re(e,isNaN(t)?n:t)[1]}function ie(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ue(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function se(e){return e.fullname.startsWith("System.Tuple")&&!ee(e)}function ce(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):{}}var le;function ae(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 fe(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=t||function(e,n){if(n&le.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)).test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}function he(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=fe(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=ae(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=ae(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 de(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(le||(le={}));const pe=Symbol("numeric");function _e(e){return"number"==typeof e||(null==e?void 0:e[pe])}function me(e,n){return"number"==typeof e?e*n:e[pe]().multiply(n)}function ge(e,n){return"number"==typeof e?e.toFixed(n):e[pe]().toFixed(n)}function we(e,n){return"number"==typeof e?e.toPrecision(n):e[pe]().toPrecision(n)}function ye(e,n){return"number"==typeof e?e.toExponential(n):e[pe]().toExponential(n)}function ve(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[pe]().toHex()}var be=null;try{be=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(e){}function Ce(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Ee(e){return!0===(e&&e.__isLong__)}Ce.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ce.prototype.Equals=function(e){return Ye(this,e)},Ce.prototype.CompareTo=function(e){return en(this,e)},Ce.prototype.toString=function(e){return qe(this,e)},Ce.prototype.toJSON=function(){return qe(this)},Ce.prototype[pe]=function(){const e=this;return{multiply:n=>on(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:()=>qe(e.unsigned?e:hn(fn(e),!0),16)}},Ce.prototype.__isLong__,Object.defineProperty(Ce.prototype,"__isLong__",{value:!0});var Se={},xe={};function ke(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=xe[e])?r:(t=Ie(e,(0|e)<0?-1:0,!0),o&&(xe[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Se[e])?r:(t=Ie(e,e<0?-1:0,!1),o&&(Se[e]=t),t)}function Te(e,n){if(isNaN(e))return n?Ue:Re;if(n){if(e<0)return Ue;if(e>=Pe)return Be}else{if(e<=-De)return $e;if(e+1>=De)return He}return e<0?nn(Te(-e,n)):Ie(e%Me|0,e/Me|0,n)}function Ie(e,n,t){return new Ce(e,n,t)}var Ae=Math.pow;function Oe(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Re;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 nn(Oe(e.substring(1),n,t));for(var o=Te(Ae(t,8)),i=Re,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),c=parseInt(e.substring(u,u+s),t);if(s<8)i=tn(on(i,Te(Ae(t,s))),Te(c));else i=tn(i=on(i,o),Te(c))}return i.unsigned=n,i}function Ne(e,n){return"number"==typeof e?Te(e,n):"string"==typeof e?Oe(e,n):Ie(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Me=4294967296,Pe=Me*Me,De=Pe/2,Fe=ke(1<<24),Re=ke(0),Ue=ke(0,!0),je=ke(1),Le=ke(1,!0),Ge=ke(-1),He=Ie(-1,2147483647,!1),Be=Ie(-1,-1,!0),$e=Ie(0,-2147483648,!1);function Ve(e){return e.unsigned?e.low>>>0:e.low}function We(e){return e.unsigned?(e.high>>>0)*Me+(e.low>>>0):e.high*Me+(e.low>>>0)}function qe(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(ze(e))return"0";if(Je(e)){if(Ye(e,$e)){var t=Te(n),r=un(e,t),o=rn(on(r,t),e);return qe(r,n)+Ve(o).toString(n)}return"-"+qe(nn(e),n)}for(var i=Te(Ae(n,6),e.unsigned),u=e,s="";;){var c=un(u,i),l=(Ve(rn(u,on(c,i)))>>>0).toString(n);if(ze(u=c))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function ze(e){return 0===e.high&&0===e.low}function Je(e){return!e.unsigned&&e.high<0}function Ze(e){return 1==(1&e.low)}function Ye(e,n){return Ee(n)||(n=Ne(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function Xe(e,n){return en(e,n)<0}function Ke(e,n){return en(e,n)>0}function Qe(e,n){return en(e,n)>=0}function en(e,n){if(Ee(n)||(n=Ne(n)),Ye(e,n))return 0;var t=Je(e),r=Je(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:Je(rn(e,n))?-1:1}function nn(e){return!e.unsigned&&Ye(e,$e)?$e:tn(sn(e),je)}function tn(e,n){Ee(n)||(n=Ne(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,c=n.low>>>16,l=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+c)>>>16,l+=(a+=r+s)>>>16,l+=t+u,Ie((f&=65535)<<16|(h&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function rn(e,n){return Ee(n)||(n=Ne(n)),tn(e,nn(n))}function on(e,n){if(ze(e))return e.unsigned?Ue:Re;if(Ee(n)||(n=Ne(n)),be)return Ie(be.mul(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned);if(ze(n))return e.unsigned?Ue:Re;if(Ye(e,$e))return Ze(n)?$e:Re;if(Ye(n,$e))return Ze(e)?$e:Re;if(Je(e))return Je(n)?on(nn(e),nn(n)):nn(on(nn(e),n));if(Je(n))return nn(on(e,nn(n)));if(Xe(e,Fe)&&Xe(n,Fe))return Te(We(e)*We(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,c=n.low>>>16,l=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*l)>>>16,f+=(h+=o*l)>>>16,h&=65535,f+=(h+=i*c)>>>16,a+=(f+=r*l)>>>16,f&=65535,a+=(f+=o*c)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*l+r*c+o*s+i*u,Ie((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function un(e,n){if(Ee(n)||(n=Ne(n)),ze(n))throw Error("division by zero");var t,r,o;if(be)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Ie((e.unsigned?be.div_u:be.div_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):e;if(ze(e))return e.unsigned?Ue:Re;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Ie(e.low,e.high,!0)}(n)),Ke(n,e))return Ue;if(Ke(n,an(e,1)))return Le;o=Ue}else{if(Ye(e,$e))return Ye(n,je)||Ye(n,Ge)?$e:Ye(n,$e)?je:Ye(t=cn(un(ln(e,1),n),1),Re)?Je(n)?je:Ge:o=tn(t,un(r=rn(e,on(n,t)),n));if(Ye(n,$e))return e.unsigned?Ue:Re;if(Je(e))return Je(n)?un(nn(e),nn(n)):nn(un(nn(e),n));if(Je(n))return nn(un(e,nn(n)));o=Re}for(r=e;Qe(r,n);){t=Math.max(1,Math.floor(We(r)/We(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:Ae(2,i-48),s=Te(t),c=on(s,n);Je(c)||Ke(c,r);)c=on(s=Te(t-=u,e.unsigned),n);ze(s)&&(s=je),o=tn(o,s),r=rn(r,c)}return o}function sn(e){return Ie(~e.low,~e.high,e.unsigned)}function cn(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Ie(0,e.low<<n-32,e.unsigned)}function ln(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Ie(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function an(e,n){if(Ee(n)&&(n=Ve(n)),0===(n&=63))return e;var t=e.high;return n<32?Ie(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Ie(32===n?t:t>>>n-32,0,e.unsigned)}function fn(e,n){return n?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]}(e):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]}(e)}function hn(e,n,t){return t?function(e,n){return new Ce(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 Ce(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)}const dn=tn,pn=on,_n=un,mn=function(e,n){return Ee(n)||(n=Ne(n)),be?Ie((e.unsigned?be.rem_u:be.rem_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):rn(e,on(un(e,n),n))},gn=nn,wn=function(e,n){return Ee(n)||(n=Ne(n)),Ie(e.low&n.low,e.high&n.high,e.unsigned)},yn=en,vn=Ie,bn=Ve,Cn=We;function En(e,n,t){let r=e,o=0;switch(t){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return Ie(r,o>>31,n)}const Sn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function xn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+a(~~(e/36e5),2)+":"+a(t,2)}function kn(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 Tn(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:r<10&&n.length>1?"0"+r:""+r})}function In(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," ")+xn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return Tn(i,n,!0);switch(n){case"D":case"d":return kn(i,"first");case"T":case"t":return kn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+xn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function An(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return Tn(e,n,t);switch(n){case"D":case"d":return t?kn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?kn(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 a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(n?xn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function On(e,n,t){return null!=e.offset?In(e,n):An(e,n)}function Nn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Mn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let n=new Date(e);if(isNaN(n.getTime())){const t=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==t)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=t[2]){const e=t[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=t[3]&&"PM"===t[3].toUpperCase()&&(r+=720)}if(null!=t[4]){if(null!=t[1])e=new Date(t[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}const n=t[4].substr(1).split(":");let o=60*parseInt(n[0],10)+parseInt(n[1]||"0",10);"+"===t[4][0]&&(o*=-1),r+=60*o}else if(null!=t[1])e=new Date(t[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}n=new Date(e.getTime()+1e3*r),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}}return n}function Pn(e,n){try{return n.contents=function(e,n=!1){const t=Mn(e),r=Sn.exec(e),o=null!=r?n&&"Z"===r[0]?1:2:0;return Nn(t.getTime(),o)}(e),!0}catch(e){return!1}}function Dn(e,n=0){if(0!=(-276&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let t="g";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function Fn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rn(e,n,t=0){let r;if(r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Dn(n,t),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const Un=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ln=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Hn(e){return{input:e,cont:(n=e,e=>{Un.lastIndex=0;const t=[],r=[];let o=0,i=Un.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Un.lastIndex,Un.lastIndex-=1,i=Un.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),function e(n,t,r,o="",i=-1){return(...u)=>{let s=o;const c=t.slice(),l=r.slice();for(const e of u){const[,,n,t,r,o]=l[0];let u=t;if(i>=0)u=i,i=-1;else if("*"===u){if(e<0)throw new Error("Non-negative number required");i=e;continue}s+=c[0],s+=Vn(e,n,u,r,o),c.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=c[0],n(s)):e(n,c,l,s,i)}}(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function $n(e){return Bn(e=>e,e)}function Vn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",_e(e))switch("x"!==o.toLowerCase()&&(Gn(e,0)?(e=me(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ge(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?we(e,r):we(e);break;case"e":case"E":e=null!=r?ye(e,r):ye(e);break;case"x":e=ve(e);break;case"X":e=ve(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?On(e):O(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 Wn(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Ln,(e,t,r,o,i,u)=>{let s=n[t];if(_e(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=ge(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?we(s,i):we(s);break;case"e":case"E":s=null!=i?ye(s,i):ye(s);break;case"p":case"P":i=null!=i?i:2,s=ge(me(s,100),i)+" %";break;case"d":case"D":s=null!=i?Jn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Jn(ve(s),i,"0"):ve(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/(0+)(\.0+)?/,(n,t,r)=>(Gn(s,0)&&(s=me(s,-1),e="-"),s=ge(s,null!=r?r.length-1:0),Jn(s,(t||"").length-e.length+(null!=r?r.length:0),"0"))),s=e+s}}else s=s instanceof Date?On(s,u||o):O(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s})}function qn(e){return"string"!=typeof e||0===e.length}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,r){if(r="number"==typeof r?r:void 0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];if(!Array.isArray(n)){if(0===r)return e.split(n,t);const o=arguments.length;n=Array(o-1);for(let e=1;e<o;e++)n[e-1]=arguments[e]}n=(n=n.map(e=>Fn(e))).length>0?n:[" "];let o=0;const i=[],u=new RegExp(n.join("|"),"g");for(;null==t||t>1;){const n=u.exec(e);if(null===n)break;(!r||n.index-o>0)&&(t=null!=t?t-1:t,i.push(e.substring(o,n.index))),o=u.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Yn(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return g(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:S(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){return null==e?[]:[Qn(e)]}function nt(e,n){return null!=e?Qn(e):n}function tt(e,n){return null!=n?Kn(e(Qn(n))):void 0}function rt(e,n){return"function"==typeof e?new e(n):new Array(n)}function ot(){throw new Error("Arrays had different lengths")}function it(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function ut(e,n,t){const r=0|n.length,o=rt(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function st(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=rt(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function ct(e,n,t){return t.reduce((n,t)=>e(n,t),n)}function lt(e,n,t){return 0===function(e,n,t){if(null==n)return null==t?0:-1;if(null==t)return 1;{let r=0,o=0;const i=0|n.length,u=0|t.length;if(i>u)return 1;if(i<u)return-1;for(;r<i&&0===o;)o=0|e(n[r],t[r]),r=r+1|0;return 0|o}}((e,n)=>S(e,n),n,t)}function at(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}function ft(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&ot();const i=0|n.length;for(let r=1;r<=i;r++)o=e(r-1,n[i-r],t[i-r],o);return o}((n,t,r,o)=>e(t,r,o),n,t,r)}class ht extends U{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",this)+"]"}Equals(e){const n=this;if(n===e)return!0;return((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1];if(v(t.head,r.head)){e=i,n=u;continue e}return!1}return!1}return null==o[1]}})(n,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)+g(i.head)+631*r,t=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1],s=0|S(t.head,r.head);if(0===s){e=i,n=u;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new dt(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class dt{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"(){this.it=this.xs,this.current=null}Dispose(){}}function pt(){return new ht(null,void 0)}function _t(e,n){return new ht(e,n)}function mt(e){return null==e.tail}function gt(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)}function wt(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function yt(e){const n=e.tail;if(null!=n)return n;throw new Error("List was empty\\nParameter name: list")}function vt(){return pt()}function bt(e,n){return _t(e,n)}function Ct(e){return _t(e,pt())}function Et(e){return mt(e)}function St(e){return wt(e)}function xt(e){return yt(e)}function kt(e){const n=0|gt(e),t=it(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(mt(o))break;t[r]=wt(o),e=r+1,n=yt(o)}})(0,e),t}function Tt(e,n,t){let r=n,o=t;for(;!mt(o);)r=e(r,wt(o)),o=yt(o);return r}function It(e){return Tt((e,n)=>_t(n,e),pt(),e)}function At(e,n){Tt((n,t)=>{e(t)},void 0,n)}function Ot(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=_t(e[n],t);return t}function Nt(e){return Ot(e,pt())}function Mt(e,n){return Tt((e,n)=>_t(n,e),n,It(e))}function Pt(e,n){const t=pt(),r=Tt((n,t)=>{const r=new ht(e(t),void 0);return n.tail=r,r},t,n),o=pt();return r.tail=o,yt(t)}class Dt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountList","NotFound"]}}function Ft(){return q("Middleware.FastTrack.AdminUI.Types.Page",[],Dt,()=>[[],[]])}function Rt(e){let n;switch(n=Et(e)?1:"fasttrack-middleware"===St(e)?Et(xt(e))?1:"accounts"===St(xt(e))&&Et(xt(xt(e)))?0:1:1,n){case 0:return new Dt(0);case 1:return new Dt(1)}}class Ut extends U{constructor(e,n,t,r,o,i){super(),this.AccountName=e,this.ApiVersion=n,this.Email=t,this.PayeeIntegrationFlag=r,this.PayeeType=o,this.PayeeUpdateFlag=i}}function jt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Common.FastTrackDetails",[],Ut,()=>[["AccountName",z(Y)],["ApiVersion",Y],["Email",z(Y)],["PayeeIntegrationFlag",X],["PayeeType",z(Y)],["PayeeUpdateFlag",X]])}class Lt extends U{constructor(e,n,t,r){super(),this.Id=e,this.FastTrack=n,this.Flare=t,this.LastSummaryEmailChecked=r}}function Gt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.Account",[],Lt,()=>[["Id",Y],["FastTrack",jt()],["Flare",W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.FlareDetails",[],Ht,()=>[["AccountName",z(Y)],["RepName",Y],["WebhookSubscriptionId",z(Y)],["UseDivisionLookup",X]])],["LastSummaryEmailChecked",z(Y)]])}class Ht extends U{constructor(e,n,t,r){super(),this.AccountName=e,this.RepName=n,this.WebhookSubscriptionId=t,this.UseDivisionLookup=r}}class Bt extends U{constructor(e,n){super(),this.Id=e,this.FastTrack=n}}function $t(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Apollo.Account",[],Bt,()=>[["Id",Y],["FastTrack",jt()]])}class Vt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function Wt(e,n){return 0===n.tag?new Vt(0,e(n.fields[0])):new Vt(1,n.fields[0])}var qt,zt,Jt,Zt,Yt,Xt={},Kt=[],Qt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function er(e,n){for(var t in n)e[t]=n[t];return e}function nr(e){var n=e.parentNode;n&&n.removeChild(e)}function tr(e,n,t){var r,o,i,u=arguments,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);if(null!=t&&(s.children=t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return rr(e,s,r,o,null)}function rr(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++qt.__v:o};return null!=qt.vnode&&qt.vnode(i),i}function or(e){return e.children}function ir(e,n){this.props=e,this.context=n}function ur(e,n){if(null==n)return e.__?ur(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?ur(e):null}function sr(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 sr(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!lr.__r++||Zt!==qt.debounceRendering)&&((Zt=qt.debounceRendering)||Jt)(lr)}function lr(){for(var e;lr.__r=zt.length;)e=zt.sort((function(e,n){return e.__v.__b-n.__v.__b})),zt=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=er({},o)).__v=o.__v+1,wr(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?ur(o):i,o.__h),yr(t,o),o.__e!=i&&sr(o)))}))}function ar(e,n,t,r,o,i,u,s,c,l){var a,f,h,d,p,_,m,g=r&&r.__k||Kt,w=g.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(d=t.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?rr(null,d,null,null,d):Array.isArray(d)?rr(or,{children:d},null,null,null):d.__b>0?rr(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(h=g[a])||h&&d.key==h.key&&d.type===h.type)g[a]=void 0;else for(f=0;f<w;f++){if((h=g[f])&&d.key==h.key&&d.type===h.type){g[f]=void 0;break}h=null}wr(e,d,h=h||Xt,o,i,u,s,c,l),p=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||p,d)),null!=p?(null==_&&(_=p),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=c=fr(d,c,e):c=dr(e,d,h,g,p,c),l||"option"!==t.type?"function"==typeof t.type&&(t.__d=c):e.value=""):c&&h.__e==c&&c.parentNode!=e&&(c=ur(h))}for(t.__e=_,a=w;a--;)null!=g[a]&&("function"==typeof t.type&&null!=g[a].__e&&g[a].__e==t.__d&&(t.__d=ur(r,a+1)),Cr(g[a],g[a]));if(m)for(a=0;a<m.length;a++)br(m[a],m[++a],m[++a])}function fr(e,n,t){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,n="function"==typeof o.type?fr(o,n,t):dr(t,o,o,e.__k,o.__e,n));return n}function hr(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){hr(e,n)})):n.push(e)),n}function dr(e,n,t,r,o,i){var u,s,c;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,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function pr(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||Qt.test(n)?t:t+"px"}function _r(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||pr(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||pr(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?gr:mr,i):e.removeEventListener(n,i?gr:mr,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||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function mr(e){this.l[e.type+!1](qt.event?qt.event(e):e)}function gr(e){this.l[e.type+!0](qt.event?qt.event(e):e)}function wr(e,n,t,r,o,i,u,s,c){var l,a,f,h,d,p,_,m,g,w,y,v=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,s=n.__e=t.__e,n.__h=null,i=[s]),(l=qt.__b)&&l(n);try{e:if("function"==typeof v){if(m=n.props,g=(l=v.contextType)&&r[l.__c],w=l?g?g.props.value:l.__:r,t.__c?_=(a=n.__c=t.__c).__=a.__E:("prototype"in v&&v.prototype.render?n.__c=a=new v(m,w):(n.__c=a=new ir(m,w),a.constructor=v,a.render=Er),g&&g.sub(a),a.props=m,a.state||(a.state={}),a.context=w,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=v.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=er({},a.__s)),er(a.__s,v.getDerivedStateFromProps(m,a.__s))),h=a.props,d=a.state,f)null==v.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==v.getDerivedStateFromProps&&m!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,w)||n.__v===t.__v){a.props=m,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,p)}))}a.context=w,a.props=m,a.state=a.__s,(l=qt.__r)&&l(n),a.__d=!1,a.__v=n,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=er(er({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(h,d)),y=null!=l&&l.type===or&&null==l.key?l.props.children:l,ar(e,Array.isArray(y)?y:[y],n,t,r,o,i,u,s,c),a.base=n.__e,n.__h=null,a.__h.length&&u.push(a),_&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=vr(t.__e,n,t,r,o,i,u,c);(l=qt.diffed)&&l(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=s,n.__h=!!c,i[i.indexOf(s)]=null),qt.__e(e,n,t)}}function yr(e,n){qt.__c&&qt.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){qt.__e(e,n.__v)}}))}function vr(e,n,t,r,o,i,u,s){var c,l,a,f,h=t.props,d=n.props,p=n.type,_=0;if("svg"===p&&(o=!0),null!=i)for(;_<i.length;_++)if((c=i[_])&&(c===e||(p?c.localName==p:3==c.nodeType))){e=c,i[_]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(null===p)h===d||s&&e.data===d||(e.data=d);else{if(i=i&&Kt.slice.call(e.childNodes),l=(h=t.props||Xt).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!s){if(null!=i)for(h={},f=0;f<e.attributes.length;f++)h[e.attributes[f].name]=e.attributes[f].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||_r(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]||_r(e,i,n[i],t[i],r)}(e,d,h,o,s),a)n.__k=[];else if(_=n.props.children,ar(e,Array.isArray(_)?_:[_],n,t,r,o&&"foreignObject"!==p,i,u,e.firstChild,s),null!=i)for(_=i.length;_--;)null!=i[_]&&nr(i[_]);s||("value"in d&&void 0!==(_=d.value)&&(_!==e.value||"progress"===p&&!_)&&_r(e,"value",_,h.value,!1),"checked"in d&&void 0!==(_=d.checked)&&_!==e.checked&&_r(e,"checked",_,h.checked,!1))}return e}function br(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){qt.__e(e,t)}}function Cr(e,n,t){var r,o,i;if(qt.unmount&&qt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||br(r,null,n)),t||"function"==typeof e.type||(t=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){qt.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Cr(r[i],n,t);null!=o&&nr(o)}function Er(e,n,t){return this.constructor(e,t)}function Sr(e,n,t){var r,o,i;qt.__&&qt.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],wr(n,e=(!r&&t||n).__k=tr(or,null,[e]),o||Xt,Xt,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?Kt.slice.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),yr(i,e)}function xr(e,n){Sr(e,n,xr)}function kr(e,n,t){var r,o,i,u=arguments,s=er({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);return null!=t&&(s.children=t),rr(e.type,s,r||e.key,o||e.ref,null)}qt={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e},__v:0},ir.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=er({},this.state),"function"==typeof e&&(e=e(er({},t),this.props)),e&&er(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),cr(this))},ir.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},ir.prototype.render=or,zt=[],Jt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lr.__r=0,Yt=0;var Tr,Ir,Ar,Or=0,Nr=[],Mr=qt.__b,Pr=qt.__r,Dr=qt.diffed,Fr=qt.__c,Rr=qt.unmount;function Ur(e,n){qt.__h&&qt.__h(Ir,e,Or||n),Or=0;var t=Ir.__H||(Ir.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function jr(e){return Or=1,Lr(Zr,e)}function Lr(e,n,t){var r=Ur(Tr++,2);return r.t=e,r.__c||(r.__=[t?t(n):Zr(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ir),r.__}function Gr(e,n){var t=Ur(Tr++,3);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__H.__h.push(t))}function Hr(e,n){var t=Ur(Tr++,4);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__h.push(t))}function Br(e,n){var t=Ur(Tr++,7);return Jr(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function $r(e,n){qt.useDebugValue&&qt.useDebugValue(n?n(e):e)}function Vr(){Nr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(qr),e.__H.__h.forEach(zr),e.__H.__h=[]}catch(n){e.__H.__h=[],qt.__e(n,e.__v)}})),Nr=[]}qt.__b=function(e){Ir=null,Mr&&Mr(e)},qt.__r=function(e){Pr&&Pr(e),Tr=0;var n=(Ir=e.__c).__H;n&&(n.__h.forEach(qr),n.__h.forEach(zr),n.__h=[])},qt.diffed=function(e){Dr&&Dr(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==Nr.push(n)&&Ar===qt.requestAnimationFrame||((Ar=qt.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),Wr&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Wr&&(n=requestAnimationFrame(t))})(Vr)),Ir=void 0},qt.__c=function(e,n){n.some((function(e){try{e.__h.forEach(qr),e.__h=e.__h.filter((function(e){return!e.__||zr(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],qt.__e(t,e.__v)}})),Fr&&Fr(e,n)},qt.unmount=function(e){Rr&&Rr(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(qr)}catch(e){qt.__e(e,n.__v)}};var Wr="function"==typeof requestAnimationFrame;function qr(e){var n=Ir;"function"==typeof e.__c&&e.__c(),Ir=n}function zr(e){var n=Ir;e.__c=e.__(),Ir=n}function Jr(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Zr(e,n){return"function"==typeof n?n(e):n}function Yr(e,n){for(var t in n)e[t]=n[t];return e}function Xr(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 Kr(e){this.props=e}(Kr.prototype=new ir).isPureReactComponent=!0,Kr.prototype.shouldComponentUpdate=function(e,n){return Xr(this.props,e)||Xr(this.state,n)};var Qr=qt.__b;qt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qr&&Qr(e)};var eo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var no=function(e,n){return null==e?null:hr(hr(e).map(n))},to={map:no,forEach:no,count:function(e){return e?hr(e).length:0},only:function(e){var n=hr(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:hr},ro=qt.__e;qt.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);ro(e,n,t)};var oo=qt.unmount;function io(){this.__u=0,this.t=null,this.__b=null}function uo(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function so(){this.u=null,this.o=null}qt.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),oo&&oo(e)},(io.prototype=new ir).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=uo(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.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},io.prototype.componentWillUnmount=function(){this.t=[]},io.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]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=Yr({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__e&&tr(or,null,e.fallback);return o&&(o.__h=null),[tr(or,null,n.__e?null:e.children),o]};var co=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 lo(e){return this.getChildContext=function(){return e.context},e.children}function ao(e){var n=this,t=e.i;n.componentWillUnmount=function(){Sr(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)}}),Sr(tr(lo,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(so.prototype=new ir).__e=function(e){var n=this,t=uo(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),co(n,e,r)):o()};t?t(i):i()}},so.prototype.render=function(e){this.u=null,this.o=new Map;var n=hr(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},so.prototype.componentDidUpdate=so.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){co(e,t,n)}))};var fo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ho=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,po=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};ir.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(ir.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var _o=qt.event;function mo(){}function go(){return this.cancelBubble}function wo(){return this.defaultPrevented}qt.event=function(e){return _o&&(e=_o(e)),e.persist=mo,e.isPropagationStopped=go,e.isDefaultPrevented=wo,e.nativeEvent=e};var yo,vo={configurable:!0,get:function(){return this.class}},bo=qt.vnode;qt.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){for(var o in r={},t){var i=t[o];"value"===o&&"defaultValue"in t&&null==i||("defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!po(t.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ho.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=hr(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=hr(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}n&&t.class!=t.className&&(vo.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",vo)),e.$$typeof=fo,bo&&bo(e)};var Co=qt.__r;qt.__r=function(e){Co&&Co(e),yo=e.__c};var Eo={ReactCurrentDispatcher:{current:{readContext:function(e){return yo.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function So(e){return!!e&&e.$$typeof===fo}var xo={useState:jr,useReducer:Lr,useEffect:Gr,useLayoutEffect:Hr,useRef:function(e){return Or=5,Br((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){Or=6,Hr((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Br,useCallback:function(e,n){return Or=8,Br((function(){return e}),n)},useContext:function(e){var n=Ir.context[e.__c],t=Ur(Tr++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(Ir)),n.props.value):e.__},useDebugValue:$r,version:"16.8.0",Children:to,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Sr(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return xr(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Sr(null,e),!0)},createPortal:function(e,n){return tr(ao,{__v:e,i:n})},createElement:tr,createContext:function(e,n){var t={__c:n="__cC"+Yt++,__: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(cr)},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 tr.bind(null,e)},cloneElement:function(e){return So(e)?kr.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:or,isValidElement:So,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:ir,PureComponent:Kr,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:Xr(this.props,e)}function r(n){return this.shouldComponentUpdate=t,tr(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n,t){var r=Yr({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=eo,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:or,Suspense:io,SuspenseList:so,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 tr(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Eo};function ko(){return e=(e,n)=>S(e,n),{Compare:(n,t)=>e(n,t)};var e}function To(){return ko()}function Io(){throw new Error("Enumeration has not started. Call MoveNext.")}function Ao(){throw new Error("Enumeration already finished.")}class Oo{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=c(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=O(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{t.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class No{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 Mo(e,n,t){return new No(e,n,t)}function Po(e,n,t){let r=!1,o=void 0,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{o=void 0}};return Mo(()=>(r||Io(),null!=o?Qn(o):Ao()),()=>{if(r||(r=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(o=t,!0):(s(),!1)}return!1},u)}function Do(e,n){null==n&&function(e){throw new Error(e)}(e)}function Fo(e){return function(e){return new Oo(e)}(e)}function Ro(e){return Do("source",e),c(e)}function Uo(e){return Fo(()=>function(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const u=()=>{if(o=!0,null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}if(null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}};return Mo(()=>(r?o&&Ao():Io(),null!=i?Qn(i):Ao()),()=>{let s;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[n,t];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Kn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{t=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=c(s)}else u(),r=!1}else n=c(e)}return Qn(r)}},()=>{o||u()})}(e))}function jo(e,n,t){return Fo(()=>Po(e,n,t))}function Lo(e,n,t){return Fo(()=>{let r=-1;return Po(e,e=>(r=r+1|0,n(r,e)),t)})}function Go(e,n){return Uo([e,n])}function Ho(e,n,t){const r=Ro(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{r.Dispose()}}function Bo(e,n,t){const r=Ro(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{r.Dispose()}}function $o(e,n){Bo((n,t)=>{e(t)},void 0,n)}function Vo(e,n){return jo(()=>Ro(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Wo(e,n){return Lo(()=>Ro(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const qo=xo,zo=e=>{Gr(()=>{const n=e();return()=>{n.Dispose()}})},Jo=(e,n)=>{Gr(()=>{const n=e();return()=>{n.Dispose()}},n)},Zo=e=>{Hr(()=>{const n=e();return()=>{n.Dispose()}})};function Yo(e,n,t,r){const o=qo.memo(e,T(2,nt(I(2,t),null)));return $o(n=>{e.displayName=n},et(n)),e=>qo.createElement(o,Xo(r,e))}function Xo(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function Ko(e){return{Dispose(){e()}}}function Qo(e){zo(e)}function ei(e,n){Jo(e,n)}function ni(e){ri(e,[])}function ti(e){ei(e,[])}function ri(e,n){Jo(n=>(e(),Ko(()=>{})),n)}function oi(e,n){return qo.useCallback(e,nt(n,[]))}function ii(e){return qo.useRef(e)}function ui(e,n){return qo.useMemo(e,nt(n,[]))}function si(e){const n=ii(e),t=oi(e=>n.current(e),[]);var r;return r=()=>{n.current=e},Zo(e=>(r(),Ko(()=>{}))),t}function ci(e){return qo.useState(e)}class li{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)}}}}class ai extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ai.prototype)}}class fi{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>fi.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function hi(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new ai);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(e)}});else try{e(n)}catch(e){n.onError(e)}}}function di(e,n){return hi(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(e)}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function pi(e){return hi(n=>n.onSuccess(e))}const _i=new class{Bind(e,n){return di(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return hi(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 pi(e)}ReturnFrom(e){return e}TryFinally(e,n){return hi(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 hi(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(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 hi(e=>e.onSuccess(void 0))}};function mi(e){}function gi(e){const n=new li("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function wi(e){e.cancel()}function yi(e){return null!=e&&e.isCancelled}const vi=new li;function bi(e){return hi(n=>e([n.onSuccess,n.onError,n.onCancel]))}function Ci(e,n){return function(e,n){return Ei(e,n)}(e,n)}function Ei(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new fi;e({onSuccess:n||mi,onError:t||mi,onCancel:r||mi,cancelToken:o||vi,trampoline:i})}class Si{constructor(e,n){this.k=e,this.v=n}}function xi(e,n){return new Si(e,n)}function ki(e){return e.k}function Ti(e){return e.v}class Ii extends Si{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Ai(e,n,t,r,o){return new Ii(e,n,t,r,o)}function Oi(e){return e.left}function Ni(e){return e.right}function Mi(e){return e.h}function Pi(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){n=e(r+1,Oi(i)),t=Ni(i);continue e}return r+1|0}return 0|r}}(0,e)}function Di(e,n,t,r){let o;if(null!=e){const n=e;o=n instanceof Ii?Mi(n):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ii?Mi(e):1}else i=0;const u=0|(o<i?i:o);return 0===u?xi(n,t):Ai(n,t,e,r,u+1)}function Fi(e,n,t,r){let o,i,u,s,c;if(null!=e){const n=e;c=n instanceof Ii?Mi(n):1}else c=0;let l;if(null!=r){const e=r;l=e instanceof Ii?Mi(e):1}else l=0;if(l>c+2){const u=Qn(r);if(u instanceof Ii){if(o=Oi(u),(null!=o?(i=o,i instanceof Ii?Mi(i):1):0)>c+1){const r=Qn(Oi(u));if(r instanceof Ii)return Di(Di(e,n,t,Oi(r)),ki(r),Ti(r),Di(Ni(r),ki(u),Ti(u),Ni(u)));throw new Error("internal error: Map.rebalance")}return Di(Di(e,n,t,Oi(u)),ki(u),Ti(u),Ni(u))}throw new Error("internal error: Map.rebalance")}if(c>l+2){const o=Qn(e);if(o instanceof Ii){if(u=Ni(o),(null!=u?(s=u,s instanceof Ii?Mi(s):1):0)>l+1){const e=Qn(Ni(o));if(e instanceof Ii)return Di(Di(Oi(o),ki(o),Ti(o),Oi(e)),ki(e),Ti(e),Di(Ni(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Di(Oi(o),ki(o),Ti(o),Di(Ni(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Di(e,n,t,r)}function Ri(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,ki(o));return o instanceof Ii?i<0?Fi(Ri(e,n,t,Oi(o)),ki(o),Ti(o),Ni(o)):0===i?Ai(n,t,Oi(o),Ni(o),Mi(o)):Fi(Oi(o),ki(o),Ti(o),Ri(e,n,t,Ni(o))):i<0?Ai(n,t,void 0,r,2):0===i?xi(n,t):Ai(n,t,r,void 0,2)}return xi(n,t)}function Ui(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(0===s)return Kn(Ti(u));if(u instanceof Ii){e=r,n=o,t=s<0?Oi(u):Ni(u);continue e}return}return}}function ji(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){e(r,Oi(i)),r(ki(i),Ti(i)),n=r,t=Ni(i);continue e}r(ki(i),Ti(i))}break}}(e,n)}function Li(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof Ii){const t=e(n,Oi(r)),o=n(ki(r),Ti(r)),i=e(n,Ni(r));return Ai(ki(r),o,t,i,Mi(r))}return xi(ki(r),n(ki(r),Ti(r)))}}(e,n)}function Gi(e,n,t){let r=t;ji((e,t)=>{n[r]=[e,t],r=r+1|0},e)}function Hi(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ri(e,o[0],o[1],t)}return t}function Bi(e,n){if(r(n))return Hi(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>Ri(e,t[0],t[1],n),void 0,n)}(e,n);{const t=c(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=Ri(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{t.Dispose()}}}class $i extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Vi(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=xt(n),r=St(n);if(null!=r){const o=r;if(o instanceof Ii){e=Ot([Oi(o),xi(ki(o),Ti(o)),Ni(o)],t);continue e}return n}e=t;continue e}}}function Wi(e){return new $i(Vi(Ct(e)),!1)}function qi(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("enumeration already finished")}();if(null!=St(n)){const e=St(n);if(e instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ki(e),Ti(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zi(e){let n=Wi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>qi(n),"System.Collections.IEnumerator.get_Current":()=>qi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vi(xt(n)),!Et(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Wi(e)},Dispose(){}}}class Ji{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=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,g(e[0])),t=0|n(t,g(e[1]))}}finally{r.Dispose()}return 0|t}(this)}Equals(e){if(!(e instanceof Ji))return!1;{const n=c(this);try{const t=c(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!(!v(r[0],o[0])||!v(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{t.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+zn("; ",Vo(e=>Wn("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zi(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zi(this.tree)}CompareTo(e){const n=this;if(e instanceof Ji)return 0|function(e,n,t){const r=Ro(n);try{const n=Ro(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{n.Dispose()}}finally{r.Dispose()}}((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:S(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!!Qi(this,e[0])&&v(Xi(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Gi(this.tree,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)}get size(){return 0|Ki(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Vo(e=>[e[0],e[1]],this)}get(e){return Xi(this,e)}has(e){return Qi(this,e)}keys(){return Vo(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Vo(e=>e[1],this)}forEach(e,n){const t=this;$o(n=>{e(n[1],n[0],t)},t)}}function Zi(e,n){return new Ji(e,n)}function Yi(e){const n=To();return Zi(n,Bi(n,e))}function Xi(e,n){return function(e,n,t){const r=Ui(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function Ki(e){return Pi(e.tree)}function Qi(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(u instanceof Ii){if(s<0){e=r,n=o,t=Oi(u);continue e}if(0===s)return!0;e=r,n=o,t=Ni(u);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function eu(e,n,t){return function(e,n,t){return Zi(e.comparer,Ri(e.comparer,n,t,e.tree))}(t,e,n)}function nu(e,n){return function(e,n){return Ui(e.comparer,n,e.tree)}(n,e)}function tu(e,n){return r=e,Zi((t=n).comparer,Li(r,t.tree));var t,r}function ru(){return Ji.empty}Ji.empty=Zi(To(),void 0);class ou extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function iu(e){return q("Feliz.UseDeferred.Deferred`1",[e],ou,()=>[[],[],[["Item",e]],[["Item",V("System.Exception")]]])}function uu(e,n){const t=ii(gi());return ti(()=>Ko(()=>{wi(t.current)})),si(r=>{yi(t.current)||Ci(_i.Delay(()=>_i.TryWith(_i.Delay(()=>(n(new ou(1)),_i.Bind(e(r),e=>(n(new ou(2,e)),_i.Zero())))),e=>(n(new ou(3,e)),_i.Zero()))),t.current)})}const su=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function cu(e){return tt(e=>e.passive&&!su?{capture:e.capture,once:e.once,passive:!1}:e,e)}function lu(e){return n=e=>e.capture?{capture:!0}:void 0,null!=(t=e)?n(Qn(t)):void 0;var n,t}const au=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,hu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function du(e){function n(e){return e.replace(fu,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(au.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Fn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(fu.test(t))return n(t);if(hu.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function pu(e,n){try{return n.contents=du(e),!0}catch(e){return!1}}var _u={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[pe](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},mu="[big.js] ",gu=mu+"Invalid ",wu=gu+"decimal places",yu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function vu(e,n){var t,r,o;if(!yu.test(n))throw Error(gu+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),o=n.length,r=0;r<t&&r<o&&"0"==n.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<o;)e.c[t++]=+n.charAt(r++);return e=bu(e,Eu.DP+1,Eu.RM)}function bu(e,n,t,r){var o=e.c;if(void 0===t&&(t=Eu.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error("[big.js] Invalid rounding mode");if(n<1)r=3===t&&(r||!!o[0])||0===n&&(1===t&&o[0]>=5||2===t&&(o[0]>5||5===o[0]&&(r||void 0!==o[1]))),o.length=1,r?(e.e=e.e-n+1,o[0]=1):o[0]=e.e=0;else if(n<o.length){const i=o.findIndex((e,t)=>t>=n&&e>0)<0;if(r=1===t&&o[n]>=5||2===t&&(o[n]>5||5===o[n]&&(r||void 0!==o[n+1]||1&o[n-1]))||3===t&&(r||!i),o.length=n--,r)for(;++o[n]>9;)o[n]=0,n--||(++e.e,o.unshift(1));for(n=o.length;!o[--n];)o.pop()}return e}function Cu(e,n,t){var r=e.e,o=e.c.join(""),i=o.length;if(n)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&t?"-"+o:o}_u.abs=function(){var e=new this.constructor(this);return e.s=1,e},_u.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=r.s,s=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?u:i[0]?-s:0;if(u!=s)return u;if(n=u<0,c!=l)return c>l^n?1:-1;for(s=Math.max(o.length,i.length),u=0;u<s;u++)if((c=u<o.length?o[u]:0)!=(l=u<i.length?i[u]:0))return c>l^n?1:-1;return 0},_u.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),o=e.c,i=t.s==e.s?1:-1,u=n.DP;if(u!==~~u||u<0||u>1e6)throw Error(wu);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var s,c,l,a,f,h=o.slice(),d=s=o.length,p=r.length,_=r.slice(0,s),m=_.length,g=e,w=g.c=[],y=0,v=u+(g.e=t.e-e.e)+1;for(g.s=i,i=v<0?0:v,h.unshift(0);m++<s;)_.push(0);do{for(l=0;l<10;l++){if(s!=(m=_.length))a=s>m?1:-1;else for(f=-1,a=0;++f<s;)if(o[f]!=_[f]){a=o[f]>_[f]?1:-1;break}if(!(a<0))break;for(c=m==s?o:h;m;){if(_[--m]<c[m]){for(f=m;f&&!_[--f];)_[f]=9;--_[f],_[m]+=10}_[m]-=c[m]}for(;!_[0];)_.shift()}w[y++]=a?l:++l,_[0]&&a?_[m]=r[d]||0:_=[r[d]]}while((d++<p||void 0!==_[0])&&i--);return w[0]||1==y||(w.shift(),g.e--,v--),y>v&&bu(g,v,n.RM,void 0!==_[0]),g},_u.eq=function(e){return 0===this.cmp(e)},_u.gt=function(e){return this.cmp(e)>0},_u.gte=function(e){return this.cmp(e)>-1},_u.lt=function(e){return this.cmp(e)<0},_u.lte=function(e){return this.cmp(e)<1},_u.minus=_u.sub=function(e){var n,t,r,o,i=this.constructor,u=new i(this),s=(e=new i(e),u.s),c=e.s;if(s!=c)return e.s=-c,u.plus(e);var l=u.c.slice(),a=u.e,f=e.c,h=e.e;if(!l[0]||!f[0])return f[0]?e.s=-c:l[0]?e=new i(u):e.s=1,e;if(s=a-h){for((o=s<0)?(s=-s,r=l):(h=a,r=f),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(t=((o=l.length<f.length)?l:f).length,s=c=0;c<t;c++)if(l[c]!=f[c]){o=l[c]<f[c];break}if(o&&(r=l,l=f,f=r,e.s=-e.s),(c=(t=f.length)-(n=l.length))>0)for(;c--;)l[n++]=0;for(c=n;t>s;){if(l[--t]<f[t]){for(n=t;n&&!l[--n];)l[n]=9;--l[n],l[t]+=10}l[t]-=f[t]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--h;return l[0]||(e.s=1,l=[h=0]),e.c=l,e.e=h,e},_u.mod=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,n=1==e.cmp(r),r.s=o,e.s=i,n?new t(r):(o=t.DP,i=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=o,t.RM=i,this.minus(r.times(e)))},_u.plus=_u.add=function(e){var n,t,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var u=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),n=u-c){for(n>0?(c=u,r=l):(n=-n,r=s),r.reverse();n--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),n=l.length,t=0;n;s[n]%=10)t=(s[--n]=s[n]+l[n]+t)/10|0;for(t&&(s.unshift(t),++c),n=s.length;0===s[--n];)s.pop();return e.c=s,e.e=c,e},_u.pow=function(e){var n=this.constructor,t=new n(this),r=new n("1"),o=new n("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(gu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},_u.prec=function(e,n){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");return bu(new this.constructor(this),e,n)},_u.round=function(e,n){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(wu);return bu(new this.constructor(this),e+this.e+1,n)},_u.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,u=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(mu+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+u&1||(n+="0"),u=((u+1)/2|0)-(u<0||1&u),e=new r(((i=Math.sqrt(n))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+u)):e=new r(i+""),u=e.e+(r.DP+=4);do{t=e,e=s.times(t.plus(o.div(t)))}while(t.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return bu(e,(r.DP-=4)+e.e+1,r.RM)},_u.times=_u.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=o.length,s=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+l,u<s&&(n=o,o=i,i=n,l=u,u=s,s=l),n=new Array(l=u+s);l--;)n[l]=0;for(c=s;c--;){for(s=0,l=u+c;l>c;)s=n[l]+i[c]*o[l-c-1]+s,n[l--]=s%10,s=s/10|0;n[l]=s}for(s?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},_u.toExponential=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(t=bu(new t.constructor(t),++e,n);t.c.length<e;)t.c.push(0)}return Cu(t,!0,!!r)},_u.toFixed=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(e=e+(t=bu(new t.constructor(t),e+t.e+1,n)).e+1;t.c.length<e;)t.c.push(0)}return Cu(t,!1,!!r)},_u.toJSON=_u.toString=function(){var e=this,n=e.constructor;return Cu(e,e.e<=n.NE||e.e>=n.PE,!!e.c[0])},_u.toNumber=function(){var e=Number(Cu(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(mu+"Imprecise conversion");return e},_u.toPrecision=function(e,n){var t=this,r=t.constructor,o=t.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");for(t=bu(new r(t),e,n);t.c.length<e;)t.c.push(0)}return Cu(t,e<=t.e||t.e<=r.NE||t.e>=r.PE,!!o)},_u.valueOf=function(){var e=this,n=e.constructor;if(!0===n.strict)throw Error(mu+"valueOf disallowed");return Cu(e,e.e<=n.NE||e.e>=n.PE,!0)};var Eu=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);if(t instanceof n)r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let n=e.c.findIndex(e=>e);e.c=e.c.slice(n),e.e=e.e-n}}(r);else{if("string"!=typeof t){if(!0===n.strict)throw TypeError(gu+"number");t=0===t&&1/t<0?"-0":String(t)}vu(r,t)}r.constructor=n}return n.prototype=_u,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.strict=!1,n}(),Su=Eu;new Su(0),new Su(1),new Su(-1),new Su("79228162514264337593543950335"),new Su("-79228162514264337593543950335");function xu(e,n){return 0===n.indexOf(e)?n:void 0}function ku(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function Tu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,u;return n=xu("/",e),null!=n?(t=n,"#"+t):(r=xu("#/",e),null!=r?(o=r,o):(i=xu("#",e),null!=i?(u=i,"#/"+Yn(u,1,u.length-1)):"#/"+e))}:e=>{let n,t;return n=xu("/",e),null!=n?(t=n,t):"/"+e}}(n)(zn("/",Pt(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Iu(e,n){return function(e,n){let t,r;const o=pt();let i=o,u=n;for(;!mt(u);){let n=e(wt(u));for(;!mt(n);)t=i,r=new ht(wt(n),void 0),t.tail=r,i=r,n=yt(n);u=yt(u)}const s=i,c=pt();return s.tail=c,yt(o)}(e=>{if("string"!=typeof(n=e)||/^\s*$/.test(n))return vt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+Fn(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return vt();if(null!=xu("?",n))return Ct(n);{const e=n.split("?");if(lt(0,e,null)||1!==e.length){if(lt(0,e,null)||2!==e.length)return vt();if(""===e[1]){const n=e[0];return Ct(decodeURIComponent(n))}{const n=e[0],t=e[1];return Nt([decodeURIComponent(n),"?"+t])}}{const n=e[0];return Ct(decodeURIComponent(n))}}}var n},Nt(Zn(null!=xu("#",e)?Yn(e,1,e.length-1):1===n&&(null!=ku("#",e)||null!=ku("#/",e))?"":e,["/"],null,0)))}const Au=Yo(e=>{const n=si(n=>{const t=nt(e.onUrlChanged,e=>{});!function(e,n,t){n(Iu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(nt(e.hashMode,1),t)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}else{const e="popstate",t=n,r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=ui(()=>cu(void 0),[void 0]),i=ui(()=>lu(void 0),[void 0]),u=ui(()=>e=>{r(e)},[r]);Qo(si(()=>(null==o?window.addEventListener(t,u):window.addEventListener(t,u,o),Ko(()=>{null==i?window.removeEventListener(t,u):window.removeEventListener(t,u,i)}))));const s=e.application;return null==s?null:s},void 0,Nu,Ou);var Ou,Nu;function Mu(){return vt()}class Pu extends U{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Du(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Du(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}vn(2013265921,0,!1),vn(2013265921,0,!0);st(28,e=>Du(2,e),Int32Array);function Fu(e){return e.bound}function Ru(e,n){return e.digits[n]}function Uu(e,n){return En(Ru(e,n),!1,2)}function ju(e,n,t){e.digits[n]=0|t}function Lu(e,n){for(;;){const t=e,r=n;if(0===r)return vn(1,0,!1);if(r%2!=0)return pn(t,Lu(pn(t,t),~~(r/2)));e=pn(t,t),n=~~(r/2)}}function Gu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Gu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const Hu=vn(16777216,0,!1),Bu=vn(16777215,0,!1);vn(16777215,0,!0);function $u(e){return new Pu(e,new Int32Array(e))}function Vu(e){const n=0|((e,n)=>{for(;;){const t=e,r=n;if(-1===r||0!==t[r])return r+1|0;e=t,n=r-1}})(e.digits,e.bound-1);return e.bound=0|n,e}function Wu(e){const n=0|(e<0?0:e);if(n<16777216){const e=$u(1);return e.digits[0]=0|n,Vu(e)}{const e=$u(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/Gu(16777216,t))%16777216|0;return Vu(e)}}function qu(e){if(1===e.bound)return 0|e.digits[0];{let n=0;for(let t=e.bound-1;t>=0;t--)n=e.digits[t]+16777216*n|0;return 0|n}}const zu=Wu(1),Ju=Wu(0);function Zu(e){return e.bound-1}function Yu(e){return 0===e.bound}function Xu(e,n){if(e.bound===n.bound){return((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}return!1}function Ku(e,n){if(e.bound<n.bound)return-1;if(e.bound>n.bound)return 1;return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}function Qu(e,n){return-1===Ku(e,n)}function es(e,n,t){for(;;){const r=e,o=n,i=t;if(!(yn(o,vn(0,0,!1))>0))break;{const u=dn(Uu(r,i),o);ju(r,i,~~bn(wn(u,Bu))),e=r,n=_n(u,Hu),t=i+1}}}function ns(e,n){const t=0|Fu(e),r=$u(t+1),o=En(n,!1,2);let i=vn(0,0,!1);for(let n=0;n<=t-1;n++){const t=dn(dn(i,Uu(r,n)),pn(Uu(e,n),o));ju(r,n,~~bn(wn(t,Bu))),i=_n(t,Hu)}return es(r,i,t),Vu(r)}function ts(e,n){const t=1===Fu(e),r=1===Fu(n);return t&&r?function(e,n){const t=$u(2),r=pn(En(e,!1,2),En(n,!1,2));return ju(t,0,~~bn(wn(r,Bu))),ju(t,1,~~bn(_n(r,Hu))),Vu(t)}(Ru(e,0),Ru(n,0)):t?ns(n,Ru(e,0)):r?ns(e,Ru(n,0)):function(e,n){const t=$u(e.bound+n.bound),r=t.digits;for(let o=0;o<=e.bound-1;o++){const i=En(e.digits[o],!1,2);let u=vn(0,0,!1),s=o;for(let e=0;e<=n.bound-1;e++){const t=En(n.digits[e],!1,2),o=dn(dn(En(r[s],!1,2),u),pn(i,t));r[s]=0|~~bn(wn(o,Bu)),u=_n(o,Hu),s=s+1|0}es(t,u,s)}return Vu(t)}(e,n)}class rs extends U{constructor(e,n,t,r,o,i,u){super(),this.bigL=0|e,this.twoToBigL=0|n,this.k=0|t,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=u}}function os(e,n,t,r){return new rs(e,Gu(2,e),n,t,r,~~(24/e),st(~~(24/e),n=>Gu(2,e*n),Int32Array))}const is=[os(1,28,268435456,268435456),os(2,26,67108864,134217728),os(3,24,16777216,50331648),os(4,22,4194304,16777216),os(5,20,1048576,5242880),os(6,18,262144,1572864),os(7,16,65536,458752),os(8,14,16384,131072),os(9,12,4096,36864),os(10,10,1024,10240),os(11,8,256,2816),os(12,6,64,768),os(13,4,16,208)];st(24,e=>Gu(2,e)-1,Int32Array),st(24,e=>Gu(2,e),Int32Array),st(24,e=>Lu(vn(2,0,!1),e));is[0].bigN;function us(e,n){return ts(e,n)}function ss(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<=i[a+r]?i[a+r]=i[a+r]-e|0:(i[a+r]=i[a+r]+(16777216-e)|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function cs(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<16777216-i[a+r]?i[a+r]=i[a+r]+e|0:(i[a+r]=e-(16777216-i[a+r])|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function ls(e,n,t){const r=[Zu(n),Zu(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],u=r[1],s=r[0],c=0|(0===i?o===t?~~(u[t]/s[0]):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),En(s[0],!1,2))):o===i+t?~~(u[o]/(s[i]+1)):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),dn(En(s[i],!1,2),vn(1,0,!1)))));return 0===c?1!==function(e,n,t,r){return e.bound+n<t.bound+r?-1:e.bound+n>t.bound+n?1:0|((e,t,o)=>{e:for(;;){const i=e,u=t,s=o;if(-1===s)return 0;{const c=0|(s<n?0:i[s-n]),l=0|(s<r?0:u[s-r]);if(c===l){e=i,t=u,o=s-1;continue e}return c<l?-1:1}}})(e.digits,t.digits,e.bound+n-1)}(n,t,e,0)?1:0:0|c}}function as(e,n){if(Yu(n))throw new Error;if(Zu(e)<Zu(n))return[Ju,e];{const t=function(e){return new Pu(e.bound,e.digits.slice())}(e),r=$u(Zu(e)-Zu(n)+1+1);let o=Zu(e);const i=0|Zu(n);let u=o-i;const s=e=>{};let c=!1;for(;!c;){s([r,t,u,o]);const e=0|ls(t,n,u);e>0?(ss(t,e,n,u),cs(r,e,zu,u),s([r,t,u,o])):(c=0===e&&0===u,c||(o===i+u?(s([r,t,u-1,o]),u=u-1|0):(s([r,t,u-1,o-1]),u=u-1|0,o=o-1|0)))}return[Vu(r),Vu(t)]}}Wu(2);function fs(e){return Wu(e)}function hs(e){return function(e){const n=yn(e,vn(0,0,!1))<0?vn(0,0,!1):e,t=$u(3);for(let e=0;e<=2;e++)t.digits[e]=0|~~bn(mn(_n(n,Lu(Hu,e)),Hu));return Vu(t)}(e)}function ds(e){const n=0|Zu(e),t=(e,n,r,o)=>{e:for(;;){const i=e,u=n,s=r,c=o;if(Et(c)){const e=0|qu(s);return i&&0===e?u:bt(h(e),u)}{const l=xt(c),a=as(s,St(c)[1]),f=a[1],h=a[0];if(i&&Yu(h)){e=i,n=u,r=f,o=l;continue e}e=i,n=t(!1,u,f,l),r=h,o=l;continue e}}},r=t(!0,vt(),e,((e,t,r)=>{for(;;){const o=e,i=t,u=r;if(Zu(u)>n)return bt([i,u],o);e=bt([i,u],o),t=i+1,r=us(u,u)}})(vt(),0,Wu(10)));return Et(r)?"0":zn("",kt(r))}function ps(e){return e.bound<=1}function _s(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class ms extends U{constructor(e,n){super(),this.signInt=0|e,this.v=n}toString(){const e=this;switch(0|ys(e)){case-1:return Yu(vs(e))?"0":"-"+ds(vs(e));case 0:return"0";case 1:return ds(vs(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof ms&&bs(this,e)}GetHashCode(){return 0|(0===ys(e=this)?1:ys(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3)|0;return 0|n}(vs(e))|0);var e}toJSON(e){return O(this)}CompareTo(e){if(e instanceof ms)return 0|function(e,n){return Cs(e,n)?-1:bs(e,n)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function gs(e,n){return new ms(e,n)}function ws(e){return ps(e)&&_s(e)<ms.smallLim?ms.smallPosTab[_s(e)]:e}function ys(e){return e.signInt}function vs(e){return e.v}function bs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:case 1:return Xu(vs(e),vs(n));case 2:case 3:return!!Yu(vs(e))&&Yu(vs(n));case 4:return!0;case 5:case 6:return Yu(vs(n));case 7:case 8:return Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Cs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:return Qu(vs(e),vs(n));case 1:return Qu(vs(n),vs(e));case 2:return!1;case 3:return!Yu(vs(e))||!Yu(vs(n));case 4:return!1;case 5:return!Yu(vs(n));case 6:case 7:return!1;case 8:return!Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Es(e){return e>=0?gs(1,ws(fs(e))):gs(-1,ws(-2147483648===e?hs(gn(En(e,!1,2))):fs(de(e))))}function Ss(){return ms.one}function xs(){return ms.two}function ks(){return ms.zero}ms.smallLim=4096,ms.smallPosTab=st(ms.smallLim,e=>fs(e)),ms.one=Es(1),ms.two=Es(2),ms.zero=Es(0);ks(),Ss(),xs();ks(),Ss();class Ts{constructor(){}}function Is(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(v(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const As=new Ts;class Os extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Ns{constructor(e){this.state=new Os(0,it(new Array(x((e,n)=>C(e,n),e,10)),0,x((e,n)=>C(e,n),e,10),null),0)}}function Ms(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new Os(0,o,t):new Os(1,o,t,i),Kn(o[r])}}function Ps(e,n,t){const r=ii(e[0]),o=ii(new Ns(10));const u=ci(e[0]);let s;const c=ii(gi()),l=ii(c.current);ti(()=>Ko(()=>{wi(c.current)})),s=l;const a=()=>{setTimeout(()=>{let e;e=s.current,yi(e)||u[1](r.current)},0)},f=e=>{var t;(t=Is(0,()=>{let t=Kn(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(As,()=>{let e;return null!=t&&(e=s.current,!yi(e))},Is(0,()=>{const e=n(Qn(t),r.current);return At(e=>{e(f)},e[1]),t=Ms(o.current),r.current=e[0],a(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},h=si(f);var d;return ei(()=>Ko(()=>{let e;$o(e=>{e.Dispose()},et((e=r.current,i(e)?e:void 0)))}),t),ri(()=>{r.current=e[0],a(),At(e=>{e(h)},e[1])},t),d=()=>{$o(h,et(Ms(o.current)))},zo(e=>(d(),Ko(()=>{}))),[u[0],h]}class Ds{constructor(){}}function Fs(e,n){return new Vt(0,n)}new Ds;class Rs{constructor(){}}function Us(e,n){return _i.Delay(n)}new Rs;class js extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ls extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Gs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Hs extends U{constructor(e,n,t,r,o,i,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=u}}class Bs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class $s extends U{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const Vs=new Hs("",new js(0),vt(),!1,void 0,void 0,new Gs(0));new $s(0,"","",ru(),new Bs(0,""));function Ws(e,n){return qn(n)?[n]:Zn(n,[e],null,0)}function qs(e){return new Hs(e,Vs.method,Vs.headers,Vs.withCredentials,Vs.overridenMimeType,Vs.overridenResponseType,Vs.content)}function zs(e,n){return new Hs(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function Js(e){return bi(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;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 Bs(0,t.responseText):new Bs("arraybuffer"===s?2:"blob"===s?1:3,t.response),new $s(o,e,i,function(e){const n=To();return Zi(n,Hi(n,e))}(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"function"==typeof t?ut(e=>e,r,t):r}(e=>{const n=Nt(Ws(":",e));return Et(n)?void 0:[St(n).toLocaleLowerCase(),zn(":",xt(n)).trim()]},Ws("\r\n",t.getAllResponseHeaders()))),u)))};const r=c(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{r.Dispose()}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||t.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=[e.method,e.content];0===u[0].tag?t.send(Kn(void 0)):1===u[1].tag||3===u[1].tag||2===u[1].tag?t.send(Kn(u[1].fields[0])):t.send(Kn(void 0))})}class Zs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ys extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Xs{constructor(){this.cache=new Map([])}}function Ks(){return new Xs}Ks(),Ks();function Qs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ec(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Dn(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),c=Rn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Qs(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Qs(n)}}function nc(e,n){tc(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function tc(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.")}}function rc(e,n){try{return n.contents=function(e){const n=Mn(e),t=Sn.exec(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t[0]?0:36e5*parseInt(t[1],10)+6e4*parseInt(t[2],10);return nc(n.getTime(),r)}(e),!0}catch(e){return!1}}function oc(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return ic(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 ic(e){return Cn(_n(e,1e4))}function uc(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 oc(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*oc(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class sc{constructor(e){this.k=e}}function cc(e){return new sc(e)}function lc(e){return e.k}class ac extends sc{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function fc(e,n,t,r){return new ac(e,n,t,r)}function hc(e){return e.left}function dc(e){return e.right}function pc(e){return e.h}function _c(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof ac){n=hc(i),t=e(dc(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function mc(e,n,t){let r;if(null!=e){const n=e;r=n instanceof ac?pc(n):1}else r=0;let o;if(null!=t){const e=t;o=e instanceof ac?pc(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?cc(n):fc(n,e,t,i+1)}function gc(e,n,t){let r,o,i,u,s;if(null!=e){const n=e;s=n instanceof ac?pc(n):1}else s=0;let c;if(null!=t){const e=t;c=e instanceof ac?pc(e):1}else c=0;if(c>s+2){const i=Qn(t);if(i instanceof ac){if(r=hc(i),(null!=r?(o=r,o instanceof ac?pc(o):1):0)>s+1){const t=Qn(hc(i));if(t instanceof ac)return mc(mc(e,n,hc(t)),lc(t),mc(dc(t),lc(i),dc(i)));throw new Error("internal error: Set.rebalance")}return mc(mc(e,n,hc(i)),lc(i),dc(i))}throw new Error("internal error: Set.rebalance")}if(s>c+2){const r=Qn(e);if(r instanceof ac){if(i=dc(r),(null!=i?(u=i,u instanceof ac?pc(u):1):0)>c+1){const e=Qn(dc(r));if(e instanceof ac)return mc(mc(hc(r),lc(r),hc(e)),lc(e),mc(dc(e),n,t));throw new Error("internal error: Set.rebalance")}return mc(hc(r),lc(r),mc(dc(r),n,t))}throw new Error("internal error: Set.rebalance")}return mc(e,n,t)}function wc(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,lc(r));if(r instanceof ac)return o<0?gc(wc(e,n,hc(r)),lc(r),dc(r)):0===o?t:gc(hc(r),lc(r),wc(e,n,dc(r)));{const o=0|e.Compare(n,lc(r));return o<0?fc(n,void 0,t,2):0===o?t:fc(n,t,void 0,2)}}return cc(n)}function yc(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,lc(u));if(u instanceof ac){if(s<0){e=r,n=o,t=hc(u);continue e}if(0===s)return!0;e=r,n=o,t=dc(u);continue e}return 0===s}return!1}}function vc(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof ac){vc(t,hc(o)),t(lc(o)),e=t,n=dc(o);continue e}t(lc(o))}break}}class bc extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Cc(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=St(n),r=xt(n);if(null!=t){const o=t;if(o instanceof ac){e=Ot([hc(o),cc(lc(o)),dc(o)],r);continue e}return n}e=r;continue e}}}function Ec(e){return new bc(Cc(Ct(e)),!1)}function Sc(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("Enumeration already started")}();if(null!=St(n)){return lc(St(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function xc(e){let n=Ec(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Sc(n),"System.Collections.IEnumerator.get_Current":()=>Sc(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof ac)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cc(xt(n)),!Et(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Ec(e)},Dispose(){}}}function kc(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,u=[o,i];if(Et(u[0]))return Et(u[1])?0:-1;if(Et(u[1]))return 1;if(null!=St(u[1]))if(null!=St(u[0])){const s=St(u[0]),c=St(u[1]);if(s instanceof ac)if(null==hc(s)){if(!(c instanceof ac)){const o=0|r.Compare(lc(s),lc(c));if(0!==o)return 0|o;e=r,n=bt(dc(s),xt(u[0])),t=bt(void 0,xt(u[1]));continue e}if(null==hc(c)){const o=0|r.Compare(lc(s),lc(c));if(0!==o)return 0|o;e=r,n=bt(dc(s),xt(u[0])),t=bt(dc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof ac){e=r,n=Ot([hc(l),fc(lc(l),void 0,dc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,cc(lc(l))],c),t=i;continue e;case 1:if(f instanceof ac){e=r,n=o,t=Ot([hc(f),fc(lc(f),void 0,dc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,cc(lc(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof ac){e=r,n=Ot([hc(l),fc(lc(l),void 0,dc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,cc(lc(l))],c),t=i;continue e;case 1:if(f instanceof ac){e=r,n=o,t=Ot([hc(f),fc(lc(f),void 0,dc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,cc(lc(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof ac)){const o=0|r.Compare(lc(s),lc(c));if(0!==o)return 0|o;e=r,n=xt(u[0]),t=xt(u[1]);continue e}if(null==hc(c)){const o=0|r.Compare(lc(s),lc(c));if(0!==o)return 0|o;e=r,n=bt(void 0,xt(u[0])),t=bt(dc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof ac){e=r,n=Ot([hc(l),fc(lc(l),void 0,dc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,cc(lc(l))],c),t=i;continue e;case 1:if(f instanceof ac){e=r,n=o,t=Ot([hc(f),fc(lc(f),void 0,dc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,cc(lc(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{St(u[1]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof ac){e=r,n=Ot([hc(a),fc(lc(a),void 0,dc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,cc(lc(a))],l),t=i;continue e;case 1:if(h instanceof ac){e=r,n=o,t=Ot([hc(h),fc(lc(h),void 0,dc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,cc(lc(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==St(u[0])){e=r,n=xt(u[0]),t=xt(u[1]);continue e}{St(u[0]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof ac){e=r,n=Ot([hc(a),fc(lc(a),void 0,dc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,cc(lc(a))],l),t=i;continue e;case 1:if(h instanceof ac){e=r,n=o,t=Ot([hc(h),fc(lc(h),void 0,dc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,cc(lc(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ct(n),Ct(t))}function Tc(e,n,t){let r=t;vc(e=>{n[r]=e,r=r+1|0},e)}function Ic(e,n){return ct((n,t)=>wc(e,t,n),void 0,n)}function Ac(e,n){if(r(n))return Ic(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>wc(e,t,n),void 0,n)}(e,n);{const t=c(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=wc(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{t.Dispose()}}}class Oc{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n=0;const t=c(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();n=(n<<1)+g(e)+631|0}}finally{t.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Oc&&0===kc(Mc(this),Pc(this),Pc(e))}toString(){return"set ["+zn("; ",Vo(e=>O(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|kc(Mc(this),Pc(this),Pc(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 yc(Mc(this),e,Pc(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Tc(Pc(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Dc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Dc(this)}GetEnumerator(){return xc(Pc(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return xc(Pc(this))}get size(){return 0|Dc(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 Fc(this,e)}keys(){return Vo(e=>e,this)}values(){return Vo(e=>e,this)}entries(){return Vo(e=>[e,e],this)}forEach(e,n){const t=this;$o(n=>{e(n,n,t)},t)}}function Nc(e,n){return new Oc(e,n)}function Mc(e){return e.comparer}function Pc(e){return e.tree}function Dc(e){return _c(Pc(e))}function Fc(e,n){return yc(Mc(e),n,Pc(e))}function Rc(e,n){return Nc(n,Ac(n,e))}function Uc(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 jc(e,n){const t=2===n.tag?Uc(n.fields[0],n.fields[1],!0):1===n.tag?Uc(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Uc(n.fields[0],n.fields[1],!0):4===n.tag?Uc(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]:Uc(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function Lc(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new Vt(1,jc(e[0],e[1]))}return new Vt(0,r.fields[0])}function Gc(e,n){try{return Lc("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new Vt(1,"Given an invalid JSON: "+e.message);throw e}}const Hc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Vt(0,(e+128&255)-128):new Vt(1,[t,new Zs(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Vt(1,[t,new Zs(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,8,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Zs(0,"a sbyte",r)])}return new Vt(1,[t,new Zs(0,"a sbyte",r)])},Bc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Vt(0,255&e):new Vt(1,[t,new Zs(1,"a byte",e,"Value was either too large or too small for a byte")]):new Vt(1,[t,new Zs(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!0,8,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Zs(0,"a byte",r)])}return new Vt(1,[t,new Zs(0,"a byte",r)])},$c=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 Vt(0,(e+32768&65535)-32768):new Vt(1,[r,new Zs(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Zs(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!1,16,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Zs(0,t,o)])}return new Vt(1,[r,new Zs(0,t,o)])},Vc=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 Vt(0,65535&e):new Vt(1,[r,new Zs(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Zs(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,16,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Zs(0,t,o)])}return new Vt(1,[r,new Zs(0,t,o)])},Wc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Vt(0,~~e):new Vt(1,[t,new Zs(1,"an int",e,"Value was either too large or too small for an int")]):new Vt(1,[t,new Zs(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,32,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Zs(0,"an int",r)])}return new Vt(1,[t,new Zs(0,"an int",r)])},qc=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 Vt(0,e>>>0):new Vt(1,[r,new Zs(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Zs(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,32,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Zs(0,t,o)])}return new Vt(1,[r,new Zs(0,t,o)])};function zc(e,n){if("string"==typeof n){let r,o=Nn(-621355968e5,0);return r=[Pn(n,new j(()=>o,e=>{o=e})),o],r[0]?new Vt(0,1===(t=r[1]).kind?t:Nn(t.getTime(),1)):new Vt(1,[e,new Zs(0,"a datetime",n)])}return new Vt(1,[e,new Zs(0,"a datetime",n)]);var t}function Jc(e,n){if("string"==typeof n){let t,r=nc(-621355968e5,0);return t=[rc(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Zs(0,"a datetimeoffset",n)])}return new Vt(1,[e,new Zs(0,"a datetime",n)])}function Zc(e,n,t,r){let o;const i=t+".["+h(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new Vt(1,[i,new Zs(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=t.length,h(o)+"` entries"),r)])}return new Vt(1,[i,new Zs(0,"an array",r)])}function Yc(e,n,t){if(Array.isArray(t)){let r=-1;return Wt(e=>It(e),ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+h(r)+"]",o);return 0===i.tag?new Vt(0,bt(i.fields[0],t.fields[0])):new Vt(1,i.fields[0])}return t},new Vt(0,vt()),t))}return new Vt(1,[n,new Zs(0,"a list",t)])}function Xc(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+h(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new Vt(0,i)):new Vt(1,u.fields[0])}return t},new Vt(0,it(new Array(o.length),0,o.length,null)),o)}return new Vt(1,[n,new Zs(0,"an array",t)])}function Kc(e,n,t){return new Vt(0,e)}function Qc(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new Vt(1,o.fields[0])}function el(e,n,t,r){const o=n(t,r);return 1===o.tag?new Vt(1,o.fields[0]):new Vt(0,e(o.fields[0]))}function nl(e,n){let t;const r=e;return t=e=>n=>Zc(0,r,e,n),e=>r=>Qc(T(3,e=>{let t;const r=n;return t=e=>n=>Zc(1,r,e,n),n=>r=>Qc((n,t,r)=>Kc([e,n]),T(2,t),n,r)}),T(2,t),e,r)}function tl(e){return Yi(e)}function rl(e,n,t,r){let o,i;return n.length!==r.length?new Vt(1,[t,new Zs(6,(o=0|r.length,i=0|n.length,$n(Hn("Expected %i %s but got %i"))(i)(e)(o)))]):ft(T(3,A(e=>n=>r=>0===r.tag?Wt(e=>bt(e,r.fields[0]),n(t,e)):r,[0,[0,2],0])),r,n,new Vt(0,vt()))}function ol(e,n,t,r,o,i){const u=(s=e=>K(e)===r,ie(t).find(s));var s;if(null!=u){const t=u;return 0===i.length?new Vt(0,ce(t,[])):Wt(e=>ce(t,kt(e)),rl("union fields",ut(t=>ul(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new Vt(1,[o,new Zs(6,"Cannot find case "+r+" in "+Q(t))])}function il(e,n,t,r){const o=new j(null),i=eu(Q(r),o,e);let u;if(function(e){return e instanceof G?null!=e.fields:e instanceof U}(r)){const e=ut(e=>[ec(n,K(e)),ul(i,n,!1,e[1])],ue(r));u=n=>t=>Wt(e=>function(e,n){const t=ue(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,kt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new Vt(1,[n,new Zs(0,"an object",t)]):at(T(2,e=>{const r=e[0];return o=>0===o.tag?Wt(e=>bt(e,o.fields[0]),e[1](n+"."+r)(t[r])):o}),e,new Vt(0,vt()))}(e,n,t))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof N}(r))u=e=>t=>{if("string"==typeof t)return ol(i,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return ol(i,n,r,o[0],e,o.slice(1,o.length))}return new Vt(1,[e,new Zs(0,"a string or array",t)])};else{if(!t){let e;const n=Q(r);throw e=$n(Hn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}u=e=>n=>new Vt(1,[e,new Zs(2,"an extra coder for "+Q(r),n)])}return o.contents=u,u}function ul(e,n,t,r){let o;const i=Q(r),u=nu(i,e);if(null==u){if(ee(r)){const t=ul(e,n,!1,function(e){var n;return ee(e)?null===(n=e.generics)||void 0===n?void 0:n[0]:void 0}(r));return e=>n=>Xc(T(2,t),e,n)}if(ne(r)){const e=Q(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=Hc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=Bc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=$c(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,(s=(s=e)<0&&null!=c&&10!==c?65535+s+1:s).toString(c))):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}var s,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Vc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Wc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,h(e))):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=qc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Zs(1,Q(t),i,"Unkown value provided for the enum")])}};{const e=Q(r),n=Bn(e=>{throw new Error(e)},Hn("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=>{const t=n(e);return e=>t(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const t=ut(t=>ul(e,n,!1,t),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?Wt(e=>kt(e),rl("tuple elements",t,e,n)):new Vt(1,[e,new Zs(0,"an array",n)])}{const i=Q(function(e){return null==e.generics?e:new G(e.fullname,e.generics.map(()=>Z))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const t=ul(e,n,!0,H(r)[0]);return e=>n=>{return r=T(2,t),o=e,null==(i=n)?new Vt(0,void 0):Wt(e=>Kn(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const t=ul(e,n,!1,H(r)[0]);return e=>n=>Yc(T(2,t),e,n)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const t=ul(e,n,!1,H(r)[0]),i=ul(e,n,!1,H(r)[1]);let u;const s=Nt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Vt(1,[t,new Zs(0,"an object",r)]):Bo((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 Vt(0,bt([u.fields[0],e.fields[0]],o.fields[0])):new Vt(1,e.fields[0])}return new Vt(1,u.fields[0])}return o},new Vt(0,vt()),Object.keys(r))}(T(2,t),T(2,i),e,n),(o=nl(T(2,t),T(2,i)),e=>n=>Yc(T(2,o),e,n))]);return u=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(Et(o))return new Vt(1,[t,new Zs(7,i)]);{const u=Lc(t,T(2,St(o)),r);if(1===u.tag){e=xt(o),n=Mt(i,Ct(u.fields[0]));continue e}return new Vt(0,u.fields[0])}}})(s,vt());var t,r},e=>n=>el(e=>tl(e),T(2,u),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const t=ul(e,n,!1,H(r)[0]);return e=>n=>{const r=Xc(T(2,t),e,n);return 0===r.tag?new Vt(0,Rc(r.fields[0],{Compare:(e,n)=>S(e,n)})):new Vt(1,r.fields[0])}}return il(e,n,t,r)}}return"System.Boolean"===i?e=>n=>{return t=e,"boolean"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Zs(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===i?e=>n=>{return t=e,null==(r=n)?new Vt(0,void 0):new Vt(1,[t,new Zs(0,"null",r)]);var t,r}:"System.String"===i?e=>n=>{return t=e,"string"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Zs(0,"a string",r)]);var t,r}:"System.SByte"===i?Hc:"System.Byte"===i?Bc:"System.Int16"===i?$c:"System.UInt16"===i?Vc:"System.Int32"===i?Wc:"System.UInt32"===i?qc:"System.Double"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Zs(0,"a float",r)]);var t,r}:"System.Single"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Zs(0,"a float32",r)]);var t,r}:"System.DateTime"===i?e=>n=>zc(e,n):"System.DateTimeOffset"===i?e=>n=>Jc(e,n):"System.TimeSpan"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[uc(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Zs(0,"a timespan",n)])}return new Vt(1,[e,new Zs(0,"a timespan",n)])}(e,n):"System.Guid"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[pu(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Zs(0,"a guid",n)])}return new Vt(1,[e,new Zs(0,"a guid",n)])}(e,n):"System.Object"===i?e=>e=>new Vt(0,e):il(e,n,t,r)}{const e=u;return n=>t=>e.contents(n)(t)}}function sl(e){return null!=e?tu((e,n)=>new j(n[1]),e.Coders):ru()}function cl(e,n,t){const r=nt(e,new Ys(0)),o=Qn(t).ResolveType();return ul(sl(n),r,!1,o)}function ll(e,n,t,r){return Gc(T(2,cl(n,t,r)),e)}function al(e,n){return $n(function(e,n){let t=0,r=0,o="";jn.lastIndex=0;let i=jn.exec(e);for(;i;){const u=i.index+(i[1]||"").length;o+=e.substring(r,u).replace(/%%/g,"%");const[,,s,c,l,a]=i;o+=Vn(n[t++],s,c,l,a),r=jn.lastIndex,jn.lastIndex-=1,i=jn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}("%s%P()/fasttrack-middleware/admin/%P()",[e,n]))}function fl(e,n){return Us(0,()=>{const t=(i=$n(Hn("Bearer %s"))(e),r=new Ls(0,"Authorization",i),new Hs((o=n).url,o.method,Mt(o.headers,Ct(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;const u=_i.Bind(Js(t),e=>_i.Return(new Vt(0,e)));return _i.Delay(()=>_i.Bind(u,e=>{let n;const r=e;return 1===r.tag?_i.Return(new Vt(1,r.fields[0])):_i.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?_i.Bind(Js(t),e=>_i.Return(new Vt(0,e))):function(e,n){return _i.Return(Fs(0,n))}(0,n)))}))})}class hl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function dl(e){return new hl(0,e)}class pl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function _l(e){return new pl(0,e)}function ml(e){return dl(tr("th",k(Nt([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function gl(e,n){return _l(tr("td",{className:zn(" ",Go(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function wl(e,n){let t,r;return tr("div",{className:"flex flex-col mt-4",children:qo.Children.toArray([tr("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:qo.Children.toArray([tr("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:qo.Children.toArray([tr("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:qo.Children.toArray([tr("table",{className:"min-w-full divide-y divide-gray-200",children:qo.Children.toArray([tr("thead",{className:"bg-gray-50",children:(t=Vo(e=>e.fields[0],e),tr("tr",{children:qo.Children.toArray(Array.from(t))}))}),(r=Wo((e,n)=>{return t=n,tr("tr",{className:e%2==0?"bg-white":"bg-gray-50",children:qo.Children.toArray(Array.from(Vo(e=>e.fields[0],t)))});var t},n),tr("tbody",{children:qo.Children.toArray(Array.from(r))}))])})])})])})])})])})}function yl(e){return e?"On":"Off"}function vl(e,n){return wl(Nt([ml("ID"),ml("Name"),ml("Email"),ml("FT API Version"),ml("Payee Type"),dl(tr("th",k(Nt([["className","relative px-6 py-3"],["scope","col"],["children",qo.Children.toArray([tr("span",{className:"sr-only",children:"Edit"})])]]))))]),Pt(e=>{let t;return Nt([gl(["text-gray-900","font-medium"],e.Id),gl(["text-gray-500"],nt(e.FastTrack.AccountName,"")),gl(["text-gray-500"],nt(e.FastTrack.Email,"")),gl(["text-gray-500"],e.FastTrack.ApiVersion),gl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),(t=[Tu(Nt(["account-registry","partners",n,"accounts",e.Id]),1),"Details"],r=t[0],o=t[1],_l(tr("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right font-medium",children:qo.Children.toArray([tr("a",{className:"text-indigo-600 hover:text-indigo-900",children:o,href:r})])})))]);var r,o},e))}function bl(){return(bl=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 Cl(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 kr(n,t)}function El(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=tr(Cl,bl({},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[Sl(u[i].name)]=u[i].value);for(i=s.length;i--;){var c=e(s[i],null),l=s[i].slot;l?o[l]=tr(Tl,{name:l},c):r[i]=c}var a=t?tr(Tl,null,r):r;return tr(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?xr:Sr)(this._vdom,this._root)}function Sl(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function xl(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[Sl(e)]=t,this._vdom=kr(this._vdom,r),Sr(this._vdom,this._root)}}function kl(){Sr(this._vdom=null,this._root)}function Tl(e,n){var t=this;return tr("slot",bl({},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)}}))}class Il extends U{constructor(e,n,t){super(),this.CurrentPage=e,this.ApolloAccounts=n,this.FlareAccounts=t}}function Al(){return W("Middleware.FastTrack.AdminUI.App.State",[],Il,()=>[["CurrentPage",Ft()],["ApolloAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))],["FlareAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]])}class Ol extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ApolloAccounts","FlareAccounts"]}}function Nl(){return q("Middleware.FastTrack.AdminUI.App.DataToLoad",[],Ol,()=>[[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))]],[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]]])}class Ml extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function Pl(){return q("Middleware.FastTrack.AdminUI.App.Msg",[],Ml,()=>[[["Item",Ft()]],[["Item",Nl()]]])}function Dl(){return[new Il(Rt(Iu(window.location.hash,1)),new ou(0),new ou(0)),Mu()]}function Fl(e,n){if(1===e.tag){const t=e.fields[0];return 1===t.tag?[new Il(n.CurrentPage,n.ApolloAccounts,t.fields[0]),Mu()]:[new Il(n.CurrentPage,t.fields[0],n.FlareAccounts),Mu()]}return[new Il(e.fields[0],n.ApolloAccounts,n.FlareAccounts),Mu()]}function Rl(e){const n=(t=(e,n)=>Fl(e,n),Ps(ui(Dl,r=[]),t,r));var t,r;const o=n[0],i=n[1];let u;if(ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,Us(0,()=>{const e=fl(t,zs(new js(0),qs(al(n,"apollo/accounts"))));return _i.Delay(()=>_i.Bind(e,e=>{let n;const t=e;return 1===t.tag?_i.Return(new Vt(1,t.fields[0])):_i.ReturnFrom((n=t.fields[0],200===n.statusCode?_i.Return(ll(n.responseText,void 0,void 0,{ResolveType:()=>J($t())})):_i.Return(new Vt(1,"Unexpected response from backend"))))}))});var n,t},e=>{i(new Ml(1,new Ol(0,e)))})),ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,Us(0,()=>{const e=fl(t,zs(new js(0),qs(al(n,"flare/accounts"))));return _i.Delay(()=>_i.Bind(e,e=>{let n;const t=e;return 1===t.tag?_i.Return(new Vt(1,t.fields[0])):_i.ReturnFrom((n=t.fields[0],200===n.statusCode?_i.Return(ll(n.responseText,void 0,void 0,{ResolveType:()=>J(Gt())})):_i.Return(new Vt(1,"Unexpected response from backend"))))}))});var n,t},e=>{i(new Ml(1,new Ol(1,e)))})),1===o.CurrentPage.tag)u=tr("h1",{children:["Not Found"]});else{const n=[o.ApolloAccounts,o.FlareAccounts];let t,r,i;switch(2===n[0].tag?1===n[0].fields[0].tag?t=1:2===n[1].tag?1===n[1].fields[0].tag?t=1:(t=0,r=n[0].fields[0].fields[0],i=n[1].fields[0].fields[0]):t=2:t=2===n[1].tag&&1===n[1].fields[0].tag?1:2,t){case 0:{const n=Nt([tr("h3",{children:["Flare Accounts"]}),(s=i,wl(Nt([ml("ID"),ml("Name"),ml("Email"),ml("Last Summary Email Checked"),ml("FT API Version"),ml("Payee Integration"),ml("Payee Type"),ml("Payee Update"),ml("Use Division Lookup"),ml("Flare Rep Name"),ml("Flare Webhook Subscription ID")]),Pt(e=>Nt([gl(["text-gray-900","font-medium"],e.Id),gl(["text-gray-500"],nt(e.Flare.AccountName,"")),gl(["text-gray-500"],nt(e.FastTrack.Email,"")),gl(["text-gray-500"],nt(e.LastSummaryEmailChecked,"")),gl(["text-gray-500"],e.FastTrack.ApiVersion),gl(["text-gray-500"],yl(e.FastTrack.PayeeIntegrationFlag)),gl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),gl(["text-gray-500"],yl(e.FastTrack.PayeeUpdateFlag)),gl(["text-gray-500"],yl(e.Flare.UseDivisionLookup)),gl(["text-gray-500"],e.Flare.RepName),gl(["text-gray-500"],nt(e.Flare.WebhookSubscriptionId,""))]),s))),tr("br",{}),tr("h3",{children:["Apollo Accounts"]}),vl(r,e.apolloPartnerId)]);u=tr("div",{children:qo.Children.toArray(Array.from(n))});break}case 1:u=tr("h1",{children:["Oops, there was an error. Please refresh this page"]});break;case 2:u=tr("h1",{children:["Please wait..."]})}}var s;return Au({onUrlChanged:e=>{i(new Ml(0,Rt(e)))},application:tr(or,{},u)})}(function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=r&&r.shadow?n.attachShadow({mode:"open"}):n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=El,o.prototype.attributeChangedCallback=xl,o.prototype.disconnectedCallback=kl,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(n||e.tagName||e.displayName||e.name,o)})(e=>tr(Rl,e),"superhero-fasttrack-middleware")}]);
1
+ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){"use strict";function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function u(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}t.r(n),t.d(n,"State",(function(){return Sl})),t.d(n,"State$reflection",(function(){return xl})),t.d(n,"DataToLoad",(function(){return kl})),t.d(n,"DataToLoad$reflection",(function(){return Tl})),t.d(n,"Msg",(function(){return Il})),t.d(n,"Msg$reflection",(function(){return Al})),t.d(n,"StateModule_init",(function(){return Ol})),t.d(n,"StateModule_update",(function(){return Nl})),t.d(n,"Component",(function(){return Ml}));class s{constructor(e){this.iter=e}"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 c(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new s(e[Symbol.iterator]())}function l(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function a(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function f(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function p(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function _(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function g(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=g(e[r]);return m(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return m(Object.values(e).map(e=>g(e)))}return _(d.id(e))}}function w(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 y(e,n){return w(e,n,v)}function v(e,n){return e===n||(null==e?null==n:null!=n&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(n):r(e)?r(n)&&y(e,n):e instanceof Date?n instanceof Date&&0===b(e,n):Object.getPrototypeOf(e).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]||!v(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function b(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+f(e),r=n.getTime()+f(n)),t===r?0:t<r?-1:1}function C(e,n){return e===n?0:e<n?-1:1}function E(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,S)}function S(e,n){return e===n?0:null==e?null==n?0:-1:null==n?1:"object"!=typeof e?e<n?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(n):r(e)?r(n)?E(e,n):-1:e instanceof Date?n instanceof Date?b(e,n):-1:Object.getPrototypeOf(e).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=S(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function x(e,n,t){return e(n,t)>0?n:t}function k(e){const n={};for(const t of e)n[t[0]]=t[1];return n}d.idMap=new WeakMap,d.count=0;function T(e,n){if(null==n||n.length>1)return n;let t;switch(e){case 2:t=(e,t)=>n(e)(t);break;case 3:t=(e,t,r)=>n(e)(t)(r);break;case 4:t=(e,t,r,o)=>n(e)(t)(r)(o);break;case 5:t=(e,t,r,o,i)=>n(e)(t)(r)(o)(i);break;case 6:t=(e,t,r,o,i,u)=>n(e)(t)(r)(o)(i)(u);break;case 7:t=(e,t,r,o,i,u,s)=>n(e)(t)(r)(o)(i)(u)(s);break;case 8:t=(e,t,r,o,i,u,s,c)=>n(e)(t)(r)(o)(i)(u)(s)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return t.__CURRIED__=n,t}function I(e,n){if(null==n||1===n.length)return n;if("__CURRIED__"in n)return n.__CURRIED__;switch(e){case 2:return e=>t=>n(e,t);case 3:return e=>t=>r=>n(e,t,r);case 4:return e=>t=>r=>o=>n(e,t,r,o);case 5:return e=>t=>r=>o=>i=>n(e,t,r,o,i);case 6:return e=>t=>r=>o=>i=>u=>n(e,t,r,o,i,u);case 7:return e=>t=>r=>o=>i=>u=>s=>n(e,t,r,o,i,u,s);case 8:return e=>t=>r=>o=>i=>u=>s=>c=>n(e,t,r,o,i,u,s,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function A(e,n){return t=>function e(n,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=I(e,t)),n>1&&(t=T(n,t))}const u=n(t);return o+1===r.length?u:n=>e(u,n,r,o+1)}(e,t,n,0)}function O(e,n=0){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+=O(r);else{if(100===n){t+="; ...";break}t+="; "+O(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+O(t,n+1)).join("\n ")+" }":t.name}}return String(e)}class N{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=O(n[0]),r=t.indexOf(" ")>=0):t=n.map(e=>O(e)).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>g(e));return e.splice(0,0,_(this.tag)),m(e)}Equals(e){return this===e||!!u(this,e)&&(this.tag===e.tag&&y(this.fields,e.fields))}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function M(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function P(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+O(n)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>g(e)))}function F(e,n){if(e===n)return!0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!v(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=S(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return M(this)}toString(){return P(this)}GetHashCode(){return D(this)}Equals(e){return F(this,e)}CompareTo(e){return R(this,e)}}class j{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 L{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class G{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 Q(this)}GetHashCode(){return B(this)}Equals(e){return $(this,e)}}function H(e){return null!=e.generics?e.generics:[]}function B(e){return m([p(e.fullname),...H(e).map(B)])}function $(e,n){return""===e.fullname?""===n.fullname&&w(ue(e),ue(n),([e,n],[t,r])=>e===t&&$(n,r)):e.fullname===n.fullname&&w(H(e),H(n),$)}function V(e,n,t,r){return new G(e,n,t,r)}function W(e,n,t,r){return new G(e,n,t,void 0,r)}function q(e,n,t,r){const o=new G(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new L(o,t,e[t],n))});return o}function z(e){return new G("Microsoft.FSharp.Core.FSharpOption`1",[e])}function J(e){return new G("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Z=new G("System.Object"),Y=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String")),X=new G("System.Boolean");new G("System.SByte"),new G("System.Byte"),new G("System.Int16"),new G("System.UInt16"),new G("System.Int32"),new G("System.UInt32"),new G("System.Single"),new G("System.Double"),new G("System.Decimal");function K(e){if(Array.isArray(e))return e[0];if(e instanceof L)return e.name;{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}function Q(e){const n=null==e.generics||ee(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map(e=>Q(e)).join(",")+"]":e.fullname}function ee(e){return e.fullname.endsWith("[]")}function ne(e){return null!=e.enumCases&&e.enumCases.length>0}function te(e){if(ne(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function re(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")}function oe(e,n){const t=parseInt(n,10);return re(e,isNaN(t)?n:t)[1]}function ie(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ue(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function se(e){return e.fullname.startsWith("System.Tuple")&&!ee(e)}function ce(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):{}}var le;function ae(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 fe(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=t||function(e,n){if(n&le.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)).test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}function he(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=fe(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=ae(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=ae(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 de(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(le||(le={}));const pe=Symbol("numeric");function _e(e){return"number"==typeof e||(null==e?void 0:e[pe])}function me(e,n){return"number"==typeof e?e*n:e[pe]().multiply(n)}function ge(e,n){return"number"==typeof e?e.toFixed(n):e[pe]().toFixed(n)}function we(e,n){return"number"==typeof e?e.toPrecision(n):e[pe]().toPrecision(n)}function ye(e,n){return"number"==typeof e?e.toExponential(n):e[pe]().toExponential(n)}function ve(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[pe]().toHex()}var be=null;try{be=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(e){}function Ce(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Ee(e){return!0===(e&&e.__isLong__)}Ce.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ce.prototype.Equals=function(e){return Ye(this,e)},Ce.prototype.CompareTo=function(e){return en(this,e)},Ce.prototype.toString=function(e){return qe(this,e)},Ce.prototype.toJSON=function(){return qe(this)},Ce.prototype[pe]=function(){const e=this;return{multiply:n=>on(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:()=>qe(e.unsigned?e:hn(fn(e),!0),16)}},Ce.prototype.__isLong__,Object.defineProperty(Ce.prototype,"__isLong__",{value:!0});var Se={},xe={};function ke(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=xe[e])?r:(t=Ie(e,(0|e)<0?-1:0,!0),o&&(xe[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Se[e])?r:(t=Ie(e,e<0?-1:0,!1),o&&(Se[e]=t),t)}function Te(e,n){if(isNaN(e))return n?Ue:Re;if(n){if(e<0)return Ue;if(e>=Pe)return Be}else{if(e<=-De)return $e;if(e+1>=De)return He}return e<0?nn(Te(-e,n)):Ie(e%Me|0,e/Me|0,n)}function Ie(e,n,t){return new Ce(e,n,t)}var Ae=Math.pow;function Oe(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Re;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 nn(Oe(e.substring(1),n,t));for(var o=Te(Ae(t,8)),i=Re,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),c=parseInt(e.substring(u,u+s),t);if(s<8)i=tn(on(i,Te(Ae(t,s))),Te(c));else i=tn(i=on(i,o),Te(c))}return i.unsigned=n,i}function Ne(e,n){return"number"==typeof e?Te(e,n):"string"==typeof e?Oe(e,n):Ie(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Me=4294967296,Pe=Me*Me,De=Pe/2,Fe=ke(1<<24),Re=ke(0),Ue=ke(0,!0),je=ke(1),Le=ke(1,!0),Ge=ke(-1),He=Ie(-1,2147483647,!1),Be=Ie(-1,-1,!0),$e=Ie(0,-2147483648,!1);function Ve(e){return e.unsigned?e.low>>>0:e.low}function We(e){return e.unsigned?(e.high>>>0)*Me+(e.low>>>0):e.high*Me+(e.low>>>0)}function qe(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(ze(e))return"0";if(Je(e)){if(Ye(e,$e)){var t=Te(n),r=un(e,t),o=rn(on(r,t),e);return qe(r,n)+Ve(o).toString(n)}return"-"+qe(nn(e),n)}for(var i=Te(Ae(n,6),e.unsigned),u=e,s="";;){var c=un(u,i),l=(Ve(rn(u,on(c,i)))>>>0).toString(n);if(ze(u=c))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function ze(e){return 0===e.high&&0===e.low}function Je(e){return!e.unsigned&&e.high<0}function Ze(e){return 1==(1&e.low)}function Ye(e,n){return Ee(n)||(n=Ne(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function Xe(e,n){return en(e,n)<0}function Ke(e,n){return en(e,n)>0}function Qe(e,n){return en(e,n)>=0}function en(e,n){if(Ee(n)||(n=Ne(n)),Ye(e,n))return 0;var t=Je(e),r=Je(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:Je(rn(e,n))?-1:1}function nn(e){return!e.unsigned&&Ye(e,$e)?$e:tn(sn(e),je)}function tn(e,n){Ee(n)||(n=Ne(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,c=n.low>>>16,l=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+c)>>>16,l+=(a+=r+s)>>>16,l+=t+u,Ie((f&=65535)<<16|(h&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function rn(e,n){return Ee(n)||(n=Ne(n)),tn(e,nn(n))}function on(e,n){if(ze(e))return e.unsigned?Ue:Re;if(Ee(n)||(n=Ne(n)),be)return Ie(be.mul(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned);if(ze(n))return e.unsigned?Ue:Re;if(Ye(e,$e))return Ze(n)?$e:Re;if(Ye(n,$e))return Ze(e)?$e:Re;if(Je(e))return Je(n)?on(nn(e),nn(n)):nn(on(nn(e),n));if(Je(n))return nn(on(e,nn(n)));if(Xe(e,Fe)&&Xe(n,Fe))return Te(We(e)*We(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,c=n.low>>>16,l=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*l)>>>16,f+=(h+=o*l)>>>16,h&=65535,f+=(h+=i*c)>>>16,a+=(f+=r*l)>>>16,f&=65535,a+=(f+=o*c)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*l+r*c+o*s+i*u,Ie((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function un(e,n){if(Ee(n)||(n=Ne(n)),ze(n))throw Error("division by zero");var t,r,o;if(be)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Ie((e.unsigned?be.div_u:be.div_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):e;if(ze(e))return e.unsigned?Ue:Re;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Ie(e.low,e.high,!0)}(n)),Ke(n,e))return Ue;if(Ke(n,an(e,1)))return Le;o=Ue}else{if(Ye(e,$e))return Ye(n,je)||Ye(n,Ge)?$e:Ye(n,$e)?je:Ye(t=cn(un(ln(e,1),n),1),Re)?Je(n)?je:Ge:o=tn(t,un(r=rn(e,on(n,t)),n));if(Ye(n,$e))return e.unsigned?Ue:Re;if(Je(e))return Je(n)?un(nn(e),nn(n)):nn(un(nn(e),n));if(Je(n))return nn(un(e,nn(n)));o=Re}for(r=e;Qe(r,n);){t=Math.max(1,Math.floor(We(r)/We(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:Ae(2,i-48),s=Te(t),c=on(s,n);Je(c)||Ke(c,r);)c=on(s=Te(t-=u,e.unsigned),n);ze(s)&&(s=je),o=tn(o,s),r=rn(r,c)}return o}function sn(e){return Ie(~e.low,~e.high,e.unsigned)}function cn(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Ie(0,e.low<<n-32,e.unsigned)}function ln(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Ie(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function an(e,n){if(Ee(n)&&(n=Ve(n)),0===(n&=63))return e;var t=e.high;return n<32?Ie(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Ie(32===n?t:t>>>n-32,0,e.unsigned)}function fn(e,n){return n?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]}(e):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]}(e)}function hn(e,n,t){return t?function(e,n){return new Ce(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 Ce(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)}const dn=tn,pn=on,_n=un,mn=function(e,n){return Ee(n)||(n=Ne(n)),be?Ie((e.unsigned?be.rem_u:be.rem_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):rn(e,on(un(e,n),n))},gn=nn,wn=function(e,n){return Ee(n)||(n=Ne(n)),Ie(e.low&n.low,e.high&n.high,e.unsigned)},yn=en,vn=Ie,bn=Ve,Cn=We;function En(e,n,t){let r=e,o=0;switch(t){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return Ie(r,o>>31,n)}const Sn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function xn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+a(~~(e/36e5),2)+":"+a(t,2)}function kn(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 Tn(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:r<10&&n.length>1?"0"+r:""+r})}function In(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," ")+xn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return Tn(i,n,!0);switch(n){case"D":case"d":return kn(i,"first");case"T":case"t":return kn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+xn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function An(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return Tn(e,n,t);switch(n){case"D":case"d":return t?kn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?kn(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 a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(n?xn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function On(e,n,t){return null!=e.offset?In(e,n):An(e,n)}function Nn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Mn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let n=new Date(e);if(isNaN(n.getTime())){const t=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==t)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=t[2]){const e=t[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=t[3]&&"PM"===t[3].toUpperCase()&&(r+=720)}if(null!=t[4]){if(null!=t[1])e=new Date(t[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}const n=t[4].substr(1).split(":");let o=60*parseInt(n[0],10)+parseInt(n[1]||"0",10);"+"===t[4][0]&&(o*=-1),r+=60*o}else if(null!=t[1])e=new Date(t[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}n=new Date(e.getTime()+1e3*r),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}}return n}function Pn(e,n){try{return n.contents=function(e,n=!1){const t=Mn(e),r=Sn.exec(e),o=null!=r?n&&"Z"===r[0]?1:2:0;return Nn(t.getTime(),o)}(e),!0}catch(e){return!1}}function Dn(e,n=0){if(0!=(-276&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let t="g";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function Fn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rn(e,n,t=0){let r;if(r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Dn(n,t),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const Un=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ln=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Hn(e){return{input:e,cont:(n=e,e=>{Un.lastIndex=0;const t=[],r=[];let o=0,i=Un.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Un.lastIndex,Un.lastIndex-=1,i=Un.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),function e(n,t,r,o="",i=-1){return(...u)=>{let s=o;const c=t.slice(),l=r.slice();for(const e of u){const[,,n,t,r,o]=l[0];let u=t;if(i>=0)u=i,i=-1;else if("*"===u){if(e<0)throw new Error("Non-negative number required");i=e;continue}s+=c[0],s+=Vn(e,n,u,r,o),c.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=c[0],n(s)):e(n,c,l,s,i)}}(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function $n(e){return Bn(e=>e,e)}function Vn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",_e(e))switch("x"!==o.toLowerCase()&&(Gn(e,0)?(e=me(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ge(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?we(e,r):we(e);break;case"e":case"E":e=null!=r?ye(e,r):ye(e);break;case"x":e=ve(e);break;case"X":e=ve(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?On(e):O(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 Wn(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Ln,(e,t,r,o,i,u)=>{let s=n[t];if(_e(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=ge(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?we(s,i):we(s);break;case"e":case"E":s=null!=i?ye(s,i):ye(s);break;case"p":case"P":i=null!=i?i:2,s=ge(me(s,100),i)+" %";break;case"d":case"D":s=null!=i?Jn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Jn(ve(s),i,"0"):ve(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/(0+)(\.0+)?/,(n,t,r)=>(Gn(s,0)&&(s=me(s,-1),e="-"),s=ge(s,null!=r?r.length-1:0),Jn(s,(t||"").length-e.length+(null!=r?r.length:0),"0"))),s=e+s}}else s=s instanceof Date?On(s,u||o):O(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s})}function qn(e){return"string"!=typeof e||0===e.length}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,r){if(r="number"==typeof r?r:void 0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];if(!Array.isArray(n)){if(0===r)return e.split(n,t);const o=arguments.length;n=Array(o-1);for(let e=1;e<o;e++)n[e-1]=arguments[e]}n=(n=n.map(e=>Fn(e))).length>0?n:[" "];let o=0;const i=[],u=new RegExp(n.join("|"),"g");for(;null==t||t>1;){const n=u.exec(e);if(null===n)break;(!r||n.index-o>0)&&(t=null!=t?t-1:t,i.push(e.substring(o,n.index))),o=u.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Yn(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return g(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:S(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){return null==e?[]:[Qn(e)]}function nt(e,n){return null!=e?Qn(e):n}function tt(e,n){return null!=n?Kn(e(Qn(n))):void 0}function rt(e,n){return"function"==typeof e?new e(n):new Array(n)}function ot(){throw new Error("Arrays had different lengths")}function it(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function ut(e,n,t){const r=0|n.length,o=rt(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function st(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=rt(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function ct(e,n,t){return t.reduce((n,t)=>e(n,t),n)}function lt(e,n,t){return 0===function(e,n,t){if(null==n)return null==t?0:-1;if(null==t)return 1;{let r=0,o=0;const i=0|n.length,u=0|t.length;if(i>u)return 1;if(i<u)return-1;for(;r<i&&0===o;)o=0|e(n[r],t[r]),r=r+1|0;return 0|o}}((e,n)=>S(e,n),n,t)}function at(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}function ft(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&ot();const i=0|n.length;for(let r=1;r<=i;r++)o=e(r-1,n[i-r],t[i-r],o);return o}((n,t,r,o)=>e(t,r,o),n,t,r)}class ht extends U{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",this)+"]"}Equals(e){const n=this;if(n===e)return!0;return((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1];if(v(t.head,r.head)){e=i,n=u;continue e}return!1}return!1}return null==o[1]}})(n,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)+g(i.head)+631*r,t=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1],s=0|S(t.head,r.head);if(0===s){e=i,n=u;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new dt(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class dt{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"(){this.it=this.xs,this.current=null}Dispose(){}}function pt(){return new ht(null,void 0)}function _t(e,n){return new ht(e,n)}function mt(e){return null==e.tail}function gt(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)}function wt(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function yt(e){const n=e.tail;if(null!=n)return n;throw new Error("List was empty\\nParameter name: list")}function vt(){return pt()}function bt(e,n){return _t(e,n)}function Ct(e){return _t(e,pt())}function Et(e){return mt(e)}function St(e){return wt(e)}function xt(e){return yt(e)}function kt(e){const n=0|gt(e),t=it(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(mt(o))break;t[r]=wt(o),e=r+1,n=yt(o)}})(0,e),t}function Tt(e,n,t){let r=n,o=t;for(;!mt(o);)r=e(r,wt(o)),o=yt(o);return r}function It(e){return Tt((e,n)=>_t(n,e),pt(),e)}function At(e,n){Tt((n,t)=>{e(t)},void 0,n)}function Ot(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=_t(e[n],t);return t}function Nt(e){return Ot(e,pt())}function Mt(e,n){return Tt((e,n)=>_t(n,e),n,It(e))}function Pt(e,n){const t=pt(),r=Tt((n,t)=>{const r=new ht(e(t),void 0);return n.tail=r,r},t,n),o=pt();return r.tail=o,yt(t)}class Dt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountList","NotFound"]}}function Ft(){return q("Middleware.FastTrack.AdminUI.Types.Page",[],Dt,()=>[[],[]])}function Rt(e){let n;switch(n=Et(e)?1:"fasttrack-middleware"===St(e)?Et(xt(e))?1:"accounts"===St(xt(e))&&Et(xt(xt(e)))?0:1:1,n){case 0:return new Dt(0);case 1:return new Dt(1)}}class Ut extends U{constructor(e,n,t,r,o,i){super(),this.AccountName=e,this.ApiVersion=n,this.Email=t,this.PayeeIntegrationFlag=r,this.PayeeType=o,this.PayeeUpdateFlag=i}}function jt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Common.FastTrackDetails",[],Ut,()=>[["AccountName",z(Y)],["ApiVersion",Y],["Email",z(Y)],["PayeeIntegrationFlag",X],["PayeeType",z(Y)],["PayeeUpdateFlag",X]])}class Lt extends U{constructor(e,n,t,r){super(),this.Id=e,this.FastTrack=n,this.Flare=t,this.LastSummaryEmailChecked=r}}function Gt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.Account",[],Lt,()=>[["Id",Y],["FastTrack",jt()],["Flare",W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.FlareDetails",[],Ht,()=>[["AccountName",z(Y)],["RepName",Y],["WebhookSubscriptionId",z(Y)],["UseDivisionLookup",X]])],["LastSummaryEmailChecked",z(Y)]])}class Ht extends U{constructor(e,n,t,r){super(),this.AccountName=e,this.RepName=n,this.WebhookSubscriptionId=t,this.UseDivisionLookup=r}}class Bt extends U{constructor(e,n){super(),this.Id=e,this.FastTrack=n}}function $t(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Apollo.Account",[],Bt,()=>[["Id",Y],["FastTrack",jt()]])}class Vt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function Wt(e,n){return 0===n.tag?new Vt(0,e(n.fields[0])):new Vt(1,n.fields[0])}var qt,zt,Jt,Zt,Yt,Xt={},Kt=[],Qt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function er(e,n){for(var t in n)e[t]=n[t];return e}function nr(e){var n=e.parentNode;n&&n.removeChild(e)}function tr(e,n,t){var r,o,i,u=arguments,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);if(null!=t&&(s.children=t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return rr(e,s,r,o,null)}function rr(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++qt.__v:o};return null!=qt.vnode&&qt.vnode(i),i}function or(e){return e.children}function ir(e,n){this.props=e,this.context=n}function ur(e,n){if(null==n)return e.__?ur(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?ur(e):null}function sr(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 sr(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!lr.__r++||Zt!==qt.debounceRendering)&&((Zt=qt.debounceRendering)||Jt)(lr)}function lr(){for(var e;lr.__r=zt.length;)e=zt.sort((function(e,n){return e.__v.__b-n.__v.__b})),zt=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=er({},o)).__v=o.__v+1,wr(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?ur(o):i,o.__h),yr(t,o),o.__e!=i&&sr(o)))}))}function ar(e,n,t,r,o,i,u,s,c,l){var a,f,h,d,p,_,m,g=r&&r.__k||Kt,w=g.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(d=t.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?rr(null,d,null,null,d):Array.isArray(d)?rr(or,{children:d},null,null,null):d.__b>0?rr(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(h=g[a])||h&&d.key==h.key&&d.type===h.type)g[a]=void 0;else for(f=0;f<w;f++){if((h=g[f])&&d.key==h.key&&d.type===h.type){g[f]=void 0;break}h=null}wr(e,d,h=h||Xt,o,i,u,s,c,l),p=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||p,d)),null!=p?(null==_&&(_=p),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=c=fr(d,c,e):c=dr(e,d,h,g,p,c),l||"option"!==t.type?"function"==typeof t.type&&(t.__d=c):e.value=""):c&&h.__e==c&&c.parentNode!=e&&(c=ur(h))}for(t.__e=_,a=w;a--;)null!=g[a]&&("function"==typeof t.type&&null!=g[a].__e&&g[a].__e==t.__d&&(t.__d=ur(r,a+1)),Cr(g[a],g[a]));if(m)for(a=0;a<m.length;a++)br(m[a],m[++a],m[++a])}function fr(e,n,t){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,n="function"==typeof o.type?fr(o,n,t):dr(t,o,o,e.__k,o.__e,n));return n}function hr(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){hr(e,n)})):n.push(e)),n}function dr(e,n,t,r,o,i){var u,s,c;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,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function pr(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||Qt.test(n)?t:t+"px"}function _r(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||pr(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||pr(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?gr:mr,i):e.removeEventListener(n,i?gr:mr,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||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function mr(e){this.l[e.type+!1](qt.event?qt.event(e):e)}function gr(e){this.l[e.type+!0](qt.event?qt.event(e):e)}function wr(e,n,t,r,o,i,u,s,c){var l,a,f,h,d,p,_,m,g,w,y,v=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,s=n.__e=t.__e,n.__h=null,i=[s]),(l=qt.__b)&&l(n);try{e:if("function"==typeof v){if(m=n.props,g=(l=v.contextType)&&r[l.__c],w=l?g?g.props.value:l.__:r,t.__c?_=(a=n.__c=t.__c).__=a.__E:("prototype"in v&&v.prototype.render?n.__c=a=new v(m,w):(n.__c=a=new ir(m,w),a.constructor=v,a.render=Er),g&&g.sub(a),a.props=m,a.state||(a.state={}),a.context=w,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=v.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=er({},a.__s)),er(a.__s,v.getDerivedStateFromProps(m,a.__s))),h=a.props,d=a.state,f)null==v.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==v.getDerivedStateFromProps&&m!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,w)||n.__v===t.__v){a.props=m,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,p)}))}a.context=w,a.props=m,a.state=a.__s,(l=qt.__r)&&l(n),a.__d=!1,a.__v=n,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=er(er({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(h,d)),y=null!=l&&l.type===or&&null==l.key?l.props.children:l,ar(e,Array.isArray(y)?y:[y],n,t,r,o,i,u,s,c),a.base=n.__e,n.__h=null,a.__h.length&&u.push(a),_&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=vr(t.__e,n,t,r,o,i,u,c);(l=qt.diffed)&&l(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=s,n.__h=!!c,i[i.indexOf(s)]=null),qt.__e(e,n,t)}}function yr(e,n){qt.__c&&qt.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){qt.__e(e,n.__v)}}))}function vr(e,n,t,r,o,i,u,s){var c,l,a,f,h=t.props,d=n.props,p=n.type,_=0;if("svg"===p&&(o=!0),null!=i)for(;_<i.length;_++)if((c=i[_])&&(c===e||(p?c.localName==p:3==c.nodeType))){e=c,i[_]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(null===p)h===d||s&&e.data===d||(e.data=d);else{if(i=i&&Kt.slice.call(e.childNodes),l=(h=t.props||Xt).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!s){if(null!=i)for(h={},f=0;f<e.attributes.length;f++)h[e.attributes[f].name]=e.attributes[f].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||_r(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]||_r(e,i,n[i],t[i],r)}(e,d,h,o,s),a)n.__k=[];else if(_=n.props.children,ar(e,Array.isArray(_)?_:[_],n,t,r,o&&"foreignObject"!==p,i,u,e.firstChild,s),null!=i)for(_=i.length;_--;)null!=i[_]&&nr(i[_]);s||("value"in d&&void 0!==(_=d.value)&&(_!==e.value||"progress"===p&&!_)&&_r(e,"value",_,h.value,!1),"checked"in d&&void 0!==(_=d.checked)&&_!==e.checked&&_r(e,"checked",_,h.checked,!1))}return e}function br(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){qt.__e(e,t)}}function Cr(e,n,t){var r,o,i;if(qt.unmount&&qt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||br(r,null,n)),t||"function"==typeof e.type||(t=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){qt.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Cr(r[i],n,t);null!=o&&nr(o)}function Er(e,n,t){return this.constructor(e,t)}function Sr(e,n,t){var r,o,i;qt.__&&qt.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],wr(n,e=(!r&&t||n).__k=tr(or,null,[e]),o||Xt,Xt,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?Kt.slice.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),yr(i,e)}function xr(e,n){Sr(e,n,xr)}function kr(e,n,t){var r,o,i,u=arguments,s=er({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);return null!=t&&(s.children=t),rr(e.type,s,r||e.key,o||e.ref,null)}qt={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e},__v:0},ir.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=er({},this.state),"function"==typeof e&&(e=e(er({},t),this.props)),e&&er(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),cr(this))},ir.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},ir.prototype.render=or,zt=[],Jt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lr.__r=0,Yt=0;var Tr,Ir,Ar,Or=0,Nr=[],Mr=qt.__b,Pr=qt.__r,Dr=qt.diffed,Fr=qt.__c,Rr=qt.unmount;function Ur(e,n){qt.__h&&qt.__h(Ir,e,Or||n),Or=0;var t=Ir.__H||(Ir.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function jr(e){return Or=1,Lr(Zr,e)}function Lr(e,n,t){var r=Ur(Tr++,2);return r.t=e,r.__c||(r.__=[t?t(n):Zr(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ir),r.__}function Gr(e,n){var t=Ur(Tr++,3);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__H.__h.push(t))}function Hr(e,n){var t=Ur(Tr++,4);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__h.push(t))}function Br(e,n){var t=Ur(Tr++,7);return Jr(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function $r(e,n){qt.useDebugValue&&qt.useDebugValue(n?n(e):e)}function Vr(){Nr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(qr),e.__H.__h.forEach(zr),e.__H.__h=[]}catch(n){e.__H.__h=[],qt.__e(n,e.__v)}})),Nr=[]}qt.__b=function(e){Ir=null,Mr&&Mr(e)},qt.__r=function(e){Pr&&Pr(e),Tr=0;var n=(Ir=e.__c).__H;n&&(n.__h.forEach(qr),n.__h.forEach(zr),n.__h=[])},qt.diffed=function(e){Dr&&Dr(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==Nr.push(n)&&Ar===qt.requestAnimationFrame||((Ar=qt.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),Wr&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Wr&&(n=requestAnimationFrame(t))})(Vr)),Ir=void 0},qt.__c=function(e,n){n.some((function(e){try{e.__h.forEach(qr),e.__h=e.__h.filter((function(e){return!e.__||zr(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],qt.__e(t,e.__v)}})),Fr&&Fr(e,n)},qt.unmount=function(e){Rr&&Rr(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(qr)}catch(e){qt.__e(e,n.__v)}};var Wr="function"==typeof requestAnimationFrame;function qr(e){var n=Ir;"function"==typeof e.__c&&e.__c(),Ir=n}function zr(e){var n=Ir;e.__c=e.__(),Ir=n}function Jr(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Zr(e,n){return"function"==typeof n?n(e):n}function Yr(e,n){for(var t in n)e[t]=n[t];return e}function Xr(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 Kr(e){this.props=e}(Kr.prototype=new ir).isPureReactComponent=!0,Kr.prototype.shouldComponentUpdate=function(e,n){return Xr(this.props,e)||Xr(this.state,n)};var Qr=qt.__b;qt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qr&&Qr(e)};var eo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var no=function(e,n){return null==e?null:hr(hr(e).map(n))},to={map:no,forEach:no,count:function(e){return e?hr(e).length:0},only:function(e){var n=hr(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:hr},ro=qt.__e;qt.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);ro(e,n,t)};var oo=qt.unmount;function io(){this.__u=0,this.t=null,this.__b=null}function uo(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function so(){this.u=null,this.o=null}qt.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),oo&&oo(e)},(io.prototype=new ir).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=uo(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.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},io.prototype.componentWillUnmount=function(){this.t=[]},io.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]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=Yr({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__e&&tr(or,null,e.fallback);return o&&(o.__h=null),[tr(or,null,n.__e?null:e.children),o]};var co=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 lo(e){return this.getChildContext=function(){return e.context},e.children}function ao(e){var n=this,t=e.i;n.componentWillUnmount=function(){Sr(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)}}),Sr(tr(lo,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(so.prototype=new ir).__e=function(e){var n=this,t=uo(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),co(n,e,r)):o()};t?t(i):i()}},so.prototype.render=function(e){this.u=null,this.o=new Map;var n=hr(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},so.prototype.componentDidUpdate=so.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){co(e,t,n)}))};var fo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ho=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,po=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};ir.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(ir.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var _o=qt.event;function mo(){}function go(){return this.cancelBubble}function wo(){return this.defaultPrevented}qt.event=function(e){return _o&&(e=_o(e)),e.persist=mo,e.isPropagationStopped=go,e.isDefaultPrevented=wo,e.nativeEvent=e};var yo,vo={configurable:!0,get:function(){return this.class}},bo=qt.vnode;qt.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){for(var o in r={},t){var i=t[o];"value"===o&&"defaultValue"in t&&null==i||("defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!po(t.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ho.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=hr(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=hr(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}n&&t.class!=t.className&&(vo.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",vo)),e.$$typeof=fo,bo&&bo(e)};var Co=qt.__r;qt.__r=function(e){Co&&Co(e),yo=e.__c};var Eo={ReactCurrentDispatcher:{current:{readContext:function(e){return yo.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function So(e){return!!e&&e.$$typeof===fo}var xo={useState:jr,useReducer:Lr,useEffect:Gr,useLayoutEffect:Hr,useRef:function(e){return Or=5,Br((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){Or=6,Hr((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Br,useCallback:function(e,n){return Or=8,Br((function(){return e}),n)},useContext:function(e){var n=Ir.context[e.__c],t=Ur(Tr++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(Ir)),n.props.value):e.__},useDebugValue:$r,version:"16.8.0",Children:to,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Sr(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return xr(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Sr(null,e),!0)},createPortal:function(e,n){return tr(ao,{__v:e,i:n})},createElement:tr,createContext:function(e,n){var t={__c:n="__cC"+Yt++,__: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(cr)},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 tr.bind(null,e)},cloneElement:function(e){return So(e)?kr.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:or,isValidElement:So,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:ir,PureComponent:Kr,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:Xr(this.props,e)}function r(n){return this.shouldComponentUpdate=t,tr(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n,t){var r=Yr({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=eo,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:or,Suspense:io,SuspenseList:so,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 tr(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Eo};function ko(){return e=(e,n)=>S(e,n),{Compare:(n,t)=>e(n,t)};var e}function To(){return ko()}function Io(){throw new Error("Enumeration has not started. Call MoveNext.")}function Ao(){throw new Error("Enumeration already finished.")}class Oo{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=c(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=O(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{t.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class No{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 Mo(e,n,t){return new No(e,n,t)}function Po(e,n,t){let r=!1,o=void 0,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{o=void 0}};return Mo(()=>(r||Io(),null!=o?Qn(o):Ao()),()=>{if(r||(r=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(o=t,!0):(s(),!1)}return!1},u)}function Do(e,n){null==n&&function(e){throw new Error(e)}(e)}function Fo(e){return function(e){return new Oo(e)}(e)}function Ro(e){return Do("source",e),c(e)}function Uo(e){return Fo(()=>function(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const u=()=>{if(o=!0,null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}if(null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}};return Mo(()=>(r?o&&Ao():Io(),null!=i?Qn(i):Ao()),()=>{let s;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[n,t];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Kn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{t=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=c(s)}else u(),r=!1}else n=c(e)}return Qn(r)}},()=>{o||u()})}(e))}function jo(e,n,t){return Fo(()=>Po(e,n,t))}function Lo(e,n,t){return Fo(()=>{let r=-1;return Po(e,e=>(r=r+1|0,n(r,e)),t)})}function Go(e,n){return Uo([e,n])}function Ho(e,n,t){const r=Ro(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{r.Dispose()}}function Bo(e,n,t){const r=Ro(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{r.Dispose()}}function $o(e,n){Bo((n,t)=>{e(t)},void 0,n)}function Vo(e,n){return jo(()=>Ro(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Wo(e,n){return Lo(()=>Ro(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const qo=xo,zo=e=>{Gr(()=>{const n=e();return()=>{n.Dispose()}})},Jo=(e,n)=>{Gr(()=>{const n=e();return()=>{n.Dispose()}},n)},Zo=e=>{Hr(()=>{const n=e();return()=>{n.Dispose()}})};function Yo(e,n,t,r){const o=qo.memo(e,T(2,nt(I(2,t),null)));return $o(n=>{e.displayName=n},et(n)),e=>qo.createElement(o,Xo(r,e))}function Xo(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function Ko(e){return{Dispose(){e()}}}function Qo(e){zo(e)}function ei(e,n){Jo(e,n)}function ni(e){ri(e,[])}function ti(e){ei(e,[])}function ri(e,n){Jo(n=>(e(),Ko(()=>{})),n)}function oi(e,n){return qo.useCallback(e,nt(n,[]))}function ii(e){return qo.useRef(e)}function ui(e,n){return qo.useMemo(e,nt(n,[]))}function si(e){const n=ii(e),t=oi(e=>n.current(e),[]);var r;return r=()=>{n.current=e},Zo(e=>(r(),Ko(()=>{}))),t}function ci(e){return qo.useState(e)}class li{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)}}}}class ai extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ai.prototype)}}class fi{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>fi.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function hi(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new ai);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(e)}});else try{e(n)}catch(e){n.onError(e)}}}function di(e,n){return hi(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(e)}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function pi(e){return hi(n=>n.onSuccess(e))}const _i=new class{Bind(e,n){return di(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return hi(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 pi(e)}ReturnFrom(e){return e}TryFinally(e,n){return hi(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 hi(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(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 hi(e=>e.onSuccess(void 0))}};function mi(e){}function gi(e){const n=new li("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function wi(e){e.cancel()}function yi(e){return null!=e&&e.isCancelled}const vi=new li;function bi(e){return hi(n=>e([n.onSuccess,n.onError,n.onCancel]))}function Ci(e,n){return function(e,n){return Ei(e,n)}(e,n)}function Ei(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new fi;e({onSuccess:n||mi,onError:t||mi,onCancel:r||mi,cancelToken:o||vi,trampoline:i})}class Si{constructor(e,n){this.k=e,this.v=n}}function xi(e,n){return new Si(e,n)}function ki(e){return e.k}function Ti(e){return e.v}class Ii extends Si{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Ai(e,n,t,r,o){return new Ii(e,n,t,r,o)}function Oi(e){return e.left}function Ni(e){return e.right}function Mi(e){return e.h}function Pi(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){n=e(r+1,Oi(i)),t=Ni(i);continue e}return r+1|0}return 0|r}}(0,e)}function Di(e,n,t,r){let o;if(null!=e){const n=e;o=n instanceof Ii?Mi(n):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ii?Mi(e):1}else i=0;const u=0|(o<i?i:o);return 0===u?xi(n,t):Ai(n,t,e,r,u+1)}function Fi(e,n,t,r){let o,i,u,s,c;if(null!=e){const n=e;c=n instanceof Ii?Mi(n):1}else c=0;let l;if(null!=r){const e=r;l=e instanceof Ii?Mi(e):1}else l=0;if(l>c+2){const u=Qn(r);if(u instanceof Ii){if(o=Oi(u),(null!=o?(i=o,i instanceof Ii?Mi(i):1):0)>c+1){const r=Qn(Oi(u));if(r instanceof Ii)return Di(Di(e,n,t,Oi(r)),ki(r),Ti(r),Di(Ni(r),ki(u),Ti(u),Ni(u)));throw new Error("internal error: Map.rebalance")}return Di(Di(e,n,t,Oi(u)),ki(u),Ti(u),Ni(u))}throw new Error("internal error: Map.rebalance")}if(c>l+2){const o=Qn(e);if(o instanceof Ii){if(u=Ni(o),(null!=u?(s=u,s instanceof Ii?Mi(s):1):0)>l+1){const e=Qn(Ni(o));if(e instanceof Ii)return Di(Di(Oi(o),ki(o),Ti(o),Oi(e)),ki(e),Ti(e),Di(Ni(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Di(Oi(o),ki(o),Ti(o),Di(Ni(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Di(e,n,t,r)}function Ri(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,ki(o));return o instanceof Ii?i<0?Fi(Ri(e,n,t,Oi(o)),ki(o),Ti(o),Ni(o)):0===i?Ai(n,t,Oi(o),Ni(o),Mi(o)):Fi(Oi(o),ki(o),Ti(o),Ri(e,n,t,Ni(o))):i<0?Ai(n,t,void 0,r,2):0===i?xi(n,t):Ai(n,t,r,void 0,2)}return xi(n,t)}function Ui(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(0===s)return Kn(Ti(u));if(u instanceof Ii){e=r,n=o,t=s<0?Oi(u):Ni(u);continue e}return}return}}function ji(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){e(r,Oi(i)),r(ki(i),Ti(i)),n=r,t=Ni(i);continue e}r(ki(i),Ti(i))}break}}(e,n)}function Li(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof Ii){const t=e(n,Oi(r)),o=n(ki(r),Ti(r)),i=e(n,Ni(r));return Ai(ki(r),o,t,i,Mi(r))}return xi(ki(r),n(ki(r),Ti(r)))}}(e,n)}function Gi(e,n,t){let r=t;ji((e,t)=>{n[r]=[e,t],r=r+1|0},e)}function Hi(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ri(e,o[0],o[1],t)}return t}function Bi(e,n){if(r(n))return Hi(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>Ri(e,t[0],t[1],n),void 0,n)}(e,n);{const t=c(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=Ri(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{t.Dispose()}}}class $i extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Vi(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=xt(n),r=St(n);if(null!=r){const o=r;if(o instanceof Ii){e=Ot([Oi(o),xi(ki(o),Ti(o)),Ni(o)],t);continue e}return n}e=t;continue e}}}function Wi(e){return new $i(Vi(Ct(e)),!1)}function qi(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("enumeration already finished")}();if(null!=St(n)){const e=St(n);if(e instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ki(e),Ti(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zi(e){let n=Wi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>qi(n),"System.Collections.IEnumerator.get_Current":()=>qi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vi(xt(n)),!Et(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Wi(e)},Dispose(){}}}class Ji{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=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,g(e[0])),t=0|n(t,g(e[1]))}}finally{r.Dispose()}return 0|t}(this)}Equals(e){if(!(e instanceof Ji))return!1;{const n=c(this);try{const t=c(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!(!v(r[0],o[0])||!v(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{t.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+zn("; ",Vo(e=>Wn("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zi(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zi(this.tree)}CompareTo(e){const n=this;if(e instanceof Ji)return 0|function(e,n,t){const r=Ro(n);try{const n=Ro(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{n.Dispose()}}finally{r.Dispose()}}((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:S(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!!Qi(this,e[0])&&v(Xi(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Gi(this.tree,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)}get size(){return 0|Ki(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Vo(e=>[e[0],e[1]],this)}get(e){return Xi(this,e)}has(e){return Qi(this,e)}keys(){return Vo(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Vo(e=>e[1],this)}forEach(e,n){const t=this;$o(n=>{e(n[1],n[0],t)},t)}}function Zi(e,n){return new Ji(e,n)}function Yi(e){const n=To();return Zi(n,Bi(n,e))}function Xi(e,n){return function(e,n,t){const r=Ui(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function Ki(e){return Pi(e.tree)}function Qi(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(u instanceof Ii){if(s<0){e=r,n=o,t=Oi(u);continue e}if(0===s)return!0;e=r,n=o,t=Ni(u);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function eu(e,n,t){return function(e,n,t){return Zi(e.comparer,Ri(e.comparer,n,t,e.tree))}(t,e,n)}function nu(e,n){return function(e,n){return Ui(e.comparer,n,e.tree)}(n,e)}function tu(e,n){return r=e,Zi((t=n).comparer,Li(r,t.tree));var t,r}function ru(){return Ji.empty}Ji.empty=Zi(To(),void 0);class ou extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function iu(e){return q("Feliz.UseDeferred.Deferred`1",[e],ou,()=>[[],[],[["Item",e]],[["Item",V("System.Exception")]]])}function uu(e,n){const t=ii(gi());return ti(()=>Ko(()=>{wi(t.current)})),si(r=>{yi(t.current)||Ci(_i.Delay(()=>_i.TryWith(_i.Delay(()=>(n(new ou(1)),_i.Bind(e(r),e=>(n(new ou(2,e)),_i.Zero())))),e=>(n(new ou(3,e)),_i.Zero()))),t.current)})}const su=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function cu(e){return tt(e=>e.passive&&!su?{capture:e.capture,once:e.once,passive:!1}:e,e)}function lu(e){return n=e=>e.capture?{capture:!0}:void 0,null!=(t=e)?n(Qn(t)):void 0;var n,t}const au=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,hu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function du(e){function n(e){return e.replace(fu,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(au.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Fn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(fu.test(t))return n(t);if(hu.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function pu(e,n){try{return n.contents=du(e),!0}catch(e){return!1}}var _u={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[pe](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},mu="[big.js] ",gu=mu+"Invalid ",wu=gu+"decimal places",yu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function vu(e,n){var t,r,o;if(!yu.test(n))throw Error(gu+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),o=n.length,r=0;r<t&&r<o&&"0"==n.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<o;)e.c[t++]=+n.charAt(r++);return e=bu(e,Eu.DP+1,Eu.RM)}function bu(e,n,t,r){var o=e.c;if(void 0===t&&(t=Eu.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error("[big.js] Invalid rounding mode");if(n<1)r=3===t&&(r||!!o[0])||0===n&&(1===t&&o[0]>=5||2===t&&(o[0]>5||5===o[0]&&(r||void 0!==o[1]))),o.length=1,r?(e.e=e.e-n+1,o[0]=1):o[0]=e.e=0;else if(n<o.length){const i=o.findIndex((e,t)=>t>=n&&e>0)<0;if(r=1===t&&o[n]>=5||2===t&&(o[n]>5||5===o[n]&&(r||void 0!==o[n+1]||1&o[n-1]))||3===t&&(r||!i),o.length=n--,r)for(;++o[n]>9;)o[n]=0,n--||(++e.e,o.unshift(1));for(n=o.length;!o[--n];)o.pop()}return e}function Cu(e,n,t){var r=e.e,o=e.c.join(""),i=o.length;if(n)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&t?"-"+o:o}_u.abs=function(){var e=new this.constructor(this);return e.s=1,e},_u.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=r.s,s=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?u:i[0]?-s:0;if(u!=s)return u;if(n=u<0,c!=l)return c>l^n?1:-1;for(s=Math.max(o.length,i.length),u=0;u<s;u++)if((c=u<o.length?o[u]:0)!=(l=u<i.length?i[u]:0))return c>l^n?1:-1;return 0},_u.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),o=e.c,i=t.s==e.s?1:-1,u=n.DP;if(u!==~~u||u<0||u>1e6)throw Error(wu);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var s,c,l,a,f,h=o.slice(),d=s=o.length,p=r.length,_=r.slice(0,s),m=_.length,g=e,w=g.c=[],y=0,v=u+(g.e=t.e-e.e)+1;for(g.s=i,i=v<0?0:v,h.unshift(0);m++<s;)_.push(0);do{for(l=0;l<10;l++){if(s!=(m=_.length))a=s>m?1:-1;else for(f=-1,a=0;++f<s;)if(o[f]!=_[f]){a=o[f]>_[f]?1:-1;break}if(!(a<0))break;for(c=m==s?o:h;m;){if(_[--m]<c[m]){for(f=m;f&&!_[--f];)_[f]=9;--_[f],_[m]+=10}_[m]-=c[m]}for(;!_[0];)_.shift()}w[y++]=a?l:++l,_[0]&&a?_[m]=r[d]||0:_=[r[d]]}while((d++<p||void 0!==_[0])&&i--);return w[0]||1==y||(w.shift(),g.e--,v--),y>v&&bu(g,v,n.RM,void 0!==_[0]),g},_u.eq=function(e){return 0===this.cmp(e)},_u.gt=function(e){return this.cmp(e)>0},_u.gte=function(e){return this.cmp(e)>-1},_u.lt=function(e){return this.cmp(e)<0},_u.lte=function(e){return this.cmp(e)<1},_u.minus=_u.sub=function(e){var n,t,r,o,i=this.constructor,u=new i(this),s=(e=new i(e),u.s),c=e.s;if(s!=c)return e.s=-c,u.plus(e);var l=u.c.slice(),a=u.e,f=e.c,h=e.e;if(!l[0]||!f[0])return f[0]?e.s=-c:l[0]?e=new i(u):e.s=1,e;if(s=a-h){for((o=s<0)?(s=-s,r=l):(h=a,r=f),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(t=((o=l.length<f.length)?l:f).length,s=c=0;c<t;c++)if(l[c]!=f[c]){o=l[c]<f[c];break}if(o&&(r=l,l=f,f=r,e.s=-e.s),(c=(t=f.length)-(n=l.length))>0)for(;c--;)l[n++]=0;for(c=n;t>s;){if(l[--t]<f[t]){for(n=t;n&&!l[--n];)l[n]=9;--l[n],l[t]+=10}l[t]-=f[t]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--h;return l[0]||(e.s=1,l=[h=0]),e.c=l,e.e=h,e},_u.mod=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,n=1==e.cmp(r),r.s=o,e.s=i,n?new t(r):(o=t.DP,i=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=o,t.RM=i,this.minus(r.times(e)))},_u.plus=_u.add=function(e){var n,t,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var u=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),n=u-c){for(n>0?(c=u,r=l):(n=-n,r=s),r.reverse();n--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),n=l.length,t=0;n;s[n]%=10)t=(s[--n]=s[n]+l[n]+t)/10|0;for(t&&(s.unshift(t),++c),n=s.length;0===s[--n];)s.pop();return e.c=s,e.e=c,e},_u.pow=function(e){var n=this.constructor,t=new n(this),r=new n("1"),o=new n("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(gu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},_u.prec=function(e,n){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");return bu(new this.constructor(this),e,n)},_u.round=function(e,n){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(wu);return bu(new this.constructor(this),e+this.e+1,n)},_u.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,u=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(mu+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+u&1||(n+="0"),u=((u+1)/2|0)-(u<0||1&u),e=new r(((i=Math.sqrt(n))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+u)):e=new r(i+""),u=e.e+(r.DP+=4);do{t=e,e=s.times(t.plus(o.div(t)))}while(t.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return bu(e,(r.DP-=4)+e.e+1,r.RM)},_u.times=_u.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=o.length,s=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+l,u<s&&(n=o,o=i,i=n,l=u,u=s,s=l),n=new Array(l=u+s);l--;)n[l]=0;for(c=s;c--;){for(s=0,l=u+c;l>c;)s=n[l]+i[c]*o[l-c-1]+s,n[l--]=s%10,s=s/10|0;n[l]=s}for(s?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},_u.toExponential=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(t=bu(new t.constructor(t),++e,n);t.c.length<e;)t.c.push(0)}return Cu(t,!0,!!r)},_u.toFixed=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(e=e+(t=bu(new t.constructor(t),e+t.e+1,n)).e+1;t.c.length<e;)t.c.push(0)}return Cu(t,!1,!!r)},_u.toJSON=_u.toString=function(){var e=this,n=e.constructor;return Cu(e,e.e<=n.NE||e.e>=n.PE,!!e.c[0])},_u.toNumber=function(){var e=Number(Cu(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(mu+"Imprecise conversion");return e},_u.toPrecision=function(e,n){var t=this,r=t.constructor,o=t.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");for(t=bu(new r(t),e,n);t.c.length<e;)t.c.push(0)}return Cu(t,e<=t.e||t.e<=r.NE||t.e>=r.PE,!!o)},_u.valueOf=function(){var e=this,n=e.constructor;if(!0===n.strict)throw Error(mu+"valueOf disallowed");return Cu(e,e.e<=n.NE||e.e>=n.PE,!0)};var Eu=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);if(t instanceof n)r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let n=e.c.findIndex(e=>e);e.c=e.c.slice(n),e.e=e.e-n}}(r);else{if("string"!=typeof t){if(!0===n.strict)throw TypeError(gu+"number");t=0===t&&1/t<0?"-0":String(t)}vu(r,t)}r.constructor=n}return n.prototype=_u,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.strict=!1,n}(),Su=Eu;new Su(0),new Su(1),new Su(-1),new Su("79228162514264337593543950335"),new Su("-79228162514264337593543950335");function xu(e,n){return 0===n.indexOf(e)?n:void 0}function ku(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function Tu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,u;return n=xu("/",e),null!=n?(t=n,"#"+t):(r=xu("#/",e),null!=r?(o=r,o):(i=xu("#",e),null!=i?(u=i,"#/"+Yn(u,1,u.length-1)):"#/"+e))}:e=>{let n,t;return n=xu("/",e),null!=n?(t=n,t):"/"+e}}(n)(zn("/",Pt(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Iu(e,n){return function(e,n){let t,r;const o=pt();let i=o,u=n;for(;!mt(u);){let n=e(wt(u));for(;!mt(n);)t=i,r=new ht(wt(n),void 0),t.tail=r,i=r,n=yt(n);u=yt(u)}const s=i,c=pt();return s.tail=c,yt(o)}(e=>{if("string"!=typeof(n=e)||/^\s*$/.test(n))return vt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+Fn(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return vt();if(null!=xu("?",n))return Ct(n);{const e=n.split("?");if(lt(0,e,null)||1!==e.length){if(lt(0,e,null)||2!==e.length)return vt();if(""===e[1]){const n=e[0];return Ct(decodeURIComponent(n))}{const n=e[0],t=e[1];return Nt([decodeURIComponent(n),"?"+t])}}{const n=e[0];return Ct(decodeURIComponent(n))}}}var n},Nt(Zn(null!=xu("#",e)?Yn(e,1,e.length-1):1===n&&(null!=ku("#",e)||null!=ku("#/",e))?"":e,["/"],null,0)))}const Au=Yo(e=>{const n=si(n=>{const t=nt(e.onUrlChanged,e=>{});!function(e,n,t){n(Iu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(nt(e.hashMode,1),t)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}else{const e="popstate",t=n,r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=ui(()=>cu(void 0),[void 0]),i=ui(()=>lu(void 0),[void 0]),u=ui(()=>e=>{r(e)},[r]);Qo(si(()=>(null==o?window.addEventListener(t,u):window.addEventListener(t,u,o),Ko(()=>{null==i?window.removeEventListener(t,u):window.removeEventListener(t,u,i)}))));const s=e.application;return null==s?null:s},void 0,Nu,Ou);var Ou,Nu;function Mu(){return vt()}class Pu extends U{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Du(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Du(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}vn(2013265921,0,!1),vn(2013265921,0,!0);st(28,e=>Du(2,e),Int32Array);function Fu(e){return e.bound}function Ru(e,n){return e.digits[n]}function Uu(e,n){return En(Ru(e,n),!1,2)}function ju(e,n,t){e.digits[n]=0|t}function Lu(e,n){for(;;){const t=e,r=n;if(0===r)return vn(1,0,!1);if(r%2!=0)return pn(t,Lu(pn(t,t),~~(r/2)));e=pn(t,t),n=~~(r/2)}}function Gu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Gu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const Hu=vn(16777216,0,!1),Bu=vn(16777215,0,!1);vn(16777215,0,!0);function $u(e){return new Pu(e,new Int32Array(e))}function Vu(e){const n=0|((e,n)=>{for(;;){const t=e,r=n;if(-1===r||0!==t[r])return r+1|0;e=t,n=r-1}})(e.digits,e.bound-1);return e.bound=0|n,e}function Wu(e){const n=0|(e<0?0:e);if(n<16777216){const e=$u(1);return e.digits[0]=0|n,Vu(e)}{const e=$u(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/Gu(16777216,t))%16777216|0;return Vu(e)}}function qu(e){if(1===e.bound)return 0|e.digits[0];{let n=0;for(let t=e.bound-1;t>=0;t--)n=e.digits[t]+16777216*n|0;return 0|n}}const zu=Wu(1),Ju=Wu(0);function Zu(e){return e.bound-1}function Yu(e){return 0===e.bound}function Xu(e,n){if(e.bound===n.bound){return((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}return!1}function Ku(e,n){if(e.bound<n.bound)return-1;if(e.bound>n.bound)return 1;return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}function Qu(e,n){return-1===Ku(e,n)}function es(e,n,t){for(;;){const r=e,o=n,i=t;if(!(yn(o,vn(0,0,!1))>0))break;{const u=dn(Uu(r,i),o);ju(r,i,~~bn(wn(u,Bu))),e=r,n=_n(u,Hu),t=i+1}}}function ns(e,n){const t=0|Fu(e),r=$u(t+1),o=En(n,!1,2);let i=vn(0,0,!1);for(let n=0;n<=t-1;n++){const t=dn(dn(i,Uu(r,n)),pn(Uu(e,n),o));ju(r,n,~~bn(wn(t,Bu))),i=_n(t,Hu)}return es(r,i,t),Vu(r)}function ts(e,n){const t=1===Fu(e),r=1===Fu(n);return t&&r?function(e,n){const t=$u(2),r=pn(En(e,!1,2),En(n,!1,2));return ju(t,0,~~bn(wn(r,Bu))),ju(t,1,~~bn(_n(r,Hu))),Vu(t)}(Ru(e,0),Ru(n,0)):t?ns(n,Ru(e,0)):r?ns(e,Ru(n,0)):function(e,n){const t=$u(e.bound+n.bound),r=t.digits;for(let o=0;o<=e.bound-1;o++){const i=En(e.digits[o],!1,2);let u=vn(0,0,!1),s=o;for(let e=0;e<=n.bound-1;e++){const t=En(n.digits[e],!1,2),o=dn(dn(En(r[s],!1,2),u),pn(i,t));r[s]=0|~~bn(wn(o,Bu)),u=_n(o,Hu),s=s+1|0}es(t,u,s)}return Vu(t)}(e,n)}class rs extends U{constructor(e,n,t,r,o,i,u){super(),this.bigL=0|e,this.twoToBigL=0|n,this.k=0|t,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=u}}function os(e,n,t,r){return new rs(e,Gu(2,e),n,t,r,~~(24/e),st(~~(24/e),n=>Gu(2,e*n),Int32Array))}const is=[os(1,28,268435456,268435456),os(2,26,67108864,134217728),os(3,24,16777216,50331648),os(4,22,4194304,16777216),os(5,20,1048576,5242880),os(6,18,262144,1572864),os(7,16,65536,458752),os(8,14,16384,131072),os(9,12,4096,36864),os(10,10,1024,10240),os(11,8,256,2816),os(12,6,64,768),os(13,4,16,208)];st(24,e=>Gu(2,e)-1,Int32Array),st(24,e=>Gu(2,e),Int32Array),st(24,e=>Lu(vn(2,0,!1),e));is[0].bigN;function us(e,n){return ts(e,n)}function ss(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<=i[a+r]?i[a+r]=i[a+r]-e|0:(i[a+r]=i[a+r]+(16777216-e)|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function cs(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<16777216-i[a+r]?i[a+r]=i[a+r]+e|0:(i[a+r]=e-(16777216-i[a+r])|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function ls(e,n,t){const r=[Zu(n),Zu(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],u=r[1],s=r[0],c=0|(0===i?o===t?~~(u[t]/s[0]):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),En(s[0],!1,2))):o===i+t?~~(u[o]/(s[i]+1)):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),dn(En(s[i],!1,2),vn(1,0,!1)))));return 0===c?1!==function(e,n,t,r){return e.bound+n<t.bound+r?-1:e.bound+n>t.bound+n?1:0|((e,t,o)=>{e:for(;;){const i=e,u=t,s=o;if(-1===s)return 0;{const c=0|(s<n?0:i[s-n]),l=0|(s<r?0:u[s-r]);if(c===l){e=i,t=u,o=s-1;continue e}return c<l?-1:1}}})(e.digits,t.digits,e.bound+n-1)}(n,t,e,0)?1:0:0|c}}function as(e,n){if(Yu(n))throw new Error;if(Zu(e)<Zu(n))return[Ju,e];{const t=function(e){return new Pu(e.bound,e.digits.slice())}(e),r=$u(Zu(e)-Zu(n)+1+1);let o=Zu(e);const i=0|Zu(n);let u=o-i;const s=e=>{};let c=!1;for(;!c;){s([r,t,u,o]);const e=0|ls(t,n,u);e>0?(ss(t,e,n,u),cs(r,e,zu,u),s([r,t,u,o])):(c=0===e&&0===u,c||(o===i+u?(s([r,t,u-1,o]),u=u-1|0):(s([r,t,u-1,o-1]),u=u-1|0,o=o-1|0)))}return[Vu(r),Vu(t)]}}Wu(2);function fs(e){return Wu(e)}function hs(e){return function(e){const n=yn(e,vn(0,0,!1))<0?vn(0,0,!1):e,t=$u(3);for(let e=0;e<=2;e++)t.digits[e]=0|~~bn(mn(_n(n,Lu(Hu,e)),Hu));return Vu(t)}(e)}function ds(e){const n=0|Zu(e),t=(e,n,r,o)=>{e:for(;;){const i=e,u=n,s=r,c=o;if(Et(c)){const e=0|qu(s);return i&&0===e?u:bt(h(e),u)}{const l=xt(c),a=as(s,St(c)[1]),f=a[1],h=a[0];if(i&&Yu(h)){e=i,n=u,r=f,o=l;continue e}e=i,n=t(!1,u,f,l),r=h,o=l;continue e}}},r=t(!0,vt(),e,((e,t,r)=>{for(;;){const o=e,i=t,u=r;if(Zu(u)>n)return bt([i,u],o);e=bt([i,u],o),t=i+1,r=us(u,u)}})(vt(),0,Wu(10)));return Et(r)?"0":zn("",kt(r))}function ps(e){return e.bound<=1}function _s(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class ms extends U{constructor(e,n){super(),this.signInt=0|e,this.v=n}toString(){const e=this;switch(0|ys(e)){case-1:return Yu(vs(e))?"0":"-"+ds(vs(e));case 0:return"0";case 1:return ds(vs(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof ms&&bs(this,e)}GetHashCode(){return 0|(0===ys(e=this)?1:ys(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3)|0;return 0|n}(vs(e))|0);var e}toJSON(e){return O(this)}CompareTo(e){if(e instanceof ms)return 0|function(e,n){return Cs(e,n)?-1:bs(e,n)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function gs(e,n){return new ms(e,n)}function ws(e){return ps(e)&&_s(e)<ms.smallLim?ms.smallPosTab[_s(e)]:e}function ys(e){return e.signInt}function vs(e){return e.v}function bs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:case 1:return Xu(vs(e),vs(n));case 2:case 3:return!!Yu(vs(e))&&Yu(vs(n));case 4:return!0;case 5:case 6:return Yu(vs(n));case 7:case 8:return Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Cs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:return Qu(vs(e),vs(n));case 1:return Qu(vs(n),vs(e));case 2:return!1;case 3:return!Yu(vs(e))||!Yu(vs(n));case 4:return!1;case 5:return!Yu(vs(n));case 6:case 7:return!1;case 8:return!Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Es(e){return e>=0?gs(1,ws(fs(e))):gs(-1,ws(-2147483648===e?hs(gn(En(e,!1,2))):fs(de(e))))}function Ss(){return ms.one}function xs(){return ms.two}function ks(){return ms.zero}ms.smallLim=4096,ms.smallPosTab=st(ms.smallLim,e=>fs(e)),ms.one=Es(1),ms.two=Es(2),ms.zero=Es(0);ks(),Ss(),xs();ks(),Ss();class Ts{constructor(){}}function Is(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(v(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const As=new Ts;class Os extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Ns{constructor(e){this.state=new Os(0,it(new Array(x((e,n)=>C(e,n),e,10)),0,x((e,n)=>C(e,n),e,10),null),0)}}function Ms(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new Os(0,o,t):new Os(1,o,t,i),Kn(o[r])}}function Ps(e,n,t){const r=ii(e[0]),o=ii(new Ns(10));const u=ci(e[0]);let s;const c=ii(gi()),l=ii(c.current);ti(()=>Ko(()=>{wi(c.current)})),s=l;const a=()=>{setTimeout(()=>{let e;e=s.current,yi(e)||u[1](r.current)},0)},f=e=>{var t;(t=Is(0,()=>{let t=Kn(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(As,()=>{let e;return null!=t&&(e=s.current,!yi(e))},Is(0,()=>{const e=n(Qn(t),r.current);return At(e=>{e(f)},e[1]),t=Ms(o.current),r.current=e[0],a(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},h=si(f);var d;return ei(()=>Ko(()=>{let e;$o(e=>{e.Dispose()},et((e=r.current,i(e)?e:void 0)))}),t),ri(()=>{r.current=e[0],a(),At(e=>{e(h)},e[1])},t),d=()=>{$o(h,et(Ms(o.current)))},zo(e=>(d(),Ko(()=>{}))),[u[0],h]}class Ds extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Fs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Rs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Us extends U{constructor(e,n,t,r,o,i,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=u}}class js extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ls extends U{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const Gs=new Us("",new Ds(0),vt(),!1,void 0,void 0,new Rs(0));new Ls(0,"","",ru(),new js(0,""));function Hs(e,n){return qn(n)?[n]:Zn(n,[e],null,0)}function Bs(e){return new Us(e,Gs.method,Gs.headers,Gs.withCredentials,Gs.overridenMimeType,Gs.overridenResponseType,Gs.content)}function $s(e,n){return new Us(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function Vs(e){return bi(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;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 js(0,t.responseText):new js("arraybuffer"===s?2:"blob"===s?1:3,t.response),new Ls(o,e,i,function(e){const n=To();return Zi(n,Hi(n,e))}(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"function"==typeof t?ut(e=>e,r,t):r}(e=>{const n=Nt(Hs(":",e));return Et(n)?void 0:[St(n).toLocaleLowerCase(),zn(":",xt(n)).trim()]},Hs("\r\n",t.getAllResponseHeaders()))),u)))};const r=c(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{r.Dispose()}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||t.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=[e.method,e.content];0===u[0].tag?t.send(Kn(void 0)):1===u[1].tag||3===u[1].tag||2===u[1].tag?t.send(Kn(u[1].fields[0])):t.send(Kn(void 0))})}class Ws extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class qs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class zs{constructor(){this.cache=new Map([])}}function Js(){return new zs}Js(),Js();function Zs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ys(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Dn(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),c=Rn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Zs(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Zs(n)}}function Xs(e,n){Ks(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function Ks(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.")}}function Qs(e,n){try{return n.contents=function(e){const n=Mn(e),t=Sn.exec(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t[0]?0:36e5*parseInt(t[1],10)+6e4*parseInt(t[2],10);return Xs(n.getTime(),r)}(e),!0}catch(e){return!1}}function ec(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return nc(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 nc(e){return Cn(_n(e,1e4))}function tc(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 ec(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*ec(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class rc{constructor(e){this.k=e}}function oc(e){return new rc(e)}function ic(e){return e.k}class uc extends rc{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function sc(e,n,t,r){return new uc(e,n,t,r)}function cc(e){return e.left}function lc(e){return e.right}function ac(e){return e.h}function fc(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof uc){n=cc(i),t=e(lc(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function hc(e,n,t){let r;if(null!=e){const n=e;r=n instanceof uc?ac(n):1}else r=0;let o;if(null!=t){const e=t;o=e instanceof uc?ac(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?oc(n):sc(n,e,t,i+1)}function dc(e,n,t){let r,o,i,u,s;if(null!=e){const n=e;s=n instanceof uc?ac(n):1}else s=0;let c;if(null!=t){const e=t;c=e instanceof uc?ac(e):1}else c=0;if(c>s+2){const i=Qn(t);if(i instanceof uc){if(r=cc(i),(null!=r?(o=r,o instanceof uc?ac(o):1):0)>s+1){const t=Qn(cc(i));if(t instanceof uc)return hc(hc(e,n,cc(t)),ic(t),hc(lc(t),ic(i),lc(i)));throw new Error("internal error: Set.rebalance")}return hc(hc(e,n,cc(i)),ic(i),lc(i))}throw new Error("internal error: Set.rebalance")}if(s>c+2){const r=Qn(e);if(r instanceof uc){if(i=lc(r),(null!=i?(u=i,u instanceof uc?ac(u):1):0)>c+1){const e=Qn(lc(r));if(e instanceof uc)return hc(hc(cc(r),ic(r),cc(e)),ic(e),hc(lc(e),n,t));throw new Error("internal error: Set.rebalance")}return hc(cc(r),ic(r),hc(lc(r),n,t))}throw new Error("internal error: Set.rebalance")}return hc(e,n,t)}function pc(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ic(r));if(r instanceof uc)return o<0?dc(pc(e,n,cc(r)),ic(r),lc(r)):0===o?t:dc(cc(r),ic(r),pc(e,n,lc(r)));{const o=0|e.Compare(n,ic(r));return o<0?sc(n,void 0,t,2):0===o?t:sc(n,t,void 0,2)}}return oc(n)}function _c(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ic(u));if(u instanceof uc){if(s<0){e=r,n=o,t=cc(u);continue e}if(0===s)return!0;e=r,n=o,t=lc(u);continue e}return 0===s}return!1}}function mc(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof uc){mc(t,cc(o)),t(ic(o)),e=t,n=lc(o);continue e}t(ic(o))}break}}class gc extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function wc(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=St(n),r=xt(n);if(null!=t){const o=t;if(o instanceof uc){e=Ot([cc(o),oc(ic(o)),lc(o)],r);continue e}return n}e=r;continue e}}}function yc(e){return new gc(wc(Ct(e)),!1)}function vc(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("Enumeration already started")}();if(null!=St(n)){return ic(St(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function bc(e){let n=yc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>vc(n),"System.Collections.IEnumerator.get_Current":()=>vc(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof uc)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wc(xt(n)),!Et(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=yc(e)},Dispose(){}}}function Cc(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,u=[o,i];if(Et(u[0]))return Et(u[1])?0:-1;if(Et(u[1]))return 1;if(null!=St(u[1]))if(null!=St(u[0])){const s=St(u[0]),c=St(u[1]);if(s instanceof uc)if(null==cc(s)){if(!(c instanceof uc)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(lc(s),xt(u[0])),t=bt(void 0,xt(u[1]));continue e}if(null==cc(c)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(lc(s),xt(u[0])),t=bt(lc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof uc)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=xt(u[0]),t=xt(u[1]);continue e}if(null==cc(c)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(void 0,xt(u[0])),t=bt(lc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{St(u[1]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof uc){e=r,n=Ot([cc(a),sc(ic(a),void 0,lc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,oc(ic(a))],l),t=i;continue e;case 1:if(h instanceof uc){e=r,n=o,t=Ot([cc(h),sc(ic(h),void 0,lc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,oc(ic(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==St(u[0])){e=r,n=xt(u[0]),t=xt(u[1]);continue e}{St(u[0]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof uc){e=r,n=Ot([cc(a),sc(ic(a),void 0,lc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,oc(ic(a))],l),t=i;continue e;case 1:if(h instanceof uc){e=r,n=o,t=Ot([cc(h),sc(ic(h),void 0,lc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,oc(ic(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ct(n),Ct(t))}function Ec(e,n,t){let r=t;mc(e=>{n[r]=e,r=r+1|0},e)}function Sc(e,n){return ct((n,t)=>pc(e,t,n),void 0,n)}function xc(e,n){if(r(n))return Sc(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>pc(e,t,n),void 0,n)}(e,n);{const t=c(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=pc(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{t.Dispose()}}}class kc{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n=0;const t=c(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();n=(n<<1)+g(e)+631|0}}finally{t.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof kc&&0===Cc(Ic(this),Ac(this),Ac(e))}toString(){return"set ["+zn("; ",Vo(e=>O(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Cc(Ic(this),Ac(this),Ac(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 _c(Ic(this),e,Ac(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Ec(Ac(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Oc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Oc(this)}GetEnumerator(){return bc(Ac(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return bc(Ac(this))}get size(){return 0|Oc(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 Nc(this,e)}keys(){return Vo(e=>e,this)}values(){return Vo(e=>e,this)}entries(){return Vo(e=>[e,e],this)}forEach(e,n){const t=this;$o(n=>{e(n,n,t)},t)}}function Tc(e,n){return new kc(e,n)}function Ic(e){return e.comparer}function Ac(e){return e.tree}function Oc(e){return fc(Ac(e))}function Nc(e,n){return _c(Ic(e),n,Ac(e))}function Mc(e,n){return Tc(n,xc(n,e))}function Pc(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 Dc(e,n){const t=2===n.tag?Pc(n.fields[0],n.fields[1],!0):1===n.tag?Pc(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Pc(n.fields[0],n.fields[1],!0):4===n.tag?Pc(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]:Pc(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function Fc(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new Vt(1,Dc(e[0],e[1]))}return new Vt(0,r.fields[0])}function Rc(e,n){try{return Fc("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new Vt(1,"Given an invalid JSON: "+e.message);throw e}}const Uc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Vt(0,(e+128&255)-128):new Vt(1,[t,new Ws(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Vt(1,[t,new Ws(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,8,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"a sbyte",r)])}return new Vt(1,[t,new Ws(0,"a sbyte",r)])},jc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Vt(0,255&e):new Vt(1,[t,new Ws(1,"a byte",e,"Value was either too large or too small for a byte")]):new Vt(1,[t,new Ws(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!0,8,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"a byte",r)])}return new Vt(1,[t,new Ws(0,"a byte",r)])},Lc=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 Vt(0,(e+32768&65535)-32768):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!1,16,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])},Gc=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 Vt(0,65535&e):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,16,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])},Hc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Vt(0,~~e):new Vt(1,[t,new Ws(1,"an int",e,"Value was either too large or too small for an int")]):new Vt(1,[t,new Ws(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,32,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"an int",r)])}return new Vt(1,[t,new Ws(0,"an int",r)])},Bc=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 Vt(0,e>>>0):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,32,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])};function $c(e,n){if("string"==typeof n){let r,o=Nn(-621355968e5,0);return r=[Pn(n,new j(()=>o,e=>{o=e})),o],r[0]?new Vt(0,1===(t=r[1]).kind?t:Nn(t.getTime(),1)):new Vt(1,[e,new Ws(0,"a datetime",n)])}return new Vt(1,[e,new Ws(0,"a datetime",n)]);var t}function Vc(e,n){if("string"==typeof n){let t,r=Xs(-621355968e5,0);return t=[Qs(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a datetimeoffset",n)])}return new Vt(1,[e,new Ws(0,"a datetime",n)])}function Wc(e,n,t,r){let o;const i=t+".["+h(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new Vt(1,[i,new Ws(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=t.length,h(o)+"` entries"),r)])}return new Vt(1,[i,new Ws(0,"an array",r)])}function qc(e,n,t){if(Array.isArray(t)){let r=-1;return Wt(e=>It(e),ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+h(r)+"]",o);return 0===i.tag?new Vt(0,bt(i.fields[0],t.fields[0])):new Vt(1,i.fields[0])}return t},new Vt(0,vt()),t))}return new Vt(1,[n,new Ws(0,"a list",t)])}function zc(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+h(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new Vt(0,i)):new Vt(1,u.fields[0])}return t},new Vt(0,it(new Array(o.length),0,o.length,null)),o)}return new Vt(1,[n,new Ws(0,"an array",t)])}function Jc(e,n,t){return new Vt(0,e)}function Zc(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new Vt(1,o.fields[0])}function Yc(e,n,t,r){const o=n(t,r);return 1===o.tag?new Vt(1,o.fields[0]):new Vt(0,e(o.fields[0]))}function Xc(e,n){let t;const r=e;return t=e=>n=>Wc(0,r,e,n),e=>r=>Zc(T(3,e=>{let t;const r=n;return t=e=>n=>Wc(1,r,e,n),n=>r=>Zc((n,t,r)=>Jc([e,n]),T(2,t),n,r)}),T(2,t),e,r)}function Kc(e){return Yi(e)}function Qc(e,n,t,r){let o,i;return n.length!==r.length?new Vt(1,[t,new Ws(6,(o=0|r.length,i=0|n.length,$n(Hn("Expected %i %s but got %i"))(i)(e)(o)))]):ft(T(3,A(e=>n=>r=>0===r.tag?Wt(e=>bt(e,r.fields[0]),n(t,e)):r,[0,[0,2],0])),r,n,new Vt(0,vt()))}function el(e,n,t,r,o,i){const u=(s=e=>K(e)===r,ie(t).find(s));var s;if(null!=u){const t=u;return 0===i.length?new Vt(0,ce(t,[])):Wt(e=>ce(t,kt(e)),Qc("union fields",ut(t=>tl(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new Vt(1,[o,new Ws(6,"Cannot find case "+r+" in "+Q(t))])}function nl(e,n,t,r){const o=new j(null),i=eu(Q(r),o,e);let u;if(function(e){return e instanceof G?null!=e.fields:e instanceof U}(r)){const e=ut(e=>[Ys(n,K(e)),tl(i,n,!1,e[1])],ue(r));u=n=>t=>Wt(e=>function(e,n){const t=ue(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,kt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new Vt(1,[n,new Ws(0,"an object",t)]):at(T(2,e=>{const r=e[0];return o=>0===o.tag?Wt(e=>bt(e,o.fields[0]),e[1](n+"."+r)(t[r])):o}),e,new Vt(0,vt()))}(e,n,t))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof N}(r))u=e=>t=>{if("string"==typeof t)return el(i,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return el(i,n,r,o[0],e,o.slice(1,o.length))}return new Vt(1,[e,new Ws(0,"a string or array",t)])};else{if(!t){let e;const n=Q(r);throw e=$n(Hn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}u=e=>n=>new Vt(1,[e,new Ws(2,"an extra coder for "+Q(r),n)])}return o.contents=u,u}function tl(e,n,t,r){let o;const i=Q(r),u=nu(i,e);if(null==u){if(ee(r)){const t=tl(e,n,!1,function(e){var n;return ee(e)?null===(n=e.generics)||void 0===n?void 0:n[0]:void 0}(r));return e=>n=>zc(T(2,t),e,n)}if(ne(r)){const e=Q(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=Uc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=jc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=Lc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,(s=(s=e)<0&&null!=c&&10!==c?65535+s+1:s).toString(c))):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}var s,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Gc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Hc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,h(e))):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=Bc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};{const e=Q(r),n=Bn(e=>{throw new Error(e)},Hn("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=>{const t=n(e);return e=>t(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const t=ut(t=>tl(e,n,!1,t),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?Wt(e=>kt(e),Qc("tuple elements",t,e,n)):new Vt(1,[e,new Ws(0,"an array",n)])}{const i=Q(function(e){return null==e.generics?e:new G(e.fullname,e.generics.map(()=>Z))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const t=tl(e,n,!0,H(r)[0]);return e=>n=>{return r=T(2,t),o=e,null==(i=n)?new Vt(0,void 0):Wt(e=>Kn(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const t=tl(e,n,!1,H(r)[0]);return e=>n=>qc(T(2,t),e,n)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const t=tl(e,n,!1,H(r)[0]),i=tl(e,n,!1,H(r)[1]);let u;const s=Nt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Vt(1,[t,new Ws(0,"an object",r)]):Bo((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 Vt(0,bt([u.fields[0],e.fields[0]],o.fields[0])):new Vt(1,e.fields[0])}return new Vt(1,u.fields[0])}return o},new Vt(0,vt()),Object.keys(r))}(T(2,t),T(2,i),e,n),(o=Xc(T(2,t),T(2,i)),e=>n=>qc(T(2,o),e,n))]);return u=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(Et(o))return new Vt(1,[t,new Ws(7,i)]);{const u=Fc(t,T(2,St(o)),r);if(1===u.tag){e=xt(o),n=Mt(i,Ct(u.fields[0]));continue e}return new Vt(0,u.fields[0])}}})(s,vt());var t,r},e=>n=>Yc(e=>Kc(e),T(2,u),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const t=tl(e,n,!1,H(r)[0]);return e=>n=>{const r=zc(T(2,t),e,n);return 0===r.tag?new Vt(0,Mc(r.fields[0],{Compare:(e,n)=>S(e,n)})):new Vt(1,r.fields[0])}}return nl(e,n,t,r)}}return"System.Boolean"===i?e=>n=>{return t=e,"boolean"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===i?e=>n=>{return t=e,null==(r=n)?new Vt(0,void 0):new Vt(1,[t,new Ws(0,"null",r)]);var t,r}:"System.String"===i?e=>n=>{return t=e,"string"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a string",r)]);var t,r}:"System.SByte"===i?Uc:"System.Byte"===i?jc:"System.Int16"===i?Lc:"System.UInt16"===i?Gc:"System.Int32"===i?Hc:"System.UInt32"===i?Bc:"System.Double"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a float",r)]);var t,r}:"System.Single"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a float32",r)]);var t,r}:"System.DateTime"===i?e=>n=>$c(e,n):"System.DateTimeOffset"===i?e=>n=>Vc(e,n):"System.TimeSpan"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[tc(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a timespan",n)])}return new Vt(1,[e,new Ws(0,"a timespan",n)])}(e,n):"System.Guid"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[pu(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a guid",n)])}return new Vt(1,[e,new Ws(0,"a guid",n)])}(e,n):"System.Object"===i?e=>e=>new Vt(0,e):nl(e,n,t,r)}{const e=u;return n=>t=>e.contents(n)(t)}}function rl(e){return null!=e?tu((e,n)=>new j(n[1]),e.Coders):ru()}function ol(e,n,t){const r=nt(e,new qs(0)),o=Qn(t).ResolveType();return tl(rl(n),r,!1,o)}function il(e,n,t,r){return Rc(T(2,ol(n,t,r)),e)}function ul(e,n){return $n(function(e,n){let t=0,r=0,o="";jn.lastIndex=0;let i=jn.exec(e);for(;i;){const u=i.index+(i[1]||"").length;o+=e.substring(r,u).replace(/%%/g,"%");const[,,s,c,l,a]=i;o+=Vn(n[t++],s,c,l,a),r=jn.lastIndex,jn.lastIndex-=1,i=jn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}("%s%P()/fasttrack-middleware/admin/%P()",[e,n]))}function sl(e,n){return _i.Delay(()=>{const t=(i=$n(Hn("Bearer %s"))(e),r=new Fs(0,"Authorization",i),new Us((o=n).url,o.method,Mt(o.headers,Ct(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;return _i.Bind(_i.Bind(Vs(t),e=>_i.Return(new Vt(0,e))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 429===e.statusCode||e.statusCode>=500?_i.Bind(Vs(t),e=>_i.Return(new Vt(0,e))):_i.Return(new Vt(0,e))}})})}class cl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function ll(e){return new cl(0,e)}class al extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function fl(e){return new al(0,e)}function hl(e){return ll(tr("th",k(Nt([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function dl(e,n){return fl(tr("td",{className:zn(" ",Go(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function pl(e,n){let t,r;return tr("div",{className:"flex flex-col mt-4",children:qo.Children.toArray([tr("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:qo.Children.toArray([tr("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:qo.Children.toArray([tr("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:qo.Children.toArray([tr("table",{className:"min-w-full divide-y divide-gray-200",children:qo.Children.toArray([tr("thead",{className:"bg-gray-50",children:(t=Vo(e=>e.fields[0],e),tr("tr",{children:qo.Children.toArray(Array.from(t))}))}),(r=Wo((e,n)=>{return t=n,tr("tr",{className:e%2==0?"bg-white":"bg-gray-50",children:qo.Children.toArray(Array.from(Vo(e=>e.fields[0],t)))});var t},n),tr("tbody",{children:qo.Children.toArray(Array.from(r))}))])})])})])})])})])})}function _l(e){return e?"On":"Off"}function ml(e,n){return pl(Nt([hl("ID"),hl("Name"),hl("Email"),hl("FT API Version"),hl("Payee Type"),ll(tr("th",k(Nt([["className","relative px-6 py-3"],["scope","col"],["children",qo.Children.toArray([tr("span",{className:"sr-only",children:"Edit"})])]]))))]),Pt(e=>{let t;return Nt([dl(["text-gray-900","font-medium"],e.Id),dl(["text-gray-500"],nt(e.FastTrack.AccountName,"")),dl(["text-gray-500"],nt(e.FastTrack.Email,"")),dl(["text-gray-500"],e.FastTrack.ApiVersion),dl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),(t=[Tu(Nt(["account-registry","partners",n,"accounts",e.Id]),1),"Details"],r=t[0],o=t[1],fl(tr("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right font-medium",children:qo.Children.toArray([tr("a",{className:"text-indigo-600 hover:text-indigo-900",children:o,href:r})])})))]);var r,o},e))}function gl(){return(gl=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 wl(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 kr(n,t)}function yl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=tr(wl,gl({},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[vl(u[i].name)]=u[i].value);for(i=s.length;i--;){var c=e(s[i],null),l=s[i].slot;l?o[l]=tr(El,{name:l},c):r[i]=c}var a=t?tr(El,null,r):r;return tr(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?xr:Sr)(this._vdom,this._root)}function vl(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function bl(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[vl(e)]=t,this._vdom=kr(this._vdom,r),Sr(this._vdom,this._root)}}function Cl(){Sr(this._vdom=null,this._root)}function El(e,n){var t=this;return tr("slot",gl({},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)}}))}class Sl extends U{constructor(e,n,t){super(),this.CurrentPage=e,this.ApolloAccounts=n,this.FlareAccounts=t}}function xl(){return W("Middleware.FastTrack.AdminUI.App.State",[],Sl,()=>[["CurrentPage",Ft()],["ApolloAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))],["FlareAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]])}class kl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ApolloAccounts","FlareAccounts"]}}function Tl(){return q("Middleware.FastTrack.AdminUI.App.DataToLoad",[],kl,()=>[[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))]],[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]]])}class Il extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function Al(){return q("Middleware.FastTrack.AdminUI.App.Msg",[],Il,()=>[[["Item",Ft()]],[["Item",Tl()]]])}function Ol(){return[new Sl(Rt(Iu(window.location.hash,1)),new ou(0),new ou(0)),Mu()]}function Nl(e,n){if(1===e.tag){const t=e.fields[0];return 1===t.tag?[new Sl(n.CurrentPage,n.ApolloAccounts,t.fields[0]),Mu()]:[new Sl(n.CurrentPage,t.fields[0],n.FlareAccounts),Mu()]}return[new Sl(e.fields[0],n.ApolloAccounts,n.FlareAccounts),Mu()]}function Ml(e){const n=(t=(e,n)=>Nl(e,n),Ps(ui(Ol,r=[]),t,r));var t,r;const o=n[0],i=n[1];let u;if(ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,_i.Delay(()=>_i.Bind(sl(t,$s(new Ds(0),Bs(ul(n,"apollo/accounts")))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 200===e.statusCode?_i.Return(il(e.responseText,void 0,void 0,{ResolveType:()=>J($t())})):_i.Return(new Vt(1,"Unexpected response from backend"))}}));var n,t},e=>{i(new Il(1,new kl(0,e)))})),ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,_i.Delay(()=>_i.Bind(sl(t,$s(new Ds(0),Bs(ul(n,"flare/accounts")))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 200===e.statusCode?_i.Return(il(e.responseText,void 0,void 0,{ResolveType:()=>J(Gt())})):_i.Return(new Vt(1,"Unexpected response from backend"))}}));var n,t},e=>{i(new Il(1,new kl(1,e)))})),1===o.CurrentPage.tag)u=tr("h1",{children:["Not Found"]});else{const n=[o.ApolloAccounts,o.FlareAccounts];let t,r,i;switch(2===n[0].tag?1===n[0].fields[0].tag?t=1:2===n[1].tag?1===n[1].fields[0].tag?t=1:(t=0,r=n[0].fields[0].fields[0],i=n[1].fields[0].fields[0]):t=2:t=2===n[1].tag&&1===n[1].fields[0].tag?1:2,t){case 0:{const n=Nt([tr("h3",{children:["Flare Accounts"]}),(s=i,pl(Nt([hl("ID"),hl("Name"),hl("Email"),hl("Last Summary Email Checked"),hl("FT API Version"),hl("Payee Integration"),hl("Payee Type"),hl("Payee Update"),hl("Use Division Lookup"),hl("Flare Rep Name"),hl("Flare Webhook Subscription ID")]),Pt(e=>Nt([dl(["text-gray-900","font-medium"],e.Id),dl(["text-gray-500"],nt(e.Flare.AccountName,"")),dl(["text-gray-500"],nt(e.FastTrack.Email,"")),dl(["text-gray-500"],nt(e.LastSummaryEmailChecked,"")),dl(["text-gray-500"],e.FastTrack.ApiVersion),dl(["text-gray-500"],_l(e.FastTrack.PayeeIntegrationFlag)),dl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),dl(["text-gray-500"],_l(e.FastTrack.PayeeUpdateFlag)),dl(["text-gray-500"],_l(e.Flare.UseDivisionLookup)),dl(["text-gray-500"],e.Flare.RepName),dl(["text-gray-500"],nt(e.Flare.WebhookSubscriptionId,""))]),s))),tr("br",{}),tr("h3",{children:["Apollo Accounts"]}),ml(r,e.apolloPartnerId)]);u=tr("div",{children:qo.Children.toArray(Array.from(n))});break}case 1:u=tr("h1",{children:["Oops, there was an error. Please refresh this page"]});break;case 2:u=tr("h1",{children:["Please wait..."]})}}var s;return Au({onUrlChanged:e=>{i(new Il(0,Rt(e)))},application:tr(or,{},u)})}(function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=r&&r.shadow?n.attachShadow({mode:"open"}):n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=yl,o.prototype.attributeChangedCallback=bl,o.prototype.disconnectedCallback=Cl,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(n||e.tagName||e.displayName||e.name,o)})(e=>tr(Ml,e),"superhero-fasttrack-middleware")}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-fasttrack-middleware",
3
- "version": "1.61.0",
3
+ "version": "1.63.0",
4
4
  "description": "Flare Superhero FastTrack Middleware Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [