@flarehr/superhero-account-registry 2.30.12 → 2.30.47

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,36 @@
1
- !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}t.r(n),t.d(n,"State",(function(){return $f})),t.d(n,"State$reflection",(function(){return ff})),t.d(n,"Msg",(function(){return df})),t.d(n,"Msg$reflection",(function(){return hf})),t.d(n,"StateModule_init",(function(){return pf})),t.d(n,"StateModule_update",(function(){return mf})),t.d(n,"AccountRegistryComponent",(function(){return gf}));class u{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function c(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new u(e[Symbol.iterator]())}function a(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function l(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function $(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function h(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function p(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function g(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return p(e);case"string":return h(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=g(e[r]);return m(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return m(Object.values(e).map(e=>g(e)))}return p(d.id(e))}}function w(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function _(e,n){return w(e,n,y)}function y(e,n){return e===n||(null==e?null==n:null!=n&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(n):r(e)?r(n)&&_(e,n):e instanceof Date?n instanceof Date&&0===v(e,n):Object.getPrototypeOf(e).constructor===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!y(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function v(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+$(e),r=n.getTime()+$(n)),t===r?0:t<r?-1:1}function b(e,n){return e===n?0:e<n?-1:1}function C(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,x)}function x(e,n){return e===n?0:null==e?null==n?0:-1:null==n?1:"object"!=typeof e?e<n?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(n):r(e)?r(n)?C(e,n):-1:e instanceof Date?n instanceof Date?v(e,n):-1:Object.getPrototypeOf(e).constructor===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=x(e[s],n[s]),0!==i)return i}return 0}(e,n):-1}function S(e,n,t){return e(n,t)>0?n:t}function E(e){const n={};for(const t of e)n[t[0]]=t[1];return n}d.idMap=new WeakMap,d.count=0;function k(e,n){if(null==n||n.length>1)return n;let t;switch(e){case 2:t=(e,t)=>n(e)(t);break;case 3:t=(e,t,r)=>n(e)(t)(r);break;case 4:t=(e,t,r,o)=>n(e)(t)(r)(o);break;case 5:t=(e,t,r,o,i)=>n(e)(t)(r)(o)(i);break;case 6:t=(e,t,r,o,i,s)=>n(e)(t)(r)(o)(i)(s);break;case 7:t=(e,t,r,o,i,s,u)=>n(e)(t)(r)(o)(i)(s)(u);break;case 8:t=(e,t,r,o,i,s,u,c)=>n(e)(t)(r)(o)(i)(s)(u)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return t.__CURRIED__=n,t}function I(e,n){if(null==n||1===n.length)return n;if("__CURRIED__"in n)return n.__CURRIED__;switch(e){case 2:return e=>t=>n(e,t);case 3:return e=>t=>r=>n(e,t,r);case 4:return e=>t=>r=>o=>n(e,t,r,o);case 5:return e=>t=>r=>o=>i=>n(e,t,r,o,i);case 6:return e=>t=>r=>o=>i=>s=>n(e,t,r,o,i,s);case 7:return e=>t=>r=>o=>i=>s=>u=>n(e,t,r,o,i,s,u);case 8:return e=>t=>r=>o=>i=>s=>u=>c=>n(e,t,r,o,i,s,u,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function A(e,n){return t=>function e(n,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=I(e,t)),n>1&&(t=k(n,t))}const s=n(t);return o+1===r.length?s:n=>e(s,n,r,o+1)}(e,t,n,0)}function N(e,n=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=N(r);else{if(100===n){t+="; ...";break}t+="; "+N(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+N(t,n+1)).join("\n ")+" }":t.name}}return String(e)}class T{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",n=!0;if(1===this.fields.length){const t=N(this.fields[0]);n=t.indexOf(" ")>=0,e=t}else e=this.fields.map(e=>N(e)).join(", ");return this.name+(n?" (":" ")+e+(n?")":"")}}GetHashCode(){const e=this.fields.map(e=>g(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&_(this.fields,e.fields))}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function P(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function D(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+N(n)).join("\n ")+" }"}function M(e){return m(Object.values(e).map(e=>g(e)))}function O(e,n){if(e===n)return!0;if(s(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!y(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(s(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=x(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return P(this)}toString(){return D(this)}GetHashCode(){return M(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class B{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class L{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class F{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return K(this)}GetHashCode(){return G(this)}Equals(e){return H(this,e)}}function j(e){return null!=e.generics?e.generics:[]}function G(e){return m([h(e.fullname),...j(e).map(G)])}function H(e,n){return""===e.fullname?""===n.fullname&&w(ie(e),ie(n),([e,n],[t,r])=>e===t&&H(n,r)):e.fullname===n.fullname&&w(j(e),j(n),H)}function W(e,n,t,r){return new F(e,n,t,r)}function z(e,n,t,r){return new F(e,n,t,void 0,r)}function q(e,n,t,r){const o=new F(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new L(o,t,e[t],n))});return o}function V(e){return new F("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Z(e){return new F("Microsoft.FSharp.Collections.FSharpList`1",[e])}const J=new F("System.Object"),X=(new F("Microsoft.FSharp.Core.Unit"),new F("System.Char"),new F("System.String"));new F("System.Boolean"),new F("System.SByte"),new F("System.Byte"),new F("System.Int16"),new F("System.UInt16"),new F("System.Int32"),new F("System.UInt32"),new F("System.Single"),new F("System.Double"),new F("System.Decimal");function Y(e){if(Array.isArray(e))return e[0];if(e instanceof L)return e.name;{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}function K(e){const n=null==e.generics||Q(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map(e=>K(e)).join(",")+"]":e.fullname}function Q(e){return e.fullname.endsWith("[]")}function ee(e){return null!=e.enumCases&&e.enumCases.length>0}function ne(e){if(ee(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function te(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(e.fullname+" is not an enum type")}function re(e,n){const t=parseInt(n,10);return te(e,isNaN(t)?n:t)[1]}function oe(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ie(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function se(e){return e.fullname.startsWith("System.Tuple")&&!Q(e)}function ue(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...n):{}}class ce{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return g(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof ce?e.value:e)}CompareTo(e){return null==e?1:x(this.value,e instanceof ce?e.value:e)}}function ae(e){return null==e||e instanceof ce?new ce(e):e}function le(e){if(null==e)throw new Error("Option has no value");return e instanceof ce?e.value:e}function $e(e){return null==e?[]:[le(e)]}function fe(e,n){return null!=e?le(e):n}function de(e,n){return null!=n?ae(e(le(n))):void 0}class he extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function pe(e,n){if(0===n.tag){const t=n.fields[0];return new he(0,e(t))}{const e=n.fields[0];return new he(1,e)}}function me(e,n){if(0===n.tag){return e(n.fields[0])}{const e=n.fields[0];return new he(1,e)}}var ge;function we(e,n){switch(n){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function _e(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t=t||function(e,n){if(n&ge.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n)).test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}function ye(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=_e(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=we(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=we(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function ve(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ge||(ge={}));const be=Symbol("numeric");function Ce(e){return"number"==typeof e||(null==e?void 0:e[be])}function xe(e,n){return"number"==typeof e?e*n:e[be]().multiply(n)}function Se(e,n){return"number"==typeof e?e.toFixed(n):e[be]().toFixed(n)}function Ee(e,n){return"number"==typeof e?e.toPrecision(n):e[be]().toPrecision(n)}function ke(e,n){return"number"==typeof e?e.toExponential(n):e[be]().toExponential(n)}function Ie(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[be]().toHex()}var Ae=null;try{Ae=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function Ne(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Te(e){return!0===(e&&e.__isLong__)}Ne.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ne.prototype.Equals=function(e){return on(this,e)},Ne.prototype.CompareTo=function(e){return an(this,e)},Ne.prototype.toString=function(e){return en(this,e)},Ne.prototype.toJSON=function(){return en(this)},Ne.prototype[be]=function(){const e=this;return{multiply:n=>dn(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>en(e.unsigned?e:yn(_n(e),!0),16)}},Ne.prototype.__isLong__,Object.defineProperty(Ne.prototype,"__isLong__",{value:!0});var Pe={},De={};function Me(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=De[e])?r:(t=Re(e,(0|e)<0?-1:0,!0),o&&(De[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Pe[e])?r:(t=Re(e,e<0?-1:0,!1),o&&(Pe[e]=t),t)}function Oe(e,n){if(isNaN(e))return n?ze:We;if(n){if(e<0)return ze;if(e>=je)return Xe}else{if(e<=-Ge)return Ye;if(e+1>=Ge)return Je}return e<0?ln(Oe(-e,n)):Re(e%Fe|0,e/Fe|0,n)}function Re(e,n,t){return new Ne(e,n,t)}var Ue=Math.pow;function Be(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return We;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return ln(Be(e.substring(1),n,t));for(var o=Oe(Ue(t,8)),i=We,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),t);if(u<8)i=$n(dn(i,Oe(Ue(t,u))),Oe(c));else i=$n(i=dn(i,o),Oe(c))}return i.unsigned=n,i}function Le(e,n){return"number"==typeof e?Oe(e,n):"string"==typeof e?Be(e,n):Re(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Fe=4294967296,je=Fe*Fe,Ge=je/2,He=Me(1<<24),We=Me(0),ze=Me(0,!0),qe=Me(1),Ve=Me(1,!0),Ze=Me(-1),Je=Re(-1,2147483647,!1),Xe=Re(-1,-1,!0),Ye=Re(0,-2147483648,!1);function Ke(e){return e.unsigned?e.low>>>0:e.low}function Qe(e){return e.unsigned?(e.high>>>0)*Fe+(e.low>>>0):e.high*Fe+(e.low>>>0)}function en(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(nn(e))return"0";if(tn(e)){if(on(e,Ye)){var t=Oe(n),r=hn(e,t),o=fn(dn(r,t),e);return en(r,n)+Ke(o).toString(n)}return"-"+en(ln(e),n)}for(var i=Oe(Ue(n,6),e.unsigned),s=e,u="";;){var c=hn(s,i),a=(Ke(fn(s,dn(c,i)))>>>0).toString(n);if(nn(s=c))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function nn(e){return 0===e.high&&0===e.low}function tn(e){return!e.unsigned&&e.high<0}function rn(e){return 1==(1&e.low)}function on(e,n){return Te(n)||(n=Le(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function sn(e,n){return an(e,n)<0}function un(e,n){return an(e,n)>0}function cn(e,n){return an(e,n)>=0}function an(e,n){if(Te(n)||(n=Le(n)),on(e,n))return 0;var t=tn(e),r=tn(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:tn(fn(e,n))?-1:1}function ln(e){return!e.unsigned&&on(e,Ye)?Ye:$n(pn(e),qe)}function $n(e,n){Te(n)||(n=Le(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=0,l=0,$=0,f=0;return $+=(f+=i+(65535&n.low))>>>16,l+=($+=o+c)>>>16,a+=(l+=r+u)>>>16,a+=t+s,Re(($&=65535)<<16|(f&=65535),(a&=65535)<<16|(l&=65535),e.unsigned)}function fn(e,n){return Te(n)||(n=Le(n)),$n(e,ln(n))}function dn(e,n){if(nn(e))return e.unsigned?ze:We;if(Te(n)||(n=Le(n)),Ae)return Re(Ae.mul(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned);if(nn(n))return e.unsigned?ze:We;if(on(e,Ye))return rn(n)?Ye:We;if(on(n,Ye))return rn(e)?Ye:We;if(tn(e))return tn(n)?dn(ln(e),ln(n)):ln(dn(ln(e),n));if(tn(n))return ln(dn(e,ln(n)));if(sn(e,He)&&sn(n,He))return Oe(Qe(e)*Qe(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=65535&n.low,l=0,$=0,f=0,d=0;return f+=(d+=i*a)>>>16,$+=(f+=o*a)>>>16,f&=65535,$+=(f+=i*c)>>>16,l+=($+=r*a)>>>16,$&=65535,l+=($+=o*c)>>>16,$&=65535,l+=($+=i*u)>>>16,l+=t*a+r*c+o*u+i*s,Re((f&=65535)<<16|(d&=65535),(l&=65535)<<16|($&=65535),e.unsigned)}function hn(e,n){if(Te(n)||(n=Le(n)),nn(n))throw Error("division by zero");var t,r,o;if(Ae)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Re((e.unsigned?Ae.div_u:Ae.div_s)(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned):e;if(nn(e))return e.unsigned?ze:We;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Re(e.low,e.high,!0)}(n)),un(n,e))return ze;if(un(n,wn(e,1)))return Ve;o=ze}else{if(on(e,Ye))return on(n,qe)||on(n,Ze)?Ye:on(n,Ye)?qe:on(t=mn(hn(gn(e,1),n),1),We)?tn(n)?qe:Ze:o=$n(t,hn(r=fn(e,dn(n,t)),n));if(on(n,Ye))return e.unsigned?ze:We;if(tn(e))return tn(n)?hn(ln(e),ln(n)):ln(hn(ln(e),n));if(tn(n))return ln(hn(e,ln(n)));o=We}for(r=e;cn(r,n);){t=Math.max(1,Math.floor(Qe(r)/Qe(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:Ue(2,i-48),u=Oe(t),c=dn(u,n);tn(c)||un(c,r);)c=dn(u=Oe(t-=s,e.unsigned),n);nn(u)&&(u=qe),o=$n(o,u),r=fn(r,c)}return o}function pn(e){return Re(~e.low,~e.high,e.unsigned)}function mn(e,n){return Te(n)&&(n=Ke(n)),0==(n&=63)?e:n<32?Re(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Re(0,e.low<<n-32,e.unsigned)}function gn(e,n){return Te(n)&&(n=Ke(n)),0==(n&=63)?e:n<32?Re(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Re(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function wn(e,n){if(Te(n)&&(n=Ke(n)),0===(n&=63))return e;var t=e.high;return n<32?Re(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Re(32===n?t:t>>>n-32,0,e.unsigned)}function _n(e,n){return n?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(e):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(e)}function yn(e,n,t){return t?function(e,n){return new Ne(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Ne(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}const vn=$n,bn=dn,Cn=hn,xn=function(e,n){return Te(n)||(n=Le(n)),Ae?Re((e.unsigned?Ae.rem_u:Ae.rem_s)(e.low,e.high,n.low,n.high),Ae.get_high(),e.unsigned):fn(e,dn(hn(e,n),n))},Sn=ln,En=function(e,n){return Te(n)||(n=Le(n)),Re(e.low&n.low,e.high&n.high,e.unsigned)},kn=an,In=Re,An=Ke,Nn=Qe;function Tn(e,n,t){let r=e,o=0;switch(t){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return Re(r,o>>31,n)}const Pn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Dn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+l(~~(e/36e5),2)+":"+l(t,2)}function Mn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function On(e,n,t){return n.replace(/(\w)\1*/g,n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r})}function Rn(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Dn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return On(i,n,!0);switch(n){case"D":case"d":return Mn(i,"first");case"T":case"t":return Mn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+Dn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Un(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return On(e,n,t);switch(n){case"D":case"d":return t?Mn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?Mn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return l(e.getFullYear(),4)+"-"+l(e.getMonth()+1,2)+"-"+l(e.getDate(),2)+"T"+l(e.getHours(),2)+":"+l(e.getMinutes(),2)+":"+l(e.getSeconds(),2)+"."+l(e.getMilliseconds(),3)+(n?Dn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function Bn(e,n,t){return null!=e.offset?Rn(e,n):Un(e,n)}function Ln(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Fn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let n=new Date(e);if(isNaN(n.getTime())){const t=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==t)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=t[2]){const e=t[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=t[3]&&"PM"===t[3].toUpperCase()&&(r+=720)}if(null!=t[4]){if(null!=t[1])e=new Date(t[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}const n=t[4].substr(1).split(":");let o=60*parseInt(n[0],10)+parseInt(n[1]||"0",10);"+"===t[4][0]&&(o*=-1),r+=60*o}else if(null!=t[1])e=new Date(t[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}n=new Date(e.getTime()+1e3*r),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}}return n}function jn(e,n){try{return n.contents=function(e,n=!1){const t=Fn(e),r=Pn.exec(e),o=null!=r?n&&"Z"===r[0]?1:2:0;return Ln(t.getTime(),o)}(e),!0}catch(e){return!1}}function Gn(e,n=0){if(0!=(-276&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let t="g";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function Hn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Wn(e,n,t=0){let r;if(r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Gn(n,t),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const zn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,qn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Vn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Zn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Jn(e){return{input:e,cont:(n=e,e=>zn.test(n)?function e(n,t,r=new B(null)){return(...o)=>{let i=n;for(const e of o)i=et(i,e,r);return zn.test(i)?e(i,t,r):t(i.replace(/%%/g,"%"))}}(n,e):e(n))};var n}function Xn(e,n){let t=0;return e.replace(qn,(e,r,o,i,s,u)=>Qn(n[t++],r,o,i,s,u)).replace(/%%/g,"%")}function Yn(e,n){return"string"==typeof n?e(n):n.cont(e)}function Kn(e){return Yn(e=>e,e)}function Qn(e,n,t,r,o,i){let s="";if(t=t||"",i=i||"",Ce(e))switch("x"!==i.toLowerCase()&&(Zn(e,0)?(e=xe(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=Se(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?Ee(e,o):Ee(e);break;case"e":case"E":e=null!=o?ke(e,o):ke(e);break;case"x":e=Ie(e);break;case"X":e=Ie(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Bn(e):N(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const n=t.indexOf("0")>=0,o=t.indexOf("-")>=0,i=o||!n?" ":"0";e="0"===i?s+(e=it(e,r-s.length,i,o)):it(s+e,r,i,o)}return n?n+e:e}function et(e,n,t){return e.replace(zn,(e,r,o,i,s,u)=>{if(null!=t.contents)i=t.contents,t.contents=null;else if("*"===i){if(n<0)throw new Error("Non-negative number required");return t.contents=n,e}return Qn(n,r,o,i,s,u).replace(/%/g,"%%")})}function nt(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Vn,(e,t,r,o,i,s)=>{let u=n[t];if(Ce(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=Se(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Ee(u,i):Ee(u);break;case"e":case"E":u=null!=i?ke(u,i):ke(u);break;case"p":case"P":i=null!=i?i:2,u=Se(xe(u,100),i)+" %";break;case"d":case"D":u=null!=i?it(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?it(Ie(u),i,"0"):Ie(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(n,t,r)=>(Zn(u,0)&&(u=xe(u,-1),e="-"),u=Se(u,null!=r?r.length-1:0),it(u,(t||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?Bn(u,s||o):N(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=it(String(u),Math.abs(r)," ",r<0)),u})}function tt(e){return"string"!=typeof e||0===e.length}function rt(e){return"string"!=typeof e||/^\s*$/.test(e)}function ot(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function it(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function st(e,n,t,r){if(r="number"==typeof r?r:void 0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];if(!Array.isArray(n)){if(0===r)return e.split(n,t);const o=arguments.length;n=Array(o-1);for(let e=1;e<o;e++)n[e-1]=arguments[e]}n=(n=n.map(e=>Hn(e))).length>0?n:[" "];let o=0;const i=[],s=new RegExp(n.join("|"),"g");for(;null==t||t>1;){const n=s.exec(e);if(null===n)break;(!r||n.index-o>0)&&(t=null!=t?t-1:t,i.push(e.substring(o,n.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function ut(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}const ct=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,at=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,lt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function $t(e){function n(e){return e.replace(at,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(ct.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Hn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(at.test(t))return n(t);if(lt.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function ft(e,n){try{return n.contents=$t(e),!0}catch(e){return!1}}class dt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function ht(){return q("MetadataTypes.StreamId",[],dt,()=>[[["Item",X]]])}function pt(e){return e.fields[0]}class mt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}class gt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class wt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class _t extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class yt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class vt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class bt extends U{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class Ct extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class xt extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function St(){return q("BasicModels.PartnerId",[],xt,()=>[[["Item",X]]])}class Et extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function kt(){return q("BasicModels.AccountId",[],Et,()=>[[["Item",X]]])}function It(e,n){return"function"==typeof e?new e(n):new Array(n)}function At(){throw new Error("Arrays had different lengths")}function Nt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Tt(e,n,t){const r=0|n.length,o=It(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function Pt(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=It(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function Dt(e,n,t){return t.reduce((n,t)=>e(n,t),n)}function Mt(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=0|(r*e|0);o=n.slice(i,i+e),t.push(o)}return t}}function Ot(e,n,t){return 0===function(e,n,t){if(null==n)return null==t?0:-1;if(null==t)return 1;{let r=0,o=0;const i=0|n.length,s=0|t.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(n[r],t[r]),r+=1;return 0|o}}((e,n)=>x(e,n),n,t)}function Rt(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}function Ut(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&At();const i=0|n.length;for(let r=1;r<=i;r++)o=e(r-1,n[i-r],t[i-r],o);return o}((n,t,r,o)=>e(t,r,o),n,t,r)}class Bt extends U{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+ot("; ",this)+"]"}Equals(e){const n=this;if(n===e)return!0;return((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(y(t.head,r.head)){e=i,n=s;continue e}return!1}return!1}return null==o[1]}})(n,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+g(i.head)+631*r,t=u}}})(0,0,this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|x(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new Lt(e)}(this)}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class Lt{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function Ft(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}function jt(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Gt(e){const n=e.tail;if(null!=n){return n}throw new Error("List was empty\\nParameter name: list")}function Ht(){return new Bt(null,void 0)}function Wt(e,n){return new Bt(e,n)}function zt(e){return new Bt(e,new Bt(null,void 0))}function qt(e){return null==e.tail}function Vt(e){return Ft(e)}function Zt(e){return jt(e)}function Jt(e){return Gt(e)}function Xt(e){const n=0|Ft(e),t=Nt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(null==o.tail)break;t[r]=jt(o),e=r+1,n=Gt(o)}})(0,e),t}function Yt(e,n,t){let r=n,o=t;for(;null!=o.tail;)r=e(r,jt(o)),o=Gt(o);return r}function Kt(e){return Yt((e,n)=>new Bt(n,e),new Bt(null,void 0),e)}function Qt(e,n){return Yt((n,t)=>{e(t)},void 0,n)}function er(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=new Bt(e[n],t);return t}function nr(e){return er(e,new Bt(null,void 0))}function tr(e){if(r(e)){return nr(e)}if(e instanceof Bt){return e}{const n=new Bt(null,void 0);let t=n;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),n=t,o=new Bt(e,void 0);n.tail=o,t=o}}finally{r.Dispose()}const o=t,i=new Bt(null,void 0);return o.tail=i,Gt(n)}}function rr(e,n){return Yt((e,n)=>new Bt(n,e),n,Kt(e))}function or(e,n){const t=new Bt(null,void 0),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(null==s.tail)return i;n=o+1,t=e(o,i,jt(s)),r=Gt(s)}})(0,n,t)}((n,t,r)=>{const o=new Bt(e(n,r),void 0);return t.tail=o,o},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}function ir(e,n){const t=new Bt(null,void 0),r=Yt((n,t)=>{const r=new Bt(e(t),void 0);return n.tail=r,r},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}function sr(e,n){return(n=>{e:for(;;){const t=n;if(null==t.tail)return;{const r=e(jt(t));if(null==r){n=Gt(t);continue e}return r}}})(n)}function ur(e,n){return sr(n=>e(n)?ae(n):void 0,n)}function cr(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(null==o.tail)return;if(r===e)return ae(jt(o));n=r+1,t=Gt(o)}})(0,n)}function ar(){return e=(e,n)=>x(e,n),{Compare:(n,t)=>e(n,t)};var e}function lr(){return ar()}function $r(){throw new Error("Enumeration has not started. Call MoveNext.")}function fr(){throw new Error("Enumeration already finished.")}class dr{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=c(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=N(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(n+="; ..."),n+"]"}finally{t.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class hr{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){return function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function pr(e,n,t){return new hr(e,n,t)}function mr(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!0,null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}if(null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}};return pr(()=>{if(r?o&&fr():$r(),null!=i){return le(i)}return fr()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[n,t];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=ae(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{t=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=c(r)}else s(),o=!1}else n=c(e)}return le(o)})()),()=>{o||s()})}function gr(e,n,t){let r=!1,o=void 0,i=ae(e());const s=()=>{if(null!=i){const e=le(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return pr(()=>{if(r||$r(),null!=o){return le(o)}return fr()},()=>{if(r||(r=!0),null!=i){const e=le(i);let t;try{t=n(e)}catch(e){throw u(),e}if(null!=t){return o=t,!0}return u(),!1}return!1},s)}function wr(e,n){null==n&&function(e){throw new Error(e)}(e)}function _r(e){return function(e){return new dr(e)}(e)}function yr(e){return wr("source",e),c(e)}function vr(e){return _r(()=>c(e()))}function br(e){return _r(()=>mr(e))}function Cr(){return vr(()=>new Array(0))}function xr(e){return vr(()=>function(e,n){const t=It(n,1);return t[0]=e,t}(e))}function Sr(e){if(r(e)){return nr(e)}if(e instanceof Bt){return e}return tr(e)}function Er(e,n,t){return _r(()=>gr(e,n,t))}function kr(e,n,t){return _r(()=>{let r=-1;return gr(e,e=>(r+=1,n(r,e)),t)})}function Ir(e,n){return br([e,n])}function Ar(e,n){return Er(()=>yr(n),n=>{let t=void 0;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t},e=>{e.Dispose()})}function Nr(e,n,t){const r=yr(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function Tr(e,n,t){const r=yr(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function Pr(e,n){return Tr((n,t)=>{e(t)},void 0,n)}function Dr(e,n){return Er(()=>yr(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?ae(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Mr(e,n){return kr(()=>yr(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?ae(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}!function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),n=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),t=new Uint32Array(e),r=new Uint8Array(n);for(let e=1;e<t.length;++e)t[e]+=t[e-1]}();function Or(e,n){const t=function(e,n,t=0){let r;return r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Gn(n,t),r.exec(e)}(Gn(e),n);return null!=t?Jt(Sr(vr(()=>Dr(e=>e||"",t)))):void 0}function Rr(e,n){return tt(n)?new he(1,Kn(Jn("%s cannot be null or empty"))(e)):new he(0,n)}function Ur(e){const n=function(e){let n;const t=Or(".*?@(.*)",e);switch(n=null!=t?qt(t)?1:qt(Jt(t))?0:1:1,n){case 0:return e;case 1:return}}(e);if(null!=n){return new he(0,n)}return new he(1,"Email is not in the correct format")}class Br{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}}class Lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Lr.prototype)}}class Fr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Fr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function jr(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new Lr);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(e)}});else try{e(n)}catch(e){n.onError(e)}}}function Gr(e,n){return jr(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(e)}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Hr(e){return jr(n=>n.onSuccess(e))}const Wr=new class{Bind(e,n){return Gr(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return jr(n=>e()(n))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While(()=>!r.done,this.Delay(()=>{const e=n(r.value);return r=t.next(),e}))}Return(e){return Hr(e)}ReturnFrom(e){return e}TryFinally(e,n){return jr(t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})})}TryWith(e,n){return jr(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(e)}}})})}Using(e,n){return this.TryFinally(n(e),()=>e.Dispose())}While(e,n){return e()?this.Bind(n,()=>this.While(e,n)):this.Return(void 0)}Zero(){return jr(e=>e.onSuccess(void 0))}};class zr{constructor(){}}function qr(e,n){return new he(0,n)}function Vr(e,n){return n}function Zr(e,n,t){return pe(t,n)}new zr;function Jr(e){return e.fields[0]}function Xr(e){return e.fields[0]}function Yr(e){return e.fields[0]}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}class eo extends U{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function no(){return z("Dto.Primitives.ContactDetails",[],eo,()=>[["FirstName",X],["LastName",X],["Email",X],["MobilePhone",X]])}function to(e){return Vr(0,()=>me(n=>{const t=n;return me(n=>{const r=n;return me(n=>{const o=n;return Zr(0,pe(e=>new vt(0,e),Rr("MobilePhone",e.MobilePhone)),e=>new bt(t,r,o,e))},pe(e=>new yt(0,e),me(e=>Ur(e),Rr("Email",e.Email))))},pe(e=>new _t(0,e),Rr("LastName",e.LastName)))},pe(e=>new wt(0,e),Rr("FirstName",e.FirstName))))()}function ro(e){if(null!=e){return e.fields[0]}}function oo(e){return e.fields[0]}function io(e){return e.fields[0]}class so extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}class uo extends U{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class co extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=c}}function ao(){return z("Dto.AdminApi.Account",[],co,()=>[["StreamId",X],["PartnerId",X],["Name",X],["Website",X],["ContactDetails",no()],["Notes",V(X)],["LegalEntity",V(z("Dto.Primitives.LegalEntity",[],so,()=>[["BusinessName",X],["BusinessNumber",X],["Address1",X],["Address2",V(X)],["City",X],["Postcode",X],["State",V(X)],["Phone",X],["CountryCode",V(X)]]))],["ExternalId",V(X)],["ChannelId",V(X)]])}class lo extends U{constructor(e,n,t,r,o,i,s,u,c){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=c}}function $o(){return z("Dto.AdminApi.AccountLookupItem",[],lo,()=>[["AccountId",X],["Name",X],["Contact",X],["ContactMobilePhone",X],["Website",X],["BusinessName",V(X)],["BusinessNumber",V(X)],["ExternalId",V(X)],["ChannelId",V(X)]])}class fo extends U{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function ho(){return z("Dto.AdminApi.AccountLookup",[],fo,()=>[["Accounts",Z($o())],["Token",V(X)]])}var po,mo,go,wo,_o,yo,vo,bo={},Co=[],xo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function So(e,n){for(var t in n)e[t]=n[t];return e}function Eo(e){var n=e.parentNode;n&&n.removeChild(e)}function ko(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?po.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Io(e,s,r,o,null)}function Io(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++go:o};return null==o&&null!=mo.vnode&&mo.vnode(i),i}function Ao(e){return e.children}function No(e,n){this.props=e,this.context=n}function To(e,n){if(null==n)return e.__?To(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?To(e):null}function Po(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return Po(e)}}function Do(e){(!e.__d&&(e.__d=!0)&&wo.push(e)&&!Mo.__r++||yo!==mo.debounceRendering)&&((yo=mo.debounceRendering)||_o)(Mo)}function Mo(){for(var e;Mo.__r=wo.length;)e=wo.sort((function(e,n){return e.__v.__b-n.__v.__b})),wo=[],e.some((function(e){var n,t,r,o,i,s;e.__d&&(i=(o=(n=e).__v).__e,(s=n.__P)&&(t=[],(r=So({},o)).__v=o.__v+1,Ho(s,o,r,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?To(o):i,o.__h),Wo(t,o),o.__e!=i&&Po(o)))}))}function Oo(e,n,t,r,o,i,s,u,c,a){var l,$,f,d,h,p,m,g=r&&r.__k||Co,w=g.length;for(t.__k=[],l=0;l<n.length;l++)if(null!=(d=t.__k[l]=null==(d=n[l])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Io(null,d,null,null,d):Array.isArray(d)?Io(Ao,{children:d},null,null,null):d.__b>0?Io(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(f=g[l])||f&&d.key==f.key&&d.type===f.type)g[l]=void 0;else for($=0;$<w;$++){if((f=g[$])&&d.key==f.key&&d.type===f.type){g[$]=void 0;break}f=null}Ho(e,d,f=f||bo,o,i,s,u,c,a),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Ro(d,c,e):c=Bo(e,d,f,g,h,c),"function"==typeof t.type&&(t.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=To(f))}for(t.__e=p,l=w;l--;)null!=g[l]&&("function"==typeof t.type&&null!=g[l].__e&&g[l].__e==t.__d&&(t.__d=To(r,l+1)),qo(g[l],g[l]));if(m)for(l=0;l<m.length;l++)zo(m[l],m[++l],m[++l])}function Ro(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Ro(r,n,t):Bo(t,r,r,o,r.__e,n));return n}function Uo(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Uo(e,n)})):n.push(e)),n}function Bo(e,n,t,r,o,i){var s,u,c;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Lo(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||xo.test(n)?t:t+"px"}function Fo(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||Lo(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Lo(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?Go:jo,i):e.removeEventListener(n,i?Go:jo,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function jo(e){this.l[e.type+!1](mo.event?mo.event(e):e)}function Go(e){this.l[e.type+!0](mo.event?mo.event(e):e)}function Ho(e,n,t,r,o,i,s,u,c){var a,l,$,f,d,h,p,m,g,w,_,y=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(a=mo.__b)&&a(n);try{e:if("function"==typeof y){if(m=n.props,g=(a=y.contextType)&&r[a.__c],w=a?g?g.props.value:a.__:r,t.__c?p=(l=n.__c=t.__c).__=l.__E:("prototype"in y&&y.prototype.render?n.__c=l=new y(m,w):(n.__c=l=new No(m,w),l.constructor=y,l.render=Vo),g&&g.sub(l),l.props=m,l.state||(l.state={}),l.context=w,l.__n=r,$=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=y.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=So({},l.__s)),So(l.__s,y.getDerivedStateFromProps(m,l.__s))),f=l.props,d=l.state,$)null==y.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,w),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,w)||n.__v===t.__v){l.props=m,l.state=l.__s,n.__v!==t.__v&&(l.__d=!1),l.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),l.__h.length&&s.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,w),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,d,h)}))}l.context=w,l.props=m,l.state=l.__s,(a=mo.__r)&&a(n),l.__d=!1,l.__v=n,l.__P=e,a=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=So(So({},r),l.getChildContext())),$||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,d)),_=null!=a&&a.type===Ao&&null==a.key?a.props.children:a,Oo(e,Array.isArray(_)?_:[_],n,t,r,o,i,s,u,c),l.base=n.__e,n.__h=null,l.__h.length&&s.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=function(e,n,t,r,o,i,s,u){var c,a,l,$=t.props,f=n.props,d=n.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&po.call(e.childNodes),a=($=t.props||bo).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(l||a)&&(l&&(a&&l.__html==a.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Fo(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||Fo(e,i,n[i],t[i],r)}(e,f,$,o,u),l)n.__k=[];else if(h=n.props.children,Oo(e,Array.isArray(h)?h:[h],n,t,r,o&&"foreignObject"!==d,i,s,i?i[0]:t.__k&&To(t,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Eo(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h||"option"===d&&h!==$.value)&&Fo(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Fo(e,"checked",h,$.checked,!1))}return e}(t.__e,n,t,r,o,i,s,c);(a=mo.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),mo.__e(e,n,t)}}function Wo(e,n){mo.__c&&mo.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){mo.__e(e,n.__v)}}))}function zo(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){mo.__e(e,t)}}function qo(e,n,t){var r,o;if(mo.unmount&&mo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||zo(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){mo.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&qo(r[o],n,"function"!=typeof e.type);t||null==e.__e||Eo(e.__e),e.__e=e.__d=void 0}function Vo(e,n,t){return this.constructor(e,t)}function Zo(e,n,t){var r,o,i;mo.__&&mo.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],Ho(n,e=(!r&&t||n).__k=ko(Ao,null,[e]),o||bo,bo,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?po.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Wo(i,e)}function Jo(e,n){Zo(e,n,Jo)}function Xo(e,n,t){var r,o,i,s=So({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?po.call(arguments,2):t),Io(e.type,s,r||e.key,o||e.ref,null)}po=Co.slice,mo={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e}},go=0,No.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=So({},this.state),"function"==typeof e&&(e=e(So({},t),this.props)),e&&So(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),Do(this))},No.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Do(this))},No.prototype.render=Ao,wo=[],_o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mo.__r=0,vo=0;var Yo,Ko,Qo,ei=0,ni=[],ti=mo.__b,ri=mo.__r,oi=mo.diffed,ii=mo.__c,si=mo.unmount;function ui(e,n){mo.__h&&mo.__h(Ko,e,ei||n),ei=0;var t=Ko.__H||(Ko.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function ci(e){return ei=1,ai(_i,e)}function ai(e,n,t){var r=ui(Yo++,2);return r.t=e,r.__c||(r.__=[t?t(n):_i(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ko),r.__}function li(e,n){var t=ui(Yo++,3);!mo.__s&&wi(t.__H,n)&&(t.__=e,t.__H=n,Ko.__H.__h.push(t))}function $i(e,n){var t=ui(Yo++,4);!mo.__s&&wi(t.__H,n)&&(t.__=e,t.__H=n,Ko.__h.push(t))}function fi(e,n){var t=ui(Yo++,7);return wi(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function di(e,n){mo.useDebugValue&&mo.useDebugValue(n?n(e):e)}function hi(){for(var e;e=ni.shift();)if(e.__P)try{e.__H.__h.forEach(mi),e.__H.__h.forEach(gi),e.__H.__h=[]}catch(n){e.__H.__h=[],mo.__e(n,e.__v)}}mo.__b=function(e){Ko=null,ti&&ti(e)},mo.__r=function(e){ri&&ri(e),Yo=0;var n=(Ko=e.__c).__H;n&&(n.__h.forEach(mi),n.__h.forEach(gi),n.__h=[])},mo.diffed=function(e){oi&&oi(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==ni.push(n)&&Qo===mo.requestAnimationFrame||((Qo=mo.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),pi&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);pi&&(n=requestAnimationFrame(t))})(hi)),Ko=null},mo.__c=function(e,n){n.some((function(e){try{e.__h.forEach(mi),e.__h=e.__h.filter((function(e){return!e.__||gi(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],mo.__e(t,e.__v)}})),ii&&ii(e,n)},mo.unmount=function(e){si&&si(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{mi(e)}catch(e){n=e}})),n&&mo.__e(n,t.__v))};var pi="function"==typeof requestAnimationFrame;function mi(e){var n=Ko,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Ko=n}function gi(e){var n=Ko;e.__c=e.__(),Ko=n}function wi(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function _i(e,n){return"function"==typeof n?n(e):n}function yi(e,n){for(var t in n)e[t]=n[t];return e}function vi(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function bi(e){this.props=e}(bi.prototype=new No).isPureReactComponent=!0,bi.prototype.shouldComponentUpdate=function(e,n){return vi(this.props,e)||vi(this.state,n)};var Ci=mo.__b;mo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ci&&Ci(e)};var xi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Si(e){function n(n,t){var r=yi({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=xi,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Ei=function(e,n){return null==e?null:Uo(Uo(e).map(n))},ki={map:Ei,forEach:Ei,count:function(e){return e?Uo(e).length:0},only:function(e){var n=Uo(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Uo},Ii=mo.__e;mo.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);Ii(e,n,t)};var Ai=mo.unmount;function Ni(){this.__u=0,this.t=null,this.__b=null}function Ti(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Pi(){this.u=null,this.o=null}mo.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Ai&&Ai(e)},(Ni.prototype=new No).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Ti(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Ni.prototype.componentWillUnmount=function(){this.t=[]},Ni.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=yi({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__e&&ko(Ao,null,e.fallback);return o&&(o.__h=null),[ko(Ao,null,n.__e?null:e.children),o]};var Di=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Mi(e){return this.getChildContext=function(){return e.context},e.children}function Oi(e){var n=this,t=e.i;n.componentWillUnmount=function(){Zo(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),Zo(ko(Mi,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Pi.prototype=new No).__e=function(e){var n=this,t=Ti(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Di(n,e,r)):o()};t?t(i):i()}},Pi.prototype.render=function(e){this.u=null,this.o=new Map;var n=Uo(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Pi.prototype.componentDidUpdate=Pi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Di(e,t,n)}))};var Ri="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ui=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Bi="undefined"!=typeof document,Li=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};No.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(No.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Fi=mo.event;function ji(){}function Gi(){return this.cancelBubble}function Hi(){return this.defaultPrevented}mo.event=function(e){return Fi&&(e=Fi(e)),e.persist=ji,e.isPropagationStopped=Gi,e.isDefaultPrevented=Hi,e.nativeEvent=e};var Wi,zi={configurable:!0,get:function(){return this.class}},qi=mo.vnode;mo.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var s=t[i];Bi&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==s||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Li(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ui.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Uo(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Uo(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(zi.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",zi))}e.$$typeof=Ri,qi&&qi(e)};var Vi=mo.__r;mo.__r=function(e){Vi&&Vi(e),Wi=e.__c};function Zi(e){return!!e&&e.$$typeof===Ri}const Ji={useState:ci,useReducer:ai,useEffect:li,useLayoutEffect:$i,useRef:function(e){return ei=5,fi((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){ei=6,$i((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:fi,useCallback:function(e,n){return ei=8,fi((function(){return e}),n)},useContext:function(e){var n=Ko.context[e.__c],t=ui(Yo++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(Ko)),n.props.value):e.__},useDebugValue:di,version:"17.0.2",Children:ki,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Zo(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Jo(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Zo(null,e),!0)},createPortal:function(e,n){return ko(Oi,{__v:e,i:n})},createElement:ko,createContext:function(e,n){var t={__c:n="__cC"+vo++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Do)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return ko.bind(null,e)},cloneElement:function(e){return Zi(e)?Xo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Ao,isValidElement:Zi,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:No,PureComponent:bi,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:vi(this.props,e)}function r(n){return this.shouldComponentUpdate=t,ko(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Si,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:Ao,Suspense:Ni,SuspenseList:Pi,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return ko(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return Wi.__n[e.__c].props.value}}}}},Xi=e=>{li(()=>{const n=e();return()=>{n.Dispose()}})},Yi=(e,n)=>{li(()=>{const n=e();return()=>{n.Dispose()}},n)},Ki=e=>{$i(()=>{const n=e();return()=>{n.Dispose()}})};function Qi(e,n,t,r){const o=Ji.memo(e,k(2,fe(I(2,t),null)));return Pr(n=>{e.displayName=n},$e(n)),e=>{const n=es(r,e);return Ji.createElement(o,n)}}function es(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function ns(e){return{Dispose(){e()}}}function ts(e){Xi(e)}function rs(e,n){Yi(e,n)}function os(e){ss(e,[])}function is(e){rs(e,[])}function ss(e,n){Yi(n=>(e(),ns(()=>{})),n)}function us(e,n){return Ji.useCallback(e,fe(n,[]))}function cs(e){return Ji.useRef(e)}function as(e,n){return Ji.useMemo(e,fe(n,[]))}function ls(e){const n=cs(e),t=us(e=>n.current(e),[]);var r;return r=()=>{n.current=e},Ki(e=>(r(),ns(()=>{}))),t}function $s(e){return Ji.useState(e)}function fs(e){}function ds(e){const n=new Br("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function hs(e){e.cancel()}function ps(e){return null!=e&&e.isCancelled}const ms=new Br;function gs(e){return jr(n=>e([n.onSuccess,n.onError,n.onCancel]))}function ws(e,n){return function(e,n){return _s(e,n)}(e,n)}function _s(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new Fr;e({onSuccess:n||fs,onError:t||fs,onCancel:r||fs,cancelToken:o||ms,trampoline:i})}class ys{constructor(e,n){this.k=e,this.v=n}}function vs(e,n){return new ys(e,n)}function bs(e){return e.k}function Cs(e){return e.v}class xs extends ys{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=o}}function Ss(e,n,t,r,o){return new xs(e,n,t,r,o)}function Es(e){return e.left}function ks(e){return e.right}function Is(e){return e.h}function As(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof xs){const o=i;n=e(r+1,Es(o)),t=ks(o);continue e}return r+1|0}return 0|r}}(0,e)}function Ns(e,n,t,r){let o,i,s;if(null!=e){const n=e;s=n instanceof xs?(o=n,Is(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof xs?(i=e,Is(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?vs(n,t):Ss(n,t,e,r,c+1)}function Ts(e,n,t,r){let o,i,s,u,c,a,l,$,f;if(null!=e){const n=e;f=n instanceof xs?(o=n,Is(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof xs?(i=e,Is(i)):1}else d=0;if(d>f+2){const o=le(r);if(o instanceof xs){const r=o;if(s=Es(r),(null!=s?(u=s,u instanceof xs?(c=u,Is(c)):1):0)>f+1){const o=le(Es(r));if(o instanceof xs){const i=o;return Ns(Ns(e,n,t,Es(i)),bs(i),Cs(i),Ns(ks(i),bs(r),Cs(r),ks(r)))}throw new Error("internal error: Map.rebalance")}return Ns(Ns(e,n,t,Es(r)),bs(r),Cs(r),ks(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=le(e);if(o instanceof xs){const e=o;if(a=ks(e),(null!=a?(l=a,l instanceof xs?($=l,Is($)):1):0)>d+1){const o=le(ks(e));if(o instanceof xs){const i=o;return Ns(Ns(Es(e),bs(e),Cs(e),Es(i)),bs(i),Cs(i),Ns(ks(i),n,t,r))}throw new Error("internal error: Map.rebalance")}return Ns(Es(e),bs(e),Cs(e),Ns(ks(e),n,t,r))}throw new Error("internal error: Map.rebalance")}return Ns(e,n,t,r)}function Ps(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,bs(o));if(o instanceof xs){const r=o;return i<0?Ts(Ps(e,n,t,Es(r)),bs(r),Cs(r),ks(r)):0===i?Ss(n,t,Es(r),ks(r),Is(r)):Ts(Es(r),bs(r),Cs(r),Ps(e,n,t,ks(r)))}return i<0?Ss(n,t,void 0,r,2):0===i?vs(n,t):Ss(n,t,r,void 0,2)}return vs(n,t)}function Ds(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,bs(s));if(0===u)return ae(Cs(s));if(s instanceof xs){const i=s;e=r,n=o,t=u<0?Es(i):ks(i);continue e}return}return}}function Ms(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof xs){const o=i;e(r,Es(o)),r(bs(o),Cs(o)),n=r,t=ks(o);continue e}r(bs(i),Cs(i))}break}}(e,n)}function Os(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof xs){const t=r,o=e(n,Es(t)),i=n(bs(t),Cs(t)),s=e(n,ks(t));return Ss(bs(t),i,o,s,Is(t))}return vs(bs(r),n(bs(r),Cs(r)))}}(e,n)}function Rs(e,n,t){let r=0|t;Ms((e,t)=>{n[r]=[e,t],r+=1},e)}function Us(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r],i=o[1];t=Ps(e,o[0],i,t)}return t}function Bs(e,n){if(r(n)){return Us(e,n)}if(n instanceof Bt){return function(e,n){return Yt((n,t)=>{const r=t[0],o=t[1];return Ps(e,r,o,n)},void 0,n)}(e,n)}{const t=c(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s[1];e=r,n=Ps(r,s[0],u,o),t=i}}}(e,void 0,t)}finally{t.Dispose()}}}class Ls extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Fs(e){e:for(;;){const n=e;if(qt(n))return Ht();{const t=Jt(n),r=Zt(n);if(null!=r){const o=r;if(o instanceof xs){const n=o;e=er([Es(n),vs(bs(n),Cs(n)),ks(n)],t);continue e}return n}e=t;continue e}}}function js(e){return new Ls(Fs(zt(e)),!1)}function Gs(e){if(e.started){const n=e.stack;if(qt(n))return function(){throw new Error("enumeration already finished")}();if(null!=Zt(n)){const e=Zt(n);if(e instanceof xs)throw new Error("Please report error: Map iterator, unexpected stack for current");return[bs(e),Cs(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Hs(e){let n=js(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Gs(n),"System.Collections.IEnumerator.get_Current":()=>Gs(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(qt(n))return!1;if(null!=Zt(n)){const t=Zt(n),r=Jt(n);if(t instanceof xs)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Fs(r),!qt(e.stack)}Jt(n);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!qt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=js(e)},Dispose(){}}}class Ws{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e[1],i=e[0];t=n(t,g(i)),t=n(t,g(o))}}finally{r.Dispose()}return 0|t}(this)}Equals(e){if(!(e instanceof Ws))return!1;{const n=e,t=c(this);try{const e=c(n);try{const n=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&n()}return!0}return!1};return n()}finally{e.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+ot("; ",Dr(e=>nt("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Hs(this.tree)}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Hs(this.tree)}CompareTo(e){const n=this;if(e instanceof Ws){return 0|function(e,n,t){const r=yr(n);try{const n=yr(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{n.Dispose()}}finally{r.Dispose()}}((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:x(e[1],t[1]))},n,e)}throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return!!Js(this,e[0])&&y(Vs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Rs(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Zs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Zs(this)}get size(){return 0|Zs(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Dr(e=>[e[0],e[1]],this)}get(e){return Vs(this,e)}has(e){return Js(this,e)}keys(){return Dr(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Dr(e=>e[1],this)}forEach(e,n){const t=this;Pr(n=>{e(n[1],n[0],t)},t)}}function zs(e,n){return new Ws(e,n)}function qs(e){const n=lr();return zs(n,Bs(n,e))}function Vs(e,n){return function(e,n,t){const r=Ds(e,n,t);if(null==r)throw new Error;return le(r)}(e.comparer,n,e.tree)}function Zs(e){return As(e.tree)}function Js(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,bs(s));if(s instanceof xs){const i=s;if(u<0){e=r,n=o,t=Es(i);continue e}if(0===u)return!0;e=r,n=o,t=ks(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function Xs(e,n,t){return function(e,n,t){return zs(e.comparer,Ps(e.comparer,n,t,e.tree))}(t,e,n)}function Ys(e,n){return function(e,n){return Ds(e.comparer,n,e.tree)}(n,e)}function Ks(e,n){return r=e,zs((t=n).comparer,Os(r,t.tree));var t,r}function Qs(){return Ws.empty}(()=>{const e=lr();Ws.empty=zs(e,void 0)})();class eu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function nu(e){return q("Feliz.UseDeferred.Deferred`1",[e],eu,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function tu(e,n){const t=cs(ds());is(()=>ns(()=>{hs(t.current)}));return ls(r=>{var o;ps(t.current)||ws((o=r,Wr.Delay(()=>Wr.TryWith(Wr.Delay(()=>(n(new eu(1)),Wr.Bind(e(o),e=>(n(new eu(2,e)),Wr.Zero())))),e=>{const t=e;return console.log(ae(t)),n(new eu(3,t)),Wr.Zero()}))),t.current)})}const ru=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",e=>{},e),window.removeEventListener("testPassiveEventSupport",e=>{})}}catch(e){}return!1})();function ou(e){return de(e=>e.passive&&!ru?{capture:e.capture,once:e.once,passive:!1}:e,e)}function iu(e){return n=e=>e.capture?{capture:!0}:void 0,null!=(t=e)?n(le(t)):void 0;var n,t}var su={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[be](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},uu="[big.js] ",cu=uu+"Invalid ",au=cu+"decimal places",lu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function $u(e,n){var t,r,o;if(0===n&&1/n<0)n="-0";else if(!lu.test(n+=""))throw Error(cu+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),o=n.length,r=0;r<t&&r<o&&"0"==n.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<o;)e.c[t++]=+n.charAt(r++);return e=fu(e,hu.DP,hu.RM)}function fu(e,n,t,r){var o=e.c,i=e.e+n+1;if(i<o.length){if(1===t)r=o[i]>=5;else if(2===t)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===t){const e=o.findIndex((e,n)=>n>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==t)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-n,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(t<0||t>3||t!==~~t)throw Error("[big.js] Invalid rounding mode");return e}function du(e,n,t,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==t){if(t!==~~t||t<(3==n)||t>1e6)throw Error(3==n?cu+"precision":au);for(t=r-(e=new s(e)).e,e.c.length>++r&&fu(e,t,s.RM),2==n&&(r=e.e+t+1);e.c.length<r;)e.c.push(0)}if(o=e.e,t=(i=e.c.join("")).length,2!=n&&(1==n||3==n&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(t>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>t)for(o-=t;o--;)i+="0";else o<t&&(i=i.slice(0,o)+"."+i.slice(o));else t>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==n)?"-"+i:i}su.abs=function(){var e=new this.constructor(this);return e.s=1,e},su.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,a=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(n=s<0,c!=a)return c>a^n?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(a=s<i.length?i[s]:0))return c>a^n?1:-1;return 0},su.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),o=e.c,i=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>1e6)throw Error(au);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new n(0*i);var u,c,a,l,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,g=e,w=g.c=[],_=0,y=s+(g.e=t.e-e.e)+1;for(g.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(a=0;a<10;a++){if(u!=(m=p.length))l=u>m?1:-1;else for($=-1,l=0;++$<u;)if(o[$]!=p[$]){l=o[$]>p[$]?1:-1;break}if(!(l<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[_++]=l?a:++a,p[0]&&l?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==_||(w.shift(),g.e--),_>y&&fu(g,s,n.RM,void 0!==p[0]),g},su.eq=function(e){return!this.cmp(e)},su.gt=function(e){return this.cmp(e)>0},su.gte=function(e){return this.cmp(e)>-1},su.lt=function(e){return this.cmp(e)<0},su.lte=function(e){return this.cmp(e)<1},su.minus=su.sub=function(e){var n,t,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var a=s.c.slice(),l=s.e,$=e.c,f=e.e;if(!a[0]||!$[0])return $[0]?(e.s=-c,e):new i(a[0]?s:0);if(u=l-f){for((o=u<0)?(u=-u,r=a):(f=l,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(t=((o=a.length<$.length)?a:$).length,u=c=0;c<t;c++)if(a[c]!=$[c]){o=a[c]<$[c];break}if(o&&(r=a,a=$,$=r,e.s=-e.s),(c=(t=$.length)-(n=a.length))>0)for(;c--;)a[n++]=0;for(c=n;t>u;){if(a[--t]<$[t]){for(n=t;n&&!a[--n];)a[n]=9;--a[n],a[t]+=10}a[t]-=$[t]}for(;0===a[--c];)a.pop();for(;0===a[0];)a.shift(),--f;return a[0]||(e.s=1,a=[f=0]),e.c=a,e.e=f,e},su.mod=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,n=1==e.cmp(r),r.s=o,e.s=i,n?new t(r):(o=t.DP,i=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=o,t.RM=i,this.minus(r.times(e)))},su.plus=su.add=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,u=r.c,c=e.e,a=e.c;if(!u[0]||!a[0])return a[0]?e:new t(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,n=a):(o=-o,n=u),n.reverse();o--;)n.push(0);n.reverse()}for(u.length-a.length<0&&(n=a,a=u,u=n),o=a.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+a[o]+i)/10|0;for(i&&(u.unshift(i),++c),o=u.length;0===u[--o];)u.pop();return e.c=u,e.e=c,e},su.pow=function(e){var n=this.constructor,t=new n(this),r=new n(1),o=new n(1),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(cu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},su.round=function(e,n){var t=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(au);return fu(new t(this),e,void 0===n?t.RM:n)},su.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(uu+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+s&1||(n+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(n))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{t=e,e=u.times(t.plus(o.div(t)))}while(t.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return fu(e,r.DP-=4,r.RM)},su.times=su.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,a=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new t(0*e.s);for(e.e=c+a,s<u&&(n=o,o=i,i=n,a=s,s=u,u=a),n=new Array(a=s+u);a--;)n[a]=0;for(c=u;c--;){for(u=0,a=s+c;a>c;)u=n[a]+i[c]*o[a-c-1]+u,n[a--]=u%10,u=u/10|0;n[a]=(n[a]+u)%10}for(u?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},su.toExponential=function(e){return du(this,1,e,e)},su.toFixed=function(e){return du(this,2,e,this.e+e)},su.toPrecision=function(e){return du(this,3,e,e-1)},su.toString=function(){return du(this)},su.valueOf=su.toJSON=function(){return du(this,4)};var hu=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);t instanceof n?(r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if((e=fu(e,28,0)).c.length>1&&!e.c[0]){let n=e.c.findIndex(e=>e);e.c=e.c.slice(n),e.e=e.e-n}}(r)):$u(r,t),r.constructor=n}return n.prototype=su,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.version="5.2.2",n}(),pu=hu;new pu(0),new pu(1),new pu(-1),new pu("79228162514264337593543950335"),new pu("-79228162514264337593543950335");function mu(e,n){return 0===n.indexOf(e)?n:void 0}function gu(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function wu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s,u;return n=mu("/",e),null!=n?(t=n,"#"+t):(r=mu("#/",e),null!=r?(o=r,o):(i=mu("#",e),null!=i?(s=i,"#/"+ut(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let n,t,r;return n=mu("/",e),null!=n?(t=n,t):(r=e,"/"+r)}}(n)(ot("/",ir(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function _u(e,n,t){1===n?history.pushState(void 0,"",wu(e,t)):history.replaceState(void 0,"",wu(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function yu(e,n){return function(e,n){const t=new Bt(null,void 0);let r=t,o=n;for(;null!=o.tail;){let n=e(jt(o));for(;null!=n.tail;){const e=r,t=new Bt(jt(n),void 0);e.tail=t,r=t,n=Gt(n)}o=Gt(o)}const i=r,s=new Bt(null,void 0);return i.tail=s,Gt(t)}(e=>{if(rt(e))return Ht();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+Hn(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return Ht();if(null!=mu("?",n))return zt(n);{const e=n.split("?");if(Ot(0,e,null)||1!==e.length){if(Ot(0,e,null)||2!==e.length)return Ht();if(""===e[1]){const n=e[0];return zt(decodeURIComponent(n))}{const n=e[0],t=e[1];return nr([decodeURIComponent(n),"?"+t])}}{const n=e[0];return zt(decodeURIComponent(n))}}}},nr(st(null!=mu("#",e)?ut(e,1,e.length-1):1===n&&(null!=gu("#",e)||null!=gu("#/",e))?"":e,["/"],null,0)))}const vu=Qi(e=>{const n=ls(n=>{const t=fe(e.onUrlChanged,e=>{});return function(e,n,t){return n(yu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|fe(e.hashMode,1),t)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=as(()=>ou(r),[r]),i=as(()=>iu(r),[r]),s=as(()=>e=>{t(e)},[t]);ts(ls(()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ns(()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}})}))}else{const e="popstate",t=n,r=void 0,o=as(()=>ou(r),[r]),i=as(()=>iu(r),[r]),s=as(()=>e=>{t(e)},[t]);ts(ls(()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ns(()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}})}))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=as(()=>ou(void 0),[void 0]),i=as(()=>iu(void 0),[void 0]),s=as(()=>e=>{r(e)},[r]);ts(ls(()=>{if(null==o)window.addEventListener(t,s);else{const e=o;window.addEventListener(t,s,e)}return ns(()=>{if(null==i)window.removeEventListener(t,s);else{const e=i;window.removeEventListener(t,s,e)}})}));const u=e.application;return null==u?null:u},void 0,Cu,bu);var bu,Cu;class xu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Su extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function Eu(e){return 0===e.tag?new Su(1):new Su(0)}class ku extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Iu=new ku(0,new xu(1),new Su(0));function Au(e){return e.fields[0]}function Nu(e){return e.fields[1]}function Tu(e,n){const t=n.fields[0],r=n.fields[1],o=[e,t];return 1===o[0].tag?1===o[1].tag?new ku(0,new xu(1),Eu(r)):new ku(0,new xu(1),new Su(0)):0===o[1].tag?new ku(0,new xu(0),Eu(r)):new ku(0,new xu(0),new Su(0))}class Pu extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Du=new Pu(0,"");function Mu(e){return e.fields[0]}class Ou extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ru(e){return 0|(0|e.fields[0])}class Uu extends U{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Bu extends U{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Lu(){return z("AccountRegistry.AdminUI.Types.Partner",[],Bu,()=>[["StreamId",ht()],["Name",q("BasicModels.Name",[],mt,()=>[[["Item",X]]])],["Website",q("BasicModels.Website",[],gt,()=>[[["Item",X]]])],["ContactDetails",z("BasicModels.ContactDetails",[],bt,()=>[["FirstName",q("BasicModels.FirstName",[],wt,()=>[[["Item",X]]])],["LastName",q("BasicModels.LastName",[],_t,()=>[[["Item",X]]])],["Email",q("BasicModels.Email",[],yt,()=>[[["Item",X]]])],["MobilePhone",q("BasicModels.MobilePhone",[],vt,()=>[[["Item",X]]])]])],["Notes",V(q("BasicModels.Notes",[],Ct,()=>[[["Item",X]]]))]])}function Fu(e){return Vr(0,()=>me(n=>{const t=n;return me(n=>{const r=n;return Zr(0,to(e.ContactDetails),n=>{const o=n;return new Bu(new dt(0,e.StreamId),t,r,o,de(e=>new Ct(0,e),e.Notes))})},pe(e=>new gt(0,e),Rr("Website",e.Website)))},pe(e=>new mt(0,e),Rr("Name",e.Name))))()}class ju extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","NotFound"]}}function Gu(){return q("AccountRegistry.AdminUI.Types.Page",[],ju,()=>[[],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item",St()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[["Item1",St()],["Item2",kt()]],[]])}function Hu(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h;switch(qt(e)?n=10:"account-registry"===Zt(e)?qt(Jt(e))?n=10:"partners"===Zt(Jt(e))?qt(Jt(Jt(e)))?n=0:qt(Jt(Jt(Jt(e))))?(n=1,t=Zt(Jt(Jt(e)))):"accounts"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=2,r=Zt(Jt(Jt(e)))):qt(Jt(Jt(Jt(Jt(Jt(e))))))?(n=6,u=Zt(Jt(Jt(Jt(Jt(e))))),c=Zt(Jt(Jt(e)))):"super-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))?qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=7,a=Zt(Jt(Jt(Jt(Jt(e))))),l=Zt(Jt(Jt(e)))):n=10:"benefits-onboarding-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))?qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=8,$=Zt(Jt(Jt(Jt(Jt(e))))),f=Zt(Jt(Jt(e)))):n=10:"bank-details-configuration"===Zt(Jt(Jt(Jt(Jt(Jt(e))))))&&qt(Jt(Jt(Jt(Jt(Jt(Jt(e)))))))?(n=9,d=Zt(Jt(Jt(Jt(Jt(e))))),h=Zt(Jt(Jt(e)))):n=10:"super-configuration"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=3,o=Zt(Jt(Jt(e)))):n=10:"benefits-onboarding-configuration"===Zt(Jt(Jt(Jt(e))))?qt(Jt(Jt(Jt(Jt(e)))))?(n=4,i=Zt(Jt(Jt(e)))):n=10:"bank-details-configuration"===Zt(Jt(Jt(Jt(e))))&&qt(Jt(Jt(Jt(Jt(e)))))?(n=5,s=Zt(Jt(Jt(e)))):n=10:n=10:n=10,n){case 0:return new ju(0);case 1:return new ju(1,new xt(0,t));case 2:return new ju(2,new xt(0,r));case 3:return new ju(3,new xt(0,o));case 4:return new ju(4,new xt(0,i));case 5:return new ju(5,new xt(0,s));case 6:return new ju(6,new xt(0,c),new Et(0,u));case 7:return new ju(7,new xt(0,l),new Et(0,a));case 8:return new ju(8,new xt(0,f),new Et(0,$));case 9:return new ju(9,new xt(0,h),new Et(0,d));case 10:return new ju(10)}}function Wu(e){switch(e.tag){case 1:return nr(["account-registry","partners",oo(e.fields[0])]);case 2:return nr(["account-registry","partners",oo(e.fields[0]),"accounts"]);case 3:return nr(["account-registry","partners",oo(e.fields[0]),"super-configuration"]);case 4:return nr(["account-registry","partners",oo(e.fields[0]),"benefits-onboarding-configuration"]);case 5:return nr(["account-registry","partners",oo(e.fields[0]),"bank-details-configuration"]);case 6:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t)])}case 7:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"super-configuration"])}case 8:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"benefits-onboarding-configuration"])}case 9:{const n=e.fields[0],t=e.fields[1];return nr(["account-registry","partners",oo(n),"accounts",io(t),"bank-details-configuration"])}default:return nr(["account-registry","partners"])}}function zu(e){switch(e.tag){case 1:{const n=["account-registry","partners",oo(e.fields[0])];return zt(e=>{_u(nr(n),1,1)})}case 2:{const n=["account-registry","partners",oo(e.fields[0]),"accounts"];return zt(e=>{_u(nr(n),1,1)})}case 3:{const n=["account-registry","partners",oo(e.fields[0]),"super-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 4:{const n=["account-registry","partners",oo(e.fields[0]),"benefits-onboarding-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 5:{const n=["account-registry","partners",oo(e.fields[0]),"bank-details-configuration"];return zt(e=>{_u(nr(n),1,1)})}case 6:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t)];return zt(e=>{_u(nr(r),1,1)})}case 7:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"super-configuration"];return zt(e=>{_u(nr(r),1,1)})}case 8:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"benefits-onboarding-configuration"];return zt(e=>{_u(nr(r),1,1)})}case 9:{const n=e.fields[0],t=e.fields[1],r=["account-registry","partners",oo(n),"accounts",io(t),"bank-details-configuration"];return zt(e=>{_u(nr(r),1,1)})}default:{const e=["account-registry","partners"];return zt(n=>{_u(nr(e),1,1)})}}}class qu extends U{constructor(e){super(),this.Partners=e}}function Vu(){return z("AccountRegistry.AdminUI.Types.Data",[],qu,()=>[["Partners",Z(Lu())]])}function Zu(){return Ht()}function Ju(e){return zt(e)}class Xu extends U{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Yu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Yu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}In(2013265921,0,!1),In(2013265921,0,!0);Pt(28,e=>Yu(2,e),Int32Array);function Ku(e){return e.bound}function Qu(e,n){return e.digits[n]}function ec(e,n){return Tn(Qu(e,n),!1,2)}function nc(e,n,t){e.digits[n]=t}function tc(e,n){for(;;){const t=e,r=n;if(0===r)return In(1,0,!1);if(r%2!=0)return bn(t,tc(bn(t,t),~~(r/2)));e=bn(t,t),n=~~(r/2)}}function rc(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*rc(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const oc=In(16777216,0,!1),ic=In(16777215,0,!1);In(16777215,0,!0);function sc(e){return new Xu(e,new Int32Array(e))}function uc(e){const n=0|((e,n)=>{for(;;){const t=e,r=n;if(-1===r||0!==t[r])return r+1|0;e=t,n=r-1}})(e.digits,e.bound-1);return e.bound=n,e}function cc(e){const n=0|(e<0?0:e);if(n<16777216){const e=sc(1);return e.digits[0]=n,uc(e)}{const e=sc(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/rc(16777216,t))%16777216;return uc(e)}}const ac=cc(1),lc=cc(0);function $c(e){return e.bound-1}function fc(e){return 0===e.bound}function dc(e,n){if(e.bound===n.bound){return((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}return!1}function hc(e,n){if(e.bound<n.bound)return-1;if(e.bound>n.bound)return 1;return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}function pc(e,n){return-1===hc(e,n)}function mc(e,n,t){for(;;){const r=e,o=n,i=t;if(!(kn(o,In(0,0,!1))>0))break;{const s=vn(ec(r,i),o);nc(r,i,~~An(En(s,ic))),e=r,n=Cn(s,oc),t=i+1}}}function gc(e,n){const t=0|Ku(e),r=sc(t+1|0),o=Tn(n,!1,2);let i=In(0,0,!1);for(let n=0;n<=t-1;n++){const t=vn(vn(i,ec(r,n)),bn(ec(e,n),o));nc(r,n,~~An(En(t,ic))),i=Cn(t,oc)}return mc(r,i,t),uc(r)}function wc(e,n){const t=1===Ku(e),r=1===Ku(n);return t&&r?function(e,n){const t=sc(2),r=bn(Tn(e,!1,2),Tn(n,!1,2));return nc(t,0,~~An(En(r,ic))),nc(t,1,~~An(Cn(r,oc))),uc(t)}(Qu(e,0),Qu(n,0)):t?gc(n,Qu(e,0)):r?gc(e,Qu(n,0)):function(e,n){const t=sc(e.bound+n.bound|0),r=t.digits,o=e.digits,i=n.digits;for(let s=0;s<=e.bound-1;s++){const e=Tn(o[s],!1,2);let u=In(0,0,!1),c=0|s;for(let t=0;t<=n.bound-1;t++){const n=Tn(i[t],!1,2),o=vn(vn(Tn(r[c],!1,2),u),bn(e,n));r[c]=~~An(En(o,ic)),u=Cn(o,oc),c+=1}mc(t,u,c)}return uc(t)}(e,n)}class _c extends U{constructor(e,n,t,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|n,this.k=0|t,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function yc(e,n,t,r){return new _c(e,rc(2,e),n,t,r,~~(24/e),Pt(~~(24/e),n=>rc(2,e*n),Int32Array))}const vc=[yc(1,28,268435456,268435456),yc(2,26,67108864,134217728),yc(3,24,16777216,50331648),yc(4,22,4194304,16777216),yc(5,20,1048576,5242880),yc(6,18,262144,1572864),yc(7,16,65536,458752),yc(8,14,16384,131072),yc(9,12,4096,36864),yc(10,10,1024,10240),yc(11,8,256,2816),yc(12,6,64,768),yc(13,4,16,208)];Pt(24,e=>rc(2,e)-1,Int32Array),Pt(24,e=>rc(2,e),Int32Array),Pt(24,e=>tc(In(2,0,!1),e));vc[0].bigN;function bc(e,n){return wc(e,n)}function Cc(e,n,t,r){const o=e,i=[e.digits,$c(e)],s=0|i[1],u=i[0],c=[t.digits,$c(t)],a=0|c[1],l=c[0],$=Tn(n,!1,2);let f=0,d=bn($,Tn(l[0],!1,2));for(;kn(d,In(0,0,!1))>0||f<a;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~An(En(d,ic)),n=Cn(d,oc);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),n=vn(n,In(1,0,!1))),d=f<a?vn(n,bn($,Tn(l[f+1],!1,2))):n,f+=1}uc(o)}function xc(e,n,t,r){const o=e,i=[e.digits,$c(e)],s=0|i[1],u=i[0],c=[t.digits,$c(t)],a=0|c[1],l=c[0],$=Tn(n,!1,2);let f=0,d=bn($,Tn(l[0],!1,2));for(;kn(d,In(0,0,!1))>0||f<a;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~An(En(d,ic)),n=Cn(d,oc);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),n=vn(n,In(1,0,!1))),d=f<a?vn(n,bn($,Tn(l[f+1],!1,2))):n,f+=1}uc(o)}function Sc(e,n,t){const r=[$c(n),$c(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],l=r[1],$=r[0];let f;if(0===i)if(o===t)f=~~(l[t]/$[0]);else{const e=Cn(vn(bn(Tn(l[o],!1,2),oc),Tn(l[o-1],!1,2)),Tn($[0],!1,2));f=~~An(e)}else if(o===i+t)f=~~(l[o]/($[i]+1));else{const e=Cn(vn(bn(Tn(l[o],!1,2),oc),Tn(l[o-1],!1,2)),vn(Tn($[i],!1,2),In(1,0,!1)));f=~~An(e)}if(0===f){return 1!=(u=t,c=e,a=0,(s=n).bound+u<c.bound+a?-1:s.bound+u>c.bound+u?1:0|((e,n,t)=>{e:for(;;){const r=e,o=n,i=t;if(-1===i)return 0;{const s=0|(i<u?0:r[i-u]),c=0|(i<a?0:o[i-a]);if(s===c){e=r,n=o,t=i-1;continue e}return s<c?-1:1}}})(s.digits,c.digits,s.bound+u-1))?1:0}return 0|f}var s,u,c,a}function Ec(e,n){if(fc(n))throw new Error;if($c(e)<$c(n))return[lc,e];{const t=function(e){return new Xu(e.bound,e.digits.slice())}(e),r=sc($c(e)-$c(n)+1+1);let o=0|$c(e);const i=0|$c(n);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,t,s,o]);const e=0|Sc(t,n,s);e>0?(Cc(t,e,n,s),xc(r,e,ac,s),u([r,t,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,t,s-1,o]),s-=1):(u([r,t,s-1,o-1]),s-=1,o-=1)))}return[uc(r),uc(t)]}}cc(2);function kc(e){return cc(e)}function Ic(e){return function(e){const n=kn(e,In(0,0,!1))<0?In(0,0,!1):e,t=sc(3);for(let e=0;e<=2;e++)t.digits[e]=~~An(xn(Cn(n,tc(oc,e)),oc));return uc(t)}(e)}function Ac(e){const n=0|$c(e),t=((e,t,r)=>{for(;;){const o=e,i=t,s=r;if($c(s)>n)return Wt([i,s],o);e=Wt([i,s],o),t=i+1,r=bc(s,s)}})(Ht(),0,cc(10)),r=(e,n,t,o)=>{if(qt(o)){const r=0|function(e){if(1===e.bound)return 0|e.digits[0];{let n=0;for(let t=e.bound-1;t>=0;t--)n=e.digits[t]+16777216*n;return 0|n}}(t);return e&&0===r?n:Wt(f(r),n)}{const i=Zt(o)[1],s=Jt(o),u=Ec(t,i),c=u[1],a=u[0];if(e&&fc(a)){return r(e,n,c,s)}{const t=r(!1,n,c,s);return r(e,t,a,s)}}},o=t,i=r(!0,Ht(),e,o);return qt(i)?"0":ot("",Xt(i))}function Nc(e){return e.bound<=1}function Tc(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class Pc extends U{constructor(e,n){super(),this.signInt=e,this.v=n}toString(){const e=this;switch(0|Oc(e)){case-1:return fc(Rc(e))?"0":"-"+Ac(Rc(e));case 0:return"0";case 1:return Ac(Rc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof Pc){return Uc(this,e)}return!1}GetHashCode(){return 0|(0===Oc(e=this)?1:Oc(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3);return 0|n}(Rc(e))|0);var e}CompareTo(e){if(e instanceof Pc){return 0|function(e,n){return Bc(e,n)?-1:Uc(e,n)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function Dc(e,n){return new Pc(e,n)}function Mc(e){return Nc(e)&&Tc(e)<Pc.smallLim?Pc.smallPosTab[Tc(e)]:e}function Oc(e){return e.signInt}function Rc(e){return e.v}function Uc(e,n){const t=[Oc(e),Oc(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:case 1:return dc(Rc(e),Rc(n));case 2:case 3:return!!fc(Rc(e))&&fc(Rc(n));case 4:return!0;case 5:case 6:return fc(Rc(n));case 7:case 8:return fc(Rc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Bc(e,n){const t=[Oc(e),Oc(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:return pc(Rc(e),Rc(n));case 1:return pc(Rc(n),Rc(e));case 2:return!1;case 3:return!fc(Rc(e))||!fc(Rc(n));case 4:return!1;case 5:return!fc(Rc(n));case 6:case 7:return!1;case 8:return!fc(Rc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Lc(e){return e>=0?Dc(1,Mc(kc(e))):Dc(-1,Mc(-2147483648===e?Ic(Sn(Tn(e,!1,2))):kc(ve(e))))}function Fc(){return Pc.one}function jc(){return Pc.two}function Gc(){return Pc.zero}Pc.smallLim=4096,Pc.smallPosTab=Pt(Pc.smallLim,e=>kc(e)),Pc.one=Lc(1),Pc.two=Lc(2),Pc.zero=Lc(0);Gc(),Fc(),jc();Gc(),Fc();class Hc{constructor(){}}function Wc(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(y(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const zc=new Hc;class qc extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Vc{constructor(e){this.state=new qc(0,Nt(new Array(S((e,n)=>b(e,n),e,10)),0,S((e,n)=>b(e,n),e,10),null),0)}}function Zc(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new qc(0,o,t):new qc(1,o,t,i),ae(o[r])}}function Jc(e,n,t){const r=cs(e[0]),o=cs(new Vc(10));const s=$s(e[0]),u=s[1],c=s[0];let a;const l=cs(ds()),$=cs(l.current);is(()=>ns(()=>{hs(l.current)})),a=$;const f=()=>{setTimeout(()=>{let e;e=a.current,ps(e)||u(r.current)},0)},d=e=>{var t;(t=Wc(0,()=>{let t=ae(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(zc,()=>{let e;return null!=t&&(e=a.current,!ps(e))},Wc(0,()=>{const e=le(t),i=n(e,r.current),s=i[0];return Qt(e=>{e(d)},i[1]),t=Zc(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},h=ls(d);var p;return rs(()=>ns(()=>{let e,n;Pr(e=>{e.Dispose()},$e((e=r.current,i(e)?(n=e,n):void 0)))}),t),ss(()=>{r.current=e[0],f(),Qt(e=>{e(h)},e[1])},t),p=()=>{Pr(h,$e(Zc(o.current)))},Xi(e=>(p(),ns(()=>{}))),[c,h]}function Xc(e,n,t){return Jc(as(e,t),n,t)}class Yc{constructor(){}}function Kc(e,n){return Wr.Delay(n)}new Yc;class Qc extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ea extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class na extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ta extends U{constructor(e,n,t,r,o,i,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class ra extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class oa extends U{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const ia=new ta("",new Qc(0),Ht(),!1,void 0,void 0,new na(0));new oa(0,"","",Qs(),new ra(0,""));function sa(e,n){return tt(n)?[n]:st(n,[e],null,0)}function ua(e){return new ta(e,ia.method,ia.headers,ia.withCredentials,ia.overridenMimeType,ia.overridenResponseType,ia.content)}function ca(e,n){return new ta(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function aa(e,n){return new ta(n.url,n.method,rr(n.headers,zt(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function la(e){return gs(n=>{const t=n[0],r=(n[1],new XMLHttpRequest);r.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),r.onreadystatechange=()=>{let e,n,o,i,s,u;4===r.readyState&&t((n=r.responseType,e=""===n||"text"===n?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new ra(0,r.responseText):new ra("arraybuffer"===u?2:"blob"===u?1:3,r.response),new oa(o,e,i,function(e){const n=lr();return zs(n,Us(n,e))}(function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=le(o);r.push(e)}}return"function"==typeof t?Tt(e=>e,r,t):r}(e=>{const n=nr(sa(":",e));if(!qt(n)){const e=Jt(n);return[Zt(n).toLocaleLowerCase(),ot(":",e).trim()]}},sa("\r\n",r.getAllResponseHeaders()))),s)))};const o=c(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"](),n=e.fields[1],t=e.fields[0];r.setRequestHeader(t,n)}}finally{o.Dispose()}r.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;r.overrideMimeType(e)}const s=e.overridenResponseType;null==s||(1===s.tag?r.responseType="blob":2===s.tag?r.responseType="arraybuffer":r.responseType="text");const u=[e.method,e.content];if(0===u[0].tag)r.send(ae(void 0));else if(1===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else if(3===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else if(2===u[1].tag){const e=u[1].fields[0];r.send(ae(e))}else r.send(ae(void 0))})}function $a(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(qt(i))return r;{const s=Jt(i),u=Zt(i),c=Vr(0,()=>me(e=>{const n=e;return Zr(0,r,e=>rr(e,zt(n)))},o(u)))();if(1===c.tag)return c;e=c,n=o,t=s;continue e}}}(new he(0,Ht()),e,n)}const fa=0,da=1,ha=2,pa=3,ma=4;function ga(e,n){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase())}function wa(e,n=fa){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case da:return e.charAt(0).toLowerCase()+e.slice(1);case ha:return ga(e,"_");case pa:return ga(e,"_").toUpperCase();case ma:return ga(e,"-");case fa:default:return e}}(e,n),t[e]=r}for(let n of e){let e=fa;if(null==n&&o(n),n instanceof T){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}class _a extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ya extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class va{constructor(){this.cache=new Map([])}}function ba(){return new va}ba(),ba();function Ca(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function xa(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Gn(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=Wn(e,s),c=Wn.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Ca(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Ca(n)}}function Sa(e,n){const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function Ea(e,n){try{return n.contents=function(e){const n=Fn(e),t=Pn.exec(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t[0]?0:36e5*parseInt(t[1],10)+6e4*parseInt(t[2],10);return Sa(n.getTime(),r)}(e),!0}catch(e){return!1}}function ka(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ia(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function Ia(e){return Nn(Cn(e,1e4))}function Aa(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ka(n,0,0,0,0)}if(t>0){const n=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,s=+n[4],u=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ka(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Na{constructor(e){this.k=e}}function Ta(e){return new Na(e)}function Pa(e){return e.k}class Da extends Na{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=r}}function Ma(e,n,t,r){return new Da(e,n,t,r)}function Oa(e){return e.left}function Ra(e){return e.right}function Ua(e){return e.h}function Ba(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof Da){const r=i;n=Oa(r),t=e(Ra(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function La(e,n,t){let r,o,i;if(null!=e){const n=e;i=n instanceof Da?(r=n,Ua(r)):1}else i=0;let s;if(null!=t){const e=t;s=e instanceof Da?(o=e,Ua(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?Ta(n):Ma(n,e,t,u+1)}function Fa(e,n,t){let r,o,i,s,u,c,a,l,$;if(null!=e){const n=e;$=n instanceof Da?(r=n,Ua(r)):1}else $=0;let f;if(null!=t){const e=t;f=e instanceof Da?(o=e,Ua(o)):1}else f=0;if(f>$+2){const r=le(t);if(r instanceof Da){const t=r;if(i=Oa(t),(null!=i?(s=i,s instanceof Da?(u=s,Ua(u)):1):0)>$+1){const r=le(Oa(t));if(r instanceof Da){const o=r;return La(La(e,n,Oa(o)),Pa(o),La(Ra(o),Pa(t),Ra(t)))}throw new Error("internal error: Set.rebalance")}return La(La(e,n,Oa(t)),Pa(t),Ra(t))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=le(e);if(r instanceof Da){const e=r;if(c=Ra(e),(null!=c?(a=c,a instanceof Da?(l=a,Ua(l)):1):0)>f+1){const r=le(Ra(e));if(r instanceof Da){const o=r;return La(La(Oa(e),Pa(e),Oa(o)),Pa(o),La(Ra(o),n,t))}throw new Error("internal error: Set.rebalance")}return La(Oa(e),Pa(e),La(Ra(e),n,t))}throw new Error("internal error: Set.rebalance")}return La(e,n,t)}function ja(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,Pa(r));if(r instanceof Da){const i=r;return o<0?Fa(ja(e,n,Oa(i)),Pa(i),Ra(i)):0===o?t:Fa(Oa(i),Pa(i),ja(e,n,Ra(i)))}{const o=0|e.Compare(n,Pa(r));return o<0?Ma(n,void 0,t,2):0===o?t:Ma(n,t,void 0,2)}}return Ta(n)}function Ga(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Pa(s));if(s instanceof Da){const i=s;if(u<0){e=r,n=o,t=Oa(i);continue e}if(0===u)return!0;e=r,n=o,t=Ra(i);continue e}return 0===u}return!1}}function Ha(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof Da){const r=o;Ha(t,Oa(r)),t(Pa(r)),e=t,n=Ra(r);continue e}t(Pa(o))}break}}class Wa extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function za(e){e:for(;;){const n=e;if(qt(n))return Ht();{const t=Zt(n),r=Jt(n);if(null!=t){const o=t;if(o instanceof Da){const n=o;e=er([Oa(n),Ta(Pa(n)),Ra(n)],r);continue e}return n}e=r;continue e}}}function qa(e){return new Wa(za(zt(e)),!1)}function Va(e){if(e.started){const n=e.stack;if(qt(n))return function(){throw new Error("Enumeration already started")}();if(null!=Zt(n)){return Pa(Zt(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Za(e){let n=qa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Va(n),"System.Collections.IEnumerator.get_Current":()=>Va(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(qt(n))return!1;if(null!=Zt(n)){const t=Jt(n);if(Zt(n)instanceof Da)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=za(t),!qt(e.stack)}Jt(n);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!qt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=qa(e)},Dispose(){}}}function Ja(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t,s=[o,i];if(qt(s[0]))return qt(s[1])?0:-1;if(qt(s[1]))return 1;if(null!=Zt(s[1]))if(null!=Zt(s[0])){const u=Jt(s[0]),c=Jt(s[1]),a=Zt(s[0]),l=Zt(s[1]);if(a instanceof Da){const s=a;if(null==Oa(s)){if(!(l instanceof Da)){const o=0|r.Compare(Pa(s),Pa(l));if(0!==o)return 0|o;e=r,n=Wt(Ra(s),u),t=Wt(void 0,c);continue e}{const a=l;if(null==Oa(a)){const o=0|r.Compare(Pa(s),Pa(a));if(0!==o)return 0|o;e=r,n=Wt(Ra(s),u),t=Wt(Ra(a),c);continue e}{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(l instanceof Da)){const o=0|r.Compare(Pa(a),Pa(l));if(0!==o)return 0|o;e=r,n=u,t=c;continue e}{const s=l;if(null==Oa(s)){const o=0|r.Compare(Pa(a),Pa(s));if(0!==o)return 0|o;e=r,n=Wt(void 0,u),t=Wt(Ra(s),c);continue e}{const s=[o,i];let u,c,a,l,$;switch(qt(s[0])?qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2:null!=Zt(s[0])?(u=0,c=Jt(s[0]),a=Zt(s[0])):qt(s[1])?u=2:null!=Zt(s[1])?(u=1,l=Jt(s[1]),$=Zt(s[1])):u=2,u){case 0:if(a instanceof Da){const o=a;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],c),t=i;continue e}e=r,n=er([void 0,Ta(Pa(a))],c),t=i;continue e;case 1:if($ instanceof Da){const i=$;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],l);continue e}e=r,n=o,t=er([void 0,Ta(Pa($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{Jt(s[0]),Jt(s[1]),Zt(s[1]);const u=[o,i];let c,a,l,$,f;switch(qt(u[0])?qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2:null!=Zt(u[0])?(c=0,a=Jt(u[0]),l=Zt(u[0])):qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2,c){case 0:if(l instanceof Da){const o=l;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],a),t=i;continue e}e=r,n=er([void 0,Ta(Pa(l))],a),t=i;continue e;case 1:if(f instanceof Da){const i=f;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],$);continue e}e=r,n=o,t=er([void 0,Ta(Pa(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Zt(s[0])){e=r,n=Jt(s[0]),t=Jt(s[1]);continue e}{Jt(s[0]),Jt(s[1]),Zt(s[0]);const u=[o,i];let c,a,l,$,f;switch(qt(u[0])?qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2:null!=Zt(u[0])?(c=0,a=Jt(u[0]),l=Zt(u[0])):qt(u[1])?c=2:null!=Zt(u[1])?(c=1,$=Jt(u[1]),f=Zt(u[1])):c=2,c){case 0:if(l instanceof Da){const o=l;e=r,n=er([Oa(o),Ma(Pa(o),void 0,Ra(o),0)],a),t=i;continue e}e=r,n=er([void 0,Ta(Pa(l))],a),t=i;continue e;case 1:if(f instanceof Da){const i=f;e=r,n=o,t=er([Oa(i),Ma(Pa(i),void 0,Ra(i),0)],$);continue e}e=r,n=o,t=er([void 0,Ta(Pa(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,zt(n),zt(t))}function Xa(e,n,t){let r=0|t;Ha(e=>{n[r]=e,r+=1},e)}function Ya(e,n){return Dt((n,t)=>ja(e,t,n),void 0,n)}function Ka(e,n){if(r(n)){return Ya(e,n)}if(n instanceof Bt){return function(e,n){return Yt((n,t)=>ja(e,t,n),void 0,n)}(e,n)}{const t=c(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=ja(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{t.Dispose()}}}class Qa{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n=0;const t=c(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();r=n,o=g(e),n=(r<<1)+o+631}}finally{t.Dispose()}var r,o;return 0|Math.abs(n)}(this)}Equals(e){let n;return e instanceof Qa&&(n=e,0===Ja(nl(this),tl(this),tl(n)))}toString(){return"set ["+ot("; ",Dr(e=>N(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Ja(nl(this),tl(this),tl(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ga(nl(this),e,tl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Xa(tl(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|rl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|rl(this)}GetEnumerator(){return Za(tl(this))}[Symbol.iterator](){return a(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Za(tl(this))}get size(){return 0|rl(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return ol(this,e)}keys(){return Dr(e=>e,this)}values(){return Dr(e=>e,this)}entries(){return Dr(e=>[e,e],this)}forEach(e,n){const t=this;Pr(n=>{e(n,n,t)},t)}}function el(e,n){return new Qa(e,n)}function nl(e){return e.comparer}function tl(e){return e.tree}function rl(e){return Ba(tl(e))}function ol(e,n){return Ga(nl(e),n,tl(e))}function il(e,n){return el(n,Ka(n,e))}function sl(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function ul(e,n){let t;switch(n.tag){case 2:{const e=n.fields[1];t=sl(n.fields[0],e,!0);break}case 1:{const e=n.fields[1],r=n.fields[2];t=sl(n.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=n.fields[1];t=sl(n.fields[0],e,!0);break}case 4:{const e=n.fields[1],r=n.fields[0],o=n.fields[2];t=sl(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=n.fields[1];t="Expecting "+n.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:t="The following errors were found:\n\n"+ot("\n\n",n.fields[0]);break;case 6:t="The following `failure` occurred with the decoder: "+n.fields[0];break;default:{const e=n.fields[1];t=sl(n.fields[0],e,!1)}}return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function cl(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new he(1,ul(e[0],e[1]))}{const e=r.fields[0];return new he(0,e)}}function al(e,n){let t;try{return cl("$",e,JSON.parse(n))}catch(e){if(t=e,t instanceof SyntaxError){return new he(1,"Given an invalid JSON: "+e.message)}throw e}}const ll=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new he(0,(e+128&255)-128):new he(1,[t,new _a(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new he(1,[t,new _a(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!1,8,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[t,new _a(0,"a sbyte",r)])}return new he(1,[t,new _a(0,"a sbyte",r)])},$l=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new he(0,255&e):new he(1,[t,new _a(1,"a byte",e,"Value was either too large or too small for a byte")]):new he(1,[t,new _a(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!0,8,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[t,new _a(0,"a byte",r)])}return new he(1,[t,new _a(0,"a byte",r)])},fl=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new he(0,(e+32768&65535)-32768):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!1,16,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])},dl=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new he(0,65535&e):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!0,16,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])},hl=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new he(0,~~e):new he(1,[t,new _a(1,"an int",e,"Value was either too large or too small for an int")]):new he(1,[t,new _a(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;if(e=[ye(r,511,!1,32,new B(()=>n,e=>{n=e})),n],e[0]){const n=0|e[1];return new he(0,n)}return new he(1,[t,new _a(0,"an int",r)])}return new he(1,[t,new _a(0,"an int",r)])},pl=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new he(0,e>>>0):new he(1,[r,new _a(1,t,e,"Value was either too large or too small for "+t)]):new he(1,[r,new _a(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;if(e=[ye(o,511,!0,32,new B(()=>n,e=>{n=e})),n],e[0]){const n=e[1];return new he(0,n)}return new he(1,[r,new _a(0,t,o)])}return new he(1,[r,new _a(0,t,o)])};function ml(e,n){if("string"==typeof n){let r,o=Ln(-621355968e5,0);if(r=[jn(n,new B(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new he(0,1===(t=e).kind?t:Ln(t.getTime(),1))}return new he(1,[e,new _a(0,"a datetime",n)])}return new he(1,[e,new _a(0,"a datetime",n)]);var t}function gl(e,n){if("string"==typeof n){let t,r=Sa(-621355968e5,0);if(t=[Ea(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a datetimeoffset",n)])}return new he(1,[e,new _a(0,"a datetime",n)])}function wl(e,n,t,r){let o;const i=t+".["+f(e)+"]";if(Array.isArray(r)){const t=r;if(e<t.length)return n(i,t[e]);{const n="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|t.length,f(o)+"` entries");return new he(1,[i,new _a(5,n,r)])}}return new he(1,[i,new _a(0,"an array",r)])}function _l(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return pe(e=>Kt(e),Dt((t,o)=>{if(r+=1,0===t.tag){const i=t.fields[0],s=e(n+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new he(0,Wt(e,i))}{const e=s.fields[0];return new he(1,e)}}return t},new he(0,Ht()),o))}return new he(1,[n,new _a(0,"a list",t)])}function yl(e,n,t){if(Array.isArray(t)){let r=-1;const o=t,i=Nt(new Array(o.length),0,o.length,null);return Dt((t,o)=>{if(r+=1,0===t.tag){const i=t.fields[0],s=e(n+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new he(0,i)}{const e=s.fields[0];return new he(1,e)}}return t},new he(0,i),o)}return new he(1,[n,new _a(0,"an array",t)])}function vl(e,n,t){return new he(0,e)}function bl(e,n,t,r){const o=n(t,r);if(0===o.tag){return e(o.fields[0],t,r)}{const e=o.fields[0];return new he(1,e)}}function Cl(e,n,t,r){const o=n(t,r);if(1===o.tag){const e=o.fields[0];return new he(1,e)}{const n=o.fields[0];return new he(0,e(n))}}function xl(e,n){let t;const r=e;return t=e=>n=>wl(0,r,e,n),e=>r=>bl(k(3,e=>{let t;const r=n;return t=e=>n=>wl(1,r,e,n),n=>r=>bl((n,t,r)=>vl([e,n]),k(2,t),n,r)}),k(2,t),e,r)}function Sl(e){return qs(e)}function El(e,n,t,r){let o,i;return n.length!==r.length?new he(1,[t,new _a(6,(o=0|r.length,i=0|n.length,Kn(Jn("Expected %i %s but got %i"))(i)(e)(o)))]):Ut(k(3,A(e=>n=>r=>{if(0===r.tag){const o=r.fields[0];return pe(e=>Wt(e,o),n(t,e))}return r},[0,[0,2],0])),r,n,new he(0,Ht()))}function kl(e,n,t,r,o,i){const s=(u=e=>Y(e)===r,oe(t).find(u));var u;if(null!=s){const t=s;if(0===i.length)return new he(0,ue(t,[]));return pe(e=>ue(t,Xt(e)),El("union fields",Tt(t=>Al(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new he(1,[o,new _a(6,"Cannot find case "+r+" in "+K(t))])}function Il(e,n,t,r){const o=new B(null),i=Xs(K(r),o,e);let s;if(function(e){return e instanceof F?null!=e.fields:e instanceof U}(r)){const e=Tt(e=>[xa(n,Y(e)),Al(i,n,!1,e[1])],ie(r));s=n=>t=>pe(e=>function(e,n){const t=ie(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce((e,[t,r],o)=>(e[t]=n[o],e),{})}(r,Xt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new he(1,[n,new _a(0,"an object",t)]):Rt(k(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return pe(e=>Wt(e,i),o(n+"."+r)(t[r]))}return e}}),e,new he(0,Ht()))}(e,n,t))}else if(function(e){return e instanceof F?null!=e.cases:e instanceof T}(r))s=e=>t=>{if("string"==typeof t){return kl(i,n,r,t,e,[])}if(Array.isArray(t)){const o=t,s=o[0];return kl(i,n,r,s,e,o.slice(1,o.length))}return new he(1,[e,new _a(0,"a string or array",t)])};else{if(!t){let e;const n=K(r);throw e=Kn(Jn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}s=e=>n=>new he(1,[e,new _a(2,"an extra coder for "+K(r),n)])}return o.contents=s,s}function Al(e,n,t,r){let o;const i=K(r),s=Ys(i,e);if(null==s){if(Q(r)){const t=Al(e,n,!1,function(e){var n;return Q(e)?null===(n=e.generics)||void 0===n?void 0:n[0]:void 0}(r));return e=>n=>yl(k(2,t),e,n)}if(ee(r)){const e=K(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,s=ll(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=$l(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=fl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=dl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=hl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=0|s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,f(e))):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=pl(o)(i);if(1===s.tag){const e=s.fields[0];return new he(1,e)}{const e=s.fields[0];return Nr(e,ne(t),{Equals:(e,n)=>e===n,GetHashCode:e=>p(e)})?new he(0,re(t,e.toString())):new he(1,[o,new _a(1,K(t),i,"Unkown value provided for the enum")])}};{const e=K(r),n=Yn(e=>{throw new Error(e)},Jn("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{const t=n(e);return e=>t(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const t=Tt(t=>Al(e,n,!1,t),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?pe(e=>Xt(e),El("tuple elements",t,e,n)):new he(1,[e,new _a(0,"an array",n)])}{const i=K(function(e){return null==e.generics?e:new F(e.fullname,e.generics.map(()=>J))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const t=Al(e,n,!0,j(r)[0]);return e=>n=>{return r=k(2,t),o=e,null==(i=n)?new he(0,void 0):pe(e=>ae(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const t=Al(e,n,!1,j(r)[0]);return e=>n=>_l(k(2,t),e,n)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const t=Al(e,n,!1,j(r)[0]),i=Al(e,n,!1,j(r)[1]);let s;const u=nr([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new he(1,[t,new _a(0,"an object",r)]):Tr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(t,i);if(0===u.tag){const e=u.fields[0],o=n(t+"."+i,r[i]);if(0===o.tag){const n=o.fields[0];return new he(0,Wt([e,n],s))}{const e=o.fields[0];return new he(1,e)}}{const e=u.fields[0];return new he(1,e)}}return o},new he(0,Ht()),Object.keys(r))}(k(2,t),k(2,i),e,n),(o=xl(k(2,t),k(2,i)),e=>n=>_l(k(2,o),e,n))]);return s=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(qt(o))return new he(1,[t,new _a(7,i)]);{const s=Jt(o),u=Zt(o),c=cl(t,k(2,u),r);if(1===c.tag){e=s,n=rr(i,zt(c.fields[0]));continue e}{const e=c.fields[0];return new he(0,e)}}}})(u,Ht());var t,r},e=>n=>Cl(e=>Sl(e),k(2,s),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const t=Al(e,n,!1,j(r)[0]);return e=>n=>{const r=yl(k(2,t),e,n);if(0===r.tag){const e=r.fields[0];return new he(0,il(e,{Compare:(e,n)=>x(e,n)}))}{const e=r.fields[0];return new he(1,e)}}}return Il(e,n,t,r)}}return"System.Boolean"===i?e=>n=>{return t=e,"boolean"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===i?e=>n=>{return t=e,null==(r=n)?new he(0,void 0):new he(1,[t,new _a(0,"null",r)]);var t,r}:"System.String"===i?e=>n=>{return t=e,"string"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a string",r)]);var t,r}:"System.SByte"===i?ll:"System.Byte"===i?$l:"System.Int16"===i?fl:"System.UInt16"===i?dl:"System.Int32"===i?hl:"System.UInt32"===i?pl:"System.Double"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a float",r)]);var t,r}:"System.Single"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new he(0,r):new he(1,[t,new _a(0,"a float32",r)]);var t,r}:"System.DateTime"===i?e=>n=>ml(e,n):"System.DateTimeOffset"===i?e=>n=>gl(e,n):"System.TimeSpan"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;if(t=[Aa(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a timespan",n)])}return new he(1,[e,new _a(0,"a timespan",n)])}(e,n):"System.Guid"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";if(t=[ft(n,new B(()=>r,e=>{r=e})),r],t[0]){const e=t[1];return new he(0,e)}return new he(1,[e,new _a(0,"a guid",n)])}return new he(1,[e,new _a(0,"a guid",n)])}(e,n):"System.Object"===i?e=>e=>new he(0,e):Il(e,n,t,r)}{const e=s;return n=>t=>e.contents(n)(t)}}function Nl(e){if(null!=e){return Ks((e,n)=>{const t=n[1];return new B(t)},e.Coders)}return Qs()}function Tl(e,n,t){const r=fe(e,new ya(0)),o=le(t).ResolveType();return Al(Nl(n),r,!1,o)}function Pl(e,n,t,r){return al(k(2,Tl(n,t,r)),e)}function Dl(e){const n=e.fields[0];return new dt(0,n)}function Ml(e){return Kn(Xn("%s%P()/account-registry/admin",[e]))}function Ol(e,n){return Kc(0,()=>{const t=aa((r=Kn(Jn("Bearer %s"))(e),new ea(0,"Authorization",r)),n);var r;const o=Wr.Bind(la(t),e=>Wr.Return(new he(0,e)));return Wr.Delay(()=>Wr.Bind(o,e=>{let n;const r=e;if(1===r.tag){const e=r.fields[0];return Wr.Return(new he(1,e))}{const e=r.fields[0];return Wr.ReturnFrom((n=e,429===n.statusCode||n.statusCode>=500?Wr.Bind(la(t),e=>Wr.Return(new he(0,e))):function(e,n){return Wr.Return(qr(0,n))}(0,n)))}}))})}function Rl(e,n){return Kc(0,()=>{const t=Ol(n,ca(new Qc(0),ua(Kn(Xn("%P()/partners",[Ml(e)])))));return Wr.Delay(()=>Wr.Bind(t,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(me(e=>$a(e=>e,ir(e=>Fu(e),e)),Pl(n.responseText,new ya(1),void 0,{ResolveType:()=>Z(z("Dto.AdminApi.Partner",[],uo,()=>[["StreamId",X],["Name",X],["Website",X],["ContactDetails",no()],["Notes",V(X)]]))}))):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}function Ul(e,n,t,r,o){return Kc(0,()=>{let i,s;const u=Mu(r.SearchText);let c;s=rt(u)?void 0:Kn(Xn("search=%P()",[encodeURIComponent(u)]));const a=[(l=r.Sort).fields[0],l.fields[1]];var l;let $;c=1===a[0].tag?1===a[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===a[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc";const f=0|Ru(r.PageSize);$=f<=100&&f>=10?Kn(Xn("page_size=%i%P()",[f])):void 0,i="?"+ot("&",function(e,n){const t=new Bt(null,void 0),r=Yt((n,t)=>{const r=e(t);if(null==r)return n;{const e=le(r),t=new Bt(e,void 0);return n.tail=t,t}},t,n),o=new Bt(null,void 0);return r.tail=o,Gt(t)}(e=>e,nr([s,c,$])));const d=Ol(n,(e=>{if(null==o)return e;return aa(new ea(0,"token",o),e)})(ca(new Qc(0),ua(Kn(Xn("%P()/partners/%P()/accounts%P()",[Ml(e),pt(t),i]))))));return Wr.Delay(()=>Wr.Bind(d,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(Pl(n.responseText,new ya(1),void 0,{ResolveType:ho})):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}class Bl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function Ll(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=ko("a",E(Sr(vr(()=>Ir(xr(["key",e]),vr(()=>Ir(xr(["children",e]),vr(()=>Ir(xr(["className",t]),vr(()=>null!=n?xr(["href",wu(zt(le(n)),1)]):Cr())))))))))),new Bl(0,r);var r}function Fl(e){return ko("div",{className:"border-b border-gray-200",children:Ji.Children.toArray([ko("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:Ji.Children.toArray(Array.from(Dr(e=>e.fields[0],e)))})])})}class jl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Gl(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-super-configuration",wa(Ar(e=>e,[new jl(1,t),new jl(0,r),new jl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new jl(3,n)},o)]),1))}class Hl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Wl(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-benefits-onboarding-configuration",wa(Ar(e=>e,[new Hl(1,t),new Hl(0,r),new Hl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new Hl(3,n)},o)]),1))}class zl extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function ql(e){let n;const t=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return ko("superhero-bank-details",wa(Ar(e=>e,[new zl(1,t),new zl(0,r),new zl(2,(n=i.fields[0],n)),de(e=>{const n=e.fields[0];return new zl(3,n)},o)]),1))}function Vl(e){return ko("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Zl(e){return ko("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Ji.Children.toArray([e])})}function Jl(e,n){return ko("div",{className:"sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5",children:Ji.Children.toArray([Vl(e),Zl(n)])})}function Xl(e){return ko("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function Yl(e){return ko("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0,rows:5})}function Kl(e){const n=zt(ko("div",{children:Ji.Children.toArray(Array.from(e))}));return ko("form",{children:Ji.Children.toArray(Array.from(n))})}function Ql(e,n){const t=nr([ko("br",{}),(r=e,ko("div",{className:ot(" ",["text-lg","leading-6","font-medium","text-gray-900"]),children:Ji.Children.toArray([ko("span",{children:[r]})])})),ko("div",{className:ot(" ",["px-6"]),children:Ji.Children.toArray(Array.from(n))})]);var r;return ko("div",{children:Ji.Children.toArray(Array.from(t))})}function e$(e){return n=>Jl(e,Xl(n))}function n$(e){return Ql("Account Information",nr([e$("ID")(e.StreamId),e$("External ID")(fe(e.ExternalId,"")),e$("Channel ID")(fe(e.ChannelId,"")),e$("Name")(e.Name),e$("Contact")(Kn(Xn("%P() %P()",[e.ContactDetails.FirstName,e.ContactDetails.LastName]))),e$("Phone")(e.ContactDetails.MobilePhone),e$("Email")(e.ContactDetails.Email),e$("Website")(e.Website)]))}function t$(e){if(null==e)return null;{const n=e;return Ql("Legal Entity",nr([e$("Business Name")(n.BusinessName),e$("Business Number")(n.BusinessNumber),e$("Address Line 1")(n.Address1),e$("Address Line 2")(fe(n.Address2,"")),e$("City")(n.City),e$("State")(fe(n.State,"")),e$("Postcode")(n.Postcode)]))}}function r$(e){if(null==e)return null;return Ql("Other details",zt((n="Notes",e=>Jl(n,Yl(e)))(e)));var n}function o$(e){return Kl([n$(e),t$(e.LegalEntity),r$(e.Notes)])}function i$(e){const n=zt(ko("span",{children:[e.error]}));return ko("div",{children:Ji.Children.toArray(Array.from(n))})}function s$(){const e=zt(ko("span",{children:["Please wait..."]}));return ko("div",{children:Ji.Children.toArray(Array.from(e))})}class u$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class c$ extends U{constructor(e){super(),this.Data=e}}function a$(){return[new c$(new eu(0)),Zu()]}class l$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function $$(e,n,t){let r,o,i,s,u,c,a,l,$,f,d,h;const p=[e,n];return Fl(1===t.tag?nr([Ll("Details",wu(Wu((r=p,new ju(6,r[0],r[1]))),1)),Ll("Super Configuration",void 0),Ll("Benefits Onboarding Configuration",wu(Wu((o=p,new ju(8,o[0],o[1]))),1)),Ll("Bank Details Configuration",wu(Wu((i=p,new ju(9,i[0],i[1]))),1))]):2===t.tag?nr([Ll("Details",wu(Wu((s=p,new ju(6,s[0],s[1]))),1)),Ll("Super Configuration",wu(Wu((u=p,new ju(7,u[0],u[1]))),1)),Ll("Benefits Onboarding Configuration",void 0),Ll("Bank Details Configuration",wu(Wu((c=p,new ju(9,c[0],c[1]))),1))]):3===t.tag?nr([Ll("Details",wu(Wu((a=p,new ju(6,a[0],a[1]))),1)),Ll("Super Configuration",wu(Wu((l=p,new ju(7,l[0],l[1]))),1)),Ll("Benefits Onboarding Configuration",wu(Wu(($=p,new ju(8,$[0],$[1]))),1)),Ll("Bank Details Configuration",void 0)]):nr([Ll("Details",void 0),Ll("Super Configuration",wu(Wu((f=p,new ju(7,f[0],f[1]))),1)),Ll("Benefits Onboarding Configuration",wu(Wu((d=p,new ju(8,d[0],d[1]))),1)),Ll("Bank Details Configuration",wu(Wu((h=p,new ju(9,h[0],h[1]))),1))]))}function f$(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return ko(Gl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return ko(Wl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return ko(ql,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}default:{const e=t.Data;let n,r,o;switch(0===e.tag||1===e.tag?n=2:3===e.tag?(n=3,o=e.fields[0]):0===e.fields[0].tag?(n=0,r=e.fields[0].fields[0]):n=1,n){case 0:return ko(o$,r);case 1:return ko(i$,{error:"There was an error retrieving account "});case 2:return ko(s$,null);case 3:return ko(i$,{error:N(o)})}}}}function d$(e){let n,t;const r=e.mode,o=e.props,i=Xc(a$,(e,n)=>function(e,n){const t=e.fields[0];return[new c$(t),Zu()]}(e),[]),s=i[0],u=i[1];return os((n=[()=>{const e=o.accountDetails,n=e[0],t=e[1];return function(e,n,t,r){const o=t.fields[0],i=r.fields[0];return Kc(0,()=>{const t=Ol(n,ca(new Qc(0),ua(Kn(Xn("%P()/partners/%s%P()/accounts/%s%P()",[Ml(e),o,i])))));return Wr.Delay(()=>Wr.Bind(t,e=>{let n;const t=e;if(1===t.tag){const e=t.fields[0];return Wr.Return(new he(1,e))}{const e=t.fields[0];return Wr.ReturnFrom((n=e,200===n.statusCode?Wr.Return(Pl(n.responseText,new ya(1),void 0,{ResolveType:ao})):Wr.Return(new he(1,"Unexpected response from backend"))))}}))})}(o.backendUrl,o.accessToken,n,t)},e=>{u(new u$(0,e))}],tu(n[0],n[1]))),ko("div",{children:Ji.Children.toArray([(t=o.accountDetails,$$(t[0],t[1],r)),f$(o,r,s)])})}class h$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class p${constructor(e){this.props=e}}function m$(e){return n=>t=>Wr.Delay(()=>{const r=Dl(e.props.partnerId);return Wr.Bind(Ul(e.props.backendUrl,e.props.accessToken,r,n,void 0),e=>(t(new h$(2,new eu(2,e))),Wr.Zero()))})}class g$ extends U{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function w$(){return[new g$(new eu(0),Du,Iu,(e=20,new Ou(0,e))),Zu()];var e}class _$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function y$(e){return new _$(0,e)}function v$(e){return e.fields[0]}class b$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function C$(e){return new b$(0,e)}function x$(e){return e.fields[0]}function S$(e){return y$(ko("th",E(nr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function E$(e,n){return C$(ko("td",{className:ot(" ",Ir(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function k$(e,n){let t;const r=(e,n)=>{return ko("tr",{className:(t=e,t%2==0?"bg-white":"bg-gray-50"),children:Ji.Children.toArray(Array.from(Dr(e=>x$(e),n)))});var t};return ko("div",{className:"flex flex-col mt-4",children:Ji.Children.toArray([ko("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:Ji.Children.toArray([ko("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:Ji.Children.toArray([ko("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:Ji.Children.toArray([ko("table",{className:"min-w-full divide-y divide-gray-200",children:Ji.Children.toArray([(e=>{let n;return ko("thead",{className:"bg-gray-50",children:(n=Dr(e=>v$(e),e),ko("tr",{children:Ji.Children.toArray(Array.from(n))}))})})(e),(t=Mr(k(2,e=>{const n=function(e,n,t){if(null!=n){if("__CURRIED__"in n){n=n.__CURRIED__;for(let e=0;e<t.length;e++)n=n(t[e]);return n}switch(e){case 1:return e=>n.apply(void 0,t.concat([e]));case 2:return e=>r=>n.apply(void 0,t.concat([e,r]));case 3:return e=>r=>o=>n.apply(void 0,t.concat([e,r,o]));case 4:return e=>r=>o=>i=>n.apply(void 0,t.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>n.apply(void 0,t.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>n.apply(void 0,t.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>n.apply(void 0,t.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>a=>n.apply(void 0,t.concat([e,r,o,i,s,u,c,a]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>n(e)}),n),ko("tbody",{children:Ji.Children.toArray(Array.from(t))}))])})])})])})])})])})}function I$(e){return["fillRule",e]}function A$(e){return["clipRule",e]}const N$=ko("svg",{className:ot(" ",["h-5","w-5"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:Ji.Children.toArray([ko("path",E(nr([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],I$("evenodd"),A$("evenodd")])))])}),T$=ko("svg",{className:ot(" ",["h-5","w-5"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:Ji.Children.toArray([ko("path",E(nr([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],I$("evenodd"),A$("evenodd")])))])});function P$(e,n,t,r){return y$(ko("th",{className:ot(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"]),scope:"col",children:Ji.Children.toArray([ko("a",{className:ot(" ",["group","inline-flex","cursor-pointer"]),onClick:t,children:Ji.Children.toArray([r,ko("span",{className:ot(" ",(o=!e,i=zt("invisible"),s=nr(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),o?rr(s,i):s)),children:Ji.Children.toArray(Array.from(Sr(vr(()=>xr(n?N$:T$)))))})])})])}));var o,i,s}function D$(e,n){return P$(y(Au(e.Sort),new xu(1)),y(Nu(e.Sort),new Su(0)),t=>{n(new h$(1,Tu(new xu(1),e.Sort)))},"Name")}function M$(e,n){return P$(y(Au(e.Sort),new xu(0)),y(Nu(e.Sort),new Su(0)),t=>{n(new h$(1,Tu(new xu(0),e.Sort)))},"Id")}function O$(e,n){const t=new Et(0,n.AccountId);return Sr(vr(()=>{let r;return Ir(xr(function(e,n,t,r){return C$(ko("td",{className:"px-6 py-2 whitespace-nowrap text-sm align-top",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(ko("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),vr(()=>{let e;return Ir(null==r?xr(null):(e=r,Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n=Kn(Xn("Channel ID: %s%P()",[e])),ko("span",{children:[n]})))}))),vr(()=>{if(null==t)return xr(null);{const e=t;return Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n=Kn(Xn("External ID: %s%P()",[e])),ko("span",{children:[n]})))}))}}))}))))))}))}(wu(Wu((r=[e,t],new ju(6,r[0],r[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),vr(()=>{return Ir(xr((e=n.Name,t=n.BusinessName,r=n.BusinessNumber,C$(ko("td",{className:ot(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"]),children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(ko("div",{className:ot(" ",["font-medium"]),children:Ji.Children.toArray([ko("span",{children:[e]})])})),vr(()=>{let e,n;return Ir(null==t?xr(null):(e=t,xr((n="Legal Entity: "+e,ko("span",{children:[n]})))),vr(()=>{if(null==r)return xr(null);{const e=r;return Ir(xr(ko("br",{})),vr(()=>{let n;return xr((n="ABN: "+e,ko("span",{children:[n]})))}))}}))}))))))})))),vr(()=>{return Ir(xr((e=n.Contact,t=n.ContactMobilePhone,C$(ko("td",{className:ot(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"]),children:Ji.Children.toArray([ko("span",{children:[e]}),ko("br",{}),ko("span",{children:[t]})])})))),vr(()=>xr(function(e){return C$(ko("td",{className:ot(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}(n.Website))));var e,t}));var e,t,r}))}))}class R$ extends U{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class U$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class B$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function L$(e,n,t,r,o,i){let s;const u=[n,t];let c,a,l;switch(null!=u[0]&&null!=u[1]?(c=0,a=u[0],l=u[1]):c=1,c){case 0:s=Sr(vr(()=>Ir(xr("Showing "),vr(()=>Ir(xr(ko("span",{className:"font-medium",children:Kn(Xn("%i%P()",[a]))})),vr(()=>Ir(xr(" to "),vr(()=>Ir(xr(ko("span",{className:"font-medium",children:Kn(Xn("%i%P()",[l]))})),vr(()=>Ir(xr(" of "),vr(()=>{let e;return 1===r.tag?zt(" many"):(e=0|r.fields[0],nr([ko("span",{className:"font-medium",children:N(e)})," results"]))}))))))))))));break;case 1:s=zt(null)}const $=Sr(vr(()=>{let e;return Ir(null==i?xr(null):(e=i,xr(ko("a",{className:ot(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:e,children:"Previous "}))),vr(()=>{if(null==o)return xr(null);{const e=o;return xr(ko("a",{className:ot(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:e,children:" Next"}))}}))}));return ko("tfoot",{className:ot(" ",["w-full"]),children:Ji.Children.toArray([ko("tr",{children:Ji.Children.toArray([ko("td",{colSpan:e,children:Ji.Children.toArray([ko("nav",{className:ot(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"]),children:Ji.Children.toArray([ko("div",{className:ot(" ",["hidden","sm:block"]),children:Ji.Children.toArray([ko("p",{className:ot(" ",["text-sm","text-gray-700"]),children:Ji.Children.toArray(Array.from(s))})])}),ko("div",{className:ot(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:Ji.Children.toArray(Array.from($))})])})])})])})])})}function F$(e,n){const t=$s(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;Yn(e=>console.log(e),Jn("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}function j$(e){const n=e.data,t=e.pageSize,r=e.renderRowCells,o=e.columnHeaders,i=(s=t,u=n.Data,nr(Tt(e=>nr(e),Mt(s,Xt(u)))));var s,u;const c=F$(Vt(i),n.LoadNext),a=c[2],l=0|c[0],$=c[1];let f;const d=cr(l-1,i);if(null==d)f=new U$(1);else{f=new U$(0,d)}const h=0|Vt(n.Data),p=null==n.LoadNext?new B$(0,h):new B$(1),m=1===f.tag?void 0:h>=1?(l-1)*t+1:void 0;let g;if(1===f.tag)g=void 0;else{const e=f.fields[0];g=h>=1?(l-1)*t+Vt(e):void 0}const w=1===l?void 0:a,_=l===Vt(i)?null!=n.LoadNext?$:void 0:l<Vt(i)?$:void 0;return ko("div",{className:"flex flex-col mt-4",children:Ji.Children.toArray([ko("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:Ji.Children.toArray([ko("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:Ji.Children.toArray([ko("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:Ji.Children.toArray([ko("table",{className:"min-w-full divide-y divide-gray-200",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(xr(function(e){let n;return ko("thead",{className:"bg-gray-50",children:(n=Dr(e=>v$(e),e),ko("tr",{children:Ji.Children.toArray(Array.from(n))}))})}(o)),vr(()=>{let e,n;return Ir(1===f.tag?xr(null):(e=f.fields[0],xr((n=Mr((e,n)=>function(e,n){return ko("tr",{className:(t=e,t%2==0?"bg-white":"bg-gray-50"),children:Ji.Children.toArray(Array.from(Dr(e=>x$(e),n)))});var t}(e,n),r(e)),ko("tbody",{children:Ji.Children.toArray(Array.from(n))})))),vr(()=>xr(L$(Vt(o),m,g,p,_,w))))}))))))})])})])})])})])})}function G$(e){let n;const t=function(e){return new p$(e)}(e),r=Xc(w$,(e,n)=>function(e,n,t){switch(n.tag){case 1:{const r=n.fields[0],o=n=>{const o=new Uu(t.SearchText,r,t.PageSize);ws(m$(e)(o)(n))};return[new g$(new eu(1),t.SearchText,r,t.PageSize),Ju(o)]}case 2:{const e=n.fields[0];return[new g$(e,t.SearchText,t.Sort,t.PageSize),Zu()]}case 3:{const e=n.fields[0];let r;const o=[t.Data,e];let i,s,u,c;if(2===o[0].tag)if(0===o[0].fields[0].tag){const e=o[1];1===e.tag?(i=1,c=e.fields[0]):(i=0,s=o[0].fields[0].fields[0],u=e.fields[0])}else{const e=o[1];1===e.tag?(i=1,c=e.fields[0]):i=2}else{const e=o[1];1===e.tag?(i=1,c=e.fields[0]):i=2}switch(i){case 0:r=new eu(2,new he(0,new fo(rr(s.Accounts,u.Accounts),u.Token)));break;case 1:r=new eu(2,new he(1,c));break;case 2:r=new eu(3,new Error("Failed to retrieve the account data"))}return[new g$(r,t.SearchText,t.Sort,t.PageSize),Zu()]}case 4:{const n=n=>{const r=new Uu(t.SearchText,t.Sort,t.PageSize);ws(m$(e)(r)(n))};return[new g$(new eu(1),t.SearchText,t.Sort,t.PageSize),Ju(n)]}default:{const e=n.fields[0];return[new g$(t.Data,(r=e,new Pu(0,r.trim())),t.Sort,t.PageSize),Zu()]}}var r}(t,e,n),[]),o=r[0],i=r[1],s=new Uu(o.SearchText,o.Sort,o.PageSize);os((n=[()=>function(e,n,t){const r=Dl(e.props.partnerId);return Ul(e.props.backendUrl,e.props.accessToken,r,n,void 0)}(t,s),e=>{i(new h$(2,e))}],tu(n[0],n[1])));const u=n=>{const r=nr([M$(o,i),D$(o,i),S$("Contact"),S$("Website")]),u=new R$(n.Accounts,de(I(2,(e,n)=>{var r;ws((r=t,e=>n=>t=>Wr.Delay(()=>{const o=Dl(r.props.partnerId);return Wr.Bind(Ul(r.props.backendUrl,r.props.accessToken,o,e,n),e=>(t(new h$(3,e)),Wr.Zero()))}))(s)(e)(i))}),n.Token));return ko(j$,{columnHeaders:r,renderRowCells:n=>ir(n=>O$(e.partnerId,n),n),pageSize:0|Ru(o.PageSize),data:u})},c=e=>{i(new h$(0,e))},a=e=>{i(new h$(4))},l=o.Data;let $,f,d,h;switch(0===l.tag||1===l.tag?$=2:3===l.tag?($=3,h=l.fields[0]):1===l.fields[0].tag?($=1,d=l.fields[0].fields[0]):($=0,f=l.fields[0].fields[0]),$){case 0:return(e=>{const n=nr([ko("div",{className:ot(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"]),children:Ji.Children.toArray([ko("div",{className:ot(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"]),children:Ji.Children.toArray([(r=Mu(o.SearchText),i=c,ko("div",{className:ot(" ",["flex-grow","max-w-md"]),children:Ji.Children.toArray([ko("label",{for:"search",children:"Search",className:ot(" ",["block","text-sm","font-medium","text-gray-700"])}),ko("div",{className:"mt-1",children:Ji.Children.toArray([ko("input",{id:"search",name:"search",type:"text",className:ot(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:"Account Id, Name or Legal Entity",value:r,onChange:e=>{i(e.target.value)}})])})])})),(t=a,ko("div",{className:"pt-6",children:Ji.Children.toArray([ko("div",{className:ot(" ",["flex","justify-end"]),children:Ji.Children.toArray([ko("button",{type:"search",children:"Search",className:ot(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:t})])})])}))])})])}),u(e)]);var t,r,i;return ko("div",{children:Ji.Children.toArray(Array.from(n))})})(f);case 1:return ko(i$,{error:d});case 2:return ko(s$,null);case 3:return ko(i$,{error:N(h)})}}function H$(e,n){const t=nr([ko("br",{}),(r=e,ko("div",{className:ot(" ",["text-lg","leading-6","font-medium","text-gray-900"]),children:Ji.Children.toArray([ko("span",{children:[r]})])})),ko("div",{className:ot(" ",["px-6"]),children:Ji.Children.toArray(Array.from(n))})]);var r;return ko("div",{children:Ji.Children.toArray(Array.from(t))})}function W$(e){return Kl([H$("Partner Information",nr([Jl("ID",Xl(pt(e.StreamId))),Jl("Name",Xl(Jr(e.Name))),Jl("Contact",Xl(Kn(Xn("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)])))),Jl("Phone",Xl(Qr(e.ContactDetails.MobilePhone))),Jl("Website",Xl(Xr(e.Website))),Jl("Notes",Yl(fe(ro(e.Notes),"")))]))])}class z$ extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class q$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class V$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Z$ extends U{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function J$(e){let n,t,r,o,i;return Fl(1===e.tag?(n=e.fields[0],nr([Ll("Details",wu(Wu(new ju(1,n.partnerId)),1)),Ll("Accounts",void 0),Ll("Super Configuration",wu(Wu(new ju(3,n.partnerId)),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,n.partnerId)),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,t)),1)),Ll("Accounts",wu(Wu(new ju(2,t)),1)),Ll("Super Configuration",void 0),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,t)),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,r)),1)),Ll("Accounts",wu(Wu(new ju(2,r)),1)),Ll("Super Configuration",wu(Wu(new ju(3,r)),1)),Ll("Benefits Onboarding Configuration",void 0),Ll("Bank Details Configuration",wu(Wu(new ju(5,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,nr([Ll("Details",wu(Wu(new ju(1,o)),1)),Ll("Accounts",wu(Wu(new ju(2,o)),1)),Ll("Super Configuration",wu(Wu(new ju(3,o)),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,o)),1)),Ll("Bank Details Configuration",void 0)])):(i=e.fields[0],nr([Ll("Details",void 0),Ll("Accounts",wu(Wu(new ju(2,new xt(0,pt(i.StreamId)))),1)),Ll("Super Configuration",wu(Wu(new ju(3,new xt(0,pt(i.StreamId)))),1)),Ll("Benefits Onboarding Configuration",wu(Wu(new ju(4,new xt(0,pt(i.StreamId)))),1)),Ll("Bank Details Configuration",wu(Wu(new ju(5,new xt(0,pt(i.StreamId)))),1))])))}function X$(e){switch(e.tag){case 1:{const n=e.fields[0];return ko(G$,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return ko(Gl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return ko(Wl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return ko(ql,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return ko(W$,e.fields[0])}}function Y$(e){const n=e.mode;return ko("div",{children:Ji.Children.toArray([J$(n),X$(n)])})}function K$(e){const n=e.partnerList;return k$(nr([S$("ID"),S$("Name"),S$("Contact"),S$("Phone"),S$("Website")]),ir(e=>{let n;const t=pt(e.StreamId),r=new xt(0,t);return nr([(n=[wu(Wu(new ju(1,r)),1),t],o=n[0],i=n[1],C$(ko("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:Ji.Children.toArray([ko("a",{className:"text-indigo-600 hover:text-indigo-900",children:i,href:o})])}))),E$(["text-gray-500"],Jr(e.Name)),E$(["text-gray-500"],Kn(Xn("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)]))),E$(["text-gray-500"],Qr(e.ContactDetails.MobilePhone)),E$(["text-gray-500"],Xr(e.Website))]);var o,i},n))}var Q$=Si((function(e,n){return ko("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),ko("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class ef extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function nf(e){return ko("nav",{className:"pt-2","aria-label":"Breadcrumb",children:Ji.Children.toArray([ko("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:Ji.Children.toArray(Array.from(or((e,n)=>{const t=n.fields[0][1];return function(e,n,t,r){return ko("li",{key:e,className:"flex",children:Ji.Children.toArray([ko("div",{className:"flex items-center",children:Ji.Children.toArray(Array.from(Sr(vr(()=>Ir(t?Cr():xr(ko(Q$,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),vr(()=>xr(ko("a",E(Sr(vr(()=>Ir(xr(["children",e]),vr(()=>Ir(null!=n?xr(["href",wu(le(n),1)]):Cr(),vr(()=>xr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(n.fields[0][0],t,0===e)},e)))})])})}function tf(e){let n,t,r,o,i,s,u,c,a,l,$,f,d;const h=e.page,p=()=>new ef(0,["Partners",Wu(new ju(0))]),m=e=>new ef(0,[oo(e),Wu(new ju(1,e))]),g=e=>new ef(0,["Super Configuration",Wu(new ju(3,e))]),w=e=>new ef(0,["Accounts",Wu(new ju(2,e))]),_=e=>new ef(0,[io(e),void 0]),y=e=>{let n;const t=e[0],r=e[1];return new ef(0,["Super Configuration",Wu((n=[t,r],new ju(7,n[0],n[1])))])};return nf(10===h.tag?zt(p()):1===h.tag?(n=h.fields[0],nr([p(),m(n)])):2===h.tag?(t=h.fields[0],nr([p(),m(t),w(t)])):3===h.tag?(r=h.fields[0],nr([p(),m(r),g(r)])):4===h.tag?(o=h.fields[0],nr([p(),m(o),g(o)])):5===h.tag?(i=h.fields[0],nr([p(),m(i),(v=i,new ef(0,["Bank Details Configuration",Wu(new ju(5,v))]))])):6===h.tag?(s=h.fields[0],u=h.fields[1],nr([p(),m(s),w(s),_(u)])):7===h.tag?(c=h.fields[0],a=h.fields[1],nr([p(),m(c),w(c),_(a),y([c,a])])):8===h.tag?(l=h.fields[0],$=h.fields[1],nr([p(),m(l),w(l),_($),y([l,$])])):9===h.tag?(f=h.fields[0],d=h.fields[1],nr([p(),m(f),w(f),_(d),(e=>{let n;const t=e[0],r=e[1];return new ef(0,["Bank Details Configuration",Wu((n=[t,r],new ju(9,n[0],n[1])))])})([f,d])])):zt(p()));var v}function rf(){return(rf=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function of(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return Xo(n,t)}function sf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=ko(of,rf({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[uf(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),a=u[i].slot;a?o[a]=ko(lf,{name:a},c):r[i]=c}var l=t?ko(lf,null,r):r;return ko(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Jo:Zo)(this._vdom,this._root)}function uf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function cf(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[uf(e)]=t,this._vdom=Xo(this._vdom,r),Zo(this._vdom,this._root)}}function af(){Zo(this._vdom=null,this._root)}function lf(e,n){var t=this;return ko("slot",rf({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}class $f extends U{constructor(e,n){super(),this.Data=e,this.CurrentPage=n}}function ff(){return z("AccountRegistry.AdminUI.App.State",[],$f,()=>[["Data",nu(q("Microsoft.FSharp.Core.FSharpResult`2",[Vu(),X],he,()=>[[["ResultValue",Vu()]],[["ErrorValue",X]]]))],["CurrentPage",Gu()]])}class df extends T{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function hf(){return q("AccountRegistry.AdminUI.App.Msg",[],df,()=>[[["Item",Gu()]],[["Item",nu(q("Microsoft.FSharp.Core.FSharpResult`2",[Vu(),X],he,()=>[[["ResultValue",Vu()]],[["ErrorValue",X]]]))]]])}function pf(){const e=Hu(yu(window.location.hash,1)),n=10===e.tag?zu(new ju(0)):Zu();return[new $f(new eu(0),e),n]}function mf(e,n){if(0===e.tag){const t=e.fields[0];return 10===t.tag?[n,zu(t)]:[new $f(n.Data,t),Zu()]}{const t=e.fields[0];return[new $f(t,n.CurrentPage),Zu()]}}function gf(e){const n=Xc(pf,(e,n)=>mf(e,n),[]),t=n[0],r=n[1];os(tu(()=>{return n=e.backendUrl,t=e.accessToken,Kc(0,()=>Wr.Bind(Rl(n,t),e=>Wr.Return(pe(e=>new qu(e),e))));var n,t},e=>{r(new df(1,e))}));const o=n=>{const t=n[0],r=n[1];return n=>ko(d$,{props:{accessToken:e.accessToken,accountDetails:[t,r],backendUrl:e.backendUrl},mode:n})};let i;const s=t.Data;let u,c,a,l;switch(1===s.tag?u=0:2===s.tag?1===s.fields[0].tag?(u=2,a=s.fields[0].fields[0]):(u=1,c=s.fields[0].fields[0]):3===s.tag?(u=3,l=s.fields[0]):u=0,u){case 0:i=ko(s$,null);break;case 1:{const n=e=>{return n=c.Partners,t=oo(e),ur(e=>pt(e.StreamId)===t,n);var n,t},r=t.CurrentPage;switch(r.tag){case 1:{const e=n(r.fields[0]);if(null==e)i=ko(i$,{error:"Unknown Partner"});else{i=ko(Y$,{mode:new z$(0,e)})}break}case 2:{const n=r.fields[0];$=n,i=ko(Y$,{mode:new z$(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:$})});break}case 3:{const n=r.fields[0];i=ko(Y$,{mode:new z$(2,new q$(n,e.backendUrl,e.accessToken))});break}case 4:{const n=r.fields[0];i=ko(Y$,{mode:new z$(3,new V$(n,e.backendUrl,e.accessToken))});break}case 5:{const n=r.fields[0];i=ko(Y$,{mode:new z$(4,new Z$(n,e.backendUrl,e.accessToken))});break}case 6:i=o([r.fields[0],r.fields[1]])(new l$(0));break;case 7:i=o([r.fields[0],r.fields[1]])(new l$(1));break;case 8:i=o([r.fields[0],r.fields[1]])(new l$(2));break;case 9:i=o([r.fields[0],r.fields[1]])(new l$(3));break;default:i=ko(K$,{partnerList:c.Partners})}break}case 2:i=ko(i$,{error:a});break;case 3:i=ko(i$,{error:N(l)});break}var $;return vu({onUrlChanged:e=>{r(new df(0,Hu(e)))},application:ko(Ao,{},ko(tf,{page:t.CurrentPage}),i)})}(function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=r&&r.shadow?n.attachShadow({mode:"open"}):n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=sf,o.prototype.attributeChangedCallback=cf,o.prototype.disconnectedCallback=af,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define(n||e.tagName||e.displayName||e.name,o)})(e=>ko(gf,e),"superhero-account-registry")}]);
1
+ (function(){"use strict";function nt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function tu(e){return e!=null&&typeof e.GetEnumerator=="function"}function nu(e){return e!=null&&typeof e.CompareTo=="function"}function ru(e){return e!=null&&typeof e.Equals=="function"}function Ws(e){return e!=null&&typeof e.GetHashCode=="function"}function vo(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){vo(e)&&e.Dispose()}function X(){return null}function mr(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class ou{constructor(t){this.iter=t,this.current=X()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function se(e){return tu(e)?e.GetEnumerator():new ou(e[Symbol.iterator]())}function Rn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function te(e,t){return e.toString(10).padStart(t,"0")}function qs(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function su(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Bt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ct{static id(t){return ct.idMap.has(t)||ct.idMap.set(t,++ct.count),ct.idMap.get(t)}}ct.idMap=new WeakMap,ct.count=0;function gr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ke(e){return e*2654435761|0}function Zs(e){return gr(e.toString(32))}function Fn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function iu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return Zs(e);case"string":return gr(e);default:return Ke(ct.id(e))}}function au(e){return Ws(e)?e.GetHashCode():iu(e)}function lu(e){return e.getTime()}function cu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return Fn(n)}function ut(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return Zs(e);case"string":return gr(e);default:{if(Ws(e))return e.GetHashCode();if(nt(e))return cu(e);if(e instanceof Date)return lu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ut(r));return Fn(n)}else return Ke(ct.id(e))}}}function uu(e){return au(e)}function xo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Ks(e,t){return xo(e,t,he)}function fu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!he(e[n[o]],t[r[o]]))return!1;return!0}function he(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:ru(e)?e.Equals(t):nt(e)?nt(t)&&Ks(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Js(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&fu(e,t)}function Js(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qs(e),r=t.getTime()+qs(t)),n===r?0:n<r?-1:1}function wr(e,t){return e===t?0:e<t?-1:1}function du(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Ys(e,t){return du(e,t,We)}function hu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=We(e[i],t[i]),s!==0)return s}return 0}function We(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:nu(e)?e.CompareTo(t):nt(e)?nt(t)?Ys(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Js(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?hu(e,t):-1}function N(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function pu(e){nt(e)?e.splice(0):e.clear()}const _r=new WeakMap;function ne(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return _r.set(t,e),t}function Mt(e){return _r.get(e)??(t=>n=>e(t,n))}function Co(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return _r.set(t,e),t}function ko(e){return _r.get(e)??(t=>n=>r=>e(t,n,r))}function mu(e){let t=0,n="[";for(const r of e){if(t===0)n+=Se(r);else if(t===100){n+="; ...";break}else n+="; "+Se(r);t++}return n+"]"}function Se(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return mu(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Se(s,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function gu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Se(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Se(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class R{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return gu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ut(n));return t.splice(0,0,Ke(this.tag)),Fn(t)}Equals(t){return this===t?!0:mr(this,t)&&this.tag===t.tag?Ks(this.fields,t.fields):!1}CompareTo(t){return this===t?0:mr(this,t)?this.tag===t.tag?Ys(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function wu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function _u(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Se(n)).join(`
3
+ `)+" }"}function yu(e){const t=Object.values(e).map(n=>ut(n));return Fn(t)}function bu(e,t){if(e===t)return!0;if(mr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!he(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function vu(e,t){if(e===t)return 0;if(mr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=We(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class re{toJSON(){return wu(this)}toString(){return _u(this)}GetHashCode(){return yu(this)}Equals(t){return bu(this,t)}CompareTo(t){return vu(this,t)}}class Me{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class xu{constructor(t){this.message=t}}function Cu(e){return e instanceof xu||e instanceof Error}function ku(e){return e instanceof Promise}function yr(e){return Cu(e)||ku(e)?e:new Error(String(e))}const an=Symbol("numeric");function Xs(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[an])}function Su(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function So(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[an]().multiply(t)}function br(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[an]().toFixed(t)}function vr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[an]().toPrecision(t)}function xr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[an]().toExponential(t)}function Cr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[an]().toHex()}class ft{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return _e(this)}GetHashCode(){return Qs(this)}Equals(t){return Ao(this,t)}}function dt(e){return e.generics!=null?e.generics:[]}function Qs(e){const t=gr(e.fullname),n=dt(e).map(Qs);return Fn([t,...n])}function Ao(e,t){return e.fullname===""?t.fullname===""&&xo(Sr(e),Sr(t),([n,r],[o,s])=>n===o&&Ao(r,s)):e.fullname===t.fullname&&xo(dt(e),dt(t),Ao)}function Vt(e,t,n,r){return new ft(e,t,n,void 0,r)}function Be(e){return new ft("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ei(e){return new ft("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Au=new ft("System.Object"),j=new ft("System.String");function Eo(e){if(Array.isArray(e))return e[0];if(e instanceof ft){const t=kr(e);if(t!=null)return Eo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function _e(e){const t=kr(e);return t!=null?_e(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>_e(n)).join(",")+"]"}function Eu(e){return kr(e)!=null}function kr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Iu(e){return e.generics!=null&&e.generics.length>0}function ti(e){return e.enumCases!=null&&e.enumCases.length>0}function Tu(e){return e.generics==null?e:new ft(e.fullname,e.generics.map(()=>Au))}function $u(e){var t;return(t=e.generics)==null?void 0:t[0]}function ln(e){if(ti(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Nu(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function cn(e,t){const n=parseInt(t,10);return Nu(e,isNaN(n)?t:n)[1]}function Mu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Sr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Du(e){if(ni(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Pu(e){return e instanceof ft?e.cases!=null:e instanceof R}function Ou(e){return e instanceof ft?e.fields!=null:e instanceof re}function ni(e){return e.fullname.startsWith("System.Tuple")}function Ru(e){return e.fields==null?[]:e.fields}function Fu(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Lu(e,t){const n=Sr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function Bu(e,t){return e}const Vu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Hu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ju=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ve(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function ri(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function zu(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Io(e,t,n){let r=0,o=0,s="";const i=n?Ln(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ve(t,r,"d"),r+=o,o){case 1:s+=ai(i);break;case 2:s+=te(ai(i),2);break;case 3:s+=Vu[ui(i)];break;case 4:s+=Uu[ui(i)];break}break;case"f":if(o=Ve(t,r,"f"),r+=o,o<=3){const _=10**(3-o);s+=te(Math.floor(Ir(i)/_),o)}else o<=7&&(s+=(""+Ir(i)).padEnd(o,"0"));break;case"F":if(o=Ve(t,r,"F"),r+=o,o<=3){const _=10**(3-o),y=Math.floor(Ir(i)/_);y!=0&&(s+=te(y,o))}else if(o<=7){const _=Ir(i);_!=0&&(s+=te(_,3))}break;case"g":o=Ve(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ve(t,r,"h"),r+=o,o){case 1:s+=Er(i)%12;break;case 2:s+=te(Er(i)%12,2);break}break;case"H":switch(o=Ve(t,r,"H"),r+=o,o){case 1:s+=Er(i);break;case 2:s+=te(Er(i),2);break}break;case"K":switch(o=Ve(t,r,"K"),r+=o,o){case 1:switch(oi(i)){case 1:s+="Z";break;case 2:s+=un(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ve(t,r,"m"),r+=o,o){case 1:s+=li(i);break;case 2:s+=te(li(i),2);break}break;case"M":switch(o=Ve(t,r,"M"),r+=o,o){case 1:s+=Tr(i);break;case 2:s+=te(Tr(i),2);break;case 3:s+=Hu[Tr(i)-1];break;case 4:s+=ju[Tr(i)-1];break}break;case"s":switch(o=Ve(t,r,"s"),r+=o,o){case 1:s+=ci(i);break;case 2:s+=te(ci(i),2);break}break;case"t":switch(o=Ve(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ve(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=te(i.getFullYear()%100,2);break;case 3:s+=te(i.getFullYear(),3);break;case 4:s+=te(i.getFullYear(),4);break;case 5:s+=te(i.getFullYear(),5);break}break;case"z":o=Ve(t,r,"z"),r+=o;let l="";switch(oi(i)){case 1:l="+00:00";break;case 2:l=un(i.getTimezoneOffset()*-6e4);break;case 0:l=un(Qu(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${f}`;break;case 2:s+=`${c}${te(f,2)}`;break;default:s+=`${c}${te(f,2)}:${te(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[m,d]=zu(t,r);s+=m,r+=d;break;case"%":const g=ri(t,r);if(g>=0&&g!==37)r+=2,s+=Io(i,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const b=ri(t,r);if(b>=0)r+=2,s+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function oi(e){return e.kind||0}function un(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+te(n,2)+":"+te(r,2)}function Ar(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Gu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return te(e.getFullYear(),4)+"-"+te(e.getMonth()+1,2)+"-"+te(e.getDate(),2)+"T"+te(e.getHours(),2)+":"+te(e.getMinutes(),2)+":"+te(e.getSeconds(),2)+"."+te(e.getMilliseconds(),3)+(n?un(e.getTimezoneOffset()*-6e4):"")}}function Wu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+un(t)}function qu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+un(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Ar(n,"first");case"T":case"t":return Ar(n,"second");case"O":case"o":return Wu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Io(n,t,!0)}function Zu(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Ar(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Ar(e,"second"):e.toLocaleTimeString();case"O":case"o":return Gu(e,n);default:throw new Error("Unrecognized Date print format")}else return Io(e,t,n)}function si(e,t,n){return e.offset!=null?qu(e,t):Zu(e,t)}function Ln(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Ku(){return Ln(-621355968e5,1)}function ii(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Ju(e,t=!1){const[n,r]=ii(e),o=r!=null?t&&r==="Z"?1:2:0;return Ln(n.getTime(),o)}function Yu(e,t){try{return t.contents=Ju(e),!0}catch{return!1}}function Xu(e){return e.kind===1?e:Ln(e.getTime(),1)}function Qu(e){return e.kind===2?e:Ln(e.getTime(),2)}function ai(e){return e.kind===1?e.getUTCDate():e.getDate()}function Er(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ir(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function li(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Tr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ci(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ui(e){return e.kind===1?e.getUTCDay():e.getDay()}function fi(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function To(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ef(e,t,n=0){return e.lastIndex=n,e.exec(t)}function di(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function tf(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=fi(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),l=di(e,a),c=di.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Bn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Vn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,nf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function hi(e,t){return Su(e,t)<0}function ht(e){return{input:e,cont:sf(e)}}function pi(e,t){let n=0,r=0,o="";Vn.lastIndex=0;let s=Vn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,f]=s;r=Vn.lastIndex,o+=mi(t[n++],a,l,c,f),Vn.lastIndex=r-1,s=Vn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function $o(e,t){return typeof t=="string"?e(t):t.cont(e)}function rf(e){return $o(t=>console.log(t),e)}function pt(e){return $o(t=>t,e)}function of(e){return $o(t=>{throw new Error(t)},e)}function mi(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Xs(e))switch(o.toLowerCase()!=="x"&&(hi(e,0)?(e=So(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=br(e,r);break;case"g":case"G":e=r!=null?vr(e,r):vr(e);break;case"e":case"E":e=r!=null?xr(e,r):xr(e);break;case"x":e=Cr(e);break;case"X":e=Cr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=si(e):e=Se(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Un(e,n-s.length,l,a),e=s+e):e=Un(s+e,n,l,a)}return e}function gi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,f,u,m,d]=l[0];let g=u;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=mi(c,f,g,m,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):gi(e,a,l,i,o)}}function sf(e){return t=>{Bn.lastIndex=0;const n=[],r=[];let o=0,s=Bn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Bn.lastIndex,Bn.lastIndex-=1,s=Bn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),gi(t,n,r))}}function wi(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(nf,(r,o,s,i,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(Xs(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=br(c,a);break;case"g":case"G":c=a!=null?vr(c,a):vr(c);break;case"e":case"E":c=a!=null?xr(c,a):xr(c);break;case"p":case"P":a=a??2,c=br(So(c,100),a)+" %";break;case"d":case"D":c=a!=null?No(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?No(Cr(c),a,"0"):Cr(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,m,d)=>{hi(c,0)&&(c=So(c,-1),f="-"),d=d==null?"":d.substring(1),c=br(c,Math.max(d.length,0));let[g,b]=c.split(".");b||(b="");const _=m.replace(/,/g,"").replace(/^#+/,"").length;g=No(g,_,"0");const y=d.replace(/#+$/,"").length;if(y>b.length?b=lf(b,y,"0"):y<b.length&&(b=b.substring(0,y)+b.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const x=g.length%3,S=Math.floor(g.length/3);let L=x>0?g.substr(0,x)+(S>0?",":""):"";for(let q=0;q<S;q++)L+=g.substr(x+q*3,3)+(q<S-1?",":"");g=L}return b.length>0?g+"."+b:g}),c=f+c}}else c instanceof Date?c=si(c,l||i):c=Se(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Un(String(c),Math.abs(s)," ",s<0)),c})}function af(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function _i(e){return typeof e!="string"||e.length===0}function yi(e){return typeof e!="string"||/^\s*$/.test(e)}function z(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Un(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function No(e,t,n){return Un(e,t,n)}function lf(e,t,n){return Un(e,t,n,!0)}function bi(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(To),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),l=!1}else{const u=s?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),l=!1):i.push(u)),c=a.lastIndex}}while(l);return i}function cf(e,...t){if(t.length===0)return e.trim();const n="["+To(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function uf(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+To(t.join(""))+"]+$"),"")}function vi(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Ut{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(t){return t==null?!1:he(this.value,t instanceof Ut?t.value:t)}CompareTo(t){return t==null?1:We(this.value,t instanceof Ut?t.value:t)}}function k(e){if(e==null)throw new Error("Option has no value");return e instanceof Ut?e.value:e}function Mo(e){return e instanceof Ut?e.value:e}function be(e){return e==null||e instanceof Ut?new Ut(e):e}function xi(e){return e==null?[]:[k(e)]}function Je(e,t){return e!=null?k(e):t}function ff(e,t){return e!=null?k(e):t()}function mt(e,t){return t!=null?be(e(k(t))):void 0}const Ci="Collection was empty.";function ki(e,t){return new Array(t)}function Si(e,t){return e>t?e:t}function Do(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Hn(e,t,n){const r=t.length|0,o=ki(n,r);for(let s=0;s<=r-1;s++)gt(o,s,e(ue(s,t)));return o}function df(e,t){const n=ki(t,1);return gt(n,0,e),n}function hf(e){return e.slice().reverse()}function pf(e,t){return t.find(e)}function mf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ue(o,t));if(s!=null){const i=k(s);r.push(i)}}return he(n,X())?r:Hn(o=>o,r,n)}function $r(e,t,n){const r=e;return n.reduce(r,t)}function gf(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function Ai(e,t,n){return t==null}function ue(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function gt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Ei(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Ae extends re{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+z("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=k(l),u=k(c);if(he(i.head,a.head)){o=f,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,l=s,c=l.tail;if(c!=null){const f=k(c);if(i>18)return a|0;r=i+1,o=(a<<1)+ut(l.head)+631*i,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=k(l),u=k(c),m=We(i.head,a.head)|0;if(m===0){o=f,s=u;continue e}else return m|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return _f(this)}[Symbol.iterator](){return Rn(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return se(this)}}class wf{constructor(t){this.xs=t,this.it=this.xs,this.current=X()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=k(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=X()}Dispose(){}}function _f(e){return new wf(e)}function fe(){return new Ae(X(),void 0)}function jn(e,t){return new Ae(e,t)}function Dt(e){return e.tail==null}function Ii(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=k(i);continue e}else return o|0}})(0,e)|0}function Ht(e){if(e.tail!=null)return e.head;throw new Error(Ci+"\\nParameter name: list")}function ve(e){const t=e.tail;if(t!=null)return k(t);throw new Error(Ci+"\\nParameter name: list")}function ce(){return fe()}function Ue(e,t){return jn(e,t)}function U(e){return jn(e,fe())}function O(e){return Dt(e)}function fn(e){return Ii(e)}function $(e){return Ht(e)}function w(e){return ve(e)}function jt(e){const t=Ii(e)|0,n=Do(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!Dt(a)){gt(n,i,Ht(a)),o=i+1,s=ve(a);continue e}break}})(0,e),n}function wt(e,t,n){let r=t,o=n;for(;!Dt(o);)r=e(r,$(o)),o=ve(o);return r}function Nr(e){return wt((t,n)=>jn(n,t),fe(),e)}function yf(e,t,n){return Ei(e,jt(t),n)}function bf(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(Dt(c))return l;o=a+1,s=e(a,l,Ht(c)),i=ve(c);continue e}})(0,t,n)}function Mr(e,t){wt((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=jn(ue(r,e),n);return n}function v(e){return ae(e,fe())}function vf(e){let t,n;if(nt(e))return v(e);if(e instanceof Ae)return e;{const r=fe();let o=r;const s=se(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Ae(l,void 0),t.tail=n,n)}}finally{Z(s)}const i=o,a=fe();return i.tail=a,ve(r)}}function Ee(e,t){return wt((n,r)=>jn(r,n),t,Nr(e))}function xf(e,t){let n,r;const o=fe();let s=o,i=t;for(;!Dt(i);){let c=e(Ht(i));for(;!Dt(c);)s=(n=s,r=new Ae(Ht(c),void 0),n.tail=r,r),c=ve(c);i=ve(i)}const a=s,l=fe();return a.tail=l,ve(o)}function Cf(e,t){const n=fe(),r=bf((s,i,a)=>{const l=new Ae(e(s,a),void 0);return i.tail=l,l},n,t),o=fe();return r.tail=o,ve(n)}function zn(e,t){const n=fe(),r=wt((s,i)=>{const a=new Ae(e(i),void 0);return s.tail=a,a},n,t),o=fe();return r.tail=o,ve(n)}function kf(e,t){return(r=>{e:for(;;){const o=r;if(Dt(o))return;{const s=e(Ht(o));if(s==null){r=ve(o);continue e}else return s}}})(t)}function Sf(e,t){return kf(n=>e(n)?be(n):void 0,t)}function Af(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(Dt(i))return;if(s===e)return be(Ht(i));r=s+1,o=ve(i);continue e}})(0,t)}function Ti(e,t){const n=fe(),r=wt((s,i)=>{if(e(i)){const a=new Ae(i,void 0);return s.tail=a,a}else return s},n,t),o=fe();return r.tail=o,ve(n)}function Ef(e,t){const n=fe(),r=fe(),o=n,s=wt((l,c)=>{let f,u;const m=l[0],d=l[1];return e(c)?[(f=new Ae(c,void 0),m.tail=f,f),d]:[m,(u=new Ae(c,void 0),d.tail=u,u)]},[o,r],t),i=fe();s[0].tail=i;const a=fe();return s[1].tail=a,[ve(o),ve(r)]}function $i(e,t){const n=fe(),r=wt((s,i)=>{const a=e(i);if(a==null)return s;{const l=new Ae(k(a),void 0);return s.tail=l,l}},n,t),o=fe();return r.tail=o,ve(n)}function If(e,t){const n=jt(t);return n.sort(e),v(n)}function Tf(e,t,n){return If((r,o)=>n.Compare(e(r),e(o)),t)}function $f(e,t){return v(Hn(v,gf(e,jt(t))))}function Nf(e){return new p(0,[e])}function Ni(e){return new p(1,[e])}class p extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function _t(e,t){return t.tag===0?Nf(e(t.fields[0])):Ni(t.fields[0])}function Mf(e,t){return t.tag===0?e(t.fields[0]):Ni(t.fields[0])}class Df extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Mi(e){return new Df(e)}function Po(e){return e.fields[0]}class Pf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Of extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Rf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class Ff extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class Lf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let Bf=class extends re{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Vf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Uf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function yt(e){return e.fields[0]}function pe(e){return new Uf(e)}function Di(e){return yt(e)}class Hf extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function rt(e){return e.fields[0]}function bt(e){return new Hf(e)}function Pi(e){return rt(e)}function jf(e){throw new Error(e)}const zf="Enumeration already finished.",Gf="Enumeration has not started. Call MoveNext.",Oi="The input sequence has an insufficient number of elements.",Wf="Reset is not supported on this enumerator.";function qf(){throw new Error(Wf)}function Oo(){throw new Error(Gf)}function Ro(){throw new Error(zf)}class Zf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=se(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Se(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Rn(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Kf(e){return new Zf(e)}class Jf{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){qf()}Dispose(){this.dispose()}}function Dr(e,t,n){return new Jf(e,t,n)}function Yf(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=k(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=k(t);try{Z(a)}finally{t=void 0}}};return Dr(()=>(r?o&&Ro():Oo(),s!=null?k(s):Ro()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=k(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=be(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Z(u)}finally{n=void 0}}else{const u=k(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),se(a)):(i(),l=!1)}else t=se(e)}return k(l)}},()=>{o||i()})}function Xf(e,t){return Dr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Ri(e,t,n){let r=!1,o,s=be(e());const i=()=>{if(s!=null){const l=k(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Dr(()=>(r||Oo(),o!=null?k(o):Ro()),()=>{if(r||(r=!0),s!=null){const l=k(s);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function Qf(e,t){let n,r=t;return Dr(()=>{if(n!=null){const o=k(n)[0];return k(n)[1],o}else return Oo()},()=>(n=e(r),n!=null?(k(n)[0],r=k(n)[1],!0):!1),()=>{})}function ed(e,t){t==null&&jf(e)}function dn(e){return Kf(e)}function vt(e){return ed("source",e),se(e)}function D(e){return dn(()=>se(e()))}function Fo(e){return dn(()=>Yf(e))}function td(e,t){return dn(()=>Qf(e,t))}function Pr(){return D(()=>new Array(0))}function P(e){return D(()=>df(e))}function bw(e){return e}function Lo(e){return e instanceof Ae?jt(e):Array.from(e)}function De(e){return nt(e)?v(e):e instanceof Ae?e:vf(e)}function Fi(e,t,n){return dn(()=>Ri(e,t,n))}function Li(e,t,n){return dn(()=>{let r=-1;return Ri(e,o=>(r=r+1|0,t(r,o)),n)})}function G(e,t){return Fo([e,t])}function hn(e,t){return Fi(()=>vt(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Z(n)})}function nd(e,t,n){const r=vt(t);try{const o=vt(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{Z(o)}}finally{Z(r)}}function pn(e,t,n){const r=vt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function Bo(e,t,n){const r=vt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function Gn(e,t){Bo((n,r)=>{e(r)},void 0,t)}function rd(e,t){Bo((n,r)=>(e(n,r),n+1|0),0,t)}function de(e,t){return Fi(()=>vt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?be(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function Bi(e,t){return Li(()=>vt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?be(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function od(e){return D(()=>hf(Lo(e)))}function sd(e,t){return dn(()=>{const n=vt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Oi+"\\nParameter name: source");return Xf(()=>{},n)}catch(r){throw Z(n),r}})}function id(e,t){return Li(()=>vt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return be(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Oi+"\\nParameter name: source")}else return},n=>{Z(n)})}function ad(e,t){return D(()=>Fo(de(e,t)))}const zt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Vo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function ld(e,t){switch(t){case zt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case zt.SnakeCase:return Vo(e,"_");case zt.SnakeCaseAllCaps:return Vo(e,"_").toUpperCase();case zt.KebabCase:return Vo(e,"-");case zt.None:default:return e}}function Gt(e,t=zt.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,l){i=ld(i,a),n[i]=l}for(let i of e){let a=zt.None;if(i==null&&o(i),i instanceof R){const l=i.cases()[i.tag];i=i.fields.length===0?l:[l].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const l=i[1];s(i[0],a,l);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function Vi(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Wn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class cd{constructor(t,n){const r=new Me(X());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=se(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();Uo(r.contents,s[0],s[1])}}finally{Z(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return se(this)}GetEnumerator(){return se(Fo(this.hashMap.values()))}[Symbol.iterator](){return Rn(se(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Uo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Ui(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Or(this,t[0]);let o;switch(r!=null&&he(k(r)[1],t[1])?(o=0,k(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){rd((o,s)=>{gt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Hi(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Or(n,t[0]);return r!=null?(he(k(r)[1],t[1])&&Ho(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Uo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Gi(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return ji(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){zi(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Lo(D(()=>de(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Ho(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Or(this,t);if(o!=null){const s=k(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Lo(D(()=>de(n=>n[1],t)))}get size(){return Hi(this)|0}clear(){Ui(this)}delete(t){return Ho(this,t)}entries(){return de(n=>[n[0],n[1]],this)}get(t){return ji(this,t)}has(t){return Gi(this,t)}keys(){return de(n=>n[0],this)}set(t,n){const r=this;return zi(r,t,n),r}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;Gn(o=>{t(o[1],o[0],r)},r)}}function qn(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=X();return r=[Vi(e.hashMap,n,new Me(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Or(e,t){const n=qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Wn(e.hashMap,n[1])[n[2]];default:return}}function Ui(e){e.hashMap.clear()}function Hi(e){let t=0,n=se(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Z(n)}return t|0}function ji(e,t){const n=Or(e,t);if(n!=null)return k(n)[1];throw new Error("The item was not found in collection")}function zi(e,t,n){const r=qn(e,t);r[0]?r[2]>-1?Wn(e.hashMap,r[1])[r[2]]=[t,n]:Wn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Uo(e,t,n){const r=qn(e,t);if(r[0]){if(r[2]>-1)throw new Error(wi("An item with the same key has already been added. Key: {0}",t));Wn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Gi(e,t){const n=qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ho(e,t){const n=qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Wn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function ud(e){return new Wi(0,[e])}function fd(e){return new Wi(1,[e])}class Wi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function dd(e){return ud(e)}function hd(e){return fd(e)}const pd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,qi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,md=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function gd(e){function t(r){return r.replace(qi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(pd.test(n))return cf(n,"{","}","(",")");if(qi.test(n))return t(n);if(md.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function wd(e,t){try{return t.contents=gd(e),!0}catch{return!1}}class Zi extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function ot(e){return e.fields[0]}var jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(jo||(jo={}));function _d(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Ki(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function yd(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function bd(e,t){if(t&jo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function vd(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||bd(s,t),!yd(n).test(i))return _d(o,n)}return null}function xd(e,t,n,r,o){const s=vd(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Ki(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,f]=Ki(n,r);if(i>=c&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function mn(e,t,n,r,o){try{return o.contents=xd(e,t,n,r),!0}catch{return!1}}function Cd(e,t){const n=ef(fi(e),t);if(n!=null)return w(De(D(()=>de(r=>r||"",n))))}function kd(e){let t;const n=Cd(".*?@(.*)",e);switch(n!=null?O(n)?t=1:O(w(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function gn(e,t){return _i(t)?new p(1,[pt(ht("%s cannot be null or empty"))(e)]):new p(0,[t])}function Sd(e){const t=kd(e);if(t!=null){const n=t;return new p(0,[n])}else return new p(1,["Email is not in the correct format"])}function Ad(e){const t=gn("Name",e);return t.tag===1?new p(1,[t.fields[0]]):new p(0,[Mi(t.fields[0])])}function Rr(e){return Po(e)}function Ed(e){const t=gn("Website",e);return t.tag===1?new p(1,[t.fields[0]]):new p(0,[new Pf(t.fields[0])])}function Ji(e){return e.fields[0]}function Id(e){const t=gn("FirstName",e);return t.tag===1?new p(1,[t.fields[0]]):new p(0,[new Of(t.fields[0])])}function Yi(e){return e.fields[0]}function Td(e){const t=gn("LastName",e);return t.tag===1?new p(1,[t.fields[0]]):new p(0,[new Rf(t.fields[0])])}function Xi(e){return e.fields[0]}function $d(e){let t;const n=gn("Email",e);return t=n.tag===1?new p(1,[n.fields[0]]):Sd(n.fields[0]),t.tag===1?new p(1,[t.fields[0]]):new p(0,[new Ff(t.fields[0])])}function Nd(e){const t=gn("MobilePhone",e);return t.tag===1?new p(1,[t.fields[0]]):new p(0,[new Lf(t.fields[0])])}function Qi(e){return e.fields[0]}class Md extends re{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function ea(){return Vt("Dto.Primitives.ContactDetails",[],Md,()=>[["FirstName",j],["LastName",j],["Email",j],["MobilePhone",j]])}function Dd(e){const t=Id(e.FirstName);if(t.tag===1)return new p(1,[t.fields[0]]);{const n=Td(e.LastName);if(n.tag===1)return new p(1,[n.fields[0]]);{const r=$d(e.Email);if(r.tag===1)return new p(1,[r.fields[0]]);{const o=Nd(e.MobilePhone);return o.tag===1?new p(1,[o.fields[0]]):new p(0,[new Bf(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Pd(e){const t=e;if(t!=null)return new Vf(t)}function Od(e){if(e!=null)return e.fields[0]}function Q(e){return yt(e)}function Pe(e){return rt(e)}class Rd extends re{constructor(t,n,r,o,s,i,a,l,c){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=l,this.CountryCode=c}}function Fd(){return Vt("Dto.Primitives.LegalEntity",[],Rd,()=>[["BusinessName",j],["BusinessNumber",j],["Address1",j],["Address2",Be(j)],["City",j],["Postcode",j],["State",Be(j)],["Phone",j],["CountryCode",Be(j)]])}let Ld=class extends re{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function Bd(){return Vt("Dto.AdminApi.Partner",[],Ld,()=>[["StreamId",j],["Name",j],["Website",j],["ContactDetails",ea()],["Notes",Be(j)]])}class Vd extends re{constructor(t,n,r,o,s,i,a,l,c){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=l,this.ChannelId=c}}function Ud(){return Vt("Dto.AdminApi.Account",[],Vd,()=>[["StreamId",j],["PartnerId",j],["Name",j],["Website",j],["ContactDetails",ea()],["Notes",Be(j)],["LegalEntity",Be(Fd())],["ExternalId",Be(j)],["ChannelId",Be(j)]])}class Hd extends re{constructor(t,n,r,o,s,i,a,l,c){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=l,this.ChannelId=c}}function jd(){return Vt("Dto.AdminApi.AccountLookupItem",[],Hd,()=>[["AccountId",j],["Name",j],["Contact",j],["ContactMobilePhone",j],["Website",j],["BusinessName",Be(j)],["BusinessNumber",Be(j)],["ExternalId",Be(j)],["ChannelId",Be(j)]])}class ta extends re{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function zd(){return Vt("Dto.AdminApi.AccountLookup",[],ta,()=>[["Accounts",ei(jd())],["Token",Be(j)]])}var Zn,H,na,Wt,ra,oa,zo,Go,Wo,qo,sa,Kn={},ia=[],Gd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Fr=Array.isArray;function xt(e,t){for(var n in t)e[n]=t[n];return e}function aa(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Zn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Jn(e,i,r,o,null)}function Jn(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++na,__i:-1,__u:0};return o==null&&H.vnode!=null&&H.vnode(s),s}function la(){return{current:null}}function xe(e){return e.children}function Ye(e,t){this.props=e,this.context=t}function qt(e,t){if(t==null)return e.__?qt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qt(e):null}function ca(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ca(e)}}function Zo(e){(!e.__d&&(e.__d=!0)&&Wt.push(e)&&!Lr.__r++||ra!==H.debounceRendering)&&((ra=H.debounceRendering)||oa)(Lr)}function Lr(){var e,t,n,r,o,s,i,a;for(Wt.sort(zo);e=Wt.shift();)e.__d&&(t=Wt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=xt({},o)).__v=o.__v+1,H.vnode&&H.vnode(r),Ko(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??qt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,pa(i,r,a),r.__e!=s&&ca(r)),Wt.length>t&&Wt.sort(zo));Lr.__r=0}function ua(e,t,n,r,o,s,i,a,l,c,f){var u,m,d,g,b,_=r&&r.__k||ia,y=t.length;for(n.__d=l,Wd(n,t,_),l=n.__d,u=0;u<y;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(m=d.__i===-1?Kn:_[d.__i]||Kn,d.__i=u,Ko(e,d,m,o,s,i,a,l,c,f),g=d.__e,d.ref&&m.ref!=d.ref&&(m.ref&&Jo(m.ref,null,d),f.push(d.ref,d.__c||g,d)),b==null&&g!=null&&(b=g),65536&d.__u||m.__k===d.__k?(l&&!l.isConnected&&(l=qt(m)),l=fa(d,l,e)):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:g&&(l=g.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=b}function Wd(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Jn(null,o,null,null,null):Fr(o)?Jn(xe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Jn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=qd(o,n,i,f),o.__i=a,s=null,a!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?f>l-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=qt(s)),Yo(s,s,!1),n[i]=null,f--);if(f)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=qt(s)),Yo(s,s))}function fa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=fa(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(Fr(e)?e.some(function(n){Ct(n,t)}):t.push(e)),t}function qd(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&s===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&s===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&s===l.type)return a;a++}}return-1}function da(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Gd.test(t)?n:n+"px"}function Br(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||da(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||da(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Go,e.addEventListener(t,s?qo:Wo,s)):e.removeEventListener(t,s?qo:Wo,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function ha(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Go++;else if(t.t<n.u)return;return n(H.event?H.event(t):t)}}}function Ko(e,t,n,r,o,s,i,a,l,c){var f,u,m,d,g,b,_,y,x,S,L,q,ie,ge,Le,oe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=H.__b)&&f(t);e:if(typeof oe=="function")try{if(y=t.props,x=(f=oe.contextType)&&r[f.__c],S=f?x?x.props.value:f.__:r,n.__c?_=(u=t.__c=n.__c).__=u.__E:("prototype"in oe&&oe.prototype.render?t.__c=u=new oe(y,S):(t.__c=u=new Ye(y,S),u.constructor=oe,u.render=Kd),x&&x.sub(u),u.props=y,u.state||(u.state={}),u.context=S,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),oe.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=xt({},u.__s)),xt(u.__s,oe.getDerivedStateFromProps(y,u.__s))),d=u.props,g=u.state,u.__v=t,m)oe.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(oe.getDerivedStateFromProps==null&&y!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,S),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ke){ke&&(ke.__=t)}),L=0;L<u._sb.length;L++)u.__h.push(u._sb[L]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,g,b)})}if(u.context=S,u.props=y,u.__P=e,u.__e=!1,q=H.__r,ie=0,"prototype"in oe&&oe.prototype.render){for(u.state=u.__s,u.__d=!1,q&&q(t),f=u.render(u.props,u.state,u.context),ge=0;ge<u._sb.length;ge++)u.__h.push(u._sb[ge]);u._sb=[]}else do u.__d=!1,q&&q(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ie<25);u.state=u.__s,u.getChildContext!=null&&(r=xt(xt({},r),u.getChildContext())),m||u.getSnapshotBeforeUpdate==null||(b=u.getSnapshotBeforeUpdate(d,g)),ua(e,Fr(Le=f!=null&&f.type===xe&&f.key==null?f.props.children:f)?Le:[Le],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),_&&(u.__E=u.__=null)}catch(ke){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),H.__e(ke,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Zd(n.__e,t,n,r,o,s,i,l,c);(f=H.diffed)&&f(t)}function pa(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Jo(n[r],n[++r],n[++r]);H.__c&&H.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){H.__e(s,o.__v)}})}function Zd(e,t,n,r,o,s,i,a,l){var c,f,u,m,d,g,b,_=n.props,y=t.props,x=t.type;if(x==="svg"?o="http://www.w3.org/2000/svg":x==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((d=s[c])&&"setAttribute"in d==!!x&&(x?d.localName===x:d.nodeType===3)){e=d,s[c]=null;break}}if(e==null){if(x===null)return document.createTextNode(y);e=document.createElementNS(o,x,y.is&&y),s=null,a=!1}if(x===null)_===y||a&&e.data===y||(e.data=y);else{if(s=s&&Zn.call(e.childNodes),_=n.props||Kn,!a&&s!=null)for(_={},c=0;c<e.attributes.length;c++)_[(d=e.attributes[c]).name]=d.value;for(c in _)if(d=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;Br(e,c,null,d,o)}}for(c in y)d=y[c],c=="children"?m=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?g=d:c=="checked"?b=d:c==="key"||a&&typeof d!="function"||_[c]===d||Br(e,c,d,_[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),ua(e,Fr(m)?m:[m],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&qt(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&aa(s[c]);a||(c="value",g!==void 0&&(g!==e[c]||x==="progress"&&!g||x==="option"&&g!==_[c])&&Br(e,c,g,_[c],o),c="checked",b!==void 0&&b!==e[c]&&Br(e,c,b,_[c],o))}return e}function Jo(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){H.__e(r,n)}}function Yo(e,t,n){var r,o;if(H.unmount&&H.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Jo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){H.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Yo(r[o],t,n||typeof e.type!="function");n||e.__e==null||aa(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Kd(e,t,n){return this.constructor(e,n)}function Pt(e,t,n){var r,o,s,i;H.__&&H.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Ko(t,e=(!r&&n||t).__k=h(xe,null,[e]),o||Kn,Kn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Zn.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),pa(s,e,i)}function Xo(e,t){Pt(e,t,Xo)}function Qo(e,t,n){var r,o,s,i,a=xt({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Zn.call(arguments,2):n),Jn(e.type,a,r||e.key,o||e.ref,null)}function Yn(e,t){var n={__c:t="__cC"+sa++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,Zo(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Zn=ia.slice,H={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},na=0,Ye.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=xt({},this.state),typeof e=="function"&&(e=e(xt({},n),this.props)),e&&xt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Zo(this))},Ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Zo(this))},Ye.prototype.render=xe,Wt=[],oa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zo=function(e,t){return e.__v.__b-t.__v.__b},Lr.__r=0,Go=0,Wo=ha(!1),qo=ha(!0),sa=0;var kt,K,es,ma,wn=0,ga=[],Vr=[],le=H,wa=le.__b,_a=le.__r,ya=le.diffed,ba=le.__c,va=le.unmount,xa=le.__;function Zt(e,t){le.__h&&le.__h(K,e,wn||t),wn=0;var n=K.__H||(K.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Vr}),n.__[e]}function qe(e){return wn=1,Ur(ka,e)}function Ur(e,t,n){var r=Zt(kt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ka(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=K,!K.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!s||s.call(this,a,l,c);var u=!1;return f.forEach(function(m){if(m.__N){var d=m.__[0];m.__=m.__N,m.__N=void 0,d!==m.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};K.u=!0;var s=K.shouldComponentUpdate,i=K.componentWillUpdate;K.componentWillUpdate=function(a,l,c){if(this.__e){var f=s;s=void 0,o(a,l,c),s=f}i&&i.call(this,a,l,c)},K.shouldComponentUpdate=o}return r.__N||r.__}function ye(e,t){var n=Zt(kt++,3);!le.__s&&ss(n.__H,t)&&(n.__=e,n.i=t,K.__H.__h.push(n))}function Ot(e,t){var n=Zt(kt++,4);!le.__s&&ss(n.__H,t)&&(n.__=e,n.i=t,K.__h.push(n))}function Ie(e){return wn=5,Kt(function(){return{current:e}},[])}function ts(e,t,n){wn=6,Ot(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Kt(e,t){var n=Zt(kt++,7);return ss(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Jt(e,t){return wn=8,Kt(function(){return e},t)}function Yt(e){var t=K.context[e.__c],n=Zt(kt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(K)),t.props.value):e.__}function ns(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function Jd(e){var t=Zt(kt++,10),n=qe();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function rs(){var e=Zt(kt++,11);if(!e.__){for(var t=K.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Yd(){for(var e;e=ga.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Hr),e.__H.__h.forEach(os),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){K=null,wa&&wa(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xa&&xa(e,t)},le.__r=function(e){_a&&_a(e),kt=0;var t=(K=e.__c).__H;t&&(es===K?(t.__h=[],K.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Vr,n.__N=n.i=void 0})):(t.__h.forEach(Hr),t.__h.forEach(os),t.__h=[],kt=0)),es=K},le.diffed=function(e){ya&&ya(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ga.push(t)!==1&&ma===le.requestAnimationFrame||((ma=le.requestAnimationFrame)||Xd)(Yd)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Vr&&(n.__=n.__V),n.i=void 0,n.__V=Vr})),es=K=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Hr),n.__h=n.__h.filter(function(r){return!r.__||os(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(r,n.__v)}}),ba&&ba(e,t)},le.unmount=function(e){va&&va(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Hr(r)}catch(o){t=o}}),n.__H=void 0,t&&le.__e(t,n.__v))};var Ca=typeof requestAnimationFrame=="function";function Xd(e){var t,n=function(){clearTimeout(r),Ca&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ca&&(t=requestAnimationFrame(n))}function Hr(e){var t=K,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),K=t}function os(e){var t=K;e.__c=e.__(),K=t}function ss(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ka(e,t){return typeof t=="function"?t(e):t}function Sa(e,t){for(var n in t)e[n]=t[n];return e}function is(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function jr(e,t){this.props=e,this.context=t}function Aa(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:is(this.props,o)}function r(o){return this.shouldComponentUpdate=n,h(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jr.prototype=new Ye).isPureReactComponent=!0,jr.prototype.shouldComponentUpdate=function(e,t){return is(this.props,e)||is(this.state,t)};var Ea=H.__b;H.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ea&&Ea(e)};var Qd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function zr(e){function t(n){var r=Sa({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Qd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ia=function(e,t){return e==null?null:Ct(Ct(e).map(t))},Ta={map:Ia,forEach:Ia,count:function(e){return e?Ct(e).length:0},only:function(e){var t=Ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ct},eh=H.__e;H.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}eh(e,t,n,r)};var $a=H.unmount;function Na(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Sa({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Na(r,t,n)})),e}function Ma(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ma(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Xn(){this.__u=0,this.t=null,this.__b=null}function Da(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Pa(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return h(n,s)}return o.displayName="Lazy",o.__f=!0,o}function _n(){this.u=null,this.o=null}H.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$a&&$a(e)},(Xn.prototype=new Ye).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Da(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ma(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Xn.prototype.componentWillUnmount=function(){this.t=[]},Xn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Na(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h(xe,null,e.fallback);return o&&(o.__u&=-33),[h(xe,null,t.__a?null:e.children),o]};var Oa=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function th(e){return this.getChildContext=function(){return e.context},e.children}function nh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Pt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Pt(h(th,{context:t.context},e.__v),t.l)}function Ra(e,t){var n=h(nh,{__v:e,i:t});return n.containerInfo=t,n}(_n.prototype=new Ye).__a=function(e){var t=this,n=Da(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Oa(t,e,r)):o()};n?n(s):s()}},_n.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ct(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},_n.prototype.componentDidUpdate=_n.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Oa(e,n,t)})};var Fa=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sh=/[A-Z0-9]/g,ih=typeof document<"u",ah=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function La(e,t,n){return t.__k==null&&(t.textContent=""),Pt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ba(e,t,n){return Xo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Va=H.event;function lh(){}function ch(){return this.cancelBubble}function uh(){return this.defaultPrevented}H.event=function(e){return Va&&(e=Va(e)),e.persist=lh,e.isPropagationStopped=ch,e.isDefaultPrevented=uh,e.nativeEvent=e};var as,fh={enumerable:!1,configurable:!0,get:function(){return this.class}},Ua=H.vnode;H.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||ih&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ah(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":oh.test(s)?s=a:r.indexOf("-")===-1&&rh.test(s)?s=s.replace(sh,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ct(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ct(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",fh)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Fa,Ua&&Ua(e)};var Ha=H.__r;H.__r=function(e){Ha&&Ha(e),as=e.__c};var ja=H.diffed;H.diffed=function(e){ja&&ja(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),as=null};var za={ReactCurrentDispatcher:{current:{readContext:function(e){return as.__n[e.__c].props.value},useCallback:Jt,useContext:Yt,useDebugValue:ns,useDeferredValue:us,useEffect:ye,useId:rs,useImperativeHandle:ts,useInsertionEffect:ds,useLayoutEffect:Ot,useMemo:Kt,useReducer:Ur,useRef:Ie,useState:qe,useSyncExternalStore:hs,useTransition:fs}}},dh="17.0.2";function Ga(e){return h.bind(null,e)}function yn(e){return!!e&&e.$$typeof===Fa}function Wa(e){return yn(e)&&e.type===xe}function qa(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ls(e){return yn(e)?Qo.apply(null,arguments):e}function Za(e){return!!e.__k&&(Pt(null,e),!0)}function Ka(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ja=function(e,t){return e(t)},Ya=function(e,t){return e(t)},Xa=xe;function cs(e){e()}function us(e){return e}function fs(){return[!1,cs]}var ds=Ot,Qa=yn;function hs(e,t){var n=t(),r=qe({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Ot(function(){o.__=n,o.v=t,ps(o)&&s({h:o})},[e,n,t]),ye(function(){return ps(o)&&s({h:o}),e(function(){ps(o)&&s({h:o})})},[e]),n}function ps(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var He={useState:qe,useId:rs,useReducer:Ur,useEffect:ye,useLayoutEffect:Ot,useInsertionEffect:ds,useTransition:fs,useDeferredValue:us,useSyncExternalStore:hs,startTransition:cs,useRef:Ie,useImperativeHandle:ts,useMemo:Kt,useCallback:Jt,useContext:Yt,useDebugValue:ns,version:"17.0.2",Children:Ta,render:La,hydrate:Ba,unmountComponentAtNode:Za,createPortal:Ra,createElement:h,createContext:Yn,createFactory:Ga,cloneElement:ls,createRef:la,Fragment:xe,isValidElement:yn,isElement:Qa,isFragment:Wa,isMemo:qa,findDOMNode:Ka,Component:Ye,PureComponent:jr,memo:Aa,forwardRef:zr,flushSync:Ya,unstable_batchedUpdates:Ja,StrictMode:Xa,Suspense:Xn,SuspenseList:_n,lazy:Pa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za};const ms=Object.freeze(Object.defineProperty({__proto__:null,Children:Ta,Component:Ye,Fragment:xe,PureComponent:jr,StrictMode:Xa,Suspense:Xn,SuspenseList:_n,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za,cloneElement:ls,createContext:Yn,createElement:h,createFactory:Ga,createPortal:Ra,createRef:la,default:He,findDOMNode:Ka,flushSync:Ya,forwardRef:zr,hydrate:Ba,isElement:Qa,isFragment:Wa,isMemo:qa,isValidElement:yn,lazy:Pa,memo:Aa,render:La,startTransition:cs,unmountComponentAtNode:Za,unstable_batchedUpdates:Ja,useCallback:Jt,useContext:Yt,useDebugValue:ns,useDeferredValue:us,useEffect:ye,useErrorBoundary:Jd,useId:rs,useImperativeHandle:ts,useInsertionEffect:ds,useLayoutEffect:Ot,useMemo:Kt,useReducer:Ur,useRef:Ie,useState:qe,useSyncExternalStore:hs,useTransition:fs,version:dh},Symbol.toStringTag,{value:"Module"})),hh=e=>{ye(()=>{const t=e();return()=>{t.Dispose()}})},ph=(e,t)=>{ye(()=>{const n=e();return()=>{n.Dispose()}},t)},mh=e=>{Ot(()=>{const t=e();return()=>{t.Dispose()}})},E=He,gh=hh,el=ph,wh=mh;function _h(e,t,n,r){const o=E.memo(e,ne(Je(mt(Mt,n),X())));return Gn(s=>{e.displayName=s},xi(t)),s=>{const i=yh(r,s);return E.createElement(o,i)}}function yh(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function Qn(e){return{Dispose(){e()}}}function bh(e,t){el(e,t)}function vh(e){wh(t=>(e(),Qn(()=>{})))}function gs(e){const t=E.useRef(!1);Ch(()=>{t.current||(t.current=!0,e())},[])}function tl(e){const t=E.useRef(void 0),n=E.useRef(!1),r=E.useRef(!1);n.current&&(r.current=!0),bh(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=be(e()),o=r.current?t.current:void 0),{Dispose(){Gn(s=>{Z(s)},xi(o))}}},[])}function xh(e){gh(t=>(e(),Qn(()=>{})))}function Ch(e,t){el(n=>(e(),Qn(()=>{})),t)}function kh(e,t){const n=Je(t,[]);return E.useCallback(e,n)}function nl(e){return E.useRef(e)}function Sh(e,t,n){return _h(e,void 0,Mo(n),Mo(t))}function rl(e){const t=nl(e),n=kh(r=>t.current(r),[]);return vh(()=>{t.current=e}),n}function er(e){return E.useState(e)}class ol{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Gr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Gr.prototype)}}class ws{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ws.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function St(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Gr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(yr(n))}});else try{e(t)}catch(n){t.onError(yr(n))}}}function Ah(e,t){return St(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(yr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Eh(e){return St(t=>t.onSuccess(e))}class Ih{Bind(t,n){return Ah(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return St(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Eh(t)}ReturnFrom(t){return t}TryFinally(t,n){return St(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return St(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(yr(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return St(t=>t.onSuccess(void 0))}}const F=new Ih;function _s(e){}function Th(e){return new ol(!1)}function $h(e){e.cancel()}function Nh(e){return e!=null&&e.isCancelled}const Mh=new ol;function Dh(e){return St(t=>{e({onSuccess:n=>t.onSuccess(dd(n)),onError:n=>t.onSuccess(hd(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Ph(e){return St(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Oh(e){return St(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Gr)})})}function Rh(e,t){return Fh(e,t)}function bn(e,t){return Rh(e,t)}function Fh(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new ws;e({onSuccess:t||_s,onError:_s,onCancel:_s,cancelToken:o||Mh,trampoline:s})}class sl{constructor(t,n){this.k=t,this.v=n}}function Wr(e,t){return new sl(e,t)}function Te(e){return e.k}function je(e){return e.v}class me extends sl{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function qr(e,t,n,r,o){return new me(e,t,n,r,o)}function $e(e){return e.left}function Ne(e){return e.right}function Xt(e){return e.h}function vw(){}function il(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof me){const s=o;e=il(n+1,$e(s)),t=Ne(s);continue e}else return n+1|0}else return n|0}}function Lh(e){return il(0,e)}function Xe(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=k(a);i=u instanceof me?(o=u,Xt(o)):1}else i=0;let l;const c=r;if(c!=null){const u=k(c);l=u instanceof me?(s=u,Xt(s)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Wr(t,n):qr(t,n,e,r,f+1)}function al(e,t,n,r){let o,s,i,a,l,c,f,u,m;const d=e;if(d!=null){const _=k(d);m=_ instanceof me?(o=_,Xt(o)):1}else m=0;let g;const b=r;if(b!=null){const _=k(b);g=_ instanceof me?(s=_,Xt(s)):1}else g=0;if(g>m+2){const _=k(r);if(_ instanceof me){const y=_;if(i=$e(y),(i!=null?(a=k(i),a instanceof me?(l=a,Xt(l)):1):0)>m+1){const x=k($e(y));if(x instanceof me){const S=x;return Xe(Xe(e,t,n,$e(S)),Te(S),je(S),Xe(Ne(S),Te(y),je(y),Ne(y)))}else throw new Error("internal error: Map.rebalance")}else return Xe(Xe(e,t,n,$e(y)),Te(y),je(y),Ne(y))}else throw new Error("internal error: Map.rebalance")}else if(m>g+2){const _=k(e);if(_ instanceof me){const y=_;if(c=Ne(y),(c!=null?(f=k(c),f instanceof me?(u=f,Xt(u)):1):0)>g+1){const x=k(Ne(y));if(x instanceof me){const S=x;return Xe(Xe($e(y),Te(y),je(y),$e(S)),Te(S),je(S),Xe(Ne(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Xe($e(y),Te(y),je(y),Xe(Ne(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Xe(e,t,n,r)}function vn(e,t,n,r){if(r!=null){const o=k(r),s=e.Compare(t,Te(o))|0;if(o instanceof me){const i=o;return s<0?al(vn(e,t,n,$e(i)),Te(i),je(i),Ne(i)):s===0?qr(t,n,$e(i),Ne(i),Xt(i)):al($e(i),Te(i),je(i),vn(e,t,n,Ne(i)))}else return s<0?qr(t,n,void 0,r,2):s===0?Wr(t,n):qr(t,n,r,void 0,2)}else return Wr(t,n)}function ll(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,Te(i))|0;if(a===0)return be(je(i));if(i instanceof me){const l=i;e=r,t=o,n=a<0?$e(l):Ne(l);continue e}else return}else return}}function Bh(e,t,n){const r=ll(e,t,n);if(r==null)throw new Error;return k(r)}function Vh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,Te(i))|0;if(i instanceof me){const l=i;if(a<0){e=r,t=o,n=$e(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Ne(l);continue e}}else return a===0}else return!1}}function cl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof me){const s=o;cl(n,$e(s)),n(Te(s),je(s)),e=n,t=Ne(s);continue e}else n(Te(o),je(o))}break}}function Uh(e,t){cl(e,t)}function Hh(e,t,n){let r=n;Uh((o,s)=>{gt(t,r,[o,s]),r=r+1|0},e)}function jh(e,t){return wt((n,r)=>vn(e,r[0],r[1],n),void 0,t)}function zh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vn(r,i[0],i[1],o),n=s;continue e}else return o}}function Gh(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ue(r,t);n=vn(e,o[0],o[1],n)}return n}function ul(e,t){if(nt(t))return Gh(e,t);if(t instanceof Ae)return jh(e,t);{const n=se(t);try{return zh(e,void 0,n)}finally{Z(n)}}}class Wh extends re{constructor(t,n){super(),this.stack=t,this.started=n}}function fl(e){e:for(;;){const t=e;if(O(t))return ce();{const n=w(t),r=$(t);if(r!=null){const o=k(r);if(o instanceof me){const s=o;e=ae([$e(s),Wr(Te(s),je(s)),Ne(s)],n);continue e}else return t}else{e=n;continue e}}}}function dl(e){return new Wh(fl(U(e)),!1)}function qh(){throw new Error("enumeration not started")}function Zh(){throw new Error("enumeration already finished")}function hl(e){if(e.started){const t=e.stack;if(O(t))return Zh();if($(t)!=null){const n=k($(t));if(n instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Te(n),je(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return qh()}function Kh(e){if(e.started){const t=e.stack;if(O(t))return!1;if($(t)!=null){if(k($(t))instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=fl(w(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function pl(e){let t=dl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return hl(t)},"System.Collections.IEnumerator.get_Current"(){return hl(t)},"System.Collections.IEnumerator.MoveNext"(){return Kh(t)},"System.Collections.IEnumerator.Reset"(){t=dl(e)},Dispose(){}}}class Zr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Qh(this)|0}Equals(t){const n=this;if(t instanceof Zr){const r=t,o=se(n);try{const s=se(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return he(l[0],c[0])&&he(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{Z(s)}}finally{Z(o)}}else return!1}toString(){return"map ["+z("; ",de(n=>wi("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return pl(this.tree)}[Symbol.iterator](){return Rn(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pl(this.tree)}CompareTo(t){const n=this;if(t instanceof Zr)return nd((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:We(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return gl(n,t[0])&&he(ml(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Hh(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ys(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ys(this)|0}get size(){return ys(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return de(n=>[n[0],n[1]],this)}get(t){return ml(this,t)}has(t){return gl(this,t)}keys(){return de(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;Gn(o=>{t(o[1],o[0],r)},r)}}function Kr(e,t){return new Zr(e,t)}function Jh(e){return Kr(e,void 0)}function Yh(e,t,n){return Kr(e.comparer,vn(e.comparer,t,n,e.tree))}function ml(e,t){return Bh(e.comparer,t,e.tree)}function ys(e){return Lh(e.tree)}function gl(e,t){return Vh(e.comparer,t,e.tree)}function Xh(e,t){return ll(e.comparer,t,e.tree)}function Qh(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=se(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ut(o[0]))|0,n=t(n,ut(o[1]))|0}}finally{Z(r)}return n|0}function e0(e,t,n){return Yh(n,e,t)}function t0(e,t){return Xh(t,e)}function n0(e,t){return Kr(t,ul(t,e))}function r0(e,t){return Kr(t,ul(t,e))}function wl(e){return Jh(e)}class J extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function _l(e,t){const n=nl(Th());return tl(()=>Qn(()=>{$h(n.current)})),rl(r=>{Nh(n.current)||bn(F.Delay(()=>F.TryWith(F.Delay(()=>(t(new J(1,[])),F.Bind(e(r),o=>(t(new J(2,[o])),F.Zero())))),o=>(t(new J(3,[o])),F.Zero()))),n.current)})}class o0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function s0(e,t){t.Subscribe(new o0(e))}class i0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return l0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let a0=class extends i0{};function l0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class c0{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new a0}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function u0(e,t){console.error(be(e),t)}function f0(e,t){let n,r=new c0(e);r.AutoReset=!1,n=r,s0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function yl(e,t,n){Mr(r=>{try{r(t)}catch(o){e(o)}},n)}function Oe(){return ce()}function Ce(e){return U(e)}function d0(e,t,n,r){return U(o=>{e(F.Delay(()=>F.Bind(Dh(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),F.Zero()})))})}function h0(e){f0(1,t=>{bn(e)})}function xn(e,t){if(t.indexOf(e)===0)return t}function bl(e,t){if(af(t,e))return t}function p0(e){return e===1?t=>{let n,r,o,s,i,a;return n=xn("/",t),n!=null?(r=n,"#"+r):(o=xn("#/",t),o!=null?(s=o,s):(i=xn("#",t),i!=null?(a=i,"#/"+vi(a,1,a.length-1)):"#/"+t))}:t=>{let n,r;return n=xn("/",t),n!=null?(r=n,r):"/"+t}}function T(e,t){return p0(t)(z("/",zn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function Re(e,t,n){history.pushState(void 0,"",T(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function vl(e,t){return xf(n=>{if(yi(n))return ce();{const r=uf(n,"#");if(r==="?")return ce();if(xn("?",r)!=null)return U(r);{const o=r.split("?");if(!Ai((s,i)=>s===i,o)&&o.length===1){const s=ue(0,o);return U(decodeURIComponent(s))}else if(!Ai((s,i)=>s===i,o)&&o.length===2)if(ue(1,o)===""){const s=ue(0,o);return U(decodeURIComponent(s))}else{const s=ue(0,o),i=ue(1,o);return v([decodeURIComponent(s),"?"+i])}else return ce()}}},v(bi(xn("#",e)!=null?vi(e,1,e.length-1):t===1&&(bl("#",e)!=null||bl("#/",e)!=null)?"":e,["/"],void 0,0)))}function m0(e,t,n){return t(vl(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const g0=Sh(e=>{const t=rl(r=>{const o=Je(e.onUrlChanged,s=>{});m0(Je(e.hashMode,1),o)});tl(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),Qn(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),gs(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??X()});class At extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class Qt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function xl(e){return e.tag===0?new Qt(1,[]):new Qt(0,[])}class tr extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const w0=new tr(new At(1,[]),new Qt(0,[]));function _0(e){return[e.fields[0],e.fields[1]]}function Cl(e){return e.fields[0]}function kl(e){return e.fields[1]}function Sl(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new tr(new At(1,[]),xl(r)):new tr(new At(1,[]),new Qt(0,[])):n.tag===0?new tr(new At(0,[]),xl(r)):new tr(new At(0,[]),new Qt(0,[]))}class Al extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const y0=new Al("");function b0(e){return new Al(e.trim())}function El(e){return e.fields[0]}class v0 extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function x0(e){return new v0(e)}function Il(e){return e.fields[0]}class bs extends re{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class C0 extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function k0(e){return[e.fields[0],e.fields[1]]}function S0(e,t){return new C0(e,t)}function A0(e){const t=k0(e);return[t[0],t[1]]}function E0(){return new cd([],{Equals:he,GetHashCode:uu})}function I0(e,t){let n,r=X();if(n=[Vi(e,t,new Me(()=>r,o=>{r=o})),r],n[0])return n[1]}function Tl(e,t,n){return e.set(t,n),e}class T0 extends re{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function $0(e){const t=Ad(e.Name);if(t.tag===1)return new p(1,[t.fields[0]]);{const n=Ed(e.Website);if(n.tag===1)return new p(1,[n.fields[0]]);{const r=Dd(e.ContactDetails);return r.tag===1?new p(1,[r.fields[0]]):new p(0,[new T0(new Zi(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Pd(e.Notes))])}}}function $l(e,t){return Sf(n=>ot(n.StreamId)===Di(t),e)}class C extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","NotFound"]}}function Nl(e){let t,n,r,o,s,i,a,l,c,f,u,m,d,g,b,_,y,x,S,L,q;if(O(e))t=14;else if($(e)==="account-registry")if(O(w(e)))t=14;else if($(w(e))==="partners")if(O(w(w(e))))t=0;else if(O(w(w(w(e)))))t=1,n=$(w(w(e)));else switch($(w(w(w(e))))){case"accounts":{if(O(w(w(w(w(e))))))t=2,r=$(w(w(e)));else if(O(w(w(w(w(w(e)))))))t=7,l=$(w(w(w(w(e))))),c=$(w(w(e)));else switch($(w(w(w(w(w(e))))))){case"directory":{O(w(w(w(w(w(w(e)))))))?(t=8,f=$(w(w(w(w(e))))),u=$(w(w(e)))):t=14;break}case"imports":{O(w(w(w(w(w(w(e)))))))?(t=9,m=$(w(w(w(w(e))))),d=$(w(w(e)))):t=14;break}case"super-configuration":{O(w(w(w(w(w(w(e)))))))?(t=10,g=$(w(w(w(w(e))))),b=$(w(w(e)))):t=14;break}case"benefits-onboarding-configuration":{O(w(w(w(w(w(w(e)))))))?(t=11,_=$(w(w(w(w(e))))),y=$(w(w(e)))):t=14;break}case"bank-details-configuration":{O(w(w(w(w(w(w(e)))))))?(t=12,x=$(w(w(w(w(e))))),S=$(w(w(e)))):t=14;break}case"salary-packaging-configuration":{O(w(w(w(w(w(w(e)))))))?(t=13,L=$(w(w(w(w(e))))),q=$(w(w(e)))):t=14;break}default:t=14}break}case"super-configuration":{O(w(w(w(w(e)))))?(t=3,o=$(w(w(e)))):t=14;break}case"benefits-onboarding-configuration":{O(w(w(w(w(e)))))?(t=4,s=$(w(w(e)))):t=14;break}case"directory":{O(w(w(w(w(e)))))?(t=5,i=$(w(w(e)))):t=14;break}case"bank-details-configuration":{O(w(w(w(w(e)))))?(t=6,a=$(w(w(e)))):t=14;break}default:t=14}else t=14;else t=14;switch(t){case 0:return new C(0,[]);case 1:return new C(1,[pe(n)]);case 2:return new C(3,[pe(r)]);case 3:return new C(4,[pe(o)]);case 4:return new C(5,[pe(s)]);case 5:return new C(2,[pe(i)]);case 6:return new C(6,[pe(a)]);case 7:return new C(7,[pe(c),bt(l)]);case 8:return new C(8,[pe(u),bt(f)]);case 9:return new C(9,[pe(d),bt(m)]);case 10:return new C(10,[pe(b),bt(g)]);case 11:return new C(11,[pe(y),bt(_)]);case 12:return new C(12,[pe(S),bt(x)]);case 13:return new C(13,[pe(q),bt(L)]);default:return new C(14,[])}}function A(e){switch(e.tag){case 1:return v(["account-registry","partners",Q(e.fields[0])]);case 3:return v(["account-registry","partners",Q(e.fields[0]),"accounts"]);case 4:return v(["account-registry","partners",Q(e.fields[0]),"super-configuration"]);case 5:return v(["account-registry","partners",Q(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return v(["account-registry","partners",Q(e.fields[0]),"bank-details-configuration"]);case 2:return v(["account-registry","partners",Q(e.fields[0]),"directory"]);case 7:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1])]);case 8:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"directory"]);case 9:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"imports"]);case 10:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"super-configuration"]);case 11:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"benefits-onboarding-configuration"]);case 12:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"bank-details-configuration"]);case 13:return v(["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"salary-packaging-configuration"]);default:return v(["account-registry","partners"])}}function Ml(e){switch(e.tag){case 1:{const t=["account-registry","partners",Q(e.fields[0])];return Ce(n=>{Re(v(t),1,1)})}case 3:{const t=["account-registry","partners",Q(e.fields[0]),"accounts"];return Ce(n=>{Re(v(t),1,1)})}case 4:{const t=["account-registry","partners",Q(e.fields[0]),"super-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 5:{const t=["account-registry","partners",Q(e.fields[0]),"benefits-onboarding-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 6:{const t=["account-registry","partners",Q(e.fields[0]),"bank-details-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 2:{const t=["account-registry","partners",Q(e.fields[0]),"directory"];return Ce(n=>{Re(v(t),1,1)})}case 7:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1])];return Ce(n=>{Re(v(t),1,1)})}case 8:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"directory"];return Ce(n=>{Re(v(t),1,1)})}case 9:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"imports"];return Ce(n=>{Re(v(t),1,1)})}case 10:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"super-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 11:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"benefits-onboarding-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 12:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"bank-details-configuration"];return Ce(n=>{Re(v(t),1,1)})}case 13:{const t=["account-registry","partners",Q(e.fields[0]),"accounts",Pe(e.fields[1]),"salary-packaging-configuration"];return Ce(n=>{Re(v(t),1,1)})}default:return Oe()}}function N0(e,t){switch(t.tag){case 1:return new J(1,[]);case 2:return t.fields[0].tag===1?new J(2,[new p(1,[t.fields[0].fields[0]])]):new J(2,[new p(0,[e(t.fields[0].fields[0])])]);case 3:return new J(3,[t.fields[0]]);default:return new J(0,[])}}function Dl(e,t,n,r){return d0(o=>{h0(o)},e,t,o=>o.tag===1?r(o.fields[0]):n(o.fields[0]))}class Pl{constructor(t){this.k=t}}function ze(e){return new Pl(e)}function B(e){return e.k}class W extends Pl{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ge(e,t,n,r){return new W(e,t,n,r)}function ee(e){return e.left}function Y(e){return e.right}function Cn(e){return e.h}function xw(){}function Ol(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=k(n);if(o instanceof W){const s=o;e=ee(s),t=Ol(Y(s),r+1);continue e}else return r+1|0}else return r|0}}function M0(e){return Ol(e,0)}function Qe(e,t,n){let r,o,s;const i=e;if(i!=null){const f=k(i);s=f instanceof W?(r=f,Cn(r)):1}else s=0;let a;const l=n;if(l!=null){const f=k(l);a=f instanceof W?(o=f,Cn(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?ze(t):Ge(t,e,n,c+1)}function Rl(e,t,n){let r,o,s,i,a,l,c,f,u;const m=e;if(m!=null){const b=k(m);u=b instanceof W?(r=b,Cn(r)):1}else u=0;let d;const g=n;if(g!=null){const b=k(g);d=b instanceof W?(o=b,Cn(o)):1}else d=0;if(d>u+2){const b=k(n);if(b instanceof W){const _=b;if(s=ee(_),(s!=null?(i=k(s),i instanceof W?(a=i,Cn(a)):1):0)>u+1){const y=k(ee(_));if(y instanceof W){const x=y;return Qe(Qe(e,t,ee(x)),B(x),Qe(Y(x),B(_),Y(_)))}else throw new Error("internal error: Set.rebalance")}else return Qe(Qe(e,t,ee(_)),B(_),Y(_))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const b=k(e);if(b instanceof W){const _=b;if(l=Y(_),(l!=null?(c=k(l),c instanceof W?(f=c,Cn(f)):1):0)>d+1){const y=k(Y(_));if(y instanceof W){const x=y;return Qe(Qe(ee(_),B(_),ee(x)),B(x),Qe(Y(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Qe(ee(_),B(_),Qe(Y(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return Qe(e,t,n)}function kn(e,t,n){if(n!=null){const r=k(n),o=e.Compare(t,B(r))|0;if(r instanceof W){const s=r;return o<0?Rl(kn(e,t,ee(s)),B(s),Y(s)):o===0?n:Rl(ee(s),B(s),kn(e,t,Y(s)))}else{const s=e.Compare(t,B(r))|0;return s<0?Ge(t,void 0,n,2):s===0?n:Ge(t,n,void 0,2)}}else return ze(t)}function Fl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,B(i))|0;if(i instanceof W){const l=i;if(a<0){e=r,t=o,n=ee(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Y(l);continue e}}else return a===0}else return!1}}function Ll(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof W){const s=o;Ll(n,ee(s)),n(B(s)),e=n,t=Y(s);continue e}else n(B(o))}break}}class D0 extends re{constructor(t,n){super(),this.stack=t,this.started=n}}function Bl(e){e:for(;;){const t=e;if(O(t))return ce();{const n=$(t),r=w(t);if(n!=null){const o=k(n);if(o instanceof W){const s=o;e=ae([ee(s),ze(B(s)),Y(s)],r);continue e}else return t}else{e=r;continue e}}}}function Vl(e){return new D0(Bl(U(e)),!1)}function P0(){throw new Error("Enumeration not started")}function O0(){throw new Error("Enumeration already started")}function Ul(e){if(e.started){const t=e.stack;if(O(t))return O0();if($(t)!=null){const n=k($(t));return B(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return P0()}function R0(e){if(e.started){const t=e.stack;if(O(t))return!1;if($(t)!=null){if(k($(t))instanceof W)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Bl(w(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function Hl(e){let t=Vl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ul(t)},"System.Collections.IEnumerator.get_Current"(){return Ul(t)},"System.Collections.IEnumerator.MoveNext"(){return R0(t)},"System.Collections.IEnumerator.Reset"(){t=Vl(e)},Dispose(){}}}function F0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(o))return O(s)?0:-1;if(O(s))return 1;if($(s)!=null)if($(o)!=null){const i=k($(o)),a=k($(s));if(i instanceof W){const l=i;if(ee(l)==null)if(a instanceof W){const c=a;if(ee(c)==null){const f=r.Compare(B(l),B(c))|0;if(f!==0)return f|0;e=r,t=Ue(Y(l),w(o)),n=Ue(Y(c),w(s));continue e}else{let f,u,m,d,g;switch(O(o)?O(s)?f=2:$(s)!=null?(f=1,d=w(s),g=k($(s))):f=2:$(o)!=null?(f=0,u=w(o),m=k($(o))):O(s)?f=2:$(s)!=null?(f=1,d=w(s),g=k($(s))):f=2,f){case 0:if(m instanceof W){const b=m;e=r,t=ae([ee(b),Ge(B(b),void 0,Y(b),0)],u),n=s;continue e}else{e=r,t=ae([void 0,ze(B(m))],u),n=s;continue e}case 1:if(g instanceof W){const b=g;e=r,t=o,n=ae([ee(b),Ge(B(b),void 0,Y(b),0)],d);continue e}else{e=r,t=o,n=ae([void 0,ze(B(g))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(B(l),B(a))|0;if(c!==0)return c|0;e=r,t=Ue(Y(l),w(o)),n=Ue(void 0,w(s));continue e}else{let c,f,u,m,d;switch(O(o)?O(s)?c=2:$(s)!=null?(c=1,m=w(s),d=k($(s))):c=2:$(o)!=null?(c=0,f=w(o),u=k($(o))):O(s)?c=2:$(s)!=null?(c=1,m=w(s),d=k($(s))):c=2,c){case 0:if(u instanceof W){const g=u;e=r,t=ae([ee(g),Ge(B(g),void 0,Y(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,ze(B(u))],f),n=s;continue e}case 1:if(d instanceof W){const g=d;e=r,t=o,n=ae([ee(g),Ge(B(g),void 0,Y(g),0)],m);continue e}else{e=r,t=o,n=ae([void 0,ze(B(d))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof W){const l=a;if(ee(l)==null){const c=r.Compare(B(i),B(l))|0;if(c!==0)return c|0;e=r,t=Ue(void 0,w(o)),n=Ue(Y(l),w(s));continue e}else{let c,f,u,m,d;switch(O(o)?O(s)?c=2:$(s)!=null?(c=1,m=w(s),d=k($(s))):c=2:$(o)!=null?(c=0,f=w(o),u=k($(o))):O(s)?c=2:$(s)!=null?(c=1,m=w(s),d=k($(s))):c=2,c){case 0:if(u instanceof W){const g=u;e=r,t=ae([ee(g),Ge(B(g),void 0,Y(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,ze(B(u))],f),n=s;continue e}case 1:if(d instanceof W){const g=d;e=r,t=o,n=ae([ee(g),Ge(B(g),void 0,Y(g),0)],m);continue e}else{e=r,t=o,n=ae([void 0,ze(B(d))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(B(i),B(a))|0;if(l!==0)return l|0;e=r,t=w(o),n=w(s);continue e}}else{k($(s));let i,a,l,c,f;switch(O(o)?O(s)?i=2:$(s)!=null?(i=1,c=w(s),f=k($(s))):i=2:$(o)!=null?(i=0,a=w(o),l=k($(o))):O(s)?i=2:$(s)!=null?(i=1,c=w(s),f=k($(s))):i=2,i){case 0:if(l instanceof W){const u=l;e=r,t=ae([ee(u),Ge(B(u),void 0,Y(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,ze(B(l))],a),n=s;continue e}case 1:if(f instanceof W){const u=f;e=r,t=o,n=ae([ee(u),Ge(B(u),void 0,Y(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,ze(B(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if($(o)!=null){k($(o));let i,a,l,c,f;switch(O(o)?O(s)?i=2:$(s)!=null?(i=1,c=w(s),f=k($(s))):i=2:$(o)!=null?(i=0,a=w(o),l=k($(o))):O(s)?i=2:$(s)!=null?(i=1,c=w(s),f=k($(s))):i=2,i){case 0:if(l instanceof W){const u=l;e=r,t=ae([ee(u),Ge(B(u),void 0,Y(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,ze(B(l))],a),n=s;continue e}case 1:if(f instanceof W){const u=f;e=r,t=o,n=ae([ee(u),Ge(B(u),void 0,Y(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,ze(B(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=w(o),n=w(s);continue e}}}function jl(e,t,n){return t==null?n==null?0:-1:n==null?1:F0(e,U(t),U(n))|0}function L0(e,t,n){let r=n;Ll(o=>{gt(t,r,o),r=r+1|0},e)}function B0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=kn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function V0(e,t){return $r((n,r)=>kn(e,r,n),void 0,t)}function U0(e,t){return wt((n,r)=>kn(e,r,n),void 0,t)}function zl(e,t){if(nt(t))return V0(e,t);if(t instanceof Ae)return U0(e,t);{const n=se(t);try{return B0(e,void 0,n)}finally{Z(n)}}}class vs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return z0(this)|0}Equals(t){let n;const r=this;return t instanceof vs&&(n=t,jl(Sn(r),et(r),et(n))===0)}toString(){return"set ["+z("; ",de(n=>Se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return jl(Sn(n),et(n),et(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Fl(Sn(n),t,et(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){L0(et(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return xs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return xs(this)|0}GetEnumerator(){return Hl(et(this))}[Symbol.iterator](){return Rn(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Hl(et(this))}get size(){return xs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Gl(this,t)}keys(){return de(n=>n,this)}values(){return de(n=>n,this)}entries(){return de(n=>[n,n],this)}forEach(t,n){const r=this;Gn(o=>{t(o,o,r)},r)}}function Jr(e,t){return new vs(e,t)}function Sn(e){return e.comparer}function et(e){return e.tree}function H0(e){return Jr(e,void 0)}function j0(e,t){return Jr(Sn(e),kn(Sn(e),t,et(e)))}function xs(e){return M0(et(e))}function Gl(e,t){return Fl(Sn(e),t,et(e))}function z0(e){let t=0;const n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ut(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function Cs(e,t){return Gl(t,e)}function G0(e,t){return j0(t,e)}function W0(e){return H0(e)}function q0(e,t){return Jr(t,zl(t,e))}function Z0(e,t){return Jr(t,zl(t,e))}function K0(){return ce()}function ks(e){return z("/",e)}function J0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ks(t),n])}function Wl(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+ks(t),r])}}function Y0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+ks(n),o]);return}}function X0(e,t){Mr(n=>{Wl(e,n[0],n[1])},t)}function ql(e,t,n,r,o,s){return Mr(i=>{J0(e,i)},n),Mr(i=>{Wl(e,i[0],i[1])},r),Ee(o,$i(i=>Y0(e,t,i[0],i[1]),s))}function Q0(){return[ce(),W0({Compare:We}),ce()]}function ep(e,t,n,r,o){return Cs(e,r)?[Ue(e,n),r,o]:[n,G0(e,r),Ue([e,t],o)]}function tp(e){return yf((t,n)=>ep(t[0],t[1],n[0],n[1],n[2]),e,Q0())}const np=ce();function Zl(e,t){const n=q0(zn(i=>i[0],e),{Compare:We}),r=tp(t),o=r[1],s=r[0];if(n.Equals(o))return[s,ce(),e,ce()];{const i=Ef(a=>Cs(a[0],o),e);return[s,i[1],i[0],Ti(a=>!Cs(a[0],n),r[2])]}}function rp(e,t,n,r){const o=We(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=We(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function op(e,t,n,r,o){const s=rp(t,n,r,o);return D(()=>td(s,e))}function sp(e,t,n){return op(e,t,n,0,(r,o)=>r+o)}class An extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ip{constructor(t){this.state=new An(0,[Do(new Array(Si(t,10)),0,Si(t,10),null),0])}}function ap(e){return new ip(e)}function Kl(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new An(0,[o,n]):e.state=new An(1,[o,n,s]),be(ue(r,o))}else return}function lp(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];gt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new An(1,[cp(e,o,s),s.length,0]):e.state=new An(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];gt(o,r,t);const s=(r+1)%o.length|0;e.state=new An(1,[o,s,r])}}function cp(e,t,n){return Array.from(D(()=>G(sd(t,n),D(()=>G(id(t,n),D(()=>ad(r=>P(X()),sp(0,1,n.length))))))))}class Ss extends re{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function As(e,t,n){return new Ss(e,t,r=>K0(),n,ne(r=>{const o=Mt(n)(r);return s=>{o(s)}}),r=>{u0(r[0],r[1])},[r=>!1,r=>{}])}function up(e,t){return new Ss(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function fp(e){return e.init}function dp(e,t,n,r,o,s,i){const a=Mt(e)(i.init),l=ko(t)(Mt(i.update)),c=ko(n)(Mt(i.view)),f=ko(r)(Mt(i.setState));return new Ss(a,ne(l),Mt(o)(i.subscribe),ne(c),ne(f),i.onError,s(i.termination))}function hp(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,l=ap(10);let c=!1,f=s,u=np,m=!1;const d=_=>{m||(lp(l,_),c||(c=!0,b(),c=!1))},g=Mt(e)(d),b=()=>{let _,y=Kl(l);for(;!m&&y!=null;){const x=k(y);if(a[0](x))X0(n.onError,u),a[1](f),m=!0;else{const S=n.update(x,f),L=S[0],q=n.subscribe(L);n.setState(L,g),yl(ie=>{n.onError([pt(ht("Error handling the message: %A"))(x),ie])},g,S[1]),f=L,u=(_=Zl(u,q),ql(n.onError,g,_[0],_[1],_[2],_[3])),y=Kl(l)}}};c=!0,n.setState(s,g),yl(_=>{n.onError([pt(ht("Error intitializing:")),_])},g,o[1]),u=(r=Zl(u,i),ql(n.onError,g,r[0],r[1],r[2],r[3])),b(),c=!1}function pp(e,t){hp(ne(n=>n),e,t)}function mp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Jl={exports:{}},Yl={};const gp=mp(ms);/**
4
+ * @license React
5
+ * use-sync-external-store-shim.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */var En=gp;function wp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _p=typeof Object.is=="function"?Object.is:wp,yp=En.useState,bp=En.useEffect,vp=En.useLayoutEffect,xp=En.useDebugValue;function Cp(e,t){var n=t(),r=yp({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return vp(function(){o.value=n,o.getSnapshot=t,Es(o)&&s({inst:o})},[e,n,t]),bp(function(){return Es(o)&&s({inst:o}),e(function(){Es(o)&&s({inst:o})})},[e]),xp(n),n}function Es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_p(e,n)}catch{return!0}}function kp(e,t){return t()}var Sp=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kp:Cp;Yl.useSyncExternalStore=En.useSyncExternalStore!==void 0?En.useSyncExternalStore:Sp,Jl.exports=Yl;var Ap=Jl.exports;class Ep{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=fp(o)(this.arg);let l=a[0],c=a[1];i=[[l,f=>{const u=this.finalDispatch;u==null?s.push(f):u(f)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const m=vo(this.state[0]);return pp(this.arg,up((d,g)=>{const b=this.state;this.finalDispatch=g,this.state=[d,b[1],!0,s],d!==b[0]&&f()},dp((d,g)=>{const b=this.cmd;return this.cmd=Oe(),[this.state[0],b]},(d,g,b)=>d(g)(this.state[0]),Co(d=>d),Co(d=>d),ne(d=>d),d=>[g=>d[0](g)?!0:m&&u,g=>{const b=g;vo(b)?Z(b):d[1](g)}],o))),()=>{u=!0}}}}function Xl(e,t,n){return new Ep(e,t,n)}function Ip(e){return e.state}function Tp(e){return e.subscribe}function $p(e,t,n){return he(e.arg,t)?!he(e.dependencies,n):!0}function Is(e,t,n){const r=qe(()=>Xl(e,t,n)),o=r[0];$p(o,t,n)&&r[1](Xl(e,t,n));const s=Ap.useSyncExternalStore(Tp(o),()=>Ip(o)),i=s[2],a=s[3],l=s[1];return ye(()=>{if(i&&a.length>0){let c=se(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Z(c)}pu(a)}},[i,a]),[s[0],l]}class nr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ql extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Np extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Yr extends re{constructor(t,n,r,o,s,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=l}}class In extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ec extends re{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function Mp(e){return new Ql("Authorization",e)}const en=new Yr("",new nr(0,[]),ce(),!1,void 0,void 0,void 0,new Np(0,[]));new ec(0,"","","",wl({Compare:wr}),new In(0,[""]));function tc(e,t){return _i(t)?new Array(0):bi(t,[e],void 0,0)}function Dp(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Xr(e){return new Yr(e,en.method,en.headers,en.withCredentials,en.overridenMimeType,en.overridenResponseType,en.timeout,en.content)}function Qr(e,t){return new Yr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function nc(e,t){return new Yr(t.url,t.method,Ee(t.headers,U(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function rc(e){return Ph(t=>{const n=new XMLHttpRequest;n.open(Dp(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,u,m,d,g;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,m=(d=n.responseType,d===""?new In(0,[n.responseText]):d==="text"?new In(0,[n.responseText]):d==="arraybuffer"?new In(2,[n.response]):d==="blob"?new In(1,[n.response]):new In(3,[n.response])),g=r0(mf(b=>{const _=v(tc(":",b));if(!O(_))return[$(_).toLocaleLowerCase(),z(":",w(_)).trim()]},tc(`\r
12
+ `,n.getAllResponseHeaders())),{Compare:wr}),new ec(f,l,u,n.responseURL,g,m)))};const r=se(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Z(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(be(a.fields[0]));break}case 3:{n.send(be(a.fields[0]));break}case 2:{n.send(be(a.fields[0]));break}default:n.send()}})}class M extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class rr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function oc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Pp(e,t){switch(e.tag){case 2:return tf(oc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return oc(t)}}function sc(e,t){Op(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Op(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Rp(){return sc(-621355968e5,0)}function Fp(e){const[t,n]=ii(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return sc(t.getTime(),r)}function Lp(e,t){try{return t.contents=Fp(e),!0}catch{return!1}}function ic(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Bp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Bp(e){return Number(BigInt(e)/10000n)}function Vp(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ic(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*ic(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Up(e,t){try{return t.contents=Vp(e),!0}catch{return!1}}function or(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
13
+ `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
14
+ `:" ")}}function Hp(e,t){const n=t.tag===2?or(t.fields[0],t.fields[1],!0):t.tag===1?or(t.fields[0],t.fields[1],!1)+`
15
+ Reason: `+t.fields[2]:t.tag===3?or(t.fields[0],t.fields[1],!0):t.tag===4?or(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
16
+ `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
17
+
18
+ `+z(`
19
+
20
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:or(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ac(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new p(1,[Hp(o[0],o[1])])}else return new p(0,[r.fields[0]])}function eo(e,t){try{return ac("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new p(1,["Given an invalid JSON: "+n.message]);throw n}}function lc(e,t){return typeof t=="string"?new p(0,[t]):new p(1,[[e,new M(0,["a string",t])]])}function jp(e,t){if(typeof t=="string"){const n=t;return n.length===1?new p(0,[n[0]]):new p(1,[[e,new M(0,["a single character string",t])]])}else return new p(1,[[e,new M(0,["a char",t])]])}function zp(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[wd(t,new Me(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new M(0,["a guid",t])]])}else return new p(1,[[e,new M(0,["a guid",t])]])}function Gp(e,t){return t==null?new p(0,[void 0]):new p(1,[[e,new M(0,["null",t])]])}const cc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new p(0,[(o+128&255)-128]):new p(1,[[n,new M(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new p(1,[[n,new M(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,8,new Me(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["a sbyte",r])]])}else return new p(1,[[n,new M(0,["a sbyte",r])]])},uc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new p(0,[o&255]):new p(1,[[n,new M(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new p(1,[[n,new M(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,8,new Me(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["a byte",r])]])}else return new p(1,[[n,new M(0,["a byte",r])]])},fc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new p(0,[(o+32768&65535)-32768]):new p(1,[[n,new M(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new p(1,[[n,new M(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,16,new Me(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["an int16",r])]])}else return new p(1,[[n,new M(0,["an int16",r])]])},dc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new p(0,[o&65535]):new p(1,[[n,new M(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new p(1,[[n,new M(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,16,new Me(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["an uint16",r])]])}else return new p(1,[[n,new M(0,["an uint16",r])]])},hc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new p(0,[~~o]):new p(1,[[n,new M(1,["an int",o,"Value was either too large or too small for an int"])]]):new p(1,[[n,new M(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,32,new Me(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["an int",r])]])}else return new p(1,[[n,new M(0,["an int",r])]])},pc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new p(0,[o>>>0]):new p(1,[[n,new M(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new p(1,[[n,new M(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,32,new Me(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new M(0,["an uint32",r])]])}else return new p(1,[[n,new M(0,["an uint32",r])]])};function Wp(e,t){return typeof t=="boolean"?new p(0,[t]):new p(1,[[e,new M(0,["a boolean",t])]])}function qp(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new M(0,["a float",t])]])}function Zp(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new M(0,["a float32",t])]])}function Kp(e,t){if(typeof t=="string"){let n,r=Ku();return n=[Yu(t,new Me(()=>r,o=>{r=o})),r],n[0]?new p(0,[Xu(n[1])]):new p(1,[[e,new M(0,["a datetime",t])]])}else return new p(1,[[e,new M(0,["a datetime",t])]])}function Jp(e,t){if(typeof t=="string"){let n,r=Rp();return n=[Lp(t,new Me(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new M(0,["a datetimeoffset",t])]])}else return new p(1,[[e,new M(0,["a datetime",t])]])}function Yp(e,t){if(typeof t=="string"){let n,r=0;return n=[Up(t,new Me(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new M(0,["a timespan",t])]])}else return new p(1,[[e,new M(0,["a timespan",t])]])}function mc(e,t,n,r){let o;const s=n+".["+Bt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ue(e,i)):new p(1,[[s,new M(5,["a longer array. Need index `"+Bt(e)+"` but there are only `"+(o=i.length,Bt(o))+"` entries",r])]])}else return new p(1,[[s,new M(0,["an array",r])]])}function Xp(e,t,n){return n==null?new p(0,[void 0]):_t(be,e(t,n))}function gc(e,t,n){if(Array.isArray(n)){let r=-1;return _t(Nr,$r((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Bt(r)+"]",s);return i.tag===0?new p(0,[Ue(i.fields[0],o.fields[0])]):new p(1,[i.fields[0]])}else return o},new p(0,[ce()]),n))}else return new p(1,[[t,new M(0,["a list",n])]])}function Qp(e,t,n){if(Array.isArray(n)){let r=-1;return _t(od,$r((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Bt(r)+"]",s);return i.tag===0?new p(0,[G([i.fields[0]],o.fields[0])]):new p(1,[i.fields[0]])}else return o},new p(0,[[]]),n))}else return new p(1,[[t,new M(0,["a seq",n])]])}function wc(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return $r((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],l=e(t+".["+Bt(r)+"]",i);return l.tag===0?(gt(a,r,l.fields[0]),new p(0,[a])):new p(1,[l.fields[0]])}else return s},new p(0,[Do(new Array(o.length),0,o.length,null)]),o)}else return new p(1,[[t,new M(0,["an array",n])]])}function em(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(O(i))return new p(1,[[t,new M(7,[a])]]);{const l=ac(t,ne($(i)),n);if(l.tag===1){o=w(i),s=Ee(a,U(l.fields[0]));continue e}else return new p(0,[l.fields[0]])}}})(e,ce())}function tm(e,t,n){return new p(0,[e])}function _c(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new p(1,[o.fields[0]])}function nm(e,t,n,r){const o=t(n,r);return o.tag===1?new p(1,[o.fields[0]]):new p(0,[e(o.fields[0])])}function rm(e,t){let n;const r=e;return n=o=>s=>mc(0,r,o,s),o=>s=>_c(Co(i=>{let a;const l=t;return a=c=>f=>mc(1,l,c,f),c=>f=>_c((u,m,d)=>tm([i,u]),ne(a),c,f)}),ne(n),o,s)}function om(e){return n0(e,{Compare:We})}function sm(e){return Z0(e,{Compare:We})}function im(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ei((r,o)=>{const s=r[0];return o.tag===0?_t(i=>Ue(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new p(0,[ce()])):new p(1,[[t,new M(0,["an object",n])]])}function am(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Bo((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new p(0,[Ue([i.fields[0],a.fields[0]],o.fields[0])]):new p(1,[a.fields[0]])}else return new p(1,[i.fields[0]])}else return o},new p(0,[ce()]),Object.keys(r)):new p(1,[[n,new M(0,["an object",r])]])}function yc(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new p(1,[[n,new M(6,[(o=r.length|0,pt(ht("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new p(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],c=pt(ht("%s[%i]"))(n)(a),f=ue(a-e,t),u=ue(a,r);i=_t(m=>Ue(m,l),f(c)(u))}return _t(Nr,i)}}function bc(e,t,n,r,o,s){const i=pf(a=>Eo(a)===r,Mu(n));if(i!=null){const a=i,l=Hn(c=>tt(e,t,!1,c[1]),Ru(a));return _t(c=>Fu(a,jt(c)),l.length===0&&s.length<=1?new p(0,[ce()]):yc(1,l,o,s))}else return new p(1,[[o,new M(6,["Cannot find case "+r+" in "+_e(n)])]])}function vc(e,t,n,r){let o;const s=new Me(X());let i;const a=_e(r);i=a===""?e:e0(a,s,e);let l;if(Ou(r)){const c=Hn(f=>[Pp(t,Eo(f)),tt(i,t,!1,f[1])],Sr(r));l=f=>u=>_t(m=>Lu(r,jt(m)),im(c,f,u))}else if(Pu(r))l=c=>f=>{if(typeof f=="string")return bc(i,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return Mf(m=>bc(i,t,r,m,c,u),lc(c+"[0]",ue(0,u)))}else return new p(1,[[c,new M(0,["a string or array",f])]])};else if(n)l=c=>f=>new p(1,[[c,new M(2,["an extra coder for "+_e(r),f])]]);else throw new Error((o=_e(r),pt(ht(`Cannot generate auto decoder for %s. Please pass an extra decoder.
21
+
22
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=l,l}function tt(e,t,n,r){let o,s,i,a;const l=_e(r),c=t0(l,e);if(c==null)if(Eu(r)){const f=tt(e,t,!1,kr(r));return u=>m=>wc(ne(f),u,m)}else if(ti(r))switch(_e($u(r))){case"System.SByte":return u=>m=>{const d=r,g=u,b=m,_=cc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,y.toString())]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>m=>{const d=r,g=u,b=m,_=uc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,y.toString())]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>m=>{const d=r,g=u,b=m,_=fc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,su(y))]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>m=>{const d=r,g=u,b=m,_=dc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,y.toString())]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>m=>{const d=r,g=u,b=m,_=hc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,Bt(y))]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>m=>{const d=r,g=u,b=m,_=pc(g)(b);if(_.tag===1)return new p(1,[_.fields[0]]);{const y=_.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:Ke})?new p(0,[cn(d,y.toString())]):new p(1,[[g,new M(1,[_e(d),b,"Unkown value provided for the enum"])]])}};default:{const u=_e(r),m=of(ht(`Cannot generate auto decoder for %s.
23
+ Thoth.Json.Net only support the following enum types:
24
+ - sbyte
25
+ - byte
26
+ - int16
27
+ - uint16
28
+ - int
29
+ - uint32
30
+ If you can't use one of these types, please pass an extra decoder.
31
+ `))(u);return d=>m(d)}}else if(Iu(r))if(ni(r)){const f=Hn(u=>tt(e,t,!1,u),Du(r));return u=>m=>Array.isArray(m)?_t(d=>Bu(jt(d)),yc(0,f,u,m)):new p(1,[[u,new M(0,["an array",m])]])}else switch(_e(Tu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=tt(e,t,!0,ue(0,dt(r))),u=>m=>Xp(ne(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=tt(e,t,!1,ue(0,dt(r))),u=>m=>gc(ne(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=tt(e,t,!1,ue(0,dt(r))),u=>m=>Qp(ne(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=tt(e,t,!1,ue(0,dt(r))),m=tt(e,t,!1,ue(1,dt(r)));let d;const g=v([b=>_=>am(ne(u),ne(m),b,_),(a=rm(ne(u),ne(m)),b=>_=>gc(ne(a),b,_))]);return d=b=>_=>em(g,b,_),b=>_=>nm(om,ne(d),b,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=tt(e,t,!1,ue(0,dt(r)));return m=>d=>{const g=wc(ne(u),m,d);return g.tag===0?new p(0,[sm(g.fields[0])]):new p(1,[g.fields[0]])}}default:return vc(e,t,n,r)}else switch(l){case"System.Boolean":return f=>u=>Wp(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>Gp(f,u);case"System.String":return f=>u=>lc(f,u);case"System.Char":return f=>u=>jp(f,u);case"System.SByte":return cc;case"System.Byte":return uc;case"System.Int16":return fc;case"System.UInt16":return dc;case"System.Int32":return hc;case"System.UInt32":return pc;case"System.Double":return f=>u=>qp(f,u);case"System.Single":return f=>u=>Zp(f,u);case"System.DateTime":return f=>u=>Kp(f,u);case"System.DateTimeOffset":return f=>u=>Jp(f,u);case"System.TimeSpan":return f=>u=>Yp(f,u);case"System.Guid":return f=>u=>zp(f,u);case"System.Object":return f=>u=>new p(0,[u]);default:return vc(e,t,n,r)}else{const f=c;return u=>m=>f.contents(u)(m)}}function lm(e){return wl({Compare:wr})}function to(e,t,n){const r=Je(t,new rr(0,[]));return tt(lm(),r,!1,e)}function cm(e,t,n){e:for(;;){const r=e,o=t,s=n;if(O(s)){const i=r;return i.tag===1?new p(1,[i.fields[0]]):new p(0,[Nr(i.fields[0])])}else{let i;const a=o($(s));if(a.tag===1)i=new p(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new p(1,[l.fields[0]]):new p(0,[Ue(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=w(s);continue e}}}function um(e,t){return cm(new p(0,[ce()]),e,t)}function fm(e){return um(t=>t,e)}function Ts(e){return new Zi(yt(e))}function no(e){return`${e}/account-registry/admin`}function ro(e,t){return F.Delay(()=>{const n=nc(Mp(pt(ht("Bearer %s"))(e)),t);let r;const o=rc(n);return r=F.Bind(o,s=>F.Return(new p(0,[s]))),F.Bind(r,s=>{const i=s;if(i.tag===1)return F.Return(new p(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=rc(n);return F.Bind(l,c=>F.Return(new p(0,[c])))}else return F.Return(new p(0,[a]))}})})}function dm(e,t){return F.Delay(()=>{const n=ro(t,Qr(new nr(0,[]),Xr(`${no(e)}/partners`)));return F.Bind(n,r=>{const o=r;if(o.tag===1)return F.Return(new p(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=eo(ne(to(ei(Bd()),new rr(1,[]))),s.responseText);return i=a.tag===1?new p(1,[a.fields[0]]):fm(zn($0,a.fields[0])),F.Return(i)}else return F.Return(new p(1,["Unexpected response from backend"]))}})})}function hm(e,t,n,r){const o=yt(n),s=rt(r);return F.Delay(()=>{const i=ro(t,Qr(new nr(0,[]),Xr(`${no(e)}/partners/${o}/accounts/${s}`)));return F.Bind(i,a=>{const l=a;if(l.tag===1)return F.Return(new p(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const f=eo(ne(to(Ud(),new rr(1,[]))),c.responseText);return F.Return(f)}else return F.Return(new p(1,["Unexpected response from backend"]))}})})}function $s(e,t,n,r,o){return F.Delay(()=>{let s,i,a,l;const c="?"+z("&",$i(u=>u,v([(s=El(r.SearchText),yi(s)?void 0:`search=${encodeURIComponent(s)}`),(i=_0(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=Il(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),f=ro(t,(l=Qr(new nr(0,[]),Xr(`${no(e)}/partners/${ot(n)}/accounts${c}`)),o==null?l:nc(new Ql("token",o),l)));return F.Bind(f,u=>{const m=u;if(m.tag===1)return F.Return(new p(1,[m.fields[0]]));{const d=m.fields[0];if(d.statusCode===200){const g=eo(ne(to(zd(),new rr(1,[]))),d.responseText);return F.Return(g)}else return F.Return(new p(1,["Unexpected response from backend"]))}})})}class pm extends re{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function mm(){return Vt("AccountRegistry.AdminUI.BackendService.FindAccountResponse",[],pm,()=>[["PartnerId",j],["AccountId",j]])}function gm(e,t,n){const r=rt(n);return F.Delay(()=>{const o=ro(t,Qr(new nr(0,[]),Xr(`${no(e)}/search-by-id/${r}`)));return F.Bind(o,s=>{const i=s;if(i.tag===1)return F.Return(new p(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=eo(ne(to(mm(),new rr(1,[]))),a.responseText);return F.Return(l)}else return F.Return(new p(1,["Unexpected response from backend"]))}})})}function wm(e,t){return h("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),h("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"}))}const _m=zr(wm);class Fe extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function ym(e,t,n){let r,o;return h("li",N(v([["key",e],["className","flex"],(r=[h("div",N(v([["className","flex items-center"],(o=De(D(()=>{let s;return G(n?Pr():P((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},h(_m,s))),D(()=>P(h("a",N(De(D(()=>G(P(["children",e]),D(()=>G(t!=null?P(["href",T(k(t),1)]):Pr(),D(()=>P(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(r))])])))}function bm(e){let t,n;return h("nav",N(v([["className","pt-2"],["aria-label","Breadcrumb"],(t=[h("ol",N(v([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Cf((r,o)=>ym(o.fields[0][0],o.fields[0][1],r===0),e),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function xc(){return new Fe(["Partners",A(new C(0,[]))])}function Cc(e,t){return new Fe([t,A(new C(1,[e]))])}function vm(e){return new Fe(["Super",A(new C(4,[e]))])}function xm(e){return new Fe(["Benefits",A(new C(5,[e]))])}function Cm(e){return new Fe(["Bank Details",A(new C(6,[e]))])}function km(e){return new Fe(["Directory",A(new C(2,[e]))])}function Sm(e){return new Fe(["Accounts",A(new C(3,[e]))])}function Am(e){return new Fe([e,void 0])}function Em(e,t){let n;return new Fe(["Directory",A((n=[e,t],new C(8,[n[0],n[1]])))])}function Im(e,t){let n;return new Fe(["Imports",A((n=[e,t],new C(9,[n[0],n[1]])))])}function Tm(e,t){let n;return new Fe(["Super",A((n=[e,t],new C(10,[n[0],n[1]])))])}function $m(e,t){let n;return new Fe(["Benefits",A((n=[e,t],new C(11,[n[0],n[1]])))])}function Nm(e,t){let n;return new Fe(["Bank Details",A((n=[e,t],new C(12,[n[0],n[1]])))])}function Mm(e,t){let n;return new Fe(["Salary Packaging",A((n=[e,t],new C(13,[n[0],n[1]])))])}function sr(e){let t,n;const r=e.partner;if(r==null)n="...";else{const m=r,d=m.Name;n=d.tag===2?d.fields[0].tag===1?Di(m.Id):Po(d.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const m=s,d=m.Name;o=d.tag===2?d.fields[0].tag===1?Pi(m.Id):Po(d.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,f,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,f=a),c){case 0:{i=v([xc(),Cc(f.Id,n),Sm(f.Id),Am(o)]);break}case 1:{i=v([xc(),Cc(u.Id,n)]);break}default:i=ce()}return bm((t=e.page,t.tag===14||t.tag===1||t.tag===3?i:t.tag===4?Ee(i,U(vm(t.fields[0]))):t.tag===5?Ee(i,U(xm(t.fields[0]))):t.tag===6?Ee(i,U(Cm(t.fields[0]))):t.tag===2?Ee(i,U(km(t.fields[0]))):t.tag===7?i:t.tag===8?Ee(i,U(Em(t.fields[0],t.fields[1]))):t.tag===9?Ee(i,U(Im(t.fields[0],t.fields[1]))):t.tag===10?Ee(i,U(Tm(t.fields[0],t.fields[1]))):t.tag===11?Ee(i,U($m(t.fields[0],t.fields[1]))):t.tag===12?Ee(i,U(Nm(t.fields[0],t.fields[1]))):t.tag===13?Ee(i,U(Mm(t.fields[0],t.fields[1]))):i))}class Dm extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function Pm(e){return new Dm(e)}function Om(e){return e.fields[0]}function I(e,t){const n=(t!=null?"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 Pm(h("a",N(De(D(()=>G(P(["key",e]),D(()=>G(P(["children",e]),D(()=>G(P(["className",n]),D(()=>t!=null?P(["href",T(U(k(t)),1)]):Pr())))))))))))}function kc(e){let t,n;return h("div",N(v([["className","border-b border-gray-200"],(t=[h("nav",N(v([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=de(Om,e),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}let tn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class Rm{constructor(t){this.props=t}}function Fm(e){return new Rm(e)}function Sc(e){return t=>n=>F.Delay(()=>{const r=Ts(e.props.partnerId);return F.Bind($s(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new tn(2,[new J(2,[o])])),F.Zero()))})}function Lm(e){return t=>n=>r=>F.Delay(()=>{const o=Ts(e.props.partnerId);return F.Bind($s(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new tn(3,[s])),F.Zero()))})}function Bm(e,t,n){return $s(e.props.backendUrl,e.props.accessToken,Ts(e.props.partnerId),t,void 0)}let Tn=class extends re{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function Vm(){return[new Tn(new J(0,[]),y0,w0,x0(20)),Oe()]}function Um(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new Tn(new J(1,[]),n.SearchText,a,n.PageSize),Ce(l=>{const c=new bs(n.SearchText,a,n.PageSize);bn(Sc(e)(c)(l))})]}case 2:return[new Tn(t.fields[0],n.SearchText,n.Sort,n.PageSize),Oe()];case 3:{const a=t.fields[0];return[new Tn((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new J(2,[new p(1,[o.fields[0]])]):new J(2,[new p(0,[new ta(Ee(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new J(2,[new p(1,[s.fields[0]])]):new J(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new J(2,[new p(1,[i.fields[0]])]):new J(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Oe()]}case 4:return[new Tn(new J(1,[]),n.SearchText,n.Sort,n.PageSize),Ce(a=>{const l=new bs(n.SearchText,n.Sort,n.PageSize);bn(Sc(e)(l)(a))})];default:return[new Tn(n.Data,b0(t.fields[0]),n.Sort,n.PageSize),Oe()]}}function Ac(e,t,n,r){let o,s;return h("div",N(v([["className",z(" ",["flex-grow","max-w-md"])],(o=[h("label",{for:"search",children:"Search",className:z(" ",["block","text-sm","font-medium","text-gray-700"])}),h("div",N(v([["className","mt-1"],(s=[h("input",{id:"search",name:"search",type:"text",className:z(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(o))])])))}function Hm(e){let t,n;return h("div",N(v([["className","pt-6"],(t=[h("div",N(v([["className",z(" ",["flex","justify-end"])],(n=[h("button",{type:"search",children:"Search",className:z(" ",["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",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class jm extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function Ec(e){return new jm(e)}function Ic(e){return e.fields[0]}class zm extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function $n(e){return new zm(e)}function Tc(e){return e.fields[0]}function Gm(){return["scope","col"]}function nn(e){return Ec(h("th",N(v([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],Gm(),["children",e]]))))}function Wm(e,t){let n;return $n(h("td",N(v([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[h("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",E.Children.toArray(Array.from(n))])]))))}function oo(e,t){return $n(h("td",{className:z(" ",G(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function qm(e,t){let n,r,o,s,i,a,l;return h("div",N(v([["className","flex flex-col mt-4"],(n=[h("div",N(v([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[h("div",N(v([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[h("div",N(v([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[h("table",N(v([["className","min-w-full divide-y divide-gray-200"],(i=[h("thead",{className:"bg-gray-50",children:(a=de(Ic,e),h("tr",{children:E.Children.toArray(Array.from(a))}))}),(l=Bi((c,f)=>(u=>{let m;return h("tr",N(v([["className",c%2===0?"bg-white":"bg-gray-50"],(m=de(Tc,u),["children",E.Children.toArray(Array.from(m))])])))})(f),t),h("tbody",{children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))}function $c(e){return["fillRule",e]}function Nc(e){return["clipRule",e]}const Zm=h("svg",N(v([["className",z(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=U(h("path",N(v([(e="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",["d",e]),$c("evenodd"),Nc("evenodd")]))));return["children",E.Children.toArray(Array.from(t))]})()]))),Km=h("svg",N(v([["className",z(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=U(h("path",N(v([(e="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",["d",e]),$c("evenodd"),Nc("evenodd")]))));return["children",E.Children.toArray(Array.from(t))]})()]))),Mc=h("svg",N(v([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=U(h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",E.Children.toArray(Array.from(e))]})()])));function Jm(e,t,n){return e?Ee(n,t):n}function Dc(e,t,n,r){let o,s,i;return Ec(h("th",N(v([["className",z(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[h("a",N(v([["className",z(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,h("span",N(v([["className",z(" ",Jm(!e,U("invisible"),v(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=De(D(()=>P(t?Zm:Km))),["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(o))])]))))}function Ym(e,t){return Dc(he(Cl(e.Sort),new At(1,[])),he(kl(e.Sort),new Qt(0,[])),n=>{t(new tn(1,[Sl(new At(1,[]),e.Sort)]))},"Name")}function Xm(e,t){return Dc(he(Cl(e.Sort),new At(0,[])),he(kl(e.Sort),new Qt(0,[])),n=>{t(new tn(1,[Sl(new At(0,[]),e.Sort)]))},"Id")}function Qm(e,t){let n;return $n(h("td",N(v([["className",z(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[h("span",{children:[e]}),h("br",{}),h("span",{children:[t]})],["children",E.Children.toArray(Array.from(n))])]))))}function eg(e,t,n){let r;return $n(h("td",N(v([["className",z(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=De(D(()=>{let o;return G(P(h("div",N(v([["className",z(" ",["font-medium"])],(o=[h("span",{children:[e]})],["children",E.Children.toArray(Array.from(o))])])))),D(()=>{let s;return G((s=t,s==null?P(X()):P(h("span",{children:["Legal Entity: "+s]}))),D(()=>{const i=n;if(i==null)return P(X());{const a=i;return G(P(h("br",{})),D(()=>P(h("span",{children:["ABN: "+a]}))))}}))}))})),["children",E.Children.toArray(Array.from(r))])]))))}function tg(e){return $n(h("td",{className:z(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function ng(e,t,n,r){let o;return $n(h("td",N(v([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=De(D(()=>G(P(h("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),D(()=>{let s,i;return G((s=r,s==null?P(X()):(i=s,G(P(h("br",{})),D(()=>P(h("span",{children:[`Channel ID: ${i}`]})))))),D(()=>{const a=n;if(a==null)return P(X());{const l=a;return G(P(h("br",{})),D(()=>P(h("span",{children:[`External ID: ${l}`]}))))}}))})))),["children",E.Children.toArray(Array.from(o))])]))))}function rg(e,t){const n=bt(t.AccountId);return De(D(()=>{let r;return G(P(ng(T(A((r=[e,n],new C(7,[r[0],r[1]]))),1),t.AccountId,t.ExternalId,t.ChannelId)),D(()=>G(P(eg(t.Name,t.BusinessName,t.BusinessNumber)),D(()=>G(P(Qm(t.Contact,t.ContactMobilePhone)),D(()=>P(tg(t.Website))))))))}))}class og extends re{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class Pc extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class Oc extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function sg(e){let t;return h("thead",{className:"bg-gray-50",children:(t=de(Ic,e),h("tr",{children:E.Children.toArray(Array.from(t))}))})}function ig(e,t){let n;return h("tr",N(v([["className",e%2===0?"bg-white":"bg-gray-50"],(n=de(Tc,t),["children",E.Children.toArray(Array.from(n))])])))}function ag(e,t,n,r,o,s){let i,a,l,c,f,u,m;const d=t!=null&&n!=null?(i=t|0,a=n|0,De(D(()=>G(P("Showing "),D(()=>G(P(h("span",{className:"font-medium",children:`${i}`})),D(()=>G(P(" to "),D(()=>G(P(h("span",{className:"font-medium",children:`${a}`})),D(()=>G(P(" of "),D(()=>r.tag===1?U(" many"):v([h("span",{className:"font-medium",children:Se(r.fields[0])})," results"])))))))))))))):U(X()),g=De(D(()=>{let b,_;return G((b=s,b==null?P(X()):(_=b,P(h("a",{className:z(" ",["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:_,children:"Previous "})))),D(()=>{const y=o;if(y==null)return P(X());{const x=y;return P(h("a",{className:z(" ",["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:x,children:" Next"}))}}))}));return h("tfoot",N(v([["className",z(" ",["w-full"])],(l=[h("tr",N(U((c=[h("td",N(v([["colSpan",e],(f=[h("nav",N(v([["className",z(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[h("div",N(v([["className",z(" ",["hidden","sm:block"])],(m=[h("p",{className:z(" ",["text-sm","text-gray-700"]),children:E.Children.toArray(Array.from(d))})],["children",E.Children.toArray(Array.from(m))])]))),h("div",{className:z(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:E.Children.toArray(Array.from(g))})],["children",E.Children.toArray(Array.from(u))])])))],["children",E.Children.toArray(Array.from(f))])])))],["children",E.Children.toArray(Array.from(c))]))))],["children",E.Children.toArray(Array.from(l))])])))}function lg(e,t){const n=er(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;rf(ht("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function cg(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,f=$f(a,i.Data),u=lg(fn(f),i.LoadNext),m=u[0]|0,d=u[1];let g;const b=Af(m-1,f);g=b==null?new Pc(1,[]):new Pc(0,[b]);const _=fn(i.Data)|0,y=i.LoadNext==null?new Oc(0,[_]):new Oc(1,[]),x=g.tag===1?void 0:_>=1?(m-1)*a+1:void 0,S=g.tag===1?void 0:_>=1?(m-1)*a+fn(g.fields[0]):void 0,L=m===1?void 0:u[2],q=m===fn(f)?i.LoadNext!=null?d:void 0:m<fn(f)?d:void 0;return h("div",N(v([["className","flex flex-col mt-4"],(t=[h("div",N(v([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[h("div",N(v([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[h("div",N(v([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[h("table",N(v([["className","min-w-full divide-y divide-gray-200"],(s=De(D(()=>G(P(sg(c)),D(()=>{let ie,ge;return G((ie=g,ie.tag===1?P(X()):P((ge=Bi(ig,l(ie.fields[0])),h("tbody",{children:E.Children.toArray(Array.from(ge))})))),D(()=>P(ag(fn(c),x,S,y,q,L))))})))),["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function rn(e){const t=e.error,n=U(h("span",{children:[t]}));return h("div",{children:E.Children.toArray(Array.from(n))})}function so(){const e=U(h("span",{children:["Please wait..."]}));return h("div",{children:E.Children.toArray(Array.from(e))})}function ug(e){let t,n,r,o,s,i,a;const l=Fm(e),c=Is(()=>As(Vm,(S,L)=>Um(l,S,L),(S,L)=>{}),void 0,void 0),f=c[0],u=c[1],m=new bs(f.SearchText,f.Sort,f.PageSize);gs((t=[()=>Bm(l,m),S=>{u(new tn(2,[S]))}],_l(t[0],t[1])));const d=S=>{u(new tn(4,[]))},g=f.Data;let b,_,y,x;switch(g.tag){case 0:case 1:{b=2;break}case 3:{b=3,x=g.fields[0];break}default:g.fields[0].tag===1?(b=1,y=g.fields[0].fields[0]):(b=0,_=g.fields[0].fields[0])}switch(b){case 0:{const S=v([h("div",N(v([["className",z(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(n=[h("div",N(v([["className",z(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[Ac(El(f.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",L=>{u(new tn(0,[L]))},d),Hm(d)],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])]))),(o=_,s=v([Xm(f,u),Ym(f,u),nn("Contact"),nn("Website")]),i=new og(o.Accounts,mt(L=>()=>{bn(Lm(l)(m)(L)(u))},o.Token)),a=Il(f.PageSize)|0,h(cg,{columnHeaders:s,renderRowCells:L=>zn(q=>rg(e.partnerId,q),L),pageSize:a,data:i}))]);return h("div",{children:E.Children.toArray(Array.from(S))})}case 1:return h(rn,{error:y});case 2:return h(so,null);default:{const S=Se(x);return h(rn,{error:S})}}}let io=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Rc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new io(1,[t]),new io(0,[n]),new io(2,[yt(o)]),mt(i=>new io(3,[rt(i)]),r)]);return h("superhero-super-configuration",Gt(s,1))}let ao=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Fc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new ao(1,[t]),new ao(0,[n]),new ao(2,[yt(o)]),mt(i=>new ao(3,[rt(i)]),r)]);return h("superhero-benefits-onboarding-configuration",Gt(s,1))}let lo=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Lc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new lo(1,[t]),new lo(0,[n]),new lo(2,[yt(o)]),mt(i=>new lo(3,[rt(i)]),r)]);return h("superhero-bank-details",Gt(s,1))}let co=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Bc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new co(1,[t]),new co(0,[n]),new co(2,[yt(o)]),mt(i=>new co(3,[rt(i)]),r)]);return h("superhero-profile-directory-app",Gt(s,1))}var fg=Object.defineProperty,dg=(e,t,n)=>t in e?fg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ns=(e,t,n)=>(dg(e,typeof t!="symbol"?t+"":t,n),n);let hg=class{constructor(){Ns(this,"current",this.detect()),Ns(this,"handoffState","pending"),Ns(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},uo=new hg,ir=(e,t)=>{uo.isServer?ye(e,t):Ot(e,t)};function Nn(e){let t=Ie(e);return ir(()=>{t.current=e},[e]),t}let Et=function(e){let t=Nn(e);return He.useCallback((...n)=>t.current(...n),[t])};function pg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ar(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return pg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=ar();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Vc(){let[e]=qe(ar);return ye(()=>()=>e.dispose(),[e]),e}function mg(){let e=typeof document>"u";return"useSyncExternalStore"in ms?(t=>t.useSyncExternalStore)(ms)(()=>()=>{},()=>!1,()=>!e):!1}function Uc(){let e=mg(),[t,n]=qe(uo.isHandoffComplete);return t&&uo.isHandoffComplete===!1&&n(!1),ye(()=>{t!==!0&&n(!0)},[t]),ye(()=>uo.handoff(),[]),e?!1:t}function st(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,st),r}let gg=Symbol();function Hc(...e){let t=Ie(e);ye(()=>{t.current=e},[e]);let n=Et(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[gg]))?void 0:n}function fo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var jc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(jc||{}),Rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Rt||{});function zc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??wg;let l=Gc(t,e);if(s)return ho(l,n,r,i,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return ho(u,n,r,i,a)}if(c&1){let{unmount:f=!0,...u}=l;return st(f?0:1,{0(){return null},1(){return ho({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return ho(l,n,r,i,a)}function ho(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...l}=Ds(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let m=!1,d=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(m=!0),b===!0&&d.push(g);m&&(u["data-headlessui-state"]=d.join(" "))}if(s===xe&&Object.keys(Wc(l)).length>0){if(!yn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(b=>` - ${b}`).join(`
32
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(`
33
+ `)].join(`
34
+ `));let m=f.props,d=typeof(m==null?void 0:m.className)=="function"?(...b)=>fo(m==null?void 0:m.className(...b),l.className):fo(m==null?void 0:m.className,l.className),g=d?{className:d}:{};return ls(f,Object.assign({},Gc(f.props,Wc(Ds(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},g))}return h(s,Object.assign({},Ds(l,["ref"]),s!==xe&&c,s!==xe&&u),f)}function wg(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Gc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function Ms(e){var t;return Object.assign(zr(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Wc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ds(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ps=Yn(null);Ps.displayName="OpenClosedContext";var It=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(It||{});function qc(){return Yt(Ps)}function _g({value:e,children:t}){return He.createElement(Ps.Provider,{value:e},t)}function Os(){let e=Ie(!1);return ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yg(e=0){let[t,n]=qe(e),r=Os(),o=Jt(l=>{r.current&&n(c=>c|l)},[t,r]),s=Jt(l=>!!(t&l),[t]),i=Jt(l=>{r.current&&n(c=>c&~l)},[n,r]),a=Jt(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function bg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Rs(e,...t){e&&t.length>0&&e.classList.add(...t)}function Fs(e,...t){e&&t.length>0&&e.classList.remove(...t)}function vg(e,t){let n=ar();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function xg(e,t,n,r){let o=n?"enter":"leave",s=ar(),i=r!==void 0?bg(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=st(o,{enter:()=>t.enter,leave:()=>t.leave}),l=st(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=st(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Fs(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Rs(e,...t.base,...a,...c),s.nextFrame(()=>{Fs(e,...t.base,...a,...c),Rs(e,...t.base,...a,...l),vg(e,()=>(Fs(e,...t.base,...a),Rs(e,...t.base,...t.entered),i()))}),s.dispose}function Cg({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=Os(),a=Vc(),l=Nn(n);ir(()=>{e&&(l.current="enter")},[e]),ir(()=>{let c=ar();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&i.current)return c.dispose(),o.current(l.current),c.add(xg(f,r.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function Ft(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let po=Yn(null);po.displayName="TransitionContext";var kg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(kg||{});function Sg(){let e=Yt(po);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ag(){let e=Yt(mo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let mo=Yn(null);mo.displayName="NestingContext";function go(e){return"children"in e?go(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Zc(e,t){let n=Nn(e),r=Ie([]),o=Os(),s=Vc(),i=Et((d,g=Rt.Hidden)=>{let b=r.current.findIndex(({el:_})=>_===d);b!==-1&&(st(g,{[Rt.Unmount](){r.current.splice(b,1)},[Rt.Hidden](){r.current[b].state="hidden"}}),s.microTask(()=>{var _;!go(r)&&o.current&&((_=n.current)==null||_.call(n))}))}),a=Et(d=>{let g=r.current.find(({el:b})=>b===d);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:d,state:"visible"}),()=>i(d,Rt.Unmount)}),l=Ie([]),c=Ie(Promise.resolve()),f=Ie({enter:[],leave:[],idle:[]}),u=Et((d,g,b)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([_])=>_!==d)),t==null||t.chains.current[g].push([d,new Promise(_=>{l.current.push(_)})]),t==null||t.chains.current[g].push([d,new Promise(_=>{Promise.all(f.current[g].map(([y,x])=>x)).then(()=>_())})]),g==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(g)):b(g)}),m=Et((d,g,b)=>{Promise.all(f.current[g].splice(0).map(([_,y])=>y)).then(()=>{var _;(_=l.current.shift())==null||_()}).then(()=>b(g))});return Kt(()=>({children:r,register:a,unregister:i,onStart:u,onStop:m,wait:c,chains:f}),[a,i,r,u,m,f,c])}function Eg(){}let Ig=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Kc(e){var t;let n={};for(let r of Ig)n[r]=(t=e[r])!=null?t:Eg;return n}function Tg(e){let t=Ie(Kc(e));return ye(()=>{t.current=Kc(e)},[e]),t}let $g="div",Jc=jc.RenderStrategy;function Ng(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:m,leaveFrom:d,leaveTo:g,...b}=e,_=Ie(null),y=Hc(_,t),x=(n=b.unmount)==null||n?Rt.Unmount:Rt.Hidden,{show:S,appear:L,initial:q}=Sg(),[ie,ge]=qe(S?"visible":"hidden"),Le=Ag(),{register:oe,unregister:ke}=Le;ye(()=>oe(_),[oe,_]),ye(()=>{if(x===Rt.Hidden&&_.current){if(S&&ie!=="visible"){ge("visible");return}return st(ie,{hidden:()=>ke(_),visible:()=>oe(_)})}},[ie,_,oe,ke,S,x]);let it=Nn({base:Ft(b.className),enter:Ft(l),enterFrom:Ft(c),enterTo:Ft(f),entered:Ft(u),leave:Ft(m),leaveFrom:Ft(d),leaveTo:Ft(g)}),at=Tg({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),$t=Uc();ye(()=>{if($t&&ie==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,ie,$t]);let ur=q&&!L,On=L&&S&&q,fr=!$t||ur?"idle":S?"enter":"leave",Nt=yg(0),dr=Et(Ze=>st(Ze,{enter:()=>{Nt.addFlag(It.Opening),at.current.beforeEnter()},leave:()=>{Nt.addFlag(It.Closing),at.current.beforeLeave()},idle:()=>{}})),hr=Et(Ze=>st(Ze,{enter:()=>{Nt.removeFlag(It.Opening),at.current.afterEnter()},leave:()=>{Nt.removeFlag(It.Closing),at.current.afterLeave()},idle:()=>{}})),Lt=Zc(()=>{ge("hidden"),ke(_)},Le),sn=Ie(!1);Cg({immediate:On,container:_,classes:it,direction:fr,onStart:Nn(Ze=>{sn.current=!0,Lt.onStart(_,Ze,dr)}),onStop:Nn(Ze=>{sn.current=!1,Lt.onStop(_,Ze,hr),Ze==="leave"&&!go(Lt)&&(ge("hidden"),ke(_))})});let lt=b,pr={ref:y};return On?lt={...lt,className:fo(b.className,...it.current.enter,...it.current.enterFrom)}:sn.current&&(lt.className=fo(b.className,(r=_.current)==null?void 0:r.className),lt.className===""&&delete lt.className),He.createElement(mo.Provider,{value:Lt},He.createElement(_g,{value:st(ie,{visible:It.Open,hidden:It.Closed})|Nt.flags},zc({ourProps:pr,theirProps:lt,defaultTag:$g,features:Jc,visible:ie==="visible",name:"Transition.Child"})))}function Mg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=Ie(null),a=Hc(i,t);Uc();let l=qc();if(n===void 0&&l!==null&&(n=(l&It.Open)===It.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=qe(n?"visible":"hidden"),u=Zc(()=>{f("hidden")}),[m,d]=qe(!0),g=Ie([n]);ir(()=>{m!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),d(!1))},[g,n]);let b=Kt(()=>({show:n,appear:r,initial:m}),[n,r,m]);ye(()=>{if(n)f("visible");else if(!go(u))f("hidden");else{let S=i.current;if(!S)return;let L=S.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&f("hidden")}},[n,u]);let _={unmount:o},y=Et(()=>{var S;m&&d(!1),(S=e.beforeEnter)==null||S.call(e)}),x=Et(()=>{var S;m&&d(!1),(S=e.beforeLeave)==null||S.call(e)});return He.createElement(mo.Provider,{value:u},He.createElement(po.Provider,{value:b},zc({ourProps:{..._,as:xe,children:He.createElement(Yc,{ref:a,..._,...s,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:xe,features:Jc,visible:c==="visible",name:"Transition"})))}function Dg(e,t){let n=Yt(po)!==null,r=qc()!==null;return He.createElement(He.Fragment,null,!n&&r?He.createElement(Ls,{ref:t,...e}):He.createElement(Yc,{ref:t,...e}))}let Ls=Ms(Mg),Yc=Ms(Ng),Pg=Ms(Dg),Og=Object.assign(Ls,{Child:Pg,Root:Ls}),Tt=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function Rg(e){const t=Gt(e,1);return h(Og,t)}function wo(e,t){let n;return h("div",N(v([["className","px-4 py-4 sm:px-0"],(n=[h("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),Je(mt(r=>h("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),X())],["children",E.Children.toArray(Array.from(n))])])))}function we(e,t){let n;return h("div",N(v([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[h("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),h("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",E.Children.toArray(Array.from(n))])])))}function Bs(e){let t,n;const r=e.value,o=e.label,s=er(!1),i=s[0],a=s[1];return xh(()=>{bn(F.Delay(()=>i?F.Bind(Oh(2e3),()=>(a(!1),F.Zero())):F.Zero()))}),h("div",N(v([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[h("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),h("dd",N(v([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[Rg(v([new Tt(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new Tt(2,[i]),new Tt(4,["transition-opacity ease-in duration-100"]),new Tt(5,["opacity-0"]),new Tt(6,["opacity-90"]),new Tt(7,["transition-opacity ease-out duration-500"]),new Tt(8,["opacity-90"]),new Tt(9,["opacity-0"]),new Tt(10,[[h("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),h("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",E.Children.toArray(Array.from(n))]),["onClick",l=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",E.Children.toArray(Array.from(t))])])))}function _o(e,t){let n;const r=v([e,h("div",N(v([["className","mt-2 border-b border-gray-200"],(n=[h("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:E.Children.toArray(Array.from(t))})],["children",E.Children.toArray(Array.from(n))])])))]);return h("div",{children:E.Children.toArray(Array.from(r))})}function Fg(e){let t,n,r,o,s,i;return _o(wo("Partner Information",void 0),v([(t=["ID",ot(e.StreamId)],h(Bs,{label:t[0],value:t[1]})),(n=["Name",Rr(e.Name)],we(n[0],n[1])),(r=["Contact",`${Yi(e.ContactDetails.FirstName)} ${Xi(e.ContactDetails.LastName)}`],we(r[0],r[1])),(o=["Phone",Qi(e.ContactDetails.MobilePhone)],we(o[0],o[1])),(s=["Website",Ji(e.Website)],we(s[0],s[1])),(i=["Notes",Je(Od(e.Notes),"")],we(i[0],i[1]))]))}let Mn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory"]}};class Lg extends re{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Bg extends re{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Vg extends re{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Ug extends re{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function Hg(e){let t,n,r,o,s,i;return kc(e.tag===1?(t=e.fields[0],v([I("Details",T(A(new C(1,[t.partnerId])),1)),I("Accounts",void 0),I("Super",T(A(new C(4,[t.partnerId])),1)),I("Benefits",T(A(new C(5,[t.partnerId])),1)),I("Bank Details",T(A(new C(6,[t.partnerId])),1)),I("Directory",T(A(new C(2,[t.partnerId])),1))])):e.tag===2?(n=e.fields[0].PartnerId,v([I("Details",T(A(new C(1,[n])),1)),I("Accounts",T(A(new C(3,[n])),1)),I("Super",void 0),I("Benefits",T(A(new C(5,[n])),1)),I("Bank Details",T(A(new C(6,[n])),1)),I("Directory",T(A(new C(2,[n])),1))])):e.tag===3?(r=e.fields[0].PartnerId,v([I("Details",T(A(new C(1,[r])),1)),I("Accounts",T(A(new C(3,[r])),1)),I("Super",T(A(new C(4,[r])),1)),I("Benefits",void 0),I("Bank Details",T(A(new C(6,[r])),1)),I("Directory",T(A(new C(2,[r])),1))])):e.tag===4?(o=e.fields[0].PartnerId,v([I("Details",T(A(new C(1,[o])),1)),I("Accounts",T(A(new C(3,[o])),1)),I("Super",T(A(new C(4,[o])),1)),I("Benefits",T(A(new C(5,[o])),1)),I("Bank Details",void 0),I("Directory",T(A(new C(2,[o])),1))])):e.tag===5?(s=e.fields[0].PartnerId,v([I("Details",T(A(new C(1,[s])),1)),I("Accounts",T(A(new C(3,[s])),1)),I("Super",T(A(new C(4,[s])),1)),I("Benefits",T(A(new C(5,[s])),1)),I("Bank Details",T(A(new C(6,[s])),1)),I("Directory",void 0)])):(i=e.fields[0],v([I("Details",void 0),I("Accounts",T(A(new C(3,[pe(ot(i.StreamId))])),1)),I("Super",T(A(new C(4,[pe(ot(i.StreamId))])),1)),I("Benefits",T(A(new C(5,[pe(ot(i.StreamId))])),1)),I("Bank Details",T(A(new C(6,[pe(ot(i.StreamId))])),1)),I("Directory",T(A(new C(2,[pe(ot(i.StreamId))])),1))])))}function jg(e){switch(e.tag){case 1:{const t=e.fields[0];return h(ug,{accessToken:t.accessToken,backendUrl:t.backendUrl,partnerId:t.partnerId})}case 2:return h(Rc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return h(Fc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return h(Lc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return h(Bc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return h(Fg,e.fields[0])}}function Xc(e){let t;const n=e.mode;return h("div",N(U((t=[Hg(n),jg(n)],["children",E.Children.toArray(Array.from(t))]))))}let yo=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function zg(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new yo(1,[t]),new yo(0,[n]),new yo(2,[yt(o)]),mt(i=>new yo(3,[rt(i)]),r)]);return h("superhero-import-app",Gt(s,1))}class Vs extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function Gg(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=hn(s=>s,[new Vs(1,[t]),new Vs(0,[n]),mt(s=>new Vs(2,[rt(s)]),r)]);return h("superhero-salpac-profile-admin",Gt(o,1))}function Wg(e){let t,n,r,o,s,i,a;return _o(wo("Account Information",void 0),v([(t=["ID",e.StreamId],h(Bs,{label:t[0],value:t[1]})),(n=["Name",e.Name],h(Bs,{label:n[0],value:n[1]})),(r=["External ID",Je(e.ExternalId,"")],we(r[0],r[1])),(o=["Channel ID",Je(e.ChannelId,"")],we(o[0],o[1])),(s=["Contact",`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`],we(s[0],s[1])),(i=["Phone",e.ContactDetails.MobilePhone],we(i[0],i[1])),(a=["Email",e.ContactDetails.Email],we(a[0],a[1]))]))}function qg(e){let t,n,r,o,s,i,a;if(e==null)return X();{const l=e;return _o(wo("Legal Entity",void 0),v([(t=["Business Name",l.BusinessName],we(t[0],t[1])),(n=["Business Number",l.BusinessNumber],we(n[0],n[1])),(r=["Address Line 1",l.Address1],we(r[0],r[1])),(o=["Address Line 2",Je(l.Address2,"")],we(o[0],o[1])),(s=["City",l.City],we(s[0],s[1])),(i=["State",Je(l.State,"")],we(i[0],i[1])),(a=["Postcode",l.Postcode],we(a[0],a[1]))]))}}function Zg(e){let t;if(e==null)return X();{const n=e;return _o(wo("Legal Entity",void 0),U((t=["Notes",n],we(t[0],t[1]))))}}function Kg(e){const t=v([Wg(e),qg(e.LegalEntity),Zg(e.Notes)]);return h("div",{children:E.Children.toArray(Array.from(t))})}class on extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration"]}}function Jg(e,t,n){let r,o,s,i,a,l,c,f,u,m,d,g,b,_,y,x,S,L,q,ie,ge,Le,oe,ke,it,at,$t,ur,On,fr,Nt,dr,hr,Lt,sn,lt,pr,Ze,Hs,js,zs,Gs;const V=[e,t];return kc(n.tag===1?v([I("Details",T(A((r=V,new C(7,[r[0],r[1]]))),1)),I("Directory",void 0),I("Imports",T(A((o=V,new C(9,[o[0],o[1]]))),1)),I("Super",T(A((s=V,new C(10,[s[0],s[1]]))),1)),I("Benefits",T(A((i=V,new C(11,[i[0],i[1]]))),1)),I("Bank Details",T(A((a=V,new C(12,[a[0],a[1]]))),1)),I("Salary Packaging",T(A((l=V,new C(13,[l[0],l[1]]))),1))]):n.tag===2?v([I("Details",T(A((c=V,new C(7,[c[0],c[1]]))),1)),I("Directory",T(A((f=V,new C(8,[f[0],f[1]]))),1)),I("Imports",void 0),I("Super",T(A((u=V,new C(10,[u[0],u[1]]))),1)),I("Benefits",T(A((m=V,new C(11,[m[0],m[1]]))),1)),I("Bank Details",T(A((d=V,new C(12,[d[0],d[1]]))),1)),I("Salary Packaging",T(A((g=V,new C(13,[g[0],g[1]]))),1))]):n.tag===3?v([I("Details",T(A((b=V,new C(7,[b[0],b[1]]))),1)),I("Directory",T(A((_=V,new C(8,[_[0],_[1]]))),1)),I("Imports",T(A((y=V,new C(9,[y[0],y[1]]))),1)),I("Super",void 0),I("Benefits",T(A((x=V,new C(11,[x[0],x[1]]))),1)),I("Bank Details",T(A((S=V,new C(12,[S[0],S[1]]))),1)),I("Salary Packaging",T(A((L=V,new C(13,[L[0],L[1]]))),1))]):n.tag===4?v([I("Details",T(A((q=V,new C(7,[q[0],q[1]]))),1)),I("Directory",T(A((ie=V,new C(8,[ie[0],ie[1]]))),1)),I("Imports",T(A((ge=V,new C(9,[ge[0],ge[1]]))),1)),I("Super",T(A((Le=V,new C(10,[Le[0],Le[1]]))),1)),I("Benefits",void 0),I("Bank Details",T(A((oe=V,new C(12,[oe[0],oe[1]]))),1)),I("Salary Packaging",T(A((ke=V,new C(13,[ke[0],ke[1]]))),1))]):n.tag===5?v([I("Details",T(A((it=V,new C(7,[it[0],it[1]]))),1)),I("Directory",T(A((at=V,new C(8,[at[0],at[1]]))),1)),I("Imports",T(A(($t=V,new C(9,[$t[0],$t[1]]))),1)),I("Super",T(A((ur=V,new C(10,[ur[0],ur[1]]))),1)),I("Benefits",T(A((On=V,new C(11,[On[0],On[1]]))),1)),I("Bank Details",void 0),I("Salary Packaging",T(A((fr=V,new C(13,[fr[0],fr[1]]))),1))]):n.tag===6?v([I("Details",T(A((Nt=V,new C(7,[Nt[0],Nt[1]]))),1)),I("Directory",T(A((dr=V,new C(8,[dr[0],dr[1]]))),1)),I("Imports",T(A((hr=V,new C(9,[hr[0],hr[1]]))),1)),I("Super",T(A((Lt=V,new C(10,[Lt[0],Lt[1]]))),1)),I("Benefits",T(A((sn=V,new C(11,[sn[0],sn[1]]))),1)),I("Bank Details",T(A((lt=V,new C(12,[lt[0],lt[1]]))),1)),I("Salary Packaging",void 0)]):v([I("Details",void 0),I("Directory",T(A((pr=V,new C(8,[pr[0],pr[1]]))),1)),I("Imports",T(A((Ze=V,new C(9,[Ze[0],Ze[1]]))),1)),I("Super",T(A((Hs=V,new C(10,[Hs[0],Hs[1]]))),1)),I("Benefits",T(A((js=V,new C(11,[js[0],js[1]]))),1)),I("Bank Details",T(A((zs=V,new C(12,[zs[0],zs[1]]))),1)),I("Salary Packaging",T(A((Gs=V,new C(13,[Gs[0],Gs[1]]))),1))]))}function Yg(e,t,n){switch(t.tag){case 1:{const r=e.accountDetails;return h(Bc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const r=e.accountDetails;return h(zg,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const r=e.accountDetails;return h(Rc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 4:{const r=e.accountDetails;return h(Fc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 5:{const r=e.accountDetails;return h(Lc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 6:return h(Gg,{accountId:e.accountDetails[1],backendUrl:e.backendUrl,accessToken:e.accessToken});default:{let r,o,s;switch(n.tag){case 0:case 1:{r=2;break}case 3:{r=3,s=n.fields[0];break}default:n.fields[0].tag===0?(r=0,o=n.fields[0].fields[0]):r=1}switch(r){case 0:return h(Kg,o);case 1:return h(rn,{error:"There was an error retrieving account "});case 2:return h(so,null);default:{const i=Se(s);return h(rn,{error:i})}}}}}function Xg(e){let t,n;const r=e.account,o=e.mode,s=e.props;return h("div",N(U((t=[(n=s.accountDetails,Jg(n[0],n[1],o)),Yg(s,o,r)],["children",E.Children.toArray(Array.from(t))]))))}class Dn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Started","Finished","Failed"]}}let bo=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateAccountId","Search","SearchSuccess","SearchFailure"]}},Pn=class extends re{constructor(t,n){super(),this.AccountId=t,this.AccountDetails=n}};function Qg(){return[new Pn(void 0,new Dn(0,[])),Oe()]}function ew(e,t,n,r){switch(n.tag){case 1:{const o=r.AccountId;if(o!=null){const s=o;return[new Pn(r.AccountId,new Dn(1,[])),Dl(()=>gm(e,t,s),void 0,i=>new bo(2,[i]),i=>new bo(3,[i]))]}else return[new Pn(r.AccountId,new Dn(3,["Account Id is required"])),Oe()]}case 2:{const o=n.fields[0];return[new Pn(r.AccountId,new Dn(2,[o])),Ce(s=>{Re(U(`#/account-registry/partners/${o.PartnerId}/accounts/${o.AccountId}`),1,2)})]}case 3:return[new Pn(r.AccountId,new Dn(3,["Account not found"])),Oe()];default:return[new Pn(bt(n.fields[0]),r.AccountDetails),Oe()]}}const tw=h("h3",{className:"text-base font-semibold text-gray-900",id:"modal-title",children:"Account Search"}),nw=h("div",N(v([["className","mt-2"],(()=>{let e;const t=[h("p",N(v([["className","text-sm text-gray-500 whitespace-pre-line"],(e=`Enter an Account Id below to search for an account.
35
+
36
+ If the account is found you will be redirected to the account details page.`,["children",e])])))];return["children",E.Children.toArray(Array.from(t))]})()])));function rw(e){let t,n,r,o;return h("div",N(v([["className","absolute right-0 top-0 hidden pr-4 pt-4 sm:block"],(t=[h("button",N(v([(n="rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",["className",n]),["type","button"],["onClick",e],(r=[h("span",{className:"sr-only",children:"Close"}),h("svg",N(v([["className","h-6 w-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],(o=U(h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})),["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(t))])])))}function ow(e,t,n,r){let o,s,i;return h("div",N(v([["className","mt-5 sm:flex sm:items-center"],(o=[h("div",N(v([["className","w-full sm:max-w-xs"],(s=[h("label",{className:"sr-only",for:"account-id",children:"Account Id"}),h("input",N(De(D(()=>G(P(["id","account-id"]),D(()=>G(P(["autoComplete","off"]),D(()=>{let a;return G(P((a="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6",["className",a])),D(()=>G(P(["placeholder","Account Id"]),D(()=>G(P(["disabled",!n]),D(()=>G(P(["onChange",l=>{e(l.target.value)}]),D(()=>{const l=r;return l==null?Pr():P(["value",Pi(l)])}))))))))}))))))))],["children",E.Children.toArray(Array.from(s))])]))),h("button",N(v([["className",z(" ",["mt-3 inline-flex w-full items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600","sm:ml-3 sm:mt-0 sm:w-auto","disabled:opacity-50"])],(i=De(D(()=>P(n?h("span",{children:["Search"]}):h("span",{children:["Searching..."]})))),["children",E.Children.toArray(Array.from(i))]),["onClick",t],["disabled",!n]])))],["children",E.Children.toArray(Array.from(o))])])))}function sw(e){let t,n,r,o,s,i,a;const l=e.closeModal,c=e.accessToken,f=e.baseUrl,u=Is(()=>As(Qg,(y,x)=>ew(f,c,y,x),(y,x)=>{}),void 0,void 0),m=u[0],d=u[1],g=ow(y=>{d(new bo(0,[y]))},y=>{d(new bo(1,[]))},!he(m.AccountDetails,new Dn(1,[])),m.AccountId);let b;const _=m.AccountDetails;return b=_.tag===3?h("div",{className:z(" ",["mt-2 text-sm text-red-600"]),children:_.fields[0]}):X(),h("div",N(v([["className","relative z-10"],["role",z(" ",["dialog"])],(t=[h("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),h("div",N(v([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(n=[h("div",N(v([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],["onClick",l],(r=[h("div",N(v([(o="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",o]),["onClick",y=>{y.preventDefault(),y.stopPropagation()}],(s=[rw(l),h("div",N(v([["className","sm:flex sm:items-start"],(i=[h("div",N(v([(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",["className",a]),["children",E.Children.toArray([Mc])]]))),h("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:E.Children.toArray([tw,nw,g,b])})],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function iw(e,t){return Ti(n=>{const r=e.toLocaleLowerCase();return ot(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:Rr(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function aw(e){const t=Tf(l=>Rr(l.Name).toLocaleLowerCase(),e.partnerList,{Compare:wr}),n=er(t),r=er(""),o=er(!1),s=o[1],i=v([nn("ID"),nn("Name"),nn("Contact"),nn("Phone"),nn("Website")]),a=De(D(()=>G(o[0]?P(h(sw,{baseUrl:e.backendUrl,accessToken:e.accessToken,closeModal:l=>{s(!1)}})):P(X()),D(()=>{let l;return G(P(h("div",N(v([["className","flex items-end place-content-between"],(l=[Ac(r[0],"Partner ID or Name",c=>{r[1](c),n[1](iw(c,t))},()=>{}),h("button",{className:z(" ",["max-h-10 inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"]),type:"button",onClick:c=>{s(!0)},children:E.Children.toArray(["Account Search ",Mc])})],["children",E.Children.toArray(Array.from(l))])])))),D(()=>P(qm(i,zn(c=>{let f;const u=ot(c.StreamId);return v([(f=[T(A(new C(1,[pe(u)])),1),u],Wm(f[0],f[1])),oo(["text-gray-500"],Rr(c.Name)),oo(["text-gray-500"],`${Yi(c.ContactDetails.FirstName)} ${Xi(c.ContactDetails.LastName)}`),oo(["text-gray-500"],Qi(c.ContactDetails.MobilePhone)),oo(["text-gray-500"],Ji(c.Website))])},n[0])))))}))));return h("div",{children:E.Children.toArray(Array.from(a))})}const lw=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-8{bottom:2rem}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.order-none{order:0}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-10{max-height:2.5rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[45px\\]{width:45px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.w-screen{width:100vw}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-md{max-width:28rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xs{max-width:20rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-sm\\/6{font-size:.875rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,cw=Se(lw);function Us(){return(Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var uw=["context","children"];function fw(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)o.indexOf(s=l[i])>=0||(a[s]=r[s]);return a}(e,uw);return Qo(t,n)}function dw(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(fw,Us({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[Qc(a[i].name)]=a[i].value);for(i=l.length;i--;){var c=t(l[i],null),f=l[i].slot;f?s[f]=h(eu,{name:f},c):o[i]=c}var u=r?h(eu,null,o):o;return h(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Xo:Pt)(this._vdom,this._root)}function Qc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function hw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Qc(e)]=n,this._vdom=Qo(this._vdom,r),Pt(this._vdom,this._root)}}function pw(){Pt(this._vdom=null,this._root)}function eu(e,t){var n=this;return h("slot",Us({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function mw(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=dw,o.prototype.attributeChangedCallback=hw,o.prototype.disconnectedCallback=pw,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function gw(e,t){mw(e,t,void 0,{shadow:!0})}class lr extends re{constructor(t,n,r){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r}}class cr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function ww(){const e=Nl(vl(window.location.hash,1)),t=e.tag===14?Ml(new C(0,[])):Oe();return[new lr(new J(0,[]),E0(),e),t]}function _w(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=Dl(e,r,s=>new cr(2,[r,new p(0,[s])]),s=>new cr(2,[r,new p(1,["Failed to retrieve account name"])]));return[new lr(n.Partners,Tl(n.Accounts,r,new J(1,[])),n.CurrentPage),o]}case 2:return[new lr(n.Partners,Tl(n.Accounts,t.fields[0],new J(2,[t.fields[1]])),n.CurrentPage),Oe()];case 0:{const r=t.fields[0];return r.tag===14?[n,Ml(r)]:[new lr(n.Partners,n.Accounts,r),Oe()]}default:return[new lr(t.fields[0],n.Accounts,n.CurrentPage),Oe()]}}function yw(e){let t,n;const r=Is(()=>As(ww,(y,x)=>_w(S=>{const L=A0(S);return hm(e.backendUrl,e.accessToken,L[0],L[1])},y,x),(y,x)=>{}),void 0,void 0),o=r[0],s=r[1];gs(_l(()=>dm(e.backendUrl,e.accessToken),y=>{s(new cr(3,[y]))}));const i=y=>{let x;const S=o.Partners;switch(S.tag){case 0:return new J(0,[]);case 1:return new J(1,[]);case 3:return new J(3,[S.fields[0]]);default:return S.fields[0].tag===1?new J(2,[new p(1,[pt(pi("Unknown partner: %A%P()",[y]))])]):new J(2,[(x=$l(S.fields[0].fields[0],y),x==null?new p(1,[pt(pi("Unknown partner: %A%P()",[y]))]):new p(0,[x.Name]))])}},a=y=>h(sr,{page:o.CurrentPage,partner:{Id:y,Name:i(y)}}),l=(y,x)=>{const S=h(Xc,{mode:x});return[a(y),S]},c=(y,x)=>{let S,L,q;const ie=y[0],ge=y[1];let Le,oe;const ke=[ie,ge];oe=S0(ke[0],ke[1]),Le=ff(I0(o.Accounts,oe),()=>(s(new cr(1,[oe])),new J(0,[])));let it;const at={accessToken:e.accessToken,accountDetails:[ie,ge],backendUrl:e.backendUrl};return it=h(Xg,{props:at,mode:x,account:Le}),[(S=[ie,ge,Le],L=S[0],h(sr,(q={Id:L,Name:i(L)},{account:{Id:S[1],Name:N0($t=>Mi($t.Name),S[2])},page:o.CurrentPage,partner:Mo(q)}))),it]};let f;const u=o.Partners;let m,d,g,b;switch(u.tag){case 2:{u.fields[0].tag===1?(m=2,g=u.fields[0].fields[0]):(m=1,d=u.fields[0].fields[0]);break}case 3:{m=3,b=u.fields[0];break}default:m=0}switch(m){case 0:{f=[h(so,null),h(so,null)];break}case 1:{const y=o.CurrentPage;switch(y.tag){case 1:{const x=y.fields[0],S=a(x),L=$l(d,x);f=L==null?[S,h(rn,{error:"Unknown Partner"})]:[S,(t=new Mn(0,[L]),h(Xc,{mode:t}))];break}case 3:{const x=y.fields[0];f=l(x,new Mn(1,[{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:x}]));break}case 4:{const x=y.fields[0];f=l(x,new Mn(2,[new Lg(x,e.backendUrl,e.accessToken)]));break}case 5:{const x=y.fields[0];f=l(x,new Mn(3,[new Bg(x,e.backendUrl,e.accessToken)]));break}case 6:{const x=y.fields[0];f=l(x,new Mn(4,[new Vg(x,e.backendUrl,e.accessToken)]));break}case 2:{const x=y.fields[0];f=l(x,new Mn(5,[new Ug(x,e.backendUrl,e.accessToken)]));break}case 7:{f=c([y.fields[0],y.fields[1]],new on(0,[]));break}case 8:{f=c([y.fields[0],y.fields[1]],new on(1,[]));break}case 9:{f=c([y.fields[0],y.fields[1]],new on(2,[]));break}case 10:{f=c([y.fields[0],y.fields[1]],new on(3,[]));break}case 11:{f=c([y.fields[0],y.fields[1]],new on(4,[]));break}case 12:{f=c([y.fields[0],y.fields[1]],new on(5,[]));break}case 13:{f=c([y.fields[0],y.fields[1]],new on(6,[]));break}default:f=[h(sr,{page:o.CurrentPage}),h(aw,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerList:d})]}break}case 2:{f=[h(sr,{page:o.CurrentPage}),h(rn,{error:g})];break}default:f=[h(sr,{page:o.CurrentPage}),(n=Se(b),h(rn,{error:n}))]}const _=v([h("style",{children:[cw]}),g0({onUrlChanged:y=>{s(new cr(0,[Nl(y)]))},application:h(xe,{},f[0],f[1])})]);return h("div",{children:E.Children.toArray(Array.from(_))})}gw(e=>h(yw,e),"superhero-account-registry")})();
package/package.json CHANGED
@@ -1,31 +1,37 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "2.30.12",
3
+ "version": "2.30.47",
4
4
  "description": "Flare Superhero Account Registry Component",
5
- "license": "SEE LICENSE IN LICENSE.md",
5
+ "license": "UNLICENSED",
6
6
  "files": [
7
7
  "dist/"
8
8
  ],
9
9
  "scripts": {
10
- "start": "dotnet fable watch ./ --run webpack serve --mode development",
11
- "build": "dotnet fable ./ && webpack --mode production"
10
+ "postinstall": "dotnet tool restore",
11
+ "start": "dotnet fable watch src -s --runFast vite",
12
+ "build": "dotnet fable src --run vite build",
13
+ "clean": "dotnet fable clean src --yes"
12
14
  },
13
15
  "dependencies": {
14
- "@headlessui/react": "^1.2.0",
16
+ "@headlessui/react": "^1.7.8",
15
17
  "@heroicons/react": "^1.0.1",
16
- "preact": "^10.5.12",
17
- "preact-custom-element": "^4.2.1"
18
+ "preact": "^10.22.0",
19
+ "preact-custom-element": "^4.3.0",
20
+ "use-sync-external-store": "^1.2.2"
18
21
  },
19
22
  "devDependencies": {
20
- "css-loader": "^5.0.1",
21
- "fibers": "^5.0.0",
22
- "html-webpack-plugin": "^4.5.2",
23
- "mini-css-extract-plugin": "^1.3.5",
24
- "node-sass": "^5.0.0",
25
- "sass": "^1.32.6",
26
- "sass-loader": "^10.1.1",
27
- "webpack": "^4.46.0",
28
- "webpack-cli": "^4.5.0",
29
- "webpack-dev-server": "^3.11.2"
23
+ "@preact/preset-vite": "^2.8.2",
24
+ "@tailwindcss/forms": "^0.5.7",
25
+ "autoprefixer": "^10.4.19",
26
+ "postcss": "^8.4.38",
27
+ "tailwindcss": "^3.4.14",
28
+ "vite": "^5.4.10"
29
+ },
30
+ "optionalDependencies": {
31
+ "@esbuild/linux-x64": "^0.21.5",
32
+ "@rollup/rollup-linux-x64-gnu": "^4.9.5"
33
+ },
34
+ "engines": {
35
+ "node": ">=18"
30
36
  }
31
37
  }
package/LICENCE DELETED
@@ -1 +0,0 @@
1
- Flare HR Pty Ltd © 2015-2021
package/README.md DELETED
@@ -1,27 +0,0 @@
1
- # AccountRegistry.AdminUI
2
-
3
- ## Installation
4
-
5
- To install the project's dependencies, run the following commands:
6
-
7
- ```bash
8
- dotnet tool restore
9
- dotnet restore
10
- npm install
11
- ```
12
-
13
- ## Development
14
-
15
- To start the development server, run the following commands:
16
-
17
- ```bash
18
- npm start
19
- ```
20
-
21
- ## Build
22
-
23
- To build the project, run the following commands:
24
-
25
- ```bash
26
- npm run build
27
- ```