@flarehr/superhero-account-registry 2.47.64 → 2.48.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";function Xt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function uh(e){return e!=null&&typeof e.GetEnumerator=="function"}function dh(e){return e!=null&&typeof e.CompareTo=="function"}function fh(e){return e!=null&&typeof e.Equals=="function"}function qa(e){return e!=null&&typeof e.GetHashCode=="function"}function qs(e){return e!=null&&typeof e.Dispose=="function"}function we(e){qs(e)&&e.Dispose()}function he(){return null}function Vo(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 hh{constructor(t){this.iter=t,this.current=he()}"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 uh(e)?e.GetEnumerator():new hh(e[Symbol.iterator]())}function Kr(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}}}}class ph{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function ge(e,t){return e.toString(10).padStart(t,"0")}function mh(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ka(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function $h(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function zn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class an{static id(t){return an.idMap.has(t)||an.idMap.set(t,++an.count),an.idMap.get(t)}}an.idMap=new WeakMap,an.count=0;function $r(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Lt(e){return e*2654435761|0}function Za(e){return $r(e.toString(32))}function Zr(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 gh(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Lt(e);case"bigint":return Za(e);case"string":return $r(e);default:return Lt(an.id(e))}}function wh(e){return qa(e)?e.GetHashCode():gh(e)}function _h(e){return e.getTime()}function bh(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ln(e[r]);return Zr(n)}function ln(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Lt(e);case"bigint":return Za(e);case"string":return $r(e);default:{if(qa(e))return e.GetHashCode();if(Xt(e))return bh(e);if(e instanceof Date)return _h(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ln(r));return Zr(n)}else return Lt(an.id(e))}}}function yh(e){return wh(e)}function Ks(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 Ja(e,t){return Ks(e,t,He)}function vh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!He(e[n[o]],t[r[o]]))return!1;return!0}function He(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:fh(e)?e.Equals(t):Xt(e)?Xt(t)&&Ja(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ya(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&vh(e,t)}function Ya(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ka(e),r=t.getTime()+Ka(t)),n===r?0:n<r?-1:1}function Jr(e,t){return e===t?0:e<t?-1:1}function xh(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 Xa(e,t){return xh(e,t,Ft)}function Ch(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=Ft(e[i],t[i]),s!==0)return s}return 0}function Ft(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:dh(e)?e.CompareTo(t):Xt(e)?Xt(t)?Xa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ya(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Ch(e,t):-1}function P(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Sh(e){Xt(e)?e.splice(0):e.clear()}const Lo=new WeakMap;function _e(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Lo.set(t,e),t}function kn(e){return Lo.get(e)??(t=>n=>e(t,n))}function Zs(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Lo.set(t,e),t}function Js(e){return Lo.get(e)??(t=>n=>r=>e(t,n,r))}function kh(e){let t=0,n="[";for(const r of e){if(t===0)n+=dt(r);else if(t===100){n+="; ...";break}else n+="; "+dt(r);t++}return n+"]"}function dt(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 kh(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+dt(s,t+1)).join(`
2
2
  `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Ah(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=dt(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>dt(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Ah(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ln(n));return t.splice(0,0,Lt(this.tag)),Zr(t)}Equals(t){return this===t?!0:Vo(this,t)&&this.tag===t.tag?Ja(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Vo(this,t)?this.tag===t.tag?Xa(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Eh(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Ih(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+dt(n)).join(`
3
- `)+" }"}function Th(e){const t=Object.values(e).map(n=>ln(n));return Zr(t)}function Nh(e,t){if(e===t)return!0;if(Vo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!He(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Mh(e,t){if(e===t)return 0;if(Vo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Ft(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ie{toJSON(){return Eh(this)}toString(){return Ih(this)}GetHashCode(){return Th(this)}Equals(t){return Nh(this,t)}CompareTo(t){return Mh(this,t)}}class ft{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 Rh{constructor(t){this.message=t}}function Oh(e){return e instanceof Rh||e instanceof Error}function Ph(e){return e instanceof Promise}function Bo(e){return Oh(e)||Ph(e)?e:new Error(String(e))}const gr=Symbol("numeric");function Qa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[gr])}function Dh(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ys(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[gr]().multiply(t)}function Uo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[gr]().toFixed(t)}function zo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[gr]().toPrecision(t)}function jo(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[gr]().toExponential(t)}function Ho(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[gr]().toHex()}class Fh{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Bt{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 Me(this)}GetHashCode(){return el(this)}Equals(t){return Xs(this,t)}}function xt(e){return e.generics!=null?e.generics:[]}function el(e){const t=$r(e.fullname),n=xt(e).map(el);return Zr([t,...n])}function Xs(e,t){return e.fullname===""?t.fullname===""&&Ks(Xr(e),Xr(t),([n,r],[o,s])=>n===o&&Xs(r,s)):e.fullname===t.fullname&&Ks(xt(e),xt(t),Xs)}function ht(e,t,n,r){return new Bt(e,t,n,void 0,r)}function tl(e,t,n,r){const o=new Bt(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,a)=>new Fh(o,a,s[a],i))});return o}function Ee(e){return new Bt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Qs(e){return new Bt("Microsoft.FSharp.Collections.FSharpList`1",[e])}function nl(e){return new Bt("[]",[e])}const Vh=new Bt("System.Object"),j=new Bt("System.String");function wr(e){if(Array.isArray(e))return e[0];if(e instanceof Bt){const t=Yr(e);if(t!=null)return wr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Me(e){const t=Yr(e);return t!=null?Me(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Me(n)).join(",")+"]"}function rl(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 ol(e){return e.generics!=null&&e.generics.length>0}function ei(e){return e.enumCases!=null&&e.enumCases.length>0}function sl(e){return e.generics==null?e:new Bt(e.fullname,e.generics.map(()=>Vh))}function il(e){var t;return(t=e.generics)==null?void 0:t[0]}function _r(e){if(ei(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Lh(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 br(e,t){const n=parseInt(t,10);return Lh(e,isNaN(n)?t:n)[1]}function al(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Xr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ll(e){if(ti(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function cl(e){return e instanceof Bt?e.cases!=null:e instanceof z}function ul(e){return e instanceof Bt?e.fields!=null:e instanceof ie}function ti(e){return e.fullname.startsWith("System.Tuple")}function Bh(e,t){const r=al(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function dl(e){return e.fields==null?[]:e.fields}function Uh(e,t){return e[t[0]]}function Iv(e){return e}function zh(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 jh(e,t){const n=Xr(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 Hh(e,t){return e}const Wh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Gh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kh=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ct(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function fl(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Zh(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 ni(e,t,n){let r=0,o=0,s="";const i=n?Qr(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ct(t,r,"d"),r+=o,o){case 1:s+=ml(i);break;case 2:s+=ge(ml(i),2);break;case 3:s+=Wh[wl(i)];break;case 4:s+=Gh[wl(i)];break}break;case"f":if(o=Ct(t,r,"f"),r+=o,o<=3){const $=10**(3-o);s+=ge(Math.floor(Ko(i)/$),o)}else o<=7&&(s+=(""+Ko(i)).padEnd(o,"0"));break;case"F":if(o=Ct(t,r,"F"),r+=o,o<=3){const $=10**(3-o),v=Math.floor(Ko(i)/$);v!=0&&(s+=ge(v,o))}else if(o<=7){const $=Ko(i);$!=0&&(s+=ge($,3))}break;case"g":o=Ct(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ct(t,r,"h"),r+=o,o){case 1:s+=qo(i)%12;break;case 2:s+=ge(qo(i)%12,2);break}break;case"H":switch(o=Ct(t,r,"H"),r+=o,o){case 1:s+=qo(i);break;case 2:s+=ge(qo(i),2);break}break;case"K":switch(o=Ct(t,r,"K"),r+=o,o){case 1:switch(hl(i)){case 1:s+="Z";break;case 2:s+=yr(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ct(t,r,"m"),r+=o,o){case 1:s+=$l(i);break;case 2:s+=ge($l(i),2);break}break;case"M":switch(o=Ct(t,r,"M"),r+=o,o){case 1:s+=Zo(i);break;case 2:s+=ge(Zo(i),2);break;case 3:s+=qh[Zo(i)-1];break;case 4:s+=Kh[Zo(i)-1];break}break;case"s":switch(o=Ct(t,r,"s"),r+=o,o){case 1:s+=gl(i);break;case 2:s+=ge(gl(i),2);break}break;case"t":switch(o=Ct(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=Ct(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=ge(i.getFullYear()%100,2);break;case 3:s+=ge(i.getFullYear(),3);break;case 4:s+=ge(i.getFullYear(),4);break;case 5:s+=ge(i.getFullYear(),5);break}break;case"z":o=Ct(t,r,"z"),r+=o;let l="";switch(hl(i)){case 1:l="+00:00";break;case 2:l=yr(i.getTimezoneOffset()*-6e4);break;case 0:l=yr(op(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${d}`;break;case 2:s+=`${c}${ge(d,2)}`;break;default:s+=`${c}${ge(d,2)}:${ge(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,f]=Zh(t,r);s+=h,r+=f;break;case"%":const p=fl(t,r);if(p>=0&&p!==37)r+=2,s+=ni(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const _=fl(t,r);if(_>=0)r+=2,s+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function hl(e){return e.kind||0}function yr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ge(n,2)+":"+ge(r,2)}function Wo(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 Jh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ge(e.getFullYear(),4)+"-"+ge(e.getMonth()+1,2)+"-"+ge(e.getDate(),2)+"T"+ge(e.getHours(),2)+":"+ge(e.getMinutes(),2)+":"+ge(e.getSeconds(),2)+"."+ge(e.getMilliseconds(),3)+(n?yr(e.getTimezoneOffset()*-6e4):"")}}function Yh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+yr(t)}function Xh(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," ")+yr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Wo(n,"first");case"T":case"t":return Wo(n,"second");case"O":case"o":return Yh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ni(n,t,!0)}function Qh(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?Wo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Wo(e,"second"):e.toLocaleTimeString();case"O":case"o":return Jh(e,n);default:throw new Error("Unrecognized Date print format")}else return ni(e,t,n)}function Go(e,t,n){return e.offset!=null?Xh(e,t):Qh(e,t)}function Qr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ep(){return Qr(-621355968e5,1)}function pl(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 tp(e,t=!1){const[n,r]=pl(e),o=r!=null?t&&r==="Z"?1:2:0;return Qr(n.getTime(),o)}function np(e,t){try{return t.contents=tp(e),!0}catch{return!1}}function rp(e){return e.kind===1?e:Qr(e.getTime(),1)}function op(e){return e.kind===2?e:Qr(e.getTime(),2)}function ml(e){return e.kind===1?e.getUTCDate():e.getDate()}function qo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ko(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function $l(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Zo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function gl(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function wl(e){return e.kind===1?e.getUTCDay():e.getDay()}function _l(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 ri(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sp(e,t,n=0){return e.lastIndex=n,e.exec(t)}function bl(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 ip(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 d=c?l-3:l-2;for(let u=0;u<d;u++)a.push(arguments[u]);a.index=arguments[d++],a.input=arguments[d++],c&&(a.groups=arguments[d]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=_l(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=bl(e,a),c=bl.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 eo=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,to=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,ap=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function yl(e,t){return Dh(e,t)<0}function Ut(e){return{input:e,cont:lp(e)}}function vl(e,t){let n=0,r=0,o="";to.lastIndex=0;let s=to.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,d]=s;r=to.lastIndex,o+=Sl(t[n++],a,l,c,d),to.lastIndex=r-1,s=to.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function oi(e,t){return typeof t=="string"?e(t):t.cont(e)}function xl(e){return oi(t=>console.log(t),e)}function Qt(e){return oi(t=>t,e)}function Cl(e){return oi(t=>{throw new Error(t)},e)}function Sl(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Qa(e))switch(o.toLowerCase()!=="x"&&(yl(e,0)?(e=Ys(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=Uo(e,r);break;case"g":case"G":e=r!=null?zo(e,r):zo(e);break;case"e":case"E":e=r!=null?jo(e,r):jo(e);break;case"x":e=Ho(e);break;case"X":e=Ho(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Go(e):e=dt(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=no(e,n-s.length,l,a),e=s+e):e=no(s+e,n,l,a)}return e}function kl(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,d,u,h,f]=l[0];let p=u;if(o>=0)p=o,o=-1;else if(p==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=Sl(c,d,p,h,f),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):kl(e,a,l,i,o)}}function lp(e){return t=>{eo.lastIndex=0;const n=[],r=[];let o=0,s=eo.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=eo.lastIndex,eo.lastIndex-=1,s=eo.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),kl(t,n,r))}}function Al(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(ap,(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(Qa(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=Uo(c,a);break;case"g":case"G":c=a!=null?zo(c,a):zo(c);break;case"e":case"E":c=a!=null?jo(c,a):jo(c);break;case"p":case"P":a=a??2,c=Uo(Ys(c,100),a)+" %";break;case"d":case"D":c=a!=null?si(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?si(Ho(c),a,"0"):Ho(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let d="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,f)=>{yl(c,0)&&(c=Ys(c,-1),d="-"),f=f==null?"":f.substring(1),c=Uo(c,Math.max(f.length,0));let[p,_]=c.split(".");_||(_="");const $=h.replace(/,/g,"").replace(/^#+/,"").length;p=si(p,$,"0");const v=f.replace(/#+$/,"").length;if(v>_.length?_=up(_,v,"0"):v<_.length&&(_=_.substring(0,v)+_.substring(v).replace(/0+$/,"")),h.indexOf(",")>0){const y=p.length%3,C=Math.floor(p.length/3);let R=y>0?p.substr(0,y)+(C>0?",":""):"";for(let L=0;L<C;L++)R+=p.substr(y+L*3,3)+(L<C-1?",":"");p=R}return _.length>0?p+"."+_:p}),c=d+c}}else c instanceof Date?c=Go(c,l||i):c=dt(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=no(String(c),Math.abs(s)," ",s<0)),c})}function cp(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Jo(e){return typeof e!="string"||e.length===0}function El(e){return typeof e!="string"||/^\s*$/.test(e)}function ae(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function no(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 si(e,t,n){return no(e,t,n)}function up(e,t,n){return no(e,t,n,!0)}function ii(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(d=>d).map(ri),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const d=a.exec(e);if(d===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,d.index).trim():e.substring(c,d.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 dp(e,...t){if(t.length===0)return e.trim();const n="["+ri(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function fp(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+ri(t.join(""))+"]+$"),"")}function Il(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 jn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ln(this.value)}Equals(t){return t==null?!1:He(this.value,t instanceof jn?t.value:t)}CompareTo(t){return t==null?1:Ft(this.value,t instanceof jn?t.value:t)}}function T(e){if(e==null)throw new Error("Option has no value");return e instanceof jn?e.value:e}function ai(e){return e instanceof jn?e.value:e}function nt(e){return e==null||e instanceof jn?new jn(e):e}function hp(e){return e??void 0}function li(e){return e==null?[]:[T(e)]}function Ye(e,t){return e!=null?T(e):t}function Tl(e,t){return e!=null?T(e):t()}function zt(e,t){return t!=null?nt(e(T(t))):void 0}const Nl="Collection was empty.";function ci(e,t){return typeof e=="function"?new e(t):new Array(t)}function Ml(e,t){return e>t?e:t}function Yo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function An(e,t,n){const r=t.length|0,o=ci(n,r);for(let s=0;s<=r-1;s++)St(o,s,e(fe(s,t)));return o}function pp(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=ci(r,t.length);for(let s=0;s<=t.length-1;s++)St(o,s,e(fe(s,t),fe(s,n)));return o}function mp(e,t){const n=ci(t,1);return St(n,0,e),n}function $p(e){return e.slice().reverse()}function gp(e,t){return t.find(e)}function wp(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(fe(o,t));if(s!=null){const i=T(s);r.push(i)}}return He(n,he())?r:An(o=>o,r,n)}function Xo(e,t,n){const r=e;return n.reduce(r,t)}function _p(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 ui(e,t,n){return t==null}function fe(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 St(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 Rl(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function bp(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,fe(r,e));return n}class pt extends ie{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ae("; ",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 d=T(l),u=T(c);if(He(i.head,a.head)){o=d,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 d=T(c);if(i>18)return a|0;r=i+1,o=(a<<1)+ln(l.head)+631*i,s=d;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 d=T(l),u=T(c),h=Ft(i.head,a.head)|0;if(h===0){o=d,s=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return vp(this)}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Re(this)}}class yp{constructor(t){this.xs=t,this.it=this.xs,this.current=he()}"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=T(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=he()}Dispose(){}}function vp(e){return new yp(e)}function je(){return new pt(he(),void 0)}function ro(e,t){return new pt(e,t)}function cn(e){return e.tail==null}function Ol(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=T(i);continue e}else return o|0}})(0,e)|0}function En(e){if(e.tail!=null)return e.head;throw new Error(Nl+"\\nParameter name: list")}function rt(e){const t=e.tail;if(t!=null)return T(t);throw new Error(Nl+"\\nParameter name: list")}function Be(){return je()}function kt(e,t){return ro(e,t)}function re(e){return ro(e,je())}function K(e){return cn(e)}function vr(e){return Ol(e)}function D(e){return En(e)}function b(e){return rt(e)}function Hn(e){const t=Ol(e)|0,n=Yo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!cn(a)){St(n,i,En(a)),o=i+1,s=rt(a);continue e}break}})(0,e),n}function un(e,t,n){let r=t,o=n;for(;!cn(o);)r=e(r,D(o)),o=rt(o);return r}function Qo(e){return un((t,n)=>ro(n,t),je(),e)}function xp(e,t,n){return Rl(e,Hn(t),n)}function Cp(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(cn(c))return l;o=a+1,s=e(a,l,En(c)),i=rt(c);continue e}})(0,t,n)}function es(e,t){un((n,r)=>{e(r)},void 0,t)}function Pe(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ro(fe(r,e),n);return n}function k(e){return Pe(e,je())}function Sp(e){let t,n;if(Xt(e))return k(e);if(e instanceof pt)return e;{const r=je();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 pt(l,void 0),t.tail=n,n)}}finally{we(s)}const i=o,a=je();return i.tail=a,rt(r)}}function ot(e,t){return un((n,r)=>ro(r,n),t,Qo(e))}function kp(e,t){let n,r;const o=je();let s=o,i=t;for(;!cn(i);){let c=e(En(i));for(;!cn(c);)s=(n=s,r=new pt(En(c),void 0),n.tail=r,r),c=rt(c);i=rt(i)}const a=s,l=je();return a.tail=l,rt(o)}function Ap(e,t){const n=je(),r=Cp((s,i,a)=>{const l=new pt(e(s,a),void 0);return i.tail=l,l},n,t),o=je();return r.tail=o,rt(n)}function Wn(e,t){const n=je(),r=un((s,i)=>{const a=new pt(e(i),void 0);return s.tail=a,a},n,t),o=je();return r.tail=o,rt(n)}function Ep(e,t){return(r=>{e:for(;;){const o=r;if(cn(o))return;{const s=e(En(o));if(s==null){r=rt(o);continue e}else return s}}})(t)}function Ip(e,t){return Ep(n=>e(n)?nt(n):void 0,t)}function Tp(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(cn(i))return;if(e(En(i)))return s;r=s+1,o=rt(i);continue e}})(0,t)}function Np(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(cn(i))return;if(s===e)return nt(En(i));r=s+1,o=rt(i);continue e}})(0,t)}function Pl(e,t){const n=je(),r=un((s,i)=>{if(e(i)){const a=new pt(i,void 0);return s.tail=a,a}else return s},n,t),o=je();return r.tail=o,rt(n)}function Mp(e,t){const n=je(),r=je(),o=n,s=un((l,c)=>{let d,u;const h=l[0],f=l[1];return e(c)?[(d=new pt(c,void 0),h.tail=d,d),f]:[h,(u=new pt(c,void 0),f.tail=u,u)]},[o,r],t),i=je();s[0].tail=i;const a=je();return s[1].tail=a,[rt(o),rt(r)]}function Dl(e,t){const n=je(),r=un((s,i)=>{const a=e(i);if(a==null)return s;{const l=new pt(T(a),void 0);return s.tail=l,l}},n,t),o=je();return r.tail=o,rt(n)}function Fl(e,t,n){return Tp(r=>n.Equals(e,r),t)!=null}function Rp(e,t){const n=Hn(t);return n.sort(e),k(n)}function Op(e,t,n){return Rp((r,o)=>n.Compare(e(r),e(o)),t)}function Pp(e,t){return k(An(k,_p(e,Hn(t))))}function Dp(e){return new w(0,[e])}function Vl(e){return new w(1,[e])}class w extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function dn(e,t){return t.tag===0?Dp(e(t.fields[0])):Vl(t.fields[0])}function Fp(e,t){return t.tag===0?e(t.fields[0]):Vl(t.fields[0])}function At(e){return e.tag===0}class Vp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Ll(e){return new Vp(e)}function di(e){return e.fields[0]}class Lp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Bp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Up extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class zp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class jp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let Hp=class extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Wp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Gp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function fn(e){return e.fields[0]}function st(e){return new Gp(e)}function ts(e){return fn(e)}class qp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function hn(e){return e.fields[0]}function jt(e){return new qp(e)}function ns(e){return hn(e)}class Kp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessName"]}}class Zp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessNumber"]}}class Jp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Address1"]}}class Yp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Address2"]}}class Xp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}class Qp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}let em=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["State"]}};class tm extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SalesforceParentRecordId"]}}function nm(e){throw new Error(e)}const rm="Enumeration already finished.",om="Enumeration has not started. Call MoveNext.",Bl="The input sequence has an insufficient number of elements.",sm="Reset is not supported on this enumerator.";function im(){throw new Error(sm)}function fi(){throw new Error(om)}function hi(){throw new Error(rm)}class am{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+dt(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{we(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function lm(e){return new am(e)}class cm{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"(){im()}Dispose(){this.dispose()}}function rs(e,t,n){return new cm(e,t,n)}function um(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=T(n);try{we(a)}finally{n=void 0}}if(t!=null){const a=T(t);try{we(a)}finally{t=void 0}}};return rs(()=>(r?o&&hi():fi(),s!=null?T(s):hi()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,d=n;if(c!=null)if(d!=null){const u=T(d);if(u["System.Collections.IEnumerator.MoveNext"]())s=nt(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{we(u)}finally{n=void 0}}else{const u=T(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 T(l)}},()=>{o||i()})}function dm(e,t){return rs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{we(t)}finally{}})}function Ul(e,t,n){let r=!1,o,s=nt(e());const i=()=>{if(s!=null){const l=T(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return rs(()=>(r||fi(),o!=null?T(o):hi()),()=>{if(r||(r=!0),s!=null){const l=T(s);let c;try{c=t(l)}catch(d){throw a(),d}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function fm(e,t){let n,r=t;return rs(()=>{if(n!=null){const o=T(n)[0];return T(n)[1],o}else return fi()},()=>(n=e(r),n!=null?(T(n)[0],r=T(n)[1],!0):!1),()=>{})}function hm(e,t){t==null&&nm(e)}function xr(e){return lm(e)}function pn(e){return hm("source",e),Re(e)}function A(e){return xr(()=>Re(e()))}function pi(e){return xr(()=>um(e))}function pm(e,t){return xr(()=>fm(e,t))}function Et(){return A(()=>new Array(0))}function E(e){return A(()=>mp(e))}function Tv(e){return e}function mi(e){return e instanceof pt?Hn(e):Array.from(e)}function Ie(e){return Xt(e)?k(e):e instanceof pt?e:Sp(e)}function zl(e,t,n){return xr(()=>Ul(e,t,n))}function jl(e,t,n){return xr(()=>{let r=-1;return Ul(e,o=>(r=r+1|0,t(r,o)),n)})}function B(e,t){return pi([e,t])}function oo(e,t){return zl(()=>pn(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=>{we(n)})}function mm(e,t,n){const r=pn(t);try{const o=pn(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{we(o)}}finally{we(r)}}function Cr(e,t,n){const r=pn(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{we(r)}}function so(e,t,n){const r=pn(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{we(r)}}function Sr(e,t){so((n,r)=>{e(r)},void 0,t)}function $m(e,t){so((n,r)=>(e(n,r),n+1|0),0,t)}function De(e,t){return zl(()=>pn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?nt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{we(n)})}function $i(e,t){return jl(()=>pn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?nt(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{we(n)})}function gm(e){return A(()=>$p(mi(e)))}function wm(e,t){return xr(()=>{const n=pn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bl+"\\nParameter name: source");return dm(()=>{},n)}catch(r){throw we(n),r}})}function _m(e,t){return jl(()=>pn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return nt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bl+"\\nParameter name: source")}else return},n=>{we(n)})}function bm(e,t){return A(()=>pi(De(e,t)))}const Gn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function gi(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 ym(e,t){switch(t){case Gn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Gn.SnakeCase:return gi(e,"_");case Gn.SnakeCaseAllCaps:return gi(e,"_").toUpperCase();case Gn.KebabCase:return gi(e,"-");case Gn.None:default:return e}}function In(e,t=Gn.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=ym(i,a),n[i]=l}for(let i of e){let a=Gn.None;if(i==null&&o(i),i instanceof z){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 Hl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function io(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class vm{constructor(t,n){const r=new ft(he());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"]();wi(r.contents,s[0],s[1])}}finally{we(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Re(this)}GetEnumerator(){return Re(pi(this.hashMap.values()))}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){wi(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Wl(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=os(this,t[0]);let o;switch(r!=null&&He(T(r)[1],t[1])?(o=0,T(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){$m((o,s)=>{St(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Gl(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=os(n,t[0]);return r!=null?(He(T(r)[1],t[1])&&_i(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){wi(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Zl(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return ql(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Kl(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return mi(A(()=>De(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return _i(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=os(this,t);if(o!=null){const s=T(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return mi(A(()=>De(n=>n[1],t)))}get size(){return Gl(this)|0}clear(){Wl(this)}delete(t){return _i(this,t)}entries(){return De(n=>[n[0],n[1]],this)}get(t){return ql(this,t)}has(t){return Zl(this,t)}keys(){return De(n=>n[0],this)}set(t,n){const r=this;return Kl(r,t,n),r}values(){return De(n=>n[1],this)}forEach(t,n){const r=this;Sr(o=>{t(o[1],o[0],r)},r)}}function ao(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=he();return r=[Hl(e.hashMap,n,new ft(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function os(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return io(e.hashMap,n[1])[n[2]];default:return}}function Wl(e){e.hashMap.clear()}function Gl(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{we(n)}return t|0}function ql(e,t){const n=os(e,t);if(n!=null)return T(n)[1];throw new Error("The item was not found in collection")}function Kl(e,t,n){const r=ao(e,t);r[0]?r[2]>-1?io(e.hashMap,r[1])[r[2]]=[t,n]:io(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function wi(e,t,n){const r=ao(e,t);if(r[0]){if(r[2]>-1)throw new Error(Al("An item with the same key has already been added. Key: {0}",t));io(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Zl(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function _i(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return io(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function xm(e){return new Jl(0,[e])}function Cm(e){return new Jl(1,[e])}class Jl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Sm(e){return xm(e)}function km(e){return Cm(e)}const Am=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Yl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Em=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Im(e){function t(r){return r.replace(Yl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Am.test(n))return dp(n,"{","}","(",")");if(Yl.test(n))return t(n);if(Em.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 Tm(e,t){try{return t.contents=Im(e),!0}catch{return!1}}class Xl extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function kr(e){return e.fields[0]}var bi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(bi||(bi={}));function Nm(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Ql(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 Mm(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 Rm(e,t){if(t&bi.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 Om(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||Rm(s,t),!Mm(n).test(i))return Nm(o,n)}return null}function Pm(e,t,n,r,o){const s=Om(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Ql(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,d]=Ql(n,r);if(i>=c&&i<=d)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ar(e,t,n,r,o){try{return o.contents=Pm(e,t,n,r),!0}catch{return!1}}const Dm="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",Fm="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function Vm(){const t=[...Dm].map(s=>(s.codePointAt(0)??0)-35),n=[...Fm].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),o=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let i=r.length,a=0;for(;i-a>1;){const l=Math.floor((i+a)/2),c=r[l];if(s<c)i=l;else if(s===c){i=a=l;break}else c<s&&(a=l)}return o[a]}}const Lm=256,Bm=Vm();function Um(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const zm=e=>Hm(e,0);function jm(e,t){const n=Um(e,t);return Bm(n)}function Hm(e,t){return(1<<jm(e,t)&Lm)!==0}function Wm(e,t){const n=sp(_l(e),t);if(n!=null)return b(Ie(A(()=>De(r=>r||"",n))))}function Gm(e){let t;const n=Wm(".*?@(.*)",e);switch(n!=null?K(n)?t=1:K(b(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function It(e,t){return Jo(t)?new w(1,[Qt(Ut("%s cannot be null or empty"))(e)]):new w(0,[t])}function qm(e){const t=Gm(e);if(t!=null){const n=t;return new w(0,[n])}else return new w(1,["Email is not in the correct format"])}function Km(e){return~~e.charCodeAt(0)-48}function Zm(e){let t;const n=new w(1,["BusinessNumber is not valid"]),r=new Int32Array([10,1,3,5,7,9,11,13,15,17,19]),o=An(Km,(t=e.split(""),t.filter(zm)),Int32Array);return o.length===11?(St(o,0,fe(0,o)-1|0),bp(pp((s,i)=>s*i,o,r,Int32Array),{GetZero:()=>0,Add:(s,i)=>s+i})%89===0?new w(0,[e]):n):n}function ec(e){const t=It("Name",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[Ll(t.fields[0])])}function ss(e){return di(e)}function tc(e){const t=It("Website",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Lp(t.fields[0])])}function nc(e){return e.fields[0]}function rc(e){const t=It("FirstName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Bp(t.fields[0])])}function oc(e){return e.fields[0]}function sc(e){const t=It("LastName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Up(t.fields[0])])}function ic(e){return e.fields[0]}function ac(e){let t;const n=It("Email",e);return t=n.tag===1?new w(1,[n.fields[0]]):qm(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new zp(t.fields[0])])}function lc(e){const t=It("MobilePhone",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new jp(t.fields[0])])}function cc(e){return e.fields[0]}class uc extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function yi(){return ht("AccountRegistry.Shared.Primitives.ContactDetails",[],uc,()=>[["FirstName",j],["LastName",j],["Email",j],["MobilePhone",j]])}function Jm(e){const t=rc(e.FirstName);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=sc(e.LastName);if(n.tag===1)return new w(1,[n.fields[0]]);{const r=ac(e.Email);if(r.tag===1)return new w(1,[r.fields[0]]);{const o=lc(e.MobilePhone);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[new Hp(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Ym(e){const t=e;if(t!=null)return new Wp(t)}function Xm(e){if(e!=null)return e.fields[0]}function lt(e){return fn(e)}function mn(e){return hn(e)}function Qm(e){const t=It("BusinessName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Kp(t.fields[0])])}function e$(e){let t;const n=It("BusinessNumber",e);return t=n.tag===1?new w(1,[n.fields[0]]):Zm(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Zp(t.fields[0])])}function t$(e){const t=It("Address1",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Jp(t.fields[0])])}function n$(e){const t=e;if(t!=null)return new Yp(t)}function r$(e){const t=It("City",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Xp(t.fields[0])])}function o$(e){const t=It("Postcode",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Qp(t.fields[0])])}function s$(e){const t=It("State",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new em(t.fields[0])])}class i$ 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 a$(){return ht("AccountRegistry.Shared.Primitives.LegalEntity",[],i$,()=>[["BusinessName",j],["BusinessNumber",j],["Address1",j],["Address2",Ee(j)],["City",j],["Postcode",j],["State",Ee(j)],["Phone",j],["CountryCode",Ee(j)]])}function l$(e){const t=It("SalesforceParentRecordId",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new tm(t.fields[0])])}class dc extends ie{constructor(t,n){super(),this.SalesforceParentRecordId=t,this.SalesforceRecordId=n}}function c$(){return ht("AccountRegistry.Shared.Primitives.SalesforceInfo",[],dc,()=>[["SalesforceParentRecordId",j],["SalesforceRecordId",Ee(j)]])}class fc extends ie{constructor(t,n){super(),this.Code=t,this.Name=n}}function u$(){return ht("AccountRegistry.Shared.Primitives.AnzsicClassifier",[],fc,()=>[["Code",j],["Name",j]])}let d$=class extends ie{constructor(t,n,r,o,s,i){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s,this.AccountProvisioningMode=i}};function f$(){return ht("AccountRegistry.Shared.AdminApi.Partner",[],d$,()=>[["StreamId",j],["Name",j],["Website",j],["ContactDetails",Ee(yi())],["Notes",Ee(j)],["AccountProvisioningMode",p$()]])}class h$ extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Api","Direct"]}}function p$(){return tl("AccountRegistry.Shared.AdminApi.AccountProvisioningModeDto",[],h$,()=>[[],[]])}class m$ 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 $$(){return ht("AccountRegistry.Shared.AdminApi.Account",[],m$,()=>[["StreamId",j],["PartnerId",j],["Name",j],["Website",j],["ContactDetails",Ee(yi())],["Notes",Ee(j)],["LegalEntity",Ee(a$())],["ExternalId",Ee(j)],["ChannelId",Ee(j)]])}class g$ 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 w$(){return ht("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],g$,()=>[["AccountId",j],["Name",j],["Contact",Ee(j)],["ContactMobilePhone",Ee(j)],["Website",j],["BusinessName",Ee(j)],["BusinessNumber",Ee(j)],["ExternalId",Ee(j)],["ChannelId",Ee(j)]])}class hc extends ie{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function _$(){return ht("AccountRegistry.Shared.AdminApi.AccountLookup",[],hc,()=>[["Accounts",Qs(w$())],["Token",Ee(j)]])}class b$ extends ie{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function y$(){return ht("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],b$,()=>[["PartnerId",j],["AccountId",j]])}class v$ extends ie{constructor(t,n){super(),this.ClassCode=t,this.ClassTitle=n}}function x$(){return ht("AccountRegistry.Shared.AdminApi.AnzsicClass",[],v$,()=>[["ClassCode",j],["ClassTitle",j]])}class C$ extends ie{constructor(t,n,r){super(),this.GroupCode=t,this.GroupTitle=n,this.Classes=r}}function S$(){return ht("AccountRegistry.Shared.AdminApi.AnzsicGroup",[],C$,()=>[["GroupCode",j],["GroupTitle",j],["Classes",nl(x$())]])}class k$ extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function A$(){return tl("AccountRegistry.Shared.AdminApi.AnzsicSearchResult",[],k$,()=>[[["Item",nl(S$())]],[]])}class pc 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 E$(){return ht("AccountRegistry.Shared.AdminApi.Write.LegalEntityV2",[],pc,()=>[["BusinessName",j],["BusinessNumber",j],["Address1",j],["Address2",Ee(j)],["City",j],["Postcode",j],["State",Ee(j)],["Phone",j],["CountryCode",j]])}class mc extends ie{constructor(t,n,r,o,s,i,a,l,c){super(),this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.LegalEntity=s,this.ExternalId=i,this.ChannelId=a,this.SalesforceInfo=l,this.AnzsicClassifier=c}}function I$(){return ht("AccountRegistry.Shared.AdminApi.Write.AccountPost",[],mc,()=>[["Name",j],["Website",j],["ContactDetails",yi()],["Notes",Ee(j)],["LegalEntity",Ee(E$())],["ExternalId",Ee(j)],["ChannelId",Ee(j)],["SalesforceInfo",Ee(c$())],["AnzsicClassifier",Ee(u$())]])}class T$ extends ie{constructor(t){super(),this.Id=t}}function N$(){return ht("AccountRegistry.Shared.AdminApi.Write.AccountPostResponse",[],T$,()=>[["Id",j]])}var lo,ee,$c,qn,gc,wc,vi,xi,Ci,Si,_c,co={},bc=[],M$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,is=Array.isArray;function $n(e,t){for(var n in t)e[n]=t[n];return e}function yc(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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?lo.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 uo(e,i,r,o,null)}function uo(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??++$c,__i:-1,__u:0};return o==null&&ee.vnode!=null&&ee.vnode(s),s}function ki(){return{current:null}}function Oe(e){return e.children}function Ht(e,t){this.props=e,this.context=t}function Kn(e,t){if(t==null)return e.__?Kn(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"?Kn(e):null}function vc(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 vc(e)}}function Ai(e){(!e.__d&&(e.__d=!0)&&qn.push(e)&&!as.__r++||gc!==ee.debounceRendering)&&((gc=ee.debounceRendering)||wc)(as)}function as(){var e,t,n,r,o,s,i,a;for(qn.sort(vi);e=qn.shift();)e.__d&&(t=qn.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=$n({},o)).__v=o.__v+1,ee.vnode&&ee.vnode(r),Ei(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Kn(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ac(i,r,a),r.__e!=s&&vc(r)),qn.length>t&&qn.sort(vi));as.__r=0}function xc(e,t,n,r,o,s,i,a,l,c,d){var u,h,f,p,_,$=r&&r.__k||bc,v=t.length;for(n.__d=l,R$(n,t,$),l=n.__d,u=0;u<v;u++)(f=n.__k[u])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?co:$[f.__i]||co,f.__i=u,Ei(e,f,h,o,s,i,a,l,c,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&Ii(h.ref,null,f),d.push(f.ref,f.__c||p,f)),_==null&&p!=null&&(_=p),65536&f.__u||h.__k===f.__k?(l&&!l.isConnected&&(l=Kn(h)),l=Cc(f,l,e)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function R$(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,d=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?uo(null,o,null,null,null):is(o)?uo(Oe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?uo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=O$(o,n,i,d),o.__i=a,s=null,a!==-1&&(d--,(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?d>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=Kn(s)),Ti(s,s,!1),n[i]=null,d--);if(d)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Kn(s)),Ti(s,s))}function Cc(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=Cc(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 gn(e,t){return t=t||[],e==null||typeof e=="boolean"||(is(e)?e.some(function(n){gn(n,t)}):t.push(e)),t}function O$(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 Sc(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||M$.test(t)?n:n+"px"}function ls(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||Sc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Sc(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=xi,e.addEventListener(t,s?Si:Ci,s)):e.removeEventListener(t,s?Si:Ci,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 kc(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xi++;else if(t.t<n.u)return;return n(ee.event?ee.event(t):t)}}}function Ei(e,t,n,r,o,s,i,a,l,c){var d,u,h,f,p,_,$,v,y,C,R,L,X,$e,be,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=ee.__b)&&d(t);e:if(typeof ue=="function")try{if(v=t.props,y=(d=ue.contextType)&&r[d.__c],C=d?y?y.props.value:d.__:r,n.__c?$=(u=t.__c=n.__c).__=u.__E:("prototype"in ue&&ue.prototype.render?t.__c=u=new ue(v,C):(t.__c=u=new Ht(v,C),u.constructor=ue,u.render=D$),y&&y.sub(u),u.props=v,u.state||(u.state={}),u.context=C,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),ue.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=$n({},u.__s)),$n(u.__s,ue.getDerivedStateFromProps(v,u.__s))),f=u.props,p=u.state,u.__v=t,h)ue.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(ue.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Y){Y&&(Y.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,C),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,_)})}if(u.context=C,u.props=v,u.__P=e,u.__e=!1,L=ee.__r,X=0,"prototype"in ue&&ue.prototype.render){for(u.state=u.__s,u.__d=!1,L&&L(t),d=u.render(u.props,u.state,u.context),$e=0;$e<u._sb.length;$e++)u.__h.push(u._sb[$e]);u._sb=[]}else do u.__d=!1,L&&L(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++X<25);u.state=u.__s,u.getChildContext!=null&&(r=$n($n({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(_=u.getSnapshotBeforeUpdate(f,p)),xc(e,is(be=d!=null&&d.type===Oe&&d.key==null?d.props.children:d)?be:[be],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),$&&(u.__E=u.__=null)}catch(Y){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),ee.__e(Y,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P$(n.__e,t,n,r,o,s,i,l,c);(d=ee.diffed)&&d(t)}function Ac(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ii(n[r],n[++r],n[++r]);ee.__c&&ee.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){ee.__e(s,o.__v)}})}function P$(e,t,n,r,o,s,i,a,l){var c,d,u,h,f,p,_,$=n.props,v=t.props,y=t.type;if(y==="svg"?o="http://www.w3.org/2000/svg":y==="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((f=s[c])&&"setAttribute"in f==!!y&&(y?f.localName===y:f.nodeType===3)){e=f,s[c]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),s=null,a=!1}if(y===null)$===v||a&&e.data===v||(e.data=v);else{if(s=s&&lo.call(e.childNodes),$=n.props||co,!a&&s!=null)for($={},c=0;c<e.attributes.length;c++)$[(f=e.attributes[c]).name]=f.value;for(c in $)if(f=$[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;ls(e,c,null,f,o)}}for(c in v)f=v[c],c=="children"?h=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?p=f:c=="checked"?_=f:c==="key"||a&&typeof f!="function"||$[c]===f||ls(e,c,f,$[c],o);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),xc(e,is(h)?h:[h],t,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Kn(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&yc(s[c]);a||(c="value",p!==void 0&&(p!==e[c]||y==="progress"&&!p||y==="option"&&p!==$[c])&&ls(e,c,p,$[c],o),c="checked",_!==void 0&&_!==e[c]&&ls(e,c,_,$[c],o))}return e}function Ii(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ee.__e(r,n)}}function Ti(e,t,n){var r,o;if(ee.unmount&&ee.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ii(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){ee.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ti(r[o],t,n||typeof e.type!="function");n||e.__e==null||yc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function D$(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var r,o,s,i;ee.__&&ee.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Ei(t,e=(!r&&n||t).__k=m(Oe,null,[e]),o||co,co,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?lo.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Ac(s,e,i)}function Ni(e,t){Tn(e,t,Ni)}function Mi(e,t,n){var r,o,s,i,a=$n({},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?lo.call(arguments,2):n),uo(e.type,a,r||e.key,o||e.ref,null)}function Nn(e,t){var n={__c:t="__cC"+_c++,__: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,Ai(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}lo=bc.slice,ee={__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}},$c=0,Ht.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$n({},this.state),typeof e=="function"&&(e=e($n({},n),this.props)),e&&$n(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ai(this))},Ht.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ai(this))},Ht.prototype.render=Oe,qn=[],wc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vi=function(e,t){return e.__v.__b-t.__v.__b},as.__r=0,xi=0,Ci=kc(!1),Si=kc(!0),_c=0;var wn,ve,Ri,Ec,Er=0,Ic=[],cs=[],Fe=ee,Tc=Fe.__b,Nc=Fe.__r,Mc=Fe.diffed,Rc=Fe.__c,Oc=Fe.unmount,Pc=Fe.__;function Zn(e,t){Fe.__h&&Fe.__h(ve,e,Er||t),Er=0;var n=ve.__H||(ve.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:cs}),n.__[e]}function We(e){return Er=1,Ir(Fc,e)}function Ir(e,t,n){var r=Zn(wn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Fc(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=ve,!ve.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=!1;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};ve.u=!0;var s=ve.shouldComponentUpdate,i=ve.componentWillUpdate;ve.componentWillUpdate=function(a,l,c){if(this.__e){var d=s;s=void 0,o(a,l,c),s=d}i&&i.call(this,a,l,c)},ve.shouldComponentUpdate=o}return r.__N||r.__}function Te(e,t){var n=Zn(wn++,3);!Fe.__s&&Vi(n.__H,t)&&(n.__=e,n.i=t,ve.__H.__h.push(n))}function _n(e,t){var n=Zn(wn++,4);!Fe.__s&&Vi(n.__H,t)&&(n.__=e,n.i=t,ve.__h.push(n))}function ce(e){return Er=5,it(function(){return{current:e}},[])}function Oi(e,t,n){Er=6,_n(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 it(e,t){var n=Zn(wn++,7);return Vi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Mn(e,t){return Er=8,it(function(){return e},t)}function en(e){var t=ve.context[e.__c],n=Zn(wn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ve)),t.props.value):e.__}function Pi(e,t){Fe.useDebugValue&&Fe.useDebugValue(t?t(e):e)}function F$(e){var t=Zn(wn++,10),n=We();return t.__=e,ve.componentDidCatch||(ve.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Di(){var e=Zn(wn++,11);if(!e.__){for(var t=ve.__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 V$(){for(var e;e=Ic.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(us),e.__H.__h.forEach(Fi),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){ve=null,Tc&&Tc(e)},Fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pc&&Pc(e,t)},Fe.__r=function(e){Nc&&Nc(e),wn=0;var t=(ve=e.__c).__H;t&&(Ri===ve?(t.__h=[],ve.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=cs,n.__N=n.i=void 0})):(t.__h.forEach(us),t.__h.forEach(Fi),t.__h=[],wn=0)),Ri=ve},Fe.diffed=function(e){Mc&&Mc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ic.push(t)!==1&&Ec===Fe.requestAnimationFrame||((Ec=Fe.requestAnimationFrame)||L$)(V$)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==cs&&(n.__=n.__V),n.i=void 0,n.__V=cs})),Ri=ve=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(us),n.__h=n.__h.filter(function(r){return!r.__||Fi(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Fe.__e(r,n.__v)}}),Rc&&Rc(e,t)},Fe.unmount=function(e){Oc&&Oc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{us(r)}catch(o){t=o}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var Dc=typeof requestAnimationFrame=="function";function L$(e){var t,n=function(){clearTimeout(r),Dc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Dc&&(t=requestAnimationFrame(n))}function us(e){var t=ve,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ve=t}function Fi(e){var t=ve;e.__c=e.__(),ve=t}function Vi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Fc(e,t){return typeof t=="function"?t(e):t}function Vc(e,t){for(var n in t)e[n]=t[n];return e}function Li(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 ds(e,t){this.props=e,this.context=t}function Lc(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:Li(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ds.prototype=new Ht).isPureReactComponent=!0,ds.prototype.shouldComponentUpdate=function(e,t){return Li(this.props,e)||Li(this.state,t)};var Bc=ee.__b;ee.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Bc&&Bc(e)};var B$=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rn(e){function t(n){var r=Vc({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=B$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Uc=function(e,t){return e==null?null:gn(gn(e).map(t))},zc={map:Uc,forEach:Uc,count:function(e){return e?gn(e).length:0},only:function(e){var t=gn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:gn},U$=ee.__e;ee.__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)}U$(e,t,n,r)};var jc=ee.unmount;function Hc(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=Vc({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hc(r,t,n)})),e}function Wc(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wc(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 fo(){this.__u=0,this.t=null,this.__b=null}function Gc(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qc(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 m(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Tr(){this.u=null,this.o=null}ee.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jc&&jc(e)},(fo.prototype=new Ht).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Gc(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]=Wc(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)},fo.prototype.componentWillUnmount=function(){this.t=[]},fo.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]=Hc(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(Oe,null,e.fallback);return o&&(o.__u&=-33),[m(Oe,null,t.__a?null:e.children),o]};var Kc=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 z$(e){return this.getChildContext=function(){return e.context},e.children}function j$(e){var t=this,n=e.i;t.componentWillUnmount=function(){Tn(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)}}),Tn(m(z$,{context:t.context},e.__v),t.l)}function Zc(e,t){var n=m(j$,{__v:e,i:t});return n.containerInfo=t,n}(Tr.prototype=new Ht).__a=function(e){var t=this,n=Gc(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Kc(t,e,r)):o()};n?n(s):s()}},Tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=gn(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},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Kc(e,n,t)})};var Jc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,H$=/^(?: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]/,W$=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,G$=/[A-Z0-9]/g,q$=typeof document<"u",K$=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Yc(e,t,n){return t.__k==null&&(t.textContent=""),Tn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Xc(e,t,n){return Ni(e,t),typeof n=="function"&&n(),e?e.__c:null}Ht.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ht.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qc=ee.event;function Z$(){}function J$(){return this.cancelBubble}function Y$(){return this.defaultPrevented}ee.event=function(e){return Qc&&(e=Qc(e)),e.persist=Z$,e.isPropagationStopped=J$,e.isDefaultPrevented=Y$,e.nativeEvent=e};var Bi,X$={enumerable:!1,configurable:!0,get:function(){return this.class}},eu=ee.vnode;ee.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||q$&&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"||K$(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":W$.test(s)?s=a:r.indexOf("-")===-1&&H$.test(s)?s=s.replace(G$,"-$&").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=gn(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=gn(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",X$)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Jc,eu&&eu(e)};var tu=ee.__r;ee.__r=function(e){tu&&tu(e),Bi=e.__c};var nu=ee.diffed;ee.diffed=function(e){nu&&nu(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),Bi=null};var ru={ReactCurrentDispatcher:{current:{readContext:function(e){return Bi.__n[e.__c].props.value},useCallback:Mn,useContext:en,useDebugValue:Pi,useDeferredValue:Hi,useEffect:Te,useId:Di,useImperativeHandle:Oi,useInsertionEffect:Gi,useLayoutEffect:_n,useMemo:it,useReducer:Ir,useRef:ce,useState:We,useSyncExternalStore:qi,useTransition:Wi}}},Q$="17.0.2";function ou(e){return m.bind(null,e)}function Nr(e){return!!e&&e.$$typeof===Jc}function su(e){return Nr(e)&&e.type===Oe}function iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ui(e){return Nr(e)?Mi.apply(null,arguments):e}function au(e){return!!e.__k&&(Tn(null,e),!0)}function lu(e){return e&&(e.base||e.nodeType===1&&e)||null}var cu=function(e,t){return e(t)},zi=function(e,t){return e(t)},uu=Oe;function ji(e){e()}function Hi(e){return e}function Wi(){return[!1,ji]}var Gi=_n,du=Nr;function qi(e,t){var n=t(),r=We({h:{__:n,v:t}}),o=r[0].h,s=r[1];return _n(function(){o.__=n,o.v=t,Ki(o)&&s({h:o})},[e,n,t]),Te(function(){return Ki(o)&&s({h:o}),e(function(){Ki(o)&&s({h:o})})},[e]),n}function Ki(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 q={useState:We,useId:Di,useReducer:Ir,useEffect:Te,useLayoutEffect:_n,useInsertionEffect:Gi,useTransition:Wi,useDeferredValue:Hi,useSyncExternalStore:qi,startTransition:ji,useRef:ce,useImperativeHandle:Oi,useMemo:it,useCallback:Mn,useContext:en,useDebugValue:Pi,version:"17.0.2",Children:zc,render:Yc,hydrate:Xc,unmountComponentAtNode:au,createPortal:Zc,createElement:m,createContext:Nn,createFactory:ou,cloneElement:Ui,createRef:ki,Fragment:Oe,isValidElement:Nr,isElement:du,isFragment:su,isMemo:iu,findDOMNode:lu,Component:Ht,PureComponent:ds,memo:Lc,forwardRef:Rn,flushSync:zi,unstable_batchedUpdates:cu,StrictMode:uu,Suspense:fo,SuspenseList:Tr,lazy:qc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru};const Zi=Object.freeze(Object.defineProperty({__proto__:null,Children:zc,Component:Ht,Fragment:Oe,PureComponent:ds,StrictMode:uu,Suspense:fo,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru,cloneElement:Ui,createContext:Nn,createElement:m,createFactory:ou,createPortal:Zc,createRef:ki,default:q,findDOMNode:lu,flushSync:zi,forwardRef:Rn,hydrate:Xc,isElement:du,isFragment:su,isMemo:iu,isValidElement:Nr,lazy:qc,memo:Lc,render:Yc,startTransition:ji,unmountComponentAtNode:au,unstable_batchedUpdates:cu,useCallback:Mn,useContext:en,useDebugValue:Pi,useDeferredValue:Hi,useEffect:Te,useErrorBoundary:F$,useId:Di,useImperativeHandle:Oi,useInsertionEffect:Gi,useLayoutEffect:_n,useMemo:it,useReducer:Ir,useRef:ce,useState:We,useSyncExternalStore:qi,useTransition:Wi,version:Q$},Symbol.toStringTag,{value:"Module"})),e0=e=>{Te(()=>{const t=e();return()=>{t.Dispose()}})},t0=(e,t)=>{Te(()=>{const n=e();return()=>{n.Dispose()}},t)},n0=e=>{_n(()=>{const t=e();return()=>{t.Dispose()}})},I=q,r0=e0,fu=t0,o0=n0;function s0(e,t,n,r){const o=I.memo(e,_e(Ye(zt(kn,n),he())));return Sr(s=>{e.displayName=s},li(t)),s=>{const i=i0(r,s);return I.createElement(o,i)}}function i0(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ho(e){return{Dispose(){e()}}}function hu(e,t){fu(e,t)}function a0(e){o0(t=>(e(),ho(()=>{})))}function Ji(e){const t=I.useRef(!1);c0(()=>{t.current||(t.current=!0,e())},[])}function pu(e){const t=I.useRef(void 0),n=I.useRef(!1),r=I.useRef(!1);n.current&&(r.current=!0),hu(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=nt(e()),o=r.current?t.current:void 0),{Dispose(){Sr(s=>{we(s)},li(o))}}},[])}function l0(e){r0(t=>(e(),ho(()=>{})))}function c0(e,t){fu(n=>(e(),ho(()=>{})),t)}function u0(e,t){const n=Ye(t,[]);return I.useCallback(e,n)}function mu(e){return I.useRef(e)}function d0(e,t,n){return s0(e,void 0,ai(n),ai(t))}function f0(e,t){const n=I.createContext(Ye(t,void 0));return Sr(r=>{n.displayName=r},li(e)),n}function h0(e,t,n){return I.createElement(e.Provider,{value:t},...n)}function Jn(e){return I.useContext(e)}function $u(e){const t=mu(e),n=u0(r=>t.current(r),[]);return a0(()=>{t.current=e}),n}function Yn(e){return I.useState(e)}class gu{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 fs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,fs.prototype)}}class Yi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Yi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function bn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new fs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Bo(n))}});else try{e(t)}catch(n){t.onError(Bo(n))}}}function p0(e,t){return bn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Bo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function m0(e){return bn(t=>t.onSuccess(e))}class $0{Bind(t,n){return p0(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return bn(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 m0(t)}ReturnFrom(t){return t}TryFinally(t,n){return bn(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 bn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(Bo(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 bn(t=>t.onSuccess(void 0))}}const W=new $0;function Xi(e){}function g0(e){return new gu(!1)}function w0(e){e.cancel()}function _0(e){return e!=null&&e.isCancelled}const wu=new gu;function b0(e){return bn(t=>{e({onSuccess:n=>t.onSuccess(Sm(n)),onError:n=>t.onSuccess(km(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function y0(e){return bn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function v0(e){return bn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new fs)})})}function x0(e,t){return _u(e,t)}function Mr(e,t){return x0(e,t)}function _u(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Yi;e({onSuccess:t||Xi,onError:n||Xi,onCancel:r||Xi,cancelToken:o||wu,trampoline:s})}function C0(e,t){return new Promise((n,r)=>_u(e,n,r,r,wu))}class bu{constructor(t,n){this.k=t,this.v=n}}function hs(e,t){return new bu(e,t)}function mt(e){return e.k}function Tt(e){return e.v}class Ge extends bu{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function ps(e,t,n,r,o){return new Ge(e,t,n,r,o)}function $t(e){return e.left}function gt(e){return e.right}function Xn(e){return e.h}function Nv(){}function yu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;e=yu(n+1,$t(s)),t=gt(s);continue e}else return n+1|0}else return n|0}}function S0(e){return yu(0,e)}function Wt(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=T(a);i=u instanceof Ge?(o=u,Xn(o)):1}else i=0;let l;const c=r;if(c!=null){const u=T(c);l=u instanceof Ge?(s=u,Xn(s)):1}else l=0;const d=(i<l?l:i)|0;return d===0?hs(t,n):ps(t,n,e,r,d+1)}function vu(e,t,n,r){let o,s,i,a,l,c,d,u,h;const f=e;if(f!=null){const $=T(f);h=$ instanceof Ge?(o=$,Xn(o)):1}else h=0;let p;const _=r;if(_!=null){const $=T(_);p=$ instanceof Ge?(s=$,Xn(s)):1}else p=0;if(p>h+2){const $=T(r);if($ instanceof Ge){const v=$;if(i=$t(v),(i!=null?(a=T(i),a instanceof Ge?(l=a,Xn(l)):1):0)>h+1){const y=T($t(v));if(y instanceof Ge){const C=y;return Wt(Wt(e,t,n,$t(C)),mt(C),Tt(C),Wt(gt(C),mt(v),Tt(v),gt(v)))}else throw new Error("internal error: Map.rebalance")}else return Wt(Wt(e,t,n,$t(v)),mt(v),Tt(v),gt(v))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const $=T(e);if($ instanceof Ge){const v=$;if(c=gt(v),(c!=null?(d=T(c),d instanceof Ge?(u=d,Xn(u)):1):0)>p+1){const y=T(gt(v));if(y instanceof Ge){const C=y;return Wt(Wt($t(v),mt(v),Tt(v),$t(C)),mt(C),Tt(C),Wt(gt(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt($t(v),mt(v),Tt(v),Wt(gt(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(e,t,n,r)}function Rr(e,t,n,r){if(r!=null){const o=T(r),s=e.Compare(t,mt(o))|0;if(o instanceof Ge){const i=o;return s<0?vu(Rr(e,t,n,$t(i)),mt(i),Tt(i),gt(i)):s===0?ps(t,n,$t(i),gt(i),Xn(i)):vu($t(i),mt(i),Tt(i),Rr(e,t,n,gt(i)))}else return s<0?ps(t,n,void 0,r,2):s===0?hs(t,n):ps(t,n,r,void 0,2)}else return hs(t,n)}function xu(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,mt(i))|0;if(a===0)return nt(Tt(i));if(i instanceof Ge){const l=i;e=r,t=o,n=a<0?$t(l):gt(l);continue e}else return}else return}}function k0(e,t,n){const r=xu(e,t,n);if(r==null)throw new Error;return T(r)}function A0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,mt(i))|0;if(i instanceof Ge){const l=i;if(a<0){e=r,t=o,n=$t(l);continue e}else{if(a===0)return!0;e=r,t=o,n=gt(l);continue e}}else return a===0}else return!1}}function Cu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;Cu(n,$t(s)),n(mt(s),Tt(s)),e=n,t=gt(s);continue e}else n(mt(o),Tt(o))}break}}function E0(e,t){Cu(e,t)}function I0(e,t,n){let r=n;E0((o,s)=>{St(t,r,[o,s]),r=r+1|0},e)}function T0(e,t){return un((n,r)=>Rr(e,r[0],r[1],n),void 0,t)}function N0(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=Rr(r,i[0],i[1],o),n=s;continue e}else return o}}function M0(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=fe(r,t);n=Rr(e,o[0],o[1],n)}return n}function Su(e,t){if(Xt(t))return M0(e,t);if(t instanceof pt)return T0(e,t);{const n=Re(t);try{return N0(e,void 0,n)}finally{we(n)}}}class R0 extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function ku(e){e:for(;;){const t=e;if(K(t))return Be();{const n=b(t),r=D(t);if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;e=Pe([$t(s),hs(mt(s),Tt(s)),gt(s)],n);continue e}else return t}else{e=n;continue e}}}}function Au(e){return new R0(ku(re(e)),!1)}function O0(){throw new Error("enumeration not started")}function P0(){throw new Error("enumeration already finished")}function Eu(e){if(e.started){const t=e.stack;if(K(t))return P0();if(D(t)!=null){const n=T(D(t));if(n instanceof Ge)throw new Error("Please report error: Map iterator, unexpected stack for current");return[mt(n),Tt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return O0()}function D0(e){if(e.started){const t=e.stack;if(K(t))return!1;if(D(t)!=null){if(T(D(t))instanceof Ge)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ku(b(t)),!K(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!K(e.stack)}function Iu(e){let t=Au(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Eu(t)},"System.Collections.IEnumerator.get_Current"(){return Eu(t)},"System.Collections.IEnumerator.MoveNext"(){return D0(t)},"System.Collections.IEnumerator.Reset"(){t=Au(e)},Dispose(){}}}class ms{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return B0(this)|0}Equals(t){const n=this;if(t instanceof ms){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 He(l[0],c[0])&&He(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{we(s)}}finally{we(o)}}else return!1}toString(){return"map ["+ae("; ",De(n=>Al("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Iu(this.tree)}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Iu(this.tree)}CompareTo(t){const n=this;if(t instanceof ms)return mm((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Ft(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 Nu(n,t[0])&&He(Tu(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){I0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Qi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Qi(this)|0}get size(){return Qi(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 Tu(this,t)}has(t){return Nu(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;Sr(o=>{t(o[1],o[0],r)},r)}}function $s(e,t){return new ms(e,t)}function F0(e){return $s(e,void 0)}function V0(e,t,n){return $s(e.comparer,Rr(e.comparer,t,n,e.tree))}function Tu(e,t){return k0(e.comparer,t,e.tree)}function Qi(e){return S0(e.tree)}function Nu(e,t){return A0(e.comparer,t,e.tree)}function L0(e,t){return xu(e.comparer,t,e.tree)}function B0(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,ln(o[0]))|0,n=t(n,ln(o[1]))|0}}finally{we(r)}return n|0}function Mu(e,t,n){return V0(n,e,t)}function Ru(e,t){return L0(t,e)}function U0(e,t){return $s(t,Su(t,e))}function z0(e,t){return $s(t,Su(t,e))}function ea(e){return F0(e)}class pe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ou(e,t){const n=mu(g0());return pu(()=>ho(()=>{w0(n.current)})),$u(r=>{_0(n.current)||Mr(W.Delay(()=>W.TryWith(W.Delay(()=>(t(new pe(1,[])),W.Bind(e(r),o=>(t(new pe(2,[o])),W.Zero())))),o=>(t(new pe(3,[o])),W.Zero()))),n.current)})}class j0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function H0(e,t){t.Subscribe(new j0(e))}class W0{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 q0(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 G0=class extends W0{};function q0(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 K0{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 G0}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 Z0(e,t){console.error(nt(e),t)}function J0(e,t){let n,r=new K0(e);r.AutoReset=!1,n=r,H0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Pu(e,t,n){es(r=>{try{r(t)}catch(o){e(o)}},n)}function Le(){return Be()}function Xe(e){return re(e)}function Du(e,t,n,r){return re(o=>{e(W.Delay(()=>W.Bind(b0(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),W.Zero()})))})}function Fu(e){J0(1,t=>{Mr(e)})}function po(e,t){if(t.indexOf(e)===0)return t}function Vu(e,t){if(cp(t,e))return t}function Y0(e){return t=>{let n,r,o,s,i,a;return n=po("/",t),n!=null?(r=n,"#"+r):(o=po("#/",t),o!=null?(s=o,s):(i=po("#",t),i!=null?(a=i,"#/"+Il(a,1,a.length-1)):"#/"+t))}}function Qn(e,t){return Y0()(ae("/",Wn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function ct(e,t,n){history.pushState(void 0,"",Qn(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Lu(e,t){return kp(n=>{if(El(n))return Be();{const r=fp(n,"#");if(r==="?")return Be();if(po("?",r)!=null)return re(r);{const o=r.split("?");if(!ui((s,i)=>s===i,o)&&o.length===1){const s=fe(0,o);return re(decodeURIComponent(s))}else if(!ui((s,i)=>s===i,o)&&o.length===2)if(fe(1,o)===""){const s=fe(0,o);return re(decodeURIComponent(s))}else{const s=fe(0,o),i=fe(1,o);return k([decodeURIComponent(s),"?"+i])}else return Be()}}},k(ii(po("#",e)!=null?Il(e,1,e.length-1):t===1&&(Vu("#",e)!=null||Vu("#/",e)!=null)?"":e,["/"],void 0,0)))}function X0(e,t,n){return t(Lu(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const Q0=d0(e=>{const t=$u(r=>{const o=Ye(e.onUrlChanged,s=>{});X0(Ye(e.hashMode,1),o)});pu(()=>(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),ho(()=>{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)}))),Ji(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??he()});class yn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class er extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Bu(e){return e.tag===0?new er(1,[]):new er(0,[])}class mo extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const eg=new mo(new yn(1,[]),new er(0,[]));function tg(e){return[e.fields[0],e.fields[1]]}function Uu(e){return e.fields[0]}function zu(e){return e.fields[1]}function ju(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new mo(new yn(1,[]),Bu(r)):new mo(new yn(1,[]),new er(0,[])):n.tag===0?new mo(new yn(0,[]),Bu(r)):new mo(new yn(0,[]),new er(0,[]))}class Hu extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const ng=new Hu("");function rg(e){return new Hu(e.trim())}function Wu(e){return e.fields[0]}class og extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function sg(e){return new og(e)}function Gu(e){return e.fields[0]}class ta extends ie{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class ig extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function ag(e){return[e.fields[0],e.fields[1]]}function lg(e,t){return new ig(e,t)}function cg(e){const t=ag(e);return[t[0],t[1]]}function ug(){return new vm([],{Equals:He,GetHashCode:yh})}function dg(e,t){let n,r=he();if(n=[Hl(e,t,new ft(()=>r,o=>{r=o})),r],n[0])return n[1]}function qu(e,t,n){return e.set(t,n),e}class fg extends ie{constructor(t,n,r,o,s,i){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s,this.AccountProvisioningMode=i}}function hg(e){const t=ec(e.Name);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=tc(e.Website);if(n.tag===1)return new w(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=Jm(o);r=s.tag===1?new w(1,[s.fields[0]]):new w(0,[s.fields[0]])}else r=new w(0,[void 0]);return r.tag===1?new w(1,[r.fields[0]]):new w(0,[new fg(new Xl(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Ym(e.Notes),e.AccountProvisioningMode)])}}}function na(e,t){return Ip(n=>kr(n.StreamId)===ts(t),e)}class J extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","PartnerWorkspace","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","AccountWorkspace","NotFound"]}}function Ku(e){let t,n,r,o,s,i,a,l,c,d,u,h,f,p,_,$,v,y,C,R,L,X,$e,be;if(K(e))t=16;else if(D(e)==="account-registry")if(K(b(e)))t=16;else if(D(b(e))==="partners")if(K(b(b(e))))t=0;else if(K(b(b(b(e)))))t=1,n=D(b(b(e)));else switch(D(b(b(b(e))))){case"accounts":{if(K(b(b(b(b(e))))))t=2,r=D(b(b(e)));else if(K(b(b(b(b(b(e)))))))t=8,c=D(b(b(b(b(e))))),d=D(b(b(e)));else switch(D(b(b(b(b(b(e))))))){case"directory":{K(b(b(b(b(b(b(e)))))))?(t=9,u=D(b(b(b(b(e))))),h=D(b(b(e)))):t=16;break}case"imports":{K(b(b(b(b(b(b(e)))))))?(t=10,f=D(b(b(b(b(e))))),p=D(b(b(e)))):t=16;break}case"super-configuration":{K(b(b(b(b(b(b(e)))))))?(t=11,_=D(b(b(b(b(e))))),$=D(b(b(e)))):t=16;break}case"benefits-onboarding-configuration":{K(b(b(b(b(b(b(e)))))))?(t=12,v=D(b(b(b(b(e))))),y=D(b(b(e)))):t=16;break}case"bank-details-configuration":{K(b(b(b(b(b(b(e)))))))?(t=13,C=D(b(b(b(b(e))))),R=D(b(b(e)))):t=16;break}case"salary-packaging-configuration":{K(b(b(b(b(b(b(e)))))))?(t=14,L=D(b(b(b(b(e))))),X=D(b(b(e)))):t=16;break}case"workspace":{K(b(b(b(b(b(b(e)))))))?(t=15,$e=D(b(b(b(b(e))))),be=D(b(b(e)))):t=16;break}default:t=16}break}case"super-configuration":{K(b(b(b(b(e)))))?(t=3,o=D(b(b(e)))):t=16;break}case"benefits-onboarding-configuration":{K(b(b(b(b(e)))))?(t=4,s=D(b(b(e)))):t=16;break}case"directory":{K(b(b(b(b(e)))))?(t=5,i=D(b(b(e)))):t=16;break}case"bank-details-configuration":{K(b(b(b(b(e)))))?(t=6,a=D(b(b(e)))):t=16;break}case"workspace":{K(b(b(b(b(e)))))?(t=7,l=D(b(b(e)))):t=16;break}default:t=16}else t=16;else t=16;switch(t){case 0:return new J(0,[]);case 1:return new J(1,[st(n)]);case 2:return new J(3,[st(r)]);case 3:return new J(4,[st(o)]);case 4:return new J(5,[st(s)]);case 5:return new J(2,[st(i)]);case 6:return new J(6,[st(a)]);case 7:return new J(7,[st(l)]);case 8:return new J(8,[st(d),jt(c)]);case 9:return new J(9,[st(h),jt(u)]);case 10:return new J(10,[st(p),jt(f)]);case 11:return new J(11,[st($),jt(_)]);case 12:return new J(12,[st(y),jt(v)]);case 13:return new J(13,[st(R),jt(C)]);case 14:return new J(14,[st(X),jt(L)]);case 15:return new J(15,[st(be),jt($e)]);default:return new J(16,[])}}function $o(e){const t=(r,o)=>Ie(A(()=>B(E("account-registry"),A(()=>B(E("partners"),A(()=>B(E(lt(r)),A(()=>o)))))))),n=(r,o,s)=>{const i=Ie(A(()=>B(E("accounts"),A(()=>B(E(mn(o)),A(()=>s))))));return t(r,i)};switch(e.tag){case 3:return t(e.fields[0],["accounts"]);case 4:return t(e.fields[0],["super-configuration"]);case 5:return t(e.fields[0],["benefits-onboarding-configuration"]);case 6:return t(e.fields[0],["bank-details-configuration"]);case 2:return t(e.fields[0],["directory"]);case 7:return t(e.fields[0],["workspace"]);case 8:return n(e.fields[0],e.fields[1],[]);case 9:return n(e.fields[0],e.fields[1],["directory"]);case 10:return n(e.fields[0],e.fields[1],["imports"]);case 11:return n(e.fields[0],e.fields[1],["super-configuration"]);case 12:return n(e.fields[0],e.fields[1],["benefits-onboarding-configuration"]);case 13:return n(e.fields[0],e.fields[1],["bank-details-configuration"]);case 14:return n(e.fields[0],e.fields[1],["salary-packaging-configuration"]);case 15:return n(e.fields[0],e.fields[1],["workspace"]);case 16:case 0:return k(["account-registry","partners"]);default:return t(e.fields[0],[])}}function ra(e){switch(e.tag){case 3:{const t=["account-registry","partners",lt(e.fields[0]),"accounts"];return Xe(n=>{ct(k(t))})}case 4:{const t=["account-registry","partners",lt(e.fields[0]),"super-configuration"];return Xe(n=>{ct(k(t))})}case 5:{const t=["account-registry","partners",lt(e.fields[0]),"benefits-onboarding-configuration"];return Xe(n=>{ct(k(t))})}case 6:{const t=["account-registry","partners",lt(e.fields[0]),"bank-details-configuration"];return Xe(n=>{ct(k(t))})}case 2:{const t=["account-registry","partners",lt(e.fields[0]),"directory"];return Xe(n=>{ct(k(t))})}case 7:{const t=["account-registry","partners",lt(e.fields[0]),"workspace"];return Xe(n=>{ct(k(t))})}case 8:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1])];return Xe(n=>{ct(k(t))})}case 9:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"directory"];return Xe(n=>{ct(k(t))})}case 10:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"imports"];return Xe(n=>{ct(k(t))})}case 11:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"super-configuration"];return Xe(n=>{ct(k(t))})}case 12:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"benefits-onboarding-configuration"];return Xe(n=>{ct(k(t))})}case 13:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"bank-details-configuration"];return Xe(n=>{ct(k(t))})}case 14:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"salary-packaging-configuration"];return Xe(n=>{ct(k(t))})}case 15:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"workspace"];return Xe(n=>{ct(k(t))})}case 0:case 16:return Le();default:{const t=["account-registry","partners",lt(e.fields[0])];return Xe(n=>{ct(k(t))})}}}function pg(e,t){switch(t.tag){case 1:return new pe(1,[]);case 2:return t.fields[0].tag===1?new pe(2,[new w(1,[t.fields[0].fields[0]])]):new pe(2,[new w(0,[e(t.fields[0].fields[0])])]);case 3:return new pe(3,[t.fields[0]]);default:return new pe(0,[])}}class Zu extends ie{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function mg(e){return new Zu(Fl("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:$r}),Fl("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:$r}))}const $g=new Zu(!1,!1);class H extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class tn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ju(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Yu(e,t){switch(e.tag){case 2:return ip(Ju(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ju(t)}}function Xu(e,t){gg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function gg(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 wg(){return Xu(-621355968e5,0)}function _g(e){const[t,n]=pl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Xu(t.getTime(),r)}function bg(e,t){try{return t.contents=_g(e),!0}catch{return!1}}function go(e){return e<0?Math.ceil(e):Math.floor(e)}function Qu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return yg(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 yg(e){return Number(BigInt(e)/10000n)}function vg(e){return go(e/864e5)}function xg(e){return go(e%864e5/36e5)}function Cg(e){return go(e%36e5/6e4)}function Sg(e){return go(e%6e4/1e3)}function kg(e){return go(e%1e3)}function Ag(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(vg(e)),o=Math.abs(xg(e)),s=Math.abs(Cg(e)),i=Math.abs(Sg(e)),a=Math.abs(kg(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:ge(o,2)}:${ge(s,2)}:${ge(i,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+ge(a,3):"."+mh(a,3,7)}`}function Eg(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 Qu(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*Qu(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ig(e,t){try{return t.contents=Eg(e),!0}catch{return!1}}class ed{constructor(t){this.k=t}}function Nt(e){return new ed(e)}function Q(e){return e.k}class me extends ed{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Mt(e,t,n,r){return new me(e,t,n,r)}function Ne(e){return e.left}function xe(e){return e.right}function Or(e){return e.h}function Mv(){}function td(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=T(n);if(o instanceof me){const s=o;e=Ne(s),t=td(xe(s),r+1);continue e}else return r+1|0}else return r|0}}function Tg(e){return td(e,0)}function Gt(e,t,n){let r,o,s;const i=e;if(i!=null){const d=T(i);s=d instanceof me?(r=d,Or(r)):1}else s=0;let a;const l=n;if(l!=null){const d=T(l);a=d instanceof me?(o=d,Or(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?Nt(t):Mt(t,e,n,c+1)}function nd(e,t,n){let r,o,s,i,a,l,c,d,u;const h=e;if(h!=null){const _=T(h);u=_ instanceof me?(r=_,Or(r)):1}else u=0;let f;const p=n;if(p!=null){const _=T(p);f=_ instanceof me?(o=_,Or(o)):1}else f=0;if(f>u+2){const _=T(n);if(_ instanceof me){const $=_;if(s=Ne($),(s!=null?(i=T(s),i instanceof me?(a=i,Or(a)):1):0)>u+1){const v=T(Ne($));if(v instanceof me){const y=v;return Gt(Gt(e,t,Ne(y)),Q(y),Gt(xe(y),Q($),xe($)))}else throw new Error("internal error: Set.rebalance")}else return Gt(Gt(e,t,Ne($)),Q($),xe($))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const _=T(e);if(_ instanceof me){const $=_;if(l=xe($),(l!=null?(c=T(l),c instanceof me?(d=c,Or(d)):1):0)>f+1){const v=T(xe($));if(v instanceof me){const y=v;return Gt(Gt(Ne($),Q($),Ne(y)),Q(y),Gt(xe(y),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(Ne($),Q($),Gt(xe($),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(e,t,n)}function Pr(e,t,n){if(n!=null){const r=T(n),o=e.Compare(t,Q(r))|0;if(r instanceof me){const s=r;return o<0?nd(Pr(e,t,Ne(s)),Q(s),xe(s)):o===0?n:nd(Ne(s),Q(s),Pr(e,t,xe(s)))}else{const s=e.Compare(t,Q(r))|0;return s<0?Mt(t,void 0,n,2):s===0?n:Mt(t,n,void 0,2)}}else return Nt(t)}function rd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,Q(i))|0;if(i instanceof me){const l=i;if(a<0){e=r,t=o,n=Ne(l);continue e}else{if(a===0)return!0;e=r,t=o,n=xe(l);continue e}}else return a===0}else return!1}}function od(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof me){const s=o;od(n,Ne(s)),n(Q(s)),e=n,t=xe(s);continue e}else n(Q(o))}break}}class Ng extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function sd(e){e:for(;;){const t=e;if(K(t))return Be();{const n=D(t),r=b(t);if(n!=null){const o=T(n);if(o instanceof me){const s=o;e=Pe([Ne(s),Nt(Q(s)),xe(s)],r);continue e}else return t}else{e=r;continue e}}}}function id(e){return new Ng(sd(re(e)),!1)}function Mg(){throw new Error("Enumeration not started")}function Rg(){throw new Error("Enumeration already started")}function ad(e){if(e.started){const t=e.stack;if(K(t))return Rg();if(D(t)!=null){const n=T(D(t));return Q(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Mg()}function Og(e){if(e.started){const t=e.stack;if(K(t))return!1;if(D(t)!=null){if(T(D(t))instanceof me)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sd(b(t)),!K(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!K(e.stack)}function ld(e){let t=id(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ad(t)},"System.Collections.IEnumerator.get_Current"(){return ad(t)},"System.Collections.IEnumerator.MoveNext"(){return Og(t)},"System.Collections.IEnumerator.Reset"(){t=id(e)},Dispose(){}}}function Pg(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(o))return K(s)?0:-1;if(K(s))return 1;if(D(s)!=null)if(D(o)!=null){const i=T(D(o)),a=T(D(s));if(i instanceof me){const l=i;if(Ne(l)==null)if(a instanceof me){const c=a;if(Ne(c)==null){const d=r.Compare(Q(l),Q(c))|0;if(d!==0)return d|0;e=r,t=kt(xe(l),b(o)),n=kt(xe(c),b(s));continue e}else{let d,u,h,f,p;switch(K(o)?K(s)?d=2:D(s)!=null?(d=1,f=b(s),p=T(D(s))):d=2:D(o)!=null?(d=0,u=b(o),h=T(D(o))):K(s)?d=2:D(s)!=null?(d=1,f=b(s),p=T(D(s))):d=2,d){case 0:if(h instanceof me){const _=h;e=r,t=Pe([Ne(_),Mt(Q(_),void 0,xe(_),0)],u),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(h))],u),n=s;continue e}case 1:if(p instanceof me){const _=p;e=r,t=o,n=Pe([Ne(_),Mt(Q(_),void 0,xe(_),0)],f);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(p))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(Q(l),Q(a))|0;if(c!==0)return c|0;e=r,t=kt(xe(l),b(o)),n=kt(void 0,b(s));continue e}else{let c,d,u,h,f;switch(K(o)?K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2:D(o)!=null?(c=0,d=b(o),u=T(D(o))):K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2,c){case 0:if(u instanceof me){const p=u;e=r,t=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],d),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(u))],d),n=s;continue e}case 1:if(f instanceof me){const p=f;e=r,t=o,n=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],h);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof me){const l=a;if(Ne(l)==null){const c=r.Compare(Q(i),Q(l))|0;if(c!==0)return c|0;e=r,t=kt(void 0,b(o)),n=kt(xe(l),b(s));continue e}else{let c,d,u,h,f;switch(K(o)?K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2:D(o)!=null?(c=0,d=b(o),u=T(D(o))):K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2,c){case 0:if(u instanceof me){const p=u;e=r,t=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],d),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(u))],d),n=s;continue e}case 1:if(f instanceof me){const p=f;e=r,t=o,n=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],h);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(Q(i),Q(a))|0;if(l!==0)return l|0;e=r,t=b(o),n=b(s);continue e}}else{T(D(s));let i,a,l,c,d;switch(K(o)?K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2:D(o)!=null?(i=0,a=b(o),l=T(D(o))):K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2,i){case 0:if(l instanceof me){const u=l;e=r,t=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],a),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(l))],a),n=s;continue e}case 1:if(d instanceof me){const u=d;e=r,t=o,n=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],c);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(o)!=null){T(D(o));let i,a,l,c,d;switch(K(o)?K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2:D(o)!=null?(i=0,a=b(o),l=T(D(o))):K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2,i){case 0:if(l instanceof me){const u=l;e=r,t=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],a),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(l))],a),n=s;continue e}case 1:if(d instanceof me){const u=d;e=r,t=o,n=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],c);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=b(o),n=b(s);continue e}}}function cd(e,t,n){return t==null?n==null?0:-1:n==null?1:Pg(e,re(t),re(n))|0}function Dg(e,t,n){let r=n;od(o=>{St(t,r,o),r=r+1|0},e)}function Fg(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Pr(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function Vg(e,t){return Xo((n,r)=>Pr(e,r,n),void 0,t)}function Lg(e,t){return un((n,r)=>Pr(e,r,n),void 0,t)}function ud(e,t){if(Xt(t))return Vg(e,t);if(t instanceof pt)return Lg(e,t);{const n=Re(t);try{return Fg(e,void 0,n)}finally{we(n)}}}class oa{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return zg(this)|0}Equals(t){let n;const r=this;return t instanceof oa&&(n=t,cd(Dr(r),qt(r),qt(n))===0)}toString(){return"set ["+ae("; ",De(n=>dt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return cd(Dr(n),qt(n),qt(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 rd(Dr(n),t,qt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Dg(qt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return sa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return sa(this)|0}GetEnumerator(){return ld(qt(this))}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ld(qt(this))}get size(){return sa(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 dd(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;Sr(o=>{t(o,o,r)},r)}}function gs(e,t){return new oa(e,t)}function Dr(e){return e.comparer}function qt(e){return e.tree}function Bg(e){return gs(e,void 0)}function Ug(e,t){return gs(Dr(e),Pr(Dr(e),t,qt(e)))}function sa(e){return Tg(qt(e))}function dd(e,t){return rd(Dr(e),t,qt(e))}function zg(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)+ln(r)+631|0}}finally{we(n)}return Math.abs(t)|0}function ia(e,t){return dd(t,e)}function jg(e,t){return Ug(t,e)}function Hg(e){return Bg(e)}function Wg(e,t){return gs(t,ud(t,e))}function Gg(e,t){return gs(t,ud(t,e))}function wo(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
3
+ `)+" }"}function Th(e){const t=Object.values(e).map(n=>ln(n));return Zr(t)}function Nh(e,t){if(e===t)return!0;if(Vo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!He(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Mh(e,t){if(e===t)return 0;if(Vo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Ft(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ie{toJSON(){return Eh(this)}toString(){return Ih(this)}GetHashCode(){return Th(this)}Equals(t){return Nh(this,t)}CompareTo(t){return Mh(this,t)}}class ft{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 Rh{constructor(t){this.message=t}}function Oh(e){return e instanceof Rh||e instanceof Error}function Ph(e){return e instanceof Promise}function Bo(e){return Oh(e)||Ph(e)?e:new Error(String(e))}const gr=Symbol("numeric");function Qa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[gr])}function Dh(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ys(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[gr]().multiply(t)}function Uo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[gr]().toFixed(t)}function zo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[gr]().toPrecision(t)}function jo(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[gr]().toExponential(t)}function Ho(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[gr]().toHex()}class Fh{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Bt{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 Me(this)}GetHashCode(){return el(this)}Equals(t){return Xs(this,t)}}function xt(e){return e.generics!=null?e.generics:[]}function el(e){const t=$r(e.fullname),n=xt(e).map(el);return Zr([t,...n])}function Xs(e,t){return e.fullname===""?t.fullname===""&&Ks(Xr(e),Xr(t),([n,r],[o,s])=>n===o&&Xs(r,s)):e.fullname===t.fullname&&Ks(xt(e),xt(t),Xs)}function ht(e,t,n,r){return new Bt(e,t,n,void 0,r)}function tl(e,t,n,r){const o=new Bt(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,a)=>new Fh(o,a,s[a],i))});return o}function Ee(e){return new Bt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Qs(e){return new Bt("Microsoft.FSharp.Collections.FSharpList`1",[e])}function nl(e){return new Bt("[]",[e])}const Vh=new Bt("System.Object"),j=new Bt("System.String");function wr(e){if(Array.isArray(e))return e[0];if(e instanceof Bt){const t=Yr(e);if(t!=null)return wr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Me(e){const t=Yr(e);return t!=null?Me(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Me(n)).join(",")+"]"}function rl(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 ol(e){return e.generics!=null&&e.generics.length>0}function ei(e){return e.enumCases!=null&&e.enumCases.length>0}function sl(e){return e.generics==null?e:new Bt(e.fullname,e.generics.map(()=>Vh))}function il(e){var t;return(t=e.generics)==null?void 0:t[0]}function _r(e){if(ei(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Lh(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 br(e,t){const n=parseInt(t,10);return Lh(e,isNaN(n)?t:n)[1]}function al(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Xr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ll(e){if(ti(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function cl(e){return e instanceof Bt?e.cases!=null:e instanceof z}function ul(e){return e instanceof Bt?e.fields!=null:e instanceof ie}function ti(e){return e.fullname.startsWith("System.Tuple")}function Bh(e,t){const r=al(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function dl(e){return e.fields==null?[]:e.fields}function Uh(e,t){return e[t[0]]}function Iv(e){return e}function zh(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 jh(e,t){const n=Xr(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 Hh(e,t){return e}const Wh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Gh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Kh=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ct(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function fl(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Zh(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 ni(e,t,n){let r=0,o=0,s="";const i=n?Qr(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ct(t,r,"d"),r+=o,o){case 1:s+=ml(i);break;case 2:s+=ge(ml(i),2);break;case 3:s+=Wh[wl(i)];break;case 4:s+=Gh[wl(i)];break}break;case"f":if(o=Ct(t,r,"f"),r+=o,o<=3){const $=10**(3-o);s+=ge(Math.floor(Ko(i)/$),o)}else o<=7&&(s+=(""+Ko(i)).padEnd(o,"0"));break;case"F":if(o=Ct(t,r,"F"),r+=o,o<=3){const $=10**(3-o),v=Math.floor(Ko(i)/$);v!=0&&(s+=ge(v,o))}else if(o<=7){const $=Ko(i);$!=0&&(s+=ge($,3))}break;case"g":o=Ct(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ct(t,r,"h"),r+=o,o){case 1:s+=qo(i)%12;break;case 2:s+=ge(qo(i)%12,2);break}break;case"H":switch(o=Ct(t,r,"H"),r+=o,o){case 1:s+=qo(i);break;case 2:s+=ge(qo(i),2);break}break;case"K":switch(o=Ct(t,r,"K"),r+=o,o){case 1:switch(hl(i)){case 1:s+="Z";break;case 2:s+=yr(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ct(t,r,"m"),r+=o,o){case 1:s+=$l(i);break;case 2:s+=ge($l(i),2);break}break;case"M":switch(o=Ct(t,r,"M"),r+=o,o){case 1:s+=Zo(i);break;case 2:s+=ge(Zo(i),2);break;case 3:s+=qh[Zo(i)-1];break;case 4:s+=Kh[Zo(i)-1];break}break;case"s":switch(o=Ct(t,r,"s"),r+=o,o){case 1:s+=gl(i);break;case 2:s+=ge(gl(i),2);break}break;case"t":switch(o=Ct(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=Ct(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=ge(i.getFullYear()%100,2);break;case 3:s+=ge(i.getFullYear(),3);break;case 4:s+=ge(i.getFullYear(),4);break;case 5:s+=ge(i.getFullYear(),5);break}break;case"z":o=Ct(t,r,"z"),r+=o;let l="";switch(hl(i)){case 1:l="+00:00";break;case 2:l=yr(i.getTimezoneOffset()*-6e4);break;case 0:l=yr(op(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${d}`;break;case 2:s+=`${c}${ge(d,2)}`;break;default:s+=`${c}${ge(d,2)}:${ge(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,f]=Zh(t,r);s+=h,r+=f;break;case"%":const p=fl(t,r);if(p>=0&&p!==37)r+=2,s+=ni(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const _=fl(t,r);if(_>=0)r+=2,s+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function hl(e){return e.kind||0}function yr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ge(n,2)+":"+ge(r,2)}function Wo(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 Jh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ge(e.getFullYear(),4)+"-"+ge(e.getMonth()+1,2)+"-"+ge(e.getDate(),2)+"T"+ge(e.getHours(),2)+":"+ge(e.getMinutes(),2)+":"+ge(e.getSeconds(),2)+"."+ge(e.getMilliseconds(),3)+(n?yr(e.getTimezoneOffset()*-6e4):"")}}function Yh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+yr(t)}function Xh(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," ")+yr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Wo(n,"first");case"T":case"t":return Wo(n,"second");case"O":case"o":return Yh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ni(n,t,!0)}function Qh(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?Wo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Wo(e,"second"):e.toLocaleTimeString();case"O":case"o":return Jh(e,n);default:throw new Error("Unrecognized Date print format")}else return ni(e,t,n)}function Go(e,t,n){return e.offset!=null?Xh(e,t):Qh(e,t)}function Qr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ep(){return Qr(-621355968e5,1)}function pl(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 tp(e,t=!1){const[n,r]=pl(e),o=r!=null?t&&r==="Z"?1:2:0;return Qr(n.getTime(),o)}function np(e,t){try{return t.contents=tp(e),!0}catch{return!1}}function rp(e){return e.kind===1?e:Qr(e.getTime(),1)}function op(e){return e.kind===2?e:Qr(e.getTime(),2)}function ml(e){return e.kind===1?e.getUTCDate():e.getDate()}function qo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ko(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function $l(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Zo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function gl(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function wl(e){return e.kind===1?e.getUTCDay():e.getDay()}function _l(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 ri(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sp(e,t,n=0){return e.lastIndex=n,e.exec(t)}function bl(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 ip(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 d=c?l-3:l-2;for(let u=0;u<d;u++)a.push(arguments[u]);a.index=arguments[d++],a.input=arguments[d++],c&&(a.groups=arguments[d]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=_l(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=bl(e,a),c=bl.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 eo=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,to=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,ap=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function yl(e,t){return Dh(e,t)<0}function Ut(e){return{input:e,cont:lp(e)}}function vl(e,t){let n=0,r=0,o="";to.lastIndex=0;let s=to.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,d]=s;r=to.lastIndex,o+=Sl(t[n++],a,l,c,d),to.lastIndex=r-1,s=to.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function oi(e,t){return typeof t=="string"?e(t):t.cont(e)}function xl(e){return oi(t=>console.log(t),e)}function Qt(e){return oi(t=>t,e)}function Cl(e){return oi(t=>{throw new Error(t)},e)}function Sl(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Qa(e))switch(o.toLowerCase()!=="x"&&(yl(e,0)?(e=Ys(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=Uo(e,r);break;case"g":case"G":e=r!=null?zo(e,r):zo(e);break;case"e":case"E":e=r!=null?jo(e,r):jo(e);break;case"x":e=Ho(e);break;case"X":e=Ho(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Go(e):e=dt(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=no(e,n-s.length,l,a),e=s+e):e=no(s+e,n,l,a)}return e}function kl(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,d,u,h,f]=l[0];let p=u;if(o>=0)p=o,o=-1;else if(p==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=Sl(c,d,p,h,f),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):kl(e,a,l,i,o)}}function lp(e){return t=>{eo.lastIndex=0;const n=[],r=[];let o=0,s=eo.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=eo.lastIndex,eo.lastIndex-=1,s=eo.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),kl(t,n,r))}}function Al(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(ap,(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(Qa(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=Uo(c,a);break;case"g":case"G":c=a!=null?zo(c,a):zo(c);break;case"e":case"E":c=a!=null?jo(c,a):jo(c);break;case"p":case"P":a=a??2,c=Uo(Ys(c,100),a)+" %";break;case"d":case"D":c=a!=null?si(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?si(Ho(c),a,"0"):Ho(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let d="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,f)=>{yl(c,0)&&(c=Ys(c,-1),d="-"),f=f==null?"":f.substring(1),c=Uo(c,Math.max(f.length,0));let[p,_]=c.split(".");_||(_="");const $=h.replace(/,/g,"").replace(/^#+/,"").length;p=si(p,$,"0");const v=f.replace(/#+$/,"").length;if(v>_.length?_=up(_,v,"0"):v<_.length&&(_=_.substring(0,v)+_.substring(v).replace(/0+$/,"")),h.indexOf(",")>0){const y=p.length%3,C=Math.floor(p.length/3);let R=y>0?p.substr(0,y)+(C>0?",":""):"";for(let L=0;L<C;L++)R+=p.substr(y+L*3,3)+(L<C-1?",":"");p=R}return _.length>0?p+"."+_:p}),c=d+c}}else c instanceof Date?c=Go(c,l||i):c=dt(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=no(String(c),Math.abs(s)," ",s<0)),c})}function cp(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Jo(e){return typeof e!="string"||e.length===0}function El(e){return typeof e!="string"||/^\s*$/.test(e)}function ae(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function no(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 si(e,t,n){return no(e,t,n)}function up(e,t,n){return no(e,t,n,!0)}function ii(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(d=>d).map(ri),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const d=a.exec(e);if(d===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,d.index).trim():e.substring(c,d.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 dp(e,...t){if(t.length===0)return e.trim();const n="["+ri(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function fp(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+ri(t.join(""))+"]+$"),"")}function Il(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 jn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ln(this.value)}Equals(t){return t==null?!1:He(this.value,t instanceof jn?t.value:t)}CompareTo(t){return t==null?1:Ft(this.value,t instanceof jn?t.value:t)}}function T(e){if(e==null)throw new Error("Option has no value");return e instanceof jn?e.value:e}function ai(e){return e instanceof jn?e.value:e}function nt(e){return e==null||e instanceof jn?new jn(e):e}function hp(e){return e??void 0}function li(e){return e==null?[]:[T(e)]}function Ye(e,t){return e!=null?T(e):t}function Tl(e,t){return e!=null?T(e):t()}function zt(e,t){return t!=null?nt(e(T(t))):void 0}const Nl="Collection was empty.";function ci(e,t){return typeof e=="function"?new e(t):new Array(t)}function Ml(e,t){return e>t?e:t}function Yo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function An(e,t,n){const r=t.length|0,o=ci(n,r);for(let s=0;s<=r-1;s++)St(o,s,e(fe(s,t)));return o}function pp(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=ci(r,t.length);for(let s=0;s<=t.length-1;s++)St(o,s,e(fe(s,t),fe(s,n)));return o}function mp(e,t){const n=ci(t,1);return St(n,0,e),n}function $p(e){return e.slice().reverse()}function gp(e,t){return t.find(e)}function wp(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(fe(o,t));if(s!=null){const i=T(s);r.push(i)}}return He(n,he())?r:An(o=>o,r,n)}function Xo(e,t,n){const r=e;return n.reduce(r,t)}function _p(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 ui(e,t,n){return t==null}function fe(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 St(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 Rl(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function bp(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,fe(r,e));return n}class pt extends ie{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ae("; ",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 d=T(l),u=T(c);if(He(i.head,a.head)){o=d,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 d=T(c);if(i>18)return a|0;r=i+1,o=(a<<1)+ln(l.head)+631*i,s=d;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 d=T(l),u=T(c),h=Ft(i.head,a.head)|0;if(h===0){o=d,s=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return vp(this)}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Re(this)}}class yp{constructor(t){this.xs=t,this.it=this.xs,this.current=he()}"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=T(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=he()}Dispose(){}}function vp(e){return new yp(e)}function je(){return new pt(he(),void 0)}function ro(e,t){return new pt(e,t)}function cn(e){return e.tail==null}function Ol(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=T(i);continue e}else return o|0}})(0,e)|0}function En(e){if(e.tail!=null)return e.head;throw new Error(Nl+"\\nParameter name: list")}function rt(e){const t=e.tail;if(t!=null)return T(t);throw new Error(Nl+"\\nParameter name: list")}function Be(){return je()}function kt(e,t){return ro(e,t)}function re(e){return ro(e,je())}function K(e){return cn(e)}function vr(e){return Ol(e)}function D(e){return En(e)}function b(e){return rt(e)}function Hn(e){const t=Ol(e)|0,n=Yo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!cn(a)){St(n,i,En(a)),o=i+1,s=rt(a);continue e}break}})(0,e),n}function un(e,t,n){let r=t,o=n;for(;!cn(o);)r=e(r,D(o)),o=rt(o);return r}function Qo(e){return un((t,n)=>ro(n,t),je(),e)}function xp(e,t,n){return Rl(e,Hn(t),n)}function Cp(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(cn(c))return l;o=a+1,s=e(a,l,En(c)),i=rt(c);continue e}})(0,t,n)}function es(e,t){un((n,r)=>{e(r)},void 0,t)}function Pe(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ro(fe(r,e),n);return n}function k(e){return Pe(e,je())}function Sp(e){let t,n;if(Xt(e))return k(e);if(e instanceof pt)return e;{const r=je();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 pt(l,void 0),t.tail=n,n)}}finally{we(s)}const i=o,a=je();return i.tail=a,rt(r)}}function ot(e,t){return un((n,r)=>ro(r,n),t,Qo(e))}function kp(e,t){let n,r;const o=je();let s=o,i=t;for(;!cn(i);){let c=e(En(i));for(;!cn(c);)s=(n=s,r=new pt(En(c),void 0),n.tail=r,r),c=rt(c);i=rt(i)}const a=s,l=je();return a.tail=l,rt(o)}function Ap(e,t){const n=je(),r=Cp((s,i,a)=>{const l=new pt(e(s,a),void 0);return i.tail=l,l},n,t),o=je();return r.tail=o,rt(n)}function Wn(e,t){const n=je(),r=un((s,i)=>{const a=new pt(e(i),void 0);return s.tail=a,a},n,t),o=je();return r.tail=o,rt(n)}function Ep(e,t){return(r=>{e:for(;;){const o=r;if(cn(o))return;{const s=e(En(o));if(s==null){r=rt(o);continue e}else return s}}})(t)}function Ip(e,t){return Ep(n=>e(n)?nt(n):void 0,t)}function Tp(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(cn(i))return;if(e(En(i)))return s;r=s+1,o=rt(i);continue e}})(0,t)}function Np(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(cn(i))return;if(s===e)return nt(En(i));r=s+1,o=rt(i);continue e}})(0,t)}function Pl(e,t){const n=je(),r=un((s,i)=>{if(e(i)){const a=new pt(i,void 0);return s.tail=a,a}else return s},n,t),o=je();return r.tail=o,rt(n)}function Mp(e,t){const n=je(),r=je(),o=n,s=un((l,c)=>{let d,u;const h=l[0],f=l[1];return e(c)?[(d=new pt(c,void 0),h.tail=d,d),f]:[h,(u=new pt(c,void 0),f.tail=u,u)]},[o,r],t),i=je();s[0].tail=i;const a=je();return s[1].tail=a,[rt(o),rt(r)]}function Dl(e,t){const n=je(),r=un((s,i)=>{const a=e(i);if(a==null)return s;{const l=new pt(T(a),void 0);return s.tail=l,l}},n,t),o=je();return r.tail=o,rt(n)}function Fl(e,t,n){return Tp(r=>n.Equals(e,r),t)!=null}function Rp(e,t){const n=Hn(t);return n.sort(e),k(n)}function Op(e,t,n){return Rp((r,o)=>n.Compare(e(r),e(o)),t)}function Pp(e,t){return k(An(k,_p(e,Hn(t))))}function Dp(e){return new w(0,[e])}function Vl(e){return new w(1,[e])}class w extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function dn(e,t){return t.tag===0?Dp(e(t.fields[0])):Vl(t.fields[0])}function Fp(e,t){return t.tag===0?e(t.fields[0]):Vl(t.fields[0])}function At(e){return e.tag===0}class Vp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Ll(e){return new Vp(e)}function di(e){return e.fields[0]}class Lp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Bp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Up extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class zp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class jp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let Hp=class extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Wp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Gp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function fn(e){return e.fields[0]}function st(e){return new Gp(e)}function ts(e){return fn(e)}class qp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function hn(e){return e.fields[0]}function jt(e){return new qp(e)}function ns(e){return hn(e)}class Kp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessName"]}}class Zp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessNumber"]}}class Jp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Address1"]}}class Yp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Address2"]}}class Xp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}class Qp extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}let em=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["State"]}};class tm extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SalesforceParentRecordId"]}}function nm(e){throw new Error(e)}const rm="Enumeration already finished.",om="Enumeration has not started. Call MoveNext.",Bl="The input sequence has an insufficient number of elements.",sm="Reset is not supported on this enumerator.";function im(){throw new Error(sm)}function fi(){throw new Error(om)}function hi(){throw new Error(rm)}class am{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+dt(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{we(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function lm(e){return new am(e)}class cm{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"(){im()}Dispose(){this.dispose()}}function rs(e,t,n){return new cm(e,t,n)}function um(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=T(n);try{we(a)}finally{n=void 0}}if(t!=null){const a=T(t);try{we(a)}finally{t=void 0}}};return rs(()=>(r?o&&hi():fi(),s!=null?T(s):hi()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,d=n;if(c!=null)if(d!=null){const u=T(d);if(u["System.Collections.IEnumerator.MoveNext"]())s=nt(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{we(u)}finally{n=void 0}}else{const u=T(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 T(l)}},()=>{o||i()})}function dm(e,t){return rs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{we(t)}finally{}})}function Ul(e,t,n){let r=!1,o,s=nt(e());const i=()=>{if(s!=null){const l=T(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return rs(()=>(r||fi(),o!=null?T(o):hi()),()=>{if(r||(r=!0),s!=null){const l=T(s);let c;try{c=t(l)}catch(d){throw a(),d}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function fm(e,t){let n,r=t;return rs(()=>{if(n!=null){const o=T(n)[0];return T(n)[1],o}else return fi()},()=>(n=e(r),n!=null?(T(n)[0],r=T(n)[1],!0):!1),()=>{})}function hm(e,t){t==null&&nm(e)}function xr(e){return lm(e)}function pn(e){return hm("source",e),Re(e)}function A(e){return xr(()=>Re(e()))}function pi(e){return xr(()=>um(e))}function pm(e,t){return xr(()=>fm(e,t))}function Et(){return A(()=>new Array(0))}function E(e){return A(()=>mp(e))}function Tv(e){return e}function mi(e){return e instanceof pt?Hn(e):Array.from(e)}function Ie(e){return Xt(e)?k(e):e instanceof pt?e:Sp(e)}function zl(e,t,n){return xr(()=>Ul(e,t,n))}function jl(e,t,n){return xr(()=>{let r=-1;return Ul(e,o=>(r=r+1|0,t(r,o)),n)})}function B(e,t){return pi([e,t])}function oo(e,t){return zl(()=>pn(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=>{we(n)})}function mm(e,t,n){const r=pn(t);try{const o=pn(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{we(o)}}finally{we(r)}}function Cr(e,t,n){const r=pn(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{we(r)}}function so(e,t,n){const r=pn(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{we(r)}}function Sr(e,t){so((n,r)=>{e(r)},void 0,t)}function $m(e,t){so((n,r)=>(e(n,r),n+1|0),0,t)}function De(e,t){return zl(()=>pn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?nt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{we(n)})}function $i(e,t){return jl(()=>pn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?nt(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{we(n)})}function gm(e){return A(()=>$p(mi(e)))}function wm(e,t){return xr(()=>{const n=pn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bl+"\\nParameter name: source");return dm(()=>{},n)}catch(r){throw we(n),r}})}function _m(e,t){return jl(()=>pn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return nt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bl+"\\nParameter name: source")}else return},n=>{we(n)})}function bm(e,t){return A(()=>pi(De(e,t)))}const Gn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function gi(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 ym(e,t){switch(t){case Gn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Gn.SnakeCase:return gi(e,"_");case Gn.SnakeCaseAllCaps:return gi(e,"_").toUpperCase();case Gn.KebabCase:return gi(e,"-");case Gn.None:default:return e}}function In(e,t=Gn.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=ym(i,a),n[i]=l}for(let i of e){let a=Gn.None;if(i==null&&o(i),i instanceof z){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 Hl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function io(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class vm{constructor(t,n){const r=new ft(he());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"]();wi(r.contents,s[0],s[1])}}finally{we(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Re(this)}GetEnumerator(){return Re(pi(this.hashMap.values()))}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){wi(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Wl(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=os(this,t[0]);let o;switch(r!=null&&He(T(r)[1],t[1])?(o=0,T(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){$m((o,s)=>{St(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Gl(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=os(n,t[0]);return r!=null?(He(T(r)[1],t[1])&&_i(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){wi(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Zl(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return ql(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Kl(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return mi(A(()=>De(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return _i(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=os(this,t);if(o!=null){const s=T(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return mi(A(()=>De(n=>n[1],t)))}get size(){return Gl(this)|0}clear(){Wl(this)}delete(t){return _i(this,t)}entries(){return De(n=>[n[0],n[1]],this)}get(t){return ql(this,t)}has(t){return Zl(this,t)}keys(){return De(n=>n[0],this)}set(t,n){const r=this;return Kl(r,t,n),r}values(){return De(n=>n[1],this)}forEach(t,n){const r=this;Sr(o=>{t(o[1],o[0],r)},r)}}function ao(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=he();return r=[Hl(e.hashMap,n,new ft(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function os(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return io(e.hashMap,n[1])[n[2]];default:return}}function Wl(e){e.hashMap.clear()}function Gl(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{we(n)}return t|0}function ql(e,t){const n=os(e,t);if(n!=null)return T(n)[1];throw new Error("The item was not found in collection")}function Kl(e,t,n){const r=ao(e,t);r[0]?r[2]>-1?io(e.hashMap,r[1])[r[2]]=[t,n]:io(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function wi(e,t,n){const r=ao(e,t);if(r[0]){if(r[2]>-1)throw new Error(Al("An item with the same key has already been added. Key: {0}",t));io(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Zl(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function _i(e,t){const n=ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return io(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function xm(e){return new Jl(0,[e])}function Cm(e){return new Jl(1,[e])}class Jl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Sm(e){return xm(e)}function km(e){return Cm(e)}const Am=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Yl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Em=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Im(e){function t(r){return r.replace(Yl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Am.test(n))return dp(n,"{","}","(",")");if(Yl.test(n))return t(n);if(Em.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 Tm(e,t){try{return t.contents=Im(e),!0}catch{return!1}}class Xl extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function kr(e){return e.fields[0]}var bi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(bi||(bi={}));function Nm(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Ql(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 Mm(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 Rm(e,t){if(t&bi.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 Om(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||Rm(s,t),!Mm(n).test(i))return Nm(o,n)}return null}function Pm(e,t,n,r,o){const s=Om(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Ql(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,d]=Ql(n,r);if(i>=c&&i<=d)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ar(e,t,n,r,o){try{return o.contents=Pm(e,t,n,r),!0}catch{return!1}}const Dm="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",Fm="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function Vm(){const t=[...Dm].map(s=>(s.codePointAt(0)??0)-35),n=[...Fm].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),o=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let i=r.length,a=0;for(;i-a>1;){const l=Math.floor((i+a)/2),c=r[l];if(s<c)i=l;else if(s===c){i=a=l;break}else c<s&&(a=l)}return o[a]}}const Lm=256,Bm=Vm();function Um(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const zm=e=>Hm(e,0);function jm(e,t){const n=Um(e,t);return Bm(n)}function Hm(e,t){return(1<<jm(e,t)&Lm)!==0}function Wm(e,t){const n=sp(_l(e),t);if(n!=null)return b(Ie(A(()=>De(r=>r||"",n))))}function Gm(e){let t;const n=Wm(".*?@(.*)",e);switch(n!=null?K(n)?t=1:K(b(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function It(e,t){return Jo(t)?new w(1,[Qt(Ut("%s cannot be null or empty"))(e)]):new w(0,[t])}function qm(e){const t=Gm(e);if(t!=null){const n=t;return new w(0,[n])}else return new w(1,["Email is not in the correct format"])}function Km(e){return~~e.charCodeAt(0)-48}function Zm(e){let t;const n=new w(1,["BusinessNumber is not valid"]),r=new Int32Array([10,1,3,5,7,9,11,13,15,17,19]),o=An(Km,(t=e.split(""),t.filter(zm)),Int32Array);return o.length===11?(St(o,0,fe(0,o)-1|0),bp(pp((s,i)=>s*i,o,r,Int32Array),{GetZero:()=>0,Add:(s,i)=>s+i})%89===0?new w(0,[e]):n):n}function ec(e){const t=It("Name",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[Ll(t.fields[0])])}function ss(e){return di(e)}function tc(e){const t=It("Website",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Lp(t.fields[0])])}function nc(e){return e.fields[0]}function rc(e){const t=It("FirstName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Bp(t.fields[0])])}function oc(e){return e.fields[0]}function sc(e){const t=It("LastName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Up(t.fields[0])])}function ic(e){return e.fields[0]}function ac(e){let t;const n=It("Email",e);return t=n.tag===1?new w(1,[n.fields[0]]):qm(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new zp(t.fields[0])])}function lc(e){const t=It("MobilePhone",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new jp(t.fields[0])])}function cc(e){return e.fields[0]}class uc extends ie{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function yi(){return ht("AccountRegistry.Shared.Primitives.ContactDetails",[],uc,()=>[["FirstName",j],["LastName",j],["Email",j],["MobilePhone",j]])}function Jm(e){const t=rc(e.FirstName);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=sc(e.LastName);if(n.tag===1)return new w(1,[n.fields[0]]);{const r=ac(e.Email);if(r.tag===1)return new w(1,[r.fields[0]]);{const o=lc(e.MobilePhone);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[new Hp(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Ym(e){const t=e;if(t!=null)return new Wp(t)}function Xm(e){if(e!=null)return e.fields[0]}function lt(e){return fn(e)}function mn(e){return hn(e)}function Qm(e){const t=It("BusinessName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Kp(t.fields[0])])}function e$(e){let t;const n=It("BusinessNumber",e);return t=n.tag===1?new w(1,[n.fields[0]]):Zm(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Zp(t.fields[0])])}function t$(e){const t=It("Address1",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Jp(t.fields[0])])}function n$(e){const t=e;if(t!=null)return new Yp(t)}function r$(e){const t=It("City",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Xp(t.fields[0])])}function o$(e){const t=It("Postcode",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new Qp(t.fields[0])])}function s$(e){const t=It("State",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new em(t.fields[0])])}class i$ 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 a$(){return ht("AccountRegistry.Shared.Primitives.LegalEntity",[],i$,()=>[["BusinessName",j],["BusinessNumber",j],["Address1",j],["Address2",Ee(j)],["City",j],["Postcode",j],["State",Ee(j)],["Phone",j],["CountryCode",Ee(j)]])}function l$(e){const t=It("SalesforceParentRecordId",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new tm(t.fields[0])])}class dc extends ie{constructor(t,n){super(),this.SalesforceParentRecordId=t,this.SalesforceRecordId=n}}function c$(){return ht("AccountRegistry.Shared.Primitives.SalesforceInfo",[],dc,()=>[["SalesforceParentRecordId",j],["SalesforceRecordId",Ee(j)]])}class fc extends ie{constructor(t,n){super(),this.Code=t,this.Name=n}}function u$(){return ht("AccountRegistry.Shared.Primitives.AnzsicClassifier",[],fc,()=>[["Code",j],["Name",j]])}let d$=class extends ie{constructor(t,n,r,o,s,i){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s,this.AccountProvisioningMode=i}};function f$(){return ht("AccountRegistry.Shared.AdminApi.Partner",[],d$,()=>[["StreamId",j],["Name",j],["Website",j],["ContactDetails",Ee(yi())],["Notes",Ee(j)],["AccountProvisioningMode",p$()]])}class h$ extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Api","Direct"]}}function p$(){return tl("AccountRegistry.Shared.AdminApi.AccountProvisioningModeDto",[],h$,()=>[[],[]])}class m$ 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 $$(){return ht("AccountRegistry.Shared.AdminApi.Account",[],m$,()=>[["StreamId",j],["PartnerId",j],["Name",j],["Website",j],["ContactDetails",Ee(yi())],["Notes",Ee(j)],["LegalEntity",Ee(a$())],["ExternalId",Ee(j)],["ChannelId",Ee(j)]])}class g$ 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 w$(){return ht("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],g$,()=>[["AccountId",j],["Name",j],["Contact",Ee(j)],["ContactMobilePhone",Ee(j)],["Website",j],["BusinessName",Ee(j)],["BusinessNumber",Ee(j)],["ExternalId",Ee(j)],["ChannelId",Ee(j)]])}class hc extends ie{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function _$(){return ht("AccountRegistry.Shared.AdminApi.AccountLookup",[],hc,()=>[["Accounts",Qs(w$())],["Token",Ee(j)]])}class b$ extends ie{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function y$(){return ht("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],b$,()=>[["PartnerId",j],["AccountId",j]])}class v$ extends ie{constructor(t,n){super(),this.ClassCode=t,this.ClassTitle=n}}function x$(){return ht("AccountRegistry.Shared.AdminApi.AnzsicClass",[],v$,()=>[["ClassCode",j],["ClassTitle",j]])}class C$ extends ie{constructor(t,n,r){super(),this.GroupCode=t,this.GroupTitle=n,this.Classes=r}}function S$(){return ht("AccountRegistry.Shared.AdminApi.AnzsicGroup",[],C$,()=>[["GroupCode",j],["GroupTitle",j],["Classes",nl(x$())]])}class k$ extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function A$(){return tl("AccountRegistry.Shared.AdminApi.AnzsicSearchResult",[],k$,()=>[[["Item",nl(S$())]],[]])}class pc 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 E$(){return ht("AccountRegistry.Shared.AdminApi.Write.LegalEntityV2",[],pc,()=>[["BusinessName",j],["BusinessNumber",j],["Address1",j],["Address2",Ee(j)],["City",j],["Postcode",j],["State",Ee(j)],["Phone",j],["CountryCode",j]])}class mc extends ie{constructor(t,n,r,o,s,i,a,l,c){super(),this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.LegalEntity=s,this.ExternalId=i,this.ChannelId=a,this.SalesforceInfo=l,this.AnzsicClassifier=c}}function I$(){return ht("AccountRegistry.Shared.AdminApi.Write.AccountPost",[],mc,()=>[["Name",j],["Website",j],["ContactDetails",yi()],["Notes",Ee(j)],["LegalEntity",Ee(E$())],["ExternalId",Ee(j)],["ChannelId",Ee(j)],["SalesforceInfo",Ee(c$())],["AnzsicClassifier",Ee(u$())]])}class T$ extends ie{constructor(t){super(),this.Id=t}}function N$(){return ht("AccountRegistry.Shared.AdminApi.Write.AccountPostResponse",[],T$,()=>[["Id",j]])}var lo,ee,$c,qn,gc,wc,vi,xi,Ci,Si,_c,co={},bc=[],M$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,is=Array.isArray;function $n(e,t){for(var n in t)e[n]=t[n];return e}function yc(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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?lo.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 uo(e,i,r,o,null)}function uo(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??++$c,__i:-1,__u:0};return o==null&&ee.vnode!=null&&ee.vnode(s),s}function ki(){return{current:null}}function Oe(e){return e.children}function Ht(e,t){this.props=e,this.context=t}function Kn(e,t){if(t==null)return e.__?Kn(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"?Kn(e):null}function vc(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 vc(e)}}function Ai(e){(!e.__d&&(e.__d=!0)&&qn.push(e)&&!as.__r++||gc!==ee.debounceRendering)&&((gc=ee.debounceRendering)||wc)(as)}function as(){var e,t,n,r,o,s,i,a;for(qn.sort(vi);e=qn.shift();)e.__d&&(t=qn.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=$n({},o)).__v=o.__v+1,ee.vnode&&ee.vnode(r),Ei(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Kn(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ac(i,r,a),r.__e!=s&&vc(r)),qn.length>t&&qn.sort(vi));as.__r=0}function xc(e,t,n,r,o,s,i,a,l,c,d){var u,h,f,p,_,$=r&&r.__k||bc,v=t.length;for(n.__d=l,R$(n,t,$),l=n.__d,u=0;u<v;u++)(f=n.__k[u])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?co:$[f.__i]||co,f.__i=u,Ei(e,f,h,o,s,i,a,l,c,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&Ii(h.ref,null,f),d.push(f.ref,f.__c||p,f)),_==null&&p!=null&&(_=p),65536&f.__u||h.__k===f.__k?(l&&!l.isConnected&&(l=Kn(h)),l=Cc(f,l,e)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function R$(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,d=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?uo(null,o,null,null,null):is(o)?uo(Oe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?uo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=O$(o,n,i,d),o.__i=a,s=null,a!==-1&&(d--,(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?d>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=Kn(s)),Ti(s,s,!1),n[i]=null,d--);if(d)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Kn(s)),Ti(s,s))}function Cc(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=Cc(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 gn(e,t){return t=t||[],e==null||typeof e=="boolean"||(is(e)?e.some(function(n){gn(n,t)}):t.push(e)),t}function O$(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 Sc(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||M$.test(t)?n:n+"px"}function ls(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||Sc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Sc(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=xi,e.addEventListener(t,s?Si:Ci,s)):e.removeEventListener(t,s?Si:Ci,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 kc(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xi++;else if(t.t<n.u)return;return n(ee.event?ee.event(t):t)}}}function Ei(e,t,n,r,o,s,i,a,l,c){var d,u,h,f,p,_,$,v,y,C,R,L,X,$e,be,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=ee.__b)&&d(t);e:if(typeof ue=="function")try{if(v=t.props,y=(d=ue.contextType)&&r[d.__c],C=d?y?y.props.value:d.__:r,n.__c?$=(u=t.__c=n.__c).__=u.__E:("prototype"in ue&&ue.prototype.render?t.__c=u=new ue(v,C):(t.__c=u=new Ht(v,C),u.constructor=ue,u.render=D$),y&&y.sub(u),u.props=v,u.state||(u.state={}),u.context=C,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),ue.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=$n({},u.__s)),$n(u.__s,ue.getDerivedStateFromProps(v,u.__s))),f=u.props,p=u.state,u.__v=t,h)ue.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(ue.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Y){Y&&(Y.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,C),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,_)})}if(u.context=C,u.props=v,u.__P=e,u.__e=!1,L=ee.__r,X=0,"prototype"in ue&&ue.prototype.render){for(u.state=u.__s,u.__d=!1,L&&L(t),d=u.render(u.props,u.state,u.context),$e=0;$e<u._sb.length;$e++)u.__h.push(u._sb[$e]);u._sb=[]}else do u.__d=!1,L&&L(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++X<25);u.state=u.__s,u.getChildContext!=null&&(r=$n($n({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(_=u.getSnapshotBeforeUpdate(f,p)),xc(e,is(be=d!=null&&d.type===Oe&&d.key==null?d.props.children:d)?be:[be],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),$&&(u.__E=u.__=null)}catch(Y){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),ee.__e(Y,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P$(n.__e,t,n,r,o,s,i,l,c);(d=ee.diffed)&&d(t)}function Ac(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ii(n[r],n[++r],n[++r]);ee.__c&&ee.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){ee.__e(s,o.__v)}})}function P$(e,t,n,r,o,s,i,a,l){var c,d,u,h,f,p,_,$=n.props,v=t.props,y=t.type;if(y==="svg"?o="http://www.w3.org/2000/svg":y==="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((f=s[c])&&"setAttribute"in f==!!y&&(y?f.localName===y:f.nodeType===3)){e=f,s[c]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),s=null,a=!1}if(y===null)$===v||a&&e.data===v||(e.data=v);else{if(s=s&&lo.call(e.childNodes),$=n.props||co,!a&&s!=null)for($={},c=0;c<e.attributes.length;c++)$[(f=e.attributes[c]).name]=f.value;for(c in $)if(f=$[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;ls(e,c,null,f,o)}}for(c in v)f=v[c],c=="children"?h=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?p=f:c=="checked"?_=f:c==="key"||a&&typeof f!="function"||$[c]===f||ls(e,c,f,$[c],o);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),xc(e,is(h)?h:[h],t,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Kn(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&yc(s[c]);a||(c="value",p!==void 0&&(p!==e[c]||y==="progress"&&!p||y==="option"&&p!==$[c])&&ls(e,c,p,$[c],o),c="checked",_!==void 0&&_!==e[c]&&ls(e,c,_,$[c],o))}return e}function Ii(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ee.__e(r,n)}}function Ti(e,t,n){var r,o;if(ee.unmount&&ee.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ii(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){ee.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ti(r[o],t,n||typeof e.type!="function");n||e.__e==null||yc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function D$(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var r,o,s,i;ee.__&&ee.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Ei(t,e=(!r&&n||t).__k=m(Oe,null,[e]),o||co,co,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?lo.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Ac(s,e,i)}function Ni(e,t){Tn(e,t,Ni)}function Mi(e,t,n){var r,o,s,i,a=$n({},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?lo.call(arguments,2):n),uo(e.type,a,r||e.key,o||e.ref,null)}function Nn(e,t){var n={__c:t="__cC"+_c++,__: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,Ai(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}lo=bc.slice,ee={__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}},$c=0,Ht.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$n({},this.state),typeof e=="function"&&(e=e($n({},n),this.props)),e&&$n(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ai(this))},Ht.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ai(this))},Ht.prototype.render=Oe,qn=[],wc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vi=function(e,t){return e.__v.__b-t.__v.__b},as.__r=0,xi=0,Ci=kc(!1),Si=kc(!0),_c=0;var wn,ve,Ri,Ec,Er=0,Ic=[],cs=[],Fe=ee,Tc=Fe.__b,Nc=Fe.__r,Mc=Fe.diffed,Rc=Fe.__c,Oc=Fe.unmount,Pc=Fe.__;function Zn(e,t){Fe.__h&&Fe.__h(ve,e,Er||t),Er=0;var n=ve.__H||(ve.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:cs}),n.__[e]}function We(e){return Er=1,Ir(Fc,e)}function Ir(e,t,n){var r=Zn(wn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Fc(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=ve,!ve.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=!1;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};ve.u=!0;var s=ve.shouldComponentUpdate,i=ve.componentWillUpdate;ve.componentWillUpdate=function(a,l,c){if(this.__e){var d=s;s=void 0,o(a,l,c),s=d}i&&i.call(this,a,l,c)},ve.shouldComponentUpdate=o}return r.__N||r.__}function Te(e,t){var n=Zn(wn++,3);!Fe.__s&&Vi(n.__H,t)&&(n.__=e,n.i=t,ve.__H.__h.push(n))}function _n(e,t){var n=Zn(wn++,4);!Fe.__s&&Vi(n.__H,t)&&(n.__=e,n.i=t,ve.__h.push(n))}function ce(e){return Er=5,it(function(){return{current:e}},[])}function Oi(e,t,n){Er=6,_n(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 it(e,t){var n=Zn(wn++,7);return Vi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Mn(e,t){return Er=8,it(function(){return e},t)}function en(e){var t=ve.context[e.__c],n=Zn(wn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ve)),t.props.value):e.__}function Pi(e,t){Fe.useDebugValue&&Fe.useDebugValue(t?t(e):e)}function F$(e){var t=Zn(wn++,10),n=We();return t.__=e,ve.componentDidCatch||(ve.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Di(){var e=Zn(wn++,11);if(!e.__){for(var t=ve.__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 V$(){for(var e;e=Ic.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(us),e.__H.__h.forEach(Fi),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){ve=null,Tc&&Tc(e)},Fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pc&&Pc(e,t)},Fe.__r=function(e){Nc&&Nc(e),wn=0;var t=(ve=e.__c).__H;t&&(Ri===ve?(t.__h=[],ve.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=cs,n.__N=n.i=void 0})):(t.__h.forEach(us),t.__h.forEach(Fi),t.__h=[],wn=0)),Ri=ve},Fe.diffed=function(e){Mc&&Mc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ic.push(t)!==1&&Ec===Fe.requestAnimationFrame||((Ec=Fe.requestAnimationFrame)||L$)(V$)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==cs&&(n.__=n.__V),n.i=void 0,n.__V=cs})),Ri=ve=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(us),n.__h=n.__h.filter(function(r){return!r.__||Fi(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Fe.__e(r,n.__v)}}),Rc&&Rc(e,t)},Fe.unmount=function(e){Oc&&Oc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{us(r)}catch(o){t=o}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var Dc=typeof requestAnimationFrame=="function";function L$(e){var t,n=function(){clearTimeout(r),Dc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Dc&&(t=requestAnimationFrame(n))}function us(e){var t=ve,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ve=t}function Fi(e){var t=ve;e.__c=e.__(),ve=t}function Vi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Fc(e,t){return typeof t=="function"?t(e):t}function Vc(e,t){for(var n in t)e[n]=t[n];return e}function Li(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 ds(e,t){this.props=e,this.context=t}function Lc(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:Li(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ds.prototype=new Ht).isPureReactComponent=!0,ds.prototype.shouldComponentUpdate=function(e,t){return Li(this.props,e)||Li(this.state,t)};var Bc=ee.__b;ee.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Bc&&Bc(e)};var B$=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Rn(e){function t(n){var r=Vc({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=B$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Uc=function(e,t){return e==null?null:gn(gn(e).map(t))},zc={map:Uc,forEach:Uc,count:function(e){return e?gn(e).length:0},only:function(e){var t=gn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:gn},U$=ee.__e;ee.__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)}U$(e,t,n,r)};var jc=ee.unmount;function Hc(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=Vc({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hc(r,t,n)})),e}function Wc(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wc(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 fo(){this.__u=0,this.t=null,this.__b=null}function Gc(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qc(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 m(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Tr(){this.u=null,this.o=null}ee.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jc&&jc(e)},(fo.prototype=new Ht).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Gc(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]=Wc(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)},fo.prototype.componentWillUnmount=function(){this.t=[]},fo.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]=Hc(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(Oe,null,e.fallback);return o&&(o.__u&=-33),[m(Oe,null,t.__a?null:e.children),o]};var Kc=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 z$(e){return this.getChildContext=function(){return e.context},e.children}function j$(e){var t=this,n=e.i;t.componentWillUnmount=function(){Tn(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)}}),Tn(m(z$,{context:t.context},e.__v),t.l)}function Zc(e,t){var n=m(j$,{__v:e,i:t});return n.containerInfo=t,n}(Tr.prototype=new Ht).__a=function(e){var t=this,n=Gc(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Kc(t,e,r)):o()};n?n(s):s()}},Tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=gn(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},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Kc(e,n,t)})};var Jc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,H$=/^(?: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]/,W$=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,G$=/[A-Z0-9]/g,q$=typeof document<"u",K$=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Yc(e,t,n){return t.__k==null&&(t.textContent=""),Tn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Xc(e,t,n){return Ni(e,t),typeof n=="function"&&n(),e?e.__c:null}Ht.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ht.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qc=ee.event;function Z$(){}function J$(){return this.cancelBubble}function Y$(){return this.defaultPrevented}ee.event=function(e){return Qc&&(e=Qc(e)),e.persist=Z$,e.isPropagationStopped=J$,e.isDefaultPrevented=Y$,e.nativeEvent=e};var Bi,X$={enumerable:!1,configurable:!0,get:function(){return this.class}},eu=ee.vnode;ee.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||q$&&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"||K$(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":W$.test(s)?s=a:r.indexOf("-")===-1&&H$.test(s)?s=s.replace(G$,"-$&").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=gn(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=gn(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",X$)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Jc,eu&&eu(e)};var tu=ee.__r;ee.__r=function(e){tu&&tu(e),Bi=e.__c};var nu=ee.diffed;ee.diffed=function(e){nu&&nu(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),Bi=null};var ru={ReactCurrentDispatcher:{current:{readContext:function(e){return Bi.__n[e.__c].props.value},useCallback:Mn,useContext:en,useDebugValue:Pi,useDeferredValue:Hi,useEffect:Te,useId:Di,useImperativeHandle:Oi,useInsertionEffect:Gi,useLayoutEffect:_n,useMemo:it,useReducer:Ir,useRef:ce,useState:We,useSyncExternalStore:qi,useTransition:Wi}}},Q$="17.0.2";function ou(e){return m.bind(null,e)}function Nr(e){return!!e&&e.$$typeof===Jc}function su(e){return Nr(e)&&e.type===Oe}function iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ui(e){return Nr(e)?Mi.apply(null,arguments):e}function au(e){return!!e.__k&&(Tn(null,e),!0)}function lu(e){return e&&(e.base||e.nodeType===1&&e)||null}var cu=function(e,t){return e(t)},zi=function(e,t){return e(t)},uu=Oe;function ji(e){e()}function Hi(e){return e}function Wi(){return[!1,ji]}var Gi=_n,du=Nr;function qi(e,t){var n=t(),r=We({h:{__:n,v:t}}),o=r[0].h,s=r[1];return _n(function(){o.__=n,o.v=t,Ki(o)&&s({h:o})},[e,n,t]),Te(function(){return Ki(o)&&s({h:o}),e(function(){Ki(o)&&s({h:o})})},[e]),n}function Ki(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 q={useState:We,useId:Di,useReducer:Ir,useEffect:Te,useLayoutEffect:_n,useInsertionEffect:Gi,useTransition:Wi,useDeferredValue:Hi,useSyncExternalStore:qi,startTransition:ji,useRef:ce,useImperativeHandle:Oi,useMemo:it,useCallback:Mn,useContext:en,useDebugValue:Pi,version:"17.0.2",Children:zc,render:Yc,hydrate:Xc,unmountComponentAtNode:au,createPortal:Zc,createElement:m,createContext:Nn,createFactory:ou,cloneElement:Ui,createRef:ki,Fragment:Oe,isValidElement:Nr,isElement:du,isFragment:su,isMemo:iu,findDOMNode:lu,Component:Ht,PureComponent:ds,memo:Lc,forwardRef:Rn,flushSync:zi,unstable_batchedUpdates:cu,StrictMode:uu,Suspense:fo,SuspenseList:Tr,lazy:qc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru};const Zi=Object.freeze(Object.defineProperty({__proto__:null,Children:zc,Component:Ht,Fragment:Oe,PureComponent:ds,StrictMode:uu,Suspense:fo,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru,cloneElement:Ui,createContext:Nn,createElement:m,createFactory:ou,createPortal:Zc,createRef:ki,default:q,findDOMNode:lu,flushSync:zi,forwardRef:Rn,hydrate:Xc,isElement:du,isFragment:su,isMemo:iu,isValidElement:Nr,lazy:qc,memo:Lc,render:Yc,startTransition:ji,unmountComponentAtNode:au,unstable_batchedUpdates:cu,useCallback:Mn,useContext:en,useDebugValue:Pi,useDeferredValue:Hi,useEffect:Te,useErrorBoundary:F$,useId:Di,useImperativeHandle:Oi,useInsertionEffect:Gi,useLayoutEffect:_n,useMemo:it,useReducer:Ir,useRef:ce,useState:We,useSyncExternalStore:qi,useTransition:Wi,version:Q$},Symbol.toStringTag,{value:"Module"})),e0=e=>{Te(()=>{const t=e();return()=>{t.Dispose()}})},t0=(e,t)=>{Te(()=>{const n=e();return()=>{n.Dispose()}},t)},n0=e=>{_n(()=>{const t=e();return()=>{t.Dispose()}})},I=q,r0=e0,fu=t0,o0=n0;function s0(e,t,n,r){const o=I.memo(e,_e(Ye(zt(kn,n),he())));return Sr(s=>{e.displayName=s},li(t)),s=>{const i=i0(r,s);return I.createElement(o,i)}}function i0(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ho(e){return{Dispose(){e()}}}function hu(e,t){fu(e,t)}function a0(e){o0(t=>(e(),ho(()=>{})))}function Ji(e){const t=I.useRef(!1);c0(()=>{t.current||(t.current=!0,e())},[])}function pu(e){const t=I.useRef(void 0),n=I.useRef(!1),r=I.useRef(!1);n.current&&(r.current=!0),hu(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=nt(e()),o=r.current?t.current:void 0),{Dispose(){Sr(s=>{we(s)},li(o))}}},[])}function l0(e){r0(t=>(e(),ho(()=>{})))}function c0(e,t){fu(n=>(e(),ho(()=>{})),t)}function u0(e,t){const n=Ye(t,[]);return I.useCallback(e,n)}function mu(e){return I.useRef(e)}function d0(e,t,n){return s0(e,void 0,ai(n),ai(t))}function f0(e,t){const n=I.createContext(Ye(t,void 0));return Sr(r=>{n.displayName=r},li(e)),n}function h0(e,t,n){return I.createElement(e.Provider,{value:t},...n)}function Jn(e){return I.useContext(e)}function $u(e){const t=mu(e),n=u0(r=>t.current(r),[]);return a0(()=>{t.current=e}),n}function Yn(e){return I.useState(e)}class gu{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 fs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,fs.prototype)}}class Yi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Yi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function bn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new fs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Bo(n))}});else try{e(t)}catch(n){t.onError(Bo(n))}}}function p0(e,t){return bn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Bo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function m0(e){return bn(t=>t.onSuccess(e))}class $0{Bind(t,n){return p0(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return bn(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 m0(t)}ReturnFrom(t){return t}TryFinally(t,n){return bn(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 bn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(Bo(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 bn(t=>t.onSuccess(void 0))}}const W=new $0;function Xi(e){}function g0(e){return new gu(!1)}function w0(e){e.cancel()}function _0(e){return e!=null&&e.isCancelled}const wu=new gu;function b0(e){return bn(t=>{e({onSuccess:n=>t.onSuccess(Sm(n)),onError:n=>t.onSuccess(km(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function y0(e){return bn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function v0(e){return bn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new fs)})})}function x0(e,t){return _u(e,t)}function Mr(e,t){return x0(e,t)}function _u(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Yi;e({onSuccess:t||Xi,onError:n||Xi,onCancel:r||Xi,cancelToken:o||wu,trampoline:s})}function C0(e,t){return new Promise((n,r)=>_u(e,n,r,r,wu))}class bu{constructor(t,n){this.k=t,this.v=n}}function hs(e,t){return new bu(e,t)}function mt(e){return e.k}function Tt(e){return e.v}class Ge extends bu{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function ps(e,t,n,r,o){return new Ge(e,t,n,r,o)}function $t(e){return e.left}function gt(e){return e.right}function Xn(e){return e.h}function Nv(){}function yu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;e=yu(n+1,$t(s)),t=gt(s);continue e}else return n+1|0}else return n|0}}function S0(e){return yu(0,e)}function Wt(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=T(a);i=u instanceof Ge?(o=u,Xn(o)):1}else i=0;let l;const c=r;if(c!=null){const u=T(c);l=u instanceof Ge?(s=u,Xn(s)):1}else l=0;const d=(i<l?l:i)|0;return d===0?hs(t,n):ps(t,n,e,r,d+1)}function vu(e,t,n,r){let o,s,i,a,l,c,d,u,h;const f=e;if(f!=null){const $=T(f);h=$ instanceof Ge?(o=$,Xn(o)):1}else h=0;let p;const _=r;if(_!=null){const $=T(_);p=$ instanceof Ge?(s=$,Xn(s)):1}else p=0;if(p>h+2){const $=T(r);if($ instanceof Ge){const v=$;if(i=$t(v),(i!=null?(a=T(i),a instanceof Ge?(l=a,Xn(l)):1):0)>h+1){const y=T($t(v));if(y instanceof Ge){const C=y;return Wt(Wt(e,t,n,$t(C)),mt(C),Tt(C),Wt(gt(C),mt(v),Tt(v),gt(v)))}else throw new Error("internal error: Map.rebalance")}else return Wt(Wt(e,t,n,$t(v)),mt(v),Tt(v),gt(v))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const $=T(e);if($ instanceof Ge){const v=$;if(c=gt(v),(c!=null?(d=T(c),d instanceof Ge?(u=d,Xn(u)):1):0)>p+1){const y=T(gt(v));if(y instanceof Ge){const C=y;return Wt(Wt($t(v),mt(v),Tt(v),$t(C)),mt(C),Tt(C),Wt(gt(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt($t(v),mt(v),Tt(v),Wt(gt(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(e,t,n,r)}function Rr(e,t,n,r){if(r!=null){const o=T(r),s=e.Compare(t,mt(o))|0;if(o instanceof Ge){const i=o;return s<0?vu(Rr(e,t,n,$t(i)),mt(i),Tt(i),gt(i)):s===0?ps(t,n,$t(i),gt(i),Xn(i)):vu($t(i),mt(i),Tt(i),Rr(e,t,n,gt(i)))}else return s<0?ps(t,n,void 0,r,2):s===0?hs(t,n):ps(t,n,r,void 0,2)}else return hs(t,n)}function xu(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,mt(i))|0;if(a===0)return nt(Tt(i));if(i instanceof Ge){const l=i;e=r,t=o,n=a<0?$t(l):gt(l);continue e}else return}else return}}function k0(e,t,n){const r=xu(e,t,n);if(r==null)throw new Error;return T(r)}function A0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,mt(i))|0;if(i instanceof Ge){const l=i;if(a<0){e=r,t=o,n=$t(l);continue e}else{if(a===0)return!0;e=r,t=o,n=gt(l);continue e}}else return a===0}else return!1}}function Cu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;Cu(n,$t(s)),n(mt(s),Tt(s)),e=n,t=gt(s);continue e}else n(mt(o),Tt(o))}break}}function E0(e,t){Cu(e,t)}function I0(e,t,n){let r=n;E0((o,s)=>{St(t,r,[o,s]),r=r+1|0},e)}function T0(e,t){return un((n,r)=>Rr(e,r[0],r[1],n),void 0,t)}function N0(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=Rr(r,i[0],i[1],o),n=s;continue e}else return o}}function M0(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=fe(r,t);n=Rr(e,o[0],o[1],n)}return n}function Su(e,t){if(Xt(t))return M0(e,t);if(t instanceof pt)return T0(e,t);{const n=Re(t);try{return N0(e,void 0,n)}finally{we(n)}}}class R0 extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function ku(e){e:for(;;){const t=e;if(K(t))return Be();{const n=b(t),r=D(t);if(r!=null){const o=T(r);if(o instanceof Ge){const s=o;e=Pe([$t(s),hs(mt(s),Tt(s)),gt(s)],n);continue e}else return t}else{e=n;continue e}}}}function Au(e){return new R0(ku(re(e)),!1)}function O0(){throw new Error("enumeration not started")}function P0(){throw new Error("enumeration already finished")}function Eu(e){if(e.started){const t=e.stack;if(K(t))return P0();if(D(t)!=null){const n=T(D(t));if(n instanceof Ge)throw new Error("Please report error: Map iterator, unexpected stack for current");return[mt(n),Tt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return O0()}function D0(e){if(e.started){const t=e.stack;if(K(t))return!1;if(D(t)!=null){if(T(D(t))instanceof Ge)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ku(b(t)),!K(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!K(e.stack)}function Iu(e){let t=Au(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Eu(t)},"System.Collections.IEnumerator.get_Current"(){return Eu(t)},"System.Collections.IEnumerator.MoveNext"(){return D0(t)},"System.Collections.IEnumerator.Reset"(){t=Au(e)},Dispose(){}}}class ms{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return B0(this)|0}Equals(t){const n=this;if(t instanceof ms){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 He(l[0],c[0])&&He(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{we(s)}}finally{we(o)}}else return!1}toString(){return"map ["+ae("; ",De(n=>Al("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Iu(this.tree)}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Iu(this.tree)}CompareTo(t){const n=this;if(t instanceof ms)return mm((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Ft(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 Nu(n,t[0])&&He(Tu(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){I0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Qi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Qi(this)|0}get size(){return Qi(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 Tu(this,t)}has(t){return Nu(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;Sr(o=>{t(o[1],o[0],r)},r)}}function $s(e,t){return new ms(e,t)}function F0(e){return $s(e,void 0)}function V0(e,t,n){return $s(e.comparer,Rr(e.comparer,t,n,e.tree))}function Tu(e,t){return k0(e.comparer,t,e.tree)}function Qi(e){return S0(e.tree)}function Nu(e,t){return A0(e.comparer,t,e.tree)}function L0(e,t){return xu(e.comparer,t,e.tree)}function B0(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,ln(o[0]))|0,n=t(n,ln(o[1]))|0}}finally{we(r)}return n|0}function Mu(e,t,n){return V0(n,e,t)}function Ru(e,t){return L0(t,e)}function U0(e,t){return $s(t,Su(t,e))}function z0(e,t){return $s(t,Su(t,e))}function ea(e){return F0(e)}class pe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ou(e,t){const n=mu(g0());return pu(()=>ho(()=>{w0(n.current)})),$u(r=>{_0(n.current)||Mr(W.Delay(()=>W.TryWith(W.Delay(()=>(t(new pe(1,[])),W.Bind(e(r),o=>(t(new pe(2,[o])),W.Zero())))),o=>(t(new pe(3,[o])),W.Zero()))),n.current)})}class j0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function H0(e,t){t.Subscribe(new j0(e))}class W0{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 q0(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 G0=class extends W0{};function q0(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 K0{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 G0}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 Z0(e,t){console.error(nt(e),t)}function J0(e,t){let n,r=new K0(e);r.AutoReset=!1,n=r,H0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Pu(e,t,n){es(r=>{try{r(t)}catch(o){e(o)}},n)}function Le(){return Be()}function Xe(e){return re(e)}function Du(e,t,n,r){return re(o=>{e(W.Delay(()=>W.Bind(b0(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),W.Zero()})))})}function Fu(e){J0(1,t=>{Mr(e)})}function po(e,t){if(t.indexOf(e)===0)return t}function Vu(e,t){if(cp(t,e))return t}function Y0(e){return t=>{let n,r,o,s,i,a;return n=po("/",t),n!=null?(r=n,"#"+r):(o=po("#/",t),o!=null?(s=o,s):(i=po("#",t),i!=null?(a=i,"#/"+Il(a,1,a.length-1)):"#/"+t))}}function Qn(e,t){return Y0()(ae("/",Wn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function ct(e,t,n){history.pushState(void 0,"",Qn(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Lu(e,t){return kp(n=>{if(El(n))return Be();{const r=fp(n,"#");if(r==="?")return Be();if(po("?",r)!=null)return re(r);{const o=r.split("?");if(!ui((s,i)=>s===i,o)&&o.length===1){const s=fe(0,o);return re(decodeURIComponent(s))}else if(!ui((s,i)=>s===i,o)&&o.length===2)if(fe(1,o)===""){const s=fe(0,o);return re(decodeURIComponent(s))}else{const s=fe(0,o),i=fe(1,o);return k([decodeURIComponent(s),"?"+i])}else return Be()}}},k(ii(po("#",e)!=null?Il(e,1,e.length-1):t===1&&(Vu("#",e)!=null||Vu("#/",e)!=null)?"":e,["/"],void 0,0)))}function X0(e,t,n){return t(Lu(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const Q0=d0(e=>{const t=$u(r=>{const o=Ye(e.onUrlChanged,s=>{});X0(Ye(e.hashMode,1),o)});pu(()=>(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),ho(()=>{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)}))),Ji(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??he()});class yn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class er extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Bu(e){return e.tag===0?new er(1,[]):new er(0,[])}class mo extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const eg=new mo(new yn(1,[]),new er(0,[]));function tg(e){return[e.fields[0],e.fields[1]]}function Uu(e){return e.fields[0]}function zu(e){return e.fields[1]}function ju(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new mo(new yn(1,[]),Bu(r)):new mo(new yn(1,[]),new er(0,[])):n.tag===0?new mo(new yn(0,[]),Bu(r)):new mo(new yn(0,[]),new er(0,[]))}class Hu extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const ng=new Hu("");function rg(e){return new Hu(e)}function Wu(e){return e.fields[0]}class og extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function sg(e){return new og(e)}function Gu(e){return e.fields[0]}class ta extends ie{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class ig extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function ag(e){return[e.fields[0],e.fields[1]]}function lg(e,t){return new ig(e,t)}function cg(e){const t=ag(e);return[t[0],t[1]]}function ug(){return new vm([],{Equals:He,GetHashCode:yh})}function dg(e,t){let n,r=he();if(n=[Hl(e,t,new ft(()=>r,o=>{r=o})),r],n[0])return n[1]}function qu(e,t,n){return e.set(t,n),e}class fg extends ie{constructor(t,n,r,o,s,i){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s,this.AccountProvisioningMode=i}}function hg(e){const t=ec(e.Name);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=tc(e.Website);if(n.tag===1)return new w(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=Jm(o);r=s.tag===1?new w(1,[s.fields[0]]):new w(0,[s.fields[0]])}else r=new w(0,[void 0]);return r.tag===1?new w(1,[r.fields[0]]):new w(0,[new fg(new Xl(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Ym(e.Notes),e.AccountProvisioningMode)])}}}function na(e,t){return Ip(n=>kr(n.StreamId)===ts(t),e)}class J extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","PartnerWorkspace","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","AccountWorkspace","NotFound"]}}function Ku(e){let t,n,r,o,s,i,a,l,c,d,u,h,f,p,_,$,v,y,C,R,L,X,$e,be;if(K(e))t=16;else if(D(e)==="account-registry")if(K(b(e)))t=16;else if(D(b(e))==="partners")if(K(b(b(e))))t=0;else if(K(b(b(b(e)))))t=1,n=D(b(b(e)));else switch(D(b(b(b(e))))){case"accounts":{if(K(b(b(b(b(e))))))t=2,r=D(b(b(e)));else if(K(b(b(b(b(b(e)))))))t=8,c=D(b(b(b(b(e))))),d=D(b(b(e)));else switch(D(b(b(b(b(b(e))))))){case"directory":{K(b(b(b(b(b(b(e)))))))?(t=9,u=D(b(b(b(b(e))))),h=D(b(b(e)))):t=16;break}case"imports":{K(b(b(b(b(b(b(e)))))))?(t=10,f=D(b(b(b(b(e))))),p=D(b(b(e)))):t=16;break}case"super-configuration":{K(b(b(b(b(b(b(e)))))))?(t=11,_=D(b(b(b(b(e))))),$=D(b(b(e)))):t=16;break}case"benefits-onboarding-configuration":{K(b(b(b(b(b(b(e)))))))?(t=12,v=D(b(b(b(b(e))))),y=D(b(b(e)))):t=16;break}case"bank-details-configuration":{K(b(b(b(b(b(b(e)))))))?(t=13,C=D(b(b(b(b(e))))),R=D(b(b(e)))):t=16;break}case"salary-packaging-configuration":{K(b(b(b(b(b(b(e)))))))?(t=14,L=D(b(b(b(b(e))))),X=D(b(b(e)))):t=16;break}case"workspace":{K(b(b(b(b(b(b(e)))))))?(t=15,$e=D(b(b(b(b(e))))),be=D(b(b(e)))):t=16;break}default:t=16}break}case"super-configuration":{K(b(b(b(b(e)))))?(t=3,o=D(b(b(e)))):t=16;break}case"benefits-onboarding-configuration":{K(b(b(b(b(e)))))?(t=4,s=D(b(b(e)))):t=16;break}case"directory":{K(b(b(b(b(e)))))?(t=5,i=D(b(b(e)))):t=16;break}case"bank-details-configuration":{K(b(b(b(b(e)))))?(t=6,a=D(b(b(e)))):t=16;break}case"workspace":{K(b(b(b(b(e)))))?(t=7,l=D(b(b(e)))):t=16;break}default:t=16}else t=16;else t=16;switch(t){case 0:return new J(0,[]);case 1:return new J(1,[st(n)]);case 2:return new J(3,[st(r)]);case 3:return new J(4,[st(o)]);case 4:return new J(5,[st(s)]);case 5:return new J(2,[st(i)]);case 6:return new J(6,[st(a)]);case 7:return new J(7,[st(l)]);case 8:return new J(8,[st(d),jt(c)]);case 9:return new J(9,[st(h),jt(u)]);case 10:return new J(10,[st(p),jt(f)]);case 11:return new J(11,[st($),jt(_)]);case 12:return new J(12,[st(y),jt(v)]);case 13:return new J(13,[st(R),jt(C)]);case 14:return new J(14,[st(X),jt(L)]);case 15:return new J(15,[st(be),jt($e)]);default:return new J(16,[])}}function $o(e){const t=(r,o)=>Ie(A(()=>B(E("account-registry"),A(()=>B(E("partners"),A(()=>B(E(lt(r)),A(()=>o)))))))),n=(r,o,s)=>{const i=Ie(A(()=>B(E("accounts"),A(()=>B(E(mn(o)),A(()=>s))))));return t(r,i)};switch(e.tag){case 3:return t(e.fields[0],["accounts"]);case 4:return t(e.fields[0],["super-configuration"]);case 5:return t(e.fields[0],["benefits-onboarding-configuration"]);case 6:return t(e.fields[0],["bank-details-configuration"]);case 2:return t(e.fields[0],["directory"]);case 7:return t(e.fields[0],["workspace"]);case 8:return n(e.fields[0],e.fields[1],[]);case 9:return n(e.fields[0],e.fields[1],["directory"]);case 10:return n(e.fields[0],e.fields[1],["imports"]);case 11:return n(e.fields[0],e.fields[1],["super-configuration"]);case 12:return n(e.fields[0],e.fields[1],["benefits-onboarding-configuration"]);case 13:return n(e.fields[0],e.fields[1],["bank-details-configuration"]);case 14:return n(e.fields[0],e.fields[1],["salary-packaging-configuration"]);case 15:return n(e.fields[0],e.fields[1],["workspace"]);case 16:case 0:return k(["account-registry","partners"]);default:return t(e.fields[0],[])}}function ra(e){switch(e.tag){case 3:{const t=["account-registry","partners",lt(e.fields[0]),"accounts"];return Xe(n=>{ct(k(t))})}case 4:{const t=["account-registry","partners",lt(e.fields[0]),"super-configuration"];return Xe(n=>{ct(k(t))})}case 5:{const t=["account-registry","partners",lt(e.fields[0]),"benefits-onboarding-configuration"];return Xe(n=>{ct(k(t))})}case 6:{const t=["account-registry","partners",lt(e.fields[0]),"bank-details-configuration"];return Xe(n=>{ct(k(t))})}case 2:{const t=["account-registry","partners",lt(e.fields[0]),"directory"];return Xe(n=>{ct(k(t))})}case 7:{const t=["account-registry","partners",lt(e.fields[0]),"workspace"];return Xe(n=>{ct(k(t))})}case 8:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1])];return Xe(n=>{ct(k(t))})}case 9:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"directory"];return Xe(n=>{ct(k(t))})}case 10:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"imports"];return Xe(n=>{ct(k(t))})}case 11:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"super-configuration"];return Xe(n=>{ct(k(t))})}case 12:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"benefits-onboarding-configuration"];return Xe(n=>{ct(k(t))})}case 13:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"bank-details-configuration"];return Xe(n=>{ct(k(t))})}case 14:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"salary-packaging-configuration"];return Xe(n=>{ct(k(t))})}case 15:{const t=["account-registry","partners",lt(e.fields[0]),"accounts",mn(e.fields[1]),"workspace"];return Xe(n=>{ct(k(t))})}case 0:case 16:return Le();default:{const t=["account-registry","partners",lt(e.fields[0])];return Xe(n=>{ct(k(t))})}}}function pg(e,t){switch(t.tag){case 1:return new pe(1,[]);case 2:return t.fields[0].tag===1?new pe(2,[new w(1,[t.fields[0].fields[0]])]):new pe(2,[new w(0,[e(t.fields[0].fields[0])])]);case 3:return new pe(3,[t.fields[0]]);default:return new pe(0,[])}}class Zu extends ie{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function mg(e){return new Zu(Fl("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:$r}),Fl("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:$r}))}const $g=new Zu(!1,!1);class H extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class tn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ju(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Yu(e,t){switch(e.tag){case 2:return ip(Ju(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ju(t)}}function Xu(e,t){gg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function gg(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 wg(){return Xu(-621355968e5,0)}function _g(e){const[t,n]=pl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Xu(t.getTime(),r)}function bg(e,t){try{return t.contents=_g(e),!0}catch{return!1}}function go(e){return e<0?Math.ceil(e):Math.floor(e)}function Qu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return yg(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 yg(e){return Number(BigInt(e)/10000n)}function vg(e){return go(e/864e5)}function xg(e){return go(e%864e5/36e5)}function Cg(e){return go(e%36e5/6e4)}function Sg(e){return go(e%6e4/1e3)}function kg(e){return go(e%1e3)}function Ag(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(vg(e)),o=Math.abs(xg(e)),s=Math.abs(Cg(e)),i=Math.abs(Sg(e)),a=Math.abs(kg(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:ge(o,2)}:${ge(s,2)}:${ge(i,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+ge(a,3):"."+mh(a,3,7)}`}function Eg(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 Qu(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*Qu(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ig(e,t){try{return t.contents=Eg(e),!0}catch{return!1}}class ed{constructor(t){this.k=t}}function Nt(e){return new ed(e)}function Q(e){return e.k}class me extends ed{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Mt(e,t,n,r){return new me(e,t,n,r)}function Ne(e){return e.left}function xe(e){return e.right}function Or(e){return e.h}function Mv(){}function td(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=T(n);if(o instanceof me){const s=o;e=Ne(s),t=td(xe(s),r+1);continue e}else return r+1|0}else return r|0}}function Tg(e){return td(e,0)}function Gt(e,t,n){let r,o,s;const i=e;if(i!=null){const d=T(i);s=d instanceof me?(r=d,Or(r)):1}else s=0;let a;const l=n;if(l!=null){const d=T(l);a=d instanceof me?(o=d,Or(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?Nt(t):Mt(t,e,n,c+1)}function nd(e,t,n){let r,o,s,i,a,l,c,d,u;const h=e;if(h!=null){const _=T(h);u=_ instanceof me?(r=_,Or(r)):1}else u=0;let f;const p=n;if(p!=null){const _=T(p);f=_ instanceof me?(o=_,Or(o)):1}else f=0;if(f>u+2){const _=T(n);if(_ instanceof me){const $=_;if(s=Ne($),(s!=null?(i=T(s),i instanceof me?(a=i,Or(a)):1):0)>u+1){const v=T(Ne($));if(v instanceof me){const y=v;return Gt(Gt(e,t,Ne(y)),Q(y),Gt(xe(y),Q($),xe($)))}else throw new Error("internal error: Set.rebalance")}else return Gt(Gt(e,t,Ne($)),Q($),xe($))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const _=T(e);if(_ instanceof me){const $=_;if(l=xe($),(l!=null?(c=T(l),c instanceof me?(d=c,Or(d)):1):0)>f+1){const v=T(xe($));if(v instanceof me){const y=v;return Gt(Gt(Ne($),Q($),Ne(y)),Q(y),Gt(xe(y),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(Ne($),Q($),Gt(xe($),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(e,t,n)}function Pr(e,t,n){if(n!=null){const r=T(n),o=e.Compare(t,Q(r))|0;if(r instanceof me){const s=r;return o<0?nd(Pr(e,t,Ne(s)),Q(s),xe(s)):o===0?n:nd(Ne(s),Q(s),Pr(e,t,xe(s)))}else{const s=e.Compare(t,Q(r))|0;return s<0?Mt(t,void 0,n,2):s===0?n:Mt(t,n,void 0,2)}}else return Nt(t)}function rd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=T(s),a=r.Compare(o,Q(i))|0;if(i instanceof me){const l=i;if(a<0){e=r,t=o,n=Ne(l);continue e}else{if(a===0)return!0;e=r,t=o,n=xe(l);continue e}}else return a===0}else return!1}}function od(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=T(r);if(o instanceof me){const s=o;od(n,Ne(s)),n(Q(s)),e=n,t=xe(s);continue e}else n(Q(o))}break}}class Ng extends ie{constructor(t,n){super(),this.stack=t,this.started=n}}function sd(e){e:for(;;){const t=e;if(K(t))return Be();{const n=D(t),r=b(t);if(n!=null){const o=T(n);if(o instanceof me){const s=o;e=Pe([Ne(s),Nt(Q(s)),xe(s)],r);continue e}else return t}else{e=r;continue e}}}}function id(e){return new Ng(sd(re(e)),!1)}function Mg(){throw new Error("Enumeration not started")}function Rg(){throw new Error("Enumeration already started")}function ad(e){if(e.started){const t=e.stack;if(K(t))return Rg();if(D(t)!=null){const n=T(D(t));return Q(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Mg()}function Og(e){if(e.started){const t=e.stack;if(K(t))return!1;if(D(t)!=null){if(T(D(t))instanceof me)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sd(b(t)),!K(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!K(e.stack)}function ld(e){let t=id(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ad(t)},"System.Collections.IEnumerator.get_Current"(){return ad(t)},"System.Collections.IEnumerator.MoveNext"(){return Og(t)},"System.Collections.IEnumerator.Reset"(){t=id(e)},Dispose(){}}}function Pg(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(o))return K(s)?0:-1;if(K(s))return 1;if(D(s)!=null)if(D(o)!=null){const i=T(D(o)),a=T(D(s));if(i instanceof me){const l=i;if(Ne(l)==null)if(a instanceof me){const c=a;if(Ne(c)==null){const d=r.Compare(Q(l),Q(c))|0;if(d!==0)return d|0;e=r,t=kt(xe(l),b(o)),n=kt(xe(c),b(s));continue e}else{let d,u,h,f,p;switch(K(o)?K(s)?d=2:D(s)!=null?(d=1,f=b(s),p=T(D(s))):d=2:D(o)!=null?(d=0,u=b(o),h=T(D(o))):K(s)?d=2:D(s)!=null?(d=1,f=b(s),p=T(D(s))):d=2,d){case 0:if(h instanceof me){const _=h;e=r,t=Pe([Ne(_),Mt(Q(_),void 0,xe(_),0)],u),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(h))],u),n=s;continue e}case 1:if(p instanceof me){const _=p;e=r,t=o,n=Pe([Ne(_),Mt(Q(_),void 0,xe(_),0)],f);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(p))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(Q(l),Q(a))|0;if(c!==0)return c|0;e=r,t=kt(xe(l),b(o)),n=kt(void 0,b(s));continue e}else{let c,d,u,h,f;switch(K(o)?K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2:D(o)!=null?(c=0,d=b(o),u=T(D(o))):K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2,c){case 0:if(u instanceof me){const p=u;e=r,t=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],d),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(u))],d),n=s;continue e}case 1:if(f instanceof me){const p=f;e=r,t=o,n=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],h);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof me){const l=a;if(Ne(l)==null){const c=r.Compare(Q(i),Q(l))|0;if(c!==0)return c|0;e=r,t=kt(void 0,b(o)),n=kt(xe(l),b(s));continue e}else{let c,d,u,h,f;switch(K(o)?K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2:D(o)!=null?(c=0,d=b(o),u=T(D(o))):K(s)?c=2:D(s)!=null?(c=1,h=b(s),f=T(D(s))):c=2,c){case 0:if(u instanceof me){const p=u;e=r,t=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],d),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(u))],d),n=s;continue e}case 1:if(f instanceof me){const p=f;e=r,t=o,n=Pe([Ne(p),Mt(Q(p),void 0,xe(p),0)],h);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(Q(i),Q(a))|0;if(l!==0)return l|0;e=r,t=b(o),n=b(s);continue e}}else{T(D(s));let i,a,l,c,d;switch(K(o)?K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2:D(o)!=null?(i=0,a=b(o),l=T(D(o))):K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2,i){case 0:if(l instanceof me){const u=l;e=r,t=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],a),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(l))],a),n=s;continue e}case 1:if(d instanceof me){const u=d;e=r,t=o,n=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],c);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(o)!=null){T(D(o));let i,a,l,c,d;switch(K(o)?K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2:D(o)!=null?(i=0,a=b(o),l=T(D(o))):K(s)?i=2:D(s)!=null?(i=1,c=b(s),d=T(D(s))):i=2,i){case 0:if(l instanceof me){const u=l;e=r,t=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],a),n=s;continue e}else{e=r,t=Pe([void 0,Nt(Q(l))],a),n=s;continue e}case 1:if(d instanceof me){const u=d;e=r,t=o,n=Pe([Ne(u),Mt(Q(u),void 0,xe(u),0)],c);continue e}else{e=r,t=o,n=Pe([void 0,Nt(Q(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=b(o),n=b(s);continue e}}}function cd(e,t,n){return t==null?n==null?0:-1:n==null?1:Pg(e,re(t),re(n))|0}function Dg(e,t,n){let r=n;od(o=>{St(t,r,o),r=r+1|0},e)}function Fg(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Pr(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function Vg(e,t){return Xo((n,r)=>Pr(e,r,n),void 0,t)}function Lg(e,t){return un((n,r)=>Pr(e,r,n),void 0,t)}function ud(e,t){if(Xt(t))return Vg(e,t);if(t instanceof pt)return Lg(e,t);{const n=Re(t);try{return Fg(e,void 0,n)}finally{we(n)}}}class oa{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return zg(this)|0}Equals(t){let n;const r=this;return t instanceof oa&&(n=t,cd(Dr(r),qt(r),qt(n))===0)}toString(){return"set ["+ae("; ",De(n=>dt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return cd(Dr(n),qt(n),qt(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 rd(Dr(n),t,qt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Dg(qt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return sa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return sa(this)|0}GetEnumerator(){return ld(qt(this))}[Symbol.iterator](){return Kr(Re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ld(qt(this))}get size(){return sa(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 dd(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;Sr(o=>{t(o,o,r)},r)}}function gs(e,t){return new oa(e,t)}function Dr(e){return e.comparer}function qt(e){return e.tree}function Bg(e){return gs(e,void 0)}function Ug(e,t){return gs(Dr(e),Pr(Dr(e),t,qt(e)))}function sa(e){return Tg(qt(e))}function dd(e,t){return rd(Dr(e),t,qt(e))}function zg(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)+ln(r)+631|0}}finally{we(n)}return Math.abs(t)|0}function ia(e,t){return dd(t,e)}function jg(e,t){return Ug(t,e)}function Hg(e){return Bg(e)}function Wg(e,t){return gs(t,ud(t,e))}function Gg(e,t){return gs(t,ud(t,e))}function wo(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
4
4
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
5
5
  `:" ")}}function qg(e,t){const n=t.tag===2?wo(t.fields[0],t.fields[1],!0):t.tag===1?wo(t.fields[0],t.fields[1],!1)+`
6
6
  Reason: `+t.fields[2]:t.tag===3?wo(t.fields[0],t.fields[1],!0):t.tag===4?wo(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
@@ -28,7 +28,7 @@ If you can't use one of these types, please pass an extra decoder.
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
30
  */var Vr=Vw;function Lw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bw=typeof Object.is=="function"?Object.is:Lw,Uw=Vr.useState,zw=Vr.useEffect,jw=Vr.useLayoutEffect,Hw=Vr.useDebugValue;function Ww(e,t){var n=t(),r=Uw({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return jw(function(){o.value=n,o.getSnapshot=t,ca(o)&&s({inst:o})},[e,n,t]),zw(function(){return ca(o)&&s({inst:o}),e(function(){ca(o)&&s({inst:o})})},[e]),Hw(n),n}function ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bw(e,n)}catch{return!0}}function Gw(e,t){return t()}var qw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Gw:Ww;Rd.useSyncExternalStore=Vr.useSyncExternalStore!==void 0?Vr.useSyncExternalStore:qw,Md.exports=Rd;var Kw=Md.exports;class Zw{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=Rw(o)(this.arg);let l=a[0],c=a[1];i=[[l,d=>{const u=this.finalDispatch;u==null?s.push(d):u(d)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=d=>{let u=!1;const h=qs(this.state[0]);return Dw(this.arg,Mw((f,p)=>{const _=this.state;this.finalDispatch=p,this.state=[f,_[1],!0,s],f!==_[0]&&d()},Ow((f,p)=>{const _=this.cmd;return this.cmd=Le(),[this.state[0],_]},(f,p,_)=>f(p)(this.state[0]),Zs(f=>f),Zs(f=>f),_e(f=>f),f=>[p=>f[0](p)?!0:h&&u,p=>{const _=p;qs(_)?we(_):f[1](p)}],o))),()=>{u=!0}}}}function Od(e,t,n){return new Zw(e,t,n)}function Jw(e){return e.state}function Yw(e){return e.subscribe}function Xw(e,t,n){return He(e.arg,t)?!He(e.dependencies,n):!0}function _s(e,t,n){const r=We(()=>Od(e,t,n)),o=r[0];Xw(o,t,n)&&r[1](Od(e,t,n));const s=Kw.useSyncExternalStore(Yw(o),()=>Jw(o)),i=s[2],a=s[3],l=s[1];return Te(()=>{if(i&&a.length>0){let c=Re(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const d=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{we(c)}Sh(a)}},[i,a]),[s[0],l]}class Lr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Pd extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Dd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class _o 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 Br extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Fd 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 Vd(e){return new Pd("Authorization",e)}const rr=new _o("",new Lr(0,[]),Be(),!1,void 0,void 0,void 0,new Dd(0,[]));new Fd(0,"","","",ea({Compare:Jr}),new Br(0,[""]));function Ld(e,t){return Jo(t)?new Array(0):ii(t,[e],void 0,0)}function Qw(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 Ur(e){return new _o(e,rr.method,rr.headers,rr.withCredentials,rr.overridenMimeType,rr.overridenResponseType,rr.timeout,rr.content)}function bo(e,t){return new _o(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ua(e,t){return new _o(t.url,t.method,ot(t.headers,re(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function e1(e,t){return new _o(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function da(e){return y0(t=>{const n=new XMLHttpRequest;n.open(Qw(e.method),e.url),n.onreadystatechange=()=>{let l,c,d,u,h,f,p;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),d=n.status|0,u=n.responseType,h=(f=n.responseType,f===""?new Br(0,[n.responseText]):f==="text"?new Br(0,[n.responseText]):f==="arraybuffer"?new Br(2,[n.response]):f==="blob"?new Br(1,[n.response]):new Br(3,[n.response])),p=z0(wp(_=>{const $=k(Ld(":",_));if(!K($))return[D($).toLocaleLowerCase(),ae(":",b($)).trim()]},Ld(`\r
31
- `,n.getAllResponseHeaders())),{Compare:Jr}),new Fd(d,l,u,n.responseURL,p,h)))};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{we(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(nt(a.fields[0]));break}case 3:{n.send(nt(a.fields[0]));break}case 2:{n.send(nt(a.fields[0]));break}default:n.send()}})}function t1(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(s)){const i=r;return i.tag===1?new w(1,[i.fields[0]]):new w(0,[Qo(i.fields[0])])}else{let i;const a=o(D(s));if(a.tag===1)i=new w(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new w(1,[l.fields[0]]):new w(0,[kt(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=b(s);continue e}}}function n1(e,t){return t1(new w(0,[Be()]),e,t)}function r1(e){return n1(t=>t,e)}function fa(e){return new Xl(fn(e))}function bs(e){return`${e}/account-registry/admin`}function ys(e,t){return W.Delay(()=>{const n=ua(Vd(Qt(Ut("Bearer %s"))(e)),t);let r;const o=da(n);return r=W.Bind(o,s=>W.Return(new w(0,[s]))),W.Bind(r,s=>{const i=s;if(i.tag===1)return W.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=da(n);return W.Bind(l,c=>W.Return(new w(0,[c])))}else return W.Return(new w(0,[a]))}})})}function o1(e,t){return W.Delay(()=>{const n=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/partners`)));return W.Bind(n,r=>{const o=r;if(o.tag===1)return W.Return(new w(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=tr(_e(nr(Qs(f$()),new tn(1,[]))),s.responseText);return i=a.tag===1?new w(1,[a.fields[0]]):r1(Wn(hg,a.fields[0])),W.Return(i)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function s1(e,t,n,r){const o=fn(n),s=hn(r);return W.Delay(()=>{const i=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/partners/${o}/accounts/${s}`)));return W.Bind(i,a=>{const l=a;if(l.tag===1)return W.Return(new w(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const d=tr(_e(nr($$(),new tn(1,[]))),c.responseText);return W.Return(d)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function ha(e,t,n,r,o){return W.Delay(()=>{let s,i,a,l;const c="?"+ae("&",Dl(u=>u,k([(s=Wu(r.SearchText),El(s)?void 0:`search=${encodeURIComponent(s)}`),(i=tg(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=Gu(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),d=ys(t,(l=bo(new Lr(0,[]),Ur(`${bs(e)}/partners/${kr(n)}/accounts${c}`)),o==null?l:ua(new Pd("token",o),l)));return W.Bind(d,u=>{const h=u;if(h.tag===1)return W.Return(new w(1,[h.fields[0]]));{const f=h.fields[0];if(f.statusCode===200){const p=tr(_e(nr(_$(),new tn(1,[]))),f.responseText);return W.Return(p)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function i1(e,t,n){const r=hn(n);return W.Delay(()=>{const o=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/search-by-id/${r}`)));return W.Bind(o,s=>{const i=s;if(i.tag===1)return W.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=tr(_e(nr(y$(),new tn(1,[]))),a.responseText);return W.Return(l)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function a1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const l1=Rn(a1);function c1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("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 u1=Rn(c1);function d1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}const f1=Rn(d1);function h1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}const p1=Rn(h1);function m1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}const $1=Rn(m1);class Bd extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function g1(e,t,n){let r,o;return m("li",P(k([["key",e],["className","flex"],(r=[m("div",P(k([["className","flex items-center"],(o=Ie(A(()=>{let s;return B(n?Et():E((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},m(u1,s))),A(()=>E(m("a",P(Ie(A(()=>B(E(["children",e]),A(()=>B(t!=null?E(["href",Qn(T(t))]):Et(),A(()=>E(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",I.Children.toArray(Array.from(o))])])))],["children",I.Children.toArray(Array.from(r))])])))}function w1(e){let t,n;return m("nav",P(k([["className","pt-2 mb-6"],["aria-label","Breadcrumb"],(t=[m("ol",P(k([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Ap((r,o)=>g1(o.fields[0][0],o.fields[0][1],r===0),e),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function wt(e,t){return new Bd([e,$o(t)])}function Ud(){return wt("Partners",new J(0,[]))}function zd(e,t){return wt(t,new J(1,[e]))}function _1(e){return wt("Super",new J(4,[e]))}function b1(e){return wt("Benefits",new J(5,[e]))}function y1(e){return wt("Bank Details",new J(6,[e]))}function v1(e){return wt("Directory",new J(2,[e]))}function x1(e){return wt("Workspace",new J(7,[e]))}function C1(e){return wt("Accounts",new J(3,[e]))}function S1(e){return new Bd([e,void 0])}function k1(e,t){let n;return wt("Directory",(n=[e,t],new J(9,[n[0],n[1]])))}function A1(e,t){let n;return wt("Imports",(n=[e,t],new J(10,[n[0],n[1]])))}function E1(e,t){let n;return wt("Super",(n=[e,t],new J(11,[n[0],n[1]])))}function I1(e,t){let n;return wt("Benefits",(n=[e,t],new J(12,[n[0],n[1]])))}function T1(e,t){let n;return wt("Bank Details",(n=[e,t],new J(13,[n[0],n[1]])))}function N1(e,t){let n;return wt("Salary Packaging",(n=[e,t],new J(14,[n[0],n[1]])))}function M1(e,t){let n;return wt("Workspace",(n=[e,t],new J(15,[n[0],n[1]])))}function yo(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,f=h.Name;n=f.tag===2?f.fields[0].tag===1?ts(h.Id):di(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,f=h.Name;o=f.tag===2?f.fields[0].tag===1?ns(h.Id):di(f.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,d,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,d=a),c){case 0:{i=k([Ud(),zd(d.Id,n),C1(d.Id),S1(o)]);break}case 1:{i=k([Ud(),zd(u.Id,n)]);break}default:i=Be()}return w1((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?ot(i,re(_1(t.fields[0]))):t.tag===5?ot(i,re(b1(t.fields[0]))):t.tag===6?ot(i,re(y1(t.fields[0]))):t.tag===2?ot(i,re(v1(t.fields[0]))):t.tag===7?ot(i,re(x1(t.fields[0]))):t.tag===8?i:t.tag===9?ot(i,re(k1(t.fields[0],t.fields[1]))):t.tag===10?ot(i,re(A1(t.fields[0],t.fields[1]))):t.tag===11?ot(i,re(E1(t.fields[0],t.fields[1]))):t.tag===12?ot(i,re(I1(t.fields[0],t.fields[1]))):t.tag===13?ot(i,re(T1(t.fields[0],t.fields[1]))):t.tag===14?ot(i,re(N1(t.fields[0],t.fields[1]))):t.tag===15?ot(i,re(M1(t.fields[0],t.fields[1]))):i))}class R1 extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function O1(e){return new R1(e)}function P1(e){return e.fields[0]}function jd(e,t,n){const r=(e===t?"border-indigo-500 text-indigo-600 bg-indigo-100":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 hover:bg-gray-200")+" whitespace-nowrap p-3 border-r-2 font-medium text-sm";return O1(m("a",P(Ie(A(()=>B(E(["key",t]),A(()=>B(E(["children",t]),A(()=>B(E(["className",r]),A(()=>e!==t?E(["href",Qn(re(n))]):Et())))))))))))}function Hd(e){let t,n;const r=e.headers,o=Yn(100);return m("div",P(k([["ref",s=>{const i=hp(s);if(i!=null){const a=i;o[1](~~a.offsetTop)}}],["className","relative"],(t=[m("div",{className:"w-40 mr-6"}),m("nav",P(k([["className","fixed bottom-14 flex flex-col w-40 border-r border-gray-300 mr-6"],["style",{top:o[0]}],(n=De(P1,r),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}class D1 extends ie{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const On=f0();let or=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class F1{constructor(t){this.props=t}}function V1(e){return new F1(e)}function Wd(e){return t=>n=>W.Delay(()=>{const r=fa(e.props.partnerId);return W.Bind(ha(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new or(2,[new pe(2,[o])])),W.Zero()))})}function L1(e){return t=>n=>r=>W.Delay(()=>{const o=fa(e.props.partnerId);return W.Bind(ha(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new or(3,[s])),W.Zero()))})}function B1(e,t,n){return ha(e.props.backendUrl,e.props.accessToken,fa(e.props.partnerId),t,void 0)}let zr=class extends ie{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function U1(){return[new zr(new pe(0,[]),ng,eg,sg(20)),Le()]}function z1(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new zr(new pe(1,[]),n.SearchText,a,n.PageSize),Xe(l=>{const c=new ta(n.SearchText,a,n.PageSize);Mr(Wd(e)(c)(l))})]}case 2:return[new zr(t.fields[0],n.SearchText,n.Sort,n.PageSize),Le()];case 3:{const a=t.fields[0];return[new zr((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new pe(2,[new w(1,[o.fields[0]])]):new pe(2,[new w(0,[new hc(ot(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new pe(2,[new w(1,[s.fields[0]])]):new pe(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new pe(2,[new w(1,[i.fields[0]])]):new pe(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Le()]}case 4:return[new zr(new pe(1,[]),n.SearchText,n.Sort,n.PageSize),Xe(a=>{const l=new ta(n.SearchText,n.Sort,n.PageSize);Mr(Wd(e)(l)(a))})];default:return[new zr(n.Data,rg(t.fields[0]),n.Sort,n.PageSize),Le()]}}function Gd(e,t,n,r){let o,s;return m("div",P(k([["className",ae(" ",["flex-grow","max-w-md"])],(o=[m("label",{for:"search",children:"Search",className:ae(" ",["block","text-sm","font-medium","text-gray-700"])}),m("div",P(k([["className","mt-1"],(s=[m("input",{id:"search",name:"search",type:"text",className:ae(" ",["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",I.Children.toArray(Array.from(s))])])))],["children",I.Children.toArray(Array.from(o))])])))}function j1(e){let t,n;return m("div",P(k([["className","pt-6"],(t=[m("div",P(k([["className",ae(" ",["flex","justify-end"])],(n=[m("button",{type:"search",children:"Search",className:ae(" ",["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",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function qd(e){return["fillRule",e]}function Kd(e){return["clipRule",e]}const H1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",P(k([(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]),qd("evenodd"),Kd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),W1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",P(k([(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]),qd("evenodd"),Kd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),Zd=m("svg",P(k([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",I.Children.toArray(Array.from(e))]})()]))),G1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));return["children",I.Children.toArray(Array.from(e))]})()])));function Jd(e){const t=e.child,n=e.onClose;return hu(()=>{const r=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",r),{Dispose(){window.removeEventListener("keydown",r)}}},[]),t}function q1(e){return e}const Yd=he();function vs(e){return Array.from(e)}function K1(e){return Go(e,"O")}function Z1(e){return Ag(e)}function J1(){return he()}function Y1(e){return Go(e,"O")}function X1(e,t){return JSON.stringify(t,void 0,nt(e))}function Q1(e){return t=>Tl(zt(e,t),()=>Yd)}function Xd(e,t,n,r){let o;const s=new ft(he());let i;const a=Me(r);i=a===""?e:Mu(a,s,e);let l;if(ul(r)){const c=An(d=>{const u=Yu(t,wr(d)),h=vn(i,t,n,d[1]);return f=>p=>{const _=Uh(f,d);return(!n||n&&_!=null)&&(p[u]=h(_)),p}},Xr(r));l=d=>so((u,h)=>h(d)(u),{},c)}else if(cl(r))l=c=>{const d=Bh(c,r),u=d[0],h=d[1],f=h.length|0;if(f===0)return wr(u);{const p=f|0,_=dl(u),$=Yo(new Array(p+1),0,p+1,null);St($,0,wr(u));for(let v=1;v<=p;v++){const y=vn(i,t,n,fe(v-1,_)[1]);St($,v,y(fe(v-1,h)))}return $}};else throw new Error((o=Me(r),Qt(Ut(`Cannot generate auto encoder for %s. Please pass an extra encoder.
31
+ `,n.getAllResponseHeaders())),{Compare:Jr}),new Fd(d,l,u,n.responseURL,p,h)))};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{we(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(nt(a.fields[0]));break}case 3:{n.send(nt(a.fields[0]));break}case 2:{n.send(nt(a.fields[0]));break}default:n.send()}})}function t1(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(s)){const i=r;return i.tag===1?new w(1,[i.fields[0]]):new w(0,[Qo(i.fields[0])])}else{let i;const a=o(D(s));if(a.tag===1)i=new w(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new w(1,[l.fields[0]]):new w(0,[kt(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=b(s);continue e}}}function n1(e,t){return t1(new w(0,[Be()]),e,t)}function r1(e){return n1(t=>t,e)}function fa(e){return new Xl(fn(e))}function bs(e){return`${e}/account-registry/admin`}function ys(e,t){return W.Delay(()=>{const n=ua(Vd(Qt(Ut("Bearer %s"))(e)),t);let r;const o=da(n);return r=W.Bind(o,s=>W.Return(new w(0,[s]))),W.Bind(r,s=>{const i=s;if(i.tag===1)return W.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=da(n);return W.Bind(l,c=>W.Return(new w(0,[c])))}else return W.Return(new w(0,[a]))}})})}function o1(e,t){return W.Delay(()=>{const n=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/partners`)));return W.Bind(n,r=>{const o=r;if(o.tag===1)return W.Return(new w(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=tr(_e(nr(Qs(f$()),new tn(1,[]))),s.responseText);return i=a.tag===1?new w(1,[a.fields[0]]):r1(Wn(hg,a.fields[0])),W.Return(i)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function s1(e,t,n,r){const o=fn(n),s=hn(r);return W.Delay(()=>{const i=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/partners/${o}/accounts/${s}`)));return W.Bind(i,a=>{const l=a;if(l.tag===1)return W.Return(new w(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const d=tr(_e(nr($$(),new tn(1,[]))),c.responseText);return W.Return(d)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function ha(e,t,n,r,o){return W.Delay(()=>{let s,i,a,l;const c="?"+ae("&",Dl(u=>u,k([(s=Wu(r.SearchText),El(s)?void 0:`search=${encodeURIComponent(s.trim())}`),(i=tg(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=Gu(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),d=ys(t,(l=bo(new Lr(0,[]),Ur(`${bs(e)}/partners/${kr(n)}/accounts${c}`)),o==null?l:ua(new Pd("token",o),l)));return W.Bind(d,u=>{const h=u;if(h.tag===1)return W.Return(new w(1,[h.fields[0]]));{const f=h.fields[0];if(f.statusCode===200){const p=tr(_e(nr(_$(),new tn(1,[]))),f.responseText);return W.Return(p)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function i1(e,t,n){const r=hn(n);return W.Delay(()=>{const o=ys(t,bo(new Lr(0,[]),Ur(`${bs(e)}/search-by-id/${r}`)));return W.Bind(o,s=>{const i=s;if(i.tag===1)return W.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=tr(_e(nr(y$(),new tn(1,[]))),a.responseText);return W.Return(l)}else return W.Return(new w(1,["Unexpected response from backend"]))}})})}function a1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const l1=Rn(a1);function c1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("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 u1=Rn(c1);function d1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}const f1=Rn(d1);function h1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}const p1=Rn(h1);function m1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}const $1=Rn(m1);class Bd extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function g1(e,t,n){let r,o;return m("li",P(k([["key",e],["className","flex"],(r=[m("div",P(k([["className","flex items-center"],(o=Ie(A(()=>{let s;return B(n?Et():E((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},m(u1,s))),A(()=>E(m("a",P(Ie(A(()=>B(E(["children",e]),A(()=>B(t!=null?E(["href",Qn(T(t))]):Et(),A(()=>E(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",I.Children.toArray(Array.from(o))])])))],["children",I.Children.toArray(Array.from(r))])])))}function w1(e){let t,n;return m("nav",P(k([["className","pt-2 mb-6"],["aria-label","Breadcrumb"],(t=[m("ol",P(k([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Ap((r,o)=>g1(o.fields[0][0],o.fields[0][1],r===0),e),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function wt(e,t){return new Bd([e,$o(t)])}function Ud(){return wt("Partners",new J(0,[]))}function zd(e,t){return wt(t,new J(1,[e]))}function _1(e){return wt("Super",new J(4,[e]))}function b1(e){return wt("Benefits",new J(5,[e]))}function y1(e){return wt("Bank Details",new J(6,[e]))}function v1(e){return wt("Directory",new J(2,[e]))}function x1(e){return wt("Workspace",new J(7,[e]))}function C1(e){return wt("Accounts",new J(3,[e]))}function S1(e){return new Bd([e,void 0])}function k1(e,t){let n;return wt("Directory",(n=[e,t],new J(9,[n[0],n[1]])))}function A1(e,t){let n;return wt("Imports",(n=[e,t],new J(10,[n[0],n[1]])))}function E1(e,t){let n;return wt("Super",(n=[e,t],new J(11,[n[0],n[1]])))}function I1(e,t){let n;return wt("Benefits",(n=[e,t],new J(12,[n[0],n[1]])))}function T1(e,t){let n;return wt("Bank Details",(n=[e,t],new J(13,[n[0],n[1]])))}function N1(e,t){let n;return wt("Salary Packaging",(n=[e,t],new J(14,[n[0],n[1]])))}function M1(e,t){let n;return wt("Workspace",(n=[e,t],new J(15,[n[0],n[1]])))}function yo(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,f=h.Name;n=f.tag===2?f.fields[0].tag===1?ts(h.Id):di(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,f=h.Name;o=f.tag===2?f.fields[0].tag===1?ns(h.Id):di(f.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,d,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,d=a),c){case 0:{i=k([Ud(),zd(d.Id,n),C1(d.Id),S1(o)]);break}case 1:{i=k([Ud(),zd(u.Id,n)]);break}default:i=Be()}return w1((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?ot(i,re(_1(t.fields[0]))):t.tag===5?ot(i,re(b1(t.fields[0]))):t.tag===6?ot(i,re(y1(t.fields[0]))):t.tag===2?ot(i,re(v1(t.fields[0]))):t.tag===7?ot(i,re(x1(t.fields[0]))):t.tag===8?i:t.tag===9?ot(i,re(k1(t.fields[0],t.fields[1]))):t.tag===10?ot(i,re(A1(t.fields[0],t.fields[1]))):t.tag===11?ot(i,re(E1(t.fields[0],t.fields[1]))):t.tag===12?ot(i,re(I1(t.fields[0],t.fields[1]))):t.tag===13?ot(i,re(T1(t.fields[0],t.fields[1]))):t.tag===14?ot(i,re(N1(t.fields[0],t.fields[1]))):t.tag===15?ot(i,re(M1(t.fields[0],t.fields[1]))):i))}class R1 extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function O1(e){return new R1(e)}function P1(e){return e.fields[0]}function jd(e,t,n){const r=(e===t?"border-indigo-500 text-indigo-600 bg-indigo-100":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 hover:bg-gray-200")+" whitespace-nowrap p-3 border-r-2 font-medium text-sm";return O1(m("a",P(Ie(A(()=>B(E(["key",t]),A(()=>B(E(["children",t]),A(()=>B(E(["className",r]),A(()=>e!==t?E(["href",Qn(re(n))]):Et())))))))))))}function Hd(e){let t,n;const r=e.headers,o=Yn(100);return m("div",P(k([["ref",s=>{const i=hp(s);if(i!=null){const a=i;o[1](~~a.offsetTop)}}],["className","relative"],(t=[m("div",{className:"w-40 mr-6"}),m("nav",P(k([["className","fixed bottom-14 flex flex-col w-40 border-r border-gray-300 mr-6"],["style",{top:o[0]}],(n=De(P1,r),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}class D1 extends ie{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const On=f0();let or=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class F1{constructor(t){this.props=t}}function V1(e){return new F1(e)}function Wd(e){return t=>n=>W.Delay(()=>{const r=fa(e.props.partnerId);return W.Bind(ha(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new or(2,[new pe(2,[o])])),W.Zero()))})}function L1(e){return t=>n=>r=>W.Delay(()=>{const o=fa(e.props.partnerId);return W.Bind(ha(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new or(3,[s])),W.Zero()))})}function B1(e,t,n){return ha(e.props.backendUrl,e.props.accessToken,fa(e.props.partnerId),t,void 0)}let zr=class extends ie{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function U1(){return[new zr(new pe(0,[]),ng,eg,sg(20)),Le()]}function z1(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new zr(new pe(1,[]),n.SearchText,a,n.PageSize),Xe(l=>{const c=new ta(n.SearchText,a,n.PageSize);Mr(Wd(e)(c)(l))})]}case 2:return[new zr(t.fields[0],n.SearchText,n.Sort,n.PageSize),Le()];case 3:{const a=t.fields[0];return[new zr((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new pe(2,[new w(1,[o.fields[0]])]):new pe(2,[new w(0,[new hc(ot(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new pe(2,[new w(1,[s.fields[0]])]):new pe(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new pe(2,[new w(1,[i.fields[0]])]):new pe(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Le()]}case 4:return[new zr(new pe(1,[]),n.SearchText,n.Sort,n.PageSize),Xe(a=>{const l=new ta(n.SearchText,n.Sort,n.PageSize);Mr(Wd(e)(l)(a))})];default:return[new zr(n.Data,rg(t.fields[0]),n.Sort,n.PageSize),Le()]}}function Gd(e,t,n,r){let o,s;return m("div",P(k([["className",ae(" ",["flex-grow","max-w-md"])],(o=[m("label",{for:"search",children:"Search",className:ae(" ",["block","text-sm","font-medium","text-gray-700"])}),m("div",P(k([["className","mt-1"],(s=[m("input",{id:"search",name:"search",type:"text",className:ae(" ",["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",I.Children.toArray(Array.from(s))])])))],["children",I.Children.toArray(Array.from(o))])])))}function j1(e){let t,n;return m("div",P(k([["className","pt-6"],(t=[m("div",P(k([["className",ae(" ",["flex","justify-end"])],(n=[m("button",{type:"search",children:"Search",className:ae(" ",["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",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function qd(e){return["fillRule",e]}function Kd(e){return["clipRule",e]}const H1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",P(k([(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]),qd("evenodd"),Kd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),W1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",P(k([(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]),qd("evenodd"),Kd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),Zd=m("svg",P(k([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",I.Children.toArray(Array.from(e))]})()]))),G1=m("svg",P(k([["className",ae(" ",["h-5","w-5"])],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));return["children",I.Children.toArray(Array.from(e))]})()])));function Jd(e){const t=e.child,n=e.onClose;return hu(()=>{const r=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",r),{Dispose(){window.removeEventListener("keydown",r)}}},[]),t}function q1(e){return e}const Yd=he();function vs(e){return Array.from(e)}function K1(e){return Go(e,"O")}function Z1(e){return Ag(e)}function J1(){return he()}function Y1(e){return Go(e,"O")}function X1(e,t){return JSON.stringify(t,void 0,nt(e))}function Q1(e){return t=>Tl(zt(e,t),()=>Yd)}function Xd(e,t,n,r){let o;const s=new ft(he());let i;const a=Me(r);i=a===""?e:Mu(a,s,e);let l;if(ul(r)){const c=An(d=>{const u=Yu(t,wr(d)),h=vn(i,t,n,d[1]);return f=>p=>{const _=Uh(f,d);return(!n||n&&_!=null)&&(p[u]=h(_)),p}},Xr(r));l=d=>so((u,h)=>h(d)(u),{},c)}else if(cl(r))l=c=>{const d=Bh(c,r),u=d[0],h=d[1],f=h.length|0;if(f===0)return wr(u);{const p=f|0,_=dl(u),$=Yo(new Array(p+1),0,p+1,null);St($,0,wr(u));for(let v=1;v<=p;v++){const y=vn(i,t,n,fe(v-1,_)[1]);St($,v,y(fe(v-1,h)))}return $}};else throw new Error((o=Me(r),Qt(Ut(`Cannot generate auto encoder for %s. Please pass an extra encoder.
32
32
 
33
33
  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 vn(e,t,n,r){const o=Me(r),s=Ru(o,e);if(s==null)if(rl(r)){const i=vn(e,t,n,Yr(r));return a=>vs(De(i,a))}else if(ei(r))switch(Me(il(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Me(r);return Cl(Ut(`Cannot generate auto encoder for %s.
34
34
  Thoth.Json.Net only support the following enum types:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "2.47.64",
3
+ "version": "2.48.66",
4
4
  "description": "Flare Superhero Account Registry Component",
5
5
  "license": "UNLICENSED",
6
6
  "files": [