@flarehr/superhero-account-registry 2.20.37 → 2.22.39
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.
- package/dist/superhero-account-registry.js +35 -1
- package/package.json +22 -12
- package/LICENCE +0 -1
- package/README.md +0 -27
|
@@ -1 +1,35 @@
|
|
|
1
|
-
(()=>{"use strict";function e(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function n(e){return"function"==typeof e.GetHashCode}function t(e){return null!=e&&"function"==typeof e.Dispose}function r(e){t(e)&&e.Dispose()}function o(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class i{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 s(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new i(e[Symbol.iterator]())}function u(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function c(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function a(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function l(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class f{static id(e){return f.idMap.has(e)||f.idMap.set(e,++f.count),f.idMap.get(e)}}function d(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function h(e){return 2654435761*e|0}function p(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function m(t){var r;if(null==t)return 0;switch(typeof t){case"boolean":return t?1:0;case"number":return h(t);case"string":return d(t);default:if(n(t))return t.GetHashCode();if(e(t))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=m(e[r]);return p(t)}(t);if(t instanceof Date)return function(e){return e.getTime()}(t);if((null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)===Object){const e=Object.values(t).map((e=>m(e)));return p(e)}return h(f.id(t))}}function g(e){return null==e?0:n(e)?e.GetHashCode():h(f.id(e))}function w(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function _(e,n){return w(e,n,y)}function y(n,t){var r;return n===t||(null==n?null==t:null!=t&&"object"==typeof n&&(function(e){return"function"==typeof e.Equals}(n)?n.Equals(t):e(n)?e(t)&&_(n,t):n instanceof Date?t instanceof Date&&0===v(n,t):(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!y(e[t[o]],n[r[o]]))return!1;return!0}(n,t)))}function v(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+a(e),r=n.getTime()+a(n)),t===r?0:t<r?-1:1}function b(e,n){return e===n?0:e<n?-1:1}function C(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,x)}function x(n,t){var r;return n===t?0:null==n?null==t?0:-1:null==t?1:"object"!=typeof n?n<t?-1:1:function(e){return"function"==typeof e.CompareTo}(n)?n.CompareTo(t):e(n)?e(t)?C(n,t):-1:n instanceof Date?t instanceof Date?v(n,t):-1:(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=x(e[s],n[s]),0!==i)return i}return 0}(n,t):-1}function S(e,n,t){return e(n,t)>0?n:t}function E(e){const n={};for(const t of e)n[t[0]]=t[1];return n}f.idMap=new WeakMap,f.count=0;const k=Symbol("curried");function I(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[k]=n,t}function A(e,n,t){return r=>1===n?t(...e.concat([r])):A(e.concat([r]),n-1,t)}function N(e,n){return null==n||1===n.length?n:k in n?n[k]:A([],e,n)}function T(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=T(r);else{if(100===n){t+="; ...";break}t+="; "+T(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+T(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class D{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t="",r=!0;return 1===n.length?(t=T(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>T(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>m(e)));return e.splice(0,0,h(this.tag)),p(e)}Equals(e){return this===e||!!o(this,e)&&this.tag===e.tag&&_(this.fields,e.fields)}CompareTo(e){return this===e?0:o(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class P{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+T(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>m(e)));return p(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(o(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!y(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(o(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=x(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class O{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class M{constructor(e){this.message=e}}function U(e){return function(e){return e instanceof M||e instanceof Error}(e)?e:new Error(String(e))}class L extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}function B(e){return new L(0,e)}function F(e){return e.fields[0]}class G extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class R extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class H extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class j extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class $ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class W extends P{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class z extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class V extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function q(e){return e.fields[0]}function Z(e){return new V(0,e)}function J(e){return q(e)}class K extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function Y(e){return e.fields[0]}function X(e){return new K(0,e)}class Q{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return m(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof Q?e.value:e)}CompareTo(e){return null==e?1:x(this.value,e instanceof Q?e.value:e)}}function ee(e){return null==e||e instanceof Q?new Q(e):e}function ne(e){if(null==e)throw new Error("Option has no value");return e instanceof Q?e.value:e}function te(e){return null==e?[]:[ne(e)]}function re(e,n){return null!=e?ne(e):n}function oe(e,n){return null!=n?ee(e(ne(n))):void 0}function ie(){return e=x,{Compare:(n,t)=>e(n,t)};var e}function se(e,n){return"function"==typeof e?new e(n):new Array(n)}function ue(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function ce(e,n,t){const r=0|n.length,o=se(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function ae(e,n,t){return t.reduce(e,n)}function le(e,n,t){if(null==n)return null==t;if(null==t)return!1;{let r=0,o=!0;const i=0|n.length,s=0|t.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(n[r],t[r]),r=r+1|0;return o}}function fe(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+c(~~(e/36e5),2)+":"+c(t,2)}function de(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function he(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r}))}function pe(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+fe(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return he(i,n,!0);switch(n){case"D":case"d":return de(i,"first");case"T":case"t":return de(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+fe(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return he(e,n,t);switch(n){case"D":case"d":return t?de(e,"first"):e.toLocaleDateString();case"T":case"t":return t?de(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return c(e.getFullYear(),4)+"-"+c(e.getMonth()+1,2)+"-"+c(e.getDate(),2)+"T"+c(e.getHours(),2)+":"+c(e.getMinutes(),2)+":"+c(e.getSeconds(),2)+"."+c(e.getMilliseconds(),3)+(n?fe(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function me(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function ge(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function we(e,n){try{return n.contents=function(e,n=!1){const[t,r]=ge(e),o=null!=r?n&&"Z"===r?1:2:0;return me(t.getTime(),o)}(e),!0}catch(e){return!1}}const _e=Symbol("numeric");function ye(e){return"number"==typeof e||(null==e?void 0:e[_e])}function ve(e,n){return"number"==typeof e?e*n:e[_e]().multiply(n)}function be(e,n){return"number"==typeof e?e.toFixed(n):e[_e]().toFixed(n)}function Ce(e,n){return"number"==typeof e?e.toPrecision(n):e[_e]().toPrecision(n)}function xe(e,n){return"number"==typeof e?e.toExponential(n):e[_e]().toExponential(n)}function Se(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[_e]().toHex()}function Ee(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function ke(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ie(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const Ae=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ne=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Te=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function De(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Pe(e){return{input:e,cont:(n=e,e=>{Ae.lastIndex=0;const t=[],r=[];let o=0,i=Ae.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ae.lastIndex,Ae.lastIndex-=1,i=Ae.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Be(e,t,r))})};var n}function Oe(e,n){let t=0,r=0,o="";Ne.lastIndex=0;let i=Ne.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,u,c,a,l]=i;r=Ne.lastIndex,o+=Le(n[t++],u,c,a,l),Ne.lastIndex=r-1,i=Ne.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Me(e,n){return"string"==typeof n?e(n):n.cont(e)}function Ue(e){return Me((e=>e),e)}function Le(e,n,t,r,o){let i="";if(n=n||"",o=o||"",ye(e))switch("x"!==o.toLowerCase()&&(De(e,0)?(e=ve(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=be(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ce(e,r):Ce(e);break;case"e":case"E":e=null!=r?xe(e,r):xe(e);break;case"x":e=Se(e);break;case"X":e=Se(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?pe(e):T(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=je(e,t-i.length,s,o)):je(i+e,t,s,o)}return e}function Be(e,n,t,r="",o=-1){return(...i)=>{let s=r;const u=n.slice(),c=t.slice();for(const e of i){const[,,n,t,r,i]=c[0];let a=t;if(o>=0)a=o,o=-1;else if("*"===a){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Le(e,n,a,r,i),u.splice(0,1),c.splice(0,1)}return 0===c.length?(s+=u[0],e(s)):Be(e,u,c,s,o)}}function Fe(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Te,((e,t,r,o,i,s)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=n[t];if(ye(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=be(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Ce(u,i):Ce(u);break;case"e":case"E":u=null!=i?xe(u,i):xe(u);break;case"p":case"P":i=null!=i?i:2,u=be(ve(u,100),i)+" %";break;case"d":case"D":u=null!=i?$e(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?$e(Se(u),i,"0"):Se(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{De(u,0)&&(u=ve(u,-1),e="-"),r=null==r?"":r.substring(1),u=be(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=$e(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,n,t){return je(e,n,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?pe(u,s||o):T(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=je(String(u),Math.abs(r)," ",r<0)),u}))}function Ge(e){return"string"!=typeof e||0===e.length}function Re(e){return"string"!=typeof e||/^\s*$/.test(e)}function He(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function je(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function $e(e,n,t){return je(e,n,t)}function We(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(ke),n=n.length>0?n:["\\s"];const s=[],u=new RegExp(n.join("|"),"g");let c=!0,a=0;do{const n=u.exec(e);if(null===n){const n=i?e.substring(a).trim():e.substring(a);(!o||n.length>0)&&s.push(n),c=!1}else{const r=i?e.substring(a,n.index).trim():e.substring(a,n.index);(!o||r.length>0)&&(null!=t&&s.length+1===t?(s.push(i?e.substring(a).trim():e.substring(a)),c=!1):s.push(r)),a=u.lastIndex}}while(c);return s}function ze(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}const Ve="Collection was empty.";class qe extends P{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+He("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(y(t.head,r.head)){e=i,n=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+m(i.head)+631*r,t=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|x(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Ze(this)}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return s(this)}}class Ze{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function Je(){return new qe(null,void 0)}function Ke(e,n){return new qe(e,n)}function Ye(e){return null==e.tail}function Xe(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}function Qe(e){if(null!=e.tail)return e.head;throw new Error(Ve+"\\nParameter name: list")}function en(e){const n=e.tail;if(null!=n)return n;throw new Error(Ve+"\\nParameter name: list")}function nn(){return Je()}function tn(e,n){return Ke(e,n)}function rn(e){return Ke(e,Je())}function on(e){return Ye(e)}function sn(e){return Xe(e)}function un(e){return Qe(e)}function cn(e){return en(e)}function an(e){const n=0|Xe(e),t=ue(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(Ye(o))break;t[r]=Qe(o),e=r+1,n=en(o)}})(0,e),t}function ln(e,n,t){let r=n,o=t;for(;!Ye(o);)r=e(r,Qe(o)),o=en(o);return r}function fn(e){return ln(((e,n)=>Ke(n,e)),Je(),e)}function dn(e,n){ln(((n,t)=>{e(t)}),void 0,n)}function hn(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=Ke(e[n],t);return t}function pn(e){return hn(e,Je())}function mn(e,n){return ln(((e,n)=>Ke(n,e)),n,fn(e))}function gn(e,n){const t=Je(),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(Ye(s))return i;n=o+1,t=e(o,i,Qe(s)),r=en(s)}})(0,n,t)}(((n,t,r)=>{const o=new qe(e(n,r),void 0);return t.tail=o,o}),t,n),o=Je();return r.tail=o,en(t)}function wn(e,n){const t=Je(),r=ln(((n,t)=>{const r=new qe(e(t),void 0);return n.tail=r,r}),t,n),o=Je();return r.tail=o,en(t)}function _n(e,n){return function(e,n){return(n=>{e:for(;;){const t=n;if(Ye(t))return;{const r=e(Qe(t));if(null==r){n=en(t);continue e}return r}}})(n)}((n=>e(n)?ee(n):void 0),n)}const yn="Enumeration already finished.",vn="Enumeration has not started. Call MoveNext.";function bn(){throw new Error(vn)}function Cn(){throw new Error(yn)}class xn{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=s(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=T(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{r(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Sn{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function En(e,n,t){return new Sn(e,n,t)}function kn(e,n,t){let r,o=!1,i=ee(e());const s=()=>{if(null!=i){const e=ne(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return En((()=>(o||bn(),null!=r?ne(r):Cn())),(()=>{if(o||(o=!0),null!=i){const e=ne(i);let t;try{t=n(e)}catch(e){throw u(),e}return null!=t?(r=t,!0):(u(),!1)}return!1}),s)}function In(e){return function(e){return new xn(e)}(e)}function An(e){return n="source",null==e&&function(e){throw new Error(e)}(n),s(e);var n}function Nn(e){return In((()=>s(e())))}function Tn(e){return In((()=>function(e){let n,t,o,i=!1,u=!1;const c=()=>{if(u=!0,null!=t){const e=t;try{r(e)}finally{t=void 0}}if(null!=n){const e=n;try{r(e)}finally{n=void 0}}};return En((()=>(i?u&&Cn():bn(),null!=o?ne(o):Cn())),(()=>{let a;if(i||(i=!0),u)return!1;{let i;for(;null==i;){const u=[n,t];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())o=ee(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),i=!0;else try{r(e)}finally{t=void 0}}else{const e=u[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=s(a)):(c(),i=!1)}else n=s(e)}return ne(i)}}),(()=>{u||c()}))}(e)))}function Dn(){return Nn((()=>new Array(0)))}function Pn(e){return Nn((()=>function(e,n){const t=se(void 0,1);return t[0]=e,t}(e)))}function On(e){return e instanceof qe?an(e):Array.from(e)}function Mn(n){return e(n)?pn(n):n instanceof qe?n:function(n){let t,o;if(e(n))return pn(n);if(n instanceof qe)return n;{const e=Je();let i=e;const u=s(n);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const e=u["System.Collections.Generic.IEnumerator`1.get_Current"]();t=i,o=new qe(e,void 0),t.tail=o,i=o}}finally{r(u)}const c=i,a=Je();return c.tail=a,en(e)}}(n)}function Un(e,n,t){return In((()=>kn(e,n,t)))}function Ln(e,n){return Tn([e,n])}function Bn(e,n){return Un((()=>An(n)),(n=>{let t;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}),(e=>{r(e)}))}function Fn(e,n,t){const o=An(n);try{let n=!1;for(;!n&&o["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,o["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r(o)}}function Gn(e,n,t){const o=An(t);try{let t=n;for(;o["System.Collections.IEnumerator.MoveNext"]();)t=e(t,o["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r(o)}}function Rn(e,n){Gn(((n,t)=>{e(t)}),void 0,n)}function Hn(e,n){return Un((()=>An(n)),(n=>n["System.Collections.IEnumerator.MoveNext"]()?ee(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{r(e)}))}function jn(e,n){return t=()=>An(n),o=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?ee(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,i=e=>{r(e)},In((()=>{let e=-1;return kn(t,(n=>(e=e+1|0,o(e,n))),i)}));var t,o,i}class $n{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function Wn(e){return Nn((()=>function(e){return e.slice().reverse()}(On(e))))}const zn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Vn(e,n){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase()))}function qn(e,n=zn.None){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case zn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case zn.SnakeCase:return Vn(e,"_");case zn.SnakeCaseAllCaps:return Vn(e,"_").toUpperCase();case zn.KebabCase:return Vn(e,"-");case zn.None:default:return e}}(e,n),t[e]=r}for(let n of e){let e=zn.None;if(null==n&&o(n),n instanceof D){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}function Zn(e,n,t){return!!e.has(n)&&(t.contents=e.get(n),!0)}function Jn(e,n){if(e.has(n))return e.get(n);throw new Error(`The given key '${n}' was not present in the dictionary.`)}class Kn{constructor(e,n){const t=new O(null);this.comparer=n,t.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();rt(t.contents,e[0],e[1])}}finally{r(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return s(this)}GetEnumerator(){return s(Tn(this.hashMap.values()))}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){rt(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){Qn(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const n=Xn(this,e[0]);let t;switch(t=null!=n&&y(n[1],e[1])?0:1,t){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){var t;t=(t,r)=>{e[n+t]=r},Gn(((e,n)=>(t(e,n),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|et(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const n=Xn(this,e[0]);return null!=n&&(y(n[1],e[1])&&it(this,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,n){rt(this,e,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return ot(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return nt(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,n){tt(this,e,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return On(Nn((()=>Hn((e=>e[0]),e))))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return it(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue23A0B95A"(e,n){const t=Xn(this,e);if(null!=t){const e=t;return n.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return On(Nn((()=>Hn((e=>e[1]),e))))}get size(){return 0|et(this)}clear(){Qn(this)}delete(e){return it(this,e)}entries(){return Hn((e=>[e[0],e[1]]),this)}get(e){return nt(this,e)}has(e){return ot(this,e)}keys(){return Hn((e=>e[0]),this)}set(e,n){return tt(this,e,n),this}values(){return Hn((e=>e[1]),this)}forEach(e,n){const t=this;Rn((n=>{e(n[1],n[0],t)}),t)}}function Yn(e,n){const t=0|e.comparer.GetHashCode(n);let r,o=null;return r=[Zn(e.hashMap,t,new O((()=>o),(e=>{o=e}))),o],r[0]?[!0,t,r[1].findIndex((t=>e.comparer.Equals(n,t[0])))]:[!1,t,-1]}function Xn(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return Jn(e.hashMap,t[1])[t[2]];case 1:return}}function Qn(e){e.hashMap.clear()}function et(e){let n=0,t=s(e.hashMap.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+t["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{r(t)}return 0|n}function nt(e,n){const t=Xn(e,n);if(null!=t)return t[1];throw new Error("The item was not found in collection")}function tt(e,n,t){const r=Yn(e,n);r[0]?r[2]>-1?Jn(e.hashMap,r[1])[r[2]]=[n,t]:Jn(e.hashMap,r[1]).push([n,t]):e.hashMap.set(r[1],[[n,t]])}function rt(e,n,t){const r=Yn(e,n);if(r[0]){if(r[2]>-1){const e=Fe("An item with the same key has already been added. Key: {0}",n);throw new Error(e)}Jn(e.hashMap,r[1]).push([n,t])}else e.hashMap.set(r[1],[[n,t]])}function ot(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function it(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return Jn(e.hashMap,t[1]).splice(t[2],1),!0;case 1:return!1}}class st extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function ut(e,n){return 0===n.tag?new st(0,e(n.fields[0])):new st(1,n.fields[0])}class ct extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}var at,lt,ft,dt,ht,pt,mt,gt,wt={},_t=[],yt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vt(e,n){for(var t in n)e[t]=n[t];return e}function bt(e){var n=e.parentNode;n&&n.removeChild(e)}function Ct(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?at.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return xt(e,s,r,o,null)}function xt(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++ft:o};return null==o&&null!=lt.vnode&<.vnode(i),i}function St(e){return e.children}function Et(e,n){this.props=e,this.context=n}function kt(e,n){if(null==n)return e.__?kt(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?kt(e):null}function It(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return It(e)}}function At(e){(!e.__d&&(e.__d=!0)&&dt.push(e)&&!Nt.__r++||ht!==lt.debounceRendering)&&((ht=lt.debounceRendering)||pt)(Nt)}function Nt(){var e,n,t,r,o,i,s,u;for(dt.sort(mt);e=dt.shift();)e.__d&&(n=dt.length,r=void 0,o=void 0,s=(i=(t=e).__v).__e,(u=t.__P)&&(r=[],(o=vt({},i)).__v=i.__v+1,Gt(u,i,o,t.__n,void 0!==u.ownerSVGElement,null!=i.__h?[s]:null,r,null==s?kt(i):s,i.__h),Rt(r,i),i.__e!=s&&It(i)),dt.length>n&&dt.sort(mt));Nt.__r=0}function Tt(e,n,t,r,o,i,s,u,c,a){var l,f,d,h,p,m,g,w=r&&r.__k||_t,_=w.length;for(t.__k=[],l=0;l<n.length;l++)if(null!=(h=t.__k[l]=null==(h=n[l])||"boolean"==typeof h||"function"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?xt(null,h,null,null,h):Array.isArray(h)?xt(St,{children:h},null,null,null):h.__b>0?xt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(d=w[l])||d&&h.key==d.key&&h.type===d.type)w[l]=void 0;else for(f=0;f<_;f++){if((d=w[f])&&h.key==d.key&&h.type===d.type){w[f]=void 0;break}d=null}Gt(e,h,d=d||wt,o,i,s,u,c,a),p=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||p,h)),null!=p?(null==m&&(m=p),"function"==typeof h.type&&h.__k===d.__k?h.__d=c=Dt(h,c,e):c=Ot(e,h,d,w,p,c),"function"==typeof t.type&&(t.__d=c)):c&&d.__e==c&&c.parentNode!=e&&(c=kt(d))}for(t.__e=m,l=_;l--;)null!=w[l]&&("function"==typeof t.type&&null!=w[l].__e&&w[l].__e==t.__d&&(t.__d=Mt(r).nextSibling),$t(w[l],w[l]));if(g)for(l=0;l<g.length;l++)jt(g[l],g[++l],g[++l])}function Dt(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Dt(r,n,t):Ot(t,r,r,o,r.__e,n));return n}function Pt(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Pt(e,n)})):n.push(e)),n}function Ot(e,n,t,r,o,i){var s,u,c;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=1)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Mt(e){var n,t,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(n=e.__k.length-1;n>=0;n--)if((t=e.__k[n])&&(r=Mt(t)))return r;return null}function Ut(e,n,t){"-"===n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||yt.test(n)?t:t+"px"}function Lt(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||Ut(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Ut(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?Ft:Bt,i):e.removeEventListener(n,i?Ft:Bt,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==n&&"height"!==n&&"href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!==n[4]?e.removeAttribute(n):e.setAttribute(n,t))}}function Bt(e){return this.l[e.type+!1](lt.event?lt.event(e):e)}function Ft(e){return this.l[e.type+!0](lt.event?lt.event(e):e)}function Gt(e,n,t,r,o,i,s,u,c){var a,l,f,d,h,p,m,g,w,_,y,v,b,C,x,S=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(a=lt.__b)&&a(n);try{e:if("function"==typeof S){if(g=n.props,w=(a=S.contextType)&&r[a.__c],_=a?w?w.props.value:a.__:r,t.__c?m=(l=n.__c=t.__c).__=l.__E:("prototype"in S&&S.prototype.render?n.__c=l=new S(g,_):(n.__c=l=new Et(g,_),l.constructor=S,l.render=Wt),w&&w.sub(l),l.props=g,l.state||(l.state={}),l.context=_,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=vt({},l.__s)),vt(l.__s,S.getDerivedStateFromProps(g,l.__s))),d=l.props,h=l.state,l.__v=n,f)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==d&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,_),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,_)||n.__v===t.__v){for(n.__v!==t.__v&&(l.props=g,l.state=l.__s,l.__d=!1),l.__e=!1,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),y=0;y<l._sb.length;y++)l.__h.push(l._sb[y]);l._sb=[],l.__h.length&&s.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,_),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(d,h,p)}))}if(l.context=_,l.props=g,l.__P=e,v=lt.__r,b=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,v&&v(n),a=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do{l.__d=!1,v&&v(n),a=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++b<25);l.state=l.__s,null!=l.getChildContext&&(r=vt(vt({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(p=l.getSnapshotBeforeUpdate(d,h)),x=null!=a&&a.type===St&&null==a.key?a.props.children:a,Tt(e,Array.isArray(x)?x:[x],n,t,r,o,i,s,u,c),l.base=n.__e,n.__h=null,l.__h.length&&s.push(l),m&&(l.__E=l.__=null),l.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=Ht(t.__e,n,t,r,o,i,s,c);(a=lt.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),lt.__e(e,n,t)}}function Rt(e,n){lt.__c&<.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){lt.__e(e,n.__v)}}))}function Ht(e,n,t,r,o,i,s,u){var c,a,l,f=t.props,d=n.props,h=n.type,p=0;if("svg"===h&&(o=!0),null!=i)for(;p<i.length;p++)if((c=i[p])&&"setAttribute"in c==!!h&&(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&&at.call(e.childNodes),a=(f=t.props||wt).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},p=0;p<e.attributes.length;p++)f[e.attributes[p].name]=e.attributes[p].value;(l||a)&&(l&&(a&&l.__html==a.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Lt(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||Lt(e,i,n[i],t[i],r)}(e,d,f,o,u),l)n.__k=[];else if(p=n.props.children,Tt(e,Array.isArray(p)?p:[p],n,t,r,o&&"foreignObject"!==h,i,s,i?i[0]:t.__k&&kt(t,0),u),null!=i)for(p=i.length;p--;)null!=i[p]&&bt(i[p]);u||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==f.value)&&Lt(e,"value",p,f.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&Lt(e,"checked",p,f.checked,!1))}return e}function jt(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){lt.__e(e,t)}}function $t(e,n,t){var r,o;if(lt.unmount&<.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||jt(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){lt.__e(e,n)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&$t(r[o],n,t||"function"!=typeof e.type);t||null==e.__e||bt(e.__e),e.__=e.__e=e.__d=void 0}function Wt(e,n,t){return this.constructor(e,t)}function zt(e,n,t){var r,o,i;lt.__&<.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],Gt(n,e=(!r&&t||n).__k=Ct(St,null,[e]),o||wt,wt,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?at.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Rt(i,e)}function Vt(e,n){zt(e,n,Vt)}function qt(e,n,t){var r,o,i,s=vt({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?at.call(arguments,2):t),xt(e.type,s,r||e.key,o||e.ref,null)}function Zt(e,n){var t={__c:n="__cC"+gt++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some((function(e){e.__e=!0,At(e)}))},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}at=_t.slice,lt={__e:function(e,n,t,r){for(var o,i,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(n){e=n}throw e}},ft=0,Et.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vt({},this.state),"function"==typeof e&&(e=e(vt({},t),this.props)),e&&vt(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),At(this))},Et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),At(this))},Et.prototype.render=St,dt=[],pt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mt=function(e,n){return e.__v.__b-n.__v.__b},Nt.__r=0,gt=0;var Jt,Kt,Yt,Xt,Qt=0,er=[],nr=[],tr=lt.__b,rr=lt.__r,or=lt.diffed,ir=lt.__c,sr=lt.unmount;function ur(e,n){lt.__h&<.__h(Kt,e,Qt||n),Qt=0;var t=Kt.__H||(Kt.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:nr}),t.__[e]}function cr(e){return Qt=1,ar(Cr,e)}function ar(e,n,t){var r=ur(Jt++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):Cr(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=Kt,!Kt.u)){var o=function(e,n,t){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,n,t);var s=!1;return o.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,n,t))};Kt.u=!0;var i=Kt.shouldComponentUpdate,s=Kt.componentWillUpdate;Kt.componentWillUpdate=function(e,n,t){if(this.__e){var r=i;i=void 0,o(e,n,t),i=r}s&&s.call(this,e,n,t)},Kt.shouldComponentUpdate=o}return r.__N||r.__}function lr(e,n){var t=ur(Jt++,3);!lt.__s&&br(t.__H,n)&&(t.__=e,t.i=n,Kt.__H.__h.push(t))}function fr(e,n){var t=ur(Jt++,4);!lt.__s&&br(t.__H,n)&&(t.__=e,t.i=n,Kt.__h.push(t))}function dr(e){return Qt=5,hr((function(){return{current:e}}),[])}function hr(e,n){var t=ur(Jt++,7);return br(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function pr(e,n){return Qt=8,hr((function(){return e}),n)}function mr(e){var n=Kt.context[e.__c],t=ur(Jt++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(Kt)),n.props.value):e.__}function gr(){for(var e;e=er.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yr),e.__H.__h.forEach(vr),e.__H.__h=[]}catch(n){e.__H.__h=[],lt.__e(n,e.__v)}}lt.__b=function(e){Kt=null,tr&&tr(e)},lt.__r=function(e){rr&&rr(e),Jt=0;var n=(Kt=e.__c).__H;n&&(Yt===Kt?(n.__h=[],Kt.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=nr,e.__N=e.i=void 0}))):(n.__h.forEach(yr),n.__h.forEach(vr),n.__h=[])),Yt=Kt},lt.diffed=function(e){or&&or(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==er.push(n)&&Xt===lt.requestAnimationFrame||((Xt=lt.requestAnimationFrame)||_r)(gr)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==nr&&(e.__=e.__V),e.i=void 0,e.__V=nr}))),Yt=Kt=null},lt.__c=function(e,n){n.some((function(e){try{e.__h.forEach(yr),e.__h=e.__h.filter((function(e){return!e.__||vr(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],lt.__e(t,e.__v)}})),ir&&ir(e,n)},lt.unmount=function(e){sr&&sr(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{yr(e)}catch(e){n=e}})),t.__H=void 0,n&<.__e(n,t.__v))};var wr="function"==typeof requestAnimationFrame;function _r(e){var n,t=function(){clearTimeout(r),wr&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);wr&&(n=requestAnimationFrame(t))}function yr(e){var n=Kt,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Kt=n}function vr(e){var n=Kt;e.__c=e.__(),Kt=n}function br(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Cr(e,n){return"function"==typeof n?n(e):n}function xr(e,n){for(var t in n)e[t]=n[t];return e}function Sr(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function Er(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function kr(e){this.props=e}(kr.prototype=new Et).isPureReactComponent=!0,kr.prototype.shouldComponentUpdate=function(e,n){return Sr(this.props,e)||Sr(this.state,n)};var Ir=lt.__b;lt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ir&&Ir(e)};var Ar="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nr(e){function n(n){var t=xr({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=Ar,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Tr=function(e,n){return null==e?null:Pt(Pt(e).map(n))},Dr={map:Tr,forEach:Tr,count:function(e){return e?Pt(e).length:0},only:function(e){var n=Pt(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Pt},Pr=lt.__e;lt.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);Pr(e,n,t,r)};var Or=lt.unmount;function Mr(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xr({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Mr(e,n,t)}))),e}function Ur(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ur(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function Lr(){this.__u=0,this.t=null,this.__b=null}function Br(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Fr(){this.u=null,this.o=null}lt.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Or&&Or(e)},(Lr.prototype=new Et).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Br(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ur(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Lr.prototype.componentWillUnmount=function(){this.t=[]},Lr.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Mr(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&Ct(St,null,e.fallback);return o&&(o.__h=null),[Ct(St,null,n.__a?null:e.children),o]};var Gr=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Rr(e){return this.getChildContext=function(){return e.context},e.children}function Hr(e){var n=this,t=e.i;n.componentWillUnmount=function(){zt(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),zt(Ct(Rr,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Fr.prototype=new Et).__a=function(e){var n=this,t=Br(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Gr(n,e,r)):o()};t?t(i):i()}},Fr.prototype.render=function(e){this.u=null,this.o=new Map;var n=Pt(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Fr.prototype.componentDidUpdate=Fr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Gr(e,t,n)}))};var jr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Wr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zr=/[A-Z0-9]/g,Vr="undefined"!=typeof document,qr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};Et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Zr=lt.event;function Jr(){}function Kr(){return this.cancelBubble}function Yr(){return this.defaultPrevented}lt.event=function(e){return Zr&&(e=Zr(e)),e.persist=Jr,e.isPropagationStopped=Kr,e.isDefaultPrevented=Yr,e.nativeEvent=e};var Xr,Qr={enumerable:!1,configurable:!0,get:function(){return this.class}},eo=lt.vnode;lt.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,r={};for(var o in n){var i=n[o];if(!("value"===o&&"defaultValue"in n&&null==i||Vr&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==t&&"textarea"!==t||qr(n.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":Wr.test(o)?o=s:-1===t.indexOf("-")&&$r.test(o)?o=o.replace(zr,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Pt(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Pt(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Qr)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(e),e.$$typeof=jr,eo&&eo(e)};var no=lt.__r;lt.__r=function(e){no&&no(e),Xr=e.__c};var to=lt.diffed;lt.diffed=function(e){to&&to(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value),Xr=null};var ro={ReactCurrentDispatcher:{current:{readContext:function(e){return Xr.__n[e.__c].props.value}}}};function oo(e){return!!e&&e.$$typeof===jr}function io(e){return oo(e)?qt.apply(null,arguments):e}function so(e){e()}var uo={useState:cr,useId:function(){var e=ur(Jt++,11);if(!e.__){for(var n=Kt.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:ar,useEffect:lr,useLayoutEffect:fr,useInsertionEffect:fr,useTransition:function(){return[!1,so]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=cr({h:{__:t,v:n}}),o=r[0].h,i=r[1];return fr((function(){o.__=t,o.v=n,Er(o.__,n())||i({h:o})}),[e,t,n]),lr((function(){return Er(o.__,o.v())||i({h:o}),e((function(){Er(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:so,useRef:dr,useImperativeHandle:function(e,n,t){Qt=6,fr((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:hr,useCallback:pr,useContext:mr,useDebugValue:function(e,n){lt.useDebugValue&<.useDebugValue(n?n(e):e)},version:"17.0.2",Children:Dr,render:function(e,n,t){return null==n.__k&&(n.textContent=""),zt(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Vt(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(zt(null,e),!0)},createPortal:function(e,n){var t=Ct(Hr,{__v:e,i:n});return t.containerInfo=n,t},createElement:Ct,createContext:Zt,createFactory:function(e){return Ct.bind(null,e)},cloneElement:io,createRef:function(){return{current:null}},Fragment:St,isValidElement:oo,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Et,PureComponent:kr,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:Sr(this.props,e)}function r(n){return this.shouldComponentUpdate=t,Ct(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Nr,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:St,Suspense:Lr,SuspenseList:Fr,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return Ct(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ro};const co=uo,ao=e=>{lr((()=>{const n=e();return()=>{n.Dispose()}}))},lo=(e,n)=>{lr((()=>{const n=e();return()=>{n.Dispose()}}),n)},fo=e=>{fr((()=>{const n=e();return()=>{n.Dispose()}}))};function ho(e){return{Dispose(){e()}}}function po(e){ao(e)}function mo(e,n){lo(e,n)}function go(e){yo(e,[])}function wo(e){mo(e,[])}function _o(e){ao((n=>(e(),ho((()=>{})))))}function yo(e,n){lo((n=>(e(),ho((()=>{})))),n)}function vo(e){return co.useRef(e)}function bo(e,n){const t=re(n,[]);return co.useMemo(e,t)}function Co(e){const n=vo(e),t=function(e,t){const r=re([],[]);return co.useCallback((e=>n.current(e)),r)}();var r;return r=()=>{n.current=e},fo((e=>(r(),ho((()=>{}))))),t}function xo(e){return co.useState(e)}class So{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class Eo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Eo.prototype)}}class ko{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ko.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Io(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new Eo);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(U(e))}}));else try{e(n)}catch(e){n.onError(U(e))}}}const Ao=new class{Bind(e,n){return function(e,n){return Io((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(U(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return Io((n=>e()(n)))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While((()=>!r.done),this.Delay((()=>{const e=n(r.value);return r=t.next(),e})))}Return(e){return function(e){return Io((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return Io((t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})}))}TryWith(e,n){return Io((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(U(e))}}})}))}Using(e,n){return this.TryFinally(n(e),(()=>e.Dispose()))}While(e,n){return e()?this.Bind(n,(()=>this.While(e,n))):this.Return(void 0)}Zero(){return Io((e=>e.onSuccess(void 0)))}};function No(e){}function To(e){const n=new So("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{n.cancel()}),e),n}function Do(e){e.cancel()}function Po(e){return null!=e&&e.isCancelled}const Oo=new So;function Mo(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ko;e({onSuccess:n||No,onError:t||No,onCancel:r||No,cancelToken:o||Oo,trampoline:i})}(e,n)}(e,n)}class Uo extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Lo(e,n){const t=vo(To());return wo((()=>ho((()=>{Do(t.current)})))),Co((r=>{Po(t.current)||Mo(Ao.Delay((()=>Ao.TryWith(Ao.Delay((()=>(n(new Uo(1)),Ao.Bind(e(r),(e=>(n(new Uo(2,e)),Ao.Zero())))))),(e=>(n(new Uo(3,e)),Ao.Zero()))))),t.current)}))}class Bo extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function Fo(e){return e.fields[0]}class Go{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Jo(this)}GetHashCode(){return Ho(this)}Equals(e){return jo(this,e)}}function Ro(e){return null!=e.generics?e.generics:[]}function Ho(e){return p([d(e.fullname),...Ro(e).map(Ho)])}function jo(e,n){return""===e.fullname?""===n.fullname&&w(ei(e),ei(n),(([e,n],[t,r])=>e===t&&jo(n,r))):e.fullname===n.fullname&&w(Ro(e),Ro(n),jo)}function $o(e,n,t,r){return new Go(e,n,t,void 0,r)}function Wo(e){return new Go("Microsoft.FSharp.Core.FSharpOption`1",[e])}function zo(e){return new Go("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Vo=new Go("System.Object"),qo=(new Go("Microsoft.FSharp.Core.Unit"),new Go("System.Char"),new Go("System.String"));function Zo(e){if(Array.isArray(e))return e[0];if(e instanceof Go){const n=Ko(e);if(null!=n)return Zo(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function Jo(e){const n=Ko(e);return null!=n?Jo(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Jo(e))).join(",")+"]"}function Ko(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function Yo(e){return null!=e.enumCases&&e.enumCases.length>0}function Xo(e){if(Yo(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Qo(e,n){const t=parseInt(n,10);return function(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(t)?n:t)[1]}function ei(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ni(e){return e.fullname.startsWith("System.Tuple")}function ti(e,n){return Ge(n)?new st(1,Ue(Pe("%s cannot be null or empty"))(e)):new st(0,n)}function ri(e){return F(e)}function oi(e){return e.fields[0]}function ii(e){return e.fields[0]}function si(e){return e.fields[0]}function ui(e){let n;const t=ti("Email",e);return n=1===t.tag?new st(1,t.fields[0]):function(e){const n=function(e){let n;const t=function(e,n){const t=function(e,n,t=0){return e.lastIndex=t,e.exec(n)}(Ee(".*?@(.*)"),n);return null!=t?cn(Mn(Nn((()=>Hn((e=>e||""),t))))):void 0}(0,e);switch(n=null!=t?on(t)?1:on(cn(t))?0:1:1,n){case 0:return e;case 1:return}}(e);return null!=n?new st(0,n):new st(1,"Email is not in the correct format")}(t.fields[0]),1===n.tag?new st(1,n.fields[0]):new st(0,new j(0,n.fields[0]))}function ci(e){return e.fields[0]}new Go("System.Boolean"),new Go("System.SByte"),new Go("System.Byte"),new Go("System.Int16"),new Go("System.UInt16"),new Go("System.Int32"),new Go("System.UInt32"),new Go("System.Single"),new Go("System.Double"),new Go("System.Decimal");class ai extends P{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function li(){return $o("Dto.Primitives.ContactDetails",[],ai,(()=>[["FirstName",qo],["LastName",qo],["Email",qo],["MobilePhone",qo]]))}function fi(e){return q(e)}function di(e){return Y(e)}class hi extends P{constructor(e,n,t,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}const pi=(()=>{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 mi(e){return oe((e=>e.passive&&!pi?{capture:e.capture,once:e.once,passive:!1}:e),e)}function gi(e){return null!=(n=e)?(e=>e.capture?{capture:!0}:void 0)(ne(n)):void 0;var n}function wi(e,n){return 0===n.indexOf(e)?n:void 0}function _i(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function yi(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s;return n=wi("/",e),null!=n?(t=n,"#"+t):(r=wi("#/",e),null!=r?(o=r,o):(i=wi("#",e),null!=i?(s=i,"#/"+ze(s,1,s.length-1)):"#/"+e))}:e=>{let n,t;return n=wi("/",e),null!=n?(t=n,t):"/"+e}}(n)(He("/",wn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function vi(e,n,t){1===n?history.pushState(void 0,"",yi(e,t)):history.replaceState(void 0,"",yi(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function bi(e,n){return function(e,n){let t,r;const o=Je();let i=o,s=n;for(;!Ye(s);){let n=e(Qe(s));for(;!Ye(n);)t=i,r=new qe(Qe(n),void 0),t.tail=r,i=r,n=en(n);s=en(s)}const u=i,c=Je();return u.tail=c,en(o)}((e=>{if(Re(e))return nn();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+ke(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return nn();if(null!=wi("?",n))return rn(n);{const e=n.split("?");if(le(((e,n)=>e===n),e,null)||1!==e.length){if(le(((e,n)=>e===n),e,null)||2!==e.length)return nn();if(""===e[1]){const n=e[0];return rn(decodeURIComponent(n))}{const n=e[0],t=e[1];return pn([decodeURIComponent(n),"?"+t])}}{const n=e[0];return rn(decodeURIComponent(n))}}}}),pn(We(null!=wi("#",e)?ze(e,1,e.length-1):1!==n||null==_i("#",e)&&null==_i("#/",e)?e:"",["/"],null,0)))}const Ci=function(e,n,t,r){const o=co.memo(e,I(2,re(N(2,t),null)));return Rn((n=>{e.displayName=n}),te(n)),e=>{const n=function(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}(r,e);return co.createElement(o,n)}}((e=>{const n=Co((n=>{const t=re(e.onUrlChanged,(e=>{}));!function(e,n,t){n(bi(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(re(e.hashMode,1),t)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=bo((()=>mi(r)),[r]),i=bo((()=>gi(r)),[r]),s=bo((()=>e=>{t(e)}),[t]);po(Co((()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ho((()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}}))})))}else{const e="popstate",t=n,r=void 0,o=bo((()=>mi(r)),[r]),i=bo((()=>gi(r)),[r]),s=bo((()=>e=>{t(e)}),[t]);po(Co((()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ho((()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}}))})))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=void 0,i=bo((()=>mi(o)),[o]),s=bo((()=>gi(o)),[o]),u=bo((()=>e=>{r(e)}),[r]);po(Co((()=>{if(null==i)window.addEventListener(t,u);else{const e=i;window.addEventListener(t,u,e)}return ho((()=>{if(null==s)window.removeEventListener(t,u);else{const e=s;window.removeEventListener(t,u,e)}}))})));const c=e.application;return null==c?null:c}),void 0,void 0,void 0);class xi extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Si extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function Ei(e){return 0===e.tag?new Si(1):new Si(0)}class ki extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Ii=new ki(0,new xi(1),new Si(0));function Ai(e){return e.fields[0]}function Ni(e){return e.fields[1]}function Ti(e,n){const t=n.fields[1],r=[e,n.fields[0]];return 1===r[0].tag?1===r[1].tag?new ki(0,new xi(1),Ei(t)):new ki(0,new xi(1),new Si(0)):0===r[1].tag?new ki(0,new xi(0),Ei(t)):new ki(0,new xi(0),new Si(0))}class Di extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Pi=new Di(0,"");function Oi(e){return e.fields[0]}class Mi extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ui(e){return e.fields[0]}class Li extends P{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Bi extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountKey"]}}class Fi extends P{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Gi(e){const n=function(e){const n=ti("Name",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,B(n.fields[0]))}(e.Name);if(1===n.tag)return new st(1,n.fields[0]);{const t=function(e){const n=ti("Website",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new G(0,n.fields[0]))}(e.Website);if(1===t.tag)return new st(1,t.fields[0]);{const r=function(e){const n=function(e){const n=ti("FirstName",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new R(0,n.fields[0]))}(e.FirstName);if(1===n.tag)return new st(1,n.fields[0]);{const t=function(e){const n=ti("LastName",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new H(0,n.fields[0]))}(e.LastName);if(1===t.tag)return new st(1,t.fields[0]);{const r=ui(e.Email);if(1===r.tag)return new st(1,r.fields[0]);{const o=function(e){const n=ti("MobilePhone",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new $(0,n.fields[0]))}(e.MobilePhone);return 1===o.tag?new st(1,o.fields[0]):new st(0,new W(n.fields[0],t.fields[0],r.fields[0],o.fields[0]))}}}}(e.ContactDetails);return 1===r.tag?new st(1,r.fields[0]):new st(0,new Fi(new Bo(0,e.StreamId),n.fields[0],t.fields[0],r.fields[0],function(e){return null==e?void 0:new z(0,e)}(e.Notes)))}}}function Ri(e,n){return _n((e=>Fo(e.StreamId)===J(n)),e)}class Hi extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","NotFound"]}}function ji(e){let n,t,r,o,i,s,u,c,a,l,f,d,h,p,m,g,w,_,y;switch(on(e)?n=13:"account-registry"===un(e)?on(cn(e))?n=13:"partners"===un(cn(e))?on(cn(cn(e)))?n=0:on(cn(cn(cn(e))))?(n=1,t=un(cn(cn(e)))):"accounts"===un(cn(cn(cn(e))))?on(cn(cn(cn(cn(e)))))?(n=2,r=un(cn(cn(e)))):on(cn(cn(cn(cn(cn(e))))))?(n=7,c=un(cn(cn(cn(cn(e))))),a=un(cn(cn(e)))):"directory"===un(cn(cn(cn(cn(cn(e))))))?on(cn(cn(cn(cn(cn(cn(e)))))))?(n=8,l=un(cn(cn(cn(cn(e))))),f=un(cn(cn(e)))):n=13:"super-configuration"===un(cn(cn(cn(cn(cn(e))))))?on(cn(cn(cn(cn(cn(cn(e)))))))?(n=9,d=un(cn(cn(cn(cn(e))))),h=un(cn(cn(e)))):n=13:"benefits-onboarding-configuration"===un(cn(cn(cn(cn(cn(e))))))?on(cn(cn(cn(cn(cn(cn(e)))))))?(n=10,p=un(cn(cn(cn(cn(e))))),m=un(cn(cn(e)))):n=13:"bank-details-configuration"===un(cn(cn(cn(cn(cn(e))))))?on(cn(cn(cn(cn(cn(cn(e)))))))?(n=11,g=un(cn(cn(cn(cn(e))))),w=un(cn(cn(e)))):n=13:"salary-packaging-configuration"===un(cn(cn(cn(cn(cn(e))))))&&on(cn(cn(cn(cn(cn(cn(e)))))))?(n=12,_=un(cn(cn(cn(cn(e))))),y=un(cn(cn(e)))):n=13:"super-configuration"===un(cn(cn(cn(e))))?on(cn(cn(cn(cn(e)))))?(n=3,o=un(cn(cn(e)))):n=13:"benefits-onboarding-configuration"===un(cn(cn(cn(e))))?on(cn(cn(cn(cn(e)))))?(n=4,i=un(cn(cn(e)))):n=13:"directory"===un(cn(cn(cn(e))))?on(cn(cn(cn(cn(e)))))?(n=5,s=un(cn(cn(e)))):n=13:"bank-details-configuration"===un(cn(cn(cn(e))))&&on(cn(cn(cn(cn(e)))))?(n=6,u=un(cn(cn(e)))):n=13:n=13:n=13,n){case 0:return new Hi(0);case 1:return new Hi(1,Z(t));case 2:return new Hi(3,Z(r));case 3:return new Hi(4,Z(o));case 4:return new Hi(5,Z(i));case 5:return new Hi(2,Z(s));case 6:return new Hi(6,Z(u));case 7:return new Hi(7,Z(a),X(c));case 8:return new Hi(8,Z(f),X(l));case 9:return new Hi(9,Z(h),X(d));case 10:return new Hi(10,Z(m),X(p));case 11:return new Hi(11,Z(w),X(g));case 12:return new Hi(12,Z(y),X(_));case 13:return new Hi(13)}}function $i(e){switch(e.tag){case 1:return pn(["account-registry","partners",fi(e.fields[0])]);case 3:return pn(["account-registry","partners",fi(e.fields[0]),"accounts"]);case 4:return pn(["account-registry","partners",fi(e.fields[0]),"super-configuration"]);case 5:return pn(["account-registry","partners",fi(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return pn(["account-registry","partners",fi(e.fields[0]),"bank-details-configuration"]);case 2:return pn(["account-registry","partners",fi(e.fields[0]),"directory"]);case 7:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1])]);case 8:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"directory"]);case 9:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"super-configuration"]);case 10:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"benefits-onboarding-configuration"]);case 11:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"bank-details-configuration"]);case 12:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"salary-packaging-configuration"]);default:return pn(["account-registry","partners"])}}function Wi(e){switch(e.tag){case 1:{const n=["account-registry","partners",fi(e.fields[0])];return rn((e=>{vi(pn(n),1,1)}))}case 3:{const n=["account-registry","partners",fi(e.fields[0]),"accounts"];return rn((e=>{vi(pn(n),1,1)}))}case 4:{const n=["account-registry","partners",fi(e.fields[0]),"super-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 5:{const n=["account-registry","partners",fi(e.fields[0]),"benefits-onboarding-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 6:{const n=["account-registry","partners",fi(e.fields[0]),"bank-details-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 2:{const n=["account-registry","partners",fi(e.fields[0]),"directory"];return rn((e=>{vi(pn(n),1,1)}))}case 7:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1])];return rn((e=>{vi(pn(n),1,1)}))}case 8:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"directory"];return rn((e=>{vi(pn(n),1,1)}))}case 9:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"super-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 10:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"benefits-onboarding-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 11:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"bank-details-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 12:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"salary-packaging-configuration"];return rn((e=>{vi(pn(n),1,1)}))}default:{const e=["account-registry","partners"];return rn((n=>{vi(pn(e),1,1)}))}}}function zi(e,n){return 1===n.tag?new Uo(1):2===n.tag?1===n.fields[0].tag?new Uo(2,new st(1,n.fields[0].fields[0])):new Uo(2,new st(0,e(n.fields[0].fields[0]))):3===n.tag?new Uo(3,n.fields[0]):new Uo(0)}const Vi=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,n){let t,r;void 0===n?(t=null,r=e):(t=e,r=n),this.delegates.forEach((e=>1===e.length?e(r):e(t,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const n="function"==typeof e?e:e.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const n=this.delegates.indexOf(e);n>-1&&this.delegates.splice(n,1)}},qi=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Vi}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}};class Zi{constructor(e,n,t){this.OnNext=e,this.OnError=n||(e=>{}),this.OnCompleted=t||(()=>{})}}function Ji(){return nn()}function Ki(e){return rn(e)}function Yi(e,n,t,r){return function(e,n,t,r){return rn((e=>{(e=>{!function(e){!function(e,n){let t,r=new qi(e);r.AutoReset=!1,t=r,function(e,n){n.Subscribe(new Zi(e))}(n,t.Elapsed()),t.Enabled=!0,t.Start()}(0,(n=>{Mo(e)}))}(e)})(Ao.Delay((()=>{return Ao.Bind((o=n(t),Io((e=>{o({onSuccess:n=>e.onSuccess(function(e){return new ct(0,e)}(n)),onError:n=>e.onSuccess(function(e){return new ct(1,e)}(n)),onCancel:e.onCancel,cancelToken:e.cancelToken,trampoline:e.trampoline})}))),(n=>{const t=n;return 0===t.tag?(e(r(t.fields[0])),Ao.Zero()):Ao.Zero()}));var o})))}))}(0,e,n,(e=>1===e.tag?r(e.fields[0]):t(e.fields[0])))}function Xi(e,n,t){return n()?t.then((()=>Xi(e,n,t))):Promise.resolve(void 0)}function Qi(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(y(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const es=new class{constructor(){}};class ns extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ts{constructor(e){this.state=new ns(0,ue(new Array(S(b,e,10)),0,S(b,e,10),null),0)}}function rs(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new ns(0,o,t):new ns(1,o,t,i),ee(o[r])}}function os(e,n,o){const i=vo(e[0]),s=vo(new ts(10)),u=xo(e[0]);let c;const a=vo(To()),l=vo(a.current);wo((()=>ho((()=>{Do(a.current)})))),c=l;const f=()=>{setTimeout((()=>{let e;e=c.current,Po(e)||u[1](i.current)}),0)},d=e=>{const t=function(e,n){return new Promise(((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}}))}(0,Qi(0,(()=>{let t=ee(e);return Xi(es,(()=>{let e;return null!=t&&(e=c.current,!Po(e))}),Qi(0,(()=>{const e=n(ne(t),i.current);return dn((e=>{e(d)}),e[1]),t=rs(s.current),i.current=e[0],f(),Promise.resolve()})))})));t.then()},h=Co(d);return mo((()=>ho((()=>{let e;Rn((e=>{r(e)}),te((e=i.current,t(e)?e:void 0)))}))),o),yo((()=>{i.current=e[0],f(),dn((e=>{e(h)}),e[1])}),o),_o((()=>{Rn(h,te(rs(s.current)))})),[u[0],h]}function is(e,n,t){return os(bo(e,t),n,t)}class ss extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class us extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class cs extends P{constructor(e,n,t,r,o,i,s,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class as extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ls extends P{constructor(e,n,t,r,o,i){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseUrl=r,this.responseHeaders=o,this.content=i}}class fs{constructor(e,n){this.k=e,this.v=n}}function ds(e,n){return new fs(e,n)}function hs(e){return e.k}function ps(e){return e.v}class ms extends fs{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function gs(e,n,t,r,o){return new ms(e,n,t,r,o)}function ws(e){return e.left}function _s(e){return e.right}function ys(e){return e.h}function vs(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof ms){e=vs(t+1,ws(r)),n=_s(r);continue e}return t+1|0}return 0|t}}function bs(e){return vs(0,e)}function Cs(e,n,t,r){let o,i;o=null!=e?e instanceof ms?ys(e):1:0,i=null!=r?r instanceof ms?ys(r):1:0;const s=0|(o<i?i:o);return 0===s?ds(n,t):gs(n,t,e,r,s+1)}function xs(e,n,t,r){let o,i,s,u,c,a;if(c=null!=e?e instanceof ms?ys(e):1:0,a=null!=r?r instanceof ms?ys(r):1:0,a>c+2){const s=ne(r);if(s instanceof ms){if(o=ws(s),(null!=o?(i=o,i instanceof ms?ys(i):1):0)>c+1){const r=ne(ws(s));if(r instanceof ms)return Cs(Cs(e,n,t,ws(r)),hs(r),ps(r),Cs(_s(r),hs(s),ps(s),_s(s)));throw new Error("internal error: Map.rebalance")}return Cs(Cs(e,n,t,ws(s)),hs(s),ps(s),_s(s))}throw new Error("internal error: Map.rebalance")}if(c>a+2){const o=ne(e);if(o instanceof ms){if(s=_s(o),(null!=s?(u=s,u instanceof ms?ys(u):1):0)>a+1){const e=ne(_s(o));if(e instanceof ms)return Cs(Cs(ws(o),hs(o),ps(o),ws(e)),hs(e),ps(e),Cs(_s(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Cs(ws(o),hs(o),ps(o),Cs(_s(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Cs(e,n,t,r)}function Ss(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,hs(o));return o instanceof ms?i<0?xs(Ss(e,n,t,ws(o)),hs(o),ps(o),_s(o)):0===i?gs(n,t,ws(o),_s(o),ys(o)):xs(ws(o),hs(o),ps(o),Ss(e,n,t,_s(o))):i<0?gs(n,t,void 0,r,2):0===i?ds(n,t):gs(n,t,r,void 0,2)}return ds(n,t)}function Es(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,hs(i));if(0===s)return ee(ps(i));if(i instanceof ms){e=r,n=o,t=s<0?ws(i):_s(i);continue e}return}return}}function ks(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof ms){ks(t,ws(r)),t(hs(r),ps(r)),e=t,n=_s(r);continue e}t(hs(r),ps(r))}break}}function Is(e,n){ks(e,n)}function As(e,n){if(null!=n){const t=n;if(t instanceof ms){const n=As(e,ws(t)),r=e(hs(t),ps(t)),o=As(e,_s(t));return gs(hs(t),r,n,o,ys(t))}return ds(hs(t),e(hs(t),ps(t)))}}function Ns(e,n){return As(e,n)}function Ts(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ss(e,o[0],o[1],t)}return t}class Ds extends P{constructor(e,n){super(),this.stack=e,this.started=n}}function Ps(e){e:for(;;){const n=e;if(on(n))return nn();{const t=cn(n),r=un(n);if(null!=r){const o=r;if(o instanceof ms){e=hn([ws(o),ds(hs(o),ps(o)),_s(o)],t);continue e}return n}e=t;continue e}}}function Os(e){return new Ds(Ps(rn(e)),!1)}function Ms(e){if(e.started){const n=e.stack;if(on(n))return function(){throw new Error("enumeration already finished")}();if(null!=un(n)){const e=un(n);if(e instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for current");return[hs(e),ps(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Us(e){let n=Os(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ms(n),"System.Collections.IEnumerator.get_Current":()=>Ms(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(on(n))return!1;if(null!=un(n)){if(un(n)instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ps(cn(n)),!on(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!on(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Os(e)},Dispose(){}}}class Ls{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,m(e[0])),t=0|n(t,m(e[1]))}}finally{r(o)}return 0|t}(this)}Equals(e){if(!(e instanceof Ls))return!1;{const n=s(this);try{const t=s(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{r(t)}}finally{r(n)}}}toString(){return"map ["+He("; ",Hn((e=>Fe("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Us(this.tree)}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Us(this.tree)}CompareTo(e){const n=this;if(e instanceof Ls)return 0|function(e,n,t){const o=An(n);try{const n=An(t);try{let t=0,r=o["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&r&&i;)t=0|e(o["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(r=o["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:r?1:i?-1:0)}finally{r(n)}}finally{r(o)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:x(e[1],t[1]))}),n,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Hs(this,e[0])&&y(Gs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){!function(e,n,t){let r=t;Is(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Rs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Rs(this)}get size(){return 0|Rs(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Hn((e=>[e[0],e[1]]),this)}get(e){return Gs(this,e)}has(e){return Hs(this,e)}keys(){return Hn((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Hn((e=>e[1]),this)}forEach(e,n){const t=this;Rn((n=>{e(n[1],n[0],t)}),t)}}function Bs(e,n){return new Ls(e,n)}function Fs(n){const t=ie();return Bs(t,function(n,t){if(e(t))return Ts(n,t);if(t instanceof qe)return function(e,n){return ln(((n,t)=>Ss(e,t[0],t[1],n)),void 0,n)}(n,t);{const e=s(t);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Ss(r,s[0],s[1],o),t=i}}}(n,void 0,e)}finally{r(e)}}}(t,n))}function Gs(e,n){return function(e,n,t){const r=Es(e,n,t);if(null==r)throw new Error;return ne(r)}(e.comparer,n,e.tree)}function Rs(e){return bs(e.tree)}function Hs(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,hs(i));if(i instanceof ms){if(s<0){e=r,n=o,t=ws(i);continue e}if(0===s)return!0;e=r,n=o,t=_s(i);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function js(){return Ls.empty}Ls.empty=Bs(ie(),void 0);const $s=new cs("",new ss(0),nn(),!1,void 0,void 0,void 0,new class extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}(0));function Ws(e,n){return Ge(n)?[n]:We(n,[e],null,0)}function zs(e){return new cs(e,$s.method,$s.headers,$s.withCredentials,$s.overridenMimeType,$s.overridenResponseType,$s.timeout,$s.content)}function Vs(e,n){return new cs(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function qs(e,n){return new cs(n.url,n.method,mn(n.headers,rn(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Zs(e){return function(e){return Io((n=>e([n.onSuccess,n.onError,n.onCancel])))}((n=>{const t=new XMLHttpRequest;t.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),t.onreadystatechange=()=>{let e,r,o,i,s,u,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,u=t.responseType,s=""===u||"text"===u?new as(0,t.responseText):new as("arraybuffer"===u?2:"blob"===u?1:3,t.response),c=function(e){const n=ie();return Bs(n,Ts(n,e))}(function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=ne(o);r.push(e)}}return r}((e=>{const n=pn(Ws(":",e));return on(n)?void 0:[un(n).toLocaleLowerCase(),He(":",cn(n)).trim()]}),Ws("\r\n",t.getAllResponseHeaders()))),new ls(o,e,i,t.responseURL,c,s)))};const o=s(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{r(o)}t.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;t.overrideMimeType(e)}const u=e.overridenResponseType;null==u||(1===u.tag?t.responseType="blob":2===u.tag?t.responseType="arraybuffer":t.responseType="text");const c=e.timeout;if(null==c);else{const e=0|c;t.timeout=0|e}const a=e.content;switch(a.tag){case 1:case 3:case 2:t.send(ee(a.fields[0]));break;default:t.send()}}))}new ls(0,"","","",js(),new as(0,""));class Js extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ks extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Ys{constructor(){this.cache=new Map([])}}function Xs(){return new Ys}function Qs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function eu(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Ee(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=Ie(e,s),c=Ie.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Qs(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Qs(n)}}Xs(),Xs();const nu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,tu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ru=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ou(e,n){try{return n.contents=function(e){function n(e){return e.replace(tu,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(nu.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+ke(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(tu.test(t))return n(t);if(ru.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var iu;function su(e,n){switch(n){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function uu(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&iu.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=su(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=su(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function cu(e,n){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function au(e,n){try{return n.contents=function(e){const[n,t]=ge(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return cu(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(iu||(iu={}));var lu=null;try{lu=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(gt){}function fu(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function du(e){return!0===(e&&e.__isLong__)}fu.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},fu.prototype.Equals=function(e){return Gu(this,e)},fu.prototype.CompareTo=function(e){return $u(this,e)},fu.prototype.toString=function(e){return Uu(this,e)},fu.prototype.toJSON=function(){return Uu(this)},fu.prototype[_e]=function(){const e=this;return{multiply:n=>qu(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return Uu(e.unsigned?e:function(e,n,t){return t?function(e,n){return new fu(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new fu(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},fu.prototype.__isLong__,Object.defineProperty(fu.prototype,"__isLong__",{value:!0});var hu={},pu={};function mu(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=pu[e])?r:(t=wu(e,(0|e)<0?-1:0,!0),o&&(pu[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=hu[e])?r:(t=wu(e,e<0?-1:0,!1),o&&(hu[e]=t),t)}function gu(e,n){if(isNaN(e))return n?ku:Eu;if(n){if(e<0)return ku;if(e>=Cu)return Du}else{if(e<=-xu)return Pu;if(e+1>=xu)return Tu}return e<0?Wu(gu(-e,n)):wu(e%bu|0,e/bu|0,n)}function wu(e,n,t){return new fu(e,n,t)}var _u=Math.pow;function yu(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Eu;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Wu(yu(e.substring(1),n,t));for(var o=gu(_u(t,8)),i=Eu,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),t);i=zu(u<8?qu(i,gu(_u(t,u))):i=qu(i,o),gu(c))}return i.unsigned=n,i}function vu(e,n){return"number"==typeof e?gu(e,n):"string"==typeof e?yu(e,n):wu(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var bu=4294967296,Cu=bu*bu,xu=Cu/2,Su=mu(1<<24),Eu=mu(0),ku=mu(0,!0),Iu=mu(1),Au=mu(1,!0),Nu=mu(-1),Tu=wu(-1,2147483647,!1),Du=wu(-1,-1,!0),Pu=wu(0,-2147483648,!1);function Ou(e){return e.unsigned?e.low>>>0:e.low}function Mu(e){return e.unsigned?(e.high>>>0)*bu+(e.low>>>0):e.high*bu+(e.low>>>0)}function Uu(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Lu(e))return"0";if(Bu(e)){if(Gu(e,Pu)){var t=gu(n),r=Zu(e,t),o=Vu(qu(r,t),e);return Uu(r,n)+Ou(o).toString(n)}return"-"+Uu(Wu(e),n)}for(var i=gu(_u(n,6),e.unsigned),s=e,u="";;){var c=Zu(s,i),a=(Ou(Vu(s,qu(c,i)))>>>0).toString(n);if(Lu(s=c))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function Lu(e){return 0===e.high&&0===e.low}function Bu(e){return!e.unsigned&&e.high<0}function Fu(e){return 1==(1&e.low)}function Gu(e,n){return du(n)||(n=vu(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function Ru(e,n){return $u(e,n)<0}function Hu(e,n){return $u(e,n)>0}function ju(e,n){return $u(e,n)>=0}function $u(e,n){if(du(n)||(n=vu(n)),Gu(e,n))return 0;var t=Bu(e),r=Bu(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:Bu(Vu(e,n))?-1:1}function Wu(e){return!e.unsigned&&Gu(e,Pu)?Pu:zu(function(e){return wu(~e.low,~e.high,e.unsigned)}(e),Iu)}function zu(e,n){du(n)||(n=vu(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=0,l=0,f=0,d=0;return f+=(d+=i+(65535&n.low))>>>16,l+=(f+=o+c)>>>16,a+=(l+=r+u)>>>16,a+=t+s,wu((f&=65535)<<16|(d&=65535),(a&=65535)<<16|(l&=65535),e.unsigned)}function Vu(e,n){return du(n)||(n=vu(n)),zu(e,Wu(n))}function qu(e,n){if(Lu(e))return e.unsigned?ku:Eu;if(du(n)||(n=vu(n)),lu)return wu(lu.mul(e.low,e.high,n.low,n.high),lu.get_high(),e.unsigned);if(Lu(n))return e.unsigned?ku:Eu;if(Gu(e,Pu))return Fu(n)?Pu:Eu;if(Gu(n,Pu))return Fu(e)?Pu:Eu;if(Bu(e))return Bu(n)?qu(Wu(e),Wu(n)):Wu(qu(Wu(e),n));if(Bu(n))return Wu(qu(e,Wu(n)));if(Ru(e,Su)&&Ru(n,Su))return gu(Mu(e)*Mu(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=65535&n.low,l=0,f=0,d=0,h=0;return d+=(h+=i*a)>>>16,f+=(d+=o*a)>>>16,d&=65535,f+=(d+=i*c)>>>16,l+=(f+=r*a)>>>16,f&=65535,l+=(f+=o*c)>>>16,f&=65535,l+=(f+=i*u)>>>16,l+=t*a+r*c+o*u+i*s,wu((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(f&=65535),e.unsigned)}function Zu(e,n){if(du(n)||(n=vu(n)),Lu(n))throw Error("division by zero");var t,r,o;if(lu)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?wu((e.unsigned?lu.div_u:lu.div_s)(e.low,e.high,n.low,n.high),lu.get_high(),e.unsigned):e;if(Lu(e))return e.unsigned?ku:Eu;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:wu(e.low,e.high,!0)}(n)),Hu(n,e))return ku;if(Hu(n,function(e,n){if(du(n)&&(n=Ou(n)),0==(n&=63))return e;var t=e.high;return n<32?wu(e.low>>>n|t<<32-n,t>>>n,e.unsigned):wu(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return Au;o=ku}else{if(Gu(e,Pu))return Gu(n,Iu)||Gu(n,Nu)?Pu:Gu(n,Pu)?Iu:Gu(t=function(e,n){return du(n)&&(n=Ou(n)),0==(n&=63)?e:n<32?wu(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):wu(0,e.low<<n-32,e.unsigned)}(Zu(function(e,n){return du(n)&&(n=Ou(n)),0==(n&=63)?e:n<32?wu(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):wu(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Eu)?Bu(n)?Iu:Nu:o=zu(t,Zu(r=Vu(e,qu(n,t)),n));if(Gu(n,Pu))return e.unsigned?ku:Eu;if(Bu(e))return Bu(n)?Zu(Wu(e),Wu(n)):Wu(Zu(Wu(e),n));if(Bu(n))return Wu(Zu(e,Wu(n)));o=Eu}for(r=e;ju(r,n);){t=Math.max(1,Math.floor(Mu(r)/Mu(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:_u(2,i-48),u=gu(t),c=qu(u,n);Bu(c)||Hu(c,r);)c=qu(u=gu(t-=s,e.unsigned),n);Lu(u)&&(u=Iu),o=zu(o,u),r=Vu(r,c)}return o}const Ju=Zu,Ku=Mu;function Yu(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ku(Ju(arguments[0],1e4));case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function Xu(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Yu(n,0,0,0,0)}if(t>0){const n=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,s=+n[4],u=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Yu(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Qu{constructor(e){this.k=e}}function ec(e){return new Qu(e)}function nc(e){return e.k}class tc extends Qu{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function rc(e,n,t,r){return new tc(e,n,t,r)}function oc(e){return e.left}function ic(e){return e.right}function sc(e){return e.h}function uc(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof tc){e=oc(r),n=uc(ic(r),t+1);continue e}return t+1|0}return 0|t}}function cc(e){return uc(e,0)}function ac(e,n,t){let r,o;r=null!=e?e instanceof tc?sc(e):1:0,o=null!=t?t instanceof tc?sc(t):1:0;const i=0|(r<o?o:r);return 0===i?ec(n):rc(n,e,t,i+1)}function lc(e,n,t){let r,o,i,s,u,c;if(u=null!=e?e instanceof tc?sc(e):1:0,c=null!=t?t instanceof tc?sc(t):1:0,c>u+2){const i=ne(t);if(i instanceof tc){if(r=oc(i),(null!=r?(o=r,o instanceof tc?sc(o):1):0)>u+1){const t=ne(oc(i));if(t instanceof tc)return ac(ac(e,n,oc(t)),nc(t),ac(ic(t),nc(i),ic(i)));throw new Error("internal error: Set.rebalance")}return ac(ac(e,n,oc(i)),nc(i),ic(i))}throw new Error("internal error: Set.rebalance")}if(u>c+2){const r=ne(e);if(r instanceof tc){if(i=ic(r),(null!=i?(s=i,s instanceof tc?sc(s):1):0)>c+1){const e=ne(ic(r));if(e instanceof tc)return ac(ac(oc(r),nc(r),oc(e)),nc(e),ac(ic(e),n,t));throw new Error("internal error: Set.rebalance")}return ac(oc(r),nc(r),ac(ic(r),n,t))}throw new Error("internal error: Set.rebalance")}return ac(e,n,t)}function fc(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,nc(r));if(r instanceof tc)return o<0?lc(fc(e,n,oc(r)),nc(r),ic(r)):0===o?t:lc(oc(r),nc(r),fc(e,n,ic(r)));{const o=0|e.Compare(n,nc(r));return o<0?rc(n,void 0,t,2):0===o?t:rc(n,t,void 0,2)}}return ec(n)}function dc(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,nc(i));if(i instanceof tc){if(s<0){e=r,n=o,t=oc(i);continue e}if(0===s)return!0;e=r,n=o,t=ic(i);continue e}return 0===s}return!1}}function hc(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof tc){hc(t,oc(r)),t(nc(r)),e=t,n=ic(r);continue e}t(nc(r))}break}}class pc extends P{constructor(e,n){super(),this.stack=e,this.started=n}}function mc(e){e:for(;;){const n=e;if(on(n))return nn();{const t=un(n),r=cn(n);if(null!=t){const o=t;if(o instanceof tc){e=hn([oc(o),ec(nc(o)),ic(o)],r);continue e}return n}e=r;continue e}}}function gc(e){return new pc(mc(rn(e)),!1)}function wc(e){if(e.started){const n=e.stack;if(on(n))return function(){throw new Error("Enumeration already started")}();if(null!=un(n))return nc(un(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function _c(e){let n=gc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>wc(n),"System.Collections.IEnumerator.get_Current":()=>wc(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(on(n))return!1;if(null!=un(n)){if(un(n)instanceof tc)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=mc(cn(n)),!on(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!on(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=gc(e)},Dispose(){}}}function yc(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t,s=[o,i];if(on(s[0]))return on(s[1])?0:-1;if(on(s[1]))return 1;if(null!=un(s[1]))if(null!=un(s[0])){const u=un(s[0]),c=un(s[1]);if(u instanceof tc)if(null==oc(u)){if(!(c instanceof tc)){const o=0|r.Compare(nc(u),nc(c));if(0!==o)return 0|o;e=r,n=tn(ic(u),cn(s[0])),t=tn(void 0,cn(s[1]));continue e}if(null==oc(c)){const o=0|r.Compare(nc(u),nc(c));if(0!==o)return 0|o;e=r,n=tn(ic(u),cn(s[0])),t=tn(ic(c),cn(s[1]));continue e}{const s=[o,i];let u,c,a,l,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,c=cn(s[0]),a=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2,u){case 0:if(a instanceof tc){e=r,n=hn([oc(a),rc(nc(a),void 0,ic(a),0)],c),t=i;continue e}e=r,n=hn([void 0,ec(nc(a))],c),t=i;continue e;case 1:if(f instanceof tc){e=r,n=o,t=hn([oc(f),rc(nc(f),void 0,ic(f),0)],l);continue e}e=r,n=o,t=hn([void 0,ec(nc(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,c,a,l,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,c=cn(s[0]),a=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2,u){case 0:if(a instanceof tc){e=r,n=hn([oc(a),rc(nc(a),void 0,ic(a),0)],c),t=i;continue e}e=r,n=hn([void 0,ec(nc(a))],c),t=i;continue e;case 1:if(f instanceof tc){e=r,n=o,t=hn([oc(f),rc(nc(f),void 0,ic(f),0)],l);continue e}e=r,n=o,t=hn([void 0,ec(nc(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof tc)){const o=0|r.Compare(nc(u),nc(c));if(0!==o)return 0|o;e=r,n=cn(s[0]),t=cn(s[1]);continue e}if(null==oc(c)){const o=0|r.Compare(nc(u),nc(c));if(0!==o)return 0|o;e=r,n=tn(void 0,cn(s[0])),t=tn(ic(c),cn(s[1]));continue e}{const s=[o,i];let u,c,a,l,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,c=cn(s[0]),a=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,l=cn(s[1]),f=un(s[1])):u=2,u){case 0:if(a instanceof tc){e=r,n=hn([oc(a),rc(nc(a),void 0,ic(a),0)],c),t=i;continue e}e=r,n=hn([void 0,ec(nc(a))],c),t=i;continue e;case 1:if(f instanceof tc){e=r,n=o,t=hn([oc(f),rc(nc(f),void 0,ic(f),0)],l);continue e}e=r,n=o,t=hn([void 0,ec(nc(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{un(s[1]);const u=[o,i];let c,a,l,f,d;switch(on(u[0])?on(u[1])?c=2:null!=un(u[1])?(c=1,f=cn(u[1]),d=un(u[1])):c=2:null!=un(u[0])?(c=0,a=cn(u[0]),l=un(u[0])):on(u[1])?c=2:null!=un(u[1])?(c=1,f=cn(u[1]),d=un(u[1])):c=2,c){case 0:if(l instanceof tc){e=r,n=hn([oc(l),rc(nc(l),void 0,ic(l),0)],a),t=i;continue e}e=r,n=hn([void 0,ec(nc(l))],a),t=i;continue e;case 1:if(d instanceof tc){e=r,n=o,t=hn([oc(d),rc(nc(d),void 0,ic(d),0)],f);continue e}e=r,n=o,t=hn([void 0,ec(nc(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==un(s[0])){e=r,n=cn(s[0]),t=cn(s[1]);continue e}{un(s[0]);const u=[o,i];let c,a,l,f,d;switch(on(u[0])?on(u[1])?c=2:null!=un(u[1])?(c=1,f=cn(u[1]),d=un(u[1])):c=2:null!=un(u[0])?(c=0,a=cn(u[0]),l=un(u[0])):on(u[1])?c=2:null!=un(u[1])?(c=1,f=cn(u[1]),d=un(u[1])):c=2,c){case 0:if(l instanceof tc){e=r,n=hn([oc(l),rc(nc(l),void 0,ic(l),0)],a),t=i;continue e}e=r,n=hn([void 0,ec(nc(l))],a),t=i;continue e;case 1:if(d instanceof tc){e=r,n=o,t=hn([oc(d),rc(nc(d),void 0,ic(d),0)],f);continue e}e=r,n=o,t=hn([void 0,ec(nc(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,rn(n),rn(t))}function vc(e,n,t){let r=t;hc((e=>{n[r]=e,r=r+1|0}),e)}function bc(n,t){if(e(t))return function(e,n){return ae(((n,t)=>fc(e,t,n)),void 0,n)}(n,t);if(t instanceof qe)return function(e,n){return ln(((n,t)=>fc(e,t,n)),void 0,n)}(n,t);{const e=s(t);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=fc(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(n,void 0,e)}finally{r(e)}}}class Cc{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n,t=0;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)t=0|(n=0|m(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),(t<<1)+n+631)}finally{r(o)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Cc&&0===yc(xc(this),Sc(this),Sc(e))}toString(){return"set ["+He("; ",Hn((e=>T(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|yc(xc(this),Sc(this),Sc(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 dc(xc(this),e,Sc(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){vc(Sc(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ec(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ec(this)}GetEnumerator(){return _c(Sc(this))}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return _c(Sc(this))}get size(){return 0|Ec(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 function(e,n){return dc(xc(e),n,Sc(e))}(this,e)}keys(){return Hn((e=>e),this)}values(){return Hn((e=>e),this)}entries(){return Hn((e=>[e,e]),this)}forEach(e,n){const t=this;Rn((n=>{e(n,n,t)}),t)}}function xc(e){return e.comparer}function Sc(e){return e.tree}function Ec(e){return cc(Sc(e))}function kc(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function Ic(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new st(1,function(e,n){const t=2===n.tag?kc(n.fields[0],n.fields[1],!0):1===n.tag?kc(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?kc(n.fields[0],n.fields[1],!0):4===n.tag?kc(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+He("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:kc(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}(e[0],e[1]))}return new st(0,r.fields[0])}function Ac(e,n){try{return Ic("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new st(1,"Given an invalid JSON: "+e.message);throw e}}function Nc(e,n){return"string"==typeof n?new st(0,n):new st(1,[e,new Js(0,"a string",n)])}const Tc=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new st(0,(e+128&255)-128):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,8,new O((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Dc=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new st(0,255&e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,8,new O((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Pc=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new st(0,(e+32768&65535)-32768):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,16,new O((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Oc=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new st(0,65535&e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,16,new O((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Mc=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new st(0,~~e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,32,new O((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Uc=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new st(0,e>>>0):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,32,new O((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])};function Lc(e,n,t,r){let o;const i=t+".["+l(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new st(1,[i,new Js(5,"a longer array. Need index `"+l(e)+"` but there are only `"+(o=t.length,l(o)+"` entries"),r)])}return new st(1,[i,new Js(0,"an array",r)])}function Bc(e,n,t){if(Array.isArray(t)){let r=-1;return ut(fn,ae(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+l(r)+"]",o);return 0===i.tag?new st(0,tn(i.fields[0],t.fields[0])):new st(1,i.fields[0])}return t}),new st(0,nn()),t))}return new st(1,[n,new Js(0,"a list",t)])}function Fc(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ae(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],s=e(n+".["+l(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new st(0,i)):new st(1,s.fields[0])}return t}),new st(0,ue(new Array(o.length),0,o.length,null)),o)}return new st(1,[n,new Js(0,"an array",t)])}function Gc(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new st(1,o.fields[0])}function Rc(e,n){let t;const r=e;return t=e=>n=>Lc(0,r,e,n),e=>r=>Gc(I(3,(e=>{let t;const r=n;return t=e=>n=>Lc(1,r,e,n),n=>r=>Gc(((n,t,r)=>new st(0,[e,n])),I(2,t),n,r)})),I(2,t),e,r)}function Hc(e){return Fs(e)}function jc(e){return function(e,n){return new Cc(e,n)}(n={Compare:x},bc(n,e));var n}function $c(e,n,t,r){let o;const i=n.length+e|0;if(i!==r.length)return new st(1,[t,new Js(6,(o=0|r.length,Ue(Pe("Expected array of length %i but got %i"))(i)(o)))]);{let o=new st(0,nn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=Ue(Pe("%s[%i]"))(t)(i),c=n[i-e],a=r[i];o=ut((e=>tn(e,s)),c(u)(a))}return ut(fn,o)}}function Wc(e,n,t,r,o,i){const s=function(e,n){return n.find((e=>Zo(e)===r))}(0,function(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}(t));if(null!=s){const t=s,r=ce((t=>Vc(e,n,!1,t[1])),function(e){return null==e.fields?[]:e.fields}(t));return ut((e=>function(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...n):{}}(t,an(e))),0===r.length&&i.length<=1?new st(0,nn()):$c(1,r,o,i))}return new st(1,[o,new Js(6,"Cannot find case "+r+" in "+Jo(t))])}function zc(e,n,t,r){const o=new O(null);let i;const s=Jo(r);let u;if(i=""===s?e:function(e,n,t){return Bs(e.comparer,Ss(e.comparer,n,t,e.tree))}(e,s,o),function(e){return e instanceof Go?null!=e.fields:e instanceof P}(r)){const e=ce((e=>[eu(n,Zo(e)),Vc(i,n,!1,e[1])]),ei(r));u=n=>t=>ut((e=>function(e,n){const t=ei(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce(((e,[t,r],o)=>(e[t]=n[o],e)),{})}(r,an(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new st(1,[n,new Js(0,"an object",t)]):function(e,n,t){return n.reduceRight(((n,t)=>e(t,n)),t)}(I(2,(e=>{const r=e[0];return o=>0===o.tag?ut((e=>tn(e,o.fields[0])),e[1](n+"."+r)(t[r])):o})),e,new st(0,nn()))}(e,n,t))}else if(function(e){return e instanceof Go?null!=e.cases:e instanceof D}(r))u=e=>t=>{if("string"==typeof t)return Wc(i,n,r,t,e,[]);if(Array.isArray(t)){const u=t;return 0===(o=Nc(e+"[0]",u[0])).tag?(s=o.fields[0],Wc(i,n,r,s,e,u)):new st(1,o.fields[0])}var o,s;return new st(1,[e,new Js(0,"a string or array",t)])};else{if(!t){let e;const n=Jo(r);throw e=Ue(Pe("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(n),new Error(e)}u=e=>n=>new st(1,[e,new Js(2,"an extra coder for "+Jo(r),n)])}return o.contents=u,u}function Vc(e,n,t,r){let o,i,s,u;const c=Jo(r),a=function(e,n){return Es(e.comparer,n,e.tree)}(e,c);if(null==a){if(function(e){return null!=Ko(e)}(r)){const t=Vc(e,n,!1,Ko(r));return e=>n=>Fc(I(2,t),e,n)}if(Yo(r)){const e=Jo(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,s=Tc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=Dc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=Pc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString(u))):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=Oc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=Mc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,l(e))):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=Uc(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};{const e=Jo(r),n=Me((e=>{throw new Error(e)}),Pe("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(ni(r)){const t=ce((t=>Vc(e,n,!1,t)),function(e){if(ni(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}(r));return e=>n=>Array.isArray(n)?ut((e=>an(e)),$c(0,t,e,n)):new st(1,[e,new Js(0,"an array",n)])}{const c=Jo(function(e){return null==e.generics?e:new Go(e.fullname,e.generics.map((()=>Vo)))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===c)return o=Vc(e,n,!0,Ro(r)[0]),e=>n=>{return t=I(2,o),r=e,null==(i=n)?new st(0,void 0):ut(ee,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===c)return i=Vc(e,n,!1,Ro(r)[0]),e=>n=>Bc(I(2,i),e,n);if("System.Collections.Generic.IEnumerable`1[System.Object]"===c)return s=Vc(e,n,!1,Ro(r)[0]),e=>n=>function(e,n,t){if(Array.isArray(t)){let r=-1;return ut(Wn,ae(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+l(r)+"]",o);return 0===i.tag?new st(0,Ln([i.fields[0]],t.fields[0])):new st(1,i.fields[0])}return t}),new st(0,[]),t))}return new st(1,[n,new Js(0,"a seq",t)])}(I(2,s),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===c){const t=Vc(e,n,!1,Ro(r)[0]),o=Vc(e,n,!1,Ro(r)[1]);let i;const s=pn([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new st(1,[t,new Js(0,"an object",r)]):Gn(((o,i)=>{if(0===o.tag){const s=e(t,i);if(0===s.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new st(0,tn([s.fields[0],e.fields[0]],o.fields[0])):new st(1,e.fields[0])}return new st(1,s.fields[0])}return o}),new st(0,nn()),Object.keys(r))}(I(2,t),I(2,o),e,n),(u=Rc(I(2,t),I(2,o)),e=>n=>Bc(I(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(on(o))return new st(1,[t,new Js(7,i)]);{const s=Ic(t,I(2,un(o)),r);if(1===s.tag){e=cn(o),n=mn(i,rn(s.fields[0]));continue e}return new st(0,s.fields[0])}}})(s,nn());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new st(1,o.fields[0]):new st(0,e(o.fields[0]))}(Hc,I(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===c){const t=Vc(e,n,!1,Ro(r)[0]);return e=>n=>{const r=Fc(I(2,t),e,n);return 0===r.tag?new st(0,jc(r.fields[0])):new st(1,r.fields[0])}}return zc(e,n,t,r)}}return"System.Boolean"===c?e=>n=>{return t=e,"boolean"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===c?e=>n=>{return t=e,null==(r=n)?new st(0,void 0):new st(1,[t,new Js(0,"null",r)]);var t,r}:"System.String"===c?e=>n=>Nc(e,n):"System.Char"===c?e=>n=>function(e,n){if("string"==typeof n){const t=n;return 1===t.length?new st(0,t[0]):new st(1,[e,new Js(0,"a single character string",n)])}return new st(1,[e,new Js(0,"a char",n)])}(e,n):"System.SByte"===c?Tc:"System.Byte"===c?Dc:"System.Int16"===c?Pc:"System.UInt16"===c?Oc:"System.Int32"===c?Mc:"System.UInt32"===c?Uc:"System.Double"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a float",r)]);var t,r}:"System.Single"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a float32",r)]);var t,r}:"System.DateTime"===c?e=>n=>function(e,n){if("string"==typeof n){let r,o=me(-621355968e5,0);return r=[we(n,new O((()=>o),(e=>{o=e}))),o],r[0]?new st(0,1===(t=r[1]).kind?t:me(t.getTime(),1)):new st(1,[e,new Js(0,"a datetime",n)])}var t;return new st(1,[e,new Js(0,"a datetime",n)])}(e,n):"System.DateTimeOffset"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=cu(-621355968e5,0);return t=[au(n,new O((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a datetimeoffset",n)])}return new st(1,[e,new Js(0,"a datetime",n)])}(e,n):"System.TimeSpan"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[Xu(n,new O((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a timespan",n)])}return new st(1,[e,new Js(0,"a timespan",n)])}(e,n):"System.Guid"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[ou(n,new O((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a guid",n)])}return new st(1,[e,new Js(0,"a guid",n)])}(e,n):"System.Object"===c?e=>e=>new st(0,e):zc(e,n,t,r)}{const e=a;return n=>t=>e.contents(n)(t)}}function qc(e){return null!=e?(n=(e,n)=>new O(n[1]),function(e,n){return Bs(e.comparer,Ns(n,e.tree))}(e.Coders,n)):js();var n}function Zc(e,n,t){const r=re(n,new Ks(0));return Vc(qc(t),r,!1,e)}class Jc extends P{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class Kc extends P{constructor(e,n,t,r,o,i,s,u,c){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=c}}class Yc extends P{constructor(e,n,t,r,o,i,s,u,c){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=c}}class Xc extends P{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function Qc(e){return new Bo(0,q(e))}function ea(e){return`${e}/account-registry/admin`}function na(e,n){return Ao.Delay((()=>{const t=qs((r=Ue(Pe("Bearer %s"))(e),new us(0,"Authorization",r)),n);var r;let o;const i=Zs(t);return o=Ao.Bind(i,(e=>Ao.Return(new st(0,e)))),Ao.Bind(o,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=Zs(t);return Ao.Bind(e,(e=>Ao.Return(new st(0,e))))}return Ao.Return(new st(0,e))}}))}))}function ta(e,n){return Ao.Delay((()=>{let t;const r=na(n,Vs(new ss(0),zs((t=ea(e),`${t}/partners`))));return Ao.Bind(r,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){let n;const t=Ac(I(2,Zc(zo($o("Dto.AdminApi.Partner",[],Jc,(()=>[["StreamId",qo],["Name",qo],["Website",qo],["ContactDetails",li()],["Notes",Wo(qo)]]))),new Ks(1),void 0)),e.responseText);return n=1===t.tag?new st(1,t.fields[0]):function(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(on(i)){const e=r;return 1===e.tag?new st(1,e.fields[0]):new st(0,fn(e.fields[0]))}{let s;const u=o(un(i));if(1===u.tag)s=new st(1,u.fields[0]);else{const e=r;s=1===e.tag?new st(1,e.fields[0]):new st(0,tn(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,n=o,t=cn(i);continue e}}}(new st(0,nn()),e,n)}((e=>e),wn(Gi,t.fields[0])),Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}function ra(e,n,t,r,o){return Ao.Delay((()=>{let i,s,u,c,a;const l="?"+He("&",function(e,n){const t=Je(),r=ln(((e,n)=>{if(null==n)return e;{const t=new qe(ne(n),void 0);return e.tail=t,t}}),t,n),o=Je();return r.tail=o,en(t)}(0,pn([(i=Oi(r.SearchText),Re(i)?void 0:`search=${encodeURIComponent(i)}`),(f=r.Sort,s=[f.fields[0],f.fields[1]],1===s[0].tag?1===s[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===s[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(u=0|Ui(r.PageSize),u<=100&&u>=10?`page_size=${u}`:void 0)])));var f;const d=na(n,(c=Vs(new ss(0),zs((a=ea(e),`${a}/partners/${Fo(t)}/accounts${l}`))),null==o?c:qs(new us(0,"token",o),c)));return Ao.Bind(d,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=Ac(I(2,Zc($o("Dto.AdminApi.AccountLookup",[],Xc,(()=>[["Accounts",zo($o("Dto.AdminApi.AccountLookupItem",[],Yc,(()=>[["AccountId",qo],["Name",qo],["Contact",qo],["ContactMobilePhone",qo],["Website",qo],["BusinessName",Wo(qo)],["BusinessNumber",Wo(qo)],["ExternalId",Wo(qo)],["ChannelId",Wo(qo)]])))],["Token",Wo(qo)]])),new Ks(1),void 0)),e.responseText);return Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}const oa=Nr((function(e,n){return Ct("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),Ct("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 ia extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function sa(){return new ia(0,["Partners",$i(new Hi(0))])}function ua(e,n){return new ia(0,[n,$i(new Hi(1,e))])}function ca(e){return new ia(0,[e,void 0])}function aa(e){let n,t;const r=e.partner;if(null==r)t="...";else{const e=r,n=e.Name;t=2===n.tag?1===n.fields[0].tag?J(e.Id):F(n.fields[0].fields[0]):"..."}let o;const i=e.account;if(null==i)o="...";else{const e=i,n=e.Name;o=2===n.tag?1===n.fields[0].tag?Y(e.Id):F(n.fields[0].fields[0]):"..."}let s;const u=[e.partner,e.account];let c,a,l,f;switch(null==u[0]?c=2:null==u[1]?(c=1,f=u[0]):(c=0,a=u[1],l=u[0]),c){case 0:s=pn([sa(),ua(l.Id,t),(d=l.Id,new ia(0,["Accounts",$i(new Hi(3,d))])),ca(o)]);break;case 1:s=pn([sa(),ua(f.Id,t)]);break;case 2:s=nn()}var d;return function(e){let n,t;return Ct("nav",E(pn([["className","pt-2"],["aria-label","Breadcrumb"],(n=[Ct("ol",E(pn([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(t=gn(((e,n)=>function(e,n,t,r){let o,i;return Ct("li",E(pn([["key",e],["className","flex"],(o=[Ct("div",E(pn([["className","flex items-center"],(i=Mn(Nn((()=>{let r;return Ln(t?Dn():Pn((r={className:"flex-shrink-0 h-5 w-5 text-gray-400"},Ct(oa,r))),Nn((()=>Pn(Ct("a",E(Mn(Nn((()=>Ln(Pn(["children",e]),Nn((()=>Ln(null!=n?Pn(["href",yi(ne(n),1)]):Dn(),Nn((()=>Pn(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))}))),["children",co.Children.toArray(Array.from(i))])])))],["children",co.Children.toArray(Array.from(o))])])))}(n.fields[0][0],n.fields[0][1],0===e)),e),["children",co.Children.toArray(Array.from(t))])])))],["children",co.Children.toArray(Array.from(n))])])))}((n=e.page,13===n.tag||1===n.tag||3===n.tag?s:4===n.tag?mn(s,rn(function(e){return new ia(0,["Super",$i(new Hi(4,e))])}(n.fields[0]))):5===n.tag?mn(s,rn(function(e){return new ia(0,["Benefits",$i(new Hi(5,e))])}(n.fields[0]))):6===n.tag?mn(s,rn(function(e){return new ia(0,["Bank Details",$i(new Hi(6,e))])}(n.fields[0]))):2===n.tag?mn(s,rn(function(e){return new ia(0,["Directory",$i(new Hi(2,e))])}(n.fields[0]))):7===n.tag?s:8===n.tag?mn(s,rn(function(e,n){let t;return new ia(0,["Directory",$i((t=[e,n],new Hi(8,t[0],t[1])))])}(n.fields[0],n.fields[1]))):9===n.tag?mn(s,rn(function(e,n){let t;return new ia(0,["Super",$i((t=[e,n],new Hi(9,t[0],t[1])))])}(n.fields[0],n.fields[1]))):10===n.tag?mn(s,rn(function(e,n){let t;return new ia(0,["Benefits",$i((t=[e,n],new Hi(10,t[0],t[1])))])}(n.fields[0],n.fields[1]))):11===n.tag?mn(s,rn(function(e,n){let t;return new ia(0,["Bank Details",$i((t=[e,n],new Hi(11,t[0],t[1])))])}(n.fields[0],n.fields[1]))):12===n.tag?mn(s,rn(function(e,n){let t;return new ia(0,["Salary Packaging",$i((t=[e,n],new Hi(12,t[0],t[1])))])}(n.fields[0],n.fields[1]))):s))}class la extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function fa(e){return e.fields[0]}function da(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=Ct("a",E(Mn(Nn((()=>Ln(Pn(["key",e]),Nn((()=>Ln(Pn(["children",e]),Nn((()=>Ln(Pn(["className",t]),Nn((()=>null!=n?Pn(["href",yi(rn(ne(n)),1)]):Dn())))))))))))))),new la(0,r);var r}function ha(e){let n,t;return Ct("div",E(pn([["className","border-b border-gray-200"],(n=[Ct("nav",E(pn([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(t=Hn(fa,e),["children",co.Children.toArray(Array.from(t))])])))],["children",co.Children.toArray(Array.from(n))])])))}class pa extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class ma{constructor(e){this.props=e}}function ga(e){return n=>t=>Ao.Delay((()=>{const r=Qc(e.props.partnerId);return Ao.Bind(ra(e.props.backendUrl,e.props.accessToken,r,n,void 0),(e=>(t(new pa(2,new Uo(2,e))),Ao.Zero())))}))}class wa extends P{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function _a(){return[new wa(new Uo(0),Pi,Ii,(20,new Mi(0,20))),Ji()]}function ya(e,n,t,r){let o,i;return Ct("div",E(pn([["className",He(" ",["flex-grow","max-w-md"])],(o=[Ct("label",{for:"search",children:"Search",className:He(" ",["block","text-sm","font-medium","text-gray-700"])}),Ct("div",E(pn([["className","mt-1"],(i=[Ct("input",{id:"search",name:"search",type:"text",className:He(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:n,value:e,onKeyUp:e=>{"Enter"===e.key&&r()},onChange:e=>{t(e.target.value)}})],["children",co.Children.toArray(Array.from(i))])])))],["children",co.Children.toArray(Array.from(o))])])))}function va(e){let n,t;return Ct("div",E(pn([["className","pt-6"],(n=[Ct("div",E(pn([["className",He(" ",["flex","justify-end"])],(t=[Ct("button",{type:"search",children:"Search",className:He(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",co.Children.toArray(Array.from(t))])])))],["children",co.Children.toArray(Array.from(n))])])))}class ba extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function Ca(e){return new ba(0,e)}function xa(e){return e.fields[0]}class Sa extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function Ea(e){return new Sa(0,e)}function ka(e){return e.fields[0]}function Ia(e){return Ca(Ct("th",E(pn([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function Aa(e,n){let t;return Ea(Ct("td",E(pn([["className","px-6 py-4 whitespace-nowrap text-sm"],(t=[Ct("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})],["children",co.Children.toArray(Array.from(t))])]))))}function Na(e,n){return Ea(Ct("td",{className:He(" ",Ln(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function Ta(e,n){let t,r,o,i,s,u,c;return Ct("div",E(pn([["className","flex flex-col mt-4"],(t=[Ct("div",E(pn([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[Ct("div",E(pn([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[Ct("div",E(pn([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(i=[Ct("table",E(pn([["className","min-w-full divide-y divide-gray-200"],(s=[Ct("thead",{className:"bg-gray-50",children:(u=Hn(xa,e),Ct("tr",{children:co.Children.toArray(Array.from(u))}))}),(c=jn(((e,n)=>(n=>{let t;return Ct("tr",E(pn([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Hn(ka,n),["children",co.Children.toArray(Array.from(t))])])))})(n)),n),Ct("tbody",{children:co.Children.toArray(Array.from(c))}))],["children",co.Children.toArray(Array.from(s))])])))],["children",co.Children.toArray(Array.from(i))])])))],["children",co.Children.toArray(Array.from(o))])])))],["children",co.Children.toArray(Array.from(r))])])))],["children",co.Children.toArray(Array.from(t))])])))}function Da(e){return["fillRule",e]}function Pa(e){return["clipRule",e]}const Oa=Ct("svg",E(pn([["className",He(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=rn(Ct("path",E(pn([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],Da("evenodd"),Pa("evenodd")]))));return["children",co.Children.toArray(Array.from(e))]})()]))),Ma=Ct("svg",E(pn([["className",He(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=rn(Ct("path",E(pn([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],Da("evenodd"),Pa("evenodd")]))));return["children",co.Children.toArray(Array.from(e))]})()])));function Ua(e,n,t,r){let o,i,s;return Ca(Ct("th",E(pn([["className",He(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[Ct("a",E(pn([["className",He(" ",["group","inline-flex","cursor-pointer"])],["onClick",t],(i=[r,Ct("span",E(pn([["className",He(" ",(u=!e,c=rn("invisible"),a=pn(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),u?mn(a,c):a))],(s=Mn(Nn((()=>Pn(n?Oa:Ma)))),["children",co.Children.toArray(Array.from(s))])])))],["children",co.Children.toArray(Array.from(i))])])))],["children",co.Children.toArray(Array.from(o))])]))));var u,c,a}function La(e,n){return Ua(y(Ai(e.Sort),new xi(1)),y(Ni(e.Sort),new Si(0)),(t=>{n(new pa(1,Ti(new xi(1),e.Sort)))}),"Name")}function Ba(e,n){return Ua(y(Ai(e.Sort),new xi(0)),y(Ni(e.Sort),new Si(0)),(t=>{n(new pa(1,Ti(new xi(0),e.Sort)))}),"Id")}class Fa extends P{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class Ga extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class Ra extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function Ha(e,n){let t;return Ct("tr",E(pn([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Hn(ka,n),["children",co.Children.toArray(Array.from(t))])])))}function ja(e){let n,t,r,o,i;const s=e.data,u=e.pageSize,c=e.renderRowCells,a=e.columnHeaders,l=(p=u,m=s.Data,pn(ce(pn,function(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=r*e|0;o=n.slice(i,i+e),t.push(o)}return t}}(p,an(m))))),f=function(e,n){const t=xo(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;Me((e=>console.log(e)),Pe("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}(sn(l),s.LoadNext),d=0|f[0],h=f[1];var p,m;let g;const w=function(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(Ye(o))return;if(r===e)return ee(Qe(o));n=r+1,t=en(o)}})(0,n)}(d-1,l);g=null==w?new Ga(1):new Ga(0,w);const _=0|sn(s.Data),y=null==s.LoadNext?new Ra(0,_):new Ra(1),v=1===g.tag?void 0:_>=1?(d-1)*u+1:void 0,b=1===g.tag?void 0:_>=1?(d-1)*u+sn(g.fields[0]):void 0,C=1===d?void 0:f[2],x=d===sn(l)?null!=s.LoadNext?h:void 0:d<sn(l)?h:void 0;return Ct("div",E(pn([["className","flex flex-col mt-4"],(n=[Ct("div",E(pn([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[Ct("div",E(pn([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[Ct("div",E(pn([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[Ct("table",E(pn([["className","min-w-full divide-y divide-gray-200"],(i=Mn(Nn((()=>Ln(Pn(function(e){let n;return Ct("thead",{className:"bg-gray-50",children:(n=Hn(xa,e),Ct("tr",{children:co.Children.toArray(Array.from(n))}))})}(a)),Nn((()=>{let e,n;return Ln((e=g,1===e.tag?Pn(null):Pn((n=jn(Ha,c(e.fields[0])),Ct("tbody",{children:co.Children.toArray(Array.from(n))})))),Nn((()=>Pn(function(e,n,t,r,o,i){let s,u,c,a,l,f;const d=[n,t];let h,p,m;switch(null!=d[0]&&null!=d[1]?(h=0,p=d[0],m=d[1]):h=1,h){case 0:f=Mn(Nn((()=>Ln(Pn("Showing "),Nn((()=>Ln(Pn(Ct("span",{className:"font-medium",children:`${p}`})),Nn((()=>Ln(Pn(" to "),Nn((()=>Ln(Pn(Ct("span",{className:"font-medium",children:`${m}`})),Nn((()=>Ln(Pn(" of "),Nn((()=>1===r.tag?rn(" many"):pn([Ct("span",{className:"font-medium",children:T(r.fields[0])})," results"])))))))))))))))))));break;case 1:f=rn(null)}const g=Mn(Nn((()=>{let e,n;return Ln((e=i,null==e?Pn(null):(n=e,Pn(Ct("a",{className:He(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:"Previous "})))),Nn((()=>{const e=o;if(null==e)return Pn(null);{const n=e;return Pn(Ct("a",{className:He(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:" Next"}))}})))})));return Ct("tfoot",E(pn([["className",He(" ",["w-full"])],(s=[Ct("tr",E(rn((u=[Ct("td",E(pn([["colSpan",e],(c=[Ct("nav",E(pn([["className",He(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(a=[Ct("div",E(pn([["className",He(" ",["hidden","sm:block"])],(l=[Ct("p",{className:He(" ",["text-sm","text-gray-700"]),children:co.Children.toArray(Array.from(f))})],["children",co.Children.toArray(Array.from(l))])]))),Ct("div",{className:He(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:co.Children.toArray(Array.from(g))})],["children",co.Children.toArray(Array.from(a))])])))],["children",co.Children.toArray(Array.from(c))])])))],["children",co.Children.toArray(Array.from(u))]))))],["children",co.Children.toArray(Array.from(s))])])))}(sn(a),v,b,y,x,C)))))})))))),["children",co.Children.toArray(Array.from(i))])])))],["children",co.Children.toArray(Array.from(o))])])))],["children",co.Children.toArray(Array.from(r))])])))],["children",co.Children.toArray(Array.from(t))])])))],["children",co.Children.toArray(Array.from(n))])])))}function $a(e){const n=rn(Ct("span",{children:[e.error]}));return Ct("div",{children:co.Children.toArray(Array.from(n))})}function Wa(){const e=rn(Ct("span",{children:["Please wait..."]}));return Ct("div",{children:co.Children.toArray(Array.from(e))})}function za(e){let n,t,r,o,i,s,u;const c=function(e){return new ma(e)}(e),a=is(_a,((e,n)=>function(e,n,t){let r,o,i,s;switch(n.tag){case 1:{const r=n.fields[0];return[new wa(new Uo(1),t.SearchText,r,t.PageSize),Ki((n=>{const o=new Li(t.SearchText,r,t.PageSize);Mo(ga(e)(o)(n))}))]}case 2:return[new wa(n.fields[0],t.SearchText,t.Sort,t.PageSize),Ji()];case 3:return[new wa((r=[t.Data,n.fields[0]],2===r[0].tag?0===r[0].fields[0].tag?(o=r[1],1===o.tag?new Uo(2,new st(1,o.fields[0])):new Uo(2,new st(0,new Xc(mn(r[0].fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)))):(i=r[1],1===i.tag?new Uo(2,new st(1,i.fields[0])):new Uo(3,new Error("Failed to retrieve the account data"))):(s=r[1],1===s.tag?new Uo(2,new st(1,s.fields[0])):new Uo(3,new Error("Failed to retrieve the account data")))),t.SearchText,t.Sort,t.PageSize),Ji()];case 4:return[new wa(new Uo(1),t.SearchText,t.Sort,t.PageSize),Ki((n=>{const r=new Li(t.SearchText,t.Sort,t.PageSize);Mo(ga(e)(r)(n))}))];default:return[new wa(t.Data,(u=n.fields[0],new Di(0,u.trim())),t.Sort,t.PageSize),Ji()]}var u}(c,e,n)),[]),l=a[0],f=a[1],d=new Li(l.SearchText,l.Sort,l.PageSize);go((n=[()=>function(e,n,t){return ra(e.props.backendUrl,e.props.accessToken,Qc(e.props.partnerId),n,void 0)}(c,d),e=>{f(new pa(2,e))}],Lo(n[0],n[1])));const h=e=>{f(new pa(4))},p=l.Data;let m,g,w,_;switch(0===p.tag||1===p.tag?m=2:3===p.tag?(m=3,_=p.fields[0]):1===p.fields[0].tag?(m=1,w=p.fields[0].fields[0]):(m=0,g=p.fields[0].fields[0]),m){case 0:{const n=pn([Ct("div",E(pn([["className",He(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(t=[Ct("div",E(pn([["className",He(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[ya(Oi(l.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",(e=>{f(new pa(0,e))}),h),va(h)],["children",co.Children.toArray(Array.from(r))])])))],["children",co.Children.toArray(Array.from(t))])]))),(o=g,i=pn([Ba(l,f),La(l,f),Ia("Contact"),Ia("Website")]),s=new Fa(o.Accounts,oe((e=>n=>{Mo(function(e){return n=>t=>r=>Ao.Delay((()=>{const o=Qc(e.props.partnerId);return Ao.Bind(ra(e.props.backendUrl,e.props.accessToken,o,n,t),(e=>(r(new pa(3,e)),Ao.Zero())))}))}(c)(d)(e)(f))}),o.Token)),u=0|Ui(l.PageSize),Ct(ja,{columnHeaders:i,renderRowCells:n=>wn((n=>function(e,n){const t=X(n.AccountId);return Mn(Nn((()=>{let r;return Ln(Pn(function(e,n,t,r){let o;return Ea(Ct("td",E(pn([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=Mn(Nn((()=>Ln(Pn(Ct("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),Nn((()=>{let e,n;return Ln((e=r,null==e?Pn(null):(n=e,Ln(Pn(Ct("br",{})),Nn((()=>{let e;return Pn((e=`Channel ID: ${n}`,Ct("span",{children:[e]})))}))))),Nn((()=>{const e=t;if(null==e)return Pn(null);{const n=e;return Ln(Pn(Ct("br",{})),Nn((()=>{let e;return Pn((e=`External ID: ${n}`,Ct("span",{children:[e]})))})))}})))})))))),["children",co.Children.toArray(Array.from(o))])]))))}(yi($i((r=[e,t],new Hi(7,r[0],r[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),Nn((()=>Ln(Pn(function(e,n,t){let r;return Ea(Ct("td",E(pn([["className",He(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=Mn(Nn((()=>{let r;return Ln(Pn(Ct("div",E(pn([["className",He(" ",["font-medium"])],(r=[Ct("span",{children:[e]})],["children",co.Children.toArray(Array.from(r))])])))),Nn((()=>{let e,r;return Ln((e=n,Pn(null==e?null:(r="Legal Entity: "+e,Ct("span",{children:[r]})))),Nn((()=>{const e=t;if(null==e)return Pn(null);{const n=e;return Ln(Pn(Ct("br",{})),Nn((()=>{let e;return Pn((e="ABN: "+n,Ct("span",{children:[e]})))})))}})))})))}))),["children",co.Children.toArray(Array.from(r))])]))))}(n.Name,n.BusinessName,n.BusinessNumber)),Nn((()=>Ln(Pn(function(e,n){let t;return Ea(Ct("td",E(pn([["className",He(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(t=[Ct("span",{children:[e]}),Ct("br",{}),Ct("span",{children:[n]})],["children",co.Children.toArray(Array.from(t))])]))))}(n.Contact,n.ContactMobilePhone)),Nn((()=>{return Pn((e=n.Website,Ea(Ct("td",{className:He(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))));var e})))))))))})))}(e.partnerId,n)),n),pageSize:u,data:s}))]);return Ct("div",{children:co.Children.toArray(Array.from(n))})}case 1:return Ct($a,{error:w});case 2:return Ct(Wa,null);case 3:return Ct($a,{error:T(_)})}}class Va extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function qa(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Va(1,n),new Va(0,t),new Va(2,q(e.partnerId)),oe((e=>new Va(3,Y(e))),r)]);return Ct("superhero-super-configuration",qn(o,1))}class Za extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Ja(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Za(1,n),new Za(0,t),new Za(2,q(e.partnerId)),oe((e=>new Za(3,Y(e))),r)]);return Ct("superhero-benefits-onboarding-configuration",qn(o,1))}class Ka extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Ya(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Ka(1,n),new Ka(0,t),new Ka(2,q(e.partnerId)),oe((e=>new Ka(3,Y(e))),r)]);return Ct("superhero-bank-details",qn(o,1))}class Xa extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Qa(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Xa(1,n),new Xa(0,t),new Xa(2,q(e.partnerId)),oe((e=>new Xa(3,Y(e))),r)]);return Ct("superhero-profile-directory-app",qn(o,1))}function el(...e){return e.filter(Boolean).join(" ")}function nl(e,n,...t){if(e in n){let r=n[e];return"function"==typeof r?r(...t):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,nl),r}var tl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(tl||{}),rl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(rl||{});function ol({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:i=!0,name:s}){let u=sl(n,e);if(i)return il(u,t,r,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...n}=u;if(e)return il(n,t,r,s)}if(1&c){let{unmount:e=!0,...n}=u;return nl(e?0:1,{0:()=>null,1:()=>il({...n,hidden:!0,style:{display:"none"}},t,r,s)})}return il(u,t,r,s)}function il(e,n={},t,r){let{as:o=t,children:i,refName:s="ref",...u}=al(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},a="function"==typeof i?i(n):i;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(n));let l={};if(n){let e=!1,t=[];for(let[r,o]of Object.entries(n))"boolean"==typeof o&&(e=!0),!0===o&&t.push(r);e&&(l["data-headlessui-state"]=t.join(" "))}if(o===St&&Object.keys(cl(u)).length>0){if(!oo(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=a.props,n="function"==typeof(null==e?void 0:e.className)?(...n)=>el(null==e?void 0:e.className(...n),u.className):el(null==e?void 0:e.className,u.className),t=n?{className:n}:{};return io(a,Object.assign({},sl(a.props,cl(al(u,["ref"]))),l,c,function(...e){return{ref:e.every((e=>null==e))?void 0:n=>{for(let t of e)null!=t&&("function"==typeof t?t(n):t.current=n)}}}(a.ref,c.ref),t))}return Ct(o,Object.assign({},al(u,["ref"]),o!==St&&c,o!==St&&l),a)}function sl(...e){if(0===e.length)return{};if(1===e.length)return e[0];let n={},t={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=t[e]||(t[e]=[]),t[e].push(r[e])):n[e]=r[e];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map((e=>[e,void 0]))));for(let e in t)Object.assign(n,{[e](n,...r){let o=t[e];for(let e of o){if((n instanceof Event||(null==n?void 0:n.nativeEvent)instanceof Event)&&n.defaultPrevented)return;e(n,...r)}}});return n}function ul(e){var n;return Object.assign(Nr(e),{displayName:null!=(n=e.displayName)?n:e.name})}function cl(e){let n=Object.assign({},e);for(let e in n)void 0===n[e]&&delete n[e];return n}function al(e,n=[]){let t=Object.assign({},e);for(let e of n)e in t&&delete t[e];return t}let ll=Zt(null);ll.displayName="OpenClosedContext";var fl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(fl||{});function dl(){return mr(ll)}function hl({value:e,children:n}){return uo.createElement(ll.Provider,{value:e},n)}var pl=Object.defineProperty,ml=(e,n,t)=>(((e,n,t)=>{n in e?pl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t})(e,"symbol"!=typeof n?n+"":n,t),t);let gl=new class{constructor(){ml(this,"current",this.detect()),ml(this,"handoffState","pending"),ml(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},wl=(e,n)=>{gl.isServer?lr(e,n):fr(e,n)};function _l(){let e=dr(!1);return wl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function yl(e){let n=dr(e);return wl((()=>{n.current=e}),[e]),n}function vl(){let[e,n]=cr(gl.isHandoffComplete);return e&&!1===gl.isHandoffComplete&&n(!1),lr((()=>{!0!==e&&n(!0)}),[e]),lr((()=>gl.handoff()),[]),e}let bl=function(e){let n=yl(e);return uo.useCallback(((...e)=>n.current(...e)),[n])},Cl=Symbol();function xl(...e){let n=dr(e);lr((()=>{n.current=e}),[e]);let t=bl((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Cl])))?void 0:t}function Sl(){let e=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},style(e,n,t){let r=e.style.getPropertyValue(n);return Object.assign(e.style,{[n]:t}),this.add((()=>{Object.assign(e.style,{[n]:r})}))},group(e){let n=Sl();return e(n),this.add((()=>n.dispose()))},add:n=>(e.push(n),()=>{let t=e.indexOf(n);if(t>=0)for(let n of e.splice(t,1))n()}),dispose(){for(let n of e.splice(0))n()}};return n}function El(e,...n){e&&n.length>0&&e.classList.add(...n)}function kl(e,...n){e&&n.length>0&&e.classList.remove(...n)}function Il(){let[e]=cr(Sl);return lr((()=>()=>e.dispose()),[e]),e}function Al(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Nl=Zt(null);Nl.displayName="TransitionContext";var Tl=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Tl||{});let Dl=Zt(null);function Pl(e){return"children"in e?Pl(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ol(e,n){let t=yl(e),r=dr([]),o=_l(),i=Il(),s=bl(((e,n=rl.Hidden)=>{let s=r.current.findIndex((({el:n})=>n===e));-1!==s&&(nl(n,{[rl.Unmount](){r.current.splice(s,1)},[rl.Hidden](){r.current[s].state="hidden"}}),i.microTask((()=>{var e;!Pl(r)&&o.current&&(null==(e=t.current)||e.call(t))})))})),u=bl((e=>{let n=r.current.find((({el:n})=>n===e));return n?"visible"!==n.state&&(n.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,rl.Unmount)})),c=dr([]),a=dr(Promise.resolve()),l=dr({enter:[],leave:[],idle:[]}),f=bl(((e,t,r)=>{c.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([n])=>n!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(l.current[t].map((([e,n])=>n))).then((()=>e()))}))]),"enter"===t?a.current=a.current.then((()=>null==n?void 0:n.wait.current)).then((()=>r(t))):r(t)})),d=bl(((e,n,t)=>{Promise.all(l.current[n].splice(0).map((([e,n])=>n))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>t(n)))}));return hr((()=>({children:r,register:u,unregister:s,onStart:f,onStop:d,wait:a,chains:l})),[u,s,r,f,d,l,a])}function Ml(){}Dl.displayName="NestingContext";let Ul=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ll(e){var n;let t={};for(let r of Ul)t[r]=null!=(n=e[r])?n:Ml;return t}let Bl=tl.RenderStrategy,Fl=ul((function(e,n){let{show:t,appear:r=!1,unmount:o,...i}=e,s=dr(null),u=xl(s,n);vl();let c=dl();if(void 0===t&&null!==c&&(t=(c&fl.Open)===fl.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,l]=cr(t?"visible":"hidden"),f=Ol((()=>{l("hidden")})),[d,h]=cr(!0),p=dr([t]);wl((()=>{!1!==d&&p.current[p.current.length-1]!==t&&(p.current.push(t),h(!1))}),[p,t]);let m=hr((()=>({show:t,appear:r,initial:d})),[t,r,d]);lr((()=>{if(t)l("visible");else if(Pl(f)){let e=s.current;if(!e)return;let n=e.getBoundingClientRect();0===n.x&&0===n.y&&0===n.width&&0===n.height&&l("hidden")}else l("hidden")}),[t,f]);let g={unmount:o};return uo.createElement(Dl.Provider,{value:f},uo.createElement(Nl.Provider,{value:m},ol({ourProps:{...g,as:St,children:uo.createElement(Gl,{ref:u,...g,...i})},theirProps:{},defaultTag:St,features:Bl,visible:"visible"===a,name:"Transition"})))})),Gl=ul((function(e,n){let{beforeEnter:t,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:u,enterTo:c,entered:a,leave:l,leaveFrom:f,leaveTo:d,...h}=e,p=dr(null),m=xl(p,n),g=h.unmount?rl.Unmount:rl.Hidden,{show:w,appear:_,initial:y}=function(){let e=mr(Nl);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[v,b]=cr(w?"visible":"hidden"),C=function(){let e=mr(Dl);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:x,unregister:S}=C,E=dr(null);lr((()=>x(p)),[x,p]),lr((()=>{if(g===rl.Hidden&&p.current)return w&&"visible"!==v?void b("visible"):nl(v,{hidden:()=>S(p),visible:()=>x(p)})}),[v,p,x,S,w,g]);let k=yl({enter:Al(s),enterFrom:Al(u),enterTo:Al(c),entered:Al(a),leave:Al(l),leaveFrom:Al(f),leaveTo:Al(d)}),I=function(e){let n=dr(Ll(e));return lr((()=>{n.current=Ll(e)}),[e]),n}({beforeEnter:t,afterEnter:r,beforeLeave:o,afterLeave:i}),A=vl();lr((()=>{if(A&&"visible"===v&&null===p.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[p,v,A]);let N=y&&!_,T=!A||N||E.current===w?"idle":w?"enter":"leave",D=function(e=0){let[n,t]=cr(e),r=_l(),o=pr((e=>{r.current&&t((n=>n|e))}),[n,r]),i=pr((e=>Boolean(n&e)),[n]),s=pr((e=>{r.current&&t((n=>n&~e))}),[t,r]),u=pr((e=>{r.current&&t((n=>n^e))}),[t]);return{flags:n,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:u}}(0),P=bl((e=>nl(e,{enter:()=>{D.addFlag(fl.Opening),I.current.beforeEnter()},leave:()=>{D.addFlag(fl.Closing),I.current.beforeLeave()},idle:()=>{}}))),O=bl((e=>nl(e,{enter:()=>{D.removeFlag(fl.Opening),I.current.afterEnter()},leave:()=>{D.removeFlag(fl.Closing),I.current.afterLeave()},idle:()=>{}}))),M=Ol((()=>{b("hidden"),S(p)}),C);(function({container:e,direction:n,classes:t,onStart:r,onStop:o}){let i=_l(),s=Il(),u=yl(n);wl((()=>{let n=Sl();s.add(n.dispose);let c=e.current;if(c&&"idle"!==u.current&&i.current)return n.dispose(),r.current(u.current),n.add(function(e,n,t,r){let o=t?"enter":"leave",i=Sl(),s=void 0!==r?function(e){let n={called:!1};return(...t)=>{if(!n.called)return n.called=!0,e(...t)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let u=nl(o,{enter:()=>n.enter,leave:()=>n.leave}),c=nl(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),a=nl(o,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return kl(e,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),El(e,...u,...a),i.nextFrame((()=>{kl(e,...a),El(e,...c),function(e,n){let t=Sl();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[n=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,n)=>n-e));return n})),u=i+s;if(0!==u){t.group((t=>{t.setTimeout((()=>{n(),t.dispose()}),u),t.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&t.dispose()}))}));let r=t.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(n(),r())}))}else n();t.add((()=>n())),t.dispose}(e,(()=>(kl(e,...u),El(e,...n.entered),s())))})),i.dispose}(c,t.current,"enter"===u.current,(()=>{n.dispose(),o.current(u.current)}))),n.dispose}),[n])})({container:p,classes:k,direction:T,onStart:yl((e=>{M.onStart(p,e,P)})),onStop:yl((e=>{M.onStop(p,e,O),"leave"===e&&!Pl(M)&&(b("hidden"),S(p))}))}),lr((()=>{N&&(g===rl.Hidden?E.current=null:E.current=w)}),[w,N,v]);let U=h,L={ref:m};return _&&w&&(U={...U,className:el(h.className,...k.current.enter,...k.current.enterFrom)}),uo.createElement(Dl.Provider,{value:M},uo.createElement(hl,{value:nl(v,{visible:fl.Open,hidden:fl.Closed})|D.flags},ol({ourProps:L,theirProps:U,defaultTag:"div",features:Bl,visible:"visible"===v,name:"Transition.Child"})))})),Rl=ul((function(e,n){let t=null!==mr(Nl),r=null!==dl();return uo.createElement(uo.Fragment,null,!t&&r?uo.createElement(Fl,{ref:n,...e}):uo.createElement(Gl,{ref:n,...e}))})),Hl=Object.assign(Fl,{Child:Rl,Root:Fl});class jl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function $l(e){const n=qn(e,1);return Ct(Hl,n)}function Wl(e,n){let t;return Ct("div",E(pn([["className","px-4 py-4 sm:px-0"],(t=[Ct("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),re(oe((e=>Ct("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:e})),n),null)],["children",co.Children.toArray(Array.from(t))])])))}function zl(e,n){let t;return Ct("div",E(pn([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[Ct("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),Ct("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:n})],["children",co.Children.toArray(Array.from(t))])])))}function Vl(e){let n,t;const r=e.value,o=e.label,i=xo(!1),s=i[0],u=i[1];return _o((()=>{Mo(Ao.Delay((()=>s?Ao.Bind((2e3,Io((e=>{let n;const t=setTimeout((()=>{e.cancelToken.removeListener(n),e.onSuccess(void 0)}),2e3);n=e.cancelToken.addListener((()=>{clearTimeout(t),e.onCancel(new Eo)}))}))),(()=>(u(!1),Ao.Zero()))):Ao.Zero())))})),Ct("div",E(pn([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[Ct("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),Ct("dd",E(pn([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(t=[$l(pn([new jl(3,"absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"),new jl(2,s),new jl(4,"transition-opacity ease-in duration-100"),new jl(5,"opacity-0"),new jl(6,"opacity-90"),new jl(7,"transition-opacity ease-out duration-500"),new jl(8,"opacity-90"),new jl(9,"opacity-0"),new jl(10,[Ct("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})])])),Ct("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",co.Children.toArray(Array.from(t))]),["onClick",e=>{navigator.clipboard.writeText(r),u(!0)}]])))],["children",co.Children.toArray(Array.from(n))])])))}function ql(e,n){let t;const r=pn([e,Ct("div",E(pn([["className","mt-2 border-b border-gray-200"],(t=[Ct("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:co.Children.toArray(Array.from(n))})],["children",co.Children.toArray(Array.from(t))])])))]);return Ct("div",{children:co.Children.toArray(Array.from(r))})}function Zl(e){let n,t,r,o,i,s;return ql(Wl("Partner Information",void 0),pn([(n=["ID",Fo(e.StreamId)],Ct(Vl,{label:n[0],value:n[1]})),(t=["Name",ri(e.Name)],zl(t[0],t[1])),(r=["Contact",`${ii(e.ContactDetails.FirstName)} ${si(e.ContactDetails.LastName)}`],zl(r[0],r[1])),(o=["Phone",ci(e.ContactDetails.MobilePhone)],zl(o[0],o[1])),(i=["Website",oi(e.Website)],zl(i[0],i[1])),(s=["Notes",re((u=e.Notes,null!=u?u.fields[0]:void 0),"")],zl(s[0],s[1]))]));var u}class Jl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory"]}}class Kl extends P{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Yl extends P{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Xl extends P{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Ql extends P{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function ef(e){let n,t,r,o,i,s;return ha(1===e.tag?(n=e.fields[0],pn([da("Details",yi($i(new Hi(1,n.partnerId)),1)),da("Accounts",void 0),da("Super",yi($i(new Hi(4,n.partnerId)),1)),da("Benefits",yi($i(new Hi(5,n.partnerId)),1)),da("Bank Details",yi($i(new Hi(6,n.partnerId)),1)),da("Directory",yi($i(new Hi(2,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,pn([da("Details",yi($i(new Hi(1,t)),1)),da("Accounts",yi($i(new Hi(3,t)),1)),da("Super",void 0),da("Benefits",yi($i(new Hi(5,t)),1)),da("Bank Details",yi($i(new Hi(6,t)),1)),da("Directory",yi($i(new Hi(2,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,pn([da("Details",yi($i(new Hi(1,r)),1)),da("Accounts",yi($i(new Hi(3,r)),1)),da("Super",yi($i(new Hi(4,r)),1)),da("Benefits",void 0),da("Bank Details",yi($i(new Hi(6,r)),1)),da("Directory",yi($i(new Hi(2,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,pn([da("Details",yi($i(new Hi(1,o)),1)),da("Accounts",yi($i(new Hi(3,o)),1)),da("Super",yi($i(new Hi(4,o)),1)),da("Benefits",yi($i(new Hi(5,o)),1)),da("Bank Details",void 0),da("Directory",yi($i(new Hi(2,o)),1))])):5===e.tag?(i=e.fields[0].PartnerId,pn([da("Details",yi($i(new Hi(1,i)),1)),da("Accounts",yi($i(new Hi(3,i)),1)),da("Super",yi($i(new Hi(4,i)),1)),da("Benefits",yi($i(new Hi(5,i)),1)),da("Bank Details",yi($i(new Hi(6,i)),1)),da("Directory",void 0)])):(s=e.fields[0],pn([da("Details",void 0),da("Accounts",yi($i(new Hi(3,Z(Fo(s.StreamId)))),1)),da("Super",yi($i(new Hi(4,Z(Fo(s.StreamId)))),1)),da("Benefits",yi($i(new Hi(5,Z(Fo(s.StreamId)))),1)),da("Bank Details",yi($i(new Hi(6,Z(Fo(s.StreamId)))),1)),da("Directory",yi($i(new Hi(2,Z(Fo(s.StreamId)))),1))])))}function nf(e){switch(e.tag){case 1:{const n=e.fields[0];return Ct(za,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return Ct(qa,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return Ct(Ja,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return Ct(Ya,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return Ct(Qa,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return Ct(Zl,e.fields[0])}}function tf(e){let n;const t=e.mode;return Ct("div",E(rn((n=[ef(t),nf(t)],["children",co.Children.toArray(Array.from(n))]))))}class rf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function of(e){const n=Bn((e=>e),[new rf(1,e.accessToken),new rf(0,e.backendUrl),oe((e=>new rf(2,Y(e))),e.accountId)]);return Ct("superhero-salpac-profile-admin",qn(n,1))}function sf(e){let n,t,r,o,i,s,u;return ql(Wl("Account Information",void 0),pn([(n=["ID",e.StreamId],Ct(Vl,{label:n[0],value:n[1]})),(t=["Name",e.Name],Ct(Vl,{label:t[0],value:t[1]})),(r=["External ID",re(e.ExternalId,"")],zl(r[0],r[1])),(o=["Channel ID",re(e.ChannelId,"")],zl(o[0],o[1])),(i=["Contact",`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`],zl(i[0],i[1])),(s=["Phone",e.ContactDetails.MobilePhone],zl(s[0],s[1])),(u=["Email",e.ContactDetails.Email],zl(u[0],u[1]))]))}function uf(e){let n,t,r,o,i,s,u;if(null==e)return null;{const c=e;return ql(Wl("Legal Entity",void 0),pn([(n=["Business Name",c.BusinessName],zl(n[0],n[1])),(t=["Business Number",c.BusinessNumber],zl(t[0],t[1])),(r=["Address Line 1",c.Address1],zl(r[0],r[1])),(o=["Address Line 2",re(c.Address2,"")],zl(o[0],o[1])),(i=["City",c.City],zl(i[0],i[1])),(s=["State",re(c.State,"")],zl(s[0],s[1])),(u=["Postcode",c.Postcode],zl(u[0],u[1]))]))}}function cf(e){let n;if(null==e)return null;{const t=e;return ql(Wl("Legal Entity",void 0),rn((n=["Notes",t],zl(n[0],n[1]))))}}function af(e){const n=pn([sf(e),uf(e.LegalEntity),cf(e.Notes)]);return Ct("div",{children:co.Children.toArray(Array.from(n))})}class lf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","ProfilesDirectory","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration"]}}function ff(e,n,t){let r,o,i,s,u,c,a,l,f,d,h,p,m,g,w,_,y,v,b,C,x,S,E,k,I,A,N,T,D,P;const O=[e,n];return ha(1===t.tag?pn([da("Details",yi($i((r=O,new Hi(7,r[0],r[1]))),1)),da("Directory",void 0),da("Super",yi($i((o=O,new Hi(9,o[0],o[1]))),1)),da("Benefits",yi($i((i=O,new Hi(10,i[0],i[1]))),1)),da("Bank Details",yi($i((s=O,new Hi(11,s[0],s[1]))),1)),da("Salary Packaging",yi($i((u=O,new Hi(12,u[0],u[1]))),1))]):2===t.tag?pn([da("Details",yi($i((c=O,new Hi(7,c[0],c[1]))),1)),da("Directory",yi($i((a=O,new Hi(8,a[0],a[1]))),1)),da("Super",void 0),da("Benefits",yi($i((l=O,new Hi(10,l[0],l[1]))),1)),da("Bank Details",yi($i((f=O,new Hi(11,f[0],f[1]))),1)),da("Salary Packaging",yi($i((d=O,new Hi(12,d[0],d[1]))),1))]):3===t.tag?pn([da("Details",yi($i((h=O,new Hi(7,h[0],h[1]))),1)),da("Directory",yi($i((p=O,new Hi(8,p[0],p[1]))),1)),da("Super",yi($i((m=O,new Hi(9,m[0],m[1]))),1)),da("Benefits",void 0),da("Bank Details",yi($i((g=O,new Hi(11,g[0],g[1]))),1)),da("Salary Packaging",yi($i((w=O,new Hi(12,w[0],w[1]))),1))]):4===t.tag?pn([da("Details",yi($i((_=O,new Hi(7,_[0],_[1]))),1)),da("Directory",yi($i((y=O,new Hi(8,y[0],y[1]))),1)),da("Super",yi($i((v=O,new Hi(9,v[0],v[1]))),1)),da("Benefits",yi($i((b=O,new Hi(10,b[0],b[1]))),1)),da("Bank Details",void 0),da("Salary Packaging",yi($i((C=O,new Hi(12,C[0],C[1]))),1))]):5===t.tag?pn([da("Details",yi($i((x=O,new Hi(7,x[0],x[1]))),1)),da("Directory",yi($i((S=O,new Hi(8,S[0],S[1]))),1)),da("Super",yi($i((E=O,new Hi(9,E[0],E[1]))),1)),da("Benefits",yi($i((k=O,new Hi(10,k[0],k[1]))),1)),da("Bank Details",yi($i((I=O,new Hi(11,I[0],I[1]))),1)),da("Salary Packaging",void 0)]):pn([da("Details",void 0),da("Directory",yi($i((A=O,new Hi(8,A[0],A[1]))),1)),da("Super",yi($i((N=O,new Hi(9,N[0],N[1]))),1)),da("Benefits",yi($i((T=O,new Hi(10,T[0],T[1]))),1)),da("Bank Details",yi($i((D=O,new Hi(11,D[0],D[1]))),1)),da("Salary Packaging",yi($i((P=O,new Hi(12,P[0],P[1]))),1))]))}function df(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return Ct(Qa,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return Ct(qa,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return Ct(Ja,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 4:{const n=e.accountDetails;return Ct(Ya,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 5:return Ct(of,{accountId:e.accountDetails[1],backendUrl:e.backendUrl,accessToken:e.accessToken});default:{let e,n,r;switch(0===t.tag||1===t.tag?e=2:3===t.tag?(e=3,r=t.fields[0]):0===t.fields[0].tag?(e=0,n=t.fields[0].fields[0]):e=1,e){case 0:return Ct(af,n);case 1:return Ct($a,{error:"There was an error retrieving account "});case 2:return Ct(Wa,null);case 3:return Ct($a,{error:T(r)})}}}}function hf(e){let n,t;const r=e.account,o=e.mode,i=e.props;return Ct("div",E(rn((n=[(t=i.accountDetails,ff(t[0],t[1],o)),df(i,o,r)],["children",co.Children.toArray(Array.from(n))]))))}function pf(e){const n=(t=e=>ri(e.Name).toLocaleLowerCase(),r=e.partnerList,o={Compare:b},function(e,n){const t=an(n);return t.sort(e),pn(t)}(((e,n)=>o.Compare(t(e),t(n))),r));var t,r,o;const i=xo(n),s=xo(""),u=pn([Ia("ID"),Ia("Name"),Ia("Contact"),Ia("Phone"),Ia("Website")]),c=pn([ya(s[0],"Partner ID or Name",(e=>{s[1](e),i[1](function(e,n){return function(e,n){const t=Je(),r=ln(((n,t)=>{if(e(t)){const e=new qe(t,void 0);return n.tail=e,e}return n}),t,n),o=Je();return r.tail=o,en(t)}((n=>{const t=e.toLocaleLowerCase();return Fo(n.StreamId).toLocaleLowerCase().indexOf(t)>=0||ri(n.Name).toLocaleLowerCase().indexOf(t)>=0}),n)}(e,n))}),(()=>{})),Ta(u,wn((e=>{let n;const t=Fo(e.StreamId);return pn([(n=[yi($i(new Hi(1,Z(t))),1),t],Aa(n[0],n[1])),Na(["text-gray-500"],ri(e.Name)),Na(["text-gray-500"],`${ii(e.ContactDetails.FirstName)} ${si(e.ContactDetails.LastName)}`),Na(["text-gray-500"],ci(e.ContactDetails.MobilePhone)),Na(["text-gray-500"],oi(e.Website))])}),i[0]))]);return Ct("div",{children:co.Children.toArray(Array.from(c))})}function mf(){return(mf=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function gf(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return qt(n,t)}function wf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Ct(gf,mf({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[_f(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),a=u[i].slot;a?o[a]=Ct(bf,{name:a},c):r[i]=c}var l=t?Ct(bf,null,r):r;return Ct(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Vt:zt)(this._vdom,this._root)}function _f(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function yf(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[_f(e)]=t,this._vdom=qt(this._vdom,r),zt(this._vdom,this._root)}}function vf(){zt(this._vdom=null,this._root)}function bf(e,n){var t=this;return Ct("slot",mf({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}class Cf extends P{constructor(e,n,t){super(),this.Partners=e,this.Accounts=n,this.CurrentPage=t}}class xf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function Sf(){const e=ji(bi(window.location.hash,1)),n=13===e.tag?Wi(new Hi(0)):Ji();return[new Cf(new Uo(0),new Kn([],{Equals:y,GetHashCode:g}),e),n]}function Ef(e){let n,t;const r=is(Sf,((n,t)=>function(e,n,t){switch(n.tag){case 1:{const r=n.fields[0];return[t,Yi(e,r,(e=>new xf(2,r,new Uo(2,new st(0,e)))),(e=>new xf(2,r,new Uo(2,new st(1,"Failed to retrieve account name")))))]}case 2:return[new Cf(t.Partners,(r=t.Accounts,o=n.fields[0],i=n.fields[1],function(e,n,t){if(e.has(n))throw new Error("An item with the same key has already been added. Key: "+n);e.set(n,t)}(r,o,i),r),t.CurrentPage),Ji()];case 0:{const e=n.fields[0];return 13===e.tag?[t,Wi(e)]:[new Cf(t.Partners,t.Accounts,e),Ji()]}default:return[new Cf(n.fields[0],t.Accounts,t.CurrentPage),Ji()]}var r,o,i}((n=>{const t=function(e){const n=function(e){return[e.fields[0],e.fields[1]]}(e);return[n[0],n[1]]}(n);return function(e,n,t,r){const o=q(t),i=Y(r);return Ao.Delay((()=>{let t;const r=na(n,Vs(new ss(0),zs((t=ea(e),`${t}/partners/${o}/accounts/${i}`))));return Ao.Bind(r,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=Ac(I(2,Zc($o("Dto.AdminApi.Account",[],Kc,(()=>[["StreamId",qo],["PartnerId",qo],["Name",qo],["Website",qo],["ContactDetails",li()],["Notes",Wo(qo)],["LegalEntity",Wo($o("Dto.Primitives.LegalEntity",[],hi,(()=>[["BusinessName",qo],["BusinessNumber",qo],["Address1",qo],["Address2",Wo(qo)],["City",qo],["Postcode",qo],["State",Wo(qo)],["Phone",qo],["CountryCode",Wo(qo)]])))],["ExternalId",Wo(qo)],["ChannelId",Wo(qo)]])),new Ks(1),void 0)),e.responseText);return Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}(e.backendUrl,e.accessToken,t[0],t[1])}),n,t)),[]),o=r[0],i=r[1];go(Lo((()=>ta(e.backendUrl,e.accessToken)),(e=>{i(new xf(3,e))})));const s=e=>{let n;const t=o.Partners;return 0===t.tag?new Uo(0):1===t.tag?new Uo(1):3===t.tag?new Uo(3,t.fields[0]):1===t.fields[0].tag?new Uo(2,new st(1,Ue(Oe("Unknown partner: %A%P()",[e])))):new Uo(2,(n=Ri(t.fields[0].fields[0],e),null==n?new st(1,Ue(Oe("Unknown partner: %A%P()",[e]))):new st(0,n.Name)))},u=e=>Ct(aa,{account:void 0,page:o.CurrentPage,partner:{Id:e,Name:s(e)}}),c=(e,n)=>{const t=Ct(tf,{mode:n});return[u(e),t]},a=n=>{const t=n[0],r=n[1];return n=>{let u,c,a,l,f;const d=[t,r];var h,p;let m;return f=new Bi(0,d[0],d[1]),h=function(e,n){let t,r=null;return t=[Zn(e,n,new O((()=>r),(e=>{r=e}))),r],t[0]?t[1]:void 0}(o.Accounts,f),p=()=>(i(new xf(1,f)),new Uo(1)),l=null!=h?ne(h):p(),m=Ct(hf,{props:{accessToken:e.accessToken,accountDetails:[t,r],backendUrl:e.backendUrl},mode:n,account:l}),[(u=[t,r,l],c=u[0],Ct(aa,(a={Id:c,Name:s(c)},{account:{Id:u[1],Name:zi((e=>B(e.Name)),u[2])},page:o.CurrentPage,partner:a}))),m]}};let l;const f=o.Partners;let d,h,p,m;switch(1===f.tag?d=0:2===f.tag?1===f.fields[0].tag?(d=2,p=f.fields[0].fields[0]):(d=1,h=f.fields[0].fields[0]):3===f.tag?(d=3,m=f.fields[0]):d=0,d){case 0:l=[Ct(Wa,null),Ct(Wa,null)];break;case 1:{const t=o.CurrentPage;switch(t.tag){case 1:{const e=t.fields[0],r=u(e),o=Ri(h,e);l=null==o?[r,Ct($a,{error:"Unknown Partner"})]:[r,(n=new Jl(0,o),Ct(tf,{mode:n}))];break}case 3:{const n=t.fields[0];l=c(n,new Jl(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:n}));break}case 4:{const n=t.fields[0];l=c(n,new Jl(2,new Kl(n,e.backendUrl,e.accessToken)));break}case 5:{const n=t.fields[0];l=c(n,new Jl(3,new Yl(n,e.backendUrl,e.accessToken)));break}case 6:{const n=t.fields[0];l=c(n,new Jl(4,new Xl(n,e.backendUrl,e.accessToken)));break}case 2:{const n=t.fields[0];l=c(n,new Jl(5,new Ql(n,e.backendUrl,e.accessToken)));break}case 7:l=a([t.fields[0],t.fields[1]])(new lf(0));break;case 8:l=a([t.fields[0],t.fields[1]])(new lf(1));break;case 9:l=a([t.fields[0],t.fields[1]])(new lf(2));break;case 10:l=a([t.fields[0],t.fields[1]])(new lf(3));break;case 11:l=a([t.fields[0],t.fields[1]])(new lf(4));break;case 12:l=a([t.fields[0],t.fields[1]])(new lf(5));break;default:l=[Ct(aa,{account:void 0,page:o.CurrentPage,partner:void 0}),Ct(pf,{partnerList:h})]}break}case 2:l=[Ct(aa,{account:void 0,page:o.CurrentPage,partner:void 0}),Ct($a,{error:p})];break;case 3:l=[Ct(aa,{account:void 0,page:o.CurrentPage,partner:void 0}),(t=T(m),Ct($a,{error:t}))]}return Ci({onUrlChanged:e=>{i(new xf(0,ji(e)))},application:Ct(St,{},l[0],l[1])})}!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=wf,o.prototype.attributeChangedCallback=yf,o.prototype.disconnectedCallback=vf,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-account-registry",o)}((e=>Ct(Ef,e)))})();
|
|
1
|
+
(function(){"use strict";var Us=document.createElement("style");Us.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-8{bottom:2rem}.order-none{order:0}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.w-5{width:1.25rem}.w-\\[45px\\]{width:45px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-md{max-width:28rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.group:hover .group-hover\\:visible{visibility:visible}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:grid{display:grid}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
2
|
+
`,document.head.appendChild(Us);function tt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Jc(e){return e!=null&&typeof e.GetEnumerator=="function"}function Yc(e){return e!=null&&typeof e.CompareTo=="function"}function Xc(e){return e!=null&&typeof e.Equals=="function"}function Hs(e){return e!=null&&typeof e.GetHashCode=="function"}function uo(e){return e!=null&&typeof e.Dispose=="function"}function q(e){uo(e)&&e.Dispose()}function ne(){return null}function ur(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Qc{constructor(t){this.iter=t,this.current=ne()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function re(e){return Jc(e)?e.GetEnumerator():new Qc(e[Symbol.iterator]())}function Dn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function ee(e,t){return e.toString(10).padStart(t,"0")}function js(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function eu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Vt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class at{static id(t){return at.idMap.has(t)||at.idMap.set(t,++at.count),at.idMap.get(t)}}at.idMap=new WeakMap,at.count=0;function fr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function qe(e){return e*2654435761|0}function zs(e){return fr(e.toString(32))}function Pn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function tu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"bigint":return zs(e);case"string":return fr(e);default:return qe(at.id(e))}}function nu(e){return Hs(e)?e.GetHashCode():tu(e)}function ru(e){return e.getTime()}function ou(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=lt(e[r]);return Pn(n)}function lt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"bigint":return zs(e);case"string":return fr(e);default:{if(Hs(e))return e.GetHashCode();if(tt(e))return ou(e);if(e instanceof Date)return ru(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>lt(r));return Pn(n)}else return qe(at.id(e))}}}function su(e){return nu(e)}function fo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Gs(e,t){return fo(e,t,ge)}function iu(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]||!ge(e[n[o]],t[r[o]]))return!1;return!0}function ge(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Xc(e)?e.Equals(t):tt(e)?tt(t)&&Gs(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ws(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&iu(e,t)}function Ws(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+js(e),r=t.getTime()+js(t)),n===r?0:n<r?-1:1}function dr(e,t){return e===t?0:e<t?-1:1}function au(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function qs(e,t){return au(e,t,ze)}function lu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=ze(e[i],t[i]),s!==0)return s}return 0}function ze(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Yc(e)?e.CompareTo(t):tt(e)?tt(t)?qs(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ws(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?lu(e,t):-1}function M(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function cu(e){tt(e)?e.splice(0):e.clear()}const hr=new WeakMap;function oe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return hr.set(t,e),t}function Nt(e){return hr.get(e)??(t=>n=>e(t,n))}function ho(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return hr.set(t,e),t}function po(e){return hr.get(e)??(t=>n=>r=>e(t,n,r))}function uu(e){let t=0,n="[";for(const r of e){if(t===0)n+=Se(r);else if(t===100){n+="; ...";break}else n+="; "+Se(r);t++}return n+"]"}function Se(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return uu(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Se(s,t+1)).join(`
|
|
3
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function fu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Se(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Se(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class O{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return fu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>lt(n));return t.splice(0,0,qe(this.tag)),Pn(t)}Equals(t){return this===t?!0:ur(this,t)&&this.tag===t.tag?Gs(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ur(this,t)?this.tag===t.tag?qs(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function du(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function hu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Se(n)).join(`
|
|
4
|
+
`)+" }"}function pu(e){const t=Object.values(e).map(n=>lt(n));return Pn(t)}function mu(e,t){if(e===t)return!0;if(ur(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ge(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function gu(e,t){if(e===t)return 0;if(ur(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ze(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ie{toJSON(){return du(this)}toString(){return hu(this)}GetHashCode(){return pu(this)}Equals(t){return mu(this,t)}CompareTo(t){return gu(this,t)}}class Me{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class _u{constructor(t){this.message=t}}function wu(e){return e instanceof _u||e instanceof Error}function yu(e){return e instanceof Promise}function pr(e){return wu(e)||yu(e)?e:new Error(String(e))}const sn=Symbol("numeric");function Zs(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[sn])}function bu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function mo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[sn]().multiply(t)}function mr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[sn]().toFixed(t)}function gr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[sn]().toPrecision(t)}function _r(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[sn]().toExponential(t)}function wr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[sn]().toHex()}class ct{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return we(this)}GetHashCode(){return Ks(this)}Equals(t){return go(this,t)}}function ut(e){return e.generics!=null?e.generics:[]}function Ks(e){const t=fr(e.fullname),n=ut(e).map(Ks);return Pn([t,...n])}function go(e,t){return e.fullname===""?t.fullname===""&&fo(br(e),br(t),([n,r],[o,s])=>n===o&&go(r,s)):e.fullname===t.fullname&&fo(ut(e),ut(t),go)}function an(e,t,n,r){return new ct(e,t,n,void 0,r)}function Fe(e){return new ct("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Js(e){return new ct("Microsoft.FSharp.Collections.FSharpList`1",[e])}const vu=new ct("System.Object"),H=new ct("System.String");function _o(e){if(Array.isArray(e))return e[0];if(e instanceof ct){const t=yr(e);if(t!=null)return _o(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function we(e){const t=yr(e);return t!=null?we(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>we(n)).join(",")+"]"}function Cu(e){return yr(e)!=null}function yr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function xu(e){return e.generics!=null&&e.generics.length>0}function Ys(e){return e.enumCases!=null&&e.enumCases.length>0}function ku(e){return e.generics==null?e:new ct(e.fullname,e.generics.map(()=>vu))}function Su(e){var t;return(t=e.generics)==null?void 0:t[0]}function ln(e){if(Ys(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Eu(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function cn(e,t){const n=parseInt(t,10);return Eu(e,isNaN(n)?t:n)[1]}function Au(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function br(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Iu(e){if(Xs(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Tu(e){return e instanceof ct?e.cases!=null:e instanceof O}function $u(e){return e instanceof ct?e.fields!=null:e instanceof ie}function Xs(e){return e.fullname.startsWith("System.Tuple")}function Nu(e){return e.fields==null?[]:e.fields}function Mu(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Du(e,t){const n=br(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function Pu(e,t){return e}const Ou=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ru=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Fu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Le(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Qs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Vu(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function wo(e,t,n){let r=0,o=0,s="";const i=n?On(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Le(t,r,"d"),r+=o,o){case 1:s+=ri(i);break;case 2:s+=ee(ri(i),2);break;case 3:s+=Ou[ii(i)];break;case 4:s+=Ru[ii(i)];break}break;case"f":if(o=Le(t,r,"f"),r+=o,o<=3){const w=10**(3-o);s+=ee(Math.floor(xr(i)/w),o)}else o<=7&&(s+=(""+xr(i)).padEnd(o,"0"));break;case"F":if(o=Le(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(xr(i)/w);y!=0&&(s+=ee(y,o))}else if(o<=7){const w=xr(i);w!=0&&(s+=ee(w,3))}break;case"g":o=Le(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Le(t,r,"h"),r+=o,o){case 1:s+=Cr(i)%12;break;case 2:s+=ee(Cr(i)%12,2);break}break;case"H":switch(o=Le(t,r,"H"),r+=o,o){case 1:s+=Cr(i);break;case 2:s+=ee(Cr(i),2);break}break;case"K":switch(o=Le(t,r,"K"),r+=o,o){case 1:switch(ei(i)){case 1:s+="Z";break;case 2:s+=un(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Le(t,r,"m"),r+=o,o){case 1:s+=oi(i);break;case 2:s+=ee(oi(i),2);break}break;case"M":switch(o=Le(t,r,"M"),r+=o,o){case 1:s+=kr(i);break;case 2:s+=ee(kr(i),2);break;case 3:s+=Fu[kr(i)-1];break;case 4:s+=Lu[kr(i)-1];break}break;case"s":switch(o=Le(t,r,"s"),r+=o,o){case 1:s+=si(i);break;case 2:s+=ee(si(i),2);break}break;case"t":switch(o=Le(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Le(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=ee(i.getFullYear()%100,2);break;case 3:s+=ee(i.getFullYear(),3);break;case 4:s+=ee(i.getFullYear(),4);break;case 5:s+=ee(i.getFullYear(),5);break}break;case"z":o=Le(t,r,"z"),r+=o;let l="";switch(ei(i)){case 1:l="+00:00";break;case 2:l=un(i.getTimezoneOffset()*-6e4);break;case 0:l=un(Zu(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${f}`;break;case 2:s+=`${c}${ee(f,2)}`;break;default:s+=`${c}${ee(f,2)}:${ee(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[p,d]=Vu(t,r);s+=p,r+=d;break;case"%":const m=Qs(t,r);if(m>=0&&m!==37)r+=2,s+=wo(i,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const b=Qs(t,r);if(b>=0)r+=2,s+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function ei(e){return e.kind||0}function un(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ee(n,2)+":"+ee(r,2)}function vr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Bu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ee(e.getFullYear(),4)+"-"+ee(e.getMonth()+1,2)+"-"+ee(e.getDate(),2)+"T"+ee(e.getHours(),2)+":"+ee(e.getMinutes(),2)+":"+ee(e.getSeconds(),2)+"."+ee(e.getMilliseconds(),3)+(n?un(e.getTimezoneOffset()*-6e4):"")}}function Uu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+un(t)}function Hu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+un(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return vr(n,"first");case"T":case"t":return vr(n,"second");case"O":case"o":return Uu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return wo(n,t,!0)}function ju(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?vr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?vr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Bu(e,n);default:throw new Error("Unrecognized Date print format")}else return wo(e,t,n)}function ti(e,t,n){return e.offset!=null?Hu(e,t):ju(e,t)}function On(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function zu(){return On(-621355968e5,1)}function ni(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Gu(e,t=!1){const[n,r]=ni(e),o=r!=null?t&&r==="Z"?1:2:0;return On(n.getTime(),o)}function Wu(e,t){try{return t.contents=Gu(e),!0}catch{return!1}}function qu(e){return e.kind===1?e:On(e.getTime(),1)}function Zu(e){return e.kind===2?e:On(e.getTime(),2)}function ri(e){return e.kind===1?e.getUTCDate():e.getDate()}function Cr(e){return e.kind===1?e.getUTCHours():e.getHours()}function xr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function oi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function kr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function si(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ii(e){return e.kind===1?e.getUTCDay():e.getDay()}function ai(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function yo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ku(e,t,n=0){return e.lastIndex=n,e.exec(t)}function li(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function Ju(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=ai(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),l=li(e,a),c=li.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Rn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Fn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Yu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ci(e,t){return bu(e,t)<0}function ft(e){return{input:e,cont:ef(e)}}function ui(e,t){let n=0,r=0,o="";Fn.lastIndex=0;let s=Fn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,f]=s;r=Fn.lastIndex,o+=fi(t[n++],a,l,c,f),Fn.lastIndex=r-1,s=Fn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function bo(e,t){return typeof t=="string"?e(t):t.cont(e)}function Xu(e){return bo(t=>console.log(t),e)}function dt(e){return bo(t=>t,e)}function Qu(e){return bo(t=>{throw new Error(t)},e)}function fi(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Zs(e))switch(o.toLowerCase()!=="x"&&(ci(e,0)?(e=mo(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=mr(e,r);break;case"g":case"G":e=r!=null?gr(e,r):gr(e);break;case"e":case"E":e=r!=null?_r(e,r):_r(e);break;case"x":e=wr(e);break;case"X":e=wr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ti(e):e=Se(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Ln(e,n-s.length,l,a),e=s+e):e=Ln(s+e,n,l,a)}return e}function di(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,f,u,p,d]=l[0];let m=u;if(o>=0)m=o,o=-1;else if(m==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=fi(c,f,m,p,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):di(e,a,l,i,o)}}function ef(e){return t=>{Rn.lastIndex=0;const n=[],r=[];let o=0,s=Rn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Rn.lastIndex,Rn.lastIndex-=1,s=Rn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),di(t,n,r))}}function hi(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Yu,(r,o,s,i,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(Zs(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=mr(c,a);break;case"g":case"G":c=a!=null?gr(c,a):gr(c);break;case"e":case"E":c=a!=null?_r(c,a):_r(c);break;case"p":case"P":a=a??2,c=mr(mo(c,100),a)+" %";break;case"d":case"D":c=a!=null?vo(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?vo(wr(c),a,"0"):wr(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,p,d)=>{ci(c,0)&&(c=mo(c,-1),f="-"),d=d==null?"":d.substring(1),c=mr(c,Math.max(d.length,0));let[m,b]=c.split(".");b||(b="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;m=vo(m,w,"0");const y=d.replace(/#+$/,"").length;if(y>b.length?b=nf(b,y,"0"):y<b.length&&(b=b.substring(0,y)+b.substring(y).replace(/0+$/,"")),p.indexOf(",")>0){const x=m.length%3,S=Math.floor(m.length/3);let P=x>0?m.substr(0,x)+(S>0?",":""):"";for(let W=0;W<S;W++)P+=m.substr(x+W*3,3)+(W<S-1?",":"");m=P}return b.length>0?m+"."+b:m}),c=f+c}}else c instanceof Date?c=ti(c,l||i):c=Se(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Ln(String(c),Math.abs(s)," ",s<0)),c})}function tf(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function pi(e){return typeof e!="string"||e.length===0}function mi(e){return typeof e!="string"||/^\s*$/.test(e)}function z(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Ln(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function vo(e,t,n){return Ln(e,t,n)}function nf(e,t,n){return Ln(e,t,n,!0)}function gi(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(yo),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),l=!1}else{const u=s?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),l=!1):i.push(u)),c=a.lastIndex}}while(l);return i}function rf(e,...t){if(t.length===0)return e.trim();const n="["+yo(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function of(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+yo(t.join(""))+"]+$"),"")}function _i(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Bt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return lt(this.value)}Equals(t){return t==null?!1:ge(this.value,t instanceof Bt?t.value:t)}CompareTo(t){return t==null?1:ze(this.value,t instanceof Bt?t.value:t)}}function k(e){if(e==null)throw new Error("Option has no value");return e instanceof Bt?e.value:e}function Co(e){return e instanceof Bt?e.value:e}function be(e){return e==null||e instanceof Bt?new Bt(e):e}function wi(e){return e==null?[]:[k(e)]}function Ze(e,t){return e!=null?k(e):t}function sf(e,t){return e!=null?k(e):t()}function ht(e,t){return t!=null?be(e(k(t))):void 0}const yi="Collection was empty.";function bi(e,t){return new Array(t)}function vi(e,t){return e>t?e:t}function xo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Vn(e,t,n){const r=t.length|0,o=bi(n,r);for(let s=0;s<=r-1;s++)pt(o,s,e(ue(s,t)));return o}function af(e,t){const n=bi(t,1);return pt(n,0,e),n}function lf(e){return e.slice().reverse()}function cf(e,t){return t.find(e)}function uf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ue(o,t));if(s!=null){const i=k(s);r.push(i)}}return ge(n,ne())?r:Vn(o=>o,r,n)}function Sr(e,t,n){const r=e;return n.reduce(r,t)}function ff(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function Ci(e,t,n){return t==null}function ue(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function pt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function xi(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Ee extends ie{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+z("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=k(l),u=k(c);if(ge(i.head,a.head)){o=f,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,l=s,c=l.tail;if(c!=null){const f=k(c);if(i>18)return a|0;r=i+1,o=(a<<1)+lt(l.head)+631*i,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=k(l),u=k(c),p=ze(i.head,a.head)|0;if(p===0){o=f,s=u;continue e}else return p|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return hf(this)}[Symbol.iterator](){return Dn(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return re(this)}}class df{constructor(t){this.xs=t,this.it=this.xs,this.current=ne()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=k(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ne()}Dispose(){}}function hf(e){return new df(e)}function fe(){return new Ee(ne(),void 0)}function Bn(e,t){return new Ee(e,t)}function Mt(e){return e.tail==null}function ki(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=k(i);continue e}else return o|0}})(0,e)|0}function Ut(e){if(e.tail!=null)return e.head;throw new Error(yi+"\\nParameter name: list")}function ve(e){const t=e.tail;if(t!=null)return k(t);throw new Error(yi+"\\nParameter name: list")}function ce(){return fe()}function Ve(e,t){return Bn(e,t)}function j(e){return Bn(e,fe())}function D(e){return Mt(e)}function fn(e){return ki(e)}function T(e){return Ut(e)}function _(e){return ve(e)}function Ht(e){const t=ki(e)|0,n=xo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!Mt(a)){pt(n,i,Ut(a)),o=i+1,s=ve(a);continue e}break}})(0,e),n}function mt(e,t,n){let r=t,o=n;for(;!Mt(o);)r=e(r,T(o)),o=ve(o);return r}function Er(e){return mt((t,n)=>Bn(n,t),fe(),e)}function pf(e,t,n){return xi(e,Ht(t),n)}function mf(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(Mt(c))return l;o=a+1,s=e(a,l,Ut(c)),i=ve(c);continue e}})(0,t,n)}function Ar(e,t){mt((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Bn(ue(r,e),n);return n}function v(e){return ae(e,fe())}function gf(e){let t,n;if(tt(e))return v(e);if(e instanceof Ee)return e;{const r=fe();let o=r;const s=re(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Ee(l,void 0),t.tail=n,n)}}finally{q(s)}const i=o,a=fe();return i.tail=a,ve(r)}}function Ae(e,t){return mt((n,r)=>Bn(r,n),t,Er(e))}function _f(e,t){let n,r;const o=fe();let s=o,i=t;for(;!Mt(i);){let c=e(Ut(i));for(;!Mt(c);)s=(n=s,r=new Ee(Ut(c),void 0),n.tail=r,r),c=ve(c);i=ve(i)}const a=s,l=fe();return a.tail=l,ve(o)}function wf(e,t){const n=fe(),r=mf((s,i,a)=>{const l=new Ee(e(s,a),void 0);return i.tail=l,l},n,t),o=fe();return r.tail=o,ve(n)}function Un(e,t){const n=fe(),r=mt((s,i)=>{const a=new Ee(e(i),void 0);return s.tail=a,a},n,t),o=fe();return r.tail=o,ve(n)}function yf(e,t){return(r=>{e:for(;;){const o=r;if(Mt(o))return;{const s=e(Ut(o));if(s==null){r=ve(o);continue e}else return s}}})(t)}function bf(e,t){return yf(n=>e(n)?be(n):void 0,t)}function vf(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(Mt(i))return;if(s===e)return be(Ut(i));r=s+1,o=ve(i);continue e}})(0,t)}function Si(e,t){const n=fe(),r=mt((s,i)=>{if(e(i)){const a=new Ee(i,void 0);return s.tail=a,a}else return s},n,t),o=fe();return r.tail=o,ve(n)}function Cf(e,t){const n=fe(),r=fe(),o=n,s=mt((l,c)=>{let f,u;const p=l[0],d=l[1];return e(c)?[(f=new Ee(c,void 0),p.tail=f,f),d]:[p,(u=new Ee(c,void 0),d.tail=u,u)]},[o,r],t),i=fe();s[0].tail=i;const a=fe();return s[1].tail=a,[ve(o),ve(r)]}function Ei(e,t){const n=fe(),r=mt((s,i)=>{const a=e(i);if(a==null)return s;{const l=new Ee(k(a),void 0);return s.tail=l,l}},n,t),o=fe();return r.tail=o,ve(n)}function xf(e,t){const n=Ht(t);return n.sort(e),v(n)}function kf(e,t,n){return xf((r,o)=>n.Compare(e(r),e(o)),t)}function Sf(e,t){return v(Vn(v,ff(e,Ht(t))))}function Ef(e){return new h(0,[e])}function Ai(e){return new h(1,[e])}class h extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gt(e,t){return t.tag===0?Ef(e(t.fields[0])):Ai(t.fields[0])}function Af(e,t){return t.tag===0?e(t.fields[0]):Ai(t.fields[0])}class If extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Ii(e){return new If(e)}function ko(e){return e.fields[0]}class Tf extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class $f extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Nf extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class Mf extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class Df extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let Pf=class extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Of extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Rf extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function _t(e){return e.fields[0]}function he(e){return new Rf(e)}function Ti(e){return _t(e)}class Ff extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function wt(e){return e.fields[0]}function Dt(e){return new Ff(e)}function Lf(e){return wt(e)}function Vf(e){throw new Error(e)}const Bf="Enumeration already finished.",Uf="Enumeration has not started. Call MoveNext.",$i="The input sequence has an insufficient number of elements.",Hf="Reset is not supported on this enumerator.";function jf(){throw new Error(Hf)}function So(){throw new Error(Uf)}function Eo(){throw new Error(Bf)}class zf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=re(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Se(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{q(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Dn(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Gf(e){return new zf(e)}class Wf{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){jf()}Dispose(){this.dispose()}}function Ir(e,t,n){return new Wf(e,t,n)}function qf(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=k(n);try{q(a)}finally{n=void 0}}if(t!=null){const a=k(t);try{q(a)}finally{t=void 0}}};return Ir(()=>(r?o&&Eo():So(),s!=null?k(s):Eo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=k(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=be(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{q(u)}finally{n=void 0}}else{const u=k(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),re(a)):(i(),l=!1)}else t=re(e)}return k(l)}},()=>{o||i()})}function Zf(e,t){return Ir(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{q(t)}finally{}})}function Ni(e,t,n){let r=!1,o,s=be(e());const i=()=>{if(s!=null){const l=k(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Ir(()=>(r||So(),o!=null?k(o):Eo()),()=>{if(r||(r=!0),s!=null){const l=k(s);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function Kf(e,t){let n,r=t;return Ir(()=>{if(n!=null){const o=k(n)[0];return k(n)[1],o}else return So()},()=>(n=e(r),n!=null?(k(n)[0],r=k(n)[1],!0):!1),()=>{})}function Jf(e,t){t==null&&Vf(e)}function dn(e){return Gf(e)}function yt(e){return Jf("source",e),re(e)}function R(e){return dn(()=>re(e()))}function Ao(e){return dn(()=>qf(e))}function Yf(e,t){return dn(()=>Kf(e,t))}function Io(){return R(()=>new Array(0))}function V(e){return R(()=>af(e))}function a_(e){return e}function To(e){return e instanceof Ee?Ht(e):Array.from(e)}function Ke(e){return tt(e)?v(e):e instanceof Ee?e:gf(e)}function Mi(e,t,n){return dn(()=>Ni(e,t,n))}function Di(e,t,n){return dn(()=>{let r=-1;return Ni(e,o=>(r=r+1|0,t(r,o)),n)})}function Z(e,t){return Ao([e,t])}function hn(e,t){return Mi(()=>yt(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{q(n)})}function Xf(e,t,n){const r=yt(t);try{const o=yt(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{q(o)}}finally{q(r)}}function pn(e,t,n){const r=yt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function $o(e,t,n){const r=yt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function Hn(e,t){$o((n,r)=>{e(r)},void 0,t)}function Qf(e,t){$o((n,r)=>(e(n,r),n+1|0),0,t)}function de(e,t){return Mi(()=>yt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?be(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{q(n)})}function Pi(e,t){return Di(()=>yt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?be(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{q(n)})}function ed(e){return R(()=>lf(To(e)))}function td(e,t){return dn(()=>{const n=yt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($i+"\\nParameter name: source");return Zf(()=>{},n)}catch(r){throw q(n),r}})}function nd(e,t){return Di(()=>yt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return be(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error($i+"\\nParameter name: source")}else return},n=>{q(n)})}function rd(e,t){return R(()=>Ao(de(e,t)))}const jt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function No(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function od(e,t){switch(t){case jt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case jt.SnakeCase:return No(e,"_");case jt.SnakeCaseAllCaps:return No(e,"_").toUpperCase();case jt.KebabCase:return No(e,"-");case jt.None:default:return e}}function zt(e,t=jt.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,l){i=od(i,a),n[i]=l}for(let i of e){let a=jt.None;if(i==null&&o(i),i instanceof O){const l=i.cases()[i.tag];i=i.fields.length===0?l:[l].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const l=i[1];s(i[0],a,l);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function Oi(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function jn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class sd{constructor(t,n){const r=new Me(ne());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=re(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();Mo(r.contents,s[0],s[1])}}finally{q(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return re(this)}GetEnumerator(){return re(Ao(this.hashMap.values()))}[Symbol.iterator](){return Dn(re(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Mo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Ri(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Tr(this,t[0]);let o;switch(r!=null&&ge(k(r)[1],t[1])?(o=0,k(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Qf((o,s)=>{pt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Fi(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Tr(n,t[0]);return r!=null?(ge(k(r)[1],t[1])&&Do(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Mo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Bi(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Li(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Vi(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return To(R(()=>de(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Do(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Tr(this,t);if(o!=null){const s=k(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return To(R(()=>de(n=>n[1],t)))}get size(){return Fi(this)|0}clear(){Ri(this)}delete(t){return Do(this,t)}entries(){return de(n=>[n[0],n[1]],this)}get(t){return Li(this,t)}has(t){return Bi(this,t)}keys(){return de(n=>n[0],this)}set(t,n){const r=this;return Vi(r,t,n),r}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;Hn(o=>{t(o[1],o[0],r)},r)}}function zn(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=ne();return r=[Oi(e.hashMap,n,new Me(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Tr(e,t){const n=zn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return jn(e.hashMap,n[1])[n[2]];default:return}}function Ri(e){e.hashMap.clear()}function Fi(e){let t=0,n=re(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{q(n)}return t|0}function Li(e,t){const n=Tr(e,t);if(n!=null)return k(n)[1];throw new Error("The item was not found in collection")}function Vi(e,t,n){const r=zn(e,t);r[0]?r[2]>-1?jn(e.hashMap,r[1])[r[2]]=[t,n]:jn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Mo(e,t,n){const r=zn(e,t);if(r[0]){if(r[2]>-1)throw new Error(hi("An item with the same key has already been added. Key: {0}",t));jn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Bi(e,t){const n=zn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Do(e,t){const n=zn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return jn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function id(e){return new Ui(0,[e])}function ad(e){return new Ui(1,[e])}class Ui extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function ld(e){return id(e)}function cd(e){return ad(e)}const ud=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Hi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,fd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function dd(e){function t(r){return r.replace(Hi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ud.test(n))return rf(n,"{","}","(",")");if(Hi.test(n))return t(n);if(fd.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 hd(e,t){try{return t.contents=dd(e),!0}catch{return!1}}class ji extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function nt(e){return e.fields[0]}var Po;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Po||(Po={}));function pd(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function zi(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 md(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function gd(e,t){if(t&Po.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function _d(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||gd(s,t),!md(n).test(i))return pd(o,n)}return null}function wd(e,t,n,r,o){const s=_d(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=zi(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,f]=zi(n,r);if(i>=c&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function mn(e,t,n,r,o){try{return o.contents=wd(e,t,n,r),!0}catch{return!1}}function yd(e,t){const n=Ku(ai(e),t);if(n!=null)return _(Ke(R(()=>de(r=>r||"",n))))}function bd(e){let t;const n=yd(".*?@(.*)",e);switch(n!=null?D(n)?t=1:D(_(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function gn(e,t){return pi(t)?new h(1,[dt(ft("%s cannot be null or empty"))(e)]):new h(0,[t])}function vd(e){const t=bd(e);if(t!=null){const n=t;return new h(0,[n])}else return new h(1,["Email is not in the correct format"])}function Cd(e){const t=gn("Name",e);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[Ii(t.fields[0])])}function $r(e){return ko(e)}function xd(e){const t=gn("Website",e);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new Tf(t.fields[0])])}function Gi(e){return e.fields[0]}function kd(e){const t=gn("FirstName",e);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new $f(t.fields[0])])}function Wi(e){return e.fields[0]}function Sd(e){const t=gn("LastName",e);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new Nf(t.fields[0])])}function qi(e){return e.fields[0]}function Ed(e){let t;const n=gn("Email",e);return t=n.tag===1?new h(1,[n.fields[0]]):vd(n.fields[0]),t.tag===1?new h(1,[t.fields[0]]):new h(0,[new Mf(t.fields[0])])}function Ad(e){const t=gn("MobilePhone",e);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new Df(t.fields[0])])}function Zi(e){return e.fields[0]}class Id extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function Ki(){return an("Dto.Primitives.ContactDetails",[],Id,()=>[["FirstName",H],["LastName",H],["Email",H],["MobilePhone",H]])}function Td(e){const t=kd(e.FirstName);if(t.tag===1)return new h(1,[t.fields[0]]);{const n=Sd(e.LastName);if(n.tag===1)return new h(1,[n.fields[0]]);{const r=Ed(e.Email);if(r.tag===1)return new h(1,[r.fields[0]]);{const o=Ad(e.MobilePhone);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[new Pf(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function $d(e){const t=e;if(t!=null)return new Of(t)}function Nd(e){if(e!=null)return e.fields[0]}function X(e){return _t(e)}function De(e){return wt(e)}class Md extends ie{constructor(t,n,r,o,s,i,a,l,c){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=l,this.CountryCode=c}}function Dd(){return an("Dto.Primitives.LegalEntity",[],Md,()=>[["BusinessName",H],["BusinessNumber",H],["Address1",H],["Address2",Fe(H)],["City",H],["Postcode",H],["State",Fe(H)],["Phone",H],["CountryCode",Fe(H)]])}let Pd=class extends ie{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function Od(){return an("Dto.AdminApi.Partner",[],Pd,()=>[["StreamId",H],["Name",H],["Website",H],["ContactDetails",Ki()],["Notes",Fe(H)]])}class Rd extends ie{constructor(t,n,r,o,s,i,a,l,c){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=l,this.ChannelId=c}}function Fd(){return an("Dto.AdminApi.Account",[],Rd,()=>[["StreamId",H],["PartnerId",H],["Name",H],["Website",H],["ContactDetails",Ki()],["Notes",Fe(H)],["LegalEntity",Fe(Dd())],["ExternalId",Fe(H)],["ChannelId",Fe(H)]])}class Ld extends ie{constructor(t,n,r,o,s,i,a,l,c){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=l,this.ChannelId=c}}function Vd(){return an("Dto.AdminApi.AccountLookupItem",[],Ld,()=>[["AccountId",H],["Name",H],["Contact",H],["ContactMobilePhone",H],["Website",H],["BusinessName",Fe(H)],["BusinessNumber",Fe(H)],["ExternalId",Fe(H)],["ChannelId",Fe(H)]])}class Ji extends ie{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function Bd(){return an("Dto.AdminApi.AccountLookup",[],Ji,()=>[["Accounts",Js(Vd())],["Token",Fe(H)]])}var Gn,U,Yi,Gt,Xi,Qi,Oo,Ro,Fo,Lo,ea,Wn={},ta=[],Ud=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nr=Array.isArray;function bt(e,t){for(var n in t)e[n]=t[n];return e}function na(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Gn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return qn(e,i,r,o,null)}function qn(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Yi,__i:-1,__u:0};return o==null&&U.vnode!=null&&U.vnode(s),s}function ra(){return{current:null}}function Ce(e){return e.children}function Je(e,t){this.props=e,this.context=t}function Wt(e,t){if(t==null)return e.__?Wt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Wt(e):null}function oa(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return oa(e)}}function Vo(e){(!e.__d&&(e.__d=!0)&&Gt.push(e)&&!Mr.__r++||Xi!==U.debounceRendering)&&((Xi=U.debounceRendering)||Qi)(Mr)}function Mr(){var e,t,n,r,o,s,i,a;for(Gt.sort(Oo);e=Gt.shift();)e.__d&&(t=Gt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=bt({},o)).__v=o.__v+1,U.vnode&&U.vnode(r),Bo(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Wt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,ca(i,r,a),r.__e!=s&&oa(r)),Gt.length>t&&Gt.sort(Oo));Mr.__r=0}function sa(e,t,n,r,o,s,i,a,l,c,f){var u,p,d,m,b,w=r&&r.__k||ta,y=t.length;for(n.__d=l,Hd(n,t,w),l=n.__d,u=0;u<y;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(p=d.__i===-1?Wn:w[d.__i]||Wn,d.__i=u,Bo(e,d,p,o,s,i,a,l,c,f),m=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Uo(p.ref,null,d),f.push(d.ref,d.__c||m,d)),b==null&&m!=null&&(b=m),65536&d.__u||p.__k===d.__k?(l&&!l.isConnected&&(l=Wt(p)),l=ia(d,l,e)):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:m&&(l=m.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=b}function Hd(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?qn(null,o,null,null,null):Nr(o)?qn(Ce,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?qn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=jd(o,n,i,f),o.__i=a,s=null,a!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?f>l-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Wt(s)),Ho(s,s,!1),n[i]=null,f--);if(f)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Wt(s)),Ho(s,s))}function ia(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ia(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function vt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nr(e)?e.some(function(n){vt(n,t)}):t.push(e)),t}function jd(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&s===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&s===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&s===l.type)return a;a++}}return-1}function aa(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ud.test(t)?n:n+"px"}function Dr(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||aa(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||aa(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Ro,e.addEventListener(t,s?Lo:Fo,s)):e.removeEventListener(t,s?Lo:Fo,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function la(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ro++;else if(t.t<n.u)return;return n(U.event?U.event(t):t)}}}function Bo(e,t,n,r,o,s,i,a,l,c){var f,u,p,d,m,b,w,y,x,S,P,W,se,me,Re,te=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=U.__b)&&f(t);e:if(typeof te=="function")try{if(y=t.props,x=(f=te.contextType)&&r[f.__c],S=f?x?x.props.value:f.__:r,n.__c?w=(u=t.__c=n.__c).__=u.__E:("prototype"in te&&te.prototype.render?t.__c=u=new te(y,S):(t.__c=u=new Je(y,S),u.constructor=te,u.render=Gd),x&&x.sub(u),u.props=y,u.state||(u.state={}),u.context=S,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),te.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=bt({},u.__s)),bt(u.__s,te.getDerivedStateFromProps(y,u.__s))),d=u.props,m=u.state,u.__v=t,p)te.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(te.getDerivedStateFromProps==null&&y!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,S),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ke){ke&&(ke.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,m,b)})}if(u.context=S,u.props=y,u.__P=e,u.__e=!1,W=U.__r,se=0,"prototype"in te&&te.prototype.render){for(u.state=u.__s,u.__d=!1,W&&W(t),f=u.render(u.props,u.state,u.context),me=0;me<u._sb.length;me++)u.__h.push(u._sb[me]);u._sb=[]}else do u.__d=!1,W&&W(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++se<25);u.state=u.__s,u.getChildContext!=null&&(r=bt(bt({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(b=u.getSnapshotBeforeUpdate(d,m)),sa(e,Nr(Re=f!=null&&f.type===Ce&&f.key==null?f.props.children:f)?Re:[Re],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),w&&(u.__E=u.__=null)}catch(ke){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),U.__e(ke,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zd(n.__e,t,n,r,o,s,i,l,c);(f=U.diffed)&&f(t)}function ca(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Uo(n[r],n[++r],n[++r]);U.__c&&U.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){U.__e(s,o.__v)}})}function zd(e,t,n,r,o,s,i,a,l){var c,f,u,p,d,m,b,w=n.props,y=t.props,x=t.type;if(x==="svg"?o="http://www.w3.org/2000/svg":x==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((d=s[c])&&"setAttribute"in d==!!x&&(x?d.localName===x:d.nodeType===3)){e=d,s[c]=null;break}}if(e==null){if(x===null)return document.createTextNode(y);e=document.createElementNS(o,x,y.is&&y),s=null,a=!1}if(x===null)w===y||a&&e.data===y||(e.data=y);else{if(s=s&&Gn.call(e.childNodes),w=n.props||Wn,!a&&s!=null)for(w={},c=0;c<e.attributes.length;c++)w[(d=e.attributes[c]).name]=d.value;for(c in w)if(d=w[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;Dr(e,c,null,d,o)}}for(c in y)d=y[c],c=="children"?p=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?m=d:c=="checked"?b=d:c==="key"||a&&typeof d!="function"||w[c]===d||Dr(e,c,d,w[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),sa(e,Nr(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Wt(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&na(s[c]);a||(c="value",m!==void 0&&(m!==e[c]||x==="progress"&&!m||x==="option"&&m!==w[c])&&Dr(e,c,m,w[c],o),c="checked",b!==void 0&&b!==e[c]&&Dr(e,c,b,w[c],o))}return e}function Uo(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){U.__e(r,n)}}function Ho(e,t,n){var r,o;if(U.unmount&&U.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Uo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){U.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ho(r[o],t,n||typeof e.type!="function");n||e.__e==null||na(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Gd(e,t,n){return this.constructor(e,n)}function Pt(e,t,n){var r,o,s,i;U.__&&U.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Bo(t,e=(!r&&n||t).__k=g(Ce,null,[e]),o||Wn,Wn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Gn.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),ca(s,e,i)}function jo(e,t){Pt(e,t,jo)}function zo(e,t,n){var r,o,s,i,a=bt({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Gn.call(arguments,2):n),qn(e.type,a,r||e.key,o||e.ref,null)}function Zn(e,t){var n={__c:t="__cC"+ea++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,Vo(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Gn=ta.slice,U={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},Yi=0,Je.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=bt({},this.state),typeof e=="function"&&(e=e(bt({},n),this.props)),e&&bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Vo(this))},Je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Vo(this))},Je.prototype.render=Ce,Gt=[],Qi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oo=function(e,t){return e.__v.__b-t.__v.__b},Mr.__r=0,Ro=0,Fo=la(!1),Lo=la(!0),ea=0;var Ct,K,Go,ua,_n=0,fa=[],Pr=[],le=U,da=le.__b,ha=le.__r,pa=le.diffed,ma=le.__c,ga=le.unmount,_a=le.__;function qt(e,t){le.__h&&le.__h(K,e,_n||t),_n=0;var n=K.__H||(K.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Pr}),n.__[e]}function Ge(e){return _n=1,Or(ya,e)}function Or(e,t,n){var r=qt(Ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ya(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=K,!K.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,a,l,c);var u=!1;return f.forEach(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};K.u=!0;var s=K.shouldComponentUpdate,i=K.componentWillUpdate;K.componentWillUpdate=function(a,l,c){if(this.__e){var f=s;s=void 0,o(a,l,c),s=f}i&&i.call(this,a,l,c)},K.shouldComponentUpdate=o}return r.__N||r.__}function ye(e,t){var n=qt(Ct++,3);!le.__s&&Jo(n.__H,t)&&(n.__=e,n.i=t,K.__H.__h.push(n))}function Ot(e,t){var n=qt(Ct++,4);!le.__s&&Jo(n.__H,t)&&(n.__=e,n.i=t,K.__h.push(n))}function Ie(e){return _n=5,Zt(function(){return{current:e}},[])}function Wo(e,t,n){_n=6,Ot(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Zt(e,t){var n=qt(Ct++,7);return Jo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Kt(e,t){return _n=8,Zt(function(){return e},t)}function Jt(e){var t=K.context[e.__c],n=qt(Ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(K)),t.props.value):e.__}function qo(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function Wd(e){var t=qt(Ct++,10),n=Ge();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Zo(){var e=qt(Ct++,11);if(!e.__){for(var t=K.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function qd(){for(var e;e=fa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Rr),e.__H.__h.forEach(Ko),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){K=null,da&&da(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_a&&_a(e,t)},le.__r=function(e){ha&&ha(e),Ct=0;var t=(K=e.__c).__H;t&&(Go===K?(t.__h=[],K.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Pr,n.__N=n.i=void 0})):(t.__h.forEach(Rr),t.__h.forEach(Ko),t.__h=[],Ct=0)),Go=K},le.diffed=function(e){pa&&pa(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(fa.push(t)!==1&&ua===le.requestAnimationFrame||((ua=le.requestAnimationFrame)||Zd)(qd)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Pr&&(n.__=n.__V),n.i=void 0,n.__V=Pr})),Go=K=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(r){return!r.__||Ko(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(r,n.__v)}}),ma&&ma(e,t)},le.unmount=function(e){ga&&ga(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Rr(r)}catch(o){t=o}}),n.__H=void 0,t&&le.__e(t,n.__v))};var wa=typeof requestAnimationFrame=="function";function Zd(e){var t,n=function(){clearTimeout(r),wa&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);wa&&(t=requestAnimationFrame(n))}function Rr(e){var t=K,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),K=t}function Ko(e){var t=K;e.__c=e.__(),K=t}function Jo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ya(e,t){return typeof t=="function"?t(e):t}function ba(e,t){for(var n in t)e[n]=t[n];return e}function Yo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fr(e,t){this.props=e,this.context=t}function va(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Yo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,g(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fr.prototype=new Je).isPureReactComponent=!0,Fr.prototype.shouldComponentUpdate=function(e,t){return Yo(this.props,e)||Yo(this.state,t)};var Ca=U.__b;U.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ca&&Ca(e)};var Kd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Lr(e){function t(n){var r=ba({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Kd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var xa=function(e,t){return e==null?null:vt(vt(e).map(t))},ka={map:xa,forEach:xa,count:function(e){return e?vt(e).length:0},only:function(e){var t=vt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:vt},Jd=U.__e;U.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Jd(e,t,n,r)};var Sa=U.unmount;function Ea(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ba({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ea(r,t,n)})),e}function Aa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Aa(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Kn(){this.__u=0,this.t=null,this.__b=null}function Ia(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ta(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return g(n,s)}return o.displayName="Lazy",o.__f=!0,o}function wn(){this.u=null,this.o=null}U.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Sa&&Sa(e)},(Kn.prototype=new Je).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ia(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Aa(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Kn.prototype.componentWillUnmount=function(){this.t=[]},Kn.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]=Ea(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(Ce,null,e.fallback);return o&&(o.__u&=-33),[g(Ce,null,t.__a?null:e.children),o]};var $a=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Yd(e){return this.getChildContext=function(){return e.context},e.children}function Xd(e){var t=this,n=e.i;t.componentWillUnmount=function(){Pt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Pt(g(Yd,{context:t.context},e.__v),t.l)}function Na(e,t){var n=g(Xd,{__v:e,i:t});return n.containerInfo=t,n}(wn.prototype=new Je).__a=function(e){var t=this,n=Ia(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),$a(t,e,r)):o()};n?n(s):s()}},wn.prototype.render=function(e){this.u=null,this.o=new Map;var t=vt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},wn.prototype.componentDidUpdate=wn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){$a(e,n,t)})};var Ma=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qd=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,th=/[A-Z0-9]/g,nh=typeof document<"u",rh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Da(e,t,n){return t.__k==null&&(t.textContent=""),Pt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Pa(e,t,n){return jo(e,t),typeof n=="function"&&n(),e?e.__c:null}Je.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Oa=U.event;function oh(){}function sh(){return this.cancelBubble}function ih(){return this.defaultPrevented}U.event=function(e){return Oa&&(e=Oa(e)),e.persist=oh,e.isPropagationStopped=sh,e.isDefaultPrevented=ih,e.nativeEvent=e};var Xo,ah={enumerable:!1,configurable:!0,get:function(){return this.class}},Ra=U.vnode;U.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||nh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||rh(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":eh.test(s)?s=a:r.indexOf("-")===-1&&Qd.test(s)?s=s.replace(th,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=vt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=vt(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ah)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ma,Ra&&Ra(e)};var Fa=U.__r;U.__r=function(e){Fa&&Fa(e),Xo=e.__c};var La=U.diffed;U.diffed=function(e){La&&La(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Xo=null};var Va={ReactCurrentDispatcher:{current:{readContext:function(e){return Xo.__n[e.__c].props.value},useCallback:Kt,useContext:Jt,useDebugValue:qo,useDeferredValue:ts,useEffect:ye,useId:Zo,useImperativeHandle:Wo,useInsertionEffect:rs,useLayoutEffect:Ot,useMemo:Zt,useReducer:Or,useRef:Ie,useState:Ge,useSyncExternalStore:os,useTransition:ns}}},lh="17.0.2";function Ba(e){return g.bind(null,e)}function yn(e){return!!e&&e.$$typeof===Ma}function Ua(e){return yn(e)&&e.type===Ce}function Ha(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Qo(e){return yn(e)?zo.apply(null,arguments):e}function ja(e){return!!e.__k&&(Pt(null,e),!0)}function za(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ga=function(e,t){return e(t)},Wa=function(e,t){return e(t)},qa=Ce;function es(e){e()}function ts(e){return e}function ns(){return[!1,es]}var rs=Ot,Za=yn;function os(e,t){var n=t(),r=Ge({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Ot(function(){o.__=n,o.v=t,ss(o)&&s({h:o})},[e,n,t]),ye(function(){return ss(o)&&s({h:o}),e(function(){ss(o)&&s({h:o})})},[e]),n}function ss(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Be={useState:Ge,useId:Zo,useReducer:Or,useEffect:ye,useLayoutEffect:Ot,useInsertionEffect:rs,useTransition:ns,useDeferredValue:ts,useSyncExternalStore:os,startTransition:es,useRef:Ie,useImperativeHandle:Wo,useMemo:Zt,useCallback:Kt,useContext:Jt,useDebugValue:qo,version:"17.0.2",Children:ka,render:Da,hydrate:Pa,unmountComponentAtNode:ja,createPortal:Na,createElement:g,createContext:Zn,createFactory:Ba,cloneElement:Qo,createRef:ra,Fragment:Ce,isValidElement:yn,isElement:Za,isFragment:Ua,isMemo:Ha,findDOMNode:za,Component:Je,PureComponent:Fr,memo:va,forwardRef:Lr,flushSync:Wa,unstable_batchedUpdates:Ga,StrictMode:qa,Suspense:Kn,SuspenseList:wn,lazy:Ta,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Va};const is=Object.freeze(Object.defineProperty({__proto__:null,Children:ka,Component:Je,Fragment:Ce,PureComponent:Fr,StrictMode:qa,Suspense:Kn,SuspenseList:wn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Va,cloneElement:Qo,createContext:Zn,createElement:g,createFactory:Ba,createPortal:Na,createRef:ra,default:Be,findDOMNode:za,flushSync:Wa,forwardRef:Lr,hydrate:Pa,isElement:Za,isFragment:Ua,isMemo:Ha,isValidElement:yn,lazy:Ta,memo:va,render:Da,startTransition:es,unmountComponentAtNode:ja,unstable_batchedUpdates:Ga,useCallback:Kt,useContext:Jt,useDebugValue:qo,useDeferredValue:ts,useEffect:ye,useErrorBoundary:Wd,useId:Zo,useImperativeHandle:Wo,useInsertionEffect:rs,useLayoutEffect:Ot,useMemo:Zt,useReducer:Or,useRef:Ie,useState:Ge,useSyncExternalStore:os,useTransition:ns,version:lh},Symbol.toStringTag,{value:"Module"})),ch=e=>{ye(()=>{const t=e();return()=>{t.Dispose()}})},uh=(e,t)=>{ye(()=>{const n=e();return()=>{n.Dispose()}},t)},fh=e=>{Ot(()=>{const t=e();return()=>{t.Dispose()}})},$=Be,dh=ch,Ka=uh,hh=fh;function ph(e,t,n,r){const o=$.memo(e,oe(Ze(ht(Nt,n),ne())));return Hn(s=>{e.displayName=s},wi(t)),s=>{const i=mh(r,s);return $.createElement(o,i)}}function mh(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function Jn(e){return{Dispose(){e()}}}function gh(e,t){Ka(e,t)}function _h(e){hh(t=>(e(),Jn(()=>{})))}function as(e){const t=$.useRef(!1);yh(()=>{t.current||(t.current=!0,e())},[])}function Ja(e){const t=$.useRef(void 0),n=$.useRef(!1),r=$.useRef(!1);n.current&&(r.current=!0),gh(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=be(e()),o=r.current?t.current:void 0),{Dispose(){Hn(s=>{q(s)},wi(o))}}},[])}function wh(e){dh(t=>(e(),Jn(()=>{})))}function yh(e,t){Ka(n=>(e(),Jn(()=>{})),t)}function bh(e,t){const n=Ze(t,[]);return $.useCallback(e,n)}function Ya(e){return $.useRef(e)}function vh(e,t,n){return ph(e,void 0,Co(n),Co(t))}function Xa(e){const t=Ya(e),n=bh(r=>t.current(r),[]);return _h(()=>{t.current=e}),n}function Vr(e){return $.useState(e)}class Qa{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Br extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Br.prototype)}}class ls{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ls.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function xt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Br);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(pr(n))}});else try{e(t)}catch(n){t.onError(pr(n))}}}function Ch(e,t){return xt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(pr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function xh(e){return xt(t=>t.onSuccess(e))}class kh{Bind(t,n){return Ch(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return xt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return xh(t)}ReturnFrom(t){return t}TryFinally(t,n){return xt(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return xt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(pr(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return xt(t=>t.onSuccess(void 0))}}const F=new kh;function cs(e){}function Sh(e){return new Qa(!1)}function Eh(e){e.cancel()}function Ah(e){return e!=null&&e.isCancelled}const Ih=new Qa;function Th(e){return xt(t=>{e({onSuccess:n=>t.onSuccess(ld(n)),onError:n=>t.onSuccess(cd(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function $h(e){return xt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Nh(e){return xt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Br)})})}function Mh(e,t){return Dh(e,t)}function bn(e,t){return Mh(e,t)}function Dh(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new ls;e({onSuccess:t||cs,onError:cs,onCancel:cs,cancelToken:o||Ih,trampoline:s})}class el{constructor(t,n){this.k=t,this.v=n}}function Ur(e,t){return new el(e,t)}function Te(e){return e.k}function Ue(e){return e.v}class pe extends el{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Hr(e,t,n,r,o){return new pe(e,t,n,r,o)}function $e(e){return e.left}function Ne(e){return e.right}function Yt(e){return e.h}function l_(){}function tl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof pe){const s=o;e=tl(n+1,$e(s)),t=Ne(s);continue e}else return n+1|0}else return n|0}}function Ph(e){return tl(0,e)}function Ye(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=k(a);i=u instanceof pe?(o=u,Yt(o)):1}else i=0;let l;const c=r;if(c!=null){const u=k(c);l=u instanceof pe?(s=u,Yt(s)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Ur(t,n):Hr(t,n,e,r,f+1)}function nl(e,t,n,r){let o,s,i,a,l,c,f,u,p;const d=e;if(d!=null){const w=k(d);p=w instanceof pe?(o=w,Yt(o)):1}else p=0;let m;const b=r;if(b!=null){const w=k(b);m=w instanceof pe?(s=w,Yt(s)):1}else m=0;if(m>p+2){const w=k(r);if(w instanceof pe){const y=w;if(i=$e(y),(i!=null?(a=k(i),a instanceof pe?(l=a,Yt(l)):1):0)>p+1){const x=k($e(y));if(x instanceof pe){const S=x;return Ye(Ye(e,t,n,$e(S)),Te(S),Ue(S),Ye(Ne(S),Te(y),Ue(y),Ne(y)))}else throw new Error("internal error: Map.rebalance")}else return Ye(Ye(e,t,n,$e(y)),Te(y),Ue(y),Ne(y))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const w=k(e);if(w instanceof pe){const y=w;if(c=Ne(y),(c!=null?(f=k(c),f instanceof pe?(u=f,Yt(u)):1):0)>m+1){const x=k(Ne(y));if(x instanceof pe){const S=x;return Ye(Ye($e(y),Te(y),Ue(y),$e(S)),Te(S),Ue(S),Ye(Ne(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ye($e(y),Te(y),Ue(y),Ye(Ne(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ye(e,t,n,r)}function vn(e,t,n,r){if(r!=null){const o=k(r),s=e.Compare(t,Te(o))|0;if(o instanceof pe){const i=o;return s<0?nl(vn(e,t,n,$e(i)),Te(i),Ue(i),Ne(i)):s===0?Hr(t,n,$e(i),Ne(i),Yt(i)):nl($e(i),Te(i),Ue(i),vn(e,t,n,Ne(i)))}else return s<0?Hr(t,n,void 0,r,2):s===0?Ur(t,n):Hr(t,n,r,void 0,2)}else return Ur(t,n)}function rl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,Te(i))|0;if(a===0)return be(Ue(i));if(i instanceof pe){const l=i;e=r,t=o,n=a<0?$e(l):Ne(l);continue e}else return}else return}}function Oh(e,t,n){const r=rl(e,t,n);if(r==null)throw new Error;return k(r)}function Rh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,Te(i))|0;if(i instanceof pe){const l=i;if(a<0){e=r,t=o,n=$e(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Ne(l);continue e}}else return a===0}else return!1}}function ol(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof pe){const s=o;ol(n,$e(s)),n(Te(s),Ue(s)),e=n,t=Ne(s);continue e}else n(Te(o),Ue(o))}break}}function Fh(e,t){ol(e,t)}function Lh(e,t,n){let r=n;Fh((o,s)=>{pt(t,r,[o,s]),r=r+1|0},e)}function Vh(e,t){return mt((n,r)=>vn(e,r[0],r[1],n),void 0,t)}function Bh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vn(r,i[0],i[1],o),n=s;continue e}else return o}}function Uh(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ue(r,t);n=vn(e,o[0],o[1],n)}return n}function sl(e,t){if(tt(t))return Uh(e,t);if(t instanceof Ee)return Vh(e,t);{const n=re(t);try{return Bh(e,void 0,n)}finally{q(n)}}}class Hh extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function il(e){e:for(;;){const t=e;if(D(t))return ce();{const n=_(t),r=T(t);if(r!=null){const o=k(r);if(o instanceof pe){const s=o;e=ae([$e(s),Ur(Te(s),Ue(s)),Ne(s)],n);continue e}else return t}else{e=n;continue e}}}}function al(e){return new Hh(il(j(e)),!1)}function jh(){throw new Error("enumeration not started")}function zh(){throw new Error("enumeration already finished")}function ll(e){if(e.started){const t=e.stack;if(D(t))return zh();if(T(t)!=null){const n=k(T(t));if(n instanceof pe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Te(n),Ue(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return jh()}function Gh(e){if(e.started){const t=e.stack;if(D(t))return!1;if(T(t)!=null){if(k(T(t))instanceof pe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=il(_(t)),!D(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function cl(e){let t=al(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ll(t)},"System.Collections.IEnumerator.get_Current"(){return ll(t)},"System.Collections.IEnumerator.MoveNext"(){return Gh(t)},"System.Collections.IEnumerator.Reset"(){t=al(e)},Dispose(){}}}class jr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Kh(this)|0}Equals(t){const n=this;if(t instanceof jr){const r=t,o=re(n);try{const s=re(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return ge(l[0],c[0])&&ge(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{q(s)}}finally{q(o)}}else return!1}toString(){return"map ["+z("; ",de(n=>hi("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return cl(this.tree)}[Symbol.iterator](){return Dn(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return cl(this.tree)}CompareTo(t){const n=this;if(t instanceof jr)return Xf((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:ze(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return fl(n,t[0])&&ge(ul(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Lh(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return us(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return us(this)|0}get size(){return us(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return de(n=>[n[0],n[1]],this)}get(t){return ul(this,t)}has(t){return fl(this,t)}keys(){return de(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;Hn(o=>{t(o[1],o[0],r)},r)}}function zr(e,t){return new jr(e,t)}function Wh(e){return zr(e,void 0)}function qh(e,t,n){return zr(e.comparer,vn(e.comparer,t,n,e.tree))}function ul(e,t){return Oh(e.comparer,t,e.tree)}function us(e){return Ph(e.tree)}function fl(e,t){return Rh(e.comparer,t,e.tree)}function Zh(e,t){return rl(e.comparer,t,e.tree)}function Kh(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=re(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,lt(o[0]))|0,n=t(n,lt(o[1]))|0}}finally{q(r)}return n|0}function Jh(e,t,n){return qh(n,e,t)}function Yh(e,t){return Zh(t,e)}function Xh(e,t){return zr(t,sl(t,e))}function Qh(e,t){return zr(t,sl(t,e))}function dl(e){return Wh(e)}class J extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function hl(e,t){const n=Ya(Sh());return Ja(()=>Jn(()=>{Eh(n.current)})),Xa(r=>{Ah(n.current)||bn(F.Delay(()=>F.TryWith(F.Delay(()=>(t(new J(1,[])),F.Bind(e(r),o=>(t(new J(2,[o])),F.Zero())))),o=>(t(new J(3,[o])),F.Zero()))),n.current)})}class ep{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function tp(e,t){t.Subscribe(new ep(e))}class np{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return op(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let rp=class extends np{};function op(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class sp{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new rp}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function ip(e,t){console.error(be(e),t)}function ap(e,t){let n,r=new sp(e);r.AutoReset=!1,n=r,tp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function pl(e,t,n){Ar(r=>{try{r(t)}catch(o){e(o)}},n)}function kt(){return ce()}function xe(e){return j(e)}function lp(e,t,n,r){return j(o=>{e(F.Delay(()=>F.Bind(Th(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),F.Zero()})))})}function cp(e){ap(1,t=>{bn(e)})}function Yn(e,t){if(t.indexOf(e)===0)return t}function ml(e,t){if(tf(t,e))return t}function up(e){return t=>{let n,r,o,s,i,a;return n=Yn("/",t),n!=null?(r=n,"#"+r):(o=Yn("#/",t),o!=null?(s=o,s):(i=Yn("#",t),i!=null?(a=i,"#/"+_i(a,1,a.length-1)):"#/"+t))}}function I(e,t){return up()(z("/",Un(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function Pe(e,t,n){history.pushState(void 0,"",I(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function gl(e,t){return _f(n=>{if(mi(n))return ce();{const r=of(n,"#");if(r==="?")return ce();if(Yn("?",r)!=null)return j(r);{const o=r.split("?");if(!Ci((s,i)=>s===i,o)&&o.length===1){const s=ue(0,o);return j(decodeURIComponent(s))}else if(!Ci((s,i)=>s===i,o)&&o.length===2)if(ue(1,o)===""){const s=ue(0,o);return j(decodeURIComponent(s))}else{const s=ue(0,o),i=ue(1,o);return v([decodeURIComponent(s),"?"+i])}else return ce()}}},v(gi(Yn("#",e)!=null?_i(e,1,e.length-1):t===1&&(ml("#",e)!=null||ml("#/",e)!=null)?"":e,["/"],void 0,0)))}function fp(e,t,n){return t(gl(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const dp=vh(e=>{const t=Xa(r=>{const o=Ze(e.onUrlChanged,s=>{});fp(Ze(e.hashMode,1),o)});Ja(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),Jn(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),as(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??ne()});class St extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class Xt extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function _l(e){return e.tag===0?new Xt(1,[]):new Xt(0,[])}class Xn extends O{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const hp=new Xn(new St(1,[]),new Xt(0,[]));function pp(e){return[e.fields[0],e.fields[1]]}function wl(e){return e.fields[0]}function yl(e){return e.fields[1]}function bl(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new Xn(new St(1,[]),_l(r)):new Xn(new St(1,[]),new Xt(0,[])):n.tag===0?new Xn(new St(0,[]),_l(r)):new Xn(new St(0,[]),new Xt(0,[]))}class vl extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const mp=new vl("");function gp(e){return new vl(e.trim())}function Cl(e){return e.fields[0]}class _p extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function wp(e){return new _p(e)}function xl(e){return e.fields[0]}class fs extends ie{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class yp extends O{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function bp(e){return[e.fields[0],e.fields[1]]}function vp(e,t){return new yp(e,t)}function Cp(e){const t=bp(e);return[t[0],t[1]]}function xp(){return new sd([],{Equals:ge,GetHashCode:su})}function kp(e,t){let n,r=ne();if(n=[Oi(e,t,new Me(()=>r,o=>{r=o})),r],n[0])return n[1]}function kl(e,t,n){return e.set(t,n),e}class Sp extends ie{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function Ep(e){const t=Cd(e.Name);if(t.tag===1)return new h(1,[t.fields[0]]);{const n=xd(e.Website);if(n.tag===1)return new h(1,[n.fields[0]]);{const r=Td(e.ContactDetails);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new Sp(new ji(e.StreamId),t.fields[0],n.fields[0],r.fields[0],$d(e.Notes))])}}}function Sl(e,t){return bf(n=>nt(n.StreamId)===Ti(t),e)}class C extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","NotFound"]}}function El(e){let t,n,r,o,s,i,a,l,c,f,u,p,d,m,b,w,y,x,S,P,W;if(D(e))t=14;else if(T(e)==="account-registry")if(D(_(e)))t=14;else if(T(_(e))==="partners")if(D(_(_(e))))t=0;else if(D(_(_(_(e)))))t=1,n=T(_(_(e)));else switch(T(_(_(_(e))))){case"accounts":{if(D(_(_(_(_(e))))))t=2,r=T(_(_(e)));else if(D(_(_(_(_(_(e)))))))t=7,l=T(_(_(_(_(e))))),c=T(_(_(e)));else switch(T(_(_(_(_(_(e))))))){case"directory":{D(_(_(_(_(_(_(e)))))))?(t=8,f=T(_(_(_(_(e))))),u=T(_(_(e)))):t=14;break}case"imports":{D(_(_(_(_(_(_(e)))))))?(t=9,p=T(_(_(_(_(e))))),d=T(_(_(e)))):t=14;break}case"super-configuration":{D(_(_(_(_(_(_(e)))))))?(t=10,m=T(_(_(_(_(e))))),b=T(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{D(_(_(_(_(_(_(e)))))))?(t=11,w=T(_(_(_(_(e))))),y=T(_(_(e)))):t=14;break}case"bank-details-configuration":{D(_(_(_(_(_(_(e)))))))?(t=12,x=T(_(_(_(_(e))))),S=T(_(_(e)))):t=14;break}case"salary-packaging-configuration":{D(_(_(_(_(_(_(e)))))))?(t=13,P=T(_(_(_(_(e))))),W=T(_(_(e)))):t=14;break}default:t=14}break}case"super-configuration":{D(_(_(_(_(e)))))?(t=3,o=T(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{D(_(_(_(_(e)))))?(t=4,s=T(_(_(e)))):t=14;break}case"directory":{D(_(_(_(_(e)))))?(t=5,i=T(_(_(e)))):t=14;break}case"bank-details-configuration":{D(_(_(_(_(e)))))?(t=6,a=T(_(_(e)))):t=14;break}default:t=14}else t=14;else t=14;switch(t){case 0:return new C(0,[]);case 1:return new C(1,[he(n)]);case 2:return new C(3,[he(r)]);case 3:return new C(4,[he(o)]);case 4:return new C(5,[he(s)]);case 5:return new C(2,[he(i)]);case 6:return new C(6,[he(a)]);case 7:return new C(7,[he(c),Dt(l)]);case 8:return new C(8,[he(u),Dt(f)]);case 9:return new C(9,[he(d),Dt(p)]);case 10:return new C(10,[he(b),Dt(m)]);case 11:return new C(11,[he(y),Dt(w)]);case 12:return new C(12,[he(S),Dt(x)]);case 13:return new C(13,[he(W),Dt(P)]);default:return new C(14,[])}}function E(e){switch(e.tag){case 1:return v(["account-registry","partners",X(e.fields[0])]);case 3:return v(["account-registry","partners",X(e.fields[0]),"accounts"]);case 4:return v(["account-registry","partners",X(e.fields[0]),"super-configuration"]);case 5:return v(["account-registry","partners",X(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return v(["account-registry","partners",X(e.fields[0]),"bank-details-configuration"]);case 2:return v(["account-registry","partners",X(e.fields[0]),"directory"]);case 7:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1])]);case 8:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"directory"]);case 9:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"imports"]);case 10:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"super-configuration"]);case 11:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"benefits-onboarding-configuration"]);case 12:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"bank-details-configuration"]);case 13:return v(["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"salary-packaging-configuration"]);default:return v(["account-registry","partners"])}}function Al(e){switch(e.tag){case 1:{const t=["account-registry","partners",X(e.fields[0])];return xe(n=>{Pe(v(t))})}case 3:{const t=["account-registry","partners",X(e.fields[0]),"accounts"];return xe(n=>{Pe(v(t))})}case 4:{const t=["account-registry","partners",X(e.fields[0]),"super-configuration"];return xe(n=>{Pe(v(t))})}case 5:{const t=["account-registry","partners",X(e.fields[0]),"benefits-onboarding-configuration"];return xe(n=>{Pe(v(t))})}case 6:{const t=["account-registry","partners",X(e.fields[0]),"bank-details-configuration"];return xe(n=>{Pe(v(t))})}case 2:{const t=["account-registry","partners",X(e.fields[0]),"directory"];return xe(n=>{Pe(v(t))})}case 7:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1])];return xe(n=>{Pe(v(t))})}case 8:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"directory"];return xe(n=>{Pe(v(t))})}case 9:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"imports"];return xe(n=>{Pe(v(t))})}case 10:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"super-configuration"];return xe(n=>{Pe(v(t))})}case 11:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"benefits-onboarding-configuration"];return xe(n=>{Pe(v(t))})}case 12:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"bank-details-configuration"];return xe(n=>{Pe(v(t))})}case 13:{const t=["account-registry","partners",X(e.fields[0]),"accounts",De(e.fields[1]),"salary-packaging-configuration"];return xe(n=>{Pe(v(t))})}default:{const t=["account-registry","partners"];return xe(n=>{Pe(v(t))})}}}function Ap(e,t){switch(t.tag){case 1:return new J(1,[]);case 2:return t.fields[0].tag===1?new J(2,[new h(1,[t.fields[0].fields[0]])]):new J(2,[new h(0,[e(t.fields[0].fields[0])])]);case 3:return new J(3,[t.fields[0]]);default:return new J(0,[])}}function Ip(e,t,n,r){return lp(o=>{cp(o)},e,t,o=>o.tag===1?r(o.fields[0]):n(o.fields[0]))}class Il{constructor(t){this.k=t}}function He(e){return new Il(e)}function L(e){return e.k}class G extends Il{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function je(e,t,n,r){return new G(e,t,n,r)}function Q(e){return e.left}function Y(e){return e.right}function Cn(e){return e.h}function c_(){}function Tl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=k(n);if(o instanceof G){const s=o;e=Q(s),t=Tl(Y(s),r+1);continue e}else return r+1|0}else return r|0}}function Tp(e){return Tl(e,0)}function Xe(e,t,n){let r,o,s;const i=e;if(i!=null){const f=k(i);s=f instanceof G?(r=f,Cn(r)):1}else s=0;let a;const l=n;if(l!=null){const f=k(l);a=f instanceof G?(o=f,Cn(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?He(t):je(t,e,n,c+1)}function $l(e,t,n){let r,o,s,i,a,l,c,f,u;const p=e;if(p!=null){const b=k(p);u=b instanceof G?(r=b,Cn(r)):1}else u=0;let d;const m=n;if(m!=null){const b=k(m);d=b instanceof G?(o=b,Cn(o)):1}else d=0;if(d>u+2){const b=k(n);if(b instanceof G){const w=b;if(s=Q(w),(s!=null?(i=k(s),i instanceof G?(a=i,Cn(a)):1):0)>u+1){const y=k(Q(w));if(y instanceof G){const x=y;return Xe(Xe(e,t,Q(x)),L(x),Xe(Y(x),L(w),Y(w)))}else throw new Error("internal error: Set.rebalance")}else return Xe(Xe(e,t,Q(w)),L(w),Y(w))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const b=k(e);if(b instanceof G){const w=b;if(l=Y(w),(l!=null?(c=k(l),c instanceof G?(f=c,Cn(f)):1):0)>d+1){const y=k(Y(w));if(y instanceof G){const x=y;return Xe(Xe(Q(w),L(w),Q(x)),L(x),Xe(Y(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Xe(Q(w),L(w),Xe(Y(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Xe(e,t,n)}function xn(e,t,n){if(n!=null){const r=k(n),o=e.Compare(t,L(r))|0;if(r instanceof G){const s=r;return o<0?$l(xn(e,t,Q(s)),L(s),Y(s)):o===0?n:$l(Q(s),L(s),xn(e,t,Y(s)))}else{const s=e.Compare(t,L(r))|0;return s<0?je(t,void 0,n,2):s===0?n:je(t,n,void 0,2)}}else return He(t)}function Nl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=k(s),a=r.Compare(o,L(i))|0;if(i instanceof G){const l=i;if(a<0){e=r,t=o,n=Q(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Y(l);continue e}}else return a===0}else return!1}}function Ml(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=k(r);if(o instanceof G){const s=o;Ml(n,Q(s)),n(L(s)),e=n,t=Y(s);continue e}else n(L(o))}break}}class $p extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function Dl(e){e:for(;;){const t=e;if(D(t))return ce();{const n=T(t),r=_(t);if(n!=null){const o=k(n);if(o instanceof G){const s=o;e=ae([Q(s),He(L(s)),Y(s)],r);continue e}else return t}else{e=r;continue e}}}}function Pl(e){return new $p(Dl(j(e)),!1)}function Np(){throw new Error("Enumeration not started")}function Mp(){throw new Error("Enumeration already started")}function Ol(e){if(e.started){const t=e.stack;if(D(t))return Mp();if(T(t)!=null){const n=k(T(t));return L(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Np()}function Dp(e){if(e.started){const t=e.stack;if(D(t))return!1;if(T(t)!=null){if(k(T(t))instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Dl(_(t)),!D(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function Rl(e){let t=Pl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ol(t)},"System.Collections.IEnumerator.get_Current"(){return Ol(t)},"System.Collections.IEnumerator.MoveNext"(){return Dp(t)},"System.Collections.IEnumerator.Reset"(){t=Pl(e)},Dispose(){}}}function Pp(e,t,n){e:for(;;){const r=e,o=t,s=n;if(D(o))return D(s)?0:-1;if(D(s))return 1;if(T(s)!=null)if(T(o)!=null){const i=k(T(o)),a=k(T(s));if(i instanceof G){const l=i;if(Q(l)==null)if(a instanceof G){const c=a;if(Q(c)==null){const f=r.Compare(L(l),L(c))|0;if(f!==0)return f|0;e=r,t=Ve(Y(l),_(o)),n=Ve(Y(c),_(s));continue e}else{let f,u,p,d,m;switch(D(o)?D(s)?f=2:T(s)!=null?(f=1,d=_(s),m=k(T(s))):f=2:T(o)!=null?(f=0,u=_(o),p=k(T(o))):D(s)?f=2:T(s)!=null?(f=1,d=_(s),m=k(T(s))):f=2,f){case 0:if(p instanceof G){const b=p;e=r,t=ae([Q(b),je(L(b),void 0,Y(b),0)],u),n=s;continue e}else{e=r,t=ae([void 0,He(L(p))],u),n=s;continue e}case 1:if(m instanceof G){const b=m;e=r,t=o,n=ae([Q(b),je(L(b),void 0,Y(b),0)],d);continue e}else{e=r,t=o,n=ae([void 0,He(L(m))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(L(l),L(a))|0;if(c!==0)return c|0;e=r,t=Ve(Y(l),_(o)),n=Ve(void 0,_(s));continue e}else{let c,f,u,p,d;switch(D(o)?D(s)?c=2:T(s)!=null?(c=1,p=_(s),d=k(T(s))):c=2:T(o)!=null?(c=0,f=_(o),u=k(T(o))):D(s)?c=2:T(s)!=null?(c=1,p=_(s),d=k(T(s))):c=2,c){case 0:if(u instanceof G){const m=u;e=r,t=ae([Q(m),je(L(m),void 0,Y(m),0)],f),n=s;continue e}else{e=r,t=ae([void 0,He(L(u))],f),n=s;continue e}case 1:if(d instanceof G){const m=d;e=r,t=o,n=ae([Q(m),je(L(m),void 0,Y(m),0)],p);continue e}else{e=r,t=o,n=ae([void 0,He(L(d))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof G){const l=a;if(Q(l)==null){const c=r.Compare(L(i),L(l))|0;if(c!==0)return c|0;e=r,t=Ve(void 0,_(o)),n=Ve(Y(l),_(s));continue e}else{let c,f,u,p,d;switch(D(o)?D(s)?c=2:T(s)!=null?(c=1,p=_(s),d=k(T(s))):c=2:T(o)!=null?(c=0,f=_(o),u=k(T(o))):D(s)?c=2:T(s)!=null?(c=1,p=_(s),d=k(T(s))):c=2,c){case 0:if(u instanceof G){const m=u;e=r,t=ae([Q(m),je(L(m),void 0,Y(m),0)],f),n=s;continue e}else{e=r,t=ae([void 0,He(L(u))],f),n=s;continue e}case 1:if(d instanceof G){const m=d;e=r,t=o,n=ae([Q(m),je(L(m),void 0,Y(m),0)],p);continue e}else{e=r,t=o,n=ae([void 0,He(L(d))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(L(i),L(a))|0;if(l!==0)return l|0;e=r,t=_(o),n=_(s);continue e}}else{k(T(s));let i,a,l,c,f;switch(D(o)?D(s)?i=2:T(s)!=null?(i=1,c=_(s),f=k(T(s))):i=2:T(o)!=null?(i=0,a=_(o),l=k(T(o))):D(s)?i=2:T(s)!=null?(i=1,c=_(s),f=k(T(s))):i=2,i){case 0:if(l instanceof G){const u=l;e=r,t=ae([Q(u),je(L(u),void 0,Y(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,He(L(l))],a),n=s;continue e}case 1:if(f instanceof G){const u=f;e=r,t=o,n=ae([Q(u),je(L(u),void 0,Y(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,He(L(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(T(o)!=null){k(T(o));let i,a,l,c,f;switch(D(o)?D(s)?i=2:T(s)!=null?(i=1,c=_(s),f=k(T(s))):i=2:T(o)!=null?(i=0,a=_(o),l=k(T(o))):D(s)?i=2:T(s)!=null?(i=1,c=_(s),f=k(T(s))):i=2,i){case 0:if(l instanceof G){const u=l;e=r,t=ae([Q(u),je(L(u),void 0,Y(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,He(L(l))],a),n=s;continue e}case 1:if(f instanceof G){const u=f;e=r,t=o,n=ae([Q(u),je(L(u),void 0,Y(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,He(L(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=_(o),n=_(s);continue e}}}function Fl(e,t,n){return t==null?n==null?0:-1:n==null?1:Pp(e,j(t),j(n))|0}function Op(e,t,n){let r=n;Ml(o=>{pt(t,r,o),r=r+1|0},e)}function Rp(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=xn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function Fp(e,t){return Sr((n,r)=>xn(e,r,n),void 0,t)}function Lp(e,t){return mt((n,r)=>xn(e,r,n),void 0,t)}function Ll(e,t){if(tt(t))return Fp(e,t);if(t instanceof Ee)return Lp(e,t);{const n=re(t);try{return Rp(e,void 0,n)}finally{q(n)}}}class ds{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Up(this)|0}Equals(t){let n;const r=this;return t instanceof ds&&(n=t,Fl(kn(r),Qe(r),Qe(n))===0)}toString(){return"set ["+z("; ",de(n=>Se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Fl(kn(n),Qe(n),Qe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Nl(kn(n),t,Qe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Op(Qe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return hs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return hs(this)|0}GetEnumerator(){return Rl(Qe(this))}[Symbol.iterator](){return Dn(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Rl(Qe(this))}get size(){return hs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Vl(this,t)}keys(){return de(n=>n,this)}values(){return de(n=>n,this)}entries(){return de(n=>[n,n],this)}forEach(t,n){const r=this;Hn(o=>{t(o,o,r)},r)}}function Gr(e,t){return new ds(e,t)}function kn(e){return e.comparer}function Qe(e){return e.tree}function Vp(e){return Gr(e,void 0)}function Bp(e,t){return Gr(kn(e),xn(kn(e),t,Qe(e)))}function hs(e){return Tp(Qe(e))}function Vl(e,t){return Nl(kn(e),t,Qe(e))}function Up(e){let t=0;const n=re(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+lt(r)+631|0}}finally{q(n)}return Math.abs(t)|0}function ps(e,t){return Vl(t,e)}function Hp(e,t){return Bp(t,e)}function jp(e){return Vp(e)}function zp(e,t){return Gr(t,Ll(t,e))}function Gp(e,t){return Gr(t,Ll(t,e))}function Wp(){return ce()}function ms(e){return z("/",e)}function qp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ms(t),n])}function Bl(e,t,n){try{q(n)}catch(r){e(["Error stopping subscription: "+ms(t),r])}}function Zp(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+ms(n),o]);return}}function Kp(e,t){Ar(n=>{Bl(e,n[0],n[1])},t)}function Ul(e,t,n,r,o,s){return Ar(i=>{qp(e,i)},n),Ar(i=>{Bl(e,i[0],i[1])},r),Ae(o,Ei(i=>Zp(e,t,i[0],i[1]),s))}function Jp(){return[ce(),jp({Compare:ze}),ce()]}function Yp(e,t,n,r,o){return ps(e,r)?[Ve(e,n),r,o]:[n,Hp(e,r),Ve([e,t],o)]}function Xp(e){return pf((t,n)=>Yp(t[0],t[1],n[0],n[1],n[2]),e,Jp())}const Qp=ce();function Hl(e,t){const n=zp(Un(i=>i[0],e),{Compare:ze}),r=Xp(t),o=r[1],s=r[0];if(n.Equals(o))return[s,ce(),e,ce()];{const i=Cf(a=>ps(a[0],o),e);return[s,i[1],i[0],Si(a=>!ps(a[0],n),r[2])]}}function e0(e,t,n,r){const o=ze(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=ze(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function t0(e,t,n,r,o){const s=e0(t,n,r,o);return R(()=>Yf(s,e))}function n0(e,t,n){return t0(e,t,n,0,(r,o)=>r+o)}class Sn extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class r0{constructor(t){this.state=new Sn(0,[xo(new Array(vi(t,10)),0,vi(t,10),null),0])}}function o0(e){return new r0(e)}function jl(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Sn(0,[o,n]):e.state=new Sn(1,[o,n,s]),be(ue(r,o))}else return}function s0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];pt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Sn(1,[i0(e,o,s),s.length,0]):e.state=new Sn(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];pt(o,r,t);const s=(r+1)%o.length|0;e.state=new Sn(1,[o,s,r])}}function i0(e,t,n){return Array.from(R(()=>Z(td(t,n),R(()=>Z(nd(t,n),R(()=>rd(r=>V(ne()),n0(0,1,n.length))))))))}class gs extends ie{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function zl(e,t,n){return new gs(e,t,r=>Wp(),n,oe(r=>{const o=Nt(n)(r);return s=>{o(s)}}),r=>{ip(r[0],r[1])},[r=>!1,r=>{}])}function a0(e,t){return new gs(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function l0(e){return e.init}function c0(e,t,n,r,o,s,i){const a=Nt(e)(i.init),l=po(t)(Nt(i.update)),c=po(n)(Nt(i.view)),f=po(r)(Nt(i.setState));return new gs(a,oe(l),Nt(o)(i.subscribe),oe(c),oe(f),i.onError,s(i.termination))}function u0(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,l=o0(10);let c=!1,f=s,u=Qp,p=!1;const d=w=>{p||(s0(l,w),c||(c=!0,b(),c=!1))},m=Nt(e)(d),b=()=>{let w,y=jl(l);for(;!p&&y!=null;){const x=k(y);if(a[0](x))Kp(n.onError,u),a[1](f),p=!0;else{const S=n.update(x,f),P=S[0],W=n.subscribe(P);n.setState(P,m),pl(se=>{n.onError([dt(ft("Error handling the message: %A"))(x),se])},m,S[1]),f=P,u=(w=Hl(u,W),Ul(n.onError,m,w[0],w[1],w[2],w[3])),y=jl(l)}}};c=!0,n.setState(s,m),pl(w=>{n.onError([dt(ft("Error intitializing:")),w])},m,o[1]),u=(r=Hl(u,i),Ul(n.onError,m,r[0],r[1],r[2],r[3])),b(),c=!1}function f0(e,t){u0(oe(n=>n),e,t)}function d0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Gl={exports:{}},Wl={};const h0=d0(is);/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var En=h0;function p0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var m0=typeof Object.is=="function"?Object.is:p0,g0=En.useState,_0=En.useEffect,w0=En.useLayoutEffect,y0=En.useDebugValue;function b0(e,t){var n=t(),r=g0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return w0(function(){o.value=n,o.getSnapshot=t,_s(o)&&s({inst:o})},[e,n,t]),_0(function(){return _s(o)&&s({inst:o}),e(function(){_s(o)&&s({inst:o})})},[e]),y0(n),n}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!m0(e,n)}catch{return!0}}function v0(e,t){return t()}var C0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v0:b0;Wl.useSyncExternalStore=En.useSyncExternalStore!==void 0?En.useSyncExternalStore:C0,Gl.exports=Wl;var x0=Gl.exports;class k0{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=l0(o)(this.arg);let l=a[0],c=a[1];i=[[l,f=>{const u=this.finalDispatch;u==null?s.push(f):u(f)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const p=uo(this.state[0]);return f0(this.arg,a0((d,m)=>{const b=this.state;this.finalDispatch=m,this.state=[d,b[1],!0,s],d!==b[0]&&f()},c0((d,m)=>{const b=this.cmd;return this.cmd=kt(),[this.state[0],b]},(d,m,b)=>d(m)(this.state[0]),ho(d=>d),ho(d=>d),oe(d=>d),d=>[m=>d[0](m)?!0:p&&u,m=>{const b=m;uo(b)?q(b):d[1](m)}],o))),()=>{u=!0}}}}function ql(e,t,n){return new k0(e,t,n)}function S0(e){return e.state}function E0(e){return e.subscribe}function A0(e,t,n){return ge(e.arg,t)?!ge(e.dependencies,n):!0}function Zl(e,t,n){const r=Ge(()=>ql(e,t,n)),o=r[0];A0(o,t,n)&&r[1](ql(e,t,n));const s=x0.useSyncExternalStore(E0(o),()=>S0(o)),i=s[2],a=s[3],l=s[1];return ye(()=>{if(i&&a.length>0){let c=re(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{q(c)}cu(a)}},[i,a]),[s[0],l]}class Wr extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Kl extends O{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class I0 extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class qr extends ie{constructor(t,n,r,o,s,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=l}}class An extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Jl extends ie{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function T0(e){return new Kl("Authorization",e)}const Qt=new qr("",new Wr(0,[]),ce(),!1,void 0,void 0,void 0,new I0(0,[]));new Jl(0,"","","",dl({Compare:dr}),new An(0,[""]));function Yl(e,t){return pi(t)?new Array(0):gi(t,[e],void 0,0)}function $0(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function ws(e){return new qr(e,Qt.method,Qt.headers,Qt.withCredentials,Qt.overridenMimeType,Qt.overridenResponseType,Qt.timeout,Qt.content)}function ys(e,t){return new qr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Xl(e,t){return new qr(t.url,t.method,Ae(t.headers,j(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ql(e){return $h(t=>{const n=new XMLHttpRequest;n.open($0(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,u,p,d,m;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,p=(d=n.responseType,d===""?new An(0,[n.responseText]):d==="text"?new An(0,[n.responseText]):d==="arraybuffer"?new An(2,[n.response]):d==="blob"?new An(1,[n.response]):new An(3,[n.response])),m=Qh(uf(b=>{const w=v(Yl(":",b));if(!D(w))return[T(w).toLocaleLowerCase(),z(":",_(w)).trim()]},Yl(`\r
|
|
13
|
+
`,n.getAllResponseHeaders())),{Compare:dr}),new Jl(f,l,u,n.responseURL,m,p)))};const r=re(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{q(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(be(a.fields[0]));break}case 3:{n.send(be(a.fields[0]));break}case 2:{n.send(be(a.fields[0]));break}default:n.send()}})}class N extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Zr extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function ec(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function N0(e,t){switch(e.tag){case 2:return Ju(ec(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ec(t)}}function tc(e,t){M0(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function M0(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function D0(){return tc(-621355968e5,0)}function P0(e){const[t,n]=ni(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return tc(t.getTime(),r)}function O0(e,t){try{return t.contents=P0(e),!0}catch{return!1}}function nc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return R0(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function R0(e){return Number(BigInt(e)/10000n)}function F0(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return nc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*nc(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function L0(e,t){try{return t.contents=F0(e),!0}catch{return!1}}function Qn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
14
|
+
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
15
|
+
`:" ")}}function V0(e,t){const n=t.tag===2?Qn(t.fields[0],t.fields[1],!0):t.tag===1?Qn(t.fields[0],t.fields[1],!1)+`
|
|
16
|
+
Reason: `+t.fields[2]:t.tag===3?Qn(t.fields[0],t.fields[1],!0):t.tag===4?Qn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
17
|
+
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
18
|
+
|
|
19
|
+
`+z(`
|
|
20
|
+
|
|
21
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Qn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function rc(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new h(1,[V0(o[0],o[1])])}else return new h(0,[r.fields[0]])}function bs(e,t){try{return rc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function oc(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new N(0,["a string",t])]])}function B0(e,t){if(typeof t=="string"){const n=t;return n.length===1?new h(0,[n[0]]):new h(1,[[e,new N(0,["a single character string",t])]])}else return new h(1,[[e,new N(0,["a char",t])]])}function U0(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[hd(t,new Me(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new N(0,["a guid",t])]])}else return new h(1,[[e,new N(0,["a guid",t])]])}function H0(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new N(0,["null",t])]])}const sc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new h(0,[(o+128&255)-128]):new h(1,[[n,new N(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new h(1,[[n,new N(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,8,new Me(()=>s,i=>{s=i|0})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["a sbyte",r])]])}else return new h(1,[[n,new N(0,["a sbyte",r])]])},ic=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new h(0,[o&255]):new h(1,[[n,new N(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new h(1,[[n,new N(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,8,new Me(()=>s,i=>{s=i})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["a byte",r])]])}else return new h(1,[[n,new N(0,["a byte",r])]])},ac=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new h(0,[(o+32768&65535)-32768]):new h(1,[[n,new N(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new h(1,[[n,new N(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,16,new Me(()=>s,i=>{s=i|0})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["an int16",r])]])}else return new h(1,[[n,new N(0,["an int16",r])]])},lc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new h(0,[o&65535]):new h(1,[[n,new N(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new h(1,[[n,new N(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,16,new Me(()=>s,i=>{s=i})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["an uint16",r])]])}else return new h(1,[[n,new N(0,["an uint16",r])]])},cc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new h(0,[~~o]):new h(1,[[n,new N(1,["an int",o,"Value was either too large or too small for an int"])]]):new h(1,[[n,new N(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!1,32,new Me(()=>s,i=>{s=i|0})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["an int",r])]])}else return new h(1,[[n,new N(0,["an int",r])]])},uc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new h(0,[o>>>0]):new h(1,[[n,new N(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new h(1,[[n,new N(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[mn(r,511,!0,32,new Me(()=>s,i=>{s=i})),s],o[0]?new h(0,[o[1]]):new h(1,[[n,new N(0,["an uint32",r])]])}else return new h(1,[[n,new N(0,["an uint32",r])]])};function j0(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new N(0,["a boolean",t])]])}function z0(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new N(0,["a float",t])]])}function G0(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new N(0,["a float32",t])]])}function W0(e,t){if(typeof t=="string"){let n,r=zu();return n=[Wu(t,new Me(()=>r,o=>{r=o})),r],n[0]?new h(0,[qu(n[1])]):new h(1,[[e,new N(0,["a datetime",t])]])}else return new h(1,[[e,new N(0,["a datetime",t])]])}function q0(e,t){if(typeof t=="string"){let n,r=D0();return n=[O0(t,new Me(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new N(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new N(0,["a datetime",t])]])}function Z0(e,t){if(typeof t=="string"){let n,r=0;return n=[L0(t,new Me(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new N(0,["a timespan",t])]])}else return new h(1,[[e,new N(0,["a timespan",t])]])}function fc(e,t,n,r){let o;const s=n+".["+Vt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ue(e,i)):new h(1,[[s,new N(5,["a longer array. Need index `"+Vt(e)+"` but there are only `"+(o=i.length,Vt(o))+"` entries",r])]])}else return new h(1,[[s,new N(0,["an array",r])]])}function K0(e,t,n){return n==null?new h(0,[void 0]):gt(be,e(t,n))}function dc(e,t,n){if(Array.isArray(n)){let r=-1;return gt(Er,Sr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Vt(r)+"]",s);return i.tag===0?new h(0,[Ve(i.fields[0],o.fields[0])]):new h(1,[i.fields[0]])}else return o},new h(0,[ce()]),n))}else return new h(1,[[t,new N(0,["a list",n])]])}function J0(e,t,n){if(Array.isArray(n)){let r=-1;return gt(ed,Sr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Vt(r)+"]",s);return i.tag===0?new h(0,[Z([i.fields[0]],o.fields[0])]):new h(1,[i.fields[0]])}else return o},new h(0,[[]]),n))}else return new h(1,[[t,new N(0,["a seq",n])]])}function hc(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Sr((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],l=e(t+".["+Vt(r)+"]",i);return l.tag===0?(pt(a,r,l.fields[0]),new h(0,[a])):new h(1,[l.fields[0]])}else return s},new h(0,[xo(new Array(o.length),0,o.length,null)]),o)}else return new h(1,[[t,new N(0,["an array",n])]])}function Y0(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(D(i))return new h(1,[[t,new N(7,[a])]]);{const l=rc(t,oe(T(i)),n);if(l.tag===1){o=_(i),s=Ae(a,j(l.fields[0]));continue e}else return new h(0,[l.fields[0]])}}})(e,ce())}function X0(e,t,n){return new h(0,[e])}function pc(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new h(1,[o.fields[0]])}function Q0(e,t,n,r){const o=t(n,r);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[e(o.fields[0])])}function em(e,t){let n;const r=e;return n=o=>s=>fc(0,r,o,s),o=>s=>pc(ho(i=>{let a;const l=t;return a=c=>f=>fc(1,l,c,f),c=>f=>pc((u,p,d)=>X0([i,u]),oe(a),c,f)}),oe(n),o,s)}function tm(e){return Xh(e,{Compare:ze})}function nm(e){return Gp(e,{Compare:ze})}function rm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?xi((r,o)=>{const s=r[0];return o.tag===0?gt(i=>Ve(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new h(0,[ce()])):new h(1,[[t,new N(0,["an object",n])]])}function om(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?$o((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new h(0,[Ve([i.fields[0],a.fields[0]],o.fields[0])]):new h(1,[a.fields[0]])}else return new h(1,[i.fields[0]])}else return o},new h(0,[ce()]),Object.keys(r)):new h(1,[[n,new N(0,["an object",r])]])}function mc(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new h(1,[[n,new N(6,[(o=r.length|0,dt(ft("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new h(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],c=dt(ft("%s[%i]"))(n)(a),f=ue(a-e,t),u=ue(a,r);i=gt(p=>Ve(p,l),f(c)(u))}return gt(Er,i)}}function gc(e,t,n,r,o,s){const i=cf(a=>_o(a)===r,Au(n));if(i!=null){const a=i,l=Vn(c=>et(e,t,!1,c[1]),Nu(a));return gt(c=>Mu(a,Ht(c)),l.length===0&&s.length<=1?new h(0,[ce()]):mc(1,l,o,s))}else return new h(1,[[o,new N(6,["Cannot find case "+r+" in "+we(n)])]])}function _c(e,t,n,r){let o;const s=new Me(ne());let i;const a=we(r);i=a===""?e:Jh(a,s,e);let l;if($u(r)){const c=Vn(f=>[N0(t,_o(f)),et(i,t,!1,f[1])],br(r));l=f=>u=>gt(p=>Du(r,Ht(p)),rm(c,f,u))}else if(Tu(r))l=c=>f=>{if(typeof f=="string")return gc(i,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return Af(p=>gc(i,t,r,p,c,u),oc(c+"[0]",ue(0,u)))}else return new h(1,[[c,new N(0,["a string or array",f])]])};else if(n)l=c=>f=>new h(1,[[c,new N(2,["an extra coder for "+we(r),f])]]);else throw new Error((o=we(r),dt(ft(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
22
|
+
|
|
23
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=l,l}function et(e,t,n,r){let o,s,i,a;const l=we(r),c=Yh(l,e);if(c==null)if(Cu(r)){const f=et(e,t,!1,yr(r));return u=>p=>hc(oe(f),u,p)}else if(Ys(r))switch(we(Su(r))){case"System.SByte":return u=>p=>{const d=r,m=u,b=p,w=sc(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,y.toString())]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const d=r,m=u,b=p,w=ic(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,y.toString())]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const d=r,m=u,b=p,w=ac(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,eu(y))]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const d=r,m=u,b=p,w=lc(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,y.toString())]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const d=r,m=u,b=p,w=cc(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,Vt(y))]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const d=r,m=u,b=p,w=uc(m)(b);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return pn(y,ln(d),{Equals:(x,S)=>x===S,GetHashCode:qe})?new h(0,[cn(d,y.toString())]):new h(1,[[m,new N(1,[we(d),b,"Unkown value provided for the enum"])]])}};default:{const u=we(r),p=Qu(ft(`Cannot generate auto decoder for %s.
|
|
24
|
+
Thoth.Json.Net only support the following enum types:
|
|
25
|
+
- sbyte
|
|
26
|
+
- byte
|
|
27
|
+
- int16
|
|
28
|
+
- uint16
|
|
29
|
+
- int
|
|
30
|
+
- uint32
|
|
31
|
+
If you can't use one of these types, please pass an extra decoder.
|
|
32
|
+
`))(u);return d=>p(d)}}else if(xu(r))if(Xs(r)){const f=Vn(u=>et(e,t,!1,u),Iu(r));return u=>p=>Array.isArray(p)?gt(d=>Pu(Ht(d)),mc(0,f,u,p)):new h(1,[[u,new N(0,["an array",p])]])}else switch(we(ku(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=et(e,t,!0,ue(0,ut(r))),u=>p=>K0(oe(o),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=et(e,t,!1,ue(0,ut(r))),u=>p=>dc(oe(s),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=et(e,t,!1,ue(0,ut(r))),u=>p=>J0(oe(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=et(e,t,!1,ue(0,ut(r))),p=et(e,t,!1,ue(1,ut(r)));let d;const m=v([b=>w=>om(oe(u),oe(p),b,w),(a=em(oe(u),oe(p)),b=>w=>dc(oe(a),b,w))]);return d=b=>w=>Y0(m,b,w),b=>w=>Q0(tm,oe(d),b,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=et(e,t,!1,ue(0,ut(r)));return p=>d=>{const m=hc(oe(u),p,d);return m.tag===0?new h(0,[nm(m.fields[0])]):new h(1,[m.fields[0]])}}default:return _c(e,t,n,r)}else switch(l){case"System.Boolean":return f=>u=>j0(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>H0(f,u);case"System.String":return f=>u=>oc(f,u);case"System.Char":return f=>u=>B0(f,u);case"System.SByte":return sc;case"System.Byte":return ic;case"System.Int16":return ac;case"System.UInt16":return lc;case"System.Int32":return cc;case"System.UInt32":return uc;case"System.Double":return f=>u=>z0(f,u);case"System.Single":return f=>u=>G0(f,u);case"System.DateTime":return f=>u=>W0(f,u);case"System.DateTimeOffset":return f=>u=>q0(f,u);case"System.TimeSpan":return f=>u=>Z0(f,u);case"System.Guid":return f=>u=>U0(f,u);case"System.Object":return f=>u=>new h(0,[u]);default:return _c(e,t,n,r)}else{const f=c;return u=>p=>f.contents(u)(p)}}function sm(e){return dl({Compare:dr})}function vs(e,t,n){const r=Ze(t,new Zr(0,[]));return et(sm(),r,!1,e)}function im(e,t,n){e:for(;;){const r=e,o=t,s=n;if(D(s)){const i=r;return i.tag===1?new h(1,[i.fields[0]]):new h(0,[Er(i.fields[0])])}else{let i;const a=o(T(s));if(a.tag===1)i=new h(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new h(1,[l.fields[0]]):new h(0,[Ve(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=_(s);continue e}}}function am(e,t){return im(new h(0,[ce()]),e,t)}function lm(e){return am(t=>t,e)}function Cs(e){return new ji(_t(e))}function xs(e){return`${e}/account-registry/admin`}function ks(e,t){return F.Delay(()=>{const n=Xl(T0(dt(ft("Bearer %s"))(e)),t);let r;const o=Ql(n);return r=F.Bind(o,s=>F.Return(new h(0,[s]))),F.Bind(r,s=>{const i=s;if(i.tag===1)return F.Return(new h(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Ql(n);return F.Bind(l,c=>F.Return(new h(0,[c])))}else return F.Return(new h(0,[a]))}})})}function cm(e,t){return F.Delay(()=>{const n=ks(t,ys(new Wr(0,[]),ws(`${xs(e)}/partners`)));return F.Bind(n,r=>{const o=r;if(o.tag===1)return F.Return(new h(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=bs(oe(vs(Js(Od()),new Zr(1,[]))),s.responseText);return i=a.tag===1?new h(1,[a.fields[0]]):lm(Un(Ep,a.fields[0])),F.Return(i)}else return F.Return(new h(1,["Unexpected response from backend"]))}})})}function um(e,t,n,r){const o=_t(n),s=wt(r);return F.Delay(()=>{const i=ks(t,ys(new Wr(0,[]),ws(`${xs(e)}/partners/${o}/accounts/${s}`)));return F.Bind(i,a=>{const l=a;if(l.tag===1)return F.Return(new h(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const f=bs(oe(vs(Fd(),new Zr(1,[]))),c.responseText);return F.Return(f)}else return F.Return(new h(1,["Unexpected response from backend"]))}})})}function Ss(e,t,n,r,o){return F.Delay(()=>{let s,i,a,l;const c="?"+z("&",Ei(u=>u,v([(s=Cl(r.SearchText),mi(s)?void 0:`search=${encodeURIComponent(s)}`),(i=pp(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=xl(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),f=ks(t,(l=ys(new Wr(0,[]),ws(`${xs(e)}/partners/${nt(n)}/accounts${c}`)),o==null?l:Xl(new Kl("token",o),l)));return F.Bind(f,u=>{const p=u;if(p.tag===1)return F.Return(new h(1,[p.fields[0]]));{const d=p.fields[0];if(d.statusCode===200){const m=bs(oe(vs(Bd(),new Zr(1,[]))),d.responseText);return F.Return(m)}else return F.Return(new h(1,["Unexpected response from backend"]))}})})}function fm(e,t){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),g("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const dm=Lr(fm);class Oe extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function hm(e,t,n){let r,o;return g("li",M(v([["key",e],["className","flex"],(r=[g("div",M(v([["className","flex items-center"],(o=Ke(R(()=>{let s;return Z(n?Io():V((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},g(dm,s))),R(()=>V(g("a",M(Ke(R(()=>Z(V(["children",e]),R(()=>Z(t!=null?V(["href",I(k(t))]):Io(),R(()=>V(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",$.Children.toArray(Array.from(o))])])))],["children",$.Children.toArray(Array.from(r))])])))}function pm(e){let t,n;return g("nav",M(v([["className","pt-2"],["aria-label","Breadcrumb"],(t=[g("ol",M(v([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=wf((r,o)=>hm(o.fields[0][0],o.fields[0][1],r===0),e),["children",$.Children.toArray(Array.from(n))])])))],["children",$.Children.toArray(Array.from(t))])])))}function wc(){return new Oe(["Partners",E(new C(0,[]))])}function yc(e,t){return new Oe([t,E(new C(1,[e]))])}function mm(e){return new Oe(["Super",E(new C(4,[e]))])}function gm(e){return new Oe(["Benefits",E(new C(5,[e]))])}function _m(e){return new Oe(["Bank Details",E(new C(6,[e]))])}function wm(e){return new Oe(["Directory",E(new C(2,[e]))])}function ym(e){return new Oe(["Accounts",E(new C(3,[e]))])}function bm(e){return new Oe([e,void 0])}function vm(e,t){let n;return new Oe(["Directory",E((n=[e,t],new C(8,[n[0],n[1]])))])}function Cm(e,t){let n;return new Oe(["Imports",E((n=[e,t],new C(9,[n[0],n[1]])))])}function xm(e,t){let n;return new Oe(["Super",E((n=[e,t],new C(10,[n[0],n[1]])))])}function km(e,t){let n;return new Oe(["Benefits",E((n=[e,t],new C(11,[n[0],n[1]])))])}function Sm(e,t){let n;return new Oe(["Bank Details",E((n=[e,t],new C(12,[n[0],n[1]])))])}function Em(e,t){let n;return new Oe(["Salary Packaging",E((n=[e,t],new C(13,[n[0],n[1]])))])}function er(e){let t,n;const r=e.partner;if(r==null)n="...";else{const p=r,d=p.Name;n=d.tag===2?d.fields[0].tag===1?Ti(p.Id):ko(d.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const p=s,d=p.Name;o=d.tag===2?d.fields[0].tag===1?Lf(p.Id):ko(d.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,f,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,f=a),c){case 0:{i=v([wc(),yc(f.Id,n),ym(f.Id),bm(o)]);break}case 1:{i=v([wc(),yc(u.Id,n)]);break}default:i=ce()}return pm((t=e.page,t.tag===14||t.tag===1||t.tag===3?i:t.tag===4?Ae(i,j(mm(t.fields[0]))):t.tag===5?Ae(i,j(gm(t.fields[0]))):t.tag===6?Ae(i,j(_m(t.fields[0]))):t.tag===2?Ae(i,j(wm(t.fields[0]))):t.tag===7?i:t.tag===8?Ae(i,j(vm(t.fields[0],t.fields[1]))):t.tag===9?Ae(i,j(Cm(t.fields[0],t.fields[1]))):t.tag===10?Ae(i,j(xm(t.fields[0],t.fields[1]))):t.tag===11?Ae(i,j(km(t.fields[0],t.fields[1]))):t.tag===12?Ae(i,j(Sm(t.fields[0],t.fields[1]))):t.tag===13?Ae(i,j(Em(t.fields[0],t.fields[1]))):i))}class Am extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function Im(e){return new Am(e)}function Tm(e){return e.fields[0]}function A(e,t){const n=(t!=null?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return Im(g("a",M(Ke(R(()=>Z(V(["key",e]),R(()=>Z(V(["children",e]),R(()=>Z(V(["className",n]),R(()=>t!=null?V(["href",I(j(k(t)))]):Io())))))))))))}function bc(e){let t,n;return g("div",M(v([["className","border-b border-gray-200"],(t=[g("nav",M(v([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=de(Tm,e),["children",$.Children.toArray(Array.from(n))])])))],["children",$.Children.toArray(Array.from(t))])])))}let en=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class $m{constructor(t){this.props=t}}function Nm(e){return new $m(e)}function vc(e){return t=>n=>F.Delay(()=>{const r=Cs(e.props.partnerId);return F.Bind(Ss(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new en(2,[new J(2,[o])])),F.Zero()))})}function Mm(e){return t=>n=>r=>F.Delay(()=>{const o=Cs(e.props.partnerId);return F.Bind(Ss(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new en(3,[s])),F.Zero()))})}function Dm(e,t,n){return Ss(e.props.backendUrl,e.props.accessToken,Cs(e.props.partnerId),t,void 0)}let In=class extends ie{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function Pm(){return[new In(new J(0,[]),mp,hp,wp(20)),kt()]}function Om(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new In(new J(1,[]),n.SearchText,a,n.PageSize),xe(l=>{const c=new fs(n.SearchText,a,n.PageSize);bn(vc(e)(c)(l))})]}case 2:return[new In(t.fields[0],n.SearchText,n.Sort,n.PageSize),kt()];case 3:{const a=t.fields[0];return[new In((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new J(2,[new h(1,[o.fields[0]])]):new J(2,[new h(0,[new Ji(Ae(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new J(2,[new h(1,[s.fields[0]])]):new J(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new J(2,[new h(1,[i.fields[0]])]):new J(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),kt()]}case 4:return[new In(new J(1,[]),n.SearchText,n.Sort,n.PageSize),xe(a=>{const l=new fs(n.SearchText,n.Sort,n.PageSize);bn(vc(e)(l)(a))})];default:return[new In(n.Data,gp(t.fields[0]),n.Sort,n.PageSize),kt()]}}function Cc(e,t,n,r){let o,s;return g("div",M(v([["className",z(" ",["flex-grow","max-w-md"])],(o=[g("label",{for:"search",children:"Search",className:z(" ",["block","text-sm","font-medium","text-gray-700"])}),g("div",M(v([["className","mt-1"],(s=[g("input",{id:"search",name:"search",type:"text",className:z(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",$.Children.toArray(Array.from(s))])])))],["children",$.Children.toArray(Array.from(o))])])))}function Rm(e){let t,n;return g("div",M(v([["className","pt-6"],(t=[g("div",M(v([["className",z(" ",["flex","justify-end"])],(n=[g("button",{type:"search",children:"Search",className:z(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",$.Children.toArray(Array.from(n))])])))],["children",$.Children.toArray(Array.from(t))])])))}class Fm extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function xc(e){return new Fm(e)}function kc(e){return e.fields[0]}class Lm extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function Tn(e){return new Lm(e)}function Sc(e){return e.fields[0]}function Vm(){return["scope","col"]}function tn(e){return xc(g("th",M(v([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],Vm(),["children",e]]))))}function Bm(e,t){let n;return Tn(g("td",M(v([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[g("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",$.Children.toArray(Array.from(n))])]))))}function Kr(e,t){return Tn(g("td",{className:z(" ",Z(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function Um(e,t){let n,r,o,s,i,a,l;return g("div",M(v([["className","flex flex-col mt-4"],(n=[g("div",M(v([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[g("div",M(v([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[g("div",M(v([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[g("table",M(v([["className","min-w-full divide-y divide-gray-200"],(i=[g("thead",{className:"bg-gray-50",children:(a=de(kc,e),g("tr",{children:$.Children.toArray(Array.from(a))}))}),(l=Pi((c,f)=>(u=>{let p;return g("tr",M(v([["className",c%2===0?"bg-white":"bg-gray-50"],(p=de(Sc,u),["children",$.Children.toArray(Array.from(p))])])))})(f),t),g("tbody",{children:$.Children.toArray(Array.from(l))}))],["children",$.Children.toArray(Array.from(i))])])))],["children",$.Children.toArray(Array.from(s))])])))],["children",$.Children.toArray(Array.from(o))])])))],["children",$.Children.toArray(Array.from(r))])])))],["children",$.Children.toArray(Array.from(n))])])))}function Ec(e){return["fillRule",e]}function Ac(e){return["clipRule",e]}const Hm=g("svg",M(v([["className",z(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(g("path",M(v([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Ec("evenodd"),Ac("evenodd")]))));return["children",$.Children.toArray(Array.from(t))]})()]))),jm=g("svg",M(v([["className",z(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(g("path",M(v([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Ec("evenodd"),Ac("evenodd")]))));return["children",$.Children.toArray(Array.from(t))]})()])));function zm(e,t,n){return e?Ae(n,t):n}function Ic(e,t,n,r){let o,s,i;return xc(g("th",M(v([["className",z(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[g("a",M(v([["className",z(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,g("span",M(v([["className",z(" ",zm(!e,j("invisible"),v(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=Ke(R(()=>V(t?Hm:jm))),["children",$.Children.toArray(Array.from(i))])])))],["children",$.Children.toArray(Array.from(s))])])))],["children",$.Children.toArray(Array.from(o))])]))))}function Gm(e,t){return Ic(ge(wl(e.Sort),new St(1,[])),ge(yl(e.Sort),new Xt(0,[])),n=>{t(new en(1,[bl(new St(1,[]),e.Sort)]))},"Name")}function Wm(e,t){return Ic(ge(wl(e.Sort),new St(0,[])),ge(yl(e.Sort),new Xt(0,[])),n=>{t(new en(1,[bl(new St(0,[]),e.Sort)]))},"Id")}function qm(e,t){let n;return Tn(g("td",M(v([["className",z(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[g("span",{children:[e]}),g("br",{}),g("span",{children:[t]})],["children",$.Children.toArray(Array.from(n))])]))))}function Zm(e,t,n){let r;return Tn(g("td",M(v([["className",z(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=Ke(R(()=>{let o;return Z(V(g("div",M(v([["className",z(" ",["font-medium"])],(o=[g("span",{children:[e]})],["children",$.Children.toArray(Array.from(o))])])))),R(()=>{let s;return Z((s=t,s==null?V(ne()):V(g("span",{children:["Legal Entity: "+s]}))),R(()=>{const i=n;if(i==null)return V(ne());{const a=i;return Z(V(g("br",{})),R(()=>V(g("span",{children:["ABN: "+a]}))))}}))}))})),["children",$.Children.toArray(Array.from(r))])]))))}function Km(e){return Tn(g("td",{className:z(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function Jm(e,t,n,r){let o;return Tn(g("td",M(v([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=Ke(R(()=>Z(V(g("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),R(()=>{let s,i;return Z((s=r,s==null?V(ne()):(i=s,Z(V(g("br",{})),R(()=>V(g("span",{children:[`Channel ID: ${i}`]})))))),R(()=>{const a=n;if(a==null)return V(ne());{const l=a;return Z(V(g("br",{})),R(()=>V(g("span",{children:[`External ID: ${l}`]}))))}}))})))),["children",$.Children.toArray(Array.from(o))])]))))}function Ym(e,t){const n=Dt(t.AccountId);return Ke(R(()=>{let r;return Z(V(Jm(I(E((r=[e,n],new C(7,[r[0],r[1]])))),t.AccountId,t.ExternalId,t.ChannelId)),R(()=>Z(V(Zm(t.Name,t.BusinessName,t.BusinessNumber)),R(()=>Z(V(qm(t.Contact,t.ContactMobilePhone)),R(()=>V(Km(t.Website))))))))}))}class Xm extends ie{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class Tc extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class $c extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function Qm(e){let t;return g("thead",{className:"bg-gray-50",children:(t=de(kc,e),g("tr",{children:$.Children.toArray(Array.from(t))}))})}function eg(e,t){let n;return g("tr",M(v([["className",e%2===0?"bg-white":"bg-gray-50"],(n=de(Sc,t),["children",$.Children.toArray(Array.from(n))])])))}function tg(e,t,n,r,o,s){let i,a,l,c,f,u,p;const d=t!=null&&n!=null?(i=t|0,a=n|0,Ke(R(()=>Z(V("Showing "),R(()=>Z(V(g("span",{className:"font-medium",children:`${i}`})),R(()=>Z(V(" to "),R(()=>Z(V(g("span",{className:"font-medium",children:`${a}`})),R(()=>Z(V(" of "),R(()=>r.tag===1?j(" many"):v([g("span",{className:"font-medium",children:Se(r.fields[0])})," results"])))))))))))))):j(ne()),m=Ke(R(()=>{let b,w;return Z((b=s,b==null?V(ne()):(w=b,V(g("a",{className:z(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:w,children:"Previous "})))),R(()=>{const y=o;if(y==null)return V(ne());{const x=y;return V(g("a",{className:z(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:x,children:" Next"}))}}))}));return g("tfoot",M(v([["className",z(" ",["w-full"])],(l=[g("tr",M(j((c=[g("td",M(v([["colSpan",e],(f=[g("nav",M(v([["className",z(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[g("div",M(v([["className",z(" ",["hidden","sm:block"])],(p=[g("p",{className:z(" ",["text-sm","text-gray-700"]),children:$.Children.toArray(Array.from(d))})],["children",$.Children.toArray(Array.from(p))])]))),g("div",{className:z(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:$.Children.toArray(Array.from(m))})],["children",$.Children.toArray(Array.from(u))])])))],["children",$.Children.toArray(Array.from(f))])])))],["children",$.Children.toArray(Array.from(c))]))))],["children",$.Children.toArray(Array.from(l))])])))}function ng(e,t){const n=Vr(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;Xu(ft("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function rg(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,f=Sf(a,i.Data),u=ng(fn(f),i.LoadNext),p=u[0]|0,d=u[1];let m;const b=vf(p-1,f);m=b==null?new Tc(1,[]):new Tc(0,[b]);const w=fn(i.Data)|0,y=i.LoadNext==null?new $c(0,[w]):new $c(1,[]),x=m.tag===1?void 0:w>=1?(p-1)*a+1:void 0,S=m.tag===1?void 0:w>=1?(p-1)*a+fn(m.fields[0]):void 0,P=p===1?void 0:u[2],W=p===fn(f)?i.LoadNext!=null?d:void 0:p<fn(f)?d:void 0;return g("div",M(v([["className","flex flex-col mt-4"],(t=[g("div",M(v([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[g("div",M(v([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[g("div",M(v([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[g("table",M(v([["className","min-w-full divide-y divide-gray-200"],(s=Ke(R(()=>Z(V(Qm(c)),R(()=>{let se,me;return Z((se=m,se.tag===1?V(ne()):V((me=Pi(eg,l(se.fields[0])),g("tbody",{children:$.Children.toArray(Array.from(me))})))),R(()=>V(tg(fn(c),x,S,y,W,P))))})))),["children",$.Children.toArray(Array.from(s))])])))],["children",$.Children.toArray(Array.from(o))])])))],["children",$.Children.toArray(Array.from(r))])])))],["children",$.Children.toArray(Array.from(n))])])))],["children",$.Children.toArray(Array.from(t))])])))}function nn(e){const t=e.error,n=j(g("span",{children:[t]}));return g("div",{children:$.Children.toArray(Array.from(n))})}function Jr(){const e=j(g("span",{children:["Please wait..."]}));return g("div",{children:$.Children.toArray(Array.from(e))})}function og(e){let t,n,r,o,s,i,a;const l=Nm(e),c=Zl(()=>zl(Pm,(S,P)=>Om(l,S,P),(S,P)=>{}),void 0,void 0),f=c[0],u=c[1],p=new fs(f.SearchText,f.Sort,f.PageSize);as((t=[()=>Dm(l,p),S=>{u(new en(2,[S]))}],hl(t[0],t[1])));const d=S=>{u(new en(4,[]))},m=f.Data;let b,w,y,x;switch(m.tag){case 0:case 1:{b=2;break}case 3:{b=3,x=m.fields[0];break}default:m.fields[0].tag===1?(b=1,y=m.fields[0].fields[0]):(b=0,w=m.fields[0].fields[0])}switch(b){case 0:{const S=v([g("div",M(v([["className",z(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(n=[g("div",M(v([["className",z(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[Cc(Cl(f.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",P=>{u(new en(0,[P]))},d),Rm(d)],["children",$.Children.toArray(Array.from(r))])])))],["children",$.Children.toArray(Array.from(n))])]))),(o=w,s=v([Wm(f,u),Gm(f,u),tn("Contact"),tn("Website")]),i=new Xm(o.Accounts,ht(P=>()=>{bn(Mm(l)(p)(P)(u))},o.Token)),a=xl(f.PageSize)|0,g(rg,{columnHeaders:s,renderRowCells:P=>Un(W=>Ym(e.partnerId,W),P),pageSize:a,data:i}))]);return g("div",{children:$.Children.toArray(Array.from(S))})}case 1:return g(nn,{error:y});case 2:return g(Jr,null);default:{const S=Se(x);return g(nn,{error:S})}}}let Yr=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Nc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new Yr(1,[t]),new Yr(0,[n]),new Yr(2,[_t(o)]),ht(i=>new Yr(3,[wt(i)]),r)]);return g("superhero-super-configuration",zt(s,1))}let Xr=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Mc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new Xr(1,[t]),new Xr(0,[n]),new Xr(2,[_t(o)]),ht(i=>new Xr(3,[wt(i)]),r)]);return g("superhero-benefits-onboarding-configuration",zt(s,1))}let Qr=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Dc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new Qr(1,[t]),new Qr(0,[n]),new Qr(2,[_t(o)]),ht(i=>new Qr(3,[wt(i)]),r)]);return g("superhero-bank-details",zt(s,1))}let eo=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Pc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new eo(1,[t]),new eo(0,[n]),new eo(2,[_t(o)]),ht(i=>new eo(3,[wt(i)]),r)]);return g("superhero-profile-directory-app",zt(s,1))}var sg=Object.defineProperty,ig=(e,t,n)=>t in e?sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Es=(e,t,n)=>(ig(e,typeof t!="symbol"?t+"":t,n),n);let ag=class{constructor(){Es(this,"current",this.detect()),Es(this,"handoffState","pending"),Es(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},to=new ag,tr=(e,t)=>{to.isServer?ye(e,t):Ot(e,t)};function $n(e){let t=Ie(e);return tr(()=>{t.current=e},[e]),t}let Et=function(e){let t=$n(e);return Be.useCallback((...n)=>t.current(...n),[t])};function lg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function nr(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return lg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=nr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Oc(){let[e]=Ge(nr);return ye(()=>()=>e.dispose(),[e]),e}function cg(){let e=typeof document>"u";return"useSyncExternalStore"in is?(t=>t.useSyncExternalStore)(is)(()=>()=>{},()=>!1,()=>!e):!1}function Rc(){let e=cg(),[t,n]=Ge(to.isHandoffComplete);return t&&to.isHandoffComplete===!1&&n(!1),ye(()=>{t!==!0&&n(!0)},[t]),ye(()=>to.handoff(),[]),e?!1:t}function rt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,rt),r}let ug=Symbol();function Fc(...e){let t=Ie(e);ye(()=>{t.current=e},[e]);let n=Et(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ug]))?void 0:n}function no(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Lc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Lc||{}),Rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Rt||{});function Vc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??fg;let l=Bc(t,e);if(s)return ro(l,n,r,i,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return ro(u,n,r,i,a)}if(c&1){let{unmount:f=!0,...u}=l;return rt(f?0:1,{0(){return null},1(){return ro({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return ro(l,n,r,i,a)}function ro(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...l}=Is(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let p=!1,d=[];for(let[m,b]of Object.entries(t))typeof b=="boolean"&&(p=!0),b===!0&&d.push(m);p&&(u["data-headlessui-state"]=d.join(" "))}if(s===Ce&&Object.keys(Uc(l)).length>0){if(!yn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(b=>` - ${b}`).join(`
|
|
33
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(`
|
|
34
|
+
`)].join(`
|
|
35
|
+
`));let p=f.props,d=typeof(p==null?void 0:p.className)=="function"?(...b)=>no(p==null?void 0:p.className(...b),l.className):no(p==null?void 0:p.className,l.className),m=d?{className:d}:{};return Qo(f,Object.assign({},Bc(f.props,Uc(Is(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},m))}return g(s,Object.assign({},Is(l,["ref"]),s!==Ce&&c,s!==Ce&&u),f)}function fg(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Bc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function As(e){var t;return Object.assign(Lr(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Uc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Is(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ts=Zn(null);Ts.displayName="OpenClosedContext";var At=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(At||{});function Hc(){return Jt(Ts)}function dg({value:e,children:t}){return Be.createElement(Ts.Provider,{value:e},t)}function $s(){let e=Ie(!1);return tr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function hg(e=0){let[t,n]=Ge(e),r=$s(),o=Kt(l=>{r.current&&n(c=>c|l)},[t,r]),s=Kt(l=>!!(t&l),[t]),i=Kt(l=>{r.current&&n(c=>c&~l)},[n,r]),a=Kt(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function pg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ns(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ms(e,...t){e&&t.length>0&&e.classList.remove(...t)}function mg(e,t){let n=nr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function gg(e,t,n,r){let o=n?"enter":"leave",s=nr(),i=r!==void 0?pg(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=rt(o,{enter:()=>t.enter,leave:()=>t.leave}),l=rt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=rt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ms(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ns(e,...t.base,...a,...c),s.nextFrame(()=>{Ms(e,...t.base,...a,...c),Ns(e,...t.base,...a,...l),mg(e,()=>(Ms(e,...t.base,...a),Ns(e,...t.base,...t.entered),i()))}),s.dispose}function _g({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=$s(),a=Oc(),l=$n(n);tr(()=>{e&&(l.current="enter")},[e]),tr(()=>{let c=nr();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&i.current)return c.dispose(),o.current(l.current),c.add(gg(f,r.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function Ft(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let oo=Zn(null);oo.displayName="TransitionContext";var wg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(wg||{});function yg(){let e=Jt(oo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function bg(){let e=Jt(so);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let so=Zn(null);so.displayName="NestingContext";function io(e){return"children"in e?io(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function jc(e,t){let n=$n(e),r=Ie([]),o=$s(),s=Oc(),i=Et((d,m=Rt.Hidden)=>{let b=r.current.findIndex(({el:w})=>w===d);b!==-1&&(rt(m,{[Rt.Unmount](){r.current.splice(b,1)},[Rt.Hidden](){r.current[b].state="hidden"}}),s.microTask(()=>{var w;!io(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=Et(d=>{let m=r.current.find(({el:b})=>b===d);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:d,state:"visible"}),()=>i(d,Rt.Unmount)}),l=Ie([]),c=Ie(Promise.resolve()),f=Ie({enter:[],leave:[],idle:[]}),u=Et((d,m,b)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([w])=>w!==d)),t==null||t.chains.current[m].push([d,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[m].push([d,new Promise(w=>{Promise.all(f.current[m].map(([y,x])=>x)).then(()=>w())})]),m==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(m)):b(m)}),p=Et((d,m,b)=>{Promise.all(f.current[m].splice(0).map(([w,y])=>y)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>b(m))});return Zt(()=>({children:r,register:a,unregister:i,onStart:u,onStop:p,wait:c,chains:f}),[a,i,r,u,p,f,c])}function vg(){}let Cg=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function zc(e){var t;let n={};for(let r of Cg)n[r]=(t=e[r])!=null?t:vg;return n}function xg(e){let t=Ie(zc(e));return ye(()=>{t.current=zc(e)},[e]),t}let kg="div",Gc=Lc.RenderStrategy;function Sg(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:p,leaveFrom:d,leaveTo:m,...b}=e,w=Ie(null),y=Fc(w,t),x=(n=b.unmount)==null||n?Rt.Unmount:Rt.Hidden,{show:S,appear:P,initial:W}=yg(),[se,me]=Ge(S?"visible":"hidden"),Re=bg(),{register:te,unregister:ke}=Re;ye(()=>te(w),[te,w]),ye(()=>{if(x===Rt.Hidden&&w.current){if(S&&se!=="visible"){me("visible");return}return rt(se,{hidden:()=>ke(w),visible:()=>te(w)})}},[se,w,te,ke,S,x]);let ot=$n({base:Ft(b.className),enter:Ft(l),enterFrom:Ft(c),enterTo:Ft(f),entered:Ft(u),leave:Ft(p),leaveFrom:Ft(d),leaveTo:Ft(m)}),st=xg({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),Tt=Rc();ye(()=>{if(Tt&&se==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,se,Tt]);let sr=W&&!P,Mn=P&&S&&W,ir=!Tt||sr?"idle":S?"enter":"leave",$t=hg(0),ar=Et(We=>rt(We,{enter:()=>{$t.addFlag(At.Opening),st.current.beforeEnter()},leave:()=>{$t.addFlag(At.Closing),st.current.beforeLeave()},idle:()=>{}})),lr=Et(We=>rt(We,{enter:()=>{$t.removeFlag(At.Opening),st.current.afterEnter()},leave:()=>{$t.removeFlag(At.Closing),st.current.afterLeave()},idle:()=>{}})),Lt=jc(()=>{me("hidden"),ke(w)},Re),on=Ie(!1);_g({immediate:Mn,container:w,classes:ot,direction:ir,onStart:$n(We=>{on.current=!0,Lt.onStart(w,We,ar)}),onStop:$n(We=>{on.current=!1,Lt.onStop(w,We,lr),We==="leave"&&!io(Lt)&&(me("hidden"),ke(w))})});let it=b,cr={ref:y};return Mn?it={...it,className:no(b.className,...ot.current.enter,...ot.current.enterFrom)}:on.current&&(it.className=no(b.className,(r=w.current)==null?void 0:r.className),it.className===""&&delete it.className),Be.createElement(so.Provider,{value:Lt},Be.createElement(dg,{value:rt(se,{visible:At.Open,hidden:At.Closed})|$t.flags},Vc({ourProps:cr,theirProps:it,defaultTag:kg,features:Gc,visible:se==="visible",name:"Transition.Child"})))}function Eg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=Ie(null),a=Fc(i,t);Rc();let l=Hc();if(n===void 0&&l!==null&&(n=(l&At.Open)===At.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=Ge(n?"visible":"hidden"),u=jc(()=>{f("hidden")}),[p,d]=Ge(!0),m=Ie([n]);tr(()=>{p!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),d(!1))},[m,n]);let b=Zt(()=>({show:n,appear:r,initial:p}),[n,r,p]);ye(()=>{if(n)f("visible");else if(!io(u))f("hidden");else{let S=i.current;if(!S)return;let P=S.getBoundingClientRect();P.x===0&&P.y===0&&P.width===0&&P.height===0&&f("hidden")}},[n,u]);let w={unmount:o},y=Et(()=>{var S;p&&d(!1),(S=e.beforeEnter)==null||S.call(e)}),x=Et(()=>{var S;p&&d(!1),(S=e.beforeLeave)==null||S.call(e)});return Be.createElement(so.Provider,{value:u},Be.createElement(oo.Provider,{value:b},Vc({ourProps:{...w,as:Ce,children:Be.createElement(Wc,{ref:a,...w,...s,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:Ce,features:Gc,visible:c==="visible",name:"Transition"})))}function Ag(e,t){let n=Jt(oo)!==null,r=Hc()!==null;return Be.createElement(Be.Fragment,null,!n&&r?Be.createElement(Ds,{ref:t,...e}):Be.createElement(Wc,{ref:t,...e}))}let Ds=As(Eg),Wc=As(Sg),Ig=As(Ag),Tg=Object.assign(Ds,{Child:Ig,Root:Ds}),It=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function $g(e){const t=zt(e,1);return g(Tg,t)}function ao(e,t){let n;return g("div",M(v([["className","px-4 py-4 sm:px-0"],(n=[g("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),Ze(ht(r=>g("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),ne())],["children",$.Children.toArray(Array.from(n))])])))}function _e(e,t){let n;return g("div",M(v([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[g("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),g("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",$.Children.toArray(Array.from(n))])])))}function Ps(e){let t,n;const r=e.value,o=e.label,s=Vr(!1),i=s[0],a=s[1];return wh(()=>{bn(F.Delay(()=>i?F.Bind(Nh(2e3),()=>(a(!1),F.Zero())):F.Zero()))}),g("div",M(v([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[g("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),g("dd",M(v([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[$g(v([new It(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new It(2,[i]),new It(4,["transition-opacity ease-in duration-100"]),new It(5,["opacity-0"]),new It(6,["opacity-90"]),new It(7,["transition-opacity ease-out duration-500"]),new It(8,["opacity-90"]),new It(9,["opacity-0"]),new It(10,[[g("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),g("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",$.Children.toArray(Array.from(n))]),["onClick",l=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",$.Children.toArray(Array.from(t))])])))}function lo(e,t){let n;const r=v([e,g("div",M(v([["className","mt-2 border-b border-gray-200"],(n=[g("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:$.Children.toArray(Array.from(t))})],["children",$.Children.toArray(Array.from(n))])])))]);return g("div",{children:$.Children.toArray(Array.from(r))})}function Ng(e){let t,n,r,o,s,i;return lo(ao("Partner Information",void 0),v([(t=["ID",nt(e.StreamId)],g(Ps,{label:t[0],value:t[1]})),(n=["Name",$r(e.Name)],_e(n[0],n[1])),(r=["Contact",`${Wi(e.ContactDetails.FirstName)} ${qi(e.ContactDetails.LastName)}`],_e(r[0],r[1])),(o=["Phone",Zi(e.ContactDetails.MobilePhone)],_e(o[0],o[1])),(s=["Website",Gi(e.Website)],_e(s[0],s[1])),(i=["Notes",Ze(Nd(e.Notes),"")],_e(i[0],i[1]))]))}let Nn=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory"]}};class Mg extends ie{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Dg extends ie{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Pg extends ie{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Og extends ie{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function Rg(e){let t,n,r,o,s,i;return bc(e.tag===1?(t=e.fields[0],v([A("Details",I(E(new C(1,[t.partnerId])))),A("Accounts",void 0),A("Super",I(E(new C(4,[t.partnerId])))),A("Benefits",I(E(new C(5,[t.partnerId])))),A("Bank Details",I(E(new C(6,[t.partnerId])))),A("Directory",I(E(new C(2,[t.partnerId]))))])):e.tag===2?(n=e.fields[0].PartnerId,v([A("Details",I(E(new C(1,[n])))),A("Accounts",I(E(new C(3,[n])))),A("Super",void 0),A("Benefits",I(E(new C(5,[n])))),A("Bank Details",I(E(new C(6,[n])))),A("Directory",I(E(new C(2,[n]))))])):e.tag===3?(r=e.fields[0].PartnerId,v([A("Details",I(E(new C(1,[r])))),A("Accounts",I(E(new C(3,[r])))),A("Super",I(E(new C(4,[r])))),A("Benefits",void 0),A("Bank Details",I(E(new C(6,[r])))),A("Directory",I(E(new C(2,[r]))))])):e.tag===4?(o=e.fields[0].PartnerId,v([A("Details",I(E(new C(1,[o])))),A("Accounts",I(E(new C(3,[o])))),A("Super",I(E(new C(4,[o])))),A("Benefits",I(E(new C(5,[o])))),A("Bank Details",void 0),A("Directory",I(E(new C(2,[o]))))])):e.tag===5?(s=e.fields[0].PartnerId,v([A("Details",I(E(new C(1,[s])))),A("Accounts",I(E(new C(3,[s])))),A("Super",I(E(new C(4,[s])))),A("Benefits",I(E(new C(5,[s])))),A("Bank Details",I(E(new C(6,[s])))),A("Directory",void 0)])):(i=e.fields[0],v([A("Details",void 0),A("Accounts",I(E(new C(3,[he(nt(i.StreamId))])))),A("Super",I(E(new C(4,[he(nt(i.StreamId))])))),A("Benefits",I(E(new C(5,[he(nt(i.StreamId))])))),A("Bank Details",I(E(new C(6,[he(nt(i.StreamId))])))),A("Directory",I(E(new C(2,[he(nt(i.StreamId))]))))])))}function Fg(e){switch(e.tag){case 1:{const t=e.fields[0];return g(og,{accessToken:t.accessToken,backendUrl:t.backendUrl,partnerId:t.partnerId})}case 2:return g(Nc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return g(Mc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return g(Dc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return g(Pc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return g(Ng,e.fields[0])}}function qc(e){let t;const n=e.mode;return g("div",M(j((t=[Rg(n),Fg(n)],["children",$.Children.toArray(Array.from(t))]))))}let co=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Lg(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=hn(i=>i,[new co(1,[t]),new co(0,[n]),new co(2,[_t(o)]),ht(i=>new co(3,[wt(i)]),r)]);return g("superhero-import-app",zt(s,1))}class Os extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function Vg(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=hn(s=>s,[new Os(1,[t]),new Os(0,[n]),ht(s=>new Os(2,[wt(s)]),r)]);return g("superhero-salpac-profile-admin",zt(o,1))}function Bg(e){let t,n,r,o,s,i,a;return lo(ao("Account Information",void 0),v([(t=["ID",e.StreamId],g(Ps,{label:t[0],value:t[1]})),(n=["Name",e.Name],g(Ps,{label:n[0],value:n[1]})),(r=["External ID",Ze(e.ExternalId,"")],_e(r[0],r[1])),(o=["Channel ID",Ze(e.ChannelId,"")],_e(o[0],o[1])),(s=["Contact",`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`],_e(s[0],s[1])),(i=["Phone",e.ContactDetails.MobilePhone],_e(i[0],i[1])),(a=["Email",e.ContactDetails.Email],_e(a[0],a[1]))]))}function Ug(e){let t,n,r,o,s,i,a;if(e==null)return ne();{const l=e;return lo(ao("Legal Entity",void 0),v([(t=["Business Name",l.BusinessName],_e(t[0],t[1])),(n=["Business Number",l.BusinessNumber],_e(n[0],n[1])),(r=["Address Line 1",l.Address1],_e(r[0],r[1])),(o=["Address Line 2",Ze(l.Address2,"")],_e(o[0],o[1])),(s=["City",l.City],_e(s[0],s[1])),(i=["State",Ze(l.State,"")],_e(i[0],i[1])),(a=["Postcode",l.Postcode],_e(a[0],a[1]))]))}}function Hg(e){let t;if(e==null)return ne();{const n=e;return lo(ao("Legal Entity",void 0),j((t=["Notes",n],_e(t[0],t[1]))))}}function jg(e){const t=v([Bg(e),Ug(e.LegalEntity),Hg(e.Notes)]);return g("div",{children:$.Children.toArray(Array.from(t))})}class rn extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration"]}}function zg(e,t,n){let r,o,s,i,a,l,c,f,u,p,d,m,b,w,y,x,S,P,W,se,me,Re,te,ke,ot,st,Tt,sr,Mn,ir,$t,ar,lr,Lt,on,it,cr,We,Fs,Ls,Vs,Bs;const B=[e,t];return bc(n.tag===1?v([A("Details",I(E((r=B,new C(7,[r[0],r[1]]))))),A("Directory",void 0),A("Imports",I(E((o=B,new C(9,[o[0],o[1]]))))),A("Super",I(E((s=B,new C(10,[s[0],s[1]]))))),A("Benefits",I(E((i=B,new C(11,[i[0],i[1]]))))),A("Bank Details",I(E((a=B,new C(12,[a[0],a[1]]))))),A("Salary Packaging",I(E((l=B,new C(13,[l[0],l[1]])))))]):n.tag===2?v([A("Details",I(E((c=B,new C(7,[c[0],c[1]]))))),A("Directory",I(E((f=B,new C(8,[f[0],f[1]]))))),A("Imports",void 0),A("Super",I(E((u=B,new C(10,[u[0],u[1]]))))),A("Benefits",I(E((p=B,new C(11,[p[0],p[1]]))))),A("Bank Details",I(E((d=B,new C(12,[d[0],d[1]]))))),A("Salary Packaging",I(E((m=B,new C(13,[m[0],m[1]])))))]):n.tag===3?v([A("Details",I(E((b=B,new C(7,[b[0],b[1]]))))),A("Directory",I(E((w=B,new C(8,[w[0],w[1]]))))),A("Imports",I(E((y=B,new C(9,[y[0],y[1]]))))),A("Super",void 0),A("Benefits",I(E((x=B,new C(11,[x[0],x[1]]))))),A("Bank Details",I(E((S=B,new C(12,[S[0],S[1]]))))),A("Salary Packaging",I(E((P=B,new C(13,[P[0],P[1]])))))]):n.tag===4?v([A("Details",I(E((W=B,new C(7,[W[0],W[1]]))))),A("Directory",I(E((se=B,new C(8,[se[0],se[1]]))))),A("Imports",I(E((me=B,new C(9,[me[0],me[1]]))))),A("Super",I(E((Re=B,new C(10,[Re[0],Re[1]]))))),A("Benefits",void 0),A("Bank Details",I(E((te=B,new C(12,[te[0],te[1]]))))),A("Salary Packaging",I(E((ke=B,new C(13,[ke[0],ke[1]])))))]):n.tag===5?v([A("Details",I(E((ot=B,new C(7,[ot[0],ot[1]]))))),A("Directory",I(E((st=B,new C(8,[st[0],st[1]]))))),A("Imports",I(E((Tt=B,new C(9,[Tt[0],Tt[1]]))))),A("Super",I(E((sr=B,new C(10,[sr[0],sr[1]]))))),A("Benefits",I(E((Mn=B,new C(11,[Mn[0],Mn[1]]))))),A("Bank Details",void 0),A("Salary Packaging",I(E((ir=B,new C(13,[ir[0],ir[1]])))))]):n.tag===6?v([A("Details",I(E(($t=B,new C(7,[$t[0],$t[1]]))))),A("Directory",I(E((ar=B,new C(8,[ar[0],ar[1]]))))),A("Imports",I(E((lr=B,new C(9,[lr[0],lr[1]]))))),A("Super",I(E((Lt=B,new C(10,[Lt[0],Lt[1]]))))),A("Benefits",I(E((on=B,new C(11,[on[0],on[1]]))))),A("Bank Details",I(E((it=B,new C(12,[it[0],it[1]]))))),A("Salary Packaging",void 0)]):v([A("Details",void 0),A("Directory",I(E((cr=B,new C(8,[cr[0],cr[1]]))))),A("Imports",I(E((We=B,new C(9,[We[0],We[1]]))))),A("Super",I(E((Fs=B,new C(10,[Fs[0],Fs[1]]))))),A("Benefits",I(E((Ls=B,new C(11,[Ls[0],Ls[1]]))))),A("Bank Details",I(E((Vs=B,new C(12,[Vs[0],Vs[1]]))))),A("Salary Packaging",I(E((Bs=B,new C(13,[Bs[0],Bs[1]])))))]))}function Gg(e,t,n){switch(t.tag){case 1:{const r=e.accountDetails;return g(Pc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const r=e.accountDetails;return g(Lg,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const r=e.accountDetails;return g(Nc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 4:{const r=e.accountDetails;return g(Mc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 5:{const r=e.accountDetails;return g(Dc,{partnerId:r[0],accountId:r[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 6:return g(Vg,{accountId:e.accountDetails[1],backendUrl:e.backendUrl,accessToken:e.accessToken});default:{let r,o,s;switch(n.tag){case 0:case 1:{r=2;break}case 3:{r=3,s=n.fields[0];break}default:n.fields[0].tag===0?(r=0,o=n.fields[0].fields[0]):r=1}switch(r){case 0:return g(jg,o);case 1:return g(nn,{error:"There was an error retrieving account "});case 2:return g(Jr,null);default:{const i=Se(s);return g(nn,{error:i})}}}}}function Wg(e){let t,n;const r=e.account,o=e.mode,s=e.props;return g("div",M(j((t=[(n=s.accountDetails,zg(n[0],n[1],o)),Gg(s,o,r)],["children",$.Children.toArray(Array.from(t))]))))}function qg(e,t){return Si(n=>{const r=e.toLocaleLowerCase();return nt(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:$r(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function Zg(e){const t=e.partnerList,n=kf(a=>$r(a.Name).toLocaleLowerCase(),t,{Compare:dr}),r=Vr(n),o=Vr(""),s=v([tn("ID"),tn("Name"),tn("Contact"),tn("Phone"),tn("Website")]),i=v([Cc(o[0],"Partner ID or Name",a=>{o[1](a),r[1](qg(a,n))},()=>{}),Um(s,Un(a=>{let l;const c=nt(a.StreamId);return v([(l=[I(E(new C(1,[he(c)]))),c],Bm(l[0],l[1])),Kr(["text-gray-500"],$r(a.Name)),Kr(["text-gray-500"],`${Wi(a.ContactDetails.FirstName)} ${qi(a.ContactDetails.LastName)}`),Kr(["text-gray-500"],Zi(a.ContactDetails.MobilePhone)),Kr(["text-gray-500"],Gi(a.Website))])},r[0]))]);return g("div",{children:$.Children.toArray(Array.from(i))})}const Kg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Jg=Se(Kg);function Rs(){return(Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Yg=["context","children"];function Xg(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)o.indexOf(s=l[i])>=0||(a[s]=r[s]);return a}(e,Yg);return zo(t,n)}function Qg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(Xg,Rs({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[Zc(a[i].name)]=a[i].value);for(i=l.length;i--;){var c=t(l[i],null),f=l[i].slot;f?s[f]=g(Kc,{name:f},c):o[i]=c}var u=r?g(Kc,null,o):o;return g(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?jo:Pt)(this._vdom,this._root)}function Zc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function e_(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Zc(e)]=n,this._vdom=zo(this._vdom,r),Pt(this._vdom,this._root)}}function t_(){Pt(this._vdom=null,this._root)}function Kc(e,t){var n=this;return g("slot",Rs({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function n_(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Qg,o.prototype.attributeChangedCallback=e_,o.prototype.disconnectedCallback=t_,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function r_(e,t){n_(e,t)}class rr extends ie{constructor(t,n,r){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r}}class or extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function o_(){const e=El(gl(window.location.hash,1)),t=e.tag===14?Al(new C(0,[])):kt();return[new rr(new J(0,[]),xp(),e),t]}function s_(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=Ip(e,r,s=>new or(2,[r,new h(0,[s])]),s=>new or(2,[r,new h(1,["Failed to retrieve account name"])]));return[new rr(n.Partners,kl(n.Accounts,r,new J(1,[])),n.CurrentPage),o]}case 2:return[new rr(n.Partners,kl(n.Accounts,t.fields[0],new J(2,[t.fields[1]])),n.CurrentPage),kt()];case 0:{const r=t.fields[0];return r.tag===14?[n,Al(r)]:[new rr(n.Partners,n.Accounts,r),kt()]}default:return[new rr(t.fields[0],n.Accounts,n.CurrentPage),kt()]}}function i_(e){let t,n;const r=Zl(()=>zl(o_,(y,x)=>s_(S=>{const P=Cp(S);return um(e.backendUrl,e.accessToken,P[0],P[1])},y,x),(y,x)=>{}),void 0,void 0),o=r[0],s=r[1];as(hl(()=>cm(e.backendUrl,e.accessToken),y=>{s(new or(3,[y]))}));const i=y=>{let x;const S=o.Partners;switch(S.tag){case 0:return new J(0,[]);case 1:return new J(1,[]);case 3:return new J(3,[S.fields[0]]);default:return S.fields[0].tag===1?new J(2,[new h(1,[dt(ui("Unknown partner: %A%P()",[y]))])]):new J(2,[(x=Sl(S.fields[0].fields[0],y),x==null?new h(1,[dt(ui("Unknown partner: %A%P()",[y]))]):new h(0,[x.Name]))])}},a=y=>g(er,{page:o.CurrentPage,partner:{Id:y,Name:i(y)}}),l=(y,x)=>{const S=g(qc,{mode:x});return[a(y),S]},c=(y,x)=>{let S,P,W;const se=y[0],me=y[1];let Re,te;const ke=[se,me];te=vp(ke[0],ke[1]),Re=sf(kp(o.Accounts,te),()=>(s(new or(1,[te])),new J(0,[])));let ot;const st={accessToken:e.accessToken,accountDetails:[se,me],backendUrl:e.backendUrl};return ot=g(Wg,{props:st,mode:x,account:Re}),[(S=[se,me,Re],P=S[0],g(er,(W={Id:P,Name:i(P)},{account:{Id:S[1],Name:Ap(Tt=>Ii(Tt.Name),S[2])},page:o.CurrentPage,partner:Co(W)}))),ot]};let f;const u=o.Partners;let p,d,m,b;switch(u.tag){case 2:{u.fields[0].tag===1?(p=2,m=u.fields[0].fields[0]):(p=1,d=u.fields[0].fields[0]);break}case 3:{p=3,b=u.fields[0];break}default:p=0}switch(p){case 0:{f=[g(Jr,null),g(Jr,null)];break}case 1:{const y=o.CurrentPage;switch(y.tag){case 1:{const x=y.fields[0],S=a(x),P=Sl(d,x);f=P==null?[S,g(nn,{error:"Unknown Partner"})]:[S,(t=new Nn(0,[P]),g(qc,{mode:t}))];break}case 3:{const x=y.fields[0];f=l(x,new Nn(1,[{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:x}]));break}case 4:{const x=y.fields[0];f=l(x,new Nn(2,[new Mg(x,e.backendUrl,e.accessToken)]));break}case 5:{const x=y.fields[0];f=l(x,new Nn(3,[new Dg(x,e.backendUrl,e.accessToken)]));break}case 6:{const x=y.fields[0];f=l(x,new Nn(4,[new Pg(x,e.backendUrl,e.accessToken)]));break}case 2:{const x=y.fields[0];f=l(x,new Nn(5,[new Og(x,e.backendUrl,e.accessToken)]));break}case 7:{f=c([y.fields[0],y.fields[1]],new rn(0,[]));break}case 8:{f=c([y.fields[0],y.fields[1]],new rn(1,[]));break}case 9:{f=c([y.fields[0],y.fields[1]],new rn(2,[]));break}case 10:{f=c([y.fields[0],y.fields[1]],new rn(3,[]));break}case 11:{f=c([y.fields[0],y.fields[1]],new rn(4,[]));break}case 12:{f=c([y.fields[0],y.fields[1]],new rn(5,[]));break}case 13:{f=c([y.fields[0],y.fields[1]],new rn(6,[]));break}default:f=[g(er,{page:o.CurrentPage}),g(Zg,{partnerList:d})]}break}case 2:{f=[g(er,{page:o.CurrentPage}),g(nn,{error:m})];break}default:f=[g(er,{page:o.CurrentPage}),(n=Se(b),g(nn,{error:n}))]}const w=v([g("style",{children:[Jg]}),dp({onUrlChanged:y=>{s(new or(0,[El(y)]))},application:g(Ce,{},f[0],f[1])})]);return g("div",{children:$.Children.toArray(Array.from(w))})}r_(e=>g(i_,e),"superhero-account-registry")})();
|
package/package.json
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/superhero-account-registry",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.39",
|
|
4
4
|
"description": "Flare Superhero Account Registry Component",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"postinstall": "dotnet tool restore",
|
|
11
|
+
"start": "dotnet fable watch src -s --runFast vite",
|
|
12
|
+
"build": "dotnet fable src --run vite build",
|
|
13
|
+
"clean": "dotnet fable clean src --yes"
|
|
12
14
|
},
|
|
13
15
|
"dependencies": {
|
|
14
16
|
"@headlessui/react": "^1.7.8",
|
|
15
17
|
"@heroicons/react": "^1.0.1",
|
|
16
|
-
"preact": "^10.
|
|
17
|
-
"preact-custom-element": "^4.
|
|
18
|
+
"preact": "^10.22.0",
|
|
19
|
+
"preact-custom-element": "^4.3.0",
|
|
20
|
+
"use-sync-external-store": "^1.2.2"
|
|
18
21
|
},
|
|
19
22
|
"devDependencies": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
"@preact/preset-vite": "^2.8.2",
|
|
24
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
25
|
+
"autoprefixer": "^10.4.19",
|
|
26
|
+
"postcss": "^8.4.38",
|
|
27
|
+
"tailwindcss": "^3.4.4",
|
|
28
|
+
"vite": "^5.2.11"
|
|
29
|
+
},
|
|
30
|
+
"optionalDependencies": {
|
|
31
|
+
"@esbuild/linux-x64": "^0.21.5",
|
|
32
|
+
"@rollup/rollup-linux-x64-gnu": "^4.9.5"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18"
|
|
26
36
|
}
|
|
27
37
|
}
|
package/LICENCE
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Flare HR Pty Ltd © 2015-2021
|
package/README.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# AccountRegistry.AdminUI
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
|
|
5
|
-
To install the project's dependencies, run the following commands:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
dotnet tool restore
|
|
9
|
-
dotnet restore
|
|
10
|
-
npm install
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
To start the development server, run the following commands:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm start
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Build
|
|
22
|
-
|
|
23
|
-
To build the project, run the following commands:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm run build
|
|
27
|
-
```
|