@flarehr/superhero-account-registry 2.3.20 → 2.5.22

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 s(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}t.r(n),t.d(n,"State",(function(){return $f})),t.d(n,"State$reflection",(function(){return ff})),t.d(n,"Msg",(function(){return df})),t.d(n,"Msg$reflection",(function(){return hf})),t.d(n,"StateModule_init",(function(){return pf})),t.d(n,"StateModule_update",(function(){return mf})),t.d(n,"AccountRegistryComponent",(function(){return gf}));class u{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 u(e[Symbol.iterator]())}function a(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 l(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function $(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(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 h(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function p(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 p(e);case"string":return h(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 p(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 _(e,n){return w(e,n,y)}function y(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)&&_(e,n):e instanceof Date?n instanceof Date&&0===v(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]||!y(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function v(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+$(e),r=n.getTime()+$(n)),t===r?0:t<r?-1:1}function b(e,n){return e===n?0:e<n?-1:1}function C(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,x)}function x(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)?C(e,n):-1:e instanceof Date?n instanceof Date?v(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 s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=x(e[s],n[s]),0!==i)return i}return 0}(e,n):-1}function S(e,n,t){return e(n,t)>0?n:t}function E(e){const n={};for(const t of e)n[t[0]]=t[1];return n}d.idMap=new WeakMap,d.count=0;function k(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,s)=>n(e)(t)(r)(o)(i)(s);break;case 7:t=(e,t,r,o,i,s,u)=>n(e)(t)(r)(o)(i)(s)(u);break;case 8:t=(e,t,r,o,i,s,u,c)=>n(e)(t)(r)(o)(i)(s)(u)(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=>s=>n(e,t,r,o,i,s);case 7:return e=>t=>r=>o=>i=>s=>u=>n(e,t,r,o,i,s,u);case 8:return e=>t=>r=>o=>i=>s=>u=>c=>n(e,t,r,o,i,s,u,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=k(n,t))}const s=n(t);return o+1===r.length?s:n=>e(s,n,r,o+1)}(e,t,n,0)}function N(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+=N(r);else{if(100===n){t+="; ...";break}t+="; "+N(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+N(t,n+1)).join("\n ")+" }":t.name}}return String(e)}class T{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",n=!0;if(1===this.fields.length){const t=N(this.fields[0]);n=t.indexOf(" ")>=0,e=t}else e=this.fields.map(e=>N(e)).join(", ");return this.name+(n?" (":" ")+e+(n?")":"")}}GetHashCode(){const e=this.fields.map(e=>g(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&_(this.fields,e.fields))}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function P(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function D(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+N(n)).join("\n ")+" }"}function M(e){return m(Object.values(e).map(e=>g(e)))}function O(e,n){if(e===n)return!0;if(s(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!y(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(s(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=x(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return P(this)}toString(){return D(this)}GetHashCode(){return M(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class B{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 F{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return K(this)}GetHashCode(){return G(this)}Equals(e){return H(this,e)}}function j(e){return null!=e.generics?e.generics:[]}function G(e){return m([h(e.fullname),...j(e).map(G)])}function H(e,n){return""===e.fullname?""===n.fullname&&w(ie(e),ie(n),([e,n],[t,r])=>e===t&&H(n,r)):e.fullname===n.fullname&&w(j(e),j(n),H)}function W(e,n,t,r){return new F(e,n,t,r)}function z(e,n,t,r){return new F(e,n,t,void 0,r)}function q(e,n,t,r){const o=new F(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 V(e){return new F("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Z(e){return new F("Microsoft.FSharp.Collections.FSharpList`1",[e])}const J=new F("System.Object"),X=(new F("Microsoft.FSharp.Core.Unit"),new F("System.Char"),new F("System.String"));new F("System.Boolean"),new F("System.SByte"),new F("System.Byte"),new F("System.Int16"),new F("System.UInt16"),new F("System.Int32"),new F("System.UInt32"),new F("System.Single"),new F("System.Double"),new F("System.Decimal");function Y(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 K(e){const n=null==e.generics||Q(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map(e=>K(e)).join(",")+"]":e.fullname}function Q(e){return e.fullname.endsWith("[]")}function ee(e){return null!=e.enumCases&&e.enumCases.length>0}function ne(e){if(ee(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function te(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 re(e,n){const t=parseInt(n,10);return te(e,isNaN(t)?n:t)[1]}function oe(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ie(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")&&!Q(e)}function ue(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):{}}class ce{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return g(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof ce?e.value:e)}CompareTo(e){return null==e?1:x(this.value,e instanceof ce?e.value:e)}}function ae(e){return null==e||e instanceof ce?new ce(e):e}function le(e){if(null==e)throw new Error("Option has no value");return e instanceof ce?e.value:e}function $e(e){return null==e?[]:[le(e)]}function fe(e,n){return null!=e?le(e):n}function de(e,n){return null!=n?ae(e(le(n))):void 0}class he extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function pe(e,n){if(0===n.tag){const t=n.fields[0];return new he(0,e(t))}{const e=n.fields[0];return new he(1,e)}}function me(e,n){if(0===n.tag){return e(n.fields[0])}{const e=n.fields[0];return new he(1,e)}}var ge;function we(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 _e(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&ge.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 ye(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=_e(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=we(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=we(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function ve(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ge||(ge={}));const be=Symbol("numeric");function Ce(e){return"number"==typeof e||(null==e?void 0:e[be])}function xe(e,n){return"number"==typeof e?e*n:e[be]().multiply(n)}function Se(e,n){return"number"==typeof e?e.toFixed(n):e[be]().toFixed(n)}function Ee(e,n){return"number"==typeof e?e.toPrecision(n):e[be]().toPrecision(n)}function ke(e,n){return"number"==typeof e?e.toExponential(n):e[be]().toExponential(n)}function Ie(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[be]().toHex()}var Ae=null;try{Ae=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 Ne(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Te(e){return!0===(e&&e.__isLong__)}Ne.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ne.prototype.Equals=function(e){return on(this,e)},Ne.prototype.CompareTo=function(e){return an(this,e)},Ne.prototype.toString=function(e){return en(this,e)},Ne.prototype.toJSON=function(){return en(this)},Ne.prototype[be]=function(){const e=this;return{multiply:n=>dn(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:()=>en(e.unsigned?e:yn(_n(e),!0),16)}},Ne.prototype.__isLong__,Object.defineProperty(Ne.prototype,"__isLong__",{value:!0});var Pe={},De={};function Me(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=De[e])?r:(t=Re(e,(0|e)<0?-1:0,!0),o&&(De[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Pe[e])?r:(t=Re(e,e<0?-1:0,!1),o&&(Pe[e]=t),t)}function Oe(e,n){if(isNaN(e))return n?ze:We;if(n){if(e<0)return ze;if(e>=je)return Xe}else{if(e<=-Ge)return Ye;if(e+1>=Ge)return Je}return e<0?ln(Oe(-e,n)):Re(e%Fe|0,e/Fe|0,n)}function Re(e,n,t){return new Ne(e,n,t)}var Ue=Math.pow;function Be(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return We;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 ln(Be(e.substring(1),n,t));for(var o=Oe(Ue(t,8)),i=We,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),t);if(u<8)i=$n(dn(i,Oe(Ue(t,u))),Oe(c));else i=$n(i=dn(i,o),Oe(c))}return i.unsigned=n,i}function Le(e,n){return"number"==typeof e?Oe(e,n):"string"==typeof e?Be(e,n):Re(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Fe=4294967296,je=Fe*Fe,Ge=je/2,He=Me(1<<24),We=Me(0),ze=Me(0,!0),qe=Me(1),Ve=Me(1,!0),Ze=Me(-1),Je=Re(-1,2147483647,!1),Xe=Re(-1,-1,!0),Ye=Re(0,-2147483648,!1);function Ke(e){return e.unsigned?e.low>>>0:e.low}function Qe(e){return e.unsigned?(e.high>>>0)*Fe+(e.low>>>0):e.high*Fe+(e.low>>>0)}function en(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(nn(e))return"0";if(tn(e)){if(on(e,Ye)){var t=Oe(n),r=hn(e,t),o=fn(dn(r,t),e);return en(r,n)+Ke(o).toString(n)}return"-"+en(ln(e),n)}for(var i=Oe(Ue(n,6),e.unsigned),s=e,u="";;){var c=hn(s,i),a=(Ke(fn(s,dn(c,i)))>>>0).toString(n);if(nn(s=c))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function nn(e){return 0===e.high&&0===e.low}function tn(e){return!e.unsigned&&e.high<0}function rn(e){return 1==(1&e.low)}function on(e,n){return Te(n)||(n=Le(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function sn(e,n){return an(e,n)<0}function un(e,n){return an(e,n)>0}function cn(e,n){return an(e,n)>=0}function an(e,n){if(Te(n)||(n=Le(n)),on(e,n))return 0;var t=tn(e),r=tn(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:tn(fn(e,n))?-1:1}function ln(e){return!e.unsigned&&on(e,Ye)?Ye:$n(pn(e),qe)}function $n(e,n){Te(n)||(n=Le(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=0,l=0,$=0,f=0;return $+=(f+=i+(65535&n.low))>>>16,l+=($+=o+c)>>>16,a+=(l+=r+u)>>>16,a+=t+s,Re(($&=65535)<<16|(f&=65535),(a&=65535)<<16|(l&=65535),e.unsigned)}function fn(e,n){return Te(n)||(n=Le(n)),$n(e,ln(n))}function dn(e,n){if(nn(e))return e.unsigned?ze:We;if(Te(n)||(n=Le(n)),Ae)return Re(Ae.mul(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned);if(nn(n))return e.unsigned?ze:We;if(on(e,Ye))return rn(n)?Ye:We;if(on(n,Ye))return rn(e)?Ye:We;if(tn(e))return tn(n)?dn(ln(e),ln(n)):ln(dn(ln(e),n));if(tn(n))return ln(dn(e,ln(n)));if(sn(e,He)&&sn(n,He))return Oe(Qe(e)*Qe(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=65535&n.low,l=0,$=0,f=0,d=0;return f+=(d+=i*a)>>>16,$+=(f+=o*a)>>>16,f&=65535,$+=(f+=i*c)>>>16,l+=($+=r*a)>>>16,$&=65535,l+=($+=o*c)>>>16,$&=65535,l+=($+=i*u)>>>16,l+=t*a+r*c+o*u+i*s,Re((f&=65535)<<16|(d&=65535),(l&=65535)<<16|($&=65535),e.unsigned)}function hn(e,n){if(Te(n)||(n=Le(n)),nn(n))throw Error("division by zero");var t,r,o;if(Ae)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Re((e.unsigned?Ae.div_u:Ae.div_s)(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned):e;if(nn(e))return e.unsigned?ze:We;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Re(e.low,e.high,!0)}(n)),un(n,e))return ze;if(un(n,wn(e,1)))return Ve;o=ze}else{if(on(e,Ye))return on(n,qe)||on(n,Ze)?Ye:on(n,Ye)?qe:on(t=mn(hn(gn(e,1),n),1),We)?tn(n)?qe:Ze:o=$n(t,hn(r=fn(e,dn(n,t)),n));if(on(n,Ye))return e.unsigned?ze:We;if(tn(e))return tn(n)?hn(ln(e),ln(n)):ln(hn(ln(e),n));if(tn(n))return ln(hn(e,ln(n)));o=We}for(r=e;cn(r,n);){t=Math.max(1,Math.floor(Qe(r)/Qe(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:Ue(2,i-48),u=Oe(t),c=dn(u,n);tn(c)||un(c,r);)c=dn(u=Oe(t-=s,e.unsigned),n);nn(u)&&(u=qe),o=$n(o,u),r=fn(r,c)}return o}function pn(e){return Re(~e.low,~e.high,e.unsigned)}function mn(e,n){return Te(n)&&(n=Ke(n)),0==(n&=63)?e:n<32?Re(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Re(0,e.low<<n-32,e.unsigned)}function gn(e,n){return Te(n)&&(n=Ke(n)),0==(n&=63)?e:n<32?Re(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Re(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function wn(e,n){if(Te(n)&&(n=Ke(n)),0===(n&=63))return e;var t=e.high;return n<32?Re(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Re(32===n?t:t>>>n-32,0,e.unsigned)}function _n(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 yn(e,n,t){return t?function(e,n){return new Ne(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 Ne(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 vn=$n,bn=dn,Cn=hn,xn=function(e,n){return Te(n)||(n=Le(n)),Ae?Re((e.unsigned?Ae.rem_u:Ae.rem_s)(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned):fn(e,dn(hn(e,n),n))},Sn=ln,En=function(e,n){return Te(n)||(n=Le(n)),Re(e.low&n.low,e.high&n.high,e.unsigned)},kn=an,In=Re,An=Ke,Nn=Qe;function Tn(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 Re(r,o>>31,n)}const Pn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Dn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+l(~~(e/36e5),2)+":"+l(t,2)}function Mn(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 On(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 Rn(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," ")+Dn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return On(i,n,!0);switch(n){case"D":case"d":return Mn(i,"first");case"T":case"t":return Mn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+Dn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Un(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return On(e,n,t);switch(n){case"D":case"d":return t?Mn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?Mn(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 l(e.getFullYear(),4)+"-"+l(e.getMonth()+1,2)+"-"+l(e.getDate(),2)+"T"+l(e.getHours(),2)+":"+l(e.getMinutes(),2)+":"+l(e.getSeconds(),2)+"."+l(e.getMilliseconds(),3)+(n?Dn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function Bn(e,n,t){return null!=e.offset?Rn(e,n):Un(e,n)}function Ln(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Fn(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 jn(e,n){try{return n.contents=function(e,n=!1){const t=Fn(e),r=Pn.exec(e),o=null!=r?n&&"Z"===r[0]?1:2:0;return Ln(t.getTime(),o)}(e),!0}catch(e){return!1}}function Gn(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 Hn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Wn(e,n,t=0){let r;if(r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Gn(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 zn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,qn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Vn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Zn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Jn(e){return{input:e,cont:(n=e,e=>zn.test(n)?function e(n,t,r=new B(null)){return(...o)=>{let i=n;for(const e of o)i=et(i,e,r);return zn.test(i)?e(i,t,r):t(i.replace(/%%/g,"%"))}}(n,e):e(n))};var n}function Xn(e,n){let t=0;return e.replace(qn,(e,r,o,i,s,u)=>Qn(n[t++],r,o,i,s,u)).replace(/%%/g,"%")}function Yn(e,n){return"string"==typeof n?e(n):n.cont(e)}function Kn(e){return Yn(e=>e,e)}function Qn(e,n,t,r,o,i){let s="";if(t=t||"",i=i||"",Ce(e))switch("x"!==i.toLowerCase()&&(Zn(e,0)?(e=xe(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=Se(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?Ee(e,o):Ee(e);break;case"e":case"E":e=null!=o?ke(e,o):ke(e);break;case"x":e=Ie(e);break;case"X":e=Ie(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Bn(e):N(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const n=t.indexOf("0")>=0,o=t.indexOf("-")>=0,i=o||!n?" ":"0";e="0"===i?s+(e=it(e,r-s.length,i,o)):it(s+e,r,i,o)}return n?n+e:e}function et(e,n,t){return e.replace(zn,(e,r,o,i,s,u)=>{if(null!=t.contents)i=t.contents,t.contents=null;else if("*"===i){if(n<0)throw new Error("Non-negative number required");return t.contents=n,e}return Qn(n,r,o,i,s,u).replace(/%/g,"%%")})}function nt(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Vn,(e,t,r,o,i,s)=>{let u=n[t];if(Ce(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=Se(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Ee(u,i):Ee(u);break;case"e":case"E":u=null!=i?ke(u,i):ke(u);break;case"p":case"P":i=null!=i?i:2,u=Se(xe(u,100),i)+" %";break;case"d":case"D":u=null!=i?it(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?it(Ie(u),i,"0"):Ie(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(n,t,r)=>(Zn(u,0)&&(u=xe(u,-1),e="-"),u=Se(u,null!=r?r.length-1:0),it(u,(t||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?Bn(u,s||o):N(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=it(String(u),Math.abs(r)," ",r<0)),u})}function tt(e){return"string"!=typeof e||0===e.length}function rt(e){return"string"!=typeof e||/^\s*$/.test(e)}function ot(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function it(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 st(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=>Hn(e))).length>0?n:[" "];let o=0;const i=[],s=new RegExp(n.join("|"),"g");for(;null==t||t>1;){const n=s.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=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function ut(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)}const ct=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,at=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,lt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function $t(e){function n(e){return e.replace(at,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(ct.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Hn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(at.test(t))return n(t);if(lt.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 ft(e,n){try{return n.contents=$t(e),!0}catch(e){return!1}}class dt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function ht(){return q("MetadataTypes.StreamId",[],dt,()=>[[["Item",X]]])}function pt(e){return e.fields[0]}class mt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}class gt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class wt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class _t extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class yt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class vt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class bt extends U{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class Ct extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class xt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function St(){return q("BasicModels.PartnerId",[],xt,()=>[[["Item",X]]])}class Et extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function kt(){return q("BasicModels.AccountId",[],Et,()=>[[["Item",X]]])}function It(e,n){return"function"==typeof e?new e(n):new Array(n)}function At(){throw new Error("Arrays had different lengths")}function Nt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Tt(e,n,t){const r=0|n.length,o=It(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function Pt(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=It(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function Dt(e,n,t){return t.reduce((n,t)=>e(n,t),n)}function Mt(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=0|(r*e|0);o=n.slice(i,i+e),t.push(o)}return t}}function Ot(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,s=0|t.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(n[r],t[r]),r+=1;return 0|o}}((e,n)=>x(e,n),n,t)}function Rt(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}function Ut(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&At();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 Bt extends U{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+ot("; ",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],s=o[1];if(y(t.head,r.head)){e=i,n=s;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,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+g(i.head)+631*r,t=u}}})(0,0,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],s=o[1],u=0|x(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new Lt(e)}(this)}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class Lt{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 Ft(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 jt(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Gt(e){const n=e.tail;if(null!=n){return n}throw new Error("List was empty\\nParameter name: list")}function Ht(){return new Bt(null,void 0)}function Wt(e,n){return new Bt(e,n)}function zt(e){return new Bt(e,new Bt(null,void 0))}function qt(e){return null==e.tail}function Vt(e){return Ft(e)}function Zt(e){return jt(e)}function Jt(e){return Gt(e)}function Xt(e){const n=0|Ft(e),t=Nt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(null==o.tail)break;t[r]=jt(o),e=r+1,n=Gt(o)}})(0,e),t}function Yt(e,n,t){let r=n,o=t;for(;null!=o.tail;)r=e(r,jt(o)),o=Gt(o);return r}function Kt(e){return Yt((e,n)=>new Bt(n,e),new Bt(null,void 0),e)}function Qt(e,n){return Yt((n,t)=>{e(t)},void 0,n)}function er(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=new Bt(e[n],t);return t}function nr(e){return er(e,new Bt(null,void 0))}function tr(e){if(r(e)){return nr(e)}if(e instanceof Bt){return e}{const n=new Bt(null,void 0);let t=n;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),n=t,o=new Bt(e,void 0);n.tail=o,t=o}}finally{r.Dispose()}const o=t,i=new Bt(null,void 0);return o.tail=i,Gt(n)}}function rr(e,n){return Yt((e,n)=>new Bt(n,e),n,Kt(e))}function or(e,n){const t=new Bt(null,void 0),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(null==s.tail)return i;n=o+1,t=e(o,i,jt(s)),r=Gt(s)}})(0,n,t)}((n,t,r)=>{const o=new Bt(e(n,r),void 0);return t.tail=o,o},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}function ir(e,n){const t=new Bt(null,void 0),r=Yt((n,t)=>{const r=new Bt(e(t),void 0);return n.tail=r,r},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}function sr(e,n){return(n=>{e:for(;;){const t=n;if(null==t.tail)return;{const r=e(jt(t));if(null==r){n=Gt(t);continue e}return r}}})(n)}function ur(e,n){return sr(n=>e(n)?ae(n):void 0,n)}function cr(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(null==o.tail)return;if(r===e)return ae(jt(o));n=r+1,t=Gt(o)}})(0,n)}function ar(){return e=(e,n)=>x(e,n),{Compare:(n,t)=>e(n,t)};var e}function lr(){return ar()}function $r(){throw new Error("Enumeration has not started. Call MoveNext.")}function fr(){throw new Error("Enumeration already finished.")}class dr{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+=N(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(n+="; ..."),n+"]"}finally{t.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class hr{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"(){return function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function pr(e,n,t){return new hr(e,n,t)}function mr(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const s=()=>{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 pr(()=>{if(r?o&&fr():$r(),null!=i){return le(i)}return fr()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[n,t];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=ae(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{t=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=c(r)}else s(),o=!1}else n=c(e)}return le(o)})()),()=>{o||s()})}function gr(e,n,t){let r=!1,o=void 0,i=ae(e());const s=()=>{if(null!=i){const e=le(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return pr(()=>{if(r||$r(),null!=o){return le(o)}return fr()},()=>{if(r||(r=!0),null!=i){const e=le(i);let t;try{t=n(e)}catch(e){throw u(),e}if(null!=t){return o=t,!0}return u(),!1}return!1},s)}function wr(e,n){null==n&&function(e){throw new Error(e)}(e)}function _r(e){return function(e){return new dr(e)}(e)}function yr(e){return wr("source",e),c(e)}function vr(e){return _r(()=>c(e()))}function br(e){return _r(()=>mr(e))}function Cr(){return vr(()=>new Array(0))}function xr(e){return vr(()=>function(e,n){const t=It(n,1);return t[0]=e,t}(e))}function Sr(e){if(r(e)){return nr(e)}if(e instanceof Bt){return e}return tr(e)}function Er(e,n,t){return _r(()=>gr(e,n,t))}function kr(e,n,t){return _r(()=>{let r=-1;return gr(e,e=>(r+=1,n(r,e)),t)})}function Ir(e,n){return br([e,n])}function Ar(e,n){return Er(()=>yr(n),n=>{let t=void 0;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t},e=>{e.Dispose()})}function Nr(e,n,t){const r=yr(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 Tr(e,n,t){const r=yr(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 Pr(e,n){return Tr((n,t)=>{e(t)},void 0,n)}function Dr(e,n){return Er(()=>yr(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?ae(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Mr(e,n){return kr(()=>yr(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?ae(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}!function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),n=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),t=new Uint32Array(e),r=new Uint8Array(n);for(let e=1;e<t.length;++e)t[e]+=t[e-1]}();function Or(e,n){const t=function(e,n,t=0){let r;return r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Gn(n,t),r.exec(e)}(Gn(e),n);return null!=t?Jt(Sr(vr(()=>Dr(e=>e||"",t)))):void 0}function Rr(e,n){return tt(n)?new he(1,Kn(Jn("%s cannot be null or empty"))(e)):new he(0,n)}function Ur(e){const n=function(e){let n;const t=Or(".*?@(.*)",e);switch(n=null!=t?qt(t)?1:qt(Jt(t))?0:1:1,n){case 0:return e;case 1:return}}(e);if(null!=n){return new he(0,n)}return new he(1,"Email is not in the correct format")}class Br{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 Lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Lr.prototype)}}class Fr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Fr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function jr(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new Lr);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 Gr(e,n){return jr(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 Hr(e){return jr(n=>n.onSuccess(e))}const Wr=new class{Bind(e,n){return Gr(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return jr(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 Hr(e)}ReturnFrom(e){return e}TryFinally(e,n){return jr(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 jr(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 jr(e=>e.onSuccess(void 0))}};class zr{constructor(){}}function qr(e,n){return new he(0,n)}function Vr(e,n){return n}function Zr(e,n,t){return pe(t,n)}new zr;function Jr(e){return e.fields[0]}function Xr(e){return e.fields[0]}function Yr(e){return e.fields[0]}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}class eo extends U{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function no(){return z("Dto.Primitives.ContactDetails",[],eo,()=>[["FirstName",X],["LastName",X],["Email",X],["MobilePhone",X]])}function to(e){return Vr(0,()=>me(n=>{const t=n;return me(n=>{const r=n;return me(n=>{const o=n;return Zr(0,pe(e=>new vt(0,e),Rr("MobilePhone",e.MobilePhone)),e=>new bt(t,r,o,e))},pe(e=>new yt(0,e),me(e=>Ur(e),Rr("Email",e.Email))))},pe(e=>new _t(0,e),Rr("LastName",e.LastName)))},pe(e=>new wt(0,e),Rr("FirstName",e.FirstName))))()}function ro(e){if(null!=e){return e.fields[0]}}function oo(e){return e.fields[0]}function io(e){return e.fields[0]}class so extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}class uo extends U{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class co extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=c}}function ao(){return z("Dto.AdminApi.Account",[],co,()=>[["StreamId",X],["PartnerId",X],["Name",X],["Website",X],["ContactDetails",no()],["Notes",V(X)],["LegalEntity",V(z("Dto.Primitives.LegalEntity",[],so,()=>[["BusinessName",X],["BusinessNumber",X],["Address1",X],["Address2",V(X)],["City",X],["Postcode",X],["State",V(X)],["Phone",X],["CountryCode",V(X)]]))],["ExternalId",V(X)],["ChannelId",V(X)]])}class lo extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=c}}function $o(){return z("Dto.AdminApi.AccountLookupItem",[],lo,()=>[["AccountId",X],["Name",X],["Contact",X],["ContactMobilePhone",X],["Website",X],["BusinessName",V(X)],["BusinessNumber",V(X)],["ExternalId",V(X)],["ChannelId",V(X)]])}class fo extends U{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function ho(){return z("Dto.AdminApi.AccountLookup",[],fo,()=>[["Accounts",Z($o())],["Token",V(X)]])}var po,mo,go,wo,_o,yo,vo,bo={},Co=[],xo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function So(e,n){for(var t in n)e[t]=n[t];return e}function Eo(e){var n=e.parentNode;n&&n.removeChild(e)}function ko(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?po.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Io(e,s,r,o,null)}function Io(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?++go:o};return null==o&&null!=mo.vnode&&mo.vnode(i),i}function Ao(e){return e.children}function No(e,n){this.props=e,this.context=n}function To(e,n){if(null==n)return e.__?To(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?To(e):null}function Po(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 Po(e)}}function Do(e){(!e.__d&&(e.__d=!0)&&wo.push(e)&&!Mo.__r++||yo!==mo.debounceRendering)&&((yo=mo.debounceRendering)||_o)(Mo)}function Mo(){for(var e;Mo.__r=wo.length;)e=wo.sort((function(e,n){return e.__v.__b-n.__v.__b})),wo=[],e.some((function(e){var n,t,r,o,i,s;e.__d&&(i=(o=(n=e).__v).__e,(s=n.__P)&&(t=[],(r=So({},o)).__v=o.__v+1,Ho(s,o,r,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?To(o):i,o.__h),Wo(t,o),o.__e!=i&&Po(o)))}))}function Oo(e,n,t,r,o,i,s,u,c,a){var l,$,f,d,h,p,m,g=r&&r.__k||Co,w=g.length;for(t.__k=[],l=0;l<n.length;l++)if(null!=(d=t.__k[l]=null==(d=n[l])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Io(null,d,null,null,d):Array.isArray(d)?Io(Ao,{children:d},null,null,null):d.__b>0?Io(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(f=g[l])||f&&d.key==f.key&&d.type===f.type)g[l]=void 0;else for($=0;$<w;$++){if((f=g[$])&&d.key==f.key&&d.type===f.type){g[$]=void 0;break}f=null}Ho(e,d,f=f||bo,o,i,s,u,c,a),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Ro(d,c,e):c=Bo(e,d,f,g,h,c),"function"==typeof t.type&&(t.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=To(f))}for(t.__e=p,l=w;l--;)null!=g[l]&&("function"==typeof t.type&&null!=g[l].__e&&g[l].__e==t.__d&&(t.__d=To(r,l+1)),qo(g[l],g[l]));if(m)for(l=0;l<m.length;l++)zo(m[l],m[++l],m[++l])}function Ro(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Ro(r,n,t):Bo(t,r,r,o,r.__e,n));return n}function Uo(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Uo(e,n)})):n.push(e)),n}function Bo(e,n,t,r,o,i){var s,u,c;if(void 0!==n.__d)s=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),s=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Lo(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||xo.test(n)?t:t+"px"}function Fo(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||Lo(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Lo(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?Go:jo,i):e.removeEventListener(n,i?Go:jo,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 jo(e){this.l[e.type+!1](mo.event?mo.event(e):e)}function Go(e){this.l[e.type+!0](mo.event?mo.event(e):e)}function Ho(e,n,t,r,o,i,s,u,c){var a,l,$,f,d,h,p,m,g,w,_,y=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(a=mo.__b)&&a(n);try{e:if("function"==typeof y){if(m=n.props,g=(a=y.contextType)&&r[a.__c],w=a?g?g.props.value:a.__:r,t.__c?p=(l=n.__c=t.__c).__=l.__E:("prototype"in y&&y.prototype.render?n.__c=l=new y(m,w):(n.__c=l=new No(m,w),l.constructor=y,l.render=Vo),g&&g.sub(l),l.props=m,l.state||(l.state={}),l.context=w,l.__n=r,$=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=y.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=So({},l.__s)),So(l.__s,y.getDerivedStateFromProps(m,l.__s))),f=l.props,d=l.state,$)null==y.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,w),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,w)||n.__v===t.__v){l.props=m,l.state=l.__s,n.__v!==t.__v&&(l.__d=!1),l.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),l.__h.length&&s.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,w),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,d,h)}))}l.context=w,l.props=m,l.state=l.__s,(a=mo.__r)&&a(n),l.__d=!1,l.__v=n,l.__P=e,a=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=So(So({},r),l.getChildContext())),$||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,d)),_=null!=a&&a.type===Ao&&null==a.key?a.props.children:a,Oo(e,Array.isArray(_)?_:[_],n,t,r,o,i,s,u,c),l.base=n.__e,n.__h=null,l.__h.length&&s.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=function(e,n,t,r,o,i,s,u){var c,a,l,$=t.props,f=n.props,d=n.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&po.call(e.childNodes),a=($=t.props||bo).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(l||a)&&(l&&(a&&l.__html==a.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Fo(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]||Fo(e,i,n[i],t[i],r)}(e,f,$,o,u),l)n.__k=[];else if(h=n.props.children,Oo(e,Array.isArray(h)?h:[h],n,t,r,o&&"foreignObject"!==d,i,s,i?i[0]:t.__k&&To(t,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Eo(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h||"option"===d&&h!==$.value)&&Fo(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Fo(e,"checked",h,$.checked,!1))}return e}(t.__e,n,t,r,o,i,s,c);(a=mo.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),mo.__e(e,n,t)}}function Wo(e,n){mo.__c&&mo.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){mo.__e(e,n.__v)}}))}function zo(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){mo.__e(e,t)}}function qo(e,n,t){var r,o;if(mo.unmount&&mo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||zo(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){mo.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&qo(r[o],n,"function"!=typeof e.type);t||null==e.__e||Eo(e.__e),e.__e=e.__d=void 0}function Vo(e,n,t){return this.constructor(e,t)}function Zo(e,n,t){var r,o,i;mo.__&&mo.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],Ho(n,e=(!r&&t||n).__k=ko(Ao,null,[e]),o||bo,bo,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?po.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Wo(i,e)}function Jo(e,n){Zo(e,n,Jo)}function Xo(e,n,t){var r,o,i,s=So({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?po.call(arguments,2):t),Io(e.type,s,r||e.key,o||e.ref,null)}po=Co.slice,mo={__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}},go=0,No.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=So({},this.state),"function"==typeof e&&(e=e(So({},t),this.props)),e&&So(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),Do(this))},No.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Do(this))},No.prototype.render=Ao,wo=[],_o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mo.__r=0,vo=0;var Yo,Ko,Qo,ei=0,ni=[],ti=mo.__b,ri=mo.__r,oi=mo.diffed,ii=mo.__c,si=mo.unmount;function ui(e,n){mo.__h&&mo.__h(Ko,e,ei||n),ei=0;var t=Ko.__H||(Ko.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function ci(e){return ei=1,ai(_i,e)}function ai(e,n,t){var r=ui(Yo++,2);return r.t=e,r.__c||(r.__=[t?t(n):_i(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ko),r.__}function li(e,n){var t=ui(Yo++,3);!mo.__s&&wi(t.__H,n)&&(t.__=e,t.__H=n,Ko.__H.__h.push(t))}function $i(e,n){var t=ui(Yo++,4);!mo.__s&&wi(t.__H,n)&&(t.__=e,t.__H=n,Ko.__h.push(t))}function fi(e,n){var t=ui(Yo++,7);return wi(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function di(e,n){mo.useDebugValue&&mo.useDebugValue(n?n(e):e)}function hi(){for(var e;e=ni.shift();)if(e.__P)try{e.__H.__h.forEach(mi),e.__H.__h.forEach(gi),e.__H.__h=[]}catch(n){e.__H.__h=[],mo.__e(n,e.__v)}}mo.__b=function(e){Ko=null,ti&&ti(e)},mo.__r=function(e){ri&&ri(e),Yo=0;var n=(Ko=e.__c).__H;n&&(n.__h.forEach(mi),n.__h.forEach(gi),n.__h=[])},mo.diffed=function(e){oi&&oi(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==ni.push(n)&&Qo===mo.requestAnimationFrame||((Qo=mo.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),pi&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);pi&&(n=requestAnimationFrame(t))})(hi)),Ko=null},mo.__c=function(e,n){n.some((function(e){try{e.__h.forEach(mi),e.__h=e.__h.filter((function(e){return!e.__||gi(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],mo.__e(t,e.__v)}})),ii&&ii(e,n)},mo.unmount=function(e){si&&si(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{mi(e)}catch(e){n=e}})),n&&mo.__e(n,t.__v))};var pi="function"==typeof requestAnimationFrame;function mi(e){var n=Ko,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Ko=n}function gi(e){var n=Ko;e.__c=e.__(),Ko=n}function wi(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function _i(e,n){return"function"==typeof n?n(e):n}function yi(e,n){for(var t in n)e[t]=n[t];return e}function vi(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 bi(e){this.props=e}(bi.prototype=new No).isPureReactComponent=!0,bi.prototype.shouldComponentUpdate=function(e,n){return vi(this.props,e)||vi(this.state,n)};var Ci=mo.__b;mo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ci&&Ci(e)};var xi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Si(e){function n(n,t){var r=yi({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=xi,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Ei=function(e,n){return null==e?null:Uo(Uo(e).map(n))},ki={map:Ei,forEach:Ei,count:function(e){return e?Uo(e).length:0},only:function(e){var n=Uo(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Uo},Ii=mo.__e;mo.__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);Ii(e,n,t)};var Ai=mo.unmount;function Ni(){this.__u=0,this.t=null,this.__b=null}function Ti(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Pi(){this.u=null,this.o=null}mo.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Ai&&Ai(e)},(Ni.prototype=new No).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Ti(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=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(s,s)},Ni.prototype.componentWillUnmount=function(){this.t=[]},Ni.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=yi({},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&&ko(Ao,null,e.fallback);return o&&(o.__h=null),[ko(Ao,null,n.__e?null:e.children),o]};var Di=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 Mi(e){return this.getChildContext=function(){return e.context},e.children}function Oi(e){var n=this,t=e.i;n.componentWillUnmount=function(){Zo(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)}}),Zo(ko(Mi,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Pi.prototype=new No).__e=function(e){var n=this,t=Ti(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Di(n,e,r)):o()};t?t(i):i()}},Pi.prototype.render=function(e){this.u=null,this.o=new Map;var n=Uo(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},Pi.prototype.componentDidUpdate=Pi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Di(e,t,n)}))};var Ri="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ui=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|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]/,Bi="undefined"!=typeof document,Li=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};No.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(No.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Fi=mo.event;function ji(){}function Gi(){return this.cancelBubble}function Hi(){return this.defaultPrevented}mo.event=function(e){return Fi&&(e=Fi(e)),e.persist=ji,e.isPropagationStopped=Gi,e.isDefaultPrevented=Hi,e.nativeEvent=e};var Wi,zi={configurable:!0,get:function(){return this.class}},qi=mo.vnode;mo.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var s=t[i];Bi&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==s||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Li(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ui.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Uo(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Uo(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(zi.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",zi))}e.$$typeof=Ri,qi&&qi(e)};var Vi=mo.__r;mo.__r=function(e){Vi&&Vi(e),Wi=e.__c};function Zi(e){return!!e&&e.$$typeof===Ri}const Ji={useState:ci,useReducer:ai,useEffect:li,useLayoutEffect:$i,useRef:function(e){return ei=5,fi((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){ei=6,$i((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:fi,useCallback:function(e,n){return ei=8,fi((function(){return e}),n)},useContext:function(e){var n=Ko.context[e.__c],t=ui(Yo++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(Ko)),n.props.value):e.__},useDebugValue:di,version:"17.0.2",Children:ki,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Zo(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Jo(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Zo(null,e),!0)},createPortal:function(e,n){return ko(Oi,{__v:e,i:n})},createElement:ko,createContext:function(e,n){var t={__c:n="__cC"+vo++,__: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(Do)},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 ko.bind(null,e)},cloneElement:function(e){return Zi(e)?Xo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Ao,isValidElement:Zi,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:No,PureComponent:bi,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:vi(this.props,e)}function r(n){return this.shouldComponentUpdate=t,ko(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Si,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:Ao,Suspense:Ni,SuspenseList:Pi,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 ko(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return Wi.__n[e.__c].props.value}}}}},Xi=e=>{li(()=>{const n=e();return()=>{n.Dispose()}})},Yi=(e,n)=>{li(()=>{const n=e();return()=>{n.Dispose()}},n)},Ki=e=>{$i(()=>{const n=e();return()=>{n.Dispose()}})};function Qi(e,n,t,r){const o=Ji.memo(e,k(2,fe(I(2,t),null)));return Pr(n=>{e.displayName=n},$e(n)),e=>{const n=es(r,e);return Ji.createElement(o,n)}}function es(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function ns(e){return{Dispose(){e()}}}function ts(e){Xi(e)}function rs(e,n){Yi(e,n)}function os(e){ss(e,[])}function is(e){rs(e,[])}function ss(e,n){Yi(n=>(e(),ns(()=>{})),n)}function us(e,n){return Ji.useCallback(e,fe(n,[]))}function cs(e){return Ji.useRef(e)}function as(e,n){return Ji.useMemo(e,fe(n,[]))}function ls(e){const n=cs(e),t=us(e=>n.current(e),[]);var r;return r=()=>{n.current=e},Ki(e=>(r(),ns(()=>{}))),t}function $s(e){return Ji.useState(e)}function fs(e){}function ds(e){const n=new Br("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function hs(e){e.cancel()}function ps(e){return null!=e&&e.isCancelled}const ms=new Br;function gs(e){return jr(n=>e([n.onSuccess,n.onError,n.onCancel]))}function ws(e,n){return function(e,n){return _s(e,n)}(e,n)}function _s(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new Fr;e({onSuccess:n||fs,onError:t||fs,onCancel:r||fs,cancelToken:o||ms,trampoline:i})}class ys{constructor(e,n){this.k=e,this.v=n}}function vs(e,n){return new ys(e,n)}function bs(e){return e.k}function Cs(e){return e.v}class xs extends ys{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=o}}function Ss(e,n,t,r,o){return new xs(e,n,t,r,o)}function Es(e){return e.left}function ks(e){return e.right}function Is(e){return e.h}function As(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof xs){const o=i;n=e(r+1,Es(o)),t=ks(o);continue e}return r+1|0}return 0|r}}(0,e)}function Ns(e,n,t,r){let o,i,s;if(null!=e){const n=e;s=n instanceof xs?(o=n,Is(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof xs?(i=e,Is(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?vs(n,t):Ss(n,t,e,r,c+1)}function Ts(e,n,t,r){let o,i,s,u,c,a,l,$,f;if(null!=e){const n=e;f=n instanceof xs?(o=n,Is(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof xs?(i=e,Is(i)):1}else d=0;if(d>f+2){const o=le(r);if(o instanceof xs){const r=o;if(s=Es(r),(null!=s?(u=s,u instanceof xs?(c=u,Is(c)):1):0)>f+1){const o=le(Es(r));if(o instanceof xs){const i=o;return Ns(Ns(e,n,t,Es(i)),bs(i),Cs(i),Ns(ks(i),bs(r),Cs(r),ks(r)))}throw new Error("internal error: Map.rebalance")}return Ns(Ns(e,n,t,Es(r)),bs(r),Cs(r),ks(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=le(e);if(o instanceof xs){const e=o;if(a=ks(e),(null!=a?(l=a,l instanceof xs?($=l,Is($)):1):0)>d+1){const o=le(ks(e));if(o instanceof xs){const i=o;return Ns(Ns(Es(e),bs(e),Cs(e),Es(i)),bs(i),Cs(i),Ns(ks(i),n,t,r))}throw new Error("internal error: Map.rebalance")}return Ns(Es(e),bs(e),Cs(e),Ns(ks(e),n,t,r))}throw new Error("internal error: Map.rebalance")}return Ns(e,n,t,r)}function Ps(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,bs(o));if(o instanceof xs){const r=o;return i<0?Ts(Ps(e,n,t,Es(r)),bs(r),Cs(r),ks(r)):0===i?Ss(n,t,Es(r),ks(r),Is(r)):Ts(Es(r),bs(r),Cs(r),Ps(e,n,t,ks(r)))}return i<0?Ss(n,t,void 0,r,2):0===i?vs(n,t):Ss(n,t,r,void 0,2)}return vs(n,t)}function Ds(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,bs(s));if(0===u)return ae(Cs(s));if(s instanceof xs){const i=s;e=r,n=o,t=u<0?Es(i):ks(i);continue e}return}return}}function Ms(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof xs){const o=i;e(r,Es(o)),r(bs(o),Cs(o)),n=r,t=ks(o);continue e}r(bs(i),Cs(i))}break}}(e,n)}function Os(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof xs){const t=r,o=e(n,Es(t)),i=n(bs(t),Cs(t)),s=e(n,ks(t));return Ss(bs(t),i,o,s,Is(t))}return vs(bs(r),n(bs(r),Cs(r)))}}(e,n)}function Rs(e,n,t){let r=0|t;Ms((e,t)=>{n[r]=[e,t],r+=1},e)}function Us(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r],i=o[1];t=Ps(e,o[0],i,t)}return t}function Bs(e,n){if(r(n)){return Us(e,n)}if(n instanceof Bt){return function(e,n){return Yt((n,t)=>{const r=t[0],o=t[1];return Ps(e,r,o,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 s=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s[1];e=r,n=Ps(r,s[0],u,o),t=i}}}(e,void 0,t)}finally{t.Dispose()}}}class Ls extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Fs(e){e:for(;;){const n=e;if(qt(n))return Ht();{const t=Jt(n),r=Zt(n);if(null!=r){const o=r;if(o instanceof xs){const n=o;e=er([Es(n),vs(bs(n),Cs(n)),ks(n)],t);continue e}return n}e=t;continue e}}}function js(e){return new Ls(Fs(zt(e)),!1)}function Gs(e){if(e.started){const n=e.stack;if(qt(n))return function(){throw new Error("enumeration already finished")}();if(null!=Zt(n)){const e=Zt(n);if(e instanceof xs)throw new Error("Please report error: Map iterator, unexpected stack for current");return[bs(e),Cs(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Hs(e){let n=js(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Gs(n),"System.Collections.IEnumerator.get_Current":()=>Gs(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(qt(n))return!1;if(null!=Zt(n)){const t=Zt(n),r=Jt(n);if(t instanceof xs)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Fs(r),!qt(e.stack)}Jt(n);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!qt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=js(e)},Dispose(){}}}class Ws{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"](),o=e[1],i=e[0];t=n(t,g(i)),t=n(t,g(o))}}finally{r.Dispose()}return 0|t}(this)}Equals(e){if(!(e instanceof Ws))return!1;{const n=e,t=c(this);try{const e=c(n);try{const n=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&n()}return!0}return!1};return n()}finally{e.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+ot("; ",Dr(e=>nt("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Hs(this.tree)}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Hs(this.tree)}CompareTo(e){const n=this;if(e instanceof Ws){return 0|function(e,n,t){const r=yr(n);try{const n=yr(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=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:x(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!!Js(this,e[0])&&y(Vs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Rs(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Zs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Zs(this)}get size(){return 0|Zs(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Dr(e=>[e[0],e[1]],this)}get(e){return Vs(this,e)}has(e){return Js(this,e)}keys(){return Dr(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Dr(e=>e[1],this)}forEach(e,n){const t=this;Pr(n=>{e(n[1],n[0],t)},t)}}function zs(e,n){return new Ws(e,n)}function qs(e){const n=lr();return zs(n,Bs(n,e))}function Vs(e,n){return function(e,n,t){const r=Ds(e,n,t);if(null==r)throw new Error;return le(r)}(e.comparer,n,e.tree)}function Zs(e){return As(e.tree)}function Js(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,bs(s));if(s instanceof xs){const i=s;if(u<0){e=r,n=o,t=Es(i);continue e}if(0===u)return!0;e=r,n=o,t=ks(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function Xs(e,n,t){return function(e,n,t){return zs(e.comparer,Ps(e.comparer,n,t,e.tree))}(t,e,n)}function Ys(e,n){return function(e,n){return Ds(e.comparer,n,e.tree)}(n,e)}function Ks(e,n){return r=e,zs((t=n).comparer,Os(r,t.tree));var t,r}function Qs(){return Ws.empty}(()=>{const e=lr();Ws.empty=zs(e,void 0)})();class eu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function nu(e){return q("Feliz.UseDeferred.Deferred`1",[e],eu,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function tu(e,n){const t=cs(ds());is(()=>ns(()=>{hs(t.current)}));return ls(r=>{var o;ps(t.current)||ws((o=r,Wr.Delay(()=>Wr.TryWith(Wr.Delay(()=>(n(new eu(1)),Wr.Bind(e(o),e=>(n(new eu(2,e)),Wr.Zero())))),e=>{const t=e;return console.log(ae(t)),n(new eu(3,t)),Wr.Zero()}))),t.current)})}const ru=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",e=>{},e),window.removeEventListener("testPassiveEventSupport",e=>{})}}catch(e){}return!1})();function ou(e){return de(e=>e.passive&&!ru?{capture:e.capture,once:e.once,passive:!1}:e,e)}function iu(e){return n=e=>e.capture?{capture:!0}:void 0,null!=(t=e)?n(le(t)):void 0;var n,t}var su={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[be](){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)}}},uu="[big.js] ",cu=uu+"Invalid ",au=cu+"decimal places",lu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function $u(e,n){var t,r,o;if(0===n&&1/n<0)n="-0";else if(!lu.test(n+=""))throw Error(cu+"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=fu(e,hu.DP,hu.RM)}function fu(e,n,t,r){var o=e.c,i=e.e+n+1;if(i<o.length){if(1===t)r=o[i]>=5;else if(2===t)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===t){const e=o.findIndex((e,n)=>n>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==t)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-n,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(t<0||t>3||t!==~~t)throw Error("[big.js] Invalid rounding mode");return e}function du(e,n,t,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==t){if(t!==~~t||t<(3==n)||t>1e6)throw Error(3==n?cu+"precision":au);for(t=r-(e=new s(e)).e,e.c.length>++r&&fu(e,t,s.RM),2==n&&(r=e.e+t+1);e.c.length<r;)e.c.push(0)}if(o=e.e,t=(i=e.c.join("")).length,2!=n&&(1==n||3==n&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(t>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>t)for(o-=t;o--;)i+="0";else o<t&&(i=i.slice(0,o)+"."+i.slice(o));else t>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==n)?"-"+i:i}su.abs=function(){var e=new this.constructor(this);return e.s=1,e},su.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,a=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(n=s<0,c!=a)return c>a^n?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(a=s<i.length?i[s]:0))return c>a^n?1:-1;return 0},su.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,s=n.DP;if(s!==~~s||s<0||s>1e6)throw Error(au);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new n(0*i);var u,c,a,l,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,g=e,w=g.c=[],_=0,y=s+(g.e=t.e-e.e)+1;for(g.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(a=0;a<10;a++){if(u!=(m=p.length))l=u>m?1:-1;else for($=-1,l=0;++$<u;)if(o[$]!=p[$]){l=o[$]>p[$]?1:-1;break}if(!(l<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[_++]=l?a:++a,p[0]&&l?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==_||(w.shift(),g.e--),_>y&&fu(g,s,n.RM,void 0!==p[0]),g},su.eq=function(e){return!this.cmp(e)},su.gt=function(e){return this.cmp(e)>0},su.gte=function(e){return this.cmp(e)>-1},su.lt=function(e){return this.cmp(e)<0},su.lte=function(e){return this.cmp(e)<1},su.minus=su.sub=function(e){var n,t,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var a=s.c.slice(),l=s.e,$=e.c,f=e.e;if(!a[0]||!$[0])return $[0]?(e.s=-c,e):new i(a[0]?s:0);if(u=l-f){for((o=u<0)?(u=-u,r=a):(f=l,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(t=((o=a.length<$.length)?a:$).length,u=c=0;c<t;c++)if(a[c]!=$[c]){o=a[c]<$[c];break}if(o&&(r=a,a=$,$=r,e.s=-e.s),(c=(t=$.length)-(n=a.length))>0)for(;c--;)a[n++]=0;for(c=n;t>u;){if(a[--t]<$[t]){for(n=t;n&&!a[--n];)a[n]=9;--a[n],a[t]+=10}a[t]-=$[t]}for(;0===a[--c];)a.pop();for(;0===a[0];)a.shift(),--f;return a[0]||(e.s=1,a=[f=0]),e.c=a,e.e=f,e},su.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)))},su.plus=su.add=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,u=r.c,c=e.e,a=e.c;if(!u[0]||!a[0])return a[0]?e:new t(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,n=a):(o=-o,n=u),n.reverse();o--;)n.push(0);n.reverse()}for(u.length-a.length<0&&(n=a,a=u,u=n),o=a.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+a[o]+i)/10|0;for(i&&(u.unshift(i),++c),o=u.length;0===u[--o];)u.pop();return e.c=u,e.e=c,e},su.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(cu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},su.round=function(e,n){var t=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(au);return fu(new t(this),e,void 0===n?t.RM:n)},su.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(uu+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+s&1||(n+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(n))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{t=e,e=u.times(t.plus(o.div(t)))}while(t.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return fu(e,r.DP-=4,r.RM)},su.times=su.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,a=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new t(0*e.s);for(e.e=c+a,s<u&&(n=o,o=i,i=n,a=s,s=u,u=a),n=new Array(a=s+u);a--;)n[a]=0;for(c=u;c--;){for(u=0,a=s+c;a>c;)u=n[a]+i[c]*o[a-c-1]+u,n[a--]=u%10,u=u/10|0;n[a]=(n[a]+u)%10}for(u?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},su.toExponential=function(e){return du(this,1,e,e)},su.toFixed=function(e){return du(this,2,e,this.e+e)},su.toPrecision=function(e){return du(this,3,e,e-1)},su.toString=function(){return du(this)},su.valueOf=su.toJSON=function(){return du(this,4)};var hu=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);t instanceof n?(r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if((e=fu(e,28,0)).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)):$u(r,t),r.constructor=n}return n.prototype=su,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.version="5.2.2",n}(),pu=hu;new pu(0),new pu(1),new pu(-1),new pu("79228162514264337593543950335"),new pu("-79228162514264337593543950335");function mu(e,n){return 0===n.indexOf(e)?n:void 0}function gu(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 wu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s,u;return n=mu("/",e),null!=n?(t=n,"#"+t):(r=mu("#/",e),null!=r?(o=r,o):(i=mu("#",e),null!=i?(s=i,"#/"+ut(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let n,t,r;return n=mu("/",e),null!=n?(t=n,t):(r=e,"/"+r)}}(n)(ot("/",ir(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function _u(e,n,t){1===n?history.pushState(void 0,"",wu(e,t)):history.replaceState(void 0,"",wu(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function yu(e,n){return function(e,n){const t=new Bt(null,void 0);let r=t,o=n;for(;null!=o.tail;){let n=e(jt(o));for(;null!=n.tail;){const e=r,t=new Bt(jt(n),void 0);e.tail=t,r=t,n=Gt(n)}o=Gt(o)}const i=r,s=new Bt(null,void 0);return i.tail=s,Gt(t)}(e=>{if(rt(e))return Ht();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+Hn(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return Ht();if(null!=mu("?",n))return zt(n);{const e=n.split("?");if(Ot(0,e,null)||1!==e.length){if(Ot(0,e,null)||2!==e.length)return Ht();if(""===e[1]){const n=e[0];return zt(decodeURIComponent(n))}{const n=e[0],t=e[1];return nr([decodeURIComponent(n),"?"+t])}}{const n=e[0];return zt(decodeURIComponent(n))}}}},nr(st(null!=mu("#",e)?ut(e,1,e.length-1):1===n&&(null!=gu("#",e)||null!=gu("#/",e))?"":e,["/"],null,0)))}const vu=Qi(e=>{const n=ls(n=>{const t=fe(e.onUrlChanged,e=>{});return function(e,n,t){return n(yu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|fe(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=as(()=>ou(r),[r]),i=as(()=>iu(r),[r]),s=as(()=>e=>{t(e)},[t]);ts(ls(()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ns(()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}})}))}else{const e="popstate",t=n,r=void 0,o=as(()=>ou(r),[r]),i=as(()=>iu(r),[r]),s=as(()=>e=>{t(e)},[t]);ts(ls(()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ns(()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}})}))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=as(()=>ou(void 0),[void 0]),i=as(()=>iu(void 0),[void 0]),s=as(()=>e=>{r(e)},[r]);ts(ls(()=>{if(null==o)window.addEventListener(t,s);else{const e=o;window.addEventListener(t,s,e)}return ns(()=>{if(null==i)window.removeEventListener(t,s);else{const e=i;window.removeEventListener(t,s,e)}})}));const u=e.application;return null==u?null:u},void 0,Cu,bu);var bu,Cu;class xu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Su extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function Eu(e){return 0===e.tag?new Su(1):new Su(0)}class ku extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Iu=new ku(0,new xu(1),new Su(0));function Au(e){return e.fields[0]}function Nu(e){return e.fields[1]}function Tu(e,n){const t=n.fields[0],r=n.fields[1],o=[e,t];return 1===o[0].tag?1===o[1].tag?new ku(0,new xu(1),Eu(r)):new ku(0,new xu(1),new Su(0)):0===o[1].tag?new ku(0,new xu(0),Eu(r)):new ku(0,new xu(0),new Su(0))}class Pu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Du=new Pu(0,"");function Mu(e){return e.fields[0]}class Ou extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ru(e){return 0|(0|e.fields[0])}class Uu extends U{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Bu extends U{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Lu(){return z("AccountRegistry.AdminUI.Types.Partner",[],Bu,()=>[["StreamId",ht()],["Name",q("BasicModels.Name",[],mt,()=>[[["Item",X]]])],["Website",q("BasicModels.Website",[],gt,()=>[[["Item",X]]])],["ContactDetails",z("BasicModels.ContactDetails",[],bt,()=>[["FirstName",q("BasicModels.FirstName",[],wt,()=>[[["Item",X]]])],["LastName",q("BasicModels.LastName",[],_t,()=>[[["Item",X]]])],["Email",q("BasicModels.Email",[],yt,()=>[[["Item",X]]])],["MobilePhone",q("BasicModels.MobilePhone",[],vt,()=>[[["Item",X]]])]])],["Notes",V(q("BasicModels.Notes",[],Ct,()=>[[["Item",X]]]))]])}function Fu(e){return Vr(0,()=>me(n=>{const t=n;return me(n=>{const r=n;return Zr(0,to(e.ContactDetails),n=>{const o=n;return new Bu(new dt(0,e.StreamId),t,r,o,de(e=>new Ct(0,e),e.Notes))})},pe(e=>new gt(0,e),Rr("Website",e.Website)))},pe(e=>new mt(0,e),Rr("Name",e.Name))))()}class ju extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","NotFound"]}}function Gu(){return q("AccountRegistry.AdminUI.Types.Page",[],ju,()=>[[],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[]])}function Hu(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h;switch(qt(e)?n=10:"account-registry"===Zt(e)?qt(Jt(e))?n=10:"partners"===Zt(Jt(e))?qt(Jt(Jt(e)))?n=0:qt(Jt(Jt(Jt(e))))?(n=1,t=Zt(Jt(Jt(e)))):"accounts"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=2,r=Zt(Jt(Jt(e)))):qt(Jt(Jt(Jt(Jt(Jt(e))))))?(n=6,u=Zt(Jt(Jt(Jt(Jt(e))))),c=Zt(Jt(Jt(e)))):"super-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))?qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=7,a=Zt(Jt(Jt(Jt(Jt(e))))),l=Zt(Jt(Jt(e)))):n=10:"benefits-onboarding-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))?qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=8,$=Zt(Jt(Jt(Jt(Jt(e))))),f=Zt(Jt(Jt(e)))):n=10:"bank-details-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))&&qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=9,d=Zt(Jt(Jt(Jt(Jt(e))))),h=Zt(Jt(Jt(e)))):n=10:"super-configuration"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=3,o=Zt(Jt(Jt(e)))):n=10:"benefits-onboarding-configuration"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=4,i=Zt(Jt(Jt(e)))):n=10:"bank-details-configuration"===Zt(Jt(Jt(Jt(e))))&&qt(Jt(Jt(Jt(Jt(e)))))?(n=5,s=Zt(Jt(Jt(e)))):n=10:n=10:n=10,n){case 0:return new ju(0);case 1:return new ju(1,new xt(0,t));case 2:return new ju(2,new xt(0,r));case 3:return new ju(3,new xt(0,o));case 4:return new ju(4,new xt(0,i));case 5:return new ju(5,new xt(0,s));case 6:return new ju(6,new xt(0,c),new Et(0,u));case 7:return new ju(7,new xt(0,l),new Et(0,a));case 8:return new ju(8,new xt(0,f),new Et(0,$));case 9:return new ju(9,new xt(0,h),new Et(0,d));case 10:return new ju(10)}}function Wu(e){switch(e.tag){case 1:return nr(["account-registry","partners",oo(e.fields[0])]);case 2:return nr(["account-registry","partners",oo(e.fields[0]),"accounts"]);case 3:return nr(["account-registry","partners",oo(e.fields[0]),"super-configuration"]);case 4:return nr(["account-registry","partners",oo(e.fields[0]),"benefits-onboarding-configuration"]);case 5:return nr(["account-registry","partners",oo(e.fields[0]),"bank-details-configuration"]);case 6:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t)])}case 7:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"super-configuration"])}case 8:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"benefits-onboarding-configuration"])}case 9:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"bank-details-configuration"])}default:return nr(["account-registry","partners"])}}function zu(e){switch(e.tag){case 1:{const n=["account-registry","partners",oo(e.fields[0])];return zt(e=>{_u(nr(n),1,1)})}case 2:{const n=["account-registry","partners",oo(e.fields[0]),"accounts"];return zt(e=>{_u(nr(n),1,1)})}case 3:{const n=["account-registry","partners",oo(e.fields[0]),"super-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 4:{const n=["account-registry","partners",oo(e.fields[0]),"benefits-onboarding-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 5:{const n=["account-registry","partners",oo(e.fields[0]),"bank-details-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 6:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t)];return zt(e=>{_u(nr(r),1,1)})}case 7:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"super-configuration"];return zt(e=>{_u(nr(r),1,1)})}case 8:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"benefits-onboarding-configuration"];return zt(e=>{_u(nr(r),1,1)})}case 9:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"bank-details-configuration"];return zt(e=>{_u(nr(r),1,1)})}default:{const e=["account-registry","partners"];return zt(n=>{_u(nr(e),1,1)})}}}class qu extends U{constructor(e){super(),this.Partners=e}}function Vu(){return z("AccountRegistry.AdminUI.Types.Data",[],qu,()=>[["Partners",Z(Lu())]])}function Zu(){return Ht()}function Ju(e){return zt(e)}class Xu extends U{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Yu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Yu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}In(2013265921,0,!1),In(2013265921,0,!0);Pt(28,e=>Yu(2,e),Int32Array);function Ku(e){return e.bound}function Qu(e,n){return e.digits[n]}function ec(e,n){return Tn(Qu(e,n),!1,2)}function nc(e,n,t){e.digits[n]=t}function tc(e,n){for(;;){const t=e,r=n;if(0===r)return In(1,0,!1);if(r%2!=0)return bn(t,tc(bn(t,t),~~(r/2)));e=bn(t,t),n=~~(r/2)}}function rc(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*rc(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const oc=In(16777216,0,!1),ic=In(16777215,0,!1);In(16777215,0,!0);function sc(e){return new Xu(e,new Int32Array(e))}function uc(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=n,e}function cc(e){const n=0|(e<0?0:e);if(n<16777216){const e=sc(1);return e.digits[0]=n,uc(e)}{const e=sc(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/rc(16777216,t))%16777216;return uc(e)}}const ac=cc(1),lc=cc(0);function $c(e){return e.bound-1}function fc(e){return 0===e.bound}function dc(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 hc(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 pc(e,n){return-1===hc(e,n)}function mc(e,n,t){for(;;){const r=e,o=n,i=t;if(!(kn(o,In(0,0,!1))>0))break;{const s=vn(ec(r,i),o);nc(r,i,~~An(En(s,ic))),e=r,n=Cn(s,oc),t=i+1}}}function gc(e,n){const t=0|Ku(e),r=sc(t+1|0),o=Tn(n,!1,2);let i=In(0,0,!1);for(let n=0;n<=t-1;n++){const t=vn(vn(i,ec(r,n)),bn(ec(e,n),o));nc(r,n,~~An(En(t,ic))),i=Cn(t,oc)}return mc(r,i,t),uc(r)}function wc(e,n){const t=1===Ku(e),r=1===Ku(n);return t&&r?function(e,n){const t=sc(2),r=bn(Tn(e,!1,2),Tn(n,!1,2));return nc(t,0,~~An(En(r,ic))),nc(t,1,~~An(Cn(r,oc))),uc(t)}(Qu(e,0),Qu(n,0)):t?gc(n,Qu(e,0)):r?gc(e,Qu(n,0)):function(e,n){const t=sc(e.bound+n.bound|0),r=t.digits,o=e.digits,i=n.digits;for(let s=0;s<=e.bound-1;s++){const e=Tn(o[s],!1,2);let u=In(0,0,!1),c=0|s;for(let t=0;t<=n.bound-1;t++){const n=Tn(i[t],!1,2),o=vn(vn(Tn(r[c],!1,2),u),bn(e,n));r[c]=~~An(En(o,ic)),u=Cn(o,oc),c+=1}mc(t,u,c)}return uc(t)}(e,n)}class _c extends U{constructor(e,n,t,r,o,i,s){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=s}}function yc(e,n,t,r){return new _c(e,rc(2,e),n,t,r,~~(24/e),Pt(~~(24/e),n=>rc(2,e*n),Int32Array))}const vc=[yc(1,28,268435456,268435456),yc(2,26,67108864,134217728),yc(3,24,16777216,50331648),yc(4,22,4194304,16777216),yc(5,20,1048576,5242880),yc(6,18,262144,1572864),yc(7,16,65536,458752),yc(8,14,16384,131072),yc(9,12,4096,36864),yc(10,10,1024,10240),yc(11,8,256,2816),yc(12,6,64,768),yc(13,4,16,208)];Pt(24,e=>rc(2,e)-1,Int32Array),Pt(24,e=>rc(2,e),Int32Array),Pt(24,e=>tc(In(2,0,!1),e));vc[0].bigN;function bc(e,n){return wc(e,n)}function Cc(e,n,t,r){const o=e,i=[e.digits,$c(e)],s=0|i[1],u=i[0],c=[t.digits,$c(t)],a=0|c[1],l=c[0],$=Tn(n,!1,2);let f=0,d=bn($,Tn(l[0],!1,2));for(;kn(d,In(0,0,!1))>0||f<a;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~An(En(d,ic)),n=Cn(d,oc);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),n=vn(n,In(1,0,!1))),d=f<a?vn(n,bn($,Tn(l[f+1],!1,2))):n,f+=1}uc(o)}function xc(e,n,t,r){const o=e,i=[e.digits,$c(e)],s=0|i[1],u=i[0],c=[t.digits,$c(t)],a=0|c[1],l=c[0],$=Tn(n,!1,2);let f=0,d=bn($,Tn(l[0],!1,2));for(;kn(d,In(0,0,!1))>0||f<a;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~An(En(d,ic)),n=Cn(d,oc);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),n=vn(n,In(1,0,!1))),d=f<a?vn(n,bn($,Tn(l[f+1],!1,2))):n,f+=1}uc(o)}function Sc(e,n,t){const r=[$c(n),$c(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],l=r[1],$=r[0];let f;if(0===i)if(o===t)f=~~(l[t]/$[0]);else{const e=Cn(vn(bn(Tn(l[o],!1,2),oc),Tn(l[o-1],!1,2)),Tn($[0],!1,2));f=~~An(e)}else if(o===i+t)f=~~(l[o]/($[i]+1));else{const e=Cn(vn(bn(Tn(l[o],!1,2),oc),Tn(l[o-1],!1,2)),vn(Tn($[i],!1,2),In(1,0,!1)));f=~~An(e)}if(0===f){return 1!=(u=t,c=e,a=0,(s=n).bound+u<c.bound+a?-1:s.bound+u>c.bound+u?1:0|((e,n,t)=>{e:for(;;){const r=e,o=n,i=t;if(-1===i)return 0;{const s=0|(i<u?0:r[i-u]),c=0|(i<a?0:o[i-a]);if(s===c){e=r,n=o,t=i-1;continue e}return s<c?-1:1}}})(s.digits,c.digits,s.bound+u-1))?1:0}return 0|f}var s,u,c,a}function Ec(e,n){if(fc(n))throw new Error;if($c(e)<$c(n))return[lc,e];{const t=function(e){return new Xu(e.bound,e.digits.slice())}(e),r=sc($c(e)-$c(n)+1+1);let o=0|$c(e);const i=0|$c(n);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,t,s,o]);const e=0|Sc(t,n,s);e>0?(Cc(t,e,n,s),xc(r,e,ac,s),u([r,t,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,t,s-1,o]),s-=1):(u([r,t,s-1,o-1]),s-=1,o-=1)))}return[uc(r),uc(t)]}}cc(2);function kc(e){return cc(e)}function Ic(e){return function(e){const n=kn(e,In(0,0,!1))<0?In(0,0,!1):e,t=sc(3);for(let e=0;e<=2;e++)t.digits[e]=~~An(xn(Cn(n,tc(oc,e)),oc));return uc(t)}(e)}function Ac(e){const n=0|$c(e),t=((e,t,r)=>{for(;;){const o=e,i=t,s=r;if($c(s)>n)return Wt([i,s],o);e=Wt([i,s],o),t=i+1,r=bc(s,s)}})(Ht(),0,cc(10)),r=(e,n,t,o)=>{if(qt(o)){const r=0|function(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;return 0|n}}(t);return e&&0===r?n:Wt(f(r),n)}{const i=Zt(o)[1],s=Jt(o),u=Ec(t,i),c=u[1],a=u[0];if(e&&fc(a)){return r(e,n,c,s)}{const t=r(!1,n,c,s);return r(e,t,a,s)}}},o=t,i=r(!0,Ht(),e,o);return qt(i)?"0":ot("",Xt(i))}function Nc(e){return e.bound<=1}function Tc(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class Pc extends U{constructor(e,n){super(),this.signInt=e,this.v=n}toString(){const e=this;switch(0|Oc(e)){case-1:return fc(Rc(e))?"0":"-"+Ac(Rc(e));case 0:return"0";case 1:return Ac(Rc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof Pc){return Uc(this,e)}return!1}GetHashCode(){return 0|(0===Oc(e=this)?1:Oc(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3);return 0|n}(Rc(e))|0);var e}CompareTo(e){if(e instanceof Pc){return 0|function(e,n){return Bc(e,n)?-1:Uc(e,n)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function Dc(e,n){return new Pc(e,n)}function Mc(e){return Nc(e)&&Tc(e)<Pc.smallLim?Pc.smallPosTab[Tc(e)]:e}function Oc(e){return e.signInt}function Rc(e){return e.v}function Uc(e,n){const t=[Oc(e),Oc(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 dc(Rc(e),Rc(n));case 2:case 3:return!!fc(Rc(e))&&fc(Rc(n));case 4:return!0;case 5:case 6:return fc(Rc(n));case 7:case 8:return fc(Rc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Bc(e,n){const t=[Oc(e),Oc(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 pc(Rc(e),Rc(n));case 1:return pc(Rc(n),Rc(e));case 2:return!1;case 3:return!fc(Rc(e))||!fc(Rc(n));case 4:return!1;case 5:return!fc(Rc(n));case 6:case 7:return!1;case 8:return!fc(Rc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Lc(e){return e>=0?Dc(1,Mc(kc(e))):Dc(-1,Mc(-2147483648===e?Ic(Sn(Tn(e,!1,2))):kc(ve(e))))}function Fc(){return Pc.one}function jc(){return Pc.two}function Gc(){return Pc.zero}Pc.smallLim=4096,Pc.smallPosTab=Pt(Pc.smallLim,e=>kc(e)),Pc.one=Lc(1),Pc.two=Lc(2),Pc.zero=Lc(0);Gc(),Fc(),jc();Gc(),Fc();class Hc{constructor(){}}function Wc(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(y(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 zc=new Hc;class qc extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Vc{constructor(e){this.state=new qc(0,Nt(new Array(S((e,n)=>b(e,n),e,10)),0,S((e,n)=>b(e,n),e,10),null),0)}}function Zc(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 qc(0,o,t):new qc(1,o,t,i),ae(o[r])}}function Jc(e,n,t){const r=cs(e[0]),o=cs(new Vc(10));const s=$s(e[0]),u=s[1],c=s[0];let a;const l=cs(ds()),$=cs(l.current);is(()=>ns(()=>{hs(l.current)})),a=$;const f=()=>{setTimeout(()=>{let e;e=a.current,ps(e)||u(r.current)},0)},d=e=>{var t;(t=Wc(0,()=>{let t=ae(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(zc,()=>{let e;return null!=t&&(e=a.current,!ps(e))},Wc(0,()=>{const e=le(t),i=n(e,r.current),s=i[0];return Qt(e=>{e(d)},i[1]),t=Zc(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},h=ls(d);var p;return rs(()=>ns(()=>{let e,n;Pr(e=>{e.Dispose()},$e((e=r.current,i(e)?(n=e,n):void 0)))}),t),ss(()=>{r.current=e[0],f(),Qt(e=>{e(h)},e[1])},t),p=()=>{Pr(h,$e(Zc(o.current)))},Xi(e=>(p(),ns(()=>{}))),[c,h]}function Xc(e,n,t){return Jc(as(e,t),n,t)}class Yc{constructor(){}}function Kc(e,n){return Wr.Delay(n)}new Yc;class Qc extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ea extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class na extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ta extends U{constructor(e,n,t,r,o,i,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class ra extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class oa 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 ia=new ta("",new Qc(0),Ht(),!1,void 0,void 0,new na(0));new oa(0,"","",Qs(),new ra(0,""));function sa(e,n){return tt(n)?[n]:st(n,[e],null,0)}function ua(e){return new ta(e,ia.method,ia.headers,ia.withCredentials,ia.overridenMimeType,ia.overridenResponseType,ia.content)}function ca(e,n){return new ta(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function aa(e,n){return new ta(n.url,n.method,rr(n.headers,zt(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function la(e){return gs(n=>{const t=n[0],r=(n[1],new XMLHttpRequest);r.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),r.onreadystatechange=()=>{let e,n,o,i,s,u;4===r.readyState&&t((n=r.responseType,e=""===n||"text"===n?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new ra(0,r.responseText):new ra("arraybuffer"===u?2:"blob"===u?1:3,r.response),new oa(o,e,i,function(e){const n=lr();return zs(n,Us(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=le(o);r.push(e)}}return"function"==typeof t?Tt(e=>e,r,t):r}(e=>{const n=nr(sa(":",e));if(!qt(n)){const e=Jt(n);return[Zt(n).toLocaleLowerCase(),ot(":",e).trim()]}},sa("\r\n",r.getAllResponseHeaders()))),s)))};const o=c(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"](),n=e.fields[1],t=e.fields[0];r.setRequestHeader(t,n)}}finally{o.Dispose()}r.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;r.overrideMimeType(e)}const s=e.overridenResponseType;null==s||(1===s.tag?r.responseType="blob":2===s.tag?r.responseType="arraybuffer":r.responseType="text");const u=[e.method,e.content];if(0===u[0].tag)r.send(ae(void 0));else if(1===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else if(3===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else if(2===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else r.send(ae(void 0))})}function $a(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(qt(i))return r;{const s=Jt(i),u=Zt(i),c=Vr(0,()=>me(e=>{const n=e;return Zr(0,r,e=>rr(e,zt(n)))},o(u)))();if(1===c.tag)return c;e=c,n=o,t=s;continue e}}}(new he(0,Ht()),e,n)}const fa=0,da=1,ha=2,pa=3,ma=4;function ga(e,n){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase())}function wa(e,n=fa){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case da:return e.charAt(0).toLowerCase()+e.slice(1);case ha:return ga(e,"_");case pa:return ga(e,"_").toUpperCase();case ma:return ga(e,"-");case fa:default:return e}}(e,n),t[e]=r}for(let n of e){let e=fa;if(null==n&&o(n),n instanceof T){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}class _a extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ya extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class va{constructor(){this.cache=new Map([])}}function ba(){return new va}ba(),ba();function Ca(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function xa(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Gn(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 s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=Wn(e,s),c=Wn.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Ca(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Ca(n)}}function Sa(e,n){const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function Ea(e,n){try{return n.contents=function(e){const n=Fn(e),t=Pn.exec(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t[0]?0:36e5*parseInt(t[1],10)+6e4*parseInt(t[2],10);return Sa(n.getTime(),r)}(e),!0}catch(e){return!1}}function ka(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ia(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 Ia(e){return Nn(Cn(e,1e4))}function Aa(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 ka(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,s=+n[4],u=+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*ka(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Na{constructor(e){this.k=e}}function Ta(e){return new Na(e)}function Pa(e){return e.k}class Da extends Na{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=r}}function Ma(e,n,t,r){return new Da(e,n,t,r)}function Oa(e){return e.left}function Ra(e){return e.right}function Ua(e){return e.h}function Ba(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof Da){const r=i;n=Oa(r),t=e(Ra(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function La(e,n,t){let r,o,i;if(null!=e){const n=e;i=n instanceof Da?(r=n,Ua(r)):1}else i=0;let s;if(null!=t){const e=t;s=e instanceof Da?(o=e,Ua(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?Ta(n):Ma(n,e,t,u+1)}function Fa(e,n,t){let r,o,i,s,u,c,a,l,$;if(null!=e){const n=e;$=n instanceof Da?(r=n,Ua(r)):1}else $=0;let f;if(null!=t){const e=t;f=e instanceof Da?(o=e,Ua(o)):1}else f=0;if(f>$+2){const r=le(t);if(r instanceof Da){const t=r;if(i=Oa(t),(null!=i?(s=i,s instanceof Da?(u=s,Ua(u)):1):0)>$+1){const r=le(Oa(t));if(r instanceof Da){const o=r;return La(La(e,n,Oa(o)),Pa(o),La(Ra(o),Pa(t),Ra(t)))}throw new Error("internal error: Set.rebalance")}return La(La(e,n,Oa(t)),Pa(t),Ra(t))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=le(e);if(r instanceof Da){const e=r;if(c=Ra(e),(null!=c?(a=c,a instanceof Da?(l=a,Ua(l)):1):0)>f+1){const r=le(Ra(e));if(r instanceof Da){const o=r;return La(La(Oa(e),Pa(e),Oa(o)),Pa(o),La(Ra(o),n,t))}throw new Error("internal error: Set.rebalance")}return La(Oa(e),Pa(e),La(Ra(e),n,t))}throw new Error("internal error: Set.rebalance")}return La(e,n,t)}function ja(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,Pa(r));if(r instanceof Da){const i=r;return o<0?Fa(ja(e,n,Oa(i)),Pa(i),Ra(i)):0===o?t:Fa(Oa(i),Pa(i),ja(e,n,Ra(i)))}{const o=0|e.Compare(n,Pa(r));return o<0?Ma(n,void 0,t,2):0===o?t:Ma(n,t,void 0,2)}}return Ta(n)}function Ga(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Pa(s));if(s instanceof Da){const i=s;if(u<0){e=r,n=o,t=Oa(i);continue e}if(0===u)return!0;e=r,n=o,t=Ra(i);continue e}return 0===u}return!1}}function Ha(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof Da){const r=o;Ha(t,Oa(r)),t(Pa(r)),e=t,n=Ra(r);continue e}t(Pa(o))}break}}class Wa extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function za(e){e:for(;;){const n=e;if(qt(n))return Ht();{const t=Zt(n),r=Jt(n);if(null!=t){const o=t;if(o instanceof Da){const n=o;e=er([Oa(n),Ta(Pa(n)),Ra(n)],r);continue e}return n}e=r;continue e}}}function qa(e){return new Wa(za(zt(e)),!1)}function Va(e){if(e.started){const n=e.stack;if(qt(n))return function(){throw new Error("Enumeration already started")}();if(null!=Zt(n)){return Pa(Zt(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Za(e){let n=qa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Va(n),"System.Collections.IEnumerator.get_Current":()=>Va(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(qt(n))return!1;if(null!=Zt(n)){const t=Jt(n);if(Zt(n)instanceof Da)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=za(t),!qt(e.stack)}Jt(n);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!qt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=qa(e)},Dispose(){}}}function Ja(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,s=[o,i];if(qt(s[0]))return qt(s[1])?0:-1;if(qt(s[1]))return 1;if(null!=Zt(s[1]))if(null!=Zt(s[0])){const u=Jt(s[0]),c=Jt(s[1]),a=Zt(s[0]),l=Zt(s[1]);if(a instanceof Da){const s=a;if(null==Oa(s)){if(!(l instanceof Da)){const o=0|r.Compare(Pa(s),Pa(l));if(0!==o)return 0|o;e=r,n=Wt(Ra(s),u),t=Wt(void 0,c);continue e}{const a=l;if(null==Oa(a)){const o=0|r.Compare(Pa(s),Pa(a));if(0!==o)return 0|o;e=r,n=Wt(Ra(s),u),t=Wt(Ra(a),c);continue e}{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(l instanceof Da)){const o=0|r.Compare(Pa(a),Pa(l));if(0!==o)return 0|o;e=r,n=u,t=c;continue e}{const s=l;if(null==Oa(s)){const o=0|r.Compare(Pa(a),Pa(s));if(0!==o)return 0|o;e=r,n=Wt(void 0,u),t=Wt(Ra(s),c);continue e}{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{Jt(s[0]),Jt(s[1]),Zt(s[1]);const u=[o,i];let c,a,l,$,f;switch(qt(u[0])?qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2:null!=Zt(u[0])?(c=0,a=Jt(u[0]),l=Zt(u[0])):qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2,c){case 0:if(l instanceof Da){const o=l;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],a),t=i;continue e}e=r,n=er([void 0,Ta(Pa(l))],a),t=i;continue e;case 1:if(f instanceof Da){const i=f;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],$);continue e}e=r,n=o,t=er([void 0,Ta(Pa(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Zt(s[0])){e=r,n=Jt(s[0]),t=Jt(s[1]);continue e}{Jt(s[0]),Jt(s[1]),Zt(s[0]);const u=[o,i];let c,a,l,$,f;switch(qt(u[0])?qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2:null!=Zt(u[0])?(c=0,a=Jt(u[0]),l=Zt(u[0])):qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2,c){case 0:if(l instanceof Da){const o=l;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],a),t=i;continue e}e=r,n=er([void 0,Ta(Pa(l))],a),t=i;continue e;case 1:if(f instanceof Da){const i=f;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],$);continue e}e=r,n=o,t=er([void 0,Ta(Pa(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,zt(n),zt(t))}function Xa(e,n,t){let r=0|t;Ha(e=>{n[r]=e,r+=1},e)}function Ya(e,n){return Dt((n,t)=>ja(e,t,n),void 0,n)}function Ka(e,n){if(r(n)){return Ya(e,n)}if(n instanceof Bt){return function(e,n){return Yt((n,t)=>ja(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=ja(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{t.Dispose()}}}class Qa{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"]();r=n,o=g(e),n=(r<<1)+o+631}}finally{t.Dispose()}var r,o;return 0|Math.abs(n)}(this)}Equals(e){let n;return e instanceof Qa&&(n=e,0===Ja(nl(this),tl(this),tl(n)))}toString(){return"set ["+ot("; ",Dr(e=>N(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Ja(nl(this),tl(this),tl(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 Ga(nl(this),e,tl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Xa(tl(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|rl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|rl(this)}GetEnumerator(){return Za(tl(this))}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Za(tl(this))}get size(){return 0|rl(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 ol(this,e)}keys(){return Dr(e=>e,this)}values(){return Dr(e=>e,this)}entries(){return Dr(e=>[e,e],this)}forEach(e,n){const t=this;Pr(n=>{e(n,n,t)},t)}}function el(e,n){return new Qa(e,n)}function nl(e){return e.comparer}function tl(e){return e.tree}function rl(e){return Ba(tl(e))}function ol(e,n){return Ga(nl(e),n,tl(e))}function il(e,n){return el(n,Ka(n,e))}function sl(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 ul(e,n){let t;switch(n.tag){case 2:{const e=n.fields[1];t=sl(n.fields[0],e,!0);break}case 1:{const e=n.fields[1],r=n.fields[2];t=sl(n.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=n.fields[1];t=sl(n.fields[0],e,!0);break}case 4:{const e=n.fields[1],r=n.fields[0],o=n.fields[2];t=sl(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=n.fields[1];t="Expecting "+n.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:t="The following errors were found:\n\n"+ot("\n\n",n.fields[0]);break;case 6:t="The following `failure` occurred with the decoder: "+n.fields[0];break;default:{const e=n.fields[1];t=sl(n.fields[0],e,!1)}}return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function cl(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new he(1,ul(e[0],e[1]))}{const e=r.fields[0];return new he(0,e)}}function al(e,n){let t;try{return cl("$",e,JSON.parse(n))}catch(e){if(t=e,t instanceof SyntaxError){return new he(1,"Given an invalid JSON: "+e.message)}throw e}}const ll=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 he(0,(e+128&255)-128):new he(1,[t,new _a(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new he(1,[t,new _a(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!1,8,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[t,new _a(0,"a sbyte",r)])}return new he(1,[t,new _a(0,"a sbyte",r)])},$l=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 he(0,255&e):new he(1,[t,new _a(1,"a byte",e,"Value was either too large or too small for a byte")]):new he(1,[t,new _a(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!0,8,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[t,new _a(0,"a byte",r)])}return new he(1,[t,new _a(0,"a byte",r)])},fl=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 he(0,(e+32768&65535)-32768):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!1,16,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])},dl=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 he(0,65535&e):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!0,16,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])},hl=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 he(0,~~e):new he(1,[t,new _a(1,"an int",e,"Value was either too large or too small for an int")]):new he(1,[t,new _a(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!1,32,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[t,new _a(0,"an int",r)])}return new he(1,[t,new _a(0,"an int",r)])},pl=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 he(0,e>>>0):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!0,32,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])};function ml(e,n){if("string"==typeof n){let r,o=Ln(-621355968e5,0);if(r=[jn(n,new B(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new he(0,1===(t=e).kind?t:Ln(t.getTime(),1))}return new he(1,[e,new _a(0,"a datetime",n)])}return new he(1,[e,new _a(0,"a datetime",n)]);var t}function gl(e,n){if("string"==typeof n){let t,r=Sa(-621355968e5,0);if(t=[Ea(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a datetimeoffset",n)])}return new he(1,[e,new _a(0,"a datetime",n)])}function wl(e,n,t,r){let o;const i=t+".["+f(e)+"]";if(Array.isArray(r)){const t=r;if(e<t.length)return n(i,t[e]);{const n="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|t.length,f(o)+"` entries");return new he(1,[i,new _a(5,n,r)])}}return new he(1,[i,new _a(0,"an array",r)])}function _l(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return pe(e=>Kt(e),Dt((t,o)=>{if(r+=1,0===t.tag){const i=t.fields[0],s=e(n+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new he(0,Wt(e,i))}{const e=s.fields[0];return new he(1,e)}}return t},new he(0,Ht()),o))}return new he(1,[n,new _a(0,"a list",t)])}function yl(e,n,t){if(Array.isArray(t)){let r=-1;const o=t,i=Nt(new Array(o.length),0,o.length,null);return Dt((t,o)=>{if(r+=1,0===t.tag){const i=t.fields[0],s=e(n+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new he(0,i)}{const e=s.fields[0];return new he(1,e)}}return t},new he(0,i),o)}return new he(1,[n,new _a(0,"an array",t)])}function vl(e,n,t){return new he(0,e)}function bl(e,n,t,r){const o=n(t,r);if(0===o.tag){return e(o.fields[0],t,r)}{const e=o.fields[0];return new he(1,e)}}function Cl(e,n,t,r){const o=n(t,r);if(1===o.tag){const e=o.fields[0];return new he(1,e)}{const n=o.fields[0];return new he(0,e(n))}}function xl(e,n){let t;const r=e;return t=e=>n=>wl(0,r,e,n),e=>r=>bl(k(3,e=>{let t;const r=n;return t=e=>n=>wl(1,r,e,n),n=>r=>bl((n,t,r)=>vl([e,n]),k(2,t),n,r)}),k(2,t),e,r)}function Sl(e){return qs(e)}function El(e,n,t,r){let o,i;return n.length!==r.length?new he(1,[t,new _a(6,(o=0|r.length,i=0|n.length,Kn(Jn("Expected %i %s but got %i"))(i)(e)(o)))]):Ut(k(3,A(e=>n=>r=>{if(0===r.tag){const o=r.fields[0];return pe(e=>Wt(e,o),n(t,e))}return r},[0,[0,2],0])),r,n,new he(0,Ht()))}function kl(e,n,t,r,o,i){const s=(u=e=>Y(e)===r,oe(t).find(u));var u;if(null!=s){const t=s;if(0===i.length)return new he(0,ue(t,[]));return pe(e=>ue(t,Xt(e)),El("union fields",Tt(t=>Al(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new he(1,[o,new _a(6,"Cannot find case "+r+" in "+K(t))])}function Il(e,n,t,r){const o=new B(null),i=Xs(K(r),o,e);let s;if(function(e){return e instanceof F?null!=e.fields:e instanceof U}(r)){const e=Tt(e=>[xa(n,Y(e)),Al(i,n,!1,e[1])],ie(r));s=n=>t=>pe(e=>function(e,n){const t=ie(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,Xt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new he(1,[n,new _a(0,"an object",t)]):Rt(k(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return pe(e=>Wt(e,i),o(n+"."+r)(t[r]))}return e}}),e,new he(0,Ht()))}(e,n,t))}else if(function(e){return e instanceof F?null!=e.cases:e instanceof T}(r))s=e=>t=>{if("string"==typeof t){return kl(i,n,r,t,e,[])}if(Array.isArray(t)){const o=t,s=o[0];return kl(i,n,r,s,e,o.slice(1,o.length))}return new he(1,[e,new _a(0,"a string or array",t)])};else{if(!t){let e;const n=K(r);throw e=Kn(Jn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}s=e=>n=>new he(1,[e,new _a(2,"an extra coder for "+K(r),n)])}return o.contents=s,s}function Al(e,n,t,r){let o;const i=K(r),s=Ys(i,e);if(null==s){if(Q(r)){const t=Al(e,n,!1,function(e){var n;return Q(e)?null===(n=e.generics)||void 0===n?void 0:n[0]:void 0}(r));return e=>n=>yl(k(2,t),e,n)}if(ee(r)){const e=K(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,s=ll(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=$l(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=fl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=dl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=hl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,f(e))):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=pl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};{const e=K(r),n=Yn(e=>{throw new Error(e)},Jn("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{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=Tt(t=>Al(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)?pe(e=>Xt(e),El("tuple elements",t,e,n)):new he(1,[e,new _a(0,"an array",n)])}{const i=K(function(e){return null==e.generics?e:new F(e.fullname,e.generics.map(()=>J))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const t=Al(e,n,!0,j(r)[0]);return e=>n=>{return r=k(2,t),o=e,null==(i=n)?new he(0,void 0):pe(e=>ae(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const t=Al(e,n,!1,j(r)[0]);return e=>n=>_l(k(2,t),e,n)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const t=Al(e,n,!1,j(r)[0]),i=Al(e,n,!1,j(r)[1]);let s;const u=nr([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new he(1,[t,new _a(0,"an object",r)]):Tr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(t,i);if(0===u.tag){const e=u.fields[0],o=n(t+"."+i,r[i]);if(0===o.tag){const n=o.fields[0];return new he(0,Wt([e,n],s))}{const e=o.fields[0];return new he(1,e)}}{const e=u.fields[0];return new he(1,e)}}return o},new he(0,Ht()),Object.keys(r))}(k(2,t),k(2,i),e,n),(o=xl(k(2,t),k(2,i)),e=>n=>_l(k(2,o),e,n))]);return s=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(qt(o))return new he(1,[t,new _a(7,i)]);{const s=Jt(o),u=Zt(o),c=cl(t,k(2,u),r);if(1===c.tag){e=s,n=rr(i,zt(c.fields[0]));continue e}{const e=c.fields[0];return new he(0,e)}}}})(u,Ht());var t,r},e=>n=>Cl(e=>Sl(e),k(2,s),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const t=Al(e,n,!1,j(r)[0]);return e=>n=>{const r=yl(k(2,t),e,n);if(0===r.tag){const e=r.fields[0];return new he(0,il(e,{Compare:(e,n)=>x(e,n)}))}{const e=r.fields[0];return new he(1,e)}}}return Il(e,n,t,r)}}return"System.Boolean"===i?e=>n=>{return t=e,"boolean"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===i?e=>n=>{return t=e,null==(r=n)?new he(0,void 0):new he(1,[t,new _a(0,"null",r)]);var t,r}:"System.String"===i?e=>n=>{return t=e,"string"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a string",r)]);var t,r}:"System.SByte"===i?ll:"System.Byte"===i?$l:"System.Int16"===i?fl:"System.UInt16"===i?dl:"System.Int32"===i?hl:"System.UInt32"===i?pl:"System.Double"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a float",r)]);var t,r}:"System.Single"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a float32",r)]);var t,r}:"System.DateTime"===i?e=>n=>ml(e,n):"System.DateTimeOffset"===i?e=>n=>gl(e,n):"System.TimeSpan"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;if(t=[Aa(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a timespan",n)])}return new he(1,[e,new _a(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";if(t=[ft(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a guid",n)])}return new he(1,[e,new _a(0,"a guid",n)])}(e,n):"System.Object"===i?e=>e=>new he(0,e):Il(e,n,t,r)}{const e=s;return n=>t=>e.contents(n)(t)}}function Nl(e){if(null!=e){return Ks((e,n)=>{const t=n[1];return new B(t)},e.Coders)}return Qs()}function Tl(e,n,t){const r=fe(e,new ya(0)),o=le(t).ResolveType();return Al(Nl(n),r,!1,o)}function Pl(e,n,t,r){return al(k(2,Tl(n,t,r)),e)}function Dl(e){const n=e.fields[0];return new dt(0,n)}function Ml(e){return Kn(Xn("%s%P()/account-registry/admin",[e]))}function Ol(e,n){return Kc(0,()=>{const t=aa((r=Kn(Jn("Bearer %s"))(e),new ea(0,"Authorization",r)),n);var r;const o=Wr.Bind(la(t),e=>Wr.Return(new he(0,e)));return Wr.Delay(()=>Wr.Bind(o,e=>{let n;const r=e;if(1===r.tag){const e=r.fields[0];return Wr.Return(new he(1,e))}{const e=r.fields[0];return Wr.ReturnFrom((n=e,429===n.statusCode||n.statusCode>=500?Wr.Bind(la(t),e=>Wr.Return(new he(0,e))):function(e,n){return Wr.Return(qr(0,n))}(0,n)))}}))})}function Rl(e,n){return Kc(0,()=>{const t=Ol(n,ca(new Qc(0),ua(Kn(Xn("%P()/partners",[Ml(e)])))));return Wr.Delay(()=>Wr.Bind(t,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(me(e=>$a(e=>e,ir(e=>Fu(e),e)),Pl(n.responseText,new ya(1),void 0,{ResolveType:()=>Z(z("Dto.AdminApi.Partner",[],uo,()=>[["StreamId",X],["Name",X],["Website",X],["ContactDetails",no()],["Notes",V(X)]]))}))):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}function Ul(e,n,t,r,o){return Kc(0,()=>{let i,s;const u=Mu(r.SearchText);let c;s=rt(u)?void 0:Kn(Xn("search=%P()",[encodeURIComponent(u)]));const a=[(l=r.Sort).fields[0],l.fields[1]];var l;let $;c=1===a[0].tag?1===a[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===a[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc";const f=0|Ru(r.PageSize);$=f<=100&&f>=10?Kn(Xn("page_size=%i%P()",[f])):void 0,i="?"+ot("&",function(e,n){const t=new Bt(null,void 0),r=Yt((n,t)=>{const r=e(t);if(null==r)return n;{const e=le(r),t=new Bt(e,void 0);return n.tail=t,t}},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}(e=>e,nr([s,c,$])));const d=Ol(n,(e=>{if(null==o)return e;return aa(new ea(0,"token",o),e)})(ca(new Qc(0),ua(Kn(Xn("%P()/partners/%P()/accounts%P()",[Ml(e),pt(t),i]))))));return Wr.Delay(()=>Wr.Bind(d,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(Pl(n.responseText,new ya(1),void 0,{ResolveType:ho})):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}class Bl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function Ll(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=ko("a",E(Sr(vr(()=>Ir(xr(["key",e]),vr(()=>Ir(xr(["children",e]),vr(()=>Ir(xr(["className",t]),vr(()=>null!=n?xr(["href",wu(zt(le(n)),1)]):Cr())))))))))),new Bl(0,r);var r}function Fl(e){return ko("div",{className:"border-b border-gray-200",children:Ji.Children.toArray([ko("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:Ji.Children.toArray(Array.from(Dr(e=>e.fields[0],e)))})])})}class jl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Gl(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-super-configuration",wa(Ar(e=>e,[new jl(1,t),new jl(0,r),new jl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new jl(3,n)},o)]),1))}class Hl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Wl(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-benefits-onboarding-configuration",wa(Ar(e=>e,[new Hl(1,t),new Hl(0,r),new Hl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new Hl(3,n)},o)]),1))}class zl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function ql(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-bank-details",wa(Ar(e=>e,[new zl(1,t),new zl(0,r),new zl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new zl(3,n)},o)]),1))}function Vl(e){return ko("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Zl(e){return ko("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Ji.Children.toArray([e])})}function Jl(e,n){return ko("div",{className:"sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5",children:Ji.Children.toArray([Vl(e),Zl(n)])})}function Xl(e){return ko("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function Yl(e){return ko("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0,rows:5})}function Kl(e){const n=zt(ko("div",{children:Ji.Children.toArray(Array.from(e))}));return ko("form",{children:Ji.Children.toArray(Array.from(n))})}function Ql(e,n){const t=nr([ko("br",{}),(r=e,ko("div",{className:ot(" ",["text-lg","leading-6","font-medium","text-gray-900"]),children:Ji.Children.toArray([ko("span",{children:[r]})])})),ko("div",{className:ot(" ",["px-6"]),children:Ji.Children.toArray(Array.from(n))})]);var r;return ko("div",{children:Ji.Children.toArray(Array.from(t))})}function e$(e){return n=>Jl(e,Xl(n))}function n$(e){return Ql("Account Information",nr([e$("ID")(e.StreamId),e$("External ID")(fe(e.ExternalId,"")),e$("Channel ID")(fe(e.ChannelId,"")),e$("Name")(e.Name),e$("Contact")(Kn(Xn("%P() %P()",[e.ContactDetails.FirstName,e.ContactDetails.LastName]))),e$("Phone")(e.ContactDetails.MobilePhone),e$("Email")(e.ContactDetails.Email),e$("Website")(e.Website)]))}function t$(e){if(null==e)return null;{const n=e;return Ql("Legal Entity",nr([e$("Business Name")(n.BusinessName),e$("Business Number")(n.BusinessNumber),e$("Address Line 1")(n.Address1),e$("Address Line 2")(fe(n.Address2,"")),e$("City")(n.City),e$("State")(fe(n.State,"")),e$("Postcode")(n.Postcode)]))}}function r$(e){if(null==e)return null;return Ql("Other details",zt((n="Notes",e=>Jl(n,Yl(e)))(e)));var n}function o$(e){return Kl([n$(e),t$(e.LegalEntity),r$(e.Notes)])}function i$(e){const n=zt(ko("span",{children:[e.error]}));return ko("div",{children:Ji.Children.toArray(Array.from(n))})}function s$(){const e=zt(ko("span",{children:["Please wait..."]}));return ko("div",{children:Ji.Children.toArray(Array.from(e))})}class u$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class c$ extends U{constructor(e){super(),this.Data=e}}function a$(){return[new c$(new eu(0)),Zu()]}class l$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function $$(e,n,t){let r,o,i,s,u,c,a,l,$,f,d,h;const p=[e,n];return Fl(1===t.tag?nr([Ll("Details",wu(Wu((r=p,new ju(6,r[0],r[1]))),1)),Ll("Super Configuration",void 0),Ll("Benefits Onboarding Configuration",wu(Wu((o=p,new ju(8,o[0],o[1]))),1)),Ll("Bank Details Configuration",wu(Wu((i=p,new ju(9,i[0],i[1]))),1))]):2===t.tag?nr([Ll("Details",wu(Wu((s=p,new ju(6,s[0],s[1]))),1)),Ll("Super Configuration",wu(Wu((u=p,new ju(7,u[0],u[1]))),1)),Ll("Benefits Onboarding Configuration",void 0),Ll("Bank Details Configuration",wu(Wu((c=p,new ju(9,c[0],c[1]))),1))]):3===t.tag?nr([Ll("Details",wu(Wu((a=p,new ju(6,a[0],a[1]))),1)),Ll("Super Configuration",wu(Wu((l=p,new ju(7,l[0],l[1]))),1)),Ll("Benefits Onboarding Configuration",wu(Wu(($=p,new ju(8,$[0],$[1]))),1)),Ll("Bank Details Configuration",void 0)]):nr([Ll("Details",void 0),Ll("Super Configuration",wu(Wu((f=p,new ju(7,f[0],f[1]))),1)),Ll("Benefits Onboarding Configuration",wu(Wu((d=p,new ju(8,d[0],d[1]))),1)),Ll("Bank Details Configuration",wu(Wu((h=p,new ju(9,h[0],h[1]))),1))]))}function f$(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return ko(Gl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return ko(Wl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return ko(ql,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}default:{const e=t.Data;let n,r,o;switch(0===e.tag||1===e.tag?n=2:3===e.tag?(n=3,o=e.fields[0]):0===e.fields[0].tag?(n=0,r=e.fields[0].fields[0]):n=1,n){case 0:return ko(o$,r);case 1:return ko(i$,{error:"There was an error retrieving account "});case 2:return ko(s$,null);case 3:return ko(i$,{error:N(o)})}}}}function d$(e){let n,t;const r=e.mode,o=e.props,i=Xc(a$,(e,n)=>function(e,n){const t=e.fields[0];return[new c$(t),Zu()]}(e),[]),s=i[0],u=i[1];return os((n=[()=>{const e=o.accountDetails,n=e[0],t=e[1];return function(e,n,t,r){const o=t.fields[0],i=r.fields[0];return Kc(0,()=>{const t=Ol(n,ca(new Qc(0),ua(Kn(Xn("%P()/partners/%s%P()/accounts/%s%P()",[Ml(e),o,i])))));return Wr.Delay(()=>Wr.Bind(t,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(Pl(n.responseText,new ya(1),void 0,{ResolveType:ao})):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}(o.backendUrl,o.accessToken,n,t)},e=>{u(new u$(0,e))}],tu(n[0],n[1]))),ko("div",{children:Ji.Children.toArray([(t=o.accountDetails,$$(t[0],t[1],r)),f$(o,r,s)])})}class h$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class p${constructor(e){this.props=e}}function m$(e){return n=>t=>Wr.Delay(()=>{const r=Dl(e.props.partnerId);return Wr.Bind(Ul(e.props.backendUrl,e.props.accessToken,r,n,void 0),e=>(t(new h$(2,new eu(2,e))),Wr.Zero()))})}class g$ extends U{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function w$(){return[new g$(new eu(0),Du,Iu,(e=20,new Ou(0,e))),Zu()];var e}class _$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function y$(e){return new _$(0,e)}function v$(e){return e.fields[0]}class b$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function C$(e){return new b$(0,e)}function x$(e){return e.fields[0]}function S$(e){return y$(ko("th",E(nr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function E$(e,n){return C$(ko("td",{className:ot(" ",Ir(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function k$(e,n){let t;const r=(e,n)=>{return ko("tr",{className:(t=e,t%2==0?"bg-white":"bg-gray-50"),children:Ji.Children.toArray(Array.from(Dr(e=>x$(e),n)))});var t};return ko("div",{className:"flex flex-col mt-4",children:Ji.Children.toArray([ko("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:Ji.Children.toArray([ko("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:Ji.Children.toArray([ko("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:Ji.Children.toArray([ko("table",{className:"min-w-full divide-y divide-gray-200",children:Ji.Children.toArray([(e=>{let n;return ko("thead",{className:"bg-gray-50",children:(n=Dr(e=>v$(e),e),ko("tr",{children:Ji.Children.toArray(Array.from(n))}))})})(e),(t=Mr(k(2,e=>{const n=function(e,n,t){if(null!=n){if("__CURRIED__"in n){n=n.__CURRIED__;for(let e=0;e<t.length;e++)n=n(t[e]);return n}switch(e){case 1:return e=>n.apply(void 0,t.concat([e]));case 2:return e=>r=>n.apply(void 0,t.concat([e,r]));case 3:return e=>r=>o=>n.apply(void 0,t.concat([e,r,o]));case 4:return e=>r=>o=>i=>n.apply(void 0,t.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>n.apply(void 0,t.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>n.apply(void 0,t.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>n.apply(void 0,t.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>a=>n.apply(void 0,t.concat([e,r,o,i,s,u,c,a]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>n(e)}),n),ko("tbody",{children:Ji.Children.toArray(Array.from(t))}))])})])})])})])})])})}function I$(e){return["fillRule",e]}function A$(e){return["clipRule",e]}const N$=ko("svg",{className:ot(" ",["h-5","w-5"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:Ji.Children.toArray([ko("path",E(nr([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],I$("evenodd"),A$("evenodd")])))])}),T$=ko("svg",{className:ot(" ",["h-5","w-5"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:Ji.Children.toArray([ko("path",E(nr([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],I$("evenodd"),A$("evenodd")])))])});function P$(e,n,t,r){return y$(ko("th",{className:ot(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"]),scope:"col",children:Ji.Children.toArray([ko("a",{className:ot(" ",["group","inline-flex","cursor-pointer"]),onClick:t,children:Ji.Children.toArray([r,ko("span",{className:ot(" ",(o=!e,i=zt("invisible"),s=nr(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),o?rr(s,i):s)),children:Ji.Children.toArray(Array.from(Sr(vr(()=>xr(n?N$:T$)))))})])})])}));var o,i,s}function D$(e,n){return P$(y(Au(e.Sort),new xu(1)),y(Nu(e.Sort),new Su(0)),t=>{n(new h$(1,Tu(new xu(1),e.Sort)))},"Name")}function M$(e,n){return P$(y(Au(e.Sort),new xu(0)),y(Nu(e.Sort),new Su(0)),t=>{n(new h$(1,Tu(new xu(0),e.Sort)))},"Id")}function O$(e,n){const t=new Et(0,n.AccountId);return Sr(vr(()=>{let r;return Ir(xr(function(e,n,t,r){return C$(ko("td",{className:"px-6 py-2 whitespace-nowrap text-sm align-top",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(ko("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),vr(()=>{let e;return Ir(null==r?xr(null):(e=r,Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n=Kn(Xn("Channel ID: %s%P()",[e])),ko("span",{children:[n]})))}))),vr(()=>{if(null==t)return xr(null);{const e=t;return Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n=Kn(Xn("External ID: %s%P()",[e])),ko("span",{children:[n]})))}))}}))}))))))}))}(wu(Wu((r=[e,t],new ju(6,r[0],r[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),vr(()=>{return Ir(xr((e=n.Name,t=n.BusinessName,r=n.BusinessNumber,C$(ko("td",{className:ot(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"]),children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(ko("div",{className:ot(" ",["font-medium"]),children:Ji.Children.toArray([ko("span",{children:[e]})])})),vr(()=>{let e,n;return Ir(null==t?xr(null):(e=t,xr((n="Legal Entity: "+e,ko("span",{children:[n]})))),vr(()=>{if(null==r)return xr(null);{const e=r;return Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n="ABN: "+e,ko("span",{children:[n]})))}))}}))}))))))})))),vr(()=>{return Ir(xr((e=n.Contact,t=n.ContactMobilePhone,C$(ko("td",{className:ot(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"]),children:Ji.Children.toArray([ko("span",{children:[e]}),ko("br",{}),ko("span",{children:[t]})])})))),vr(()=>xr(function(e){return C$(ko("td",{className:ot(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}(n.Website))));var e,t}));var e,t,r}))}))}class R$ extends U{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class U$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class B$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function L$(e,n,t,r,o,i){let s;const u=[n,t];let c,a,l;switch(null!=u[0]&&null!=u[1]?(c=0,a=u[0],l=u[1]):c=1,c){case 0:s=Sr(vr(()=>Ir(xr("Showing "),vr(()=>Ir(xr(ko("span",{className:"font-medium",children:Kn(Xn("%i%P()",[a]))})),vr(()=>Ir(xr(" to "),vr(()=>Ir(xr(ko("span",{className:"font-medium",children:Kn(Xn("%i%P()",[l]))})),vr(()=>Ir(xr(" of "),vr(()=>{let e;return 1===r.tag?zt(" many"):(e=0|r.fields[0],nr([ko("span",{className:"font-medium",children:N(e)})," results"]))}))))))))))));break;case 1:s=zt(null)}const $=Sr(vr(()=>{let e;return Ir(null==i?xr(null):(e=i,xr(ko("a",{className:ot(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:e,children:"Previous "}))),vr(()=>{if(null==o)return xr(null);{const e=o;return xr(ko("a",{className:ot(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:e,children:" Next"}))}}))}));return ko("tfoot",{className:ot(" ",["w-full"]),children:Ji.Children.toArray([ko("tr",{children:Ji.Children.toArray([ko("td",{colSpan:e,children:Ji.Children.toArray([ko("nav",{className:ot(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"]),children:Ji.Children.toArray([ko("div",{className:ot(" ",["hidden","sm:block"]),children:Ji.Children.toArray([ko("p",{className:ot(" ",["text-sm","text-gray-700"]),children:Ji.Children.toArray(Array.from(s))})])}),ko("div",{className:ot(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:Ji.Children.toArray(Array.from($))})])})])})])})])})}function F$(e,n){const t=$s(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;Yn(e=>console.log(e),Jn("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}function j$(e){const n=e.data,t=e.pageSize,r=e.renderRowCells,o=e.columnHeaders,i=(s=t,u=n.Data,nr(Tt(e=>nr(e),Mt(s,Xt(u)))));var s,u;const c=F$(Vt(i),n.LoadNext),a=c[2],l=0|c[0],$=c[1];let f;const d=cr(l-1,i);if(null==d)f=new U$(1);else{f=new U$(0,d)}const h=0|Vt(n.Data),p=null==n.LoadNext?new B$(0,h):new B$(1),m=1===f.tag?void 0:h>=1?(l-1)*t+1:void 0;let g;if(1===f.tag)g=void 0;else{const e=f.fields[0];g=h>=1?(l-1)*t+Vt(e):void 0}const w=1===l?void 0:a,_=l===Vt(i)?null!=n.LoadNext?$:void 0:l<Vt(i)?$:void 0;return ko("div",{className:"flex flex-col mt-4",children:Ji.Children.toArray([ko("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:Ji.Children.toArray([ko("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:Ji.Children.toArray([ko("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:Ji.Children.toArray([ko("table",{className:"min-w-full divide-y divide-gray-200",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(function(e){let n;return ko("thead",{className:"bg-gray-50",children:(n=Dr(e=>v$(e),e),ko("tr",{children:Ji.Children.toArray(Array.from(n))}))})}(o)),vr(()=>{let e,n;return Ir(1===f.tag?xr(null):(e=f.fields[0],xr((n=Mr((e,n)=>function(e,n){return ko("tr",{className:(t=e,t%2==0?"bg-white":"bg-gray-50"),children:Ji.Children.toArray(Array.from(Dr(e=>x$(e),n)))});var t}(e,n),r(e)),ko("tbody",{children:Ji.Children.toArray(Array.from(n))})))),vr(()=>xr(L$(Vt(o),m,g,p,_,w))))}))))))})])})])})])})])})}function G$(e){let n;const t=function(e){return new p$(e)}(e),r=Xc(w$,(e,n)=>function(e,n,t){switch(n.tag){case 1:{const r=n.fields[0],o=n=>{const o=new Uu(t.SearchText,r,t.PageSize);ws(m$(e)(o)(n))};return[new g$(new eu(1),t.SearchText,r,t.PageSize),Ju(o)]}case 2:{const e=n.fields[0];return[new g$(e,t.SearchText,t.Sort,t.PageSize),Zu()]}case 3:{const e=n.fields[0];let r;const o=[t.Data,e];let i,s,u,c;if(2===o[0].tag)if(0===o[0].fields[0].tag){const e=o[1];1===e.tag?(i=1,c=e.fields[0]):(i=0,s=o[0].fields[0].fields[0],u=e.fields[0])}else{const e=o[1];1===e.tag?(i=1,c=e.fields[0]):i=2}else{const e=o[1];1===e.tag?(i=1,c=e.fields[0]):i=2}switch(i){case 0:r=new eu(2,new he(0,new fo(rr(s.Accounts,u.Accounts),u.Token)));break;case 1:r=new eu(2,new he(1,c));break;case 2:r=new eu(3,new Error("Failed to retrieve the account data"))}return[new g$(r,t.SearchText,t.Sort,t.PageSize),Zu()]}case 4:{const n=n=>{const r=new Uu(t.SearchText,t.Sort,t.PageSize);ws(m$(e)(r)(n))};return[new g$(new eu(1),t.SearchText,t.Sort,t.PageSize),Ju(n)]}default:{const e=n.fields[0];return[new g$(t.Data,(r=e,new Pu(0,r.trim())),t.Sort,t.PageSize),Zu()]}}var r}(t,e,n),[]),o=r[0],i=r[1],s=new Uu(o.SearchText,o.Sort,o.PageSize);os((n=[()=>function(e,n,t){const r=Dl(e.props.partnerId);return Ul(e.props.backendUrl,e.props.accessToken,r,n,void 0)}(t,s),e=>{i(new h$(2,e))}],tu(n[0],n[1])));const u=n=>{const r=nr([M$(o,i),D$(o,i),S$("Contact"),S$("Website")]),u=new R$(n.Accounts,de(I(2,(e,n)=>{var r;ws((r=t,e=>n=>t=>Wr.Delay(()=>{const o=Dl(r.props.partnerId);return Wr.Bind(Ul(r.props.backendUrl,r.props.accessToken,o,e,n),e=>(t(new h$(3,e)),Wr.Zero()))}))(s)(e)(i))}),n.Token));return ko(j$,{columnHeaders:r,renderRowCells:n=>ir(n=>O$(e.partnerId,n),n),pageSize:0|Ru(o.PageSize),data:u})},c=e=>{i(new h$(0,e))},a=e=>{i(new h$(4))},l=o.Data;let $,f,d,h;switch(0===l.tag||1===l.tag?$=2:3===l.tag?($=3,h=l.fields[0]):1===l.fields[0].tag?($=1,d=l.fields[0].fields[0]):($=0,f=l.fields[0].fields[0]),$){case 0:return(e=>{const n=nr([ko("div",{className:ot(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"]),children:Ji.Children.toArray([ko("div",{className:ot(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"]),children:Ji.Children.toArray([(r=Mu(o.SearchText),i=c,ko("div",{className:ot(" ",["flex-grow","max-w-md"]),children:Ji.Children.toArray([ko("label",{for:"search",children:"Search",className:ot(" ",["block","text-sm","font-medium","text-gray-700"])}),ko("div",{className:"mt-1",children:Ji.Children.toArray([ko("input",{id:"search",name:"search",type:"text",className:ot(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:"Account Id, Name or Legal Entity",value:r,onChange:e=>{i(e.target.value)}})])})])})),(t=a,ko("div",{className:"pt-6",children:Ji.Children.toArray([ko("div",{className:ot(" ",["flex","justify-end"]),children:Ji.Children.toArray([ko("button",{type:"search",children:"Search",className:ot(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:t})])})])}))])})])}),u(e)]);var t,r,i;return ko("div",{children:Ji.Children.toArray(Array.from(n))})})(f);case 1:return ko(i$,{error:d});case 2:return ko(s$,null);case 3:return ko(i$,{error:N(h)})}}function H$(e,n){const t=nr([ko("br",{}),(r=e,ko("div",{className:ot(" ",["text-lg","leading-6","font-medium","text-gray-900"]),children:Ji.Children.toArray([ko("span",{children:[r]})])})),ko("div",{className:ot(" ",["px-6"]),children:Ji.Children.toArray(Array.from(n))})]);var r;return ko("div",{children:Ji.Children.toArray(Array.from(t))})}function W$(e){return Kl([H$("Partner Information",nr([Jl("ID",Xl(pt(e.StreamId))),Jl("Name",Xl(Jr(e.Name))),Jl("Contact",Xl(Kn(Xn("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)])))),Jl("Phone",Xl(Qr(e.ContactDetails.MobilePhone))),Jl("Website",Xl(Xr(e.Website))),Jl("Notes",Yl(fe(ro(e.Notes),"")))]))])}class z$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class q$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class V$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Z$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function J$(e){let n,t,r,o,i;return Fl(1===e.tag?(n=e.fields[0],nr([Ll("Details",wu(Wu(new ju(1,n.partnerId)),1)),Ll("Accounts",void 0),Ll("Super Configuration",wu(Wu(new ju(3,n.partnerId)),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,n.partnerId)),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,t)),1)),Ll("Accounts",wu(Wu(new ju(2,t)),1)),Ll("Super Configuration",void 0),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,t)),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,r)),1)),Ll("Accounts",wu(Wu(new ju(2,r)),1)),Ll("Super Configuration",wu(Wu(new ju(3,r)),1)),Ll("Benefits Onboarding Configuration",void 0),Ll("Bank Details Configuration",wu(Wu(new ju(5,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,o)),1)),Ll("Accounts",wu(Wu(new ju(2,o)),1)),Ll("Super Configuration",wu(Wu(new ju(3,o)),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,o)),1)),Ll("Bank Details Configuration",void 0)])):(i=e.fields[0],nr([Ll("Details",void 0),Ll("Accounts",wu(Wu(new ju(2,new xt(0,pt(i.StreamId)))),1)),Ll("Super Configuration",wu(Wu(new ju(3,new xt(0,pt(i.StreamId)))),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,new xt(0,pt(i.StreamId)))),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,new xt(0,pt(i.StreamId)))),1))])))}function X$(e){switch(e.tag){case 1:{const n=e.fields[0];return ko(G$,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return ko(Gl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return ko(Wl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return ko(ql,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return ko(W$,e.fields[0])}}function Y$(e){const n=e.mode;return ko("div",{children:Ji.Children.toArray([J$(n),X$(n)])})}function K$(e){const n=e.partnerList;return k$(nr([S$("ID"),S$("Name"),S$("Contact"),S$("Phone"),S$("Website")]),ir(e=>{let n;const t=pt(e.StreamId),r=new xt(0,t);return nr([(n=[wu(Wu(new ju(1,r)),1),t],o=n[0],i=n[1],C$(ko("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:Ji.Children.toArray([ko("a",{className:"text-indigo-600 hover:text-indigo-900",children:i,href:o})])}))),E$(["text-gray-500"],Jr(e.Name)),E$(["text-gray-500"],Kn(Xn("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)]))),E$(["text-gray-500"],Qr(e.ContactDetails.MobilePhone)),E$(["text-gray-500"],Xr(e.Website))]);var o,i},n))}var Q$=Si((function(e,n){return ko("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),ko("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class ef extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function nf(e){return ko("nav",{className:"pt-2","aria-label":"Breadcrumb",children:Ji.Children.toArray([ko("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:Ji.Children.toArray(Array.from(or((e,n)=>{const t=n.fields[0][1];return function(e,n,t,r){return ko("li",{key:e,className:"flex",children:Ji.Children.toArray([ko("div",{className:"flex items-center",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(t?Cr():xr(ko(Q$,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),vr(()=>xr(ko("a",E(Sr(vr(()=>Ir(xr(["children",e]),vr(()=>Ir(null!=n?xr(["href",wu(le(n),1)]):Cr(),vr(()=>xr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(n.fields[0][0],t,0===e)},e)))})])})}function tf(e){let n,t,r,o,i,s,u,c,a,l,$,f,d;const h=e.page,p=()=>new ef(0,["Partners",Wu(new ju(0))]),m=e=>new ef(0,[oo(e),Wu(new ju(1,e))]),g=e=>new ef(0,["Super Configuration",Wu(new ju(3,e))]),w=e=>new ef(0,["Accounts",Wu(new ju(2,e))]),_=e=>new ef(0,[io(e),void 0]),y=e=>{let n;const t=e[0],r=e[1];return new ef(0,["Super Configuration",Wu((n=[t,r],new ju(7,n[0],n[1])))])};return nf(10===h.tag?zt(p()):1===h.tag?(n=h.fields[0],nr([p(),m(n)])):2===h.tag?(t=h.fields[0],nr([p(),m(t),w(t)])):3===h.tag?(r=h.fields[0],nr([p(),m(r),g(r)])):4===h.tag?(o=h.fields[0],nr([p(),m(o),g(o)])):5===h.tag?(i=h.fields[0],nr([p(),m(i),(v=i,new ef(0,["Bank Details Configuration",Wu(new ju(5,v))]))])):6===h.tag?(s=h.fields[0],u=h.fields[1],nr([p(),m(s),w(s),_(u)])):7===h.tag?(c=h.fields[0],a=h.fields[1],nr([p(),m(c),w(c),_(a),y([c,a])])):8===h.tag?(l=h.fields[0],$=h.fields[1],nr([p(),m(l),w(l),_($),y([l,$])])):9===h.tag?(f=h.fields[0],d=h.fields[1],nr([p(),m(f),w(f),_(d),(e=>{let n;const t=e[0],r=e[1];return new ef(0,["Bank Details Configuration",Wu((n=[t,r],new ju(9,n[0],n[1])))])})([f,d])])):zt(p()));var v}function rf(){return(rf=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 of(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 Xo(n,t)}function sf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=ko(of,rf({},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,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[uf(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),a=u[i].slot;a?o[a]=ko(lf,{name:a},c):r[i]=c}var l=t?ko(lf,null,r):r;return ko(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Jo:Zo)(this._vdom,this._root)}function uf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function cf(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[uf(e)]=t,this._vdom=Xo(this._vdom,r),Zo(this._vdom,this._root)}}function af(){Zo(this._vdom=null,this._root)}function lf(e,n){var t=this;return ko("slot",rf({},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 $f extends U{constructor(e,n){super(),this.Data=e,this.CurrentPage=n}}function ff(){return z("AccountRegistry.AdminUI.App.State",[],$f,()=>[["Data",nu(q("Microsoft.FSharp.Core.FSharpResult`2",[Vu(),X],he,()=>[[["ResultValue",Vu()]],[["ErrorValue",X]]]))],["CurrentPage",Gu()]])}class df extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function hf(){return q("AccountRegistry.AdminUI.App.Msg",[],df,()=>[[["Item",Gu()]],[["Item",nu(q("Microsoft.FSharp.Core.FSharpResult`2",[Vu(),X],he,()=>[[["ResultValue",Vu()]],[["ErrorValue",X]]]))]]])}function pf(){const e=Hu(yu(window.location.hash,1)),n=10===e.tag?zu(new ju(0)):Zu();return[new $f(new eu(0),e),n]}function mf(e,n){if(0===e.tag){const t=e.fields[0];return 10===t.tag?[n,zu(t)]:[new $f(n.Data,t),Zu()]}{const t=e.fields[0];return[new $f(t,n.CurrentPage),Zu()]}}function gf(e){const n=Xc(pf,(e,n)=>mf(e,n),[]),t=n[0],r=n[1];os(tu(()=>{return n=e.backendUrl,t=e.accessToken,Kc(0,()=>Wr.Bind(Rl(n,t),e=>Wr.Return(pe(e=>new qu(e),e))));var n,t},e=>{r(new df(1,e))}));const o=n=>{const t=n[0],r=n[1];return n=>ko(d$,{props:{accessToken:e.accessToken,accountDetails:[t,r],backendUrl:e.backendUrl},mode:n})};let i;const s=t.Data;let u,c,a,l;switch(1===s.tag?u=0:2===s.tag?1===s.fields[0].tag?(u=2,a=s.fields[0].fields[0]):(u=1,c=s.fields[0].fields[0]):3===s.tag?(u=3,l=s.fields[0]):u=0,u){case 0:i=ko(s$,null);break;case 1:{const n=e=>{return n=c.Partners,t=oo(e),ur(e=>pt(e.StreamId)===t,n);var n,t},r=t.CurrentPage;switch(r.tag){case 1:{const e=n(r.fields[0]);if(null==e)i=ko(i$,{error:"Unknown Partner"});else{i=ko(Y$,{mode:new z$(0,e)})}break}case 2:{const n=r.fields[0];$=n,i=ko(Y$,{mode:new z$(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:$})});break}case 3:{const n=r.fields[0];i=ko(Y$,{mode:new z$(2,new q$(n,e.backendUrl,e.accessToken))});break}case 4:{const n=r.fields[0];i=ko(Y$,{mode:new z$(3,new V$(n,e.backendUrl,e.accessToken))});break}case 5:{const n=r.fields[0];i=ko(Y$,{mode:new z$(4,new Z$(n,e.backendUrl,e.accessToken))});break}case 6:i=o([r.fields[0],r.fields[1]])(new l$(0));break;case 7:i=o([r.fields[0],r.fields[1]])(new l$(1));break;case 8:i=o([r.fields[0],r.fields[1]])(new l$(2));break;case 9:i=o([r.fields[0],r.fields[1]])(new l$(3));break;default:i=ko(K$,{partnerList:c.Partners})}break}case 2:i=ko(i$,{error:a});break;case 3:i=ko(i$,{error:N(l)});break}var $;return vu({onUrlChanged:e=>{r(new df(0,Hu(e)))},application:ko(Ao,{},ko(tf,{page:t.CurrentPage}),i)})}(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=sf,o.prototype.attributeChangedCallback=cf,o.prototype.disconnectedCallback=af,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=>ko(gf,e),"superhero-account-registry")}]);
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 s(e){i(e)&&e.Dispose()}function u(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}t.r(n),t.d(n,"State",(function(){return ff})),t.d(n,"State$reflection",(function(){return df})),t.d(n,"Msg",(function(){return hf})),t.d(n,"Msg$reflection",(function(){return pf})),t.d(n,"StateModule_init",(function(){return mf})),t.d(n,"StateModule_update",(function(){return gf})),t.d(n,"AccountRegistryComponent",(function(){return wf}));class c{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 a(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new c(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 $(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 d(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class h{static id(e){return h.idMap.has(e)||h.idMap.set(e,++h.count),h.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 m(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function w(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return m(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]=w(e[r]);return g(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){return g(Object.values(e).map(e=>w(e)))}return m(h.id(e))}}function _(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 _(e,n,v)}function v(e,n){var t;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):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!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 x(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){var t;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)?x(e,n):-1:e instanceof Date?n instanceof Date?b(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=S(e[s],n[s]),0!==i)return i}return 0}(e,n):-1}function E(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}h.idMap=new WeakMap,h.count=0;const A=Symbol("curried");function I(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[A]=n,t}function N(e,n,t){return r=>1===n?t(...e.concat([r])):N(e.concat([r]),n-1,t)}function T(e,n){return null==n||1===n.length?n:A in n?n[A]:N([],e,n)}function P(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=P(r);else{if(100===n){t+="; ...";break}t+="; "+P(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+P(t,n+1)).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class O{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=P(n[0]),r=t.indexOf(" ")>=0):t=n.map(e=>P(e)).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>w(e));return e.splice(0,0,m(this.tag)),g(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?x(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function D(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function M(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+P(n)).join("\n ")+" }"}function U(e){return g(Object.values(e).map(e=>w(e)))}function B(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 L{toJSON(){return D(this)}toString(){return M(this)}GetHashCode(){return U(this)}Equals(e){return B(this,e)}CompareTo(e){return R(this,e)}}class G{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 j{constructor(e){this.message=e}}function F(e){return(n=e)instanceof j||n instanceof Error?e:new Error(String(e));var n}const H=Symbol("numeric");function W(e){return"number"==typeof e||(null==e?void 0:e[H])}function z(e,n){return"number"==typeof e?e*n:e[H]().multiply(n)}function q(e,n){return"number"==typeof e?e.toFixed(n):e[H]().toFixed(n)}function V(e,n){return"number"==typeof e?e.toPrecision(n):e[H]().toPrecision(n)}function Z(e,n){return"number"==typeof e?e.toExponential(n):e[H]().toExponential(n)}function J(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[H]().toHex()}var X={GetHashCode(){return g([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[H](){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)}}},Y="[big.js] ",K=Y+"Invalid ",Q=K+"decimal places",ee=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ne(e,n){var t,r,o;if(!ee.test(n))throw Error(K+"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=te(e,oe.DP+1,oe.RM)}function te(e,n,t,r){var o=e.c;if(void 0===t&&(t=oe.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 re(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}X.abs=function(){var e=new this.constructor(this);return e.s=1,e},X.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,a=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(n=s<0,c!=a)return c>a^n?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(a=s<i.length?i[s]:0))return c>a^n?1:-1;return 0},X.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,s=n.DP;if(s!==~~s||s<0||s>1e6)throw Error(Q);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var u,c,a,l,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,g=e,w=g.c=[],_=0,y=s+(g.e=t.e-e.e)+1;for(g.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(a=0;a<10;a++){if(u!=(m=p.length))l=u>m?1:-1;else for($=-1,l=0;++$<u;)if(o[$]!=p[$]){l=o[$]>p[$]?1:-1;break}if(!(l<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[_++]=l?a:++a,p[0]&&l?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==_||(w.shift(),g.e--,y--),_>y&&te(g,y,n.RM,void 0!==p[0]),g},X.eq=function(e){return 0===this.cmp(e)},X.gt=function(e){return this.cmp(e)>0},X.gte=function(e){return this.cmp(e)>-1},X.lt=function(e){return this.cmp(e)<0},X.lte=function(e){return this.cmp(e)<1},X.minus=X.sub=function(e){var n,t,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var a=s.c.slice(),l=s.e,$=e.c,f=e.e;if(!a[0]||!$[0])return $[0]?e.s=-c:a[0]?e=new i(s):e.s=1,e;if(u=l-f){for((o=u<0)?(u=-u,r=a):(f=l,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(t=((o=a.length<$.length)?a:$).length,u=c=0;c<t;c++)if(a[c]!=$[c]){o=a[c]<$[c];break}if(o&&(r=a,a=$,$=r,e.s=-e.s),(c=(t=$.length)-(n=a.length))>0)for(;c--;)a[n++]=0;for(c=n;t>u;){if(a[--t]<$[t]){for(n=t;n&&!a[--n];)a[n]=9;--a[n],a[t]+=10}a[t]-=$[t]}for(;0===a[--c];)a.pop();for(;0===a[0];)a.shift(),--f;return a[0]||(e.s=1,a=[f=0]),e.c=a,e.e=f,e},X.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)))},X.plus=X.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 s=i.e,u=i.c,c=e.e,a=e.c;if(!u[0]||!a[0])return a[0]||(u[0]?e=new o(i):e.s=i.s),e;if(u=u.slice(),n=s-c){for(n>0?(c=s,r=a):(n=-n,r=u),r.reverse();n--;)r.push(0);r.reverse()}for(u.length-a.length<0&&(r=a,a=u,u=r),n=a.length,t=0;n;u[n]%=10)t=(u[--n]=u[n]+a[n]+t)/10|0;for(t&&(u.unshift(t),++c),n=u.length;0===u[--n];)u.pop();return e.c=u,e.e=c,e},X.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(K+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},X.prec=function(e,n){if(e!==~~e||e<1||e>1e6)throw Error(K+"precision");return te(new this.constructor(this),e,n)},X.round=function(e,n){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Q);return te(new this.constructor(this),e+this.e+1,n)},X.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Y+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+s&1||(n+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(n))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do{t=e,e=u.times(t.plus(o.div(t)))}while(t.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return te(e,(r.DP-=4)+e.e+1,r.RM)},X.times=X.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,a=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+a,s<u&&(n=o,o=i,i=n,a=s,s=u,u=a),n=new Array(a=s+u);a--;)n[a]=0;for(c=u;c--;){for(u=0,a=s+c;a>c;)u=n[a]+i[c]*o[a-c-1]+u,n[a--]=u%10,u=u/10|0;n[a]=u}for(u?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},X.toExponential=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Q);for(t=te(new t.constructor(t),++e,n);t.c.length<e;)t.c.push(0)}return re(t,!0,!!r)},X.toFixed=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Q);for(e=e+(t=te(new t.constructor(t),e+t.e+1,n)).e+1;t.c.length<e;)t.c.push(0)}return re(t,!1,!!r)},X.toJSON=X.toString=function(){var e=this,n=e.constructor;return re(e,e.e<=n.NE||e.e>=n.PE,!!e.c[0])},X.toNumber=function(){var e=Number(re(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Y+"Imprecise conversion");return e},X.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(K+"precision");for(t=te(new r(t),e,n);t.c.length<e;)t.c.push(0)}return re(t,e<=t.e||t.e<=r.NE||t.e>=r.PE,!!o)},X.valueOf=function(){var e=this,n=e.constructor;if(!0===n.strict)throw Error(Y+"valueOf disallowed");return re(e,e.e<=n.NE||e.e>=n.PE,!0)};var oe=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(K+"number");t=0===t&&1/t<0?"-0":String(t)}ne(r,t)}r.constructor=n}return n.prototype=X,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.strict=!1,n}(),ie=oe;new ie(0),new ie(1),new ie(-1),new ie("79228162514264337593543950335"),new ie("-79228162514264337593543950335");var se;function ue(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 ce(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&se.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 ae(e,n,t,r,o){const i=ce(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=ue(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=ue(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function le(e,n,t,r,o){try{return o.contents=ae(e,n,t,r),!0}catch(e){return!1}}function $e(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(se||(se={}));var fe=null;try{fe=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 de(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function he(e){return!0===(e&&e.__isLong__)}de.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},de.prototype.Equals=function(e){return je(this,e)},de.prototype.CompareTo=function(e){return ze(this,e)},de.prototype.toString=function(e){return Be(this,e)},de.prototype.toJSON=function(){return Be(this)},de.prototype[H]=function(){const e=this;return{multiply:n=>Je(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:()=>Be(e.unsigned?e:tn(nn(e),!0),16)}},de.prototype.__isLong__,Object.defineProperty(de.prototype,"__isLong__",{value:!0});var pe={},me={};function ge(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=me[e])?r:(t=_e(e,(0|e)<0?-1:0,!0),o&&(me[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=pe[e])?r:(t=_e(e,e<0?-1:0,!1),o&&(pe[e]=t),t)}function we(e,n){if(isNaN(e))return n?Ae:ke;if(n){if(e<0)return Ae;if(e>=xe)return Oe}else{if(e<=-Se)return De;if(e+1>=Se)return Pe}return e<0?qe(we(-e,n)):_e(e%Ce|0,e/Ce|0,n)}function _e(e,n,t){return new de(e,n,t)}var ye=Math.pow;function ve(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ke;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 qe(ve(e.substring(1),n,t));for(var o=we(ye(t,8)),i=ke,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),t);if(u<8)i=Ve(Je(i,we(ye(t,u))),we(c));else i=Ve(i=Je(i,o),we(c))}return i.unsigned=n,i}function be(e,n){return"number"==typeof e?we(e,n):"string"==typeof e?ve(e,n):_e(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Ce=4294967296,xe=Ce*Ce,Se=xe/2,Ee=ge(1<<24),ke=ge(0),Ae=ge(0,!0),Ie=ge(1),Ne=ge(1,!0),Te=ge(-1),Pe=_e(-1,2147483647,!1),Oe=_e(-1,-1,!0),De=_e(0,-2147483648,!1);function Me(e){return e.unsigned?e.low>>>0:e.low}function Ue(e){return e.unsigned?(e.high>>>0)*Ce+(e.low>>>0):e.high*Ce+(e.low>>>0)}function Be(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Re(e))return"0";if(Le(e)){if(je(e,De)){var t=we(n),r=Xe(e,t),o=Ze(Je(r,t),e);return Be(r,n)+Me(o).toString(n)}return"-"+Be(qe(e),n)}for(var i=we(ye(n,6),e.unsigned),s=e,u="";;){var c=Xe(s,i),a=(Me(Ze(s,Je(c,i)))>>>0).toString(n);if(Re(s=c))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function Re(e){return 0===e.high&&0===e.low}function Le(e){return!e.unsigned&&e.high<0}function Ge(e){return 1==(1&e.low)}function je(e,n){return he(n)||(n=be(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function Fe(e,n){return ze(e,n)<0}function He(e,n){return ze(e,n)>0}function We(e,n){return ze(e,n)>=0}function ze(e,n){if(he(n)||(n=be(n)),je(e,n))return 0;var t=Le(e),r=Le(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:Le(Ze(e,n))?-1:1}function qe(e){return!e.unsigned&&je(e,De)?De:Ve(Ye(e),Ie)}function Ve(e,n){he(n)||(n=be(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=0,l=0,$=0,f=0;return $+=(f+=i+(65535&n.low))>>>16,l+=($+=o+c)>>>16,a+=(l+=r+u)>>>16,a+=t+s,_e(($&=65535)<<16|(f&=65535),(a&=65535)<<16|(l&=65535),e.unsigned)}function Ze(e,n){return he(n)||(n=be(n)),Ve(e,qe(n))}function Je(e,n){if(Re(e))return e.unsigned?Ae:ke;if(he(n)||(n=be(n)),fe)return _e(fe.mul(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned);if(Re(n))return e.unsigned?Ae:ke;if(je(e,De))return Ge(n)?De:ke;if(je(n,De))return Ge(e)?De:ke;if(Le(e))return Le(n)?Je(qe(e),qe(n)):qe(Je(qe(e),n));if(Le(n))return qe(Je(e,qe(n)));if(Fe(e,Ee)&&Fe(n,Ee))return we(Ue(e)*Ue(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=65535&n.low,l=0,$=0,f=0,d=0;return f+=(d+=i*a)>>>16,$+=(f+=o*a)>>>16,f&=65535,$+=(f+=i*c)>>>16,l+=($+=r*a)>>>16,$&=65535,l+=($+=o*c)>>>16,$&=65535,l+=($+=i*u)>>>16,l+=t*a+r*c+o*u+i*s,_e((f&=65535)<<16|(d&=65535),(l&=65535)<<16|($&=65535),e.unsigned)}function Xe(e,n){if(he(n)||(n=be(n)),Re(n))throw Error("division by zero");var t,r,o;if(fe)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?_e((e.unsigned?fe.div_u:fe.div_s)(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned):e;if(Re(e))return e.unsigned?Ae:ke;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:_e(e.low,e.high,!0)}(n)),He(n,e))return Ae;if(He(n,en(e,1)))return Ne;o=Ae}else{if(je(e,De))return je(n,Ie)||je(n,Te)?De:je(n,De)?Ie:je(t=Ke(Xe(Qe(e,1),n),1),ke)?Le(n)?Ie:Te:o=Ve(t,Xe(r=Ze(e,Je(n,t)),n));if(je(n,De))return e.unsigned?Ae:ke;if(Le(e))return Le(n)?Xe(qe(e),qe(n)):qe(Xe(qe(e),n));if(Le(n))return qe(Xe(e,qe(n)));o=ke}for(r=e;We(r,n);){t=Math.max(1,Math.floor(Ue(r)/Ue(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:ye(2,i-48),u=we(t),c=Je(u,n);Le(c)||He(c,r);)c=Je(u=we(t-=s,e.unsigned),n);Re(u)&&(u=Ie),o=Ve(o,u),r=Ze(r,c)}return o}function Ye(e){return _e(~e.low,~e.high,e.unsigned)}function Ke(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?_e(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):_e(0,e.low<<n-32,e.unsigned)}function Qe(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?_e(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):_e(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function en(e,n){if(he(n)&&(n=Me(n)),0===(n&=63))return e;var t=e.high;return n<32?_e(e.low>>>n|t<<32-n,t>>>n,e.unsigned):_e(32===n?t:t>>>n-32,0,e.unsigned)}function nn(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 tn(e,n,t){return t?function(e,n){return new de(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 de(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 rn=Ve,on=Je,sn=Xe,un=function(e,n){return he(n)||(n=be(n)),fe?_e((e.unsigned?fe.rem_u:fe.rem_s)(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned):Ze(e,Je(Xe(e,n),n))},cn=qe,an=function(e,n){return he(n)||(n=be(n)),_e(e.low&n.low,e.high&n.high,e.unsigned)},ln=ze,$n=_e,fn=Me,dn=Ue;function hn(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 _e(r,o>>31,n)}class pn{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class mn{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return An(this)}GetHashCode(){return wn(this)}Equals(e){return _n(this,e)}}function gn(e){return null!=e.generics?e.generics:[]}function wn(e){return g([p(e.fullname),...gn(e).map(wn)])}function _n(e,n){return""===e.fullname?""===n.fullname&&_(Mn(e),Mn(n),([e,n],[t,r])=>e===t&&_n(n,r)):e.fullname===n.fullname&&_(gn(e),gn(n),_n)}function yn(e,n,t,r){return new mn(e,n,t,r)}function vn(e,n,t,r){return new mn(e,n,t,void 0,r)}function bn(e,n,t,r){const o=new mn(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new pn(o,t,e[t],n))});return o}function Cn(e){return new mn("Microsoft.FSharp.Core.FSharpOption`1",[e])}function xn(e){return new mn("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Sn=new mn("System.Object"),En=(new mn("Microsoft.FSharp.Core.Unit"),new mn("System.Char"),new mn("System.String"));new mn("System.Boolean"),new mn("System.SByte"),new mn("System.Byte"),new mn("System.Int16"),new mn("System.UInt16"),new mn("System.Int32"),new mn("System.UInt32"),new mn("System.Single"),new mn("System.Double"),new mn("System.Decimal");function kn(e){if(Array.isArray(e))return e[0];if(e instanceof mn){const n=In(e);if(null!=n)return kn(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function An(e){const n=In(e);return null!=n?An(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map(e=>An(e)).join(",")+"]"}function In(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function Nn(e){return null!=e.enumCases&&e.enumCases.length>0}function Tn(e){if(Nn(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function Pn(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 On(e,n){const t=parseInt(n,10);return Pn(e,isNaN(t)?n:t)[1]}function Dn(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function Mn(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function Un(e){return e.fullname.startsWith("System.Tuple")}class Bn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return w(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Bn?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof Bn?e.value:e)}}function Rn(e){return null==e||e instanceof Bn?new Bn(e):e}function Ln(e){if(null==e)throw new Error("Option has no value");return e instanceof Bn?e.value:e}function Gn(e){return null==e?[]:[Ln(e)]}function jn(e,n){return null!=e?Ln(e):n}function Fn(e,n){return null!=n?Rn(e(Ln(n))):void 0}class Hn extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function Wn(e,n){return 0===n.tag?new Hn(0,e(n.fields[0])):new Hn(1,n.fields[0])}function zn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+$(~~(e/36e5),2)+":"+$(t,2)}function qn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function Vn(e,n,t){return n.replace(/(\w)\1*/g,n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r})}function Zn(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," ")+zn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return Vn(i,n,!0);switch(n){case"D":case"d":return qn(i,"first");case"T":case"t":return qn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+zn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Jn(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return Vn(e,n,t);switch(n){case"D":case"d":return t?qn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?qn(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 $(e.getFullYear(),4)+"-"+$(e.getMonth()+1,2)+"-"+$(e.getDate(),2)+"T"+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)+(n?zn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function Xn(e,n,t){return null!=e.offset?Zn(e,n):Jn(e,n)}function Yn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Kn(){return Yn(-621355968e5,0)}function Qn(e){function n(){throw new Error("The string is not a valid Date: "+e)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function et(e,n){try{return n.contents=function(e,n=!1){const[t,r]=Qn(e),o=null!=r?n&&"Z"===r?1:2:0;return Yn(t.getTime(),o)}(e),!0}catch(e){return!1}}function nt(e){return 1===e.kind?e:Yn(e.getTime(),1)}function tt(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function rt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ot(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const it=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,st=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ut(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function ct(e){return{input:e,cont:(n=e,e=>{it.lastIndex=0;const t=[],r=[];let o=0,i=it.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=it.lastIndex,it.lastIndex-=1,i=it.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(...s)=>{let u=o;const c=t.slice(),a=r.slice();for(const e of s){const[,,n,t,r,o]=a[0];let s=t;if(i>=0)s=i,i=-1;else if("*"===s){if(e<0)throw new Error("Non-negative number required");i=e;continue}u+=c[0],u+=$t(e,n,s,r,o),c.splice(0,1),a.splice(0,1)}return 0===a.length?(u+=c[0],n(u)):e(n,c,a,u,i)}}(e,t,r))})};var n}function at(e,n){return"string"==typeof n?e(n):n.cont(e)}function lt(e){return at(e=>e,e)}function $t(e,n,t,r,o){let i="";if(n=n||"",o=o||"",W(e))switch("x"!==o.toLowerCase()&&(ut(e,0)?(e=z(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=q(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?V(e,r):V(e);break;case"e":case"E":e=null!=r?Z(e,r):Z(e);break;case"x":e=J(e);break;case"X":e=J(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Xn(e):P(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,s=o||!r?" ":"0";e="0"===s?i+(e=mt(e,t-i.length,s,o)):mt(i+e,t,s,o)}return e}function ft(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(st,(e,t,r,o,i,s)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=n[t];if(W(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=q(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?V(u,i):V(u);break;case"e":case"E":u=null!=i?Z(u,i):Z(u);break;case"p":case"P":i=null!=i?i:2,u=q(z(u,100),i)+" %";break;case"d":case"D":u=null!=i?gt(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?gt(J(u),i,"0"):J(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,(n,t,r)=>{ut(u,0)&&(u=z(u,-1),e="-"),r=null==r?"":r.substring(1),u=q(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i="");o=gt(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,n,t){return mt(e,n,t,!0)}(i,s,"0"):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o}),u=e+u}}else u=u instanceof Date?Xn(u,s||o):P(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=mt(String(u),Math.abs(r)," ",r<0)),u})}function dt(e){return"string"!=typeof e||0===e.length}function ht(e){return"string"!=typeof e||/^\s*$/.test(e)}function pt(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function mt(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 gt(e,n,t){return mt(e,n,t)}function wt(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=(n=n||[]).filter(e=>e).map(rt)).length>0?n:["\\s"];const s=[],u=new RegExp(n.join("|"),"g");let c=!0,a=0;do{const n=u.exec(e);if(null===n){const n=i?e.substring(a).trim():e.substring(a);(!o||n.length>0)&&s.push(n),c=!1}else{const r=i?e.substring(a,n.index).trim():e.substring(a,n.index);(!o||r.length>0)&&(null!=t&&s.length+1===t?(s.push(i?e.substring(a).trim():e.substring(a)),c=!1):s.push(r)),a=u.lastIndex}}while(c);return s}function _t(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)}const yt=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,vt=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,bt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ct(e){function n(e){return e.replace(vt,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(yt.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+rt(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(vt.test(t))return n(t);if(bt.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 xt(e,n){try{return n.contents=Ct(e),!0}catch(e){return!1}}class St extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function Et(){return bn("MetadataTypes.StreamId",[],St,()=>[[["Item",En]]])}function kt(e){return e.fields[0]}function At(e,n){return"function"==typeof e?new e(n):new Array(n)}function It(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Nt(e,n,t){const r=0|n.length,o=At(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function Tt(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=At(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function Pt(e){return e.slice().reverse()}function Ot(e,n,t){return t.reduce(e,n)}function Dt(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=r*e|0;o=n.slice(i,i+e),t.push(o)}return t}}function Mt(e,n,t){if(null==n)return null==t;if(null==t)return!1;{let r=0,o=!0;const i=0|n.length,s=0|t.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(n[r],t[r]),r=r+1|0;return o}}function Ut(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}class Bt extends L{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+pt("; ",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],s=o[1];if(v(t.head,r.head)){e=i,n=s;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,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+w(i.head)+631*r,t=u}}})(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],s=o[1],u=0|S(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new Rt(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return a(this)}}class Rt{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 Lt(){return new Bt(null,void 0)}function Gt(e,n){return new Bt(e,n)}function jt(e){return null==e.tail}function Ft(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 Ht(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Wt(e){const n=e.tail;if(null!=n)return n;throw new Error("Collection was empty.\\nParameter name: list")}function zt(){return Lt()}function qt(e,n){return Gt(e,n)}function Vt(e){return Gt(e,Lt())}function Zt(e){return jt(e)}function Jt(e){return Ft(e)}function Xt(e){return Ht(e)}function Yt(e){return Wt(e)}function Kt(e){const n=0|Ft(e),t=It(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(jt(o))break;t[r]=Ht(o),e=r+1,n=Wt(o)}})(0,e),t}function Qt(e,n,t){let r=n,o=t;for(;!jt(o);)r=e(r,Ht(o)),o=Wt(o);return r}function er(e){return Qt((e,n)=>Gt(n,e),Lt(),e)}function nr(e,n){Qt((n,t)=>{e(t)},void 0,n)}function tr(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=Gt(e[n],t);return t}function rr(e){return tr(e,Lt())}function or(e){let n,t;if(r(e))return rr(e);if(e instanceof Bt)return e;{const r=Lt();let o=r;const i=a(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();n=o,t=new Bt(e,void 0),n.tail=t,o=t}}finally{s(i)}const u=o,c=Lt();return u.tail=c,Wt(r)}}function ir(e,n){return Qt((e,n)=>Gt(n,e),n,er(e))}function sr(e,n){const t=Lt(),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(jt(s))return i;n=o+1,t=e(o,i,Ht(s)),r=Wt(s)}})(0,n,t)}((n,t,r)=>{const o=new Bt(e(n,r),void 0);return t.tail=o,o},t,n),o=Lt();return r.tail=o,Wt(t)}function ur(e,n){const t=Lt(),r=Qt((n,t)=>{const r=new Bt(e(t),void 0);return n.tail=r,r},t,n),o=Lt();return r.tail=o,Wt(t)}function cr(e,n){return(n=>{e:for(;;){const t=n;if(jt(t))return;{const r=e(Ht(t));if(null==r){n=Wt(t);continue e}return r}}})(n)}function ar(e,n){return cr(n=>e(n)?Rn(n):void 0,n)}function lr(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(jt(o))return;if(r===e)return Rn(Ht(o));n=r+1,t=Wt(o)}})(0,n)}function $r(){return e=S,{Compare:(n,t)=>e(n,t)};var e}function fr(){return $r()}function dr(){throw new Error("Enumeration has not started. Call MoveNext.")}function hr(){throw new Error("Enumeration already finished.")}class pr{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=a(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=P(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{s(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class mr{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 gr(e,n,t){return new mr(e,n,t)}function wr(e,n,t){let r=!1,o=void 0,i=Rn(e());const s=()=>{if(null!=i){const e=Ln(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return gr(()=>(r||dr(),null!=o?Ln(o):hr()),()=>{if(r||(r=!0),null!=i){const e=Ln(i);let t;try{t=n(e)}catch(e){throw u(),e}return null!=t?(o=t,!0):(u(),!1)}return!1},s)}function _r(e,n){null==n&&function(e){throw new Error(e)}(e)}function yr(e){return function(e){return new pr(e)}(e)}function vr(e){return _r("source",e),a(e)}function br(e){return yr(()=>a(e()))}function Cr(e){return yr(()=>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{s(e)}finally{t=void 0}}if(null!=n){const e=n;try{s(e)}finally{n=void 0}}};return gr(()=>(r?o&&hr():dr(),null!=i?Ln(i):hr()),()=>{let c;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=Rn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{s(e)}finally{t=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=a(c)}else u(),r=!1}else n=a(e)}return Ln(r)}},()=>{o||u()})}(e))}function xr(){return br(()=>new Array(0))}function Sr(e){return br(()=>function(e,n){const t=At(n,1);return t[0]=e,t}(e))}function Er(e){return e instanceof Bt?Kt(e):Array.from(e)}function kr(e){return r(e)?rr(e):e instanceof Bt?e:or(e)}function Ar(e,n,t){return yr(()=>wr(e,n,t))}function Ir(e,n,t){return yr(()=>{let r=-1;return wr(e,e=>(r=r+1|0,n(r,e)),t)})}function Nr(e,n){return Cr([e,n])}function Tr(e,n){return Ar(()=>vr(n),n=>{let t=void 0;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t},e=>{s(e)})}function Pr(e,n,t){const r=vr(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{s(r)}}function Or(e,n,t){const r=vr(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{s(r)}}function Dr(e,n){Or((n,t)=>{e(t)},void 0,n)}function Mr(e,n){return Ar(()=>vr(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?Rn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{s(e)})}function Ur(e,n){return Ir(()=>vr(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Rn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{s(e)})}Symbol.iterator;function Br(e){return br(()=>Pt(Er(e)))}!function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),n=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),t=new Uint32Array(e),r=new Uint8Array(n);for(let e=1;e<t.length;++e)t[e]+=t[e-1]}();function Rr(e){let n;const t=function(e,n){const t=function(e,n,t=0){return e.lastIndex=t,e.exec(n)}(tt(e),n);return null!=t?Yt(kr(br(()=>Mr(e=>e||"",t)))):void 0}(".*?@(.*)",e);switch(n=null!=t?Zt(t)?1:Zt(Yt(t))?0:1:1,n){case 0:return e;case 1:return}}function Lr(e,n){return dt(n)?new Hn(1,lt(ct("%s cannot be null or empty"))(e)):new Hn(0,n)}class Gr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}class jr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class Fr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class Hr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class Wr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class zr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class qr extends L{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class Vr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class Zr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function Jr(){return bn("BasicModels.PartnerId",[],Zr,()=>[[["Item",En]]])}class Xr extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function Yr(){return bn("BasicModels.AccountId",[],Xr,()=>[[["Item",En]]])}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}function eo(e){return e.fields[0]}function no(e){return e.fields[0]}function to(e){let n;const t=Lr("Email",e);return n=1===t.tag?new Hn(1,t.fields[0]):function(e){const n=Rr(e);if(null!=n){return new Hn(0,n)}return new Hn(1,"Email is not in the correct format")}(t.fields[0]),1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Wr(0,n.fields[0]))}function ro(e){return e.fields[0]}class oo extends L{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function io(){return vn("Dto.Primitives.ContactDetails",[],oo,()=>[["FirstName",En],["LastName",En],["Email",En],["MobilePhone",En]])}function so(e){const n=function(e){const n=Lr("FirstName",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Fr(0,n.fields[0]))}(e.FirstName);if(1===n.tag)return new Hn(1,n.fields[0]);{const t=function(e){const n=Lr("LastName",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Hr(0,n.fields[0]))}(e.LastName);if(1===t.tag)return new Hn(1,t.fields[0]);{const r=to(e.Email);if(1===r.tag)return new Hn(1,r.fields[0]);{const o=function(e){const n=Lr("MobilePhone",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new zr(0,n.fields[0]))}(e.MobilePhone);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,new qr(n.fields[0],t.fields[0],r.fields[0],o.fields[0]))}}}}function uo(e){return e.fields[0]}function co(e){return e.fields[0]}class ao extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}class lo extends L{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class $o extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=c}}function fo(){return vn("Dto.AdminApi.Account",[],$o,()=>[["StreamId",En],["PartnerId",En],["Name",En],["Website",En],["ContactDetails",io()],["Notes",Cn(En)],["LegalEntity",Cn(vn("Dto.Primitives.LegalEntity",[],ao,()=>[["BusinessName",En],["BusinessNumber",En],["Address1",En],["Address2",Cn(En)],["City",En],["Postcode",En],["State",Cn(En)],["Phone",En],["CountryCode",Cn(En)]]))],["ExternalId",Cn(En)],["ChannelId",Cn(En)]])}class ho extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=c}}function po(){return vn("Dto.AdminApi.AccountLookupItem",[],ho,()=>[["AccountId",En],["Name",En],["Contact",En],["ContactMobilePhone",En],["Website",En],["BusinessName",Cn(En)],["BusinessNumber",Cn(En)],["ExternalId",Cn(En)],["ChannelId",Cn(En)]])}class mo extends L{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function go(){return vn("Dto.AdminApi.AccountLookup",[],mo,()=>[["Accounts",xn(po())],["Token",Cn(En)]])}var wo,_o,yo,vo,bo,Co,xo,So={},Eo=[],ko=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ao(e,n){for(var t in n)e[t]=n[t];return e}function Io(e){var n=e.parentNode;n&&n.removeChild(e)}function No(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?wo.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return To(e,s,r,o,null)}function To(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?++yo:o};return null==o&&null!=_o.vnode&&_o.vnode(i),i}function Po(e){return e.children}function Oo(e,n){this.props=e,this.context=n}function Do(e,n){if(null==n)return e.__?Do(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?Do(e):null}function Mo(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 Mo(e)}}function Uo(e){(!e.__d&&(e.__d=!0)&&vo.push(e)&&!Bo.__r++||Co!==_o.debounceRendering)&&((Co=_o.debounceRendering)||bo)(Bo)}function Bo(){for(var e;Bo.__r=vo.length;)e=vo.sort((function(e,n){return e.__v.__b-n.__v.__b})),vo=[],e.some((function(e){var n,t,r,o,i,s;e.__d&&(i=(o=(n=e).__v).__e,(s=n.__P)&&(t=[],(r=Ao({},o)).__v=o.__v+1,qo(s,o,r,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?Do(o):i,o.__h),Vo(t,o),o.__e!=i&&Mo(o)))}))}function Ro(e,n,t,r,o,i,s,u,c,a){var l,$,f,d,h,p,m,g=r&&r.__k||Eo,w=g.length;for(t.__k=[],l=0;l<n.length;l++)if(null!=(d=t.__k[l]=null==(d=n[l])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?To(null,d,null,null,d):Array.isArray(d)?To(Po,{children:d},null,null,null):d.__b>0?To(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(f=g[l])||f&&d.key==f.key&&d.type===f.type)g[l]=void 0;else for($=0;$<w;$++){if((f=g[$])&&d.key==f.key&&d.type===f.type){g[$]=void 0;break}f=null}qo(e,d,f=f||So,o,i,s,u,c,a),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Lo(d,c,e):c=jo(e,d,f,g,h,c),"function"==typeof t.type&&(t.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=Do(f))}for(t.__e=p,l=w;l--;)null!=g[l]&&("function"==typeof t.type&&null!=g[l].__e&&g[l].__e==t.__d&&(t.__d=Do(r,l+1)),Jo(g[l],g[l]));if(m)for(l=0;l<m.length;l++)Zo(m[l],m[++l],m[++l])}function Lo(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Lo(r,n,t):jo(t,r,r,o,r.__e,n));return n}function Go(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Go(e,n)})):n.push(e)),n}function jo(e,n,t,r,o,i){var s,u,c;if(void 0!==n.__d)s=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),s=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Fo(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||ko.test(n)?t:t+"px"}function Ho(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||Fo(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Fo(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?zo:Wo,i):e.removeEventListener(n,i?zo:Wo,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 Wo(e){this.l[e.type+!1](_o.event?_o.event(e):e)}function zo(e){this.l[e.type+!0](_o.event?_o.event(e):e)}function qo(e,n,t,r,o,i,s,u,c){var a,l,$,f,d,h,p,m,g,w,_,y=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(a=_o.__b)&&a(n);try{e:if("function"==typeof y){if(m=n.props,g=(a=y.contextType)&&r[a.__c],w=a?g?g.props.value:a.__:r,t.__c?p=(l=n.__c=t.__c).__=l.__E:("prototype"in y&&y.prototype.render?n.__c=l=new y(m,w):(n.__c=l=new Oo(m,w),l.constructor=y,l.render=Xo),g&&g.sub(l),l.props=m,l.state||(l.state={}),l.context=w,l.__n=r,$=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=y.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=Ao({},l.__s)),Ao(l.__s,y.getDerivedStateFromProps(m,l.__s))),f=l.props,d=l.state,$)null==y.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,w),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,w)||n.__v===t.__v){l.props=m,l.state=l.__s,n.__v!==t.__v&&(l.__d=!1),l.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),l.__h.length&&s.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,w),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,d,h)}))}l.context=w,l.props=m,l.state=l.__s,(a=_o.__r)&&a(n),l.__d=!1,l.__v=n,l.__P=e,a=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=Ao(Ao({},r),l.getChildContext())),$||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,d)),_=null!=a&&a.type===Po&&null==a.key?a.props.children:a,Ro(e,Array.isArray(_)?_:[_],n,t,r,o,i,s,u,c),l.base=n.__e,n.__h=null,l.__h.length&&s.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=function(e,n,t,r,o,i,s,u){var c,a,l,$=t.props,f=n.props,d=n.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&wo.call(e.childNodes),a=($=t.props||So).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(l||a)&&(l&&(a&&l.__html==a.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Ho(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]||Ho(e,i,n[i],t[i],r)}(e,f,$,o,u),l)n.__k=[];else if(h=n.props.children,Ro(e,Array.isArray(h)?h:[h],n,t,r,o&&"foreignObject"!==d,i,s,i?i[0]:t.__k&&Do(t,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Io(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h||"option"===d&&h!==$.value)&&Ho(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Ho(e,"checked",h,$.checked,!1))}return e}(t.__e,n,t,r,o,i,s,c);(a=_o.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),_o.__e(e,n,t)}}function Vo(e,n){_o.__c&&_o.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){_o.__e(e,n.__v)}}))}function Zo(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){_o.__e(e,t)}}function Jo(e,n,t){var r,o;if(_o.unmount&&_o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zo(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){_o.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Jo(r[o],n,"function"!=typeof e.type);t||null==e.__e||Io(e.__e),e.__e=e.__d=void 0}function Xo(e,n,t){return this.constructor(e,t)}function Yo(e,n,t){var r,o,i;_o.__&&_o.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],qo(n,e=(!r&&t||n).__k=No(Po,null,[e]),o||So,So,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?wo.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Vo(i,e)}function Ko(e,n){Yo(e,n,Ko)}function Qo(e,n,t){var r,o,i,s=Ao({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?wo.call(arguments,2):t),To(e.type,s,r||e.key,o||e.ref,null)}wo=Eo.slice,_o={__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}},yo=0,Oo.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ao({},this.state),"function"==typeof e&&(e=e(Ao({},t),this.props)),e&&Ao(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),Uo(this))},Oo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Uo(this))},Oo.prototype.render=Po,vo=[],bo="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bo.__r=0,xo=0;var ei,ni,ti,ri=0,oi=[],ii=_o.__b,si=_o.__r,ui=_o.diffed,ci=_o.__c,ai=_o.unmount;function li(e,n){_o.__h&&_o.__h(ni,e,ri||n),ri=0;var t=ni.__H||(ni.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function $i(e){return ri=1,fi(bi,e)}function fi(e,n,t){var r=li(ei++,2);return r.t=e,r.__c||(r.__=[t?t(n):bi(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=ni),r.__}function di(e,n){var t=li(ei++,3);!_o.__s&&vi(t.__H,n)&&(t.__=e,t.__H=n,ni.__H.__h.push(t))}function hi(e,n){var t=li(ei++,4);!_o.__s&&vi(t.__H,n)&&(t.__=e,t.__H=n,ni.__h.push(t))}function pi(e,n){var t=li(ei++,7);return vi(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function mi(e,n){_o.useDebugValue&&_o.useDebugValue(n?n(e):e)}function gi(){for(var e;e=oi.shift();)if(e.__P)try{e.__H.__h.forEach(_i),e.__H.__h.forEach(yi),e.__H.__h=[]}catch(n){e.__H.__h=[],_o.__e(n,e.__v)}}_o.__b=function(e){ni=null,ii&&ii(e)},_o.__r=function(e){si&&si(e),ei=0;var n=(ni=e.__c).__H;n&&(n.__h.forEach(_i),n.__h.forEach(yi),n.__h=[])},_o.diffed=function(e){ui&&ui(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==oi.push(n)&&ti===_o.requestAnimationFrame||((ti=_o.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),wi&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);wi&&(n=requestAnimationFrame(t))})(gi)),ni=null},_o.__c=function(e,n){n.some((function(e){try{e.__h.forEach(_i),e.__h=e.__h.filter((function(e){return!e.__||yi(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],_o.__e(t,e.__v)}})),ci&&ci(e,n)},_o.unmount=function(e){ai&&ai(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{_i(e)}catch(e){n=e}})),n&&_o.__e(n,t.__v))};var wi="function"==typeof requestAnimationFrame;function _i(e){var n=ni,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),ni=n}function yi(e){var n=ni;e.__c=e.__(),ni=n}function vi(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function bi(e,n){return"function"==typeof n?n(e):n}function Ci(e,n){for(var t in n)e[t]=n[t];return e}function xi(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 Si(e){this.props=e}(Si.prototype=new Oo).isPureReactComponent=!0,Si.prototype.shouldComponentUpdate=function(e,n){return xi(this.props,e)||xi(this.state,n)};var Ei=_o.__b;_o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ei&&Ei(e)};var ki="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ai(e){function n(n,t){var r=Ci({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=ki,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Ii=function(e,n){return null==e?null:Go(Go(e).map(n))},Ni={map:Ii,forEach:Ii,count:function(e){return e?Go(e).length:0},only:function(e){var n=Go(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Go},Ti=_o.__e;_o.__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);Ti(e,n,t)};var Pi=_o.unmount;function Oi(){this.__u=0,this.t=null,this.__b=null}function Di(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Mi(){this.u=null,this.o=null}_o.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Pi&&Pi(e)},(Oi.prototype=new Oo).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Di(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=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(s,s)},Oi.prototype.componentWillUnmount=function(){this.t=[]},Oi.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=Ci({},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&&No(Po,null,e.fallback);return o&&(o.__h=null),[No(Po,null,n.__e?null:e.children),o]};var Ui=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 Bi(e){return this.getChildContext=function(){return e.context},e.children}function Ri(e){var n=this,t=e.i;n.componentWillUnmount=function(){Yo(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)}}),Yo(No(Bi,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Mi.prototype=new Oo).__e=function(e){var n=this,t=Di(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ui(n,e,r)):o()};t?t(i):i()}},Mi.prototype.render=function(e){this.u=null,this.o=new Map;var n=Go(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},Mi.prototype.componentDidUpdate=Mi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ui(e,t,n)}))};var Li="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Gi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|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]/,ji="undefined"!=typeof document,Fi=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Oo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Oo.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Hi=_o.event;function Wi(){}function zi(){return this.cancelBubble}function qi(){return this.defaultPrevented}_o.event=function(e){return Hi&&(e=Hi(e)),e.persist=Wi,e.isPropagationStopped=zi,e.isDefaultPrevented=qi,e.nativeEvent=e};var Vi,Zi={configurable:!0,get:function(){return this.class}},Ji=_o.vnode;_o.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var s=t[i];ji&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==s||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Fi(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Gi.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Go(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Go(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(Zi.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Zi))}e.$$typeof=Li,Ji&&Ji(e)};var Xi=_o.__r;_o.__r=function(e){Xi&&Xi(e),Vi=e.__c};function Yi(e){return!!e&&e.$$typeof===Li}const Ki={useState:$i,useReducer:fi,useEffect:di,useLayoutEffect:hi,useRef:function(e){return ri=5,pi((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){ri=6,hi((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:pi,useCallback:function(e,n){return ri=8,pi((function(){return e}),n)},useContext:function(e){var n=ni.context[e.__c],t=li(ei++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(ni)),n.props.value):e.__},useDebugValue:mi,version:"17.0.2",Children:Ni,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Yo(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Ko(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Yo(null,e),!0)},createPortal:function(e,n){return No(Ri,{__v:e,i:n})},createElement:No,createContext:function(e,n){var t={__c:n="__cC"+xo++,__: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(Uo)},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 No.bind(null,e)},cloneElement:function(e){return Yi(e)?Qo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Po,isValidElement:Yi,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Oo,PureComponent:Si,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:xi(this.props,e)}function r(n){return this.shouldComponentUpdate=t,No(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Ai,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:Po,Suspense:Oi,SuspenseList:Mi,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 No(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return Vi.__n[e.__c].props.value}}}}},Qi=e=>{di(()=>{const n=e();return()=>{n.Dispose()}})},es=(e,n)=>{di(()=>{const n=e();return()=>{n.Dispose()}},n)},ns=e=>{hi(()=>{const n=e();return()=>{n.Dispose()}})};function ts(e,n,t,r){const o=Ki.memo(e,I(2,jn(T(2,t),null)));return Dr(n=>{e.displayName=n},Gn(n)),e=>{const n=rs(r,e);return Ki.createElement(o,n)}}function rs(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function os(e){return{Dispose(){e()}}}function is(e,n){es(e,n)}function ss(e){cs(e,[])}function us(e){is(e,[])}function cs(e,n){es(n=>(e(),os(()=>{})),n)}function as(e,n){const t=jn(n,[]);return Ki.useCallback(e,t)}function ls(e){return Ki.useRef(e)}function $s(e){const n=ls(e),t=as(e=>n.current(e),[]);var r;return r=()=>{n.current=e},ns(e=>(r(),os(()=>{}))),t}function fs(e){return Ki.useState(e)}class ds{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class hs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,hs.prototype)}}class ps{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ps.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ms(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new hs);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(F(e))}});else try{e(n)}catch(e){n.onError(F(e))}}}function gs(e,n){return ms(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(F(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ws(e){return ms(n=>n.onSuccess(e))}const _s=new class{Bind(e,n){return gs(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return ms(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 ws(e)}ReturnFrom(e){return e}TryFinally(e,n){return ms(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 ms(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(F(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 ms(e=>e.onSuccess(void 0))}};function ys(e){}function vs(e){const n=new ds("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function bs(e){e.cancel()}function Cs(e){return null!=e&&e.isCancelled}const xs=new ds;function Ss(e){return ms(n=>e([n.onSuccess,n.onError,n.onCancel]))}function Es(e,n){return function(e,n){return ks(e,n)}(e,n)}function ks(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ps;e({onSuccess:n||ys,onError:t||ys,onCancel:r||ys,cancelToken:o||xs,trampoline:i})}class As{constructor(e,n){this.k=e,this.v=n}}function Is(e,n){return new As(e,n)}function Ns(e){return e.k}function Ts(e){return e.v}class Ps extends As{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Os(e,n,t,r,o){return new Ps(e,n,t,r,o)}function Ds(e){return e.left}function Ms(e){return e.right}function Us(e){return e.h}function Bs(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ps){n=e(r+1,Ds(i)),t=Ms(i);continue e}return r+1|0}return 0|r}}(0,e)}function Rs(e,n,t,r){let o;if(null!=e){const n=e;o=n instanceof Ps?Us(n):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ps?Us(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Is(n,t):Os(n,t,e,r,s+1)}function Ls(e,n,t,r){let o,i,s,u,c;if(null!=e){const n=e;c=n instanceof Ps?Us(n):1}else c=0;let a;if(null!=r){const e=r;a=e instanceof Ps?Us(e):1}else a=0;if(a>c+2){const s=Ln(r);if(s instanceof Ps){if(o=Ds(s),(null!=o?(i=o,i instanceof Ps?Us(i):1):0)>c+1){const r=Ln(Ds(s));if(r instanceof Ps)return Rs(Rs(e,n,t,Ds(r)),Ns(r),Ts(r),Rs(Ms(r),Ns(s),Ts(s),Ms(s)));throw new Error("internal error: Map.rebalance")}return Rs(Rs(e,n,t,Ds(s)),Ns(s),Ts(s),Ms(s))}throw new Error("internal error: Map.rebalance")}if(c>a+2){const o=Ln(e);if(o instanceof Ps){if(s=Ms(o),(null!=s?(u=s,u instanceof Ps?Us(u):1):0)>a+1){const e=Ln(Ms(o));if(e instanceof Ps)return Rs(Rs(Ds(o),Ns(o),Ts(o),Ds(e)),Ns(e),Ts(e),Rs(Ms(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Rs(Ds(o),Ns(o),Ts(o),Rs(Ms(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Rs(e,n,t,r)}function Gs(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Ns(o));return o instanceof Ps?i<0?Ls(Gs(e,n,t,Ds(o)),Ns(o),Ts(o),Ms(o)):0===i?Os(n,t,Ds(o),Ms(o),Us(o)):Ls(Ds(o),Ns(o),Ts(o),Gs(e,n,t,Ms(o))):i<0?Os(n,t,void 0,r,2):0===i?Is(n,t):Os(n,t,r,void 0,2)}return Is(n,t)}function js(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Ns(s));if(0===u)return Rn(Ts(s));if(s instanceof Ps){e=r,n=o,t=u<0?Ds(s):Ms(s);continue e}return}return}}function Fs(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ps){e(r,Ds(i)),r(Ns(i),Ts(i)),n=r,t=Ms(i);continue e}r(Ns(i),Ts(i))}break}}(e,n)}function Hs(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof Ps){const t=e(n,Ds(r)),o=n(Ns(r),Ts(r)),i=e(n,Ms(r));return Os(Ns(r),o,t,i,Us(r))}return Is(Ns(r),n(Ns(r),Ts(r)))}}(e,n)}function Ws(e,n,t){let r=t;Fs((e,t)=>{n[r]=[e,t],r=r+1|0},e)}function zs(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Gs(e,o[0],o[1],t)}return t}function qs(e,n){if(r(n))return zs(e,n);if(n instanceof Bt)return function(e,n){return Qt((n,t)=>Gs(e,t[0],t[1],n),void 0,n)}(e,n);{const t=a(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Gs(r,s[0],s[1],o),t=i}}}(e,void 0,t)}finally{s(t)}}}class Vs extends L{constructor(e,n){super(),this.stack=e,this.started=n}}function Zs(e){e:for(;;){const n=e;if(Zt(n))return zt();{const t=Yt(n),r=Xt(n);if(null!=r){const o=r;if(o instanceof Ps){e=tr([Ds(o),Is(Ns(o),Ts(o)),Ms(o)],t);continue e}return n}e=t;continue e}}}function Js(e){return new Vs(Zs(Vt(e)),!1)}function Xs(e){if(e.started){const n=e.stack;if(Zt(n))return function(){throw new Error("enumeration already finished")}();if(null!=Xt(n)){const e=Xt(n);if(e instanceof Ps)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ns(e),Ts(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Ys(e){let n=Js(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Xs(n),"System.Collections.IEnumerator.get_Current":()=>Xs(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Zt(n))return!1;if(null!=Xt(n)){if(Xt(n)instanceof Ps)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Zs(Yt(n)),!Zt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Zt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Js(e)},Dispose(){}}}class Ks{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=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,w(e[0])),t=0|n(t,w(e[1]))}}finally{s(r)}return 0|t}(this)}Equals(e){if(!(e instanceof Ks))return!1;{const n=a(this);try{const t=a(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{s(t)}}finally{s(n)}}}toString(){return"map ["+pt("; ",Mr(e=>ft("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Ys(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ys(this.tree)}CompareTo(e){const n=this;if(e instanceof Ks)return 0|function(e,n,t){const r=vr(n);try{const n=vr(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{s(n)}}finally{s(r)}}((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 ru(this,e[0])&&v(nu(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Ws(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|tu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|tu(this)}get size(){return 0|tu(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Mr(e=>[e[0],e[1]],this)}get(e){return nu(this,e)}has(e){return ru(this,e)}keys(){return Mr(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Mr(e=>e[1],this)}forEach(e,n){const t=this;Dr(n=>{e(n[1],n[0],t)},t)}}function Qs(e,n){return new Ks(e,n)}function eu(e){const n=fr();return Qs(n,qs(n,e))}function nu(e,n){return function(e,n,t){const r=js(e,n,t);if(null==r)throw new Error;return Ln(r)}(e.comparer,n,e.tree)}function tu(e){return Bs(e.tree)}function ru(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Ns(s));if(s instanceof Ps){if(u<0){e=r,n=o,t=Ds(s);continue e}if(0===u)return!0;e=r,n=o,t=Ms(s);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function ou(e,n,t){return function(e,n,t){return Qs(e.comparer,Gs(e.comparer,n,t,e.tree))}(t,e,n)}function iu(e,n){return function(e,n){return js(e.comparer,n,e.tree)}(n,e)}function su(e,n){return r=e,Qs((t=n).comparer,Hs(r,t.tree));var t,r}function uu(e){return eu(e)}function cu(){return Ks.empty}Ks.empty=Qs(fr(),void 0);class au extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function lu(e){return bn("Feliz.UseDeferred.Deferred`1",[e],au,()=>[[],[],[["Item",e]],[["Item",yn("System.Exception")]]])}function $u(e,n){const t=ls(vs());return us(()=>os(()=>{bs(t.current)})),$s(r=>{Cs(t.current)||Es(_s.Delay(()=>_s.TryWith(_s.Delay(()=>(n(new au(1)),_s.Bind(e(r),e=>(n(new au(2,e)),_s.Zero())))),e=>(n(new au(3,e)),_s.Zero()))),t.current)})}function fu(){return zt()}function du(e){return Vt(e)}function hu(e,n){return 0===n.indexOf(e)?n:void 0}function pu(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 mu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s;return n=hu("/",e),null!=n?(t=n,"#"+t):(r=hu("#/",e),null!=r?(o=r,o):(i=hu("#",e),null!=i?(s=i,"#/"+_t(s,1,s.length-1)):"#/"+e))}:e=>{let n,t;return n=hu("/",e),null!=n?(t=n,t):"/"+e}}(n)(pt("/",ur(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function gu(e,n,t){1===n?history.pushState(void 0,"",mu(e,t)):history.replaceState(void 0,"",mu(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function wu(e,n){return function(e,n){let t,r;const o=Lt();let i=o,s=n;for(;!jt(s);){let n=e(Ht(s));for(;!jt(n);)t=i,r=new Bt(Ht(n),void 0),t.tail=r,i=r,n=Wt(n);s=Wt(s)}const u=i,c=Lt();return u.tail=c,Wt(o)}(e=>{if(ht(e))return zt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+rt(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return zt();if(null!=hu("?",n))return Vt(n);{const e=n.split("?");if(Mt((e,n)=>e===n,e,null)||1!==e.length){if(Mt((e,n)=>e===n,e,null)||2!==e.length)return zt();if(""===e[1]){const n=e[0];return Vt(decodeURIComponent(n))}{const n=e[0],t=e[1];return rr([decodeURIComponent(n),"?"+t])}}{const n=e[0];return Vt(decodeURIComponent(n))}}}},rr(wt(null!=hu("#",e)?_t(e,1,e.length-1):1===n&&(null!=pu("#",e)||null!=pu("#/",e))?"":e,["/"],null,0)))}const _u=ts(e=>{const n=$s(n=>{const t=jn(e.onUrlChanged,e=>{});!function(e,n,t){n(wu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(jn(e.hashMode,1),t)});us(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",n):window.addEventListener("popstate",n),window.addEventListener("CUSTOM_NAVIGATION_EVENT",n),os(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",n):window.removeEventListener("popstate",n),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",n)}))),ss(()=>{const e=document.createEvent("CustomEvent");e.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(e)});const t=e.application;return null==t?null:t},void 0,vu,yu);var yu,vu;class bu extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Cu extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function xu(e){return 0===e.tag?new Cu(1):new Cu(0)}class Su extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Eu=new Su(0,new bu(1),new Cu(0));function ku(e){return e.fields[0]}function Au(e){return e.fields[1]}function Iu(e,n){const t=n.fields[1],r=[e,n.fields[0]];return 1===r[0].tag?1===r[1].tag?new Su(0,new bu(1),xu(t)):new Su(0,new bu(1),new Cu(0)):0===r[1].tag?new Su(0,new bu(0),xu(t)):new Su(0,new bu(0),new Cu(0))}class Nu extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Tu=new Nu(0,"");function Pu(e){return e.fields[0]}class Ou extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Du(e){return e.fields[0]}class Mu extends L{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Uu extends L{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Bu(){return vn("AccountRegistry.AdminUI.Types.Partner",[],Uu,()=>[["StreamId",Et()],["Name",bn("BasicModels.Name",[],Gr,()=>[[["Item",En]]])],["Website",bn("BasicModels.Website",[],jr,()=>[[["Item",En]]])],["ContactDetails",vn("BasicModels.ContactDetails",[],qr,()=>[["FirstName",bn("BasicModels.FirstName",[],Fr,()=>[[["Item",En]]])],["LastName",bn("BasicModels.LastName",[],Hr,()=>[[["Item",En]]])],["Email",bn("BasicModels.Email",[],Wr,()=>[[["Item",En]]])],["MobilePhone",bn("BasicModels.MobilePhone",[],zr,()=>[[["Item",En]]])]])],["Notes",Cn(bn("BasicModels.Notes",[],Vr,()=>[[["Item",En]]]))]])}function Ru(e){const n=function(e){const n=Lr("Name",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Gr(0,n.fields[0]))}(e.Name);if(1===n.tag)return new Hn(1,n.fields[0]);{const r=function(e){const n=Lr("Website",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new jr(0,n.fields[0]))}(e.Website);if(1===r.tag)return new Hn(1,r.fields[0]);{const o=so(e.ContactDetails);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,new Uu(new St(0,e.StreamId),n.fields[0],r.fields[0],o.fields[0],null==(t=e.Notes)?void 0:new Vr(0,t)))}}var t}class Lu extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","NotFound"]}}function Gu(){return bn("AccountRegistry.AdminUI.Types.Page",[],Lu,()=>[[],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[]])}function ju(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h;switch(Zt(e)?n=10:"account-registry"===Xt(e)?Zt(Yt(e))?n=10:"partners"===Xt(Yt(e))?Zt(Yt(Yt(e)))?n=0:Zt(Yt(Yt(Yt(e))))?(n=1,t=Xt(Yt(Yt(e)))):"accounts"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=2,r=Xt(Yt(Yt(e)))):Zt(Yt(Yt(Yt(Yt(Yt(e))))))?(n=6,u=Xt(Yt(Yt(Yt(Yt(e))))),c=Xt(Yt(Yt(e)))):"super-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))?Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=7,a=Xt(Yt(Yt(Yt(Yt(e))))),l=Xt(Yt(Yt(e)))):n=10:"benefits-onboarding-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))?Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=8,$=Xt(Yt(Yt(Yt(Yt(e))))),f=Xt(Yt(Yt(e)))):n=10:"bank-details-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))&&Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=9,d=Xt(Yt(Yt(Yt(Yt(e))))),h=Xt(Yt(Yt(e)))):n=10:"super-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=3,o=Xt(Yt(Yt(e)))):n=10:"benefits-onboarding-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=4,i=Xt(Yt(Yt(e)))):n=10:"bank-details-configuration"===Xt(Yt(Yt(Yt(e))))&&Zt(Yt(Yt(Yt(Yt(e)))))?(n=5,s=Xt(Yt(Yt(e)))):n=10:n=10:n=10,n){case 0:return new Lu(0);case 1:return new Lu(1,new Zr(0,t));case 2:return new Lu(2,new Zr(0,r));case 3:return new Lu(3,new Zr(0,o));case 4:return new Lu(4,new Zr(0,i));case 5:return new Lu(5,new Zr(0,s));case 6:return new Lu(6,new Zr(0,c),new Xr(0,u));case 7:return new Lu(7,new Zr(0,l),new Xr(0,a));case 8:return new Lu(8,new Zr(0,f),new Xr(0,$));case 9:return new Lu(9,new Zr(0,h),new Xr(0,d));case 10:return new Lu(10)}}function Fu(e){switch(e.tag){case 1:return rr(["account-registry","partners",uo(e.fields[0])]);case 2:return rr(["account-registry","partners",uo(e.fields[0]),"accounts"]);case 3:return rr(["account-registry","partners",uo(e.fields[0]),"super-configuration"]);case 4:return rr(["account-registry","partners",uo(e.fields[0]),"benefits-onboarding-configuration"]);case 5:return rr(["account-registry","partners",uo(e.fields[0]),"bank-details-configuration"]);case 6:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1])]);case 7:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"super-configuration"]);case 8:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"benefits-onboarding-configuration"]);case 9:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"bank-details-configuration"]);default:return rr(["account-registry","partners"])}}function Hu(e){switch(e.tag){case 1:{const n=["account-registry","partners",uo(e.fields[0])];return du(e=>{gu(rr(n),1,1)})}case 2:{const n=["account-registry","partners",uo(e.fields[0]),"accounts"];return du(e=>{gu(rr(n),1,1)})}case 3:{const n=["account-registry","partners",uo(e.fields[0]),"super-configuration"];return du(e=>{gu(rr(n),1,1)})}case 4:{const n=["account-registry","partners",uo(e.fields[0]),"benefits-onboarding-configuration"];return du(e=>{gu(rr(n),1,1)})}case 5:{const n=["account-registry","partners",uo(e.fields[0]),"bank-details-configuration"];return du(e=>{gu(rr(n),1,1)})}case 6:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1])];return du(e=>{gu(rr(n),1,1)})}case 7:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"super-configuration"];return du(e=>{gu(rr(n),1,1)})}case 8:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"benefits-onboarding-configuration"];return du(e=>{gu(rr(n),1,1)})}case 9:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"bank-details-configuration"];return du(e=>{gu(rr(n),1,1)})}default:{const e=["account-registry","partners"];return du(n=>{gu(rr(e),1,1)})}}}class Wu extends L{constructor(e){super(),this.Partners=e}}function zu(){return vn("AccountRegistry.AdminUI.Types.Data",[],Wu,()=>[["Partners",xn(Bu())]])}class qu extends L{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Vu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Vu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}$n(2013265921,0,!1),$n(2013265921,0,!0);Tt(28,e=>Vu(2,e),Int32Array);function Zu(e){return e.bound}function Ju(e,n){return e.digits[n]}function Xu(e,n){return hn(Ju(e,n),!1,2)}function Yu(e,n,t){e.digits[n]=0|t}function Ku(e,n){for(;;){const t=e,r=n;if(0===r)return $n(1,0,!1);if(r%2!=0)return on(t,Ku(on(t,t),~~(r/2)));e=on(t,t),n=~~(r/2)}}function Qu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Qu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const ec=$n(16777216,0,!1),nc=$n(16777215,0,!1);$n(16777215,0,!0);function tc(e){return new qu(e,new Int32Array(e))}function rc(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 oc(e){const n=0|(e<0?0:e);if(n<16777216){const e=tc(1);return e.digits[0]=0|n,rc(e)}{const e=tc(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/Qu(16777216,t))%16777216|0;return rc(e)}}function ic(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 sc=oc(1),uc=oc(0);function cc(e){return e.bound-1}function ac(e){return 0===e.bound}function lc(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 $c(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 fc(e,n){return-1===$c(e,n)}function dc(e,n,t){for(;;){const r=e,o=n,i=t;if(!(ln(o,$n(0,0,!1))>0))break;{const s=rn(Xu(r,i),o);Yu(r,i,~~fn(an(s,nc))),e=r,n=sn(s,ec),t=i+1}}}function hc(e,n){const t=0|Zu(e),r=tc(t+1),o=hn(n,!1,2);let i=$n(0,0,!1);for(let n=0;n<=t-1;n++){const t=rn(rn(i,Xu(r,n)),on(Xu(e,n),o));Yu(r,n,~~fn(an(t,nc))),i=sn(t,ec)}return dc(r,i,t),rc(r)}function pc(e,n){const t=1===Zu(e),r=1===Zu(n);return t&&r?function(e,n){const t=tc(2),r=on(hn(e,!1,2),hn(n,!1,2));return Yu(t,0,~~fn(an(r,nc))),Yu(t,1,~~fn(sn(r,ec))),rc(t)}(Ju(e,0),Ju(n,0)):t?hc(n,Ju(e,0)):r?hc(e,Ju(n,0)):function(e,n){const t=tc(e.bound+n.bound),r=t.digits;for(let o=0;o<=e.bound-1;o++){const i=hn(e.digits[o],!1,2);let s=$n(0,0,!1),u=o;for(let e=0;e<=n.bound-1;e++){const t=hn(n.digits[e],!1,2),o=rn(rn(hn(r[u],!1,2),s),on(i,t));r[u]=0|~~fn(an(o,nc)),s=sn(o,ec),u=u+1|0}dc(t,s,u)}return rc(t)}(e,n)}class mc extends L{constructor(e,n,t,r,o,i,s){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=s}}function gc(e,n,t,r){return new mc(e,Qu(2,e),n,t,r,~~(24/e),Tt(~~(24/e),n=>Qu(2,e*n),Int32Array))}const wc=[gc(1,28,268435456,268435456),gc(2,26,67108864,134217728),gc(3,24,16777216,50331648),gc(4,22,4194304,16777216),gc(5,20,1048576,5242880),gc(6,18,262144,1572864),gc(7,16,65536,458752),gc(8,14,16384,131072),gc(9,12,4096,36864),gc(10,10,1024,10240),gc(11,8,256,2816),gc(12,6,64,768),gc(13,4,16,208)];Tt(24,e=>Qu(2,e)-1,Int32Array),Tt(24,e=>Qu(2,e),Int32Array),Tt(24,e=>Ku($n(2,0,!1),e));wc[0].bigN;function _c(e,n){return pc(e,n)}function yc(e,n,t,r){const o=[e.digits,cc(e)],i=o[0],s=[t.digits,cc(t)],u=0|s[1],c=s[0],a=hn(n,!1,2);let l=0,$=on(a,hn(c[0],!1,2));for(;ln($,$n(0,0,!1))>0||l<u;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~fn(an($,nc)),n=sn($,ec);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(16777216-e)|0,n=rn(n,$n(1,0,!1))),$=l<u?rn(n,on(a,hn(c[l+1],!1,2))):n,l=l+1|0}rc(e)}function vc(e,n,t,r){const o=[e.digits,cc(e)],i=o[0],s=[t.digits,cc(t)],u=0|s[1],c=s[0],a=hn(n,!1,2);let l=0,$=on(a,hn(c[0],!1,2));for(;ln($,$n(0,0,!1))>0||l<u;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~fn(an($,nc)),n=sn($,ec);e<16777216-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(16777216-i[l+r])|0,n=rn(n,$n(1,0,!1))),$=l<u?rn(n,on(a,hn(c[l+1],!1,2))):n,l=l+1|0}rc(e)}function bc(e,n,t){const r=[cc(n),cc(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],l=r[1],$=r[0],f=0|(0===i?o===t?~~(l[t]/$[0]):~~fn(sn(rn(on(hn(l[o],!1,2),ec),hn(l[o-1],!1,2)),hn($[0],!1,2))):o===i+t?~~(l[o]/($[i]+1)):~~fn(sn(rn(on(hn(l[o],!1,2),ec),hn(l[o-1],!1,2)),rn(hn($[i],!1,2),$n(1,0,!1)))));return 0===f?1!=(u=t,c=e,a=0,(s=n).bound+u<c.bound+a?-1:s.bound+u>c.bound+u?1:0|((e,n,t)=>{e:for(;;){const r=e,o=n,i=t;if(-1===i)return 0;{const s=0|(i<u?0:r[i-u]),c=0|(i<a?0:o[i-a]);if(s===c){e=r,n=o,t=i-1;continue e}return s<c?-1:1}}})(s.digits,c.digits,s.bound+u-1))?1:0:0|f}var s,u,c,a}function Cc(e,n){if(ac(n))throw new Error;if(cc(e)<cc(n))return[uc,e];{const t=function(e){return new qu(e.bound,e.digits.slice())}(e),r=tc(cc(e)-cc(n)+1+1);let o=cc(e);const i=0|cc(n);let s=o-i;const u=e=>{};let c=!1;for(;!c;){u([r,t,s,o]);const e=0|bc(t,n,s);e>0?(yc(t,e,n,s),vc(r,e,sc,s),u([r,t,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,t,s-1,o]),s=s-1|0):(u([r,t,s-1,o-1]),s=s-1|0,o=o-1|0)))}return[rc(r),rc(t)]}}oc(2);function xc(e){return oc(e)}function Sc(e){return function(e){const n=ln(e,$n(0,0,!1))<0?$n(0,0,!1):e,t=tc(3);for(let e=0;e<=2;e++)t.digits[e]=0|~~fn(un(sn(n,Ku(ec,e)),ec));return rc(t)}(e)}function Ec(e){const n=0|cc(e),t=(e,n,r,o)=>{e:for(;;){const i=e,s=n,u=r,c=o;if(Zt(c)){const e=0|ic(u);return i&&0===e?s:qt(d(e),s)}{const a=Yt(c),l=Cc(u,Xt(c)[1]),$=l[1],f=l[0];if(i&&ac(f)){e=i,n=s,r=$,o=a;continue e}e=i,n=t(!1,s,$,a),r=f,o=a;continue e}}},r=t(!0,zt(),e,((e,t,r)=>{for(;;){const o=e,i=t,s=r;if(cc(s)>n)return qt([i,s],o);e=qt([i,s],o),t=i+1,r=_c(s,s)}})(zt(),0,oc(10)));return Zt(r)?"0":pt("",Kt(r))}function kc(e){return e.bound<=1}function Ac(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class Ic extends L{constructor(e,n){super(),this.signInt=0|e,this.v=n}toString(){const e=this;switch(0|Pc(e)){case-1:return ac(Oc(e))?"0":"-"+Ec(Oc(e));case 0:return"0";case 1:return Ec(Oc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Ic&&Dc(this,e)}GetHashCode(){return 0|(0===Pc(e=this)?1:Pc(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}(Oc(e))|0);var e}toJSON(e){return P(this)}CompareTo(e){if(e instanceof Ic)return 0|function(e,n){return Mc(e,n)?-1:Dc(e,n)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Nc(e,n){return new Ic(e,n)}function Tc(e){return kc(e)&&Ac(e)<Ic.smallLim?Ic.smallPosTab[Ac(e)]:e}function Pc(e){return e.signInt}function Oc(e){return e.v}function Dc(e,n){const t=[Pc(e),Pc(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 lc(Oc(e),Oc(n));case 2:case 3:return!!ac(Oc(e))&&ac(Oc(n));case 4:return!0;case 5:case 6:return ac(Oc(n));case 7:case 8:return ac(Oc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Mc(e,n){const t=[Pc(e),Pc(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 fc(Oc(e),Oc(n));case 1:return fc(Oc(n),Oc(e));case 2:return!1;case 3:return!ac(Oc(e))||!ac(Oc(n));case 4:return!1;case 5:return!ac(Oc(n));case 6:case 7:return!1;case 8:return!ac(Oc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Uc(e){return e>=0?Nc(1,Tc(xc(e))):Nc(-1,Tc(-2147483648===e?Sc(cn(hn(e,!1,2))):xc($e(e))))}function Bc(){return Ic.one}function Rc(){return Ic.two}function Lc(){return Ic.zero}Ic.smallLim=4096,Ic.smallPosTab=Tt(Ic.smallLim,xc),Ic.one=Uc(1),Ic.two=Uc(2),Ic.zero=Uc(0);Lc(),Bc(),Rc();Lc(),Bc();class Gc{constructor(){}}function jc(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 Fc=new Gc;class Hc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Wc{constructor(e){this.state=new Hc(0,It(new Array(E(C,e,10)),0,E(C,e,10),null),0)}}function zc(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 Hc(0,o,t):new Hc(1,o,t,i),Rn(o[r])}}function qc(e,n,t){const r=ls(e[0]),o=ls(new Wc(10));const u=fs(e[0]);let c;const a=ls(vs()),l=ls(a.current);us(()=>os(()=>{bs(a.current)})),c=l;const $=()=>{setTimeout(()=>{let e;e=c.current,Cs(e)||u[1](r.current)},0)},f=e=>{var t;(t=jc(0,()=>{let t=Rn(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(Fc,()=>{let e;return null!=t&&(e=c.current,!Cs(e))},jc(0,()=>{const e=n(Ln(t),r.current);return nr(e=>{e(f)},e[1]),t=zc(o.current),r.current=e[0],$(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},d=$s(f);var h;return is(()=>os(()=>{let e;Dr(e=>{s(e)},Gn((e=r.current,i(e)?e:void 0)))}),t),cs(()=>{r.current=e[0],$(),nr(e=>{e(d)},e[1])},t),h=()=>{Dr(d,Gn(zc(o.current)))},Qi(e=>(h(),os(()=>{}))),[u[0],d]}function Vc(e,n,t){return qc(function(e,n){const t=jn(n,[]);return Ki.useMemo(e,t)}(e,t),n,t)}class Zc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Jc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Xc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Yc extends L{constructor(e,n,t,r,o,i,s,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class Kc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qc extends L{constructor(e,n,t,r,o,i){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseUrl=r,this.responseHeaders=o,this.content=i}}const ea=new Yc("",new Zc(0),zt(),!1,void 0,void 0,void 0,new Xc(0));new Qc(0,"","","",cu(),new Kc(0,""));function na(e,n){return dt(n)?[n]:wt(n,[e],null,0)}function ta(e){return new Yc(e,ea.method,ea.headers,ea.withCredentials,ea.overridenMimeType,ea.overridenResponseType,ea.timeout,ea.content)}function ra(e,n){return new Yc(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function oa(e,n){return new Yc(n.url,n.method,ir(n.headers,Vt(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function ia(e){return Ss(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,s,u,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,u=t.responseType,s=""===u||"text"===u?new Kc(0,t.responseText):new Kc("arraybuffer"===u?2:"blob"===u?1:3,t.response),c=function(e){const n=fr();return Qs(n,zs(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=Ln(o);r.push(e)}}return"function"==typeof t?Nt(e=>e,r,t):r}(e=>{const n=rr(na(":",e));return Zt(n)?void 0:[Xt(n).toLocaleLowerCase(),pt(":",Yt(n)).trim()]},na("\r\n",t.getAllResponseHeaders()))),new Qc(o,e,i,t.responseURL,c,s)))};const r=a(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{s(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const c=e.content;switch(c.tag){case 1:case 3:case 2:t.send(Rn(c.fields[0]));break;default:t.send()}})}const sa=0,ua=1,ca=2,aa=3,la=4;function $a(e,n){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase())}function fa(e,n=sa){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case ua:return e.charAt(0).toLowerCase()+e.slice(1);case ca:return $a(e,"_");case aa:return $a(e,"_").toUpperCase();case la:return $a(e,"-");case sa:default:return e}}(e,n),t[e]=r}for(let n of e){let e=sa;if(null==n&&o(n),n instanceof O){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}class da extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ha extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class pa{constructor(){this.cache=new Map([])}}function ma(){return new pa}ma(),ma();function ga(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function wa(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=tt(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 s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=ot(e,s),c=ot.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(ga(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return ga(n)}}function _a(e,n){ya(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function ya(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 va(e,n){try{return n.contents=function(e){const[n,t]=Qn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return _a(n.getTime(),r)}(e),!0}catch(e){return!1}}function ba(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ca(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 Ca(e){return dn(sn(e,1e4))}function xa(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 ba(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,s=+n[4],u=+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*ba(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}Symbol.toStringTag,Symbol.iterator;class Sa{constructor(e){this.k=e}}function Ea(e){return new Sa(e)}function ka(e){return e.k}class Aa extends Sa{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Ia(e,n,t,r){return new Aa(e,n,t,r)}function Na(e){return e.left}function Ta(e){return e.right}function Pa(e){return e.h}function Oa(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof Aa){n=Na(i),t=e(Ta(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Da(e,n,t){let r;if(null!=e){const n=e;r=n instanceof Aa?Pa(n):1}else r=0;let o;if(null!=t){const e=t;o=e instanceof Aa?Pa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Ea(n):Ia(n,e,t,i+1)}function Ma(e,n,t){let r,o,i,s,u;if(null!=e){const n=e;u=n instanceof Aa?Pa(n):1}else u=0;let c;if(null!=t){const e=t;c=e instanceof Aa?Pa(e):1}else c=0;if(c>u+2){const i=Ln(t);if(i instanceof Aa){if(r=Na(i),(null!=r?(o=r,o instanceof Aa?Pa(o):1):0)>u+1){const t=Ln(Na(i));if(t instanceof Aa)return Da(Da(e,n,Na(t)),ka(t),Da(Ta(t),ka(i),Ta(i)));throw new Error("internal error: Set.rebalance")}return Da(Da(e,n,Na(i)),ka(i),Ta(i))}throw new Error("internal error: Set.rebalance")}if(u>c+2){const r=Ln(e);if(r instanceof Aa){if(i=Ta(r),(null!=i?(s=i,s instanceof Aa?Pa(s):1):0)>c+1){const e=Ln(Ta(r));if(e instanceof Aa)return Da(Da(Na(r),ka(r),Na(e)),ka(e),Da(Ta(e),n,t));throw new Error("internal error: Set.rebalance")}return Da(Na(r),ka(r),Da(Ta(r),n,t))}throw new Error("internal error: Set.rebalance")}return Da(e,n,t)}function Ua(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ka(r));if(r instanceof Aa)return o<0?Ma(Ua(e,n,Na(r)),ka(r),Ta(r)):0===o?t:Ma(Na(r),ka(r),Ua(e,n,Ta(r)));{const o=0|e.Compare(n,ka(r));return o<0?Ia(n,void 0,t,2):0===o?t:Ia(n,t,void 0,2)}}return Ea(n)}function Ba(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,ka(s));if(s instanceof Aa){if(u<0){e=r,n=o,t=Na(s);continue e}if(0===u)return!0;e=r,n=o,t=Ta(s);continue e}return 0===u}return!1}}function Ra(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof Aa){Ra(t,Na(o)),t(ka(o)),e=t,n=Ta(o);continue e}t(ka(o))}break}}class La extends L{constructor(e,n){super(),this.stack=e,this.started=n}}function Ga(e){e:for(;;){const n=e;if(Zt(n))return zt();{const t=Xt(n),r=Yt(n);if(null!=t){const o=t;if(o instanceof Aa){e=tr([Na(o),Ea(ka(o)),Ta(o)],r);continue e}return n}e=r;continue e}}}function ja(e){return new La(Ga(Vt(e)),!1)}function Fa(e){if(e.started){const n=e.stack;if(Zt(n))return function(){throw new Error("Enumeration already started")}();if(null!=Xt(n)){return ka(Xt(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ha(e){let n=ja(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Fa(n),"System.Collections.IEnumerator.get_Current":()=>Fa(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Zt(n))return!1;if(null!=Xt(n)){if(Xt(n)instanceof Aa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ga(Yt(n)),!Zt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Zt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ja(e)},Dispose(){}}}function Wa(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,s=[o,i];if(Zt(s[0]))return Zt(s[1])?0:-1;if(Zt(s[1]))return 1;if(null!=Xt(s[1]))if(null!=Xt(s[0])){const u=Xt(s[0]),c=Xt(s[1]);if(u instanceof Aa)if(null==Na(u)){if(!(c instanceof Aa)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(Ta(u),Yt(s[0])),t=qt(void 0,Yt(s[1]));continue e}if(null==Na(c)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(Ta(u),Yt(s[0])),t=qt(Ta(c),Yt(s[1]));continue e}{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof Aa)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=Yt(s[0]),t=Yt(s[1]);continue e}if(null==Na(c)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(void 0,Yt(s[0])),t=qt(Ta(c),Yt(s[1]));continue e}{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Xt(s[1]);const u=[o,i];let c,a,l,$,f;switch(Zt(u[0])?Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2:null!=Xt(u[0])?(c=0,a=Yt(u[0]),l=Xt(u[0])):Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2,c){case 0:if(l instanceof Aa){e=r,n=tr([Na(l),Ia(ka(l),void 0,Ta(l),0)],a),t=i;continue e}e=r,n=tr([void 0,Ea(ka(l))],a),t=i;continue e;case 1:if(f instanceof Aa){e=r,n=o,t=tr([Na(f),Ia(ka(f),void 0,Ta(f),0)],$);continue e}e=r,n=o,t=tr([void 0,Ea(ka(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Xt(s[0])){e=r,n=Yt(s[0]),t=Yt(s[1]);continue e}{Xt(s[0]);const u=[o,i];let c,a,l,$,f;switch(Zt(u[0])?Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2:null!=Xt(u[0])?(c=0,a=Yt(u[0]),l=Xt(u[0])):Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2,c){case 0:if(l instanceof Aa){e=r,n=tr([Na(l),Ia(ka(l),void 0,Ta(l),0)],a),t=i;continue e}e=r,n=tr([void 0,Ea(ka(l))],a),t=i;continue e;case 1:if(f instanceof Aa){e=r,n=o,t=tr([Na(f),Ia(ka(f),void 0,Ta(f),0)],$);continue e}e=r,n=o,t=tr([void 0,Ea(ka(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Vt(n),Vt(t))}function za(e,n,t){let r=t;Ra(e=>{n[r]=e,r=r+1|0},e)}function qa(e,n){return Ot((n,t)=>Ua(e,t,n),void 0,n)}function Va(e,n){if(r(n))return qa(e,n);if(n instanceof Bt)return function(e,n){return Qt((n,t)=>Ua(e,t,n),void 0,n)}(e,n);{const t=a(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=Ua(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{s(t)}}}class Za{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n,t=0;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|(n=0|w(e),(t<<1)+n+631)}}finally{s(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Za&&0===Wa(Xa(this),Ya(this),Ya(e))}toString(){return"set ["+pt("; ",Mr(e=>P(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Wa(Xa(this),Ya(this),Ya(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 Ba(Xa(this),e,Ya(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){za(Ya(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ka(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ka(this)}GetEnumerator(){return Ha(Ya(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ha(Ya(this))}get size(){return 0|Ka(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 Qa(this,e)}keys(){return Mr(e=>e,this)}values(){return Mr(e=>e,this)}entries(){return Mr(e=>[e,e],this)}forEach(e,n){const t=this;Dr(n=>{e(n,n,t)},t)}}function Ja(e,n){return new Za(e,n)}function Xa(e){return e.comparer}function Ya(e){return e.tree}function Ka(e){return Oa(Ya(e))}function Qa(e,n){return Ba(Xa(e),n,Ya(e))}function el(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 nl(e,n){const t=2===n.tag?el(n.fields[0],n.fields[1],!0):1===n.tag?el(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?el(n.fields[0],n.fields[1],!0):4===n.tag?el(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"+pt("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:el(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function tl(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new Hn(1,nl(e[0],e[1]))}return new Hn(0,r.fields[0])}function rl(e,n){try{return tl("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new Hn(1,"Given an invalid JSON: "+e.message);throw e}}function ol(e,n){return"string"==typeof n?new Hn(0,n):new Hn(1,[e,new da(0,"a string",n)])}const il=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 Hn(0,(e+128&255)-128):new Hn(1,[t,new da(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Hn(1,[t,new da(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!1,8,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"a sbyte",r)])}return new Hn(1,[t,new da(0,"a sbyte",r)])},sl=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 Hn(0,255&e):new Hn(1,[t,new da(1,"a byte",e,"Value was either too large or too small for a byte")]):new Hn(1,[t,new da(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!0,8,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"a byte",r)])}return new Hn(1,[t,new da(0,"a byte",r)])},ul=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 Hn(0,(e+32768&65535)-32768):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!1,16,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])},cl=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 Hn(0,65535&e):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!0,16,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])},al=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 Hn(0,~~e):new Hn(1,[t,new da(1,"an int",e,"Value was either too large or too small for an int")]):new Hn(1,[t,new da(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!1,32,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"an int",r)])}return new Hn(1,[t,new da(0,"an int",r)])},ll=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 Hn(0,e>>>0):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!0,32,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])};function $l(e,n){if("string"==typeof n){let t,r=_a(-621355968e5,0);return t=[va(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a datetimeoffset",n)])}return new Hn(1,[e,new da(0,"a datetime",n)])}function fl(e,n,t,r){let o;const i=t+".["+d(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new Hn(1,[i,new da(5,"a longer array. Need index `"+d(e)+"` but there are only `"+(o=t.length,d(o)+"` entries"),r)])}return new Hn(1,[i,new da(0,"an array",r)])}function dl(e,n,t){if(Array.isArray(t)){let r=-1;return Wn(er,Ot((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+d(r)+"]",o);return 0===i.tag?new Hn(0,qt(i.fields[0],t.fields[0])):new Hn(1,i.fields[0])}return t},new Hn(0,zt()),t))}return new Hn(1,[n,new da(0,"a list",t)])}function hl(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return Ot((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],s=e(n+".["+d(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Hn(0,i)):new Hn(1,s.fields[0])}return t},new Hn(0,It(new Array(o.length),0,o.length,null)),o)}return new Hn(1,[n,new da(0,"an array",t)])}function pl(e,n,t){return new Hn(0,e)}function ml(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new Hn(1,o.fields[0])}function gl(e,n,t,r){const o=n(t,r);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,e(o.fields[0]))}function wl(e,n){let t;const r=e;return t=e=>n=>fl(0,r,e,n),e=>r=>ml(I(3,e=>{let t;const r=n;return t=e=>n=>fl(1,r,e,n),n=>r=>ml((n,t,r)=>pl([e,n]),I(2,t),n,r)}),I(2,t),e,r)}function _l(e){return uu(e)}function yl(e){return Ja(n={Compare:S},Va(n,e));var n}function vl(e,n,t,r){let o;const i=n.length+e|0;if(i!==r.length)return new Hn(1,[t,new da(6,(o=0|r.length,lt(ct("Expected array of length %i but got %i"))(i)(o)))]);{let o=new Hn(0,zt());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=lt(ct("%s[%i]"))(t)(i),c=n[i-e],a=r[i];o=Wn(e=>qt(e,s),c(u)(a))}return Wn(er,o)}}function bl(e,n,t,r,o,i){const s=(u=e=>kn(e)===r,Dn(t).find(u));var u;if(null!=s){const t=s,r=Nt(t=>xl(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t));return Wn(e=>function(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):{}}(t,Kt(e)),0===r.length&&i.length<=1?new Hn(0,zt()):vl(1,r,o,i))}return new Hn(1,[o,new da(6,"Cannot find case "+r+" in "+An(t))])}function Cl(e,n,t,r){const o=new G(null);let i;const s=An(r);let u;if(i=""===s?e:ou(s,o,e),function(e){return e instanceof mn?null!=e.fields:e instanceof L}(r)){const e=Nt(e=>[wa(n,kn(e)),xl(i,n,!1,e[1])],Mn(r));u=n=>t=>Wn(e=>function(e,n){const t=Mn(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 Hn(1,[n,new da(0,"an object",t)]):Ut(I(2,e=>{const r=e[0];return o=>0===o.tag?Wn(e=>qt(e,o.fields[0]),e[1](n+"."+r)(t[r])):o}),e,new Hn(0,zt()))}(e,n,t))}else if(function(e){return e instanceof mn?null!=e.cases:e instanceof O}(r))u=e=>t=>{if("string"==typeof t)return bl(i,n,r,t,e,[]);if(Array.isArray(t)){const u=t;return o=t=>bl(i,n,r,t,e,u),0===(s=ol(e+"[0]",u[0])).tag?o(s.fields[0]):new Hn(1,s.fields[0])}return new Hn(1,[e,new da(0,"a string or array",t)]);var o,s};else{if(!t){let e;const n=An(r);throw e=lt(ct("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(n),new Error(e)}u=e=>n=>new Hn(1,[e,new da(2,"an extra coder for "+An(r),n)])}return o.contents=u,u}function xl(e,n,t,r){let o,i,s,u;const c=An(r),a=iu(c,e);if(null==a){if(function(e){return null!=In(e)}(r)){const t=xl(e,n,!1,In(r));return e=>n=>hl(I(2,t),e,n)}if(Nn(r)){const e=An(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,s=il(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=sl(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=ul(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=cl(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=al(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,d(e))):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=ll(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,On(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};{const e=An(r),n=at(e=>{throw new Error(e)},ct("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(Un(r)){const t=Nt(t=>xl(e,n,!1,t),function(e){if(Un(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?Wn(e=>Kt(e),vl(0,t,e,n)):new Hn(1,[e,new da(0,"an array",n)])}{const c=An(function(e){return null==e.generics?e:new mn(e.fullname,e.generics.map(()=>Sn))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===c)return o=xl(e,n,!0,gn(r)[0]),e=>n=>{return t=I(2,o),r=e,null==(i=n)?new Hn(0,void 0):Wn(Rn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===c)return i=xl(e,n,!1,gn(r)[0]),e=>n=>dl(I(2,i),e,n);if("System.Collections.Generic.IEnumerable`1[System.Object]"===c)return s=xl(e,n,!1,gn(r)[0]),e=>n=>function(e,n,t){if(Array.isArray(t)){let r=-1;return Wn(Br,Ot((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+d(r)+"]",o);return 0===i.tag?new Hn(0,Nr([i.fields[0]],t.fields[0])):new Hn(1,i.fields[0])}return t},new Hn(0,[]),t))}return new Hn(1,[n,new da(0,"a seq",t)])}(I(2,s),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===c){const t=xl(e,n,!1,gn(r)[0]),o=xl(e,n,!1,gn(r)[1]);let i;const s=rr([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Hn(1,[t,new da(0,"an object",r)]):Or((o,i)=>{if(0===o.tag){const s=e(t,i);if(0===s.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new Hn(0,qt([s.fields[0],e.fields[0]],o.fields[0])):new Hn(1,e.fields[0])}return new Hn(1,s.fields[0])}return o},new Hn(0,zt()),Object.keys(r))}(I(2,t),I(2,o),e,n),(u=wl(I(2,t),I(2,o)),e=>n=>dl(I(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(Zt(o))return new Hn(1,[t,new da(7,i)]);{const s=tl(t,I(2,Xt(o)),r);if(1===s.tag){e=Yt(o),n=ir(i,Vt(s.fields[0]));continue e}return new Hn(0,s.fields[0])}}})(s,zt());var t,r},e=>n=>gl(_l,I(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===c){const t=xl(e,n,!1,gn(r)[0]);return e=>n=>{const r=hl(I(2,t),e,n);return 0===r.tag?new Hn(0,yl(r.fields[0])):new Hn(1,r.fields[0])}}return Cl(e,n,t,r)}}return"System.Boolean"===c?e=>n=>{return t=e,"boolean"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===c?e=>n=>{return t=e,null==(r=n)?new Hn(0,void 0):new Hn(1,[t,new da(0,"null",r)]);var t,r}:"System.String"===c?e=>n=>ol(e,n):"System.Char"===c?e=>n=>function(e,n){if("string"==typeof n){const t=n;return 1===t.length?new Hn(0,t[0]):new Hn(1,[e,new da(0,"a single character string",n)])}return new Hn(1,[e,new da(0,"a char",n)])}(e,n):"System.SByte"===c?il:"System.Byte"===c?sl:"System.Int16"===c?ul:"System.UInt16"===c?cl:"System.Int32"===c?al:"System.UInt32"===c?ll:"System.Double"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a float",r)]);var t,r}:"System.Single"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a float32",r)]);var t,r}:"System.DateTime"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=Kn();return t=[et(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,nt(t[1])):new Hn(1,[e,new da(0,"a datetime",n)])}return new Hn(1,[e,new da(0,"a datetime",n)])}(e,n):"System.DateTimeOffset"===c?e=>n=>$l(e,n):"System.TimeSpan"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[xa(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a timespan",n)])}return new Hn(1,[e,new da(0,"a timespan",n)])}(e,n):"System.Guid"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[xt(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a guid",n)])}return new Hn(1,[e,new da(0,"a guid",n)])}(e,n):"System.Object"===c?e=>e=>new Hn(0,e):Cl(e,n,t,r)}{const e=a;return n=>t=>e.contents(n)(t)}}function Sl(e){return null!=e?su((e,n)=>new G(n[1]),e.Coders):cu()}function El(e,n,t){const r=jn(n,new ha(0));return xl(Sl(t),r,!1,e)}function kl(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(Zt(i)){const e=r;return 1===e.tag?new Hn(1,e.fields[0]):new Hn(0,er(e.fields[0]))}{let s;const u=o(Xt(i));if(1===u.tag)s=new Hn(1,u.fields[0]);else{const e=r;s=1===e.tag?new Hn(1,e.fields[0]):new Hn(0,qt(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,n=o,t=Yt(i);continue e}}}(new Hn(0,zt()),e,n)}function Al(e){return new St(0,e.fields[0])}function Il(e){return e+"/account-registry/admin"}function Nl(e,n){return _s.Delay(()=>{const t=oa((r=lt(ct("Bearer %s"))(e),new Jc(0,"Authorization",r)),n);var r;let o;const i=ia(t);return o=_s.Bind(i,e=>_s.Return(new Hn(0,e))),_s.Bind(o,e=>{const n=e;if(1===n.tag)return _s.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ia(t);return _s.Bind(e,e=>_s.Return(new Hn(0,e)))}return _s.Return(new Hn(0,e))}})})}function Tl(e,n){return _s.Delay(()=>{let t;const r=Nl(n,ra(new Zc(0),ta((t=Il(e),t+"/partners"))));return _s.Bind(r,e=>{const n=e;if(1===n.tag)return _s.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){let n;const t=rl(I(2,El(xn(vn("Dto.AdminApi.Partner",[],lo,()=>[["StreamId",En],["Name",En],["Website",En],["ContactDetails",io()],["Notes",Cn(En)]])),new ha(1),void 0)),e.responseText);return n=1===t.tag?new Hn(1,t.fields[0]):kl(e=>e,ur(Ru,t.fields[0])),_s.Return(n)}return _s.Return(new Hn(1,"Unexpected response from backend"))}})})}function Pl(e,n,t,r,o){return _s.Delay(()=>{let i,s,u,c,a;const l="?"+pt("&",function(e,n){const t=Lt(),r=Qt((n,t)=>{const r=e(t);if(null==r)return n;{const e=new Bt(Ln(r),void 0);return n.tail=e,e}},t,n),o=Lt();return r.tail=o,Wt(t)}(e=>e,rr([(i=Pu(r.SearchText),ht(i)?void 0:"search="+encodeURIComponent(i)),($=r.Sort,s=[$.fields[0],$.fields[1]],1===s[0].tag?1===s[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===s[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(u=0|Du(r.PageSize),u<=100&&u>=10?"page_size="+u:void 0)])));var $;const f=Nl(n,(c=ra(new Zc(0),ta((a=Il(e),`${a}/partners/${kt(t)}/accounts${l}`))),null==o?c:oa(new Jc(0,"token",o),c)));return _s.Bind(f,e=>{const n=e;if(1===n.tag)return _s.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=rl(I(2,El(go(),new ha(1),void 0)),e.responseText);return _s.Return(n)}return _s.Return(new Hn(1,"Unexpected response from backend"))}})})}class Ol extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function Dl(e){return e.fields[0]}function Ml(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=No("a",k(kr(br(()=>Nr(Sr(["key",e]),br(()=>Nr(Sr(["children",e]),br(()=>Nr(Sr(["className",t]),br(()=>null!=n?Sr(["href",mu(Vt(Ln(n)),1)]):xr())))))))))),new Ol(0,r);var r}function Ul(e){let n,t;return No("div",k(rr([["className","border-b border-gray-200"],(n=[No("nav",k(rr([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(t=Mr(Dl,e),["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}class Bl extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Rl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-super-configuration",fa(Tr(e=>e,[new Bl(1,n),new Bl(0,t),new Bl(2,e.partnerId.fields[0]),Fn(e=>new Bl(3,e.fields[0]),r)]),1))}class Ll extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Gl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-benefits-onboarding-configuration",fa(Tr(e=>e,[new Ll(1,n),new Ll(0,t),new Ll(2,e.partnerId.fields[0]),Fn(e=>new Ll(3,e.fields[0]),r)]),1))}class jl extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Fl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-bank-details",fa(Tr(e=>e,[new jl(1,n),new jl(0,t),new jl(2,e.partnerId.fields[0]),Fn(e=>new jl(3,e.fields[0]),r)]),1))}function Hl(e){return No("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Wl(e){return No("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Ki.Children.toArray([e])})}function zl(e,n){let t;return No("div",k(rr([["className","sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5"],(t=[Hl(e),Wl(n)],["children",Ki.Children.toArray(Array.from(t))])])))}function ql(e){return No("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function Vl(e){return No("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0,rows:5})}function Zl(e){const n=Vt(No("div",{children:Ki.Children.toArray(Array.from(e))}));return No("form",{children:Ki.Children.toArray(Array.from(n))})}function Jl(e){let n;return No("div",k(rr([["className",pt(" ",["text-lg","leading-6","font-medium","text-gray-900"])],(n=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(n))])])))}function Xl(e,n){const t=rr([No("br",{}),Jl(e),No("div",{className:pt(" ",["px-6"]),children:Ki.Children.toArray(Array.from(n))})]);return No("div",{children:Ki.Children.toArray(Array.from(t))})}function Yl(e){return n=>zl(e,ql(n))}function Kl(e){return Xl("Account Information",rr([Yl("ID")(e.StreamId),Yl("External ID")(jn(e.ExternalId,"")),Yl("Channel ID")(jn(e.ChannelId,"")),Yl("Name")(e.Name),Yl("Contact")(`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`),Yl("Phone")(e.ContactDetails.MobilePhone),Yl("Email")(e.ContactDetails.Email),Yl("Website")(e.Website)]))}function Ql(e){if(null==e)return null;{const n=e;return Xl("Legal Entity",rr([Yl("Business Name")(n.BusinessName),Yl("Business Number")(n.BusinessNumber),Yl("Address Line 1")(n.Address1),Yl("Address Line 2")(jn(n.Address2,"")),Yl("City")(n.City),Yl("State")(jn(n.State,"")),Yl("Postcode")(n.Postcode)]))}}function e$(e){if(null==e)return null;return Xl("Other details",Vt((n="Notes",e=>zl(n,Vl(e)))(e)));var n}function n$(e){return Zl([Kl(e),Ql(e.LegalEntity),e$(e.Notes)])}function t$(e){const n=Vt(No("span",{children:[e.error]}));return No("div",{children:Ki.Children.toArray(Array.from(n))})}function r$(){const e=Vt(No("span",{children:["Please wait..."]}));return No("div",{children:Ki.Children.toArray(Array.from(e))})}class o$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class i$ extends L{constructor(e){super(),this.Data=e}}function s$(){return[new i$(new au(0)),fu()]}function u$(e,n){return[new i$(e.fields[0]),fu()]}class c$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function a$(e,n,t){let r,o,i,s,u,c,a,l,$,f,d,h;const p=[e,n];return Ul(1===t.tag?rr([Ml("Details",mu(Fu((r=p,new Lu(6,r[0],r[1]))),1)),Ml("Super Configuration",void 0),Ml("Benefits Onboarding Configuration",mu(Fu((o=p,new Lu(8,o[0],o[1]))),1)),Ml("Bank Details Configuration",mu(Fu((i=p,new Lu(9,i[0],i[1]))),1))]):2===t.tag?rr([Ml("Details",mu(Fu((s=p,new Lu(6,s[0],s[1]))),1)),Ml("Super Configuration",mu(Fu((u=p,new Lu(7,u[0],u[1]))),1)),Ml("Benefits Onboarding Configuration",void 0),Ml("Bank Details Configuration",mu(Fu((c=p,new Lu(9,c[0],c[1]))),1))]):3===t.tag?rr([Ml("Details",mu(Fu((a=p,new Lu(6,a[0],a[1]))),1)),Ml("Super Configuration",mu(Fu((l=p,new Lu(7,l[0],l[1]))),1)),Ml("Benefits Onboarding Configuration",mu(Fu(($=p,new Lu(8,$[0],$[1]))),1)),Ml("Bank Details Configuration",void 0)]):rr([Ml("Details",void 0),Ml("Super Configuration",mu(Fu((f=p,new Lu(7,f[0],f[1]))),1)),Ml("Benefits Onboarding Configuration",mu(Fu((d=p,new Lu(8,d[0],d[1]))),1)),Ml("Bank Details Configuration",mu(Fu((h=p,new Lu(9,h[0],h[1]))),1))]))}function l$(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return No(Rl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return No(Gl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return No(Fl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}default:{const e=t.Data;let n,r,o;switch(0===e.tag||1===e.tag?n=2:3===e.tag?(n=3,o=e.fields[0]):0===e.fields[0].tag?(n=0,r=e.fields[0].fields[0]):n=1,n){case 0:return No(n$,r);case 1:return No(t$,{error:"There was an error retrieving account "});case 2:return No(r$,null);case 3:return No(t$,{error:P(o)})}}}}function $$(e){let n,t,r;const o=e.mode,i=e.props,s=Vc(s$,u$,[]);return ss((n=[()=>{const e=i.accountDetails;return n=i.backendUrl,t=i.accessToken,r=e[0],o=e[1],_s.Delay(()=>{let e;const i=Nl(t,ra(new Zc(0),ta((e=Il(n),`${e}/partners/${r.fields[0]}/accounts/${o.fields[0]}`))));return _s.Bind(i,e=>{const n=e;if(1===n.tag)return _s.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=rl(I(2,El(fo(),new ha(1),void 0)),e.responseText);return _s.Return(n)}return _s.Return(new Hn(1,"Unexpected response from backend"))}})});var n,t,r,o},e=>{s[1](new o$(0,e))}],$u(n[0],n[1]))),No("div",k(Vt((t=[(r=i.accountDetails,a$(r[0],r[1],o)),l$(i,o,s[0])],["children",Ki.Children.toArray(Array.from(t))]))))}class f$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class d${constructor(e){this.props=e}}function h$(e){return n=>t=>_s.Delay(()=>{const r=Al(e.props.partnerId);return _s.Bind(Pl(e.props.backendUrl,e.props.accessToken,r,n,void 0),e=>(t(new f$(2,new au(2,e))),_s.Zero()))})}class p$ extends L{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function m$(){return[new p$(new au(0),Tu,Eu,(e=20,new Ou(0,e))),fu()];var e}class g$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function w$(e){return new g$(0,e)}function _$(e){return e.fields[0]}class y$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function v$(e){return new y$(0,e)}function b$(e){return e.fields[0]}function C$(e){return w$(No("th",k(rr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function x$(e,n){let t;return v$(No("td",k(rr([["className","px-6 py-4 whitespace-nowrap text-sm"],(t=[No("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})],["children",Ki.Children.toArray(Array.from(t))])]))))}function S$(e,n){return v$(No("td",{className:pt(" ",Nr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function E$(e){return["fillRule",e]}function k$(e){return["clipRule",e]}const A$=No("svg",k(rr([["className",pt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Vt(No("path",k(rr([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],E$("evenodd"),k$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()]))),I$=No("svg",k(rr([["className",pt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Vt(No("path",k(rr([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],E$("evenodd"),k$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()])));function N$(e,n,t,r){let o,i,s;return w$(No("th",k(rr([["className",pt(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[No("a",k(rr([["className",pt(" ",["group","inline-flex","cursor-pointer"])],["onClick",t],(i=[r,No("span",k(rr([["className",pt(" ",(u=!e,c=Vt("invisible"),a=rr(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),u?ir(a,c):a))],(s=kr(br(()=>Sr(n?A$:I$))),["children",Ki.Children.toArray(Array.from(s))])])))],["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])]))));var u,c,a}function T$(e,n){return N$(v(ku(e.Sort),new bu(1)),v(Au(e.Sort),new Cu(0)),t=>{n(new f$(1,Iu(new bu(1),e.Sort)))},"Name")}function P$(e,n){return N$(v(ku(e.Sort),new bu(0)),v(Au(e.Sort),new Cu(0)),t=>{n(new f$(1,Iu(new bu(0),e.Sort)))},"Id")}function O$(e,n){return kr(br(()=>{let t;return Nr(Sr(function(e,n,t,r){let o;return v$(No("td",k(rr([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=kr(br(()=>Nr(Sr(No("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),br(()=>{let e,n;return Nr((e=r,null==e?Sr(null):(n=e,Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="Channel ID: "+n,No("span",{children:[e]})))})))),br(()=>{const e=t;if(null==e)return Sr(null);{const n=e;return Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="External ID: "+n,No("span",{children:[e]})))}))}}))})))),["children",Ki.Children.toArray(Array.from(o))])]))))}(mu(Fu((t=[e,new Xr(0,n.AccountId)],new Lu(6,t[0],t[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),br(()=>Nr(Sr(function(e,n,t){let r;return v$(No("td",k(rr([["className",pt(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=kr(br(()=>{let r;return Nr(Sr(No("div",k(rr([["className",pt(" ",["font-medium"])],(r=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(r))])])))),br(()=>{let e,r;return Nr((e=n,Sr(null==e?null:(r="Legal Entity: "+e,No("span",{children:[r]})))),br(()=>{const e=t;if(null==e)return Sr(null);{const n=e;return Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="ABN: "+n,No("span",{children:[e]})))}))}}))}))})),["children",Ki.Children.toArray(Array.from(r))])]))))}(n.Name,n.BusinessName,n.BusinessNumber)),br(()=>Nr(Sr(function(e,n){let t;return v$(No("td",k(rr([["className",pt(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(t=[No("span",{children:[e]}),No("br",{}),No("span",{children:[n]})],["children",Ki.Children.toArray(Array.from(t))])]))))}(n.Contact,n.ContactMobilePhone)),br(()=>{return Sr((e=n.Website,v$(No("td",{className:pt(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))));var e}))))))}))}class D$ extends L{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class M$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class U$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function B$(e,n){let t;return No("tr",k(rr([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Mr(b$,n),["children",Ki.Children.toArray(Array.from(t))])])))}function R$(e,n){const t=fs(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;at(e=>console.log(e),ct("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}function L$(e){let n,t,r,o,i;const s=e.data,u=e.pageSize,c=e.renderRowCells,a=e.columnHeaders,l=($=u,f=s.Data,rr(Nt(rr,Dt($,Kt(f)))));var $,f;const d=R$(Jt(l),s.LoadNext),h=0|d[0],p=d[1];let m;const g=lr(h-1,l);m=null==g?new M$(1):new M$(0,g);const w=0|Jt(s.Data),_=null==s.LoadNext?new U$(0,w):new U$(1),y=1===m.tag?void 0:w>=1?(h-1)*u+1:void 0,v=1===m.tag?void 0:w>=1?(h-1)*u+Jt(m.fields[0]):void 0,b=1===h?void 0:d[2],C=h===Jt(l)?null!=s.LoadNext?p:void 0:h<Jt(l)?p:void 0;return No("div",k(rr([["className","flex flex-col mt-4"],(n=[No("div",k(rr([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[No("div",k(rr([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[No("div",k(rr([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[No("table",k(rr([["className","min-w-full divide-y divide-gray-200"],(i=kr(br(()=>Nr(Sr(function(e){let n;return No("thead",{className:"bg-gray-50",children:(n=Mr(_$,e),No("tr",{children:Ki.Children.toArray(Array.from(n))}))})}(a)),br(()=>{let e,n;return Nr((e=m,1===e.tag?Sr(null):Sr((n=Ur(B$,c(e.fields[0])),No("tbody",{children:Ki.Children.toArray(Array.from(n))})))),br(()=>Sr(function(e,n,t,r,o,i){let s,u,c,a,l,$;const f=[n,t];let d,h,p;switch(null!=f[0]&&null!=f[1]?(d=0,h=f[0],p=f[1]):d=1,d){case 0:$=kr(br(()=>Nr(Sr("Showing "),br(()=>Nr(Sr(No("span",{className:"font-medium",children:""+h})),br(()=>Nr(Sr(" to "),br(()=>Nr(Sr(No("span",{className:"font-medium",children:""+p})),br(()=>Nr(Sr(" of "),br(()=>1===r.tag?Vt(" many"):rr([No("span",{className:"font-medium",children:P(r.fields[0])})," results"])))))))))))));break;case 1:$=Vt(null)}const m=kr(br(()=>{let e,n;return Nr((e=i,null==e?Sr(null):(n=e,Sr(No("a",{className:pt(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:"Previous "})))),br(()=>{const e=o;if(null==e)return Sr(null);{const n=e;return Sr(No("a",{className:pt(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:" Next"}))}}))}));return No("tfoot",k(rr([["className",pt(" ",["w-full"])],(s=[No("tr",k(Vt((u=[No("td",k(rr([["colSpan",e],(c=[No("nav",k(rr([["className",pt(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(a=[No("div",k(rr([["className",pt(" ",["hidden","sm:block"])],(l=[No("p",{className:pt(" ",["text-sm","text-gray-700"]),children:Ki.Children.toArray(Array.from($))})],["children",Ki.Children.toArray(Array.from(l))])]))),No("div",{className:pt(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:Ki.Children.toArray(Array.from(m))})],["children",Ki.Children.toArray(Array.from(a))])])))],["children",Ki.Children.toArray(Array.from(c))])])))],["children",Ki.Children.toArray(Array.from(u))]))))],["children",Ki.Children.toArray(Array.from(s))])])))}(Jt(a),y,v,_,C,b))))})))),["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function G$(e,n){let t,r;return No("div",k(rr([["className",pt(" ",["flex-grow","max-w-md"])],(t=[No("label",{for:"search",children:"Search",className:pt(" ",["block","text-sm","font-medium","text-gray-700"])}),No("div",k(rr([["className","mt-1"],(r=[No("input",{id:"search",name:"search",type:"text",className:pt(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:"Account Id, Name or Legal Entity",value:e,onChange:e=>{n(e.target.value)}})],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))}function j$(e){let n,t;return No("div",k(rr([["className","pt-6"],(n=[No("div",k(rr([["className",pt(" ",["flex","justify-end"])],(t=[No("button",{type:"search",children:"Search",className:pt(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function F$(e){let n,t,r,o,i,s,u;const c=function(e){return new d$(e)}(e),a=Vc(m$,(e,n)=>function(e,n,t){let r,o,i,s;switch(n.tag){case 1:{const r=n.fields[0];return[new p$(new au(1),t.SearchText,r,t.PageSize),du(n=>{const o=new Mu(t.SearchText,r,t.PageSize);Es(h$(e)(o)(n))})]}case 2:return[new p$(n.fields[0],t.SearchText,t.Sort,t.PageSize),fu()];case 3:return[new p$((r=[t.Data,n.fields[0]],2===r[0].tag?0===r[0].fields[0].tag?(o=r[1],1===o.tag?new au(2,new Hn(1,o.fields[0])):new au(2,new Hn(0,new mo(ir(r[0].fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)))):(i=r[1],1===i.tag?new au(2,new Hn(1,i.fields[0])):new au(3,new Error("Failed to retrieve the account data"))):(s=r[1],1===s.tag?new au(2,new Hn(1,s.fields[0])):new au(3,new Error("Failed to retrieve the account data")))),t.SearchText,t.Sort,t.PageSize),fu()];case 4:return[new p$(new au(1),t.SearchText,t.Sort,t.PageSize),du(n=>{const r=new Mu(t.SearchText,t.Sort,t.PageSize);Es(h$(e)(r)(n))})];default:return[new p$(t.Data,(u=n.fields[0],new Nu(0,u.trim())),t.Sort,t.PageSize),fu()]}var u}(c,e,n),[]),l=a[0],$=a[1],f=new Mu(l.SearchText,l.Sort,l.PageSize);ss((n=[()=>function(e,n,t){return Pl(e.props.backendUrl,e.props.accessToken,Al(e.props.partnerId),n,void 0)}(c,f),e=>{$(new f$(2,e))}],$u(n[0],n[1])));const d=l.Data;let h,p,m,g;switch(0===d.tag||1===d.tag?h=2:3===d.tag?(h=3,g=d.fields[0]):1===d.fields[0].tag?(h=1,m=d.fields[0].fields[0]):(h=0,p=d.fields[0].fields[0]),h){case 0:{const n=rr([No("div",k(rr([["className",pt(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(t=[No("div",k(rr([["className",pt(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[G$(Pu(l.SearchText),e=>{$(new f$(0,e))}),j$(e=>{$(new f$(4))})],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])]))),(o=p,i=rr([P$(l,$),T$(l,$),C$("Contact"),C$("Website")]),s=new D$(o.Accounts,Fn(e=>n=>{var t;Es((t=c,e=>n=>r=>_s.Delay(()=>{const o=Al(t.props.partnerId);return _s.Bind(Pl(t.props.backendUrl,t.props.accessToken,o,e,n),e=>(r(new f$(3,e)),_s.Zero()))}))(f)(e)($))},o.Token)),u=0|Du(l.PageSize),No(L$,{columnHeaders:i,renderRowCells:n=>ur(n=>O$(e.partnerId,n),n),pageSize:u,data:s}))]);return No("div",{children:Ki.Children.toArray(Array.from(n))})}case 1:return No(t$,{error:m});case 2:return No(r$,null);case 3:return No(t$,{error:P(g)})}}function H$(e){let n;return No("div",k(rr([["className",pt(" ",["text-lg","leading-6","font-medium","text-gray-900"])],(n=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(n))])])))}function W$(e,n){const t=rr([No("br",{}),H$(e),No("div",{className:pt(" ",["px-6"]),children:Ki.Children.toArray(Array.from(n))})]);return No("div",{children:Ki.Children.toArray(Array.from(t))})}function z$(e){return Zl([W$("Partner Information",rr([zl("ID",ql(kt(e.StreamId))),zl("Name",ql(Kr(e.Name))),zl("Contact",ql(`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`)),zl("Phone",ql(ro(e.ContactDetails.MobilePhone))),zl("Website",ql(Qr(e.Website))),zl("Notes",Vl(jn((n=e.Notes,null!=n?n.fields[0]:void 0),"")))]))]);var n}class q$ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class V$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Z$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class J$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function X$(e){let n,t,r,o,i;return Ul(1===e.tag?(n=e.fields[0],rr([Ml("Details",mu(Fu(new Lu(1,n.partnerId)),1)),Ml("Accounts",void 0),Ml("Super Configuration",mu(Fu(new Lu(3,n.partnerId)),1)),Ml("Benefits Onboarding Configuration",mu(Fu(new Lu(4,n.partnerId)),1)),Ml("Bank Details Configuration",mu(Fu(new Lu(5,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,t)),1)),Ml("Accounts",mu(Fu(new Lu(2,t)),1)),Ml("Super Configuration",void 0),Ml("Benefits Onboarding Configuration",mu(Fu(new Lu(4,t)),1)),Ml("Bank Details Configuration",mu(Fu(new Lu(5,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,r)),1)),Ml("Accounts",mu(Fu(new Lu(2,r)),1)),Ml("Super Configuration",mu(Fu(new Lu(3,r)),1)),Ml("Benefits Onboarding Configuration",void 0),Ml("Bank Details Configuration",mu(Fu(new Lu(5,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,o)),1)),Ml("Accounts",mu(Fu(new Lu(2,o)),1)),Ml("Super Configuration",mu(Fu(new Lu(3,o)),1)),Ml("Benefits Onboarding Configuration",mu(Fu(new Lu(4,o)),1)),Ml("Bank Details Configuration",void 0)])):(i=e.fields[0],rr([Ml("Details",void 0),Ml("Accounts",mu(Fu(new Lu(2,new Zr(0,kt(i.StreamId)))),1)),Ml("Super Configuration",mu(Fu(new Lu(3,new Zr(0,kt(i.StreamId)))),1)),Ml("Benefits Onboarding Configuration",mu(Fu(new Lu(4,new Zr(0,kt(i.StreamId)))),1)),Ml("Bank Details Configuration",mu(Fu(new Lu(5,new Zr(0,kt(i.StreamId)))),1))])))}function Y$(e){switch(e.tag){case 1:{const n=e.fields[0];return No(F$,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return No(Rl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return No(Gl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return No(Fl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return No(z$,e.fields[0])}}function K$(e){let n;const t=e.mode;return No("div",k(Vt((n=[X$(t),Y$(t)],["children",Ki.Children.toArray(Array.from(n))]))))}function Q$(e){const n=e.partnerList;return function(e,n){let t,r,o,i,s,u,c;return No("div",k(rr([["className","flex flex-col mt-4"],(t=[No("div",k(rr([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[No("div",k(rr([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[No("div",k(rr([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(i=[No("table",k(rr([["className","min-w-full divide-y divide-gray-200"],(s=[No("thead",{className:"bg-gray-50",children:(u=Mr(_$,e),No("tr",{children:Ki.Children.toArray(Array.from(u))}))}),(c=Ur((e,n)=>(n=>{let t;return No("tr",k(rr([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Mr(b$,n),["children",Ki.Children.toArray(Array.from(t))])])))})(n),n),No("tbody",{children:Ki.Children.toArray(Array.from(c))}))],["children",Ki.Children.toArray(Array.from(s))])])))],["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))}(rr([C$("ID"),C$("Name"),C$("Contact"),C$("Phone"),C$("Website")]),ur(e=>{let n;const t=kt(e.StreamId);return rr([(n=[mu(Fu(new Lu(1,new Zr(0,t))),1),t],x$(n[0],n[1])),S$(["text-gray-500"],Kr(e.Name)),S$(["text-gray-500"],`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`),S$(["text-gray-500"],ro(e.ContactDetails.MobilePhone)),S$(["text-gray-500"],Qr(e.Website))])},n))}var ef=Ai((function(e,n){return No("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),No("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class nf extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function tf(e){let n,t;return No("nav",k(rr([["className","pt-2"],["aria-label","Breadcrumb"],(n=[No("ol",k(rr([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(t=sr((e,n)=>function(e,n,t,r){let o,i;return No("li",k(rr([["key",e],["className","flex"],(o=[No("div",k(rr([["className","flex items-center"],(i=kr(br(()=>{let r;return Nr(t?xr():Sr((r={className:"flex-shrink-0 h-5 w-5 text-gray-400"},No(ef,r))),br(()=>Sr(No("a",k(kr(br(()=>Nr(Sr(["children",e]),br(()=>Nr(null!=n?Sr(["href",mu(Ln(n),1)]):xr(),br(()=>Sr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))}(n.fields[0][0],n.fields[0][1],0===e),e),["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function rf(e){let n,t,r,o,i,s,u,c,a,l,$,f,d;const h=e.page,p=()=>new nf(0,["Partners",Fu(new Lu(0))]),m=e=>new nf(0,[uo(e),Fu(new Lu(1,e))]),g=e=>new nf(0,["Super Configuration",Fu(new Lu(3,e))]),w=e=>new nf(0,["Accounts",Fu(new Lu(2,e))]),_=e=>new nf(0,[co(e),void 0]),y=e=>{let n;return new nf(0,["Super Configuration",Fu((n=[e[0],e[1]],new Lu(7,n[0],n[1])))])};return tf(10===h.tag?Vt(p()):1===h.tag?rr([p(),m(h.fields[0])]):2===h.tag?(n=h.fields[0],rr([p(),m(n),w(n)])):3===h.tag?(t=h.fields[0],rr([p(),m(t),g(t)])):4===h.tag?(r=h.fields[0],rr([p(),m(r),g(r)])):5===h.tag?(o=h.fields[0],rr([p(),m(o),new nf(0,["Bank Details Configuration",Fu(new Lu(5,o))])])):6===h.tag?(i=h.fields[0],rr([p(),m(i),w(i),_(h.fields[1])])):7===h.tag?(s=h.fields[0],u=h.fields[1],rr([p(),m(s),w(s),_(u),y([s,u])])):8===h.tag?(c=h.fields[0],a=h.fields[1],rr([p(),m(c),w(c),_(a),y([c,a])])):9===h.tag?(l=h.fields[0],$=h.fields[1],rr([p(),m(l),w(l),_($),(f=[l,$],new nf(0,["Bank Details Configuration",Fu((d=[f[0],f[1]],new Lu(9,d[0],d[1])))]))])):Vt(p()))}function of(){return(of=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 sf(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 Qo(n,t)}function uf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=No(sf,of({},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,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[cf(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),a=u[i].slot;a?o[a]=No($f,{name:a},c):r[i]=c}var l=t?No($f,null,r):r;return No(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ko:Yo)(this._vdom,this._root)}function cf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function af(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[cf(e)]=t,this._vdom=Qo(this._vdom,r),Yo(this._vdom,this._root)}}function lf(){Yo(this._vdom=null,this._root)}function $f(e,n){var t=this;return No("slot",of({},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 ff extends L{constructor(e,n){super(),this.Data=e,this.CurrentPage=n}}function df(){return vn("AccountRegistry.AdminUI.App.State",[],ff,()=>[["Data",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))],["CurrentPage",Gu()]])}class hf extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function pf(){return bn("AccountRegistry.AdminUI.App.Msg",[],hf,()=>[[["Item",Gu()]],[["Item",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))]]])}function mf(){const e=ju(wu(window.location.hash,1));return[new ff(new au(0),e),10===e.tag?Hu(new Lu(0)):fu()]}function gf(e,n){if(0===e.tag){const t=e.fields[0];return 10===t.tag?[n,Hu(t)]:[new ff(n.Data,t),fu()]}return[new ff(e.fields[0],n.CurrentPage),fu()]}function wf(e){let n;const t=Vc(mf,gf,[]),r=t[0],o=t[1];ss($u(()=>{return n=e.backendUrl,t=e.accessToken,_s.Delay(()=>{const e=Tl(n,t);return _s.Bind(e,e=>{let n;const t=e;return n=1===t.tag?new Hn(1,t.fields[0]):new Hn(0,new Wu(t.fields[0])),_s.Return(n)})});var n,t},e=>{o(new hf(1,e))}));const i=(n,t)=>No($$,{props:{accessToken:e.accessToken,accountDetails:[n[0],n[1]],backendUrl:e.backendUrl},mode:t});let s;const u=r.Data;let c,a,l,$;switch(1===u.tag?c=0:2===u.tag?1===u.fields[0].tag?(c=2,l=u.fields[0].fields[0]):(c=1,a=u.fields[0].fields[0]):3===u.tag?(c=3,$=u.fields[0]):c=0,c){case 0:s=No(r$,null);break;case 1:{const n=r.CurrentPage;switch(n.tag){case 1:{const e=(f=a.Partners,d=uo(n.fields[0]),ar(e=>kt(e.StreamId)===d,f));if(null==e)s=No(t$,{error:"Unknown Partner"});else{s=No(K$,{mode:new q$(0,e)})}break}case 2:s=No(K$,{mode:new q$(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:n.fields[0]})});break;case 3:s=No(K$,{mode:new q$(2,new V$(n.fields[0],e.backendUrl,e.accessToken))});break;case 4:s=No(K$,{mode:new q$(3,new Z$(n.fields[0],e.backendUrl,e.accessToken))});break;case 5:s=No(K$,{mode:new q$(4,new J$(n.fields[0],e.backendUrl,e.accessToken))});break;case 6:s=i([n.fields[0],n.fields[1]],new c$(0));break;case 7:s=i([n.fields[0],n.fields[1]],new c$(1));break;case 8:s=i([n.fields[0],n.fields[1]],new c$(2));break;case 9:s=i([n.fields[0],n.fields[1]],new c$(3));break;default:s=No(Q$,{partnerList:a.Partners})}break}case 2:s=No(t$,{error:l});break;case 3:s=No(t$,{error:P($)});break}var f,d;return _u(k(rr([["onUrlChanged",e=>{o(new hf(0,ju(e)))}],(n=rr([No(rf,{page:r.CurrentPage}),s]),["application",No(Po,{},...n)])])))}(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=uf,o.prototype.attributeChangedCallback=af,o.prototype.disconnectedCallback=lf,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=>No(wf,e),"superhero-account-registry")}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "2.3.20",
3
+ "version": "2.5.22",
4
4
  "description": "Flare Superhero Account Registry Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [