@flarehr/superhero-account-registry 2.5.22 → 2.7.24

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){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")}]);
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 hf})),t.d(n,"State$reflection",(function(){return pf})),t.d(n,"Msg",(function(){return mf})),t.d(n,"Msg$reflection",(function(){return gf})),t.d(n,"StateModule_init",(function(){return wf})),t.d(n,"StateModule_update",(function(){return yf})),t.d(n,"AccountRegistryComponent",(function(){return _f}));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 y(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 y(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)&&_(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 D{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&&_(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 O(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 O(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=[],y=0,_=s+(g.e=t.e-e.e)+1;for(g.s=i,i=_<0?0:_,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[y++]=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==y||(w.shift(),g.e--,_--),y>_&&te(g,_,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=ye(e,(0|e)<0?-1:0,!0),o&&(me[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=pe[e])?r:(t=ye(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 De}else{if(e<=-Se)return Oe;if(e+1>=Se)return Pe}return e<0?qe(we(-e,n)):ye(e%Ce|0,e/Ce|0,n)}function ye(e,n,t){return new de(e,n,t)}var _e=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(_e(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(_e(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):ye(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=ye(-1,2147483647,!1),De=ye(-1,-1,!0),Oe=ye(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,Oe)){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(_e(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,Oe)?Oe: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,ye(($&=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 ye(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,Oe))return Ge(n)?Oe:ke;if(je(n,Oe))return Ge(e)?Oe: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,ye((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?ye((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:ye(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,Oe))return je(n,Ie)||je(n,Te)?Oe:je(n,Oe)?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,Oe))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:_e(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 ye(~e.low,~e.high,e.unsigned)}function Ke(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?ye(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):ye(0,e.low<<n-32,e.unsigned)}function Qe(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?ye(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):ye(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?ye(e.low>>>n|t<<32-n,t>>>n,e.unsigned):ye(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?ye((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)),ye(e.low&n.low,e.high&n.high,e.unsigned)},ln=ze,$n=ye,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 ye(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 yn(this,e)}}function gn(e){return null!=e.generics?e.generics:[]}function wn(e){return g([p(e.fullname),...gn(e).map(wn)])}function yn(e,n){return""===e.fullname?""===n.fullname&&y(Mn(e),Mn(n),([e,n],[t,r])=>e===t&&yn(n,r)):e.fullname===n.fullname&&y(gn(e),gn(n),yn)}function _n(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 Dn(e,n){const t=parseInt(n,10);return Pn(e,isNaN(t)?n:t)[1]}function On(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 D{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 yt(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 _t=/^[\(\{]{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(_t.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 D{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 Dt(e,n,t){return t.reduce(e,n)}function Ot(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 yr(e,n){null==n&&function(e){throw new Error(e)}(e)}function _r(e){return function(e){return new pr(e)}(e)}function vr(e){return yr("source",e),a(e)}function br(e){return _r(()=>a(e()))}function Cr(e){return _r(()=>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 _r(()=>wr(e,n,t))}function Ir(e,n,t){return _r(()=>{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 Dr(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 Or(e,n){Dr((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 D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}class jr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class Fr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class Hr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class Wr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class zr extends D{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 D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class Zr extends D{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 D{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,yo,_o,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?++_o:o};return null==o&&null!=yo.vnode&&yo.vnode(i),i}function Po(e){return e.children}function Do(e,n){this.props=e,this.context=n}function Oo(e,n){if(null==n)return e.__?Oo(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?Oo(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!==yo.debounceRendering)&&((Co=yo.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?Oo(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=Oo(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=Oo(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](yo.event?yo.event(e):e)}function zo(e){this.l[e.type+!0](yo.event?yo.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=yo.__b)&&a(n);try{e:if("function"==typeof _){if(m=n.props,g=(a=_.contextType)&&r[a.__c],w=a?g?g.props.value:a.__:r,t.__c?p=(l=n.__c=t.__c).__=l.__E:("prototype"in _&&_.prototype.render?n.__c=l=new _(m,w):(n.__c=l=new Do(m,w),l.constructor=_,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!=_.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=Ao({},l.__s)),Ao(l.__s,_.getDerivedStateFromProps(m,l.__s))),f=l.props,d=l.state,$)null==_.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==_.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=yo.__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)),y=null!=a&&a.type===Po&&null==a.key?a.props.children:a,Ro(e,Array.isArray(y)?y:[y],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&&Oo(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=yo.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),yo.__e(e,n,t)}}function Vo(e,n){yo.__c&&yo.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){yo.__e(e,n.__v)}}))}function Zo(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){yo.__e(e,t)}}function Jo(e,n,t){var r,o;if(yo.unmount&&yo.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){yo.__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;yo.__&&yo.__(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,yo={__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}},_o=0,Do.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))},Do.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Uo(this))},Do.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=yo.__b,si=yo.__r,ui=yo.diffed,ci=yo.__c,ai=yo.unmount;function li(e,n){yo.__h&&yo.__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);!yo.__s&&vi(t.__H,n)&&(t.__=e,t.__H=n,ni.__H.__h.push(t))}function hi(e,n){var t=li(ei++,4);!yo.__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){yo.useDebugValue&&yo.useDebugValue(n?n(e):e)}function gi(){for(var e;e=oi.shift();)if(e.__P)try{e.__H.__h.forEach(yi),e.__H.__h.forEach(_i),e.__H.__h=[]}catch(n){e.__H.__h=[],yo.__e(n,e.__v)}}yo.__b=function(e){ni=null,ii&&ii(e)},yo.__r=function(e){si&&si(e),ei=0;var n=(ni=e.__c).__H;n&&(n.__h.forEach(yi),n.__h.forEach(_i),n.__h=[])},yo.diffed=function(e){ui&&ui(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==oi.push(n)&&ti===yo.requestAnimationFrame||((ti=yo.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},yo.__c=function(e,n){n.some((function(e){try{e.__h.forEach(yi),e.__h=e.__h.filter((function(e){return!e.__||_i(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],yo.__e(t,e.__v)}})),ci&&ci(e,n)},yo.unmount=function(e){ai&&ai(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{yi(e)}catch(e){n=e}})),n&&yo.__e(n,t.__v))};var wi="function"==typeof requestAnimationFrame;function yi(e){var n=ni,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),ni=n}function _i(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 Do).isPureReactComponent=!0,Si.prototype.shouldComponentUpdate=function(e,n){return xi(this.props,e)||xi(this.state,n)};var Ei=yo.__b;yo.__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=yo.__e;yo.__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=yo.unmount;function Di(){this.__u=0,this.t=null,this.__b=null}function Oi(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Mi(){this.u=null,this.o=null}yo.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Pi&&Pi(e)},(Di.prototype=new Do).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Oi(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)},Di.prototype.componentWillUnmount=function(){this.t=[]},Di.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 Do).__e=function(e){var n=this,t=Oi(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)};Do.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Do.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=yo.event;function Wi(){}function zi(){return this.cancelBubble}function qi(){return this.defaultPrevented}yo.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=yo.vnode;yo.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=yo.__r;yo.__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:Do,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:Di,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 Or(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 ys=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 _s(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||_s,onError:t||_s,onCancel:r||_s,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 Ds(e,n,t,r,o){return new Ps(e,n,t,r,o)}function Os(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,Os(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):Ds(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=Os(s),(null!=o?(i=o,i instanceof Ps?Us(i):1):0)>c+1){const r=Ln(Os(s));if(r instanceof Ps)return Rs(Rs(e,n,t,Os(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,Os(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(Os(o),Ns(o),Ts(o),Os(e)),Ns(e),Ts(e),Rs(Ms(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Rs(Os(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,Os(o)),Ns(o),Ts(o),Ms(o)):0===i?Ds(n,t,Os(o),Ms(o),Us(o)):Ls(Os(o),Ns(o),Ts(o),Gs(e,n,t,Ms(o))):i<0?Ds(n,t,void 0,r,2):0===i?Is(n,t):Ds(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?Os(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,Os(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,Os(r)),o=n(Ns(r),Ts(r)),i=e(n,Ms(r));return Ds(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([Os(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;Or(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=Os(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 D{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",_n("System.Exception")]]])}function $u(e,n){const t=ls(vs());return us(()=>os(()=>{bs(t.current)})),$s(r=>{Cs(t.current)||Es(ys.Delay(()=>ys.TryWith(ys.Delay(()=>(n(new au(1)),ys.Bind(e(r),e=>(n(new au(2,e)),ys.Zero())))),e=>(n(new au(3,e)),ys.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,"#/"+yt(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)?yt(e,1,e.length-1):1===n&&(null!=pu("#",e)||null!=pu("#/",e))?"":e,["/"],null,0)))}const yu=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,_u);var _u,vu;class bu extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Cu extends D{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 D{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 D{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 Du extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ou(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 D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","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()]],[["Item1",Jr()],["Item2",Yr()]],[]])}function ju(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h,p,m;switch(Zt(e)?n=11:"account-registry"===Xt(e)?Zt(Yt(e))?n=11:"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)))):"directory"===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=11:"super-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=11:"benefits-onboarding-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=11:"bank-details-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))&&Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=10,p=Xt(Yt(Yt(Yt(Yt(e))))),m=Xt(Yt(Yt(e)))):n=11:"super-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=3,o=Xt(Yt(Yt(e)))):n=11:"benefits-onboarding-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=4,i=Xt(Yt(Yt(e)))):n=11:"bank-details-configuration"===Xt(Yt(Yt(Yt(e))))&&Zt(Yt(Yt(Yt(Yt(e)))))?(n=5,s=Xt(Yt(Yt(e)))):n=11:n=11:n=11,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,new Zr(0,m),new Xr(0,p));case 11:return new Lu(11)}}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]),"directory"]);case 8:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"super-configuration"]);case 9:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"benefits-onboarding-configuration"]);case 10: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]),"directory"];return du(e=>{gu(rr(n),1,1)})}case 8:{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 9:{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 10:{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 yc(e,n){return pc(e,n)}function _c(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?(_c(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=yc(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(Dc(e))?"0":"-"+Ec(Dc(e));case 0:return"0";case 1:return Ec(Dc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Ic&&Oc(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}(Dc(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:Oc(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 Dc(e){return e.v}function Oc(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(Dc(e),Dc(n));case 2:case 3:return!!ac(Dc(e))&&ac(Dc(n));case 4:return!0;case 5:case 6:return ac(Dc(n));case 7:case 8:return ac(Dc(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(Dc(e),Dc(n));case 1:return fc(Dc(n),Dc(e));case 2:return!1;case 3:return!ac(Dc(e))||!ac(Dc(n));case 4:return!1;case 5:return!ac(Dc(n));case 6:case 7:return!1;case 8:return!ac(Dc(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 D{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;Or(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=()=>{Or(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 D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Jc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Xc extends D{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 D{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 D){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 D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ha extends D{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 ya(e,n){_a(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function _a(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 ya(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 Da(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 Oa(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 Oa(Oa(e,n,Na(t)),ka(t),Oa(Ta(t),ka(i),Ta(i)));throw new Error("internal error: Set.rebalance")}return Oa(Oa(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 Oa(Oa(Na(r),ka(r),Na(e)),ka(e),Oa(Ta(e),n,t));throw new Error("internal error: Set.rebalance")}return Oa(Na(r),ka(r),Oa(Ta(r),n,t))}throw new Error("internal error: Set.rebalance")}return Oa(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 Dt((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;Or(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 Da(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=ya(-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,Dt((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 Dt((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 yl(e){return uu(e)}function _l(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,On(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 D}(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,Dn(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,Dn(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,Dn(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,Dn(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,Dn(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,Dn(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,Dt((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)]):Dr((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(yl,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,_l(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 ys.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=ys.Bind(i,e=>ys.Return(new Hn(0,e))),ys.Bind(o,e=>{const n=e;if(1===n.tag)return ys.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ia(t);return ys.Bind(e,e=>ys.Return(new Hn(0,e)))}return ys.Return(new Hn(0,e))}})})}function Tl(e,n){return ys.Delay(()=>{let t;const r=Nl(n,ra(new Zc(0),ta((t=Il(e),t+"/partners"))));return ys.Bind(r,e=>{const n=e;if(1===n.tag)return ys.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])),ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})})}function Pl(e,n,t,r,o){return ys.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|Ou(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 ys.Bind(f,e=>{const n=e;if(1===n.tag)return ys.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 ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})})}class Dl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function Ol(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 Dl(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(Ol,e),["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}class Bl extends D{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-profile-directory-app",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 D{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-super-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 D{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-benefits-onboarding-configuration",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))}class Hl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Wl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-bank-details",fa(Tr(e=>e,[new Hl(1,n),new Hl(0,t),new Hl(2,e.partnerId.fields[0]),Fn(e=>new Hl(3,e.fields[0]),r)]),1))}function zl(e){return No("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function ql(e){return No("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Ki.Children.toArray([e])})}function Vl(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=[zl(e),ql(n)],["children",Ki.Children.toArray(Array.from(t))])])))}function Zl(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 Jl(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 Xl(e){const n=Vt(No("div",{children:Ki.Children.toArray(Array.from(e))}));return No("form",{children:Ki.Children.toArray(Array.from(n))})}function Yl(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 Kl(e,n){const t=rr([No("br",{}),Yl(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 Ql(e){return n=>Vl(e,Zl(n))}function e$(e){return Kl("Account Information",rr([Ql("ID")(e.StreamId),Ql("External ID")(jn(e.ExternalId,"")),Ql("Channel ID")(jn(e.ChannelId,"")),Ql("Name")(e.Name),Ql("Contact")(`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`),Ql("Phone")(e.ContactDetails.MobilePhone),Ql("Email")(e.ContactDetails.Email),Ql("Website")(e.Website)]))}function n$(e){if(null==e)return null;{const n=e;return Kl("Legal Entity",rr([Ql("Business Name")(n.BusinessName),Ql("Business Number")(n.BusinessNumber),Ql("Address Line 1")(n.Address1),Ql("Address Line 2")(jn(n.Address2,"")),Ql("City")(n.City),Ql("State")(jn(n.State,"")),Ql("Postcode")(n.Postcode)]))}}function t$(e){if(null==e)return null;return Kl("Other details",Vt((n="Notes",e=>Vl(n,Jl(e)))(e)));var n}function r$(e){return Xl([e$(e),n$(e.LegalEntity),t$(e.Notes)])}function o$(e){const n=Vt(No("span",{children:[e.error]}));return No("div",{children:Ki.Children.toArray(Array.from(n))})}function i$(){const e=Vt(No("span",{children:["Please wait..."]}));return No("div",{children:Ki.Children.toArray(Array.from(e))})}class s$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class u$ extends L{constructor(e){super(),this.Data=e}}function c$(){return[new u$(new au(0)),fu()]}function a$(e,n){return[new u$(e.fields[0]),fu()]}class l$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","ProfilesDirectory","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function $$(e,n,t){let r,o,i,s,u,c,a,l,$,f,d,h,p,m,g,w,y,_,v,b;const C=[e,n];return Ul(1===t.tag?rr([Ml("Details",mu(Fu((r=C,new Lu(6,r[0],r[1]))),1)),Ml("Directory",void 0),Ml("Super",mu(Fu((o=C,new Lu(8,o[0],o[1]))),1)),Ml("Benefits Onboarding",mu(Fu((i=C,new Lu(9,i[0],i[1]))),1)),Ml("Bank Details",mu(Fu((s=C,new Lu(10,s[0],s[1]))),1))]):2===t.tag?rr([Ml("Details",mu(Fu((u=C,new Lu(6,u[0],u[1]))),1)),Ml("Directory",mu(Fu((c=C,new Lu(7,c[0],c[1]))),1)),Ml("Super",void 0),Ml("Benefits Onboarding",mu(Fu((a=C,new Lu(9,a[0],a[1]))),1)),Ml("Bank Details",mu(Fu((l=C,new Lu(10,l[0],l[1]))),1))]):3===t.tag?rr([Ml("Details",mu(Fu(($=C,new Lu(6,$[0],$[1]))),1)),Ml("Directory",mu(Fu((f=C,new Lu(7,f[0],f[1]))),1)),Ml("Super",mu(Fu((d=C,new Lu(8,d[0],d[1]))),1)),Ml("Benefits Onboarding",void 0),Ml("Bank Details",mu(Fu((h=C,new Lu(10,h[0],h[1]))),1))]):4===t.tag?rr([Ml("Details",mu(Fu((p=C,new Lu(6,p[0],p[1]))),1)),Ml("Directory",mu(Fu((m=C,new Lu(7,m[0],m[1]))),1)),Ml("Super",mu(Fu((g=C,new Lu(8,g[0],g[1]))),1)),Ml("Benefits Onboarding",mu(Fu((w=C,new Lu(9,w[0],w[1]))),1)),Ml("Bank Details",void 0)]):rr([Ml("Details",void 0),Ml("Directory",mu(Fu((y=C,new Lu(7,y[0],y[1]))),1)),Ml("Super",mu(Fu((_=C,new Lu(8,_[0],_[1]))),1)),Ml("Benefits Onboarding",mu(Fu((v=C,new Lu(9,v[0],v[1]))),1)),Ml("Bank Details",mu(Fu((b=C,new Lu(10,b[0],b[1]))),1))]))}function f$(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})}case 4:{const n=e.accountDetails;return No(Wl,{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(r$,r);case 1:return No(o$,{error:"There was an error retrieving account "});case 2:return No(i$,null);case 3:return No(o$,{error:P(o)})}}}}function d$(e){let n,t,r;const o=e.mode,i=e.props,s=Vc(c$,a$,[]);return ss((n=[()=>{const e=i.accountDetails;return n=i.backendUrl,t=i.accessToken,r=e[0],o=e[1],ys.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 ys.Bind(i,e=>{const n=e;if(1===n.tag)return ys.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 ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})});var n,t,r,o},e=>{s[1](new s$(0,e))}],$u(n[0],n[1]))),No("div",k(Vt((t=[(r=i.accountDetails,$$(r[0],r[1],o)),f$(i,o,s[0])],["children",Ki.Children.toArray(Array.from(t))]))))}class h$ extends D{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=>ys.Delay(()=>{const r=Al(e.props.partnerId);return ys.Bind(Pl(e.props.backendUrl,e.props.accessToken,r,n,void 0),e=>(t(new h$(2,new au(2,e))),ys.Zero()))})}class g$ extends L{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function w$(){return[new g$(new au(0),Tu,Eu,(e=20,new Du(0,e))),fu()];var e}class y$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function _$(e){return new y$(0,e)}function v$(e){return e.fields[0]}class b$ extends D{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 _$(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 E$(e,n){let t;return C$(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 k$(e,n){return C$(No("td",{className:pt(" ",Nr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function A$(e){return["fillRule",e]}function I$(e){return["clipRule",e]}const N$=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"],A$("evenodd"),I$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()]))),T$=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"],A$("evenodd"),I$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()])));function P$(e,n,t,r){let o,i,s;return _$(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?N$:T$))),["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 D$(e,n){return P$(v(ku(e.Sort),new bu(1)),v(Au(e.Sort),new Cu(0)),t=>{n(new h$(1,Iu(new bu(1),e.Sort)))},"Name")}function O$(e,n){return P$(v(ku(e.Sort),new bu(0)),v(Au(e.Sort),new Cu(0)),t=>{n(new h$(1,Iu(new bu(0),e.Sort)))},"Id")}function M$(e,n){return kr(br(()=>{let t;return Nr(Sr(function(e,n,t,r){let o;return C$(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 C$(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 C$(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,C$(No("td",{className:pt(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))));var e}))))))}))}class U$ extends L{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class B$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class R$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function L$(e,n){let t;return No("tr",k(rr([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Mr(x$,n),["children",Ki.Children.toArray(Array.from(t))])])))}function G$(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 j$(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,Ot($,Kt(f)))));var $,f;const d=G$(Jt(l),s.LoadNext),h=0|d[0],p=d[1];let m;const g=lr(h-1,l);m=null==g?new B$(1):new B$(0,g);const w=0|Jt(s.Data),y=null==s.LoadNext?new R$(0,w):new R$(1),_=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(v$,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(L$,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),_,v,y,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 F$(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 H$(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 W$(e){let n,t,r,o,i,s,u;const c=function(e){return new p$(e)}(e),a=Vc(w$,(e,n)=>function(e,n,t){let r,o,i,s;switch(n.tag){case 1:{const r=n.fields[0];return[new g$(new au(1),t.SearchText,r,t.PageSize),du(n=>{const o=new Mu(t.SearchText,r,t.PageSize);Es(m$(e)(o)(n))})]}case 2:return[new g$(n.fields[0],t.SearchText,t.Sort,t.PageSize),fu()];case 3:return[new g$((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 g$(new au(1),t.SearchText,t.Sort,t.PageSize),du(n=>{const r=new Mu(t.SearchText,t.Sort,t.PageSize);Es(m$(e)(r)(n))})];default:return[new g$(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 h$(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=[F$(Pu(l.SearchText),e=>{$(new h$(0,e))}),H$(e=>{$(new h$(4))})],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])]))),(o=p,i=rr([O$(l,$),D$(l,$),S$("Contact"),S$("Website")]),s=new U$(o.Accounts,Fn(e=>n=>{var t;Es((t=c,e=>n=>r=>ys.Delay(()=>{const o=Al(t.props.partnerId);return ys.Bind(Pl(t.props.backendUrl,t.props.accessToken,o,e,n),e=>(r(new h$(3,e)),ys.Zero()))}))(f)(e)($))},o.Token)),u=0|Ou(l.PageSize),No(j$,{columnHeaders:i,renderRowCells:n=>ur(n=>M$(e.partnerId,n),n),pageSize:u,data:s}))]);return No("div",{children:Ki.Children.toArray(Array.from(n))})}case 1:return No(o$,{error:m});case 2:return No(i$,null);case 3:return No(o$,{error:P(g)})}}function z$(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 q$(e,n){const t=rr([No("br",{}),z$(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 V$(e){return Xl([q$("Partner Information",rr([Vl("ID",Zl(kt(e.StreamId))),Vl("Name",Zl(Kr(e.Name))),Vl("Contact",Zl(`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`)),Vl("Phone",Zl(ro(e.ContactDetails.MobilePhone))),Vl("Website",Zl(Qr(e.Website))),Vl("Notes",Jl(jn((n=e.Notes,null!=n?n.fields[0]:void 0),"")))]))]);var n}class Z$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class J$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class X$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Y$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function K$(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",mu(Fu(new Lu(3,n.partnerId)),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,n.partnerId)),1)),Ml("Bank Details",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",void 0),Ml("Benefits Onboarding",mu(Fu(new Lu(4,t)),1)),Ml("Bank Details",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",mu(Fu(new Lu(3,r)),1)),Ml("Benefits Onboarding",void 0),Ml("Bank Details",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",mu(Fu(new Lu(3,o)),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,o)),1)),Ml("Bank Details",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",mu(Fu(new Lu(3,new Zr(0,kt(i.StreamId)))),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,new Zr(0,kt(i.StreamId)))),1)),Ml("Bank Details",mu(Fu(new Lu(5,new Zr(0,kt(i.StreamId)))),1))])))}function Q$(e){switch(e.tag){case 1:{const n=e.fields[0];return No(W$,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return No(Gl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return No(Fl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return No(Wl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return No(V$,e.fields[0])}}function ef(e){let n;const t=e.mode;return No("div",k(Vt((n=[K$(t),Q$(t)],["children",Ki.Children.toArray(Array.from(n))]))))}function nf(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(v$,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(x$,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([S$("ID"),S$("Name"),S$("Contact"),S$("Phone"),S$("Website")]),ur(e=>{let n;const t=kt(e.StreamId);return rr([(n=[mu(Fu(new Lu(1,new Zr(0,t))),1),t],E$(n[0],n[1])),k$(["text-gray-500"],Kr(e.Name)),k$(["text-gray-500"],`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`),k$(["text-gray-500"],ro(e.ContactDetails.MobilePhone)),k$(["text-gray-500"],Qr(e.Website))])},n))}var tf=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 rf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function of(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(tf,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 sf(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h,p,m,g,w,y,_,v;const b=e.page,C=()=>new rf(0,["Partners",Fu(new Lu(0))]),x=e=>new rf(0,[uo(e),Fu(new Lu(1,e))]),S=e=>new rf(0,["Accounts",Fu(new Lu(2,e))]),E=e=>new rf(0,[co(e),void 0]);return of(11===b.tag?Vt(C()):1===b.tag?rr([C(),x(b.fields[0])]):2===b.tag?(n=b.fields[0],rr([C(),x(n),S(n)])):3===b.tag?(t=b.fields[0],rr([C(),x(t),new rf(0,["Super",Fu(new Lu(3,t))])])):4===b.tag?(r=b.fields[0],rr([C(),x(r),new rf(0,["Benefits Onboarding",Fu(new Lu(4,r))])])):5===b.tag?(o=b.fields[0],rr([C(),x(o),new rf(0,["Bank Details",Fu(new Lu(5,o))])])):6===b.tag?(i=b.fields[0],rr([C(),x(i),S(i),E(b.fields[1])])):7===b.tag?(s=b.fields[0],u=b.fields[1],rr([C(),x(s),S(s),E(u),(c=[s,u],new rf(0,["Directory",Fu((a=[c[0],c[1]],new Lu(7,a[0],a[1])))]))])):8===b.tag?(l=b.fields[0],$=b.fields[1],rr([C(),x(l),S(l),E($),(f=[l,$],new rf(0,["Super",Fu((d=[f[0],f[1]],new Lu(8,d[0],d[1])))]))])):9===b.tag?(h=b.fields[0],p=b.fields[1],rr([C(),x(h),S(h),E(p),(m=[h,p],new rf(0,["Benefits Onboarding",Fu((g=[m[0],m[1]],new Lu(9,g[0],g[1])))]))])):10===b.tag?(w=b.fields[0],y=b.fields[1],rr([C(),x(w),S(w),E(y),(_=[w,y],new rf(0,["Bank Details",Fu((v=[_[0],_[1]],new Lu(10,v[0],v[1])))]))])):Vt(C()))}function uf(){return(uf=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 cf(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 af(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=No(cf,uf({},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[lf(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(df,{name:a},c):r[i]=c}var l=t?No(df,null,r):r;return No(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ko:Yo)(this._vdom,this._root)}function lf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function $f(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[lf(e)]=t,this._vdom=Qo(this._vdom,r),Yo(this._vdom,this._root)}}function ff(){Yo(this._vdom=null,this._root)}function df(e,n){var t=this;return No("slot",uf({},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 hf extends L{constructor(e,n){super(),this.Data=e,this.CurrentPage=n}}function pf(){return vn("AccountRegistry.AdminUI.App.State",[],hf,()=>[["Data",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))],["CurrentPage",Gu()]])}class mf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function gf(){return bn("AccountRegistry.AdminUI.App.Msg",[],mf,()=>[[["Item",Gu()]],[["Item",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))]]])}function wf(){const e=ju(wu(window.location.hash,1));return[new hf(new au(0),e),11===e.tag?Hu(new Lu(0)):fu()]}function yf(e,n){if(0===e.tag){const t=e.fields[0];return 11===t.tag?[n,Hu(t)]:[new hf(n.Data,t),fu()]}return[new hf(e.fields[0],n.CurrentPage),fu()]}function _f(e){let n;const t=Vc(wf,yf,[]),r=t[0],o=t[1];ss($u(()=>{return n=e.backendUrl,t=e.accessToken,ys.Delay(()=>{const e=Tl(n,t);return ys.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])),ys.Return(n)})});var n,t},e=>{o(new mf(1,e))}));const i=(n,t)=>No(d$,{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(i$,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(o$,{error:"Unknown Partner"});else{s=No(ef,{mode:new Z$(0,e)})}break}case 2:s=No(ef,{mode:new Z$(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:n.fields[0]})});break;case 3:s=No(ef,{mode:new Z$(2,new J$(n.fields[0],e.backendUrl,e.accessToken))});break;case 4:s=No(ef,{mode:new Z$(3,new X$(n.fields[0],e.backendUrl,e.accessToken))});break;case 5:s=No(ef,{mode:new Z$(4,new Y$(n.fields[0],e.backendUrl,e.accessToken))});break;case 6:s=i([n.fields[0],n.fields[1]],new l$(0));break;case 7:s=i([n.fields[0],n.fields[1]],new l$(1));break;case 8:s=i([n.fields[0],n.fields[1]],new l$(2));break;case 9:s=i([n.fields[0],n.fields[1]],new l$(3));break;case 10:s=i([n.fields[0],n.fields[1]],new l$(4));break;default:s=No(nf,{partnerList:a.Partners})}break}case 2:s=No(o$,{error:l});break;case 3:s=No(o$,{error:P($)});break}var f,d;return yu(k(rr([["onUrlChanged",e=>{o(new mf(0,ju(e)))}],(n=rr([No(sf,{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=af,o.prototype.attributeChangedCallback=$f,o.prototype.disconnectedCallback=ff,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(_f,e),"superhero-account-registry")}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "2.5.22",
3
+ "version": "2.7.24",
4
4
  "description": "Flare Superhero Account Registry Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [