@flarehr/superhero-account-registry 1.14.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}n.r(t),n.d(t,"State",(function(){return y$})),n.d(t,"State$reflection",(function(){return v$})),n.d(t,"Msg",(function(){return b$})),n.d(t,"Msg$reflection",(function(){return C$})),n.d(t,"StateModule_init",(function(){return E$})),n.d(t,"StateModule_update",(function(){return x$})),n.d(t,"AccountRegistryComponent",(function(){return S$}));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 l(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function a(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function $(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function p(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function _(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 t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=_(e[r]);return m(n)}(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=>_(e)))}return p(d.id(e))}}function g(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 w(e,t){return g(e,t,y)}function y(e,t){return e===t||(null==e?null==t:null!=t&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):r(e)?r(t)&&w(e,t):e instanceof Date?t instanceof Date&&0===v(e,t):Object.getPrototypeOf(e).constructor===Object&&function(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]||!y(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function v(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+$(e),r=t.getTime()+$(t)),n===r?0:n<r?-1:1}function b(e,t){return e===t?0:e<t?-1:1}function C(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,E)}function E(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):r(e)?r(t)?C(e,t):-1:e instanceof Date?t instanceof Date?v(e,t):-1:Object.getPrototypeOf(e).constructor===Object?function(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,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=E(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function x(e,t,n){return e(t,n)>0?t:n}function S(e){const t={};for(const n of e)t[n[0]]=n[1];return t}d.idMap=new WeakMap,d.count=0;function I(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,u)=>t(e)(n)(r)(o)(i)(s)(u);break;case 8:n=(e,n,r,o,i,s,u,c)=>t(e)(n)(r)(o)(i)(s)(u)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function N(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>u=>t(e,n,r,o,i,s,u);case 8:return e=>n=>r=>o=>i=>s=>u=>c=>t(e,n,r,o,i,s,u,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function k(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=N(e,n)),t>1&&(n=I(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function P(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=P(r);else{if(100===t){n+="; ...";break}n+="; "+P(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+P(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class A{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="",t=!0;if(1===this.fields.length){const n=P(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>P(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>_(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&w(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 M(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function T(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+P(t)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>_(e)))}function O(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!y(e[n[r]],t[n[r]]))return!1;return!0}return!1}function R(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=E(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class L{toJSON(){return M(this)}toString(){return T(this)}GetHashCode(){return D(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class B{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class U{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class H{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Q(this)}GetHashCode(){return G(this)}Equals(e){return j(this,e)}}function F(e){return null!=e.generics?e.generics:[]}function G(e){return m([h(e.fullname),...F(e).map(G)])}function j(e,t){return""===e.fullname?""===t.fullname&&g(se(e),se(t),([e,t],[n,r])=>e===n&&j(t,r)):e.fullname===t.fullname&&g(F(e),F(t),j)}function W(e,t,n,r){return new H(e,t,n,r)}function V(e,t,n,r){return new H(e,t,n,void 0,r)}function q(e,t,n,r){const o=new H(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new U(o,n,e[n],t))});return o}function z(e){return new H("Microsoft.FSharp.Core.FSharpOption`1",[e])}function K(e){return new H("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Z=new H("System.Object"),J=(new H("Microsoft.FSharp.Core.Unit"),new H("System.Char"),new H("System.String")),X=(new H("System.Boolean"),new H("System.SByte"),new H("System.Byte"),new H("System.Int16"),new H("System.UInt16"),new H("System.Int32"));new H("System.UInt32"),new H("System.Single"),new H("System.Double"),new H("System.Decimal");function Y(e){if(Array.isArray(e))return e[0];if(e instanceof U)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Q(e){const t=null==e.generics||ee(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>Q(e)).join(",")+"]":e.fullname}function ee(e){return e.fullname.endsWith("[]")}function te(e){return null!=e.enumCases&&e.enumCases.length>0}function ne(e){if(te(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function re(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(e.fullname+" is not an enum type")}function oe(e,t){const n=parseInt(t,10);return re(e,isNaN(n)?t:n)[1]}function ie(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function se(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function ue(e){return e.fullname.startsWith("System.Tuple")&&!ee(e)}function ce(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}class le extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Name"]}}function ae(){return q("BasicModels.Name",[],le,()=>[[["Item",J]]])}class $e extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Website"]}}function fe(){return q("BasicModels.Website",[],$e,()=>[[["Item",J]]])}class de extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FirstName"]}}class he extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LastName"]}}class pe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class me extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["MobilePhone"]}}class _e extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function ge(){return V("BasicModels.ContactDetails",[],_e,()=>[["FirstName",q("BasicModels.FirstName",[],de,()=>[[["Item",J]]])],["LastName",q("BasicModels.LastName",[],he,()=>[[["Item",J]]])],["Email",q("BasicModels.Email",[],pe,()=>[[["Item",J]]])],["MobilePhone",q("BasicModels.MobilePhone",[],me,()=>[[["Item",J]]])]])}class we extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Notes"]}}function ye(){return q("BasicModels.Notes",[],we,()=>[[["Item",J]]])}class ve extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerKeyHash"]}}function be(){return q("BasicModels.PartnerKeyHash",[],ve,()=>[[["Item",J]]])}class Ce extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ApiKeyHash"]}}function Ee(){return q("BasicModels.ApiKeyHash",[],Ce,()=>[[["Item",J]]])}class xe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerId"]}}function Se(){return q("BasicModels.PartnerId",[],xe,()=>[[["Item",J]]])}class Ie extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AccountId"]}}class Ne extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BusinessName"]}}class ke extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BusinessNumber"]}}class Pe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Address1"]}}class Ae extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Address2"]}}class Me extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["City"]}}class Te extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Postcode"]}}class De extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["State"]}}class Oe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}class Re extends L{constructor(e,t,n,r,o,i,s,u){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u}}var Le;function Be(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 Ue(e,t,n){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.")}}(n=n||function(e,t){if(t&Le.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function He(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Ue(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Be(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Be(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function Fe(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Le||(Le={}));const Ge=Symbol("numeric");function je(e){return"number"==typeof e||(null==e?void 0:e[Ge])}function We(e,t){return"number"==typeof e?e*t:e[Ge]().multiply(t)}function Ve(e,t){return"number"==typeof e?e.toFixed(t):e[Ge]().toFixed(t)}function qe(e,t){return"number"==typeof e?e.toPrecision(t):e[Ge]().toPrecision(t)}function ze(e,t){return"number"==typeof e?e.toExponential(t):e[Ge]().toExponential(t)}function Ke(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Ge]().toHex()}var Ze=null;try{Ze=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 Je(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Xe(e){return!0===(e&&e.__isLong__)}Je.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Je.prototype.Equals=function(e){return Et(this,e)},Je.prototype.CompareTo=function(e){return Nt(this,e)},Je.prototype.toString=function(e){return yt(this,e)},Je.prototype.toJSON=function(){return yt(this)},Je.prototype[Ge]=function(){const e=this;return{multiply:t=>Mt(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>yt(e.unsigned?e:Ut(Bt(e),!0),16)}},Je.prototype.__isLong__,Object.defineProperty(Je.prototype,"__isLong__",{value:!0});var Ye={},Qe={};function et(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Qe[e])?r:(n=nt(e,(0|e)<0?-1:0,!0),o&&(Qe[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ye[e])?r:(n=nt(e,e<0?-1:0,!1),o&&(Ye[e]=n),n)}function tt(e,t){if(isNaN(e))return t?$t:at;if(t){if(e<0)return $t;if(e>=ut)return mt}else{if(e<=-ct)return _t;if(e+1>=ct)return pt}return e<0?kt(tt(-e,t)):nt(e%st|0,e/st|0,t)}function nt(e,t,n){return new Je(e,t,n)}var rt=Math.pow;function ot(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return at;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return kt(ot(e.substring(1),t,n));for(var o=tt(rt(n,8)),i=at,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),n);if(u<8)i=Pt(Mt(i,tt(rt(n,u))),tt(c));else i=Pt(i=Mt(i,o),tt(c))}return i.unsigned=t,i}function it(e,t){return"number"==typeof e?tt(e,t):"string"==typeof e?ot(e,t):nt(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var st=4294967296,ut=st*st,ct=ut/2,lt=et(1<<24),at=et(0),$t=et(0,!0),ft=et(1),dt=et(1,!0),ht=et(-1),pt=nt(-1,2147483647,!1),mt=nt(-1,-1,!0),_t=nt(0,-2147483648,!1);function gt(e){return e.unsigned?e.low>>>0:e.low}function wt(e){return e.unsigned?(e.high>>>0)*st+(e.low>>>0):e.high*st+(e.low>>>0)}function yt(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(vt(e))return"0";if(bt(e)){if(Et(e,_t)){var n=tt(t),r=Tt(e,n),o=At(Mt(r,n),e);return yt(r,t)+gt(o).toString(t)}return"-"+yt(kt(e),t)}for(var i=tt(rt(t,6),e.unsigned),s=e,u="";;){var c=Tt(s,i),l=(gt(At(s,Mt(c,i)))>>>0).toString(t);if(vt(s=c))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function vt(e){return 0===e.high&&0===e.low}function bt(e){return!e.unsigned&&e.high<0}function Ct(e){return 1==(1&e.low)}function Et(e,t){return Xe(t)||(t=it(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function xt(e,t){return Nt(e,t)<0}function St(e,t){return Nt(e,t)>0}function It(e,t){return Nt(e,t)>=0}function Nt(e,t){if(Xe(t)||(t=it(t)),Et(e,t))return 0;var n=bt(e),r=bt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:bt(At(e,t))?-1:1}function kt(e){return!e.unsigned&&Et(e,_t)?_t:Pt(Dt(e),ft)}function Pt(e,t){Xe(t)||(t=it(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=0,a=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,a+=($+=o+c)>>>16,l+=(a+=r+u)>>>16,l+=n+s,nt(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function At(e,t){return Xe(t)||(t=it(t)),Pt(e,kt(t))}function Mt(e,t){if(vt(e))return e.unsigned?$t:at;if(Xe(t)||(t=it(t)),Ze)return nt(Ze.mul(e.low,e.high,t.low,t.high),Ze.get_high(),e.unsigned);if(vt(t))return e.unsigned?$t:at;if(Et(e,_t))return Ct(t)?_t:at;if(Et(t,_t))return Ct(e)?_t:at;if(bt(e))return bt(t)?Mt(kt(e),kt(t)):kt(Mt(kt(e),t));if(bt(t))return kt(Mt(e,kt(t)));if(xt(e,lt)&&xt(t,lt))return tt(wt(e)*wt(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=65535&t.low,a=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*c)>>>16,a+=($+=r*l)>>>16,$&=65535,a+=($+=o*c)>>>16,$&=65535,a+=($+=i*u)>>>16,a+=n*l+r*c+o*u+i*s,nt((f&=65535)<<16|(d&=65535),(a&=65535)<<16|($&=65535),e.unsigned)}function Tt(e,t){if(Xe(t)||(t=it(t)),vt(t))throw Error("division by zero");var n,r,o;if(Ze)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?nt((e.unsigned?Ze.div_u:Ze.div_s)(e.low,e.high,t.low,t.high),Ze.get_high(),e.unsigned):e;if(vt(e))return e.unsigned?$t:at;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:nt(e.low,e.high,!0)}(t)),St(t,e))return $t;if(St(t,Lt(e,1)))return dt;o=$t}else{if(Et(e,_t))return Et(t,ft)||Et(t,ht)?_t:Et(t,_t)?ft:Et(n=Ot(Tt(Rt(e,1),t),1),at)?bt(t)?ft:ht:o=Pt(n,Tt(r=At(e,Mt(t,n)),t));if(Et(t,_t))return e.unsigned?$t:at;if(bt(e))return bt(t)?Tt(kt(e),kt(t)):kt(Tt(kt(e),t));if(bt(t))return kt(Tt(e,kt(t)));o=at}for(r=e;It(r,t);){n=Math.max(1,Math.floor(wt(r)/wt(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:rt(2,i-48),u=tt(n),c=Mt(u,t);bt(c)||St(c,r);)c=Mt(u=tt(n-=s,e.unsigned),t);vt(u)&&(u=ft),o=Pt(o,u),r=At(r,c)}return o}function Dt(e){return nt(~e.low,~e.high,e.unsigned)}function Ot(e,t){return Xe(t)&&(t=gt(t)),0==(t&=63)?e:t<32?nt(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):nt(0,e.low<<t-32,e.unsigned)}function Rt(e,t){return Xe(t)&&(t=gt(t)),0==(t&=63)?e:t<32?nt(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):nt(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Lt(e,t){if(Xe(t)&&(t=gt(t)),0===(t&=63))return e;var n=e.high;return t<32?nt(e.low>>>t|n<<32-t,n>>>t,e.unsigned):nt(32===t?n:n>>>t-32,0,e.unsigned)}function Bt(e,t){return t?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(e):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(e)}function Ut(e,t,n){return n?function(e,t){return new Je(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new Je(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}const Ht=Pt,Ft=Mt,Gt=Tt,jt=function(e,t){return Xe(t)||(t=it(t)),Ze?nt((e.unsigned?Ze.rem_u:Ze.rem_s)(e.low,e.high,t.low,t.high),Ze.get_high(),e.unsigned):At(e,Mt(Tt(e,t),t))},Wt=kt,Vt=function(e,t){return Xe(t)||(t=it(t)),nt(e.low&t.low,e.high&t.high,e.unsigned)},qt=Nt,zt=nt,Kt=gt,Zt=wt;function Jt(e,t,n){let r=e,o=0;switch(n){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 nt(r,o>>31,t)}const Xt=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Yt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+a(~~(e/36e5),2)+":"+a(n,2)}function Qt(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function en(e,t,n){return t.replace(/(\w)\1*/g,t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r})}function tn(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Yt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return en(i,t,!0);switch(t){case"D":case"d":return Qt(i,"first");case"T":case"t":return Qt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Yt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function nn(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return en(e,t,n);switch(t){case"D":case"d":return n?Qt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Qt(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(t?Yt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function rn(e,t,n){return null!=e.offset?tn(e,t):nn(e,t)}function on(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function sn(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 t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function un(e,t){try{return t.contents=function(e,t=!1){const n=sn(e),r=Xt.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return on(n.getTime(),o)}(e),!0}catch(e){return!1}}function cn(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function ln(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function an(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=cn(t,n),!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 $n=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,fn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,dn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function hn(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function pn(e){return{input:e,cont:(t=e,e=>$n.test(t)?function e(t,n,r=new B(null)){return(...o)=>{let i=t;for(const e of o)i=yn(i,e,r);return $n.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function mn(e,t){let n=0;return e.replace(fn,(e,r,o,i,s,u)=>wn(t[n++],r,o,i,s,u)).replace(/%%/g,"%")}function _n(e,t){return"string"==typeof t?e(t):t.cont(e)}function gn(e){return _n(e=>e,e)}function wn(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",je(e))switch("x"!==i.toLowerCase()&&(hn(e,0)?(e=We(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=Ve(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?qe(e,o):qe(e);break;case"e":case"E":e=null!=o?ze(e,o):ze(e);break;case"x":e=Ke(e);break;case"X":e=Ke(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?rn(e):P(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=En(e,r-s.length,i,o)):En(s+e,r,i,o)}return t?t+e:e}function yn(e,t,n){return e.replace($n,(e,r,o,i,s,u)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return wn(t,r,o,i,s,u).replace(/%/g,"%%")})}function vn(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(dn,(e,n,r,o,i,s)=>{let u=t[n];if(je(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=Ve(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?qe(u,i):qe(u);break;case"e":case"E":u=null!=i?ze(u,i):ze(u);break;case"p":case"P":i=null!=i?i:2,u=Ve(We(u,100),i)+" %";break;case"d":case"D":u=null!=i?En(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?En(Ke(u),i,"0"):Ke(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(hn(u,0)&&(u=We(u,-1),e="-"),u=Ve(u,null!=r?r.length-1:0),En(u,(n||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?rn(u,s||o):P(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=En(String(u),Math.abs(r)," ",r<0)),u})}function bn(e){return"string"!=typeof e||0===e.length}function Cn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function En(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function xn(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>ln(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Sn(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}class In{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return _(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof In?e.value:e)}CompareTo(e){return null==e?1:E(this.value,e instanceof In?e.value:e)}}function Nn(e){return null==e||e instanceof In?new In(e):e}function kn(e){if(null==e)throw new Error("Option has no value");return e instanceof In?e.value:e}function Pn(e){return null==e?[]:[kn(e)]}function An(e,t){return null!=e?kn(e):t}function Mn(e,t){return null!=t?Nn(e(kn(t))):void 0}function Tn(e,t){return"function"==typeof e?new e(t):new Array(t)}function Dn(){throw new Error("Arrays had different lengths")}function On(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Rn(e,t,n){const r=0|t.length,o=Tn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Ln(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Tn(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Bn(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function Un(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let r=0,o=0;const i=0|t.length,s=0|n.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>E(e,t),t,n)}function Hn(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Fn(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&Dn();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class Gn extends L{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Cn("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(y(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+_(i.head)+631*r,n=u}}})(0,0,this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|E(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new jn(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class jn{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,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function Wn(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Vn(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function qn(e){const t=e.tail;if(null!=t){return t}throw new Error("List was empty\\nParameter name: list")}function zn(){return new Gn(null,void 0)}function Kn(e,t){return new Gn(e,t)}function Zn(e){return new Gn(e,new Gn(null,void 0))}function Jn(e){return null==e.tail}function Xn(e){return Vn(e)}function Yn(e){return qn(e)}function Qn(e){const t=0|Wn(e),n=On(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(null==o.tail)break;n[r]=Vn(o),e=r+1,t=qn(o)}})(0,e),n}function er(e,t,n){let r=t,o=n;for(;null!=o.tail;)r=e(r,Vn(o)),o=qn(o);return r}function tr(e){return er((e,t)=>new Gn(t,e),new Gn(null,void 0),e)}function nr(e,t){return er((t,n)=>{e(n)},void 0,t)}function rr(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=new Gn(e[t],n);return n}function or(e){return rr(e,new Gn(null,void 0))}function ir(e){if(r(e)){return or(e)}if(e instanceof Gn){return e}{const t=new Gn(null,void 0);let n=t;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),t=n,o=new Gn(e,void 0);t.tail=o,n=o}}finally{r.Dispose()}const o=n,i=new Gn(null,void 0);return o.tail=i,qn(t)}}function sr(e,t){return er((e,t)=>new Gn(t,e),t,tr(e))}function ur(e,t){const n=new Gn(null,void 0),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(null==s.tail)return i;t=o+1,n=e(o,i,Vn(s)),r=qn(s)}})(0,t,n)}((t,n,r)=>{const o=new Gn(e(t,r),void 0);return n.tail=o,o},n,t),o=new Gn(null,void 0);return r.tail=o,qn(n)}function cr(e,t){const n=new Gn(null,void 0),r=er((t,n)=>{const r=new Gn(e(n),void 0);return t.tail=r,r},n,t),o=new Gn(null,void 0);return r.tail=o,qn(n)}function lr(e,t){return(t=>{e:for(;;){const n=t;if(null==n.tail)return;{const r=e(Vn(n));if(null==r){t=qn(n);continue e}return r}}})(t)}function ar(e,t){return lr(t=>e(t)?Nn(t):void 0,t)}function $r(e,t){const n=new Gn(null,void 0),r=er((t,n)=>{if(e(n)){const e=new Gn(n,void 0);return t.tail=e,e}return t},n,t),o=new Gn(null,void 0);return r.tail=o,qn(n)}const fr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,dr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,hr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function pr(e){function t(e){return e.replace(dr,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(fr.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+ln(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(dr.test(n))return t(n);if(hr.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 mr(e,t){try{return t.contents=pr(e),!0}catch(e){return!1}}class _r extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["StreamId"]}}function gr(e){return e.fields[0]}class wr extends L{constructor(e,t,n){super(),this.StreamId=e,this.Version=0|t,this.Timestamp=n}}function yr(){return V("MetadataTypes.Metadata",[],wr,()=>[["StreamId",q("MetadataTypes.StreamId",[],_r,()=>[[["Item",J]]])],["Version",X],["Timestamp",W("System.DateTime")]])}class vr extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function br(e,t){if(0===t.tag){const n=t.fields[0];return new vr(0,e(n))}{const e=t.fields[0];return new vr(1,e)}}function Cr(e,t){if(0===t.tag){return e(t.fields[0])}{const e=t.fields[0];return new vr(1,e)}}function Er(){return e=(e,t)=>E(e,t),{Compare:(t,n)=>e(t,n)};var e}function xr(){return Er()}function Sr(){throw new Error("Enumeration has not started. Call MoveNext.")}function Ir(){throw new Error("Enumeration already finished.")}class Nr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=c(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=P(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class kr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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,t,n){return new kr(e,t,n)}function Ar(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return Pr(()=>{if(r?o&&Ir():Sr(),null!=i){return kn(i)}return Ir()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[t,n];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Nn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=c(r)}else s(),o=!1}else t=c(e)}return kn(o)})()),()=>{o||s()})}function Mr(e,t,n){let r=!1,o=void 0,i=Nn(e());const s=()=>{if(null!=i){const e=kn(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return Pr(()=>{if(r||Sr(),null!=o){return kn(o)}return Ir()},()=>{if(r||(r=!0),null!=i){const e=kn(i);let n;try{n=t(e)}catch(e){throw u(),e}if(null!=n){return o=n,!0}return u(),!1}return!1},s)}function Tr(e,t){null==t&&function(e){throw new Error(e)}(e)}function Dr(e){return function(e){return new Nr(e)}(e)}function Or(e){return Tr("source",e),c(e)}function Rr(e){return Dr(()=>c(e()))}function Lr(e){return Dr(()=>Ar(e))}function Br(){return Rr(()=>new Array(0))}function Ur(e){return Rr(()=>function(e,t){const n=Tn(t,1);return n[0]=e,n}(e))}function Hr(e){if(r(e)){return or(e)}if(e instanceof Gn){return e}return ir(e)}function Fr(e,t,n){return Dr(()=>Mr(e,t,n))}function Gr(e,t,n){return Dr(()=>{let r=-1;return Mr(e,e=>(r+=1,t(r,e)),n)})}function jr(e,t){return Lr([e,t])}function Wr(e,t,n){const r=Or(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function Vr(e,t,n){const r=Or(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function qr(e,t){return Vr((t,n)=>{e(n)},void 0,t)}function zr(e,t){return Fr(()=>Or(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?Nn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Kr(e,t){return Gr(()=>Or(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Nn(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const Zr=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 t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),t=[..."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 t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function Jr(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Xr=e=>function(e,t){return 0!=(1<<Yr(e,t)&256)}(e,0);function Yr(e,t){const n=Jr(e,t);return Zr(n)}function Qr(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=cn(t,n),r.exec(e)}(cn(e),t);return null!=n?Yn(Hr(Rr(()=>zr(e=>e||"",n)))):void 0}function eo(e,t){return bn(t)?new vr(1,gn(pn("%s cannot be null or empty"))(e)):new vr(0,t)}function to(e){const t=function(e){let t;const n=Qr(".*?@(.*)",e);switch(t=null!=n?Jn(n)?1:Jn(Yn(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new vr(0,t)}return new vr(1,"Email is not in the correct format")}function no(e){const t=new vr(1,"BusinessNumber is not valid"),n=new Int32Array([10,1,3,5,7,9,11,13,15,17,19]),r=Rn(e=>function(e){return e.charCodeAt(0)-"0".charCodeAt(0)}(e),e.split("").filter(e=>Xr(e)),Int32Array);if(11===r.length){r[0]=r[0]-1;return(0|function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=Tn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}((e,t)=>e*t,r,n,Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t}))%89==0?new vr(0,e):t}return t}class ro{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 t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class oo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,oo.prototype)}}class io{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>io.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function so(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new oo);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(e){t.onError(e)}});else try{e(t)}catch(e){t.onError(e)}}}function uo(e,t){return so(n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function co(e){return so(t=>t.onSuccess(e))}const lo=new class{Bind(e,t){return uo(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return so(t=>e()(t))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While(()=>!r.done,this.Delay(()=>{const e=t(r.value);return r=n.next(),e}))}Return(e){return co(e)}ReturnFrom(e){return e}TryFinally(e,t){return so(n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})})}TryWith(e,t){return so(n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(e)}}})})}Using(e,t){return this.TryFinally(t(e),()=>e.Dispose())}While(e,t){return e()?this.Bind(t,()=>this.While(e,t)):this.Return(void 0)}Zero(){return so(e=>e.onSuccess(void 0))}};class ao{constructor(){}}function $o(e,t){return new vr(0,t)}function fo(e,t){return t}function ho(e,t,n){return br(n,t)}new ao;class po extends L{constructor(e,t,n){super(),this.StreamId=e,this.Version=0|t,this.Timestamp=n}}function mo(){return V("Dto.Primitives.Metadata",[],po,()=>[["StreamId",J],["Version",X],["Timestamp",W("System.DateTime")]])}function _o(e){return new wr(new _r(0,e.StreamId),e.Version,e.Timestamp)}function go(e){return br(e=>new le(0,e),eo("Name",e))}function wo(e){return e.fields[0]}function yo(e){return br(e=>new $e(0,e),eo("Website",e))}function vo(e){return e.fields[0]}function bo(e){return e.fields[0]}function Co(e){return e.fields[0]}function Eo(e){return e.fields[0]}class xo extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function So(){return V("Dto.Primitives.ContactDetails",[],xo,()=>[["FirstName",J],["LastName",J],["Email",J],["MobilePhone",J]])}function Io(e){return fo(0,()=>Cr(t=>{const n=t;return Cr(t=>{const r=t;return Cr(t=>{const o=t;return ho(0,br(e=>new me(0,e),eo("MobilePhone",e.MobilePhone)),e=>new _e(n,r,o,e))},br(e=>new pe(0,e),Cr(e=>to(e),eo("Email",e.Email))))},br(e=>new he(0,e),eo("LastName",e.LastName)))},br(e=>new de(0,e),eo("FirstName",e.FirstName))))()}function No(e){return Mn(e=>new we(0,e),e)}function ko(e){if(null!=e){return e.fields[0]}}function Po(e){return br(e=>new ve(0,e),eo("PartnerKeyHash",e))}function Ao(e){return br(e=>new Ce(0,e),eo("ApiKeyHash",e))}function Mo(e){return e.fields[0]}function To(e){return e.fields[0]}class Do extends L{constructor(e,t,n,r,o,i,s,u){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u}}function Oo(e){return fo(0,()=>{if(null!=e){const t=e;return Cr(e=>{const n=e;return Cr(e=>{const r=e;return Cr(e=>{const o=e,i=Mn(e=>new Ae(0,e),t.Address2);return Cr(e=>{const s=e;return Cr(e=>{const u=e;return Cr(e=>{const c=e;return ho(0,br(e=>new Oe(0,e),eo("Phone",t.Phone)),e=>new Re(n,r,o,i,s,u,c,e))},br(e=>new De(0,e),eo("State",t.State)))},br(e=>new Te(0,e),eo("Postcode",t.Postcode)))},br(e=>new Me(0,e),eo("City",t.City)))},br(e=>new Pe(0,e),eo("Address1",t.Address1)))},br(e=>new ke(0,e),Cr(e=>no(e),eo("BusinessNumber",t.BusinessNumber))))},br(e=>new Ne(0,e),eo("BusinessName",t.BusinessName)))}return $o(0,void 0)})()}var Ro,Lo,Bo,Uo,Ho,Fo={},Go=[],jo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wo(e,t){for(var n in t)e[n]=t[n];return e}function Vo(e){var t=e.parentNode;t&&t.removeChild(e)}function qo(e,t,n){var r,o,i,s=arguments,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(null!=n&&(u.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return zo(e,u,r,o,null)}function zo(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Ro.__v:o};return null!=Ro.vnode&&Ro.vnode(i),i}function Ko(e){return e.children}function Zo(e,t){this.props=e,this.context=t}function Jo(e,t){if(null==t)return e.__?Jo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Jo(e):null}function Xo(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Xo(e)}}function Yo(e){(!e.__d&&(e.__d=!0)&&Lo.push(e)&&!Qo.__r++||Uo!==Ro.debounceRendering)&&((Uo=Ro.debounceRendering)||Bo)(Qo)}function Qo(){for(var e;Qo.__r=Lo.length;)e=Lo.sort((function(e,t){return e.__v.__b-t.__v.__b})),Lo=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=Wo({},o)).__v=o.__v+1,ci(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Jo(o):i,o.__h),li(n,o),o.__e!=i&&Xo(o)))}))}function ei(e,t,n,r,o,i,s,u,c,l){var a,$,f,d,h,p,m,_=r&&r.__k||Go,g=_.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(d=n.__k[a]=null==(d=t[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?zo(null,d,null,null,d):Array.isArray(d)?zo(Ko,{children:d},null,null,null):d.__b>0?zo(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=_[a])||f&&d.key==f.key&&d.type===f.type)_[a]=void 0;else for($=0;$<g;$++){if((f=_[$])&&d.key==f.key&&d.type===f.type){_[$]=void 0;break}f=null}ci(e,d,f=f||Fo,o,i,s,u,c,l),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&&null!=d.__k&&d.__k===f.__k?d.__d=c=ti(d,c,e):c=ri(e,d,f,_,h,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&f.__e==c&&c.parentNode!=e&&(c=Jo(f))}for(n.__e=p,a=g;a--;)null!=_[a]&&("function"==typeof n.type&&null!=_[a].__e&&_[a].__e==n.__d&&(n.__d=Jo(r,a+1)),fi(_[a],_[a]));if(m)for(a=0;a<m.length;a++)$i(m[a],m[++a],m[++a])}function ti(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?ti(o,t,n):ri(n,o,o,e.__k,o.__e,t));return t}function ni(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){ni(e,t)})):t.push(e)),t}function ri(e,t,n,r,o,i){var s,u,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||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 oi(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||jo.test(t)?n:n+"px"}function ii(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||oi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||oi(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?ui:si,i):e.removeEventListener(t,i?ui:si,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function si(e){this.l[e.type+!1](Ro.event?Ro.event(e):e)}function ui(e){this.l[e.type+!0](Ro.event?Ro.event(e):e)}function ci(e,t,n,r,o,i,s,u,c){var l,a,$,f,d,h,p,m,_,g,w,y=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=Ro.__b)&&l(t);try{e:if("function"==typeof y){if(m=t.props,_=(l=y.contextType)&&r[l.__c],g=l?_?_.props.value:l.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(m,g):(t.__c=a=new Zo(m,g),a.constructor=y,a.render=di),_&&_.sub(a),a.props=m,a.state||(a.state={}),a.context=g,a.__n=r,$=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=y.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=Wo({},a.__s)),Wo(a.__s,y.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,$)null==y.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,g),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,g)||t.__v===n.__v){a.props=m,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),a.__h.length&&s.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,g),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,d,h)}))}a.context=g,a.props=m,a.state=a.__s,(l=Ro.__r)&&l(t),a.__d=!1,a.__v=t,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=Wo(Wo({},r),a.getChildContext())),$||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(f,d)),w=null!=l&&l.type===Ko&&null==l.key?l.props.children:l,ei(e,Array.isArray(w)?w:[w],t,n,r,o,i,s,u,c),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ai(n.__e,t,n,r,o,i,s,c);(l=Ro.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=u,t.__h=!!c,i[i.indexOf(u)]=null),Ro.__e(e,t,n)}}function li(e,t){Ro.__c&&Ro.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Ro.__e(e,t.__v)}}))}function ai(e,t,n,r,o,i,s,u){var c,l,a,$,f=n.props,d=t.props,h=t.type,p=0;if("svg"===h&&(o=!0),null!=i)for(;p<i.length;p++)if((c=i[p])&&(c===e||(h?c.localName==h:3==c.nodeType))){e=c,i[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),i=null,u=!1}if(null===h)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&Go.slice.call(e.childNodes),l=(f=n.props||Fo).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},$=0;$<e.attributes.length;$++)f[e.attributes[$].name]=e.attributes[$].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||ii(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||ii(e,i,t[i],n[i],r)}(e,d,f,o,u),a)t.__k=[];else if(p=t.props.children,ei(e,Array.isArray(p)?p:[p],t,n,r,o&&"foreignObject"!==h,i,s,e.firstChild,u),null!=i)for(p=i.length;p--;)null!=i[p]&&Vo(i[p]);u||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p)&&ii(e,"value",p,f.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&ii(e,"checked",p,f.checked,!1))}return e}function $i(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ro.__e(e,n)}}function fi(e,t,n){var r,o,i;if(Ro.unmount&&Ro.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||$i(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Ro.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&fi(r[i],t,n);null!=o&&Vo(o)}function di(e,t,n){return this.constructor(e,n)}function hi(e,t,n){var r,o,i;Ro.__&&Ro.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],ci(t,e=(!r&&n||t).__k=qo(Ko,null,[e]),o||Fo,Fo,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Go.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),li(i,e)}function pi(e,t){hi(e,t,pi)}function mi(e,t,n){var r,o,i,s=arguments,u=Wo({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return null!=n&&(u.children=n),zo(e.type,u,r||e.key,o||e.ref,null)}Ro={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0},Zo.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Wo({},this.state),"function"==typeof e&&(e=e(Wo({},n),this.props)),e&&Wo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Yo(this))},Zo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Yo(this))},Zo.prototype.render=Ko,Lo=[],Bo="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qo.__r=0,Ho=0;var _i,gi,wi,yi=0,vi=[],bi=Ro.__b,Ci=Ro.__r,Ei=Ro.diffed,xi=Ro.__c,Si=Ro.unmount;function Ii(e,t){Ro.__h&&Ro.__h(gi,e,yi||t),yi=0;var n=gi.__H||(gi.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ni(e){return yi=1,ki(Ui,e)}function ki(e,t,n){var r=Ii(_i++,2);return r.t=e,r.__c||(r.__=[n?n(t):Ui(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=gi),r.__}function Pi(e,t){var n=Ii(_i++,3);!Ro.__s&&Bi(n.__H,t)&&(n.__=e,n.__H=t,gi.__H.__h.push(n))}function Ai(e,t){var n=Ii(_i++,4);!Ro.__s&&Bi(n.__H,t)&&(n.__=e,n.__H=t,gi.__h.push(n))}function Mi(e,t){var n=Ii(_i++,7);return Bi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ti(e,t){Ro.useDebugValue&&Ro.useDebugValue(t?t(e):e)}function Di(){vi.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Ri),e.__H.__h.forEach(Li),e.__H.__h=[]}catch(t){e.__H.__h=[],Ro.__e(t,e.__v)}})),vi=[]}Ro.__b=function(e){gi=null,bi&&bi(e)},Ro.__r=function(e){Ci&&Ci(e),_i=0;var t=(gi=e.__c).__H;t&&(t.__h.forEach(Ri),t.__h.forEach(Li),t.__h=[])},Ro.diffed=function(e){Ei&&Ei(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==vi.push(t)&&wi===Ro.requestAnimationFrame||((wi=Ro.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),Oi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Oi&&(t=requestAnimationFrame(n))})(Di)),gi=void 0},Ro.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ri),e.__h=e.__h.filter((function(e){return!e.__||Li(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ro.__e(n,e.__v)}})),xi&&xi(e,t)},Ro.unmount=function(e){Si&&Si(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Ri)}catch(e){Ro.__e(e,t.__v)}};var Oi="function"==typeof requestAnimationFrame;function Ri(e){var t=gi;"function"==typeof e.__c&&e.__c(),gi=t}function Li(e){var t=gi;e.__c=e.__(),gi=t}function Bi(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ui(e,t){return"function"==typeof t?t(e):t}function Hi(e,t){for(var n in t)e[n]=t[n];return e}function Fi(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Gi(e){this.props=e}(Gi.prototype=new Zo).isPureReactComponent=!0,Gi.prototype.shouldComponentUpdate=function(e,t){return Fi(this.props,e)||Fi(this.state,t)};var ji=Ro.__b;Ro.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ji&&ji(e)};var Wi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Vi=function(e,t){return null==e?null:ni(ni(e).map(t))},qi={map:Vi,forEach:Vi,count:function(e){return e?ni(e).length:0},only:function(e){var t=ni(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:ni},zi=Ro.__e;Ro.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);zi(e,t,n)};var Ki=Ro.unmount;function Zi(){this.__u=0,this.t=null,this.__b=null}function Ji(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Xi(){this.u=null,this.o=null}Ro.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ki&&Ki(e)},(Zi.prototype=new Zo).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Ji(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Zi.prototype.componentWillUnmount=function(){this.t=[]},Zi.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=Hi({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&qo(Ko,null,e.fallback);return o&&(o.__h=null),[qo(Ko,null,t.__e?null:e.children),o]};var Yi=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Qi(e){return this.getChildContext=function(){return e.context},e.children}function es(e){var t=this,n=e.i;t.componentWillUnmount=function(){hi(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),hi(qo(Qi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Xi.prototype=new Zo).__e=function(e){var t=this,n=Ji(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Yi(t,e,r)):o()};n?n(i):i()}},Xi.prototype.render=function(e){this.u=null,this.o=new Map;var t=ni(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Xi.prototype.componentDidUpdate=Xi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Yi(e,n,t)}))};var ts="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ns=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rs=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Zo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Zo.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var os=Ro.event;function is(){}function ss(){return this.cancelBubble}function us(){return this.defaultPrevented}Ro.event=function(e){return os&&(e=os(e)),e.persist=is,e.isPropagationStopped=ss,e.isDefaultPrevented=us,e.nativeEvent=e};var cs,ls={configurable:!0,get:function(){return this.class}},as=Ro.vnode;Ro.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!rs(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ns.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=ni(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=ni(n.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&&n.class!=n.className&&(ls.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",ls)),e.$$typeof=ts,as&&as(e)};var $s=Ro.__r;Ro.__r=function(e){$s&&$s(e),cs=e.__c};var fs={ReactCurrentDispatcher:{current:{readContext:function(e){return cs.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function ds(e){return!!e&&e.$$typeof===ts}const hs={useState:Ni,useReducer:ki,useEffect:Pi,useLayoutEffect:Ai,useRef:function(e){return yi=5,Mi((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){yi=6,Ai((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Mi,useCallback:function(e,t){return yi=8,Mi((function(){return e}),t)},useContext:function(e){var t=gi.context[e.__c],n=Ii(_i++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(gi)),t.props.value):e.__},useDebugValue:Ti,version:"16.8.0",Children:qi,render:function(e,t,n){return null==t.__k&&(t.textContent=""),hi(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return pi(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(hi(null,e),!0)},createPortal:function(e,t){return qo(es,{__v:e,i:t})},createElement:qo,createContext:function(e,t){var n={__c:t="__cC"+Ho++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(Yo)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return qo.bind(null,e)},cloneElement:function(e){return ds(e)?mi.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Ko,isValidElement:ds,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Zo,PureComponent:Gi,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Fi(this.props,e)}function r(t){return this.shouldComponentUpdate=n,qo(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=Hi({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Wi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Ko,Suspense:Zi,SuspenseList:Xi,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return qo(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fs},ps=e=>{Pi(()=>{const t=e();return()=>{t.Dispose()}})},ms=(e,t)=>{Pi(()=>{const t=e();return()=>{t.Dispose()}},t)},_s=e=>{Ai(()=>{const t=e();return()=>{t.Dispose()}})};function gs(e,t,n,r){const o=hs.memo(e,I(2,An(N(2,n),null)));return qr(t=>{e.displayName=t},Pn(t)),e=>{const t=ws(r,e);return hs.createElement(o,t)}}function ws(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function ys(e){return{Dispose(){e()}}}function vs(e){ps(e)}function bs(e,t){ms(e,t)}function Cs(e){bs(e,[])}function Es(e,t){ms(t=>(e(),ys(()=>{})),t)}function xs(e,t){return hs.useCallback(e,An(t,[]))}function Ss(e){return hs.useRef(e)}function Is(e,t){return hs.useMemo(e,An(t,[]))}function Ns(e){const t=Ss(e),n=xs(e=>t.current(e),[]);var r;return r=()=>{t.current=e},_s(e=>(r(),ys(()=>{}))),n}function ks(e){return hs.useState(e)}const Ps=(()=>{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 As(e){return Mn(e=>e.passive&&!Ps?{capture:e.capture,once:e.once,passive:!1}:e,e)}function Ms(e){return t=e=>e.capture?{capture:!0}:void 0,null!=(n=e)?t(kn(n)):void 0;var t,n}var Ts={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Ge](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Ds="[big.js] ",Os=Ds+"Invalid ",Rs=Os+"decimal places",Ls=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Bs(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!Ls.test(t+=""))throw Error(Os+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=Us(e,Fs.DP,Fs.RM)}function Us(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,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(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function Hs(e,t,n,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?Os+"precision":Rs);for(n=r-(e=new s(e)).e,e.c.length>++r&&Us(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>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>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==t)?"-"+i:i}Ts.abs=function(){var e=new this.constructor(this);return e.s=1,e},Ts.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(t=s<0,c!=l)return c>l^t?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(l=s<i.length?i[s]:0))return c>l^t?1:-1;return 0},Ts.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(Rs);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var u,c,l,a,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,_=e,g=_.c=[],w=0,y=s+(_.e=n.e-e.e)+1;for(_.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(l=0;l<10;l++){if(u!=(m=p.length))a=u>m?1:-1;else for($=-1,a=0;++$<u;)if(o[$]!=p[$]){a=o[$]>p[$]?1:-1;break}if(!(a<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()}g[w++]=a?l:++l,p[0]&&a?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return g[0]||1==w||(g.shift(),_.e--),w>y&&Us(_,s,t.RM,void 0!==p[0]),_},Ts.eq=function(e){return!this.cmp(e)},Ts.gt=function(e){return this.cmp(e)>0},Ts.gte=function(e){return this.cmp(e)>-1},Ts.lt=function(e){return this.cmp(e)<0},Ts.lte=function(e){return this.cmp(e)<1},Ts.minus=Ts.sub=function(e){var t,n,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 l=s.c.slice(),a=s.e,$=e.c,f=e.e;if(!l[0]||!$[0])return $[0]?(e.s=-c,e):new i(l[0]?s:0);if(u=a-f){for((o=u<0)?(u=-u,r=l):(f=a,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=l.length<$.length)?l:$).length,u=c=0;c<n;c++)if(l[c]!=$[c]){o=l[c]<$[c];break}if(o&&(r=l,l=$,$=r,e.s=-e.s),(c=(n=$.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>u;){if(l[--n]<$[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=$[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},Ts.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},Ts.plus=Ts.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(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,l=e.c;if(!u[0]||!l[0])return l[0]?e:new n(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,t=l):(o=-o,t=u),t.reverse();o--;)t.push(0);t.reverse()}for(u.length-l.length<0&&(t=l,l=u,u=t),o=l.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+l[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},Ts.pow=function(e){var t=this.constructor,n=new t(this),r=new t(1),o=new t(1),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(Os+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Ts.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Rs);return Us(new n(this),e,void 0===t?n.RM:t)},Ts.sqrt=function(){var e,t,n,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(Ds+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{n=e,e=u.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return Us(e,r.DP-=4,r.RM)},Ts.times=Ts.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new n(0*e.s);for(e.e=c+l,s<u&&(t=o,o=i,i=t,l=s,s=u,u=l),t=new Array(l=s+u);l--;)t[l]=0;for(c=u;c--;){for(u=0,l=s+c;l>c;)u=t[l]+i[c]*o[l-c-1]+u,t[l--]=u%10,u=u/10|0;t[l]=(t[l]+u)%10}for(u?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Ts.toExponential=function(e){return Hs(this,1,e,e)},Ts.toFixed=function(e){return Hs(this,2,e,this.e+e)},Ts.toPrecision=function(e){return Hs(this,3,e,e-1)},Ts.toString=function(){return Hs(this)},Ts.valueOf=Ts.toJSON=function(){return Hs(this,4)};var Fs=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=Us(e,28,0)).c.length>1&&!e.c[0]){let t=e.c.findIndex(e=>e);e.c=e.c.slice(t),e.e=e.e-t}}(r)):Bs(r,n),r.constructor=t}return t.prototype=Ts,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),Gs=Fs;new Gs(0),new Gs(1),new Gs(-1),new Gs("79228162514264337593543950335"),new Gs("-79228162514264337593543950335");function js(e,t){return 0===t.indexOf(e)?t:void 0}function Ws(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function Vs(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s,u;return t=js("/",e),null!=t?(n=t,"#"+n):(r=js("#/",e),null!=r?(o=r,o):(i=js("#",e),null!=i?(s=i,"#/"+Sn(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let t,n,r;return t=js("/",e),null!=t?(n=t,n):(r=e,"/"+r)}}(t)(Cn("/",cr(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function qs(e,t,n){1===t?history.pushState(void 0,"",Vs(e,n)):history.replaceState(void 0,"",Vs(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function zs(e,t){return function(e,t){const n=new Gn(null,void 0);let r=n,o=t;for(;null!=o.tail;){let t=e(Vn(o));for(;null!=t.tail;){const e=r,n=new Gn(Vn(t),void 0);e.tail=n,r=n,t=qn(t)}o=qn(o)}const i=r,s=new Gn(null,void 0);return i.tail=s,qn(n)}(e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return zn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+ln(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return zn();if(null!=js("?",t))return Zn(t);{const e=t.split("?");if(Un(0,e,null)||1!==e.length){if(Un(0,e,null)||2!==e.length)return zn();if(""===e[1]){const t=e[0];return Zn(decodeURIComponent(t))}{const t=e[0],n=e[1];return or([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Zn(decodeURIComponent(t))}}}var t},or(xn(null!=js("#",e)?Sn(e,1,e.length-1):1===t&&(null!=Ws("#",e)||null!=Ws("#/",e))?"":e,["/"],null,0)))}const Ks=gs(e=>{const t=Ns(t=>{const n=An(e.onUrlChanged,e=>{});return function(e,t,n){return t(zs(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|An(e.hashMode,1),n)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=Is(()=>As(r),[r]),i=Is(()=>Ms(r),[r]),s=Is(()=>e=>{n(e)},[n]);vs(Ns(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return ys(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}else{const e="popstate",n=t,r=void 0,o=Is(()=>As(r),[r]),i=Is(()=>Ms(r),[r]),s=Is(()=>e=>{n(e)},[n]);vs(Ns(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return ys(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=Is(()=>As(void 0),[void 0]),i=Is(()=>Ms(void 0),[void 0]),s=Is(()=>e=>{r(e)},[r]);vs(Ns(()=>{if(null==o)window.addEventListener(n,s);else{const e=o;window.addEventListener(n,s,e)}return ys(()=>{if(null==i)window.removeEventListener(n,s);else{const e=i;window.removeEventListener(n,s,e)}})}));const u=e.application;return null==u?null:u},void 0,Js,Zs);var Zs,Js;class Xs extends L{constructor(e,t,n,r,o,i){super(),this.Metadata=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.PartnerKeyHash=i}}function Ys(){return V("WriteModels.Partner",[],Xs,()=>[["Metadata",yr()],["Name",ae()],["Website",fe()],["ContactDetails",ge()],["Notes",z(ye())],["PartnerKeyHash",be()]])}class Qs extends L{constructor(e,t,n,r,o,i,s,u){super(),this.Metadata=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ApiKeyHash=u}}function eu(){return V("WriteModels.Account",[],Qs,()=>[["Metadata",yr()],["PartnerId",Se()],["Name",ae()],["Website",fe()],["ContactDetails",ge()],["Notes",z(ye())],["LegalEntity",z(V("BasicModels.LegalEntity",[],Re,()=>[["BusinessName",q("BasicModels.BusinessName",[],Ne,()=>[[["Item",J]]])],["BusinessNumber",q("BasicModels.BusinessNumber",[],ke,()=>[[["Item",J]]])],["Address1",q("BasicModels.Address1",[],Pe,()=>[[["Item",J]]])],["Address2",z(q("BasicModels.Address2",[],Ae,()=>[[["Item",J]]]))],["City",q("BasicModels.City",[],Me,()=>[[["Item",J]]])],["Postcode",q("BasicModels.Postcode",[],Te,()=>[[["Item",J]]])],["State",q("BasicModels.State",[],De,()=>[[["Item",J]]])],["Phone",q("BasicModels.Phone",[],Oe,()=>[[["Item",J]]])]]))],["ApiKeyHash",Ee()]])}class tu extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerList","Partner","ParterAccountList","Account","NotFound"]}}function nu(){return q("AccountRegistry.AdminUI.Types.Page",[],tu,()=>[[],[["Item",Se()]],[["Item",Se()]],[["Item1",Se()],["Item2",q("BasicModels.AccountId",[],Ie,()=>[[["Item",J]]])]],[]])}function ru(e){let t,n,r,o,i;switch(Jn(e)?t=4:"account-registry"===Xn(e)?Jn(Yn(e))?t=4:"partners"===Xn(Yn(e))?Jn(Yn(Yn(e)))?t=0:Jn(Yn(Yn(Yn(e))))?(t=1,n=Xn(Yn(Yn(e)))):"accounts"===Xn(Yn(Yn(Yn(e))))?Jn(Yn(Yn(Yn(Yn(e)))))?(t=2,r=Xn(Yn(Yn(e)))):Jn(Yn(Yn(Yn(Yn(Yn(e))))))?(t=3,o=Xn(Yn(Yn(Yn(Yn(e))))),i=Xn(Yn(Yn(e)))):t=4:t=4:t=4:t=4,t){case 0:return new tu(0);case 1:return new tu(1,new xe(0,n));case 2:return new tu(2,new xe(0,r));case 3:return new tu(3,new xe(0,i),new Ie(0,o));case 4:return new tu(4)}}function ou(e){switch(e.tag){case 1:return or(["account-registry","partners",Mo(e.fields[0])]);case 2:return or(["account-registry","partners",Mo(e.fields[0]),"accounts"]);case 3:{const t=e.fields[0],n=e.fields[1];return or(["account-registry","partners",Mo(t),"accounts",To(n)])}default:return or(["account-registry","partners"])}}function iu(e){switch(e.tag){case 1:{const t=["account-registry","partners",Mo(e.fields[0])];return Zn(e=>{qs(or(t),1,1)})}case 2:{const t=["account-registry","partners",Mo(e.fields[0]),"accounts"];return Zn(e=>{qs(or(t),1,1)})}case 3:{const t=e.fields[0],n=e.fields[1],r=["account-registry","partners",Mo(t),"accounts",To(n)];return Zn(e=>{qs(or(r),1,1)})}default:{const e=["account-registry","partners"];return Zn(t=>{qs(or(e),1,1)})}}}class su extends L{constructor(e,t){super(),this.Partners=e,this.Accounts=t}}function uu(){return V("AccountRegistry.AdminUI.Types.Data",[],su,()=>[["Partners",K(Ys())],["Accounts",K(eu())]])}function cu(e){}function lu(e){const t=new ro("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function au(e){e.cancel()}function $u(e){return null!=e&&e.isCancelled}const fu=new ro;function du(e){return so(t=>e([t.onSuccess,t.onError,t.onCancel]))}function hu(e,t){return function(e,t){return pu(e,t)}(e,t)}function pu(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new io;e({onSuccess:t||cu,onError:n||cu,onCancel:r||cu,cancelToken:o||fu,trampoline:i})}class mu{constructor(e,t){this.k=e,this.v=t}}function _u(e,t){return new mu(e,t)}function gu(e){return e.k}function wu(e){return e.v}class yu extends mu{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function vu(e,t,n,r,o){return new yu(e,t,n,r,o)}function bu(e){return e.left}function Cu(e){return e.right}function Eu(e){return e.h}function xu(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof yu){const o=i;t=e(r+1,bu(o)),n=Cu(o);continue e}return r+1|0}return 0|r}}(0,e)}function Su(e,t,n,r){let o,i,s;if(null!=e){const t=e;s=t instanceof yu?(o=t,Eu(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof yu?(i=e,Eu(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?_u(t,n):vu(t,n,e,r,c+1)}function Iu(e,t,n,r){let o,i,s,u,c,l,a,$,f;if(null!=e){const t=e;f=t instanceof yu?(o=t,Eu(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof yu?(i=e,Eu(i)):1}else d=0;if(d>f+2){const o=kn(r);if(o instanceof yu){const r=o;if(s=bu(r),(null!=s?(u=s,u instanceof yu?(c=u,Eu(c)):1):0)>f+1){const o=kn(bu(r));if(o instanceof yu){const i=o;return Su(Su(e,t,n,bu(i)),gu(i),wu(i),Su(Cu(i),gu(r),wu(r),Cu(r)))}throw new Error("internal error: Map.rebalance")}return Su(Su(e,t,n,bu(r)),gu(r),wu(r),Cu(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=kn(e);if(o instanceof yu){const e=o;if(l=Cu(e),(null!=l?(a=l,a instanceof yu?($=a,Eu($)):1):0)>d+1){const o=kn(Cu(e));if(o instanceof yu){const i=o;return Su(Su(bu(e),gu(e),wu(e),bu(i)),gu(i),wu(i),Su(Cu(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return Su(bu(e),gu(e),wu(e),Su(Cu(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return Su(e,t,n,r)}function Nu(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,gu(o));if(o instanceof yu){const r=o;return i<0?Iu(Nu(e,t,n,bu(r)),gu(r),wu(r),Cu(r)):0===i?vu(t,n,bu(r),Cu(r),Eu(r)):Iu(bu(r),gu(r),wu(r),Nu(e,t,n,Cu(r)))}return i<0?vu(t,n,void 0,r,2):0===i?_u(t,n):vu(t,n,r,void 0,2)}return _u(t,n)}function ku(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,gu(s));if(0===u)return Nn(wu(s));if(s instanceof yu){const i=s;e=r,t=o,n=u<0?bu(i):Cu(i);continue e}return}return}}function Pu(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof yu){const o=i;e(r,bu(o)),r(gu(o),wu(o)),t=r,n=Cu(o);continue e}r(gu(i),wu(i))}break}}(e,t)}function Au(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof yu){const n=r,o=e(t,bu(n)),i=t(gu(n),wu(n)),s=e(t,Cu(n));return vu(gu(n),i,o,s,Eu(n))}return _u(gu(r),t(gu(r),wu(r)))}}(e,t)}function Mu(e,t,n){let r=0|n;Pu((e,n)=>{t[r]=[e,n],r+=1},e)}function Tu(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r],i=o[1];n=Nu(e,o[0],i,n)}return n}function Du(e,t){if(r(t)){return Tu(e,t)}if(t instanceof Gn){return function(e,t){return er((t,n)=>{const r=n[0],o=n[1];return Nu(e,r,o,t)},void 0,t)}(e,t)}{const n=c(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s[1];e=r,t=Nu(r,s[0],u,o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class Ou extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function Ru(e){e:for(;;){const t=e;if(Jn(t))return zn();{const n=Yn(t),r=Xn(t);if(null!=r){const o=r;if(o instanceof yu){const t=o;e=rr([bu(t),_u(gu(t),wu(t)),Cu(t)],n);continue e}return t}e=n;continue e}}}function Lu(e){return new Ou(Ru(Zn(e)),!1)}function Bu(e){if(e.started){const t=e.stack;if(Jn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Xn(t)){const e=Xn(t);if(e instanceof yu)throw new Error("Please report error: Map iterator, unexpected stack for current");return[gu(e),wu(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Uu(e){let t=Lu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Bu(t),"System.Collections.IEnumerator.get_Current":()=>Bu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Jn(t))return!1;if(null!=Xn(t)){const n=Xn(t),r=Yn(t);if(n instanceof yu)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ru(r),!Jn(e.stack)}Yn(t);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Jn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Lu(e)},Dispose(){}}}class Hu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=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];n=t(n,_(i)),n=t(n,_(o))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof Hu))return!1;{const t=e,n=c(this);try{const e=c(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["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]))&&t()}return!0}return!1};return t()}finally{e.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+Cn("; ",zr(e=>vn("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Uu(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Uu(this.tree)}CompareTo(e){const t=this;if(e instanceof Hu){return 0|function(e,t,n){const r=Or(t);try{const t=Or(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{t.Dispose()}}finally{r.Dispose()}}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:E(e[1],n[1]))},t,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!!Vu(this,e[0])&&y(ju(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Mu(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Wu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Wu(this)}get size(){return 0|Wu(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return zr(e=>[e[0],e[1]],this)}get(e){return ju(this,e)}has(e){return Vu(this,e)}keys(){return zr(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return zr(e=>e[1],this)}forEach(e,t){const n=this;qr(t=>{e(t[1],t[0],n)},n)}}function Fu(e,t){return new Hu(e,t)}function Gu(e){const t=xr();return Fu(t,Du(t,e))}function ju(e,t){return function(e,t,n){const r=ku(e,t,n);if(null==r)throw new Error;return kn(r)}(e.comparer,t,e.tree)}function Wu(e){return xu(e.tree)}function Vu(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,gu(s));if(s instanceof yu){const i=s;if(u<0){e=r,t=o,n=bu(i);continue e}if(0===u)return!0;e=r,t=o,n=Cu(i);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function qu(e,t,n){return function(e,t,n){return Fu(e.comparer,Nu(e.comparer,t,n,e.tree))}(n,e,t)}function zu(e,t){return function(e,t){return ku(e.comparer,t,e.tree)}(t,e)}function Ku(e,t){return r=e,Fu((n=t).comparer,Au(r,n.tree));var n,r}function Zu(){return Hu.empty}(()=>{const e=xr();Hu.empty=Fu(e,void 0)})();class Ju extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Xu(e){return q("Feliz.UseDeferred.Deferred`1",[e],Ju,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function Yu(e,t){const n=Ss(lu());Cs(()=>ys(()=>{au(n.current)}));return Ns(r=>{var o;$u(n.current)||hu((o=r,lo.Delay(()=>lo.TryWith(lo.Delay(()=>(t(new Ju(1)),lo.Bind(e(o),e=>(t(new Ju(2,e)),lo.Zero())))),e=>{const n=e;return console.log(Nn(n)),t(new Ju(3,n)),lo.Zero()}))),n.current)})}function Qu(){return zn()}class ec extends L{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function tc(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*tc(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}zt(2013265921,0,!1),zt(2013265921,0,!0);Ln(28,e=>tc(2,e),Int32Array);function nc(e){return e.bound}function rc(e,t){return e.digits[t]}function oc(e,t){return Jt(rc(e,t),!1,2)}function ic(e,t,n){e.digits[t]=n}function sc(e,t){for(;;){const n=e,r=t;if(0===r)return zt(1,0,!1);if(r%2!=0)return Ft(n,sc(Ft(n,n),~~(r/2)));e=Ft(n,n),t=~~(r/2)}}function uc(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*uc(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const cc=zt(16777216,0,!1),lc=zt(16777215,0,!1);zt(16777215,0,!0);function ac(e){return new ec(e,new Int32Array(e))}function $c(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=t,e}function fc(e){const t=0|(e<0?0:e);if(t<16777216){const e=ac(1);return e.digits[0]=t,$c(e)}{const e=ac(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/uc(16777216,n))%16777216;return $c(e)}}const dc=fc(1),hc=fc(0);function pc(e){return e.bound-1}function mc(e){return 0===e.bound}function _c(e,t){if(e.bound===t.bound){return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}return!1}function gc(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}function wc(e,t){return-1===gc(e,t)}function yc(e,t,n){for(;;){const r=e,o=t,i=n;if(!(qt(o,zt(0,0,!1))>0))break;{const s=Ht(oc(r,i),o);ic(r,i,~~Kt(Vt(s,lc))),e=r,t=Gt(s,cc),n=i+1}}}function vc(e,t){const n=0|nc(e),r=ac(n+1|0),o=Jt(t,!1,2);let i=zt(0,0,!1);for(let t=0;t<=n-1;t++){const n=Ht(Ht(i,oc(r,t)),Ft(oc(e,t),o));ic(r,t,~~Kt(Vt(n,lc))),i=Gt(n,cc)}return yc(r,i,n),$c(r)}function bc(e,t){const n=1===nc(e),r=1===nc(t);return n&&r?function(e,t){const n=ac(2),r=Ft(Jt(e,!1,2),Jt(t,!1,2));return ic(n,0,~~Kt(Vt(r,lc))),ic(n,1,~~Kt(Gt(r,cc))),$c(n)}(rc(e,0),rc(t,0)):n?vc(t,rc(e,0)):r?vc(e,rc(t,0)):function(e,t){const n=ac(e.bound+t.bound|0),r=n.digits,o=e.digits,i=t.digits;for(let s=0;s<=e.bound-1;s++){const e=Jt(o[s],!1,2);let u=zt(0,0,!1),c=0|s;for(let n=0;n<=t.bound-1;n++){const t=Jt(i[n],!1,2),o=Ht(Ht(Jt(r[c],!1,2),u),Ft(e,t));r[c]=~~Kt(Vt(o,lc)),u=Gt(o,cc),c+=1}yc(n,u,c)}return $c(n)}(e,t)}class Cc extends L{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function Ec(e,t,n,r){return new Cc(e,uc(2,e),t,n,r,~~(24/e),Ln(~~(24/e),t=>uc(2,e*t),Int32Array))}const xc=[Ec(1,28,268435456,268435456),Ec(2,26,67108864,134217728),Ec(3,24,16777216,50331648),Ec(4,22,4194304,16777216),Ec(5,20,1048576,5242880),Ec(6,18,262144,1572864),Ec(7,16,65536,458752),Ec(8,14,16384,131072),Ec(9,12,4096,36864),Ec(10,10,1024,10240),Ec(11,8,256,2816),Ec(12,6,64,768),Ec(13,4,16,208)];Ln(24,e=>uc(2,e)-1,Int32Array),Ln(24,e=>uc(2,e),Int32Array),Ln(24,e=>sc(zt(2,0,!1),e));xc[0].bigN;function Sc(e,t){return bc(e,t)}function Ic(e,t,n,r){const o=e,i=[e.digits,pc(e)],s=0|i[1],u=i[0],c=[n.digits,pc(n)],l=0|c[1],a=c[0],$=Jt(t,!1,2);let f=0,d=Ft($,Jt(a[0],!1,2));for(;qt(d,zt(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~Kt(Vt(d,lc)),t=Gt(d,cc);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),t=Ht(t,zt(1,0,!1))),d=f<l?Ht(t,Ft($,Jt(a[f+1],!1,2))):t,f+=1}$c(o)}function Nc(e,t,n,r){const o=e,i=[e.digits,pc(e)],s=0|i[1],u=i[0],c=[n.digits,pc(n)],l=0|c[1],a=c[0],$=Jt(t,!1,2);let f=0,d=Ft($,Jt(a[0],!1,2));for(;qt(d,zt(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~Kt(Vt(d,lc)),t=Gt(d,cc);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),t=Ht(t,zt(1,0,!1))),d=f<l?Ht(t,Ft($,Jt(a[f+1],!1,2))):t,f+=1}$c(o)}function kc(e,t,n){const r=[pc(t),pc(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],s=r[1],u=r[0];let c;if(0===i)if(o===n)c=~~(s[n]/u[0]);else{const e=Gt(Ht(Ft(Jt(s[o],!1,2),cc),Jt(s[o-1],!1,2)),Jt(u[0],!1,2));c=~~Kt(e)}else if(o===i+n)c=~~(s[o]/(u[i]+1));else{const e=Gt(Ht(Ft(Jt(s[o],!1,2),cc),Jt(s[o-1],!1,2)),Ht(Jt(u[i],!1,2),zt(1,0,!1)));c=~~Kt(e)}if(0===c){return 1!==function(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:0|((e,n,o)=>{e:for(;;){const i=e,s=n,u=o;if(-1===u)return 0;{const c=0|(u<t?0:i[u-t]),l=0|(u<r?0:s[u-r]);if(c===l){e=i,n=s,o=u-1;continue e}return c<l?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e,0)?1:0}return 0|c}}function Pc(e,t){if(mc(t))throw new Error;if(pc(e)<pc(t))return[hc,e];{const n=function(e){return new ec(e.bound,e.digits.slice())}(e),r=ac(pc(e)-pc(t)+1+1);let o=0|pc(e);const i=0|pc(t);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,n,s,o]);const e=0|kc(n,t,s);e>0?(Ic(n,e,t,s),Nc(r,e,dc,s),u([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,n,s-1,o]),s-=1):(u([r,n,s-1,o-1]),s-=1,o-=1)))}return[$c(r),$c(n)]}}fc(2);function Ac(e){return fc(e)}function Mc(e){return function(e){const t=qt(e,zt(0,0,!1))<0?zt(0,0,!1):e,n=ac(3);for(let e=0;e<=2;e++)n.digits[e]=~~Kt(jt(Gt(t,sc(cc,e)),cc));return $c(n)}(e)}function Tc(e){const t=0|pc(e),n=((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(pc(s)>t)return Kn([i,s],o);e=Kn([i,s],o),n=i+1,r=Sc(s,s)}})(zn(),0,fc(10)),r=(e,t,n,o)=>{if(Jn(o)){const r=0|function(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+16777216*t;return 0|t}}(n);return e&&0===r?t:Kn(f(r),t)}{const i=Xn(o)[1],s=Yn(o),u=Pc(n,i),c=u[1],l=u[0];if(e&&mc(l)){return r(e,t,c,s)}{const n=r(!1,t,c,s);return r(e,n,l,s)}}},o=n,i=r(!0,zn(),e,o);return Jn(i)?"0":Cn("",Qn(i))}function Dc(e){return e.bound<=1}function Oc(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class Rc extends L{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|Uc(e)){case-1:return mc(Hc(e))?"0":"-"+Tc(Hc(e));case 0:return"0";case 1:return Tc(Hc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof Rc){return Fc(this,e)}return!1}GetHashCode(){return 0|(0===Uc(e=this)?1:Uc(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(Hc(e))|0);var e}CompareTo(e){if(e instanceof Rc){return 0|function(e,t){return Gc(e,t)?-1:Fc(e,t)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function Lc(e,t){return new Rc(e,t)}function Bc(e){return Dc(e)&&Oc(e)<Rc.smallLim?Rc.smallPosTab[Oc(e)]:e}function Uc(e){return e.signInt}function Hc(e){return e.v}function Fc(e,t){const n=[Uc(e),Uc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return _c(Hc(e),Hc(t));case 2:case 3:return!!mc(Hc(e))&&mc(Hc(t));case 4:return!0;case 5:case 6:return mc(Hc(t));case 7:case 8:return mc(Hc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Gc(e,t){const n=[Uc(e),Uc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return wc(Hc(e),Hc(t));case 1:return wc(Hc(t),Hc(e));case 2:return!1;case 3:return!mc(Hc(e))||!mc(Hc(t));case 4:return!1;case 5:return!mc(Hc(t));case 6:case 7:return!1;case 8:return!mc(Hc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function jc(e){return e>=0?Lc(1,Bc(Ac(e))):Lc(-1,Bc(-2147483648===e?Mc(Wt(Jt(e,!1,2))):Ac(Fe(e))))}function Wc(){return Rc.one}function Vc(){return Rc.two}function qc(){return Rc.zero}Rc.smallLim=4096,Rc.smallPosTab=Ln(Rc.smallLim,e=>Ac(e)),Rc.one=jc(1),Rc.two=jc(2),Rc.zero=jc(0);qc(),Wc(),Vc();qc(),Wc();class zc{constructor(){}}function Kc(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(y(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const Zc=new zc;class Jc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Xc{constructor(e){this.state=new Jc(0,On(new Array(x((e,t)=>b(e,t),e,10)),0,x((e,t)=>b(e,t),e,10),null),0)}}function Yc(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Jc(0,o,n):new Jc(1,o,n,i),Nn(o[r])}}function Qc(e,t,n){const r=Ss(e[0]),o=Ss(new Xc(10));const s=ks(e[0]),u=s[1],c=s[0];let l;const a=Ss(lu()),$=Ss(a.current);Cs(()=>ys(()=>{au(a.current)})),l=$;const f=()=>{setTimeout(()=>{let e;e=l.current,$u(e)||u(r.current)},0)},d=e=>{var n;(n=Kc(0,()=>{let n=Nn(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Zc,()=>{let e;return null!=n&&(e=l.current,!$u(e))},Kc(0,()=>{const e=kn(n),i=t(e,r.current),s=i[0];return nr(e=>{e(d)},i[1]),n=Yc(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},h=Ns(d);var p;return bs(()=>ys(()=>{let e,t;qr(e=>{e.Dispose()},Pn((e=r.current,i(e)?(t=e,t):void 0)))}),n),Es(()=>{r.current=e[0],f(),nr(e=>{e(h)},e[1])},n),p=()=>{qr(h,Pn(Yc(o.current)))},ps(e=>(p(),ys(()=>{}))),[c,h]}class el{constructor(){}}function tl(e,t){return lo.Delay(t)}new el;class nl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class rl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ol extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class il extends L{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class sl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ul extends L{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const cl=new il("",new nl(0),zn(),!1,void 0,void 0,new ol(0));new ul(0,"","",Zu(),new sl(0,""));function ll(e,t){return bn(t)?[t]:xn(t,[e],null,0)}function al(e){return new il(e,cl.method,cl.headers,cl.withCredentials,cl.overridenMimeType,cl.overridenResponseType,cl.content)}function $l(e,t){return new il(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function fl(e){return du(t=>{const n=t[0],r=(t[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,t,o,i,s,u;4===r.readyState&&n((t=r.responseType,e=""===t||"text"===t?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new sl(0,r.responseText):new sl("arraybuffer"===u?2:"blob"===u?1:3,r.response),new ul(o,e,i,function(e){const t=xr();return Fu(t,Tu(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=kn(o);r.push(e)}}return"function"==typeof n?Rn(e=>e,r,n):r}(e=>{const t=or(ll(":",e));if(!Jn(t)){const e=Yn(t);return[Xn(t).toLocaleLowerCase(),Cn(":",e).trim()]}},ll("\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"](),t=e.fields[1],n=e.fields[0];r.setRequestHeader(n,t)}}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(Nn(void 0));else if(1===u[1].tag){const e=u[1].fields[0];r.send(Nn(e))}else if(3===u[1].tag){const e=u[1].fields[0];r.send(Nn(e))}else if(2===u[1].tag){const e=u[1].fields[0];r.send(Nn(e))}else r.send(Nn(void 0))})}function dl(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Jn(i))return r;{const s=Yn(i),u=Xn(i),c=fo(0,()=>Cr(e=>{const t=e;return ho(0,r,e=>sr(e,Zn(t)))},o(u)))();if(1===c.tag)return c;e=c,t=o,n=s;continue e}}}(new vr(0,zn()),e,t)}function hl(e){return dl(e=>e,e)}class pl extends L{constructor(e,t,n,r,o,i){super(),this.Metadata=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.PartnerKeyHash=i}}class ml extends L{constructor(e,t,n,r,o,i,s,u){super(),this.Metadata=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ApiKeyHash=u}}function _l(e){return fo(0,()=>{const t=_o(e.Metadata);return Cr(n=>{const r=n;return Cr(n=>{const o=n;return Cr(n=>{const i=n;return Cr(n=>{const s=n,u=No(e.Notes);return Cr(n=>{const c=n;return ho(0,Ao(e.ApiKeyHash),e=>new Qs(t,r,o,i,s,u,c,e))},Oo(e.LegalEntity))},Io(e.ContactDetails))},yo(e.Website))},go(e.Name))},br(e=>new xe(0,e),eo("PartnerId",e.PartnerId)))})()}class gl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class yl{constructor(){this.cache=new Map([])}}function vl(){return new yl}vl(),vl();function bl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Cl(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=cn(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=an(e,s),c=an.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(bl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bl(t)}}function El(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function xl(e,t){try{return t.contents=function(e){const t=sn(e),n=Xt.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return El(t.getTime(),r)}(e),!0}catch(e){return!1}}function Sl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Il(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function Il(e){return Zt(Gt(e,1e4))}function Nl(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Sl(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Sl(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class kl{constructor(e){this.k=e}}function Pl(e){return new kl(e)}function Al(e){return e.k}class Ml extends kl{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function Tl(e,t,n,r){return new Ml(e,t,n,r)}function Dl(e){return e.left}function Ol(e){return e.right}function Rl(e){return e.h}function Ll(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Ml){const r=i;t=Dl(r),n=e(Ol(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Bl(e,t,n){let r,o,i;if(null!=e){const t=e;i=t instanceof Ml?(r=t,Rl(r)):1}else i=0;let s;if(null!=n){const e=n;s=e instanceof Ml?(o=e,Rl(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?Pl(t):Tl(t,e,n,u+1)}function Ul(e,t,n){let r,o,i,s,u,c,l,a,$;if(null!=e){const t=e;$=t instanceof Ml?(r=t,Rl(r)):1}else $=0;let f;if(null!=n){const e=n;f=e instanceof Ml?(o=e,Rl(o)):1}else f=0;if(f>$+2){const r=kn(n);if(r instanceof Ml){const n=r;if(i=Dl(n),(null!=i?(s=i,s instanceof Ml?(u=s,Rl(u)):1):0)>$+1){const r=kn(Dl(n));if(r instanceof Ml){const o=r;return Bl(Bl(e,t,Dl(o)),Al(o),Bl(Ol(o),Al(n),Ol(n)))}throw new Error("internal error: Set.rebalance")}return Bl(Bl(e,t,Dl(n)),Al(n),Ol(n))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=kn(e);if(r instanceof Ml){const e=r;if(c=Ol(e),(null!=c?(l=c,l instanceof Ml?(a=l,Rl(a)):1):0)>f+1){const r=kn(Ol(e));if(r instanceof Ml){const o=r;return Bl(Bl(Dl(e),Al(e),Dl(o)),Al(o),Bl(Ol(o),t,n))}throw new Error("internal error: Set.rebalance")}return Bl(Dl(e),Al(e),Bl(Ol(e),t,n))}throw new Error("internal error: Set.rebalance")}return Bl(e,t,n)}function Hl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Al(r));if(r instanceof Ml){const i=r;return o<0?Ul(Hl(e,t,Dl(i)),Al(i),Ol(i)):0===o?n:Ul(Dl(i),Al(i),Hl(e,t,Ol(i)))}{const o=0|e.Compare(t,Al(r));return o<0?Tl(t,void 0,n,2):0===o?n:Tl(t,n,void 0,2)}}return Pl(t)}function Fl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Al(s));if(s instanceof Ml){const i=s;if(u<0){e=r,t=o,n=Dl(i);continue e}if(0===u)return!0;e=r,t=o,n=Ol(i);continue e}return 0===u}return!1}}function Gl(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ml){const r=o;Gl(n,Dl(r)),n(Al(r)),e=n,t=Ol(r);continue e}n(Al(o))}break}}class jl extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function Wl(e){e:for(;;){const t=e;if(Jn(t))return zn();{const n=Xn(t),r=Yn(t);if(null!=n){const o=n;if(o instanceof Ml){const t=o;e=rr([Dl(t),Pl(Al(t)),Ol(t)],r);continue e}return t}e=r;continue e}}}function Vl(e){return new jl(Wl(Zn(e)),!1)}function ql(e){if(e.started){const t=e.stack;if(Jn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Xn(t)){return Al(Xn(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function zl(e){let t=Vl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ql(t),"System.Collections.IEnumerator.get_Current":()=>ql(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Jn(t))return!1;if(null!=Xn(t)){const n=Yn(t);if(Xn(t)instanceof Ml)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Wl(n),!Jn(e.stack)}Yn(t);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Jn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Vl(e)},Dispose(){}}}function Kl(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Jn(s[0]))return Jn(s[1])?0:-1;if(Jn(s[1]))return 1;if(null!=Xn(s[1]))if(null!=Xn(s[0])){const u=Yn(s[0]),c=Yn(s[1]),l=Xn(s[0]),a=Xn(s[1]);if(l instanceof Ml){const s=l;if(null==Dl(s)){if(!(a instanceof Ml)){const o=0|r.Compare(Al(s),Al(a));if(0!==o)return 0|o;e=r,t=Kn(Ol(s),u),n=Kn(void 0,c);continue e}{const l=a;if(null==Dl(l)){const o=0|r.Compare(Al(s),Al(l));if(0!==o)return 0|o;e=r,t=Kn(Ol(s),u),n=Kn(Ol(l),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(Jn(s[0])?Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2:null!=Xn(s[0])?(u=0,c=Yn(s[0]),l=Xn(s[0])):Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2,u){case 0:if(l instanceof Ml){const o=l;e=r,t=rr([Dl(o),Tl(Al(o),void 0,Ol(o),0)],c),n=i;continue e}e=r,t=rr([void 0,Pl(Al(l))],c),n=i;continue e;case 1:if($ instanceof Ml){const i=$;e=r,t=o,n=rr([Dl(i),Tl(Al(i),void 0,Ol(i),0)],a);continue e}e=r,t=o,n=rr([void 0,Pl(Al($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,l,a,$;switch(Jn(s[0])?Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2:null!=Xn(s[0])?(u=0,c=Yn(s[0]),l=Xn(s[0])):Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2,u){case 0:if(l instanceof Ml){const o=l;e=r,t=rr([Dl(o),Tl(Al(o),void 0,Ol(o),0)],c),n=i;continue e}e=r,t=rr([void 0,Pl(Al(l))],c),n=i;continue e;case 1:if($ instanceof Ml){const i=$;e=r,t=o,n=rr([Dl(i),Tl(Al(i),void 0,Ol(i),0)],a);continue e}e=r,t=o,n=rr([void 0,Pl(Al($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(a instanceof Ml)){const o=0|r.Compare(Al(l),Al(a));if(0!==o)return 0|o;e=r,t=u,n=c;continue e}{const s=a;if(null==Dl(s)){const o=0|r.Compare(Al(l),Al(s));if(0!==o)return 0|o;e=r,t=Kn(void 0,u),n=Kn(Ol(s),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(Jn(s[0])?Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2:null!=Xn(s[0])?(u=0,c=Yn(s[0]),l=Xn(s[0])):Jn(s[1])?u=2:null!=Xn(s[1])?(u=1,a=Yn(s[1]),$=Xn(s[1])):u=2,u){case 0:if(l instanceof Ml){const o=l;e=r,t=rr([Dl(o),Tl(Al(o),void 0,Ol(o),0)],c),n=i;continue e}e=r,t=rr([void 0,Pl(Al(l))],c),n=i;continue e;case 1:if($ instanceof Ml){const i=$;e=r,t=o,n=rr([Dl(i),Tl(Al(i),void 0,Ol(i),0)],a);continue e}e=r,t=o,n=rr([void 0,Pl(Al($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{Yn(s[0]),Yn(s[1]),Xn(s[1]);const u=[o,i];let c,l,a,$,f;switch(Jn(u[0])?Jn(u[1])?c=2:null!=Xn(u[1])?(c=1,$=Yn(u[1]),f=Xn(u[1])):c=2:null!=Xn(u[0])?(c=0,l=Yn(u[0]),a=Xn(u[0])):Jn(u[1])?c=2:null!=Xn(u[1])?(c=1,$=Yn(u[1]),f=Xn(u[1])):c=2,c){case 0:if(a instanceof Ml){const o=a;e=r,t=rr([Dl(o),Tl(Al(o),void 0,Ol(o),0)],l),n=i;continue e}e=r,t=rr([void 0,Pl(Al(a))],l),n=i;continue e;case 1:if(f instanceof Ml){const i=f;e=r,t=o,n=rr([Dl(i),Tl(Al(i),void 0,Ol(i),0)],$);continue e}e=r,t=o,n=rr([void 0,Pl(Al(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Xn(s[0])){e=r,t=Yn(s[0]),n=Yn(s[1]);continue e}{Yn(s[0]),Yn(s[1]),Xn(s[0]);const u=[o,i];let c,l,a,$,f;switch(Jn(u[0])?Jn(u[1])?c=2:null!=Xn(u[1])?(c=1,$=Yn(u[1]),f=Xn(u[1])):c=2:null!=Xn(u[0])?(c=0,l=Yn(u[0]),a=Xn(u[0])):Jn(u[1])?c=2:null!=Xn(u[1])?(c=1,$=Yn(u[1]),f=Xn(u[1])):c=2,c){case 0:if(a instanceof Ml){const o=a;e=r,t=rr([Dl(o),Tl(Al(o),void 0,Ol(o),0)],l),n=i;continue e}e=r,t=rr([void 0,Pl(Al(a))],l),n=i;continue e;case 1:if(f instanceof Ml){const i=f;e=r,t=o,n=rr([Dl(i),Tl(Al(i),void 0,Ol(i),0)],$);continue e}e=r,t=o,n=rr([void 0,Pl(Al(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Zn(t),Zn(n))}function Zl(e,t,n){let r=0|n;Gl(e=>{t[r]=e,r+=1},e)}function Jl(e,t){return Bn((t,n)=>Hl(e,n,t),void 0,t)}function Xl(e,t){if(r(t)){return Jl(e,t)}if(t instanceof Gn){return function(e,t){return er((t,n)=>Hl(e,n,t),void 0,t)}(e,t)}{const n=c(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Hl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Yl{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=c(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();r=t,o=_(e),t=(r<<1)+o+631}}finally{n.Dispose()}var r,o;return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof Yl&&(t=e,0===Kl(ea(this),ta(this),ta(t)))}toString(){return"set ["+Cn("; ",zr(e=>P(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Kl(ea(this),ta(this),ta(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 Fl(ea(this),e,ta(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Zl(ta(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|na(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|na(this)}GetEnumerator(){return zl(ta(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zl(ta(this))}get size(){return 0|na(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 ra(this,e)}keys(){return zr(e=>e,this)}values(){return zr(e=>e,this)}entries(){return zr(e=>[e,e],this)}forEach(e,t){const n=this;qr(t=>{e(t,t,n)},n)}}function Ql(e,t){return new Yl(e,t)}function ea(e){return e.comparer}function ta(e){return e.tree}function na(e){return Ll(ta(e))}function ra(e,t){return Fl(ea(e),t,ta(e))}function oa(e,t){return Ql(t,Xl(t,e))}function ia(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function sa(e,t){let n;switch(t.tag){case 2:{const e=t.fields[1];n=ia(t.fields[0],e,!0);break}case 1:{const e=t.fields[1],r=t.fields[2];n=ia(t.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=t.fields[1];n=ia(t.fields[0],e,!0);break}case 4:{const e=t.fields[1],r=t.fields[0],o=t.fields[2];n=ia(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=t.fields[1];n="Expecting "+t.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:n="The following errors were found:\n\n"+Cn("\n\n",t.fields[0]);break;case 6:n="The following `failure` occurred with the decoder: "+t.fields[0];break;default:{const e=t.fields[1];n=ia(t.fields[0],e,!1)}}return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function ua(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new vr(1,sa(e[0],e[1]))}{const e=r.fields[0];return new vr(0,e)}}function ca(e,t){let n;try{return ua("$",e,JSON.parse(t))}catch(e){if(n=e,n instanceof SyntaxError){return new vr(1,"Given an invalid JSON: "+e.message)}throw e}}const la=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new vr(0,(e+128&255)-128):new vr(1,[n,new gl(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new vr(1,[n,new gl(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[He(r,511,!1,8,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new vr(0,t)}return new vr(1,[n,new gl(0,"a sbyte",r)])}return new vr(1,[n,new gl(0,"a sbyte",r)])},aa=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new vr(0,255&e):new vr(1,[n,new gl(1,"a byte",e,"Value was either too large or too small for a byte")]):new vr(1,[n,new gl(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[He(r,511,!0,8,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new vr(0,t)}return new vr(1,[n,new gl(0,"a byte",r)])}return new vr(1,[n,new gl(0,"a byte",r)])},$a=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new vr(0,(e+32768&65535)-32768):new vr(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new vr(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[He(o,511,!1,16,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new vr(0,t)}return new vr(1,[r,new gl(0,n,o)])}return new vr(1,[r,new gl(0,n,o)])},fa=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new vr(0,65535&e):new vr(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new vr(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[He(o,511,!0,16,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new vr(0,t)}return new vr(1,[r,new gl(0,n,o)])}return new vr(1,[r,new gl(0,n,o)])},da=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new vr(0,~~e):new vr(1,[n,new gl(1,"an int",e,"Value was either too large or too small for an int")]):new vr(1,[n,new gl(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[He(r,511,!1,32,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new vr(0,t)}return new vr(1,[n,new gl(0,"an int",r)])}return new vr(1,[n,new gl(0,"an int",r)])},ha=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new vr(0,e>>>0):new vr(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new vr(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[He(o,511,!0,32,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new vr(0,t)}return new vr(1,[r,new gl(0,n,o)])}return new vr(1,[r,new gl(0,n,o)])};function pa(e,t){if("string"==typeof t){let r,o=on(-621355968e5,0);if(r=[un(t,new B(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new vr(0,1===(n=e).kind?n:on(n.getTime(),1))}return new vr(1,[e,new gl(0,"a datetime",t)])}return new vr(1,[e,new gl(0,"a datetime",t)]);var n}function ma(e,t){if("string"==typeof t){let n,r=El(-621355968e5,0);if(n=[xl(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new vr(0,e)}return new vr(1,[e,new gl(0,"a datetimeoffset",t)])}return new vr(1,[e,new gl(0,"a datetime",t)])}function _a(e,t,n,r){let o;const i=n+".["+f(e)+"]";if(Array.isArray(r)){const n=r;if(e<n.length)return t(i,n[e]);{const t="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|n.length,f(o)+"` entries");return new vr(1,[i,new gl(5,t,r)])}}return new vr(1,[i,new gl(0,"an array",r)])}function ga(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return br(e=>tr(e),Bn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new vr(0,Kn(e,i))}{const e=s.fields[0];return new vr(1,e)}}return n},new vr(0,zn()),o))}return new vr(1,[t,new gl(0,"a list",n)])}function wa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n,i=On(new Array(o.length),0,o.length,null);return Bn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new vr(0,i)}{const e=s.fields[0];return new vr(1,e)}}return n},new vr(0,i),o)}return new vr(1,[t,new gl(0,"an array",n)])}function ya(e,t,n){return new vr(0,e)}function va(e,t,n,r){const o=t(n,r);if(0===o.tag){return e(o.fields[0],n,r)}{const e=o.fields[0];return new vr(1,e)}}function ba(e,t,n,r){const o=t(n,r);if(1===o.tag){const e=o.fields[0];return new vr(1,e)}{const t=o.fields[0];return new vr(0,e(t))}}function Ca(e,t){let n;const r=e;return n=e=>t=>_a(0,r,e,t),e=>r=>va(I(3,e=>{let n;const r=t;return n=e=>t=>_a(1,r,e,t),t=>r=>va((t,n,r)=>ya([e,t]),I(2,n),t,r)}),I(2,n),e,r)}function Ea(e){return Gu(e)}function xa(e,t,n,r){let o,i;return t.length!==r.length?new vr(1,[n,new gl(6,(o=0|r.length,i=0|t.length,gn(pn("Expected %i %s but got %i"))(i)(e)(o)))]):Fn(I(3,k(e=>t=>r=>{if(0===r.tag){const o=r.fields[0];return br(e=>Kn(e,o),t(n,e))}return r},[0,[0,2],0])),r,t,new vr(0,zn()))}function Sa(e,t,n,r,o,i){const s=(u=e=>Y(e)===r,ie(n).find(u));var u;if(null!=s){const n=s;if(0===i.length)return new vr(0,ce(n,[]));return br(e=>ce(n,Qn(e)),xa("union fields",Rn(n=>Na(e,t,!1,n[1]),function(e){return null==e.fields?[]:e.fields}(n)),o,i))}return new vr(1,[o,new gl(6,"Cannot find case "+r+" in "+Q(n))])}function Ia(e,t,n,r){const o=new B(null),i=qu(Q(r),o,e);let s;if(function(e){return e instanceof H?null!=e.fields:e instanceof L}(r)){const e=Rn(e=>[Cl(t,Y(e)),Na(i,t,!1,e[1])],se(r));s=t=>n=>br(e=>function(e,t){const n=se(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce((e,[n,r],o)=>(e[n]=t[o],e),{})}(r,Qn(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new vr(1,[t,new gl(0,"an object",n)]):Hn(I(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return br(e=>Kn(e,i),o(t+"."+r)(n[r]))}return e}}),e,new vr(0,zn()))}(e,t,n))}else if(function(e){return e instanceof H?null!=e.cases:e instanceof A}(r))s=e=>n=>{if("string"==typeof n){return Sa(i,t,r,n,e,[])}if(Array.isArray(n)){const o=n,s=o[0];return Sa(i,t,r,s,e,o.slice(1,o.length))}return new vr(1,[e,new gl(0,"a string or array",n)])};else{if(!n){let e;const t=Q(r);throw e=gn(pn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new vr(1,[e,new gl(2,"an extra coder for "+Q(r),t)])}return o.contents=s,s}function Na(e,t,n,r){let o;const i=Q(r),s=zu(i,e);if(null==s){if(ee(r)){const n=Na(e,t,!1,function(e){var t;return ee(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}(r));return e=>t=>wa(I(2,n),e,t)}if(te(r)){const e=Q(function(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=la(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=0|s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,e.toString())):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=aa(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,e.toString())):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=$a(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=0|s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=fa(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,e.toString())):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=da(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=0|s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,f(e))):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ha(o)(i);if(1===s.tag){const e=s.fields[0];return new vr(1,e)}{const e=s.fields[0];return Wr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new vr(0,oe(n,e.toString())):new vr(1,[o,new gl(1,Q(n),i,"Unkown value provided for the enum")])}};{const e=Q(r),t=_n(e=>{throw new Error(e)},pn("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 n=t(e);return e=>n(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(ue(r)){const n=Rn(n=>Na(e,t,!1,n),function(e){if(ue(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>t=>Array.isArray(t)?br(e=>Qn(e),xa("tuple elements",n,e,t)):new vr(1,[e,new gl(0,"an array",t)])}{const i=Q(function(e){return null==e.generics?e:new H(e.fullname,e.generics.map(()=>Z))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=Na(e,t,!0,F(r)[0]);return e=>t=>{return r=I(2,n),o=e,null==(i=t)?new vr(0,void 0):br(e=>Nn(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=Na(e,t,!1,F(r)[0]);return e=>t=>ga(I(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=Na(e,t,!1,F(r)[0]),i=Na(e,t,!1,F(r)[1]);let s;const u=or([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new vr(1,[n,new gl(0,"an object",r)]):Vr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(n,i);if(0===u.tag){const e=u.fields[0],o=t(n+"."+i,r[i]);if(0===o.tag){const t=o.fields[0];return new vr(0,Kn([e,t],s))}{const e=o.fields[0];return new vr(1,e)}}{const e=u.fields[0];return new vr(1,e)}}return o},new vr(0,zn()),Object.keys(r))}(I(2,n),I(2,i),e,t),(o=Ca(I(2,n),I(2,i)),e=>t=>ga(I(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Jn(o))return new vr(1,[n,new gl(7,i)]);{const s=Yn(o),u=Xn(o),c=ua(n,I(2,u),r);if(1===c.tag){e=s,t=sr(i,Zn(c.fields[0]));continue e}{const e=c.fields[0];return new vr(0,e)}}}})(u,zn());var n,r},e=>t=>ba(e=>Ea(e),I(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=Na(e,t,!1,F(r)[0]);return e=>t=>{const r=wa(I(2,n),e,t);if(0===r.tag){const e=r.fields[0];return new vr(0,oa(e,{Compare:(e,t)=>E(e,t)}))}{const e=r.fields[0];return new vr(1,e)}}}return Ia(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new vr(0,r):new vr(1,[n,new gl(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new vr(0,void 0):new vr(1,[n,new gl(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new vr(0,r):new vr(1,[n,new gl(0,"a string",r)]);var n,r}:"System.SByte"===i?la:"System.Byte"===i?aa:"System.Int16"===i?$a:"System.UInt16"===i?fa:"System.Int32"===i?da:"System.UInt32"===i?ha:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new vr(0,r):new vr(1,[n,new gl(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new vr(0,r):new vr(1,[n,new gl(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>pa(e,t):"System.DateTimeOffset"===i?e=>t=>ma(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;if(n=[Nl(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new vr(0,e)}return new vr(1,[e,new gl(0,"a timespan",t)])}return new vr(1,[e,new gl(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";if(n=[mr(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new vr(0,e)}return new vr(1,[e,new gl(0,"a guid",t)])}return new vr(1,[e,new gl(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new vr(0,e):Ia(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function ka(e){if(null!=e){return Ku((e,t)=>{const n=t[1];return new B(n)},e.Coders)}return Zu()}function Pa(e,t,n){const r=An(e,new wl(0)),o=kn(n).ResolveType();return Na(ka(t),r,!1,o)}function Aa(e,t,n,r){return ca(I(2,Pa(t,n,r)),e)}function Ma(e){return gn(mn("%s%P()/account-registry/admin",[e]))}function Ta(e,t){return tl(0,()=>{const n=(i=gn(pn("Bearer %s"))(e),r=new rl(0,"Authorization",i),new il((o=t).url,o.method,sr(o.headers,Zn(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;const s=lo.Bind(fl(n),e=>lo.Return(new vr(0,e)));return lo.Delay(()=>lo.Bind(s,e=>{let t;const r=e;if(1===r.tag){const e=r.fields[0];return lo.Return(new vr(1,e))}{const e=r.fields[0];return lo.ReturnFrom((t=e,429===t.statusCode||t.statusCode>=500?lo.Bind(fl(n),e=>lo.Return(new vr(0,e))):function(e,t){return lo.Return($o(0,t))}(0,t)))}}))})}function Da(e,t){return tl(0,()=>{const n=Ta(t,$l(new nl(0),al(gn(mn("%P()/partners",[Ma(e)])))));return lo.Delay(()=>lo.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return lo.Return(new vr(1,e))}{const e=n.fields[0];return lo.ReturnFrom((t=e,200===t.statusCode?lo.Return(Cr(e=>hl(cr(e=>{return t=e,fo(0,()=>{const e=_o(t.Metadata);return Cr(n=>{const r=n;return Cr(n=>{const o=n;return Cr(n=>{const i=n,s=No(t.Notes);return ho(0,Po(t.PartnerKeyHash),t=>new Xs(e,r,o,i,s,t))},Io(t.ContactDetails))},yo(t.Website))},go(t.Name))})();var t},e)),Aa(t.responseText,new wl(1),void 0,{ResolveType:()=>K(V("Dto.WriteModels.Partner",[],pl,()=>[["Metadata",mo()],["Name",J],["Website",J],["ContactDetails",So()],["Notes",z(J)],["PartnerKeyHash",J]]))}))):lo.Return(new vr(1,"Unexpected response from backend"))))}}))})}function Oa(e,t){return tl(0,()=>{const n=Ta(t,$l(new nl(0),al(gn(mn("%P()/accounts",[Ma(e)])))));return lo.Delay(()=>lo.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return lo.Return(new vr(1,e))}{const e=n.fields[0];return lo.ReturnFrom((t=e,200===t.statusCode?lo.Return(Cr(e=>hl(cr(e=>_l(e),e)),Aa(t.responseText,new wl(1),void 0,{ResolveType:()=>K(V("Dto.WriteModels.Account",[],ml,()=>[["Metadata",mo()],["PartnerId",J],["Name",J],["Website",J],["ContactDetails",So()],["Notes",z(J)],["LegalEntity",z(V("Dto.Primitives.LegalEntity",[],Do,()=>[["BusinessName",J],["BusinessNumber",J],["Address1",J],["Address2",z(J)],["City",J],["Postcode",J],["State",J],["Phone",J]]))],["ApiKeyHash",J]]))}))):lo.Return(new vr(1,"Unexpected response from backend"))))}}))})}function Ra(){const e=Zn(qo("span",{children:["Please wait..."]}));return qo("div",{children:hs.Children.toArray(Array.from(e))})}function La(e){const t=Zn(qo("span",{children:[e.error]}));return qo("div",{children:hs.Children.toArray(Array.from(t))})}class Ba extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tab"]}}function Ua(e,t){const n=(null!=t?"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=qo("a",S(Hr(Rr(()=>jr(Ur(["key",e]),Rr(()=>jr(Ur(["children",e]),Rr(()=>jr(Ur(["className",n]),Rr(()=>null!=t?Ur(["href",Vs(Zn(kn(t)),1)]):Br())))))))))),new Ba(0,r);var r}function Ha(e){return qo("div",{className:"border-b border-gray-200",children:hs.Children.toArray([qo("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:hs.Children.toArray(Array.from(zr(e=>e.fields[0],e)))})])})}class Fa extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ColumnHeader"]}}function Ga(e){return new Fa(0,e)}class ja extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["RowCell"]}}function Wa(e){return new ja(0,e)}function Va(e){return Ga(qo("th",S(or([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function qa(e,t){return Wa(qo("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:hs.Children.toArray([qo("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})])}))}function za(e,t){return Wa(qo("td",{className:Cn(" ",jr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function Ka(e,t){let n;const r=(e,t)=>{return qo("tr",{className:(n=e,n%2==0?"bg-white":"bg-gray-50"),children:hs.Children.toArray(Array.from(zr(e=>e.fields[0],t)))});var n};return qo("div",{className:"flex flex-col mt-4",children:hs.Children.toArray([qo("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:hs.Children.toArray([qo("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:hs.Children.toArray([qo("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:hs.Children.toArray([qo("table",{className:"min-w-full divide-y divide-gray-200",children:hs.Children.toArray([(e=>{let t;return qo("thead",{className:"bg-gray-50",children:(t=zr(e=>e.fields[0],e),qo("tr",{children:hs.Children.toArray(Array.from(t))}))})})(e),(n=Kr(I(2,e=>{const t=function(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>t.apply(void 0,n.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>t.apply(void 0,n.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>l=>t.apply(void 0,n.concat([e,r,o,i,s,u,c,l]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>t(e)}),t),qo("tbody",{children:hs.Children.toArray(Array.from(n))}))])})])})])})])})])})}function Za(e){const t=e.accountList;return Ka(or([Va("ID"),Va("Name"),Va("Contact"),Va("Phone"),Va("Website")]),cr(e=>{let t,n;const r=new Ie(0,gr(e.Metadata.StreamId));return or([(t=[Vs(ou((n=[e.PartnerId,r],new tu(3,n[0],n[1]))),1),gr(e.Metadata.StreamId)],qa(t[0],t[1])),za(["text-gray-500"],wo(e.Name)),za(["text-gray-500"],gn(mn("%P() %P()",[bo(e.ContactDetails.FirstName),Co(e.ContactDetails.LastName)]))),za(["text-gray-500"],Eo(e.ContactDetails.MobilePhone)),za(["text-gray-500"],vo(e.Website))])},t))}function Ja(e){return qo("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Xa(e){return qo("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:hs.Children.toArray([e])})}function Ya(e,t){return qo("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:hs.Children.toArray([Ja(e),Xa(t)])})}function Qa(e){return qo("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 e$(e){const t=Zn(qo("div",{children:hs.Children.toArray(Array.from(e))}));return qo("form",{children:hs.Children.toArray(Array.from(t))})}function t$(e){return e$([Ya("ID",Qa(gr(e.Metadata.StreamId))),Ya("Name",Qa(wo(e.Name))),Ya("Contact",Qa(gn(mn("%P() %P()",[bo(e.ContactDetails.FirstName),Co(e.ContactDetails.LastName)])))),Ya("Phone",Qa(Eo(e.ContactDetails.MobilePhone))),Ya("Website",Qa(vo(e.Website))),Ya("Notes",(t=An(ko(e.Notes),""),qo("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:t,readOnly:!0,rows:5})))]);var t}class n$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Details","AccountList"]}}function r$(e){let t,n;return Ha(1===e.tag?(t=e.fields[0],or([Ua("Details",Vs(ou(new tu(1,t)),1)),Ua("Accounts",void 0)])):(n=e.fields[0],or([Ua("Details",void 0),Ua("Accounts",Vs(ou(new tu(2,new xe(0,gr(n.Metadata.StreamId)))),1))])))}function o$(e){if(1===e.tag){return qo(Za,{accountList:e.fields[1]})}return qo(t$,e.fields[0])}function i$(e){const t=e.mode;return qo("div",{children:hs.Children.toArray([r$(t),o$(t)])})}function s$(e){return e$([Ya("ID",Qa(gr(e.Metadata.StreamId))),Ya("Contact",Qa(gn(mn("%P() %P()",[bo(e.ContactDetails.FirstName),Co(e.ContactDetails.LastName)])))),Ya("Phone",Qa(Eo(e.ContactDetails.MobilePhone))),Ya("Website",Qa(vo(e.Website)))])}function u$(e){return qo("div",{children:hs.Children.toArray([Ha([Ua("Details",void 0)]),qo(s$,e)])})}function c$(e){const t=e.partnerList;return Ka(or([Va("ID"),Va("Name"),Va("Contact"),Va("Phone"),Va("Website")]),cr(e=>{let t;const n=gr(e.Metadata.StreamId),r=new xe(0,n);return or([(t=[Vs(ou(new tu(1,r)),1),n],qa(t[0],t[1])),za(["text-gray-500"],wo(e.Name)),za(["text-gray-500"],gn(mn("%P() %P()",[bo(e.ContactDetails.FirstName),Co(e.ContactDetails.LastName)]))),za(["text-gray-500"],Eo(e.ContactDetails.MobilePhone)),za(["text-gray-500"],vo(e.Website))])},t))}var l$=function(e){return qo("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e),qo("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 a$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BreadCrumb"]}}function $$(e){return qo("nav",{className:"pt-2","aria-label":"Breadcrumb",children:hs.Children.toArray([qo("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:hs.Children.toArray(Array.from(ur((e,t)=>{const n=t.fields[0][1];return function(e,t,n,r){return qo("li",{key:e,className:"flex",children:hs.Children.toArray([qo("div",{className:"flex items-center",children:hs.Children.toArray(Array.from(Hr(Rr(()=>jr(n?Br():Ur(qo(l$,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),Rr(()=>Ur(qo("a",S(Hr(Rr(()=>jr(Ur(["children",e]),Rr(()=>jr(null!=t?Ur(["href",Vs(kn(t),1)]):Br(),Rr(()=>Ur(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(t.fields[0][0],n,0===e)},e)))})])})}function f$(e){let t,n,r,o;const i=e.page,s=()=>new a$(0,["Partners",ou(new tu(0))]),u=e=>new a$(0,[Mo(e),ou(new tu(1,e))]),c=e=>new a$(0,["Accounts",ou(new tu(2,e))]);return $$(4===i.tag?Zn(s()):1===i.tag?(t=i.fields[0],or([s(),u(t)])):2===i.tag?(n=i.fields[0],or([s(),u(n),c(n)])):3===i.tag?(r=i.fields[0],o=i.fields[1],or([s(),u(r),c(r),(l=o,new a$(0,[To(l),void 0]))])):Zn(s()));var l}function d$(){return(d$=Object.assign||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)}function h$(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return mi(t,n)}function p$(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=qo(h$,d$({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[m$(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),l=u[i].slot;l?o[l]=qo(w$,{name:l},c):r[i]=c}var a=n?qo(w$,null,r):r;return qo(n||t.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?pi:hi)(this._vdom,this._root)}function m$(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function _$(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[m$(e)]=n,this._vdom=mi(this._vdom,r),hi(this._vdom,this._root)}}function g$(){hi(this._vdom=null,this._root)}function w$(e,t){var n=this;return qo("slot",d$({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}class y$ extends L{constructor(e,t){super(),this.Data=e,this.CurrentPage=t}}function v$(){return V("AccountRegistry.AdminUI.App.State",[],y$,()=>[["Data",Xu(q("Microsoft.FSharp.Core.FSharpResult`2",[uu(),J],vr,()=>[[["ResultValue",uu()]],[["ErrorValue",J]]]))],["CurrentPage",nu()]])}class b$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PageChanged","LoadData"]}}function C$(){return q("AccountRegistry.AdminUI.App.Msg",[],b$,()=>[[["Item",nu()]],[["Item",Xu(q("Microsoft.FSharp.Core.FSharpResult`2",[uu(),J],vr,()=>[[["ResultValue",uu()]],[["ErrorValue",J]]]))]]])}function E$(){const e=ru(zs(window.location.hash,1)),t=4===e.tag?iu(new tu(0)):Qu();return[new y$(new Ju(0),e),t]}function x$(e,t){if(0===e.tag){const n=e.fields[0];return 4===n.tag?[t,iu(n)]:[new y$(t.Data,n),Qu()]}{const n=e.fields[0];return[new y$(n,t.CurrentPage),Qu()]}}function S$(e){const t=(n=(e,t)=>x$(e,t),Qc(Is(E$,r=[]),n,r));var n,r;const o=t[0],i=t[1],s=Yu(()=>{return t=e.backendUrl,n=e.accessToken,tl(0,()=>{const e=Da(t,n);return lo.Delay(()=>lo.Bind(e,e=>{let r;const o=e;if(1===o.tag){const e=o.fields[0];return lo.Return(new vr(1,e))}{const e=o.fields[0];return lo.ReturnFrom((r=e,lo.Bind(Oa(t,n),e=>lo.Return(br(e=>new su(r,e),e)))))}}))});var t,n},e=>{i(new b$(1,e))});let u;Es(s,[]);const c=o.Data;let l,a,$,f;switch(1===c.tag?l=0:2===c.tag?1===c.fields[0].tag?(l=2,$=c.fields[0].fields[0]):(l=1,a=c.fields[0].fields[0]):3===c.tag?(l=3,f=c.fields[0]):l=0,l){case 0:u=qo(Ra,null);break;case 1:{const e=o.CurrentPage;switch(e.tag){case 1:{const t=e.fields[0],n=ar(e=>gr(e.Metadata.StreamId)===Mo(t),a.Partners);if(null==n)u=qo(La,{error:"Unknown Partner"});else{u=qo(i$,{mode:new n$(0,n)})}break}case 2:{const t=e.fields[0],n=$r(e=>y(e.PartnerId,t),a.Accounts);let r;const o=[t,n];r=new n$(1,o[0],o[1]),u=qo(i$,{mode:r});break}case 3:{const t=e.fields[0],n=e.fields[1],r=ar(e=>!!y(e.PartnerId,t)&&gr(e.Metadata.StreamId)===To(n),a.Accounts);if(null==r)u=qo(La,{error:"Unknown Account"});else{u=qo(u$,r)}break}default:u=qo(c$,{partnerList:a.Partners})}break}case 2:u=qo(La,{error:$});break;case 3:u=qo(La,{error:P(f)});break}return Ks({onUrlChanged:e=>{i(new b$(0,ru(e)))},application:qo(Ko,{},qo(f$,{page:o.CurrentPage}),u)})}(function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=p$,o.prototype.attributeChangedCallback=_$,o.prototype.disconnectedCallback=g$,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)})(e=>qo(S$,e),"superhero-account-registry")}]);
|
|
1
|
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}n.r(t),n.d(t,"State",(function(){return b$})),n.d(t,"State$reflection",(function(){return C$})),n.d(t,"Msg",(function(){return E$})),n.d(t,"Msg$reflection",(function(){return x$})),n.d(t,"StateModule_init",(function(){return S$})),n.d(t,"StateModule_update",(function(){return I$})),n.d(t,"AccountRegistryComponent",(function(){return N$}));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 l(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function a(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function $(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function p(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function _(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 t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=_(e[r]);return m(n)}(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=>_(e)))}return p(d.id(e))}}function w(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 g(e,t){return w(e,t,y)}function y(e,t){return e===t||(null==e?null==t:null!=t&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):r(e)?r(t)&&g(e,t):e instanceof Date?t instanceof Date&&0===v(e,t):Object.getPrototypeOf(e).constructor===Object&&function(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]||!y(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function v(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+$(e),r=t.getTime()+$(t)),n===r?0:n<r?-1:1}function b(e,t){return e===t?0:e<t?-1:1}function C(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,E)}function E(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):r(e)?r(t)?C(e,t):-1:e instanceof Date?t instanceof Date?v(e,t):-1:Object.getPrototypeOf(e).constructor===Object?function(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,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=E(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function x(e,t,n){return e(t,n)>0?t:n}function S(e){const t={};for(const n of e)t[n[0]]=n[1];return t}d.idMap=new WeakMap,d.count=0;function I(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,u)=>t(e)(n)(r)(o)(i)(s)(u);break;case 8:n=(e,n,r,o,i,s,u,c)=>t(e)(n)(r)(o)(i)(s)(u)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function N(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>u=>t(e,n,r,o,i,s,u);case 8:return e=>n=>r=>o=>i=>s=>u=>c=>t(e,n,r,o,i,s,u,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function k(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=N(e,n)),t>1&&(n=I(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function P(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=P(r);else{if(100===t){n+="; ...";break}n+="; "+P(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+P(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class A{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="",t=!0;if(1===this.fields.length){const n=P(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>P(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>_(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&g(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 M(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function T(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+P(t)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>_(e)))}function O(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!y(e[n[r]],t[n[r]]))return!1;return!0}return!1}function R(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=E(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class L{toJSON(){return M(this)}toString(){return T(this)}GetHashCode(){return D(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class B{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class U{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class H{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Q(this)}GetHashCode(){return G(this)}Equals(e){return j(this,e)}}function F(e){return null!=e.generics?e.generics:[]}function G(e){return m([h(e.fullname),...F(e).map(G)])}function j(e,t){return""===e.fullname?""===t.fullname&&w(se(e),se(t),([e,t],[n,r])=>e===n&&j(t,r)):e.fullname===t.fullname&&w(F(e),F(t),j)}function W(e,t,n,r){return new H(e,t,n,r)}function V(e,t,n,r){return new H(e,t,n,void 0,r)}function q(e,t,n,r){const o=new H(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new U(o,n,e[n],t))});return o}function z(e){return new H("Microsoft.FSharp.Core.FSharpOption`1",[e])}function K(e){return new H("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Z=new H("System.Object"),J=(new H("Microsoft.FSharp.Core.Unit"),new H("System.Char"),new H("System.String")),X=(new H("System.Boolean"),new H("System.SByte"),new H("System.Byte"),new H("System.Int16"),new H("System.UInt16"),new H("System.Int32"));new H("System.UInt32"),new H("System.Single"),new H("System.Double"),new H("System.Decimal");function Y(e){if(Array.isArray(e))return e[0];if(e instanceof U)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Q(e){const t=null==e.generics||ee(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>Q(e)).join(",")+"]":e.fullname}function ee(e){return e.fullname.endsWith("[]")}function te(e){return null!=e.enumCases&&e.enumCases.length>0}function ne(e){if(te(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function re(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(e.fullname+" is not an enum type")}function oe(e,t){const n=parseInt(t,10);return re(e,isNaN(n)?t:n)[1]}function ie(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function se(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function ue(e){return e.fullname.startsWith("System.Tuple")&&!ee(e)}function ce(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}class le{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return _(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof le?e.value:e)}CompareTo(e){return null==e?1:E(this.value,e instanceof le?e.value:e)}}function ae(e){return null==e||e instanceof le?new le(e):e}function $e(e){if(null==e)throw new Error("Option has no value");return e instanceof le?e.value:e}function fe(e){return null==e?[]:[$e(e)]}function de(e,t){return null!=e?$e(e):t}function he(e,t){return null!=t?ae(e($e(t))):void 0}class pe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function me(e,t){if(0===t.tag){const n=t.fields[0];return new pe(0,e(n))}{const e=t.fields[0];return new pe(1,e)}}function _e(e,t){if(0===t.tag){return e(t.fields[0])}{const e=t.fields[0];return new pe(1,e)}}class we extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Name"]}}function ge(){return q("BasicModels.Name",[],we,()=>[[["Item",J]]])}class ye extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Website"]}}function ve(){return q("BasicModels.Website",[],ye,()=>[[["Item",J]]])}class be extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FirstName"]}}class Ce extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LastName"]}}class Ee extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class xe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["MobilePhone"]}}class Se extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function Ie(){return V("BasicModels.ContactDetails",[],Se,()=>[["FirstName",q("BasicModels.FirstName",[],be,()=>[[["Item",J]]])],["LastName",q("BasicModels.LastName",[],Ce,()=>[[["Item",J]]])],["Email",q("BasicModels.Email",[],Ee,()=>[[["Item",J]]])],["MobilePhone",q("BasicModels.MobilePhone",[],xe,()=>[[["Item",J]]])]])}class Ne extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Notes"]}}function ke(){return q("BasicModels.Notes",[],Ne,()=>[[["Item",J]]])}class Pe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerKeyHash"]}}function Ae(){return q("BasicModels.PartnerKeyHash",[],Pe,()=>[[["Item",J]]])}class Me extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ApiKeyHash"]}}function Te(){return q("BasicModels.ApiKeyHash",[],Me,()=>[[["Item",J]]])}class De extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerId"]}}function Oe(){return q("BasicModels.PartnerId",[],De,()=>[[["Item",J]]])}class Re extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AccountId"]}}class Le extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BusinessName"]}}class Be extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BusinessNumber"]}}class Ue extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Address1"]}}class He extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Address2"]}}class Fe extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["City"]}}class Ge extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Postcode"]}}class je extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["State"]}}class We extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}class Ve extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Australia","NewZealand"]}}class qe extends L{constructor(e,t,n,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.Country=c}}var ze;function Ke(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 Ze(e,t,n){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.")}}(n=n||function(e,t){if(t&ze.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,t)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function Je(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Ze(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Ke(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Ke(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function Xe(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ze||(ze={}));const Ye=Symbol("numeric");function Qe(e){return"number"==typeof e||(null==e?void 0:e[Ye])}function et(e,t){return"number"==typeof e?e*t:e[Ye]().multiply(t)}function tt(e,t){return"number"==typeof e?e.toFixed(t):e[Ye]().toFixed(t)}function nt(e,t){return"number"==typeof e?e.toPrecision(t):e[Ye]().toPrecision(t)}function rt(e,t){return"number"==typeof e?e.toExponential(t):e[Ye]().toExponential(t)}function ot(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Ye]().toHex()}var it=null;try{it=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 st(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function ut(e){return!0===(e&&e.__isLong__)}st.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},st.prototype.Equals=function(e){return Dt(this,e)},st.prototype.CompareTo=function(e){return Bt(this,e)},st.prototype.toString=function(e){return Pt(this,e)},st.prototype.toJSON=function(){return Pt(this)},st.prototype[Ye]=function(){const e=this;return{multiply:t=>Gt(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>Pt(e.unsigned?e:Zt(Kt(e),!0),16)}},st.prototype.__isLong__,Object.defineProperty(st.prototype,"__isLong__",{value:!0});var ct={},lt={};function at(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=lt[e])?r:(n=ft(e,(0|e)<0?-1:0,!0),o&&(lt[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ct[e])?r:(n=ft(e,e<0?-1:0,!1),o&&(ct[e]=n),n)}function $t(e,t){if(isNaN(e))return t?vt:yt;if(t){if(e<0)return vt;if(e>=_t)return St}else{if(e<=-wt)return It;if(e+1>=wt)return xt}return e<0?Ut($t(-e,t)):ft(e%mt|0,e/mt|0,t)}function ft(e,t,n){return new st(e,t,n)}var dt=Math.pow;function ht(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return yt;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Ut(ht(e.substring(1),t,n));for(var o=$t(dt(n,8)),i=yt,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),n);if(u<8)i=Ht(Gt(i,$t(dt(n,u))),$t(c));else i=Ht(i=Gt(i,o),$t(c))}return i.unsigned=t,i}function pt(e,t){return"number"==typeof e?$t(e,t):"string"==typeof e?ht(e,t):ft(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var mt=4294967296,_t=mt*mt,wt=_t/2,gt=at(1<<24),yt=at(0),vt=at(0,!0),bt=at(1),Ct=at(1,!0),Et=at(-1),xt=ft(-1,2147483647,!1),St=ft(-1,-1,!0),It=ft(0,-2147483648,!1);function Nt(e){return e.unsigned?e.low>>>0:e.low}function kt(e){return e.unsigned?(e.high>>>0)*mt+(e.low>>>0):e.high*mt+(e.low>>>0)}function Pt(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(At(e))return"0";if(Mt(e)){if(Dt(e,It)){var n=$t(t),r=jt(e,n),o=Ft(Gt(r,n),e);return Pt(r,t)+Nt(o).toString(t)}return"-"+Pt(Ut(e),t)}for(var i=$t(dt(t,6),e.unsigned),s=e,u="";;){var c=jt(s,i),l=(Nt(Ft(s,Gt(c,i)))>>>0).toString(t);if(At(s=c))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function At(e){return 0===e.high&&0===e.low}function Mt(e){return!e.unsigned&&e.high<0}function Tt(e){return 1==(1&e.low)}function Dt(e,t){return ut(t)||(t=pt(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function Ot(e,t){return Bt(e,t)<0}function Rt(e,t){return Bt(e,t)>0}function Lt(e,t){return Bt(e,t)>=0}function Bt(e,t){if(ut(t)||(t=pt(t)),Dt(e,t))return 0;var n=Mt(e),r=Mt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Mt(Ft(e,t))?-1:1}function Ut(e){return!e.unsigned&&Dt(e,It)?It:Ht(Wt(e),bt)}function Ht(e,t){ut(t)||(t=pt(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=0,a=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,a+=($+=o+c)>>>16,l+=(a+=r+u)>>>16,l+=n+s,ft(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function Ft(e,t){return ut(t)||(t=pt(t)),Ht(e,Ut(t))}function Gt(e,t){if(At(e))return e.unsigned?vt:yt;if(ut(t)||(t=pt(t)),it)return ft(it.mul(e.low,e.high,t.low,t.high),it.get_high(),e.unsigned);if(At(t))return e.unsigned?vt:yt;if(Dt(e,It))return Tt(t)?It:yt;if(Dt(t,It))return Tt(e)?It:yt;if(Mt(e))return Mt(t)?Gt(Ut(e),Ut(t)):Ut(Gt(Ut(e),t));if(Mt(t))return Ut(Gt(e,Ut(t)));if(Ot(e,gt)&&Ot(t,gt))return $t(kt(e)*kt(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=65535&t.low,a=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*c)>>>16,a+=($+=r*l)>>>16,$&=65535,a+=($+=o*c)>>>16,$&=65535,a+=($+=i*u)>>>16,a+=n*l+r*c+o*u+i*s,ft((f&=65535)<<16|(d&=65535),(a&=65535)<<16|($&=65535),e.unsigned)}function jt(e,t){if(ut(t)||(t=pt(t)),At(t))throw Error("division by zero");var n,r,o;if(it)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?ft((e.unsigned?it.div_u:it.div_s)(e.low,e.high,t.low,t.high),it.get_high(),e.unsigned):e;if(At(e))return e.unsigned?vt:yt;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:ft(e.low,e.high,!0)}(t)),Rt(t,e))return vt;if(Rt(t,zt(e,1)))return Ct;o=vt}else{if(Dt(e,It))return Dt(t,bt)||Dt(t,Et)?It:Dt(t,It)?bt:Dt(n=Vt(jt(qt(e,1),t),1),yt)?Mt(t)?bt:Et:o=Ht(n,jt(r=Ft(e,Gt(t,n)),t));if(Dt(t,It))return e.unsigned?vt:yt;if(Mt(e))return Mt(t)?jt(Ut(e),Ut(t)):Ut(jt(Ut(e),t));if(Mt(t))return Ut(jt(e,Ut(t)));o=yt}for(r=e;Lt(r,t);){n=Math.max(1,Math.floor(kt(r)/kt(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:dt(2,i-48),u=$t(n),c=Gt(u,t);Mt(c)||Rt(c,r);)c=Gt(u=$t(n-=s,e.unsigned),t);At(u)&&(u=bt),o=Ht(o,u),r=Ft(r,c)}return o}function Wt(e){return ft(~e.low,~e.high,e.unsigned)}function Vt(e,t){return ut(t)&&(t=Nt(t)),0==(t&=63)?e:t<32?ft(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ft(0,e.low<<t-32,e.unsigned)}function qt(e,t){return ut(t)&&(t=Nt(t)),0==(t&=63)?e:t<32?ft(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ft(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function zt(e,t){if(ut(t)&&(t=Nt(t)),0===(t&=63))return e;var n=e.high;return t<32?ft(e.low>>>t|n<<32-t,n>>>t,e.unsigned):ft(32===t?n:n>>>t-32,0,e.unsigned)}function Kt(e,t){return t?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(e):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(e)}function Zt(e,t,n){return n?function(e,t){return new st(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new st(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}const Jt=Ht,Xt=Gt,Yt=jt,Qt=function(e,t){return ut(t)||(t=pt(t)),it?ft((e.unsigned?it.rem_u:it.rem_s)(e.low,e.high,t.low,t.high),it.get_high(),e.unsigned):Ft(e,Gt(jt(e,t),t))},en=Ut,tn=function(e,t){return ut(t)||(t=pt(t)),ft(e.low&t.low,e.high&t.high,e.unsigned)},nn=Bt,rn=ft,on=Nt,sn=kt;function un(e,t,n){let r=e,o=0;switch(n){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 ft(r,o>>31,t)}const cn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function ln(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+a(~~(e/36e5),2)+":"+a(n,2)}function an(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function $n(e,t,n){return t.replace(/(\w)\1*/g,t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r})}function fn(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+ln(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return $n(i,t,!0);switch(t){case"D":case"d":return an(i,"first");case"T":case"t":return an(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ln(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function dn(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return $n(e,t,n);switch(t){case"D":case"d":return n?an(e,"first"):e.toLocaleDateString();case"T":case"t":return n?an(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(t?ln(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function hn(e,t,n){return null!=e.offset?fn(e,t):dn(e,t)}function pn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function mn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function _n(e,t){try{return t.contents=function(e,t=!1){const n=mn(e),r=cn.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return pn(n.getTime(),o)}(e),!0}catch(e){return!1}}function wn(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function gn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function yn(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=wn(t,n),!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 vn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,bn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Cn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function En(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function xn(e){return{input:e,cont:(t=e,e=>vn.test(t)?function e(t,n,r=new B(null)){return(...o)=>{let i=t;for(const e of o)i=Pn(i,e,r);return vn.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function Sn(e,t){let n=0;return e.replace(bn,(e,r,o,i,s,u)=>kn(t[n++],r,o,i,s,u)).replace(/%%/g,"%")}function In(e,t){return"string"==typeof t?e(t):t.cont(e)}function Nn(e){return In(e=>e,e)}function kn(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",Qe(e))switch("x"!==i.toLowerCase()&&(En(e,0)?(e=et(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=tt(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?nt(e,o):nt(e);break;case"e":case"E":e=null!=o?rt(e,o):rt(e);break;case"x":e=ot(e);break;case"X":e=ot(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?hn(e):P(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=Dn(e,r-s.length,i,o)):Dn(s+e,r,i,o)}return t?t+e:e}function Pn(e,t,n){return e.replace(vn,(e,r,o,i,s,u)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return kn(t,r,o,i,s,u).replace(/%/g,"%%")})}function An(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Cn,(e,n,r,o,i,s)=>{let u=t[n];if(Qe(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=tt(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?nt(u,i):nt(u);break;case"e":case"E":u=null!=i?rt(u,i):rt(u);break;case"p":case"P":i=null!=i?i:2,u=tt(et(u,100),i)+" %";break;case"d":case"D":u=null!=i?Dn(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Dn(ot(u),i,"0"):ot(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(En(u,0)&&(u=et(u,-1),e="-"),u=tt(u,null!=r?r.length-1:0),Dn(u,(n||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?hn(u,s||o):P(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Dn(String(u),Math.abs(r)," ",r<0)),u})}function Mn(e){return"string"!=typeof e||0===e.length}function Tn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Dn(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function On(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>gn(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Rn(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Ln(e,t){return"function"==typeof e?new e(t):new Array(t)}function Bn(){throw new Error("Arrays had different lengths")}function Un(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Hn(e,t,n){const r=0|t.length,o=Ln(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Fn(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Ln(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Gn(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function jn(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let r=0,o=0;const i=0|t.length,s=0|n.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>E(e,t),t,n)}function Wn(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Vn(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&Bn();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class qn extends L{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Tn("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(y(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+_(i.head)+631*r,n=u}}})(0,0,this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|E(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new zn(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class zn{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,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function Kn(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Zn(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Jn(e){const t=e.tail;if(null!=t){return t}throw new Error("List was empty\\nParameter name: list")}function Xn(){return new qn(null,void 0)}function Yn(e,t){return new qn(e,t)}function Qn(e){return new qn(e,new qn(null,void 0))}function er(e){return null==e.tail}function tr(e){return Zn(e)}function nr(e){return Jn(e)}function rr(e){const t=0|Kn(e),n=Un(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(null==o.tail)break;n[r]=Zn(o),e=r+1,t=Jn(o)}})(0,e),n}function or(e,t,n){let r=t,o=n;for(;null!=o.tail;)r=e(r,Zn(o)),o=Jn(o);return r}function ir(e){return or((e,t)=>new qn(t,e),new qn(null,void 0),e)}function sr(e,t){return or((t,n)=>{e(n)},void 0,t)}function ur(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=new qn(e[t],n);return n}function cr(e){return ur(e,new qn(null,void 0))}function lr(e){if(r(e)){return cr(e)}if(e instanceof qn){return e}{const t=new qn(null,void 0);let n=t;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),t=n,o=new qn(e,void 0);t.tail=o,n=o}}finally{r.Dispose()}const o=n,i=new qn(null,void 0);return o.tail=i,Jn(t)}}function ar(e,t){return or((e,t)=>new qn(t,e),t,ir(e))}function $r(e,t){const n=new qn(null,void 0),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(null==s.tail)return i;t=o+1,n=e(o,i,Zn(s)),r=Jn(s)}})(0,t,n)}((t,n,r)=>{const o=new qn(e(t,r),void 0);return n.tail=o,o},n,t),o=new qn(null,void 0);return r.tail=o,Jn(n)}function fr(e,t){const n=new qn(null,void 0),r=or((t,n)=>{const r=new qn(e(n),void 0);return t.tail=r,r},n,t),o=new qn(null,void 0);return r.tail=o,Jn(n)}function dr(e,t){return(t=>{e:for(;;){const n=t;if(null==n.tail)return;{const r=e(Zn(n));if(null==r){t=Jn(n);continue e}return r}}})(t)}function hr(e,t){return dr(t=>e(t)?ae(t):void 0,t)}function pr(e,t){const n=new qn(null,void 0),r=or((t,n)=>{if(e(n)){const e=new qn(n,void 0);return t.tail=e,e}return t},n,t),o=new qn(null,void 0);return r.tail=o,Jn(n)}const mr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,_r=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,wr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function gr(e){function t(e){return e.replace(_r,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(mr.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+gn(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(_r.test(n))return t(n);if(wr.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 yr(e,t){try{return t.contents=gr(e),!0}catch(e){return!1}}class vr extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["StreamId"]}}function br(e){return e.fields[0]}class Cr extends L{constructor(e,t,n){super(),this.StreamId=e,this.Version=0|t,this.Timestamp=n}}function Er(){return V("MetadataTypes.Metadata",[],Cr,()=>[["StreamId",q("MetadataTypes.StreamId",[],vr,()=>[[["Item",J]]])],["Version",X],["Timestamp",W("System.DateTime")]])}function xr(){return e=(e,t)=>E(e,t),{Compare:(t,n)=>e(t,n)};var e}function Sr(){return xr()}function Ir(){throw new Error("Enumeration has not started. Call MoveNext.")}function Nr(){throw new Error("Enumeration already finished.")}class kr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=c(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=P(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Pr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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 Ar(e,t,n){return new Pr(e,t,n)}function Mr(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return Ar(()=>{if(r?o&&Nr():Ir(),null!=i){return $e(i)}return Nr()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[t,n];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{n=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=c(r)}else s(),o=!1}else t=c(e)}return $e(o)})()),()=>{o||s()})}function Tr(e,t,n){let r=!1,o=void 0,i=ae(e());const s=()=>{if(null!=i){const e=$e(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return Ar(()=>{if(r||Ir(),null!=o){return $e(o)}return Nr()},()=>{if(r||(r=!0),null!=i){const e=$e(i);let n;try{n=t(e)}catch(e){throw u(),e}if(null!=n){return o=n,!0}return u(),!1}return!1},s)}function Dr(e,t){null==t&&function(e){throw new Error(e)}(e)}function Or(e){return function(e){return new kr(e)}(e)}function Rr(e){return Dr("source",e),c(e)}function Lr(e){return Or(()=>c(e()))}function Br(e){return Or(()=>Mr(e))}function Ur(){return Lr(()=>new Array(0))}function Hr(e){return Lr(()=>function(e,t){const n=Ln(t,1);return n[0]=e,n}(e))}function Fr(e){if(r(e)){return cr(e)}if(e instanceof qn){return e}return lr(e)}function Gr(e,t,n){return Or(()=>Tr(e,t,n))}function jr(e,t,n){return Or(()=>{let r=-1;return Tr(e,e=>(r+=1,t(r,e)),n)})}function Wr(e,t){return Br([e,t])}function Vr(e,t,n){const r=Rr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function qr(e,t,n){const r=Rr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function zr(e,t){return qr((t,n)=>{e(n)},void 0,t)}function Kr(e,t){return Gr(()=>Rr(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?ae(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Zr(e,t){return jr(()=>Rr(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?ae(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const Jr=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 t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),t=[..."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 t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function Xr(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Yr=e=>function(e,t){return 0!=(1<<Qr(e,t)&256)}(e,0);function Qr(e,t){const n=Xr(e,t);return Jr(n)}function eo(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=wn(t,n),r.exec(e)}(wn(e),t);return null!=n?nr(Fr(Lr(()=>Kr(e=>e||"",n)))):void 0}function to(e,t){return Mn(t)?new pe(1,Nn(xn("%s cannot be null or empty"))(e)):new pe(0,t)}function no(e){const t=function(e){let t;const n=eo(".*?@(.*)",e);switch(t=null!=n?er(n)?1:er(nr(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new pe(0,t)}return new pe(1,"Email is not in the correct format")}function ro(e){const t=new pe(1,"BusinessNumber is not valid"),n=new Int32Array([10,1,3,5,7,9,11,13,15,17,19]),r=Hn(e=>function(e){return e.charCodeAt(0)-"0".charCodeAt(0)}(e),e.split("").filter(e=>Yr(e)),Int32Array);if(11===r.length){r[0]=r[0]-1;return(0|function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=Ln(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}((e,t)=>e*t,r,n,Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t}))%89==0?new pe(0,e):t}return t}class oo{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 t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class io extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,io.prototype)}}class so{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>so.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function uo(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new io);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(e){t.onError(e)}});else try{e(t)}catch(e){t.onError(e)}}}function co(e,t){return uo(n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function lo(e){return uo(t=>t.onSuccess(e))}const ao=new class{Bind(e,t){return co(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return uo(t=>e()(t))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While(()=>!r.done,this.Delay(()=>{const e=t(r.value);return r=n.next(),e}))}Return(e){return lo(e)}ReturnFrom(e){return e}TryFinally(e,t){return uo(n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})})}TryWith(e,t){return uo(n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(e)}}})})}Using(e,t){return this.TryFinally(t(e),()=>e.Dispose())}While(e,t){return e()?this.Bind(t,()=>this.While(e,t)):this.Return(void 0)}Zero(){return uo(e=>e.onSuccess(void 0))}};class $o{constructor(){}}function fo(e,t){return new pe(0,t)}function ho(e,t){return t}function po(e,t,n){return me(n,t)}new $o;function mo(e,t){if(null!=t){return me(e=>ae(e),e($e(t)))}return new pe(0,void 0)}class _o extends L{constructor(e,t,n){super(),this.StreamId=e,this.Version=0|t,this.Timestamp=n}}function wo(){return V("Dto.Primitives.Metadata",[],_o,()=>[["StreamId",J],["Version",X],["Timestamp",W("System.DateTime")]])}function go(e){return new Cr(new vr(0,e.StreamId),e.Version,e.Timestamp)}function yo(e){return me(e=>new we(0,e),to("Name",e))}function vo(e){return e.fields[0]}function bo(e){return me(e=>new ye(0,e),to("Website",e))}function Co(e){return e.fields[0]}function Eo(e){return e.fields[0]}function xo(e){return e.fields[0]}function So(e){return e.fields[0]}class Io extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function No(){return V("Dto.Primitives.ContactDetails",[],Io,()=>[["FirstName",J],["LastName",J],["Email",J],["MobilePhone",J]])}function ko(e){return ho(0,()=>_e(t=>{const n=t;return _e(t=>{const r=t;return _e(t=>{const o=t;return po(0,me(e=>new xe(0,e),to("MobilePhone",e.MobilePhone)),e=>new Se(n,r,o,e))},me(e=>new Ee(0,e),_e(e=>no(e),to("Email",e.Email))))},me(e=>new Ce(0,e),to("LastName",e.LastName)))},me(e=>new be(0,e),to("FirstName",e.FirstName))))()}function Po(e){return he(e=>new Ne(0,e),e)}function Ao(e){if(null!=e){return e.fields[0]}}function Mo(e){return me(e=>new Pe(0,e),to("PartnerKeyHash",e))}function To(e){return me(e=>new Me(0,e),to("ApiKeyHash",e))}function Do(e){return e.fields[0]}function Oo(e){return e.fields[0]}class Ro extends L{constructor(e,t,n,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}function Lo(e){return ho(0,()=>{if(null!=e){const t=e;return _e(e=>{const n=e;return _e(e=>{const r=e;return _e(e=>{const o=e,i=he(e=>new He(0,e),t.Address2);return _e(e=>{const s=e;return _e(e=>{const u=e;return _e(e=>{const c=e;return _e(e=>{const l=e;return po(0,me(e=>de(e,new Ve(0)),mo(e=>function(e){switch(e.toUpperCase().trim()){case"AU":return new pe(0,new Ve(0));case"NZ":return new pe(0,new Ve(1));default:return new pe(1,"Invalid country code.")}}(e),t.CountryCode)),e=>new qe(n,r,o,i,s,u,c,l,e))},me(e=>new We(0,e),to("Phone",t.Phone)))},mo(e=>function(e){return me(e=>new je(0,e),to("State",e))}(e),t.State))},me(e=>new Ge(0,e),to("Postcode",t.Postcode)))},me(e=>new Fe(0,e),to("City",t.City)))},me(e=>new Ue(0,e),to("Address1",t.Address1)))},me(e=>new Be(0,e),_e(e=>ro(e),to("BusinessNumber",t.BusinessNumber))))},me(e=>new Le(0,e),to("BusinessName",t.BusinessName)))}return fo(0,void 0)})()}var Bo,Uo,Ho,Fo,Go,jo={},Wo=[],Vo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function qo(e,t){for(var n in t)e[n]=t[n];return e}function zo(e){var t=e.parentNode;t&&t.removeChild(e)}function Ko(e,t,n){var r,o,i,s=arguments,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(null!=n&&(u.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return Zo(e,u,r,o,null)}function Zo(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Bo.__v:o};return null!=Bo.vnode&&Bo.vnode(i),i}function Jo(e){return e.children}function Xo(e,t){this.props=e,this.context=t}function Yo(e,t){if(null==t)return e.__?Yo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Yo(e):null}function Qo(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Qo(e)}}function ei(e){(!e.__d&&(e.__d=!0)&&Uo.push(e)&&!ti.__r++||Fo!==Bo.debounceRendering)&&((Fo=Bo.debounceRendering)||Ho)(ti)}function ti(){for(var e;ti.__r=Uo.length;)e=Uo.sort((function(e,t){return e.__v.__b-t.__v.__b})),Uo=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=qo({},o)).__v=o.__v+1,ai(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Yo(o):i,o.__h),$i(n,o),o.__e!=i&&Qo(o)))}))}function ni(e,t,n,r,o,i,s,u,c,l){var a,$,f,d,h,p,m,_=r&&r.__k||Wo,w=_.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(d=n.__k[a]=null==(d=t[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Zo(null,d,null,null,d):Array.isArray(d)?Zo(Jo,{children:d},null,null,null):d.__b>0?Zo(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=_[a])||f&&d.key==f.key&&d.type===f.type)_[a]=void 0;else for($=0;$<w;$++){if((f=_[$])&&d.key==f.key&&d.type===f.type){_[$]=void 0;break}f=null}ai(e,d,f=f||jo,o,i,s,u,c,l),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&&null!=d.__k&&d.__k===f.__k?d.__d=c=ri(d,c,e):c=ii(e,d,f,_,h,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&f.__e==c&&c.parentNode!=e&&(c=Yo(f))}for(n.__e=p,a=w;a--;)null!=_[a]&&("function"==typeof n.type&&null!=_[a].__e&&_[a].__e==n.__d&&(n.__d=Yo(r,a+1)),hi(_[a],_[a]));if(m)for(a=0;a<m.length;a++)di(m[a],m[++a],m[++a])}function ri(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?ri(o,t,n):ii(n,o,o,e.__k,o.__e,t));return t}function oi(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){oi(e,t)})):t.push(e)),t}function ii(e,t,n,r,o,i){var s,u,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||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 si(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Vo.test(t)?n:n+"px"}function ui(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||si(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||si(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?li:ci,i):e.removeEventListener(t,i?li:ci,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function ci(e){this.l[e.type+!1](Bo.event?Bo.event(e):e)}function li(e){this.l[e.type+!0](Bo.event?Bo.event(e):e)}function ai(e,t,n,r,o,i,s,u,c){var l,a,$,f,d,h,p,m,_,w,g,y=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=Bo.__b)&&l(t);try{e:if("function"==typeof y){if(m=t.props,_=(l=y.contextType)&&r[l.__c],w=l?_?_.props.value:l.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(m,w):(t.__c=a=new Xo(m,w),a.constructor=y,a.render=pi),_&&_.sub(a),a.props=m,a.state||(a.state={}),a.context=w,a.__n=r,$=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=y.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=qo({},a.__s)),qo(a.__s,y.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,$)null==y.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,w)||t.__v===n.__v){a.props=m,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),a.__h.length&&s.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,d,h)}))}a.context=w,a.props=m,a.state=a.__s,(l=Bo.__r)&&l(t),a.__d=!1,a.__v=t,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=qo(qo({},r),a.getChildContext())),$||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(f,d)),g=null!=l&&l.type===Jo&&null==l.key?l.props.children:l,ni(e,Array.isArray(g)?g:[g],t,n,r,o,i,s,u,c),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=fi(n.__e,t,n,r,o,i,s,c);(l=Bo.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=u,t.__h=!!c,i[i.indexOf(u)]=null),Bo.__e(e,t,n)}}function $i(e,t){Bo.__c&&Bo.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Bo.__e(e,t.__v)}}))}function fi(e,t,n,r,o,i,s,u){var c,l,a,$,f=n.props,d=t.props,h=t.type,p=0;if("svg"===h&&(o=!0),null!=i)for(;p<i.length;p++)if((c=i[p])&&(c===e||(h?c.localName==h:3==c.nodeType))){e=c,i[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),i=null,u=!1}if(null===h)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&Wo.slice.call(e.childNodes),l=(f=n.props||jo).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},$=0;$<e.attributes.length;$++)f[e.attributes[$].name]=e.attributes[$].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||ui(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||ui(e,i,t[i],n[i],r)}(e,d,f,o,u),a)t.__k=[];else if(p=t.props.children,ni(e,Array.isArray(p)?p:[p],t,n,r,o&&"foreignObject"!==h,i,s,e.firstChild,u),null!=i)for(p=i.length;p--;)null!=i[p]&&zo(i[p]);u||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p)&&ui(e,"value",p,f.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&ui(e,"checked",p,f.checked,!1))}return e}function di(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Bo.__e(e,n)}}function hi(e,t,n){var r,o,i;if(Bo.unmount&&Bo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||di(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Bo.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&hi(r[i],t,n);null!=o&&zo(o)}function pi(e,t,n){return this.constructor(e,n)}function mi(e,t,n){var r,o,i;Bo.__&&Bo.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],ai(t,e=(!r&&n||t).__k=Ko(Jo,null,[e]),o||jo,jo,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Wo.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),$i(i,e)}function _i(e,t){mi(e,t,_i)}function wi(e,t,n){var r,o,i,s=arguments,u=qo({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return null!=n&&(u.children=n),Zo(e.type,u,r||e.key,o||e.ref,null)}Bo={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0},Xo.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=qo({},this.state),"function"==typeof e&&(e=e(qo({},n),this.props)),e&&qo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),ei(this))},Xo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ei(this))},Xo.prototype.render=Jo,Uo=[],Ho="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ti.__r=0,Go=0;var gi,yi,vi,bi=0,Ci=[],Ei=Bo.__b,xi=Bo.__r,Si=Bo.diffed,Ii=Bo.__c,Ni=Bo.unmount;function ki(e,t){Bo.__h&&Bo.__h(yi,e,bi||t),bi=0;var n=yi.__H||(yi.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Pi(e){return bi=1,Ai(Fi,e)}function Ai(e,t,n){var r=ki(gi++,2);return r.t=e,r.__c||(r.__=[n?n(t):Fi(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=yi),r.__}function Mi(e,t){var n=ki(gi++,3);!Bo.__s&&Hi(n.__H,t)&&(n.__=e,n.__H=t,yi.__H.__h.push(n))}function Ti(e,t){var n=ki(gi++,4);!Bo.__s&&Hi(n.__H,t)&&(n.__=e,n.__H=t,yi.__h.push(n))}function Di(e,t){var n=ki(gi++,7);return Hi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Oi(e,t){Bo.useDebugValue&&Bo.useDebugValue(t?t(e):e)}function Ri(){Ci.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Bi),e.__H.__h.forEach(Ui),e.__H.__h=[]}catch(t){e.__H.__h=[],Bo.__e(t,e.__v)}})),Ci=[]}Bo.__b=function(e){yi=null,Ei&&Ei(e)},Bo.__r=function(e){xi&&xi(e),gi=0;var t=(yi=e.__c).__H;t&&(t.__h.forEach(Bi),t.__h.forEach(Ui),t.__h=[])},Bo.diffed=function(e){Si&&Si(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ci.push(t)&&vi===Bo.requestAnimationFrame||((vi=Bo.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),Li&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Li&&(t=requestAnimationFrame(n))})(Ri)),yi=void 0},Bo.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Bi),e.__h=e.__h.filter((function(e){return!e.__||Ui(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Bo.__e(n,e.__v)}})),Ii&&Ii(e,t)},Bo.unmount=function(e){Ni&&Ni(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Bi)}catch(e){Bo.__e(e,t.__v)}};var Li="function"==typeof requestAnimationFrame;function Bi(e){var t=yi;"function"==typeof e.__c&&e.__c(),yi=t}function Ui(e){var t=yi;e.__c=e.__(),yi=t}function Hi(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fi(e,t){return"function"==typeof t?t(e):t}function Gi(e,t){for(var n in t)e[n]=t[n];return e}function ji(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Wi(e){this.props=e}(Wi.prototype=new Xo).isPureReactComponent=!0,Wi.prototype.shouldComponentUpdate=function(e,t){return ji(this.props,e)||ji(this.state,t)};var Vi=Bo.__b;Bo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vi&&Vi(e)};var qi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var zi=function(e,t){return null==e?null:oi(oi(e).map(t))},Ki={map:zi,forEach:zi,count:function(e){return e?oi(e).length:0},only:function(e){var t=oi(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:oi},Zi=Bo.__e;Bo.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Zi(e,t,n)};var Ji=Bo.unmount;function Xi(){this.__u=0,this.t=null,this.__b=null}function Yi(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Qi(){this.u=null,this.o=null}Bo.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ji&&Ji(e)},(Xi.prototype=new Xo).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Yi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Xi.prototype.componentWillUnmount=function(){this.t=[]},Xi.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=Gi({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&Ko(Jo,null,e.fallback);return o&&(o.__h=null),[Ko(Jo,null,t.__e?null:e.children),o]};var es=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 ts(e){return this.getChildContext=function(){return e.context},e.children}function ns(e){var t=this,n=e.i;t.componentWillUnmount=function(){mi(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),mi(Ko(ts,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Qi.prototype=new Xo).__e=function(e){var t=this,n=Yi(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),es(t,e,r)):o()};n?n(i):i()}},Qi.prototype.render=function(e){this.u=null,this.o=new Map;var t=oi(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Qi.prototype.componentDidUpdate=Qi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){es(e,n,t)}))};var rs="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,os=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,is=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Xo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Xo.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ss=Bo.event;function us(){}function cs(){return this.cancelBubble}function ls(){return this.defaultPrevented}Bo.event=function(e){return ss&&(e=ss(e)),e.persist=us,e.isPropagationStopped=cs,e.isDefaultPrevented=ls,e.nativeEvent=e};var as,$s={configurable:!0,get:function(){return this.class}},fs=Bo.vnode;Bo.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!is(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():os.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=oi(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=oi(n.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&&n.class!=n.className&&($s.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",$s)),e.$$typeof=rs,fs&&fs(e)};var ds=Bo.__r;Bo.__r=function(e){ds&&ds(e),as=e.__c};var hs={ReactCurrentDispatcher:{current:{readContext:function(e){return as.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function ps(e){return!!e&&e.$$typeof===rs}const ms={useState:Pi,useReducer:Ai,useEffect:Mi,useLayoutEffect:Ti,useRef:function(e){return bi=5,Di((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){bi=6,Ti((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Di,useCallback:function(e,t){return bi=8,Di((function(){return e}),t)},useContext:function(e){var t=yi.context[e.__c],n=ki(gi++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(yi)),t.props.value):e.__},useDebugValue:Oi,version:"16.8.0",Children:Ki,render:function(e,t,n){return null==t.__k&&(t.textContent=""),mi(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return _i(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(mi(null,e),!0)},createPortal:function(e,t){return Ko(ns,{__v:e,i:t})},createElement:Ko,createContext:function(e,t){var n={__c:t="__cC"+Go++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(ei)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return Ko.bind(null,e)},cloneElement:function(e){return ps(e)?wi.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Jo,isValidElement:ps,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Xo,PureComponent:Wi,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ji(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Ko(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=Gi({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=qi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Jo,Suspense:Xi,SuspenseList:Qi,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Ko(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hs},_s=e=>{Mi(()=>{const t=e();return()=>{t.Dispose()}})},ws=(e,t)=>{Mi(()=>{const t=e();return()=>{t.Dispose()}},t)},gs=e=>{Ti(()=>{const t=e();return()=>{t.Dispose()}})};function ys(e,t,n,r){const o=ms.memo(e,I(2,de(N(2,n),null)));return zr(t=>{e.displayName=t},fe(t)),e=>{const t=vs(r,e);return ms.createElement(o,t)}}function vs(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function bs(e){return{Dispose(){e()}}}function Cs(e){_s(e)}function Es(e,t){ws(e,t)}function xs(e){Es(e,[])}function Ss(e,t){ws(t=>(e(),bs(()=>{})),t)}function Is(e,t){return ms.useCallback(e,de(t,[]))}function Ns(e){return ms.useRef(e)}function ks(e,t){return ms.useMemo(e,de(t,[]))}function Ps(e){const t=Ns(e),n=Is(e=>t.current(e),[]);var r;return r=()=>{t.current=e},gs(e=>(r(),bs(()=>{}))),n}function As(e){return ms.useState(e)}const Ms=(()=>{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 Ts(e){return he(e=>e.passive&&!Ms?{capture:e.capture,once:e.once,passive:!1}:e,e)}function Ds(e){return t=e=>e.capture?{capture:!0}:void 0,null!=(n=e)?t($e(n)):void 0;var t,n}var Os={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Ye](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Rs="[big.js] ",Ls=Rs+"Invalid ",Bs=Ls+"decimal places",Us=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Hs(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!Us.test(t+=""))throw Error(Ls+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=Fs(e,js.DP,js.RM)}function Fs(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,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(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function Gs(e,t,n,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?Ls+"precision":Bs);for(n=r-(e=new s(e)).e,e.c.length>++r&&Fs(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>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>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==t)?"-"+i:i}Os.abs=function(){var e=new this.constructor(this);return e.s=1,e},Os.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(t=s<0,c!=l)return c>l^t?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(l=s<i.length?i[s]:0))return c>l^t?1:-1;return 0},Os.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(Bs);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var u,c,l,a,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,_=e,w=_.c=[],g=0,y=s+(_.e=n.e-e.e)+1;for(_.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(l=0;l<10;l++){if(u!=(m=p.length))a=u>m?1:-1;else for($=-1,a=0;++$<u;)if(o[$]!=p[$]){a=o[$]>p[$]?1:-1;break}if(!(a<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[g++]=a?l:++l,p[0]&&a?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==g||(w.shift(),_.e--),g>y&&Fs(_,s,t.RM,void 0!==p[0]),_},Os.eq=function(e){return!this.cmp(e)},Os.gt=function(e){return this.cmp(e)>0},Os.gte=function(e){return this.cmp(e)>-1},Os.lt=function(e){return this.cmp(e)<0},Os.lte=function(e){return this.cmp(e)<1},Os.minus=Os.sub=function(e){var t,n,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 l=s.c.slice(),a=s.e,$=e.c,f=e.e;if(!l[0]||!$[0])return $[0]?(e.s=-c,e):new i(l[0]?s:0);if(u=a-f){for((o=u<0)?(u=-u,r=l):(f=a,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=l.length<$.length)?l:$).length,u=c=0;c<n;c++)if(l[c]!=$[c]){o=l[c]<$[c];break}if(o&&(r=l,l=$,$=r,e.s=-e.s),(c=(n=$.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>u;){if(l[--n]<$[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=$[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},Os.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},Os.plus=Os.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(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,l=e.c;if(!u[0]||!l[0])return l[0]?e:new n(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,t=l):(o=-o,t=u),t.reverse();o--;)t.push(0);t.reverse()}for(u.length-l.length<0&&(t=l,l=u,u=t),o=l.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+l[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},Os.pow=function(e){var t=this.constructor,n=new t(this),r=new t(1),o=new t(1),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(Ls+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Os.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Bs);return Fs(new n(this),e,void 0===t?n.RM:t)},Os.sqrt=function(){var e,t,n,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(Rs+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{n=e,e=u.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return Fs(e,r.DP-=4,r.RM)},Os.times=Os.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new n(0*e.s);for(e.e=c+l,s<u&&(t=o,o=i,i=t,l=s,s=u,u=l),t=new Array(l=s+u);l--;)t[l]=0;for(c=u;c--;){for(u=0,l=s+c;l>c;)u=t[l]+i[c]*o[l-c-1]+u,t[l--]=u%10,u=u/10|0;t[l]=(t[l]+u)%10}for(u?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Os.toExponential=function(e){return Gs(this,1,e,e)},Os.toFixed=function(e){return Gs(this,2,e,this.e+e)},Os.toPrecision=function(e){return Gs(this,3,e,e-1)},Os.toString=function(){return Gs(this)},Os.valueOf=Os.toJSON=function(){return Gs(this,4)};var js=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=Fs(e,28,0)).c.length>1&&!e.c[0]){let t=e.c.findIndex(e=>e);e.c=e.c.slice(t),e.e=e.e-t}}(r)):Hs(r,n),r.constructor=t}return t.prototype=Os,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),Ws=js;new Ws(0),new Ws(1),new Ws(-1),new Ws("79228162514264337593543950335"),new Ws("-79228162514264337593543950335");function Vs(e,t){return 0===t.indexOf(e)?t:void 0}function qs(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function zs(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s,u;return t=Vs("/",e),null!=t?(n=t,"#"+n):(r=Vs("#/",e),null!=r?(o=r,o):(i=Vs("#",e),null!=i?(s=i,"#/"+Rn(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let t,n,r;return t=Vs("/",e),null!=t?(n=t,n):(r=e,"/"+r)}}(t)(Tn("/",fr(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Ks(e,t,n){1===t?history.pushState(void 0,"",zs(e,n)):history.replaceState(void 0,"",zs(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Zs(e,t){return function(e,t){const n=new qn(null,void 0);let r=n,o=t;for(;null!=o.tail;){let t=e(Zn(o));for(;null!=t.tail;){const e=r,n=new qn(Zn(t),void 0);e.tail=n,r=n,t=Jn(t)}o=Jn(o)}const i=r,s=new qn(null,void 0);return i.tail=s,Jn(n)}(e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Xn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+gn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Xn();if(null!=Vs("?",t))return Qn(t);{const e=t.split("?");if(jn(0,e,null)||1!==e.length){if(jn(0,e,null)||2!==e.length)return Xn();if(""===e[1]){const t=e[0];return Qn(decodeURIComponent(t))}{const t=e[0],n=e[1];return cr([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Qn(decodeURIComponent(t))}}}var t},cr(On(null!=Vs("#",e)?Rn(e,1,e.length-1):1===t&&(null!=qs("#",e)||null!=qs("#/",e))?"":e,["/"],null,0)))}const Js=ys(e=>{const t=Ps(t=>{const n=de(e.onUrlChanged,e=>{});return function(e,t,n){return t(Zs(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|de(e.hashMode,1),n)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=ks(()=>Ts(r),[r]),i=ks(()=>Ds(r),[r]),s=ks(()=>e=>{n(e)},[n]);Cs(Ps(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return bs(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}else{const e="popstate",n=t,r=void 0,o=ks(()=>Ts(r),[r]),i=ks(()=>Ds(r),[r]),s=ks(()=>e=>{n(e)},[n]);Cs(Ps(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return bs(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=ks(()=>Ts(void 0),[void 0]),i=ks(()=>Ds(void 0),[void 0]),s=ks(()=>e=>{r(e)},[r]);Cs(Ps(()=>{if(null==o)window.addEventListener(n,s);else{const e=o;window.addEventListener(n,s,e)}return bs(()=>{if(null==i)window.removeEventListener(n,s);else{const e=i;window.removeEventListener(n,s,e)}})}));const u=e.application;return null==u?null:u},void 0,Ys,Xs);var Xs,Ys;class Qs extends L{constructor(e,t,n,r,o,i){super(),this.Metadata=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.PartnerKeyHash=i}}function eu(){return V("WriteModels.Partner",[],Qs,()=>[["Metadata",Er()],["Name",ge()],["Website",ve()],["ContactDetails",Ie()],["Notes",z(ke())],["PartnerKeyHash",Ae()]])}class tu extends L{constructor(e,t,n,r,o,i,s,u){super(),this.Metadata=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ApiKeyHash=u}}function nu(){return V("WriteModels.Account",[],tu,()=>[["Metadata",Er()],["PartnerId",Oe()],["Name",ge()],["Website",ve()],["ContactDetails",Ie()],["Notes",z(ke())],["LegalEntity",z(V("BasicModels.LegalEntity",[],qe,()=>[["BusinessName",q("BasicModels.BusinessName",[],Le,()=>[[["Item",J]]])],["BusinessNumber",q("BasicModels.BusinessNumber",[],Be,()=>[[["Item",J]]])],["Address1",q("BasicModels.Address1",[],Ue,()=>[[["Item",J]]])],["Address2",z(q("BasicModels.Address2",[],He,()=>[[["Item",J]]]))],["City",q("BasicModels.City",[],Fe,()=>[[["Item",J]]])],["Postcode",q("BasicModels.Postcode",[],Ge,()=>[[["Item",J]]])],["State",z(q("BasicModels.State",[],je,()=>[[["Item",J]]]))],["Phone",q("BasicModels.Phone",[],We,()=>[[["Item",J]]])],["Country",q("BasicModels.Country",[],Ve,()=>[[],[]])]]))],["ApiKeyHash",Te()]])}class ru extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerList","Partner","ParterAccountList","Account","NotFound"]}}function ou(){return q("AccountRegistry.AdminUI.Types.Page",[],ru,()=>[[],[["Item",Oe()]],[["Item",Oe()]],[["Item1",Oe()],["Item2",q("BasicModels.AccountId",[],Re,()=>[[["Item",J]]])]],[]])}function iu(e){let t,n,r,o,i;switch(er(e)?t=4:"account-registry"===tr(e)?er(nr(e))?t=4:"partners"===tr(nr(e))?er(nr(nr(e)))?t=0:er(nr(nr(nr(e))))?(t=1,n=tr(nr(nr(e)))):"accounts"===tr(nr(nr(nr(e))))?er(nr(nr(nr(nr(e)))))?(t=2,r=tr(nr(nr(e)))):er(nr(nr(nr(nr(nr(e))))))?(t=3,o=tr(nr(nr(nr(nr(e))))),i=tr(nr(nr(e)))):t=4:t=4:t=4:t=4,t){case 0:return new ru(0);case 1:return new ru(1,new De(0,n));case 2:return new ru(2,new De(0,r));case 3:return new ru(3,new De(0,i),new Re(0,o));case 4:return new ru(4)}}function su(e){switch(e.tag){case 1:return cr(["account-registry","partners",Do(e.fields[0])]);case 2:return cr(["account-registry","partners",Do(e.fields[0]),"accounts"]);case 3:{const t=e.fields[0],n=e.fields[1];return cr(["account-registry","partners",Do(t),"accounts",Oo(n)])}default:return cr(["account-registry","partners"])}}function uu(e){switch(e.tag){case 1:{const t=["account-registry","partners",Do(e.fields[0])];return Qn(e=>{Ks(cr(t),1,1)})}case 2:{const t=["account-registry","partners",Do(e.fields[0]),"accounts"];return Qn(e=>{Ks(cr(t),1,1)})}case 3:{const t=e.fields[0],n=e.fields[1],r=["account-registry","partners",Do(t),"accounts",Oo(n)];return Qn(e=>{Ks(cr(r),1,1)})}default:{const e=["account-registry","partners"];return Qn(t=>{Ks(cr(e),1,1)})}}}class cu extends L{constructor(e,t){super(),this.Partners=e,this.Accounts=t}}function lu(){return V("AccountRegistry.AdminUI.Types.Data",[],cu,()=>[["Partners",K(eu())],["Accounts",K(nu())]])}function au(e){}function $u(e){const t=new oo("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function fu(e){e.cancel()}function du(e){return null!=e&&e.isCancelled}const hu=new oo;function pu(e){return uo(t=>e([t.onSuccess,t.onError,t.onCancel]))}function mu(e,t){return function(e,t){return _u(e,t)}(e,t)}function _u(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new so;e({onSuccess:t||au,onError:n||au,onCancel:r||au,cancelToken:o||hu,trampoline:i})}class wu{constructor(e,t){this.k=e,this.v=t}}function gu(e,t){return new wu(e,t)}function yu(e){return e.k}function vu(e){return e.v}class bu extends wu{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function Cu(e,t,n,r,o){return new bu(e,t,n,r,o)}function Eu(e){return e.left}function xu(e){return e.right}function Su(e){return e.h}function Iu(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof bu){const o=i;t=e(r+1,Eu(o)),n=xu(o);continue e}return r+1|0}return 0|r}}(0,e)}function Nu(e,t,n,r){let o,i,s;if(null!=e){const t=e;s=t instanceof bu?(o=t,Su(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof bu?(i=e,Su(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?gu(t,n):Cu(t,n,e,r,c+1)}function ku(e,t,n,r){let o,i,s,u,c,l,a,$,f;if(null!=e){const t=e;f=t instanceof bu?(o=t,Su(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof bu?(i=e,Su(i)):1}else d=0;if(d>f+2){const o=$e(r);if(o instanceof bu){const r=o;if(s=Eu(r),(null!=s?(u=s,u instanceof bu?(c=u,Su(c)):1):0)>f+1){const o=$e(Eu(r));if(o instanceof bu){const i=o;return Nu(Nu(e,t,n,Eu(i)),yu(i),vu(i),Nu(xu(i),yu(r),vu(r),xu(r)))}throw new Error("internal error: Map.rebalance")}return Nu(Nu(e,t,n,Eu(r)),yu(r),vu(r),xu(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=$e(e);if(o instanceof bu){const e=o;if(l=xu(e),(null!=l?(a=l,a instanceof bu?($=a,Su($)):1):0)>d+1){const o=$e(xu(e));if(o instanceof bu){const i=o;return Nu(Nu(Eu(e),yu(e),vu(e),Eu(i)),yu(i),vu(i),Nu(xu(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return Nu(Eu(e),yu(e),vu(e),Nu(xu(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return Nu(e,t,n,r)}function Pu(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,yu(o));if(o instanceof bu){const r=o;return i<0?ku(Pu(e,t,n,Eu(r)),yu(r),vu(r),xu(r)):0===i?Cu(t,n,Eu(r),xu(r),Su(r)):ku(Eu(r),yu(r),vu(r),Pu(e,t,n,xu(r)))}return i<0?Cu(t,n,void 0,r,2):0===i?gu(t,n):Cu(t,n,r,void 0,2)}return gu(t,n)}function Au(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,yu(s));if(0===u)return ae(vu(s));if(s instanceof bu){const i=s;e=r,t=o,n=u<0?Eu(i):xu(i);continue e}return}return}}function Mu(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof bu){const o=i;e(r,Eu(o)),r(yu(o),vu(o)),t=r,n=xu(o);continue e}r(yu(i),vu(i))}break}}(e,t)}function Tu(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof bu){const n=r,o=e(t,Eu(n)),i=t(yu(n),vu(n)),s=e(t,xu(n));return Cu(yu(n),i,o,s,Su(n))}return gu(yu(r),t(yu(r),vu(r)))}}(e,t)}function Du(e,t,n){let r=0|n;Mu((e,n)=>{t[r]=[e,n],r+=1},e)}function Ou(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r],i=o[1];n=Pu(e,o[0],i,n)}return n}function Ru(e,t){if(r(t)){return Ou(e,t)}if(t instanceof qn){return function(e,t){return or((t,n)=>{const r=n[0],o=n[1];return Pu(e,r,o,t)},void 0,t)}(e,t)}{const n=c(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s[1];e=r,t=Pu(r,s[0],u,o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class Lu extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function Bu(e){e:for(;;){const t=e;if(er(t))return Xn();{const n=nr(t),r=tr(t);if(null!=r){const o=r;if(o instanceof bu){const t=o;e=ur([Eu(t),gu(yu(t),vu(t)),xu(t)],n);continue e}return t}e=n;continue e}}}function Uu(e){return new Lu(Bu(Qn(e)),!1)}function Hu(e){if(e.started){const t=e.stack;if(er(t))return function(){throw new Error("enumeration already finished")}();if(null!=tr(t)){const e=tr(t);if(e instanceof bu)throw new Error("Please report error: Map iterator, unexpected stack for current");return[yu(e),vu(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Fu(e){let t=Uu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Hu(t),"System.Collections.IEnumerator.get_Current":()=>Hu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(er(t))return!1;if(null!=tr(t)){const n=tr(t),r=nr(t);if(n instanceof bu)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Bu(r),!er(e.stack)}nr(t);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!er(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Uu(e)},Dispose(){}}}class Gu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=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];n=t(n,_(i)),n=t(n,_(o))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof Gu))return!1;{const t=e,n=c(this);try{const e=c(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["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]))&&t()}return!0}return!1};return t()}finally{e.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+Tn("; ",Kr(e=>An("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Fu(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Fu(this.tree)}CompareTo(e){const t=this;if(e instanceof Gu){return 0|function(e,t,n){const r=Rr(t);try{const t=Rr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{t.Dispose()}}finally{r.Dispose()}}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:E(e[1],n[1]))},t,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!!zu(this,e[0])&&y(Vu(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Du(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|qu(this)}get size(){return 0|qu(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Kr(e=>[e[0],e[1]],this)}get(e){return Vu(this,e)}has(e){return zu(this,e)}keys(){return Kr(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Kr(e=>e[1],this)}forEach(e,t){const n=this;zr(t=>{e(t[1],t[0],n)},n)}}function ju(e,t){return new Gu(e,t)}function Wu(e){const t=Sr();return ju(t,Ru(t,e))}function Vu(e,t){return function(e,t,n){const r=Au(e,t,n);if(null==r)throw new Error;return $e(r)}(e.comparer,t,e.tree)}function qu(e){return Iu(e.tree)}function zu(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,yu(s));if(s instanceof bu){const i=s;if(u<0){e=r,t=o,n=Eu(i);continue e}if(0===u)return!0;e=r,t=o,n=xu(i);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function Ku(e,t,n){return function(e,t,n){return ju(e.comparer,Pu(e.comparer,t,n,e.tree))}(n,e,t)}function Zu(e,t){return function(e,t){return Au(e.comparer,t,e.tree)}(t,e)}function Ju(e,t){return r=e,ju((n=t).comparer,Tu(r,n.tree));var n,r}function Xu(){return Gu.empty}(()=>{const e=Sr();Gu.empty=ju(e,void 0)})();class Yu extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Qu(e){return q("Feliz.UseDeferred.Deferred`1",[e],Yu,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function ec(e,t){const n=Ns($u());xs(()=>bs(()=>{fu(n.current)}));return Ps(r=>{var o;du(n.current)||mu((o=r,ao.Delay(()=>ao.TryWith(ao.Delay(()=>(t(new Yu(1)),ao.Bind(e(o),e=>(t(new Yu(2,e)),ao.Zero())))),e=>{const n=e;return console.log(ae(n)),t(new Yu(3,n)),ao.Zero()}))),n.current)})}function tc(){return Xn()}class nc extends L{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function rc(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*rc(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}rn(2013265921,0,!1),rn(2013265921,0,!0);Fn(28,e=>rc(2,e),Int32Array);function oc(e){return e.bound}function ic(e,t){return e.digits[t]}function sc(e,t){return un(ic(e,t),!1,2)}function uc(e,t,n){e.digits[t]=n}function cc(e,t){for(;;){const n=e,r=t;if(0===r)return rn(1,0,!1);if(r%2!=0)return Xt(n,cc(Xt(n,n),~~(r/2)));e=Xt(n,n),t=~~(r/2)}}function lc(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*lc(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const ac=rn(16777216,0,!1),$c=rn(16777215,0,!1);rn(16777215,0,!0);function fc(e){return new nc(e,new Int32Array(e))}function dc(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=t,e}function hc(e){const t=0|(e<0?0:e);if(t<16777216){const e=fc(1);return e.digits[0]=t,dc(e)}{const e=fc(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/lc(16777216,n))%16777216;return dc(e)}}const pc=hc(1),mc=hc(0);function _c(e){return e.bound-1}function wc(e){return 0===e.bound}function gc(e,t){if(e.bound===t.bound){return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}return!1}function yc(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}function vc(e,t){return-1===yc(e,t)}function bc(e,t,n){for(;;){const r=e,o=t,i=n;if(!(nn(o,rn(0,0,!1))>0))break;{const s=Jt(sc(r,i),o);uc(r,i,~~on(tn(s,$c))),e=r,t=Yt(s,ac),n=i+1}}}function Cc(e,t){const n=0|oc(e),r=fc(n+1|0),o=un(t,!1,2);let i=rn(0,0,!1);for(let t=0;t<=n-1;t++){const n=Jt(Jt(i,sc(r,t)),Xt(sc(e,t),o));uc(r,t,~~on(tn(n,$c))),i=Yt(n,ac)}return bc(r,i,n),dc(r)}function Ec(e,t){const n=1===oc(e),r=1===oc(t);return n&&r?function(e,t){const n=fc(2),r=Xt(un(e,!1,2),un(t,!1,2));return uc(n,0,~~on(tn(r,$c))),uc(n,1,~~on(Yt(r,ac))),dc(n)}(ic(e,0),ic(t,0)):n?Cc(t,ic(e,0)):r?Cc(e,ic(t,0)):function(e,t){const n=fc(e.bound+t.bound|0),r=n.digits,o=e.digits,i=t.digits;for(let s=0;s<=e.bound-1;s++){const e=un(o[s],!1,2);let u=rn(0,0,!1),c=0|s;for(let n=0;n<=t.bound-1;n++){const t=un(i[n],!1,2),o=Jt(Jt(un(r[c],!1,2),u),Xt(e,t));r[c]=~~on(tn(o,$c)),u=Yt(o,ac),c+=1}bc(n,u,c)}return dc(n)}(e,t)}class xc extends L{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function Sc(e,t,n,r){return new xc(e,lc(2,e),t,n,r,~~(24/e),Fn(~~(24/e),t=>lc(2,e*t),Int32Array))}const Ic=[Sc(1,28,268435456,268435456),Sc(2,26,67108864,134217728),Sc(3,24,16777216,50331648),Sc(4,22,4194304,16777216),Sc(5,20,1048576,5242880),Sc(6,18,262144,1572864),Sc(7,16,65536,458752),Sc(8,14,16384,131072),Sc(9,12,4096,36864),Sc(10,10,1024,10240),Sc(11,8,256,2816),Sc(12,6,64,768),Sc(13,4,16,208)];Fn(24,e=>lc(2,e)-1,Int32Array),Fn(24,e=>lc(2,e),Int32Array),Fn(24,e=>cc(rn(2,0,!1),e));Ic[0].bigN;function Nc(e,t){return Ec(e,t)}function kc(e,t,n,r){const o=e,i=[e.digits,_c(e)],s=0|i[1],u=i[0],c=[n.digits,_c(n)],l=0|c[1],a=c[0],$=un(t,!1,2);let f=0,d=Xt($,un(a[0],!1,2));for(;nn(d,rn(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~on(tn(d,$c)),t=Yt(d,ac);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),t=Jt(t,rn(1,0,!1))),d=f<l?Jt(t,Xt($,un(a[f+1],!1,2))):t,f+=1}dc(o)}function Pc(e,t,n,r){const o=e,i=[e.digits,_c(e)],s=0|i[1],u=i[0],c=[n.digits,_c(n)],l=0|c[1],a=c[0],$=un(t,!1,2);let f=0,d=Xt($,un(a[0],!1,2));for(;nn(d,rn(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~on(tn(d,$c)),t=Yt(d,ac);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),t=Jt(t,rn(1,0,!1))),d=f<l?Jt(t,Xt($,un(a[f+1],!1,2))):t,f+=1}dc(o)}function Ac(e,t,n){const r=[_c(t),_c(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],s=r[1],u=r[0];let c;if(0===i)if(o===n)c=~~(s[n]/u[0]);else{const e=Yt(Jt(Xt(un(s[o],!1,2),ac),un(s[o-1],!1,2)),un(u[0],!1,2));c=~~on(e)}else if(o===i+n)c=~~(s[o]/(u[i]+1));else{const e=Yt(Jt(Xt(un(s[o],!1,2),ac),un(s[o-1],!1,2)),Jt(un(u[i],!1,2),rn(1,0,!1)));c=~~on(e)}if(0===c){return 1!==function(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:0|((e,n,o)=>{e:for(;;){const i=e,s=n,u=o;if(-1===u)return 0;{const c=0|(u<t?0:i[u-t]),l=0|(u<r?0:s[u-r]);if(c===l){e=i,n=s,o=u-1;continue e}return c<l?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e,0)?1:0}return 0|c}}function Mc(e,t){if(wc(t))throw new Error;if(_c(e)<_c(t))return[mc,e];{const n=function(e){return new nc(e.bound,e.digits.slice())}(e),r=fc(_c(e)-_c(t)+1+1);let o=0|_c(e);const i=0|_c(t);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,n,s,o]);const e=0|Ac(n,t,s);e>0?(kc(n,e,t,s),Pc(r,e,pc,s),u([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,n,s-1,o]),s-=1):(u([r,n,s-1,o-1]),s-=1,o-=1)))}return[dc(r),dc(n)]}}hc(2);function Tc(e){return hc(e)}function Dc(e){return function(e){const t=nn(e,rn(0,0,!1))<0?rn(0,0,!1):e,n=fc(3);for(let e=0;e<=2;e++)n.digits[e]=~~on(Qt(Yt(t,cc(ac,e)),ac));return dc(n)}(e)}function Oc(e){const t=0|_c(e),n=((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(_c(s)>t)return Yn([i,s],o);e=Yn([i,s],o),n=i+1,r=Nc(s,s)}})(Xn(),0,hc(10)),r=(e,t,n,o)=>{if(er(o)){const r=0|function(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+16777216*t;return 0|t}}(n);return e&&0===r?t:Yn(f(r),t)}{const i=tr(o)[1],s=nr(o),u=Mc(n,i),c=u[1],l=u[0];if(e&&wc(l)){return r(e,t,c,s)}{const n=r(!1,t,c,s);return r(e,n,l,s)}}},o=n,i=r(!0,Xn(),e,o);return er(i)?"0":Tn("",rr(i))}function Rc(e){return e.bound<=1}function Lc(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class Bc extends L{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|Fc(e)){case-1:return wc(Gc(e))?"0":"-"+Oc(Gc(e));case 0:return"0";case 1:return Oc(Gc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof Bc){return jc(this,e)}return!1}GetHashCode(){return 0|(0===Fc(e=this)?1:Fc(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(Gc(e))|0);var e}CompareTo(e){if(e instanceof Bc){return 0|function(e,t){return Wc(e,t)?-1:jc(e,t)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function Uc(e,t){return new Bc(e,t)}function Hc(e){return Rc(e)&&Lc(e)<Bc.smallLim?Bc.smallPosTab[Lc(e)]:e}function Fc(e){return e.signInt}function Gc(e){return e.v}function jc(e,t){const n=[Fc(e),Fc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return gc(Gc(e),Gc(t));case 2:case 3:return!!wc(Gc(e))&&wc(Gc(t));case 4:return!0;case 5:case 6:return wc(Gc(t));case 7:case 8:return wc(Gc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Wc(e,t){const n=[Fc(e),Fc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return vc(Gc(e),Gc(t));case 1:return vc(Gc(t),Gc(e));case 2:return!1;case 3:return!wc(Gc(e))||!wc(Gc(t));case 4:return!1;case 5:return!wc(Gc(t));case 6:case 7:return!1;case 8:return!wc(Gc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Vc(e){return e>=0?Uc(1,Hc(Tc(e))):Uc(-1,Hc(-2147483648===e?Dc(en(un(e,!1,2))):Tc(Xe(e))))}function qc(){return Bc.one}function zc(){return Bc.two}function Kc(){return Bc.zero}Bc.smallLim=4096,Bc.smallPosTab=Fn(Bc.smallLim,e=>Tc(e)),Bc.one=Vc(1),Bc.two=Vc(2),Bc.zero=Vc(0);Kc(),qc(),zc();Kc(),qc();class Zc{constructor(){}}function Jc(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(y(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const Xc=new Zc;class Yc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Qc{constructor(e){this.state=new Yc(0,Un(new Array(x((e,t)=>b(e,t),e,10)),0,x((e,t)=>b(e,t),e,10),null),0)}}function el(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Yc(0,o,n):new Yc(1,o,n,i),ae(o[r])}}function tl(e,t,n){const r=Ns(e[0]),o=Ns(new Qc(10));const s=As(e[0]),u=s[1],c=s[0];let l;const a=Ns($u()),$=Ns(a.current);xs(()=>bs(()=>{fu(a.current)})),l=$;const f=()=>{setTimeout(()=>{let e;e=l.current,du(e)||u(r.current)},0)},d=e=>{var n;(n=Jc(0,()=>{let n=ae(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Xc,()=>{let e;return null!=n&&(e=l.current,!du(e))},Jc(0,()=>{const e=$e(n),i=t(e,r.current),s=i[0];return sr(e=>{e(d)},i[1]),n=el(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},h=Ps(d);var p;return Es(()=>bs(()=>{let e,t;zr(e=>{e.Dispose()},fe((e=r.current,i(e)?(t=e,t):void 0)))}),n),Ss(()=>{r.current=e[0],f(),sr(e=>{e(h)},e[1])},n),p=()=>{zr(h,fe(el(o.current)))},_s(e=>(p(),bs(()=>{}))),[c,h]}class nl{constructor(){}}function rl(e,t){return ao.Delay(t)}new nl;class ol extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class il extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class sl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ul extends L{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class cl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ll extends L{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const al=new ul("",new ol(0),Xn(),!1,void 0,void 0,new sl(0));new ll(0,"","",Xu(),new cl(0,""));function $l(e,t){return Mn(t)?[t]:On(t,[e],null,0)}function fl(e){return new ul(e,al.method,al.headers,al.withCredentials,al.overridenMimeType,al.overridenResponseType,al.content)}function dl(e,t){return new ul(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function hl(e){return pu(t=>{const n=t[0],r=(t[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,t,o,i,s,u;4===r.readyState&&n((t=r.responseType,e=""===t||"text"===t?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new cl(0,r.responseText):new cl("arraybuffer"===u?2:"blob"===u?1:3,r.response),new ll(o,e,i,function(e){const t=Sr();return ju(t,Ou(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=$e(o);r.push(e)}}return"function"==typeof n?Hn(e=>e,r,n):r}(e=>{const t=cr($l(":",e));if(!er(t)){const e=nr(t);return[tr(t).toLocaleLowerCase(),Tn(":",e).trim()]}},$l("\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"](),t=e.fields[1],n=e.fields[0];r.setRequestHeader(n,t)}}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 pl(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(er(i))return r;{const s=nr(i),u=tr(i),c=ho(0,()=>_e(e=>{const t=e;return po(0,r,e=>ar(e,Qn(t)))},o(u)))();if(1===c.tag)return c;e=c,t=o,n=s;continue e}}}(new pe(0,Xn()),e,t)}function ml(e){return pl(e=>e,e)}class _l extends L{constructor(e,t,n,r,o,i){super(),this.Metadata=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.PartnerKeyHash=i}}class wl extends L{constructor(e,t,n,r,o,i,s,u){super(),this.Metadata=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ApiKeyHash=u}}function gl(e){return ho(0,()=>{const t=go(e.Metadata);return _e(n=>{const r=n;return _e(n=>{const o=n;return _e(n=>{const i=n;return _e(n=>{const s=n,u=Po(e.Notes);return _e(n=>{const c=n;return po(0,To(e.ApiKeyHash),e=>new tu(t,r,o,i,s,u,c,e))},Lo(e.LegalEntity))},ko(e.ContactDetails))},bo(e.Website))},yo(e.Name))},me(e=>new De(0,e),to("PartnerId",e.PartnerId)))})()}class yl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class vl extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class bl{constructor(){this.cache=new Map([])}}function Cl(){return new bl}Cl(),Cl();function El(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function xl(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=wn(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=yn(e,s),c=yn.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(El(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return El(t)}}function Sl(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Il(e,t){try{return t.contents=function(e){const t=mn(e),n=cn.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return Sl(t.getTime(),r)}(e),!0}catch(e){return!1}}function Nl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return kl(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function kl(e){return sn(Yt(e,1e4))}function Pl(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Nl(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Nl(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Al{constructor(e){this.k=e}}function Ml(e){return new Al(e)}function Tl(e){return e.k}class Dl extends Al{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function Ol(e,t,n,r){return new Dl(e,t,n,r)}function Rl(e){return e.left}function Ll(e){return e.right}function Bl(e){return e.h}function Ul(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Dl){const r=i;t=Rl(r),n=e(Ll(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Hl(e,t,n){let r,o,i;if(null!=e){const t=e;i=t instanceof Dl?(r=t,Bl(r)):1}else i=0;let s;if(null!=n){const e=n;s=e instanceof Dl?(o=e,Bl(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?Ml(t):Ol(t,e,n,u+1)}function Fl(e,t,n){let r,o,i,s,u,c,l,a,$;if(null!=e){const t=e;$=t instanceof Dl?(r=t,Bl(r)):1}else $=0;let f;if(null!=n){const e=n;f=e instanceof Dl?(o=e,Bl(o)):1}else f=0;if(f>$+2){const r=$e(n);if(r instanceof Dl){const n=r;if(i=Rl(n),(null!=i?(s=i,s instanceof Dl?(u=s,Bl(u)):1):0)>$+1){const r=$e(Rl(n));if(r instanceof Dl){const o=r;return Hl(Hl(e,t,Rl(o)),Tl(o),Hl(Ll(o),Tl(n),Ll(n)))}throw new Error("internal error: Set.rebalance")}return Hl(Hl(e,t,Rl(n)),Tl(n),Ll(n))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=$e(e);if(r instanceof Dl){const e=r;if(c=Ll(e),(null!=c?(l=c,l instanceof Dl?(a=l,Bl(a)):1):0)>f+1){const r=$e(Ll(e));if(r instanceof Dl){const o=r;return Hl(Hl(Rl(e),Tl(e),Rl(o)),Tl(o),Hl(Ll(o),t,n))}throw new Error("internal error: Set.rebalance")}return Hl(Rl(e),Tl(e),Hl(Ll(e),t,n))}throw new Error("internal error: Set.rebalance")}return Hl(e,t,n)}function Gl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Tl(r));if(r instanceof Dl){const i=r;return o<0?Fl(Gl(e,t,Rl(i)),Tl(i),Ll(i)):0===o?n:Fl(Rl(i),Tl(i),Gl(e,t,Ll(i)))}{const o=0|e.Compare(t,Tl(r));return o<0?Ol(t,void 0,n,2):0===o?n:Ol(t,n,void 0,2)}}return Ml(t)}function jl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Tl(s));if(s instanceof Dl){const i=s;if(u<0){e=r,t=o,n=Rl(i);continue e}if(0===u)return!0;e=r,t=o,n=Ll(i);continue e}return 0===u}return!1}}function Wl(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Dl){const r=o;Wl(n,Rl(r)),n(Tl(r)),e=n,t=Ll(r);continue e}n(Tl(o))}break}}class Vl extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function ql(e){e:for(;;){const t=e;if(er(t))return Xn();{const n=tr(t),r=nr(t);if(null!=n){const o=n;if(o instanceof Dl){const t=o;e=ur([Rl(t),Ml(Tl(t)),Ll(t)],r);continue e}return t}e=r;continue e}}}function zl(e){return new Vl(ql(Qn(e)),!1)}function Kl(e){if(e.started){const t=e.stack;if(er(t))return function(){throw new Error("Enumeration already started")}();if(null!=tr(t)){return Tl(tr(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Zl(e){let t=zl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Kl(t),"System.Collections.IEnumerator.get_Current":()=>Kl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(er(t))return!1;if(null!=tr(t)){const n=nr(t);if(tr(t)instanceof Dl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ql(n),!er(e.stack)}nr(t);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!er(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=zl(e)},Dispose(){}}}function Jl(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(er(s[0]))return er(s[1])?0:-1;if(er(s[1]))return 1;if(null!=tr(s[1]))if(null!=tr(s[0])){const u=nr(s[0]),c=nr(s[1]),l=tr(s[0]),a=tr(s[1]);if(l instanceof Dl){const s=l;if(null==Rl(s)){if(!(a instanceof Dl)){const o=0|r.Compare(Tl(s),Tl(a));if(0!==o)return 0|o;e=r,t=Yn(Ll(s),u),n=Yn(void 0,c);continue e}{const l=a;if(null==Rl(l)){const o=0|r.Compare(Tl(s),Tl(l));if(0!==o)return 0|o;e=r,t=Yn(Ll(s),u),n=Yn(Ll(l),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(er(s[0])?er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2:null!=tr(s[0])?(u=0,c=nr(s[0]),l=tr(s[0])):er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2,u){case 0:if(l instanceof Dl){const o=l;e=r,t=ur([Rl(o),Ol(Tl(o),void 0,Ll(o),0)],c),n=i;continue e}e=r,t=ur([void 0,Ml(Tl(l))],c),n=i;continue e;case 1:if($ instanceof Dl){const i=$;e=r,t=o,n=ur([Rl(i),Ol(Tl(i),void 0,Ll(i),0)],a);continue e}e=r,t=o,n=ur([void 0,Ml(Tl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,l,a,$;switch(er(s[0])?er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2:null!=tr(s[0])?(u=0,c=nr(s[0]),l=tr(s[0])):er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2,u){case 0:if(l instanceof Dl){const o=l;e=r,t=ur([Rl(o),Ol(Tl(o),void 0,Ll(o),0)],c),n=i;continue e}e=r,t=ur([void 0,Ml(Tl(l))],c),n=i;continue e;case 1:if($ instanceof Dl){const i=$;e=r,t=o,n=ur([Rl(i),Ol(Tl(i),void 0,Ll(i),0)],a);continue e}e=r,t=o,n=ur([void 0,Ml(Tl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(a instanceof Dl)){const o=0|r.Compare(Tl(l),Tl(a));if(0!==o)return 0|o;e=r,t=u,n=c;continue e}{const s=a;if(null==Rl(s)){const o=0|r.Compare(Tl(l),Tl(s));if(0!==o)return 0|o;e=r,t=Yn(void 0,u),n=Yn(Ll(s),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(er(s[0])?er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2:null!=tr(s[0])?(u=0,c=nr(s[0]),l=tr(s[0])):er(s[1])?u=2:null!=tr(s[1])?(u=1,a=nr(s[1]),$=tr(s[1])):u=2,u){case 0:if(l instanceof Dl){const o=l;e=r,t=ur([Rl(o),Ol(Tl(o),void 0,Ll(o),0)],c),n=i;continue e}e=r,t=ur([void 0,Ml(Tl(l))],c),n=i;continue e;case 1:if($ instanceof Dl){const i=$;e=r,t=o,n=ur([Rl(i),Ol(Tl(i),void 0,Ll(i),0)],a);continue e}e=r,t=o,n=ur([void 0,Ml(Tl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{nr(s[0]),nr(s[1]),tr(s[1]);const u=[o,i];let c,l,a,$,f;switch(er(u[0])?er(u[1])?c=2:null!=tr(u[1])?(c=1,$=nr(u[1]),f=tr(u[1])):c=2:null!=tr(u[0])?(c=0,l=nr(u[0]),a=tr(u[0])):er(u[1])?c=2:null!=tr(u[1])?(c=1,$=nr(u[1]),f=tr(u[1])):c=2,c){case 0:if(a instanceof Dl){const o=a;e=r,t=ur([Rl(o),Ol(Tl(o),void 0,Ll(o),0)],l),n=i;continue e}e=r,t=ur([void 0,Ml(Tl(a))],l),n=i;continue e;case 1:if(f instanceof Dl){const i=f;e=r,t=o,n=ur([Rl(i),Ol(Tl(i),void 0,Ll(i),0)],$);continue e}e=r,t=o,n=ur([void 0,Ml(Tl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==tr(s[0])){e=r,t=nr(s[0]),n=nr(s[1]);continue e}{nr(s[0]),nr(s[1]),tr(s[0]);const u=[o,i];let c,l,a,$,f;switch(er(u[0])?er(u[1])?c=2:null!=tr(u[1])?(c=1,$=nr(u[1]),f=tr(u[1])):c=2:null!=tr(u[0])?(c=0,l=nr(u[0]),a=tr(u[0])):er(u[1])?c=2:null!=tr(u[1])?(c=1,$=nr(u[1]),f=tr(u[1])):c=2,c){case 0:if(a instanceof Dl){const o=a;e=r,t=ur([Rl(o),Ol(Tl(o),void 0,Ll(o),0)],l),n=i;continue e}e=r,t=ur([void 0,Ml(Tl(a))],l),n=i;continue e;case 1:if(f instanceof Dl){const i=f;e=r,t=o,n=ur([Rl(i),Ol(Tl(i),void 0,Ll(i),0)],$);continue e}e=r,t=o,n=ur([void 0,Ml(Tl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Qn(t),Qn(n))}function Xl(e,t,n){let r=0|n;Wl(e=>{t[r]=e,r+=1},e)}function Yl(e,t){return Gn((t,n)=>Gl(e,n,t),void 0,t)}function Ql(e,t){if(r(t)){return Yl(e,t)}if(t instanceof qn){return function(e,t){return or((t,n)=>Gl(e,n,t),void 0,t)}(e,t)}{const n=c(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Gl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class ea{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=c(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();r=t,o=_(e),t=(r<<1)+o+631}}finally{n.Dispose()}var r,o;return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof ea&&(t=e,0===Jl(na(this),ra(this),ra(t)))}toString(){return"set ["+Tn("; ",Kr(e=>P(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Jl(na(this),ra(this),ra(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 jl(na(this),e,ra(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Xl(ra(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|oa(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|oa(this)}GetEnumerator(){return Zl(ra(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Zl(ra(this))}get size(){return 0|oa(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 ia(this,e)}keys(){return Kr(e=>e,this)}values(){return Kr(e=>e,this)}entries(){return Kr(e=>[e,e],this)}forEach(e,t){const n=this;zr(t=>{e(t,t,n)},n)}}function ta(e,t){return new ea(e,t)}function na(e){return e.comparer}function ra(e){return e.tree}function oa(e){return Ul(ra(e))}function ia(e,t){return jl(na(e),t,ra(e))}function sa(e,t){return ta(t,Ql(t,e))}function ua(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function ca(e,t){let n;switch(t.tag){case 2:{const e=t.fields[1];n=ua(t.fields[0],e,!0);break}case 1:{const e=t.fields[1],r=t.fields[2];n=ua(t.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=t.fields[1];n=ua(t.fields[0],e,!0);break}case 4:{const e=t.fields[1],r=t.fields[0],o=t.fields[2];n=ua(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=t.fields[1];n="Expecting "+t.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:n="The following errors were found:\n\n"+Tn("\n\n",t.fields[0]);break;case 6:n="The following `failure` occurred with the decoder: "+t.fields[0];break;default:{const e=t.fields[1];n=ua(t.fields[0],e,!1)}}return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function la(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new pe(1,ca(e[0],e[1]))}{const e=r.fields[0];return new pe(0,e)}}function aa(e,t){let n;try{return la("$",e,JSON.parse(t))}catch(e){if(n=e,n instanceof SyntaxError){return new pe(1,"Given an invalid JSON: "+e.message)}throw e}}const $a=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new pe(0,(e+128&255)-128):new pe(1,[n,new yl(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new pe(1,[n,new yl(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[Je(r,511,!1,8,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new pe(0,t)}return new pe(1,[n,new yl(0,"a sbyte",r)])}return new pe(1,[n,new yl(0,"a sbyte",r)])},fa=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new pe(0,255&e):new pe(1,[n,new yl(1,"a byte",e,"Value was either too large or too small for a byte")]):new pe(1,[n,new yl(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[Je(r,511,!0,8,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new pe(0,t)}return new pe(1,[n,new yl(0,"a byte",r)])}return new pe(1,[n,new yl(0,"a byte",r)])},da=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new pe(0,(e+32768&65535)-32768):new pe(1,[r,new yl(1,n,e,"Value was either too large or too small for "+n)]):new pe(1,[r,new yl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[Je(o,511,!1,16,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new pe(0,t)}return new pe(1,[r,new yl(0,n,o)])}return new pe(1,[r,new yl(0,n,o)])},ha=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new pe(0,65535&e):new pe(1,[r,new yl(1,n,e,"Value was either too large or too small for "+n)]):new pe(1,[r,new yl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[Je(o,511,!0,16,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new pe(0,t)}return new pe(1,[r,new yl(0,n,o)])}return new pe(1,[r,new yl(0,n,o)])},pa=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new pe(0,~~e):new pe(1,[n,new yl(1,"an int",e,"Value was either too large or too small for an int")]):new pe(1,[n,new yl(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[Je(r,511,!1,32,new B(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new pe(0,t)}return new pe(1,[n,new yl(0,"an int",r)])}return new pe(1,[n,new yl(0,"an int",r)])},ma=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new pe(0,e>>>0):new pe(1,[r,new yl(1,n,e,"Value was either too large or too small for "+n)]):new pe(1,[r,new yl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[Je(o,511,!0,32,new B(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new pe(0,t)}return new pe(1,[r,new yl(0,n,o)])}return new pe(1,[r,new yl(0,n,o)])};function _a(e,t){if("string"==typeof t){let r,o=pn(-621355968e5,0);if(r=[_n(t,new B(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new pe(0,1===(n=e).kind?n:pn(n.getTime(),1))}return new pe(1,[e,new yl(0,"a datetime",t)])}return new pe(1,[e,new yl(0,"a datetime",t)]);var n}function wa(e,t){if("string"==typeof t){let n,r=Sl(-621355968e5,0);if(n=[Il(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new pe(0,e)}return new pe(1,[e,new yl(0,"a datetimeoffset",t)])}return new pe(1,[e,new yl(0,"a datetime",t)])}function ga(e,t,n,r){let o;const i=n+".["+f(e)+"]";if(Array.isArray(r)){const n=r;if(e<n.length)return t(i,n[e]);{const t="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|n.length,f(o)+"` entries");return new pe(1,[i,new yl(5,t,r)])}}return new pe(1,[i,new yl(0,"an array",r)])}function ya(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return me(e=>ir(e),Gn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new pe(0,Yn(e,i))}{const e=s.fields[0];return new pe(1,e)}}return n},new pe(0,Xn()),o))}return new pe(1,[t,new yl(0,"a list",n)])}function va(e,t,n){if(Array.isArray(n)){let r=-1;const o=n,i=Un(new Array(o.length),0,o.length,null);return Gn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new pe(0,i)}{const e=s.fields[0];return new pe(1,e)}}return n},new pe(0,i),o)}return new pe(1,[t,new yl(0,"an array",n)])}function ba(e,t,n){return new pe(0,e)}function Ca(e,t,n,r){const o=t(n,r);if(0===o.tag){return e(o.fields[0],n,r)}{const e=o.fields[0];return new pe(1,e)}}function Ea(e,t,n,r){const o=t(n,r);if(1===o.tag){const e=o.fields[0];return new pe(1,e)}{const t=o.fields[0];return new pe(0,e(t))}}function xa(e,t){let n;const r=e;return n=e=>t=>ga(0,r,e,t),e=>r=>Ca(I(3,e=>{let n;const r=t;return n=e=>t=>ga(1,r,e,t),t=>r=>Ca((t,n,r)=>ba([e,t]),I(2,n),t,r)}),I(2,n),e,r)}function Sa(e){return Wu(e)}function Ia(e,t,n,r){let o,i;return t.length!==r.length?new pe(1,[n,new yl(6,(o=0|r.length,i=0|t.length,Nn(xn("Expected %i %s but got %i"))(i)(e)(o)))]):Vn(I(3,k(e=>t=>r=>{if(0===r.tag){const o=r.fields[0];return me(e=>Yn(e,o),t(n,e))}return r},[0,[0,2],0])),r,t,new pe(0,Xn()))}function Na(e,t,n,r,o,i){const s=(u=e=>Y(e)===r,ie(n).find(u));var u;if(null!=s){const n=s;if(0===i.length)return new pe(0,ce(n,[]));return me(e=>ce(n,rr(e)),Ia("union fields",Hn(n=>Pa(e,t,!1,n[1]),function(e){return null==e.fields?[]:e.fields}(n)),o,i))}return new pe(1,[o,new yl(6,"Cannot find case "+r+" in "+Q(n))])}function ka(e,t,n,r){const o=new B(null),i=Ku(Q(r),o,e);let s;if(function(e){return e instanceof H?null!=e.fields:e instanceof L}(r)){const e=Hn(e=>[xl(t,Y(e)),Pa(i,t,!1,e[1])],se(r));s=t=>n=>me(e=>function(e,t){const n=se(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce((e,[n,r],o)=>(e[n]=t[o],e),{})}(r,rr(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new pe(1,[t,new yl(0,"an object",n)]):Wn(I(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return me(e=>Yn(e,i),o(t+"."+r)(n[r]))}return e}}),e,new pe(0,Xn()))}(e,t,n))}else if(function(e){return e instanceof H?null!=e.cases:e instanceof A}(r))s=e=>n=>{if("string"==typeof n){return Na(i,t,r,n,e,[])}if(Array.isArray(n)){const o=n,s=o[0];return Na(i,t,r,s,e,o.slice(1,o.length))}return new pe(1,[e,new yl(0,"a string or array",n)])};else{if(!n){let e;const t=Q(r);throw e=Nn(xn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new pe(1,[e,new yl(2,"an extra coder for "+Q(r),t)])}return o.contents=s,s}function Pa(e,t,n,r){let o;const i=Q(r),s=Zu(i,e);if(null==s){if(ee(r)){const n=Pa(e,t,!1,function(e){var t;return ee(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}(r));return e=>t=>va(I(2,n),e,t)}if(te(r)){const e=Q(function(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=$a(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=0|s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,e.toString())):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=fa(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,e.toString())):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=da(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=0|s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=ha(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,e.toString())):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=pa(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=0|s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,f(e))):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ma(o)(i);if(1===s.tag){const e=s.fields[0];return new pe(1,e)}{const e=s.fields[0];return Vr(e,ne(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new pe(0,oe(n,e.toString())):new pe(1,[o,new yl(1,Q(n),i,"Unkown value provided for the enum")])}};{const e=Q(r),t=In(e=>{throw new Error(e)},xn("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 n=t(e);return e=>n(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(ue(r)){const n=Hn(n=>Pa(e,t,!1,n),function(e){if(ue(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>t=>Array.isArray(t)?me(e=>rr(e),Ia("tuple elements",n,e,t)):new pe(1,[e,new yl(0,"an array",t)])}{const i=Q(function(e){return null==e.generics?e:new H(e.fullname,e.generics.map(()=>Z))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=Pa(e,t,!0,F(r)[0]);return e=>t=>{return r=I(2,n),o=e,null==(i=t)?new pe(0,void 0):me(e=>ae(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=Pa(e,t,!1,F(r)[0]);return e=>t=>ya(I(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=Pa(e,t,!1,F(r)[0]),i=Pa(e,t,!1,F(r)[1]);let s;const u=cr([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new pe(1,[n,new yl(0,"an object",r)]):qr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(n,i);if(0===u.tag){const e=u.fields[0],o=t(n+"."+i,r[i]);if(0===o.tag){const t=o.fields[0];return new pe(0,Yn([e,t],s))}{const e=o.fields[0];return new pe(1,e)}}{const e=u.fields[0];return new pe(1,e)}}return o},new pe(0,Xn()),Object.keys(r))}(I(2,n),I(2,i),e,t),(o=xa(I(2,n),I(2,i)),e=>t=>ya(I(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(er(o))return new pe(1,[n,new yl(7,i)]);{const s=nr(o),u=tr(o),c=la(n,I(2,u),r);if(1===c.tag){e=s,t=ar(i,Qn(c.fields[0]));continue e}{const e=c.fields[0];return new pe(0,e)}}}})(u,Xn());var n,r},e=>t=>Ea(e=>Sa(e),I(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=Pa(e,t,!1,F(r)[0]);return e=>t=>{const r=va(I(2,n),e,t);if(0===r.tag){const e=r.fields[0];return new pe(0,sa(e,{Compare:(e,t)=>E(e,t)}))}{const e=r.fields[0];return new pe(1,e)}}}return ka(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new pe(0,r):new pe(1,[n,new yl(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new pe(0,void 0):new pe(1,[n,new yl(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new pe(0,r):new pe(1,[n,new yl(0,"a string",r)]);var n,r}:"System.SByte"===i?$a:"System.Byte"===i?fa:"System.Int16"===i?da:"System.UInt16"===i?ha:"System.Int32"===i?pa:"System.UInt32"===i?ma:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new pe(0,r):new pe(1,[n,new yl(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new pe(0,r):new pe(1,[n,new yl(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>_a(e,t):"System.DateTimeOffset"===i?e=>t=>wa(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;if(n=[Pl(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new pe(0,e)}return new pe(1,[e,new yl(0,"a timespan",t)])}return new pe(1,[e,new yl(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";if(n=[yr(t,new B(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new pe(0,e)}return new pe(1,[e,new yl(0,"a guid",t)])}return new pe(1,[e,new yl(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new pe(0,e):ka(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function Aa(e){if(null!=e){return Ju((e,t)=>{const n=t[1];return new B(n)},e.Coders)}return Xu()}function Ma(e,t,n){const r=de(e,new vl(0)),o=$e(n).ResolveType();return Pa(Aa(t),r,!1,o)}function Ta(e,t,n,r){return aa(I(2,Ma(t,n,r)),e)}function Da(e){return Nn(Sn("%s%P()/account-registry/admin",[e]))}function Oa(e,t){return rl(0,()=>{const n=(i=Nn(xn("Bearer %s"))(e),r=new il(0,"Authorization",i),new ul((o=t).url,o.method,ar(o.headers,Qn(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;const s=ao.Bind(hl(n),e=>ao.Return(new pe(0,e)));return ao.Delay(()=>ao.Bind(s,e=>{let t;const r=e;if(1===r.tag){const e=r.fields[0];return ao.Return(new pe(1,e))}{const e=r.fields[0];return ao.ReturnFrom((t=e,429===t.statusCode||t.statusCode>=500?ao.Bind(hl(n),e=>ao.Return(new pe(0,e))):function(e,t){return ao.Return(fo(0,t))}(0,t)))}}))})}function Ra(e,t){return rl(0,()=>{const n=Oa(t,dl(new ol(0),fl(Nn(Sn("%P()/partners",[Da(e)])))));return ao.Delay(()=>ao.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return ao.Return(new pe(1,e))}{const e=n.fields[0];return ao.ReturnFrom((t=e,200===t.statusCode?ao.Return(_e(e=>ml(fr(e=>{return t=e,ho(0,()=>{const e=go(t.Metadata);return _e(n=>{const r=n;return _e(n=>{const o=n;return _e(n=>{const i=n,s=Po(t.Notes);return po(0,Mo(t.PartnerKeyHash),t=>new Qs(e,r,o,i,s,t))},ko(t.ContactDetails))},bo(t.Website))},yo(t.Name))})();var t},e)),Ta(t.responseText,new vl(1),void 0,{ResolveType:()=>K(V("Dto.WriteModels.Partner",[],_l,()=>[["Metadata",wo()],["Name",J],["Website",J],["ContactDetails",No()],["Notes",z(J)],["PartnerKeyHash",J]]))}))):ao.Return(new pe(1,"Unexpected response from backend"))))}}))})}function La(e,t){return rl(0,()=>{const n=Oa(t,dl(new ol(0),fl(Nn(Sn("%P()/accounts",[Da(e)])))));return ao.Delay(()=>ao.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return ao.Return(new pe(1,e))}{const e=n.fields[0];return ao.ReturnFrom((t=e,200===t.statusCode?ao.Return(_e(e=>ml(fr(e=>gl(e),e)),Ta(t.responseText,new vl(1),void 0,{ResolveType:()=>K(V("Dto.WriteModels.Account",[],wl,()=>[["Metadata",wo()],["PartnerId",J],["Name",J],["Website",J],["ContactDetails",No()],["Notes",z(J)],["LegalEntity",z(V("Dto.Primitives.LegalEntity",[],Ro,()=>[["BusinessName",J],["BusinessNumber",J],["Address1",J],["Address2",z(J)],["City",J],["Postcode",J],["State",z(J)],["Phone",J],["CountryCode",z(J)]]))],["ApiKeyHash",J]]))}))):ao.Return(new pe(1,"Unexpected response from backend"))))}}))})}function Ba(){const e=Qn(Ko("span",{children:["Please wait..."]}));return Ko("div",{children:ms.Children.toArray(Array.from(e))})}function Ua(e){const t=Qn(Ko("span",{children:[e.error]}));return Ko("div",{children:ms.Children.toArray(Array.from(t))})}class Ha extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tab"]}}function Fa(e,t){const n=(null!=t?"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",S(Fr(Lr(()=>Wr(Hr(["key",e]),Lr(()=>Wr(Hr(["children",e]),Lr(()=>Wr(Hr(["className",n]),Lr(()=>null!=t?Hr(["href",zs(Qn($e(t)),1)]):Ur())))))))))),new Ha(0,r);var r}function Ga(e){return Ko("div",{className:"border-b border-gray-200",children:ms.Children.toArray([Ko("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:ms.Children.toArray(Array.from(Kr(e=>e.fields[0],e)))})])})}class ja extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ColumnHeader"]}}function Wa(e){return new ja(0,e)}class Va extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["RowCell"]}}function qa(e){return new Va(0,e)}function za(e){return Wa(Ko("th",S(cr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function Ka(e,t){return qa(Ko("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:ms.Children.toArray([Ko("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})])}))}function Za(e,t){return qa(Ko("td",{className:Tn(" ",Wr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function Ja(e,t){let n;const r=(e,t)=>{return Ko("tr",{className:(n=e,n%2==0?"bg-white":"bg-gray-50"),children:ms.Children.toArray(Array.from(Kr(e=>e.fields[0],t)))});var n};return Ko("div",{className:"flex flex-col mt-4",children:ms.Children.toArray([Ko("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:ms.Children.toArray([Ko("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:ms.Children.toArray([Ko("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:ms.Children.toArray([Ko("table",{className:"min-w-full divide-y divide-gray-200",children:ms.Children.toArray([(e=>{let t;return Ko("thead",{className:"bg-gray-50",children:(t=Kr(e=>e.fields[0],e),Ko("tr",{children:ms.Children.toArray(Array.from(t))}))})})(e),(n=Zr(I(2,e=>{const t=function(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>t.apply(void 0,n.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>t.apply(void 0,n.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>l=>t.apply(void 0,n.concat([e,r,o,i,s,u,c,l]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>t(e)}),t),Ko("tbody",{children:ms.Children.toArray(Array.from(n))}))])})])})])})])})])})}function Xa(e){const t=e.accountList;return Ja(cr([za("ID"),za("Name"),za("Contact"),za("Phone"),za("Website")]),fr(e=>{let t,n;const r=new Re(0,br(e.Metadata.StreamId));return cr([(t=[zs(su((n=[e.PartnerId,r],new ru(3,n[0],n[1]))),1),br(e.Metadata.StreamId)],Ka(t[0],t[1])),Za(["text-gray-500"],vo(e.Name)),Za(["text-gray-500"],Nn(Sn("%P() %P()",[Eo(e.ContactDetails.FirstName),xo(e.ContactDetails.LastName)]))),Za(["text-gray-500"],So(e.ContactDetails.MobilePhone)),Za(["text-gray-500"],Co(e.Website))])},t))}function Ya(e){return Ko("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Qa(e){return Ko("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:ms.Children.toArray([e])})}function e$(e,t){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:ms.Children.toArray([Ya(e),Qa(t)])})}function t$(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 n$(e){const t=Qn(Ko("div",{children:ms.Children.toArray(Array.from(e))}));return Ko("form",{children:ms.Children.toArray(Array.from(t))})}function r$(e){return n$([e$("ID",t$(br(e.Metadata.StreamId))),e$("Name",t$(vo(e.Name))),e$("Contact",t$(Nn(Sn("%P() %P()",[Eo(e.ContactDetails.FirstName),xo(e.ContactDetails.LastName)])))),e$("Phone",t$(So(e.ContactDetails.MobilePhone))),e$("Website",t$(Co(e.Website))),e$("Notes",(t=de(Ao(e.Notes),""),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:t,readOnly:!0,rows:5})))]);var t}class o$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Details","AccountList"]}}function i$(e){let t,n;return Ga(1===e.tag?(t=e.fields[0],cr([Fa("Details",zs(su(new ru(1,t)),1)),Fa("Accounts",void 0)])):(n=e.fields[0],cr([Fa("Details",void 0),Fa("Accounts",zs(su(new ru(2,new De(0,br(n.Metadata.StreamId)))),1))])))}function s$(e){if(1===e.tag){return Ko(Xa,{accountList:e.fields[1]})}return Ko(r$,e.fields[0])}function u$(e){const t=e.mode;return Ko("div",{children:ms.Children.toArray([i$(t),s$(t)])})}function c$(e){return n$([e$("ID",t$(br(e.Metadata.StreamId))),e$("Contact",t$(Nn(Sn("%P() %P()",[Eo(e.ContactDetails.FirstName),xo(e.ContactDetails.LastName)])))),e$("Phone",t$(So(e.ContactDetails.MobilePhone))),e$("Website",t$(Co(e.Website)))])}function l$(e){return Ko("div",{children:ms.Children.toArray([Ga([Fa("Details",void 0)]),Ko(c$,e)])})}function a$(e){const t=e.partnerList;return Ja(cr([za("ID"),za("Name"),za("Contact"),za("Phone"),za("Website")]),fr(e=>{let t;const n=br(e.Metadata.StreamId),r=new De(0,n);return cr([(t=[zs(su(new ru(1,r)),1),n],Ka(t[0],t[1])),Za(["text-gray-500"],vo(e.Name)),Za(["text-gray-500"],Nn(Sn("%P() %P()",[Eo(e.ContactDetails.FirstName),xo(e.ContactDetails.LastName)]))),Za(["text-gray-500"],So(e.ContactDetails.MobilePhone)),Za(["text-gray-500"],Co(e.Website))])},t))}var $$=function(e){return Ko("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},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 f$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BreadCrumb"]}}function d$(e){return Ko("nav",{className:"pt-2","aria-label":"Breadcrumb",children:ms.Children.toArray([Ko("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:ms.Children.toArray(Array.from($r((e,t)=>{const n=t.fields[0][1];return function(e,t,n,r){return Ko("li",{key:e,className:"flex",children:ms.Children.toArray([Ko("div",{className:"flex items-center",children:ms.Children.toArray(Array.from(Fr(Lr(()=>Wr(n?Ur():Hr(Ko($$,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),Lr(()=>Hr(Ko("a",S(Fr(Lr(()=>Wr(Hr(["children",e]),Lr(()=>Wr(null!=t?Hr(["href",zs($e(t),1)]):Ur(),Lr(()=>Hr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(t.fields[0][0],n,0===e)},e)))})])})}function h$(e){let t,n,r,o;const i=e.page,s=()=>new f$(0,["Partners",su(new ru(0))]),u=e=>new f$(0,[Do(e),su(new ru(1,e))]),c=e=>new f$(0,["Accounts",su(new ru(2,e))]);return d$(4===i.tag?Qn(s()):1===i.tag?(t=i.fields[0],cr([s(),u(t)])):2===i.tag?(n=i.fields[0],cr([s(),u(n),c(n)])):3===i.tag?(r=i.fields[0],o=i.fields[1],cr([s(),u(r),c(r),(l=o,new f$(0,[Oo(l),void 0]))])):Qn(s()));var l}function p$(){return(p$=Object.assign||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)}function m$(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return wi(t,n)}function _$(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Ko(m$,p$({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[w$(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),l=u[i].slot;l?o[l]=Ko(v$,{name:l},c):r[i]=c}var a=n?Ko(v$,null,r):r;return Ko(n||t.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_i:mi)(this._vdom,this._root)}function w$(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function g$(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[w$(e)]=n,this._vdom=wi(this._vdom,r),mi(this._vdom,this._root)}}function y$(){mi(this._vdom=null,this._root)}function v$(e,t){var n=this;return Ko("slot",p$({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}class b$ extends L{constructor(e,t){super(),this.Data=e,this.CurrentPage=t}}function C$(){return V("AccountRegistry.AdminUI.App.State",[],b$,()=>[["Data",Qu(q("Microsoft.FSharp.Core.FSharpResult`2",[lu(),J],pe,()=>[[["ResultValue",lu()]],[["ErrorValue",J]]]))],["CurrentPage",ou()]])}class E$ extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PageChanged","LoadData"]}}function x$(){return q("AccountRegistry.AdminUI.App.Msg",[],E$,()=>[[["Item",ou()]],[["Item",Qu(q("Microsoft.FSharp.Core.FSharpResult`2",[lu(),J],pe,()=>[[["ResultValue",lu()]],[["ErrorValue",J]]]))]]])}function S$(){const e=iu(Zs(window.location.hash,1)),t=4===e.tag?uu(new ru(0)):tc();return[new b$(new Yu(0),e),t]}function I$(e,t){if(0===e.tag){const n=e.fields[0];return 4===n.tag?[t,uu(n)]:[new b$(t.Data,n),tc()]}{const n=e.fields[0];return[new b$(n,t.CurrentPage),tc()]}}function N$(e){const t=(n=(e,t)=>I$(e,t),tl(ks(S$,r=[]),n,r));var n,r;const o=t[0],i=t[1],s=ec(()=>{return t=e.backendUrl,n=e.accessToken,rl(0,()=>{const e=Ra(t,n);return ao.Delay(()=>ao.Bind(e,e=>{let r;const o=e;if(1===o.tag){const e=o.fields[0];return ao.Return(new pe(1,e))}{const e=o.fields[0];return ao.ReturnFrom((r=e,ao.Bind(La(t,n),e=>ao.Return(me(e=>new cu(r,e),e)))))}}))});var t,n},e=>{i(new E$(1,e))});let u;Ss(s,[]);const c=o.Data;let l,a,$,f;switch(1===c.tag?l=0:2===c.tag?1===c.fields[0].tag?(l=2,$=c.fields[0].fields[0]):(l=1,a=c.fields[0].fields[0]):3===c.tag?(l=3,f=c.fields[0]):l=0,l){case 0:u=Ko(Ba,null);break;case 1:{const e=o.CurrentPage;switch(e.tag){case 1:{const t=e.fields[0],n=hr(e=>br(e.Metadata.StreamId)===Do(t),a.Partners);if(null==n)u=Ko(Ua,{error:"Unknown Partner"});else{u=Ko(u$,{mode:new o$(0,n)})}break}case 2:{const t=e.fields[0],n=pr(e=>y(e.PartnerId,t),a.Accounts);let r;const o=[t,n];r=new o$(1,o[0],o[1]),u=Ko(u$,{mode:r});break}case 3:{const t=e.fields[0],n=e.fields[1],r=hr(e=>!!y(e.PartnerId,t)&&br(e.Metadata.StreamId)===Oo(n),a.Accounts);if(null==r)u=Ko(Ua,{error:"Unknown Account"});else{u=Ko(l$,r)}break}default:u=Ko(a$,{partnerList:a.Partners})}break}case 2:u=Ko(Ua,{error:$});break;case 3:u=Ko(Ua,{error:P(f)});break}return Js({onUrlChanged:e=>{i(new E$(0,iu(e)))},application:Ko(Jo,{},Ko(h$,{page:o.CurrentPage}),u)})}(function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=_$,o.prototype.attributeChangedCallback=g$,o.prototype.disconnectedCallback=y$,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)})(e=>Ko(N$,e),"superhero-account-registry")}]);
|