@equinor/roma-framework 0.0.1 → 0.0.5-ALPHA

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/roma-framework.js CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react/jsx-runtime"),Y=require("react");function wc(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const kt=wc(Y);var xo={exports:{}};const bc="2.0.0",rs=256,Tc=Number.MAX_SAFE_INTEGER||9007199254740991,Sc=16,Ic=rs-6,Ac=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Yn={MAX_LENGTH:rs,MAX_SAFE_COMPONENT_LENGTH:Sc,MAX_SAFE_BUILD_LENGTH:Ic,MAX_SAFE_INTEGER:Tc,RELEASE_TYPES:Ac,SEMVER_SPEC_VERSION:bc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Rc=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var Wn=Rc;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=Yn,i=Wn;e=r.exports={};const a=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.t={};let u=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[d,n]],f=m=>{for(const[T,R]of h)m=m.split(`${T}*`).join(`${T}{0,${R}}`).split(`${T}+`).join(`${T}{1,${R}}`);return m},p=(m,T,R)=>{const w=f(T),k=u++;i(m,k,T),l[m]=k,c[k]=T,a[k]=new RegExp(T,R?"g":void 0),s[k]=new RegExp(w,R?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(xo,xo.exports);var Qr=xo.exports;const kc=Object.freeze({loose:!0}),Nc=Object.freeze({}),Pc=r=>r?typeof r!="object"?kc:r:Nc;var li=Pc;const Mi=/^[0-9]+$/,ns=(r,e)=>{const t=Mi.test(r),n=Mi.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Oc=(r,e)=>ns(e,r);var os={compareIdentifiers:ns,rcompareIdentifiers:Oc};const Zr=Wn,{MAX_LENGTH:xi,MAX_SAFE_INTEGER:en}=Yn,{safeRe:Li,t:Ui}=Qr,Mc=li,{compareIdentifiers:Jt}=os;let xc=class et{constructor(e,t){if(t=Mc(t),e instanceof et){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>xi)throw new TypeError(`version is longer than ${xi} characters`);Zr("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Li[Ui.LOOSE]:Li[Ui.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>en||this.major<0)throw new TypeError("Invalid major version");if(this.minor>en||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>en||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<en)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Zr("SemVer.compare",this.version,this.options,e),!(e instanceof et)){if(typeof e=="string"&&e===this.version)return 0;e=new et(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof et||(e=new et(e,this.options)),Jt(this.major,e.major)||Jt(this.minor,e.minor)||Jt(this.patch,e.patch)}comparePre(e){if(e instanceof et||(e=new et(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(Zr("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Jt(n,o)}while(++t)}compareBuild(e){e instanceof et||(e=new et(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(Zr("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Jt(n,o)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let i=[t,o];n===!1&&(i=[t]),Jt(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Me=xc;const Hi=Me,Lc=(r,e,t=!1)=>{if(r instanceof Hi)return r;try{return new Hi(r,e)}catch(n){if(!t)return null;throw n}};var wr=Lc;const Uc=wr,Hc=(r,e)=>{const t=Uc(r,e);return t?t.version:null};var Dc=Hc;const Fc=wr,qc=(r,e)=>{const t=Fc(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var Bc=qc;const Di=Me,Kc=(r,e,t,n,o)=>{typeof t=="string"&&(o=n,n=t,t=void 0);try{return new Di(r instanceof Di?r.version:r,t).inc(e,n,o).version}catch{return null}};var $c=Kc;const Fi=wr,Gc=(r,e)=>{const t=Fi(r,null,!0),n=Fi(e,null,!0),o=t.compare(n);if(o===0)return null;const i=o>0,a=i?t:n,s=i?n:t,c=!!a.prerelease.length;if(!!s.prerelease.length&&!c)return!s.patch&&!s.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=c?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};var jc=Gc;const zc=Me,Vc=(r,e)=>new zc(r,e).major;var Yc=Vc;const Wc=Me,Qc=(r,e)=>new Wc(r,e).minor;var Jc=Qc;const Xc=Me,Zc=(r,e)=>new Xc(r,e).patch;var el=Zc;const tl=wr,rl=(r,e)=>{const t=tl(r,e);return t&&t.prerelease.length?t.prerelease:null};var nl=rl;const qi=Me,ol=(r,e,t)=>new qi(r,t).compare(new qi(e,t));var Xe=ol;const il=Xe,al=(r,e,t)=>il(e,r,t);var sl=al;const cl=Xe,ll=(r,e)=>cl(r,e,!0);var ul=ll;const Bi=Me,dl=(r,e,t)=>{const n=new Bi(r,t),o=new Bi(e,t);return n.compare(o)||n.compareBuild(o)};var ui=dl;const hl=ui,fl=(r,e)=>r.sort((t,n)=>hl(t,n,e));var pl=fl;const gl=ui,ml=(r,e)=>r.sort((t,n)=>gl(n,t,e));var vl=ml;const yl=Xe,_l=(r,e,t)=>yl(r,e,t)>0;var Qn=_l;const El=Xe,Cl=(r,e,t)=>El(r,e,t)<0;var di=Cl;const wl=Xe,bl=(r,e,t)=>wl(r,e,t)===0;var is=bl;const Tl=Xe,Sl=(r,e,t)=>Tl(r,e,t)!==0;var as=Sl;const Il=Xe,Al=(r,e,t)=>Il(r,e,t)>=0;var hi=Al;const Rl=Xe,kl=(r,e,t)=>Rl(r,e,t)<=0;var fi=kl;const Nl=is,Pl=as,Ol=Qn,Ml=hi,xl=di,Ll=fi,Ul=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Nl(r,t,n);case"!=":return Pl(r,t,n);case">":return Ol(r,t,n);case">=":return Ml(r,t,n);case"<":return xl(r,t,n);case"<=":return Ll(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var ss=Ul;const Hl=Me,Dl=wr,{safeRe:tn,t:rn}=Qr,Fl=(r,e)=>{if(r instanceof Hl)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(tn[rn.COERCE]);else{let n;for(;(n=tn[rn.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),tn[rn.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;tn[rn.COERCERTL].lastIndex=-1}return t===null?null:Dl(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};var ql=Fl,go,Ki;function Bl(){return Ki||(Ki=1,go=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),go}var Kl=ne;ne.Node=Gt;ne.create=ne;function ne(r){var e=this;if(e instanceof ne||(e=new ne),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(o){e.push(o)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}ne.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};ne.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};ne.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};ne.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)Gl(this,arguments[r]);return this.length};ne.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)jl(this,arguments[r]);return this.length};ne.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};ne.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};ne.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};ne.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};ne.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};ne.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};ne.prototype.map=function(r,e){e=e||this;for(var t=new ne,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};ne.prototype.mapReverse=function(r,e){e=e||this;for(var t=new ne,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};ne.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;n!==null;o++)t=r(t,n.value,o),n=n.next;return t};ne.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;n!==null;o--)t=r(t,n.value,o),n=n.prev;return t};ne.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};ne.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};ne.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new ne;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(;o!==null&&n<e;n++,o=o.next)t.push(o.value);return t};ne.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new ne;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,o=this.tail;o!==null&&n>e;n--)o=o.prev;for(;o!==null&&n>r;n--,o=o.prev)t.push(o.value);return t};ne.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(var i=[],n=0;o&&n<e;n++)i.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<t.length;n++)o=$l(this,o,t[n]);return i};ne.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function $l(r,e,t){var n=e===r.head?new Gt(t,null,e,r):new Gt(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function Gl(r,e){r.tail=new Gt(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function jl(r,e){r.head=new Gt(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Gt(r,e,t,n){if(!(this instanceof Gt))return new Gt(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Bl()(ne)}catch{}const zl=Kl,Mt=Symbol("max"),ft=Symbol("length"),Xt=Symbol("lengthCalculator"),Ur=Symbol("allowStale"),Ut=Symbol("maxAge"),ut=Symbol("dispose"),$i=Symbol("noDisposeOnSet"),Ee=Symbol("lruList"),Ye=Symbol("cache"),cs=Symbol("updateAgeOnGet"),mo=()=>1;class Vl{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[Mt]=e.max||1/0;const t=e.length||mo;if(this[Xt]=typeof t!="function"?mo:t,this[Ur]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ut]=e.maxAge||0,this[ut]=e.dispose,this[$i]=e.noDisposeOnSet||!1,this[cs]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Mt]=e||1/0,Rr(this)}get max(){return this[Mt]}set allowStale(e){this[Ur]=!!e}get allowStale(){return this[Ur]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Ut]=e,Rr(this)}get maxAge(){return this[Ut]}set lengthCalculator(e){typeof e!="function"&&(e=mo),e!==this[Xt]&&(this[Xt]=e,this[ft]=0,this[Ee].forEach(t=>{t.length=this[Xt](t.value,t.key),this[ft]+=t.length})),Rr(this)}get lengthCalculator(){return this[Xt]}get length(){return this[ft]}get itemCount(){return this[Ee].length}rforEach(e,t){t=t||this;for(let n=this[Ee].tail;n!==null;){const o=n.prev;Gi(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[Ee].head;n!==null;){const o=n.next;Gi(this,e,n,t),n=o}}keys(){return this[Ee].toArray().map(e=>e.key)}values(){return this[Ee].toArray().map(e=>e.value)}reset(){this[ut]&&this[Ee]&&this[Ee].length&&this[Ee].forEach(e=>this[ut](e.key,e.value)),this[Ye]=new Map,this[Ee]=new zl,this[ft]=0}dump(){return this[Ee].map(e=>An(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[Ee]}set(e,t,n){if(n=n||this[Ut],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const o=n?Date.now():0,i=this[Xt](t,e);if(this[Ye].has(e)){if(i>this[Mt])return ur(this,this[Ye].get(e)),!1;const c=this[Ye].get(e).value;return this[ut]&&(this[$i]||this[ut](e,c.value)),c.now=o,c.maxAge=n,c.value=t,this[ft]+=i-c.length,c.length=i,this.get(e),Rr(this),!0}const a=new Yl(e,t,i,o,n);return a.length>this[Mt]?(this[ut]&&this[ut](e,t),!1):(this[ft]+=a.length,this[Ee].unshift(a),this[Ye].set(e,this[Ee].head),Rr(this),!0)}has(e){if(!this[Ye].has(e))return!1;const t=this[Ye].get(e).value;return!An(this,t)}get(e){return vo(this,e,!0)}peek(e){return vo(this,e,!1)}pop(){const e=this[Ee].tail;return e?(ur(this,e),e.value):null}del(e){ur(this,this[Ye].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],i=o.e||0;if(i===0)this.set(o.k,o.v);else{const a=i-t;a>0&&this.set(o.k,o.v,a)}}}prune(){this[Ye].forEach((e,t)=>vo(this,t,!1))}}const vo=(r,e,t)=>{const n=r[Ye].get(e);if(n){const o=n.value;if(An(r,o)){if(ur(r,n),!r[Ur])return}else t&&(r[cs]&&(n.value.now=Date.now()),r[Ee].unshiftNode(n));return o.value}},An=(r,e)=>{if(!e||!e.maxAge&&!r[Ut])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Ut]&&t>r[Ut]},Rr=r=>{if(r[ft]>r[Mt])for(let e=r[Ee].tail;r[ft]>r[Mt]&&e!==null;){const t=e.prev;ur(r,e),e=t}},ur=(r,e)=>{if(e){const t=e.value;r[ut]&&r[ut](t.key,t.value),r[ft]-=t.length,r[Ye].delete(t.key),r[Ee].removeNode(e)}};class Yl{constructor(e,t,n,o,i){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=i||0}}const Gi=(r,e,t,n)=>{let o=t.value;An(r,o)&&(ur(r,t),r[Ur]||(o=void 0)),o&&e.call(n,o.value,o.key,r)};var Wl=Vl,yo,ji;function Ze(){if(ji)return yo;ji=1;class r{constructor(S,F){if(F=n(F),S instanceof r)return S.loose===!!F.loose&&S.includePrerelease===!!F.includePrerelease?S:new r(S.raw,F);if(S instanceof o)return this.raw=S.value,this.set=[[S]],this.format(),this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=S.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(H=>this.parseRange(H.trim())).filter(H=>H.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const H=this.set[0];if(this.set=this.set.filter(U=>!p(U[0])),this.set.length===0)this.set=[H];else if(this.set.length>1){for(const U of this.set)if(U.length===1&&m(U[0])){this.set=[U];break}}}this.format()}format(){return this.range=this.set.map(S=>S.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(S){const H=((this.options.includePrerelease&&h)|(this.options.loose&&f))+":"+S,U=t.get(H);if(U)return U;const M=this.options.loose,K=M?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];S=S.replace(K,ho(this.options.includePrerelease)),i("hyphen replace",S),S=S.replace(s[c.COMPARATORTRIM],l),i("comparator trim",S),S=S.replace(s[c.TILDETRIM],u),i("tilde trim",S),S=S.replace(s[c.CARETTRIM],d),i("caret trim",S);let te=S.split(" ").map(de=>R(de,this.options)).join(" ").split(/\s+/).map(de=>uo(de,this.options));M&&(te=te.filter(de=>(i("loose invalid filter",de,this.options),!!de.match(s[c.COMPARATORLOOSE])))),i("range list",te);const D=new Map,se=te.map(de=>new o(de,this.options));for(const de of se){if(p(de))return[de];D.set(de.value,de)}D.size>1&&D.has("")&&D.delete("");const we=[...D.values()];return t.set(H,we),we}intersects(S,F){if(!(S instanceof r))throw new TypeError("a Range is required");return this.set.some(H=>T(H,F)&&S.set.some(U=>T(U,F)&&H.every(M=>U.every(K=>M.intersects(K,F)))))}test(S){if(!S)return!1;if(typeof S=="string")try{S=new a(S,this.options)}catch{return!1}for(let F=0;F<this.set.length;F++)if(fo(this.set[F],S,this.options))return!0;return!1}}yo=r;const e=Wl,t=new e({max:1e3}),n=li,o=Jn(),i=Wn,a=Me,{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:d}=Qr,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:f}=Yn,p=N=>N.value==="<0.0.0-0",m=N=>N.value==="",T=(N,S)=>{let F=!0;const H=N.slice();let U=H.pop();for(;F&&H.length;)F=H.every(M=>U.intersects(M,S)),U=H.pop();return F},R=(N,S)=>(i("comp",N,S),N=Z(N,S),i("caret",N),N=k(N,S),i("tildes",N),N=B(N,S),i("xrange",N),N=Ct(N,S),i("stars",N),N),w=N=>!N||N.toLowerCase()==="x"||N==="*",k=(N,S)=>N.trim().split(/\s+/).map(F=>X(F,S)).join(" "),X=(N,S)=>{const F=S.loose?s[c.TILDELOOSE]:s[c.TILDE];return N.replace(F,(H,U,M,K,te)=>{i("tilde",N,H,U,M,K,te);let D;return w(U)?D="":w(M)?D=`>=${U}.0.0 <${+U+1}.0.0-0`:w(K)?D=`>=${U}.${M}.0 <${U}.${+M+1}.0-0`:te?(i("replaceTilde pr",te),D=`>=${U}.${M}.${K}-${te} <${U}.${+M+1}.0-0`):D=`>=${U}.${M}.${K} <${U}.${+M+1}.0-0`,i("tilde return",D),D})},Z=(N,S)=>N.trim().split(/\s+/).map(F=>z(F,S)).join(" "),z=(N,S)=>{i("caret",N,S);const F=S.loose?s[c.CARETLOOSE]:s[c.CARET],H=S.includePrerelease?"-0":"";return N.replace(F,(U,M,K,te,D)=>{i("caret",N,U,M,K,te,D);let se;return w(M)?se="":w(K)?se=`>=${M}.0.0${H} <${+M+1}.0.0-0`:w(te)?M==="0"?se=`>=${M}.${K}.0${H} <${M}.${+K+1}.0-0`:se=`>=${M}.${K}.0${H} <${+M+1}.0.0-0`:D?(i("replaceCaret pr",D),M==="0"?K==="0"?se=`>=${M}.${K}.${te}-${D} <${M}.${K}.${+te+1}-0`:se=`>=${M}.${K}.${te}-${D} <${M}.${+K+1}.0-0`:se=`>=${M}.${K}.${te}-${D} <${+M+1}.0.0-0`):(i("no pr"),M==="0"?K==="0"?se=`>=${M}.${K}.${te}${H} <${M}.${K}.${+te+1}-0`:se=`>=${M}.${K}.${te}${H} <${M}.${+K+1}.0-0`:se=`>=${M}.${K}.${te} <${+M+1}.0.0-0`),i("caret return",se),se})},B=(N,S)=>(i("replaceXRanges",N,S),N.split(/\s+/).map(F=>ue(F,S)).join(" ")),ue=(N,S)=>{N=N.trim();const F=S.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return N.replace(F,(H,U,M,K,te,D)=>{i("xRange",N,H,U,M,K,te,D);const se=w(M),we=se||w(K),de=we||w(te),Ve=de;return U==="="&&Ve&&(U=""),D=S.includePrerelease?"-0":"",se?U===">"||U==="<"?H="<0.0.0-0":H="*":U&&Ve?(we&&(K=0),te=0,U===">"?(U=">=",we?(M=+M+1,K=0,te=0):(K=+K+1,te=0)):U==="<="&&(U="<",we?M=+M+1:K=+K+1),U==="<"&&(D="-0"),H=`${U+M}.${K}.${te}${D}`):we?H=`>=${M}.0.0${D} <${+M+1}.0.0-0`:de&&(H=`>=${M}.${K}.0${D} <${M}.${+K+1}.0-0`),i("xRange return",H),H})},Ct=(N,S)=>(i("replaceStars",N,S),N.trim().replace(s[c.STAR],"")),uo=(N,S)=>(i("replaceGTE0",N,S),N.trim().replace(s[S.includePrerelease?c.GTE0PRE:c.GTE0],"")),ho=N=>(S,F,H,U,M,K,te,D,se,we,de,Ve,Ar)=>(w(H)?F="":w(U)?F=`>=${H}.0.0${N?"-0":""}`:w(M)?F=`>=${H}.${U}.0${N?"-0":""}`:K?F=`>=${F}`:F=`>=${F}${N?"-0":""}`,w(se)?D="":w(we)?D=`<${+se+1}.0.0-0`:w(de)?D=`<${se}.${+we+1}.0-0`:Ve?D=`<=${se}.${we}.${de}-${Ve}`:N?D=`<${se}.${we}.${+de+1}-0`:D=`<=${D}`,`${F} ${D}`.trim()),fo=(N,S,F)=>{for(let H=0;H<N.length;H++)if(!N[H].test(S))return!1;if(S.prerelease.length&&!F.includePrerelease){for(let H=0;H<N.length;H++)if(i(N[H].semver),N[H].semver!==o.ANY&&N[H].semver.prerelease.length>0){const U=N[H].semver;if(U.major===S.major&&U.minor===S.minor&&U.patch===S.patch)return!0}return!1}return!0};return yo}var _o,zi;function Jn(){if(zi)return _o;zi=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],h=u.match(d);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new c(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}_o=e;const t=li,{safeRe:n,t:o}=Qr,i=ss,a=Wn,s=Me,c=Ze();return _o}const Ql=Ze(),Jl=(r,e,t)=>{try{e=new Ql(e,t)}catch{return!1}return e.test(r)};var Xn=Jl;const Xl=Ze(),Zl=(r,e)=>new Xl(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));var eu=Zl;const tu=Me,ru=Ze(),nu=(r,e,t)=>{let n=null,o=null,i=null;try{i=new ru(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===-1)&&(n=a,o=new tu(n,t))}),n};var ou=nu;const iu=Me,au=Ze(),su=(r,e,t)=>{let n=null,o=null,i=null;try{i=new au(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===1)&&(n=a,o=new iu(n,t))}),n};var cu=su;const Eo=Me,lu=Ze(),Vi=Qn,uu=(r,e)=>{r=new lu(r,e);let t=new Eo("0.0.0");if(r.test(t)||(t=new Eo("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){const o=r.set[n];let i=null;o.forEach(a=>{const s=new Eo(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||Vi(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||Vi(t,i))&&(t=i)}return t&&r.test(t)?t:null};var du=uu;const hu=Ze(),fu=(r,e)=>{try{return new hu(r,e).range||"*"}catch{return null}};var pu=fu;const gu=Me,ls=Jn(),{ANY:mu}=ls,vu=Ze(),yu=Xn,Yi=Qn,Wi=di,_u=fi,Eu=hi,Cu=(r,e,t,n)=>{r=new gu(r,n),e=new vu(e,n);let o,i,a,s,c;switch(t){case">":o=Yi,i=_u,a=Wi,s=">",c=">=";break;case"<":o=Wi,i=Eu,a=Yi,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yu(r,e,n))return!1;for(let l=0;l<e.set.length;++l){const u=e.set[l];let d=null,h=null;if(u.forEach(f=>{f.semver===mu&&(f=new ls(">=0.0.0")),d=d||f,h=h||f,o(f.semver,d.semver,n)?d=f:a(f.semver,h.semver,n)&&(h=f)}),d.operator===s||d.operator===c||(!h.operator||h.operator===s)&&i(r,h.semver))return!1;if(h.operator===c&&a(r,h.semver))return!1}return!0};var pi=Cu;const wu=pi,bu=(r,e,t)=>wu(r,e,">",t);var Tu=bu;const Su=pi,Iu=(r,e,t)=>Su(r,e,"<",t);var Au=Iu;const Qi=Ze(),Ru=(r,e,t)=>(r=new Qi(r,t),e=new Qi(e,t),r.intersects(e,t));var ku=Ru;const Nu=Xn,Pu=Xe;var Ou=(r,e,t)=>{const n=[];let o=null,i=null;const a=r.sort((u,d)=>Pu(u,d,t));for(const u of a)Nu(u,e,t)?(i=u,o||(o=u)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);const s=[];for(const[u,d]of n)u===d?s.push(u):!d&&u===a[0]?s.push("*"):d?u===a[0]?s.push(`<=${d}`):s.push(`${u} - ${d}`):s.push(`>=${u}`);const c=s.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return c.length<l.length?c:e};const Ji=Ze(),gi=Jn(),{ANY:Co}=gi,kr=Xn,mi=Xe,Mu=(r,e,t={})=>{if(r===e)return!0;r=new Ji(r,t),e=new Ji(e,t);let n=!1;e:for(const o of r.set){for(const i of e.set){const a=Lu(o,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},xu=[new gi(">=0.0.0-0")],Xi=[new gi(">=0.0.0")],Lu=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Co){if(e.length===1&&e[0].semver===Co)return!0;t.includePrerelease?r=xu:r=Xi}if(e.length===1&&e[0].semver===Co){if(t.includePrerelease)return!0;e=Xi}const n=new Set;let o,i;for(const f of r)f.operator===">"||f.operator===">="?o=Zi(o,f,t):f.operator==="<"||f.operator==="<="?i=ea(i,f,t):n.add(f.semver);if(n.size>1)return null;let a;if(o&&i){if(a=mi(o.semver,i.semver,t),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const f of n){if(o&&!kr(f,String(o),t)||i&&!kr(f,String(i),t))return null;for(const p of e)if(!kr(f,String(p),t))return!1;return!0}let s,c,l,u,d=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const f of e){if(u=u||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(h&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===h.major&&f.semver.minor===h.minor&&f.semver.patch===h.patch&&(h=!1),f.operator===">"||f.operator===">="){if(s=Zi(o,f,t),s===f&&s!==o)return!1}else if(o.operator===">="&&!kr(o.semver,String(f),t))return!1}if(i){if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),f.operator==="<"||f.operator==="<="){if(c=ea(i,f,t),c===f&&c!==i)return!1}else if(i.operator==="<="&&!kr(i.semver,String(f),t))return!1}if(!f.operator&&(i||o)&&a!==0)return!1}return!(o&&l&&!i&&a!==0||i&&u&&!o&&a!==0||h||d)},Zi=(r,e,t)=>{if(!r)return e;const n=mi(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},ea=(r,e,t)=>{if(!r)return e;const n=mi(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};var Uu=Mu;const wo=Qr,ta=Yn,Hu=Me,ra=os,Du=wr,Fu=Dc,qu=Bc,Bu=$c,Ku=jc,$u=Yc,Gu=Jc,ju=el,zu=nl,Vu=Xe,Yu=sl,Wu=ul,Qu=ui,Ju=pl,Xu=vl,Zu=Qn,ed=di,td=is,rd=as,nd=hi,od=fi,id=ss,ad=ql,sd=Jn(),cd=Ze(),ld=Xn,ud=eu,dd=ou,hd=cu,fd=du,pd=pu,gd=pi,md=Tu,vd=Au,yd=ku,_d=Ou,Ed=Uu;var na={parse:Du,valid:Fu,clean:qu,inc:Bu,diff:Ku,major:$u,minor:Gu,patch:ju,prerelease:zu,compare:Vu,rcompare:Yu,compareLoose:Wu,compareBuild:Qu,sort:Ju,rsort:Xu,gt:Zu,lt:ed,eq:td,neq:rd,gte:nd,lte:od,cmp:id,coerce:ad,Comparator:sd,Range:cd,satisfies:ld,toComparators:ud,maxSatisfying:dd,minSatisfying:hd,minVersion:fd,validRange:pd,outside:gd,gtr:md,ltr:vd,intersects:yd,simplifyRange:_d,subset:Ed,SemVer:Hu,re:wo.re,src:wo.src,tokens:wo.t,SEMVER_SPEC_VERSION:ta.SEMVER_SPEC_VERSION,RELEASE_TYPES:ta.RELEASE_TYPES,compareIdentifiers:ra.compareIdentifiers,rcompareIdentifiers:ra.rcompareIdentifiers};class pn extends na.SemVer{satisfies(e){return na.satisfies(this,e)}}let Cd=class{constructor(e){this.domain=e,this.level=process.env.NODE_ENV==="development"?3:1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,n)=>[...t,n,`
2
- `],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}};class us extends Cd{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var Lo=function(r,e){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Lo(r,e)};function _t(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lo(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Re=function(){return Re=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Re.apply(this,arguments)};function wd(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function bd(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function ds(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function jt(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pr(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function $e(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}function dr(r){return this instanceof dr?(this.v=r,this):new dr(r)}function Td(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(r,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){n[h]&&(o[h]=function(f){return new Promise(function(p,m){i.push([h,f,p,m])>1||s(h,f)})})}function s(h,f){try{c(n[h](f))}catch(p){d(i[0][3],p)}}function c(h){h.value instanceof dr?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,f){h(f),i.shift(),i.length&&s(i[0][0],i[0][1])}}function Sd(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof jt=="function"?jt(r):r[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=r[i]&&function(a){return new Promise(function(s,c){a=r[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function ge(r){return typeof r=="function"}function Zn(r){var e=function(n){Error.call(n),n.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var bo=Zn(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
1
+ "use strict";var Ui=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var m=(r,e,t)=>(Ui(r,e,"read from private field"),t?t.call(r):e.get(r)),F=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},k=(r,e,t,n)=>(Ui(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),vo=(r,e,t,n)=>({set _(o){k(r,e,o,t)},get _(){return m(r,e,n)}}),ne=(r,e,t)=>(Ui(r,e,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react/jsx-runtime"),K=require("react");function ql(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const Ee=ql(K);function Kl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var na={exports:{}};const Bl="2.0.0",su=256,$l=Number.MAX_SAFE_INTEGER||9007199254740991,Gl=16,jl=su-6,zl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var mi={MAX_LENGTH:su,MAX_SAFE_COMPONENT_LENGTH:Gl,MAX_SAFE_BUILD_LENGTH:jl,MAX_SAFE_INTEGER:$l,RELEASE_TYPES:zl,SEMVER_SPEC_VERSION:Bl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Ql=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var vi=Ql;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=mi,i=vi;e=r.exports={};const a=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.t={};let u=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[d,n]],f=v=>{for(const[_,C]of h)v=v.split(`${_}*`).join(`${_}{0,${C}}`).split(`${_}+`).join(`${_}{1,${C}}`);return v},p=(v,_,C)=>{const E=f(_),T=u++;i(v,T,_),l[v]=T,c[T]=_,a[T]=new RegExp(_,C?"g":void 0),s[T]=new RegExp(E,C?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(na,na.exports);var ho=na.exports;const Vl=Object.freeze({loose:!0}),Yl=Object.freeze({}),Wl=r=>r?typeof r!="object"?Vl:r:Yl;var ja=Wl;const Es=/^[0-9]+$/,cu=(r,e)=>{const t=Es.test(r),n=Es.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Jl=(r,e)=>cu(e,r);var uu={compareIdentifiers:cu,rcompareIdentifiers:Jl};const yo=vi,{MAX_LENGTH:Cs,MAX_SAFE_INTEGER:_o}=mi,{safeRe:ws,t:bs}=ho,Xl=ja,{compareIdentifiers:Lr}=uu;let Zl=class yt{constructor(e,t){if(t=Xl(t),e instanceof yt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Cs)throw new TypeError(`version is longer than ${Cs} characters`);yo("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?ws[bs.LOOSE]:ws[bs.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<_o)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(yo("SemVer.compare",this.version,this.options,e),!(e instanceof yt)){if(typeof e=="string"&&e===this.version)return 0;e=new yt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof yt||(e=new yt(e,this.options)),Lr(this.major,e.major)||Lr(this.minor,e.minor)||Lr(this.patch,e.patch)}comparePre(e){if(e instanceof yt||(e=new yt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(yo("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Lr(n,o)}while(++t)}compareBuild(e){e instanceof yt||(e=new yt(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(yo("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Lr(n,o)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let i=[t,o];n===!1&&(i=[t]),Lr(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Ge=Zl;const Ts=Ge,ed=(r,e,t=!1)=>{if(r instanceof Ts)return r;try{return new Ts(r,e)}catch(n){if(!t)return null;throw n}};var bn=ed;const td=bn,rd=(r,e)=>{const t=td(r,e);return t?t.version:null};var nd=rd;const od=bn,id=(r,e)=>{const t=od(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var ad=id;const Ss=Ge,sd=(r,e,t,n,o)=>{typeof t=="string"&&(o=n,n=t,t=void 0);try{return new Ss(r instanceof Ss?r.version:r,t).inc(e,n,o).version}catch{return null}};var cd=sd;const Is=bn,ud=(r,e)=>{const t=Is(r,null,!0),n=Is(e,null,!0),o=t.compare(n);if(o===0)return null;const i=o>0,a=i?t:n,s=i?n:t,c=!!a.prerelease.length;if(!!s.prerelease.length&&!c)return!s.patch&&!s.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=c?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};var ld=ud;const dd=Ge,hd=(r,e)=>new dd(r,e).major;var fd=hd;const pd=Ge,gd=(r,e)=>new pd(r,e).minor;var md=gd;const vd=Ge,yd=(r,e)=>new vd(r,e).patch;var _d=yd;const Ed=bn,Cd=(r,e)=>{const t=Ed(r,e);return t&&t.prerelease.length?t.prerelease:null};var wd=Cd;const As=Ge,bd=(r,e,t)=>new As(r,t).compare(new As(e,t));var mt=bd;const Td=mt,Sd=(r,e,t)=>Td(e,r,t);var Id=Sd;const Ad=mt,Rd=(r,e)=>Ad(r,e,!0);var kd=Rd;const Rs=Ge,Nd=(r,e,t)=>{const n=new Rs(r,t),o=new Rs(e,t);return n.compare(o)||n.compareBuild(o)};var za=Nd;const Od=za,Pd=(r,e)=>r.sort((t,n)=>Od(t,n,e));var Md=Pd;const xd=za,Ld=(r,e)=>r.sort((t,n)=>xd(n,t,e));var Ud=Ld;const Hd=mt,Dd=(r,e,t)=>Hd(r,e,t)>0;var yi=Dd;const Fd=mt,qd=(r,e,t)=>Fd(r,e,t)<0;var Qa=qd;const Kd=mt,Bd=(r,e,t)=>Kd(r,e,t)===0;var lu=Bd;const $d=mt,Gd=(r,e,t)=>$d(r,e,t)!==0;var du=Gd;const jd=mt,zd=(r,e,t)=>jd(r,e,t)>=0;var Va=zd;const Qd=mt,Vd=(r,e,t)=>Qd(r,e,t)<=0;var Ya=Vd;const Yd=lu,Wd=du,Jd=yi,Xd=Va,Zd=Qa,eh=Ya,th=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Yd(r,t,n);case"!=":return Wd(r,t,n);case">":return Jd(r,t,n);case">=":return Xd(r,t,n);case"<":return Zd(r,t,n);case"<=":return eh(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var hu=th;const rh=Ge,nh=bn,{safeRe:Eo,t:Co}=ho,oh=(r,e)=>{if(r instanceof rh)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Eo[Co.COERCE]);else{let n;for(;(n=Eo[Co.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Eo[Co.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Eo[Co.COERCERTL].lastIndex=-1}return t===null?null:nh(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};var ih=oh,Hi,ks;function ah(){return ks||(ks=1,Hi=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),Hi}var sh=ce;ce.Node=Rr;ce.create=ce;function ce(r){var e=this;if(e instanceof ce||(e=new ce),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(o){e.push(o)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}ce.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};ce.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};ce.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};ce.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)uh(this,arguments[r]);return this.length};ce.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)lh(this,arguments[r]);return this.length};ce.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};ce.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};ce.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};ce.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};ce.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};ce.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};ce.prototype.map=function(r,e){e=e||this;for(var t=new ce,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};ce.prototype.mapReverse=function(r,e){e=e||this;for(var t=new ce,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};ce.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;n!==null;o++)t=r(t,n.value,o),n=n.next;return t};ce.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;n!==null;o--)t=r(t,n.value,o),n=n.prev;return t};ce.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};ce.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};ce.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new ce;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(;o!==null&&n<e;n++,o=o.next)t.push(o.value);return t};ce.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new ce;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,o=this.tail;o!==null&&n>e;n--)o=o.prev;for(;o!==null&&n>r;n--,o=o.prev)t.push(o.value);return t};ce.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(var i=[],n=0;o&&n<e;n++)i.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<t.length;n++)o=ch(this,o,t[n]);return i};ce.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function ch(r,e,t){var n=e===r.head?new Rr(t,null,e,r):new Rr(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function uh(r,e){r.tail=new Rr(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function lh(r,e){r.head=new Rr(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Rr(r,e,t,n){if(!(this instanceof Rr))return new Rr(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{ah()(ce)}catch{}const dh=sh,cr=Symbol("max"),Ut=Symbol("length"),Ur=Symbol("lengthCalculator"),Dn=Symbol("allowStale"),dr=Symbol("maxAge"),Mt=Symbol("dispose"),Ns=Symbol("noDisposeOnSet"),Re=Symbol("lruList"),dt=Symbol("cache"),fu=Symbol("updateAgeOnGet"),Di=()=>1;class hh{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[cr]=e.max||1/0;const t=e.length||Di;if(this[Ur]=typeof t!="function"?Di:t,this[Dn]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[dr]=e.maxAge||0,this[Mt]=e.dispose,this[Ns]=e.noDisposeOnSet||!1,this[fu]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[cr]=e||1/0,kn(this)}get max(){return this[cr]}set allowStale(e){this[Dn]=!!e}get allowStale(){return this[Dn]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[dr]=e,kn(this)}get maxAge(){return this[dr]}set lengthCalculator(e){typeof e!="function"&&(e=Di),e!==this[Ur]&&(this[Ur]=e,this[Ut]=0,this[Re].forEach(t=>{t.length=this[Ur](t.value,t.key),this[Ut]+=t.length})),kn(this)}get lengthCalculator(){return this[Ur]}get length(){return this[Ut]}get itemCount(){return this[Re].length}rforEach(e,t){t=t||this;for(let n=this[Re].tail;n!==null;){const o=n.prev;Os(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[Re].head;n!==null;){const o=n.next;Os(this,e,n,t),n=o}}keys(){return this[Re].toArray().map(e=>e.key)}values(){return this[Re].toArray().map(e=>e.value)}reset(){this[Mt]&&this[Re]&&this[Re].length&&this[Re].forEach(e=>this[Mt](e.key,e.value)),this[dt]=new Map,this[Re]=new dh,this[Ut]=0}dump(){return this[Re].map(e=>zo(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[Re]}set(e,t,n){if(n=n||this[dr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const o=n?Date.now():0,i=this[Ur](t,e);if(this[dt].has(e)){if(i>this[cr])return Vr(this,this[dt].get(e)),!1;const c=this[dt].get(e).value;return this[Mt]&&(this[Ns]||this[Mt](e,c.value)),c.now=o,c.maxAge=n,c.value=t,this[Ut]+=i-c.length,c.length=i,this.get(e),kn(this),!0}const a=new fh(e,t,i,o,n);return a.length>this[cr]?(this[Mt]&&this[Mt](e,t),!1):(this[Ut]+=a.length,this[Re].unshift(a),this[dt].set(e,this[Re].head),kn(this),!0)}has(e){if(!this[dt].has(e))return!1;const t=this[dt].get(e).value;return!zo(this,t)}get(e){return Fi(this,e,!0)}peek(e){return Fi(this,e,!1)}pop(){const e=this[Re].tail;return e?(Vr(this,e),e.value):null}del(e){Vr(this,this[dt].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],i=o.e||0;if(i===0)this.set(o.k,o.v);else{const a=i-t;a>0&&this.set(o.k,o.v,a)}}}prune(){this[dt].forEach((e,t)=>Fi(this,t,!1))}}const Fi=(r,e,t)=>{const n=r[dt].get(e);if(n){const o=n.value;if(zo(r,o)){if(Vr(r,n),!r[Dn])return}else t&&(r[fu]&&(n.value.now=Date.now()),r[Re].unshiftNode(n));return o.value}},zo=(r,e)=>{if(!e||!e.maxAge&&!r[dr])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[dr]&&t>r[dr]},kn=r=>{if(r[Ut]>r[cr])for(let e=r[Re].tail;r[Ut]>r[cr]&&e!==null;){const t=e.prev;Vr(r,e),e=t}},Vr=(r,e)=>{if(e){const t=e.value;r[Mt]&&r[Mt](t.key,t.value),r[Ut]-=t.length,r[dt].delete(t.key),r[Re].removeNode(e)}};class fh{constructor(e,t,n,o,i){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=i||0}}const Os=(r,e,t,n)=>{let o=t.value;zo(r,o)&&(Vr(r,t),r[Dn]||(o=void 0)),o&&e.call(n,o.value,o.key,r)};var ph=hh,qi,Ps;function vt(){if(Ps)return qi;Ps=1;class r{constructor(R,V){if(V=n(V),R instanceof r)return R.loose===!!V.loose&&R.includePrerelease===!!V.includePrerelease?R:new r(R.raw,V);if(R instanceof o)return this.raw=R.value,this.set=[[R]],this.format(),this;if(this.options=V,this.loose=!!V.loose,this.includePrerelease=!!V.includePrerelease,this.raw=R.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(z=>this.parseRange(z.trim())).filter(z=>z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const z=this.set[0];if(this.set=this.set.filter(j=>!p(j[0])),this.set.length===0)this.set=[z];else if(this.set.length>1){for(const j of this.set)if(j.length===1&&v(j[0])){this.set=[j];break}}}this.format()}format(){return this.range=this.set.map(R=>R.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(R){const z=((this.options.includePrerelease&&h)|(this.options.loose&&f))+":"+R,j=t.get(z);if(j)return j;const H=this.options.loose,W=H?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];R=R.replace(W,Mi(this.options.includePrerelease)),i("hyphen replace",R),R=R.replace(s[c.COMPARATORTRIM],l),i("comparator trim",R),R=R.replace(s[c.TILDETRIM],u),i("tilde trim",R),R=R.replace(s[c.CARETTRIM],d),i("caret trim",R);let ae=R.split(" ").map(me=>C(me,this.options)).join(" ").split(/\s+/).map(me=>Pi(me,this.options));H&&(ae=ae.filter(me=>(i("loose invalid filter",me,this.options),!!me.match(s[c.COMPARATORLOOSE])))),i("range list",ae);const Q=new Map,he=ae.map(me=>new o(me,this.options));for(const me of he){if(p(me))return[me];Q.set(me.value,me)}Q.size>1&&Q.has("")&&Q.delete("");const Oe=[...Q.values()];return t.set(z,Oe),Oe}intersects(R,V){if(!(R instanceof r))throw new TypeError("a Range is required");return this.set.some(z=>_(z,V)&&R.set.some(j=>_(j,V)&&z.every(H=>j.every(W=>H.intersects(W,V)))))}test(R){if(!R)return!1;if(typeof R=="string")try{R=new a(R,this.options)}catch{return!1}for(let V=0;V<this.set.length;V++)if(xi(this.set[V],R,this.options))return!0;return!1}}qi=r;const e=ph,t=new e({max:1e3}),n=ja,o=_i(),i=vi,a=Ge,{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:d}=ho,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:f}=mi,p=M=>M.value==="<0.0.0-0",v=M=>M.value==="",_=(M,R)=>{let V=!0;const z=M.slice();let j=z.pop();for(;V&&z.length;)V=z.every(H=>j.intersects(H,R)),j=z.pop();return V},C=(M,R)=>(i("comp",M,R),M=G(M,R),i("caret",M),M=T(M,R),i("tildes",M),M=P(M,R),i("xrange",M),M=Ae(M,R),i("stars",M),M),E=M=>!M||M.toLowerCase()==="x"||M==="*",T=(M,R)=>M.trim().split(/\s+/).map(V=>B(V,R)).join(" "),B=(M,R)=>{const V=R.loose?s[c.TILDELOOSE]:s[c.TILDE];return M.replace(V,(z,j,H,W,ae)=>{i("tilde",M,z,j,H,W,ae);let Q;return E(j)?Q="":E(H)?Q=`>=${j}.0.0 <${+j+1}.0.0-0`:E(W)?Q=`>=${j}.${H}.0 <${j}.${+H+1}.0-0`:ae?(i("replaceTilde pr",ae),Q=`>=${j}.${H}.${W}-${ae} <${j}.${+H+1}.0-0`):Q=`>=${j}.${H}.${W} <${j}.${+H+1}.0-0`,i("tilde return",Q),Q})},G=(M,R)=>M.trim().split(/\s+/).map(V=>U(V,R)).join(" "),U=(M,R)=>{i("caret",M,R);const V=R.loose?s[c.CARETLOOSE]:s[c.CARET],z=R.includePrerelease?"-0":"";return M.replace(V,(j,H,W,ae,Q)=>{i("caret",M,j,H,W,ae,Q);let he;return E(H)?he="":E(W)?he=`>=${H}.0.0${z} <${+H+1}.0.0-0`:E(ae)?H==="0"?he=`>=${H}.${W}.0${z} <${H}.${+W+1}.0-0`:he=`>=${H}.${W}.0${z} <${+H+1}.0.0-0`:Q?(i("replaceCaret pr",Q),H==="0"?W==="0"?he=`>=${H}.${W}.${ae}-${Q} <${H}.${W}.${+ae+1}-0`:he=`>=${H}.${W}.${ae}-${Q} <${H}.${+W+1}.0-0`:he=`>=${H}.${W}.${ae}-${Q} <${+H+1}.0.0-0`):(i("no pr"),H==="0"?W==="0"?he=`>=${H}.${W}.${ae}${z} <${H}.${W}.${+ae+1}-0`:he=`>=${H}.${W}.${ae}${z} <${H}.${+W+1}.0-0`:he=`>=${H}.${W}.${ae} <${+H+1}.0.0-0`),i("caret return",he),he})},P=(M,R)=>(i("replaceXRanges",M,R),M.split(/\s+/).map(V=>q(V,R)).join(" ")),q=(M,R)=>{M=M.trim();const V=R.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return M.replace(V,(z,j,H,W,ae,Q)=>{i("xRange",M,z,j,H,W,ae,Q);const he=E(H),Oe=he||E(W),me=Oe||E(ae),lt=me;return j==="="&&lt&&(j=""),Q=R.includePrerelease?"-0":"",he?j===">"||j==="<"?z="<0.0.0-0":z="*":j&&lt?(Oe&&(W=0),ae=0,j===">"?(j=">=",Oe?(H=+H+1,W=0,ae=0):(W=+W+1,ae=0)):j==="<="&&(j="<",Oe?H=+H+1:W=+W+1),j==="<"&&(Q="-0"),z=`${j+H}.${W}.${ae}${Q}`):Oe?z=`>=${H}.0.0${Q} <${+H+1}.0.0-0`:me&&(z=`>=${H}.${W}.0${Q} <${H}.${+W+1}.0-0`),i("xRange return",z),z})},Ae=(M,R)=>(i("replaceStars",M,R),M.trim().replace(s[c.STAR],"")),Pi=(M,R)=>(i("replaceGTE0",M,R),M.trim().replace(s[R.includePrerelease?c.GTE0PRE:c.GTE0],"")),Mi=M=>(R,V,z,j,H,W,ae,Q,he,Oe,me,lt,Rn)=>(E(z)?V="":E(j)?V=`>=${z}.0.0${M?"-0":""}`:E(H)?V=`>=${z}.${j}.0${M?"-0":""}`:W?V=`>=${V}`:V=`>=${V}${M?"-0":""}`,E(he)?Q="":E(Oe)?Q=`<${+he+1}.0.0-0`:E(me)?Q=`<${he}.${+Oe+1}.0-0`:lt?Q=`<=${he}.${Oe}.${me}-${lt}`:M?Q=`<${he}.${Oe}.${+me+1}-0`:Q=`<=${Q}`,`${V} ${Q}`.trim()),xi=(M,R,V)=>{for(let z=0;z<M.length;z++)if(!M[z].test(R))return!1;if(R.prerelease.length&&!V.includePrerelease){for(let z=0;z<M.length;z++)if(i(M[z].semver),M[z].semver!==o.ANY&&M[z].semver.prerelease.length>0){const j=M[z].semver;if(j.major===R.major&&j.minor===R.minor&&j.patch===R.patch)return!0}return!1}return!0};return qi}var Ki,Ms;function _i(){if(Ms)return Ki;Ms=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],h=u.match(d);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new c(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Ki=e;const t=ja,{safeRe:n,t:o}=ho,i=hu,a=vi,s=Ge,c=vt();return Ki}const gh=vt(),mh=(r,e,t)=>{try{e=new gh(e,t)}catch{return!1}return e.test(r)};var Ei=mh;const vh=vt(),yh=(r,e)=>new vh(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));var _h=yh;const Eh=Ge,Ch=vt(),wh=(r,e,t)=>{let n=null,o=null,i=null;try{i=new Ch(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===-1)&&(n=a,o=new Eh(n,t))}),n};var bh=wh;const Th=Ge,Sh=vt(),Ih=(r,e,t)=>{let n=null,o=null,i=null;try{i=new Sh(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===1)&&(n=a,o=new Th(n,t))}),n};var Ah=Ih;const Bi=Ge,Rh=vt(),xs=yi,kh=(r,e)=>{r=new Rh(r,e);let t=new Bi("0.0.0");if(r.test(t)||(t=new Bi("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){const o=r.set[n];let i=null;o.forEach(a=>{const s=new Bi(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||xs(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||xs(t,i))&&(t=i)}return t&&r.test(t)?t:null};var Nh=kh;const Oh=vt(),Ph=(r,e)=>{try{return new Oh(r,e).range||"*"}catch{return null}};var Mh=Ph;const xh=Ge,pu=_i(),{ANY:Lh}=pu,Uh=vt(),Hh=Ei,Ls=yi,Us=Qa,Dh=Ya,Fh=Va,qh=(r,e,t,n)=>{r=new xh(r,n),e=new Uh(e,n);let o,i,a,s,c;switch(t){case">":o=Ls,i=Dh,a=Us,s=">",c=">=";break;case"<":o=Us,i=Fh,a=Ls,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Hh(r,e,n))return!1;for(let l=0;l<e.set.length;++l){const u=e.set[l];let d=null,h=null;if(u.forEach(f=>{f.semver===Lh&&(f=new pu(">=0.0.0")),d=d||f,h=h||f,o(f.semver,d.semver,n)?d=f:a(f.semver,h.semver,n)&&(h=f)}),d.operator===s||d.operator===c||(!h.operator||h.operator===s)&&i(r,h.semver))return!1;if(h.operator===c&&a(r,h.semver))return!1}return!0};var Wa=qh;const Kh=Wa,Bh=(r,e,t)=>Kh(r,e,">",t);var $h=Bh;const Gh=Wa,jh=(r,e,t)=>Gh(r,e,"<",t);var zh=jh;const Hs=vt(),Qh=(r,e,t)=>(r=new Hs(r,t),e=new Hs(e,t),r.intersects(e,t));var Vh=Qh;const Yh=Ei,Wh=mt;var Jh=(r,e,t)=>{const n=[];let o=null,i=null;const a=r.sort((u,d)=>Wh(u,d,t));for(const u of a)Yh(u,e,t)?(i=u,o||(o=u)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);const s=[];for(const[u,d]of n)u===d?s.push(u):!d&&u===a[0]?s.push("*"):d?u===a[0]?s.push(`<=${d}`):s.push(`${u} - ${d}`):s.push(`>=${u}`);const c=s.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return c.length<l.length?c:e};const Ds=vt(),Ja=_i(),{ANY:$i}=Ja,Nn=Ei,Xa=mt,Xh=(r,e,t={})=>{if(r===e)return!0;r=new Ds(r,t),e=new Ds(e,t);let n=!1;e:for(const o of r.set){for(const i of e.set){const a=ef(o,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Zh=[new Ja(">=0.0.0-0")],Fs=[new Ja(">=0.0.0")],ef=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===$i){if(e.length===1&&e[0].semver===$i)return!0;t.includePrerelease?r=Zh:r=Fs}if(e.length===1&&e[0].semver===$i){if(t.includePrerelease)return!0;e=Fs}const n=new Set;let o,i;for(const f of r)f.operator===">"||f.operator===">="?o=qs(o,f,t):f.operator==="<"||f.operator==="<="?i=Ks(i,f,t):n.add(f.semver);if(n.size>1)return null;let a;if(o&&i){if(a=Xa(o.semver,i.semver,t),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const f of n){if(o&&!Nn(f,String(o),t)||i&&!Nn(f,String(i),t))return null;for(const p of e)if(!Nn(f,String(p),t))return!1;return!0}let s,c,l,u,d=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const f of e){if(u=u||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(h&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===h.major&&f.semver.minor===h.minor&&f.semver.patch===h.patch&&(h=!1),f.operator===">"||f.operator===">="){if(s=qs(o,f,t),s===f&&s!==o)return!1}else if(o.operator===">="&&!Nn(o.semver,String(f),t))return!1}if(i){if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),f.operator==="<"||f.operator==="<="){if(c=Ks(i,f,t),c===f&&c!==i)return!1}else if(i.operator==="<="&&!Nn(i.semver,String(f),t))return!1}if(!f.operator&&(i||o)&&a!==0)return!1}return!(o&&l&&!i&&a!==0||i&&u&&!o&&a!==0||h||d)},qs=(r,e,t)=>{if(!r)return e;const n=Xa(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Ks=(r,e,t)=>{if(!r)return e;const n=Xa(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};var tf=Xh;const Gi=ho,Bs=mi,rf=Ge,$s=uu,nf=bn,of=nd,af=ad,sf=cd,cf=ld,uf=fd,lf=md,df=_d,hf=wd,ff=mt,pf=Id,gf=kd,mf=za,vf=Md,yf=Ud,_f=yi,Ef=Qa,Cf=lu,wf=du,bf=Va,Tf=Ya,Sf=hu,If=ih,Af=_i(),Rf=vt(),kf=Ei,Nf=_h,Of=bh,Pf=Ah,Mf=Nh,xf=Mh,Lf=Wa,Uf=$h,Hf=zh,Df=Vh,Ff=Jh,qf=tf;var Gs={parse:nf,valid:of,clean:af,inc:sf,diff:cf,major:uf,minor:lf,patch:df,prerelease:hf,compare:ff,rcompare:pf,compareLoose:gf,compareBuild:mf,sort:vf,rsort:yf,gt:_f,lt:Ef,eq:Cf,neq:wf,gte:bf,lte:Tf,cmp:Sf,coerce:If,Comparator:Af,Range:Rf,satisfies:kf,toComparators:Nf,maxSatisfying:Of,minSatisfying:Pf,minVersion:Mf,validRange:xf,outside:Lf,gtr:Uf,ltr:Hf,intersects:Df,simplifyRange:Ff,subset:qf,SemVer:rf,re:Gi.re,src:Gi.src,tokens:Gi.t,SEMVER_SPEC_VERSION:Bs.SEMVER_SPEC_VERSION,RELEASE_TYPES:Bs.RELEASE_TYPES,compareIdentifiers:$s.compareIdentifiers,rcompareIdentifiers:$s.rcompareIdentifiers};class Po extends Gs.SemVer{satisfies(e){return Gs.satisfies(this,e)}}let Kf=class{constructor(e){this.domain=e,this.level=process.env.NODE_ENV==="development"?3:1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,n)=>[...t,n,`
2
+ `],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}};class gu extends Kf{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var oa=function(r,e){return oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},oa(r,e)};function Bt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");oa(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fe.apply(this,arguments)};function Bf(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function $f(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function mu(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function kr(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pn(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function rt(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}function Yr(r){return this instanceof Yr?(this.v=r,this):new Yr(r)}function Gf(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(r,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){n[h]&&(o[h]=function(f){return new Promise(function(p,v){i.push([h,f,p,v])>1||s(h,f)})})}function s(h,f){try{c(n[h](f))}catch(p){d(i[0][3],p)}}function c(h){h.value instanceof Yr?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,f){h(f),i.shift(),i.length&&s(i[0][0],i[0][1])}}function jf(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof kr=="function"?kr(r):r[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=r[i]&&function(a){return new Promise(function(s,c){a=r[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function Ce(r){return typeof r=="function"}function Ci(r){var e=function(n){Error.call(n),n.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ji=Ci(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
3
3
  `+t.map(function(n,o){return o+1+") "+n.toString()}).join(`
4
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Rn(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var br=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=jt(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(m){e={error:m}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(ge(u))try{u()}catch(m){i=m instanceof bo?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=jt(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{oa(p)}catch(m){i=i??[],m instanceof bo?i=$e($e([],pr(i)),pr(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new bo(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)oa(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Rn(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Rn(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),hs=br.EMPTY;function fs(r){return r instanceof br||r&&"closed"in r&&ge(r.remove)&&ge(r.add)&&ge(r.unsubscribe)}function oa(r){ge(r)?r():r.unsubscribe()}var ps={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Uo={setTimeout:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=Uo.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,$e([r,e],pr(t))):setTimeout.apply(void 0,$e([r,e],pr(t)))},clearTimeout:function(r){var e=Uo.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function gs(r){Uo.setTimeout(function(){throw r})}function Ho(){}function gn(r){r()}var vi=function(r){_t(e,r);function e(t){var n=r.call(this)||this;return n.isStopped=!1,t?(n.destination=t,fs(t)&&t.add(n)):n.destination=kd,n}return e.create=function(t,n,o){return new kn(t,n,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(br),Id=Function.prototype.bind;function To(r,e){return Id.call(r,e)}var Ad=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){nn(n)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){nn(n)}else nn(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){nn(t)}},r}(),kn=function(r){_t(e,r);function e(t,n,o){var i=r.call(this)||this,a;if(ge(t)||!t)a={next:t??void 0,error:n??void 0,complete:o??void 0};else{var s;i&&ps.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&To(t.next,s),error:t.error&&To(t.error,s),complete:t.complete&&To(t.complete,s)}):a=t}return i.destination=new Ad(a),i}return e}(vi);function nn(r){gs(r)}function Rd(r){throw r}var kd={closed:!0,next:Ho,error:Rd,complete:Ho},yi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _i(r){return r}function Nd(r){return r.length===0?_i:r.length===1?r[0]:function(t){return r.reduce(function(n,o){return o(n)},t)}}var Oe=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var o=this,i=Od(e)?e:new kn(e,t,n);return gn(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var n=this;return t=ia(t),new t(function(o,i){var a=new kn({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[yi]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Nd(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=ia(e),new e(function(n,o){var i;t.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},r.create=function(e){return new r(e)},r}();function ia(r){var e;return(e=r??ps.Promise)!==null&&e!==void 0?e:Promise}function Pd(r){return r&&ge(r.next)&&ge(r.error)&&ge(r.complete)}function Od(r){return r&&r instanceof vi||Pd(r)&&fs(r)}function Md(r){return ge(r==null?void 0:r.lift)}function xe(r){return function(e){if(Md(e))return e.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ne(r,e,t,n,o){return new xd(r,e,t,n,o)}var xd=function(r){_t(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){t.error(u)}}:r.prototype._next,c._error=i?function(l){try{i(l)}catch(u){t.error(u)}finally{this.unsubscribe()}}:r.prototype._error,c._complete=o?function(){try{o()}catch(l){t.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(vi),Ld=Zn(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hr=function(r){_t(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var n=new aa(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ld},e.prototype.next=function(t){var n=this;gn(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=jt(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(t)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var n=this;gn(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var o=n.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;gn(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?hs:(this.currentObservers=null,s.push(t),new br(function(){n.currentObservers=null,Rn(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},e.prototype.asObservable=function(){var t=new Oe;return t.source=this,t},e.create=function(t,n){return new aa(t,n)},e}(Oe),aa=function(r){_t(e,r);function e(t,n){var o=r.call(this)||this;return o.destination=t,o.source=n,o}return e.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},e.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},e.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},e.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:hs},e}(hr),Ud=function(r){_t(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){var t=this,n=t.hasError,o=t.thrownError,i=t._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(hr),ms={now:function(){return(ms.delegate||Date).now()},delegate:void 0},Hd=function(r){_t(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return this},e}(br),Nn={setInterval:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=Nn.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,$e([r,e],pr(t))):setInterval.apply(void 0,$e([r,e],pr(t)))},clearInterval:function(r){var e=Nn.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(r)},delegate:void 0},Dd=function(r){_t(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(t,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),Nn.setInterval(t.flush.bind(t,this),o)},e.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Nn.clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var o=!1,i;try{this.work(t)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Rn(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(Hd),sa=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},r.now=ms.now,r}(),Fd=function(r){_t(e,r);function e(t,n){n===void 0&&(n=sa.now);var o=r.call(this,t,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var o;this._active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,o){for(;t=n.shift();)t.unsubscribe();throw o}},e}(sa),qd=new Fd(Dd),vs=new Oe(function(r){return r.complete()});function Bd(r){return r&&ge(r.schedule)}function Kd(r){return r[r.length-1]}function $d(r){return Bd(Kd(r))?r.pop():void 0}var ys=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function _s(r){return ge(r==null?void 0:r.then)}function Es(r){return ge(r[yi])}function Cs(r){return Symbol.asyncIterator&&ge(r==null?void 0:r[Symbol.asyncIterator])}function ws(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Gd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var bs=Gd();function Ts(r){return ge(r==null?void 0:r[bs])}function Ss(r){return Td(this,arguments,function(){var t,n,o,i;return ds(this,function(a){switch(a.label){case 0:t=r.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,dr(t.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,dr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,dr(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Is(r){return ge(r==null?void 0:r.getReader)}function at(r){if(r instanceof Oe)return r;if(r!=null){if(Es(r))return jd(r);if(ys(r))return zd(r);if(_s(r))return Vd(r);if(Cs(r))return As(r);if(Ts(r))return Yd(r);if(Is(r))return Wd(r)}throw ws(r)}function jd(r){return new Oe(function(e){var t=r[yi]();if(ge(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zd(r){return new Oe(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function Vd(r){return new Oe(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,gs)})}function Yd(r){return new Oe(function(e){var t,n;try{for(var o=jt(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}e.complete()})}function As(r){return new Oe(function(e){Qd(r,e).catch(function(t){return e.error(t)})})}function Wd(r){return As(Ss(r))}function Qd(r,e){var t,n,o,i;return bd(this,void 0,void 0,function(){var a,s;return ds(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=Sd(r),c.label=1;case 1:return[4,t.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function mt(r,e,t,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){t(),o?r.add(this.schedule(null,n)):this.unsubscribe()},n);if(r.add(i),!o)return i}function Rs(r,e){return e===void 0&&(e=0),xe(function(t,n){t.subscribe(Ne(n,function(o){return mt(n,r,function(){return n.next(o)},e)},function(){return mt(n,r,function(){return n.complete()},e)},function(o){return mt(n,r,function(){return n.error(o)},e)}))})}function ks(r,e){return e===void 0&&(e=0),xe(function(t,n){n.add(r.schedule(function(){return t.subscribe(n)},e))})}function Jd(r,e){return at(r).pipe(ks(e),Rs(e))}function Xd(r,e){return at(r).pipe(ks(e),Rs(e))}function Zd(r,e){return new Oe(function(t){var n=0;return e.schedule(function(){n===r.length?t.complete():(t.next(r[n++]),t.closed||this.schedule())})})}function eh(r,e){return new Oe(function(t){var n;return mt(t,e,function(){n=r[bs](),mt(t,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){t.error(s);return}a?t.complete():t.next(i)},0,!0)}),function(){return ge(n==null?void 0:n.return)&&n.return()}})}function Ns(r,e){if(!r)throw new Error("Iterable cannot be null");return new Oe(function(t){mt(t,e,function(){var n=r[Symbol.asyncIterator]();mt(t,e,function(){n.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function th(r,e){return Ns(Ss(r),e)}function rh(r,e){if(r!=null){if(Es(r))return Jd(r,e);if(ys(r))return Zd(r,e);if(_s(r))return Xd(r,e);if(Cs(r))return Ns(r,e);if(Ts(r))return eh(r,e);if(Is(r))return th(r,e)}throw ws(r)}function xt(r,e){return e?rh(r,e):at(r)}function Do(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=$d(r);return xt(r,t)}function nh(r,e){var t=ge(r)?r:function(){return r},n=function(o){return o.error(t())};return new Oe(e?function(o){return e.schedule(n,0,o)}:n)}var eo=Zn(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function mn(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=!1,a;r.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):t?n(e.defaultValue):o(new eo)}})})}function vn(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=new kn({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){t?n(e.defaultValue):o(new eo)}});r.subscribe(i)})}function oh(r){return r instanceof Date&&!isNaN(r)}var ih=Zn(function(r){return function(t){t===void 0&&(t=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function ah(r,e){var t=oh(r)?{first:r}:typeof r=="number"?{each:r}:r,n=t.first,o=t.each,i=t.with,a=i===void 0?sh:i,s=t.scheduler,c=s===void 0?e??qd:s,l=t.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return xe(function(d,h){var f,p,m=null,T=0,R=function(w){p=mt(h,c,function(){try{f.unsubscribe(),at(a({meta:u,lastValue:m,seen:T})).subscribe(h)}catch(k){h.error(k)}},w)};f=d.subscribe(Ne(h,function(w){p==null||p.unsubscribe(),T++,h.next(m=w),o>0&&R(o)},void 0,void 0,function(){p!=null&&p.closed||p==null||p.unsubscribe(),m=null})),!T&&R(n!=null?typeof n=="number"?n:+n-c.now():o)})}function sh(r){throw new ih(r)}function Fo(r,e){return xe(function(t,n){var o=0;t.subscribe(Ne(n,function(i){n.next(r.call(e,i,o++))}))})}function Ps(r,e,t,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},f=function(m){return l<n?p(m):c.push(m)},p=function(m){i&&e.next(m),l++;var T=!1;at(t(m,u++)).subscribe(Ne(e,function(R){o==null||o(R),i?f(R):e.next(R)},function(){T=!0},void 0,function(){if(T)try{l--;for(var R=function(){var w=c.shift();a?mt(e,a,function(){return p(w)}):p(w)};c.length&&l<n;)R();h()}catch(w){e.error(w)}}))};return r.subscribe(Ne(e,f,function(){d=!0,h()})),function(){s==null||s()}}function yn(r,e,t){return t===void 0&&(t=1/0),ge(e)?yn(function(n,o){return Fo(function(i,a){return e(n,i,o,a)})(at(r(n,o)))},t):(typeof e=="number"&&(t=e),xe(function(n,o){return Ps(n,o,r,t)}))}function qo(r,e){return xe(function(t,n){var o=0;t.subscribe(Ne(n,function(i){return r.call(e,i,o++)&&n.next(i)}))})}function Os(r){return xe(function(e,t){var n=null,o=!1,i;n=e.subscribe(Ne(t,void 0,void 0,function(a){i=at(r(a,Os(r)(e))),n?(n.unsubscribe(),n=null,i.subscribe(t)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(t))})}function ch(r,e,t,n,o){return function(i,a){var s=t,c=e,l=0;i.subscribe(Ne(a,function(u){var d=l++;c=s?r(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function lh(r){return xe(function(e,t){var n=!1;e.subscribe(Ne(t,function(o){n=!0,t.next(o)},function(){n||t.next(r),t.complete()}))})}function uh(r){return r===void 0&&(r=dh),xe(function(e,t){var n=!1;e.subscribe(Ne(t,function(o){n=!0,t.next(o)},function(){return n?t.complete():t.error(r())}))})}function dh(){return new eo}function hh(r){return r<=0?function(){return vs}:xe(function(e,t){var n=[];e.subscribe(Ne(t,function(o){n.push(o),r<n.length&&n.shift()},function(){var o,i;try{for(var a=jt(n),s=a.next();!s.done;s=a.next()){var c=s.value;t.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}t.complete()},void 0,function(){n=null}))})}function fh(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?qo(function(o,i){return r(o,i,n)}):_i,hh(1),t?lh(e):uh(function(){return new eo}))}}function ph(r,e,t){return t===void 0&&(t=1/0),xe(function(n,o){var i=e;return Ps(n,o,function(a,s){return r(i,a,s)},t,function(a){i=a},!1,void 0,function(){return i=null})})}function gh(r,e){return xe(ch(r,e,arguments.length>=2,!0))}function on(r,e){return xe(function(t,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};t.subscribe(Ne(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;at(r(c,u)).subscribe(o=Ne(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function mh(r){return xe(function(e,t){at(r).subscribe(Ne(t,function(){return t.complete()},Ho)),!t.closed&&e.subscribe(t)})}function Pn(r,e,t){var n=ge(r)||e||t?{next:r,error:e,complete:t}:r;return n?xe(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ne(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):_i}globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var an=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},ca=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},_n,rr;class vh{get version(){return an(this,_n,"f")}constructor(e){_n.set(this,void 0),rr.set(this,void 0);const{version:t}=e;ca(this,_n,new pn(t),"f"),ca(this,rr,new br,"f")}_addTeardown(e){return an(this,rr,"f").add(e),()=>an(this,rr,"f").remove(e)}dispose(){an(this,rr,"f").unsubscribe()}}_n=new WeakMap,rr=new WeakMap;var lt=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class yh extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class _h{constructor(e){this.logger=new us("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(t=>this.addConfig(t))}addConfig(e){const{module:t,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(t),i&&this._configs.push((a,s)=>i(a[t.name],s)),n&&this._afterConfiguration.push(a=>n(a[t.name])),o&&this._afterInit.push(a=>o(a[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return lt(this,void 0,void 0,function*(){const t=yield this._configure(e),n=yield this._initialize(t,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return lt(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=xt(t).pipe(yn(s=>lt(this,void 0,void 0,function*(){var c;n.debug(`🛠 creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`🛠 created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`🛠 Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),gh((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return mn(a)}_postConfigure(e){return lt(this,void 0,void 0,function*(){const{modules:t,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(t.filter(i=>!!i.postConfigure).map(i=>lt(this,void 0,void 0,function*(){var a;try{yield(a=i.postConfigure)===null||a===void 0?void 0:a.call(i,e),n.debug(`🏗📌 post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`🏗📌 post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`🏗📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("🏗📌 post configure hooks complete")}catch(i){n.warn("🏗📌 post configure hook failed",i)}})}_initialize(e,t){return lt(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new Ud({}),s=u=>i.includes(u),c=(u,d=60)=>{if(!i.includes(u))throw o.error(`🚀⌛️ Cannot not require ${o.formatModuleName(String(u))} since module is not defined!`),Error(`cannot not require [${String(u)}] since module is not defined!`);return a.value[u]?(o.debug(`🚀⌛️ ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`🚀⌛️ Awaiting init ${o.formatModuleName(String(u))}, timeout ${d}s`),vn(a.pipe(qo(h=>!!h[u]),Fo(h=>h[u]),ah({each:d*1e3,with:()=>nh(()=>new yh)}))))};xt(n).pipe(yn(u=>{const d=u.name;return o.debug(`🚀 initializing ${o.formatModuleName(u)}`),xt(Promise.resolve(u.initialize({ref:t,config:e[d],requireInstance:c,hasModule:s}))).pipe(Fo(h=>{var f;if(!(h instanceof vh)&&!(h.version instanceof pn)){o.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{h.version=u.version instanceof pn?u.version:new pn((f=u.version)!==null&&f!==void 0?f:"0.0.0-unknown")}catch{o.error("🚨 failed to set module version")}}return o.debug(`🚀 initialized ${o.formatModuleName(u)}`),[d,h]}))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield mn(a);return Object.seal(l),l})}_postInitialize(e,t){return lt(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this,a=xt(n).pipe(qo(s=>!!s.postInitialize),Pn(s=>o.debug(`🚀📌 post initializing moule ${o.formatModuleName(s)}`)),yn(s=>xt(s.postInitialize({ref:t,modules:e,instance:e[s.name]})).pipe(Pn(()=>{o.debug(`🚀📌 post initialized moule ${o.formatModuleName(s)}`)}),Os(c=>(o.warn(`🚀📌 post initialize failed moule ${o.formatModuleName(s)}`,c),vs)))));if(yield mn(a),i.length)try{o.debug(`🚀📌 post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(s=>Promise.resolve(s(e)))),o.debug("🚀📌 post configure hooks complete")}catch(s){o.warn("🚀📌 post configure hook failed",s)}o.debug(`🎉 Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("🟢 Modules initialized")})}dispose(e,t){return lt(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>lt(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:t,modules:e,instance:e[o.name]})})))})}}var Zt=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},Pt=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},En,Cn,Or,wn,Mr,Bo;class Eh{constructor(e,t){this.__type=e,En.set(this,void 0),Cn.set(this,void 0),Or.set(this,!1),wn.set(this,void 0),Mr.set(this,void 0),Bo.set(this,Date.now()),Zt(this,En,t.detail,"f"),Zt(this,Cn,t.source,"f"),Zt(this,wn,!!t.cancelable,"f"),Zt(this,Mr,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return Pt(this,Mr,"f")&&!Pt(this,Or,"f")}get created(){return Pt(this,Bo,"f")}get cancelable(){return Pt(this,wn,"f")}get canceled(){return Pt(this,Or,"f")}get detail(){return Pt(this,En,"f")}get source(){return Pt(this,Cn,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Zt(this,Or,!0,"f")}stopPropagation(){Zt(this,Mr,!1,"f")}}En=new WeakMap,Cn=new WeakMap,Or=new WeakMap,wn=new WeakMap,Mr=new WeakMap,Bo=new WeakMap;var Ch=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class wh{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var n,o;return Ch(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const i=e;if(!i.dispatcher)i.dispatcher=this;else if(i.dispatcher===this)throw Error("loop detected");for(const a of t)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(a){throw a}})}}var la=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class bh extends Oe{get event$(){return this.__event$.asObservable()}get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new hr,this.__dispatcher=new wh({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:t};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,t){return la(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new Eh(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return la(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const t=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var ua=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Th="event",Sh={name:Th,configure:r=>{const e={},t=r==null?void 0:r.event;return t&&(e.onBubble=n=>ua(void 0,void 0,void 0,function*(){yield t.dispatchEvent(n)})),e},initialize:({config:r})=>new bh(r),postInitialize:({instance:r,modules:e})=>ua(void 0,void 0,void 0,function*(){r.dispatchEvent("onModulesLoaded",{detail:e,source:r})}),dispose({instance:r}){r.dispose()}};class Ms{constructor(){this._operators={}}add(e,t){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,t)}set(e,t){return this._operators[e]=t,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?xt(Object.values(this._operators)).pipe(ph((n,o)=>Promise.resolve(o(n)).then(i=>i??n),e,1),fh()):Do(e)}}const Ih=(r,e)=>t=>{const n=new Headers(t.headers);return n.append(r,e),Object.assign(Object.assign({},t),{headers:n})};class xs extends Ms{setHeader(e,t){const n=Ih(e,t);return this.set("header-"+e,n)}}class Ah extends Ms{}class Rh{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new xs,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const n=typeof t=="string"?i=>i.uri=String(t):t,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class kh extends Error{constructor(e){super(e)}}const Nh=r=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(r);class Ph{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const t=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=t,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:o}),i&&i(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&Nh(e))return{baseUri:e};if(!t)throw new kh(`No registered http client for key [${e}]`);return t}return e}}function Oh(r,e){e===void 0&&(e={});var t=e.selector,n=wd(e,["selector"]);return new Oe(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=Re(Re({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(r,u).then(function(h){t?at(t(h)).subscribe(Ne(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const Mh=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)return Promise.resolve();try{return r.json()}catch{throw Error("failed to parse response")}},xh=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)throw new Error("no content");try{return r.blob()}catch{throw Error("failed to parse response")}};class Lh extends Error{constructor(e,t,n){super(e,n),this.message=e,this.response=t}}var da=globalThis&&globalThis.__rest||function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t};class Uh{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var n,o;this.uri=e,this._request$=new hr,this._response$=new hr,this._abort$=new hr,this.requestHandler=(n=t==null?void 0:t.requestHandler)!==null&&n!==void 0?n:new xs,this.responseHandler=(o=t==null?void 0:t.responseHandler)!==null&&o!==void 0?o:new Ah,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return vn(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var n;const o=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,i=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:Mh,a=new Headers(t==null?void 0:t.headers);return a.append("Accept","application/json"),a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:o,selector:i,headers:a}))}json(e,t){return vn(this.json$(e,t))}blob$(e,t){var n;const o=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:xh;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:o}))}blob(e,t){return vn(this.blob$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,n){return this[e](t,n)}abort(){this._abort$.next()}_fetch$(e,t){const n=t||{},{selector:o}=n,i=da(n,["selector"]);return Do(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(on(s=>this._prepareRequest(s)),Pn(s=>this._request$.next(s)),on(s=>{var{uri:c,path:l}=s,u=da(s,["uri","path"]);return Oh(c,u)}),on(s=>this._prepareResponse(s)),Pn(s=>this._response$.next(s)),on(s=>{if(o)try{return o(s)}catch(c){throw new Lh("failed to execute response selector",s,{cause:c})}return Do(s)}),mh(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const t=this.uri||window.location.origin;return new URL(e,t).href}}class Hh extends Uh{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const n=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,n)}}var ha=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const On={name:"http",configure:()=>new Rh(Hh),initialize:({config:r,hasModule:e,requireInstance:t})=>ha(void 0,void 0,void 0,function*(){const n=new Ph(r);if(e("auth")){const o=yield t("auth");n.defaultHttpRequestHandler.set("MSAL",i=>ha(void 0,void 0,void 0,function*(){const{scopes:a=[]}=i;if(a.length){const s=yield o.acquireToken({scopes:a});if(s){const c=new Headers(i.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},i),{headers:c})}}}))}return n})},Dh=r=>({module:On,configure:r}),Fh=(r,e)=>({module:On,configure:t=>{t.configureClient(r,e)}}),So="default";class qh{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[So]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[So])throw Error("Default AuthClient already provided");this.configureClient(So,e)}}/*! @azure/msal-browser v2.38.2 2023-08-24 *//*! *****************************************************************************
4
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Qo(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Tn=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=kr(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){e={error:v}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(Ce(u))try{u()}catch(v){i=v instanceof ji?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=kr(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{js(p)}catch(v){i=i??[],v instanceof ji?i=rt(rt([],pn(i)),pn(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new ji(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)js(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Qo(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Qo(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),vu=Tn.EMPTY;function yu(r){return r instanceof Tn||r&&"closed"in r&&Ce(r.remove)&&Ce(r.add)&&Ce(r.unsubscribe)}function js(r){Ce(r)?r():r.unsubscribe()}var _u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ia={setTimeout:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=ia.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,rt([r,e],pn(t))):setTimeout.apply(void 0,rt([r,e],pn(t)))},clearTimeout:function(r){var e=ia.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function Eu(r){ia.setTimeout(function(){throw r})}function aa(){}function Mo(r){r()}var Za=function(r){Bt(e,r);function e(t){var n=r.call(this)||this;return n.isStopped=!1,t?(n.destination=t,yu(t)&&t.add(n)):n.destination=Yf,n}return e.create=function(t,n,o){return new Vo(t,n,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Tn),zf=Function.prototype.bind;function zi(r,e){return zf.call(r,e)}var Qf=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){wo(n)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){wo(n)}else wo(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){wo(t)}},r}(),Vo=function(r){Bt(e,r);function e(t,n,o){var i=r.call(this)||this,a;if(Ce(t)||!t)a={next:t??void 0,error:n??void 0,complete:o??void 0};else{var s;i&&_u.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&zi(t.next,s),error:t.error&&zi(t.error,s),complete:t.complete&&zi(t.complete,s)}):a=t}return i.destination=new Qf(a),i}return e}(Za);function wo(r){Eu(r)}function Vf(r){throw r}var Yf={closed:!0,next:aa,error:Vf,complete:aa},es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ts(r){return r}function Wf(r){return r.length===0?ts:r.length===1?r[0]:function(t){return r.reduce(function(n,o){return o(n)},t)}}var $e=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var o=this,i=Xf(e)?e:new Vo(e,t,n);return Mo(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var n=this;return t=zs(t),new t(function(o,i){var a=new Vo({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[es]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wf(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=zs(e),new e(function(n,o){var i;t.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},r.create=function(e){return new r(e)},r}();function zs(r){var e;return(e=r??_u.Promise)!==null&&e!==void 0?e:Promise}function Jf(r){return r&&Ce(r.next)&&Ce(r.error)&&Ce(r.complete)}function Xf(r){return r&&r instanceof Za||Jf(r)&&yu(r)}function Zf(r){return Ce(r==null?void 0:r.lift)}function je(r){return function(e){if(Zf(e))return e.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ke(r,e,t,n,o){return new ep(r,e,t,n,o)}var ep=function(r){Bt(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){t.error(u)}}:r.prototype._next,c._error=i?function(l){try{i(l)}catch(u){t.error(u)}finally{this.unsubscribe()}}:r.prototype._error,c._complete=o?function(){try{o()}catch(l){t.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Za),tp=Ci(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wr=function(r){Bt(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var n=new Qs(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new tp},e.prototype.next=function(t){var n=this;Mo(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=kr(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(t)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var n=this;Mo(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var o=n.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;Mo(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?vu:(this.currentObservers=null,s.push(t),new Tn(function(){n.currentObservers=null,Qo(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},e.prototype.asObservable=function(){var t=new $e;return t.source=this,t},e.create=function(t,n){return new Qs(t,n)},e}($e),Qs=function(r){Bt(e,r);function e(t,n){var o=r.call(this)||this;return o.destination=t,o.source=n,o}return e.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},e.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},e.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},e.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:vu},e}(Wr),rp=function(r){Bt(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){var t=this,n=t.hasError,o=t.thrownError,i=t._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(Wr),Cu={now:function(){return(Cu.delegate||Date).now()},delegate:void 0},np=function(r){Bt(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return this},e}(Tn),Yo={setInterval:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=Yo.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,rt([r,e],pn(t))):setInterval.apply(void 0,rt([r,e],pn(t)))},clearInterval:function(r){var e=Yo.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(r)},delegate:void 0},op=function(r){Bt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(t,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),Yo.setInterval(t.flush.bind(t,this),o)},e.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Yo.clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var o=!1,i;try{this.work(t)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qo(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(np),Vs=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},r.now=Cu.now,r}(),ip=function(r){Bt(e,r);function e(t,n){n===void 0&&(n=Vs.now);var o=r.call(this,t,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var o;this._active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,o){for(;t=n.shift();)t.unsubscribe();throw o}},e}(Vs),ap=new ip(op),wu=new $e(function(r){return r.complete()});function sp(r){return r&&Ce(r.schedule)}function cp(r){return r[r.length-1]}function up(r){return sp(cp(r))?r.pop():void 0}var bu=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function Tu(r){return Ce(r==null?void 0:r.then)}function Su(r){return Ce(r[es])}function Iu(r){return Symbol.asyncIterator&&Ce(r==null?void 0:r[Symbol.asyncIterator])}function Au(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function lp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ru=lp();function ku(r){return Ce(r==null?void 0:r[Ru])}function Nu(r){return Gf(this,arguments,function(){var t,n,o,i;return mu(this,function(a){switch(a.label){case 0:t=r.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Yr(t.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Yr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Yr(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Ou(r){return Ce(r==null?void 0:r.getReader)}function Rt(r){if(r instanceof $e)return r;if(r!=null){if(Su(r))return dp(r);if(bu(r))return hp(r);if(Tu(r))return fp(r);if(Iu(r))return Pu(r);if(ku(r))return pp(r);if(Ou(r))return gp(r)}throw Au(r)}function dp(r){return new $e(function(e){var t=r[es]();if(Ce(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hp(r){return new $e(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function fp(r){return new $e(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Eu)})}function pp(r){return new $e(function(e){var t,n;try{for(var o=kr(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}e.complete()})}function Pu(r){return new $e(function(e){mp(r,e).catch(function(t){return e.error(t)})})}function gp(r){return Pu(Nu(r))}function mp(r,e){var t,n,o,i;return $f(this,void 0,void 0,function(){var a,s;return mu(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=jf(r),c.label=1;case 1:return[4,t.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ft(r,e,t,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){t(),o?r.add(this.schedule(null,n)):this.unsubscribe()},n);if(r.add(i),!o)return i}function Mu(r,e){return e===void 0&&(e=0),je(function(t,n){t.subscribe(Ke(n,function(o){return Ft(n,r,function(){return n.next(o)},e)},function(){return Ft(n,r,function(){return n.complete()},e)},function(o){return Ft(n,r,function(){return n.error(o)},e)}))})}function xu(r,e){return e===void 0&&(e=0),je(function(t,n){n.add(r.schedule(function(){return t.subscribe(n)},e))})}function vp(r,e){return Rt(r).pipe(xu(e),Mu(e))}function yp(r,e){return Rt(r).pipe(xu(e),Mu(e))}function _p(r,e){return new $e(function(t){var n=0;return e.schedule(function(){n===r.length?t.complete():(t.next(r[n++]),t.closed||this.schedule())})})}function Ep(r,e){return new $e(function(t){var n;return Ft(t,e,function(){n=r[Ru](),Ft(t,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){t.error(s);return}a?t.complete():t.next(i)},0,!0)}),function(){return Ce(n==null?void 0:n.return)&&n.return()}})}function Lu(r,e){if(!r)throw new Error("Iterable cannot be null");return new $e(function(t){Ft(t,e,function(){var n=r[Symbol.asyncIterator]();Ft(t,e,function(){n.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function Cp(r,e){return Lu(Nu(r),e)}function wp(r,e){if(r!=null){if(Su(r))return vp(r,e);if(bu(r))return _p(r,e);if(Tu(r))return yp(r,e);if(Iu(r))return Lu(r,e);if(ku(r))return Ep(r,e);if(Ou(r))return Cp(r,e)}throw Au(r)}function ur(r,e){return e?wp(r,e):Rt(r)}function sa(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=up(r);return ur(r,t)}function bp(r,e){var t=Ce(r)?r:function(){return r},n=function(o){return o.error(t())};return new $e(e?function(o){return e.schedule(n,0,o)}:n)}var wi=Ci(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function xo(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=!1,a;r.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):t?n(e.defaultValue):o(new wi)}})})}function Lo(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=new Vo({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){t?n(e.defaultValue):o(new wi)}});r.subscribe(i)})}function Tp(r){return r instanceof Date&&!isNaN(r)}var Sp=Ci(function(r){return function(t){t===void 0&&(t=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function Ip(r,e){var t=Tp(r)?{first:r}:typeof r=="number"?{each:r}:r,n=t.first,o=t.each,i=t.with,a=i===void 0?Ap:i,s=t.scheduler,c=s===void 0?e??ap:s,l=t.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return je(function(d,h){var f,p,v=null,_=0,C=function(E){p=Ft(h,c,function(){try{f.unsubscribe(),Rt(a({meta:u,lastValue:v,seen:_})).subscribe(h)}catch(T){h.error(T)}},E)};f=d.subscribe(Ke(h,function(E){p==null||p.unsubscribe(),_++,h.next(v=E),o>0&&C(o)},void 0,void 0,function(){p!=null&&p.closed||p==null||p.unsubscribe(),v=null})),!_&&C(n!=null?typeof n=="number"?n:+n-c.now():o)})}function Ap(r){throw new Sp(r)}function ca(r,e){return je(function(t,n){var o=0;t.subscribe(Ke(n,function(i){n.next(r.call(e,i,o++))}))})}function Uu(r,e,t,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},f=function(v){return l<n?p(v):c.push(v)},p=function(v){i&&e.next(v),l++;var _=!1;Rt(t(v,u++)).subscribe(Ke(e,function(C){o==null||o(C),i?f(C):e.next(C)},function(){_=!0},void 0,function(){if(_)try{l--;for(var C=function(){var E=c.shift();a?Ft(e,a,function(){return p(E)}):p(E)};c.length&&l<n;)C();h()}catch(E){e.error(E)}}))};return r.subscribe(Ke(e,f,function(){d=!0,h()})),function(){s==null||s()}}function Uo(r,e,t){return t===void 0&&(t=1/0),Ce(e)?Uo(function(n,o){return ca(function(i,a){return e(n,i,o,a)})(Rt(r(n,o)))},t):(typeof e=="number"&&(t=e),je(function(n,o){return Uu(n,o,r,t)}))}function Wo(r,e){return je(function(t,n){var o=0;t.subscribe(Ke(n,function(i){return r.call(e,i,o++)&&n.next(i)}))})}function Hu(r){return je(function(e,t){var n=null,o=!1,i;n=e.subscribe(Ke(t,void 0,void 0,function(a){i=Rt(r(a,Hu(r)(e))),n?(n.unsubscribe(),n=null,i.subscribe(t)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(t))})}function Rp(r,e,t,n,o){return function(i,a){var s=t,c=e,l=0;i.subscribe(Ke(a,function(u){var d=l++;c=s?r(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function kp(r){return je(function(e,t){var n=!1;e.subscribe(Ke(t,function(o){n=!0,t.next(o)},function(){n||t.next(r),t.complete()}))})}function Np(r){return r===void 0&&(r=Op),je(function(e,t){var n=!1;e.subscribe(Ke(t,function(o){n=!0,t.next(o)},function(){return n?t.complete():t.error(r())}))})}function Op(){return new wi}function Pp(r){return r<=0?function(){return wu}:je(function(e,t){var n=[];e.subscribe(Ke(t,function(o){n.push(o),r<n.length&&n.shift()},function(){var o,i;try{for(var a=kr(n),s=a.next();!s.done;s=a.next()){var c=s.value;t.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}t.complete()},void 0,function(){n=null}))})}function Mp(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?Wo(function(o,i){return r(o,i,n)}):ts,Pp(1),t?kp(e):Np(function(){return new wi}))}}function xp(r,e,t){return t===void 0&&(t=1/0),je(function(n,o){var i=e;return Uu(n,o,function(a,s){return r(i,a,s)},t,function(a){i=a},!1,void 0,function(){return i=null})})}function Lp(r,e){return je(Rp(r,e,arguments.length>=2,!0))}function bo(r,e){return je(function(t,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};t.subscribe(Ke(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;Rt(r(c,u)).subscribe(o=Ke(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function Up(r){return je(function(e,t){Rt(r).subscribe(Ke(t,function(){return t.complete()},aa)),!t.closed&&e.subscribe(t)})}function Jo(r,e,t){var n=Ce(r)||e||t?{next:r,error:e,complete:t}:r;return n?je(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ke(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):ts}globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var To=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Ys=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},Ho,qr;class Hp{get version(){return To(this,Ho,"f")}constructor(e){Ho.set(this,void 0),qr.set(this,void 0);const{version:t}=e;Ys(this,Ho,new Po(t),"f"),Ys(this,qr,new Tn,"f")}_addTeardown(e){return To(this,qr,"f").add(e),()=>To(this,qr,"f").remove(e)}dispose(){To(this,qr,"f").unsubscribe()}}Ho=new WeakMap,qr=new WeakMap;var Ot=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class Dp extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class Fp{constructor(e){this.logger=new gu("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(t=>this.addConfig(t))}addConfig(e){const{module:t,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(t),i&&this._configs.push((a,s)=>i(a[t.name],s)),n&&this._afterConfiguration.push(a=>n(a[t.name])),o&&this._afterInit.push(a=>o(a[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return Ot(this,void 0,void 0,function*(){const t=yield this._configure(e),n=yield this._initialize(t,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return Ot(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=ur(t).pipe(Uo(s=>Ot(this,void 0,void 0,function*(){var c;n.debug(`🛠 creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`🛠 created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`🛠 Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),Lp((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return xo(a)}_postConfigure(e){return Ot(this,void 0,void 0,function*(){const{modules:t,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(t.filter(i=>!!i.postConfigure).map(i=>Ot(this,void 0,void 0,function*(){var a;try{yield(a=i.postConfigure)===null||a===void 0?void 0:a.call(i,e),n.debug(`🏗📌 post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`🏗📌 post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`🏗📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("🏗📌 post configure hooks complete")}catch(i){n.warn("🏗📌 post configure hook failed",i)}})}_initialize(e,t){return Ot(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new rp({}),s=u=>i.includes(u),c=(u,d=60)=>{if(!i.includes(u))throw o.error(`🚀⌛️ Cannot not require ${o.formatModuleName(String(u))} since module is not defined!`),Error(`cannot not require [${String(u)}] since module is not defined!`);return a.value[u]?(o.debug(`🚀⌛️ ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`🚀⌛️ Awaiting init ${o.formatModuleName(String(u))}, timeout ${d}s`),Lo(a.pipe(Wo(h=>!!h[u]),ca(h=>h[u]),Ip({each:d*1e3,with:()=>bp(()=>new Dp)}))))};ur(n).pipe(Uo(u=>{const d=u.name;return o.debug(`🚀 initializing ${o.formatModuleName(u)}`),ur(Promise.resolve(u.initialize({ref:t,config:e[d],requireInstance:c,hasModule:s}))).pipe(ca(h=>{var f;if(!(h instanceof Hp)&&!(h.version instanceof Po)){o.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{h.version=u.version instanceof Po?u.version:new Po((f=u.version)!==null&&f!==void 0?f:"0.0.0-unknown")}catch{o.error("🚨 failed to set module version")}}return o.debug(`🚀 initialized ${o.formatModuleName(u)}`),[d,h]}))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield xo(a);return Object.seal(l),l})}_postInitialize(e,t){return Ot(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this,a=ur(n).pipe(Wo(s=>!!s.postInitialize),Jo(s=>o.debug(`🚀📌 post initializing moule ${o.formatModuleName(s)}`)),Uo(s=>ur(s.postInitialize({ref:t,modules:e,instance:e[s.name]})).pipe(Jo(()=>{o.debug(`🚀📌 post initialized moule ${o.formatModuleName(s)}`)}),Hu(c=>(o.warn(`🚀📌 post initialize failed moule ${o.formatModuleName(s)}`,c),wu)))));if(yield xo(a),i.length)try{o.debug(`🚀📌 post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(s=>Promise.resolve(s(e)))),o.debug("🚀📌 post configure hooks complete")}catch(s){o.warn("🚀📌 post configure hook failed",s)}o.debug(`🎉 Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("🟢 Modules initialized")})}dispose(e,t){return Ot(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>Ot(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:t,modules:e,instance:e[o.name]})})))})}}var Hr=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},ar=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Do,Fo,Mn,qo,xn,ua;class qp{constructor(e,t){this.__type=e,Do.set(this,void 0),Fo.set(this,void 0),Mn.set(this,!1),qo.set(this,void 0),xn.set(this,void 0),ua.set(this,Date.now()),Hr(this,Do,t.detail,"f"),Hr(this,Fo,t.source,"f"),Hr(this,qo,!!t.cancelable,"f"),Hr(this,xn,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return ar(this,xn,"f")&&!ar(this,Mn,"f")}get created(){return ar(this,ua,"f")}get cancelable(){return ar(this,qo,"f")}get canceled(){return ar(this,Mn,"f")}get detail(){return ar(this,Do,"f")}get source(){return ar(this,Fo,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Hr(this,Mn,!0,"f")}stopPropagation(){Hr(this,xn,!1,"f")}}Do=new WeakMap,Fo=new WeakMap,Mn=new WeakMap,qo=new WeakMap,xn=new WeakMap,ua=new WeakMap;var Kp=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class Bp{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var n,o;return Kp(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const i=e;if(!i.dispatcher)i.dispatcher=this;else if(i.dispatcher===this)throw Error("loop detected");for(const a of t)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(a){throw a}})}}var Ws=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class $p extends $e{get event$(){return this.__event$.asObservable()}get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new Wr,this.__dispatcher=new Bp({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:t};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,t){return Ws(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new qp(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return Ws(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const t=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var Js=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Gp="event",jp={name:Gp,configure:r=>{const e={},t=r==null?void 0:r.event;return t&&(e.onBubble=n=>Js(void 0,void 0,void 0,function*(){yield t.dispatchEvent(n)})),e},initialize:({config:r})=>new $p(r),postInitialize:({instance:r,modules:e})=>Js(void 0,void 0,void 0,function*(){r.dispatchEvent("onModulesLoaded",{detail:e,source:r})}),dispose({instance:r}){r.dispose()}};class Du{constructor(){this._operators={}}add(e,t){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,t)}set(e,t){return this._operators[e]=t,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?ur(Object.values(this._operators)).pipe(xp((n,o)=>Promise.resolve(o(n)).then(i=>i??n),e,1),Mp()):sa(e)}}const zp=(r,e)=>t=>{const n=new Headers(t.headers);return n.append(r,e),Object.assign(Object.assign({},t),{headers:n})};class Fu extends Du{setHeader(e,t){const n=zp(e,t);return this.set("header-"+e,n)}}class Qp extends Du{}class Vp{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new Fu,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const n=typeof t=="string"?i=>i.uri=String(t):t,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class Yp extends Error{constructor(e){super(e)}}const Wp=r=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(r);class Jp{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const t=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=t,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:o}),i&&i(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&Wp(e))return{baseUri:e};if(!t)throw new Yp(`No registered http client for key [${e}]`);return t}return e}}function Xp(r,e){e===void 0&&(e={});var t=e.selector,n=Bf(e,["selector"]);return new $e(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=Fe(Fe({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(r,u).then(function(h){t?Rt(t(h)).subscribe(Ke(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const Zp=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)return Promise.resolve();try{return r.json()}catch{throw Error("failed to parse response")}},eg=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)throw new Error("no content");try{return r.blob()}catch{throw Error("failed to parse response")}};class tg extends Error{constructor(e,t,n){super(e,n),this.message=e,this.response=t}}var Xs=globalThis&&globalThis.__rest||function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t};class rg{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var n,o;this.uri=e,this._request$=new Wr,this._response$=new Wr,this._abort$=new Wr,this.requestHandler=(n=t==null?void 0:t.requestHandler)!==null&&n!==void 0?n:new Fu,this.responseHandler=(o=t==null?void 0:t.responseHandler)!==null&&o!==void 0?o:new Qp,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return Lo(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var n;const o=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,i=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:Zp,a=new Headers(t==null?void 0:t.headers);return a.append("Accept","application/json"),a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:o,selector:i,headers:a}))}json(e,t){return Lo(this.json$(e,t))}blob$(e,t){var n;const o=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:eg;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:o}))}blob(e,t){return Lo(this.blob$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,n){return this[e](t,n)}abort(){this._abort$.next()}_fetch$(e,t){const n=t||{},{selector:o}=n,i=Xs(n,["selector"]);return sa(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(bo(s=>this._prepareRequest(s)),Jo(s=>this._request$.next(s)),bo(s=>{var{uri:c,path:l}=s,u=Xs(s,["uri","path"]);return Xp(c,u)}),bo(s=>this._prepareResponse(s)),Jo(s=>this._response$.next(s)),bo(s=>{if(o)try{return o(s)}catch(c){throw new tg("failed to execute response selector",s,{cause:c})}return sa(s)}),Up(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const t=this.uri||window.location.origin;return new URL(e,t).href}}class ng extends rg{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const n=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,n)}}var Zs=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Xo={name:"http",configure:()=>new Vp(ng),initialize:({config:r,hasModule:e,requireInstance:t})=>Zs(void 0,void 0,void 0,function*(){const n=new Jp(r);if(e("auth")){const o=yield t("auth");n.defaultHttpRequestHandler.set("MSAL",i=>Zs(void 0,void 0,void 0,function*(){const{scopes:a=[]}=i;if(a.length){const s=yield o.acquireToken({scopes:a});if(s){const c=new Headers(i.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},i),{headers:c})}}}))}return n})},og=r=>({module:Xo,configure:r}),ig=(r,e)=>({module:Xo,configure:t=>{t.configureClient(r,e)}}),Qi="default";class ag{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[Qi]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[Qi])throw Error("Default AuthClient already provided");this.configureClient(Qi,e)}}/*! @azure/msal-browser v2.38.2 2023-08-24 *//*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
7
7
  Permission to use, copy, modify, and/or distribute this software for any
@@ -14,7 +14,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
14
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
- ***************************************************************************** */var Ko=function(r,e){return Ko=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Ko(r,e)};function Se(r,e){Ko(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var O=function(){return O=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},O.apply(this,arguments)};function fa(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function y(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function _(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Bh(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function Ei(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(Bh(arguments[e]));return r}/*! @azure/msal-common v13.3.0 2023-08-24 *//*! *****************************************************************************
17
+ ***************************************************************************** */var la=function(r,e){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},la(r,e)};function Le(r,e){la(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var L=function(){return L=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},L.apply(this,arguments)};function ec(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function w(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function b(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function sg(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function rs(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(sg(arguments[e]));return r}/*! @azure/msal-common v13.3.0 2023-08-24 *//*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,13 +27,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var $o=function(r,e){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},$o(r,e)};function Fe(r,e){$o(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var oe=function(){return oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},oe.apply(this,arguments)};function G(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function j(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function to(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v13.3.0 2023-08-24 */var g={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Jr=[g.OPENID_SCOPE,g.PROFILE_SCOPE,g.OFFLINE_ACCESS_SCOPE],pa=to(Jr,[g.EMAIL_SCOPE]),Be;(function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(Be||(Be={}));var ye;(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(ye||(ye={}));var qt;(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(qt||(qt={}));var V;(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(V||(V={}));var or;(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(or||(or={}));var ke={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Hr;(function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(Hr||(Hr={}));var ga={PLAIN:"plain",S256:"S256"},Mn;(function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(Mn||(Mn={}));var xn;(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(xn||(xn={}));var dt;(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(dt||(dt={}));var _e;(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(_e||(_e={}));var L;(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})(L||(L={}));var pt;(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})(pt||(pt={}));var Go="appmetadata",Kh="client_info",Dr="1",Fr={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Ge;(function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(Ge||(Ge={}));var be={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},ae;(function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(ae||(ae={}));var qr={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},ma={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Ln;(function(r){r.username="username",r.password="password"})(Ln||(Ln={}));var ir;(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})(ir||(ir={}));var It;(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(It||(It={}));var Br;(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})(Br||(Br={}));var Rt;(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4",r.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Rt||(Rt={}));var jo;(function(r){r.Jwt="JWT",r.Jwk="JWK",r.Pop="pop"})(jo||(jo={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var sn={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},x=function(r){Fe(e,r);function e(t,n,o){var i=this,a=n?t+": "+n:t;return i=r.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=t||g.EMPTY_STRING,i.errorMessage=n||g.EMPTY_STRING,i.subError=o||g.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(sn.unexpectedError.code,sn.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(sn.postRequestFailed.code,sn.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var Un={createNewGuid:function(){var r="Crypto interface - createNewGuid() has not been implemented";throw x.createUnexpectedError(r)},base64Decode:function(){var r="Crypto interface - base64Decode() has not been implemented";throw x.createUnexpectedError(r)},base64Encode:function(){var r="Crypto interface - base64Encode() has not been implemented";throw x.createUnexpectedError(r)},generatePkceCodes:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - generatePkceCodes() has not been implemented",x.createUnexpectedError(r)})})},getPublicKeyThumbprint:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - getPublicKeyThumbprint() has not been implemented",x.createUnexpectedError(r)})})},removeTokenBindingKey:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - removeTokenBindingKey() has not been implemented",x.createUnexpectedError(r)})})},clearKeystore:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - clearKeystore() has not been implemented",x.createUnexpectedError(r)})})},signJwt:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - signJwt() has not been implemented",x.createUnexpectedError(r)})})},hashString:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Crypto interface - hashString() has not been implemented",x.createUnexpectedError(r)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var C={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},A=function(r){Fe(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(t){return new e(C.clientInfoDecodingError.code,C.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(C.clientInfoEmptyError.code,""+C.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(C.tokenParsingError.code,C.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(C.nullOrEmptyToken.code,C.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(C.endpointResolutionError.code,C.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,n){return new e(C.networkError.code,C.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(C.unableToGetOpenidConfigError.code,C.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(C.hashNotDeserialized.code,C.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,n){return new e(C.invalidStateError.code,C.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(C.stateMismatchError.code,C.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(C.stateNotFoundError.code,C.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(C.nonceMismatchError.code,C.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(C.authTimeNotFoundError.code,C.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(C.maxAgeTranspiredError.code,C.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(C.nonceNotFoundError.code,C.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(C.multipleMatchingTokens.code,C.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(C.multipleMatchingAccounts.code,C.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(C.multipleMatchingAppMetadata.code,C.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(C.tokenRequestCannotBeMade.code,C.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(C.appendEmptyScopeError.code,C.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(C.removeEmptyScopeError.code,C.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(C.appendScopeSetError.code,C.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(C.emptyInputScopeSetError.code,""+C.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(C.DeviceCodePollingCancelled.code,""+C.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(C.DeviceCodeExpired.code,""+C.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(C.DeviceCodeUnknownError.code,""+C.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(C.NoAccountInSilentRequest.code,""+C.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(C.invalidCacheRecord.code,C.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(C.invalidCacheEnvironment.code,C.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(C.noAccountFound.code,C.noAccountFound.desc)},e.createCachePluginError=function(){return new e(C.CachePluginError.code,""+C.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(C.noCryptoObj.code,""+C.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(C.invalidCacheType.code,""+C.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(C.unexpectedAccountType.code,""+C.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(C.unexpectedCredentialType.code,""+C.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(C.invalidAssertion.code,""+C.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(C.invalidClientCredential.code,""+C.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(C.tokenRefreshRequired.code,C.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(C.userTimeoutReached.code,C.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(C.tokenClaimsRequired.code,C.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(C.noAuthorizationCodeFromServer.code,C.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(C.bindingKeyNotRemovedError.code,C.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(C.logoutNotSupported.code,C.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(C.keyIdMissing.code,C.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(C.noNetworkConnectivity.code,C.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(C.userCanceledError.code,C.userCanceledError.desc)},e}(x);/*! @azure/msal-common v13.3.0 2023-08-24 */var I=function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw A.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=t.exec(e);if(!n||n.length<4)throw A.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},r.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(t[o(s)]=o(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var fe;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(fe||(fe={}));var ro=function(){function r(e,t,n){this.level=fe.Info;var o=function(){},i=e||r.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:fe.Info,this.correlationId=i.correlationId||g.EMPTY_STRING,this.packageName=t||g.EMPTY_STRING,this.packageVersion=n||g.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:fe.Info}},r.prototype.clone=function(e,t,n){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=new Date().toUTCString(),o;I.isEmpty(t.correlationId)?I.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+t.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+fe[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:fe.Error,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:fe.Error,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:fe.Warning,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:fe.Warning,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:fe.Info,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:fe.Info,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:fe.Verbose,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:fe.Verbose,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:fe.Trace,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:fe.Trace,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ls="@azure/msal-common",Ci="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var zr;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(zr||(zr={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var $={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},le=function(r){Fe(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e($.redirectUriNotSet.code,$.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e($.postLogoutUriNotSet.code,$.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e($.claimsRequestParsingError.code,$.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e($.authorityUriInsecure.code,$.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e($.urlParseError.code,$.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e($.urlEmptyError.code,$.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e($.emptyScopesError.code,""+$.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e($.clientIdSingleScopeError.code,$.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e($.invalidPrompt.code,$.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e($.invalidClaimsRequest.code,$.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e($.logoutRequestEmptyError.code,$.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e($.tokenRequestEmptyError.code,$.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e($.invalidCodeChallengeMethod.code,$.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e($.invalidCodeChallengeParams.code,$.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e($.invalidCloudDiscoveryMetadata.code,$.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e($.invalidAuthorityMetadata.code,$.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e($.untrustedAuthority.code,$.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e($.invalidAzureCloudInstance.code,$.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e($.missingSshJwk.code,$.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e($.missingSshKid.code,$.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e($.missingNonceAuthenticationHeader.code,$.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,n){return new e($.invalidAuthenticationHeader.code,$.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e($.authorityMismatch.code,$.authorityMismatch.desc)},e}(A);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ae=function(){function r(e){var t=this,n=e?I.trimArrayEntries(to(e)):[],o=n?I.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return t.scopes.add(i)})}return r.fromString=function(e){var t=e||g.EMPTY_STRING,n=t.split(" ");return new r(n)},r.createSearchScopes=function(e){var t=new r(e);return t.containsOnlyOIDCScopes()?t.removeScope(g.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw le.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),n=new r(t);return I.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return t.containsScope(n)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return pa.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){I.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(n){return t.appendScope(n)})}catch(n){throw A.createAppendScopeSetError(n)}},r.prototype.removeScope=function(e){if(I.isEmpty(e))throw A.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;pa.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw A.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(n){return t.add(n.toLowerCase())}),this.scopes.forEach(function(n){return t.add(n.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw A.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=t.size;return i<o+n},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return g.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function Hn(r,e){if(I.isEmpty(r))throw A.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(n){throw A.createClientInfoDecodingError(n.message)}}function ar(r){if(I.isEmpty(r))throw A.createClientInfoDecodingError("Home account ID was empty.");var e=r.split(_e.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?g.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.0 2023-08-24 */var Pe;(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts",r[r.Ciam=3]="Ciam"})(Pe||(Pe={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Te=function(){function r(){}return r.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case dt.ADFS_ACCOUNT_TYPE:return pt.ADFS;case dt.MSAV1_ACCOUNT_TYPE:return pt.MSA;case dt.MSSTS_ACCOUNT_TYPE:return pt.MSSTS;case dt.GENERIC_ACCOUNT_TYPE:return pt.GENERIC;default:throw A.createUnexpectedAccountTypeError()}},r.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},r.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||g.EMPTY_STRING,e.tenantId||g.EMPTY_STRING];return t.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(e,t,n,o,i,a,s,c){var l,u,d,h,f,p,m=new r;m.authorityType=dt.MSSTS_ACCOUNT_TYPE,m.clientInfo=e,m.homeAccountId=t,m.nativeAccountId=c;var T=s||o&&o.getPreferredCache();if(!T)throw A.createInvalidCacheEnvironmentError();if(m.environment=T,m.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||g.EMPTY_STRING,n){m.idTokenClaims=n.claims,m.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||g.EMPTY_STRING;var R=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,w=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;m.username=R||w||g.EMPTY_STRING,m.name=(p=n==null?void 0:n.claims)===null||p===void 0?void 0:p.name}return m.cloudGraphHostName=i,m.msGraphHost=a,m},r.createGenericAccount=function(e,t,n,o,i,a){var s,c,l,u,d=new r;d.authorityType=n&&n.authorityType===Pe.Adfs?dt.ADFS_ACCOUNT_TYPE:dt.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=g.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw A.createInvalidCacheEnvironmentError();return t&&(d.localAccountId=((s=t==null?void 0:t.claims)===null||s===void 0?void 0:s.oid)||((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.sub)||g.EMPTY_STRING,d.username=((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.upn)||g.EMPTY_STRING,d.name=((u=t==null?void 0:t.claims)===null||u===void 0?void 0:u.name)||g.EMPTY_STRING,d.idTokenClaims=t==null?void 0:t.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},r.generateHomeAccountId=function(e,t,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:g.EMPTY_STRING;if(t===Pe.Adfs||t===Pe.Dsts)return s;if(e)try{var c=Hn(e,o);if(!I.isEmpty(c.uid)&&!I.isEmpty(c.utid))return""+c.uid+_e.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},r.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},r.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=t.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var it=function(){function r(e,t){if(I.isEmpty(e))throw A.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){var n=I.decodeAuthToken(e);try{var o=n.JWSPayload,i=t.base64Decode(o);return JSON.parse(i)}catch(a){throw A.createTokenParsingError(a)}},r.checkMaxAge=function(e,t){var n=3e5;if(t===0||Date.now()-n>e+t)throw A.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ue=function(){function r(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(Ls,Ci)}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(i,a){var s=e.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return e.getAccountInfoFromEntity(i)});return o},r.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},r.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new it(n.secret,this.cryptoImpl).claims),t},r.prototype.saveCacheRecord=function(e){return G(this,void 0,void 0,function(){return j(this,function(t){switch(t.label){case 0:if(!e)throw A.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},r.prototype.saveAccessToken=function(e){return G(this,void 0,void 0,function(){var t,n,o,i,a=this;return j(this,function(s){switch(s.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=Ae.fromString(e.target),i=[],n.accessToken.forEach(function(c){if(a.accessTokenKeyMatchesFilter(c,t,!1)){var l=a.getAccessTokenCredential(c);if(l&&a.credentialMatchesFilter(l,t)){var u=Ae.fromString(l.target);u.intersectingScopeSets(o)&&i.push(a.removeAccessToken(c))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var a=t.getAccount(i);a&&(e.homeAccountId&&!t.matchHomeAccountId(a,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(a,e.localAccountId)||e.username&&!t.matchUsername(a,e.username)||e.environment&&!t.matchEnvironment(a,e.environment)||e.realm&&!t.matchRealm(a,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(a,e.nativeAccountId)||o.push(a))}}),o},r.prototype.isAccountKey=function(e,t,n){return!(e.split(_e.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},r.prototype.isCredentialKey=function(e){if(e.split(_e.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(L.ID_TOKEN.toLowerCase())===-1&&t.indexOf(L.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(L.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(L.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(L.REFRESH_TOKEN.toLowerCase())>-1){var n=""+L.REFRESH_TOKEN+_e.CACHE_KEY_SEPARATOR+this.clientId+_e.CACHE_KEY_SEPARATOR,o=""+L.REFRESH_TOKEN+_e.CACHE_KEY_SEPARATOR+Dr+_e.CACHE_KEY_SEPARATOR;if(t.indexOf(n.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},r.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===L.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===ae.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(n.isAppMetadata(a)){var s=n.getAppMetadata(a);s&&(e&&!n.matchEnvironment(s,e)||t&&!n.matchClientId(s,t)||(i[a]=s))}}),i},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var a=t.getAuthorityMetadata(i);a&&a.aliases.indexOf(e)!==-1&&(o=a)}}),o},r.prototype.removeAllAccounts=function(){return G(this,void 0,void 0,function(){var e,t,n=this;return j(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(n.removeAccount(i))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},r.prototype.removeAccount=function(e){return G(this,void 0,void 0,function(){var t;return j(this,function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw A.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},r.prototype.removeAccountContext=function(e){return G(this,void 0,void 0,function(){var t,n,o,i=this;return j(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),o=[],t.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),t.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),t.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},r.prototype.removeAccessToken=function(e){return G(this,void 0,void 0,function(){var t,n,o;return j(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==L.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==ae.POP)return[3,4];if(n=t,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),A.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n)}),!0},r.prototype.readCacheRecord=function(e,t,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),a=this.getIdToken(e,o),s=this.getAccessToken(e,t,o),c=this.getRefreshToken(e,!1,o),l=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new it(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},r.prototype.readAccountFromCache=function(e){var t=Te.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:L.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},o=this.getIdTokensByFilter(n,t),i=o.length;if(i<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(i>1)throw A.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0]},r.prototype.getIdTokensByFilter=function(e,t){var n=this,o=t&&t.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,oe({clientId:n.clientId},e))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,e)&&i.push(s)}}),i},r.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.removeIdToken=function(e){this.removeItem(e)},r.prototype.removeRefreshToken=function(e){this.removeItem(e)},r.prototype.getAccessToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=Ae.createSearchScopes(t.scopes),a=t.authenticationScheme||ae.BEARER,s=a&&a.toLowerCase()!==ae.BEARER.toLowerCase()?L.ACCESS_TOKEN_WITH_AUTH_SCHEME:L.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},l=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];l.forEach(function(h){if(o.accessTokenKeyMatchesFilter(h,c,!0)){var f=o.getAccessTokenCredential(h);f&&o.credentialMatchesFilter(f,c)&&u.push(f)}});var d=u.length;if(d<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(d>1)throw A.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0]},r.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),a=0;a<i.length;a++){if(n&&!o.includes(i[a].toLowerCase()))return!1;if(!n&&o.includes(i[a].toLowerCase()))return!0}return!0},r.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),o=[];return n.accessToken.forEach(function(i){if(t.accessTokenKeyMatchesFilter(i,e,!0)){var a=t.getAccessTokenCredential(i);a&&t.credentialMatchesFilter(a,e)&&o.push(a)}}),o},r.prototype.getRefreshToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?Dr:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:L.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,c=[];s.forEach(function(u){if(o.refreshTokenKeyMatchesFilter(u,a)){var d=o.getRefreshTokenCredential(u);d&&o.credentialMatchesFilter(d,a)&&c.push(d)}});var l=c.length;return l<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])},r.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.familyId&&n.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),o=Object.keys(n).map(function(a){return n[a]}),i=o.length;if(i<1)return null;if(i>1)throw A.createMultipleMatchingAppMetadataInCacheError();return o[0]},r.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Dr)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},r.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var n=e.credentialType!==L.ACCESS_TOKEN&&e.credentialType!==L.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=Ae.fromString(e.target);return o.containsScopeSet(t)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(Go)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(Fr.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return Fr.CACHE_KEY+"-"+this.clientId+"-"+e},r.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},r}(),$h=function(r){Fe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e.prototype.clear=function(){return G(this,void 0,void 0,function(){var t;return j(this,function(n){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",x.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw x.createUnexpectedError(t)},e}(Ue);/*! @azure/msal-common v13.3.0 2023-08-24 */var Gh=300,Us={tokenRenewalOffsetSeconds:Gh,preventCorsPreflight:!1},jh={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:fe.Info,correlationId:g.EMPTY_STRING},zh={claimsBasedCachingEnabled:!0},Vh={sendGetRequestAsync:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",x.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return G(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",x.createUnexpectedError(r)})})}},Yh={sku:g.SKU,version:Ci,cpu:g.EMPTY_STRING,os:g.EMPTY_STRING},Wh={clientSecret:g.EMPTY_STRING,clientAssertion:void 0},Qh={azureCloudInstance:zr.None,tenant:""+g.DEFAULT_COMMON_TENANT},Jh={application:{appName:"",appVersion:""}};function Xh(r){var e=r.authOptions,t=r.systemOptions,n=r.loggerOptions,o=r.cacheOptions,i=r.storageInterface,a=r.networkInterface,s=r.cryptoInterface,c=r.clientCredentials,l=r.libraryInfo,u=r.telemetry,d=r.serverTelemetryManager,h=r.persistencePlugin,f=r.serializableCache,p=oe(oe({},jh),n);return{authOptions:Zh(e),systemOptions:oe(oe({},Us),t),loggerOptions:p,cacheOptions:oe(oe({},zh),o),storageInterface:i||new $h(e.clientId,Un,new ro(p)),networkInterface:a||Vh,cryptoInterface:s||Un,clientCredentials:c||Wh,libraryInfo:oe(oe({},Yh),l),telemetry:oe(oe({},Jh),u),serverTelemetryManager:d||null,persistencePlugin:h||null,serializableCache:f||null}}function Zh(r){return oe({clientCapabilities:[],azureCloudOptions:Qh,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v13.3.0 2023-08-24 */var zt=function(r){Fe(e,r);function e(t,n,o){var i=r.call(this,t,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(x);/*! @azure/msal-common v13.3.0 2023-08-24 */var Dn=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return qr.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var n,o=r.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o);return}throw new zt(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||g.EMPTY_STRING,i.errorMessage,i.subError)}},r.postProcess=function(e,t,n){if(r.checkResponseStatus(n)||r.checkResponseForRetryAfter(n)){var o={throttleTime:r.calculateThrottleTime(parseInt(n.headers[Be.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(r.generateThrottlingStorageKey(t),o)}},r.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(Be.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(t||qr.DEFAULT_THROTTLE_TIME_SECONDS),n+qr.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,n,o){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ef=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,n){return G(this,void 0,void 0,function(){var o,i;return j(this,function(a){switch(a.label){case 0:Dn.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof x?i:A.createNetworkError(t,i);case 4:return Dn.postProcess(this.cacheManager,e,o),[2,o]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qe;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(qe||(qe={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Ot=function(){function r(){}return r.validateRedirectUri=function(e){if(I.isEmpty(e))throw le.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var n in ke)t.push(ke[n]);if(t.indexOf(e)<0)throw le.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw le.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(I.isEmpty(e)||I.isEmpty(t))throw le.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([ga.PLAIN,ga.S256].indexOf(e)<0)throw le.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(n,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(n){var o=n[1];return o!==""}))):{}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Kr=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(V.RESPONSE_TYPE,encodeURIComponent(g.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(V.RESPONSE_TYPE,encodeURIComponent(g.TOKEN_RESPONSE_TYPE+" "+g.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(V.RESPONSE_MODE,encodeURIComponent(e||Mn.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(V.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var n=t?to(e||[],Jr):e||[],o=new Ae(n);this.parameters.set(V.SCOPE,encodeURIComponent(o.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(V.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){Ot.validateRedirectUri(e),this.parameters.set(V.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){Ot.validateRedirectUri(e),this.parameters.set(V.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(V.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Hr.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Hr.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(Be.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(Be.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Hr.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);Ot.validateClaims(n),this.parameters.set(V.CLAIMS,encodeURIComponent(n))},r.prototype.addCorrelationId=function(e){this.parameters.set(V.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(V.X_CLIENT_SKU,e.sku),this.parameters.set(V.X_CLIENT_VER,e.version),e.os&&this.parameters.set(V.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(V.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(V.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(V.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){Ot.validatePrompt(e),this.parameters.set(""+V.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){I.isEmpty(e)||this.parameters.set(V.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(V.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(Ot.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(V.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(V.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw le.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(V.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(V.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(V.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(V.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(V.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){I.isEmpty(e)||this.parameters.set(V.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){I.isEmpty(e)||this.parameters.set(V.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(V.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(V.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(V.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(Kh,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this,n=Ot.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(o){t.parameters.set(o,e[o])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw le.createInvalidClaimsRequestError()}return t&&t.length>0&&(n.hasOwnProperty(or.ACCESS_TOKEN)||(n[or.ACCESS_TOKEN]={}),n[or.ACCESS_TOKEN][or.XMS_CC]={values:t}),JSON.stringify(n)},r.prototype.addUsername=function(e){this.parameters.set(Ln.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(Ln.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){I.isEmpty(e)||(this.parameters.set(V.TOKEN_TYPE,ae.POP),this.parameters.set(V.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){I.isEmpty(e)||(this.parameters.set(V.TOKEN_TYPE,ae.SSH),this.parameters.set(V.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(V.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(V.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(V.X_MS_LIB_CAPABILITY,qr.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(V.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var wi=function(){function r(e,t){this.config=Xh(e),this.logger=new ro(this.config.loggerOptions,Ls,Ci),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ef(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[Be.CONTENT_TYPE]=g.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case qe.HOME_ACCOUNT_ID:try{var n=ar(e.credential);t[Be.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case qe.UPN:t[Be.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,n,o){return G(this,void 0,void 0,function(){var i;return j(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw A.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r.prototype.createTokenQueryParameters=function(e){var t=new Kr;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var bi=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case L.ID_TOKEN:return pt.ID_TOKEN;case L.ACCESS_TOKEN:case L.ACCESS_TOKEN_WITH_AUTH_SCHEME:return pt.ACCESS_TOKEN;case L.REFRESH_TOKEN:return pt.REFRESH_TOKEN;default:throw A.createUnexpectedCredentialTypeError()}},r.generateCredentialCacheKey=function(e,t,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var n=[e,t];return n.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,n,o){var i=e===L.REFRESH_TOKEN&&o||t,a=[e,i,n||g.EMPTY_STRING];return a.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||g.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||g.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==ae.BEARER.toLowerCase()?e.toLowerCase():g.EMPTY_STRING},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ht=function(r){Fe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,n,o,i,a){var s=new e;return s.credentialType=L.ID_TOKEN,s.homeAccountId=t,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===L.ID_TOKEN:!1},e}(bi);/*! @azure/msal-common v13.3.0 2023-08-24 */var je=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var n=Number(e)||0,o=r.nowSeconds()+t;return o>n},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Dt=function(r){Fe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,n,o,i,a,s,c,l,u,d,h,f,p,m,T){var R,w,k=new e;k.homeAccountId=t,k.credentialType=L.ACCESS_TOKEN,k.secret=o;var X=je.nowSeconds();if(k.cachedAt=X.toString(),k.expiresOn=c.toString(),k.extendedExpiresOn=l.toString(),d&&(k.refreshOn=d.toString()),k.environment=n,k.clientId=i,k.realm=a,k.target=s,k.userAssertionHash=f,k.tokenType=I.isEmpty(h)?ae.BEARER:h,m&&(k.requestedClaims=m,k.requestedClaimsHash=T),((R=k.tokenType)===null||R===void 0?void 0:R.toLowerCase())!==ae.BEARER.toLowerCase())switch(k.credentialType=L.ACCESS_TOKEN_WITH_AUTH_SCHEME,k.tokenType){case ae.POP:var Z=it.extractTokenClaims(o,u);if(!(!((w=Z==null?void 0:Z.cnf)===null||w===void 0)&&w.kid))throw A.createTokenClaimsRequiredError();k.keyId=Z.cnf.kid;break;case ae.SSH:k.keyId=p}return k},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===L.ACCESS_TOKEN||t.credentialType===L.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(bi);/*! @azure/msal-common v13.3.0 2023-08-24 */var sr=function(r){Fe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=L.REFRESH_TOKEN,c.environment=n,c.homeAccountId=t,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===L.REFRESH_TOKEN:!1},e}(bi);/*! @azure/msal-common v13.3.0 2023-08-24 */var va=["interaction_required","consent_required","login_required"],tf=["message_only","additional_action","basic_action","user_password_expired","consent_required"],cr={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},Qe=function(r){Fe(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o)||this;return Object.setPrototypeOf(l,e.prototype),l.timestamp=i||g.EMPTY_STRING,l.traceId=a||g.EMPTY_STRING,l.correlationId=s||g.EMPTY_STRING,l.claims=c||g.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return e.isInteractionRequiredError=function(t,n,o){var i=!!t&&va.indexOf(t)>-1,a=!!o&&tf.indexOf(o)>-1,s=!!n&&va.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(cr.noTokensFoundError.code,cr.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(cr.native_account_unavailable.code,cr.native_account_unavailable.desc)},e}(x);/*! @azure/msal-common v13.3.0 2023-08-24 */var $r=function(){function r(e,t,n,o,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var vt=function(){function r(){}return r.setRequestState=function(e,t,n){var o=r.generateLibraryState(e,n);return I.isEmpty(t)?o:""+o+g.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw A.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var o=JSON.stringify(n);return e.base64Encode(o)},r.parseRequestState=function(e,t){if(!e)throw A.createNoCryptoObjectError("parseRequestState");if(I.isEmpty(t))throw A.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(g.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(g.RESOURCE_DELIM):g.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:I.isEmpty(i)?g.EMPTY_STRING:i,libraryState:s}}catch(c){throw A.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ee=function(){function r(e){if(this._urlString=e,I.isEmpty(this._urlString))throw le.createUrlEmptyError();I.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return I.endsWith(t,"?")?t=t.slice(0,-1):I.endsWith(t,"?/")&&(t=t.slice(0,-2)),I.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw le.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw le.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw le.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return I.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),n=t.PathSegments;return e&&n.length!==0&&(n[0]===qt.COMMON||n[0]===qt.ORGANIZATIONS)&&(n[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw le.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!I.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw le.createUrlParseError("Given url string: "+e);return n[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===g.FORWARD_SLASH){var n=new r(t),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):g.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):g.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(I.isEmpty(e))return{};var t=r.parseHash(e),n=I.queryStringToObject(I.isEmpty(t)?e:t);if(!n)throw A.createHashNotDeserializedError(JSON.stringify(n));return n},r.getDeserializedQueryString=function(e){if(I.isEmpty(e))return{};var t=r.parseQueryString(e),n=I.queryStringToObject(I.isEmpty(t)?e:t);if(!n)throw A.createHashNotDeserializedError(JSON.stringify(n));return n},r.hashContainsKnownProperties=function(e){if(I.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var v;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",r.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",r.AcquireTokenFromCache="acquireTokenFromCache",r.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",r.InitializeBaseRequest="initializeBaseRequest",r.InitializeSilentRequest="initializeSilentRequest",r.InitializeClientApplication="initializeClientApplication",r.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",r.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",r.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",r.SilentHandlerLoadFrame="silentHandlerLoadFrame",r.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",r.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",r.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",r.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",r.GetAuthCodeUrl="getAuthCodeUrl",r.HandleCodeResponseFromServer="handleCodeResponseFromServer",r.HandleCodeResponseFromHash="handleCodeResponseFromHash",r.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",r.AuthClientAcquireToken="authClientAcquireToken",r.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",r.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",r.AuthClientCreateQueryString="authClientCreateQueryString",r.PopTokenGenerateCnf="popTokenGenerateCnf",r.PopTokenGenerateKid="popTokenGenerateKid",r.HandleServerTokenResponse="handleServerTokenResponse",r.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",r.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",r.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",r.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",r.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",r.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",r.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",r.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",r.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",r.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",r.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",r.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(v||(v={}));var Fn;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(Fn||(Fn={}));var rf=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var zo;(function(r){r.SW="sw",r.UHW="uhw"})(zo||(zo={}));var gr=function(){function r(e,t){this.cryptoUtils=e,this.performanceClient=t}return r.prototype.generateCnf=function(e){var t,n;return G(this,void 0,void 0,function(){var o,i,a;return j(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.PopTokenGenerateCnf,e.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(v.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},r.prototype.generateKid=function(e){var t;return G(this,void 0,void 0,function(){var n;return j(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:zo.SW}]}})})},r.prototype.signPopToken=function(e,t,n){return G(this,void 0,void 0,function(){return j(this,function(o){return[2,this.signPayload(e,t,n)]})})},r.prototype.signPayload=function(e,t,n,o){return G(this,void 0,void 0,function(){var i,a,s,c,l,u;return j(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new ee(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(oe({at:e,ts:je.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},o),t,n.correlationId)];case 1:return[2,d.sent()]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Vo=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var n=[Go,e,t];return n.join(_e.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,n){var o=new r;return o.clientId=e,o.environment=t,n&&(o.familyId=n),o},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(Go)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var nf=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qn=function(){function r(e,t,n,o,i,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?A.createStateNotFoundError("Cached State"):A.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw A.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Qe.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Qe(e.error||g.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||g.EMPTY_STRING,e.trace_id||g.EMPTY_STRING,e.correlation_id||g.EMPTY_STRING,e.claims||g.EMPTY_STRING):new zt(e.error||g.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&Hn(e.client_info,n)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Qe.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Qe(e.error,e.error_description,e.suberror,e.timestamp||g.EMPTY_STRING,e.trace_id||g.EMPTY_STRING,e.correlation_id||g.EMPTY_STRING,e.claims||g.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new zt(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,n,o,i,a,s,c,l){var u;return G(this,void 0,void 0,function(){var d,h,f,p,m,T,R;return j(this,function(w){switch(w.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(v.HandleServerTokenResponse,e.correlation_id),e.id_token){if(d=new it(e.id_token||g.EMPTY_STRING,this.cryptoObj),i&&!I.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw A.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(h=d.claims.auth_time,!h)throw A.createAuthTimeNotFoundError();it.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=Te.generateHomeAccountId(e.client_info||g.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(f=vt.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,p=this.generateCacheRecord(e,t,n,o,d,a,i),w.label=1;case 1:return w.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new nf(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:w.sent(),w.label=3;case 3:return s&&!c&&p.account&&(T=p.account.generateAccountKey(),R=this.cacheStorage.getAccount(T),!R)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,d,f,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(p)];case 4:return w.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:w.sent(),w.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,d,f,e,l)]}})})},r.prototype.generateCacheRecord=function(e,t,n,o,i,a,s){var c=t.getPreferredCache();if(I.isEmpty(c))throw A.createInvalidCacheEnvironmentError();var l,u;!I.isEmpty(e.id_token)&&i&&(l=Ht.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||g.EMPTY_STRING,this.clientId,i.claims.tid||g.EMPTY_STRING),u=this.generateAccountEntity(e,i,t,s));var d=null;if(!I.isEmpty(e.access_token)){var h=e.scope?Ae.fromString(e.scope):new Ae(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,p=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,T=n+f,R=T+p,w=m&&m>0?n+m:void 0;d=Dt.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||g.EMPTY_STRING,this.clientId,i?i.claims.tid||g.EMPTY_STRING:t.tenant,h.printScopes(),T,R,this.cryptoObj,w,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var k=null;I.isEmpty(e.refresh_token)||(k=sr.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||g.EMPTY_STRING,this.clientId,e.foci,a));var X=null;return I.isEmpty(e.foci)||(X=Vo.createAppMetadataEntity(this.clientId,c,e.foci)),new $r(u,l,d,k,X)},r.prototype.generateAccountEntity=function(e,t,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:g.EMPTY_STRING,s=o?o.msgraph_host:g.EMPTY_STRING;if(i===Pe.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Te.createGenericAccount(this.homeAccountIdentifier,t,n,a,s);if(I.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw A.createClientInfoEmptyError();return e.client_info?Te.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,s):Te.createGenericAccount(this.homeAccountIdentifier,t,n,a,s)},r.generateAuthenticationResult=function(e,t,n,o,i,a,s,c,l){var u,d,h;return G(this,void 0,void 0,function(){var f,p,m,T,R,w,k,X,Z,z,B;return j(this,function(ue){switch(ue.label){case 0:if(f=g.EMPTY_STRING,p=[],m=null,R=g.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==ae.POP)return[3,2];if(w=new gr(e),k=n.accessToken,X=k.secret,Z=k.keyId,!Z)throw A.createKeyIdMissingError();return[4,w.signPopToken(X,Z,i)];case 1:return f=ue.sent(),[3,3];case 2:f=n.accessToken.secret,ue.label=3;case 3:p=Ae.fromString(n.accessToken.target).asArray(),m=new Date(Number(n.accessToken.expiresOn)*1e3),T=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),ue.label=4;case 4:return n.appMetadata&&(R=n.appMetadata.familyId===Dr?Dr:g.EMPTY_STRING),z=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||g.EMPTY_STRING,B=(a==null?void 0:a.claims.tid)||g.EMPTY_STRING,c!=null&&c.spa_accountid&&n.account&&(n.account.nativeAccountId=c==null?void 0:c.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:z,tenantId:B,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:g.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:m,correlationId:i.correlationId,requestId:l||g.EMPTY_STRING,extExpiresOn:T,familyId:R,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||g.EMPTY_STRING,state:s?s.userRequestState:g.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||g.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||g.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Hs=function(r){Fe(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var n,o;return G(this,void 0,void 0,function(){var i;return j(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(v.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=a.sent(),[2,ee.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,n){var o,i,a,s,c,l;return G(this,void 0,void 0,function(){var u,d,h,f,p,m,T=this;return j(this,function(R){switch(R.label){case 0:if(!t||!t.code)throw A.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(v.AuthClientAcquireToken,t.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=je.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(v.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return h=R.sent(),f=(s=h.headers)===null||s===void 0?void 0:s[Be.X_MS_REQUEST_ID],p=(c=h.headers)===null||c===void 0?void 0:c[Be.X_MS_HTTP_VERSION],p&&(u==null||u.addStaticFields({httpVerAuthority:p})),m=new qn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),m.validateTokenResponse(h.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(v.HandleServerTokenResponse,t.correlationId),[2,m.handleServerTokenResponse(h.body,this.authority,d,t,n,void 0,void 0,void 0,f).then(function(w){return u==null||u.endMeasurement({success:!0}),w}).catch(function(w){throw T.logger.verbose("Error in fetching token in ACC",t.correlationId),u==null||u.endMeasurement({errorCode:w.errorCode,subErrorCode:w.subError,success:!1}),w})]}})})},e.prototype.handleFragmentResponse=function(t,n){var o=new qn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new ee(t),a=ee.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw A.createNoAuthCodeInServerResponseError();return oe(oe({},a),{code:a.code})},e.prototype.getLogoutUri=function(t){if(!t)throw le.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(t);return ee.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(t,n){var o,i;return G(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return j(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(v.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=ee.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(c=f.sent(),l=void 0,n.clientInfo)try{u=Hn(n.clientInfo,this.cryptoUtils),l={credential:""+u.uid+_e.CLIENT_INFO_SEPARATOR+u.utid,type:qe.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}return d=this.createTokenRequestHeaders(l||n.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(s,c,d,h)]}})})},e.prototype.createTokenRequestBody=function(t){var n,o;return G(this,void 0,void 0,function(){var i,a,s,c,l,u,d,d,h;return j(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.AuthClientCreateTokenRequestBody,t.correlationId),i=new Kr,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):Ot.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(xn.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==ae.POP?[3,2]:(s=new gr(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(v.PopTokenGenerateCnf,t.correlationId),[4,s.generateCnf(t)]);case 1:return c=f.sent(),i.addPopToken(c.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ae.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw le.createMissingSshJwkError();f.label=3;case 3:if(l=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(l),(!I.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),u=void 0,t.clientInfo)try{d=Hn(t.clientInfo,this.cryptoUtils),u={credential:""+d.uid+_e.CLIENT_INFO_SEPARATOR+d.utid,type:qe.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}else u=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case qe.HOME_ACCOUNT_ID:try{d=ar(u.credential),i.addCcsOid(d)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case qe.UPN:i.addCcsUpn(u.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[V.RETURN_SPA_CODE])&&i.addExtraQueryParameters((h={},h[V.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var n;return G(this,void 0,void 0,function(){var o,i,a,s,c,l,l,l,u,d;return j(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.AuthClientCreateQueryString,t.correlationId),o=new Kr,o.addClientId(this.config.authOptions.clientId),i=to(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==ke.SELECT_ACCOUNT)if(t.sid&&t.prompt===ke.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(s=this.extractAccountSid(t.account),c=this.extractLoginHint(t.account),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(c);try{l=ar(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&t.prompt===ke.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{l=ar(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{l=ar(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!I.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==ae.POP?[3,2]:(u=new gr(this.cryptoUtils),[4,u.generateCnf(t)])):[3,2];case 1:d=h.sent(),o.addPopToken(d.reqCnfString),h.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var n=new Kr;return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(wi);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ds=function(r){Fe(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){var n,o,i,a,s,c,l;return G(this,void 0,void 0,function(){var u,d,h,f,p,m,T=this;return j(this,function(R){switch(R.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.RefreshTokenClientAcquireToken,t.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(v.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),d=je.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return h=R.sent(),f=(a=h.headers)===null||a===void 0?void 0:a[Be.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((s=h.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),f&&(u==null||u.addStaticFields({httpVerToken:f})),p=(c=h.headers)===null||c===void 0?void 0:c[Be.X_MS_REQUEST_ID],m=new qn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),m.validateTokenResponse(h.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(v.HandleServerTokenResponse,t.correlationId),[2,m.handleServerTokenResponse(h.body,this.authority,d,t,void 0,void 0,!0,t.forceCache,p).then(function(w){return u==null||u.endMeasurement({success:!0}),w}).catch(function(w){throw T.logger.verbose("Error in fetching refresh token",t.correlationId),u==null||u.endMeasurement({errorCode:w.errorCode,subErrorCode:w.subError,success:!1}),w})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var n,o,i,a;return G(this,void 0,void 0,function(){var s,c,l;return j(this,function(u){if(!t)throw le.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw A.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(t.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(v.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(d){if(c=d instanceof Qe&&d.errorCode===cr.noTokensFoundError.code,l=d instanceof zt&&d.errorCode===ma.INVALID_GRANT_ERROR&&d.subError===ma.CLIENT_MISMATCH_ERROR,c||l)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(v.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,n){var o,i,a;return G(this,void 0,void 0,function(){var s,c,l;return j(this,function(u){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(v.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(v.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),c=this.cacheManager.getRefreshToken(t.account,n),!c)throw s==null||s.discardMeasurement(),Qe.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),l=oe(oe({},t),{refreshToken:c.secret,authenticationScheme:t.authenticationScheme||ae.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:qe.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(v.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(l)]})})},e.prototype.executeTokenRequest=function(t,n){var o,i,a;return G(this,void 0,void 0,function(){var s,c,l,u,d,h;return j(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(v.RefreshTokenClientExecuteTokenRequest,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(v.RefreshTokenClientExecuteTokenRequest,t.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(v.RefreshTokenClientCreateTokenRequestBody,t.correlationId),c=this.createTokenQueryParameters(t),l=ee.appendQueryString(n.tokenEndpoint,c),[4,this.createTokenRequestBody(t)];case 1:return u=f.sent(),d=this.createTokenRequestHeaders(t.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(l,u,d,h).then(function(p){return s==null||s.endMeasurement({success:!0}),p}).catch(function(p){throw s==null||s.endMeasurement({success:!1}),p})]}})})},e.prototype.createTokenRequestBody=function(t){var n,o,i;return G(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return j(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=t.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(v.BaseClientCreateTokenRequestHeaders,a),c=new Kr,c.addClientId(this.config.authOptions.clientId),c.addScopes(t.scopes),c.addGrantType(xn.REFRESH_TOKEN_GRANT),c.addClientInfo(),c.addLibraryInfo(this.config.libraryInfo),c.addApplicationTelemetry(this.config.telemetry.application),c.addThrottling(),this.serverTelemetryManager&&c.addServerTelemetry(this.serverTelemetryManager),c.addCorrelationId(a),c.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&c.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,c.addClientAssertion(l.assertion),c.addClientAssertionType(l.assertionType)),t.authenticationScheme!==ae.POP?[3,2]:(u=new gr(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.PopTokenGenerateCnf,t.correlationId),[4,u.generateCnf(t)]);case 1:return d=f.sent(),c.addPopToken(d.reqCnfString),[3,3];case 2:if(t.authenticationScheme===ae.SSH)if(t.sshJwk)c.addSshJwk(t.sshJwk);else throw s==null||s.endMeasurement({success:!1}),le.createMissingSshJwkError();f.label=3;case 3:if((!I.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&c.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case qe.HOME_ACCOUNT_ID:try{h=ar(t.ccsCredential.credential),c.addCcsOid(h)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case qe.UPN:c.addCcsUpn(t.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,c.createQueryString()]}})})},e}(wi);/*! @azure/msal-common v13.3.0 2023-08-24 */var of=function(r){Fe(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){return G(this,void 0,void 0,function(){var n,o;return j(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof A&&n.errorCode===C.tokenRefreshRequired.code)return o=new Ds(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var n,o,i,a,s;return G(this,void 0,void 0,function(){var c,l;return j(this,function(u){switch(u.label){case 0:if(!t)throw le.createEmptyTokenRequestError();if(t.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Rt.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),A.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!I.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Rt.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),A.createRefreshRequiredError();if(!t.account)throw A.createNoAccountInSilentRequestError();if(c=t.authority||this.authority.getPreferredCache(),l=this.cacheManager.readCacheRecord(t.account,t,c),l.accessToken){if(je.wasClockTurnedBack(l.accessToken.cachedAt)||je.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Rt.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),A.createRefreshRequiredError();if(l.accessToken.refreshOn&&je.isTokenExpired(l.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Rt.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),A.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Rt.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),A.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,t)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,n){return G(this,void 0,void 0,function(){var o,i;return j(this,function(a){switch(a.label){case 0:if(t.idToken&&(o=new it(t.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw A.createAuthTimeNotFoundError();it.checkMaxAge(i,n.maxAge)}return[4,qn.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(wi);/*! @azure/msal-common v13.3.0 2023-08-24 */function af(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.0 2023-08-24 */var Fs={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},ya=Fs.endpointMetadata,_a=Fs.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var Vr;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(Vr||(Vr={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Yo=function(){function r(){this.expiresAt=je.nowSeconds()+Fr.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=je.nowSeconds()+Fr.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=je.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Fr.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function sf(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function cf(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var lf=function(){function r(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return r.prototype.detectRegion=function(e,t){var n,o,i,a;return G(this,void 0,void 0,function(){var s,c,l,u,d;return j(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.RegionDiscoveryDetectRegion,this.correlationId),s=e,s)return[3,8];c=r.IMDS_OPTIONS,h.label=1;case 1:return h.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(v.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(g.IMDS_VERSION,c)];case 2:return l=h.sent(),l.status===ir.httpSuccess&&(s=l.body,t.region_source=It.IMDS),l.status!==ir.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)]);case 3:return u=h.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(v.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,c)]):(t.region_source=It.FAILED_AUTO_DETECTION,[2,null]);case 4:d=h.sent(),d.status===ir.httpSuccess&&(s=d.body,t.region_source=It.IMDS),h.label=5;case 5:return[3,7];case 6:return h.sent(),t.region_source=It.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=It.ENVIRONMENT_VARIABLE,h.label=9;case 9:return s||(t.region_source=It.FAILED_AUTO_DETECTION),[2,s||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){var n;return G(this,void 0,void 0,function(){return j(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(v.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(g.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,g.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){var t;return G(this,void 0,void 0,function(){var n;return j(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(g.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=o.sent(),n.status===ir.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Yr=function(){function r(e,t,n,o,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new lf(t,this.performanceClient,this.correlationId)}return r.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(g.CIAM_AUTH_URL))return Pe.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case g.ADFS:return Pe.Adfs;case g.DSTS:return Pe.Dsts}return Pe.Default},Object.defineProperty(r.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ee(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw A.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!r.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Pe.Default&&this.protocolMode===Vr.AAD},r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=this,n=e,o=new ee(this.metadata.canonical_authority),i=o.getUrlComponents(),a=i.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(c,l){var u=a[l];if(l===0&&t.canReplaceTenant(i)){var d=new ee(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}c!==u&&(n=n.replace("/"+u+"/","/"+c+"/"))}),this.replaceTenant(n)},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Pe.Adfs||this.authorityType===Pe.Dsts||this.protocolMode===Vr.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){var e,t,n;return G(this,void 0,void 0,function(){var o,i,a,s;return j(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(v.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new Yo,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(v.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(v.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=c.sent(),i!==Ge.CACHE&&a!==Ge.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,n,o,i,a,s;return G(this,void 0,void 0,function(){var c,l;return j(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,Ge.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Ge.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(v.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=u.sent(),c?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(v.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,Ge.NETWORK];case 4:return l=this.getEndpointMetadataFromHardcodedValues(),l&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(v.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,6]:[3,7];case 5:l=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(l,!1),[2,Ge.HARDCODED_VALUES];case 7:throw A.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new ee(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw le.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){var e;return G(this,void 0,void 0,function(){var t,n;return j(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(v.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=o.sent(),[2,af(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in ya?ya[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,n,o,i;return G(this,void 0,void 0,function(){var a,s;return j(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,a?a!==g.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=Br.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,r.replaceWithRegionalInformation(e,a)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(v.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=c.sent(),s)return this.regionDiscoveryMetadata.region_outcome=Br.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,r.replaceWithRegionalInformation(e,s)];this.regionDiscoveryMetadata.region_outcome=Br.AUTO_DETECTION_REQUESTED_FAILED,c.label=2;case 2:return[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return G(this,void 0,void 0,function(){var o,i,a;return j(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(v.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||g.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||g.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||g.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,Ge.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,Ge.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(v.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,Ge.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,Ge.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),le.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Pe.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=r.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),le.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return G(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return j(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(v.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+g.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,n)];case 2:if(i=u.sent(),a=void 0,s=void 0,sf(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(cf(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===g.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=r.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return c=u.sent(),c instanceof x?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
30
+ ***************************************************************************** */var da=function(r,e){return da=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},da(r,e)};function Je(r,e){da(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ue=function(){return ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ue.apply(this,arguments)};function X(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function Z(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function bi(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v13.3.0 2023-08-24 */var g={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},fo=[g.OPENID_SCOPE,g.PROFILE_SCOPE,g.OFFLINE_ACCESS_SCOPE],tc=bi(fo,[g.EMAIL_SCOPE]),et;(function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(et||(et={}));var Te;(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Te||(Te={}));var Tr;(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(Tr||(Tr={}));var ee;(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(ee||(ee={}));var Br;(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(Br||(Br={}));var qe={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Fn;(function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(Fn||(Fn={}));var rc={PLAIN:"plain",S256:"S256"},Zo;(function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(Zo||(Zo={}));var ei;(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(ei||(ei={}));var xt;(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(xt||(xt={}));var Ie;(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(Ie||(Ie={}));var $;(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})($||($={}));var Ht;(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})(Ht||(Ht={}));var ha="appmetadata",cg="client_info",qn="1",Kn={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},nt;(function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(nt||(nt={}));var Pe={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},de;(function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(de||(de={}));var Bn={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},nc={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},ti;(function(r){r.username="username",r.password="password"})(ti||(ti={}));var $r;(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})($r||($r={}));var Yt;(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(Yt||(Yt={}));var $n;(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})($n||($n={}));var Jt;(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4",r.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Jt||(Jt={}));var fa;(function(r){r.Jwt="JWT",r.Jwk="JWK",r.Pop="pop"})(fa||(fa={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var So={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},D=function(r){Je(e,r);function e(t,n,o){var i=this,a=n?t+": "+n:t;return i=r.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=t||g.EMPTY_STRING,i.errorMessage=n||g.EMPTY_STRING,i.subError=o||g.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(So.unexpectedError.code,So.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(So.postRequestFailed.code,So.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var ri={createNewGuid:function(){var r="Crypto interface - createNewGuid() has not been implemented";throw D.createUnexpectedError(r)},base64Decode:function(){var r="Crypto interface - base64Decode() has not been implemented";throw D.createUnexpectedError(r)},base64Encode:function(){var r="Crypto interface - base64Encode() has not been implemented";throw D.createUnexpectedError(r)},generatePkceCodes:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - generatePkceCodes() has not been implemented",D.createUnexpectedError(r)})})},getPublicKeyThumbprint:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - getPublicKeyThumbprint() has not been implemented",D.createUnexpectedError(r)})})},removeTokenBindingKey:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - removeTokenBindingKey() has not been implemented",D.createUnexpectedError(r)})})},clearKeystore:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - clearKeystore() has not been implemented",D.createUnexpectedError(r)})})},signJwt:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - signJwt() has not been implemented",D.createUnexpectedError(r)})})},hashString:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Crypto interface - hashString() has not been implemented",D.createUnexpectedError(r)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var I={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},O=function(r){Je(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(t){return new e(I.clientInfoDecodingError.code,I.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(I.clientInfoEmptyError.code,""+I.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(I.tokenParsingError.code,I.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(I.nullOrEmptyToken.code,I.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(I.endpointResolutionError.code,I.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,n){return new e(I.networkError.code,I.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(I.unableToGetOpenidConfigError.code,I.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(I.hashNotDeserialized.code,I.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,n){return new e(I.invalidStateError.code,I.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(I.stateMismatchError.code,I.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(I.stateNotFoundError.code,I.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(I.nonceMismatchError.code,I.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(I.authTimeNotFoundError.code,I.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(I.maxAgeTranspiredError.code,I.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(I.nonceNotFoundError.code,I.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(I.multipleMatchingTokens.code,I.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(I.multipleMatchingAccounts.code,I.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(I.multipleMatchingAppMetadata.code,I.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(I.tokenRequestCannotBeMade.code,I.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(I.appendEmptyScopeError.code,I.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(I.removeEmptyScopeError.code,I.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(I.appendScopeSetError.code,I.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(I.emptyInputScopeSetError.code,""+I.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(I.DeviceCodePollingCancelled.code,""+I.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(I.DeviceCodeExpired.code,""+I.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(I.DeviceCodeUnknownError.code,""+I.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(I.NoAccountInSilentRequest.code,""+I.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(I.invalidCacheRecord.code,I.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(I.invalidCacheEnvironment.code,I.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(I.noAccountFound.code,I.noAccountFound.desc)},e.createCachePluginError=function(){return new e(I.CachePluginError.code,""+I.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(I.noCryptoObj.code,""+I.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(I.invalidCacheType.code,""+I.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(I.unexpectedAccountType.code,""+I.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(I.unexpectedCredentialType.code,""+I.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(I.invalidAssertion.code,""+I.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(I.invalidClientCredential.code,""+I.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(I.tokenRefreshRequired.code,I.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(I.userTimeoutReached.code,I.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(I.tokenClaimsRequired.code,I.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(I.noAuthorizationCodeFromServer.code,I.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(I.bindingKeyNotRemovedError.code,I.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(I.logoutNotSupported.code,I.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(I.keyIdMissing.code,I.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(I.noNetworkConnectivity.code,I.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(I.userCanceledError.code,I.userCanceledError.desc)},e}(D);/*! @azure/msal-common v13.3.0 2023-08-24 */var N=function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw O.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=t.exec(e);if(!n||n.length<4)throw O.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},r.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(t[o(s)]=o(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ye;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(ye||(ye={}));var Ti=function(){function r(e,t,n){this.level=ye.Info;var o=function(){},i=e||r.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:ye.Info,this.correlationId=i.correlationId||g.EMPTY_STRING,this.packageName=t||g.EMPTY_STRING,this.packageVersion=n||g.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ye.Info}},r.prototype.clone=function(e,t,n){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=new Date().toUTCString(),o;N.isEmpty(t.correlationId)?N.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+t.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+ye[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:ye.Error,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ye.Error,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ye.Warning,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ye.Warning,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:ye.Info,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ye.Info,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ye.Verbose,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ye.Verbose,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ye.Trace,containsPii:!1,correlationId:t||g.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ye.Trace,containsPii:!0,correlationId:t||g.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qu="@azure/msal-common",ns="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var Vn;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(Vn||(Vn={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var J={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},ge=function(r){Je(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(J.redirectUriNotSet.code,J.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(J.postLogoutUriNotSet.code,J.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(J.claimsRequestParsingError.code,J.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(J.authorityUriInsecure.code,J.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(J.urlParseError.code,J.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(J.urlEmptyError.code,J.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(J.emptyScopesError.code,""+J.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(J.clientIdSingleScopeError.code,J.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(J.invalidPrompt.code,J.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(J.invalidClaimsRequest.code,J.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(J.logoutRequestEmptyError.code,J.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(J.tokenRequestEmptyError.code,J.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(J.invalidCodeChallengeMethod.code,J.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(J.invalidCodeChallengeParams.code,J.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(J.invalidCloudDiscoveryMetadata.code,J.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(J.invalidAuthorityMetadata.code,J.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(J.untrustedAuthority.code,J.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(J.invalidAzureCloudInstance.code,J.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(J.missingSshJwk.code,J.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(J.missingSshKid.code,J.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(J.missingNonceAuthenticationHeader.code,J.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,n){return new e(J.invalidAuthenticationHeader.code,J.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e(J.authorityMismatch.code,J.authorityMismatch.desc)},e}(O);/*! @azure/msal-common v13.3.0 2023-08-24 */var De=function(){function r(e){var t=this,n=e?N.trimArrayEntries(bi(e)):[],o=n?N.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return t.scopes.add(i)})}return r.fromString=function(e){var t=e||g.EMPTY_STRING,n=t.split(" ");return new r(n)},r.createSearchScopes=function(e){var t=new r(e);return t.containsOnlyOIDCScopes()?t.removeScope(g.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw ge.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),n=new r(t);return N.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return t.containsScope(n)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return tc.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){N.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(n){return t.appendScope(n)})}catch(n){throw O.createAppendScopeSetError(n)}},r.prototype.removeScope=function(e){if(N.isEmpty(e))throw O.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;tc.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw O.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(n){return t.add(n.toLowerCase())}),this.scopes.forEach(function(n){return t.add(n.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw O.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=t.size;return i<o+n},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return g.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function ni(r,e){if(N.isEmpty(r))throw O.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(n){throw O.createClientInfoDecodingError(n.message)}}function Gr(r){if(N.isEmpty(r))throw O.createClientInfoDecodingError("Home account ID was empty.");var e=r.split(Ie.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?g.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.0 2023-08-24 */var Be;(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts",r[r.Ciam=3]="Ciam"})(Be||(Be={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var xe=function(){function r(){}return r.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case xt.ADFS_ACCOUNT_TYPE:return Ht.ADFS;case xt.MSAV1_ACCOUNT_TYPE:return Ht.MSA;case xt.MSSTS_ACCOUNT_TYPE:return Ht.MSSTS;case xt.GENERIC_ACCOUNT_TYPE:return Ht.GENERIC;default:throw O.createUnexpectedAccountTypeError()}},r.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},r.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||g.EMPTY_STRING,e.tenantId||g.EMPTY_STRING];return t.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(e,t,n,o,i,a,s,c){var l,u,d,h,f,p,v=new r;v.authorityType=xt.MSSTS_ACCOUNT_TYPE,v.clientInfo=e,v.homeAccountId=t,v.nativeAccountId=c;var _=s||o&&o.getPreferredCache();if(!_)throw O.createInvalidCacheEnvironmentError();if(v.environment=_,v.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||g.EMPTY_STRING,n){v.idTokenClaims=n.claims,v.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||g.EMPTY_STRING;var C=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,E=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;v.username=C||E||g.EMPTY_STRING,v.name=(p=n==null?void 0:n.claims)===null||p===void 0?void 0:p.name}return v.cloudGraphHostName=i,v.msGraphHost=a,v},r.createGenericAccount=function(e,t,n,o,i,a){var s,c,l,u,d=new r;d.authorityType=n&&n.authorityType===Be.Adfs?xt.ADFS_ACCOUNT_TYPE:xt.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=g.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw O.createInvalidCacheEnvironmentError();return t&&(d.localAccountId=((s=t==null?void 0:t.claims)===null||s===void 0?void 0:s.oid)||((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.sub)||g.EMPTY_STRING,d.username=((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.upn)||g.EMPTY_STRING,d.name=((u=t==null?void 0:t.claims)===null||u===void 0?void 0:u.name)||g.EMPTY_STRING,d.idTokenClaims=t==null?void 0:t.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},r.generateHomeAccountId=function(e,t,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:g.EMPTY_STRING;if(t===Be.Adfs||t===Be.Dsts)return s;if(e)try{var c=ni(e,o);if(!N.isEmpty(c.uid)&&!N.isEmpty(c.utid))return""+c.uid+Ie.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},r.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},r.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=t.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var At=function(){function r(e,t){if(N.isEmpty(e))throw O.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){var n=N.decodeAuthToken(e);try{var o=n.JWSPayload,i=t.base64Decode(o);return JSON.parse(i)}catch(a){throw O.createTokenParsingError(a)}},r.checkMaxAge=function(e,t){var n=3e5;if(t===0||Date.now()-n>e+t)throw O.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Qe=function(){function r(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(qu,ns)}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(i,a){var s=e.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return e.getAccountInfoFromEntity(i)});return o},r.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},r.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new At(n.secret,this.cryptoImpl).claims),t},r.prototype.saveCacheRecord=function(e){return X(this,void 0,void 0,function(){return Z(this,function(t){switch(t.label){case 0:if(!e)throw O.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},r.prototype.saveAccessToken=function(e){return X(this,void 0,void 0,function(){var t,n,o,i,a=this;return Z(this,function(s){switch(s.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=De.fromString(e.target),i=[],n.accessToken.forEach(function(c){if(a.accessTokenKeyMatchesFilter(c,t,!1)){var l=a.getAccessTokenCredential(c);if(l&&a.credentialMatchesFilter(l,t)){var u=De.fromString(l.target);u.intersectingScopeSets(o)&&i.push(a.removeAccessToken(c))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var a=t.getAccount(i);a&&(e.homeAccountId&&!t.matchHomeAccountId(a,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(a,e.localAccountId)||e.username&&!t.matchUsername(a,e.username)||e.environment&&!t.matchEnvironment(a,e.environment)||e.realm&&!t.matchRealm(a,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(a,e.nativeAccountId)||o.push(a))}}),o},r.prototype.isAccountKey=function(e,t,n){return!(e.split(Ie.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},r.prototype.isCredentialKey=function(e){if(e.split(Ie.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf($.ID_TOKEN.toLowerCase())===-1&&t.indexOf($.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf($.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf($.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf($.REFRESH_TOKEN.toLowerCase())>-1){var n=""+$.REFRESH_TOKEN+Ie.CACHE_KEY_SEPARATOR+this.clientId+Ie.CACHE_KEY_SEPARATOR,o=""+$.REFRESH_TOKEN+Ie.CACHE_KEY_SEPARATOR+qn+Ie.CACHE_KEY_SEPARATOR;if(t.indexOf(n.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},r.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===$.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===de.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(n.isAppMetadata(a)){var s=n.getAppMetadata(a);s&&(e&&!n.matchEnvironment(s,e)||t&&!n.matchClientId(s,t)||(i[a]=s))}}),i},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var a=t.getAuthorityMetadata(i);a&&a.aliases.indexOf(e)!==-1&&(o=a)}}),o},r.prototype.removeAllAccounts=function(){return X(this,void 0,void 0,function(){var e,t,n=this;return Z(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(n.removeAccount(i))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},r.prototype.removeAccount=function(e){return X(this,void 0,void 0,function(){var t;return Z(this,function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw O.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},r.prototype.removeAccountContext=function(e){return X(this,void 0,void 0,function(){var t,n,o,i=this;return Z(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),o=[],t.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),t.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),t.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},r.prototype.removeAccessToken=function(e){return X(this,void 0,void 0,function(){var t,n,o;return Z(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==$.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==de.POP)return[3,4];if(n=t,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),O.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n)}),!0},r.prototype.readCacheRecord=function(e,t,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),a=this.getIdToken(e,o),s=this.getAccessToken(e,t,o),c=this.getRefreshToken(e,!1,o),l=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new At(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},r.prototype.readAccountFromCache=function(e){var t=xe.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:$.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},o=this.getIdTokensByFilter(n,t),i=o.length;if(i<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(i>1)throw O.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0]},r.prototype.getIdTokensByFilter=function(e,t){var n=this,o=t&&t.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,ue({clientId:n.clientId},e))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,e)&&i.push(s)}}),i},r.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.removeIdToken=function(e){this.removeItem(e)},r.prototype.removeRefreshToken=function(e){this.removeItem(e)},r.prototype.getAccessToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=De.createSearchScopes(t.scopes),a=t.authenticationScheme||de.BEARER,s=a&&a.toLowerCase()!==de.BEARER.toLowerCase()?$.ACCESS_TOKEN_WITH_AUTH_SCHEME:$.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},l=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];l.forEach(function(h){if(o.accessTokenKeyMatchesFilter(h,c,!0)){var f=o.getAccessTokenCredential(h);f&&o.credentialMatchesFilter(f,c)&&u.push(f)}});var d=u.length;if(d<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(d>1)throw O.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0]},r.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),a=0;a<i.length;a++){if(n&&!o.includes(i[a].toLowerCase()))return!1;if(!n&&o.includes(i[a].toLowerCase()))return!0}return!0},r.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),o=[];return n.accessToken.forEach(function(i){if(t.accessTokenKeyMatchesFilter(i,e,!0)){var a=t.getAccessTokenCredential(i);a&&t.credentialMatchesFilter(a,e)&&o.push(a)}}),o},r.prototype.getRefreshToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?qn:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:$.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,c=[];s.forEach(function(u){if(o.refreshTokenKeyMatchesFilter(u,a)){var d=o.getRefreshTokenCredential(u);d&&o.credentialMatchesFilter(d,a)&&c.push(d)}});var l=c.length;return l<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])},r.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.familyId&&n.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),o=Object.keys(n).map(function(a){return n[a]}),i=o.length;if(i<1)return null;if(i>1)throw O.createMultipleMatchingAppMetadataInCacheError();return o[0]},r.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===qn)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},r.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var n=e.credentialType!==$.ACCESS_TOKEN&&e.credentialType!==$.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=De.fromString(e.target);return o.containsScopeSet(t)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(ha)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(Kn.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return Kn.CACHE_KEY+"-"+this.clientId+"-"+e},r.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},r}(),ug=function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e.prototype.clear=function(){return X(this,void 0,void 0,function(){var t;return Z(this,function(n){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",D.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(t)},e}(Qe);/*! @azure/msal-common v13.3.0 2023-08-24 */var lg=300,Ku={tokenRenewalOffsetSeconds:lg,preventCorsPreflight:!1},dg={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ye.Info,correlationId:g.EMPTY_STRING},hg={claimsBasedCachingEnabled:!0},fg={sendGetRequestAsync:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",D.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return X(this,void 0,void 0,function(){var r;return Z(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",D.createUnexpectedError(r)})})}},pg={sku:g.SKU,version:ns,cpu:g.EMPTY_STRING,os:g.EMPTY_STRING},gg={clientSecret:g.EMPTY_STRING,clientAssertion:void 0},mg={azureCloudInstance:Vn.None,tenant:""+g.DEFAULT_COMMON_TENANT},vg={application:{appName:"",appVersion:""}};function yg(r){var e=r.authOptions,t=r.systemOptions,n=r.loggerOptions,o=r.cacheOptions,i=r.storageInterface,a=r.networkInterface,s=r.cryptoInterface,c=r.clientCredentials,l=r.libraryInfo,u=r.telemetry,d=r.serverTelemetryManager,h=r.persistencePlugin,f=r.serializableCache,p=ue(ue({},dg),n);return{authOptions:_g(e),systemOptions:ue(ue({},Ku),t),loggerOptions:p,cacheOptions:ue(ue({},hg),o),storageInterface:i||new ug(e.clientId,ri,new Ti(p)),networkInterface:a||fg,cryptoInterface:s||ri,clientCredentials:c||gg,libraryInfo:ue(ue({},pg),l),telemetry:ue(ue({},vg),u),serverTelemetryManager:d||null,persistencePlugin:h||null,serializableCache:f||null}}function _g(r){return ue({clientCapabilities:[],azureCloudOptions:mg,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v13.3.0 2023-08-24 */var Nr=function(r){Je(e,r);function e(t,n,o){var i=r.call(this,t,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(D);/*! @azure/msal-common v13.3.0 2023-08-24 */var oi=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return Bn.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var n,o=r.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o);return}throw new Nr(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||g.EMPTY_STRING,i.errorMessage,i.subError)}},r.postProcess=function(e,t,n){if(r.checkResponseStatus(n)||r.checkResponseForRetryAfter(n)){var o={throttleTime:r.calculateThrottleTime(parseInt(n.headers[et.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(r.generateThrottlingStorageKey(t),o)}},r.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(et.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(t||Bn.DEFAULT_THROTTLE_TIME_SECONDS),n+Bn.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,n,o){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Eg=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,n){return X(this,void 0,void 0,function(){var o,i;return Z(this,function(a){switch(a.label){case 0:oi.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof D?i:O.createNetworkError(t,i);case 4:return oi.postProcess(this.cacheManager,e,o),[2,o]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ze;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(Ze||(Ze={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var sr=function(){function r(){}return r.validateRedirectUri=function(e){if(N.isEmpty(e))throw ge.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var n in qe)t.push(qe[n]);if(t.indexOf(e)<0)throw ge.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw ge.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(N.isEmpty(e)||N.isEmpty(t))throw ge.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([rc.PLAIN,rc.S256].indexOf(e)<0)throw ge.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(n,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(n){var o=n[1];return o!==""}))):{}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Gn=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(ee.RESPONSE_TYPE,encodeURIComponent(g.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(ee.RESPONSE_TYPE,encodeURIComponent(g.TOKEN_RESPONSE_TYPE+" "+g.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(ee.RESPONSE_MODE,encodeURIComponent(e||Zo.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(ee.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var n=t?bi(e||[],fo):e||[],o=new De(n);this.parameters.set(ee.SCOPE,encodeURIComponent(o.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(ee.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){sr.validateRedirectUri(e),this.parameters.set(ee.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){sr.validateRedirectUri(e),this.parameters.set(ee.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(ee.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Fn.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Fn.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(et.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(et.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Fn.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);sr.validateClaims(n),this.parameters.set(ee.CLAIMS,encodeURIComponent(n))},r.prototype.addCorrelationId=function(e){this.parameters.set(ee.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(ee.X_CLIENT_SKU,e.sku),this.parameters.set(ee.X_CLIENT_VER,e.version),e.os&&this.parameters.set(ee.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(ee.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(ee.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(ee.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){sr.validatePrompt(e),this.parameters.set(""+ee.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){N.isEmpty(e)||this.parameters.set(ee.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(ee.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(sr.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(ee.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(ee.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw ge.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(ee.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(ee.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(ee.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(ee.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(ee.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){N.isEmpty(e)||this.parameters.set(ee.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){N.isEmpty(e)||this.parameters.set(ee.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(ee.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(ee.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(ee.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(cg,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this,n=sr.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(o){t.parameters.set(o,e[o])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw ge.createInvalidClaimsRequestError()}return t&&t.length>0&&(n.hasOwnProperty(Br.ACCESS_TOKEN)||(n[Br.ACCESS_TOKEN]={}),n[Br.ACCESS_TOKEN][Br.XMS_CC]={values:t}),JSON.stringify(n)},r.prototype.addUsername=function(e){this.parameters.set(ti.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(ti.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){N.isEmpty(e)||(this.parameters.set(ee.TOKEN_TYPE,de.POP),this.parameters.set(ee.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){N.isEmpty(e)||(this.parameters.set(ee.TOKEN_TYPE,de.SSH),this.parameters.set(ee.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(ee.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(ee.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(ee.X_MS_LIB_CAPABILITY,Bn.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(ee.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var os=function(){function r(e,t){this.config=yg(e),this.logger=new Ti(this.config.loggerOptions,qu,ns),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Eg(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[et.CONTENT_TYPE]=g.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Ze.HOME_ACCOUNT_ID:try{var n=Gr(e.credential);t[et.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Ze.UPN:t[et.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,n,o){return X(this,void 0,void 0,function(){var i;return Z(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw O.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r.prototype.createTokenQueryParameters=function(e){var t=new Gn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var is=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case $.ID_TOKEN:return Ht.ID_TOKEN;case $.ACCESS_TOKEN:case $.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Ht.ACCESS_TOKEN;case $.REFRESH_TOKEN:return Ht.REFRESH_TOKEN;default:throw O.createUnexpectedCredentialTypeError()}},r.generateCredentialCacheKey=function(e,t,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var n=[e,t];return n.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,n,o){var i=e===$.REFRESH_TOKEN&&o||t,a=[e,i,n||g.EMPTY_STRING];return a.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||g.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||g.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==de.BEARER.toLowerCase()?e.toLowerCase():g.EMPTY_STRING},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var hr=function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,n,o,i,a){var s=new e;return s.credentialType=$.ID_TOKEN,s.homeAccountId=t,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===$.ID_TOKEN:!1},e}(is);/*! @azure/msal-common v13.3.0 2023-08-24 */var ct=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var n=Number(e)||0,o=r.nowSeconds()+t;return o>n},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var fr=function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,n,o,i,a,s,c,l,u,d,h,f,p,v,_){var C,E,T=new e;T.homeAccountId=t,T.credentialType=$.ACCESS_TOKEN,T.secret=o;var B=ct.nowSeconds();if(T.cachedAt=B.toString(),T.expiresOn=c.toString(),T.extendedExpiresOn=l.toString(),d&&(T.refreshOn=d.toString()),T.environment=n,T.clientId=i,T.realm=a,T.target=s,T.userAssertionHash=f,T.tokenType=N.isEmpty(h)?de.BEARER:h,v&&(T.requestedClaims=v,T.requestedClaimsHash=_),((C=T.tokenType)===null||C===void 0?void 0:C.toLowerCase())!==de.BEARER.toLowerCase())switch(T.credentialType=$.ACCESS_TOKEN_WITH_AUTH_SCHEME,T.tokenType){case de.POP:var G=At.extractTokenClaims(o,u);if(!(!((E=G==null?void 0:G.cnf)===null||E===void 0)&&E.kid))throw O.createTokenClaimsRequiredError();T.keyId=G.cnf.kid;break;case de.SSH:T.keyId=p}return T},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===$.ACCESS_TOKEN||t.credentialType===$.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(is);/*! @azure/msal-common v13.3.0 2023-08-24 */var jr=function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=$.REFRESH_TOKEN,c.environment=n,c.homeAccountId=t,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===$.REFRESH_TOKEN:!1},e}(is);/*! @azure/msal-common v13.3.0 2023-08-24 */var oc=["interaction_required","consent_required","login_required"],Cg=["message_only","additional_action","basic_action","user_password_expired","consent_required"],zr={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},pt=function(r){Je(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o)||this;return Object.setPrototypeOf(l,e.prototype),l.timestamp=i||g.EMPTY_STRING,l.traceId=a||g.EMPTY_STRING,l.correlationId=s||g.EMPTY_STRING,l.claims=c||g.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return e.isInteractionRequiredError=function(t,n,o){var i=!!t&&oc.indexOf(t)>-1,a=!!o&&Cg.indexOf(o)>-1,s=!!n&&oc.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(zr.noTokensFoundError.code,zr.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(zr.native_account_unavailable.code,zr.native_account_unavailable.desc)},e}(D);/*! @azure/msal-common v13.3.0 2023-08-24 */var jn=function(){function r(e,t,n,o,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qt=function(){function r(){}return r.setRequestState=function(e,t,n){var o=r.generateLibraryState(e,n);return N.isEmpty(t)?o:""+o+g.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw O.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var o=JSON.stringify(n);return e.base64Encode(o)},r.parseRequestState=function(e,t){if(!e)throw O.createNoCryptoObjectError("parseRequestState");if(N.isEmpty(t))throw O.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(g.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(g.RESOURCE_DELIM):g.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:N.isEmpty(i)?g.EMPTY_STRING:i,libraryState:s}}catch(c){throw O.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ie=function(){function r(e){if(this._urlString=e,N.isEmpty(this._urlString))throw ge.createUrlEmptyError();N.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return N.endsWith(t,"?")?t=t.slice(0,-1):N.endsWith(t,"?/")&&(t=t.slice(0,-2)),N.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw ge.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw ge.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw ge.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return N.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),n=t.PathSegments;return e&&n.length!==0&&(n[0]===Tr.COMMON||n[0]===Tr.ORGANIZATIONS)&&(n[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw ge.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!N.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw ge.createUrlParseError("Given url string: "+e);return n[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===g.FORWARD_SLASH){var n=new r(t),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):g.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):g.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(N.isEmpty(e))return{};var t=r.parseHash(e),n=N.queryStringToObject(N.isEmpty(t)?e:t);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},r.getDeserializedQueryString=function(e){if(N.isEmpty(e))return{};var t=r.parseQueryString(e),n=N.queryStringToObject(N.isEmpty(t)?e:t);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},r.hashContainsKnownProperties=function(e){if(N.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var y;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",r.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",r.AcquireTokenFromCache="acquireTokenFromCache",r.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",r.InitializeBaseRequest="initializeBaseRequest",r.InitializeSilentRequest="initializeSilentRequest",r.InitializeClientApplication="initializeClientApplication",r.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",r.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",r.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",r.SilentHandlerLoadFrame="silentHandlerLoadFrame",r.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",r.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",r.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",r.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",r.GetAuthCodeUrl="getAuthCodeUrl",r.HandleCodeResponseFromServer="handleCodeResponseFromServer",r.HandleCodeResponseFromHash="handleCodeResponseFromHash",r.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",r.AuthClientAcquireToken="authClientAcquireToken",r.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",r.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",r.AuthClientCreateQueryString="authClientCreateQueryString",r.PopTokenGenerateCnf="popTokenGenerateCnf",r.PopTokenGenerateKid="popTokenGenerateKid",r.HandleServerTokenResponse="handleServerTokenResponse",r.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",r.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",r.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",r.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",r.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",r.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",r.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",r.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",r.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",r.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",r.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",r.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(y||(y={}));var ii;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(ii||(ii={}));var wg=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var pa;(function(r){r.SW="sw",r.UHW="uhw"})(pa||(pa={}));var gn=function(){function r(e,t){this.cryptoUtils=e,this.performanceClient=t}return r.prototype.generateCnf=function(e){var t,n;return X(this,void 0,void 0,function(){var o,i,a;return Z(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.PopTokenGenerateCnf,e.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(y.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},r.prototype.generateKid=function(e){var t;return X(this,void 0,void 0,function(){var n;return Z(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:pa.SW}]}})})},r.prototype.signPopToken=function(e,t,n){return X(this,void 0,void 0,function(){return Z(this,function(o){return[2,this.signPayload(e,t,n)]})})},r.prototype.signPayload=function(e,t,n,o){return X(this,void 0,void 0,function(){var i,a,s,c,l,u;return Z(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new ie(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(ue({at:e,ts:ct.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},o),t,n.correlationId)];case 1:return[2,d.sent()]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ga=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var n=[ha,e,t];return n.join(Ie.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,n){var o=new r;return o.clientId=e,o.environment=t,n&&(o.familyId=n),o},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(ha)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var bg=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ai=function(){function r(e,t,n,o,i,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?O.createStateNotFoundError("Cached State"):O.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw O.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw pt.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new pt(e.error||g.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||g.EMPTY_STRING,e.trace_id||g.EMPTY_STRING,e.correlation_id||g.EMPTY_STRING,e.claims||g.EMPTY_STRING):new Nr(e.error||g.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&ni(e.client_info,n)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(pt.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new pt(e.error,e.error_description,e.suberror,e.timestamp||g.EMPTY_STRING,e.trace_id||g.EMPTY_STRING,e.correlation_id||g.EMPTY_STRING,e.claims||g.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Nr(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,n,o,i,a,s,c,l){var u;return X(this,void 0,void 0,function(){var d,h,f,p,v,_,C;return Z(this,function(E){switch(E.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(y.HandleServerTokenResponse,e.correlation_id),e.id_token){if(d=new At(e.id_token||g.EMPTY_STRING,this.cryptoObj),i&&!N.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw O.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(h=d.claims.auth_time,!h)throw O.createAuthTimeNotFoundError();At.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=xe.generateHomeAccountId(e.client_info||g.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(f=qt.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,p=this.generateCacheRecord(e,t,n,o,d,a,i),E.label=1;case 1:return E.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),v=new bg(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(v)]):[3,3];case 2:E.sent(),E.label=3;case 3:return s&&!c&&p.account&&(_=p.account.generateAccountKey(),C=this.cacheStorage.getAccount(_),!C)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,d,f,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(p)];case 4:return E.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&v?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(v)]):[3,7];case 6:E.sent(),E.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,d,f,e,l)]}})})},r.prototype.generateCacheRecord=function(e,t,n,o,i,a,s){var c=t.getPreferredCache();if(N.isEmpty(c))throw O.createInvalidCacheEnvironmentError();var l,u;!N.isEmpty(e.id_token)&&i&&(l=hr.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||g.EMPTY_STRING,this.clientId,i.claims.tid||g.EMPTY_STRING),u=this.generateAccountEntity(e,i,t,s));var d=null;if(!N.isEmpty(e.access_token)){var h=e.scope?De.fromString(e.scope):new De(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,p=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,v=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,_=n+f,C=_+p,E=v&&v>0?n+v:void 0;d=fr.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||g.EMPTY_STRING,this.clientId,i?i.claims.tid||g.EMPTY_STRING:t.tenant,h.printScopes(),_,C,this.cryptoObj,E,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var T=null;N.isEmpty(e.refresh_token)||(T=jr.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||g.EMPTY_STRING,this.clientId,e.foci,a));var B=null;return N.isEmpty(e.foci)||(B=ga.createAppMetadataEntity(this.clientId,c,e.foci)),new jn(u,l,d,T,B)},r.prototype.generateAccountEntity=function(e,t,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:g.EMPTY_STRING,s=o?o.msgraph_host:g.EMPTY_STRING;if(i===Be.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),xe.createGenericAccount(this.homeAccountIdentifier,t,n,a,s);if(N.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw O.createClientInfoEmptyError();return e.client_info?xe.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,s):xe.createGenericAccount(this.homeAccountIdentifier,t,n,a,s)},r.generateAuthenticationResult=function(e,t,n,o,i,a,s,c,l){var u,d,h;return X(this,void 0,void 0,function(){var f,p,v,_,C,E,T,B,G,U,P;return Z(this,function(q){switch(q.label){case 0:if(f=g.EMPTY_STRING,p=[],v=null,C=g.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==de.POP)return[3,2];if(E=new gn(e),T=n.accessToken,B=T.secret,G=T.keyId,!G)throw O.createKeyIdMissingError();return[4,E.signPopToken(B,G,i)];case 1:return f=q.sent(),[3,3];case 2:f=n.accessToken.secret,q.label=3;case 3:p=De.fromString(n.accessToken.target).asArray(),v=new Date(Number(n.accessToken.expiresOn)*1e3),_=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),q.label=4;case 4:return n.appMetadata&&(C=n.appMetadata.familyId===qn?qn:g.EMPTY_STRING),U=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||g.EMPTY_STRING,P=(a==null?void 0:a.claims.tid)||g.EMPTY_STRING,c!=null&&c.spa_accountid&&n.account&&(n.account.nativeAccountId=c==null?void 0:c.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:U,tenantId:P,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:g.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:v,correlationId:i.correlationId,requestId:l||g.EMPTY_STRING,extExpiresOn:_,familyId:C,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||g.EMPTY_STRING,state:s?s.userRequestState:g.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||g.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||g.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Bu=function(r){Je(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var n,o;return X(this,void 0,void 0,function(){var i;return Z(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(y.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=a.sent(),[2,ie.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,n){var o,i,a,s,c,l;return X(this,void 0,void 0,function(){var u,d,h,f,p,v,_=this;return Z(this,function(C){switch(C.label){case 0:if(!t||!t.code)throw O.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(y.AuthClientAcquireToken,t.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=ct.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(y.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return h=C.sent(),f=(s=h.headers)===null||s===void 0?void 0:s[et.X_MS_REQUEST_ID],p=(c=h.headers)===null||c===void 0?void 0:c[et.X_MS_HTTP_VERSION],p&&(u==null||u.addStaticFields({httpVerAuthority:p})),v=new ai(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),v.validateTokenResponse(h.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(y.HandleServerTokenResponse,t.correlationId),[2,v.handleServerTokenResponse(h.body,this.authority,d,t,n,void 0,void 0,void 0,f).then(function(E){return u==null||u.endMeasurement({success:!0}),E}).catch(function(E){throw _.logger.verbose("Error in fetching token in ACC",t.correlationId),u==null||u.endMeasurement({errorCode:E.errorCode,subErrorCode:E.subError,success:!1}),E})]}})})},e.prototype.handleFragmentResponse=function(t,n){var o=new ai(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new ie(t),a=ie.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw O.createNoAuthCodeInServerResponseError();return ue(ue({},a),{code:a.code})},e.prototype.getLogoutUri=function(t){if(!t)throw ge.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(t);return ie.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(t,n){var o,i;return X(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return Z(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(y.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=ie.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(c=f.sent(),l=void 0,n.clientInfo)try{u=ni(n.clientInfo,this.cryptoUtils),l={credential:""+u.uid+Ie.CLIENT_INFO_SEPARATOR+u.utid,type:Ze.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}return d=this.createTokenRequestHeaders(l||n.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(s,c,d,h)]}})})},e.prototype.createTokenRequestBody=function(t){var n,o;return X(this,void 0,void 0,function(){var i,a,s,c,l,u,d,d,h;return Z(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.AuthClientCreateTokenRequestBody,t.correlationId),i=new Gn,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):sr.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(ei.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==de.POP?[3,2]:(s=new gn(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(y.PopTokenGenerateCnf,t.correlationId),[4,s.generateCnf(t)]);case 1:return c=f.sent(),i.addPopToken(c.reqCnfString),[3,3];case 2:if(t.authenticationScheme===de.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw ge.createMissingSshJwkError();f.label=3;case 3:if(l=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(l),(!N.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),u=void 0,t.clientInfo)try{d=ni(t.clientInfo,this.cryptoUtils),u={credential:""+d.uid+Ie.CLIENT_INFO_SEPARATOR+d.utid,type:Ze.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}else u=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case Ze.HOME_ACCOUNT_ID:try{d=Gr(u.credential),i.addCcsOid(d)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case Ze.UPN:i.addCcsUpn(u.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[ee.RETURN_SPA_CODE])&&i.addExtraQueryParameters((h={},h[ee.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var n;return X(this,void 0,void 0,function(){var o,i,a,s,c,l,l,l,u,d;return Z(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.AuthClientCreateQueryString,t.correlationId),o=new Gn,o.addClientId(this.config.authOptions.clientId),i=bi(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==qe.SELECT_ACCOUNT)if(t.sid&&t.prompt===qe.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(s=this.extractAccountSid(t.account),c=this.extractLoginHint(t.account),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(c);try{l=Gr(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&t.prompt===qe.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{l=Gr(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{l=Gr(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!N.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==de.POP?[3,2]:(u=new gn(this.cryptoUtils),[4,u.generateCnf(t)])):[3,2];case 1:d=h.sent(),o.addPopToken(d.reqCnfString),h.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var n=new Gn;return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(os);/*! @azure/msal-common v13.3.0 2023-08-24 */var $u=function(r){Je(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){var n,o,i,a,s,c,l;return X(this,void 0,void 0,function(){var u,d,h,f,p,v,_=this;return Z(this,function(C){switch(C.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.RefreshTokenClientAcquireToken,t.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(y.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),d=ct.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return h=C.sent(),f=(a=h.headers)===null||a===void 0?void 0:a[et.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((s=h.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),f&&(u==null||u.addStaticFields({httpVerToken:f})),p=(c=h.headers)===null||c===void 0?void 0:c[et.X_MS_REQUEST_ID],v=new ai(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),v.validateTokenResponse(h.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(y.HandleServerTokenResponse,t.correlationId),[2,v.handleServerTokenResponse(h.body,this.authority,d,t,void 0,void 0,!0,t.forceCache,p).then(function(E){return u==null||u.endMeasurement({success:!0}),E}).catch(function(E){throw _.logger.verbose("Error in fetching refresh token",t.correlationId),u==null||u.endMeasurement({errorCode:E.errorCode,subErrorCode:E.subError,success:!1}),E})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var n,o,i,a;return X(this,void 0,void 0,function(){var s,c,l;return Z(this,function(u){if(!t)throw ge.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw O.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(t.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(y.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(d){if(c=d instanceof pt&&d.errorCode===zr.noTokensFoundError.code,l=d instanceof Nr&&d.errorCode===nc.INVALID_GRANT_ERROR&&d.subError===nc.CLIENT_MISMATCH_ERROR,c||l)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(y.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,n){var o,i,a;return X(this,void 0,void 0,function(){var s,c,l;return Z(this,function(u){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(y.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(y.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),c=this.cacheManager.getRefreshToken(t.account,n),!c)throw s==null||s.discardMeasurement(),pt.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),l=ue(ue({},t),{refreshToken:c.secret,authenticationScheme:t.authenticationScheme||de.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:Ze.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(y.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(l)]})})},e.prototype.executeTokenRequest=function(t,n){var o,i,a;return X(this,void 0,void 0,function(){var s,c,l,u,d,h;return Z(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(y.RefreshTokenClientExecuteTokenRequest,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(y.RefreshTokenClientExecuteTokenRequest,t.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(y.RefreshTokenClientCreateTokenRequestBody,t.correlationId),c=this.createTokenQueryParameters(t),l=ie.appendQueryString(n.tokenEndpoint,c),[4,this.createTokenRequestBody(t)];case 1:return u=f.sent(),d=this.createTokenRequestHeaders(t.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(l,u,d,h).then(function(p){return s==null||s.endMeasurement({success:!0}),p}).catch(function(p){throw s==null||s.endMeasurement({success:!1}),p})]}})})},e.prototype.createTokenRequestBody=function(t){var n,o,i;return X(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return Z(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=t.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(y.BaseClientCreateTokenRequestHeaders,a),c=new Gn,c.addClientId(this.config.authOptions.clientId),c.addScopes(t.scopes),c.addGrantType(ei.REFRESH_TOKEN_GRANT),c.addClientInfo(),c.addLibraryInfo(this.config.libraryInfo),c.addApplicationTelemetry(this.config.telemetry.application),c.addThrottling(),this.serverTelemetryManager&&c.addServerTelemetry(this.serverTelemetryManager),c.addCorrelationId(a),c.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&c.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,c.addClientAssertion(l.assertion),c.addClientAssertionType(l.assertionType)),t.authenticationScheme!==de.POP?[3,2]:(u=new gn(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.PopTokenGenerateCnf,t.correlationId),[4,u.generateCnf(t)]);case 1:return d=f.sent(),c.addPopToken(d.reqCnfString),[3,3];case 2:if(t.authenticationScheme===de.SSH)if(t.sshJwk)c.addSshJwk(t.sshJwk);else throw s==null||s.endMeasurement({success:!1}),ge.createMissingSshJwkError();f.label=3;case 3:if((!N.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&c.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case Ze.HOME_ACCOUNT_ID:try{h=Gr(t.ccsCredential.credential),c.addCcsOid(h)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case Ze.UPN:c.addCcsUpn(t.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,c.createQueryString()]}})})},e}(os);/*! @azure/msal-common v13.3.0 2023-08-24 */var Tg=function(r){Je(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){return X(this,void 0,void 0,function(){var n,o;return Z(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof O&&n.errorCode===I.tokenRefreshRequired.code)return o=new $u(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var n,o,i,a,s;return X(this,void 0,void 0,function(){var c,l;return Z(this,function(u){switch(u.label){case 0:if(!t)throw ge.createEmptyTokenRequestError();if(t.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Jt.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),O.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!N.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Jt.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),O.createRefreshRequiredError();if(!t.account)throw O.createNoAccountInSilentRequestError();if(c=t.authority||this.authority.getPreferredCache(),l=this.cacheManager.readCacheRecord(t.account,t,c),l.accessToken){if(ct.wasClockTurnedBack(l.accessToken.cachedAt)||ct.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Jt.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),O.createRefreshRequiredError();if(l.accessToken.refreshOn&&ct.isTokenExpired(l.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Jt.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),O.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Jt.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),O.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,t)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,n){return X(this,void 0,void 0,function(){var o,i;return Z(this,function(a){switch(a.label){case 0:if(t.idToken&&(o=new At(t.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw O.createAuthTimeNotFoundError();At.checkMaxAge(i,n.maxAge)}return[4,ai.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(os);/*! @azure/msal-common v13.3.0 2023-08-24 */function Sg(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.0 2023-08-24 */var Gu={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},ic=Gu.endpointMetadata,ac=Gu.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var Yn;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(Yn||(Yn={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var ma=function(){function r(){this.expiresAt=ct.nowSeconds()+Kn.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=ct.nowSeconds()+Kn.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=ct.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Kn.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function Ig(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function Ag(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var Rg=function(){function r(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return r.prototype.detectRegion=function(e,t){var n,o,i,a;return X(this,void 0,void 0,function(){var s,c,l,u,d;return Z(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.RegionDiscoveryDetectRegion,this.correlationId),s=e,s)return[3,8];c=r.IMDS_OPTIONS,h.label=1;case 1:return h.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(y.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(g.IMDS_VERSION,c)];case 2:return l=h.sent(),l.status===$r.httpSuccess&&(s=l.body,t.region_source=Yt.IMDS),l.status!==$r.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)]);case 3:return u=h.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(y.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,c)]):(t.region_source=Yt.FAILED_AUTO_DETECTION,[2,null]);case 4:d=h.sent(),d.status===$r.httpSuccess&&(s=d.body,t.region_source=Yt.IMDS),h.label=5;case 5:return[3,7];case 6:return h.sent(),t.region_source=Yt.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=Yt.ENVIRONMENT_VARIABLE,h.label=9;case 9:return s||(t.region_source=Yt.FAILED_AUTO_DETECTION),[2,s||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){var n;return X(this,void 0,void 0,function(){return Z(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(y.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(g.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,g.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){var t;return X(this,void 0,void 0,function(){var n;return Z(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(g.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=o.sent(),n.status===$r.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Wn=function(){function r(e,t,n,o,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new Rg(t,this.performanceClient,this.correlationId)}return r.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(g.CIAM_AUTH_URL))return Be.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case g.ADFS:return Be.Adfs;case g.DSTS:return Be.Dsts}return Be.Default},Object.defineProperty(r.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ie(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw O.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!r.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Be.Default&&this.protocolMode===Yn.AAD},r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=this,n=e,o=new ie(this.metadata.canonical_authority),i=o.getUrlComponents(),a=i.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(c,l){var u=a[l];if(l===0&&t.canReplaceTenant(i)){var d=new ie(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}c!==u&&(n=n.replace("/"+u+"/","/"+c+"/"))}),this.replaceTenant(n)},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Be.Adfs||this.authorityType===Be.Dsts||this.protocolMode===Yn.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){var e,t,n;return X(this,void 0,void 0,function(){var o,i,a,s;return Z(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(y.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new ma,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(y.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(y.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=c.sent(),i!==nt.CACHE&&a!==nt.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,n,o,i,a,s;return X(this,void 0,void 0,function(){var c,l;return Z(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,nt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,nt.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(y.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=u.sent(),c?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(y.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,nt.NETWORK];case 4:return l=this.getEndpointMetadataFromHardcodedValues(),l&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(y.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,6]:[3,7];case 5:l=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(l,!1),[2,nt.HARDCODED_VALUES];case 7:throw O.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new ie(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw ge.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){var e;return X(this,void 0,void 0,function(){var t,n;return Z(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(y.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=o.sent(),[2,Sg(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in ic?ic[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,n,o,i;return X(this,void 0,void 0,function(){var a,s;return Z(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,a?a!==g.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=$n.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,r.replaceWithRegionalInformation(e,a)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(y.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=c.sent(),s)return this.regionDiscoveryMetadata.region_outcome=$n.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,r.replaceWithRegionalInformation(e,s)];this.regionDiscoveryMetadata.region_outcome=$n.AUTO_DETECTION_REQUESTED_FAILED,c.label=2;case 2:return[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return X(this,void 0,void 0,function(){var o,i,a;return Z(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(y.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||g.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||g.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||g.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,nt.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,nt.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(y.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,nt.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,nt.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),ge.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Be.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=r.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),ge.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return X(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return Z(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(y.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+g.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,n)];case 2:if(i=u.sent(),a=void 0,s=void 0,Ig(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(Ag(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===g.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=r.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return c=u.sent(),c instanceof D?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
31
31
  Error: `+c.errorCode+`
32
32
  Error Description: `+c.errorMessage):(l=c,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
33
33
  Error: `+l.name+`
34
- Error Description: `+l.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in _a?_a[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(n){return ee.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==zr.None){var o=t.tenant?t.tenant:g.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+o+"/"}return n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(t)>-1)return o}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw A.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return g.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,n){var o=new ee(e);o.validateAsUri();var i=o.getUrlComponents(),a=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=t+"."+g.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ee.constructAuthorityUriFromObject(oe(oe({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,g.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(e){var t=e.endsWith(g.FORWARD_SLASH)?e:""+e+g.FORWARD_SLASH,n=new ee(e),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(g.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];t=""+t+i+g.AAD_TENANT_DOMAIN_SUFFIX}return t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",qt.COMMON,qt.CONSUMERS,qt.ORGANIZATIONS]),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Bn=function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,o,i,a,s){return G(this,void 0,void 0,function(){var c,l,u;return j(this,function(d){switch(d.label){case 0:a==null||a.addQueueMeasurement(v.AuthorityFactoryCreateDiscoveredInstance,s),c=Yr.transformCIAMAuthority(e),l=r.createInstance(c,t,n,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a==null||a.setPreQueueTime(v.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw u=d.sent(),A.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},r.createInstance=function(e,t,n,o,i,a,s){if(I.isEmpty(e))throw le.createUrlEmptyError();return new Yr(e,t,n,o,i,a,s)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Kn=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var n=e.indexOf(be.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ea=function(){function r(){}return r.isThrottlingEntity=function(e,t){var n=!1;e&&(n=e.indexOf(qr.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var uf={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(x.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(x.createUnexpectedError(r))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var cn={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},Ca=function(r){Fe(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(cn.missingKidError.code,cn.missingKidError.desc)},e.createMissingAlgError=function(){return new e(cn.missingAlgError.code,cn.missingAlgError.desc)},e}(x);/*! @azure/msal-common v13.3.0 2023-08-24 */var df=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw Ca.createMissingKidError();if(!e.alg)throw Ca.createMissingAlgError();var t=new r({typ:e.typ||jo.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var hf=function(){function r(e,t){this.cacheOutcome=Rt.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||g.EMPTY_STRING,this.wrapperVer=e.wrapperVer||g.EMPTY_STRING,this.telemetryCacheKey=be.CACHE_KEY+_e.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+be.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(be.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(be.VALUE_SEPARATOR);return[be.SCHEMA_VERSION,o,t].join(be.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(be.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(be.VALUE_SEPARATOR),i=e.errors.length,a=t<i?be.OVERFLOW_TRUE:be.OVERFLOW_FALSE,s=[i,a].join(be.VALUE_SEPARATOR);return[be.SCHEMA_VERSION,e.cacheHits,n,o,s].join(be.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=be.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),I.isEmpty(e.subError)?I.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(be.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new Kn,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new Kn;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},r.maxErrorsToSend=function(e){var t,n=0,o=0,i=e.errors.length;for(t=0;t<i;t++){var a=e.failedRequests[2*t]||g.EMPTY_STRING,s=e.failedRequests[2*t+1]||g.EMPTY_STRING,c=e.errors[t]||g.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<be.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||g.EMPTY_STRING),e.push(this.regionSource||g.EMPTY_STRING),e.push(this.regionOutcome||g.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qs=function(){function r(e,t,n,o,i,a){this.authority=t,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.getIntFields=function(){return rf},r.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return n.time},r.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},r.prototype.addQueueMeasurement=function(e,t,n,o){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:n,manuallyCompleted:o},a=this.queueMeasurements.get(t);if(a)a.push(i),this.queueMeasurements.set(t,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var s=[i];this.queueMeasurements.set(t,s)}this.preQueueTimeByCorrelationId.delete(t)},r.prototype.startMeasurement=function(e,t){var n=this,o,i,a=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:Fn.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(c),{endMeasurement:function(l){return n.endMeasurement(oe(oe({},c),l),s)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,c.correlationId)},increment:function(l){return n.increment(l,c.correlationId)},measurement:s,event:c}},r.prototype.endMeasurement=function(e,t){var n=this,o,i,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):(o=a.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),t==null||t.endMeasurement();var l=t==null?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(l),oe({},a);var u=oe(oe({},a),e),d=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(h){n.logger.trace("PerformanceClient: Incomplete submeasurement "+h.name+" found for "+e.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=oe(oe({},u),{durationMs:Math.round(l),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:Fn.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},r.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,oe(oe({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var o in e)n.hasOwnProperty(o)||(n[o]=0),n[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,oe({},e)))},r.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,o=0,i=0;return t==null||t.forEach(function(a){n+=a.queueTime,o++,i+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:o,manuallyCompletedCount:i}},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},r.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},r.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},r.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,t),o.apply(null,[e])})},r.prototype.truncateIntegralFields=function(e,t){t.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var wa=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),ff=function(r){Fe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new wa},e.prototype.startPerformanceMeasurement=function(){return new wa},e.prototype.calculateQueuedTime=function(t,n){return 0},e.prototype.addQueueMeasurement=function(t,n,o){},e.prototype.setPreQueueTime=function(t,n){},e}(qs);/*! @azure/msal-browser v2.38.2 2023-08-24 */var E={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},b=function(r){Se(e,r);function e(t,n){var o=r.call(this,t,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(t){return new e(E.pkceNotGenerated.code,E.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(E.cryptoDoesNotExist.code,E.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(E.httpMethodNotImplementedError.code,E.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(E.emptyNavigateUriError.code,E.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(E.hashEmptyError.code,E.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(E.hashDoesNotContainStateError.code,E.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(E.hashDoesNotContainKnownPropertiesError.code,E.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(E.unableToParseStateError.code,E.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(E.stateInteractionTypeMismatchError.code,E.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(E.interactionInProgress.code,E.interactionInProgress.desc)},e.createPopupWindowError=function(t){var n=E.popupWindowError.desc;return n=I.isEmpty(t)?n:n+" Details: "+t,new e(E.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(E.emptyWindowError.code,E.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(E.userCancelledError.code,E.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(E.monitorPopupTimeoutError.code,E.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(E.monitorIframeTimeoutError.code,E.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(E.redirectInIframeError.code,E.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(E.blockTokenRequestsInHiddenIframeError.code,E.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(E.blockAcquireTokenInPopupsError.code,E.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(E.iframeClosedPrematurelyError.code,E.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(E.silentLogoutUnsupportedError.code,E.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(E.noAccountError.code,E.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(E.silentPromptValueError.code,E.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(E.unableToParseTokenRequestCacheError.code,E.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(E.noTokenRequestCacheError.code,E.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(E.authRequestNotSet.code,E.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(E.noCachedAuthorityError.code,E.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(E.invalidCacheType.code,""+E.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(E.notInBrowserEnvironment.code,E.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(E.databaseNotOpen.code,E.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(E.noNetworkConnectivity.code,E.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(E.postRequestFailed.code,E.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(E.getRequestFailed.code,E.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(E.failedToParseNetworkResponse.code,E.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(E.unableToLoadTokenError.code,E.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(E.signingKeyNotFoundInStorage.code,E.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(E.authCodeRequired.code,E.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(E.authCodeOrNativeAccountRequired.code,E.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(E.spaCodeAndNativeAccountPresent.code,E.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(E.databaseUnavailable.code,E.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(E.unableToAcquireTokenFromNativePlatform.code,E.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(E.nativeHandshakeTimeout.code,E.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(E.nativeExtensionNotInstalled.code,E.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(E.nativeConnectionNotEstablished.code,E.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(E.nativeBrokerCalledBeforeInitialize.code,E.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(E.nativePromptNotSupported.code,E.nativePromptNotSupported.desc)},e}(x);/*! @azure/msal-browser v2.38.2 2023-08-24 */var We={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},xr={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},gt;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(gt||(gt={}));var me;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(me||(me={}));var rt;(function(r){r.GET="GET",r.POST="POST"})(rt||(rt={}));var re;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(re||(re={}));var tt;(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(tt||(tt={}));var lr;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(lr||(lr={}));var ce;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(ce||(ce={}));var P;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(P||(P={}));var ba;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(ba||(ba={}));var Ta={scopes:Jr},mr="jwk",Sa;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(Sa||(Sa={}));var Wo="msal.db",pf=1,gf=Wo+".keys",He;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(He||(He={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var Le={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},$n=function(r){Se(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(Le.redirectUriNotSet.code,Le.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Le.postLogoutUriNotSet.code,Le.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Le.storageNotSupportedError.code,Le.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Le.noRedirectCallbacksSet.code,Le.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Le.stubPcaInstanceCalled.code,Le.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Le.inMemRedirectUnavailable.code,Le.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Le.entropyNotProvided.code,Le.entropyNotProvided.desc)},e}(x);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ia=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==me.LocalStorage&&e!==me.SessionStorage)throw $n.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw $n.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Qo=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Bs=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(I.isEmpty(t))return null;try{var n=vt.parseRequestState(e,t);return n.libraryState.meta}catch(o){throw A.createInvalidStateError(t,o)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new ee(e);return ee.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Jo=function(r){Se(e,r);function e(t,n,o,i){var a=r.call(this,t,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Qo,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(t){switch(t){case me.LocalStorage:case me.SessionStorage:try{return new Ia(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=me.MemoryStorage,new Qo},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case me.LocalStorage:case me.SessionStorage:try{return new Ia(t||me.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case me.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=g.CACHE_PREFIX+"."+ye.ID_TOKEN,o=g.CACHE_PREFIX+"."+ye.CLIENT_INFO,i=g.CACHE_PREFIX+"."+ye.ERROR,a=g.CACHE_PREFIX+"."+ye.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[ye.ID_TOKEN,ye.CLIENT_INFO,ye.ERROR,ye.ERROR_DESC];h.forEach(function(f,p){return t.migrateCacheEntry(f,d[p])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(tt.ACCOUNT_KEYS),o=this.getItem(tt.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(t.isCredentialKey(a)){var s=t.getItem(a);if(s){var c=t.validateAndParseJson(s);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case L.ID_TOKEN:if(Ht.isIdTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var l=Ue.toObject(new Ht,c),u=t.updateCredentialCacheKey(a,l);t.addTokenKey(u,L.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case L.ACCESS_TOKEN:case L.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Dt.isAccessTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=Ue.toObject(new Dt,c),u=t.updateCredentialCacheKey(a,d);t.addTokenKey(u,L.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case L.REFRESH_TOKEN:if(sr.isRefreshTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var h=Ue.toObject(new sr,c),u=t.updateCredentialCacheKey(a,h);t.addTokenKey(u,L.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(t.isAccountKey(a)){var s=t.getItem(a);if(s){var f=t.validateAndParseJson(s);f&&Te.isAccountEntity(f)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),t.addAccountKeyToMap(a))}}})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);if(!n)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(n);return!o||!Te.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):Ue.toObject(new Te,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(tt.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(tt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var n=this.getAccountKeys(),o=n.indexOf(t);o>-1?(n.splice(o,1),this.setItem(tt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return y(this,void 0,void 0,function(){return _(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,L.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return y(this,void 0,void 0,function(){return _(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,L.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,L.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(tt.TOKEN_KEYS+"."+this.clientId);if(t){var n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case L.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case L.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case L.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),A.createUnexpectedCredentialTypeError()}this.setItem(tt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case L.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=o.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case L.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var a=o.accessToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case L.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var s=o.refreshToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),A.createUnexpectedCredentialTypeError()}this.setItem(tt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Ht.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Ue.toObject(new Ht,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,L.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Dt.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Ue.toObject(new Dt,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,L.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!sr.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,L.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Ue.toObject(new sr,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,L.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Vo.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Ue.toObject(new Vo,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Kn.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Ue.toObject(new Kn,o))},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Yo.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Ue.toObject(new Yo,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,n=this.internalStorage.getKeys();return n.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(lr.WRAPPER_SKU,t),this.internalStorage.setItem(lr.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(lr.WRAPPER_SKU)||g.EMPTY_STRING,n=this.internalStorage.getItem(lr.WRAPPER_VER)||g.EMPTY_STRING;return[t,n]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(ye.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(ye.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var n=this.generateCacheKey(ye.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(ye.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return t?t===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw A.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Ea.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Ue.toObject(new Ea,o))},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){var o=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===me.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(t,n,o){var i=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return Ei(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return y(this,void 0,void 0,function(){var t=this;return _(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(g.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return y(this,void 0,void 0,function(){var t,n,o=this;return _(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var s=o.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(o.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return i.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,o){var i=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return g.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,n=g.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){var a=i.split("=")[0];t.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,g.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var n=new Date,o=new Date(n.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var n=this.validateAndParseJson(t);return n?JSON.stringify(t):I.startsWith(t,g.CACHE_PREFIX)||I.startsWith(t,ye.ADAL_ID_TOKEN)?t:g.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var n=vt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(re.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(t){var n=vt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(re.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(t){var n=vt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(re.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(t){var n=this.generateStateKey(t),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(t,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:qe.HOME_ACCOUNT_ID};this.setTemporaryCache(re.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!I.isEmpty(i)){var u={credential:i,type:qe.UPN};this.setTemporaryCache(re.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(t){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),I.isEmpty(t)||this.getKeys().forEach(function(o){o.indexOf(t)!==-1&&n.removeItem(o)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(re.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(re.ORIGIN_URI)),this.removeItem(this.generateCacheKey(re.URL_HASH)),this.removeItem(this.generateCacheKey(re.CORRELATION_ID)),this.removeItem(this.generateCacheKey(re.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(re.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var n=this.generateStateKey(t),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||g.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(re.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(i){var a=Bs.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===t&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(t));this.setTemporaryCache(re.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(t,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(re.REQUEST_PARAMS,!0);if(!o)throw b.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw b.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(re.REQUEST_PARAMS)),I.isEmpty(i.authority)){var a=this.generateAuthorityKey(t),s=this.getTemporaryCache(a);if(!s)throw b.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(re.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(t);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var n=this.getInteractionInProgress();return t?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var t=g.CACHE_PREFIX+"."+re.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var n=g.CACHE_PREFIX+"."+re.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw b.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(ye.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(ye.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(ye.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(ye.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||t;if(o){var i=new it(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,n){var o=n.generateCredentialKey();if(t!==o){var i=this.getItem(t);if(i)return this.removeItem(t),this.setItem(o,i),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(re.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(re.REDIRECT_CONTEXT,t,!0)},e}(Ue),mf=function(r,e){var t={cacheLocation:me.MemoryStorage,temporaryCacheLocation:me.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new Jo(r,t,Un,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var Io="@azure/msal-browser",Gr="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var vf=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return y(this,void 0,void 0,function(){var n,o,i;return _(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:rt.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?b.createGetRequestFailedError(o,e):b.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=a.sent(),i.status=n.status,i)];case 5:throw a.sent(),b.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return y(this,void 0,void 0,function(){var n,o,i,a;return _(this,function(s){switch(s.label){case 0:n=t&&t.body||g.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:rt.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?b.createPostRequestFailedError(i,e):b.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(a.body=s.sent(),a.status=o.status,a)];case 6:throw s.sent(),b.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var n=e.headers;return Object.keys(n).forEach(function(o){t.append(o,n[o])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(n,o){t[o]=n}),t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var yf=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,this.sendRequestAsync(e,rt.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,this.sendRequestAsync(e,rt.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(t,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(t===rt.POST?a(b.createPostRequestFailedError("Failed with status "+s.status,e)):a(b.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:c,status:s.status};i(l)}catch{a(b.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===rt.POST?a(b.createPostRequestFailedError("Failed with status "+s.status,e)):a(b.createGetRequestFailedError("Failed with status "+s.status,e)):a(b.createNoNetworkConnectivityError())},t===rt.POST&&n&&n.body)s.send(n.body);else if(t===rt.GET)s.send();else throw b.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var pe=function(){function r(){}return r.clearHash=function(e){e.location.hash=g.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,g.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):g.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(We.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new ee(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new vf:new yf},r.blockReloadInHiddenIframes=function(){var e=ee.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw b.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===P.Redirect&&n&&!t)throw b.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw b.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw b.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw b.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=t>0||n>0,a=o>0;return i||a},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ks=function(){function r(e,t,n,o,i,a,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(We.MSAL_SKU,Gr,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return y(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Te.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Te.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},r.prototype.initializeBaseRequest=function(e,t){return y(this,void 0,void 0,function(){var n,o,i,a;return _(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(v.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(o=Ei(e&&e.scopes||[]),i=O(O({},e),{correlationId:this.correlationId,authority:n,scopes:o}),!i.authenticationScheme)i.authenticationScheme=ae.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===ae.SSH){if(!e.sshJwk)throw le.createMissingSshJwkError();if(!e.sshKid)throw le.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!I.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,i]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||pe.getCurrentUri();return ee.getAbsoluteUrl(t,pe.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return y(this,void 0,void 0,function(){var n;return _(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=o.sent(),!n.isAlias(t.environment))throw le.createAuthorityMismatchError();return[2]}})})},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new hf(n,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Bn.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Bn.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Tr=function(r){Se(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return y(this,void 0,void 0,function(){var n,o;return _(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(v.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=O(O({},t),{redirectUri:t.redirectUri,code:g.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=g.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n=O({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=ee.getAbsoluteUrl(t.postLogoutRedirectUri,pe.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=ee.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,pe.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=ee.getAbsoluteUrl(pe.getCurrentUri(),pe.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,n,o){return y(this,void 0,void 0,function(){var i;return _(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(v.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(v.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Hs(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,o){return y(this,void 0,void 0,function(){var i,a;return _(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(v.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(v.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:We.MSAL_SKU,version:Gr,cpu:g.EMPTY_STRING,os:g.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw b.createHashDoesNotContainStateError();var i=Bs.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw b.createUnableToParseStateError();if(i.interactionType!==n)throw b.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var o;return y(this,void 0,void 0,function(){var i,a,s,c;return _(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(v.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(v.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=Yr.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(v.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Bn.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return y(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return _(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(v.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),i={interactionType:n},a=vt.setRequestState(this.browserCrypto,t&&t.state||g.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(v.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=O.apply(void 0,[O.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:Mn.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),I.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Ks);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ti=function(){function r(e,t,n,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return r.prototype.handleCodeResponseFromHash=function(e,t,n,o){return y(this,void 0,void 0,function(){var i,a,s;return _(this,function(c){if(this.performanceClient.addQueueMeasurement(v.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),I.isEmpty(e))throw b.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw A.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof zt&&l.subError===E.userCancelledError.code?b.createUserCancelledError():l}return this.performanceClient.setPreQueueTime(v.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,o)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,o,i){return i===void 0&&(i=!0),y(this,void 0,void 0,function(){var a,s,c,l,u,d;return _(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(v.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw A.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(v.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]):[3,2];case 1:h.sent(),h.label=2;case 2:return i&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(v.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=h.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return y(this,void 0,void 0,function(){var o,i;return _(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(v.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,Bn.createDiscoveredInstance(o,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(re.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Aa=function(r){Se(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.browserCrypto=a,c}return e.prototype.initiateAuthRequest=function(t,n){return y(this,void 0,void 0,function(){var o,i;return _(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),I.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(re.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(re.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:ce.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(t,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),b.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,o,i){return y(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return _(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),I.isEmpty(t))throw b.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw A.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(p){throw p instanceof zt&&p.subError===E.userCancelledError.code?b.createUserCancelledError():p}return l=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(Ti);/*! @azure/msal-browser v2.38.2 2023-08-24 */var q;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(q||(q={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var At;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(At||(At={}));var Nr={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},ot=function(r){Se(e,r);function e(t,n,o){var i=r.call(this,t,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===At.PERSISTENT_ERROR||this.ext.status===At.DISABLED))return!0;switch(this.errorCode){case Nr.extensionError.code:return!0;default:return!1}},e.createError=function(t,n,o){if(o&&o.status)switch(o.status){case At.ACCOUNT_UNAVAILABLE:return Qe.createNativeAccountUnavailableError();case At.USER_INTERACTION_REQUIRED:return new Qe(t,n);case At.USER_CANCEL:return b.createUserCancelledError();case At.NO_NETWORK:return b.createNoNetworkConnectivityError()}return new e(t,n,o)},e.createUserSwitchError=function(){return new e(Nr.userSwitch.code,Nr.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Nr.tokensNotFoundInCache.code,Nr.tokensNotFoundInCache.desc)},e}(x);/*! @azure/msal-browser v2.38.2 2023-08-24 */var $s=function(r){Se(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s;return _(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(v.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(ce.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof b&&s.errorCode===E.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof x&&s.errorCode||void 0,subErrorCode:s instanceof x&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(b.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,o){return y(this,void 0,void 0,function(){var i;return _(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(v.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new of(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return y(this,void 0,void 0,function(){var o;return _(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(v.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(v.InitializeBaseRequest,this.correlationId),o=[O({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,O.apply(void 0,[O.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var fr=function(r){Se(e,r);function e(t,n,o,i,a,s,c,l,u,d,h,f){var p=r.call(this,t,n,o,i,a,s,l,u,f)||this;return p.apiId=c,p.accountId=d,p.nativeMessageHandler=u,p.nativeStorageManager=h,p.silentCacheClient=new $s(t,p.nativeStorageManager,o,i,a,s,l,u,f),p}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return _(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(v.NativeInteractionClientAcquireToken,t.correlationId),o=je.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:gt.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=u.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:Ae.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return y(this,void 0,void 0,function(){var o,i,a,s;return _(this,function(c){switch(c.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),A.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw A.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=c.sent(),[2,a];case 3:throw s=c.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c;return _(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=l.sent(),o={method:gt.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=l.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=l.sent(),a instanceof ot&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(re.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:ce.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return y(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return _(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=t.prompt,o=fa(t,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(re.NATIVE_REQUEST)),i={method:gt.GetToken,request:o},a=je.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=u.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=u.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,n,o){return y(this,void 0,void 0,function(){var i,a,s,c,l,u;return _(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw ot.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=d.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(t),c=this.createHomeAccountIdentifier(t,s),l=this.createAccountEntity(t,c,s,a),[4,this.generateAuthenticationResult(t,n,s,l,i.canonicalAuthority,o)];case 2:return u=d.sent(),this.cacheAccount(l),this.cacheNativeTokens(t,n,c,l,s,u.accessToken,u.tenantId,o),[2,u]}})})},e.prototype.createIdTokenObj=function(t){return new it(t.id_token||g.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){var o=Te.generateHomeAccountId(t.client_info||g.EMPTY_STRING,Pe.Default,this.logger,this.browserCrypto,n);return o},e.prototype.createAccountEntity=function(t,n,o,i){return Te.createAccount(t.client_info,n,o,void 0,void 0,void 0,i,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?Ae.fromString(t.scope):Ae.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return y(this,void 0,void 0,function(){var o,i;return _(this,function(a){switch(a.label){case 0:if(n.tokenType!==ae.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new gr(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw A.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,o,i,a,s){return y(this,void 0,void 0,function(){var c,l,u,d,h,f,p,m;return _(this,function(T){switch(T.label){case 0:return c=this.addTelemetryFromNativeResponse(t),l=t.scope?Ae.fromString(t.scope):Ae.fromString(n.scope),u=t.account.properties||{},d=u.UID||o.claims.oid||o.claims.sub||g.EMPTY_STRING,h=u.TenantId||o.claims.tid||g.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return f=T.sent(),p=n.tokenType===ae.POP?ae.POP:ae.BEARER,m={authority:a,uniqueId:d,tenantId:h,scopes:l.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:f,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,m]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,n,o,i,a,s,c,l){var u=Ht.createIdTokenEntity(o,n.authority,t.id_token||g.EMPTY_STRING,n.clientId,a.claims.tid||g.EMPTY_STRING),d=n.tokenType===ae.POP?g.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,h=l+d,f=this.generateScopes(t,n),p=Dt.createAccessTokenEntity(o,n.authority,s,n.clientId,a?a.claims.tid||g.EMPTY_STRING:c,f.printScopes(),h,0,this.browserCrypto),m=new $r(i,u,p);this.nativeStorageManager.saveCacheRecord(m)},e.prototype.addTelemetryFromNativeResponse=function(t){var n=this.getMATSFromResponse(t);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw ot.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f=this;return _(this,function(p){switch(p.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:p.sent(),p.label=2;case 2:return o=new ee(n),o.validateAsUri(),i=t.scopes,a=fa(t,["scopes"]),s=new Ae(i||[]),s.appendScopes(Jr),c=function(){switch(f.apiId){case ce.ssoSilent:case ce.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),ke.NONE}if(!t.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case ke.NONE:case ke.CONSENT:case ke.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),b.createNativePromptParameterNotSupportedError()}},l=O(O({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:O(O(O({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:xr.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==ae.POP?[3,4]:(u={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},d=new gr(this.browserCrypto),[4,d.generateCnf(u)]);case 3:h=p.sent(),l.reqCnf=h.reqCnfString,l.keyId=h.kid,p.label=4;case 4:return[2,l]}})})},e}(Ks);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Bt=function(){function r(e,t,n,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(v.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return y(this,void 0,void 0,function(){var t,n=this;return _(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:xr.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,a){n.resolvers.set(t.responseId,{resolve:i,reject:a})})]})})},r.createProvider=function(e,t,n){return y(this,void 0,void 0,function(){var o,i;return _(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new r(e,t,n,xr.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new r(e,t,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return y(this,void 0,void 0,function(){var e,t=this;return _(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:xr.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:gt.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(b.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==xr.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===gt.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(b.createNativeExtensionNotInstalledError()))}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===gt.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(ot.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(ot.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw x.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===gt.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case ae.BEARER:case ae.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _f=function(r){Se(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return _(this,function(f){switch(f.label){case 0:return this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,P.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||g.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(ce.acquireTokenRedirect),i=function(p){p.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state),h.eventHandler.emitEvent(q.RESTORE_FROM_BFCACHE,P.Redirect))},f.label=2;case 2:return f.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new Aa(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(O(O({},n),{nativeBroker:Bt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw d=f.sent(),d instanceof x&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f,p;return _(this,function(m){switch(m.label){case 0:n=this.initializeServerTelemetryManager(ce.handleRedirectPromise),m.label=1;case 1:if(m.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(P.Redirect),[2,null];i=void 0;try{a=ee.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,P.Redirect),this.logger.verbose("State extracted from hash")}catch(T){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+T),this.browserStorage.cleanRequestByInteractionType(P.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(re.ORIGIN_URI,!0)||g.EMPTY_STRING,c=ee.removeHashFromUrl(s),l=ee.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return u=m.sent(),s.indexOf("#")>-1&&pe.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!pe.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(re.URL_HASH,o,!0),d={apiId:ce.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(f=pe.getHomepage(),this.browserStorage.setTemporaryCache(re.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)]):[3,6]):[3,9];case 5:return h=m.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=m.sent(),m.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];m.label=9;case 9:return[2,null];case 10:throw p=m.sent(),p instanceof x&&p.setCorrelationId(this.correlationId),n.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(P.Redirect),p;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var n=ee.hashContainsKnownProperties(t);if(n)return pe.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(re.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(re.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,n,o){return y(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return _(this,function(f){switch(f.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=ee.getDeserializedHash(t),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw b.createNativeConnectionNotEstablishedError();return s=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,i.correlationId),c=vt.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(O(O({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw b.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),Dn.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new Aa(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(t,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return _(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(ce.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(q.LOGOUT_START,P.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:ce.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,P.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw l=u.sent(),l instanceof x&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,P.Redirect,null,l),this.eventHandler.emitEvent(q.LOGOUT_END,P.Redirect),l;case 11:return this.eventHandler.emitEvent(q.LOGOUT_END,P.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var n=t||window.location.href;return ee.getAbsoluteUrl(n,pe.getCurrentUri())},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ef=function(r){Se(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){try{var n=this.generatePopupName(t.scopes||Jr,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(t,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(n),i=t&&t.authority,a=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,n,o,i){return y(this,void 0,void 0,function(){var a,s,c,l,u,d,h,f,p,m,T,R,w,k,X,Z,z,B=this;return _(this,function(ue){switch(ue.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(ce.acquireTokenPopup),this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,P.Popup)];case 1:s=ue.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||g.EMPTY_STRING,s.account||null),ue.label=2;case 2:return ue.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=ue.sent(),this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=ue.sent(),this.logger.verbose("Auth code client created"),u=Bt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(v.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(O(O({},s),{nativeBroker:u}))];case 5:return h=ue.sent(),f=new Ti(l,this.browserStorage,c,this.logger,this.performanceClient),p={popup:i,popupName:n,popupWindowAttributes:o},m=this.initiateAuthRequest(h,p),this.eventHandler.emitEvent(q.POPUP_OPENED,P.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(T=ue.sent(),R=ee.getDeserializedHash(T),w=this.validateAndExtractStateFromHash(R,P.Popup,s.correlationId),Dn.removeThrottle(this.browserStorage,this.config.auth.clientId,c),R.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw b.createNativeConnectionNotEstablishedError();return k=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,R.accountId,this.nativeStorage,s.correlationId),X=vt.parseRequestState(this.browserCrypto,w).userRequestState,[2,k.acquireToken(O(O({},s),{state:X,prompt:void 0})).finally(function(){B.browserStorage.cleanRequestByState(w)})]}return[4,f.handleCodeResponseFromHash(T,w,l.authority,this.networkClient)];case 7:return Z=ue.sent(),[2,Z];case 8:throw z=ue.sent(),i&&i.close(),z instanceof x&&z.setCorrelationId(this.correlationId),a.cacheFailedRequest(z),this.browserStorage.cleanRequestByState(s.state),z;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,o,i,a,s){return y(this,void 0,void 0,function(){var c,l,u,d,h,f,p;return _(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(q.LOGOUT_START,P.Popup,t),c=this.initializeServerTelemetryManager(ce.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,i)];case 3:return l=m.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(t),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,P.Popup,t),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(q.POPUP_OPENED,P.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return m.sent(),s?(h={apiId:ce.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=ee.getAbsoluteUrl(s,pe.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=m.sent(),a&&a.close(),p instanceof x&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,P.Popup,null,p),this.eventHandler.emitEvent(q.LOGOUT_END,P.Popup),c.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(q.LOGOUT_END,P.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(I.isEmpty(t))throw this.logger.error("Navigate url is empty"),b.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(b.createUserCancelledError());return}var l=g.EMPTY_STRING,u=g.EMPTY_STRING;try{l=t.location.href,u=t.location.hash}catch{}I.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(t),ee.hashContainsKnownProperties(u)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(b.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(b.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=g.EMPTY_STRING;try{a=t.location.href}catch{}I.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(t),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),!o)throw b.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),b.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,n,o){var i,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(i=o.popupSize)===null||i===void 0?void 0:i.width,p=(a=o.popupSize)===null||a===void 0?void 0:a.height,m=(s=o.popupPosition)===null||s===void 0?void 0:s.top,T=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=We.POPUP_WIDTH),(!p||p<0||p>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=We.POPUP_HEIGHT),(!m||m<0||m>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,h/2-We.POPUP_HEIGHT/2+u)),(!T||T<0||T>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),T=Math.max(0,d/2-We.POPUP_WIDTH/2+l)),window.open(t,n,"width="+f+", height="+p+", top="+m+", left="+T+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(P.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,n){return We.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var n=t.account&&t.account.homeAccountId;return We.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Cf=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var wf=6e4,Xo=6e3,bf=3e4,Tf=2e3;function Sf(r,e){var t=r.auth,n=r.cache,o=r.system,i=r.telemetry,a={clientId:g.EMPTY_STRING,authority:""+g.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:g.EMPTY_STRING,authorityMetadata:g.EMPTY_STRING,redirectUri:g.EMPTY_STRING,postLogoutRedirectUri:g.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Vr.AAD,azureCloudOptions:{azureCloudInstance:zr.None,tenant:g.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:me.SessionStorage,temporaryCacheLocation:me.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===me.LocalStorage),claimsBasedCachingEnabled:!0},c={loggerCallback:function(){},logLevel:fe.Info,piiLoggingEnabled:!1},l=O(O({},Us),{loggerOptions:c,networkClient:e?pe.getBrowserNetworkClient():uf,navigationClient:new Cf,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||wf,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Xo,navigateFrameWait:e&&pe.detectIEOrEdge()?500:0,redirectNavigationTimeout:bf,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||Tf,pollIntervalMilliseconds:We.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=O(O({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||c}),d={application:{appName:g.EMPTY_STRING,appVersion:g.EMPTY_STRING}},h={auth:O(O({},a),t),cache:O(O({},s),n),system:O(O({},l),u),telemetry:O(O({},d),i)};return h}/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gs=function(r){Se(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.navigateFrameWait=a.navigateFrameWait,c.pollIntervalMilliseconds=a.pollIntervalMilliseconds,c}return e.prototype.initiateAuthRequest=function(t){return y(this,void 0,void 0,function(){return _(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(v.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),I.isEmpty(t))throw this.logger.info("Navigate url is empty"),b.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(v.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var o=this;return this.performanceClient.addQueueMeasurement(v.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){n<Xo&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Xo+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(t),clearInterval(l),a(b.createMonitorIframeTimeoutError());return}var u=g.EMPTY_STRING,d=t.contentWindow;try{u=d?d.location.href:g.EMPTY_STRING}catch{}if(!I.isEmpty(u)){var h=d?d.location.hash:g.EMPTY_STRING;if(ee.hashContainsKnownProperties(h)){o.removeHiddenIframe(t),clearInterval(l),i(h);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(v.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=t,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(Ti);/*! @azure/msal-browser v2.38.2 2023-08-24 */var If=function(r){Se(e,r);function e(t,n,o,i,a,s,c,l,u,d,h){var f=r.call(this,t,n,o,i,a,s,l,d,h)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s;return _(this,function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(v.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(v.SilentIframeClientAcquireToken,t.correlationId),I.isEmpty(t.loginHint)&&I.isEmpty(t.sid)&&(!t.account||I.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==ke.NONE&&t.prompt!==ke.NO_SESSION)throw n.endMeasurement({success:!1}),b.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(O(O({},t),{prompt:t.prompt||ke.NONE}),P.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||g.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(v.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(v.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof x&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof x&&s.errorCode||void 0,subErrorCode:s instanceof x&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(b.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return y(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,f=this;return _(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(v.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=p.sent(),this.performanceClient.setPreQueueTime(v.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(O(O({},n),{nativeBroker:Bt.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=p.sent(),a=new Gs(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(v.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=p.sent(),this.performanceClient.setPreQueueTime(v.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=p.sent(),l=ee.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,P.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw b.createNativeConnectionNotEstablishedError();return d=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=vt.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(O(O({},n),{state:h,prompt:n.prompt||ke.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(v.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(c,u,t.authority,this.networkClient)]}})})},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Af=function(r){Se(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return _(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(v.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(v.InitializeBaseRequest,t.correlationId),o=[O({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=O.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(v.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(ce.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(v.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof x&&u.setCorrelationId(c.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(b.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,o){return y(this,void 0,void 0,function(){var i;return _(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(v.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Ds(i,this.performanceClient)]}})})},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Rf=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},r.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},r.prototype.emitEvent=function(e,t,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:t||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if(typeof n!="object"||!Te.isAccountEntity(n))return;var o=Ue.toObject(new Te,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(q.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(q.ACCOUNT_REMOVED,void 0,i))}catch{return}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ie=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var js=function(){function r(e){this.cryptoObj=e}return r.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ie.decimalToHex(e[0])+Ie.decimalToHex(e[1])+Ie.decimalToHex(e[2])+Ie.decimalToHex(e[3])+"-"+Ie.decimalToHex(e[4])+Ie.decimalToHex(e[5])+"-"+Ie.decimalToHex(e[6])+Ie.decimalToHex(e[7])+"-"+Ie.decimalToHex(e[8])+Ie.decimalToHex(e[9])+"-"+Ie.decimalToHex(e[10])+Ie.decimalToHex(e[11])+Ie.decimalToHex(e[12])+Ie.decimalToHex(e[13])+Ie.decimalToHex(e[14])+Ie.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=g.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(o=Math.random()*16|0),t[a]==="x"?i+=n[o]:t[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=t[a];return i}},r.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var yt=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,o=e.length,i=0;i<o;i++)t=e.charCodeAt(i),n+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)t=e.charCodeAt(c),t<128?a[s++]=t:t<2048?(a[s++]=192+(t>>>6),a[s++]=128+(t&63)):t<65536?(a[s++]=224+(t>>>12),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<2097152?(a[s++]=240+(t>>>18),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<67108864?(a[s++]=248+(t>>>24),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return t},r.utf8ArrToString=function(e){for(var t=g.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],t+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var zs=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,g.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,g.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=yt.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=g.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return t===0?n:n.substring(0,n.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var kf=function(){function r(){}return r.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return yt.utf8ArrToString(n)},r.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,g.EMPTY_STRING),o=n.length,i=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,l=0,u=0,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===1){for(s=0;s<3&&u<i;s++,u++)a[u]=l>>>(16>>>s&24)&255;l=0}return a},r.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Nf=32,Pf=function(){function r(e){this.base64Encode=new zs,this.cryptoObj=e}return r.prototype.generateCodes=function(){return y(this,void 0,void 0,function(){var e,t;return _(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Nf);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw b.createPkceNotGeneratedError(n)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return y(this,void 0,void 0,function(){var t,n;return _(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=o.sent(),b.createPkceNotGeneratedError(n);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Of=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return y(this,void 0,void 0,function(){return _(this,function(t){return[2,window.crypto.subtle.exportKey(mr,e)]})})},r.prototype.importKey=function(e,t,n,o){return y(this,void 0,void 0,function(){return _(this,function(i){return[2,window.crypto.subtle.importKey(mr,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Mf=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Ei(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return y(this,void 0,void 0,function(){return _(this,function(t){return[2,window.msrCrypto.subtle.exportKey(mr,e)]})})},r.prototype.importKey=function(e,t,n,o){return y(this,void 0,void 0,function(){return _(this,function(i){return[2,window.msrCrypto.subtle.importKey(mr,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var xf=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.exportKey=function(e){return y(this,void 0,void 0,function(){return _(this,function(t){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(mr,e);i.addEventListener("complete",function(a){var s=a.target.result,c=yt.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,g.EMPTY_STRING).replace(/\n/g,g.EMPTY_STRING).replace(/\t/g,g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0",g.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},r.prototype.importKey=function(e,t,n,o){return y(this,void 0,void 0,function(){var i,a;return _(this,function(s){return i=yt.getSortedObjectString(e),a=yt.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(mr,a,t,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},r.prototype.sign=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.digest=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Lf="RSASSA-PKCS1-v1_5",Ra="SHA-256",Uf=2048,Hf=new Uint8Array([1,0,1]),Vs=function(){function r(e,t){var n,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Of;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new xf;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Mf;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),b.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),$n.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Lf,hash:Ra,modulusLength:Uf,publicExponent:Hf}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){return t=yt.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Ra},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return y(this,void 0,void 0,function(){return _(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return y(this,void 0,void 0,function(){return _(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Df=function(){function r(){this.dbName=Wo,this.version=pf,this.tableName=gf,this.dbOpen=!1}return r.prototype.open=function(){return y(this,void 0,void 0,function(){var e=this;return _(this,function(t){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(b.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return y(this,void 0,void 0,function(){return _(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},r.prototype.getItem=function(e){return y(this,void 0,void 0,function(){var t=this;return _(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(b.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.setItem=function(e,t){return y(this,void 0,void 0,function(){var n=this;return _(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(b.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(t,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},r.prototype.removeItem=function(e){return y(this,void 0,void 0,function(){var t=this;return _(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(b.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite"),s=a.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),o()}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.getKeys=function(){return y(this,void 0,void 0,function(){var e=this;return _(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,o){if(!e.db)return o(b.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},r.prototype.containsKey=function(e){return y(this,void 0,void 0,function(){var t=this;return _(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(b.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.deleteDatabase=function(){return y(this,void 0,void 0,function(){return _(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var o=window.indexedDB.deleteDatabase(Wo);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var ka=function(){function r(e,t){this.inMemoryCache=new Qo,this.indexedDBCache=new Df,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof b&&e.errorCode===E.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},r.prototype.getItem=function(e){return y(this,void 0,void 0,function(){var t,n;return _(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return y(this,void 0,void 0,function(){var n;return _(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return y(this,void 0,void 0,function(){var e,t;return _(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return y(this,void 0,void 0,function(){var t,n;return _(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return y(this,void 0,void 0,function(){var e,t;return _(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gn;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(Gn||(Gn={}));var Ff=function(){function r(e){this.logger=e,this.asymmetricKeys=new ka(this.logger,Gn.asymmetricKeys),this.symmetricKeys=new ka(this.logger,Gn.symmetricKeys)}return r.prototype.clear=function(){return y(this,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var qf=function(){function r(e,t,n){this.logger=e,this.browserCrypto=new Vs(this.logger,n),this.b64Encode=new zs,this.b64Decode=new kf,this.guidGenerator=new js(this.browserCrypto),this.pkceGenerator=new Pf(this.browserCrypto),this.cache=new Ff(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return y(this,void 0,void 0,function(){return _(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return _(this,function(d){switch(d.label){case 0:return n=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(v.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=yt.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return y(this,void 0,void 0,function(){return _(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var o;return y(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,p,m,T,R;return _(this,function(w){switch(w.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(v.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=w.sent(),!a)throw b.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=w.sent(),c=yt.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=df.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),f=d+"."+h,p=yt.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,p)];case 3:return m=w.sent(),T=this.b64Encode.urlEncodeArr(new Uint8Array(m)),R=f+"."+T,i&&i.endMeasurement({success:!0}),[2,R]}})})},r.prototype.hashString=function(e){return y(this,void 0,void 0,function(){var t,n;return _(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Na=function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){var o=r.makeMeasureName(n.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(r.makeStartMark(o,e)),window.performance.clearMarks(r.makeEndMark(o,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Bf=function(r){Se(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o,i,a,s)||this;return l.browserCrypto=new Vs(l.logger,c),l.guidGenerator=new js(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(t,n){return new Na(t,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var n=this.eventsByCorrelationId.get(t.event.correlationId),o=n&&n.eventId===t.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(O({},a))}),i.length>0&&Na.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var o=this,i=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return O(O({},a),{endMeasurement:function(s){var c=a.endMeasurement(O({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),c},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var a=r.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),c=o||r.prototype.calculateQueuedTime.call(this,a,s);return r.prototype.addQueueMeasurement.call(this,t,n,c,i)}},e}(qs);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Kf=function(){function r(e,t,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=o}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw b.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new it(t.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new $r(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Yr.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Yr(c,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new $r(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,t.client_info,a.authorityType);i=new $r(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else throw b.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw b.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},r.prototype.loadAccount=function(e,t,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=Te.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw b.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?Te.createAccount(n,a,e,void 0,void 0,void 0,t):Te.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw b.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,o){var i=Ht.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw b.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,n,o,i,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw b.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw b.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new Ae(e.scopes).printScopes(),c=a.expiresOn||t.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Dt.createAccessTokenEntity(n,o,t.access_token,this.config.auth.clientId,i,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw b.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=sr.createRefreshTokenEntity(n,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw b.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,o){var i,a,s,c=g.EMPTY_STRING,l=[],u=null,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=Ae.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||g.EMPTY_STRING,f=(t==null?void 0:t.claims.tid)||g.EMPTY_STRING;return{authority:o?o.canonicalAuthority:g.EMPTY_STRING,uniqueId:h,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:g.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||g.EMPTY_STRING,requestId:g.EMPTY_STRING,extExpiresOn:d,familyId:g.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||g.EMPTY_STRING,state:g.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||g.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||g.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var $f=function(r){Se(e,r);function e(t){var n=r.call(this,t)||this;return n.includeRedirectUri=!1,n}return e}(Hs);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gf=function(r){Se(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return _(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw b.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(v.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,P.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||g.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=O(O({},n),{code:t.code}),this.performanceClient.setPreQueueTime(v.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new $f(a),this.logger.verbose("Auth code client created"),c=new Gs(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof x&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(b.createSilentLogoutUnsupportedError())},e}(Tr);/*! @azure/msal-browser v2.38.2 2023-08-24 */var jf=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=Sf(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new ro(this.config.system.loggerOptions,Io,Gr),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Bf(this.config.auth.clientId,this.config.auth.authority,this.logger,Io,Gr,this.config.telemetry.application,this.config.system.cryptoOptions):new ff(this.config.auth.clientId,this.config.auth.authority,this.logger,Io,Gr,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new qf(this.logger,this.performanceClient,this.config.system.cryptoOptions):Un,this.eventHandler=new Rf(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Jo(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):mf(this.config.auth.clientId,this.logger);var t={cacheLocation:me.MemoryStorage,temporaryCacheLocation:me.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Jo(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new Kf(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return y(this,void 0,void 0,function(){var e,t,n,o,i;return _(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(v.InitializeClientApplication),this.eventHandler.emitEvent(q.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Bt.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return o=a.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(v.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(q.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return y(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l,u=this;return _(this,function(d){return this.logger.verbose("handleRedirectPromise called"),pe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||g.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START,P.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Bt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(re.CORRELATION_ID,!0)||g.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var f=t.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(q.LOGIN_SUCCESS,P.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,P.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,P.Redirect),h}).catch(function(h){throw t.length>0?u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,P.Redirect,null,h):u.eventHandler.emitEvent(q.LOGIN_FAILURE,P.Redirect,null,h),u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,P.Redirect),h}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return y(this,void 0,void 0,function(){var t,n,o,i,a,s=this;return _(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(P.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,P.Redirect,e):this.eventHandler.emitEvent(q.LOGIN_START,P.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof ot&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof Qe){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,P.Redirect,null,l):s.eventHandler.emitEvent(q.LOGIN_FAILURE,P.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(v.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(P.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,P.Popup,e):this.eventHandler.emitEvent(q.LOGIN_START,P.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,ce.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),c}).catch(function(c){if(c instanceof ot&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof Qe){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(q.LOGIN_SUCCESS,P.Popup,c):t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,P.Popup,c),o.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.endMeasurement({success:!0,requestId:c.requestId}),c}).catch(function(c){return i.length>0?t.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,P.Popup,null,c):t.eventHandler.emitEvent(q.LOGIN_FAILURE,P.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),Promise.reject(c)})},r.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},r.prototype.ssoSilent=function(e){var t;return y(this,void 0,void 0,function(){var n,o,i,a,s=this;return _(this,function(c){return n=this.getRequestCorrelationId(e),o=O(O({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(P.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(v.SsoSilent,n),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(q.SSO_SILENT_START,P.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,ce.ssoSilent).catch(function(l){if(l instanceof ot&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(o.correlationId);return u.acquireToken(o)}throw l}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(l){var u,d;return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS,P.Silent,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var u;throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE,P.Silent,null,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return y(this,void 0,void 0,function(){var t,n,o,i,a=this;return _(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(P.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START,P.Silent,e),n=this.performanceClient.startMeasurement(v.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw b.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(O(O({},e),{correlationId:t})).then(function(c){return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS,P.Silent,c),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,P.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ce.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof ot&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw b.createUnableToAcquireTokenFromNativePlatformError()}else throw b.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,P.Silent,null,c),n.endMeasurement({errorCode:c instanceof x&&c.errorCode||void 0,subErrorCode:c instanceof x&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return y(this,void 0,void 0,function(){var n,o,i=this;return _(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(v.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var c;return(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var c;throw(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return y(this,void 0,void 0,function(){return _(this,function(o){switch(this.performanceClient.addQueueMeasurement(v.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case He.Default:case He.AccessToken:case He.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw A.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return y(this,void 0,void 0,function(){var n;return _(this,function(o){switch(this.performanceClient.addQueueMeasurement(v.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case He.Default:case He.AccessTokenAndRefreshToken:case He.RefreshToken:case He.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(v.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw A.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){return this.performanceClient.addQueueMeasurement(v.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(v.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return y(this,void 0,void 0,function(){var t;return _(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(O({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return y(this,void 0,void 0,function(){var t,n;return _(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(P.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(P.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(o){return Promise.reject(o)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),pe.blockNonBrowserEnvironment(this.isBrowserEnvironment),pe.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),pe.blockReloadInHiddenIframes(),pe.blockAcquireTokenInPopups(),pe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===P.Redirect&&this.config.cache.cacheLocation===me.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw $n.createInMemoryRedirectUnavailableError();(e===P.Redirect||e===P.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),pe.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return y(this,void 0,void 0,function(){var o;return _(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw b.createNativeConnectionNotEstablishedError();return o=new fr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Bt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case ke.NONE:case ke.CONSENT:case ke.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new Ef(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new _f(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new If(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new $s(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new Af(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new Gf(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ce.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():g.EMPTY_STRING},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var zf=function(r){Se(e,r);function e(t){var n=r.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(t){return y(this,void 0,void 0,function(){var n;return _(this,function(o){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(O({correlationId:n},t||Ta))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(O({correlationId:n},t||Ta))},e.prototype.acquireTokenSilent=function(t){return y(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return _(this,function(d){if(n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(v.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(P.Silent),this.logger.verbose("acquireTokenSilent called",n),i=t.account||this.getActiveAccount(),!i)throw b.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:t.authority||g.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(v.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(O(O({},t),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),o.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:h.requestId}),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,c])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var o;return y(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return _(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(v.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,P.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(v.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Bt.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=O(O({},t),{account:n}),i=this.acquireTokenNative(a,ce.acquireTokenSilent_silentFlow).catch(function(h){return y(u,void 0,void 0,function(){var f;return _(this,function(p){if(h instanceof ot&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(t.correlationId),[2,f.acquireToken(t)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(v.InitializeSilentRequest,t.correlationId),[4,s.initializeSilentRequest(t,n)];case 2:c=d.sent(),l=O(O({},t),{cacheLookupPolicy:t.cacheLookupPolicy||He.Default}),this.performanceClient.setPreQueueTime(v.AcquireTokenFromCache,c.correlationId),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===He.AccessToken)throw h;return pe.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START,P.Silent,c),u.performanceClient.setPreQueueTime(v.AcquireTokenByRefreshToken,c.correlationId),u.acquireTokenByRefreshToken(c,l).catch(function(f){var p=f instanceof zt,m=f instanceof Qe,T=f.errorCode===cr.noTokensFoundError.code,R=f.errorCode===We.INVALID_GRANT_ERROR;if((!p||!R||m||l.cacheLookupPolicy===He.AccessTokenAndRefreshToken||l.cacheLookupPolicy===He.RefreshToken)&&l.cacheLookupPolicy!==He.Skip&&!T)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),u.performanceClient.setPreQueueTime(v.AcquireTokenBySilentIframe,c.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){var f;return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,P.Silent,h),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){var f;throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,P.Silent,null,h),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e}(jf);const Pa="redirect";var Oa=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class Vf extends zf{get account(){return this.getAllAccounts().find(n=>{var o;return((o=n.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const n=Math.ceil(Date.now()/1e3);return t.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,t){super(t),this.tenantId=e}login(e,t=Pa,n=!0){var o;return Oa(this,void 0,void 0,function*(){const i=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:i,scopes:a});if(i&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=Pa,n=!0){return Oa(this,void 0,void 0,function*(){const o=yield this.account;if(n&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${t}]`),t){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const Yf=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:n}=new URL(r);return t+n.replace(/([^:]\/)\/+/g,"$1")},Wf=(r,e,t,n,o)=>{const i=Object.assign({clientId:e,redirectUri:Yf(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(o||Vf)(r,{auth:i,cache:a,system:s})};class Qf extends ro{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case fe.Error:return"error";case fe.Warning:return"warn";case fe.Info:return"info";case fe.Verbose:default:return"debug"}}}loggerCallback(e,t,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var Ao=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Jf="default";class Xf{get defaultClient(){return this.getClient(Jf)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const t=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!t)throw Error("Could not find any config");const n=Wf(t.tenantId,t.clientId,t.redirectUri,t.config);return n.setLogger(new Qf(0)),n}handleRedirect(){return Ao(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,n=t.getLogger(),{requestOrigin:o}=t;yield t.handleRedirectPromise(),o===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return Ao(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return Ao(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var Zf=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Ys={name:"auth",configure:r=>{var e;const t=new qh;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>Zf(void 0,void 0,void 0,function*(){const e=new Xf(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},ep=(r,e)=>({module:Ys,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e??{};n&&Object.entries(n).forEach(([o,i])=>t.configureClient(o,i))}});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var Ma;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Ma||(Ma={}));globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;var xa;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(xa||(xa={}));globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;const Ws=Y.createContext(null),tp=Ws.Provider,rp=Y.createContext({});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__rest;const np=rp.Provider;globalThis&&globalThis.__awaiter;const Si=()=>{let r=Y.useContext(Ws);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r};var op=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class ip extends _h{constructor(){super([Sh,On,Ys]),this.logger=new us("AppConfigurator")}configureHttp(...e){this.addConfig(Dh(...e))}configureHttpClient(...e){this.addConfig(Fh(...e))}useFrameworkServiceClient(e,t){this.addConfig({module:On,configure:(n,o)=>op(this,void 0,void 0,function*(){const i=yield o==null?void 0:o.serviceDiscovery.resolveService(e);if(!i)throw Error(`failed to configure service [${e}]`);n.configureClient(e,Object.assign(Object.assign({},t),{baseUri:i.uri,defaultScopes:i.defaultScopes}))})})}configureMsal(...e){this.addConfig(ep(...e))}}var ap=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const sp=r=>e=>ap(void 0,void 0,void 0,function*(){var t;const n=new ip;r&&(yield Promise.resolve(r(n,e)));const o=yield n.initialize(e.fusion.modules);return!((t=e.env.manifest)===null||t===void 0)&&t.key&&o.event.dispatchEvent("onAppModulesLoaded",{detail:{appKey:e.env.manifest.key,modules:o}}),o});function Wr(r){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(r)}function cp(r,e){if(Wr(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Wr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function lp(r){var e=cp(r,"string");return Wr(e)==="symbol"?e:String(e)}function up(r,e,t){return e=lp(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function La(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function J(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?La(Object(t),!0).forEach(function(n){up(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):La(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function dp(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function Et(r,e){if(r==null)return{};var t=dp(r,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function hp(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var fp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pp=hp(function(r){return fp.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),he="-ms-",jr="-moz-",ie="-webkit-",Qs="comm",no="rule",Ii="decl",gp="@import",Js="@keyframes",mp="@layer",vp=Math.abs,Ai=String.fromCharCode,Zo=Object.assign;function yp(r,e){return Ce(r,0)^45?(((e<<2^Ce(r,0))<<2^Ce(r,1))<<2^Ce(r,2))<<2^Ce(r,3):0}function Xs(r){return r.trim()}function ht(r,e){return(r=e.exec(r))?r[0]:r}function W(r,e,t){return r.replace(e,t)}function bn(r,e){return r.indexOf(e)}function Ce(r,e){return r.charCodeAt(e)|0}function vr(r,e,t){return r.slice(e,t)}function nt(r){return r.length}function Zs(r){return r.length}function Lr(r,e){return e.push(r),r}function _p(r,e){return r.map(e).join("")}function Ua(r,e){return r.filter(function(t){return!ht(t,e)})}var oo=1,yr=1,ec=0,ze=0,ve=0,Sr="";function io(r,e,t,n,o,i,a,s){return{value:r,root:e,parent:t,type:n,props:o,children:i,line:oo,column:yr,length:a,return:"",siblings:s}}function St(r,e){return Zo(io("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function er(r){for(;r.root;)r=St(r.root,{children:[r]});Lr(r,r.siblings)}function Ep(){return ve}function Cp(){return ve=ze>0?Ce(Sr,--ze):0,yr--,ve===10&&(yr=1,oo--),ve}function Je(){return ve=ze<ec?Ce(Sr,ze++):0,yr++,ve===10&&(yr=1,oo++),ve}function Kt(){return Ce(Sr,ze)}function Tn(){return ze}function ao(r,e){return vr(Sr,r,e)}function ei(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wp(r){return oo=yr=1,ec=nt(Sr=r),ze=0,[]}function bp(r){return Sr="",r}function Ro(r){return Xs(ao(ze-1,ti(r===91?r+2:r===40?r+1:r)))}function Tp(r){for(;(ve=Kt())&&ve<33;)Je();return ei(r)>2||ei(ve)>3?"":" "}function Sp(r,e){for(;--e&&Je()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return ao(r,Tn()+(e<6&&Kt()==32&&Je()==32))}function ti(r){for(;Je();)switch(ve){case r:return ze;case 34:case 39:r!==34&&r!==39&&ti(ve);break;case 40:r===41&&ti(r);break;case 92:Je();break}return ze}function Ip(r,e){for(;Je()&&r+ve!==47+10;)if(r+ve===42+42&&Kt()===47)break;return"/*"+ao(e,ze-1)+"*"+Ai(r===47?r:Je())}function Ap(r){for(;!ei(Kt());)Je();return ao(r,ze)}function Rp(r){return bp(Sn("",null,null,null,[""],r=wp(r),0,[0],r))}function Sn(r,e,t,n,o,i,a,s,c){for(var l=0,u=0,d=a,h=0,f=0,p=0,m=1,T=1,R=1,w=0,k="",X=o,Z=i,z=n,B=k;T;)switch(p=w,w=Je()){case 40:if(p!=108&&Ce(B,d-1)==58){bn(B+=W(Ro(w),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:B+=Ro(w);break;case 9:case 10:case 13:case 32:B+=Tp(p);break;case 92:B+=Sp(Tn()-1,7);continue;case 47:switch(Kt()){case 42:case 47:Lr(kp(Ip(Je(),Tn()),e,t,c),c);break;default:B+="/"}break;case 123*m:s[l++]=nt(B)*R;case 125*m:case 59:case 0:switch(w){case 0:case 125:T=0;case 59+u:R==-1&&(B=W(B,/\f/g,"")),f>0&&nt(B)-d&&Lr(f>32?Da(B+";",n,t,d-1,c):Da(W(B," ","")+";",n,t,d-2,c),c);break;case 59:B+=";";default:if(Lr(z=Ha(B,e,t,l,u,o,s,k,X=[],Z=[],d,i),i),w===123)if(u===0)Sn(B,e,z,z,X,i,d,s,Z);else switch(h===99&&Ce(B,3)===110?100:h){case 100:case 108:case 109:case 115:Sn(r,z,z,n&&Lr(Ha(r,z,z,0,0,o,s,k,o,X=[],d,Z),Z),o,Z,d,s,n?X:Z);break;default:Sn(B,z,z,z,[""],Z,0,s,Z)}}l=u=f=0,m=R=1,k=B="",d=a;break;case 58:d=1+nt(B),f=p;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Cp()==125)continue}switch(B+=Ai(w),w*m){case 38:R=u>0?1:(B+="\f",-1);break;case 44:s[l++]=(nt(B)-1)*R,R=1;break;case 64:Kt()===45&&(B+=Ro(Je())),h=Kt(),u=d=nt(k=B+=Ap(Tn())),w++;break;case 45:p===45&&nt(B)==2&&(m=0)}}return i}function Ha(r,e,t,n,o,i,a,s,c,l,u,d){for(var h=o-1,f=o===0?i:[""],p=Zs(f),m=0,T=0,R=0;m<n;++m)for(var w=0,k=vr(r,h+1,h=vp(T=a[m])),X=r;w<p;++w)(X=Xs(T>0?f[w]+" "+k:W(k,/&\f/g,f[w])))&&(c[R++]=X);return io(r,e,t,o===0?no:s,c,l,u,d)}function kp(r,e,t,n){return io(r,e,t,Qs,Ai(Ep()),vr(r,2,-2),0,n)}function Da(r,e,t,n,o){return io(r,e,t,Ii,vr(r,0,n),vr(r,n+1,-1),n,o)}function tc(r,e,t){switch(yp(r,e)){case 5103:return ie+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+r+r;case 4789:return jr+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+r+jr+r+he+r+r;case 5936:switch(Ce(r,e+11)){case 114:return ie+r+he+W(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return ie+r+he+W(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return ie+r+he+W(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return ie+r+he+r+r;case 6165:return ie+r+he+"flex-"+r+r;case 5187:return ie+r+W(r,/(\w+).+(:[^]+)/,ie+"box-$1$2"+he+"flex-$1$2")+r;case 5443:return ie+r+he+"flex-item-"+W(r,/flex-|-self/g,"")+(ht(r,/flex-|baseline/)?"":he+"grid-row-"+W(r,/flex-|-self/g,""))+r;case 4675:return ie+r+he+"flex-line-pack"+W(r,/align-content|flex-|-self/g,"")+r;case 5548:return ie+r+he+W(r,"shrink","negative")+r;case 5292:return ie+r+he+W(r,"basis","preferred-size")+r;case 6060:return ie+"box-"+W(r,"-grow","")+ie+r+he+W(r,"grow","positive")+r;case 4554:return ie+W(r,/([^-])(transform)/g,"$1"+ie+"$2")+r;case 6187:return W(W(W(r,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),r,"")+r;case 5495:case 3959:return W(r,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return W(W(r,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+he+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+r+r;case 4200:if(!ht(r,/flex-|baseline/))return he+"grid-column-align"+vr(r,e)+r;break;case 2592:case 3360:return he+W(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,o){return e=o,ht(n.props,/grid-\w+-end/)})?~bn(r+(t=t[e].value),"span")?r:he+W(r,"-start","")+r+he+"grid-row-span:"+(~bn(t,"span")?ht(t,/\d+/):+ht(t,/\d+/)-+ht(r,/\d+/))+";":he+W(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return ht(n.props,/grid-\w+-start/)})?r:he+W(W(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return W(r,/(.+)-inline(.+)/,ie+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nt(r)-1-e>6)switch(Ce(r,e+1)){case 109:if(Ce(r,e+4)!==45)break;case 102:return W(r,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+jr+(Ce(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~bn(r,"stretch")?tc(W(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return W(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,s,c,l){return he+o+":"+i+l+(a?he+o+"-span:"+(s?c:+c-+i)+l:"")+r});case 4949:if(Ce(r,e+6)===121)return W(r,":",":"+ie)+r;break;case 6444:switch(Ce(r,Ce(r,14)===45?18:11)){case 120:return W(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ie+(Ce(r,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+he+"$2box$3")+r;case 100:return W(r,":",":"+he)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return W(r,"scroll-","scroll-snap-")+r}return r}function jn(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function Np(r,e,t,n){switch(r.type){case mp:if(r.children.length)break;case gp:case Ii:return r.return=r.return||r.value;case Qs:return"";case Js:return r.return=r.value+"{"+jn(r.children,n)+"}";case no:if(!nt(r.value=r.props.join(",")))return""}return nt(t=jn(r.children,n))?r.return=r.value+"{"+t+"}":""}function Pp(r){var e=Zs(r);return function(t,n,o,i){for(var a="",s=0;s<e;s++)a+=r[s](t,n,o,i)||"";return a}}function Op(r){return function(e){e.root||(e=e.return)&&r(e)}}function Mp(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case Ii:r.return=tc(r.value,r.length,t);return;case Js:return jn([St(r,{value:W(r.value,"@","@"+ie)})],n);case no:if(r.length)return _p(t=r.props,function(o){switch(ht(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":er(St(r,{props:[W(o,/:(read-\w+)/,":"+jr+"$1")]})),er(St(r,{props:[o]})),Zo(r,{props:Ua(t,n)});break;case"::placeholder":er(St(r,{props:[W(o,/:(plac\w+)/,":"+ie+"input-$1")]})),er(St(r,{props:[W(o,/:(plac\w+)/,":"+jr+"$1")]})),er(St(r,{props:[W(o,/:(plac\w+)/,he+"input-$1")]})),er(St(r,{props:[o]})),Zo(r,{props:Ua(t,n)});break}return""})}}var xp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ri=typeof window<"u"&&"HTMLElement"in window,Lp=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Fa=/invalid hook call/i,ln=new Set,Up=function(r,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(r).concat(t,` has been created dynamically.
34
+ Error Description: `+l.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in ac?ac[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(n){return ie.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==Vn.None){var o=t.tenant?t.tenant:g.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+o+"/"}return n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(t)>-1)return o}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return g.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,n){var o=new ie(e);o.validateAsUri();var i=o.getUrlComponents(),a=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=t+"."+g.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ie.constructAuthorityUriFromObject(ue(ue({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,g.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(e){var t=e.endsWith(g.FORWARD_SLASH)?e:""+e+g.FORWARD_SLASH,n=new ie(e),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(g.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];t=""+t+i+g.AAD_TENANT_DOMAIN_SUFFIX}return t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Tr.COMMON,Tr.CONSUMERS,Tr.ORGANIZATIONS]),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var si=function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,o,i,a,s){return X(this,void 0,void 0,function(){var c,l,u;return Z(this,function(d){switch(d.label){case 0:a==null||a.addQueueMeasurement(y.AuthorityFactoryCreateDiscoveredInstance,s),c=Wn.transformCIAMAuthority(e),l=r.createInstance(c,t,n,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a==null||a.setPreQueueTime(y.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw u=d.sent(),O.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},r.createInstance=function(e,t,n,o,i,a,s){if(N.isEmpty(e))throw ge.createUrlEmptyError();return new Wn(e,t,n,o,i,a,s)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ci=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var n=e.indexOf(Pe.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var sc=function(){function r(){}return r.isThrottlingEntity=function(e,t){var n=!1;e&&(n=e.indexOf(Bn.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var kg={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(r))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var Io={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},cc=function(r){Je(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(Io.missingKidError.code,Io.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Io.missingAlgError.code,Io.missingAlgError.desc)},e}(D);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ng=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw cc.createMissingKidError();if(!e.alg)throw cc.createMissingAlgError();var t=new r({typ:e.typ||fa.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Og=function(){function r(e,t){this.cacheOutcome=Jt.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||g.EMPTY_STRING,this.wrapperVer=e.wrapperVer||g.EMPTY_STRING,this.telemetryCacheKey=Pe.CACHE_KEY+Ie.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Pe.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Pe.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Pe.VALUE_SEPARATOR);return[Pe.SCHEMA_VERSION,o,t].join(Pe.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(Pe.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(Pe.VALUE_SEPARATOR),i=e.errors.length,a=t<i?Pe.OVERFLOW_TRUE:Pe.OVERFLOW_FALSE,s=[i,a].join(Pe.VALUE_SEPARATOR);return[Pe.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Pe.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Pe.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),N.isEmpty(e.subError)?N.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Pe.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new ci,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new ci;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},r.maxErrorsToSend=function(e){var t,n=0,o=0,i=e.errors.length;for(t=0;t<i;t++){var a=e.failedRequests[2*t]||g.EMPTY_STRING,s=e.failedRequests[2*t+1]||g.EMPTY_STRING,c=e.errors[t]||g.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<Pe.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||g.EMPTY_STRING),e.push(this.regionSource||g.EMPTY_STRING),e.push(this.regionOutcome||g.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ju=function(){function r(e,t,n,o,i,a){this.authority=t,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.getIntFields=function(){return wg},r.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return n.time},r.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},r.prototype.addQueueMeasurement=function(e,t,n,o){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:n,manuallyCompleted:o},a=this.queueMeasurements.get(t);if(a)a.push(i),this.queueMeasurements.set(t,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var s=[i];this.queueMeasurements.set(t,s)}this.preQueueTimeByCorrelationId.delete(t)},r.prototype.startMeasurement=function(e,t){var n=this,o,i,a=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:ii.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(c),{endMeasurement:function(l){return n.endMeasurement(ue(ue({},c),l),s)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,c.correlationId)},increment:function(l){return n.increment(l,c.correlationId)},measurement:s,event:c}},r.prototype.endMeasurement=function(e,t){var n=this,o,i,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):(o=a.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),t==null||t.endMeasurement();var l=t==null?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(l),ue({},a);var u=ue(ue({},a),e),d=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(h){n.logger.trace("PerformanceClient: Incomplete submeasurement "+h.name+" found for "+e.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=ue(ue({},u),{durationMs:Math.round(l),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:ii.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},r.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,ue(ue({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var o in e)n.hasOwnProperty(o)||(n[o]=0),n[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,ue({},e)))},r.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,o=0,i=0;return t==null||t.forEach(function(a){n+=a.queueTime,o++,i+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:o,manuallyCompletedCount:i}},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},r.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},r.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},r.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,t),o.apply(null,[e])})},r.prototype.truncateIntegralFields=function(e,t){t.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var uc=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),Pg=function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new uc},e.prototype.startPerformanceMeasurement=function(){return new uc},e.prototype.calculateQueuedTime=function(t,n){return 0},e.prototype.addQueueMeasurement=function(t,n,o){},e.prototype.setPreQueueTime=function(t,n){},e}(ju);/*! @azure/msal-browser v2.38.2 2023-08-24 */var S={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},A=function(r){Le(e,r);function e(t,n){var o=r.call(this,t,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(t){return new e(S.pkceNotGenerated.code,S.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(S.cryptoDoesNotExist.code,S.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(S.httpMethodNotImplementedError.code,S.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(S.emptyNavigateUriError.code,S.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(S.hashEmptyError.code,S.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(S.hashDoesNotContainStateError.code,S.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(S.hashDoesNotContainKnownPropertiesError.code,S.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(S.unableToParseStateError.code,S.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(S.stateInteractionTypeMismatchError.code,S.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(S.interactionInProgress.code,S.interactionInProgress.desc)},e.createPopupWindowError=function(t){var n=S.popupWindowError.desc;return n=N.isEmpty(t)?n:n+" Details: "+t,new e(S.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(S.emptyWindowError.code,S.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(S.userCancelledError.code,S.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(S.monitorPopupTimeoutError.code,S.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(S.monitorIframeTimeoutError.code,S.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(S.redirectInIframeError.code,S.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(S.blockTokenRequestsInHiddenIframeError.code,S.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(S.blockAcquireTokenInPopupsError.code,S.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(S.iframeClosedPrematurelyError.code,S.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(S.silentLogoutUnsupportedError.code,S.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(S.noAccountError.code,S.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(S.silentPromptValueError.code,S.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(S.unableToParseTokenRequestCacheError.code,S.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(S.noTokenRequestCacheError.code,S.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(S.authRequestNotSet.code,S.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(S.noCachedAuthorityError.code,S.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(S.invalidCacheType.code,""+S.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(S.notInBrowserEnvironment.code,S.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(S.databaseNotOpen.code,S.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(S.noNetworkConnectivity.code,S.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(S.postRequestFailed.code,S.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(S.getRequestFailed.code,S.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(S.failedToParseNetworkResponse.code,S.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(S.unableToLoadTokenError.code,S.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(S.signingKeyNotFoundInStorage.code,S.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(S.authCodeRequired.code,S.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(S.authCodeOrNativeAccountRequired.code,S.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(S.spaCodeAndNativeAccountPresent.code,S.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(S.databaseUnavailable.code,S.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(S.unableToAcquireTokenFromNativePlatform.code,S.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(S.nativeHandshakeTimeout.code,S.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(S.nativeExtensionNotInstalled.code,S.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(S.nativeConnectionNotEstablished.code,S.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(S.nativeBrokerCalledBeforeInitialize.code,S.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(S.nativePromptNotSupported.code,S.nativePromptNotSupported.desc)},e}(D);/*! @azure/msal-browser v2.38.2 2023-08-24 */var ft={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Ln={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Dt;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(Dt||(Dt={}));var we;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(we||(we={}));var Tt;(function(r){r.GET="GET",r.POST="POST"})(Tt||(Tt={}));var se;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(se||(se={}));var _t;(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(_t||(_t={}));var Qr;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(Qr||(Qr={}));var pe;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(pe||(pe={}));var x;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(x||(x={}));var lc;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(lc||(lc={}));var dc={scopes:fo},mn="jwk",hc;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(hc||(hc={}));var va="msal.db",Mg=1,xg=va+".keys",Ye;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(Ye||(Ye={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var ze={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},ui=function(r){Le(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(ze.redirectUriNotSet.code,ze.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(ze.postLogoutUriNotSet.code,ze.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(ze.storageNotSupportedError.code,ze.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(ze.noRedirectCallbacksSet.code,ze.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(ze.stubPcaInstanceCalled.code,ze.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(ze.inMemRedirectUnavailable.code,ze.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(ze.entropyNotProvided.code,ze.entropyNotProvided.desc)},e}(D);/*! @azure/msal-browser v2.38.2 2023-08-24 */var fc=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==we.LocalStorage&&e!==we.SessionStorage)throw ui.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw ui.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var ya=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var zu=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(N.isEmpty(t))return null;try{var n=qt.parseRequestState(e,t);return n.libraryState.meta}catch(o){throw O.createInvalidStateError(t,o)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new ie(e);return ie.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _a=function(r){Le(e,r);function e(t,n,o,i){var a=r.call(this,t,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new ya,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(t){switch(t){case we.LocalStorage:case we.SessionStorage:try{return new fc(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=we.MemoryStorage,new ya},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case we.LocalStorage:case we.SessionStorage:try{return new fc(t||we.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case we.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=g.CACHE_PREFIX+"."+Te.ID_TOKEN,o=g.CACHE_PREFIX+"."+Te.CLIENT_INFO,i=g.CACHE_PREFIX+"."+Te.ERROR,a=g.CACHE_PREFIX+"."+Te.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[Te.ID_TOKEN,Te.CLIENT_INFO,Te.ERROR,Te.ERROR_DESC];h.forEach(function(f,p){return t.migrateCacheEntry(f,d[p])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(_t.ACCOUNT_KEYS),o=this.getItem(_t.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(t.isCredentialKey(a)){var s=t.getItem(a);if(s){var c=t.validateAndParseJson(s);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case $.ID_TOKEN:if(hr.isIdTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var l=Qe.toObject(new hr,c),u=t.updateCredentialCacheKey(a,l);t.addTokenKey(u,$.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case $.ACCESS_TOKEN:case $.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(fr.isAccessTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=Qe.toObject(new fr,c),u=t.updateCredentialCacheKey(a,d);t.addTokenKey(u,$.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case $.REFRESH_TOKEN:if(jr.isRefreshTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var h=Qe.toObject(new jr,c),u=t.updateCredentialCacheKey(a,h);t.addTokenKey(u,$.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(t.isAccountKey(a)){var s=t.getItem(a);if(s){var f=t.validateAndParseJson(s);f&&xe.isAccountEntity(f)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),t.addAccountKeyToMap(a))}}})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);if(!n)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(n);return!o||!xe.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):Qe.toObject(new xe,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(_t.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(_t.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var n=this.getAccountKeys(),o=n.indexOf(t);o>-1?(n.splice(o,1),this.setItem(_t.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return w(this,void 0,void 0,function(){return b(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,$.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return w(this,void 0,void 0,function(){return b(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,$.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,$.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(_t.TOKEN_KEYS+"."+this.clientId);if(t){var n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case $.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case $.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case $.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),O.createUnexpectedCredentialTypeError()}this.setItem(_t.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case $.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=o.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case $.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var a=o.accessToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case $.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var s=o.refreshToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),O.createUnexpectedCredentialTypeError()}this.setItem(_t.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!hr.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Qe.toObject(new hr,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,$.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!fr.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Qe.toObject(new fr,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,$.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!jr.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,$.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Qe.toObject(new jr,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,$.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!ga.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Qe.toObject(new ga,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!ci.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Qe.toObject(new ci,o))},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&ma.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Qe.toObject(new ma,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,n=this.internalStorage.getKeys();return n.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(Qr.WRAPPER_SKU,t),this.internalStorage.setItem(Qr.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Qr.WRAPPER_SKU)||g.EMPTY_STRING,n=this.internalStorage.getItem(Qr.WRAPPER_VER)||g.EMPTY_STRING;return[t,n]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Te.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(Te.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var n=this.generateCacheKey(Te.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Te.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return t?t===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw O.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!sc.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Qe.toObject(new sc,o))},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){var o=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===we.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(t,n,o){var i=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return rs(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return w(this,void 0,void 0,function(){var t=this;return b(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(g.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return w(this,void 0,void 0,function(){var t,n,o=this;return b(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var s=o.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(o.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return i.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,o){var i=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return g.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,n=g.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){var a=i.split("=")[0];t.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,g.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var n=new Date,o=new Date(n.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var n=this.validateAndParseJson(t);return n?JSON.stringify(t):N.startsWith(t,g.CACHE_PREFIX)||N.startsWith(t,Te.ADAL_ID_TOKEN)?t:g.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var n=qt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(se.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(t){var n=qt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(se.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(t){var n=qt.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(se.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(t){var n=this.generateStateKey(t),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(t,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:Ze.HOME_ACCOUNT_ID};this.setTemporaryCache(se.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!N.isEmpty(i)){var u={credential:i,type:Ze.UPN};this.setTemporaryCache(se.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(t){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),N.isEmpty(t)||this.getKeys().forEach(function(o){o.indexOf(t)!==-1&&n.removeItem(o)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(se.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(se.ORIGIN_URI)),this.removeItem(this.generateCacheKey(se.URL_HASH)),this.removeItem(this.generateCacheKey(se.CORRELATION_ID)),this.removeItem(this.generateCacheKey(se.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(se.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var n=this.generateStateKey(t),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||g.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(se.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(i){var a=zu.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===t&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(t));this.setTemporaryCache(se.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(t,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(se.REQUEST_PARAMS,!0);if(!o)throw A.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw A.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(se.REQUEST_PARAMS)),N.isEmpty(i.authority)){var a=this.generateAuthorityKey(t),s=this.getTemporaryCache(a);if(!s)throw A.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(se.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(t);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var n=this.getInteractionInProgress();return t?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var t=g.CACHE_PREFIX+"."+se.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var n=g.CACHE_PREFIX+"."+se.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw A.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Te.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Te.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Te.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Te.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||t;if(o){var i=new At(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,n){var o=n.generateCredentialKey();if(t!==o){var i=this.getItem(t);if(i)return this.removeItem(t),this.setItem(o,i),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(se.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(se.REDIRECT_CONTEXT,t,!0)},e}(Qe),Lg=function(r,e){var t={cacheLocation:we.MemoryStorage,temporaryCacheLocation:we.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new _a(r,t,ri,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var Vi="@azure/msal-browser",zn="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ug=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return w(this,void 0,void 0,function(){var n,o,i;return b(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:Tt.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?A.createGetRequestFailedError(o,e):A.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=a.sent(),i.status=n.status,i)];case 5:throw a.sent(),A.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return w(this,void 0,void 0,function(){var n,o,i,a;return b(this,function(s){switch(s.label){case 0:n=t&&t.body||g.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:Tt.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?A.createPostRequestFailedError(i,e):A.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(a.body=s.sent(),a.status=o.status,a)];case 6:throw s.sent(),A.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var n=e.headers;return Object.keys(n).forEach(function(o){t.append(o,n[o])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(n,o){t[o]=n}),t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Hg=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,this.sendRequestAsync(e,Tt.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,this.sendRequestAsync(e,Tt.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(t,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(t===Tt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:c,status:s.status};i(l)}catch{a(A.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===Tt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.createGetRequestFailedError("Failed with status "+s.status,e)):a(A.createNoNetworkConnectivityError())},t===Tt.POST&&n&&n.body)s.send(n.body);else if(t===Tt.GET)s.send();else throw A.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _e=function(){function r(){}return r.clearHash=function(e){e.location.hash=g.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,g.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):g.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(ft.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new ie(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Ug:new Hg},r.blockReloadInHiddenIframes=function(){var e=ie.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw A.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===x.Redirect&&n&&!t)throw A.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw A.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw A.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw A.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=t>0||n>0,a=o>0;return i||a},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Qu=function(){function r(e,t,n,o,i,a,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(ft.MSAL_SKU,zn,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return w(this,void 0,void 0,function(){return b(this,function(t){switch(t.label){case 0:if(!e)return[3,5];xe.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(xe.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},r.prototype.initializeBaseRequest=function(e,t){return w(this,void 0,void 0,function(){var n,o,i,a;return b(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(y.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(o=rs(e&&e.scopes||[]),i=L(L({},e),{correlationId:this.correlationId,authority:n,scopes:o}),!i.authenticationScheme)i.authenticationScheme=de.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===de.SSH){if(!e.sshJwk)throw ge.createMissingSshJwkError();if(!e.sshKid)throw ge.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!N.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,i]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||_e.getCurrentUri();return ie.getAbsoluteUrl(t,_e.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return w(this,void 0,void 0,function(){var n;return b(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=o.sent(),!n.isAlias(t.environment))throw ge.createAuthorityMismatchError();return[2]}})})},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Og(n,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,si.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,si.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Sn=function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return w(this,void 0,void 0,function(){var n,o;return b(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(y.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=L(L({},t),{redirectUri:t.redirectUri,code:g.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=g.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n=L({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=ie.getAbsoluteUrl(t.postLogoutRedirectUri,_e.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=ie.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,_e.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=ie.getAbsoluteUrl(_e.getCurrentUri(),_e.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,n,o){return w(this,void 0,void 0,function(){var i;return b(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(y.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(y.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Bu(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,o){return w(this,void 0,void 0,function(){var i,a;return b(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(y.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(y.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:ft.MSAL_SKU,version:zn,cpu:g.EMPTY_STRING,os:g.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw A.createHashDoesNotContainStateError();var i=zu.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw A.createUnableToParseStateError();if(i.interactionType!==n)throw A.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var o;return w(this,void 0,void 0,function(){var i,a,s,c;return b(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(y.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(y.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=Wn.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(y.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,si.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return w(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return b(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(y.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),i={interactionType:n},a=qt.setRequestState(this.browserCrypto,t&&t.state||g.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(y.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=L.apply(void 0,[L.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:Zo.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),N.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Qu);/*! @azure/msal-browser v2.38.2 2023-08-24 */var as=function(){function r(e,t,n,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return r.prototype.handleCodeResponseFromHash=function(e,t,n,o){return w(this,void 0,void 0,function(){var i,a,s;return b(this,function(c){if(this.performanceClient.addQueueMeasurement(y.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),N.isEmpty(e))throw A.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw O.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof Nr&&l.subError===S.userCancelledError.code?A.createUserCancelledError():l}return this.performanceClient.setPreQueueTime(y.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,o)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,o,i){return i===void 0&&(i=!0),w(this,void 0,void 0,function(){var a,s,c,l,u,d;return b(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(y.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw O.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(y.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]):[3,2];case 1:h.sent(),h.label=2;case 2:return i&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(y.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=h.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return w(this,void 0,void 0,function(){var o,i;return b(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(y.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,si.createDiscoveredInstance(o,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(se.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var pc=function(r){Le(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.browserCrypto=a,c}return e.prototype.initiateAuthRequest=function(t,n){return w(this,void 0,void 0,function(){var o,i;return b(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),N.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(se.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(se.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:pe.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(t,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),A.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,o,i){return w(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return b(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),N.isEmpty(t))throw A.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw O.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(p){throw p instanceof Nr&&p.subError===S.userCancelledError.code?A.createUserCancelledError():p}return l=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(as);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Y;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Y||(Y={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var Wt;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(Wt||(Wt={}));var On={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},It=function(r){Le(e,r);function e(t,n,o){var i=r.call(this,t,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===Wt.PERSISTENT_ERROR||this.ext.status===Wt.DISABLED))return!0;switch(this.errorCode){case On.extensionError.code:return!0;default:return!1}},e.createError=function(t,n,o){if(o&&o.status)switch(o.status){case Wt.ACCOUNT_UNAVAILABLE:return pt.createNativeAccountUnavailableError();case Wt.USER_INTERACTION_REQUIRED:return new pt(t,n);case Wt.USER_CANCEL:return A.createUserCancelledError();case Wt.NO_NETWORK:return A.createNoNetworkConnectivityError()}return new e(t,n,o)},e.createUserSwitchError=function(){return new e(On.userSwitch.code,On.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(On.tokensNotFoundInCache.code,On.tokensNotFoundInCache.desc)},e}(D);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Vu=function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s;return b(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(y.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(pe.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof A&&s.errorCode===S.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,o){return w(this,void 0,void 0,function(){var i;return b(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(y.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Tg(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return w(this,void 0,void 0,function(){var o;return b(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(y.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(y.InitializeBaseRequest,this.correlationId),o=[L({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,L.apply(void 0,[L.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Jr=function(r){Le(e,r);function e(t,n,o,i,a,s,c,l,u,d,h,f){var p=r.call(this,t,n,o,i,a,s,l,u,f)||this;return p.apiId=c,p.accountId=d,p.nativeMessageHandler=u,p.nativeStorageManager=h,p.silentCacheClient=new Vu(t,p.nativeStorageManager,o,i,a,s,l,u,f),p}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return b(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(y.NativeInteractionClientAcquireToken,t.correlationId),o=ct.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Dt.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=u.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:De.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return w(this,void 0,void 0,function(){var o,i,a,s;return b(this,function(c){switch(c.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),O.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw O.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=c.sent(),[2,a];case 3:throw s=c.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c;return b(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=l.sent(),o={method:Dt.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=l.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=l.sent(),a instanceof It&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(se.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:pe.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return w(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return b(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=t.prompt,o=ec(t,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(se.NATIVE_REQUEST)),i={method:Dt.GetToken,request:o},a=ct.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=u.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=u.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,n,o){return w(this,void 0,void 0,function(){var i,a,s,c,l,u;return b(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw It.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=d.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(t),c=this.createHomeAccountIdentifier(t,s),l=this.createAccountEntity(t,c,s,a),[4,this.generateAuthenticationResult(t,n,s,l,i.canonicalAuthority,o)];case 2:return u=d.sent(),this.cacheAccount(l),this.cacheNativeTokens(t,n,c,l,s,u.accessToken,u.tenantId,o),[2,u]}})})},e.prototype.createIdTokenObj=function(t){return new At(t.id_token||g.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){var o=xe.generateHomeAccountId(t.client_info||g.EMPTY_STRING,Be.Default,this.logger,this.browserCrypto,n);return o},e.prototype.createAccountEntity=function(t,n,o,i){return xe.createAccount(t.client_info,n,o,void 0,void 0,void 0,i,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?De.fromString(t.scope):De.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return w(this,void 0,void 0,function(){var o,i;return b(this,function(a){switch(a.label){case 0:if(n.tokenType!==de.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new gn(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw O.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,o,i,a,s){return w(this,void 0,void 0,function(){var c,l,u,d,h,f,p,v;return b(this,function(_){switch(_.label){case 0:return c=this.addTelemetryFromNativeResponse(t),l=t.scope?De.fromString(t.scope):De.fromString(n.scope),u=t.account.properties||{},d=u.UID||o.claims.oid||o.claims.sub||g.EMPTY_STRING,h=u.TenantId||o.claims.tid||g.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return f=_.sent(),p=n.tokenType===de.POP?de.POP:de.BEARER,v={authority:a,uniqueId:d,tenantId:h,scopes:l.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:f,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,v]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,n,o,i,a,s,c,l){var u=hr.createIdTokenEntity(o,n.authority,t.id_token||g.EMPTY_STRING,n.clientId,a.claims.tid||g.EMPTY_STRING),d=n.tokenType===de.POP?g.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,h=l+d,f=this.generateScopes(t,n),p=fr.createAccessTokenEntity(o,n.authority,s,n.clientId,a?a.claims.tid||g.EMPTY_STRING:c,f.printScopes(),h,0,this.browserCrypto),v=new jn(i,u,p);this.nativeStorageManager.saveCacheRecord(v)},e.prototype.addTelemetryFromNativeResponse=function(t){var n=this.getMATSFromResponse(t);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw It.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f=this;return b(this,function(p){switch(p.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:p.sent(),p.label=2;case 2:return o=new ie(n),o.validateAsUri(),i=t.scopes,a=ec(t,["scopes"]),s=new De(i||[]),s.appendScopes(fo),c=function(){switch(f.apiId){case pe.ssoSilent:case pe.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),qe.NONE}if(!t.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case qe.NONE:case qe.CONSENT:case qe.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),A.createNativePromptParameterNotSupportedError()}},l=L(L({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:L(L(L({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:Ln.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==de.POP?[3,4]:(u={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},d=new gn(this.browserCrypto),[4,d.generateCnf(u)]);case 3:h=p.sent(),l.reqCnf=h.reqCnfString,l.keyId=h.kid,p.label=4;case 4:return[2,l]}})})},e}(Qu);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Sr=function(){function r(e,t,n,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(y.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return w(this,void 0,void 0,function(){var t,n=this;return b(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Ln.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,a){n.resolvers.set(t.responseId,{resolve:i,reject:a})})]})})},r.createProvider=function(e,t,n){return w(this,void 0,void 0,function(){var o,i;return b(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new r(e,t,n,Ln.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new r(e,t,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return w(this,void 0,void 0,function(){var e,t=this;return b(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Ln.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Dt.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(A.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==Ln.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Dt.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(A.createNativeExtensionNotInstalledError()))}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===Dt.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(It.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(It.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw D.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===Dt.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case de.BEARER:case de.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Dg=function(r){Le(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return b(this,function(f){switch(f.label){case 0:return this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,x.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||g.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(pe.acquireTokenRedirect),i=function(p){p.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state),h.eventHandler.emitEvent(Y.RESTORE_FROM_BFCACHE,x.Redirect))},f.label=2;case 2:return f.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new pc(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(L(L({},n),{nativeBroker:Sr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw d=f.sent(),d instanceof D&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f,p;return b(this,function(v){switch(v.label){case 0:n=this.initializeServerTelemetryManager(pe.handleRedirectPromise),v.label=1;case 1:if(v.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(x.Redirect),[2,null];i=void 0;try{a=ie.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,x.Redirect),this.logger.verbose("State extracted from hash")}catch(_){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+_),this.browserStorage.cleanRequestByInteractionType(x.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(se.ORIGIN_URI,!0)||g.EMPTY_STRING,c=ie.removeHashFromUrl(s),l=ie.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return u=v.sent(),s.indexOf("#")>-1&&_e.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!_e.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(se.URL_HASH,o,!0),d={apiId:pe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(f=_e.getHomepage(),this.browserStorage.setTemporaryCache(se.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)]):[3,6]):[3,9];case 5:return h=v.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=v.sent(),v.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];v.label=9;case 9:return[2,null];case 10:throw p=v.sent(),p instanceof D&&p.setCorrelationId(this.correlationId),n.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(x.Redirect),p;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var n=ie.hashContainsKnownProperties(t);if(n)return _e.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(se.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(se.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,n,o){return w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return b(this,function(f){switch(f.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=ie.getDeserializedHash(t),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return s=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,i.correlationId),c=qt.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(L(L({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw A.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),oi.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new pc(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(t,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return b(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(pe.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(Y.LOGOUT_START,x.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:pe.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(Y.LOGOUT_SUCCESS,x.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw l=u.sent(),l instanceof D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(Y.LOGOUT_FAILURE,x.Redirect,null,l),this.eventHandler.emitEvent(Y.LOGOUT_END,x.Redirect),l;case 11:return this.eventHandler.emitEvent(Y.LOGOUT_END,x.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var n=t||window.location.href;return ie.getAbsoluteUrl(n,_e.getCurrentUri())},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Fg=function(r){Le(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){try{var n=this.generatePopupName(t.scopes||fo,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(t,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(n),i=t&&t.authority,a=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,n,o,i){return w(this,void 0,void 0,function(){var a,s,c,l,u,d,h,f,p,v,_,C,E,T,B,G,U,P=this;return b(this,function(q){switch(q.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(pe.acquireTokenPopup),this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,x.Popup)];case 1:s=q.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||g.EMPTY_STRING,s.account||null),q.label=2;case 2:return q.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=q.sent(),this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=q.sent(),this.logger.verbose("Auth code client created"),u=Sr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(y.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(L(L({},s),{nativeBroker:u}))];case 5:return h=q.sent(),f=new as(l,this.browserStorage,c,this.logger,this.performanceClient),p={popup:i,popupName:n,popupWindowAttributes:o},v=this.initiateAuthRequest(h,p),this.eventHandler.emitEvent(Y.POPUP_OPENED,x.Popup,{popupWindow:v},null),[4,this.monitorPopupForHash(v)];case 6:if(_=q.sent(),C=ie.getDeserializedHash(_),E=this.validateAndExtractStateFromHash(C,x.Popup,s.correlationId),oi.removeThrottle(this.browserStorage,this.config.auth.clientId,c),C.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return T=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,C.accountId,this.nativeStorage,s.correlationId),B=qt.parseRequestState(this.browserCrypto,E).userRequestState,[2,T.acquireToken(L(L({},s),{state:B,prompt:void 0})).finally(function(){P.browserStorage.cleanRequestByState(E)})]}return[4,f.handleCodeResponseFromHash(_,E,l.authority,this.networkClient)];case 7:return G=q.sent(),[2,G];case 8:throw U=q.sent(),i&&i.close(),U instanceof D&&U.setCorrelationId(this.correlationId),a.cacheFailedRequest(U),this.browserStorage.cleanRequestByState(s.state),U;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,o,i,a,s){return w(this,void 0,void 0,function(){var c,l,u,d,h,f,p;return b(this,function(v){switch(v.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Y.LOGOUT_START,x.Popup,t),c=this.initializeServerTelemetryManager(pe.logoutPopup),v.label=1;case 1:return v.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return v.sent(),this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,i)];case 3:return l=v.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(t),this.eventHandler.emitEvent(Y.LOGOUT_SUCCESS,x.Popup,t),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(Y.POPUP_OPENED,x.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return v.sent(),s?(h={apiId:pe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=ie.getAbsoluteUrl(s,_e.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=v.sent(),a&&a.close(),p instanceof D&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Y.LOGOUT_FAILURE,x.Popup,null,p),this.eventHandler.emitEvent(Y.LOGOUT_END,x.Popup),c.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(Y.LOGOUT_END,x.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(N.isEmpty(t))throw this.logger.error("Navigate url is empty"),A.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(A.createUserCancelledError());return}var l=g.EMPTY_STRING,u=g.EMPTY_STRING;try{l=t.location.href,u=t.location.hash}catch{}N.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(t),ie.hashContainsKnownProperties(u)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(A.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(A.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=g.EMPTY_STRING;try{a=t.location.href}catch{}N.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(t),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),!o)throw A.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),A.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,n,o){var i,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(i=o.popupSize)===null||i===void 0?void 0:i.width,p=(a=o.popupSize)===null||a===void 0?void 0:a.height,v=(s=o.popupPosition)===null||s===void 0?void 0:s.top,_=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=ft.POPUP_WIDTH),(!p||p<0||p>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=ft.POPUP_HEIGHT),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,h/2-ft.POPUP_HEIGHT/2+u)),(!_||_<0||_>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),_=Math.max(0,d/2-ft.POPUP_WIDTH/2+l)),window.open(t,n,"width="+f+", height="+p+", top="+v+", left="+_+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(x.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,n){return ft.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var n=t.account&&t.account.homeAccountId;return ft.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var qg=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Kg=6e4,Ea=6e3,Bg=3e4,$g=2e3;function Gg(r,e){var t=r.auth,n=r.cache,o=r.system,i=r.telemetry,a={clientId:g.EMPTY_STRING,authority:""+g.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:g.EMPTY_STRING,authorityMetadata:g.EMPTY_STRING,redirectUri:g.EMPTY_STRING,postLogoutRedirectUri:g.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Yn.AAD,azureCloudOptions:{azureCloudInstance:Vn.None,tenant:g.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:we.SessionStorage,temporaryCacheLocation:we.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===we.LocalStorage),claimsBasedCachingEnabled:!0},c={loggerCallback:function(){},logLevel:ye.Info,piiLoggingEnabled:!1},l=L(L({},Ku),{loggerOptions:c,networkClient:e?_e.getBrowserNetworkClient():kg,navigationClient:new qg,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Kg,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Ea,navigateFrameWait:e&&_e.detectIEOrEdge()?500:0,redirectNavigationTimeout:Bg,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||$g,pollIntervalMilliseconds:ft.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=L(L({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||c}),d={application:{appName:g.EMPTY_STRING,appVersion:g.EMPTY_STRING}},h={auth:L(L({},a),t),cache:L(L({},s),n),system:L(L({},l),u),telemetry:L(L({},d),i)};return h}/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yu=function(r){Le(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.navigateFrameWait=a.navigateFrameWait,c.pollIntervalMilliseconds=a.pollIntervalMilliseconds,c}return e.prototype.initiateAuthRequest=function(t){return w(this,void 0,void 0,function(){return b(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(y.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),N.isEmpty(t))throw this.logger.info("Navigate url is empty"),A.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(y.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var o=this;return this.performanceClient.addQueueMeasurement(y.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){n<Ea&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Ea+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(t),clearInterval(l),a(A.createMonitorIframeTimeoutError());return}var u=g.EMPTY_STRING,d=t.contentWindow;try{u=d?d.location.href:g.EMPTY_STRING}catch{}if(!N.isEmpty(u)){var h=d?d.location.hash:g.EMPTY_STRING;if(ie.hashContainsKnownProperties(h)){o.removeHiddenIframe(t),clearInterval(l),i(h);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(y.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=t,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(as);/*! @azure/msal-browser v2.38.2 2023-08-24 */var jg=function(r){Le(e,r);function e(t,n,o,i,a,s,c,l,u,d,h){var f=r.call(this,t,n,o,i,a,s,l,d,h)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s;return b(this,function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(y.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(y.SilentIframeClientAcquireToken,t.correlationId),N.isEmpty(t.loginHint)&&N.isEmpty(t.sid)&&(!t.account||N.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==qe.NONE&&t.prompt!==qe.NO_SESSION)throw n.endMeasurement({success:!1}),A.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(L(L({},t),{prompt:t.prompt||qe.NONE}),x.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||g.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(y.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(y.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof D&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return w(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,f=this;return b(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(y.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=p.sent(),this.performanceClient.setPreQueueTime(y.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(L(L({},n),{nativeBroker:Sr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=p.sent(),a=new Yu(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(y.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=p.sent(),this.performanceClient.setPreQueueTime(y.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=p.sent(),l=ie.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,x.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return d=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=qt.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(L(L({},n),{state:h,prompt:n.prompt||qe.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(y.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(c,u,t.authority,this.networkClient)]}})})},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var zg=function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return b(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(y.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(y.InitializeBaseRequest,t.correlationId),o=[L({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=L.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(y.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(pe.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(y.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof D&&u.setCorrelationId(c.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,o){return w(this,void 0,void 0,function(){var i;return b(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(y.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new $u(i,this.performanceClient)]}})})},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Qg=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},r.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},r.prototype.emitEvent=function(e,t,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:t||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if(typeof n!="object"||!xe.isAccountEntity(n))return;var o=Qe.toObject(new xe,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Y.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Y.ACCOUNT_REMOVED,void 0,i))}catch{return}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ue=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Wu=function(){function r(e){this.cryptoObj=e}return r.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ue.decimalToHex(e[0])+Ue.decimalToHex(e[1])+Ue.decimalToHex(e[2])+Ue.decimalToHex(e[3])+"-"+Ue.decimalToHex(e[4])+Ue.decimalToHex(e[5])+"-"+Ue.decimalToHex(e[6])+Ue.decimalToHex(e[7])+"-"+Ue.decimalToHex(e[8])+Ue.decimalToHex(e[9])+"-"+Ue.decimalToHex(e[10])+Ue.decimalToHex(e[11])+Ue.decimalToHex(e[12])+Ue.decimalToHex(e[13])+Ue.decimalToHex(e[14])+Ue.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=g.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(o=Math.random()*16|0),t[a]==="x"?i+=n[o]:t[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=t[a];return i}},r.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Kt=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,o=e.length,i=0;i<o;i++)t=e.charCodeAt(i),n+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)t=e.charCodeAt(c),t<128?a[s++]=t:t<2048?(a[s++]=192+(t>>>6),a[s++]=128+(t&63)):t<65536?(a[s++]=224+(t>>>12),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<2097152?(a[s++]=240+(t>>>18),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<67108864?(a[s++]=248+(t>>>24),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return t},r.utf8ArrToString=function(e){for(var t=g.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],t+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ju=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,g.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,g.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=Kt.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=g.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return t===0?n:n.substring(0,n.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Vg=function(){function r(){}return r.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return Kt.utf8ArrToString(n)},r.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,g.EMPTY_STRING),o=n.length,i=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,l=0,u=0,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===1){for(s=0;s<3&&u<i;s++,u++)a[u]=l>>>(16>>>s&24)&255;l=0}return a},r.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yg=32,Wg=function(){function r(e){this.base64Encode=new Ju,this.cryptoObj=e}return r.prototype.generateCodes=function(){return w(this,void 0,void 0,function(){var e,t;return b(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Yg);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw A.createPkceNotGeneratedError(n)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return w(this,void 0,void 0,function(){var t,n;return b(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=o.sent(),A.createPkceNotGeneratedError(n);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Jg=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return b(this,function(t){return[2,window.crypto.subtle.exportKey(mn,e)]})})},r.prototype.importKey=function(e,t,n,o){return w(this,void 0,void 0,function(){return b(this,function(i){return[2,window.crypto.subtle.importKey(mn,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Xg=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(rs(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return b(this,function(t){return[2,window.msrCrypto.subtle.exportKey(mn,e)]})})},r.prototype.importKey=function(e,t,n,o){return w(this,void 0,void 0,function(){return b(this,function(i){return[2,window.msrCrypto.subtle.importKey(mn,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Zg=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return b(this,function(t){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(mn,e);i.addEventListener("complete",function(a){var s=a.target.result,c=Kt.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,g.EMPTY_STRING).replace(/\n/g,g.EMPTY_STRING).replace(/\t/g,g.EMPTY_STRING).split(" ").join(g.EMPTY_STRING).replace("\0",g.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},r.prototype.importKey=function(e,t,n,o){return w(this,void 0,void 0,function(){var i,a;return b(this,function(s){return i=Kt.getSortedObjectString(e),a=Kt.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(mn,a,t,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},r.prototype.sign=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.digest=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var em="RSASSA-PKCS1-v1_5",gc="SHA-256",tm=2048,rm=new Uint8Array([1,0,1]),Xu=function(){function r(e,t){var n,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Jg;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Zg;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Xg;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),A.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),ui.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:em,hash:gc,modulusLength:tm,publicExponent:rm}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){return t=Kt.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:gc},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return w(this,void 0,void 0,function(){return b(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return w(this,void 0,void 0,function(){return b(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var nm=function(){function r(){this.dbName=va,this.version=Mg,this.tableName=xg,this.dbOpen=!1}return r.prototype.open=function(){return w(this,void 0,void 0,function(){var e=this;return b(this,function(t){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(A.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return w(this,void 0,void 0,function(){return b(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},r.prototype.getItem=function(e){return w(this,void 0,void 0,function(){var t=this;return b(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(A.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.setItem=function(e,t){return w(this,void 0,void 0,function(){var n=this;return b(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(A.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(t,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},r.prototype.removeItem=function(e){return w(this,void 0,void 0,function(){var t=this;return b(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(A.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite"),s=a.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),o()}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.getKeys=function(){return w(this,void 0,void 0,function(){var e=this;return b(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,o){if(!e.db)return o(A.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},r.prototype.containsKey=function(e){return w(this,void 0,void 0,function(){var t=this;return b(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(A.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.deleteDatabase=function(){return w(this,void 0,void 0,function(){return b(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var o=window.indexedDB.deleteDatabase(va);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var mc=function(){function r(e,t){this.inMemoryCache=new ya,this.indexedDBCache=new nm,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof A&&e.errorCode===S.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},r.prototype.getItem=function(e){return w(this,void 0,void 0,function(){var t,n;return b(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return w(this,void 0,void 0,function(){var n;return b(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return w(this,void 0,void 0,function(){var e,t;return b(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return w(this,void 0,void 0,function(){var t,n;return b(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return w(this,void 0,void 0,function(){var e,t;return b(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var li;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(li||(li={}));var om=function(){function r(e){this.logger=e,this.asymmetricKeys=new mc(this.logger,li.asymmetricKeys),this.symmetricKeys=new mc(this.logger,li.symmetricKeys)}return r.prototype.clear=function(){return w(this,void 0,void 0,function(){var e;return b(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var im=function(){function r(e,t,n){this.logger=e,this.browserCrypto=new Xu(this.logger,n),this.b64Encode=new Ju,this.b64Decode=new Vg,this.guidGenerator=new Wu(this.browserCrypto),this.pkceGenerator=new Wg(this.browserCrypto),this.cache=new om(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return w(this,void 0,void 0,function(){return b(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return b(this,function(d){switch(d.label){case 0:return n=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(y.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=Kt.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return w(this,void 0,void 0,function(){return b(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var o;return w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,p,v,_,C;return b(this,function(E){switch(E.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(y.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=E.sent(),!a)throw A.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=E.sent(),c=Kt.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=Ng.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),f=d+"."+h,p=Kt.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,p)];case 3:return v=E.sent(),_=this.b64Encode.urlEncodeArr(new Uint8Array(v)),C=f+"."+_,i&&i.endMeasurement({success:!0}),[2,C]}})})},r.prototype.hashString=function(e){return w(this,void 0,void 0,function(){var t,n;return b(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var vc=function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){var o=r.makeMeasureName(n.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(r.makeStartMark(o,e)),window.performance.clearMarks(r.makeEndMark(o,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var am=function(r){Le(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o,i,a,s)||this;return l.browserCrypto=new Xu(l.logger,c),l.guidGenerator=new Wu(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(t,n){return new vc(t,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var n=this.eventsByCorrelationId.get(t.event.correlationId),o=n&&n.eventId===t.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(L({},a))}),i.length>0&&vc.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var o=this,i=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return L(L({},a),{endMeasurement:function(s){var c=a.endMeasurement(L({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),c},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var a=r.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),c=o||r.prototype.calculateQueuedTime.call(this,a,s);return r.prototype.addQueueMeasurement.call(this,t,n,c,i)}},e}(ju);/*! @azure/msal-browser v2.38.2 2023-08-24 */var sm=function(){function r(e,t,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=o}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw A.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new At(t.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new jn(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Wn.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Wn(c,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new jn(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,t.client_info,a.authorityType);i=new jn(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else throw A.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw A.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},r.prototype.loadAccount=function(e,t,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=xe.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw A.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?xe.createAccount(n,a,e,void 0,void 0,void 0,t):xe.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,o){var i=hr.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,n,o,i,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw A.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw A.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new De(e.scopes).printScopes(),c=a.expiresOn||t.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=fr.createAccessTokenEntity(n,o,t.access_token,this.config.auth.clientId,i,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=jr.createRefreshTokenEntity(n,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,o){var i,a,s,c=g.EMPTY_STRING,l=[],u=null,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=De.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||g.EMPTY_STRING,f=(t==null?void 0:t.claims.tid)||g.EMPTY_STRING;return{authority:o?o.canonicalAuthority:g.EMPTY_STRING,uniqueId:h,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:g.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||g.EMPTY_STRING,requestId:g.EMPTY_STRING,extExpiresOn:d,familyId:g.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||g.EMPTY_STRING,state:g.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||g.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||g.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var cm=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.includeRedirectUri=!1,n}return e}(Bu);/*! @azure/msal-browser v2.38.2 2023-08-24 */var um=function(r){Le(e,r);function e(t,n,o,i,a,s,c,l,u,d){var h=r.call(this,t,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return b(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw A.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(y.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,x.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||g.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=L(L({},n),{code:t.code}),this.performanceClient.setPreQueueTime(y.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new cm(a),this.logger.verbose("Auth code client created"),c=new Yu(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e}(Sn);/*! @azure/msal-browser v2.38.2 2023-08-24 */var lm=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=Gg(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Ti(this.config.system.loggerOptions,Vi,zn),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new am(this.config.auth.clientId,this.config.auth.authority,this.logger,Vi,zn,this.config.telemetry.application,this.config.system.cryptoOptions):new Pg(this.config.auth.clientId,this.config.auth.authority,this.logger,Vi,zn,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new im(this.logger,this.performanceClient,this.config.system.cryptoOptions):ri,this.eventHandler=new Qg(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new _a(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Lg(this.config.auth.clientId,this.logger);var t={cacheLocation:we.MemoryStorage,temporaryCacheLocation:we.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new _a(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new sm(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return w(this,void 0,void 0,function(){var e,t,n,o,i;return b(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(y.InitializeClientApplication),this.eventHandler.emitEvent(Y.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Sr.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return o=a.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(y.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Y.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return w(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l,u=this;return b(this,function(d){return this.logger.verbose("handleRedirectPromise called"),_e.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||g.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(Y.HANDLE_REDIRECT_START,x.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Sr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(se.CORRELATION_ID,!0)||g.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var f=t.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(Y.LOGIN_SUCCESS,x.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_SUCCESS,x.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(Y.HANDLE_REDIRECT_END,x.Redirect),h}).catch(function(h){throw t.length>0?u.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_FAILURE,x.Redirect,null,h):u.eventHandler.emitEvent(Y.LOGIN_FAILURE,x.Redirect,null,h),u.eventHandler.emitEvent(Y.HANDLE_REDIRECT_END,x.Redirect),h}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return w(this,void 0,void 0,function(){var t,n,o,i,a,s=this;return b(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(x.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_START,x.Redirect,e):this.eventHandler.emitEvent(Y.LOGIN_START,x.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof It&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof pt){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_FAILURE,x.Redirect,null,l):s.eventHandler.emitEvent(Y.LOGIN_FAILURE,x.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(y.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(x.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_START,x.Popup,e):this.eventHandler.emitEvent(Y.LOGIN_START,x.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,pe.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),c}).catch(function(c){if(c instanceof It&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof pt){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(Y.LOGIN_SUCCESS,x.Popup,c):t.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_SUCCESS,x.Popup,c),o.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.endMeasurement({success:!0,requestId:c.requestId}),c}).catch(function(c){return i.length>0?t.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_FAILURE,x.Popup,null,c):t.eventHandler.emitEvent(Y.LOGIN_FAILURE,x.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),Promise.reject(c)})},r.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},r.prototype.ssoSilent=function(e){var t;return w(this,void 0,void 0,function(){var n,o,i,a,s=this;return b(this,function(c){return n=this.getRequestCorrelationId(e),o=L(L({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(x.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(y.SsoSilent,n),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(Y.SSO_SILENT_START,x.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,pe.ssoSilent).catch(function(l){if(l instanceof It&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(o.correlationId);return u.acquireToken(o)}throw l}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(l){var u,d;return s.eventHandler.emitEvent(Y.SSO_SILENT_SUCCESS,x.Silent,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var u;throw s.eventHandler.emitEvent(Y.SSO_SILENT_FAILURE,x.Silent,null,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return w(this,void 0,void 0,function(){var t,n,o,i,a=this;return b(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(x.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_BY_CODE_START,x.Silent,e),n=this.performanceClient.startMeasurement(y.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw A.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(L(L({},e),{correlationId:t})).then(function(c){return a.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_BY_CODE_SUCCESS,x.Silent,c),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_BY_CODE_FAILURE,x.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,pe.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof It&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw A.createUnableToAcquireTokenFromNativePlatformError()}else throw A.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_BY_CODE_FAILURE,x.Silent,null,c),n.endMeasurement({errorCode:c instanceof D&&c.errorCode||void 0,subErrorCode:c instanceof D&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return w(this,void 0,void 0,function(){var n,o,i=this;return b(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(y.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var c;return(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var c;throw(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return w(this,void 0,void 0,function(){return b(this,function(o){switch(this.performanceClient.addQueueMeasurement(y.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Ye.Default:case Ye.AccessToken:case Ye.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw O.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return w(this,void 0,void 0,function(){var n;return b(this,function(o){switch(this.performanceClient.addQueueMeasurement(y.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Ye.Default:case Ye.AccessTokenAndRefreshToken:case Ye.RefreshToken:case Ye.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(y.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw O.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){return this.performanceClient.addQueueMeasurement(y.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(y.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return w(this,void 0,void 0,function(){var t;return b(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(L({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return w(this,void 0,void 0,function(){var t,n;return b(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(x.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(x.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(o){return Promise.reject(o)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),_e.blockNonBrowserEnvironment(this.isBrowserEnvironment),_e.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),_e.blockReloadInHiddenIframes(),_e.blockAcquireTokenInPopups(),_e.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===x.Redirect&&this.config.cache.cacheLocation===we.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw ui.createInMemoryRedirectUnavailableError();(e===x.Redirect||e===x.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),_e.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return w(this,void 0,void 0,function(){var o;return b(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw A.createNativeConnectionNotEstablishedError();return o=new Jr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Sr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case qe.NONE:case qe.CONSENT:case qe.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new Fg(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new Dg(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new jg(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new Vu(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new zg(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new um(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,pe.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():g.EMPTY_STRING},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var dm=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(t){return w(this,void 0,void 0,function(){var n;return b(this,function(o){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(L({correlationId:n},t||dc))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(L({correlationId:n},t||dc))},e.prototype.acquireTokenSilent=function(t){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return b(this,function(d){if(n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(y.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(x.Silent),this.logger.verbose("acquireTokenSilent called",n),i=t.account||this.getActiveAccount(),!i)throw A.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:t.authority||g.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(y.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(L(L({},t),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),o.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:h.requestId}),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,c])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var o;return w(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return b(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(y.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_START,x.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(y.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Sr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=L(L({},t),{account:n}),i=this.acquireTokenNative(a,pe.acquireTokenSilent_silentFlow).catch(function(h){return w(u,void 0,void 0,function(){var f;return b(this,function(p){if(h instanceof It&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(t.correlationId),[2,f.acquireToken(t)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(y.InitializeSilentRequest,t.correlationId),[4,s.initializeSilentRequest(t,n)];case 2:c=d.sent(),l=L(L({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Ye.Default}),this.performanceClient.setPreQueueTime(y.AcquireTokenFromCache,c.correlationId),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===Ye.AccessToken)throw h;return _e.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_NETWORK_START,x.Silent,c),u.performanceClient.setPreQueueTime(y.AcquireTokenByRefreshToken,c.correlationId),u.acquireTokenByRefreshToken(c,l).catch(function(f){var p=f instanceof Nr,v=f instanceof pt,_=f.errorCode===zr.noTokensFoundError.code,C=f.errorCode===ft.INVALID_GRANT_ERROR;if((!p||!C||v||l.cacheLookupPolicy===Ye.AccessTokenAndRefreshToken||l.cacheLookupPolicy===Ye.RefreshToken)&&l.cacheLookupPolicy!==Ye.Skip&&!_)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),u.performanceClient.setPreQueueTime(y.AcquireTokenBySilentIframe,c.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){var f;return u.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_SUCCESS,x.Silent,h),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){var f;throw u.eventHandler.emitEvent(Y.ACQUIRE_TOKEN_FAILURE,x.Silent,null,h),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e}(lm);const yc="redirect";var _c=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class hm extends dm{get account(){return this.getAllAccounts().find(n=>{var o;return((o=n.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const n=Math.ceil(Date.now()/1e3);return t.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,t){super(t),this.tenantId=e}login(e,t=yc,n=!0){var o;return _c(this,void 0,void 0,function*(){const i=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:i,scopes:a});if(i&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=yc,n=!0){return _c(this,void 0,void 0,function*(){const o=yield this.account;if(n&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${t}]`),t){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const fm=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:n}=new URL(r);return t+n.replace(/([^:]\/)\/+/g,"$1")},pm=(r,e,t,n,o)=>{const i=Object.assign({clientId:e,redirectUri:fm(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(o||hm)(r,{auth:i,cache:a,system:s})};class gm extends Ti{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case ye.Error:return"error";case ye.Warning:return"warn";case ye.Info:return"info";case ye.Verbose:default:return"debug"}}}loggerCallback(e,t,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var Yi=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const mm="default";class vm{get defaultClient(){return this.getClient(mm)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const t=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!t)throw Error("Could not find any config");const n=pm(t.tenantId,t.clientId,t.redirectUri,t.config);return n.setLogger(new gm(0)),n}handleRedirect(){return Yi(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,n=t.getLogger(),{requestOrigin:o}=t;yield t.handleRedirectPromise(),o===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return Yi(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return Yi(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var ym=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Zu={name:"auth",configure:r=>{var e;const t=new ag;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>ym(void 0,void 0,void 0,function*(){const e=new vm(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},_m=(r,e)=>({module:Zu,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e??{};n&&Object.entries(n).forEach(([o,i])=>t.configureClient(o,i))}});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var Ec;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Ec||(Ec={}));globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;var Cc;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Cc||(Cc={}));globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;const el=K.createContext(null),Em=el.Provider,tl=K.createContext({});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__rest;const Cm=tl.Provider,wm=()=>K.useContext(tl),bm=r=>wm()[r];globalThis&&globalThis.__awaiter;const po=()=>{let r=K.useContext(el);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r};var Tm=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class Sm extends Fp{constructor(){super([jp,Xo,Zu]),this.logger=new gu("AppConfigurator")}configureHttp(...e){this.addConfig(og(...e))}configureHttpClient(...e){this.addConfig(ig(...e))}useFrameworkServiceClient(e,t){this.addConfig({module:Xo,configure:(n,o)=>Tm(this,void 0,void 0,function*(){const i=yield o==null?void 0:o.serviceDiscovery.resolveService(e);if(!i)throw Error(`failed to configure service [${e}]`);n.configureClient(e,Object.assign(Object.assign({},t),{baseUri:i.uri,defaultScopes:i.defaultScopes}))})})}configureMsal(...e){this.addConfig(_m(...e))}}var Im=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Am=r=>e=>Im(void 0,void 0,void 0,function*(){var t;const n=new Sm;r&&(yield Promise.resolve(r(n,e)));const o=yield n.initialize(e.fusion.modules);return!((t=e.env.manifest)===null||t===void 0)&&t.key&&o.event.dispatchEvent("onAppModulesLoaded",{detail:{appKey:e.env.manifest.key,modules:o}}),o});function Rm(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var km=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nm=Rm(function(r){return km.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),Om=function(e,t,n,o){var i=n?n.call(o,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var u=a[l];if(!c(u))return!1;var d=e[u],h=t[u];if(i=n?n.call(o,d,h,u):void 0,i===!1||i===void 0&&d!==h)return!1}return!0};const Pm=Kl(Om);var ve="-ms-",Qn="-moz-",le="-webkit-",rl="comm",Si="rule",ss="decl",Mm="@import",nl="@keyframes",xm="@layer",Lm=Math.abs,cs=String.fromCharCode,Ca=Object.assign;function Um(r,e){return Ne(r,0)^45?(((e<<2^Ne(r,0))<<2^Ne(r,1))<<2^Ne(r,2))<<2^Ne(r,3):0}function ol(r){return r.trim()}function Lt(r,e){return(r=e.exec(r))?r[0]:r}function te(r,e,t){return r.replace(e,t)}function Ko(r,e){return r.indexOf(e)}function Ne(r,e){return r.charCodeAt(e)|0}function vn(r,e,t){return r.slice(e,t)}function St(r){return r.length}function il(r){return r.length}function Un(r,e){return e.push(r),r}function Hm(r,e){return r.map(e).join("")}function wc(r,e){return r.filter(function(t){return!Lt(t,e)})}var Ii=1,yn=1,al=0,ut=0,be=0,In="";function Ai(r,e,t,n,o,i,a,s){return{value:r,root:e,parent:t,type:n,props:o,children:i,line:Ii,column:yn,length:a,return:"",siblings:s}}function Qt(r,e){return Ca(Ai("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function Dr(r){for(;r.root;)r=Qt(r.root,{children:[r]});Un(r,r.siblings)}function Dm(){return be}function Fm(){return be=ut>0?Ne(In,--ut):0,yn--,be===10&&(yn=1,Ii--),be}function gt(){return be=ut<al?Ne(In,ut++):0,yn++,be===10&&(yn=1,Ii++),be}function Ir(){return Ne(In,ut)}function Bo(){return ut}function Ri(r,e){return vn(In,r,e)}function wa(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qm(r){return Ii=yn=1,al=St(In=r),ut=0,[]}function Km(r){return In="",r}function Wi(r){return ol(Ri(ut-1,ba(r===91?r+2:r===40?r+1:r)))}function Bm(r){for(;(be=Ir())&&be<33;)gt();return wa(r)>2||wa(be)>3?"":" "}function $m(r,e){for(;--e&&gt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Ri(r,Bo()+(e<6&&Ir()==32&&gt()==32))}function ba(r){for(;gt();)switch(be){case r:return ut;case 34:case 39:r!==34&&r!==39&&ba(be);break;case 40:r===41&&ba(r);break;case 92:gt();break}return ut}function Gm(r,e){for(;gt()&&r+be!==47+10;)if(r+be===42+42&&Ir()===47)break;return"/*"+Ri(e,ut-1)+"*"+cs(r===47?r:gt())}function jm(r){for(;!wa(Ir());)gt();return Ri(r,ut)}function zm(r){return Km($o("",null,null,null,[""],r=qm(r),0,[0],r))}function $o(r,e,t,n,o,i,a,s,c){for(var l=0,u=0,d=a,h=0,f=0,p=0,v=1,_=1,C=1,E=0,T="",B=o,G=i,U=n,P=T;_;)switch(p=E,E=gt()){case 40:if(p!=108&&Ne(P,d-1)==58){Ko(P+=te(Wi(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:P+=Wi(E);break;case 9:case 10:case 13:case 32:P+=Bm(p);break;case 92:P+=$m(Bo()-1,7);continue;case 47:switch(Ir()){case 42:case 47:Un(Qm(Gm(gt(),Bo()),e,t,c),c);break;default:P+="/"}break;case 123*v:s[l++]=St(P)*C;case 125*v:case 59:case 0:switch(E){case 0:case 125:_=0;case 59+u:C==-1&&(P=te(P,/\f/g,"")),f>0&&St(P)-d&&Un(f>32?Tc(P+";",n,t,d-1,c):Tc(te(P," ","")+";",n,t,d-2,c),c);break;case 59:P+=";";default:if(Un(U=bc(P,e,t,l,u,o,s,T,B=[],G=[],d,i),i),E===123)if(u===0)$o(P,e,U,U,B,i,d,s,G);else switch(h===99&&Ne(P,3)===110?100:h){case 100:case 108:case 109:case 115:$o(r,U,U,n&&Un(bc(r,U,U,0,0,o,s,T,o,B=[],d,G),G),o,G,d,s,n?B:G);break;default:$o(P,U,U,U,[""],G,0,s,G)}}l=u=f=0,v=C=1,T=P="",d=a;break;case 58:d=1+St(P),f=p;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&Fm()==125)continue}switch(P+=cs(E),E*v){case 38:C=u>0?1:(P+="\f",-1);break;case 44:s[l++]=(St(P)-1)*C,C=1;break;case 64:Ir()===45&&(P+=Wi(gt())),h=Ir(),u=d=St(T=P+=jm(Bo())),E++;break;case 45:p===45&&St(P)==2&&(v=0)}}return i}function bc(r,e,t,n,o,i,a,s,c,l,u,d){for(var h=o-1,f=o===0?i:[""],p=il(f),v=0,_=0,C=0;v<n;++v)for(var E=0,T=vn(r,h+1,h=Lm(_=a[v])),B=r;E<p;++E)(B=ol(_>0?f[E]+" "+T:te(T,/&\f/g,f[E])))&&(c[C++]=B);return Ai(r,e,t,o===0?Si:s,c,l,u,d)}function Qm(r,e,t,n){return Ai(r,e,t,rl,cs(Dm()),vn(r,2,-2),0,n)}function Tc(r,e,t,n,o){return Ai(r,e,t,ss,vn(r,0,n),vn(r,n+1,-1),n,o)}function sl(r,e,t){switch(Um(r,e)){case 5103:return le+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return le+r+r;case 4789:return Qn+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return le+r+Qn+r+ve+r+r;case 5936:switch(Ne(r,e+11)){case 114:return le+r+ve+te(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return le+r+ve+te(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return le+r+ve+te(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return le+r+ve+r+r;case 6165:return le+r+ve+"flex-"+r+r;case 5187:return le+r+te(r,/(\w+).+(:[^]+)/,le+"box-$1$2"+ve+"flex-$1$2")+r;case 5443:return le+r+ve+"flex-item-"+te(r,/flex-|-self/g,"")+(Lt(r,/flex-|baseline/)?"":ve+"grid-row-"+te(r,/flex-|-self/g,""))+r;case 4675:return le+r+ve+"flex-line-pack"+te(r,/align-content|flex-|-self/g,"")+r;case 5548:return le+r+ve+te(r,"shrink","negative")+r;case 5292:return le+r+ve+te(r,"basis","preferred-size")+r;case 6060:return le+"box-"+te(r,"-grow","")+le+r+ve+te(r,"grow","positive")+r;case 4554:return le+te(r,/([^-])(transform)/g,"$1"+le+"$2")+r;case 6187:return te(te(te(r,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),r,"")+r;case 5495:case 3959:return te(r,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return te(te(r,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+r+r;case 4200:if(!Lt(r,/flex-|baseline/))return ve+"grid-column-align"+vn(r,e)+r;break;case 2592:case 3360:return ve+te(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,o){return e=o,Lt(n.props,/grid-\w+-end/)})?~Ko(r+(t=t[e].value),"span")?r:ve+te(r,"-start","")+r+ve+"grid-row-span:"+(~Ko(t,"span")?Lt(t,/\d+/):+Lt(t,/\d+/)-+Lt(r,/\d+/))+";":ve+te(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return Lt(n.props,/grid-\w+-start/)})?r:ve+te(te(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return te(r,/(.+)-inline(.+)/,le+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(St(r)-1-e>6)switch(Ne(r,e+1)){case 109:if(Ne(r,e+4)!==45)break;case 102:return te(r,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Qn+(Ne(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~Ko(r,"stretch")?sl(te(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return te(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,s,c,l){return ve+o+":"+i+l+(a?ve+o+"-span:"+(s?c:+c-+i)+l:"")+r});case 4949:if(Ne(r,e+6)===121)return te(r,":",":"+le)+r;break;case 6444:switch(Ne(r,Ne(r,14)===45?18:11)){case 120:return te(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+le+(Ne(r,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+ve+"$2box$3")+r;case 100:return te(r,":",":"+ve)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return te(r,"scroll-","scroll-snap-")+r}return r}function di(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function Vm(r,e,t,n){switch(r.type){case xm:if(r.children.length)break;case Mm:case ss:return r.return=r.return||r.value;case rl:return"";case nl:return r.return=r.value+"{"+di(r.children,n)+"}";case Si:if(!St(r.value=r.props.join(",")))return""}return St(t=di(r.children,n))?r.return=r.value+"{"+t+"}":""}function Ym(r){var e=il(r);return function(t,n,o,i){for(var a="",s=0;s<e;s++)a+=r[s](t,n,o,i)||"";return a}}function Wm(r){return function(e){e.root||(e=e.return)&&r(e)}}function Jm(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case ss:r.return=sl(r.value,r.length,t);return;case nl:return di([Qt(r,{value:te(r.value,"@","@"+le)})],n);case Si:if(r.length)return Hm(t=r.props,function(o){switch(Lt(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dr(Qt(r,{props:[te(o,/:(read-\w+)/,":"+Qn+"$1")]})),Dr(Qt(r,{props:[o]})),Ca(r,{props:wc(t,n)});break;case"::placeholder":Dr(Qt(r,{props:[te(o,/:(plac\w+)/,":"+le+"input-$1")]})),Dr(Qt(r,{props:[te(o,/:(plac\w+)/,":"+Qn+"$1")]})),Dr(Qt(r,{props:[te(o,/:(plac\w+)/,ve+"input-$1")]})),Dr(Qt(r,{props:[o]})),Ca(r,{props:wc(t,n)});break}return""})}}var Xm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Or=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",us=typeof window<"u"&&"HTMLElement"in window,Zm=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Sc=/invalid hook call/i,Ao=new Set,ev=function(r,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(r).concat(t,` has been created dynamically.
35
35
  `)+`You may see this warning because you've called styled inside another component.
36
- To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Fa.test(a)?(i=!1,ln.delete(n)):o.apply(void 0,$e([a],s,!1))},Y.useRef(),i&&!ln.has(n)&&(console.warn(n),ln.add(n))}catch(a){Fa.test(a.message)&&ln.delete(n)}finally{console.error=o}}},so=Object.freeze([]),_r=Object.freeze({});function Hp(r,e,t){return t===void 0&&(t=_r),r.theme!==t.theme&&r.theme||e||t.theme}var ri=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Dp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fp=/(^-|-$)/g;function qa(r){return r.replace(Dp,"-").replace(Fp,"")}var qp=/(a)(d)/gi,Ba=function(r){return String.fromCharCode(r+(r>25?39:97))};function ni(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Ba(e%52)+t;return(Ba(e%52)+t).replace(qp,"$1-$2")}var ko,Lt=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},rc=function(r){return Lt(5381,r)};function nc(r){return ni(rc(r)>>>0)}function oc(r){return process.env.NODE_ENV!=="production"&&typeof r=="string"&&r||r.displayName||r.name||"Component"}function No(r){return typeof r=="string"&&(process.env.NODE_ENV==="production"||r.charAt(0)===r.charAt(0).toLowerCase())}var ic=typeof Symbol=="function"&&Symbol.for,ac=ic?Symbol.for("react.memo"):60115,Bp=ic?Symbol.for("react.forward_ref"):60112,Kp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$p={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gp=((ko={})[Bp]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ko[ac]=sc,ko);function Ka(r){return("type"in(e=r)&&e.type.$$typeof)===ac?sc:"$$typeof"in r?Gp[r.$$typeof]:Kp;var e}var jp=Object.defineProperty,zp=Object.getOwnPropertyNames,$a=Object.getOwnPropertySymbols,Vp=Object.getOwnPropertyDescriptor,Yp=Object.getPrototypeOf,Ga=Object.prototype;function cc(r,e,t){if(typeof e!="string"){if(Ga){var n=Yp(e);n&&n!==Ga&&cc(r,n,t)}var o=zp(e);$a&&(o=o.concat($a(e)));for(var i=Ka(r),a=Ka(e),s=0;s<o.length;++s){var c=o[s];if(!(c in $p||t&&t[c]||a&&c in a||i&&c in i)){var l=Vp(e,c);try{jp(r,c,l)}catch{}}}}return r}function Er(r){return typeof r=="function"}function ki(r){return typeof r=="object"&&"styledComponentId"in r}function Ft(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function oi(r,e){if(r.length===0)return"";for(var t=r[0],n=1;n<r.length;n++)t+=e?e+r[n]:r[n];return t}function Cr(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function ii(r,e,t){if(t===void 0&&(t=!1),!t&&!Cr(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=ii(r[n],e[n]);else if(Cr(e))for(var n in e)r[n]=ii(r[n],e[n]);return r}function Ni(r,e){Object.defineProperty(r,"toString",{value:e})}var Wp=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
36
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Sc.test(a)?(i=!1,Ao.delete(n)):o.apply(void 0,rt([a],s,!1))},K.useRef(),i&&!Ao.has(n)&&(console.warn(n),Ao.add(n))}catch(a){Sc.test(a.message)&&Ao.delete(n)}finally{console.error=o}}},ki=Object.freeze([]),_n=Object.freeze({});function tv(r,e,t){return t===void 0&&(t=_n),r.theme!==t.theme&&r.theme||e||t.theme}var Ta=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),rv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,nv=/(^-|-$)/g;function Ic(r){return r.replace(rv,"-").replace(nv,"")}var ov=/(a)(d)/gi,Ac=function(r){return String.fromCharCode(r+(r>25?39:97))};function Sa(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Ac(e%52)+t;return(Ac(e%52)+t).replace(ov,"$1-$2")}var Ji,lr=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},cl=function(r){return lr(5381,r)};function ul(r){return Sa(cl(r)>>>0)}function ll(r){return process.env.NODE_ENV!=="production"&&typeof r=="string"&&r||r.displayName||r.name||"Component"}function Xi(r){return typeof r=="string"&&(process.env.NODE_ENV==="production"||r.charAt(0)===r.charAt(0).toLowerCase())}var dl=typeof Symbol=="function"&&Symbol.for,hl=dl?Symbol.for("react.memo"):60115,iv=dl?Symbol.for("react.forward_ref"):60112,av={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv=((Ji={})[iv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ji[hl]=fl,Ji);function Rc(r){return("type"in(e=r)&&e.type.$$typeof)===hl?fl:"$$typeof"in r?cv[r.$$typeof]:av;var e}var uv=Object.defineProperty,lv=Object.getOwnPropertyNames,kc=Object.getOwnPropertySymbols,dv=Object.getOwnPropertyDescriptor,hv=Object.getPrototypeOf,Nc=Object.prototype;function pl(r,e,t){if(typeof e!="string"){if(Nc){var n=hv(e);n&&n!==Nc&&pl(r,n,t)}var o=lv(e);kc&&(o=o.concat(kc(e)));for(var i=Rc(r),a=Rc(e),s=0;s<o.length;++s){var c=o[s];if(!(c in sv||t&&t[c]||a&&c in a||i&&c in i)){var l=dv(e,c);try{uv(r,c,l)}catch{}}}}return r}function En(r){return typeof r=="function"}function ls(r){return typeof r=="object"&&"styledComponentId"in r}function pr(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function Ia(r,e){if(r.length===0)return"";for(var t=r[0],n=1;n<r.length;n++)t+=e?e+r[n]:r[n];return t}function Cn(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function Aa(r,e,t){if(t===void 0&&(t=!1),!t&&!Cn(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=Aa(r[n],e[n]);else if(Cn(e))for(var n in e)r[n]=Aa(r[n],e[n]);return r}function ds(r,e){Object.defineProperty(r,"toString",{value:e})}var fv=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
37
37
 
38
38
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
39
39
 
@@ -74,10 +74,10 @@ as for instance in your render method then you may be running into this limitati
74
74
 
75
75
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
76
76
  Has styled-components' style tag been unmounted or altered by another script?
77
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Qp(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r[0],n=[],o=1,i=r.length;o<i;o+=1)n.push(r[o]);return n.forEach(function(a){t=t.replace(/%[a-z]/,a)}),t}function Ir(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(Qp.apply(void 0,$e([Wp[r]],e,!1)).trim())}var Jp=function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return r.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;e>=i;)if((i<<=1)<0)throw Ir(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,t.length);a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),i=o+n,a=o;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
78
- `);return t},r}(),In=new Map,zn=new Map,Po=1,un=function(r){if(In.has(r))return In.get(r);for(;zn.has(Po);)Po++;var e=Po++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw Ir(16,"".concat(e));return In.set(r,e),zn.set(e,r),e},Xp=function(r,e){In.set(r,e),zn.set(e,r)},Zp="style[".concat(Vt,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),eg=new RegExp("^".concat(Vt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),tg=function(r,e,t){for(var n,o=t.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&r.registerName(e,n)},rg=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
79
- `),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(eg);if(c){var l=0|parseInt(c[1],10),u=c[2];l!==0&&(Xp(u,l),tg(r,u,c[3]),r.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}};function ng(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var lc=function(r){var e=document.head,t=r||e,n=document.createElement("style"),o=function(s){var c=Array.from(s.querySelectorAll("style[".concat(Vt,"]")));return c[c.length-1]}(t),i=o!==void 0?o.nextSibling:null;n.setAttribute(Vt,"active"),n.setAttribute("data-styled-version","6.0.8");var a=ng();return a&&n.setAttribute("nonce",a),t.insertBefore(n,i),n},og=function(){function r(e){this.element=lc(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===t)return a}throw Ir(17)}(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r}(),ig=function(){function r(e){this.element=lc(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r}(),ag=function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r}(),ja=Ri,sg={isServer:!Ri,useCSSOMInjection:!Lp},uc=function(){function r(e,t,n){e===void 0&&(e=_r),t===void 0&&(t={});var o=this;this.options=Re(Re({},sg),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ri&&ja&&(ja=!1,function(i){for(var a=document.querySelectorAll(Zp),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(Vt)!=="active"&&(rg(i,l),l.parentNode&&l.parentNode.removeChild(l))}}(this)),Ni(this,function(){return function(i){for(var a=i.getTag(),s=a.length,c="",l=function(d){var h=function(R){return zn.get(R)}(d);if(h===void 0)return"continue";var f=i.names.get(h),p=a.getGroup(d);if(f===void 0||p.length===0)return"continue";var m="".concat(Vt,".g").concat(d,'[id="').concat(h,'"]'),T="";f!==void 0&&f.forEach(function(R){R.length>0&&(T+="".concat(R,","))}),c+="".concat(p).concat(m,'{content:"').concat(T,'"}').concat(`/*!sc*/
80
- `)},u=0;u<s;u++)l(u);return c}(o)})}return r.registerId=function(e){return un(e)},r.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new r(Re(Re({},this.options),e),this.gs,t&&this.names||void 0)},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var n=t.useCSSOMInjection,o=t.target;return t.isServer?new ag(o):n?new og(o):new ig(o)}(this.options),new Jp(e)));var e},r.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},r.prototype.registerName=function(e,t){if(un(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(un(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(un(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r}(),cg=/&/g,lg=/^\s*\/\/.*$/gm;function dc(r,e){return r.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=dc(t.children,e)),t})}function ug(r){var e,t,n,o=r===void 0?_r:r,i=o.options,a=i===void 0?_r:i,s=o.plugins,c=s===void 0?so:s,l=function(h,f,p){return p===t||p.startsWith(t)&&p.endsWith(t)&&p.replaceAll(t,"").length>0?".".concat(e):h},u=c.slice();u.push(function(h){h.type===no&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(cg,t).replace(n,l))}),a.prefix&&u.push(Mp),u.push(Np);var d=function(h,f,p,m){f===void 0&&(f=""),p===void 0&&(p=""),m===void 0&&(m="&"),e=m,t=f,n=new RegExp("\\".concat(t,"\\b"),"g");var T=h.replace(lg,""),R=Rp(p||f?"".concat(p," ").concat(f," { ").concat(T," }"):T);a.namespace&&(R=dc(R,a.namespace));var w=[];return jn(R,Pp(u.concat(Op(function(k){return w.push(k)})))),w};return d.hash=c.length?c.reduce(function(h,f){return f.name||Ir(15),Lt(h,f.name)},5381).toString():"",d}var dg=new uc,ai=ug(),hc=Y.createContext({shouldForwardProp:void 0,styleSheet:dg,stylis:ai});hc.Consumer;Y.createContext(void 0);function za(){return Y.useContext(hc)}var si=function(){function r(e,t){var n=this;this.inject=function(o,i){i===void 0&&(i=ai);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ni(this,function(){throw Ir(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=ai),this.name+e.hash},r}(),hg=function(r){return r>="A"&&r<="Z"};function Va(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;hg(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var fc=function(r){return r==null||r===!1||r===""},pc=function(r){var e,t,n=[];for(var o in r){var i=r[o];r.hasOwnProperty(o)&&!fc(i)&&(Array.isArray(i)&&i.isCss||Er(i)?n.push("".concat(Va(o),":"),i,";"):Cr(i)?n.push.apply(n,$e($e(["".concat(o," {")],pc(i),!1),["}"],!1)):n.push("".concat(Va(o),": ").concat((e=o,(t=i)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in xp||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return n};function $t(r,e,t,n){if(fc(r))return[];if(ki(r))return[".".concat(r.styledComponentId)];if(Er(r)){if(!Er(i=r)||i.prototype&&i.prototype.isReactComponent||!e)return[r];var o=r(e);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof si||Cr(o)||o===null||console.error("".concat(oc(r)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),$t(o,e,t,n)}var i;return r instanceof si?t?(r.inject(t,n),[r.getName(n)]):[r]:Cr(r)?pc(r):Array.isArray(r)?Array.prototype.concat.apply(so,r.map(function(a){return $t(a,e,t,n)})):[r.toString()]}function fg(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(Er(t)&&!ki(t))return!1}return!0}var pg=rc("6.0.8"),gg=function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&fg(e),this.componentId=t,this.baseHash=Lt(pg,t),this.baseStyle=n,uc.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=Ft(o,this.staticRulesId);else{var i=oi($t(this.rules,e,t,n)),a=ni(Lt(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}o=Ft(o,a),this.staticRulesId=a}else{for(var c=Lt(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(c=Lt(c,d));else if(d){var h=oi($t(d,e,t,n));c=Lt(c,h+u),l+=h}}if(l){var f=ni(c>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),o=Ft(o,f)}}return o},r}(),gc=Y.createContext(void 0);gc.Consumer;var Oo={},Ya=new Set;function mg(r,e,t){var n=ki(r),o=r,i=!No(r),a=e.attrs,s=a===void 0?so:a,c=e.componentId,l=c===void 0?function(X,Z){var z=typeof X!="string"?"sc":qa(X);Oo[z]=(Oo[z]||0)+1;var B="".concat(z,"-").concat(nc("6.0.8"+z+Oo[z]));return Z?"".concat(Z,"-").concat(B):B}(e.displayName,e.parentComponentId):c,u=e.displayName,d=u===void 0?function(X){return No(X)?"styled.".concat(X):"Styled(".concat(oc(X),")")}(r):u,h=e.displayName&&e.componentId?"".concat(qa(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(e.shouldForwardProp){var T=e.shouldForwardProp;p=function(X,Z){return m(X,Z)&&T(X,Z)}}else p=m}var R=new gg(t,h,n?o.componentStyle:void 0);function w(X,Z){return function(z,B,ue){var Ct=z.attrs,uo=z.componentStyle,ho=z.defaultProps,fo=z.foldedComponentIds,N=z.styledComponentId,S=z.target,F=Y.useContext(gc),H=za(),U=z.shouldForwardProp||H.shouldForwardProp;process.env.NODE_ENV!=="production"&&Y.useDebugValue(N);var M=function(de,Ve,Ar){for(var Qt,Nt=Re(Re({},Ve),{className:void 0,theme:Ar}),po=0;po<de.length;po+=1){var Xr=Er(Qt=de[po])?Qt(Nt):Qt;for(var wt in Xr)Nt[wt]=wt==="className"?Ft(Nt[wt],Xr[wt]):wt==="style"?Re(Re({},Nt[wt]),Xr[wt]):Xr[wt]}return Ve.className&&(Nt.className=Ft(Nt.className,Ve.className)),Nt}(Ct,B,Hp(B,F,ho)||_r),K=M.as||S,te={};for(var D in M)M[D]===void 0||D[0]==="$"||D==="as"||D==="theme"||(D==="forwardedAs"?te.as=M.forwardedAs:U&&!U(D,K)||(te[D]=M[D],U||process.env.NODE_ENV!=="development"||pp(D)||Ya.has(D)||!ri.has(K)||(Ya.add(D),console.warn('styled-components: it looks like an unknown prop "'.concat(D,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var se=function(de,Ve){var Ar=za(),Qt=de.generateAndInjectStyles(Ve,Ar.styleSheet,Ar.stylis);return process.env.NODE_ENV!=="production"&&Y.useDebugValue(Qt),Qt}(uo,M);process.env.NODE_ENV!=="production"&&z.warnTooManyClasses&&z.warnTooManyClasses(se);var we=Ft(fo,N);return se&&(we+=" "+se),M.className&&(we+=" "+M.className),te[No(K)&&!ri.has(K)?"class":"className"]=we,te.ref=ue,Y.createElement(K,te)}(k,X,Z)}process.env.NODE_ENV!=="production"&&(w.displayName=d);var k=Y.forwardRef(w);return k.attrs=f,k.componentStyle=R,k.shouldForwardProp=p,process.env.NODE_ENV!=="production"&&(k.displayName=d),k.foldedComponentIds=n?Ft(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=h,k.target=n?o.target:r,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(X){this._foldedDefaultProps=n?function(Z){for(var z=[],B=1;B<arguments.length;B++)z[B-1]=arguments[B];for(var ue=0,Ct=z;ue<Ct.length;ue++)ii(Z,Ct[ue],!0);return Z}({},o.defaultProps,X):X}}),process.env.NODE_ENV!=="production"&&(Up(d,h),k.warnTooManyClasses=function(X,Z){var z={},B=!1;return function(ue){if(!B&&(z[ue]=!0,Object.keys(z).length>=200)){var Ct=Z?' with the id of "'.concat(Z,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(X).concat(Ct,`.
77
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function pv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r[0],n=[],o=1,i=r.length;o<i;o+=1)n.push(r[o]);return n.forEach(function(a){t=t.replace(/%[a-z]/,a)}),t}function An(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(pv.apply(void 0,rt([fv[r]],e,!1)).trim())}var gv=function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return r.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;e>=i;)if((i<<=1)<0)throw An(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,t.length);a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),i=o+n,a=o;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
78
+ `);return t},r}(),Go=new Map,hi=new Map,Zi=1,Ro=function(r){if(Go.has(r))return Go.get(r);for(;hi.has(Zi);)Zi++;var e=Zi++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw An(16,"".concat(e));return Go.set(r,e),hi.set(e,r),e},mv=function(r,e){Go.set(r,e),hi.set(e,r)},vv="style[".concat(Or,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),yv=new RegExp("^".concat(Or,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),_v=function(r,e,t){for(var n,o=t.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&r.registerName(e,n)},Ev=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
79
+ `),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(yv);if(c){var l=0|parseInt(c[1],10),u=c[2];l!==0&&(mv(u,l),_v(r,u,c[3]),r.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}};function Cv(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gl=function(r){var e=document.head,t=r||e,n=document.createElement("style"),o=function(s){var c=Array.from(s.querySelectorAll("style[".concat(Or,"]")));return c[c.length-1]}(t),i=o!==void 0?o.nextSibling:null;n.setAttribute(Or,"active"),n.setAttribute("data-styled-version","6.0.8");var a=Cv();return a&&n.setAttribute("nonce",a),t.insertBefore(n,i),n},wv=function(){function r(e){this.element=gl(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===t)return a}throw An(17)}(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r}(),bv=function(){function r(e){this.element=gl(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r}(),Tv=function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r}(),Oc=us,Sv={isServer:!us,useCSSOMInjection:!Zm},ml=function(){function r(e,t,n){e===void 0&&(e=_n),t===void 0&&(t={});var o=this;this.options=Fe(Fe({},Sv),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&us&&Oc&&(Oc=!1,function(i){for(var a=document.querySelectorAll(vv),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(Or)!=="active"&&(Ev(i,l),l.parentNode&&l.parentNode.removeChild(l))}}(this)),ds(this,function(){return function(i){for(var a=i.getTag(),s=a.length,c="",l=function(d){var h=function(C){return hi.get(C)}(d);if(h===void 0)return"continue";var f=i.names.get(h),p=a.getGroup(d);if(f===void 0||p.length===0)return"continue";var v="".concat(Or,".g").concat(d,'[id="').concat(h,'"]'),_="";f!==void 0&&f.forEach(function(C){C.length>0&&(_+="".concat(C,","))}),c+="".concat(p).concat(v,'{content:"').concat(_,'"}').concat(`/*!sc*/
80
+ `)},u=0;u<s;u++)l(u);return c}(o)})}return r.registerId=function(e){return Ro(e)},r.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new r(Fe(Fe({},this.options),e),this.gs,t&&this.names||void 0)},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var n=t.useCSSOMInjection,o=t.target;return t.isServer?new Tv(o):n?new wv(o):new bv(o)}(this.options),new gv(e)));var e},r.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},r.prototype.registerName=function(e,t){if(Ro(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ro(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(Ro(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r}(),Iv=/&/g,Av=/^\s*\/\/.*$/gm;function vl(r,e){return r.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=vl(t.children,e)),t})}function yl(r){var e,t,n,o=r===void 0?_n:r,i=o.options,a=i===void 0?_n:i,s=o.plugins,c=s===void 0?ki:s,l=function(h,f,p){return p===t||p.startsWith(t)&&p.endsWith(t)&&p.replaceAll(t,"").length>0?".".concat(e):h},u=c.slice();u.push(function(h){h.type===Si&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Iv,t).replace(n,l))}),a.prefix&&u.push(Jm),u.push(Vm);var d=function(h,f,p,v){f===void 0&&(f=""),p===void 0&&(p=""),v===void 0&&(v="&"),e=v,t=f,n=new RegExp("\\".concat(t,"\\b"),"g");var _=h.replace(Av,""),C=zm(p||f?"".concat(p," ").concat(f," { ").concat(_," }"):_);a.namespace&&(C=vl(C,a.namespace));var E=[];return di(C,Ym(u.concat(Wm(function(T){return E.push(T)})))),E};return d.hash=c.length?c.reduce(function(h,f){return f.name||An(15),lr(h,f.name)},5381).toString():"",d}var Rv=new ml,Ra=yl(),hs=K.createContext({shouldForwardProp:void 0,styleSheet:Rv,stylis:Ra});hs.Consumer;var kv=K.createContext(void 0);function ka(){return K.useContext(hs)}function Nv(r){var e=K.useState(r.stylisPlugins),t=e[0],n=e[1],o=ka().styleSheet,i=K.useMemo(function(){var c=o;return r.sheet?c=r.sheet:r.target&&(c=c.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[r.disableCSSOMInjection,r.sheet,r.target,o]),a=K.useMemo(function(){return yl({options:{namespace:r.namespace,prefix:r.enableVendorPrefixes},plugins:t})},[r.enableVendorPrefixes,r.namespace,t]);K.useEffect(function(){Pm(t,r.stylisPlugins)||n(r.stylisPlugins)},[r.stylisPlugins]);var s=K.useMemo(function(){return{shouldForwardProp:r.shouldForwardProp,styleSheet:i,stylis:a}},[r.shouldForwardProp,i,a]);return K.createElement(hs.Provider,{value:s},K.createElement(kv.Provider,{value:a},r.children))}var Na=function(){function r(e,t){var n=this;this.inject=function(o,i){i===void 0&&(i=Ra);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ds(this,function(){throw An(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=Ra),this.name+e.hash},r}(),Ov=function(r){return r>="A"&&r<="Z"};function Pc(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;Ov(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var _l=function(r){return r==null||r===!1||r===""},El=function(r){var e,t,n=[];for(var o in r){var i=r[o];r.hasOwnProperty(o)&&!_l(i)&&(Array.isArray(i)&&i.isCss||En(i)?n.push("".concat(Pc(o),":"),i,";"):Cn(i)?n.push.apply(n,rt(rt(["".concat(o," {")],El(i),!1),["}"],!1)):n.push("".concat(Pc(o),": ").concat((e=o,(t=i)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Xm||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return n};function Ar(r,e,t,n){if(_l(r))return[];if(ls(r))return[".".concat(r.styledComponentId)];if(En(r)){if(!En(i=r)||i.prototype&&i.prototype.isReactComponent||!e)return[r];var o=r(e);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Na||Cn(o)||o===null||console.error("".concat(ll(r)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ar(o,e,t,n)}var i;return r instanceof Na?t?(r.inject(t,n),[r.getName(n)]):[r]:Cn(r)?El(r):Array.isArray(r)?Array.prototype.concat.apply(ki,r.map(function(a){return Ar(a,e,t,n)})):[r.toString()]}function Pv(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(En(t)&&!ls(t))return!1}return!0}var Mv=cl("6.0.8"),xv=function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Pv(e),this.componentId=t,this.baseHash=lr(Mv,t),this.baseStyle=n,ml.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=pr(o,this.staticRulesId);else{var i=Ia(Ar(this.rules,e,t,n)),a=Sa(lr(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}o=pr(o,a),this.staticRulesId=a}else{for(var c=lr(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(c=lr(c,d));else if(d){var h=Ia(Ar(d,e,t,n));c=lr(c,h+u),l+=h}}if(l){var f=Sa(c>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),o=pr(o,f)}}return o},r}(),Cl=K.createContext(void 0);Cl.Consumer;var ea={},Mc=new Set;function Lv(r,e,t){var n=ls(r),o=r,i=!Xi(r),a=e.attrs,s=a===void 0?ki:a,c=e.componentId,l=c===void 0?function(B,G){var U=typeof B!="string"?"sc":Ic(B);ea[U]=(ea[U]||0)+1;var P="".concat(U,"-").concat(ul("6.0.8"+U+ea[U]));return G?"".concat(G,"-").concat(P):P}(e.displayName,e.parentComponentId):c,u=e.displayName,d=u===void 0?function(B){return Xi(B)?"styled.".concat(B):"Styled(".concat(ll(B),")")}(r):u,h=e.displayName&&e.componentId?"".concat(Ic(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&o.shouldForwardProp){var v=o.shouldForwardProp;if(e.shouldForwardProp){var _=e.shouldForwardProp;p=function(B,G){return v(B,G)&&_(B,G)}}else p=v}var C=new xv(t,h,n?o.componentStyle:void 0);function E(B,G){return function(U,P,q){var Ae=U.attrs,Pi=U.componentStyle,Mi=U.defaultProps,xi=U.foldedComponentIds,M=U.styledComponentId,R=U.target,V=K.useContext(Cl),z=ka(),j=U.shouldForwardProp||z.shouldForwardProp;process.env.NODE_ENV!=="production"&&K.useDebugValue(M);var H=function(me,lt,Rn){for(var xr,ir=Fe(Fe({},lt),{className:void 0,theme:Rn}),Li=0;Li<me.length;Li+=1){var mo=En(xr=me[Li])?xr(ir):xr;for(var Gt in mo)ir[Gt]=Gt==="className"?pr(ir[Gt],mo[Gt]):Gt==="style"?Fe(Fe({},ir[Gt]),mo[Gt]):mo[Gt]}return lt.className&&(ir.className=pr(ir.className,lt.className)),ir}(Ae,P,tv(P,V,Mi)||_n),W=H.as||R,ae={};for(var Q in H)H[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"||(Q==="forwardedAs"?ae.as=H.forwardedAs:j&&!j(Q,W)||(ae[Q]=H[Q],j||process.env.NODE_ENV!=="development"||Nm(Q)||Mc.has(Q)||!Ta.has(W)||(Mc.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var he=function(me,lt){var Rn=ka(),xr=me.generateAndInjectStyles(lt,Rn.styleSheet,Rn.stylis);return process.env.NODE_ENV!=="production"&&K.useDebugValue(xr),xr}(Pi,H);process.env.NODE_ENV!=="production"&&U.warnTooManyClasses&&U.warnTooManyClasses(he);var Oe=pr(xi,M);return he&&(Oe+=" "+he),H.className&&(Oe+=" "+H.className),ae[Xi(W)&&!Ta.has(W)?"class":"className"]=Oe,ae.ref=q,K.createElement(W,ae)}(T,B,G)}process.env.NODE_ENV!=="production"&&(E.displayName=d);var T=K.forwardRef(E);return T.attrs=f,T.componentStyle=C,T.shouldForwardProp=p,process.env.NODE_ENV!=="production"&&(T.displayName=d),T.foldedComponentIds=n?pr(o.foldedComponentIds,o.styledComponentId):"",T.styledComponentId=h,T.target=n?o.target:r,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(B){this._foldedDefaultProps=n?function(G){for(var U=[],P=1;P<arguments.length;P++)U[P-1]=arguments[P];for(var q=0,Ae=U;q<Ae.length;q++)Aa(G,Ae[q],!0);return G}({},o.defaultProps,B):B}}),process.env.NODE_ENV!=="production"&&(ev(d,h),T.warnTooManyClasses=function(B,G){var U={},P=!1;return function(q){if(!P&&(U[q]=!0,Object.keys(U).length>=200)){var Ae=G?' with the id of "'.concat(G,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(B).concat(Ae,`.
81
81
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
82
82
  Example:
83
83
  const Component = styled.div.attrs(props => ({
@@ -86,12 +86,12 @@ Example:
86
86
  },
87
87
  }))\`width: 100%;\`
88
88
 
89
- <Component />`),B=!0,z={}}}}(d,h)),Ni(k,function(){return".".concat(k.styledComponentId)}),i&&cc(k,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Wa(r,e){for(var t=[r[0]],n=0,o=e.length;n<o;n+=1)t.push(e[n],r[n+1]);return t}var Qa=function(r){return Object.assign(r,{isCss:!0})};function De(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Er(r)||Cr(r)){var n=r;return Qa($t(Wa(so,$e([n],e,!0))))}var o=r;return e.length===0&&o.length===1&&typeof o[0]=="string"?$t(o):Qa($t(Wa(o,e)))}function ci(r,e,t){if(t===void 0&&(t=_r),!e)throw Ir(1,e);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return r(e,t,De.apply(void 0,$e([o],i,!1)))};return n.attrs=function(o){return ci(r,e,Re(Re({},t),{attrs:Array.prototype.concat(t.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return ci(r,e,Re(Re({},t),o))},n}var mc=function(r){return ci(mg,r)},st=mc;ri.forEach(function(r){st[r]=mc(r)});function vc(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=oi(De.apply(void 0,$e([r],e,!1))),o=nc(n);return new si(o,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
89
+ <Component />`),P=!0,U={}}}}(d,h)),ds(T,function(){return".".concat(T.styledComponentId)}),i&&pl(T,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function xc(r,e){for(var t=[r[0]],n=0,o=e.length;n<o;n+=1)t.push(e[n],r[n+1]);return t}var Lc=function(r){return Object.assign(r,{isCss:!0})};function We(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(En(r)||Cn(r)){var n=r;return Lc(Ar(xc(ki,rt([n],e,!0))))}var o=r;return e.length===0&&o.length===1&&typeof o[0]=="string"?Ar(o):Lc(Ar(xc(o,e)))}function Oa(r,e,t){if(t===void 0&&(t=_n),!e)throw An(1,e);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return r(e,t,We.apply(void 0,rt([o],i,!1)))};return n.attrs=function(o){return Oa(r,e,Fe(Fe({},t),{attrs:Array.prototype.concat(t.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return Oa(r,e,Fe(Fe({},t),o))},n}var wl=function(r){return Oa(Lv,r)},kt=wl;Ta.forEach(function(r){kt[r]=wl(r)});function bl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=Ia(We.apply(void 0,rt([r],e,!1))),o=ul(n);return new Na(o,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
90
90
  Perhaps you're looking to import 'styled-components/native'?
91
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var dn="__sc-".concat(Vt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[dn]||(window[dn]=0),window[dn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
91
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ko="__sc-".concat(Or,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ko]||(window[ko]=0),window[ko]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
92
92
 
93
- See https://s-c.sh/2BAXzed for more info.`),window[dn]+=1);var vg={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},yg={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},_g={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},Eg={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},Cg={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},wg={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},bg={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},ct={clickbounds:vg,colors:yg,elevation:_g,interactions:Eg,shape:Cg,typography:wg,spacings:bg};function Tg(r){if(Array.isArray(r))return r}function Sg(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Ja(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Ig(r,e){if(r){if(typeof r=="string")return Ja(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ja(r,e)}}function Ag(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rg(r,e){return Tg(r)||Sg(r,e)||Ig(r,e)||Ag()}var nr=function(e){if(e){var t=e.width,n=t===void 0?"":t,o=e.style,i=o===void 0?"":o,a=e.color,s=a===void 0?"":a;return n?"".concat(n," ").concat(i," ").concat(s):null}},kg=function(e){var t,n,o,i;if(!e)return De({});switch(e.type){case"border":return De({border:nr(e),borderRadius:e.radius});case"bordergroup":return De({borderBottom:nr(e.bottom),borderTop:nr(e.top),borderLeft:nr(e.left),borderRight:nr(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(n=e.left)===null||n===void 0?void 0:n.radius,borderBottomRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius,borderTopRightRadius:e==null||(i=e.right)===null||i===void 0?void 0:i.radius});default:return De({})}},Ng=ct.colors.interactive.focus.rgba,Xa=function(e){var t=e.color,n=t===void 0?Ng:t,o=e.style,i=o===void 0?"dashed":o,a=e.width,s=a===void 0?"2px":a,c=e.offset,l=c===void 0?"0px":c,u=e.type,d={color:n,style:i,width:s,offset:l,type:u};return De({outline:nr(d),outlineOffset:d.offset})},Pg=function(e,t){if(!e)return"";var n=`
93
+ See https://s-c.sh/2BAXzed for more info.`),window[ko]+=1);const Uv=r=>(t,n,o)=>{t.type==="rule"&&(t.props=t.props.map(i=>`${r} ${i}, div[id^='eds-'] ${i}`))},fs=({scope:r,children:e})=>{const t=r?[Uv(`#${r}`)]:[];return re.jsx(Nv,{stylisPlugins:t,children:re.jsx("div",{id:r,children:e})})};function Jn(r){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(r)}function Hv(r,e){if(Jn(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Dv(r){var e=Hv(r,"string");return Jn(e)==="symbol"?e:String(e)}function Fv(r,e,t){return e=Dv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Uc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function oe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Uc(Object(t),!0).forEach(function(n){Fv(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Uc(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function qv(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function $t(r,e){if(r==null)return{};var t=qv(r,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}var Kv={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},Bv={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},$v={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},Gv={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},jv={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},zv={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},Qv={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},Nt={clickbounds:Kv,colors:Bv,elevation:$v,interactions:Gv,shape:jv,typography:zv,spacings:Qv};function Vv(r){if(Array.isArray(r))return r}function Yv(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Hc(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Wv(r,e){if(r){if(typeof r=="string")return Hc(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Hc(r,e)}}function Jv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xv(r,e){return Vv(r)||Yv(r,e)||Wv(r,e)||Jv()}var Kr=function(e){if(e){var t=e.width,n=t===void 0?"":t,o=e.style,i=o===void 0?"":o,a=e.color,s=a===void 0?"":a;return n?"".concat(n," ").concat(i," ").concat(s):null}},Zv=function(e){var t,n,o,i;if(!e)return We({});switch(e.type){case"border":return We({border:Kr(e),borderRadius:e.radius});case"bordergroup":return We({borderBottom:Kr(e.bottom),borderTop:Kr(e.top),borderLeft:Kr(e.left),borderRight:Kr(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(n=e.left)===null||n===void 0?void 0:n.radius,borderBottomRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius,borderTopRightRadius:e==null||(i=e.right)===null||i===void 0?void 0:i.radius});default:return We({})}},ey=Nt.colors.interactive.focus.rgba,Dc=function(e){var t=e.color,n=t===void 0?ey:t,o=e.style,i=o===void 0?"dashed":o,a=e.width,s=a===void 0?"2px":a,c=e.offset,l=c===void 0?"0px":c,u=e.type,d={color:n,style:i,width:s,offset:l,type:u};return We({outline:Kr(d),outlineOffset:d.offset})},ty=function(e,t){if(!e)return"";var n=`
95
95
  margin: 0;
96
96
  color: `.concat(e.color,`;
97
97
  font-family: `).concat(e.fontFamily,`;
@@ -105,7 +105,7 @@ text-transform: `.concat(e.textTransform,";")),e.textDecoration&&(n+=`
105
105
  text-decoration: `.concat(e.textDecoration,";")),e.textAlign&&(n+=`
106
106
  text-align: `.concat(e.textAlign,";")),e.fontFeature&&(n+=`
107
107
  font-feature-settings: `.concat(e.fontFeature,";")),t&&(n+=`
108
- cursor: pointer;`),n},yc={density:"comfortable"},Og=Y.createContext(yc),Mg=function(e){var t=e.children,n=e.density,o=Y.useState(J(J({},yc),{},{density:n||"comfortable"})),i=Rg(o,2),a=i[0],s=i[1],c=function(d){return s(function(h){return J(J({},h),{},{density:d})})};Y.useEffect(function(){typeof n<"u"&&n!==a.density&&c(n)},[n,a.density]);var l={density:a.density,setDensity:c};return Q.jsx(Og.Provider,{value:l,children:t})},co=ct.colors.ui,xg=co.background__default.rgba,Lg=co.background__info.rgba,Ug=co.background__warning.rgba,Hg=co.background__danger.rgba,hn=ct.spacings.comfortable.medium,Dg=ct.shape.corners.borderRadius,Yt={background:xg,border:{type:"border",radius:Dg},spacings:{left:hn,bottom:hn,right:hn,top:hn}},Fg={background:Lg},qg={background:Hg},Bg={background:Ug};const Kg=Object.freeze(Object.defineProperty({__proto__:null,danger:qg,info:Fg,primary:Yt,warning:Bg},Symbol.toStringTag,{value:"Module"}));var $g=ct.elevation,Gg=ct.colors.ui.background__default.rgba,jg={background:Gg},zg=["elevation"],Vg=st.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],jg.background,function(r){var e=r.$elevation;return e}),Yg=Y.forwardRef(function(e,t){var n,o=e.elevation,i=Et(e,zg),a=J(J({},i),{},{$elevation:(n=$g[o])!==null&&n!==void 0?n:"none"});return Q.jsx(Vg,J(J({},a),{},{ref:t}))}),Wg=["children","variant","elevation"],Qg=Yt,Jg=st(Yg).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],function(r){var e=r.background;return e},kg(Qg.border)),Xg=Y.forwardRef(function(e,t){var n=e.children,o=e.variant,i=o===void 0?"default":o,a=e.elevation,s=a===void 0?"none":a,c=Et(e,Wg),l=i==="default"?"primary":i,u=Kg[l],d=J({ref:t,background:u.background},c);return Q.jsx(Jg,J(J({elevation:s},d),{},{children:n}))}),Pi=ct.typography,Zg=ct.colors,em=ct.interactions.focused.width,tm=Pi.heading,rm=Pi.paragraph,Wt=Zg.interactive,nm=Wt.primary__resting.rgba,om=Wt.secondary__resting.rgba,im=Wt.danger__resting.rgba,am=Wt.warning__resting.rgba,sm=Wt.success__resting.rgba,cm=Wt.disabled__text.rgba,lm=Wt.focus.rgba,Za={primary:nm,secondary:om,danger:im,warning:am,success:sm,disabled:cm},es=J(J({},tm),rm),ts={states:{focus:{outline:{width:em,color:lm,style:"dashed",type:"outline",offset:"2px"}}}},um=["variant","children","bold","italic","link","color","group","token","as"],dm=function(e,t){if(t)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},hm=function(e,t){return!t&&es[e]?es[e]:Pi[t][e]},fm=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof Za[e]>"u"?e:Za[e]},pm=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(n?"_italic":"").concat(o?"_link":"")},gm=st.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(r){var e=r.typography,t=r.$link;return Pg(e,t)},function(r){var e=r.$color;return De({color:fm(e)})},function(r){var e=r.lines;return e>0&&De(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(r){var e=r.$link;return e&&De(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Xa(ts.states.focus.outline),Xa(ts.states.focus.outline))}),Vn=Y.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"body_short":n,i=e.children,a=e.bold,s=e.italic,c=e.link,l=e.color,u=e.group,d=e.token,h=e.as,f=Et(e,um),p=h||dm(o,c),m=pm(o,a,s,c),T=hm(m,u);if(typeof T>"u")throw new Error('Typography variant not found for variant "'.concat(m,'" ("').concat(o,'") & group "').concat(u||"",'"'));return Q.jsx(gm,J(J({as:p,typography:J(J({},T),d),$link:c,ref:t,$color:l},f),{},{children:i}))}),mm=["children","alignRight","meta"],fn=Yt.spacings,vm=st.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],function(r){var e=r.justifyContent;return e},fn.right,fn.left,fn.top,fn.bottom),ym=Y.forwardRef(function(e,t){var n=e.children,o=e.alignRight,i=o===void 0?!1:o,a=e.meta,s=a===void 0?"":a,c=Et(e,mm),l=i?"flex-end":"flex-start",u=J({ref:t,justifyContent:l},c);return Q.jsxs(vm,J(J({},u),{},{children:[n,s!==""&&Q.jsx(Vn,{variant:"caption",children:s})]}))}),_m=["children"],Mo=Yt.spacings,Em=st.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],Mo.right,Mo.left,Mo.bottom),Cm=Y.forwardRef(function(e,t){var n=e.children,o=Et(e,_m);return Q.jsx(Em,J(J({ref:t},o),{},{children:n}))}),wm=["children","fullWidth"],bt=Yt.spacings,Tt=Yt.border,bm=st.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(r){var e=r.fullWidth;return e?De(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],Tt.type==="border"&&Tt.radius,Tt.type==="border"&&Tt.radius,Tt.type==="border"&&Tt.radius,Tt.type==="border"&&Tt.radius):De(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],bt.right,bt.left,bt.top,bt.right,bt.left,bt.right,bt.bottom,bt.left)}),Tm=Y.forwardRef(function(e,t){var n=e.children,o=e.fullWidth,i=o===void 0?!1:o,a=Et(e,wm),s=J(J({},a),{},{ref:t,fullWidth:i});return Q.jsx(bm,J(J({},s),{},{children:n}))}),Sm=["children"],Pr=Yt.spacings,Im=st.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],Pr.right,Pr.left,Pr.left,Pr.top,Pr.bottom),Am=Y.forwardRef(function(e,t){var n=e.children,o=Et(e,Sm),i=J(J({},o),{},{ref:t});return Q.jsx(Im,J(J({},i),{},{children:n}))}),Rm=["children"],km=st.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),Nm=Y.forwardRef(function(e,t){var n=e.children,o=Et(e,Rm),i=J(J({},o),{},{ref:t});return Q.jsx(km,J(J({},i),{},{children:n}))}),Ke=Xg;Ke.Actions=ym;Ke.Content=Cm;Ke.Header=Am;Ke.Media=Tm;Ke.HeaderTitle=Nm;Ke.Actions.displayName="Card.Actions";Ke.Content.displayName="Card.Content";Ke.Header.displayName="Card.Header";Ke.Media.displayName="Card.Media";Ke.HeaderTitle.displayName="Card.HeaderTitle";var Pm=ct.colors.logo.fill_positive.rgba,Om={background:Pm},Mm=["variant","value","size"],tr=vc(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),xm=vc(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),Lm=st.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],Om.background,function(r){var e=r.variant,t=r.progress;return e==="indeterminate"?De(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],tr,tr,tr,tr,tr,tr):De(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],xm,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),Um=Y.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"indeterminate":n,i=e.value,a=i===void 0?null:i,s=e.size,c=s===void 0?48:s,l=Et(e,Mm),u=Math.round(a),d=c*1.2,h=c,f=J(J({},l),{},{ref:t,variant:o,progress:u});return o==="determinate"&&a!==void 0&&(f["aria-valuenow"]=u,f["aria-valuemin"]=0,f["aria-valuemax"]=100),Q.jsxs(Lm,J(J({},f),{},{role:"progressbar",width:h,height:d,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[Q.jsx("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),Q.jsx("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),Q.jsx("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),Q.jsx("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),Q.jsx("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),Q.jsx("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))});const Hm=(r,e,t)=>Y.lazy(async()=>{const o=await sp(t)(e),{fusion:i}=e;return o.event.dispatchEvent("onReactAppLoaded",{detail:{modules:o,fusion:i},source:r}),{default:()=>Q.jsx(tp,{value:i,children:Q.jsx(Mg,{density:e.env.density,children:Q.jsx(np,{value:o,children:r})})})}}),Oi=({children:r,text:e})=>Q.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[Q.jsx(Um,{size:96*2,variant:"indeterminate",children:r}),Q.jsx(Vn,{variant:"h4",children:e})]}),lo=({error:r})=>(console.error(r),Q.jsxs(Q.Fragment,{children:[Q.jsxs(Ke,{variant:"warning",children:[Q.jsx(Ke.Header,{children:Q.jsx(Vn,{variant:"h4",color:"warning",children:r.message})}),Q.jsx(Ke.Content,{children:r.stack??"Derp"})]}),Q.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[Q.jsx(Vn,{variant:"h4",color:"warning",children:r.message}),Q.jsx("section",{style:{padding:10},children:r.stack&&Q.jsx("pre",{children:r.stack})})]}),r.cause&&Q.jsx(lo,{error:r.cause})]})),Dm=(r,e,t)=>{Y.useLayoutEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])};function _c(r,e){const[t,n]=Y.useState(()=>e!=null&&e.initial?"value"in r?r.value:e.initial:void 0),[o,i]=Y.useState(null),[a,s]=Y.useState(!1);Y.useLayoutEffect(()=>{i(null),s(!1),n("value"in r?r.value:void 0)},[n,i,s,r]);const c=Y.useMemo(()=>({next:n,error:i,complete:()=>s(!0)}),[n,i,s]);return Dm(r,c,e==null?void 0:e.teardown),{value:t,error:o,complete:a}}const Fm=()=>{const r=Si().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=Y.useMemo(()=>r.current$,[r]),{value:t,error:n}=_c(e);return{currentApp:t,setCurrentApp:Y.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:Y.useMemo(()=>r.clearCurrentApp.bind(r),[r]),error:n}},qm=()=>{const r=Si().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");return r},Bm=r=>{const e=qm(),{value:t,complete:n}=_c(Y.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:Y.useMemo(()=>t&&!(r!=null&&r.includeHidden)?t.filter(i=>!i.hide):t,[r,t]),isLoading:!n}};function Km(r,e){const t={appKey:r.key,manifest:r,config:{environment:"development",endpoints:{}}},n=e.modules.app.createApp(t),o=n.initialize();return{appModule:n,appModuleScript:o}}function Ec({app:r,kind:e}){e=e??"widget";const{setCurrentApp:t,clearCurrentApp:n}=Fm(),o=Si(),[i,a]=Y.useState(null),[s,c]=Y.useState(!1),l=(h,f)=>{o.modules.event.dispatchEvent(h,new CustomEvent(h,f))};function u(h){const{appModule:f,appModuleScript:p}=Km(r,o),[m]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return mn(p).then(T=>{(T.script.renderApp??T.script.default)(h,{fusion:o,env:{manifest:r,config:{environment:"development",endpoints:{}},basename:m,props:{}}}),e==="app"&&t(r.key)}),f}Y.useEffect(()=>{var p;if(a(null),!r){l("onAppInitializeFailed",{detail:"App not found"}),a(new Error("Selected application does not exist"));return}c(!0);const h=document.createElement("div");h.style.height="30%",(p=d.current)==null||p.appendChild(h);const f=u(h);return c(!1),()=>{var m;try{(m=d.current)==null||m.removeChild(h)}catch{}f.dispose(),n()}},[r]);const d=Y.useRef(null);return Q.jsxs("div",{ref:d,children:[s&&Q.jsx(Oi,{text:`Loading ${e==="app"?"application":"widget"}`}),i&&Q.jsx(lo,{error:i})]})}/**
108
+ cursor: pointer;`),n},Tl={density:"comfortable"},ry=K.createContext(Tl),ny=function(e){var t=e.children,n=e.density,o=K.useState(oe(oe({},Tl),{},{density:n||"comfortable"})),i=Xv(o,2),a=i[0],s=i[1],c=function(d){return s(function(h){return oe(oe({},h),{},{density:d})})};K.useEffect(function(){typeof n<"u"&&n!==a.density&&c(n)},[n,a.density]);var l={density:a.density,setDensity:c};return re.jsx(ry.Provider,{value:l,children:t})},Ni=Nt.colors.ui,oy=Ni.background__default.rgba,iy=Ni.background__info.rgba,ay=Ni.background__warning.rgba,sy=Ni.background__danger.rgba,No=Nt.spacings.comfortable.medium,cy=Nt.shape.corners.borderRadius,Pr={background:oy,border:{type:"border",radius:cy},spacings:{left:No,bottom:No,right:No,top:No}},uy={background:iy},ly={background:sy},dy={background:ay};const hy=Object.freeze(Object.defineProperty({__proto__:null,danger:ly,info:uy,primary:Pr,warning:dy},Symbol.toStringTag,{value:"Module"}));var fy=Nt.elevation,py=Nt.colors.ui.background__default.rgba,gy={background:py},my=["elevation"],vy=kt.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],gy.background,function(r){var e=r.$elevation;return e}),yy=K.forwardRef(function(e,t){var n,o=e.elevation,i=o===void 0?"none":o,a=$t(e,my),s=oe(oe({},a),{},{$elevation:(n=fy[i])!==null&&n!==void 0?n:"none"});return re.jsx(vy,oe(oe({},s),{},{ref:t}))}),_y=["children","variant","elevation"],Ey=Pr,Cy=kt(yy).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],function(r){var e=r.$background;return e},Zv(Ey.border)),wy=K.forwardRef(function(e,t){var n=e.children,o=e.variant,i=o===void 0?"default":o,a=e.elevation,s=a===void 0?"none":a,c=$t(e,_y),l=i==="default"?"primary":i,u=hy[l],d=oe({ref:t,$background:u.background},c);return re.jsx(Cy,oe(oe({elevation:s},d),{},{children:n}))}),ps=Nt.typography,by=Nt.colors,Ty=Nt.interactions.focused.width,Sy=ps.heading,Iy=ps.paragraph,Mr=by.interactive,Ay=Mr.primary__resting.rgba,Ry=Mr.secondary__resting.rgba,ky=Mr.danger__resting.rgba,Ny=Mr.warning__resting.rgba,Oy=Mr.success__resting.rgba,Py=Mr.disabled__text.rgba,My=Mr.focus.rgba,Fc={primary:Ay,secondary:Ry,danger:ky,warning:Ny,success:Oy,disabled:Py},qc=oe(oe({},Sy),Iy),Kc={states:{focus:{outline:{width:Ty,color:My,style:"dashed",type:"outline",offset:"2px"}}}},xy=["variant","children","bold","italic","link","lines","color","group","token","as"],Ly=function(e,t){if(t)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},Uy=function(e,t){return!t&&qc[e]?qc[e]:ps[t][e]},Hy=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof Fc[e]>"u"?e:Fc[e]},Dy=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(n?"_italic":"").concat(o?"_link":"")},Fy=kt.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(r){var e=r.$typography,t=r.$link;return ty(e,t)},function(r){var e=r.$color;return We({color:Hy(e)})},function(r){var e=r.$lines;return e>0&&We(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(r){var e=r.$link;return e&&We(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Dc(Kc.states.focus.outline),Dc(Kc.states.focus.outline))}),gs=K.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"body_short":n,i=e.children,a=e.bold,s=e.italic,c=e.link,l=e.lines,u=e.color,d=e.group,h=e.token,f=e.as,p=$t(e,xy),v=f||Ly(o,c),_=Dy(o,a,s,c),C=Uy(_,d);if(typeof C>"u")throw new Error('Typography variant not found for variant "'.concat(_,'" ("').concat(o,'") & group "').concat(d||"",'"'));return re.jsx(Fy,oe(oe({as:v,$typography:oe(oe({},C),h),$link:c,$lines:l,ref:t,$color:u},p),{},{children:i}))}),qy=["children","alignRight","meta"],Oo=Pr.spacings,Ky=kt.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],function(r){var e=r.$justifyContent;return e},Oo.right,Oo.left,Oo.top,Oo.bottom),By=K.forwardRef(function(e,t){var n=e.children,o=e.alignRight,i=o===void 0?!1:o,a=e.meta,s=a===void 0?"":a,c=$t(e,qy),l=i?"flex-end":"flex-start",u=oe({ref:t,$justifyContent:l},c);return re.jsxs(Ky,oe(oe({},u),{},{children:[n,s!==""&&re.jsx(gs,{variant:"caption",children:s})]}))}),$y=["children"],ta=Pr.spacings,Gy=kt.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],ta.right,ta.left,ta.bottom),jy=K.forwardRef(function(e,t){var n=e.children,o=$t(e,$y);return re.jsx(Gy,oe(oe({ref:t},o),{},{children:n}))}),zy=["children","fullWidth"],jt=Pr.spacings,zt=Pr.border,Qy=kt.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(r){var e=r.$fullWidth;return e?We(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],zt.type==="border"&&zt.radius,zt.type==="border"&&zt.radius,zt.type==="border"&&zt.radius,zt.type==="border"&&zt.radius):We(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],jt.right,jt.left,jt.top,jt.right,jt.left,jt.right,jt.bottom,jt.left)}),Vy=K.forwardRef(function(e,t){var n=e.children,o=e.fullWidth,i=o===void 0?!1:o,a=$t(e,zy),s=oe(oe({},a),{},{ref:t,$fullWidth:i});return re.jsx(Qy,oe(oe({},s),{},{children:n}))}),Yy=["children"],Pn=Pr.spacings,Wy=kt.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],Pn.right,Pn.left,Pn.left,Pn.top,Pn.bottom),Jy=K.forwardRef(function(e,t){var n=e.children,o=$t(e,Yy),i=oe(oe({},o),{},{ref:t});return re.jsx(Wy,oe(oe({},i),{},{children:n}))}),Xy=["children"],Zy=kt.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),e_=K.forwardRef(function(e,t){var n=e.children,o=$t(e,Xy),i=oe(oe({},o),{},{ref:t});return re.jsx(Zy,oe(oe({},i),{},{children:n}))}),tt=wy;tt.Actions=By;tt.Content=jy;tt.Header=Jy;tt.Media=Vy;tt.HeaderTitle=e_;tt.Actions.displayName="Card.Actions";tt.Content.displayName="Card.Content";tt.Header.displayName="Card.Header";tt.Media.displayName="Card.Media";tt.HeaderTitle.displayName="Card.HeaderTitle";var t_=Nt.colors.logo.fill_positive.rgba,r_={background:t_},n_=["variant","value","size"],Fr=bl(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),o_=bl(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),i_=kt.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],r_.background,function(r){var e=r.$variant,t=r.$progress;return e==="indeterminate"?We(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],Fr,Fr,Fr,Fr,Fr,Fr):We(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],o_,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),a_=K.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"indeterminate":n,i=e.value,a=i===void 0?null:i,s=e.size,c=s===void 0?48:s,l=$t(e,n_),u=Math.round(a),d=c*1.2,h=c,f=oe(oe({},l),{},{ref:t,$variant:o,$progress:u});return o==="determinate"&&a!==void 0&&(f["aria-valuenow"]=u,f["aria-valuemin"]=0,f["aria-valuemax"]=100),re.jsxs(i_,oe(oe({},f),{},{role:"progressbar",width:h,height:d,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[re.jsx("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),re.jsx("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),re.jsx("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),re.jsx("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),re.jsx("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),re.jsx("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))});const s_=({event:r,children:e})=>{const[t,n]=K.useState(localStorage.getItem("roma__density")??"comfortable"),o=po().modules.event;return K.useEffect(()=>{const i=o.event$.pipe(Wo(a=>a.type==="onDensityChanged")).subscribe(a=>{n(a.detail)});return()=>i.unsubscribe()},[r]),re.jsx(ny,{density:t,children:e})};var go=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wn=typeof window>"u"||"Deno"in window;function st(){}function c_(r,e){return typeof r=="function"?r(e):r}function Pa(r){return typeof r=="number"&&r>=0&&r!==1/0}function Sl(r,e){return Math.max(r+(e||0)-Date.now(),0)}function Bc(r,e){const{type:t="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=r;if(a){if(n){if(e.queryHash!==ms(a,e.options))return!1}else if(!Zn(e.queryKey,a))return!1}if(t!=="all"){const c=e.isActive();if(t==="active"&&!c||t==="inactive"&&c)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof o<"u"&&o!==e.state.fetchStatus||i&&!i(e))}function $c(r,e){const{exact:t,status:n,predicate:o,mutationKey:i}=r;if(i){if(!e.options.mutationKey)return!1;if(t){if(Xn(e.options.mutationKey)!==Xn(i))return!1}else if(!Zn(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||o&&!o(e))}function ms(r,e){return((e==null?void 0:e.queryKeyHashFn)||Xn)(r)}function Xn(r){return JSON.stringify(r,(e,t)=>xa(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t)}function Zn(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!Zn(r[t],e[t])):!1}function Il(r,e){if(r===e)return r;const t=Gc(r)&&Gc(e);if(t||xa(r)&&xa(e)){const n=t?r.length:Object.keys(r).length,o=t?e:Object.keys(e),i=o.length,a=t?[]:{};let s=0;for(let c=0;c<i;c++){const l=t?c:o[c];a[l]=Il(r[l],e[l]),a[l]===r[l]&&s++}return n===i&&s===n?r:a}return e}function Ma(r,e){if(r&&!e||e&&!r)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}function Gc(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function xa(r){if(!jc(r))return!1;const e=r.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!jc(t)||!t.hasOwnProperty("isPrototypeOf"))}function jc(r){return Object.prototype.toString.call(r)==="[object Object]"}function Al(r){return new Promise(e=>{setTimeout(e,r)})}function zc(r){Al(0).then(r)}function La(r,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?Il(r,e):e}function u_(r,e,t=0){const n=[...r,e];return t&&n.length>t?n.slice(1):n}function l_(r,e,t=0){const n=[e,...r];return t&&n.length>t?n.slice(0,-1):n}var gr,Xt,Xr,Xc,d_=(Xc=class extends go{constructor(){super();F(this,gr,void 0);F(this,Xt,void 0);F(this,Xr,void 0);k(this,Xr,e=>{if(!wn&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){m(this,Xt)||this.setEventListener(m(this,Xr))}onUnsubscribe(){var e;this.hasListeners()||((e=m(this,Xt))==null||e.call(this),k(this,Xt,void 0))}setEventListener(e){var t;k(this,Xr,e),(t=m(this,Xt))==null||t.call(this),k(this,Xt,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){m(this,gr)!==e&&(k(this,gr,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof m(this,gr)=="boolean"?m(this,gr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},gr=new WeakMap,Xt=new WeakMap,Xr=new WeakMap,Xc),fi=new d_,Zr,Zt,en,Zc,h_=(Zc=class extends go{constructor(){super();F(this,Zr,!0);F(this,Zt,void 0);F(this,en,void 0);k(this,en,e=>{if(!wn&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){m(this,Zt)||this.setEventListener(m(this,en))}onUnsubscribe(){var e;this.hasListeners()||((e=m(this,Zt))==null||e.call(this),k(this,Zt,void 0))}setEventListener(e){var t;k(this,en,e),(t=m(this,Zt))==null||t.call(this),k(this,Zt,e(this.setOnline.bind(this)))}setOnline(e){m(this,Zr)!==e&&(k(this,Zr,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return m(this,Zr)}},Zr=new WeakMap,Zt=new WeakMap,en=new WeakMap,Zc),pi=new h_;function f_(r){return Math.min(1e3*2**r,3e4)}function Oi(r){return(r??"online")==="online"?pi.isOnline():!0}var Rl=class{constructor(r){this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function ra(r){return r instanceof Rl}function kl(r){let e=!1,t=0,n=!1,o,i,a;const s=new Promise((_,C)=>{i=_,a=C}),c=_=>{var C;n||(f(new Rl(_)),(C=r.abort)==null||C.call(r))},l=()=>{e=!0},u=()=>{e=!1},d=()=>!fi.isFocused()||r.networkMode!=="always"&&!pi.isOnline(),h=_=>{var C;n||(n=!0,(C=r.onSuccess)==null||C.call(r,_),o==null||o(),i(_))},f=_=>{var C;n||(n=!0,(C=r.onError)==null||C.call(r,_),o==null||o(),a(_))},p=()=>new Promise(_=>{var C;o=E=>{const T=n||!d();return T&&_(E),T},(C=r.onPause)==null||C.call(r)}).then(()=>{var _;o=void 0,n||(_=r.onContinue)==null||_.call(r)}),v=()=>{if(n)return;let _;try{_=r.fn()}catch(C){_=Promise.reject(C)}Promise.resolve(_).then(h).catch(C=>{var U;if(n)return;const E=r.retry??(wn?0:3),T=r.retryDelay??f_,B=typeof T=="function"?T(t,C):T,G=E===!0||typeof E=="number"&&t<E||typeof E=="function"&&E(t,C);if(e||!G){f(C);return}t++,(U=r.onFail)==null||U.call(r,t,C),Al(B).then(()=>{if(d())return p()}).then(()=>{e?f(C):v()})})};return Oi(r.networkMode)?v():p().then(v),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}function p_(){let r=[],e=0,t=u=>{u()},n=u=>{u()};const o=u=>{let d;e++;try{d=u()}finally{e--,e||s()}return d},i=u=>{e?r.push(u):zc(()=>{t(u)})},a=u=>(...d)=>{i(()=>{u(...d)})},s=()=>{const u=r;r=[],u.length&&zc(()=>{n(()=>{u.forEach(d=>{t(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{n=u}}}var Me=p_(),mr,eu,Nl=(eu=class{constructor(){F(this,mr,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pa(this.gcTime)&&k(this,mr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(wn?1/0:5*60*1e3))}clearGcTimeout(){m(this,mr)&&(clearTimeout(m(this,mr)),k(this,mr,void 0))}},mr=new WeakMap,eu),tn,rn,ot,er,it,ke,eo,vr,nn,jo,ht,Pt,tu,g_=(tu=class extends Nl{constructor(e){super();F(this,nn);F(this,ht);F(this,tn,void 0);F(this,rn,void 0);F(this,ot,void 0);F(this,er,void 0);F(this,it,void 0);F(this,ke,void 0);F(this,eo,void 0);F(this,vr,void 0);k(this,vr,!1),k(this,eo,e.defaultOptions),ne(this,nn,jo).call(this,e.options),k(this,ke,[]),k(this,ot,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,k(this,tn,e.state||m_(this.options)),this.state=m(this,tn),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!m(this,ke).length&&this.state.fetchStatus==="idle"&&m(this,ot).remove(this)}setData(e,t){const n=La(this.state.data,e,this.options);return ne(this,ht,Pt).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){ne(this,ht,Pt).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var n;const t=m(this,er);return(n=m(this,it))==null||n.cancel(e),t?t.then(st).catch(st):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(m(this,tn))}isActive(){return m(this,ke).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||m(this,ke).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Sl(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=m(this,ke).find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=m(this,it))==null||t.continue()}onOnline(){var t;const e=m(this,ke).find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=m(this,it))==null||t.continue()}addObserver(e){m(this,ke).includes(e)||(m(this,ke).push(e),this.clearGcTimeout(),m(this,ot).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){m(this,ke).includes(e)&&(k(this,ke,m(this,ke).filter(t=>t!==e)),m(this,ke).length||(m(this,it)&&(m(this,vr)?m(this,it).cancel({revert:!0}):m(this,it).cancelRetry()),this.scheduleGc()),m(this,ot).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return m(this,ke).length}invalidate(){this.state.isInvalidated||ne(this,ht,Pt).call(this,{type:"invalidate"})}fetch(e,t){var l,u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(m(this,er))return(l=m(this,it))==null||l.continueRetry(),m(this,er)}if(e&&ne(this,nn,jo).call(this,e),!this.options.queryFn){const f=m(this,ke).find(p=>p.options.queryFn);f&&ne(this,nn,jo).call(this,f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(k(this,vr,!0),n.signal)})};i(o);const a=()=>this.options.queryFn?(k(this,vr,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),k(this,rn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ne(this,ht,Pt).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,v,_,C;ra(f)&&f.silent||ne(this,ht,Pt).call(this,{type:"error",error:f}),ra(f)||((v=(p=m(this,ot).config).onError)==null||v.call(p,f,this),(C=(_=m(this,ot).config).onSettled)==null||C.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return k(this,it,kl({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,_,C;if(typeof f>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(v=(p=m(this,ot).config).onSuccess)==null||v.call(p,f,this),(C=(_=m(this,ot).config).onSettled)==null||C.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(f,p)=>{ne(this,ht,Pt).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ne(this,ht,Pt).call(this,{type:"pause"})},onContinue:()=>{ne(this,ht,Pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),k(this,er,m(this,it).promise),m(this,er)}},tn=new WeakMap,rn=new WeakMap,ot=new WeakMap,er=new WeakMap,it=new WeakMap,ke=new WeakMap,eo=new WeakMap,vr=new WeakMap,nn=new WeakSet,jo=function(e){this.options={...m(this,eo),...e},this.updateGcTime(this.options.gcTime)},ht=new WeakSet,Pt=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:Oi(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return ra(o)&&o.revert&&m(this,rn)?{...m(this,rn),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Me.batch(()=>{m(this,ke).forEach(n=>{n.onQueryUpdate()}),m(this,ot).notify({query:this,type:"updated",action:e})})},tu);function m_(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=typeof e<"u",n=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var Et,ru,v_=(ru=class extends go{constructor(e={}){super();F(this,Et,void 0);this.config=e,k(this,Et,new Map)}build(e,t,n){const o=t.queryKey,i=t.queryHash??ms(o,t);let a=this.get(i);return a||(a=new g_({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){m(this,Et).has(e.queryHash)||(m(this,Et).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=m(this,Et).get(e.queryHash);t&&(e.destroy(),t===e&&m(this,Et).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Me.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return m(this,Et).get(e)}getAll(){return[...m(this,Et).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Bc(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Bc(e,n)):t}notify(e){Me.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Me.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Me.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Et=new WeakMap,ru),Ct,to,Xe,on,wt,Vt,nu,y_=(nu=class extends Nl{constructor(e){super();F(this,wt);F(this,Ct,void 0);F(this,to,void 0);F(this,Xe,void 0);F(this,on,void 0);this.mutationId=e.mutationId,k(this,to,e.defaultOptions),k(this,Xe,e.mutationCache),k(this,Ct,[]),this.state=e.state||__(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...m(this,to),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){m(this,Ct).includes(e)||(m(this,Ct).push(e),this.clearGcTimeout(),m(this,Xe).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){k(this,Ct,m(this,Ct).filter(t=>t!==e)),this.scheduleGc(),m(this,Xe).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){m(this,Ct).length||(this.state.status==="pending"?this.scheduleGc():m(this,Xe).remove(this))}continue(){var e;return((e=m(this,on))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,a,s,c,l,u,d,h,f,p,v,_,C,E,T,B,G,U,P;const t=()=>(k(this,on,kl({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(q,Ae)=>{ne(this,wt,Vt).call(this,{type:"failed",failureCount:q,error:Ae})},onPause:()=>{ne(this,wt,Vt).call(this,{type:"pause"})},onContinue:()=>{ne(this,wt,Vt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),m(this,on).promise),n=this.state.status==="pending";try{if(!n){ne(this,wt,Vt).call(this,{type:"pending",variables:e}),await((i=(o=m(this,Xe).config).onMutate)==null?void 0:i.call(o,e,this));const Ae=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,e));Ae!==this.state.context&&ne(this,wt,Vt).call(this,{type:"pending",context:Ae,variables:e})}const q=await t();return await((l=(c=m(this,Xe).config).onSuccess)==null?void 0:l.call(c,q,e,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,q,e,this.state.context)),await((f=(h=m(this,Xe).config).onSettled)==null?void 0:f.call(h,q,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,q,null,e,this.state.context)),ne(this,wt,Vt).call(this,{type:"success",data:q}),q}catch(q){try{throw await((C=(_=m(this,Xe).config).onError)==null?void 0:C.call(_,q,e,this.state.context,this)),await((T=(E=this.options).onError)==null?void 0:T.call(E,q,e,this.state.context)),await((G=(B=m(this,Xe).config).onSettled)==null?void 0:G.call(B,void 0,q,this.state.variables,this.state.context,this)),await((P=(U=this.options).onSettled)==null?void 0:P.call(U,void 0,q,e,this.state.context)),q}finally{ne(this,wt,Vt).call(this,{type:"error",error:q})}}}},Ct=new WeakMap,to=new WeakMap,Xe=new WeakMap,on=new WeakMap,wt=new WeakSet,Vt=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Oi(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Me.batch(()=>{m(this,Ct).forEach(n=>{n.onMutationUpdate(e)}),m(this,Xe).notify({mutation:this,type:"updated",action:e})})},nu);function __(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var at,ro,yr,ou,E_=(ou=class extends go{constructor(e={}){super();F(this,at,void 0);F(this,ro,void 0);F(this,yr,void 0);this.config=e,k(this,at,[]),k(this,ro,0)}build(e,t,n){const o=new y_({mutationCache:this,mutationId:++vo(this,ro)._,options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){m(this,at).push(e),this.notify({type:"added",mutation:e})}remove(e){k(this,at,m(this,at).filter(t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Me.batch(()=>{m(this,at).forEach(e=>{this.remove(e)})})}getAll(){return m(this,at)}find(e){const t={exact:!0,...e};return m(this,at).find(n=>$c(t,n))}findAll(e={}){return m(this,at).filter(t=>$c(e,t))}notify(e){Me.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){return k(this,yr,(m(this,yr)??Promise.resolve()).then(()=>{const e=m(this,at).filter(t=>t.state.isPaused);return Me.batch(()=>e.reduce((t,n)=>t.then(()=>n.continue().catch(st)),Promise.resolve()))}).then(()=>{k(this,yr,void 0)})),m(this,yr)}},at=new WeakMap,ro=new WeakMap,yr=new WeakMap,ou);function C_(r){return{onFetch:(e,t)=>{const n=async()=>{var p,v,_,C,E;const o=e.options,i=(_=(v=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:v.fetchMore)==null?void 0:_.direction,a=((C=e.state.data)==null?void 0:C.pages)||[],s=((E=e.state.data)==null?void 0:E.pageParams)||[],c={pages:[],pageParams:[]};let l=!1;const u=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(e.signal.aborted?l=!0:e.signal.addEventListener("abort",()=>{l=!0}),e.signal)})},d=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),h=async(T,B,G)=>{if(l)return Promise.reject();if(B==null&&T.pages.length)return Promise.resolve(T);const U={queryKey:e.queryKey,pageParam:B,direction:G?"backward":"forward",meta:e.options.meta};u(U);const P=await d(U),{maxPages:q}=e.options,Ae=G?l_:u_;return{pages:Ae(T.pages,P,q),pageParams:Ae(T.pageParams,B,q)}};let f;if(i&&a.length){const T=i==="backward",B=T?w_:Qc,G={pages:a,pageParams:s},U=B(o,G);f=await h(G,U,T)}else{f=await h(c,s[0]??o.initialPageParam);const T=r??a.length;for(let B=1;B<T;B++){const G=Qc(o,f);f=await h(f,G)}}return f};e.options.persister?e.fetchFn=()=>{var o,i;return(i=(o=e.options).persister)==null?void 0:i.call(o,n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=n}}}function Qc(r,{pages:e,pageParams:t}){const n=e.length-1;return r.getNextPageParam(e[n],e,t[n],t)}function w_(r,{pages:e,pageParams:t}){var n;return(n=r.getPreviousPageParam)==null?void 0:n.call(r,e[0],e,t[0],t)}var Se,tr,rr,an,sn,nr,cn,un,iu,b_=(iu=class{constructor(r={}){F(this,Se,void 0);F(this,tr,void 0);F(this,rr,void 0);F(this,an,void 0);F(this,sn,void 0);F(this,nr,void 0);F(this,cn,void 0);F(this,un,void 0);k(this,Se,r.queryCache||new v_),k(this,tr,r.mutationCache||new E_),k(this,rr,r.defaultOptions||{}),k(this,an,new Map),k(this,sn,new Map),k(this,nr,0)}mount(){vo(this,nr)._++,m(this,nr)===1&&(k(this,cn,fi.subscribe(()=>{fi.isFocused()&&(this.resumePausedMutations(),m(this,Se).onFocus())})),k(this,un,pi.subscribe(()=>{pi.isOnline()&&(this.resumePausedMutations(),m(this,Se).onOnline())})))}unmount(){var r,e;vo(this,nr)._--,m(this,nr)===0&&((r=m(this,cn))==null||r.call(this),k(this,cn,void 0),(e=m(this,un))==null||e.call(this),k(this,un,void 0))}isFetching(r){return m(this,Se).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return m(this,tr).findAll({...r,status:"pending"}).length}getQueryData(r){var e;return(e=m(this,Se).find({queryKey:r}))==null?void 0:e.state.data}ensureQueryData(r){const e=this.getQueryData(r.queryKey);return e?Promise.resolve(e):this.fetchQuery(r)}getQueriesData(r){return this.getQueryCache().findAll(r).map(({queryKey:e,state:t})=>{const n=t.data;return[e,n]})}setQueryData(r,e,t){const n=m(this,Se).find({queryKey:r}),o=n==null?void 0:n.state.data,i=c_(e,o);if(typeof i>"u")return;const a=this.defaultQueryOptions({queryKey:r});return m(this,Se).build(this,a).setData(i,{...t,manual:!0})}setQueriesData(r,e,t){return Me.batch(()=>this.getQueryCache().findAll(r).map(({queryKey:n})=>[n,this.setQueryData(n,e,t)]))}getQueryState(r){var e;return(e=m(this,Se).find({queryKey:r}))==null?void 0:e.state}removeQueries(r){const e=m(this,Se);Me.batch(()=>{e.findAll(r).forEach(t=>{e.remove(t)})})}resetQueries(r,e){const t=m(this,Se),n={type:"active",...r};return Me.batch(()=>(t.findAll(r).forEach(o=>{o.reset()}),this.refetchQueries(n,e)))}cancelQueries(r={},e={}){const t={revert:!0,...e},n=Me.batch(()=>m(this,Se).findAll(r).map(o=>o.cancel(t)));return Promise.all(n).then(st).catch(st)}invalidateQueries(r={},e={}){return Me.batch(()=>{if(m(this,Se).findAll(r).forEach(n=>{n.invalidate()}),r.refetchType==="none")return Promise.resolve();const t={...r,type:r.refetchType??r.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(r={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=Me.batch(()=>m(this,Se).findAll(r).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,t);return t.throwOnError||(i=i.catch(st)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(st)}fetchQuery(r){const e=this.defaultQueryOptions(r);typeof e.retry>"u"&&(e.retry=!1);const t=m(this,Se).build(this,e);return t.isStaleByTime(e.staleTime)?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(st).catch(st)}fetchInfiniteQuery(r){return r.behavior=C_(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(st).catch(st)}resumePausedMutations(){return m(this,tr).resumePausedMutations()}getQueryCache(){return m(this,Se)}getMutationCache(){return m(this,tr)}getDefaultOptions(){return m(this,rr)}setDefaultOptions(r){k(this,rr,r)}setQueryDefaults(r,e){m(this,an).set(Xn(r),{queryKey:r,defaultOptions:e})}getQueryDefaults(r){const e=[...m(this,an).values()];let t={};return e.forEach(n=>{Zn(r,n.queryKey)&&(t={...t,...n.defaultOptions})}),t}setMutationDefaults(r,e){m(this,sn).set(Xn(r),{mutationKey:r,defaultOptions:e})}getMutationDefaults(r){const e=[...m(this,sn).values()];let t={};return e.forEach(n=>{Zn(r,n.mutationKey)&&(t={...t,...n.defaultOptions})}),t}defaultQueryOptions(r){if(r!=null&&r._defaulted)return r;const e={...m(this,rr).queries,...(r==null?void 0:r.queryKey)&&this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return e.queryHash||(e.queryHash=ms(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...m(this,rr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){m(this,Se).clear(),m(this,tr).clear()}},Se=new WeakMap,tr=new WeakMap,rr=new WeakMap,an=new WeakMap,sn=new WeakMap,nr=new WeakMap,cn=new WeakMap,un=new WeakMap,iu),Ve,fe,ln,He,_r,dn,bt,no,hn,fn,Er,Cr,or,wr,br,Hn,oo,Ua,io,Ha,ao,Da,so,Fa,co,qa,uo,Ka,lo,Ba,gi,Ol,au,T_=(au=class extends go{constructor(e,t){super();F(this,br);F(this,oo);F(this,io);F(this,ao);F(this,so);F(this,co);F(this,uo);F(this,lo);F(this,gi);F(this,Ve,void 0);F(this,fe,void 0);F(this,ln,void 0);F(this,He,void 0);F(this,_r,void 0);F(this,dn,void 0);F(this,bt,void 0);F(this,no,void 0);F(this,hn,void 0);F(this,fn,void 0);F(this,Er,void 0);F(this,Cr,void 0);F(this,or,void 0);F(this,wr,void 0);k(this,fe,void 0),k(this,ln,void 0),k(this,He,void 0),k(this,wr,new Set),k(this,Ve,e),this.options=t,k(this,bt,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(m(this,fe).addObserver(this),Vc(m(this,fe),this.options)&&ne(this,br,Hn).call(this),ne(this,so,Fa).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $a(m(this,fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $a(m(this,fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ne(this,co,qa).call(this),ne(this,uo,Ka).call(this),m(this,fe).removeObserver(this)}setOptions(e,t){const n=this.options,o=m(this,fe);if(this.options=m(this,Ve).defaultQueryOptions(e),Ma(n,this.options)||m(this,Ve).getQueryCache().notify({type:"observerOptionsUpdated",query:m(this,fe),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),ne(this,lo,Ba).call(this);const i=this.hasListeners();i&&Yc(m(this,fe),o,this.options,n)&&ne(this,br,Hn).call(this),this.updateResult(t),i&&(m(this,fe)!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ne(this,oo,Ua).call(this);const a=ne(this,io,Ha).call(this);i&&(m(this,fe)!==o||this.options.enabled!==n.enabled||a!==m(this,or))&&ne(this,ao,Da).call(this,a)}getOptimisticResult(e){const t=m(this,Ve).getQueryCache().build(m(this,Ve),e),n=this.createResult(t,e);return I_(this,n)&&(k(this,He,n),k(this,dn,this.options),k(this,_r,m(this,fe).state)),n}getCurrentResult(){return m(this,He)}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(m(this,wr).add(n),e[n])})}),t}getCurrentQuery(){return m(this,fe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=m(this,Ve).defaultQueryOptions(e),n=m(this,Ve).getQueryCache().build(m(this,Ve),t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return ne(this,br,Hn).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),m(this,He)))}createResult(e,t){var U;const n=m(this,fe),o=this.options,i=m(this,He),a=m(this,_r),s=m(this,dn),l=e!==n?e.state:m(this,ln),{state:u}=e;let{error:d,errorUpdatedAt:h,fetchStatus:f,status:p}=u,v=!1,_;if(t._optimisticResults){const P=this.hasListeners(),q=!P&&Vc(e,t),Ae=P&&Yc(e,n,t,o);(q||Ae)&&(f=Oi(e.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(p="pending")),t._optimisticResults==="isRestoring"&&(f="idle")}if(t.select&&typeof u.data<"u")if(i&&u.data===(a==null?void 0:a.data)&&t.select===m(this,no))_=m(this,hn);else try{k(this,no,t.select),_=t.select(u.data),_=La(i==null?void 0:i.data,_,t),k(this,hn,_),k(this,bt,null)}catch(P){k(this,bt,P)}else _=u.data;if(typeof t.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let P;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(s==null?void 0:s.placeholderData))P=i.data;else if(P=typeof t.placeholderData=="function"?t.placeholderData((U=m(this,fn))==null?void 0:U.state.data,m(this,fn)):t.placeholderData,t.select&&typeof P<"u")try{P=t.select(P),k(this,bt,null)}catch(q){k(this,bt,q)}typeof P<"u"&&(p="success",_=La(i==null?void 0:i.data,P,t),v=!0)}m(this,bt)&&(d=m(this,bt),_=m(this,hn),h=Date.now(),p="error");const C=f==="fetching",E=p==="pending",T=p==="error",B=E&&C;return{status:p,fetchStatus:f,isPending:E,isSuccess:p==="success",isError:T,isInitialLoading:B,isLoading:B,data:_,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:C,isRefetching:C&&!E,isLoadingError:T&&u.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:v,isRefetchError:T&&u.dataUpdatedAt!==0,isStale:vs(e,t),refetch:this.refetch}}updateResult(e){const t=m(this,He),n=this.createResult(m(this,fe),this.options);if(k(this,_r,m(this,fe).state),k(this,dn,this.options),Ma(n,t))return;m(this,_r).data!==void 0&&k(this,fn,m(this,fe)),k(this,He,n);const o={},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!m(this,wr).size)return!0;const c=new Set(s??m(this,wr));return this.options.throwOnError&&c.add("error"),Object.keys(m(this,He)).some(l=>{const u=l;return m(this,He)[u]!==t[u]&&c.has(u)})};(e==null?void 0:e.listeners)!==!1&&i()&&(o.listeners=!0),ne(this,gi,Ol).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ne(this,so,Fa).call(this)}},Ve=new WeakMap,fe=new WeakMap,ln=new WeakMap,He=new WeakMap,_r=new WeakMap,dn=new WeakMap,bt=new WeakMap,no=new WeakMap,hn=new WeakMap,fn=new WeakMap,Er=new WeakMap,Cr=new WeakMap,or=new WeakMap,wr=new WeakMap,br=new WeakSet,Hn=function(e){ne(this,lo,Ba).call(this);let t=m(this,fe).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(st)),t},oo=new WeakSet,Ua=function(){if(ne(this,co,qa).call(this),wn||m(this,He).isStale||!Pa(this.options.staleTime))return;const t=Sl(m(this,He).dataUpdatedAt,this.options.staleTime)+1;k(this,Er,setTimeout(()=>{m(this,He).isStale||this.updateResult()},t))},io=new WeakSet,Ha=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(m(this,fe)):this.options.refetchInterval)??!1},ao=new WeakSet,Da=function(e){ne(this,uo,Ka).call(this),k(this,or,e),!(wn||this.options.enabled===!1||!Pa(m(this,or))||m(this,or)===0)&&k(this,Cr,setInterval(()=>{(this.options.refetchIntervalInBackground||fi.isFocused())&&ne(this,br,Hn).call(this)},m(this,or)))},so=new WeakSet,Fa=function(){ne(this,oo,Ua).call(this),ne(this,ao,Da).call(this,ne(this,io,Ha).call(this))},co=new WeakSet,qa=function(){m(this,Er)&&(clearTimeout(m(this,Er)),k(this,Er,void 0))},uo=new WeakSet,Ka=function(){m(this,Cr)&&(clearInterval(m(this,Cr)),k(this,Cr,void 0))},lo=new WeakSet,Ba=function(){const e=m(this,Ve).getQueryCache().build(m(this,Ve),this.options);if(e===m(this,fe))return;const t=m(this,fe);k(this,fe,e),k(this,ln,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},gi=new WeakSet,Ol=function(e){Me.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(m(this,He))}),m(this,Ve).getQueryCache().notify({query:m(this,fe),type:"observerResultsUpdated"})})},au);function S_(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function Vc(r,e){return S_(r,e)||r.state.dataUpdatedAt>0&&$a(r,e,e.refetchOnMount)}function $a(r,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(r):t;return n==="always"||n!==!1&&vs(r,e)}return!1}function Yc(r,e,t,n){return t.enabled!==!1&&(r!==e||n.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&vs(r,t)}function vs(r,e){return r.isStaleByTime(e.staleTime)}function I_(r,e){return!Ma(r.getCurrentResult(),e)}var Pl=Ee.createContext(void 0),Ml=r=>{const e=Ee.useContext(Pl);if(r)return r;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},A_=({client:r,children:e})=>(Ee.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),Ee.createElement(Pl.Provider,{value:r},e)),xl=Ee.createContext(!1),R_=()=>Ee.useContext(xl);xl.Provider;function k_(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var N_=Ee.createContext(k_()),O_=()=>Ee.useContext(N_);function P_(r,e){return typeof r=="function"?r(...e):!!r}var M_=(r,e)=>{(r.suspense||r.throwOnError)&&(e.isReset()||(r.retryOnMount=!1))},x_=r=>{Ee.useEffect(()=>{r.clearReset()},[r])},L_=({result:r,errorResetBoundary:e,throwOnError:t,query:n})=>r.isError&&!e.isReset()&&!r.isFetching&&P_(t,[r.error,n]),U_=r=>{r.suspense&&typeof r.staleTime!="number"&&(r.staleTime=1e3)},H_=(r,e)=>r.isLoading&&r.isFetching&&!e,D_=(r,e,t)=>(r==null?void 0:r.suspense)&&H_(e,t),F_=(r,e,t)=>e.fetchOptimistic(r).catch(()=>{t.clearReset()});function q_(r,e,t){const n=Ml(t),o=R_(),i=O_(),a=n.defaultQueryOptions(r);a._optimisticResults=o?"isRestoring":"optimistic",U_(a),M_(a,i),x_(i);const[s]=Ee.useState(()=>new e(n,a)),c=s.getOptimisticResult(a);if(Ee.useSyncExternalStore(Ee.useCallback(l=>{const u=o?()=>{}:s.subscribe(Me.batchCalls(l));return s.updateResult(),u},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Ee.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),D_(a,c,o))throw F_(a,s,i);if(L_({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Ll(r,e){return q_(r,T_,e)}const K_=(r,e,t)=>K.lazy(async()=>{const o=await Am(t)(e),a=e.env.manifest.key,{fusion:s}=e;o.event.dispatchEvent("onReactAppLoaded",{detail:{modules:o,fusion:s},source:r});const c=e.query??new b_;return{default:()=>re.jsx(Em,{value:s,children:re.jsx(A_,{client:c,children:re.jsx(fs,{scope:`roma-${a}`,children:re.jsx(s_,{event:o.event,children:re.jsx(Cm,{value:o,children:r})})})})})}}),B_=(r,e)=>K.lazy(async()=>{const t=e.env.manifest.key;return{default:()=>re.jsx(fs,{scope:`roma-${t}`,children:r})}}),ys=({children:r,text:e})=>re.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[re.jsx(a_,{size:96*2,variant:"indeterminate",children:r}),re.jsx(gs,{variant:"h4",children:e})]}),_s=({error:r})=>re.jsxs(tt,{variant:"warning",style:{width:800},children:[re.jsx(tt.Header,{children:re.jsx(gs,{variant:"h4",color:"warning",children:r.message})}),re.jsx(tt.Content,{children:re.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:r.stack??"Error"})})]}),$_=(r,e,t)=>{K.useLayoutEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])};function Ul(r,e){const[t,n]=K.useState(()=>e!=null&&e.initial?"value"in r?r.value:e.initial:void 0),[o,i]=K.useState(null),[a,s]=K.useState(!1);K.useLayoutEffect(()=>{i(null),s(!1),n("value"in r?r.value:void 0)},[n,i,s,r]);const c=K.useMemo(()=>({next:n,error:i,complete:()=>s(!0)}),[n,i,s]);return $_(r,c,e==null?void 0:e.teardown),{value:t,error:o,complete:a}}const G_=()=>{const r=po().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=K.useMemo(()=>r.current$,[r]),{value:t,error:n}=Ul(e);return{currentApp:t,setCurrentApp:K.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:K.useMemo(()=>r.clearCurrentApp.bind(r),[r]),error:n}},j_=()=>{const r=po().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");return r},z_=r=>{const e=j_(),{value:t,complete:n}=Ul(K.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:K.useMemo(()=>t&&!(r!=null&&r.includeHidden)?t.filter(i=>!i.hide):t,[r,t]),isLoading:!n}};function Q_(r,e){const t={appKey:r.key,manifest:r,config:{environment:"development",endpoints:{}}},n=e.modules.app.createApp(t),o=n.initialize();return{appModule:n,appModuleScript:o}}function Hl({app:r,kind:e}){const t=Ml();e=e??"widget";const{setCurrentApp:n,clearCurrentApp:o}=G_(),i=po(),[a,s]=K.useState(null),[c,l]=K.useState(!1),u=(f,p)=>{i.modules.event.dispatchEvent(f,new CustomEvent(f,p))};function d(f){const{appModule:p,appModuleScript:v}=Q_(r,i),[_]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return xo(v).then(C=>{const E=C.script;(E.renderApp??E.default)(f,{query:t,fusion:i,env:{manifest:r,config:{environment:"development",endpoints:{}},basename:_,props:{}}}),e==="app"&&n(r.key)}),p}K.useEffect(()=>{var _;if(s(null),!r){u("onAppInitializeFailed",{detail:"App not found"}),s(new Error("Selected application does not exist"));return}l(!0);const f=document.createElement("div");f.style.height="30%",(_=h.current)==null||_.appendChild(f);const p=d(f);l(!1);const v=h.current;return()=>{try{v==null||v.removeChild(f)}catch{}p.dispose(),o()}},[r]);const h=K.useRef(null);return re.jsxs("div",{ref:h,children:[c&&re.jsx(ys,{text:`Loading ${e==="app"?"application":"widget"}`}),a&&re.jsx(_s,{error:a})]})}/**
109
109
  * React Router v6.15.0
110
110
  *
111
111
  * Copyright (c) Remix Software Inc.
@@ -114,4 +114,5 @@ cursor: pointer;`),n},yc={density:"comfortable"},Og=Y.createContext(yc),Mg=funct
114
114
  * LICENSE.md file in the root directory of this source tree.
115
115
  *
116
116
  * @license MIT
117
- */const $m=kt.createContext(null);process.env.NODE_ENV!=="production"&&($m.displayName="DataRouter");const Gm=kt.createContext(null);process.env.NODE_ENV!=="production"&&(Gm.displayName="DataRouterState");const jm=kt.createContext(null);process.env.NODE_ENV!=="production"&&(jm.displayName="Await");const zm=kt.createContext(null);process.env.NODE_ENV!=="production"&&(zm.displayName="Navigation");const Vm=kt.createContext(null);process.env.NODE_ENV!=="production"&&(Vm.displayName="Location");const Cc=kt.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Cc.displayName="Route");const Ym=kt.createContext(null);process.env.NODE_ENV!=="production"&&(Ym.displayName="RouteError");function Wm(){let{matches:r}=kt.useContext(Cc),e=r[r.length-1];return e?e.params:{}}new Promise(()=>{});const Qm=()=>{const{appKey:r}=Wm(),{apps:e}=Bm({includeHidden:!0}),t=Y.useMemo(()=>e==null?void 0:e.find(n=>n.key===r),[r,e]);return e?t?Q.jsx(Ec,{app:t,kind:"app"}):Q.jsx(lo,{error:new Error("App not found")}):Q.jsx(Oi,{text:"Loading apps..."})};exports.AppLoader=Ec;exports.AppViewer=Qm;exports.EquinorLoader=Oi;exports.ErrorViewer=lo;exports.makeComponent=Hm;
117
+ */const V_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(V_.displayName="DataRouter");const Y_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(Y_.displayName="DataRouterState");const W_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(W_.displayName="Await");const J_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(J_.displayName="Navigation");const X_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(X_.displayName="Location");const Dl=Ee.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Dl.displayName="Route");const Z_=Ee.createContext(null);process.env.NODE_ENV!=="production"&&(Z_.displayName="RouteError");function eE(){let{matches:r}=Ee.useContext(Dl),e=r[r.length-1];return e?e.params:{}}new Promise(()=>{});const tE=()=>{const{appKey:r}=eE(),{apps:e}=z_({includeHidden:!0}),t=K.useMemo(()=>e==null?void 0:e.find(n=>n.key===r),[r,e]);return e?t?re.jsx(Hl,{app:t,kind:"app"}):re.jsx(_s,{error:new Error("App not found")}):re.jsx(ys,{text:"Loading apps..."})};async function rE(r,e){const t=r.getReader();let n;for(;!(n=await t.read()).done;)e(n.value)}function nE(r){let e,t,n,o=!1;return function(a){e===void 0?(e=a,t=0,n=-1):e=iE(e,a);const s=e.length;let c=0;for(;t<s;){o&&(e[t]===10&&(c=++t),o=!1);let l=-1;for(;t<s&&l===-1;++t)switch(e[t]){case 58:n===-1&&(n=t-c);break;case 13:o=!0;case 10:l=t;break}if(l===-1)break;r(e.subarray(c,l),n),c=t,n=-1}c===s?e=void 0:c!==0&&(e=e.subarray(c),t-=c)}}function oE(r,e,t){let n=Wc();const o=new TextDecoder;return function(a,s){if(a.length===0)t==null||t(n),n=Wc();else if(s>0){const c=o.decode(a.subarray(0,s)),l=s+(a[s+1]===32?2:1),u=o.decode(a.subarray(l));switch(c){case"data":n.data=n.data?n.data+`
118
+ `+u:u;break;case"event":n.event=u;break;case"id":r(n.id=u);break;case"retry":const d=parseInt(u,10);isNaN(d)||e(n.retry=d);break}}}}function iE(r,e){const t=new Uint8Array(r.length+e.length);return t.set(r),t.set(e,r.length),t}function Wc(){return{data:"",event:"",id:"",retry:void 0}}var aE=globalThis&&globalThis.__rest||function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t};const Ga="text/event-stream",sE=1e3,Jc="last-event-id";function cE(r,e){var{signal:t,headers:n,onopen:o,onmessage:i,onclose:a,onerror:s,openWhenHidden:c,fetch:l}=e,u=aE(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((d,h)=>{const f=Object.assign({},n);f.accept||(f.accept=Ga);let p;function v(){p.abort(),document.hidden||G()}c||document.addEventListener("visibilitychange",v);let _=sE,C=0;function E(){document.removeEventListener("visibilitychange",v),window.clearTimeout(C),p.abort()}t==null||t.addEventListener("abort",()=>{E(),d()});const T=l??window.fetch,B=o??uE;async function G(){var U;p=new AbortController;try{const P=await T(r,Object.assign(Object.assign({},u),{headers:f,signal:p.signal}));await B(P),await rE(P.body,nE(oE(q=>{q?f[Jc]=q:delete f[Jc]},q=>{_=q},i))),a==null||a(),E(),d()}catch(P){if(!p.signal.aborted)try{const q=(U=s==null?void 0:s(P))!==null&&U!==void 0?U:_;window.clearTimeout(C),C=window.setTimeout(G,q)}catch(q){E(),h(q)}}}G()})}function uE(r){const e=r.headers.get("content-type");if(!(e!=null&&e.startsWith(Ga)))throw new Error(`Expected content-type to be ${Ga}, Actual: ${e}`)}class lE extends Error{}const dE=(r,e=10)=>{const[t,n]=K.useState([]),{modules:o}=po(),i=o.auth;return K.useEffect(()=>{const a=new AbortController,s=a.signal,c=()=>{n([]),i.acquireAccessToken({scopes:["api://83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/user_impersonation"]}).then(l=>{l||console.error("No token"),!s.aborted&&cE(`${window.location.origin}/${r}`,{headers:{Authorization:`Bearer ${l}`},openWhenHidden:!0,signal:s,onmessage:u=>{const d=u.data;try{const h=JSON.parse(d);n(f=>{const p=f.filter(_=>_.eventSourceId!==u.id);return p.length>=e?[{...h,eventSourceId:u.id},...p.slice(1)]:[{...h,eventSourceId:u.id},...p]})}catch(h){console.error("Failed to parse message: ",h)}},onclose:()=>{throw new lE("Connection closed, reconnecting.")}}).then(()=>{n([]),setTimeout(()=>c(),500)})})};return c(),()=>a.abort("Repaint")},[i,r,e]),{messages:[...t]}},hE=r=>{const e=new URLSearchParams;return Object.keys(r).forEach(t=>{r[t]===null||typeof r[t]>"u"||(Array.isArray(r[t])?r[t].forEach(n=>{e.append(t,n.toString())}):typeof r[t]=="string"?e.append(t,r[t]):(typeof r[t]=="number"||typeof r[t]=="boolean")&&e.append(t,r[t].toString()))}),e},Fl=r=>{const e=bm("http");return K.useMemo(()=>{if(e.hasClient(r))return e.createClient(r);throw Error(`no configured client for key [${r}]`)},[e,r])},fE=async(r,e)=>{const t=hE(r);return e.json(`deal?${t.toString()}`)},pE=r=>{const e=["deal-list","recap-list",r],t=Fl("ratscore");return Ll({queryKey:e,queryFn:()=>fE(r,t)})},gE=async(r,e)=>{const{companyId:t,so:n,dsYear:o,dsId:i,dsNo:a}=r;return e.json(`deal/${t}/${n}/${o}/${i}/${a}`)},mE=r=>{const e=Fl("ratscore");return Ll({queryKey:["recap",r],queryFn:()=>gE(r,e)})};exports.AppLoader=Hl;exports.AppViewer=tE;exports.EquinorLoader=ys;exports.ErrorViewer=_s;exports.StyleProvider=fs;exports.makeComponent=K_;exports.useGetDeals=pE;exports.useGetRecap=mE;exports.useSse=dE;exports.withStyleIsolation=B_;