- ADO client: query_work_items_account + get_work_items_batch_account use org-level URLs, removing the project-scoped URL that 400'd on projects with spaces in their names - sync.py: switched to account-scope methods, added System.CreatedDate and Microsoft.VSTS.Common.Priority to FIELDS list - AzureWorkItem model: @property team_project/priority/created_date derived from fields_json (no migration needed) - AzureWorkItemOut schema: exposed the 3 new derived fields - DevopsView: table layout with Project / Priority / Created / State columns Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
44 lines
475 KiB
JavaScript
44 lines
475 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DM9KI6Ae.js","assets/CardContent.vue_vue_type_script_setup_true_lang-DDY_g-zW.js","assets/utils-7WVCegLb.js","assets/DashboardView-CJ7FOGk4.js","assets/dashboard-BLWzuOXH.js","assets/CardTitle.vue_vue_type_script_setup_true_lang-Cg_-1vw-.js","assets/Progress.vue_vue_type_script_setup_true_lang-U8k7fe18.js","assets/Button.vue_vue_type_script_setup_true_lang-2QVxqpnK.js","assets/Spinner.vue_vue_type_script_setup_true_lang-Her3XtBX.js","assets/CalendarView-BChdlpXx.js","assets/TaskForm.vue_vue_type_script_setup_true_lang-y1bs1uEE.js","assets/Dialog.vue_vue_type_script_setup_true_lang-Dwscb3of.js","assets/Input.vue_vue_type_script_setup_true_lang-CM55zCqq.js","assets/devops-Di141h0c.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Badge.vue_vue_type_script_setup_true_lang-COW77Eo8.js","assets/CalendarView-DRWiX2N8.css","assets/PlannerView-CaKoMOa-.js","assets/ProjectsView-DVgw8gzK.js","assets/ProjectDetailView-YjRyle7i.js","assets/LiveView-D9kDBjRB.js","assets/ReportsView-BtOdlx7U.js","assets/ReportsView-B1hNlJuG.css","assets/KeysView-o3-16_hO.js","assets/admin-De61GuNK.js","assets/DevopsView-B8BZKorb.js","assets/DevopsConnectForm.vue_vue_type_script_setup_true_lang-GOamlIBn.js","assets/SettingsView-O5bFJQz1.js","assets/AdminView-Cdln6Ec3.js"])))=>i.map(i=>d[i]);
|
|
var Wl=n=>{throw TypeError(n)};var ca=(n,e,t)=>e.has(n)||Wl("Cannot "+t);var k=(n,e,t)=>(ca(n,e,"read from private field"),t?t.call(n):e.get(n)),ye=(n,e,t)=>e.has(n)?Wl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),se=(n,e,t,r)=>(ca(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),lt=(n,e,t)=>(ca(n,e,"access private method"),t);var Ni=(n,e,t,r)=>({set _(o){se(n,e,o,t)},get _(){return k(n,e,r)}});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=t(o);fetch(o.href,i)}})();/**
|
|
* @vue/shared v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Pc(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const Me={},oo=[],wn=()=>{},hh=()=>!1,bs=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Is=n=>n.startsWith("onUpdate:"),ot=Object.assign,Nc=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},fm=Object.prototype.hasOwnProperty,be=(n,e)=>fm.call(n,e),ne=Array.isArray,io=n=>Ci(n)==="[object Map]",fh=n=>Ci(n)==="[object Set]",Yl=n=>Ci(n)==="[object Date]",ue=n=>typeof n=="function",Le=n=>typeof n=="string",jt=n=>typeof n=="symbol",Ie=n=>n!==null&&typeof n=="object",gh=n=>(Ie(n)||ue(n))&&ue(n.then)&&ue(n.catch),ph=Object.prototype.toString,Ci=n=>ph.call(n),gm=n=>Ci(n).slice(8,-1),mh=n=>Ci(n)==="[object Object]",Ss=n=>Le(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Go=Pc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rs=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},pm=/-\w/g,Rt=Rs(n=>n.replace(pm,e=>e.slice(1).toUpperCase())),mm=/\B([A-Z])/g,Kr=Rs(n=>n.replace(mm,"-$1").toLowerCase()),ks=Rs(n=>n.charAt(0).toUpperCase()+n.slice(1)),la=Rs(n=>n?`on${ks(n)}`:""),vn=(n,e)=>!Object.is(n,e),Qi=(n,...e)=>{for(let t=0;t<n.length;t++)n[t](...e)},yh=(n,e,t,r=!1)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},Mc=n=>{const e=parseFloat(n);return isNaN(e)?n:e},ym=n=>{const e=Le(n)?Number(n):NaN;return isNaN(e)?n:e};let Jl;const Os=()=>Jl||(Jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lr(n){if(ne(n)){const e={};for(let t=0;t<n.length;t++){const r=n[t],o=Le(r)?Am(r):lr(r);if(o)for(const i in o)e[i]=o[i]}return e}else if(Le(n)||Ie(n))return n}const Cm=/;(?![^(]*\))/g,vm=/:([^]+)/,Tm=/\/\*[^]*?\*\//g;function Am(n){const e={};return n.replace(Tm,"").split(Cm).forEach(t=>{if(t){const r=t.split(vm);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ht(n){let e="";if(Le(n))e=n;else if(ne(n))for(let t=0;t<n.length;t++){const r=Ht(n[t]);r&&(e+=r+" ")}else if(Ie(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}function Xl(n){if(!n)return null;let{class:e,style:t}=n;return e&&!Le(e)&&(n.class=Ht(e)),t&&(n.style=lr(t)),n}const Em="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",wm=Pc(Em);function Ch(n){return!!n||n===""}function _m(n,e){if(n.length!==e.length)return!1;let t=!0;for(let r=0;t&&r<n.length;r++)t=xc(n[r],e[r]);return t}function xc(n,e){if(n===e)return!0;let t=Yl(n),r=Yl(e);if(t||r)return t&&r?n.getTime()===e.getTime():!1;if(t=jt(n),r=jt(e),t||r)return n===e;if(t=ne(n),r=ne(e),t||r)return t&&r?_m(n,e):!1;if(t=Ie(n),r=Ie(e),t||r){if(!t||!r)return!1;const o=Object.keys(n).length,i=Object.keys(e).length;if(o!==i)return!1;for(const s in n){const a=n.hasOwnProperty(s),c=e.hasOwnProperty(s);if(a&&!c||!a&&c||!xc(n[s],e[s]))return!1}}return String(n)===String(e)}const vh=n=>!!(n&&n.__v_isRef===!0),Bo=n=>Le(n)?n:n==null?"":ne(n)||Ie(n)&&(n.toString===ph||!ue(n.toString))?vh(n)?Bo(n.value):JSON.stringify(n,Th,2):String(n),Th=(n,e)=>vh(e)?Th(n,e.value):io(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,o],i)=>(t[ua(r,i)+" =>"]=o,t),{})}:fh(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>ua(t))}:jt(e)?ua(e):Ie(e)&&!ne(e)&&!mh(e)?String(e):e,ua=(n,e="")=>{var t;return jt(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/**
|
|
* @vue/reactivity v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let nt;class Ah{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&nt&&(nt.active?(this.parent=nt,this.index=(nt.scopes||(nt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=nt;try{return nt=this,e()}finally{nt=t}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){if(this._on>0&&--this._on===0){if(nt===this)nt=this.prevScope;else{let e=nt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Eh(n){return new Ah(n)}function wh(){return nt}function bm(n,e=!1){nt&&nt.cleanups.push(n)}let De;const da=new WeakSet;class _h{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,nt&&(nt.active?nt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,da.has(this)&&(da.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ih(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Zl(this),Sh(this);const e=De,t=en;De=this,en=!0;try{return this.fn()}finally{Rh(this),De=e,en=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Uc(e);this.deps=this.depsTail=void 0,Zl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?da.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Da(this)&&this.run()}get dirty(){return Da(this)}}let bh=0,Vo,zo;function Ih(n,e=!1){if(n.flags|=8,e){n.next=zo,zo=n;return}n.next=Vo,Vo=n}function Dc(){bh++}function Lc(){if(--bh>0)return;if(zo){let e=zo;for(zo=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let n;for(;Vo;){let e=Vo;for(Vo=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){n||(n=r)}e=t}}if(n)throw n}function Sh(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Rh(n){let e,t=n.depsTail,r=t;for(;r;){const o=r.prevDep;r.version===-1?(r===t&&(t=o),Uc(r),Im(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}n.deps=e,n.depsTail=t}function Da(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(kh(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function kh(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===ri)||(n.globalVersion=ri,!n.isSSR&&n.flags&128&&(!n.deps&&!n._dirty||!Da(n))))return;n.flags|=2;const e=n.dep,t=De,r=en;De=n,en=!0;try{Sh(n);const o=n.fn(n._value);(e.version===0||vn(o,n._value))&&(n.flags|=128,n._value=o,e.version++)}catch(o){throw e.version++,o}finally{De=t,en=r,Rh(n),n.flags&=-3}}function Uc(n,e=!1){const{dep:t,prevSub:r,nextSub:o}=n;if(r&&(r.nextSub=o,n.prevSub=void 0),o&&(o.prevSub=r,n.nextSub=void 0),t.subs===n&&(t.subs=r,!r&&t.computed)){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Uc(i,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function Im(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let en=!0;const Oh=[];function $n(){Oh.push(en),en=!1}function jn(){const n=Oh.pop();en=n===void 0?!0:n}function Zl(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=De;De=void 0;try{e()}finally{De=t}}}let ri=0;class Sm{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hc{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!De||!en||De===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==De)t=this.activeLink=new Sm(De,this),De.deps?(t.prevDep=De.depsTail,De.depsTail.nextDep=t,De.depsTail=t):De.deps=De.depsTail=t,Ph(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=De.depsTail,t.nextDep=void 0,De.depsTail.nextDep=t,De.depsTail=t,De.deps===t&&(De.deps=r)}return t}trigger(e){this.version++,ri++,this.notify(e)}notify(e){Dc();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Lc()}}}function Ph(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Ph(r)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const ts=new WeakMap,Nr=Symbol(""),La=Symbol(""),oi=Symbol("");function mt(n,e,t){if(en&&De){let r=ts.get(n);r||ts.set(n,r=new Map);let o=r.get(t);o||(r.set(t,o=new Hc),o.map=r,o.key=t),o.track()}}function Ln(n,e,t,r,o,i){const s=ts.get(n);if(!s){ri++;return}const a=c=>{c&&c.trigger()};if(Dc(),e==="clear")s.forEach(a);else{const c=ne(n),l=c&&Ss(t);if(c&&t==="length"){const u=Number(r);s.forEach((d,h)=>{(h==="length"||h===oi||!jt(h)&&h>=u)&&a(d)})}else switch((t!==void 0||s.has(void 0))&&a(s.get(t)),l&&a(s.get(oi)),e){case"add":c?l&&a(s.get("length")):(a(s.get(Nr)),io(n)&&a(s.get(La)));break;case"delete":c||(a(s.get(Nr)),io(n)&&a(s.get(La)));break;case"set":io(n)&&a(s.get(Nr));break}}Lc()}function Rm(n,e){const t=ts.get(n);return t&&t.get(e)}function jr(n){const e=Ae(n);return e===n?e:(mt(e,"iterate",oi),$t(n)?e:e.map(rn))}function Ps(n){return mt(n=Ae(n),"iterate",oi),n}function yn(n,e){return Gn(n)?To(Kn(n)?rn(e):e):rn(e)}const km={__proto__:null,[Symbol.iterator](){return ha(this,Symbol.iterator,n=>yn(this,n))},concat(...n){return jr(this).concat(...n.map(e=>ne(e)?jr(e):e))},entries(){return ha(this,"entries",n=>(n[1]=yn(this,n[1]),n))},every(n,e){return Sn(this,"every",n,e,void 0,arguments)},filter(n,e){return Sn(this,"filter",n,e,t=>t.map(r=>yn(this,r)),arguments)},find(n,e){return Sn(this,"find",n,e,t=>yn(this,t),arguments)},findIndex(n,e){return Sn(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return Sn(this,"findLast",n,e,t=>yn(this,t),arguments)},findLastIndex(n,e){return Sn(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return Sn(this,"forEach",n,e,void 0,arguments)},includes(...n){return fa(this,"includes",n)},indexOf(...n){return fa(this,"indexOf",n)},join(n){return jr(this).join(n)},lastIndexOf(...n){return fa(this,"lastIndexOf",n)},map(n,e){return Sn(this,"map",n,e,void 0,arguments)},pop(){return Mo(this,"pop")},push(...n){return Mo(this,"push",n)},reduce(n,...e){return eu(this,"reduce",n,e)},reduceRight(n,...e){return eu(this,"reduceRight",n,e)},shift(){return Mo(this,"shift")},some(n,e){return Sn(this,"some",n,e,void 0,arguments)},splice(...n){return Mo(this,"splice",n)},toReversed(){return jr(this).toReversed()},toSorted(n){return jr(this).toSorted(n)},toSpliced(...n){return jr(this).toSpliced(...n)},unshift(...n){return Mo(this,"unshift",n)},values(){return ha(this,"values",n=>yn(this,n))}};function ha(n,e,t){const r=Ps(n),o=r[e]();return r!==n&&!$t(n)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=t(i.value)),i}),o}const Om=Array.prototype;function Sn(n,e,t,r,o,i){const s=Ps(n),a=s!==n&&!$t(n),c=s[e];if(c!==Om[e]){const d=c.apply(n,i);return a?rn(d):d}let l=t;s!==n&&(a?l=function(d,h){return t.call(this,yn(n,d),h,n)}:t.length>2&&(l=function(d,h){return t.call(this,d,h,n)}));const u=c.call(s,l,r);return a&&o?o(u):u}function eu(n,e,t,r){const o=Ps(n),i=o!==n&&!$t(n);let s=t,a=!1;o!==n&&(i?(a=r.length===0,s=function(l,u,d){return a&&(a=!1,l=yn(n,l)),t.call(this,l,yn(n,u),d,n)}):t.length>3&&(s=function(l,u,d){return t.call(this,l,u,d,n)}));const c=o[e](s,...r);return a?yn(n,c):c}function fa(n,e,t){const r=Ae(n);mt(r,"iterate",oi);const o=r[e](...t);return(o===-1||o===!1)&&Ns(t[0])?(t[0]=Ae(t[0]),r[e](...t)):o}function Mo(n,e,t=[]){$n(),Dc();const r=Ae(n)[e].apply(n,t);return Lc(),jn(),r}const Pm=Pc("__proto__,__v_isRef,__isVue"),Nh=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(jt));function Nm(n){jt(n)||(n=String(n));const e=Ae(this);return mt(e,"has",n),e.hasOwnProperty(n)}class Mh{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if(t==="__v_skip")return e.__v_skip;const o=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!o;if(t==="__v_isReadonly")return o;if(t==="__v_isShallow")return i;if(t==="__v_raw")return r===(o?i?qm:Uh:i?Lh:Dh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=ne(e);if(!o){let c;if(s&&(c=km[t]))return c;if(t==="hasOwnProperty")return Nm}const a=Reflect.get(e,t,qe(e)?e:r);if((jt(t)?Nh.has(t):Pm(t))||(o||mt(e,"get",t),i))return a;if(qe(a)){const c=s&&Ss(t)?a:a.value;return o&&Ie(c)?Ha(c):c}return Ie(a)?o?Ha(a):vi(a):a}}class xh extends Mh{constructor(e=!1){super(!1,e)}set(e,t,r,o){let i=e[t];const s=ne(e)&&Ss(t);if(!this._isShallow){const l=Gn(i);if(!$t(r)&&!Gn(r)&&(i=Ae(i),r=Ae(r)),!s&&qe(i)&&!qe(r))return l||(i.value=r),!0}const a=s?Number(t)<e.length:be(e,t),c=Reflect.set(e,t,r,qe(e)?e:o);return e===Ae(o)&&(a?vn(r,i)&&Ln(e,"set",t,r):Ln(e,"add",t,r)),c}deleteProperty(e,t){const r=be(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&r&&Ln(e,"delete",t,void 0),o}has(e,t){const r=Reflect.has(e,t);return(!jt(t)||!Nh.has(t))&&mt(e,"has",t),r}ownKeys(e){return mt(e,"iterate",ne(e)?"length":Nr),Reflect.ownKeys(e)}}class Mm extends Mh{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const xm=new xh,Dm=new Mm,Lm=new xh(!0);const Ua=n=>n,Mi=n=>Reflect.getPrototypeOf(n);function Um(n,e,t){return function(...r){const o=this.__v_raw,i=Ae(o),s=io(i),a=n==="entries"||n===Symbol.iterator&&s,c=n==="keys"&&s,l=o[n](...r),u=t?Ua:e?To:rn;return!e&&mt(i,"iterate",c?La:Nr),ot(Object.create(l),{next(){const{value:d,done:h}=l.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function xi(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function Hm(n,e){const t={get(o){const i=this.__v_raw,s=Ae(i),a=Ae(o);n||(vn(o,a)&&mt(s,"get",o),mt(s,"get",a));const{has:c}=Mi(s),l=e?Ua:n?To:rn;if(c.call(s,o))return l(i.get(o));if(c.call(s,a))return l(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!n&&mt(Ae(o),"iterate",Nr),o.size},has(o){const i=this.__v_raw,s=Ae(i),a=Ae(o);return n||(vn(o,a)&&mt(s,"has",o),mt(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const s=this,a=s.__v_raw,c=Ae(a),l=e?Ua:n?To:rn;return!n&&mt(c,"iterate",Nr),a.forEach((u,d)=>o.call(i,l(u),l(d),s))}};return ot(t,n?{add:xi("add"),set:xi("set"),delete:xi("delete"),clear:xi("clear")}:{add(o){const i=Ae(this),s=Mi(i),a=Ae(o),c=!e&&!$t(o)&&!Gn(o)?a:o;return s.has.call(i,c)||vn(o,c)&&s.has.call(i,o)||vn(a,c)&&s.has.call(i,a)||(i.add(c),Ln(i,"add",c,c)),this},set(o,i){!e&&!$t(i)&&!Gn(i)&&(i=Ae(i));const s=Ae(this),{has:a,get:c}=Mi(s);let l=a.call(s,o);l||(o=Ae(o),l=a.call(s,o));const u=c.call(s,o);return s.set(o,i),l?vn(i,u)&&Ln(s,"set",o,i):Ln(s,"add",o,i),this},delete(o){const i=Ae(this),{has:s,get:a}=Mi(i);let c=s.call(i,o);c||(o=Ae(o),c=s.call(i,o)),a&&a.call(i,o);const l=i.delete(o);return c&&Ln(i,"delete",o,void 0),l},clear(){const o=Ae(this),i=o.size!==0,s=o.clear();return i&&Ln(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Um(o,n,e)}),t}function Fc(n,e){const t=Hm(n,e);return(r,o,i)=>o==="__v_isReactive"?!n:o==="__v_isReadonly"?n:o==="__v_raw"?r:Reflect.get(be(t,o)&&o in r?t:r,o,i)}const Fm={get:Fc(!1,!1)},Bm={get:Fc(!1,!0)},Km={get:Fc(!0,!1)};const Dh=new WeakMap,Lh=new WeakMap,Uh=new WeakMap,qm=new WeakMap;function $m(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jm(n){return n.__v_skip||!Object.isExtensible(n)?0:$m(gm(n))}function vi(n){return Gn(n)?n:Bc(n,!1,xm,Fm,Dh)}function Hh(n){return Bc(n,!1,Lm,Bm,Lh)}function Ha(n){return Bc(n,!0,Dm,Km,Uh)}function Bc(n,e,t,r,o){if(!Ie(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const i=jm(n);if(i===0)return n;const s=o.get(n);if(s)return s;const a=new Proxy(n,i===2?r:t);return o.set(n,a),a}function Kn(n){return Gn(n)?Kn(n.__v_raw):!!(n&&n.__v_isReactive)}function Gn(n){return!!(n&&n.__v_isReadonly)}function $t(n){return!!(n&&n.__v_isShallow)}function Ns(n){return n?!!n.__v_raw:!1}function Ae(n){const e=n&&n.__v_raw;return e?Ae(e):n}function Kc(n){return!be(n,"__v_skip")&&Object.isExtensible(n)&&yh(n,"__v_skip",!0),n}const rn=n=>Ie(n)?vi(n):n,To=n=>Ie(n)?Ha(n):n;function qe(n){return n?n.__v_isRef===!0:!1}function Oe(n){return Fh(n,!1)}function Gm(n){return Fh(n,!0)}function Fh(n,e){return qe(n)?n:new Vm(n,e)}class Vm{constructor(e,t){this.dep=new Hc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ae(e),this._value=t?e:rn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||$t(e)||Gn(e);e=r?e:Ae(e),vn(e,t)&&(this._rawValue=e,this._value=r?e:rn(e),this.dep.trigger())}}function dt(n){return qe(n)?n.value:n}const zm={get:(n,e,t)=>e==="__v_raw"?n:dt(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const o=n[e];return qe(o)&&!qe(t)?(o.value=t,!0):Reflect.set(n,e,t,r)}};function Bh(n){return Kn(n)?n:new Proxy(n,zm)}function Qm(n){const e=ne(n)?new Array(n.length):{};for(const t in n)e[t]=Ym(n,t);return e}class Wm{constructor(e,t,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=jt(t)?t:String(t),this._raw=Ae(e);let o=!0,i=e;if(!ne(e)||jt(this._key)||!Ss(this._key))do o=!Ns(i)||$t(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=dt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&qe(this._raw[this._key])){const t=this._object[this._key];if(qe(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Rm(this._raw,this._key)}}function Ym(n,e,t){return new Wm(n,e,t)}class Jm{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Hc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ri-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&De!==this)return Ih(this,!0),!0}get value(){const e=this.dep.track();return kh(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Xm(n,e,t=!1){let r,o;return ue(n)?r=n:(r=n.get,o=n.set),new Jm(r,o,t)}const Di={},ns=new WeakMap;let Cr;function Zm(n,e=!1,t=Cr){if(t){let r=ns.get(t);r||ns.set(t,r=[]),r.push(n)}}function ey(n,e,t=Me){const{immediate:r,deep:o,once:i,scheduler:s,augmentJob:a,call:c}=t,l=T=>o?T:$t(T)||o===!1||o===0?Un(T,1):Un(T);let u,d,h,f,C=!1,p=!1;if(qe(n)?(d=()=>n.value,C=$t(n)):Kn(n)?(d=()=>l(n),C=!0):ne(n)?(p=!0,C=n.some(T=>Kn(T)||$t(T)),d=()=>n.map(T=>{if(qe(T))return T.value;if(Kn(T))return l(T);if(ue(T))return c?c(T,2):T()})):ue(n)?e?d=c?()=>c(n,2):n:d=()=>{if(h){$n();try{h()}finally{jn()}}const T=Cr;Cr=u;try{return c?c(n,3,[f]):n(f)}finally{Cr=T}}:d=wn,e&&o){const T=d,N=o===!0?1/0:o;d=()=>Un(T(),N)}const v=wh(),E=()=>{u.stop(),v&&v.active&&Nc(v.effects,u)};if(i&&e){const T=e;e=(...N)=>{T(...N),E()}}let b=p?new Array(n.length).fill(Di):Di;const y=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(e){const N=u.run();if(o||C||(p?N.some((z,B)=>vn(z,b[B])):vn(N,b))){h&&h();const z=Cr;Cr=u;try{const B=[N,b===Di?void 0:p&&b[0]===Di?[]:b,f];b=N,c?c(e,3,B):e(...B)}finally{Cr=z}}}else u.run()};return a&&a(y),u=new _h(d),u.scheduler=s?()=>s(y,!1):y,f=T=>Zm(T,!1,u),h=u.onStop=()=>{const T=ns.get(u);if(T){if(c)c(T,4);else for(const N of T)N();ns.delete(u)}},e?r?y(!0):b=u.run():s?s(y.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function Un(n,e=1/0,t){if(e<=0||!Ie(n)||n.__v_skip||(t=t||new Map,(t.get(n)||0)>=e))return n;if(t.set(n,e),e--,qe(n))Un(n.value,e,t);else if(ne(n))for(let r=0;r<n.length;r++)Un(n[r],e,t);else if(fh(n)||io(n))n.forEach(r=>{Un(r,e,t)});else if(mh(n)){for(const r in n)Un(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Un(n[r],e,t)}return n}/**
|
|
* @vue/runtime-core v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Ti(n,e,t,r){try{return r?n(...r):n()}catch(o){Ms(o,e,t)}}function on(n,e,t,r){if(ue(n)){const o=Ti(n,e,t,r);return o&&gh(o)&&o.catch(i=>{Ms(i,e,t)}),o}if(ne(n)){const o=[];for(let i=0;i<n.length;i++)o.push(on(n[i],e,t,r));return o}}function Ms(n,e,t,r=!0){const o=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||Me;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](n,c,l)===!1)return}a=a.parent}if(i){$n(),Ti(i,null,10,[n,c,l]),jn();return}}ty(n,t,o,r,s)}function ty(n,e,t,r=!0,o=!1){if(o)throw n;console.error(n)}const It=[];let hn=-1;const so=[];let tr=null,Qr=0;const Kh=Promise.resolve();let rs=null;function Ai(n){const e=rs||Kh;return n?e.then(this?n.bind(this):n):e}function ny(n){let e=hn+1,t=It.length;for(;e<t;){const r=e+t>>>1,o=It[r],i=ii(o);i<n||i===n&&o.flags&2?e=r+1:t=r}return e}function qc(n){if(!(n.flags&1)){const e=ii(n),t=It[It.length-1];!t||!(n.flags&2)&&e>=ii(t)?It.push(n):It.splice(ny(e),0,n),n.flags|=1,qh()}}function qh(){rs||(rs=Kh.then(jh))}function ry(n){ne(n)?so.push(...n):tr&&n.id===-1?tr.splice(Qr+1,0,n):n.flags&1||(so.push(n),n.flags|=1),qh()}function tu(n,e,t=hn+1){for(;t<It.length;t++){const r=It[t];if(r&&r.flags&2){if(n&&r.id!==n.uid)continue;It.splice(t,1),t--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function $h(n){if(so.length){const e=[...new Set(so)].sort((t,r)=>ii(t)-ii(r));if(so.length=0,tr){tr.push(...e);return}for(tr=e,Qr=0;Qr<tr.length;Qr++){const t=tr[Qr];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}tr=null,Qr=0}}const ii=n=>n.id==null?n.flags&2?-1:1/0:n.id;function jh(n){try{for(hn=0;hn<It.length;hn++){const e=It[hn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ti(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;hn<It.length;hn++){const e=It[hn];e&&(e.flags&=-2)}hn=-1,It.length=0,$h(),rs=null,(It.length||so.length)&&jh()}}let ht=null,Gh=null;function os(n){const e=ht;return ht=n,Gh=n&&n.type.__scopeId||null,e}function vr(n,e=ht,t){if(!e||n._n)return n;const r=(...o)=>{r._d&&cs(-1);const i=os(e);let s;try{s=n(...o)}finally{os(i),r._d&&cs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function YI(n,e){if(ht===null)return n;const t=Fs(ht),r=n.dirs||(n.dirs=[]);for(let o=0;o<e.length;o++){let[i,s,a,c=Me]=e[o];i&&(ue(i)&&(i={mounted:i,updated:i}),i.deep&&Un(s),r.push({dir:i,instance:t,value:s,oldValue:void 0,arg:a,modifiers:c}))}return n}function gr(n,e,t,r){const o=n.dirs,i=e&&e.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let c=a.dir[r];c&&($n(),on(c,t,8,[n.el,a,n,e]),jn())}}function Wi(n,e){if(vt){let t=vt.provides;const r=vt.parent&&vt.parent.provides;r===t&&(t=vt.provides=Object.create(r)),t[n]=e}}function Yt(n,e,t=!1){const r=Hs();if(r||xr){let o=xr?xr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&n in o)return o[n];if(arguments.length>1)return t&&ue(e)?e.call(r&&r.proxy):e}}function oy(){return!!(Hs()||xr)}const iy=Symbol.for("v-scx"),sy=()=>Yt(iy);function eo(n,e){return $c(n,null,e)}function Mr(n,e,t){return $c(n,e,t)}function $c(n,e,t=Me){const{immediate:r,deep:o,flush:i,once:s}=t,a=ot({},t),c=e&&r||!e&&i!=="post";let l;if(li){if(i==="sync"){const f=sy();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=wn,f.resume=wn,f.pause=wn,f}}const u=vt;a.call=(f,C,p)=>on(f,u,C,p);let d=!1;i==="post"?a.scheduler=f=>{wt(f,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(f,C)=>{C?f():qc(f)}),a.augmentJob=f=>{e&&(f.flags|=4),d&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const h=ey(n,e,a);return li&&(l?l.push(h):c&&h()),h}function ay(n,e,t){const r=this.proxy,o=Le(n)?n.includes(".")?Vh(r,n):()=>r[n]:n.bind(r,r);let i;ue(e)?i=e:(i=e.handler,t=e);const s=Ei(this),a=$c(o,i.bind(r),t);return s(),a}function Vh(n,e){const t=e.split(".");return()=>{let r=n;for(let o=0;o<t.length&&r;o++)r=r[t[o]];return r}}const Jn=new WeakMap,zh=Symbol("_vte"),Qh=n=>n.__isTeleport,Ar=n=>n&&(n.disabled||n.disabled===""),cy=n=>n&&(n.defer||n.defer===""),nu=n=>typeof SVGElement<"u"&&n instanceof SVGElement,ru=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Fa=(n,e)=>{const t=n&&n.to;return Le(t)?e?e(t):null:t},ly={name:"Teleport",__isTeleport:!0,process(n,e,t,r,o,i,s,a,c,l){const{mc:u,pc:d,pbc:h,o:{insert:f,querySelector:C,createText:p,createComment:v,parentNode:E}}=l,b=Ar(e.props);let{dynamicChildren:y}=e;const T=(B,F,O)=>{B.shapeFlag&16&&u(B.children,F,O,o,i,s,a,c)},N=(B=e)=>{const F=Ar(B.props),O=B.target=Fa(B.props,C),Q=Ba(O,B,p,f);O&&(s!=="svg"&&nu(O)?s="svg":s!=="mathml"&&ru(O)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(O),F||(T(B,O,Q),Ko(B,!1)))},z=B=>{const F=()=>{if(Jn.get(B)===F){if(Jn.delete(B),Ar(B.props)){const O=E(B.el)||t;T(B,O,B.anchor),Ko(B,!0)}N(B)}};Jn.set(B,F),wt(F,i)};if(n==null){const B=e.el=p(""),F=e.anchor=p("");if(f(B,t,r),f(F,t,r),cy(e.props)||i&&i.pendingBranch){z(e);return}b&&(T(e,t,F),Ko(e,!0)),N()}else{e.el=n.el;const B=e.anchor=n.anchor,F=Jn.get(n);if(F){F.flags|=8,Jn.delete(n),z(e);return}e.targetStart=n.targetStart;const O=e.target=n.target,Q=e.targetAnchor=n.targetAnchor,Z=Ar(n.props),$=Z?t:O,ce=Z?B:Q;if(s==="svg"||nu(O)?s="svg":(s==="mathml"||ru(O))&&(s="mathml"),y?(h(n.dynamicChildren,y,$,o,i,s,a),zc(n,e,!0)):c||d(n,e,$,ce,o,i,s,a,!1),b)Z?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Li(e,t,B,l,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const fe=e.target=Fa(e.props,C);fe&&Li(e,fe,null,l,0)}else Z&&Li(e,O,Q,l,1);Ko(e,b)}},remove(n,e,t,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:c,targetStart:l,targetAnchor:u,target:d,props:h}=n;let f=i||!Ar(h);const C=Jn.get(n);if(C&&(C.flags|=8,Jn.delete(n),f=!1),d&&(o(l),o(u)),i&&o(c),s&16)for(let p=0;p<a.length;p++){const v=a[p];r(v,e,t,f,!!v.dynamicChildren)}},move:Li,hydrate:uy};function Li(n,e,t,{o:{insert:r},m:o},i=2){i===0&&r(n.targetAnchor,e,t);const{el:s,anchor:a,shapeFlag:c,children:l,props:u}=n,d=i===2;if(d&&r(s,e,t),!Jn.has(n)&&(!d||Ar(u))&&c&16)for(let h=0;h<l.length;h++)o(l[h],e,t,2);d&&r(a,e,t)}function uy(n,e,t,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:c,insert:l,createText:u}},d){function h(v,E){let b=E;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")e.targetStart=b;else if(b.data==="teleport anchor"){e.targetAnchor=b,v._lpa=e.targetAnchor&&s(e.targetAnchor);break}}b=s(b)}}function f(v,E){E.anchor=d(s(v),E,a(v),t,r,o,i)}const C=e.target=Fa(e.props,c),p=Ar(e.props);if(C){const v=C._lpa||C.firstChild;e.shapeFlag&16&&(p?(f(n,e),h(C,v),e.targetAnchor||Ba(C,e,u,l,a(n)===C?n:null)):(e.anchor=s(n),h(C,v),e.targetAnchor||Ba(C,e,u,l),d(v&&s(v),e,C,t,r,o,i))),Ko(e,p)}else p&&e.shapeFlag&16&&(f(n,e),e.targetStart=n,e.targetAnchor=s(n));return e.anchor&&s(e.anchor)}const JI=ly;function Ko(n,e){const t=n.ctx;if(t&&t.ut){let r,o;for(e?(r=n.el,o=n.anchor):(r=n.targetStart,o=n.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}function Ba(n,e,t,r,o=null){const i=e.targetStart=t(""),s=e.targetAnchor=t("");return i[zh]=s,n&&(r(i,n,o),r(s,n,o)),s}const fn=Symbol("_leaveCb"),xo=Symbol("_enterCb");function dy(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ss(()=>{n.isMounted=!0}),jc(()=>{n.isUnmounting=!0}),n}const Gt=[Function,Array],Wh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gt,onEnter:Gt,onAfterEnter:Gt,onEnterCancelled:Gt,onBeforeLeave:Gt,onLeave:Gt,onAfterLeave:Gt,onLeaveCancelled:Gt,onBeforeAppear:Gt,onAppear:Gt,onAfterAppear:Gt,onAppearCancelled:Gt},Yh=n=>{const e=n.subTree;return e.component?Yh(e.component):e},hy={name:"BaseTransition",props:Wh,setup(n,{slots:e}){const t=Hs(),r=dy();return()=>{const o=e.default&&Zh(e.default(),!0),i=o&&o.length?Jh(o):t.subTree?Tr():void 0;if(!i)return;const s=Ae(n),{mode:a}=s;if(r.isLeaving)return ga(i);const c=ou(i);if(!c)return ga(i);let l=Ka(c,s,r,t,d=>l=d);c.type!==Ct&&si(c,l);let u=t.subTree&&ou(t.subTree);if(u&&u.type!==Ct&&!Er(u,c)&&Yh(t).type!==Ct){let d=Ka(u,s,r,t);if(si(u,d),a==="out-in"&&c.type!==Ct)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete d.afterLeave,u=void 0},ga(i);a==="in-out"&&c.type!==Ct?d.delayLeave=(h,f,C)=>{const p=Xh(r,u);p[String(u.key)]=u,h[fn]=()=>{f(),h[fn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{C(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Jh(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==Ct){e=t;break}}return e}const fy=hy;function Xh(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function Ka(n,e,t,r,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:C,onLeaveCancelled:p,onBeforeAppear:v,onAppear:E,onAfterAppear:b,onAppearCancelled:y}=e,T=String(n.key),N=Xh(t,n),z=(O,Q)=>{O&&on(O,r,9,Q)},B=(O,Q)=>{const Z=Q[1];z(O,Q),ne(O)?O.every($=>$.length<=1)&&Z():O.length<=1&&Z()},F={mode:s,persisted:a,beforeEnter(O){let Q=c;if(!t.isMounted)if(i)Q=v||c;else return;O[fn]&&O[fn](!0);const Z=N[T];Z&&Er(n,Z)&&Z.el[fn]&&Z.el[fn](),z(Q,[O])},enter(O){if(N[T]===n)return;let Q=l,Z=u,$=d;if(!t.isMounted)if(i)Q=E||l,Z=b||u,$=y||d;else return;let ce=!1;O[xo]=Be=>{ce||(ce=!0,Be?z($,[O]):z(Z,[O]),F.delayedLeave&&F.delayedLeave(),O[xo]=void 0)};const fe=O[xo].bind(null,!1);Q?B(Q,[O,fe]):fe()},leave(O,Q){const Z=String(n.key);if(O[xo]&&O[xo](!0),t.isUnmounting)return Q();z(h,[O]);let $=!1;O[fn]=fe=>{$||($=!0,Q(),fe?z(p,[O]):z(C,[O]),O[fn]=void 0,N[Z]===n&&delete N[Z])};const ce=O[fn].bind(null,!1);N[Z]=n,f?B(f,[O,ce]):ce()},clone(O){const Q=Ka(O,e,t,r,o);return o&&o(Q),Q}};return F}function ga(n){if(xs(n))return n=dr(n),n.children=null,n}function ou(n){if(!xs(n))return Qh(n.type)&&n.children?Jh(n.children):n;if(n.component)return n.component.subTree;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&ue(t.default))return t.default()}}function si(n,e){n.shapeFlag&6&&n.component?(n.transition=e,si(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function Zh(n,e=!1,t){let r=[],o=0;for(let i=0;i<n.length;i++){let s=n[i];const a=t==null?s.key:String(t)+String(s.key!=null?s.key:i);s.type===We?(s.patchFlag&128&&o++,r=r.concat(Zh(s.children,e,a))):(e||s.type!==Ct)&&r.push(a!=null?dr(s,{key:a}):s)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ko(n,e){return ue(n)?ot({name:n.name},e,{setup:n}):n}function ef(n){n.ids=[n.ids[0]+n.ids[2]+++"-",0,0]}function iu(n,e){let t;return!!((t=Object.getOwnPropertyDescriptor(n,e))&&!t.configurable)}const is=new WeakMap;function Qo(n,e,t,r,o=!1){if(ne(n)){n.forEach((p,v)=>Qo(p,e&&(ne(e)?e[v]:e),t,r,o));return}if(ao(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Qo(n,e,t,r.component.subTree);return}const i=r.shapeFlag&4?Fs(r.component):r.el,s=o?null:i,{i:a,r:c}=n,l=e&&e.r,u=a.refs===Me?a.refs={}:a.refs,d=a.setupState,h=Ae(d),f=d===Me?hh:p=>iu(u,p)?!1:be(h,p),C=(p,v)=>!(v&&iu(u,v));if(l!=null&&l!==c){if(su(e),Le(l))u[l]=null,f(l)&&(d[l]=null);else if(qe(l)){const p=e;C(l,p.k)&&(l.value=null),p.k&&(u[p.k]=null)}}if(ue(c))Ti(c,a,12,[s,u]);else{const p=Le(c),v=qe(c);if(p||v){const E=()=>{if(n.f){const b=p?f(c)?d[c]:u[c]:C()||!n.k?c.value:u[n.k];if(o)ne(b)&&Nc(b,i);else if(ne(b))b.includes(i)||b.push(i);else if(p)u[c]=[i],f(c)&&(d[c]=u[c]);else{const y=[i];C(c,n.k)&&(c.value=y),n.k&&(u[n.k]=y)}}else p?(u[c]=s,f(c)&&(d[c]=s)):v&&(C(c,n.k)&&(c.value=s),n.k&&(u[n.k]=s))};if(s){const b=()=>{E(),is.delete(n)};b.id=-1,is.set(n,b),wt(b,t)}else su(n),E()}}}function su(n){const e=is.get(n);e&&(e.flags|=8,is.delete(n))}Os().requestIdleCallback;Os().cancelIdleCallback;const ao=n=>!!n.type.__asyncLoader,xs=n=>n.type.__isKeepAlive;function gy(n,e){tf(n,"a",e)}function py(n,e){tf(n,"da",e)}function tf(n,e,t=vt){const r=n.__wdc||(n.__wdc=()=>{let o=t;for(;o;){if(o.isDeactivated)return;o=o.parent}return n()});if(Ds(e,r,t),t){let o=t.parent;for(;o&&o.parent;)xs(o.parent.vnode)&&my(r,e,t,o),o=o.parent}}function my(n,e,t,r){const o=Ds(e,n,r,!0);nf(()=>{Nc(r[e],o)},t)}function Ds(n,e,t=vt,r=!1){if(t){const o=t[n]||(t[n]=[]),i=e.__weh||(e.__weh=(...s)=>{$n();const a=Ei(t),c=on(e,t,n,s);return a(),jn(),c});return r?o.unshift(i):o.push(i),i}}const Vn=n=>(e,t=vt)=>{(!li||n==="sp")&&Ds(n,(...r)=>e(...r),t)},yy=Vn("bm"),ss=Vn("m"),Cy=Vn("bu"),vy=Vn("u"),jc=Vn("bum"),nf=Vn("um"),Ty=Vn("sp"),Ay=Vn("rtg"),Ey=Vn("rtc");function wy(n,e=vt){Ds("ec",n,e)}const rf="components";function _y(n,e){return sf(rf,n,!0,e)||n}const of=Symbol.for("v-ndc");function Do(n){return Le(n)?sf(rf,n,!1)||n:n||of}function sf(n,e,t=!0,r=!1){const o=ht||vt;if(o){const i=o.type;{const a=cC(i,!1);if(a&&(a===e||a===Rt(e)||a===ks(Rt(e))))return i}const s=au(o[n]||i[n],e)||au(o.appContext[n],e);return!s&&r?i:s}}function au(n,e){return n&&(n[e]||n[Rt(e)]||n[ks(Rt(e))])}function qa(n,e,t,r){let o;const i=t,s=ne(n);if(s||Le(n)){const a=s&&Kn(n);let c=!1,l=!1;a&&(c=!$t(n),l=Gn(n),n=Ps(n)),o=new Array(n.length);for(let u=0,d=n.length;u<d;u++)o[u]=e(c?l?To(rn(n[u])):rn(n[u]):n[u],u,void 0,i)}else if(typeof n=="number"){o=new Array(n);for(let a=0;a<n;a++)o[a]=e(a+1,a,void 0,i)}else if(Ie(n))if(n[Symbol.iterator])o=Array.from(n,(a,c)=>e(a,c,void 0,i));else{const a=Object.keys(n);o=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const u=a[c];o[c]=e(n[u],u,c,i)}}else o=[];return o}function Wt(n,e,t={},r,o){if(ht.ce||ht.parent&&ao(ht.parent)&&ht.parent.ce){const l=Object.keys(t).length>0;return e!=="default"&&(t.name=e),Ee(),Hn(We,null,[Ge("slot",t,r&&r())],l?-2:64)}let i=n[e];i&&i._c&&(i._d=!1),Ee();const s=i&&af(i(t)),a=t.key||s&&s.key,c=Hn(We,{key:(a&&!jt(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&n._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function af(n){return n.some(e=>ci(e)?!(e.type===Ct||e.type===We&&!af(e.children)):!0)?n:null}const $a=n=>n?If(n)?Fs(n):$a(n.parent):null,Wo=ot(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>$a(n.parent),$root:n=>$a(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>lf(n),$forceUpdate:n=>n.f||(n.f=()=>{qc(n.update)}),$nextTick:n=>n.n||(n.n=Ai.bind(n.proxy)),$watch:n=>ay.bind(n)}),pa=(n,e)=>n!==Me&&!n.__isScriptSetup&&be(n,e),by={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:c}=n;if(e[0]!=="$"){const h=s[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return t[e];case 3:return i[e]}else{if(pa(r,e))return s[e]=1,r[e];if(o!==Me&&be(o,e))return s[e]=2,o[e];if(be(i,e))return s[e]=3,i[e];if(t!==Me&&be(t,e))return s[e]=4,t[e];ja&&(s[e]=0)}}const l=Wo[e];let u,d;if(l)return e==="$attrs"&&mt(n.attrs,"get",""),l(n);if((u=a.__cssModules)&&(u=u[e]))return u;if(t!==Me&&be(t,e))return s[e]=4,t[e];if(d=c.config.globalProperties,be(d,e))return d[e]},set({_:n},e,t){const{data:r,setupState:o,ctx:i}=n;return pa(o,e)?(o[e]=t,!0):r!==Me&&be(r,e)?(r[e]=t,!0):be(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(i[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:o,props:i,type:s}},a){let c;return!!(t[a]||n!==Me&&a[0]!=="$"&&be(n,a)||pa(e,a)||be(i,a)||be(r,a)||be(Wo,a)||be(o.config.globalProperties,a)||(c=s.__cssModules)&&c[a])},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:be(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function Iy(){return Sy().attrs}function Sy(n){const e=Hs();return e.setupContext||(e.setupContext=Rf(e))}function cu(n){return ne(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let ja=!0;function Ry(n){const e=lf(n),t=n.proxy,r=n.ctx;ja=!1,e.beforeCreate&&lu(e.beforeCreate,n,"bc");const{data:o,computed:i,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:d,mounted:h,beforeUpdate:f,updated:C,activated:p,deactivated:v,beforeDestroy:E,beforeUnmount:b,destroyed:y,unmounted:T,render:N,renderTracked:z,renderTriggered:B,errorCaptured:F,serverPrefetch:O,expose:Q,inheritAttrs:Z,components:$,directives:ce,filters:fe}=e;if(l&&ky(l,r,null),s)for(const ie in s){const he=s[ie];ue(he)&&(r[ie]=he.bind(t))}if(o){const ie=o.call(t,t);Ie(ie)&&(n.data=vi(ie))}if(ja=!0,i)for(const ie in i){const he=i[ie],Se=ue(he)?he.bind(t,t):ue(he.get)?he.get.bind(t,t):wn,Pe=!ue(he)&&ue(he.set)?he.set.bind(t):wn,Qe=Te({get:Se,set:Pe});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Ze=>Qe.value=Ze})}if(a)for(const ie in a)cf(a[ie],r,t,ie);if(c){const ie=ue(c)?c.call(t):c;Reflect.ownKeys(ie).forEach(he=>{Wi(he,ie[he])})}u&&lu(u,n,"c");function pe(ie,he){ne(he)?he.forEach(Se=>ie(Se.bind(t))):he&&ie(he.bind(t))}if(pe(yy,d),pe(ss,h),pe(Cy,f),pe(vy,C),pe(gy,p),pe(py,v),pe(wy,F),pe(Ey,z),pe(Ay,B),pe(jc,b),pe(nf,T),pe(Ty,O),ne(Q))if(Q.length){const ie=n.exposed||(n.exposed={});Q.forEach(he=>{Object.defineProperty(ie,he,{get:()=>t[he],set:Se=>t[he]=Se,enumerable:!0})})}else n.exposed||(n.exposed={});N&&n.render===wn&&(n.render=N),Z!=null&&(n.inheritAttrs=Z),$&&(n.components=$),ce&&(n.directives=ce),O&&ef(n)}function ky(n,e,t=wn){ne(n)&&(n=Ga(n));for(const r in n){const o=n[r];let i;Ie(o)?"default"in o?i=Yt(o.from||r,o.default,!0):i=Yt(o.from||r):i=Yt(o),qe(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[r]=i}}function lu(n,e,t){on(ne(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function cf(n,e,t,r){let o=r.includes(".")?Vh(t,r):()=>t[r];if(Le(n)){const i=e[n];ue(i)&&Mr(o,i)}else if(ue(n))Mr(o,n.bind(t));else if(Ie(n))if(ne(n))n.forEach(i=>cf(i,e,t,r));else{const i=ue(n.handler)?n.handler.bind(t):e[n.handler];ue(i)&&Mr(o,i,n)}}function lf(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=n.appContext,a=i.get(e);let c;return a?c=a:!o.length&&!t&&!r?c=e:(c={},o.length&&o.forEach(l=>as(c,l,s,!0)),as(c,e,s)),Ie(e)&&i.set(e,c),c}function as(n,e,t,r=!1){const{mixins:o,extends:i}=e;i&&as(n,i,t,!0),o&&o.forEach(s=>as(n,s,t,!0));for(const s in e)if(!(r&&s==="expose")){const a=Oy[s]||t&&t[s];n[s]=a?a(n[s],e[s]):e[s]}return n}const Oy={data:uu,props:du,emits:du,methods:qo,computed:qo,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:qo,directives:qo,watch:Ny,provide:uu,inject:Py};function uu(n,e){return e?n?function(){return ot(ue(n)?n.call(this,this):n,ue(e)?e.call(this,this):e)}:e:n}function Py(n,e){return qo(Ga(n),Ga(e))}function Ga(n){if(ne(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function Et(n,e){return n?[...new Set([].concat(n,e))]:e}function qo(n,e){return n?ot(Object.create(null),n,e):e}function du(n,e){return n?ne(n)&&ne(e)?[...new Set([...n,...e])]:ot(Object.create(null),cu(n),cu(e??{})):e}function Ny(n,e){if(!n)return e;if(!e)return n;const t=ot(Object.create(null),n);for(const r in e)t[r]=Et(n[r],e[r]);return t}function uf(){return{app:null,config:{isNativeTag:hh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let My=0;function xy(n,e){return function(r,o=null){ue(r)||(r=ot({},r)),o!=null&&!Ie(o)&&(o=null);const i=uf(),s=new WeakSet,a=[];let c=!1;const l=i.app={_uid:My++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:uC,get config(){return i.config},set config(u){},use(u,...d){return s.has(u)||(u&&ue(u.install)?(s.add(u),u.install(l,...d)):ue(u)&&(s.add(u),u(l,...d))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,d){return d?(i.components[u]=d,l):i.components[u]},directive(u,d){return d?(i.directives[u]=d,l):i.directives[u]},mount(u,d,h){if(!c){const f=l._ceVNode||Ge(r,o);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),n(f,u,h),c=!0,l._container=u,u.__vue_app__=l,Fs(f.component)}},onUnmount(u){a.push(u)},unmount(){c&&(on(a,l._instance,16),n(null,l._container),delete l._container.__vue_app__)},provide(u,d){return i.provides[u]=d,l},runWithContext(u){const d=xr;xr=l;try{return u()}finally{xr=d}}};return l}}let xr=null;const Dy=(n,e)=>e==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${Rt(e)}Modifiers`]||n[`${Kr(e)}Modifiers`];function Ly(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||Me;let o=t;const i=e.startsWith("update:"),s=i&&Dy(r,e.slice(7));s&&(s.trim&&(o=t.map(u=>Le(u)?u.trim():u)),s.number&&(o=t.map(Mc)));let a,c=r[a=la(e)]||r[a=la(Rt(e))];!c&&i&&(c=r[a=la(Kr(e))]),c&&on(c,n,6,o);const l=r[a+"Once"];if(l){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,on(l,n,6,o)}}const Uy=new WeakMap;function df(n,e,t=!1){const r=t?Uy:e.emitsCache,o=r.get(n);if(o!==void 0)return o;const i=n.emits;let s={},a=!1;if(!ue(n)){const c=l=>{const u=df(l,e,!0);u&&(a=!0,ot(s,u))};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}return!i&&!a?(Ie(n)&&r.set(n,null),null):(ne(i)?i.forEach(c=>s[c]=null):ot(s,i),Ie(n)&&r.set(n,s),s)}function Ls(n,e){return!n||!bs(e)?!1:(e=e.slice(2).replace(/Once$/,""),be(n,e[0].toLowerCase()+e.slice(1))||be(n,Kr(e))||be(n,e))}function hu(n){const{type:e,vnode:t,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:c,render:l,renderCache:u,props:d,data:h,setupState:f,ctx:C,inheritAttrs:p}=n,v=os(n);let E,b;try{if(t.shapeFlag&4){const T=o||r,N=T;E=Cn(l.call(N,T,u,d,f,h,C)),b=a}else{const T=e;E=Cn(T.length>1?T(d,{attrs:a,slots:s,emit:c}):T(d,null)),b=e.props?a:Hy(a)}}catch(T){Yo.length=0,Ms(T,n,1),E=Ge(Ct)}let y=E;if(b&&p!==!1){const T=Object.keys(b),{shapeFlag:N}=y;T.length&&N&7&&(i&&T.some(Is)&&(b=Fy(b,i)),y=dr(y,b,!1,!0))}return t.dirs&&(y=dr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&si(y,t.transition),E=y,os(v),E}const Hy=n=>{let e;for(const t in n)(t==="class"||t==="style"||bs(t))&&((e||(e={}))[t]=n[t]);return e},Fy=(n,e)=>{const t={};for(const r in n)(!Is(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function By(n,e,t){const{props:r,children:o,component:i}=n,{props:s,children:a,patchFlag:c}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&c>=0){if(c&1024)return!0;if(c&16)return r?fu(r,s,l):!!s;if(c&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(hf(s,r,h)&&!Ls(l,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?fu(r,s,l):!0:!!s;return!1}function fu(n,e,t){const r=Object.keys(e);if(r.length!==Object.keys(n).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(hf(e,n,i)&&!Ls(t,i))return!0}return!1}function hf(n,e,t){const r=n[t],o=e[t];return t==="style"&&Ie(r)&&Ie(o)?!xc(r,o):r!==o}function Ky({vnode:n,parent:e,suspense:t},r){for(;e;){const o=e.subTree;if(o.suspense&&o.suspense.activeBranch===n&&(o.suspense.vnode.el=o.el=r,n=o),o===n)(n=e.vnode).el=r,e=e.parent;else break}t&&t.activeBranch===n&&(t.vnode.el=r)}const ff={},gf=()=>Object.create(ff),pf=n=>Object.getPrototypeOf(n)===ff;function qy(n,e,t,r=!1){const o={},i=gf();n.propsDefaults=Object.create(null),mf(n,e,o,i);for(const s in n.propsOptions[0])s in o||(o[s]=void 0);t?n.props=r?o:Hh(o):n.type.props?n.props=o:n.props=i,n.attrs=i}function $y(n,e,t,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=n,a=Ae(o),[c]=n.propsOptions;let l=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=n.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Ls(n.emitsOptions,h))continue;const f=e[h];if(c)if(be(i,h))f!==i[h]&&(i[h]=f,l=!0);else{const C=Rt(h);o[C]=Va(c,a,C,f,n,!1)}else f!==i[h]&&(i[h]=f,l=!0)}}}else{mf(n,e,o,i)&&(l=!0);let u;for(const d in a)(!e||!be(e,d)&&((u=Kr(d))===d||!be(e,u)))&&(c?t&&(t[d]!==void 0||t[u]!==void 0)&&(o[d]=Va(c,a,d,void 0,n,!0)):delete o[d]);if(i!==a)for(const d in i)(!e||!be(e,d))&&(delete i[d],l=!0)}l&&Ln(n.attrs,"set","")}function mf(n,e,t,r){const[o,i]=n.propsOptions;let s=!1,a;if(e)for(let c in e){if(Go(c))continue;const l=e[c];let u;o&&be(o,u=Rt(c))?!i||!i.includes(u)?t[u]=l:(a||(a={}))[u]=l:Ls(n.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,s=!0)}if(i){const c=Ae(t),l=a||Me;for(let u=0;u<i.length;u++){const d=i[u];t[d]=Va(o,c,d,l[d],n,!be(l,d))}}return s}function Va(n,e,t,r,o,i){const s=n[t];if(s!=null){const a=be(s,"default");if(a&&r===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&ue(c)){const{propsDefaults:l}=o;if(t in l)r=l[t];else{const u=Ei(o);r=l[t]=c.call(null,e),u()}}else r=c;o.ce&&o.ce._setProp(t,r)}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===Kr(t))&&(r=!0))}return r}const jy=new WeakMap;function yf(n,e,t=!1){const r=t?jy:e.propsCache,o=r.get(n);if(o)return o;const i=n.props,s={},a=[];let c=!1;if(!ue(n)){const u=d=>{c=!0;const[h,f]=yf(d,e,!0);ot(s,h),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!i&&!c)return Ie(n)&&r.set(n,oo),oo;if(ne(i))for(let u=0;u<i.length;u++){const d=Rt(i[u]);gu(d)&&(s[d]=Me)}else if(i)for(const u in i){const d=Rt(u);if(gu(d)){const h=i[u],f=s[d]=ne(h)||ue(h)?{type:h}:ot({},h),C=f.type;let p=!1,v=!0;if(ne(C))for(let E=0;E<C.length;++E){const b=C[E],y=ue(b)&&b.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(v=!1)}else p=ue(C)&&C.name==="Boolean";f[0]=p,f[1]=v,(p||be(f,"default"))&&a.push(d)}}const l=[s,a];return Ie(n)&&r.set(n,l),l}function gu(n){return n[0]!=="$"&&!Go(n)}const Gc=n=>n==="_"||n==="_ctx"||n==="$stable",Vc=n=>ne(n)?n.map(Cn):[Cn(n)],Gy=(n,e,t)=>{if(e._n)return e;const r=vr((...o)=>Vc(e(...o)),t);return r._c=!1,r},Cf=(n,e,t)=>{const r=n._ctx;for(const o in n){if(Gc(o))continue;const i=n[o];if(ue(i))e[o]=Gy(o,i,r);else if(i!=null){const s=Vc(i);e[o]=()=>s}}},vf=(n,e)=>{const t=Vc(e);n.slots.default=()=>t},Tf=(n,e,t)=>{for(const r in e)(t||!Gc(r))&&(n[r]=e[r])},Vy=(n,e,t)=>{const r=n.slots=gf();if(n.vnode.shapeFlag&32){const o=e._;o?(Tf(r,e,t),t&&yh(r,"_",o,!0)):Cf(e,r)}else e&&vf(n,e)},zy=(n,e,t)=>{const{vnode:r,slots:o}=n;let i=!0,s=Me;if(r.shapeFlag&32){const a=e._;a?t&&a===1?i=!1:Tf(o,e,t):(i=!e.$stable,Cf(e,o)),s=e}else e&&(vf(n,e),s={default:1});if(i)for(const a in o)!Gc(a)&&s[a]==null&&delete o[a]},wt=Xy;function Qy(n){return Wy(n)}function Wy(n,e){const t=Os();t.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:h,setScopeId:f=wn,insertStaticContent:C}=n,p=(g,m,A,P=null,x=null,M=null,G=void 0,j=null,K=!!m.dynamicChildren)=>{if(g===m)return;g&&!Er(g,m)&&(P=I(g),Ze(g,x,M,!0),g=null),m.patchFlag===-2&&(K=!1,m.dynamicChildren=null);const{type:L,ref:te,shapeFlag:V}=m;switch(L){case Us:v(g,m,A,P);break;case Ct:E(g,m,A,P);break;case Yi:g==null&&b(m,A,P,G);break;case We:$(g,m,A,P,x,M,G,j,K);break;default:V&1?N(g,m,A,P,x,M,G,j,K):V&6?ce(g,m,A,P,x,M,G,j,K):(V&64||V&128)&&L.process(g,m,A,P,x,M,G,j,K,W)}te!=null&&x?Qo(te,g&&g.ref,M,m||g,!m):te==null&&g&&g.ref!=null&&Qo(g.ref,null,M,g,!0)},v=(g,m,A,P)=>{if(g==null)r(m.el=a(m.children),A,P);else{const x=m.el=g.el;m.children!==g.children&&l(x,m.children)}},E=(g,m,A,P)=>{g==null?r(m.el=c(m.children||""),A,P):m.el=g.el},b=(g,m,A,P)=>{[g.el,g.anchor]=C(g.children,m,A,P,g.el,g.anchor)},y=({el:g,anchor:m},A,P)=>{let x;for(;g&&g!==m;)x=h(g),r(g,A,P),g=x;r(m,A,P)},T=({el:g,anchor:m})=>{let A;for(;g&&g!==m;)A=h(g),o(g),g=A;o(m)},N=(g,m,A,P,x,M,G,j,K)=>{if(m.type==="svg"?G="svg":m.type==="math"&&(G="mathml"),g==null)z(m,A,P,x,M,G,j,K);else{const L=g.el&&g.el._isVueCE?g.el:null;try{L&&L._beginPatch(),O(g,m,x,M,G,j,K)}finally{L&&L._endPatch()}}},z=(g,m,A,P,x,M,G,j)=>{let K,L;const{props:te,shapeFlag:V,transition:X,dirs:re}=g;if(K=g.el=s(g.type,M,te&&te.is,te),V&8?u(K,g.children):V&16&&F(g.children,K,null,P,x,ma(g,M),G,j),re&&gr(g,null,P,"created"),B(K,g,g.scopeId,G,P),te){for(const we in te)we!=="value"&&!Go(we)&&i(K,we,null,te[we],M,P);"value"in te&&i(K,"value",null,te.value,M),(L=te.onVnodeBeforeMount)&&un(L,P,g)}re&&gr(g,null,P,"beforeMount");const Ce=Yy(x,X);Ce&&X.beforeEnter(K),r(K,m,A),((L=te&&te.onVnodeMounted)||Ce||re)&&wt(()=>{try{L&&un(L,P,g),Ce&&X.enter(K),re&&gr(g,null,P,"mounted")}finally{}},x)},B=(g,m,A,P,x)=>{if(A&&f(g,A),P)for(let M=0;M<P.length;M++)f(g,P[M]);if(x){let M=x.subTree;if(m===M||wf(M.type)&&(M.ssContent===m||M.ssFallback===m)){const G=x.vnode;B(g,G,G.scopeId,G.slotScopeIds,x.parent)}}},F=(g,m,A,P,x,M,G,j,K=0)=>{for(let L=K;L<g.length;L++){const te=g[L]=j?xn(g[L]):Cn(g[L]);p(null,te,m,A,P,x,M,G,j)}},O=(g,m,A,P,x,M,G)=>{const j=m.el=g.el;let{patchFlag:K,dynamicChildren:L,dirs:te}=m;K|=g.patchFlag&16;const V=g.props||Me,X=m.props||Me;let re;if(A&&pr(A,!1),(re=X.onVnodeBeforeUpdate)&&un(re,A,m,g),te&&gr(m,g,A,"beforeUpdate"),A&&pr(A,!0),(V.innerHTML&&X.innerHTML==null||V.textContent&&X.textContent==null)&&u(j,""),L?Q(g.dynamicChildren,L,j,A,P,ma(m,x),M):G||he(g,m,j,null,A,P,ma(m,x),M,!1),K>0){if(K&16)Z(j,V,X,A,x);else if(K&2&&V.class!==X.class&&i(j,"class",null,X.class,x),K&4&&i(j,"style",V.style,X.style,x),K&8){const Ce=m.dynamicProps;for(let we=0;we<Ce.length;we++){const Re=Ce[we],$e=V[Re],Xe=X[Re];(Xe!==$e||Re==="value")&&i(j,Re,$e,Xe,x,A)}}K&1&&g.children!==m.children&&u(j,m.children)}else!G&&L==null&&Z(j,V,X,A,x);((re=X.onVnodeUpdated)||te)&&wt(()=>{re&&un(re,A,m,g),te&&gr(m,g,A,"updated")},P)},Q=(g,m,A,P,x,M,G)=>{for(let j=0;j<m.length;j++){const K=g[j],L=m[j],te=K.el&&(K.type===We||!Er(K,L)||K.shapeFlag&198)?d(K.el):A;p(K,L,te,null,P,x,M,G,!0)}},Z=(g,m,A,P,x)=>{if(m!==A){if(m!==Me)for(const M in m)!Go(M)&&!(M in A)&&i(g,M,m[M],null,x,P);for(const M in A){if(Go(M))continue;const G=A[M],j=m[M];G!==j&&M!=="value"&&i(g,M,j,G,x,P)}"value"in A&&i(g,"value",m.value,A.value,x)}},$=(g,m,A,P,x,M,G,j,K)=>{const L=m.el=g?g.el:a(""),te=m.anchor=g?g.anchor:a("");let{patchFlag:V,dynamicChildren:X,slotScopeIds:re}=m;re&&(j=j?j.concat(re):re),g==null?(r(L,A,P),r(te,A,P),F(m.children||[],A,te,x,M,G,j,K)):V>0&&V&64&&X&&g.dynamicChildren&&g.dynamicChildren.length===X.length?(Q(g.dynamicChildren,X,A,x,M,G,j),(m.key!=null||x&&m===x.subTree)&&zc(g,m,!0)):he(g,m,A,te,x,M,G,j,K)},ce=(g,m,A,P,x,M,G,j,K)=>{m.slotScopeIds=j,g==null?m.shapeFlag&512?x.ctx.activate(m,A,P,G,K):fe(m,A,P,x,M,G,K):Be(g,m,K)},fe=(g,m,A,P,x,M,G)=>{const j=g.component=oC(g,P,x);if(xs(g)&&(j.ctx.renderer=W),iC(j,!1,G),j.asyncDep){if(x&&x.registerDep(j,pe,G),!g.el){const K=j.subTree=Ge(Ct);E(null,K,m,A),g.placeholder=K.el}}else pe(j,g,m,A,x,M,G)},Be=(g,m,A)=>{const P=m.component=g.component;if(By(g,m,A))if(P.asyncDep&&!P.asyncResolved){ie(P,m,A);return}else P.next=m,P.update();else m.el=g.el,P.vnode=m},pe=(g,m,A,P,x,M,G)=>{const j=()=>{if(g.isMounted){let{next:V,bu:X,u:re,parent:Ce,vnode:we}=g;{const Mt=Af(g);if(Mt){V&&(V.el=we.el,ie(g,V,G)),Mt.asyncDep.then(()=>{wt(()=>{g.isUnmounted||L()},x)});return}}let Re=V,$e;pr(g,!1),V?(V.el=we.el,ie(g,V,G)):V=we,X&&Qi(X),($e=V.props&&V.props.onVnodeBeforeUpdate)&&un($e,Ce,V,we),pr(g,!0);const Xe=hu(g),Nt=g.subTree;g.subTree=Xe,p(Nt,Xe,d(Nt.el),I(Nt),g,x,M),V.el=Xe.el,Re===null&&Ky(g,Xe.el),re&&wt(re,x),($e=V.props&&V.props.onVnodeUpdated)&&wt(()=>un($e,Ce,V,we),x)}else{let V;const{el:X,props:re}=m,{bm:Ce,m:we,parent:Re,root:$e,type:Xe}=g,Nt=ao(m);pr(g,!1),Ce&&Qi(Ce),!Nt&&(V=re&&re.onVnodeBeforeMount)&&un(V,Re,m),pr(g,!0);{$e.ce&&$e.ce._hasShadowRoot()&&$e.ce._injectChildStyle(Xe,g.parent?g.parent.type:void 0);const Mt=g.subTree=hu(g);p(null,Mt,A,P,g,x,M),m.el=Mt.el}if(we&&wt(we,x),!Nt&&(V=re&&re.onVnodeMounted)){const Mt=m;wt(()=>un(V,Re,Mt),x)}(m.shapeFlag&256||Re&&ao(Re.vnode)&&Re.vnode.shapeFlag&256)&&g.a&&wt(g.a,x),g.isMounted=!0,m=A=P=null}};g.scope.on();const K=g.effect=new _h(j);g.scope.off();const L=g.update=K.run.bind(K),te=g.job=K.runIfDirty.bind(K);te.i=g,te.id=g.uid,K.scheduler=()=>qc(te),pr(g,!0),L()},ie=(g,m,A)=>{m.component=g;const P=g.vnode.props;g.vnode=m,g.next=null,$y(g,m.props,P,A),zy(g,m.children,A),$n(),tu(g),jn()},he=(g,m,A,P,x,M,G,j,K=!1)=>{const L=g&&g.children,te=g?g.shapeFlag:0,V=m.children,{patchFlag:X,shapeFlag:re}=m;if(X>0){if(X&128){Pe(L,V,A,P,x,M,G,j,K);return}else if(X&256){Se(L,V,A,P,x,M,G,j,K);return}}re&8?(te&16&&de(L,x,M),V!==L&&u(A,V)):te&16?re&16?Pe(L,V,A,P,x,M,G,j,K):de(L,x,M,!0):(te&8&&u(A,""),re&16&&F(V,A,P,x,M,G,j,K))},Se=(g,m,A,P,x,M,G,j,K)=>{g=g||oo,m=m||oo;const L=g.length,te=m.length,V=Math.min(L,te);let X;for(X=0;X<V;X++){const re=m[X]=K?xn(m[X]):Cn(m[X]);p(g[X],re,A,null,x,M,G,j,K)}L>te?de(g,x,M,!0,!1,V):F(m,A,P,x,M,G,j,K,V)},Pe=(g,m,A,P,x,M,G,j,K)=>{let L=0;const te=m.length;let V=g.length-1,X=te-1;for(;L<=V&&L<=X;){const re=g[L],Ce=m[L]=K?xn(m[L]):Cn(m[L]);if(Er(re,Ce))p(re,Ce,A,null,x,M,G,j,K);else break;L++}for(;L<=V&&L<=X;){const re=g[V],Ce=m[X]=K?xn(m[X]):Cn(m[X]);if(Er(re,Ce))p(re,Ce,A,null,x,M,G,j,K);else break;V--,X--}if(L>V){if(L<=X){const re=X+1,Ce=re<te?m[re].el:P;for(;L<=X;)p(null,m[L]=K?xn(m[L]):Cn(m[L]),A,Ce,x,M,G,j,K),L++}}else if(L>X)for(;L<=V;)Ze(g[L],x,M,!0),L++;else{const re=L,Ce=L,we=new Map;for(L=Ce;L<=X;L++){const et=m[L]=K?xn(m[L]):Cn(m[L]);et.key!=null&&we.set(et.key,L)}let Re,$e=0;const Xe=X-Ce+1;let Nt=!1,Mt=0;const zn=new Array(Xe);for(L=0;L<Xe;L++)zn[L]=0;for(L=re;L<=V;L++){const et=g[L];if($e>=Xe){Ze(et,x,M,!0);continue}let ft;if(et.key!=null)ft=we.get(et.key);else for(Re=Ce;Re<=X;Re++)if(zn[Re-Ce]===0&&Er(et,m[Re])){ft=Re;break}ft===void 0?Ze(et,x,M,!0):(zn[ft-Ce]=L+1,ft>=Mt?Mt=ft:Nt=!0,p(et,m[ft],A,null,x,M,G,j,K),$e++)}const Qn=Nt?Jy(zn):oo;for(Re=Qn.length-1,L=Xe-1;L>=0;L--){const et=Ce+L,ft=m[et],zl=m[et+1],Ql=et+1<te?zl.el||Ef(zl):P;zn[L]===0?p(null,ft,A,Ql,x,M,G,j,K):Nt&&(Re<0||L!==Qn[Re]?Qe(ft,A,Ql,2):Re--)}}},Qe=(g,m,A,P,x=null)=>{const{el:M,type:G,transition:j,children:K,shapeFlag:L}=g;if(L&6){Qe(g.component.subTree,m,A,P);return}if(L&128){g.suspense.move(m,A,P);return}if(L&64){G.move(g,m,A,W);return}if(G===We){r(M,m,A);for(let V=0;V<K.length;V++)Qe(K[V],m,A,P);r(g.anchor,m,A);return}if(G===Yi){y(g,m,A);return}if(P!==2&&L&1&&j)if(P===0)j.beforeEnter(M),r(M,m,A),wt(()=>j.enter(M),x);else{const{leave:V,delayLeave:X,afterLeave:re}=j,Ce=()=>{g.ctx.isUnmounted?o(M):r(M,m,A)},we=()=>{M._isLeaving&&M[fn](!0),V(M,()=>{Ce(),re&&re()})};X?X(M,Ce,we):we()}else r(M,m,A)},Ze=(g,m,A,P=!1,x=!1)=>{const{type:M,props:G,ref:j,children:K,dynamicChildren:L,shapeFlag:te,patchFlag:V,dirs:X,cacheIndex:re,memo:Ce}=g;if(V===-2&&(x=!1),j!=null&&($n(),Qo(j,null,A,g,!0),jn()),re!=null&&(m.renderCache[re]=void 0),te&256){m.ctx.deactivate(g);return}const we=te&1&&X,Re=!ao(g);let $e;if(Re&&($e=G&&G.onVnodeBeforeUnmount)&&un($e,m,g),te&6)S(g.component,A,P);else{if(te&128){g.suspense.unmount(A,P);return}we&&gr(g,null,m,"beforeUnmount"),te&64?g.type.remove(g,m,A,W,P):L&&!L.hasOnce&&(M!==We||V>0&&V&64)?de(L,m,A,!1,!0):(M===We&&V&384||!x&&te&16)&&de(K,m,A),P&&Ue(g)}const Xe=Ce!=null&&re==null;(Re&&($e=G&&G.onVnodeUnmounted)||we||Xe)&&wt(()=>{$e&&un($e,m,g),we&&gr(g,null,m,"unmounted"),Xe&&(g.el=null)},A)},Ue=g=>{const{type:m,el:A,anchor:P,transition:x}=g;if(m===We){ct(A,P);return}if(m===Yi){T(g);return}const M=()=>{o(A),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(g.shapeFlag&1&&x&&!x.persisted){const{leave:G,delayLeave:j}=x,K=()=>G(A,M);j?j(g.el,M,K):K()}else M()},ct=(g,m)=>{let A;for(;g!==m;)A=h(g),o(g),g=A;o(m)},S=(g,m,A)=>{const{bum:P,scope:x,job:M,subTree:G,um:j,m:K,a:L}=g;pu(K),pu(L),P&&Qi(P),x.stop(),M&&(M.flags|=8,Ze(G,g,m,A)),j&&wt(j,m),wt(()=>{g.isUnmounted=!0},m)},de=(g,m,A,P=!1,x=!1,M=0)=>{for(let G=M;G<g.length;G++)Ze(g[G],m,A,P,x)},I=g=>{if(g.shapeFlag&6)return I(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const m=h(g.anchor||g.el),A=m&&m[zh];return A?h(A):m};let D=!1;const U=(g,m,A)=>{let P;g==null?m._vnode&&(Ze(m._vnode,null,null,!0),P=m._vnode.component):p(m._vnode||null,g,m,null,null,null,A),m._vnode=g,D||(D=!0,tu(P),$h(),D=!1)},W={p,um:Ze,m:Qe,r:Ue,mt:fe,mc:F,pc:he,pbc:Q,n:I,o:n};return{render:U,hydrate:void 0,createApp:xy(U)}}function ma({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function pr({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function Yy(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function zc(n,e,t=!1){const r=n.children,o=e.children;if(ne(r)&&ne(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=xn(o[i]),a.el=s.el),!t&&a.patchFlag!==-2&&zc(s,a)),a.type===Us&&(a.patchFlag===-1&&(a=o[i]=xn(a)),a.el=s.el),a.type===Ct&&!a.el&&(a.el=s.el)}}function Jy(n){const e=n.slice(),t=[0];let r,o,i,s,a;const c=n.length;for(r=0;r<c;r++){const l=n[r];if(l!==0){if(o=t[t.length-1],n[o]<l){e[r]=o,t.push(r);continue}for(i=0,s=t.length-1;i<s;)a=i+s>>1,n[t[a]]<l?i=a+1:s=a;l<n[t[i]]&&(i>0&&(e[r]=t[i-1]),t[i]=r)}}for(i=t.length,s=t[i-1];i-- >0;)t[i]=s,s=e[s];return t}function Af(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Af(e)}function pu(n){if(n)for(let e=0;e<n.length;e++)n[e].flags|=8}function Ef(n){if(n.placeholder)return n.placeholder;const e=n.component;return e?Ef(e.subTree):null}const wf=n=>n.__isSuspense;function Xy(n,e){e&&e.pendingBranch?ne(n)?e.effects.push(...n):e.effects.push(n):ry(n)}const We=Symbol.for("v-fgt"),Us=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),Yi=Symbol.for("v-stc"),Yo=[];let Kt=null;function Ee(n=!1){Yo.push(Kt=n?null:[])}function Zy(){Yo.pop(),Kt=Yo[Yo.length-1]||null}let ai=1;function cs(n,e=!1){ai+=n,n<0&&Kt&&e&&(Kt.hasOnce=!0)}function _f(n){return n.dynamicChildren=ai>0?Kt||oo:null,Zy(),ai>0&&Kt&&Kt.push(n),n}function je(n,e,t,r,o,i){return _f(sn(n,e,t,r,o,i,!0))}function Hn(n,e,t,r,o){return _f(Ge(n,e,t,r,o,!0))}function ci(n){return n?n.__v_isVNode===!0:!1}function Er(n,e){return n.type===e.type&&n.key===e.key}const bf=({key:n})=>n??null,Ji=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?Le(n)||qe(n)||ue(n)?{i:ht,r:n,k:e,f:!!t}:n:null);function sn(n,e=null,t=null,r=0,o=null,i=n===We?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&bf(e),ref:e&&Ji(e),scopeId:Gh,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ht};return a?(Qc(c,t),i&128&&n.normalize(c)):t&&(c.shapeFlag|=Le(t)?8:16),ai>0&&!s&&Kt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Kt.push(c),c}const Ge=eC;function eC(n,e=null,t=null,r=0,o=null,i=!1){if((!n||n===of)&&(n=Ct),ci(n)){const a=dr(n,e,!0);return t&&Qc(a,t),ai>0&&!i&&Kt&&(a.shapeFlag&6?Kt[Kt.indexOf(n)]=a:Kt.push(a)),a.patchFlag=-2,a}if(lC(n)&&(n=n.__vccOpts),e){e=tC(e);let{class:a,style:c}=e;a&&!Le(a)&&(e.class=Ht(a)),Ie(c)&&(Ns(c)&&!ne(c)&&(c=ot({},c)),e.style=lr(c))}const s=Le(n)?1:wf(n)?128:Qh(n)?64:Ie(n)?4:ue(n)?2:0;return sn(n,e,t,r,o,s,i,!0)}function tC(n){return n?Ns(n)||pf(n)?ot({},n):n:null}function dr(n,e,t=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:c}=n,l=e?Jo(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:l,key:l&&bf(l),ref:e&&e.ref?t&&i?ne(i)?i.concat(Ji(e)):[i,Ji(e)]:Ji(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==We?s===-1?16:s|16:s,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:c,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&dr(n.ssContent),ssFallback:n.ssFallback&&dr(n.ssFallback),placeholder:n.placeholder,el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return c&&r&&si(u,c.clone(u)),u}function za(n=" ",e=0){return Ge(Us,null,n,e)}function XI(n,e){const t=Ge(Yi,null,n);return t.staticCount=e,t}function Tr(n="",e=!1){return e?(Ee(),Hn(Ct,null,n)):Ge(Ct,null,n)}function Cn(n){return n==null||typeof n=="boolean"?Ge(Ct):ne(n)?Ge(We,null,n.slice()):ci(n)?xn(n):Ge(Us,null,String(n))}function xn(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:dr(n)}function Qc(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(ne(e))t=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Qc(n,o()),o._c&&(o._d=!0));return}else{t=32;const o=e._;!o&&!pf(e)?e._ctx=ht:o===3&&ht&&(ht.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else ue(e)?(e={default:e,_ctx:ht},t=32):(e=String(e),r&64?(t=16,e=[za(e)]):t=8);n.children=e,n.shapeFlag|=t}function Jo(...n){const e={};for(let t=0;t<n.length;t++){const r=n[t];for(const o in r)if(o==="class")e.class!==r.class&&(e.class=Ht([e.class,r.class]));else if(o==="style")e.style=lr([e.style,r.style]);else if(bs(o)){const i=e[o],s=r[o];s&&i!==s&&!(ne(i)&&i.includes(s))?e[o]=i?[].concat(i,s):s:s==null&&i==null&&!Is(o)&&(e[o]=s)}else o!==""&&(e[o]=r[o])}return e}function un(n,e,t,r=null){on(n,e,7,[t,r])}const nC=uf();let rC=0;function oC(n,e,t){const r=n.type,o=(e?e.appContext:n.appContext)||nC,i={uid:rC++,vnode:n,type:r,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ah(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yf(r,o),emitsOptions:df(r,o),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:r.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Ly.bind(null,i),n.ce&&n.ce(i),i}let vt=null;const Hs=()=>vt||ht;let ls,Qa;{const n=Os(),e=(t,r)=>{let o;return(o=n[t])||(o=n[t]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};ls=e("__VUE_INSTANCE_SETTERS__",t=>vt=t),Qa=e("__VUE_SSR_SETTERS__",t=>li=t)}const Ei=n=>{const e=vt;return ls(n),n.scope.on(),()=>{n.scope.off(),ls(e)}},mu=()=>{vt&&vt.scope.off(),ls(null)};function If(n){return n.vnode.shapeFlag&4}let li=!1;function iC(n,e=!1,t=!1){e&&Qa(e);const{props:r,children:o}=n.vnode,i=If(n);qy(n,r,i,e),Vy(n,o,t||e);const s=i?sC(n,e):void 0;return e&&Qa(!1),s}function sC(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,by);const{setup:r}=t;if(r){$n();const o=n.setupContext=r.length>1?Rf(n):null,i=Ei(n),s=Ti(r,n,0,[n.props,o]),a=gh(s);if(jn(),i(),(a||n.sp)&&!ao(n)&&ef(n),a){if(s.then(mu,mu),e)return s.then(c=>{yu(n,c)}).catch(c=>{Ms(c,n,0)});n.asyncDep=s}else yu(n,s)}else Sf(n)}function yu(n,e,t){ue(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Ie(e)&&(n.setupState=Bh(e)),Sf(n)}function Sf(n,e,t){const r=n.type;n.render||(n.render=r.render||wn);{const o=Ei(n);$n();try{Ry(n)}finally{jn(),o()}}}const aC={get(n,e){return mt(n,"get",""),n[e]}};function Rf(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,aC),slots:n.slots,emit:n.emit,expose:e}}function Fs(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(Bh(Kc(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Wo)return Wo[t](n)},has(e,t){return t in e||t in Wo}})):n.proxy}function cC(n,e=!0){return ue(n)?n.displayName||n.name:n.name||e&&n.__name}function lC(n){return ue(n)&&"__vccOpts"in n}const Te=(n,e)=>Xm(n,e,li);function Wc(n,e,t){try{cs(-1);const r=arguments.length;return r===2?Ie(e)&&!ne(e)?ci(e)?Ge(n,null,[e]):Ge(n,e):Ge(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&ci(t)&&(t=[t]),Ge(n,e,t))}finally{cs(1)}}const uC="3.5.34";/**
|
|
* @vue/runtime-dom v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Wa;const Cu=typeof window<"u"&&window.trustedTypes;if(Cu)try{Wa=Cu.createPolicy("vue",{createHTML:n=>n})}catch{}const kf=Wa?n=>Wa.createHTML(n):n=>n,dC="http://www.w3.org/2000/svg",hC="http://www.w3.org/1998/Math/MathML",Nn=typeof document<"u"?document:null,vu=Nn&&Nn.createElement("template"),fC={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const o=e==="svg"?Nn.createElementNS(dC,n):e==="mathml"?Nn.createElementNS(hC,n):t?Nn.createElement(n,{is:t}):Nn.createElement(n);return n==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:n=>Nn.createTextNode(n),createComment:n=>Nn.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Nn.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,o,i){const s=t?t.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),t),!(o===i||!(o=o.nextSibling)););else{vu.innerHTML=kf(r==="svg"?`<svg>${n}</svg>`:r==="mathml"?`<math>${n}</math>`:n);const a=vu.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[s?s.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Wn="transition",Lo="animation",ui=Symbol("_vtc"),Of={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gC=ot({},Wh,Of),pC=n=>(n.displayName="Transition",n.props=gC,n),ZI=pC((n,{slots:e})=>Wc(fy,mC(n),e)),mr=(n,e=[])=>{ne(n)?n.forEach(t=>t(...e)):n&&n(...e)},Tu=n=>n?ne(n)?n.some(e=>e.length>1):n.length>1:!1;function mC(n){const e={};for(const $ in n)$ in Of||(e[$]=n[$]);if(n.css===!1)return e;const{name:t="v",type:r,duration:o,enterFromClass:i=`${t}-enter-from`,enterActiveClass:s=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=i,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=n,C=yC(o),p=C&&C[0],v=C&&C[1],{onBeforeEnter:E,onEnter:b,onEnterCancelled:y,onLeave:T,onLeaveCancelled:N,onBeforeAppear:z=E,onAppear:B=b,onAppearCancelled:F=y}=e,O=($,ce,fe,Be)=>{$._enterCancelled=Be,yr($,ce?u:a),yr($,ce?l:s),fe&&fe()},Q=($,ce)=>{$._isLeaving=!1,yr($,d),yr($,f),yr($,h),ce&&ce()},Z=$=>(ce,fe)=>{const Be=$?B:b,pe=()=>O(ce,$,fe);mr(Be,[ce,pe]),Au(()=>{yr(ce,$?c:i),Rn(ce,$?u:a),Tu(Be)||Eu(ce,r,p,pe)})};return ot(e,{onBeforeEnter($){mr(E,[$]),Rn($,i),Rn($,s)},onBeforeAppear($){mr(z,[$]),Rn($,c),Rn($,l)},onEnter:Z(!1),onAppear:Z(!0),onLeave($,ce){$._isLeaving=!0;const fe=()=>Q($,ce);Rn($,d),$._enterCancelled?(Rn($,h),bu($)):(bu($),Rn($,h)),Au(()=>{$._isLeaving&&(yr($,d),Rn($,f),Tu(T)||Eu($,r,v,fe))}),mr(T,[$,fe])},onEnterCancelled($){O($,!1,void 0,!0),mr(y,[$])},onAppearCancelled($){O($,!0,void 0,!0),mr(F,[$])},onLeaveCancelled($){Q($),mr(N,[$])}})}function yC(n){if(n==null)return null;if(Ie(n))return[ya(n.enter),ya(n.leave)];{const e=ya(n);return[e,e]}}function ya(n){return ym(n)}function Rn(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[ui]||(n[ui]=new Set)).add(e)}function yr(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[ui];t&&(t.delete(e),t.size||(n[ui]=void 0))}function Au(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let CC=0;function Eu(n,e,t,r){const o=n._endId=++CC,i=()=>{o===n._endId&&r()};if(t!=null)return setTimeout(i,t);const{type:s,timeout:a,propCount:c}=vC(n,e);if(!s)return r();const l=s+"end";let u=0;const d=()=>{n.removeEventListener(l,h),i()},h=f=>{f.target===n&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},a+1),n.addEventListener(l,h)}function vC(n,e){const t=window.getComputedStyle(n),r=C=>(t[C]||"").split(", "),o=r(`${Wn}Delay`),i=r(`${Wn}Duration`),s=wu(o,i),a=r(`${Lo}Delay`),c=r(`${Lo}Duration`),l=wu(a,c);let u=null,d=0,h=0;e===Wn?s>0&&(u=Wn,d=s,h=i.length):e===Lo?l>0&&(u=Lo,d=l,h=c.length):(d=Math.max(s,l),u=d>0?s>l?Wn:Lo:null,h=u?u===Wn?i.length:c.length:0);const f=u===Wn&&/\b(?:transform|all)(?:,|$)/.test(r(`${Wn}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:f}}function wu(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max(...e.map((t,r)=>_u(t)+_u(n[r])))}function _u(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function bu(n){return(n?n.ownerDocument:document).body.offsetHeight}function TC(n,e,t){const r=n[ui];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const us=Symbol("_vod"),Pf=Symbol("_vsh"),eS={name:"show",beforeMount(n,{value:e},{transition:t}){n[us]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Uo(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),Uo(n,!0),r.enter(n)):r.leave(n,()=>{Uo(n,!1)}):Uo(n,e))},beforeUnmount(n,{value:e}){Uo(n,e)}};function Uo(n,e){n.style.display=e?n[us]:"none",n[Pf]=!e}const AC=Symbol(""),EC=/(?:^|;)\s*display\s*:/;function wC(n,e,t){const r=n.style,o=Le(t);let i=!1;if(t&&!o){if(e)if(Le(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();t[a]==null&&$o(r,a,"")}else for(const s in e)t[s]==null&&$o(r,s,"");for(const s in t){s==="display"&&(i=!0);const a=t[s];a!=null?bC(n,s,!Le(e)&&e?e[s]:void 0,a)||$o(r,s,a):$o(r,s,"")}}else if(o){if(e!==t){const s=r[AC];s&&(t+=";"+s),r.cssText=t,i=EC.test(t)}}else e&&n.removeAttribute("style");us in n&&(n[us]=i?r.display:"",n[Pf]&&(r.display="none"))}const Iu=/\s*!important$/;function $o(n,e,t){if(ne(t))t.forEach(r=>$o(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=_C(n,e);Iu.test(t)?n.setProperty(Kr(r),t.replace(Iu,""),"important"):n[r]=t}}const Su=["Webkit","Moz","ms"],Ca={};function _C(n,e){const t=Ca[e];if(t)return t;let r=Rt(e);if(r!=="filter"&&r in n)return Ca[e]=r;r=ks(r);for(let o=0;o<Su.length;o++){const i=Su[o]+r;if(i in n)return Ca[e]=i}return e}function bC(n,e,t,r){return n.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&Le(r)&&t===r}const Ru="http://www.w3.org/1999/xlink";function ku(n,e,t,r,o,i=wm(e)){r&&e.startsWith("xlink:")?t==null?n.removeAttributeNS(Ru,e.slice(6,e.length)):n.setAttributeNS(Ru,e,t):t==null||i&&!Ch(t)?n.removeAttribute(e):n.setAttribute(e,i?"":jt(t)?String(t):t)}function Ou(n,e,t,r,o){if(e==="innerHTML"||e==="textContent"){t!=null&&(n[e]=e==="innerHTML"?kf(t):t);return}const i=n.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?n.getAttribute("value")||"":n.value,c=t==null?n.type==="checkbox"?"on":"":String(t);(a!==c||!("_value"in n))&&(n.value=c),t==null&&n.removeAttribute(e),n._value=t;return}let s=!1;if(t===""||t==null){const a=typeof n[e];a==="boolean"?t=Ch(t):t==null&&a==="string"?(t="",s=!0):a==="number"&&(t=0,s=!0)}try{n[e]=t}catch{}s&&n.removeAttribute(o||e)}function Wr(n,e,t,r){n.addEventListener(e,t,r)}function IC(n,e,t,r){n.removeEventListener(e,t,r)}const Pu=Symbol("_vei");function SC(n,e,t,r,o=null){const i=n[Pu]||(n[Pu]={}),s=i[e];if(r&&s)s.value=r;else{const[a,c]=RC(e);if(r){const l=i[e]=PC(r,o);Wr(n,a,l,c)}else s&&(IC(n,a,s,c),i[e]=void 0)}}const Nu=/(?:Once|Passive|Capture)$/;function RC(n){let e;if(Nu.test(n)){e={};let r;for(;r=n.match(Nu);)n=n.slice(0,n.length-r[0].length),e[r[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):Kr(n.slice(2)),e]}let va=0;const kC=Promise.resolve(),OC=()=>va||(kC.then(()=>va=0),va=Date.now());function PC(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;on(NC(r,t.value),e,5,[r])};return t.value=n,t.attached=OC(),t}function NC(n,e){if(ne(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const Mu=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,MC=(n,e,t,r,o,i)=>{const s=o==="svg";e==="class"?TC(n,r,s):e==="style"?wC(n,t,r):bs(e)?Is(e)||SC(n,e,t,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xC(n,e,r,s))?(Ou(n,e,r),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ku(n,e,r,s,i,e!=="value")):n._isVueCE&&(DC(n,e)||n._def.__asyncLoader&&(/[A-Z]/.test(e)||!Le(r)))?Ou(n,Rt(e),r,i,e):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),ku(n,e,r,s))};function xC(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&Mu(e)&&ue(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&n.tagName==="IFRAME"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=n.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Mu(e)&&Le(t)?!1:e in n}function DC(n,e){const t=n._def.props;if(!t)return!1;const r=Rt(e);return Array.isArray(t)?t.some(o=>Rt(o)===r):Object.keys(t).some(o=>Rt(o)===r)}const xu=n=>{const e=n.props["onUpdate:modelValue"]||!1;return ne(e)?t=>Qi(e,t):e};function LC(n){n.target.composing=!0}function Du(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ta=Symbol("_assign");function Lu(n,e,t){return e&&(n=n.trim()),t&&(n=Mc(n)),n}const tS={created(n,{modifiers:{lazy:e,trim:t,number:r}},o){n[Ta]=xu(o);const i=r||o.props&&o.props.type==="number";Wr(n,e?"change":"input",s=>{s.target.composing||n[Ta](Lu(n.value,t,i))}),(t||i)&&Wr(n,"change",()=>{n.value=Lu(n.value,t,i)}),e||(Wr(n,"compositionstart",LC),Wr(n,"compositionend",Du),Wr(n,"change",Du))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:o,number:i}},s){if(n[Ta]=xu(s),n.composing)return;const a=(i||n.type==="number")&&!/^0\d/.test(n.value)?Mc(n.value):n.value,c=e??"";if(a===c)return;const l=n.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===n&&n.type!=="range"&&(r&&e===t||o&&n.value.trim()===c)||(n.value=c)}},UC=["ctrl","shift","alt","meta"],HC={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>UC.some(t=>n[`${t}Key`]&&!e.includes(t))},nS=(n,e)=>{if(!n)return n;const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(o,...i)=>{for(let s=0;s<e.length;s++){const a=HC[e[s]];if(a&&a(o,e))return}return n(o,...i)})},FC=ot({patchProp:MC},fC);let Uu;function BC(){return Uu||(Uu=Qy(FC))}const KC=(...n)=>{const e=BC().createApp(...n),{mount:t}=e;return e.mount=r=>{const o=$C(r);if(!o)return;const i=e._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=t(o,!1,qC(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e};function qC(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function $C(n){return Le(n)?document.querySelector(n):n}/*!
|
|
* pinia v2.3.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Nf;const Bs=n=>Nf=n,Mf=Symbol();function Ya(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Xo;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Xo||(Xo={}));function jC(){const n=Eh(!0),e=n.run(()=>Oe({}));let t=[],r=[];const o=Kc({install(i){Bs(o),o._a=i,i.provide(Mf,o),i.config.globalProperties.$pinia=o,r.forEach(s=>t.push(s)),r=[]},use(i){return this._a?t.push(i):r.push(i),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return o}const xf=()=>{};function Hu(n,e,t,r=xf){n.push(e);const o=()=>{const i=n.indexOf(e);i>-1&&(n.splice(i,1),r())};return!t&&wh()&&bm(o),o}function Gr(n,...e){n.slice().forEach(t=>{t(...e)})}const GC=n=>n(),Fu=Symbol(),Aa=Symbol();function Ja(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,r)=>n.set(r,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t],o=n[t];Ya(o)&&Ya(r)&&n.hasOwnProperty(t)&&!qe(r)&&!Kn(r)?n[t]=Ja(o,r):n[t]=r}return n}const VC=Symbol();function zC(n){return!Ya(n)||!n.hasOwnProperty(VC)}const{assign:Xn}=Object;function QC(n){return!!(qe(n)&&n.effect)}function WC(n,e,t,r){const{state:o,actions:i,getters:s}=e,a=t.state.value[n];let c;function l(){a||(t.state.value[n]=o?o():{});const u=Qm(t.state.value[n]);return Xn(u,i,Object.keys(s||{}).reduce((d,h)=>(d[h]=Kc(Te(()=>{Bs(t);const f=t._s.get(n);return s[h].call(f,f)})),d),{}))}return c=Df(n,l,e,t,r,!0),c}function Df(n,e,t={},r,o,i){let s;const a=Xn({actions:{}},t),c={deep:!0};let l,u,d=[],h=[],f;const C=r.state.value[n];!i&&!C&&(r.state.value[n]={});let p;function v(F){let O;l=u=!1,typeof F=="function"?(F(r.state.value[n]),O={type:Xo.patchFunction,storeId:n,events:f}):(Ja(r.state.value[n],F),O={type:Xo.patchObject,payload:F,storeId:n,events:f});const Q=p=Symbol();Ai().then(()=>{p===Q&&(l=!0)}),u=!0,Gr(d,O,r.state.value[n])}const E=i?function(){const{state:O}=t,Q=O?O():{};this.$patch(Z=>{Xn(Z,Q)})}:xf;function b(){s.stop(),d=[],h=[],r._s.delete(n)}const y=(F,O="")=>{if(Fu in F)return F[Aa]=O,F;const Q=function(){Bs(r);const Z=Array.from(arguments),$=[],ce=[];function fe(ie){$.push(ie)}function Be(ie){ce.push(ie)}Gr(h,{args:Z,name:Q[Aa],store:N,after:fe,onError:Be});let pe;try{pe=F.apply(this&&this.$id===n?this:N,Z)}catch(ie){throw Gr(ce,ie),ie}return pe instanceof Promise?pe.then(ie=>(Gr($,ie),ie)).catch(ie=>(Gr(ce,ie),Promise.reject(ie))):(Gr($,pe),pe)};return Q[Fu]=!0,Q[Aa]=O,Q},T={_p:r,$id:n,$onAction:Hu.bind(null,h),$patch:v,$reset:E,$subscribe(F,O={}){const Q=Hu(d,F,O.detached,()=>Z()),Z=s.run(()=>Mr(()=>r.state.value[n],$=>{(O.flush==="sync"?u:l)&&F({storeId:n,type:Xo.direct,events:f},$)},Xn({},c,O)));return Q},$dispose:b},N=vi(T);r._s.set(n,N);const B=(r._a&&r._a.runWithContext||GC)(()=>r._e.run(()=>(s=Eh()).run(()=>e({action:y}))));for(const F in B){const O=B[F];if(qe(O)&&!QC(O)||Kn(O))i||(C&&zC(O)&&(qe(O)?O.value=C[F]:Ja(O,C[F])),r.state.value[n][F]=O);else if(typeof O=="function"){const Q=y(O,F);B[F]=Q,a.actions[F]=O}}return Xn(N,B),Xn(Ae(N),B),Object.defineProperty(N,"$state",{get:()=>r.state.value[n],set:F=>{v(O=>{Xn(O,F)})}}),r._p.forEach(F=>{Xn(N,s.run(()=>F({store:N,app:r._a,pinia:r,options:a})))}),C&&i&&t.hydrate&&t.hydrate(N.$state,C),l=!0,u=!0,N}/*! #__NO_SIDE_EFFECTS__ */function YC(n,e,t){let r,o;const i=typeof e=="function";typeof n=="string"?(r=n,o=i?t:e):(o=n,r=n.id);function s(a,c){const l=oy();return a=a||(l?Yt(Mf,null):null),a&&Bs(a),a=Nf,a._s.has(r)||(i?Df(r,e,o,a):WC(r,o,a)),a._s.get(r)}return s.$id=r,s}var Ks=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ir,rr,uo,rh,JC=(rh=class extends Ks{constructor(){super();ye(this,Ir);ye(this,rr);ye(this,uo);se(this,uo,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){k(this,rr)||this.setEventListener(k(this,uo))}onUnsubscribe(){var e;this.hasListeners()||((e=k(this,rr))==null||e.call(this),se(this,rr,void 0))}setEventListener(e){var t;se(this,uo,e),(t=k(this,rr))==null||t.call(this),se(this,rr,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){k(this,Ir)!==e&&(se(this,Ir,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof k(this,Ir)=="boolean"?k(this,Ir):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ir=new WeakMap,rr=new WeakMap,uo=new WeakMap,rh),Lf=new JC,XC={setTimeout:(n,e)=>setTimeout(n,e),clearTimeout:n=>clearTimeout(n),setInterval:(n,e)=>setInterval(n,e),clearInterval:n=>clearInterval(n)},or,Oc,oh,ZC=(oh=class{constructor(){ye(this,or,XC);ye(this,Oc,!1)}setTimeoutProvider(n){se(this,or,n)}setTimeout(n,e){return k(this,or).setTimeout(n,e)}clearTimeout(n){k(this,or).clearTimeout(n)}setInterval(n,e){return k(this,or).setInterval(n,e)}clearInterval(n){k(this,or).clearInterval(n)}},or=new WeakMap,Oc=new WeakMap,oh),Xa=new ZC;function ev(n){setTimeout(n,0)}var Uf=typeof window>"u"||"Deno"in globalThis;function Jt(){}function tv(n,e){return typeof n=="function"?n(e):n}function nv(n){return typeof n=="number"&&n>=0&&n!==1/0}function rv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Za(n,e){return typeof n=="function"?n(e):n}function ov(n,e){return typeof n=="function"?n(e):n}function Bu(n,e){const{type:t="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=n;if(s){if(r){if(e.queryHash!==Yc(s,e.options))return!1}else if(!hi(e.queryKey,s))return!1}if(t!=="all"){const c=e.isActive();if(t==="active"&&!c||t==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||o&&o!==e.state.fetchStatus||i&&!i(e))}function Ku(n,e){const{exact:t,status:r,predicate:o,mutationKey:i}=n;if(i){if(!e.options.mutationKey)return!1;if(t){if(di(e.options.mutationKey)!==di(i))return!1}else if(!hi(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function Yc(n,e){return((e==null?void 0:e.queryKeyHashFn)||di)(n)}function di(n){return JSON.stringify(n,(e,t)=>ec(t)?Object.keys(t).sort().reduce((r,o)=>(r[o]=t[o],r),{}):t)}function hi(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>hi(n[t],e[t])):!1}var iv=Object.prototype.hasOwnProperty;function Hf(n,e,t=0){if(n===e)return n;if(t>500)return e;const r=qu(n)&&qu(e);if(!r&&!(ec(n)&&ec(e)))return e;const i=(r?n:Object.keys(n)).length,s=r?e:Object.keys(e),a=s.length,c=r?new Array(a):{};let l=0;for(let u=0;u<a;u++){const d=r?u:s[u],h=n[d],f=e[d];if(h===f){c[d]=h,(r?u<i:iv.call(n,d))&&l++;continue}if(h===null||f===null||typeof h!="object"||typeof f!="object"){c[d]=f;continue}const C=Hf(h,f,t+1);c[d]=C,C===h&&l++}return i===a&&l===i?n:c}function qu(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ec(n){if(!$u(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!$u(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function $u(n){return Object.prototype.toString.call(n)==="[object Object]"}function sv(n){return new Promise(e=>{Xa.setTimeout(e,n)})}function av(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Hf(n,e):e}function cv(n,e,t=0){const r=[...n,e];return t&&r.length>t?r.slice(1):r}function lv(n,e,t=0){const r=[e,...n];return t&&r.length>t?r.slice(0,-1):r}var Jc=Symbol();function Ff(n,e){return!n.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!n.queryFn||n.queryFn===Jc?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function uv(n,e,t){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=e()),r||(r=!0,o.aborted?t():o.addEventListener("abort",t,{once:!0})),o)}),n}var Bf=(()=>{let n=()=>Uf;return{isServer(){return n()},setIsServer(e){n=e}}})();function dv(){let n,e;const t=new Promise((o,i)=>{n=o,e=i});t.status="pending",t.catch(()=>{});function r(o){Object.assign(t,o),delete t.resolve,delete t.reject}return t.resolve=o=>{r({status:"fulfilled",value:o}),n(o)},t.reject=o=>{r({status:"rejected",reason:o}),e(o)},t}var hv=ev;function fv(){let n=[],e=0,t=a=>{a()},r=a=>{a()},o=hv;const i=a=>{e?n.push(a):o(()=>{t(a)})},s=()=>{const a=n;n=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{t(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{t=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var St=fv(),ho,ir,fo,ih,gv=(ih=class extends Ks{constructor(){super();ye(this,ho,!0);ye(this,ir);ye(this,fo);se(this,fo,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,ir)||this.setEventListener(k(this,fo))}onUnsubscribe(){var e;this.hasListeners()||((e=k(this,ir))==null||e.call(this),se(this,ir,void 0))}setEventListener(e){var t;se(this,fo,e),(t=k(this,ir))==null||t.call(this),se(this,ir,e(this.setOnline.bind(this)))}setOnline(e){k(this,ho)!==e&&(se(this,ho,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return k(this,ho)}},ho=new WeakMap,ir=new WeakMap,fo=new WeakMap,ih),ds=new gv;function pv(n){return Math.min(1e3*2**n,3e4)}function Kf(n){return(n??"online")==="online"?ds.isOnline():!0}var tc=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function qf(n){let e=!1,t=0,r;const o=dv(),i=()=>o.status!=="pending",s=p=>{var v;if(!i()){const E=new tc(p);h(E),(v=n.onCancel)==null||v.call(n,E)}},a=()=>{e=!0},c=()=>{e=!1},l=()=>Lf.isFocused()&&(n.networkMode==="always"||ds.isOnline())&&n.canRun(),u=()=>Kf(n.networkMode)&&n.canRun(),d=p=>{i()||(r==null||r(),o.resolve(p))},h=p=>{i()||(r==null||r(),o.reject(p))},f=()=>new Promise(p=>{var v;r=E=>{(i()||l())&&p(E)},(v=n.onPause)==null||v.call(n)}).then(()=>{var p;r=void 0,i()||(p=n.onContinue)==null||p.call(n)}),C=()=>{if(i())return;let p;const v=t===0?n.initialPromise:void 0;try{p=v??n.fn()}catch(E){p=Promise.reject(E)}Promise.resolve(p).then(d).catch(E=>{var z;if(i())return;const b=n.retry??(Bf.isServer()?0:3),y=n.retryDelay??pv,T=typeof y=="function"?y(t,E):y,N=b===!0||typeof b=="number"&&t<b||typeof b=="function"&&b(t,E);if(e||!N){h(E);return}t++,(z=n.onFail)==null||z.call(n,t,E),sv(T).then(()=>l()?void 0:f()).then(()=>{e?h(E):C()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?C():f().then(C),o)}}var Sr,sh,$f=(sh=class{constructor(){ye(this,Sr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nv(this.gcTime)&&se(this,Sr,Xa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Bf.isServer()?1/0:5*60*1e3))}clearGcTimeout(){k(this,Sr)!==void 0&&(Xa.clearTimeout(k(this,Sr)),se(this,Sr,void 0))}},Sr=new WeakMap,sh);function mv(n){return{onFetch:(e,t)=>{var u,d,h,f,C;const r=e.options,o=(h=(d=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=e.state.data)==null?void 0:f.pages)||[],s=((C=e.state.data)==null?void 0:C.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=y=>{uv(y,()=>e.signal,()=>p=!0)},E=Ff(e.options,e.fetchOptions),b=async(y,T,N)=>{if(p)return Promise.reject(e.signal.reason);if(T==null&&y.pages.length)return Promise.resolve(y);const B=(()=>{const Z={client:e.client,queryKey:e.queryKey,pageParam:T,direction:N?"backward":"forward",meta:e.options.meta};return v(Z),Z})(),F=await E(B),{maxPages:O}=e.options,Q=N?lv:cv;return{pages:Q(y.pages,F,O),pageParams:Q(y.pageParams,T,O)}};if(o&&i.length){const y=o==="backward",T=y?yv:ju,N={pages:i,pageParams:s},z=T(r,N);a=await b(N,z,y)}else{const y=n??i.length;do{const T=c===0?s[0]??r.initialPageParam:ju(r,a);if(c>0&&T==null)break;a=await b(a,T),c++}while(c<y)}return a};e.options.persister?e.fetchFn=()=>{var p,v;return(v=(p=e.options).persister)==null?void 0:v.call(p,l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=l}}}function ju(n,{pages:e,pageParams:t}){const r=e.length-1;return e.length>0?n.getNextPageParam(e[r],e,t[r],t):void 0}function yv(n,{pages:e,pageParams:t}){var r;return e.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,e[0],e,t[0],t):void 0}var go,Rr,po,Qt,kr,st,pi,Or,Ft,jf,Pn,ah,Cv=(ah=class extends $f{constructor(e){super();ye(this,Ft);ye(this,go);ye(this,Rr);ye(this,po);ye(this,Qt);ye(this,kr);ye(this,st);ye(this,pi);ye(this,Or);se(this,Or,!1),se(this,pi,e.defaultOptions),this.setOptions(e.options),this.observers=[],se(this,kr,e.client),se(this,Qt,k(this,kr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,se(this,Rr,Vu(this.options)),this.state=e.state??k(this,Rr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return k(this,go)}get promise(){var e;return(e=k(this,st))==null?void 0:e.promise}setOptions(e){if(this.options={...k(this,pi),...e},e!=null&&e._type&&se(this,go,e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Vu(this.options);t.data!==void 0&&(this.setState(Gu(t.data,t.dataUpdatedAt)),se(this,Rr,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Qt).remove(this)}setData(e,t){const r=av(this.state.data,e,this.options);return lt(this,Ft,Pn).call(this,{data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e){lt(this,Ft,Pn).call(this,{type:"setState",state:e})}cancel(e){var r,o;const t=(r=k(this,st))==null?void 0:r.promise;return(o=k(this,st))==null||o.cancel(e),t?t.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return k(this,Rr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ov(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Jc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Za(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!rv(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,st))==null||t.continue()}onOnline(){var t;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,st))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),k(this,Qt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(k(this,st)&&(k(this,Or)||lt(this,Ft,jf).call(this)?k(this,st).cancel({revert:!0}):k(this,st).cancelRetry()),this.scheduleGc()),k(this,Qt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,Ft,Pn).call(this,{type:"invalidate"})}async fetch(e,t){var l,u,d,h,f,C,p,v,E,b,y;if(this.state.fetchStatus!=="idle"&&((l=k(this,st))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(k(this,st))return k(this,st).continueRetry(),k(this,st).promise}if(e&&this.setOptions(e),!this.options.queryFn){const T=this.observers.find(N=>N.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(se(this,Or,!0),r.signal)})},i=()=>{const T=Ff(this.options,t),z=(()=>{const B={client:k(this,kr),queryKey:this.queryKey,meta:this.meta};return o(B),B})();return se(this,Or,!1),this.options.persister?this.options.persister(T,z,this):T(z)},a=(()=>{const T={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:k(this,kr),state:this.state,fetchFn:i};return o(T),T})(),c=k(this,go)==="infinite"?mv(this.options.pages):this.options.behavior;c==null||c.onFetch(a,this),se(this,po,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&<(this,Ft,Pn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),se(this,st,qf({initialPromise:t==null?void 0:t.initialPromise,fn:a.fetchFn,onCancel:T=>{T instanceof tc&&T.revert&&this.setState({...k(this,po),fetchStatus:"idle"}),r.abort()},onFail:(T,N)=>{lt(this,Ft,Pn).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{lt(this,Ft,Pn).call(this,{type:"pause"})},onContinue:()=>{lt(this,Ft,Pn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const T=await k(this,st).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(f=(h=k(this,Qt).config).onSuccess)==null||f.call(h,T,this),(p=(C=k(this,Qt).config).onSettled)==null||p.call(C,T,this.state.error,this),T}catch(T){if(T instanceof tc){if(T.silent)return k(this,st).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw lt(this,Ft,Pn).call(this,{type:"error",error:T}),(E=(v=k(this,Qt).config).onError)==null||E.call(v,T,this),(y=(b=k(this,Qt).config).onSettled)==null||y.call(b,this.state.data,T,this),T}finally{this.scheduleGc()}}},go=new WeakMap,Rr=new WeakMap,po=new WeakMap,Qt=new WeakMap,kr=new WeakMap,st=new WeakMap,pi=new WeakMap,Or=new WeakMap,Ft=new WeakSet,jf=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Pn=function(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vv(r.data,this.options),fetchMeta:e.meta??null};case"success":const o={...r,...Gu(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return se(this,po,e.manual?o:void 0),o;case"error":const i=e.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),St.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,Qt).notify({query:this,type:"updated",action:e})})},ah);function vv(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kf(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Gu(n,e){return{data:n,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vu(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,r=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var mi,gn,gt,Pr,pn,Zn,ch,Tv=(ch=class extends $f{constructor(e){super();ye(this,pn);ye(this,mi);ye(this,gn);ye(this,gt);ye(this,Pr);se(this,mi,e.client),this.mutationId=e.mutationId,se(this,gt,e.mutationCache),se(this,gn,[]),this.state=e.state||Av(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){k(this,gn).includes(e)||(k(this,gn).push(e),this.clearGcTimeout(),k(this,gt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){se(this,gn,k(this,gn).filter(t=>t!==e)),this.scheduleGc(),k(this,gt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){k(this,gn).length||(this.state.status==="pending"?this.scheduleGc():k(this,gt).remove(this))}continue(){var e;return((e=k(this,Pr))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var s,a,c,l,u,d,h,f,C,p,v,E,b,y,T,N,z,B;const t=()=>{lt(this,pn,Zn).call(this,{type:"continue"})},r={client:k(this,mi),meta:this.options.meta,mutationKey:this.options.mutationKey};se(this,Pr,qf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(F,O)=>{lt(this,pn,Zn).call(this,{type:"failed",failureCount:F,error:O})},onPause:()=>{lt(this,pn,Zn).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,gt).canRun(this)}));const o=this.state.status==="pending",i=!k(this,Pr).canStart();try{if(o)t();else{lt(this,pn,Zn).call(this,{type:"pending",variables:e,isPaused:i}),k(this,gt).config.onMutate&&await k(this,gt).config.onMutate(e,this,r);const O=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,e,r));O!==this.state.context&<(this,pn,Zn).call(this,{type:"pending",context:O,variables:e,isPaused:i})}const F=await k(this,Pr).start();return await((l=(c=k(this,gt).config).onSuccess)==null?void 0:l.call(c,F,e,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,F,e,this.state.context,r)),await((f=(h=k(this,gt).config).onSettled)==null?void 0:f.call(h,F,null,this.state.variables,this.state.context,this,r)),await((p=(C=this.options).onSettled)==null?void 0:p.call(C,F,null,e,this.state.context,r)),lt(this,pn,Zn).call(this,{type:"success",data:F}),F}catch(F){try{await((E=(v=k(this,gt).config).onError)==null?void 0:E.call(v,F,e,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((y=(b=this.options).onError)==null?void 0:y.call(b,F,e,this.state.context,r))}catch(O){Promise.reject(O)}try{await((N=(T=k(this,gt).config).onSettled)==null?void 0:N.call(T,void 0,F,this.state.variables,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((B=(z=this.options).onSettled)==null?void 0:B.call(z,void 0,F,e,this.state.context,r))}catch(O){Promise.reject(O)}throw lt(this,pn,Zn).call(this,{type:"error",error:F}),F}finally{k(this,gt).runNext(this)}}},mi=new WeakMap,gn=new WeakMap,gt=new WeakMap,Pr=new WeakMap,pn=new WeakSet,Zn=function(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),St.batch(()=>{k(this,gn).forEach(r=>{r.onMutationUpdate(e)}),k(this,gt).notify({mutation:this,type:"updated",action:e})})},ch);function Av(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Dn,Xt,yi,lh,Gf=(lh=class extends Ks{constructor(t={}){super();ye(this,Dn);ye(this,Xt);ye(this,yi);this.config=t,se(this,Dn,new Set),se(this,Xt,new Map),se(this,yi,0)}build(t,r,o){const i=new Tv({client:t,mutationCache:this,mutationId:++Ni(this,yi)._,options:t.defaultMutationOptions(r),state:o});return this.add(i),i}add(t){k(this,Dn).add(t);const r=Ui(t);if(typeof r=="string"){const o=k(this,Xt).get(r);o?o.push(t):k(this,Xt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Dn).delete(t)){const r=Ui(t);if(typeof r=="string"){const o=k(this,Xt).get(r);if(o)if(o.length>1){const i=o.indexOf(t);i!==-1&&o.splice(i,1)}else o[0]===t&&k(this,Xt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Ui(t);if(typeof r=="string"){const o=k(this,Xt).get(r),i=o==null?void 0:o.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var o;const r=Ui(t);if(typeof r=="string"){const i=(o=k(this,Xt).get(r))==null?void 0:o.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{k(this,Dn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Dn).clear(),k(this,Xt).clear()})}getAll(){return Array.from(k(this,Dn))}find(t){const r={exact:!0,...t};return this.getAll().find(o=>Ku(r,o))}findAll(t={}){return this.getAll().filter(r=>Ku(t,r))}notify(t){St.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return St.batch(()=>Promise.all(t.map(r=>r.continue().catch(Jt))))}},Dn=new WeakMap,Xt=new WeakMap,yi=new WeakMap,lh);function Ui(n){var e;return(e=n.options.scope)==null?void 0:e.id}var mn,uh,Vf=(uh=class extends Ks{constructor(t={}){super();ye(this,mn);this.config=t,se(this,mn,new Map)}build(t,r,o){const i=r.queryKey,s=r.queryHash??Yc(i,r);let a=this.get(s);return a||(a=new Cv({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:o,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){k(this,mn).has(t.queryHash)||(k(this,mn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=k(this,mn).get(t.queryHash);r&&(t.destroy(),r===t&&k(this,mn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,mn).get(t)}getAll(){return[...k(this,mn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(o=>Bu(r,o))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(o=>Bu(t,o)):r}notify(t){St.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mn=new WeakMap,uh),Ve,sr,ar,mo,yo,cr,Co,vo,dh,Ev=(dh=class{constructor(e={}){ye(this,Ve);ye(this,sr);ye(this,ar);ye(this,mo);ye(this,yo);ye(this,cr);ye(this,Co);ye(this,vo);se(this,Ve,e.queryCache||new Vf),se(this,sr,e.mutationCache||new Gf),se(this,ar,e.defaultOptions||{}),se(this,mo,new Map),se(this,yo,new Map),se(this,cr,0)}mount(){Ni(this,cr)._++,k(this,cr)===1&&(se(this,Co,Lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ve).onFocus())})),se(this,vo,ds.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ve).onOnline())})))}unmount(){var e,t;Ni(this,cr)._--,k(this,cr)===0&&((e=k(this,Co))==null||e.call(this),se(this,Co,void 0),(t=k(this,vo))==null||t.call(this),se(this,vo,void 0))}isFetching(e){return k(this,Ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,sr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Ve).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=k(this,Ve).build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Za(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return k(this,Ve).findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),i=k(this,Ve).get(o.queryHash),s=i==null?void 0:i.state.data,a=tv(t,s);if(a!==void 0)return k(this,Ve).build(this,o).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return St.batch(()=>k(this,Ve).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Ve).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=k(this,Ve);St.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=k(this,Ve);return St.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=St.batch(()=>k(this,Ve).findAll(e).map(i=>i.cancel(r)));return Promise.all(o).then(Jt).catch(Jt)}invalidateQueries(e,t={}){return St.batch(()=>(k(this,Ve).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=St.batch(()=>k(this,Ve).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(Jt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(o).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=k(this,Ve).build(this,t);return r.isStaleByTime(Za(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ds.isOnline()?k(this,sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ve)}getMutationCache(){return k(this,sr)}getDefaultOptions(){return k(this,ar)}setDefaultOptions(e){se(this,ar,e)}setQueryDefaults(e,t){k(this,mo).set(di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,mo).values()],r={};return t.forEach(o=>{hi(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){k(this,yo).set(di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,yo).values()],r={};return t.forEach(o=>{hi(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,ar).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Jc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,ar).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ve).clear(),k(this,sr).clear()}},Ve=new WeakMap,sr=new WeakMap,ar=new WeakMap,mo=new WeakMap,yo=new WeakMap,cr=new WeakMap,Co=new WeakMap,vo=new WeakMap,dh),wv="VUE_QUERY_CLIENT";function _v(n){const e=n?`:${n}`:"";return`${wv}${e}`}function nc(n,e,t="",r=0){if(e){const o=e(n,t,r);if(o===void 0&&qe(n)||o!==void 0)return o}if(Array.isArray(n))return n.map((o,i)=>nc(o,e,String(i),r+1));if(typeof n=="object"&&Iv(n)){const o=Object.entries(n).map(([i,s])=>[i,nc(s,e,i,r+1)]);return Object.fromEntries(o)}return n}function bv(n,e){return nc(n,e)}function me(n,e=!1){return bv(n,(t,r,o)=>{if(o===1&&r==="queryKey")return me(t,!0);if(e&&Sv(t))return me(t(),e);if(qe(t))return me(dt(t),e)})}function Iv(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;const e=Object.getPrototypeOf(n);return e===null||e===Object.prototype}function Sv(n){return typeof n=="function"}var Rv=class extends Vf{find(n){return super.find(me(n))}findAll(n={}){return super.findAll(me(n))}},kv=class extends Gf{find(n){return super.find(me(n))}findAll(n={}){return super.findAll(me(n))}},Ov=class extends Ev{constructor(n={}){const e={defaultOptions:n.defaultOptions,queryCache:n.queryCache||new Rv,mutationCache:n.mutationCache||new kv};super(e),this.isRestoring=Oe(!1)}isFetching(n={}){return super.isFetching(me(n))}isMutating(n={}){return super.isMutating(me(n))}getQueryData(n){return super.getQueryData(me(n))}ensureQueryData(n){return super.ensureQueryData(me(n))}getQueriesData(n){return super.getQueriesData(me(n))}setQueryData(n,e,t={}){return super.setQueryData(me(n),e,me(t))}setQueriesData(n,e,t={}){return super.setQueriesData(me(n),e,me(t))}getQueryState(n){return super.getQueryState(me(n))}removeQueries(n={}){return super.removeQueries(me(n))}resetQueries(n={},e={}){return super.resetQueries(me(n),me(e))}cancelQueries(n={},e={}){return super.cancelQueries(me(n),me(e))}invalidateQueries(n={},e={}){const t=me(n),r=me(e);if(super.invalidateQueries({...t,refetchType:"none"},r),t.refetchType==="none")return Promise.resolve();const o={...t,type:t.refetchType??t.type??"active"};return Ai().then(()=>super.refetchQueries(o,r))}refetchQueries(n={},e={}){return super.refetchQueries(me(n),me(e))}fetchQuery(n){return super.fetchQuery(me(n))}prefetchQuery(n){return super.prefetchQuery(me(n))}fetchInfiniteQuery(n){return super.fetchInfiniteQuery(me(n))}prefetchInfiniteQuery(n){return super.prefetchInfiniteQuery(me(n))}setDefaultOptions(n){super.setDefaultOptions(me(n))}setQueryDefaults(n,e){super.setQueryDefaults(me(n),me(e))}getQueryDefaults(n){return super.getQueryDefaults(me(n))}setMutationDefaults(n,e){super.setMutationDefaults(me(n),me(e))}getMutationDefaults(n){return super.getMutationDefaults(me(n))}},Pv={install:(n,e={})=>{const t=_v(e.queryClientKey);let r;if("queryClient"in e&&e.queryClient)r=e.queryClient;else{const s="queryClientConfig"in e?e.queryClientConfig:void 0;r=new Ov(s)}Uf||r.mount();let o=()=>{};if(e.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[s,a]=e.clientPersister(r);o=s,a.then(()=>{var c;r.isRestoring&&(r.isRestoring.value=!1),(c=e.clientPersisterOnSuccess)==null||c.call(e,r)})}const i=()=>{r.unmount(),o()};if(n.onUnmount)n.onUnmount(i);else{const s=n.unmount;n.unmount=function(){i(),s()}}n.provide(t,r)}},Nv=Object.defineProperty,Mv=(n,e,t)=>e in n?Nv(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e,t)=>Mv(n,typeof e!="symbol"?e+"":e,t);function xv(n){if(typeof document>"u")return;function e(){let t=document.head||document.getElementsByTagName("head")[0];if(!t)return;let r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}xv(":where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let rc=0;class Dv{constructor(){At(this,"subscribers"),At(this,"toasts"),At(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),At(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),At(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),At(this,"create",e=>{var t;const{message:r,...o}=e,i=typeof e.id=="number"||e.id&&((t=e.id)==null?void 0:t.length)>0?e.id:rc++,s=this.toasts.find(c=>c.id===i),a=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...e,id:i,title:r}),{...c,...e,id:i,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:i}),i}),At(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),At(this,"message",(e,t)=>this.create({...t,message:e,type:"default"})),At(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),At(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),At(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),At(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),At(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),At(this,"promise",(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));const o=e instanceof Promise?e:e();let i=r!==void 0,s;const a=o.then(async l=>{if(s=["resolve",l],Uv(l)&&!l.ok){i=!1;const u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){i=!1;const u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;const u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),c=()=>new Promise((l,u)=>a.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})}),At(this,"custom",(e,t)=>{const r=(t==null?void 0:t.id)||rc++;return this.publish({component:e,id:r,...t}),r}),this.subscribers=[],this.toasts=[]}}const Ut=new Dv;function Lv(n,e){const t=(e==null?void 0:e.id)||rc++;return Ut.create({message:n,id:t,type:"default",...e}),t}const Uv=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",Hv=Lv,Fv=()=>Ut.toasts,sS=Object.assign(Hv,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading},{getHistory:Fv});function Hi(n){return n.label!==void 0}function Bv(){const n=Oe(!1);return eo(()=>{const e=()=>{n.value=document.hidden};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),{isDocumentHidden:n}}const Kv=["aria-live","data-rich-colors","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],qv=["aria-label","data-disabled"],$v=4e3,jv=20,Gv=200,Vv=ko({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function},defaultRichColors:{type:Boolean}},emits:["update:heights","removeToast"],setup(n,{emit:e}){const t=n,r=e,o=Oe(!1),i=Oe(!1),s=Oe(!1),a=Oe(!1),c=Oe(!1),l=Oe(0),u=Oe(0),d=Oe(t.toast.duration||t.duration||$v),h=Oe(null),f=Oe(null),C=Te(()=>t.index===0),p=Te(()=>t.index+1<=t.visibleToasts),v=Te(()=>t.toast.type),E=Te(()=>t.toast.dismissible!==!1),b=Te(()=>t.toast.class||""),y=Te(()=>t.descriptionClass||""),T=t.toast.style||{},N=Te(()=>t.heights.findIndex(S=>S.toastId===t.toast.id)||0),z=Te(()=>t.toast.closeButton??t.closeButton),B=Oe(0),F=Oe(0),O=Oe(null),Q=Te(()=>t.position.split("-")),Z=Te(()=>Q.value[0]),$=Te(()=>Q.value[1]),ce=Te(()=>typeof t.toast.title!="string"),fe=Te(()=>typeof t.toast.description!="string"),Be=Te(()=>t.heights.reduce((S,de,I)=>I>=N.value?S:S+de.height,0)),pe=Bv(),ie=Te(()=>t.toast.invert||t.invert),he=Te(()=>v.value==="loading"),Se=Te(()=>N.value*t.gap+Be.value||0);ss(()=>{if(!o.value)return;const S=f.value,de=S==null?void 0:S.style.height;S.style.height="auto";const I=S.getBoundingClientRect().height;S.style.height=de,u.value=I;let D;t.heights.find(U=>U.toastId===t.toast.id)?D=t.heights.map(U=>U.toastId===t.toast.id?{...U,height:I}:U):D=[{toastId:t.toast.id,height:I,position:t.toast.position},...t.heights],r("update:heights",D)});function Pe(){i.value=!0,l.value=Se.value;const S=t.heights.filter(de=>de.toastId!==t.toast.id);r("update:heights",S),setTimeout(()=>{r("removeToast",t.toast)},Gv)}function Qe(){var S,de;if(he.value||!E.value)return{};Pe(),(de=(S=t.toast).onDismiss)==null||de.call(S,t.toast)}function Ze(S){he.value||!E.value||(h.value=new Date,l.value=Se.value,S.target.setPointerCapture(S.pointerId),S.target.tagName!=="BUTTON"&&(s.value=!0,O.value={x:S.clientX,y:S.clientY}))}function Ue(){var S,de,I,D,U;if(a.value||!E)return;O.value=null;const W=Number(((S=f.value)==null?void 0:S.style.getPropertyValue("--swipe-amount").replace("px",""))||0),le=new Date().getTime()-((de=h.value)==null?void 0:de.getTime()),g=Math.abs(W)/le;if(Math.abs(W)>=jv||g>.11){l.value=Se.value,(D=(I=t.toast).onDismiss)==null||D.call(I,t.toast),Pe(),a.value=!0,c.value=!1;return}(U=f.value)==null||U.style.setProperty("--swipe-amount","0px"),s.value=!1}function ct(S){var de,I;if(!O.value||!E.value)return;const D=S.clientY-O.value.y,U=((de=window.getSelection())==null?void 0:de.toString().length)>0,W=Z.value==="top"?Math.min(0,D):Math.max(0,D);Math.abs(W)>0&&(c.value=!0),!U&&((I=f.value)==null||I.style.setProperty("--swipe-amount",`${W}px`))}return eo(S=>{if(t.toast.promise&&v.value==="loading"||t.toast.duration===1/0||t.toast.type==="loading")return;let de;const I=()=>{if(F.value<B.value){const U=new Date().getTime()-B.value;d.value=d.value-U}F.value=new Date().getTime()},D=()=>{d.value!==1/0&&(B.value=new Date().getTime(),de=setTimeout(()=>{var U,W;(W=(U=t.toast).onAutoClose)==null||W.call(U,t.toast),Pe()},d.value))};t.expanded||t.interacting||t.pauseWhenPageIsHidden&&pe?I():D(),S(()=>{clearTimeout(de)})}),Mr(()=>t.toast.delete,()=>{t.toast.delete&&Pe()},{deep:!0}),ss(()=>{if(o.value=!0,f.value){const S=f.value.getBoundingClientRect().height;u.value=S;const de=[{toastId:t.toast.id,height:S,position:t.toast.position},...t.heights];r("update:heights",de)}}),jc(()=>{if(f.value){const S=t.heights.filter(de=>de.toastId!==t.toast.id);r("update:heights",S)}}),(S,de)=>{var I,D,U,W,le,g,m,A,P,x,M,G,j,K,L,te,V,X,re,Ce,we,Re,$e,Xe,Nt,Mt,zn;return Ee(),je("li",{ref_key:"toastRef",ref:f,"aria-live":S.toast.important?"assertive":"polite","aria-atomic":"true",role:"status",tabindex:"0","data-sonner-toast":"true",class:Ht(S.cn(t.class,b.value,(I=S.classes)==null?void 0:I.toast,(D=S.toast.classes)==null?void 0:D.toast,(U=S.classes)==null?void 0:U[v.value],(le=(W=S.toast)==null?void 0:W.classes)==null?void 0:le[v.value])),"data-rich-colors":S.toast.richColors??S.defaultRichColors,"data-styled":!(S.toast.component||(g=S.toast)!=null&&g.unstyled||S.unstyled),"data-mounted":o.value,"data-promise":!!S.toast.promise,"data-removed":i.value,"data-visible":p.value,"data-y-position":Z.value,"data-x-position":$.value,"data-index":S.index,"data-front":C.value,"data-swiping":s.value,"data-dismissible":E.value,"data-type":v.value,"data-invert":ie.value,"data-swipe-out":a.value,"data-expanded":!!(S.expanded||S.expandByDefault&&o.value),style:lr({"--index":S.index,"--toasts-before":S.index,"--z-index":S.toasts.length-S.index,"--offset":`${i.value?l.value:Se.value}px`,"--initial-height":S.expandByDefault?"auto":`${u.value}px`,...S.style,...dt(T)}),onPointerdown:Ze,onPointerup:Ue,onPointermove:ct},[z.value&&!S.toast.component?(Ee(),je("button",{key:0,"aria-label":S.closeButtonAriaLabel||"Close toast","data-disabled":he.value,"data-close-button":"true",class:Ht(S.cn((m=S.classes)==null?void 0:m.closeButton,(P=(A=S.toast)==null?void 0:A.classes)==null?void 0:P.closeButton)),onClick:Qe},[(x=S.icons)!=null&&x.close?(Ee(),Hn(Do((M=S.icons)==null?void 0:M.close),{key:0})):Wt(S.$slots,"close-icon",{key:1})],10,qv)):Tr("",!0),S.toast.component?(Ee(),Hn(Do(S.toast.component),Jo({key:1},S.toast.componentProps,{onCloseToast:Qe}),null,16)):(Ee(),je(We,{key:2},[v.value!=="default"||S.toast.icon||S.toast.promise?(Ee(),je("div",{key:0,"data-icon":"",class:Ht(S.cn((G=S.classes)==null?void 0:G.icon,(K=(j=S.toast)==null?void 0:j.classes)==null?void 0:K.icon))},[S.toast.icon?(Ee(),Hn(Do(S.toast.icon),{key:0})):(Ee(),je(We,{key:1},[v.value==="loading"?Wt(S.$slots,"loading-icon",{key:0}):v.value==="success"?Wt(S.$slots,"success-icon",{key:1}):v.value==="error"?Wt(S.$slots,"error-icon",{key:2}):v.value==="warning"?Wt(S.$slots,"warning-icon",{key:3}):v.value==="info"?Wt(S.$slots,"info-icon",{key:4}):Tr("",!0)],64))],2)):Tr("",!0),sn("div",{"data-content":"",class:Ht(S.cn((L=S.classes)==null?void 0:L.content,(V=(te=S.toast)==null?void 0:te.classes)==null?void 0:V.content))},[sn("div",{"data-title":"",class:Ht(S.cn((X=S.classes)==null?void 0:X.title,(re=S.toast.classes)==null?void 0:re.title))},[ce.value?(Ee(),Hn(Do(S.toast.title),Xl(Jo({key:0},S.toast.componentProps)),null,16)):(Ee(),je(We,{key:1},[za(Bo(S.toast.title),1)],64))],2),S.toast.description?(Ee(),je("div",{key:0,"data-description":"",class:Ht(S.cn(S.descriptionClass,y.value,(Ce=S.classes)==null?void 0:Ce.description,(we=S.toast.classes)==null?void 0:we.description))},[fe.value?(Ee(),Hn(Do(S.toast.description),Xl(Jo({key:0},S.toast.componentProps)),null,16)):(Ee(),je(We,{key:1},[za(Bo(S.toast.description),1)],64))],2)):Tr("",!0)],2),S.toast.cancel?(Ee(),je("button",{key:1,style:lr(S.toast.cancelButtonStyle||S.cancelButtonStyle),class:Ht(S.cn((Re=S.classes)==null?void 0:Re.cancelButton,($e=S.toast.classes)==null?void 0:$e.cancelButton)),"data-button":"","data-cancel":"",onClick:de[0]||(de[0]=Qn=>{var et,ft;dt(Hi)(S.toast.cancel)&&E.value&&((ft=(et=S.toast.cancel).onClick)==null||ft.call(et,Qn),Pe())})},Bo(dt(Hi)(S.toast.cancel)?(Xe=S.toast.cancel)==null?void 0:Xe.label:S.toast.cancel),7)):Tr("",!0),S.toast.action?(Ee(),je("button",{key:2,style:lr(S.toast.actionButtonStyle||S.actionButtonStyle),class:Ht(S.cn((Nt=S.classes)==null?void 0:Nt.actionButton,(Mt=S.toast.classes)==null?void 0:Mt.actionButton)),"data-button":"","data-action":"",onClick:de[1]||(de[1]=Qn=>{var et,ft;dt(Hi)(S.toast.action)&&(Qn.defaultPrevented||((ft=(et=S.toast.action).onClick)==null||ft.call(et,Qn),!Qn.defaultPrevented&&Pe()))})},Bo(dt(Hi)(S.toast.action)?(zn=S.toast.action)==null?void 0:zn.label:S.toast.action),7)):Tr("",!0)],64))],46,Kv)}}}),wi=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},zv={},Qv={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};function Wv(n,e){return Ee(),je("svg",Qv,e[0]||(e[0]=[sn("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),sn("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}const Yv=wi(zv,[["render",Wv]]),Jv=["data-visible"],Xv={class:"sonner-spinner"},Zv=ko({__name:"Loader",props:{visible:{type:Boolean}},setup(n){const e=Array(12).fill(0);return(t,r)=>(Ee(),je("div",{class:"sonner-loading-wrapper","data-visible":t.visible},[sn("div",Xv,[(Ee(!0),je(We,null,qa(dt(e),o=>(Ee(),je("div",{key:`spinner-bar-${o}`,class:"sonner-loading-bar"}))),128))])],8,Jv))}}),eT={},tT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function nT(n,e){return Ee(),je("svg",tT,e[0]||(e[0]=[sn("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}const rT=wi(eT,[["render",nT]]),oT={},iT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function sT(n,e){return Ee(),je("svg",iT,e[0]||(e[0]=[sn("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}const aT=wi(oT,[["render",sT]]),cT={},lT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};function uT(n,e){return Ee(),je("svg",lT,e[0]||(e[0]=[sn("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}const dT=wi(cT,[["render",uT]]),hT={},fT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function gT(n,e){return Ee(),je("svg",fT,e[0]||(e[0]=[sn("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}const pT=wi(hT,[["render",gT]]),mT=["aria-label"],yT=["dir","data-theme","data-rich-colors","data-y-position","data-x-position","data-lifted"],CT=3,zu="32px",vT=356,TT=14,AT=typeof window<"u"&&typeof document<"u";function ET(...n){return n.filter(Boolean).join(" ")}const wT=ko({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:TT},visibleToasts:{default:CT},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{default:()=>({})},offset:{default:zu},dir:{default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{type:Function,default:ET}},setup(n){const e=n;function t(){if(typeof window>"u"||typeof document>"u")return"ltr";const y=document.documentElement.getAttribute("dir");return y==="auto"||!y?window.getComputedStyle(document.documentElement).direction:y}const r=Iy(),o=Oe([]),i=Te(()=>(y,T)=>o.value.filter(N=>!N.position&&T===0||N.position===y)),s=Te(()=>{const y=o.value.filter(T=>T.position).map(T=>T.position);return y.length>0?Array.from(new Set([e.position].concat(y))):[e.position]}),a=Oe([]),c=Oe(!1),l=Oe(!1),u=Oe(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=Oe(null),h=Oe(null),f=Oe(!1),C=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function p(y){var T;(T=o.value.find(N=>N.id===y.id))!=null&&T.delete||Ut.dismiss(y.id),o.value=o.value.filter(({id:N})=>N!==y.id)}function v(y){var T,N;f.value&&!((N=(T=y.currentTarget)==null?void 0:T.contains)!=null&&N.call(T,y.relatedTarget))&&(f.value=!1,h.value&&(h.value.focus({preventScroll:!0}),h.value=null))}function E(y){y.target instanceof HTMLElement&&y.target.dataset.dismissible==="false"||f.value||(f.value=!0,h.value=y.relatedTarget)}function b(y){y.target&&y.target instanceof HTMLElement&&y.target.dataset.dismissible==="false"||(l.value=!0)}return eo(y=>{const T=Ut.subscribe(N=>{if(N.dismiss){o.value=o.value.map(z=>z.id===N.id?{...z,delete:!0}:z);return}Ai(()=>{const z=o.value.findIndex(B=>B.id===N.id);z!==-1?o.value=[...o.value.slice(0,z),{...o.value[z],...N},...o.value.slice(z+1)]:o.value=[N,...o.value]})});y(T)}),Mr(()=>e.theme,y=>{if(y!=="system"){u.value=y;return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u.value="dark":u.value="light"),typeof window>"u")return;const T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:N})=>{N?u.value="dark":u.value="light"})}catch{T.addListener(({matches:N})=>{try{N?u.value="dark":u.value="light"}catch(z){console.error(z)}})}}),eo(()=>{d.value&&h.value&&(h.value.focus({preventScroll:!0}),h.value=null,f.value=!1)}),eo(()=>{o.value.length<=1&&(c.value=!1)}),eo(y=>{function T(N){const z=e.hotkey.every(O=>N[O]||N.code===O),B=Array.isArray(d.value)?d.value[0]:d.value;z&&(c.value=!0,B==null||B.focus());const F=document.activeElement===d.value||(B==null?void 0:B.contains(document.activeElement));N.code==="Escape"&&F&&(c.value=!1)}AT&&(document.addEventListener("keydown",T),y(()=>{document.removeEventListener("keydown",T)}))}),(y,T)=>(Ee(),je("section",{"aria-label":`${y.containerAriaLabel} ${dt(C)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(Ee(!0),je(We,null,qa(s.value,(N,z)=>{var B;return Ee(),je("ol",Jo({key:N,ref_for:!0,ref_key:"listRef",ref:d,"data-sonner-toaster":"",class:e.class,dir:y.dir==="auto"?t():y.dir,tabIndex:-1,"data-theme":y.theme,"data-rich-colors":y.richColors,"data-y-position":N.split("-")[0],"data-x-position":N.split("-")[1],"data-lifted":c.value&&o.value.length>1&&!y.expand,style:{"--front-toast-height":`${(B=a.value[0])==null?void 0:B.height}px`,"--offset":typeof y.offset=="number"?`${y.offset}px`:y.offset||zu,"--width":`${vT}px`,"--gap":`${y.gap}px`,...y.style,...dt(r).style}},y.$attrs,{onBlur:v,onFocus:E,onMouseenter:T[1]||(T[1]=()=>c.value=!0),onMousemove:T[2]||(T[2]=()=>c.value=!0),onMouseleave:T[3]||(T[3]=()=>{l.value||(c.value=!1)}),onPointerdown:b,onPointerup:T[4]||(T[4]=()=>l.value=!1)}),[(Ee(!0),je(We,null,qa(i.value(N,z),(F,O)=>{var Q,Z,$,ce,fe,Be,pe,ie,he;return Ee(),Hn(Vv,{key:F.id,heights:a.value.filter(Se=>Se.position===F.position),icons:y.icons,index:O,toast:F,defaultRichColors:y.richColors,duration:((Q=y.toastOptions)==null?void 0:Q.duration)??y.duration,class:Ht(((Z=y.toastOptions)==null?void 0:Z.class)??""),descriptionClass:($=y.toastOptions)==null?void 0:$.descriptionClass,invert:y.invert,visibleToasts:y.visibleToasts,closeButton:((ce=y.toastOptions)==null?void 0:ce.closeButton)??y.closeButton,interacting:l.value,position:N,style:lr((fe=y.toastOptions)==null?void 0:fe.style),unstyled:(Be=y.toastOptions)==null?void 0:Be.unstyled,classes:(pe=y.toastOptions)==null?void 0:pe.classes,cancelButtonStyle:(ie=y.toastOptions)==null?void 0:ie.cancelButtonStyle,actionButtonStyle:(he=y.toastOptions)==null?void 0:he.actionButtonStyle,toasts:o.value.filter(Se=>Se.position===F.position),expandByDefault:y.expand,gap:y.gap,expanded:c.value,pauseWhenPageIsHidden:y.pauseWhenPageIsHidden,cn:y.cn,"onUpdate:heights":T[0]||(T[0]=Se=>{a.value=Se}),onRemoveToast:p},{"close-icon":vr(()=>[Wt(y.$slots,"close-icon",{},()=>[Ge(Yv)])]),"loading-icon":vr(()=>[Wt(y.$slots,"loading-icon",{},()=>[Ge(Zv,{visible:F.type==="loading"},null,8,["visible"])])]),"success-icon":vr(()=>[Wt(y.$slots,"success-icon",{},()=>[Ge(rT)])]),"error-icon":vr(()=>[Wt(y.$slots,"error-icon",{},()=>[Ge(pT)])]),"warning-icon":vr(()=>[Wt(y.$slots,"warning-icon",{},()=>[Ge(dT)])]),"info-icon":vr(()=>[Wt(y.$slots,"info-icon",{},()=>[Ge(aT)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn"])}),128))],16,yT)}),128))],8,mT))}}),_T=ko({__name:"App",setup(n){return(e,t)=>{const r=_y("RouterView");return Ee(),je(We,null,[Ge(r),Ge(dt(wT),{position:"top-right","toast-options":{style:{background:"hsl(var(--card))",color:"hsl(var(--card-foreground))",border:"1px solid hsl(var(--border))"}}})],64)}}}),bT="modulepreload",IT=function(n){return"/cc-dashboard/static/"+n},Qu={},xt=function(e,t,r){let o=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(t.map(c=>{if(c=IT(c),c in Qu)return;Qu[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":bT,l||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),l)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})};/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const Yr=typeof document<"u";function zf(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function ST(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&zf(n.default)}const _e=Object.assign;function Ea(n,e){const t={};for(const r in e){const o=e[r];t[r]=an(o)?o.map(n):n(o)}return t}const Zo=()=>{},an=Array.isArray;function Wu(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}const Qf=/#/g,RT=/&/g,kT=/\//g,OT=/=/g,PT=/\?/g,Wf=/\+/g,NT=/%5B/g,MT=/%5D/g,Yf=/%5E/g,xT=/%60/g,Jf=/%7B/g,DT=/%7C/g,Xf=/%7D/g,LT=/%20/g;function Xc(n){return n==null?"":encodeURI(""+n).replace(DT,"|").replace(NT,"[").replace(MT,"]")}function UT(n){return Xc(n).replace(Jf,"{").replace(Xf,"}").replace(Yf,"^")}function oc(n){return Xc(n).replace(Wf,"%2B").replace(LT,"+").replace(Qf,"%23").replace(RT,"%26").replace(xT,"`").replace(Jf,"{").replace(Xf,"}").replace(Yf,"^")}function HT(n){return oc(n).replace(OT,"%3D")}function FT(n){return Xc(n).replace(Qf,"%23").replace(PT,"%3F")}function BT(n){return FT(n).replace(kT,"%2F")}function fi(n){if(n==null)return null;try{return decodeURIComponent(""+n)}catch{}return""+n}const KT=/\/$/,qT=n=>n.replace(KT,"");function wa(n,e,t="/"){let r,o={},i="",s="";const a=e.indexOf("#");let c=e.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=e.slice(0,c),i=e.slice(c,a>0?a:e.length),o=n(i.slice(1))),a>=0&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=VT(r??e,t),{fullPath:r+i+s,path:r,query:o,hash:fi(s)}}function $T(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Yu(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function jT(n,e,t){const r=e.matched.length-1,o=t.matched.length-1;return r>-1&&r===o&&Ao(e.matched[r],t.matched[o])&&Zf(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Ao(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function Zf(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(var t in n)if(!GT(n[t],e[t]))return!1;return!0}function GT(n,e){return an(n)?Ju(n,e):an(e)?Ju(e,n):(n==null?void 0:n.valueOf())===(e==null?void 0:e.valueOf())}function Ju(n,e){return an(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function VT(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=t.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return t.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const Yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ic=function(n){return n.pop="pop",n.push="push",n}({}),_a=function(n){return n.back="back",n.forward="forward",n.unknown="",n}({});function zT(n){if(!n)if(Yr){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),qT(n)}const QT=/^[^#]+#/;function WT(n,e){return n.replace(QT,"#")+e}function YT(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const qs=()=>({left:window.scrollX,top:window.scrollY});function JT(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),o=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!o)return;e=YT(o,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Xu(n,e){return(history.state?history.state.position-e:-1)+n}const sc=new Map;function XT(n,e){sc.set(n,e)}function ZT(n){const e=sc.get(n);return sc.delete(n),e}function eA(n){return typeof n=="string"||n&&typeof n=="object"}function eg(n){return typeof n=="string"||typeof n=="symbol"}let ze=function(n){return n[n.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",n[n.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",n[n.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",n[n.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",n[n.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",n}({});const tg=Symbol("");ze.MATCHER_NOT_FOUND+"",ze.NAVIGATION_GUARD_REDIRECT+"",ze.NAVIGATION_ABORTED+"",ze.NAVIGATION_CANCELLED+"",ze.NAVIGATION_DUPLICATED+"";function Eo(n,e){return _e(new Error,{type:n,[tg]:!0},e)}function kn(n,e){return n instanceof Error&&tg in n&&(e==null||!!(n.type&e))}const tA=["params","query","hash"];function nA(n){if(typeof n=="string")return n;if(n.path!=null)return n.path;const e={};for(const t of tA)t in n&&(e[t]=n[t]);return JSON.stringify(e,null,2)}function rA(n){const e={};if(n===""||n==="?")return e;const t=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<t.length;++r){const o=t[r].replace(Wf," "),i=o.indexOf("="),s=fi(i<0?o:o.slice(0,i)),a=i<0?null:fi(o.slice(i+1));if(s in e){let c=e[s];an(c)||(c=e[s]=[c]),c.push(a)}else e[s]=a}return e}function Zu(n){let e="";for(let t in n){const r=n[t];if(t=HT(t),r==null){r!==void 0&&(e+=(e.length?"&":"")+t);continue}(an(r)?r.map(o=>o&&oc(o)):[r&&oc(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+t,o!=null&&(e+="="+o))})}return e}function oA(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=an(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const iA=Symbol(""),ed=Symbol(""),$s=Symbol(""),Zc=Symbol(""),ac=Symbol("");function Ho(){let n=[];function e(r){return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function nr(n,e,t,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const l=h=>{h===!1?c(Eo(ze.NAVIGATION_ABORTED,{from:t,to:e})):h instanceof Error?c(h):eA(h)?c(Eo(ze.NAVIGATION_GUARD_REDIRECT,{from:e,to:h})):(s&&r.enterCallbacks[o]===s&&typeof h=="function"&&s.push(h),a())},u=i(()=>n.call(r&&r.instances[o],e,t,l));let d=Promise.resolve(u);n.length<3&&(d=d.then(l)),d.catch(h=>c(h))})}function ba(n,e,t,r,o=i=>i()){const i=[];for(const s of n)for(const a in s.components){let c=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(zf(c)){const l=(c.__vccOpts||c)[e];l&&i.push(nr(l,t,r,s,a,o))}else{let l=c();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=ST(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const h=(d.__vccOpts||d)[e];return h&&nr(h,t,r,s,a,o)()}))}}return i}function sA(n,e){const t=[],r=[],o=[],i=Math.max(e.matched.length,n.matched.length);for(let s=0;s<i;s++){const a=e.matched[s];a&&(n.matched.find(l=>Ao(l,a))?r.push(a):t.push(a));const c=n.matched[s];c&&(e.matched.find(l=>Ao(l,c))||o.push(c))}return[t,r,o]}/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let aA=()=>location.protocol+"//"+location.host;function ng(n,e){const{pathname:t,search:r,hash:o}=e,i=n.indexOf("#");if(i>-1){let s=o.includes(n.slice(i))?n.slice(i).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),Yu(a,"")}return Yu(t,n)+r+o}function cA(n,e,t,r){let o=[],i=[],s=null;const a=({state:h})=>{const f=ng(n,location),C=t.value,p=e.value;let v=0;if(h){if(t.value=f,e.value=h,s&&s===C){s=null;return}v=p?h.position-p.position:0}else r(f);o.forEach(E=>{E(t.value,C,{delta:v,type:ic.pop,direction:v?v>0?_a.forward:_a.back:_a.unknown})})};function c(){s=t.value}function l(h){o.push(h);const f=()=>{const C=o.indexOf(h);C>-1&&o.splice(C,1)};return i.push(f),f}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(_e({},h.state,{scroll:qs()}),"")}}function d(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:l,destroy:d}}function td(n,e,t,r=!1,o=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:o?qs():null}}function lA(n){const{history:e,location:t}=window,r={value:ng(n,t)},o={value:e.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,l,u){const d=n.indexOf("#"),h=d>-1?(t.host&&document.querySelector("base")?n:n.slice(d))+c:aA()+n+c;try{e[u?"replaceState":"pushState"](l,"",h),o.value=l}catch(f){console.error(f),t[u?"replace":"assign"](h)}}function s(c,l){i(c,_e({},e.state,td(o.value.back,c,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=c}function a(c,l){const u=_e({},o.value,e.state,{forward:c,scroll:qs()});i(u.current,u,!0),i(c,_e({},td(r.value,c,null),{position:u.position+1},l),!1),r.value=c}return{location:r,state:o,push:a,replace:s}}function uA(n){n=zT(n);const e=lA(n),t=cA(n,e.state,e.location,e.replace);function r(i,s=!0){s||t.pauseListeners(),history.go(i)}const o=_e({location:"",base:n,go:r,createHref:WT.bind(null,n)},e,t);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}let wr=function(n){return n[n.Static=0]="Static",n[n.Param=1]="Param",n[n.Group=2]="Group",n}({});var tt=function(n){return n[n.Static=0]="Static",n[n.Param=1]="Param",n[n.ParamRegExp=2]="ParamRegExp",n[n.ParamRegExpEnd=3]="ParamRegExpEnd",n[n.EscapeNext=4]="EscapeNext",n}(tt||{});const dA={type:wr.Static,value:""},hA=/[a-zA-Z0-9_]/;function fA(n){if(!n)return[[]];if(n==="/")return[[dA]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(f){throw new Error(`ERR (${t})/"${l}": ${f}`)}let t=tt.Static,r=t;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,c,l="",u="";function d(){l&&(t===tt.Static?i.push({type:wr.Static,value:l}):t===tt.Param||t===tt.ParamRegExp||t===tt.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:wr.Param,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=c}for(;a<n.length;){if(c=n[a++],c==="\\"&&t!==tt.ParamRegExp){r=t,t=tt.EscapeNext;continue}switch(t){case tt.Static:c==="/"?(l&&d(),s()):c===":"?(d(),t=tt.Param):h();break;case tt.EscapeNext:h(),t=r;break;case tt.Param:c==="("?t=tt.ParamRegExp:hA.test(c)?h():(d(),t=tt.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case tt.ParamRegExp:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:t=tt.ParamRegExpEnd:u+=c;break;case tt.ParamRegExpEnd:d(),t=tt.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===tt.ParamRegExp&&e(`Unfinished custom RegExp for param "${l}"`),d(),s(),o}const nd="[^/]+?",gA={sensitive:!1,strict:!1,start:!0,end:!0};var _t=function(n){return n[n._multiplier=10]="_multiplier",n[n.Root=90]="Root",n[n.Segment=40]="Segment",n[n.SubSegment=30]="SubSegment",n[n.Static=40]="Static",n[n.Dynamic=20]="Dynamic",n[n.BonusCustomRegExp=10]="BonusCustomRegExp",n[n.BonusWildcard=-50]="BonusWildcard",n[n.BonusRepeatable=-20]="BonusRepeatable",n[n.BonusOptional=-8]="BonusOptional",n[n.BonusStrict=.7000000000000001]="BonusStrict",n[n.BonusCaseSensitive=.25]="BonusCaseSensitive",n}(_t||{});const pA=/[.+*?^${}()[\]/\\]/g;function mA(n,e){const t=_e({},gA,e),r=[];let o=t.start?"^":"";const i=[];for(const l of n){const u=l.length?[]:[_t.Root];t.strict&&!l.length&&(o+="/");for(let d=0;d<l.length;d++){const h=l[d];let f=_t.Segment+(t.sensitive?_t.BonusCaseSensitive:0);if(h.type===wr.Static)d||(o+="/"),o+=h.value.replace(pA,"\\$&"),f+=_t.Static;else if(h.type===wr.Param){const{value:C,repeatable:p,optional:v,regexp:E}=h;i.push({name:C,repeatable:p,optional:v});const b=E||nd;if(b!==nd){f+=_t.BonusCustomRegExp;try{`${b}`}catch(T){throw new Error(`Invalid custom RegExp for param "${C}" (${b}): `+T.message)}}let y=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(y=v&&l.length<2?`(?:/${y})`:"/"+y),v&&(y+="?"),o+=y,f+=_t.Dynamic,v&&(f+=_t.BonusOptional),p&&(f+=_t.BonusRepeatable),b===".*"&&(f+=_t.BonusWildcard)}u.push(f)}r.push(u)}if(t.strict&&t.end){const l=r.length-1;r[l][r[l].length-1]+=_t.BonusStrict}t.strict||(o+="/?"),t.end?o+="$":t.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,t.sensitive?"":"i");function a(l){const u=l.match(s),d={};if(!u)return null;for(let h=1;h<u.length;h++){const f=u[h]||"",C=i[h-1];d[C.name]=f&&C.repeatable?f.split("/"):f}return d}function c(l){let u="",d=!1;for(const h of n){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const f of h)if(f.type===wr.Static)u+=f.value;else if(f.type===wr.Param){const{value:C,repeatable:p,optional:v}=f,E=C in l?l[C]:"";if(an(E)&&!p)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const b=an(E)?E.join("/"):E;if(!b)if(v)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${C}"`);u+=b}}return u||"/"}return{re:s,score:r,keys:i,parse:a,stringify:c}}function yA(n,e){let t=0;for(;t<n.length&&t<e.length;){const r=e[t]-n[t];if(r)return r;t++}return n.length<e.length?n.length===1&&n[0]===_t.Static+_t.Segment?-1:1:n.length>e.length?e.length===1&&e[0]===_t.Static+_t.Segment?1:-1:0}function rg(n,e){let t=0;const r=n.score,o=e.score;for(;t<r.length&&t<o.length;){const i=yA(r[t],o[t]);if(i)return i;t++}if(Math.abs(o.length-r.length)===1){if(rd(r))return 1;if(rd(o))return-1}return o.length-r.length}function rd(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const CA={strict:!1,end:!0,sensitive:!1};function vA(n,e,t){const r=mA(fA(n.path),t),o=_e(r,{record:n,parent:e,children:[],alias:[]});return e&&!o.record.aliasOf==!e.record.aliasOf&&e.children.push(o),o}function TA(n,e){const t=[],r=new Map;e=Wu(CA,e);function o(d){return r.get(d)}function i(d,h,f){const C=!f,p=id(d);p.aliasOf=f&&f.record;const v=Wu(e,d),E=[p];if("alias"in d){const T=typeof d.alias=="string"?[d.alias]:d.alias;for(const N of T)E.push(id(_e({},p,{components:f?f.record.components:p.components,path:N,aliasOf:f?f.record:p})))}let b,y;for(const T of E){const{path:N}=T;if(h&&N[0]!=="/"){const z=h.record.path,B=z[z.length-1]==="/"?"":"/";T.path=h.record.path+(N&&B+N)}if(b=vA(T,h,v),f?f.alias.push(b):(y=y||b,y!==b&&y.alias.push(b),C&&d.name&&!sd(b)&&s(d.name)),og(b)&&c(b),p.children){const z=p.children;for(let B=0;B<z.length;B++)i(z[B],b,f&&f.children[B])}f=f||b}return y?()=>{s(y)}:Zo}function s(d){if(eg(d)){const h=r.get(d);h&&(r.delete(d),t.splice(t.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=t.indexOf(d);h>-1&&(t.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return t}function c(d){const h=wA(d,t);t.splice(h,0,d),d.record.name&&!sd(d)&&r.set(d.record.name,d)}function l(d,h){let f,C={},p,v;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Eo(ze.MATCHER_NOT_FOUND,{location:d});v=f.record.name,C=_e(od(h.params,f.keys.filter(y=>!y.optional).concat(f.parent?f.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&od(d.params,f.keys.map(y=>y.name))),p=f.stringify(C)}else if(d.path!=null)p=d.path,f=t.find(y=>y.re.test(p)),f&&(C=f.parse(p),v=f.record.name);else{if(f=h.name?r.get(h.name):t.find(y=>y.re.test(h.path)),!f)throw Eo(ze.MATCHER_NOT_FOUND,{location:d,currentLocation:h});v=f.record.name,C=_e({},h.params,d.params),p=f.stringify(C)}const E=[];let b=f;for(;b;)E.unshift(b.record),b=b.parent;return{name:v,path:p,params:C,matched:E,meta:EA(E)}}n.forEach(d=>i(d));function u(){t.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function od(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function id(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:AA(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function AA(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function sd(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function EA(n){return n.reduce((e,t)=>_e(e,t.meta),{})}function wA(n,e){let t=0,r=e.length;for(;t!==r;){const i=t+r>>1;rg(n,e[i])<0?r=i:t=i+1}const o=_A(n);return o&&(r=e.lastIndexOf(o,r-1)),r}function _A(n){let e=n;for(;e=e.parent;)if(og(e)&&rg(n,e)===0)return e}function og({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function ad(n){const e=Yt($s),t=Yt(Zc),r=Te(()=>{const c=dt(n.to);return e.resolve(c)}),o=Te(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],d=t.matched;if(!u||!d.length)return-1;const h=d.findIndex(Ao.bind(null,u));if(h>-1)return h;const f=cd(c[l-2]);return l>1&&cd(u)===f&&d[d.length-1].path!==f?d.findIndex(Ao.bind(null,c[l-2])):h}),i=Te(()=>o.value>-1&&kA(t.params,r.value.params)),s=Te(()=>o.value>-1&&o.value===t.matched.length-1&&Zf(t.params,r.value.params));function a(c={}){if(RA(c)){const l=e[dt(n.replace)?"replace":"push"](dt(n.to)).catch(Zo);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:Te(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function bA(n){return n.length===1?n[0]:n}const IA=ko({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ad,setup(n,{slots:e}){const t=vi(ad(n)),{options:r}=Yt($s),o=Te(()=>({[ld(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[ld(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const i=e.default&&bA(e.default(t));return n.custom?i:Wc("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:o.value},i)}}}),SA=IA;function RA(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function kA(n,e){for(const t in e){const r=e[t],o=n[t];if(typeof r=="string"){if(r!==o)return!1}else if(!an(o)||o.length!==r.length||r.some((i,s)=>i.valueOf()!==o[s].valueOf()))return!1}return!0}function cd(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const ld=(n,e,t)=>n??e??t,OA=ko({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=Yt(ac),o=Te(()=>n.route||r.value),i=Yt(ed,0),s=Te(()=>{let l=dt(i);const{matched:u}=o.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),a=Te(()=>o.value.matched[s.value]);Wi(ed,Te(()=>s.value+1)),Wi(iA,a),Wi(ac,o);const c=Oe();return Mr(()=>[c.value,a.value,n.name],([l,u,d],[h,f,C])=>{u&&(u.instances[d]=l,f&&f!==u&&l&&l===h&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!Ao(u,f)||!h)&&(u.enterCallbacks[d]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=o.value,u=n.name,d=a.value,h=d&&d.components[u];if(!h)return ud(t.default,{Component:h,route:l});const f=d.props[u],C=f?f===!0?l.params:typeof f=="function"?f(l):f:null,v=Wc(h,_e({},C,e,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return ud(t.default,{Component:v,route:l})||v}}});function ud(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const PA=OA;function NA(n){const e=TA(n.routes,n),t=n.parseQuery||rA,r=n.stringifyQuery||Zu,o=n.history,i=Ho(),s=Ho(),a=Ho(),c=Gm(Yn);let l=Yn;Yr&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ea.bind(null,I=>""+I),d=Ea.bind(null,BT),h=Ea.bind(null,fi);function f(I,D){let U,W;return eg(I)?(U=e.getRecordMatcher(I),W=D):W=I,e.addRoute(W,U)}function C(I){const D=e.getRecordMatcher(I);D&&e.removeRoute(D)}function p(){return e.getRoutes().map(I=>I.record)}function v(I){return!!e.getRecordMatcher(I)}function E(I,D){if(D=_e({},D||c.value),typeof I=="string"){const A=wa(t,I,D.path),P=e.resolve({path:A.path},D),x=o.createHref(A.fullPath);return _e(A,P,{params:h(P.params),hash:fi(A.hash),redirectedFrom:void 0,href:x})}let U;if(I.path!=null)U=_e({},I,{path:wa(t,I.path,D.path).path});else{const A=_e({},I.params);for(const P in A)A[P]==null&&delete A[P];U=_e({},I,{params:d(A)}),D.params=d(D.params)}const W=e.resolve(U,D),le=I.hash||"";W.params=u(h(W.params));const g=$T(r,_e({},I,{hash:UT(le),path:W.path})),m=o.createHref(g);return _e({fullPath:g,hash:le,query:r===Zu?oA(I.query):I.query||{}},W,{redirectedFrom:void 0,href:m})}function b(I){return typeof I=="string"?wa(t,I,c.value.path):_e({},I)}function y(I,D){if(l!==I)return Eo(ze.NAVIGATION_CANCELLED,{from:D,to:I})}function T(I){return B(I)}function N(I){return T(_e(b(I),{replace:!0}))}function z(I,D){const U=I.matched[I.matched.length-1];if(U&&U.redirect){const{redirect:W}=U;let le=typeof W=="function"?W(I,D):W;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=b(le):{path:le},le.params={}),_e({query:I.query,hash:I.hash,params:le.path!=null?{}:I.params},le)}}function B(I,D){const U=l=E(I),W=c.value,le=I.state,g=I.force,m=I.replace===!0,A=z(U,W);if(A)return B(_e(b(A),{state:typeof A=="object"?_e({},le,A.state):le,force:g,replace:m}),D||U);const P=U;P.redirectedFrom=D;let x;return!g&&jT(r,W,U)&&(x=Eo(ze.NAVIGATION_DUPLICATED,{to:P,from:W}),Qe(W,W,!0,!1)),(x?Promise.resolve(x):Q(P,W)).catch(M=>kn(M)?kn(M,ze.NAVIGATION_GUARD_REDIRECT)?M:Pe(M):he(M,P,W)).then(M=>{if(M){if(kn(M,ze.NAVIGATION_GUARD_REDIRECT))return B(_e({replace:m},b(M.to),{state:typeof M.to=="object"?_e({},le,M.to.state):le,force:g}),D||P)}else M=$(P,W,!0,m,le);return Z(P,W,M),M})}function F(I,D){const U=y(I,D);return U?Promise.reject(U):Promise.resolve()}function O(I){const D=ct.values().next().value;return D&&typeof D.runWithContext=="function"?D.runWithContext(I):I()}function Q(I,D){let U;const[W,le,g]=sA(I,D);U=ba(W.reverse(),"beforeRouteLeave",I,D);for(const A of W)A.leaveGuards.forEach(P=>{U.push(nr(P,I,D))});const m=F.bind(null,I,D);return U.push(m),de(U).then(()=>{U=[];for(const A of i.list())U.push(nr(A,I,D));return U.push(m),de(U)}).then(()=>{U=ba(le,"beforeRouteUpdate",I,D);for(const A of le)A.updateGuards.forEach(P=>{U.push(nr(P,I,D))});return U.push(m),de(U)}).then(()=>{U=[];for(const A of g)if(A.beforeEnter)if(an(A.beforeEnter))for(const P of A.beforeEnter)U.push(nr(P,I,D));else U.push(nr(A.beforeEnter,I,D));return U.push(m),de(U)}).then(()=>(I.matched.forEach(A=>A.enterCallbacks={}),U=ba(g,"beforeRouteEnter",I,D,O),U.push(m),de(U))).then(()=>{U=[];for(const A of s.list())U.push(nr(A,I,D));return U.push(m),de(U)}).catch(A=>kn(A,ze.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function Z(I,D,U){a.list().forEach(W=>O(()=>W(I,D,U)))}function $(I,D,U,W,le){const g=y(I,D);if(g)return g;const m=D===Yn,A=Yr?history.state:{};U&&(W||m?o.replace(I.fullPath,_e({scroll:m&&A&&A.scroll},le)):o.push(I.fullPath,le)),c.value=I,Qe(I,D,U,m),Pe()}let ce;function fe(){ce||(ce=o.listen((I,D,U)=>{if(!S.listening)return;const W=E(I),le=z(W,S.currentRoute.value);if(le){B(_e(le,{replace:!0,force:!0}),W).catch(Zo);return}l=W;const g=c.value;Yr&&XT(Xu(g.fullPath,U.delta),qs()),Q(W,g).catch(m=>kn(m,ze.NAVIGATION_ABORTED|ze.NAVIGATION_CANCELLED)?m:kn(m,ze.NAVIGATION_GUARD_REDIRECT)?(B(_e(b(m.to),{force:!0}),W).then(A=>{kn(A,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&!U.delta&&U.type===ic.pop&&o.go(-1,!1)}).catch(Zo),Promise.reject()):(U.delta&&o.go(-U.delta,!1),he(m,W,g))).then(m=>{m=m||$(W,g,!1),m&&(U.delta&&!kn(m,ze.NAVIGATION_CANCELLED)?o.go(-U.delta,!1):U.type===ic.pop&&kn(m,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Z(W,g,m)}).catch(Zo)}))}let Be=Ho(),pe=Ho(),ie;function he(I,D,U){Pe(I);const W=pe.list();return W.length?W.forEach(le=>le(I,D,U)):console.error(I),Promise.reject(I)}function Se(){return ie&&c.value!==Yn?Promise.resolve():new Promise((I,D)=>{Be.add([I,D])})}function Pe(I){return ie||(ie=!I,fe(),Be.list().forEach(([D,U])=>I?U(I):D()),Be.reset()),I}function Qe(I,D,U,W){const{scrollBehavior:le}=n;if(!Yr||!le)return Promise.resolve();const g=!U&&ZT(Xu(I.fullPath,0))||(W||!U)&&history.state&&history.state.scroll||null;return Ai().then(()=>le(I,D,g)).then(m=>m&&JT(m)).catch(m=>he(m,I,D))}const Ze=I=>o.go(I);let Ue;const ct=new Set,S={currentRoute:c,listening:!0,addRoute:f,removeRoute:C,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:p,resolve:E,options:n,push:T,replace:N,go:Ze,back:()=>Ze(-1),forward:()=>Ze(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:pe.add,isReady:Se,install(I){I.component("RouterLink",SA),I.component("RouterView",PA),I.config.globalProperties.$router=S,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>dt(c)}),Yr&&!Ue&&c.value===Yn&&(Ue=!0,T(o.location).catch(W=>{}));const D={};for(const W in Yn)Object.defineProperty(D,W,{get:()=>c.value[W],enumerable:!0});I.provide($s,S),I.provide(Zc,Hh(D)),I.provide(ac,c);const U=I.unmount;ct.add(I),I.unmount=function(){ct.delete(I),ct.size<1&&(l=Yn,ce&&ce(),ce=null,c.value=Yn,Ue=!1,ie=!1),U()}}};function de(I){return I.reduce((D,U)=>D.then(()=>O(U)),Promise.resolve())}return S}function aS(){return Yt($s)}function cS(n){return Yt(Zc)}function ig(n,e){return function(){return n.apply(e,arguments)}}const{toString:MA}=Object.prototype,{getPrototypeOf:js}=Object,{iterator:Gs,toStringTag:sg}=Symbol,Vs=(n=>e=>{const t=MA.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ln=n=>(n=n.toLowerCase(),e=>Vs(e)===n),zs=n=>e=>typeof e===n,{isArray:Oo}=Array,wo=zs("undefined");function _i(n){return n!==null&&!wo(n)&&n.constructor!==null&&!wo(n.constructor)&&Pt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ag=ln("ArrayBuffer");function xA(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ag(n.buffer),e}const DA=zs("string"),Pt=zs("function"),cg=zs("number"),bi=n=>n!==null&&typeof n=="object",LA=n=>n===!0||n===!1,Xi=n=>{if(Vs(n)!=="object")return!1;const e=js(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(sg in n)&&!(Gs in n)},UA=n=>{if(!bi(n)||_i(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},HA=ln("Date"),FA=ln("File"),BA=n=>!!(n&&typeof n.uri<"u"),KA=n=>n&&typeof n.getParts<"u",qA=ln("Blob"),$A=ln("FileList"),jA=n=>bi(n)&&Pt(n.pipe);function GA(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dd=GA(),hd=typeof dd.FormData<"u"?dd.FormData:void 0,VA=n=>{if(!n)return!1;if(hd&&n instanceof hd)return!0;const e=js(n);if(!e||e===Object.prototype||!Pt(n.append))return!1;const t=Vs(n);return t==="formdata"||t==="object"&&Pt(n.toString)&&n.toString()==="[object FormData]"},zA=ln("URLSearchParams"),[QA,WA,YA,JA]=["ReadableStream","Request","Response","Headers"].map(ln),XA=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ii(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),Oo(n))for(r=0,o=n.length;r<o;r++)e.call(null,n[r],r,n);else{if(_i(n))return;const i=t?Object.getOwnPropertyNames(n):Object.keys(n),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,n[a],a,n)}}function lg(n,e){if(_i(n))return null;e=e.toLowerCase();const t=Object.keys(n);let r=t.length,o;for(;r-- >0;)if(o=t[r],e===o.toLowerCase())return o;return null}const _r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ug=n=>!wo(n)&&n!==_r;function cc(...n){const{caseless:e,skipUndefined:t}=ug(this)&&this||{},r={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&lg(r,s)||s,c=lc(r,a)?r[a]:void 0;Xi(c)&&Xi(i)?r[a]=cc(c,i):Xi(i)?r[a]=cc({},i):Oo(i)?r[a]=i.slice():(!t||!wo(i))&&(r[a]=i)};for(let i=0,s=n.length;i<s;i++)n[i]&&Ii(n[i],o);return r}const ZA=(n,e,t,{allOwnKeys:r}={})=>(Ii(e,(o,i)=>{t&&Pt(o)?Object.defineProperty(n,i,{__proto__:null,value:ig(o,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),n),eE=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),tE=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:e.prototype}),t&&Object.assign(n.prototype,t)},nE=(n,e,t,r)=>{let o,i,s;const a={};if(e=e||{},n==null)return e;do{for(o=Object.getOwnPropertyNames(n),i=o.length;i-- >0;)s=o[i],(!r||r(s,n,e))&&!a[s]&&(e[s]=n[s],a[s]=!0);n=t!==!1&&js(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},rE=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},oE=n=>{if(!n)return null;if(Oo(n))return n;let e=n.length;if(!cg(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},iE=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&js(Uint8Array)),sE=(n,e)=>{const r=(n&&n[Gs]).call(n);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(n,i[0],i[1])}},aE=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},cE=ln("HTMLFormElement"),lE=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),lc=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),uE=ln("RegExp"),dg=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Ii(t,(o,i)=>{let s;(s=e(o,i,n))!==!1&&(r[i]=s||o)}),Object.defineProperties(n,r)},dE=n=>{dg(n,(e,t)=>{if(Pt(n)&&["arguments","caller","callee"].includes(t))return!1;const r=n[t];if(Pt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},hE=(n,e)=>{const t={},r=o=>{o.forEach(i=>{t[i]=!0})};return Oo(n)?r(n):r(String(n).split(e)),t},fE=()=>{},gE=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function pE(n){return!!(n&&Pt(n.append)&&n[sg]==="FormData"&&n[Gs])}const mE=n=>{const e=new Array(10),t=(r,o)=>{if(bi(r)){if(e.indexOf(r)>=0)return;if(_i(r))return r;if(!("toJSON"in r)){e[o]=r;const i=Oo(r)?[]:{};return Ii(r,(s,a)=>{const c=t(s,o+1);!wo(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return t(n,0)},yE=ln("AsyncFunction"),CE=n=>n&&(bi(n)||Pt(n))&&Pt(n.then)&&Pt(n.catch),hg=((n,e)=>n?setImmediate:e?((t,r)=>(_r.addEventListener("message",({source:o,data:i})=>{o===_r&&i===t&&r.length&&r.shift()()},!1),o=>{r.push(o),_r.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Pt(_r.postMessage)),vE=typeof queueMicrotask<"u"?queueMicrotask.bind(_r):typeof process<"u"&&process.nextTick||hg,TE=n=>n!=null&&Pt(n[Gs]),w={isArray:Oo,isArrayBuffer:ag,isBuffer:_i,isFormData:VA,isArrayBufferView:xA,isString:DA,isNumber:cg,isBoolean:LA,isObject:bi,isPlainObject:Xi,isEmptyObject:UA,isReadableStream:QA,isRequest:WA,isResponse:YA,isHeaders:JA,isUndefined:wo,isDate:HA,isFile:FA,isReactNativeBlob:BA,isReactNative:KA,isBlob:qA,isRegExp:uE,isFunction:Pt,isStream:jA,isURLSearchParams:zA,isTypedArray:iE,isFileList:$A,forEach:Ii,merge:cc,extend:ZA,trim:XA,stripBOM:eE,inherits:tE,toFlatObject:nE,kindOf:Vs,kindOfTest:ln,endsWith:rE,toArray:oE,forEachEntry:sE,matchAll:aE,isHTMLForm:cE,hasOwnProperty:lc,hasOwnProp:lc,reduceDescriptors:dg,freezeMethods:dE,toObjectSet:hE,toCamelCase:lE,noop:fE,toFiniteNumber:gE,findKey:lg,global:_r,isContextDefined:ug,isSpecCompliantForm:pE,toJSONObject:mE,isAsyncFn:yE,isThenable:CE,setImmediate:hg,asap:vE,isIterable:TE},AE=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),EE=n=>{const e={};let t,r,o;return n&&n.split(`
|
|
`).forEach(function(s){o=s.indexOf(":"),t=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!t||e[t]&&AE[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},fd=Symbol("internals"),wE=/[^\x09\x20-\x7E\x80-\xFF]/g;function _E(n){let e=0,t=n.length;for(;e<t;){const r=n.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;t>e;){const r=n.charCodeAt(t-1);if(r!==9&&r!==32)break;t-=1}return e===0&&t===n.length?n:n.slice(e,t)}function Fo(n){return n&&String(n).trim().toLowerCase()}function bE(n){return _E(n.replace(wE,""))}function Zi(n){return n===!1||n==null?n:w.isArray(n)?n.map(Zi):bE(String(n))}function IE(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const SE=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ia(n,e,t,r,o){if(w.isFunction(r))return r.call(this,e,t);if(o&&(e=t),!!w.isString(e)){if(w.isString(r))return e.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(e)}}function RE(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function kE(n,e){const t=w.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{__proto__:null,value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}let kt=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function i(a,c,l){const u=Fo(c);if(!u)throw new Error("header name must be a non-empty string");const d=w.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=Zi(a))}const s=(a,c)=>w.forEach(a,(l,u)=>i(l,u,c));if(w.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(w.isString(e)&&(e=e.trim())&&!SE(e))s(EE(e),t);else if(w.isObject(e)&&w.isIterable(e)){let a={},c,l;for(const u of e){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(c=a[l])?w.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}s(a,t)}else e!=null&&i(t,e,r);return this}get(e,t){if(e=Fo(e),e){const r=w.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return IE(o);if(w.isFunction(t))return t.call(this,o,r);if(w.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Fo(e),e){const r=w.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Ia(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function i(s){if(s=Fo(s),s){const a=w.findKey(r,s);a&&(!t||Ia(r,r[a],a,t))&&(delete r[a],o=!0)}}return w.isArray(e)?e.forEach(i):i(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const i=t[r];(!e||Ia(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const t=this,r={};return w.forEach(this,(o,i)=>{const s=w.findKey(r,i);if(s){t[s]=Zi(o),delete t[i];return}const a=e?RE(i):String(i).trim();a!==i&&delete t[i],t[a]=Zi(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=e&&w.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[fd]=this[fd]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fo(s);r[a]||(kE(o,s),r[a]=!0)}return w.isArray(e)?e.forEach(i):i(e),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(kt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});w.freezeMethods(kt);const OE="[REDACTED ****]";function PE(n){if(w.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(w.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function NE(n,e){const t=new Set(e.map(i=>String(i).toLowerCase())),r=[],o=i=>{if(i===null||typeof i!="object"||w.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof kt&&(i=i.toJSON()),r.push(i);let s;if(w.isArray(i))s=[],i.forEach((a,c)=>{const l=o(a);w.isUndefined(l)||(s[c]=l)});else{if(!w.isPlainObject(i)&&PE(i))return r.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const l=t.has(a.toLowerCase())?OE:o(c);w.isUndefined(l)||(s[a]=l)}}return r.pop(),s};return o(n)}let J=class fg extends Error{static from(e,t,r,o,i,s){const a=new fg(e.message,t||e.code,r,o,i);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,t,r,o,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&w.hasOwnProp(e,"redact")?e.redact:void 0,r=w.isArray(t)&&t.length>0?NE(e,t):w.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};J.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";J.ERR_BAD_OPTION="ERR_BAD_OPTION";J.ECONNABORTED="ECONNABORTED";J.ETIMEDOUT="ETIMEDOUT";J.ECONNREFUSED="ECONNREFUSED";J.ERR_NETWORK="ERR_NETWORK";J.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";J.ERR_DEPRECATED="ERR_DEPRECATED";J.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";J.ERR_BAD_REQUEST="ERR_BAD_REQUEST";J.ERR_CANCELED="ERR_CANCELED";J.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";J.ERR_INVALID_URL="ERR_INVALID_URL";J.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ME=null;function uc(n){return w.isPlainObject(n)||w.isArray(n)}function gg(n){return w.endsWith(n,"[]")?n.slice(0,-2):n}function Sa(n,e,t){return n?n.concat(e).map(function(o,i){return o=gg(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function xE(n){return w.isArray(n)&&!n.some(uc)}const DE=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function Qs(n,e,t){if(!w.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=w.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,E){return!w.isUndefined(E[v])});const r=t.metaTokens,o=t.visitor||d,i=t.dots,s=t.indexes,a=t.Blob||typeof Blob<"u"&&Blob,c=t.maxDepth===void 0?100:t.maxDepth,l=a&&w.isSpecCompliantForm(e);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(w.isDate(p))return p.toISOString();if(w.isBoolean(p))return p.toString();if(!l&&w.isBlob(p))throw new J("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(p)||w.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,E){let b=p;if(w.isReactNative(e)&&w.isReactNativeBlob(p))return e.append(Sa(E,v,i),u(p)),!1;if(p&&!E&&typeof p=="object"){if(w.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(w.isArray(p)&&xE(p)||(w.isFileList(p)||w.endsWith(v,"[]"))&&(b=w.toArray(p)))return v=gg(v),b.forEach(function(T,N){!(w.isUndefined(T)||T===null)&&e.append(s===!0?Sa([v],N,i):s===null?v:v+"[]",u(T))}),!1}return uc(p)?!0:(e.append(Sa(E,v,i),u(p)),!1)}const h=[],f=Object.assign(DE,{defaultVisitor:d,convertValue:u,isVisitable:uc});function C(p,v,E=0){if(!w.isUndefined(p)){if(E>c)throw new J("Object is too deeply nested ("+E+" levels). Max depth: "+c,J.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(p),w.forEach(p,function(y,T){(!(w.isUndefined(y)||y===null)&&o.call(e,y,w.isString(T)?T.trim():T,v,f))===!0&&C(y,v?v.concat(T):[T],E+1)}),h.pop()}}if(!w.isObject(n))throw new TypeError("data must be an object");return C(n),e}function gd(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(r){return e[r]})}function el(n,e){this._pairs=[],n&&Qs(n,this,e)}const pg=el.prototype;pg.append=function(e,t){this._pairs.push([e,t])};pg.toString=function(e){const t=e?function(r){return e.call(this,r,gd)}:gd;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function LE(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mg(n,e,t){if(!e)return n;const r=t&&t.encode||LE,o=w.isFunction(t)?{serialize:t}:t,i=o&&o.serialize;let s;if(i?s=i(e,o):s=w.isURLSearchParams(e)?e.toString():new el(e,o).toString(r),s){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class pd{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},UE=typeof URLSearchParams<"u"?URLSearchParams:el,HE=typeof FormData<"u"?FormData:null,FE=typeof Blob<"u"?Blob:null,BE={isBrowser:!0,classes:{URLSearchParams:UE,FormData:HE,Blob:FE},protocols:["http","https","file","blob","url","data"]},nl=typeof window<"u"&&typeof document<"u",dc=typeof navigator=="object"&&navigator||void 0,KE=nl&&(!dc||["ReactNative","NativeScript","NS"].indexOf(dc.product)<0),qE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$E=nl&&window.location.href||"http://localhost",jE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nl,hasStandardBrowserEnv:KE,hasStandardBrowserWebWorkerEnv:qE,navigator:dc,origin:$E},Symbol.toStringTag,{value:"Module"})),Tt={...jE,...BE};function GE(n,e){return Qs(n,new Tt.classes.URLSearchParams,{visitor:function(t,r,o,i){return Tt.isNode&&w.isBuffer(t)?(this.append(r,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function VE(n){return w.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zE(n){const e={},t=Object.keys(n);let r;const o=t.length;let i;for(r=0;r<o;r++)i=t[r],e[i]=n[i];return e}function yg(n){function e(t,r,o,i){let s=t[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=t.length;return s=!s&&w.isArray(o)?o.length:s,c?(w.hasOwnProp(o,s)?o[s]=w.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),e(t,r,o[s],i)&&w.isArray(o[s])&&(o[s]=zE(o[s])),!a)}if(w.isFormData(n)&&w.isFunction(n.entries)){const t={};return w.forEachEntry(n,(r,o)=>{e(VE(r),o,t,0)}),t}return null}const Vr=(n,e)=>n!=null&&w.hasOwnProp(n,e)?n[e]:void 0;function QE(n,e,t){if(w.isString(n))try{return(e||JSON.parse)(n),w.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Si={transitional:tl,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(e);if(i&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return o?JSON.stringify(yg(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){const c=Vr(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return GE(e,c).toString();if((a=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=Vr(this,"env"),u=l&&l.FormData;return Qs(a?{"files[]":e}:e,u&&new u,c)}}return i||o?(t.setContentType("application/json",!1),QE(e)):e}],transformResponse:[function(e){const t=Vr(this,"transitional")||Si.transitional,r=t&&t.forcedJSONParsing,o=Vr(this,"responseType"),i=o==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!o||i)){const a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Vr(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?J.from(c,J.ERR_BAD_RESPONSE,this,null,Vr(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tt.classes.FormData,Blob:Tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch","query"],n=>{Si.headers[n]={}});function Ra(n,e){const t=this||Si,r=e||t,o=kt.from(r.headers);let i=r.data;return w.forEach(n,function(a){i=a.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Cg(n){return!!(n&&n.__CANCEL__)}let Ri=class extends J{constructor(e,t,r){super(e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function vg(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new J("Request failed with status code "+t.status,t.status>=400&&t.status<500?J.ERR_BAD_REQUEST:J.ERR_BAD_RESPONSE,t.config,t.request,t))}function WE(n){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return e&&e[1]||""}function YE(n,e){n=n||10;const t=new Array(n),r=new Array(n);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),u=r[i];s||(s=l),t[o]=c,r[o]=l;let d=i,h=0;for(;d!==o;)h+=t[d++],d=d%n;if(o=(o+1)%n,o===i&&(i=(i+1)%n),l-s<e)return;const f=u&&l-u;return f?Math.round(h*1e3/f):void 0}}function JE(n,e){let t=0,r=1e3/e,o,i;const s=(l,u=Date.now())=>{t=u,o=null,i&&(clearTimeout(i),i=null),n(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=r?s(l,u):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const hs=(n,e,t=3)=>{let r=0;const o=YE(50,250);return JE(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=a!=null?Math.min(s,a):s,l=Math.max(0,c-r),u=o(l);r=Math.max(r,c);const d={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-c)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(d)},t)},md=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},yd=n=>(...e)=>w.asap(()=>n(...e)),XE=Tt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Tt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Tt.origin),Tt.navigator&&/(msie|trident)/i.test(Tt.navigator.userAgent)):()=>!0,ZE=Tt.hasStandardBrowserEnv?{write(n,e,t,r,o,i,s){if(typeof document>"u")return;const a=[`${n}=${encodeURIComponent(e)}`];w.isNumber(t)&&a.push(`expires=${new Date(t).toUTCString()}`),w.isString(r)&&a.push(`path=${r}`),w.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),w.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(n){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===n)return decodeURIComponent(r.slice(o+1))}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ew(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function tw(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Tg(n,e,t){let r=!ew(e);return n&&(r||t===!1)?tw(n,e):e}const Cd=n=>n instanceof kt?{...n}:n;function Lr(n,e){e=e||{};const t=Object.create(null);Object.defineProperty(t,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(l,u,d,h){return w.isPlainObject(l)&&w.isPlainObject(u)?w.merge.call({caseless:h},l,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(l,u,d,h){if(w.isUndefined(u)){if(!w.isUndefined(l))return r(void 0,l,d,h)}else return r(l,u,d,h)}function i(l,u){if(!w.isUndefined(u))return r(void 0,u)}function s(l,u){if(w.isUndefined(u)){if(!w.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(w.hasOwnProp(e,d))return r(l,u);if(w.hasOwnProp(n,d))return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(l,u,d)=>o(Cd(l),Cd(u),d,!0)};return w.forEach(Object.keys({...n,...e}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=w.hasOwnProp(c,u)?c[u]:o,h=w.hasOwnProp(n,u)?n[u]:void 0,f=w.hasOwnProp(e,u)?e[u]:void 0,C=d(h,f,u);w.isUndefined(C)&&d!==a||(t[u]=C)}),t}const nw=["content-type","content-length"];function rw(n,e,t){if(t!=="content-only"){n.set(e);return}Object.entries(e).forEach(([r,o])=>{nw.includes(r.toLowerCase())&&n.set(r,o)})}const ow=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Ag=n=>{const e=Lr({},n),t=h=>w.hasOwnProp(e,h)?e[h]:void 0,r=t("data");let o=t("withXSRFToken");const i=t("xsrfHeaderName"),s=t("xsrfCookieName");let a=t("headers");const c=t("auth"),l=t("baseURL"),u=t("allowAbsoluteUrls"),d=t("url");if(e.headers=a=kt.from(a),e.url=mg(Tg(l,d,u),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?ow(c.password):""))),w.isFormData(r)&&(Tt.hasStandardBrowserEnv||Tt.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):w.isFunction(r.getHeaders)&&rw(a,r.getHeaders(),t("formDataHeaderPolicy"))),Tt.hasStandardBrowserEnv&&(w.isFunction(o)&&(o=o(e)),o===!0||o==null&&XE(e.url))){const f=i&&s&&ZE.read(s);f&&a.set(i,f)}return e},iw=typeof XMLHttpRequest<"u",sw=iw&&function(n){return new Promise(function(t,r){const o=Ag(n);let i=o.data;const s=kt.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,u,d,h,f,C;function p(){f&&f(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function E(){if(!v)return;const y=kt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),N={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:n,request:v};vg(function(B){t(B),p()},function(B){r(B),p()},N),v=null}"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(E)},v.onabort=function(){v&&(r(new J("Request aborted",J.ECONNABORTED,n,v)),p(),v=null)},v.onerror=function(T){const N=T&&T.message?T.message:"Network Error",z=new J(N,J.ERR_NETWORK,n,v);z.event=T||null,r(z),p(),v=null},v.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||tl;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),r(new J(T,N.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,n,v)),p(),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(s.toJSON(),function(T,N){v.setRequestHeader(N,T)}),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),l&&([h,C]=hs(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,f]=hs(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(u=y=>{v&&(r(!y||y.type?new Ri(null,n,v):y),v.abort(),p(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=WE(o.url);if(b&&!Tt.protocols.includes(b)){r(new J("Unsupported protocol "+b+":",J.ERR_BAD_REQUEST,n));return}v.send(i||null)})},aw=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,o;const i=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof J?u:new Ri(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,i(new J(`timeout of ${e}ms exceeded`,J.ETIMEDOUT))},e);const a=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),n=null)};n.forEach(l=>l.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>w.asap(a),c}},cw=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,o;for(;r<t;)o=r+e,yield n.slice(r,o),r=o},lw=async function*(n,e){for await(const t of uw(n))yield*cw(t,e)},uw=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},vd=(n,e,t,r)=>{const o=lw(n,e);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){a(),c.close();return}let d=u.byteLength;if(t){let h=i+=d;t(h)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})};function dw(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const e=n.indexOf(",");if(e<0)return 0;const t=n.slice(5,e),r=n.slice(e+1);if(/;base64/i.test(t)){let s=r.length;const a=r.length;for(let f=0;f<a;f++)if(r.charCodeAt(f)===37&&f+2<a){const C=r.charCodeAt(f+1),p=r.charCodeAt(f+2);(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(s-=2,f+=2)}let c=0,l=a-1;const u=f=>f>=2&&r.charCodeAt(f-2)===37&&r.charCodeAt(f-1)===51&&(r.charCodeAt(f)===68||r.charCodeAt(f)===100);l>=0&&(r.charCodeAt(l)===61?(c++,l--):u(l)&&(c++,l-=3)),c===1&&l>=0&&(r.charCodeAt(l)===61||u(l))&&c++;const h=Math.floor(s/4)*3-(c||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let s=0,a=r.length;s<a;s++){const c=r.charCodeAt(s);if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&s+1<a){const l=r.charCodeAt(s+1);l>=56320&&l<=57343?(i+=4,s++):i+=3}else i+=3}return i}const rl="1.16.0",Td=64*1024,{isFunction:Fi}=w,Ad=(n,...e)=>{try{return!!n(...e)}catch{return!1}},hw=n=>{const e=w.global??globalThis,{ReadableStream:t,TextEncoder:r}=e;n=w.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},n);const{fetch:o,Request:i,Response:s}=n,a=o?Fi(o):typeof fetch=="function",c=Fi(i),l=Fi(s);if(!a)return!1;const u=a&&Fi(t),d=a&&(typeof r=="function"?(E=>b=>E.encode(b))(new r):async E=>new Uint8Array(await new i(E).arrayBuffer())),h=c&&u&&Ad(()=>{let E=!1;const b=new i(Tt.origin,{body:new t,method:"POST",get duplex(){return E=!0,"half"}}),y=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),E&&!y}),f=l&&u&&Ad(()=>w.isReadableStream(new s("").body)),C={stream:f&&(E=>E.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!C[E]&&(C[E]=(b,y)=>{let T=b&&b[E];if(T)return T.call(b);throw new J(`Response type '${E}' is not supported`,J.ERR_NOT_SUPPORT,y)})});const p=async E=>{if(E==null)return 0;if(w.isBlob(E))return E.size;if(w.isSpecCompliantForm(E))return(await new i(Tt.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(w.isArrayBufferView(E)||w.isArrayBuffer(E))return E.byteLength;if(w.isURLSearchParams(E)&&(E=E+""),w.isString(E))return(await d(E)).byteLength},v=async(E,b)=>{const y=w.toFiniteNumber(E.getContentLength());return y??p(b)};return async E=>{let{url:b,method:y,data:T,signal:N,cancelToken:z,timeout:B,onDownloadProgress:F,onUploadProgress:O,responseType:Q,headers:Z,withCredentials:$="same-origin",fetchOptions:ce,maxContentLength:fe,maxBodyLength:Be}=Ag(E);const pe=w.isNumber(fe)&&fe>-1,ie=w.isNumber(Be)&&Be>-1;let he=o||fetch;Q=Q?(Q+"").toLowerCase():"text";let Se=aw([N,z&&z.toAbortSignal()],B),Pe=null;const Qe=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()});let Ze;try{if(pe&&typeof b=="string"&&b.startsWith("data:")&&dw(b)>fe)throw new J("maxContentLength size of "+fe+" exceeded",J.ERR_BAD_RESPONSE,E,Pe);if(ie&&y!=="get"&&y!=="head"){const D=await v(Z,T);if(typeof D=="number"&&isFinite(D)&&D>Be)throw new J("Request body larger than maxBodyLength limit",J.ERR_BAD_REQUEST,E,Pe)}if(O&&h&&y!=="get"&&y!=="head"&&(Ze=await v(Z,T))!==0){let D=new i(b,{method:"POST",body:T,duplex:"half"}),U;if(w.isFormData(T)&&(U=D.headers.get("content-type"))&&Z.setContentType(U),D.body){const[W,le]=md(Ze,hs(yd(O)));T=vd(D.body,Td,W,le)}}w.isString($)||($=$?"include":"omit");const Ue=c&&"credentials"in i.prototype;if(w.isFormData(T)){const D=Z.getContentType();D&&/^multipart\/form-data/i.test(D)&&!/boundary=/i.test(D)&&Z.delete("content-type")}Z.set("User-Agent","axios/"+rl,!1);const ct={...ce,signal:Se,method:y.toUpperCase(),headers:Z.normalize().toJSON(),body:T,duplex:"half",credentials:Ue?$:void 0};Pe=c&&new i(b,ct);let S=await(c?he(Pe,ce):he(b,ct));if(pe){const D=w.toFiniteNumber(S.headers.get("content-length"));if(D!=null&&D>fe)throw new J("maxContentLength size of "+fe+" exceeded",J.ERR_BAD_RESPONSE,E,Pe)}const de=f&&(Q==="stream"||Q==="response");if(f&&S.body&&(F||pe||de&&Qe)){const D={};["status","statusText","headers"].forEach(A=>{D[A]=S[A]});const U=w.toFiniteNumber(S.headers.get("content-length")),[W,le]=F&&md(U,hs(yd(F),!0))||[];let g=0;const m=A=>{if(pe&&(g=A,g>fe))throw new J("maxContentLength size of "+fe+" exceeded",J.ERR_BAD_RESPONSE,E,Pe);W&&W(A)};S=new s(vd(S.body,Td,m,()=>{le&&le(),Qe&&Qe()}),D)}Q=Q||"text";let I=await C[w.findKey(C,Q)||"text"](S,E);if(pe&&!f&&!de){let D;if(I!=null&&(typeof I.byteLength=="number"?D=I.byteLength:typeof I.size=="number"?D=I.size:typeof I=="string"&&(D=typeof r=="function"?new r().encode(I).byteLength:I.length)),typeof D=="number"&&D>fe)throw new J("maxContentLength size of "+fe+" exceeded",J.ERR_BAD_RESPONSE,E,Pe)}return!de&&Qe&&Qe(),await new Promise((D,U)=>{vg(D,U,{data:I,headers:kt.from(S.headers),status:S.status,statusText:S.statusText,config:E,request:Pe})})}catch(Ue){if(Qe&&Qe(),Se&&Se.aborted&&Se.reason instanceof J){const ct=Se.reason;throw ct.config=E,Pe&&(ct.request=Pe),Ue!==ct&&(ct.cause=Ue),ct}throw Ue&&Ue.name==="TypeError"&&/Load failed|fetch/i.test(Ue.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,E,Pe,Ue&&Ue.response),{cause:Ue.cause||Ue}):J.from(Ue,Ue&&Ue.code,E,Pe,Ue&&Ue.response)}}},fw=new Map,Eg=n=>{let e=n&&n.env||{};const{fetch:t,Request:r,Response:o}=e,i=[r,o,t];let s=i.length,a=s,c,l,u=fw;for(;a--;)c=i[a],l=u.get(c),l===void 0&&u.set(c,l=a?new Map:hw(e)),u=l;return l};Eg();const ol={http:ME,xhr:sw,fetch:{get:Eg}};w.forEach(ol,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:e})}});const Ed=n=>`- ${n}`,gw=n=>w.isFunction(n)||n===null||n===!1;function pw(n,e){n=w.isArray(n)?n:[n];const{length:t}=n;let r,o;const i={};for(let s=0;s<t;s++){r=n[s];let a;if(o=r,!gw(r)&&(o=ol[(a=String(r)).toLowerCase()],o===void 0))throw new J(`Unknown adapter '${a}'`);if(o&&(w.isFunction(o)||(o=o.get(e))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
|
|
`+s.map(Ed).join(`
|
|
`):" "+Ed(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const wg={getAdapter:pw,adapters:ol};function ka(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ri(null,n)}function wd(n){return ka(n),n.headers=kt.from(n.headers),n.data=Ra.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),wg.getAdapter(n.adapter||Si.adapter,n)(n).then(function(r){ka(n),n.response=r;try{r.data=Ra.call(n,n.transformResponse,r)}finally{delete n.response}return r.headers=kt.from(r.headers),r},function(r){if(!Cg(r)&&(ka(n),r&&r.response)){n.response=r.response;try{r.response.data=Ra.call(n,n.transformResponse,r.response)}finally{delete n.response}r.response.headers=kt.from(r.response.headers)}return Promise.reject(r)})}const Ws={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ws[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const _d={};Ws.transitional=function(e,t,r){function o(i,s){return"[Axios v"+rl+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new J(o(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!_d[s]&&(_d[s]=!0,console.warn(o(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,a):!0}};Ws.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function mw(n,e,t){if(typeof n!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(e,i)?e[i]:void 0;if(s){const a=n[i],c=a===void 0||s(a,i,n);if(c!==!0)throw new J("option "+i+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const es={assertOptions:mw,validators:Ws},Vt=es.validators;let Dr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new pd,response:new pd}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const s=o.stack.indexOf(`
|
|
`);return s===-1?"":o.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
|
|
`),a=s===-1?-1:i.indexOf(`
|
|
`,s+1),c=a===-1?"":i.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
`+i)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Lr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:i}=t;r!==void 0&&es.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean),legacyInterceptorReqResOrdering:Vt.transitional(Vt.boolean)},!1),o!=null&&(w.isFunction(o)?t.paramsSerializer={serialize:o}:es.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),es.assertOptions(t,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[t.method]);i&&w.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete i[C]}),t.headers=kt.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(t)===!1)return;c=c&&p.synchronous;const v=t.transitional||tl;v&&v.legacyInterceptorReqResOrdering?a.unshift(p.fulfilled,p.rejected):a.push(p.fulfilled,p.rejected)});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const C=[wd.bind(this),void 0];for(C.unshift(...a),C.push(...l),h=C.length,u=Promise.resolve(t);d<h;)u=u.then(C[d++],C[d++]);return u}h=a.length;let f=t;for(;d<h;){const C=a[d++],p=a[d++];try{f=C(f)}catch(v){p.call(this,v);break}}try{u=wd.call(this,f)}catch(C){return Promise.reject(C)}for(d=0,h=l.length;d<h;)u=u.then(l[d++],l[d++]);return u}getUri(e){e=Lr(this.defaults,e);const t=Tg(e.baseURL,e.url,e.allowAbsoluteUrls);return mg(t,e.params,e.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(e){Dr.prototype[e]=function(t,r){return this.request(Lr(r||{},{method:e,url:t,data:(r||{}).data}))}});w.forEach(["post","put","patch","query"],function(e){function t(r){return function(i,s,a){return this.request(Lr(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Dr.prototype[e]=t(),e!=="query"&&(Dr.prototype[e+"Form"]=t(!0))});let yw=class _g{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Ri(i,s,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new _g(function(o){e=o}),cancel:e}}};function Cw(n){return function(t){return n.apply(null,t)}}function vw(n){return w.isObject(n)&&n.isAxiosError===!0}const hc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hc).forEach(([n,e])=>{hc[e]=n});function bg(n){const e=new Dr(n),t=ig(Dr.prototype.request,e);return w.extend(t,Dr.prototype,e,{allOwnKeys:!0}),w.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return bg(Lr(n,o))},t}const Je=bg(Si);Je.Axios=Dr;Je.CanceledError=Ri;Je.CancelToken=yw;Je.isCancel=Cg;Je.VERSION=rl;Je.toFormData=Qs;Je.AxiosError=J;Je.Cancel=Je.CanceledError;Je.all=function(e){return Promise.all(e)};Je.spread=Cw;Je.isAxiosError=vw;Je.mergeConfig=Lr;Je.AxiosHeaders=kt;Je.formToJSON=n=>yg(w.isHTMLForm(n)?new FormData(n):n);Je.getAdapter=wg.getAdapter;Je.HttpStatusCode=hc;Je.default=Je;const{Axios:hS,AxiosError:fS,CanceledError:gS,isCancel:pS,CancelToken:mS,VERSION:yS,all:CS,Cancel:vS,isAxiosError:TS,spread:AS,toFormData:ES,AxiosHeaders:wS,HttpStatusCode:_S,formToJSON:bS,getAdapter:IS,mergeConfig:SS,create:RS}=Je,fs=Je.create({baseURL:"/cc-dashboard",headers:{"Content-Type":"application/json"}});function Tw(n,e){fs.interceptors.request.use(t=>{const r=n();return r&&(t.headers.Authorization=`Bearer ${r}`),t}),fs.interceptors.response.use(t=>t,t=>{var r;return((r=t.response)==null?void 0:r.status)===401&&e(),Promise.reject(t)})}/*! @azure/msal-common v14.16.1 2025-08-05 */const R={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",NOT_AVAILABLE:"Not Available",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",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"},Bi={CLIENT_ERROR_RANGE_START:400,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR_RANGE_START:500,SERVER_ERROR_RANGE_END:599},Po=[R.OPENID_SCOPE,R.PROFILE_SCOPE,R.OFFLINE_ACCESS_SCOPE],bd=[...Po,R.EMAIL_SCOPE],bt={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},it={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},ur={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Ki={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},at={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Id={PLAIN:"plain",S256:"S256"},ki={QUERY:"query",FRAGMENT:"fragment"},Aw={...ki},Ig={AUTHORIZATION_CODE_GRANT:"authorization_code",REFRESH_TOKEN_GRANT:"refresh_token"},qi={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",GENERIC_ACCOUNT_TYPE:"Generic"},yt={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},ae={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},il="appmetadata",Ew="client_info",ei="1",gs={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Dt={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},ut={SCHEMA_VERSION:5,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"},Ne={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},ti={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Sd={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Rd={username:"username",password:"password"},$i={httpSuccess:200,httpBadRequest:400},zr={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},Oa={CONFIGURED_NO_AUTO_DETECTION:"2",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},er={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},ww={Pop:"pop"},_w=300;/*! @azure/msal-common v14.16.1 2025-08-05 */const sl="unexpected_error",bw="post_request_failed";/*! @azure/msal-common v14.16.1 2025-08-05 */const kd={[sl]:"Unexpected error in authentication.",[bw]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class Fe extends Error{constructor(e,t,r){const o=t?`${e}: ${t}`:e;super(o),Object.setPrototypeOf(this,Fe.prototype),this.errorCode=e||R.EMPTY_STRING,this.errorMessage=t||R.EMPTY_STRING,this.subError=r||R.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function Sg(n,e){return new Fe(n,e?`${kd[n]} ${e}`:kd[n])}/*! @azure/msal-common v14.16.1 2025-08-05 */const al="client_info_decoding_error",Rg="client_info_empty_error",cl="token_parsing_error",kg="null_or_empty_token",Mn="endpoints_resolution_error",Og="network_error",Pg="openid_config_error",Ng="hash_not_deserialized",_o="invalid_state",Mg="state_mismatch",ps="state_not_found",xg="nonce_mismatch",ll="auth_time_not_found",Dg="max_age_transpired",Iw="multiple_matching_tokens",Sw="multiple_matching_accounts",Lg="multiple_matching_appMetadata",Ug="request_cannot_be_made",Hg="cannot_remove_empty_scope",Fg="cannot_append_scopeset",fc="empty_input_scopeset",Rw="device_code_polling_cancelled",kw="device_code_expired",Ow="device_code_unknown_error",ul="no_account_in_silent_request",Bg="invalid_cache_record",dl="invalid_cache_environment",gc="no_account_found",pc="no_crypto_object",mc="unexpected_credential_type",Pw="invalid_assertion",Nw="invalid_client_credential",Fn="token_refresh_required",Mw="user_timeout_reached",Kg="token_claims_cnf_required_for_signedjwt",qg="authorization_code_missing_from_server_response",xw="binding_key_not_removed",$g="end_session_endpoint_not_supported",hl="key_id_missing",Dw="no_network_connectivity",Lw="user_canceled",Uw="missing_tenant_id_error",ge="method_not_implemented",Hw="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.1 2025-08-05 */const Od={[al]:"The client info could not be parsed/decoded correctly",[Rg]:"The client info was empty",[cl]:"Token cannot be parsed",[kg]:"The token is null or empty",[Mn]:"Endpoints cannot be resolved",[Og]:"Network request failed",[Pg]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Ng]:"The hash parameters could not be deserialized",[_o]:"State was not the expected format",[Mg]:"State mismatch error",[ps]:"State not found",[xg]:"Nonce mismatch error",[ll]:"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.",[Dg]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[Iw]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[Sw]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[Lg]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[Ug]:"Token request cannot be made without authorization code or refresh token.",[Hg]:"Cannot remove null or empty scope from ScopeSet",[Fg]:"Cannot append ScopeSet",[fc]:"Empty input ScopeSet cannot be processed",[Rw]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[kw]:"Device code is expired.",[Ow]:"Device code stopped polling for unknown reasons.",[ul]:"Please pass an account object, silent flow is not supported without account information",[Bg]:"Cache record object was null or undefined.",[dl]:"Invalid environment when attempting to create cache entry",[gc]:"No account found in cache for given key.",[pc]:"No crypto object detected.",[mc]:"Unexpected credential type.",[Pw]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[Nw]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Fn]:"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.",[Mw]:"User defined timeout for device code polling reached",[Kg]:"Cannot generate a POP jwt if the token_claims are not populated",[qg]:"Server response does not contain an authorization code to proceed",[xw]:"Could not remove the credential's binding key from storage.",[$g]:"The provided authority does not support logout",[hl]:"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.",[Dw]:"No network connectivity. Check your internet connection.",[Lw]:"User cancelled the flow.",[Uw]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[ge]:"This method has not been implemented",[Hw]:"The nested app auth bridge is disabled"};class Ys extends Fe{constructor(e,t){super(e,t?`${Od[e]}: ${t}`:Od[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,Ys.prototype)}}function H(n,e){return new Ys(n,e)}/*! @azure/msal-common v14.16.1 2025-08-05 */const ms={createNewGuid:()=>{throw H(ge)},base64Decode:()=>{throw H(ge)},base64Encode:()=>{throw H(ge)},base64UrlEncode:()=>{throw H(ge)},encodeKid:()=>{throw H(ge)},async getPublicKeyThumbprint(){throw H(ge)},async removeTokenBindingKey(){throw H(ge)},async clearKeystore(){throw H(ge)},async signJwt(){throw H(ge)},async hashString(){throw H(ge)}};/*! @azure/msal-common v14.16.1 2025-08-05 */var Ke;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(Ke||(Ke={}));class hr{constructor(e,t,r){this.level=Ke.Info;const o=()=>{},i=e||hr.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Ke.Info,this.correlationId=i.correlationId||R.EMPTY_STRING,this.packageName=t||R.EMPTY_STRING,this.packageVersion=r||R.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ke.Info}}clone(e,t,r){return new hr({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${Ke[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,i,t.containsPii||!1)}executeCallback(e,t,r){this.localCallback&&this.localCallback(e,t,r)}error(e,t){this.logMessage(e,{logLevel:Ke.Error,containsPii:!1,correlationId:t||R.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:Ke.Error,containsPii:!0,correlationId:t||R.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:Ke.Warning,containsPii:!1,correlationId:t||R.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:Ke.Warning,containsPii:!0,correlationId:t||R.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:Ke.Info,containsPii:!1,correlationId:t||R.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:Ke.Info,containsPii:!0,correlationId:t||R.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:Ke.Verbose,containsPii:!1,correlationId:t||R.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:Ke.Verbose,containsPii:!0,correlationId:t||R.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:Ke.Trace,containsPii:!1,correlationId:t||R.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:Ke.Trace,containsPii:!0,correlationId:t||R.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.16.1 2025-08-05 */const jg="@azure/msal-common",fl="14.16.1";/*! @azure/msal-common v14.16.1 2025-08-05 */const gl={None:"none"};/*! @azure/msal-common v14.16.1 2025-08-05 */function qr(n,e){const t=Fw(n);try{const r=e(t);return JSON.parse(r)}catch{throw H(cl)}}function Fw(n){if(!n)throw H(kg);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw H(cl);return t[2]}function Gg(n,e){if(e===0||Date.now()-3e5>n+e)throw H(Dg)}/*! @azure/msal-common v14.16.1 2025-08-05 */function bn(){return Math.round(new Date().getTime()/1e3)}function yc(n,e){const t=Number(n)||0;return bn()+e>t}function Bw(n){return Number(n)>bn()}/*! @azure/msal-common v14.16.1 2025-08-05 */function to(n){return[Kw(n),qw(n),$w(n),jw(n),Gw(n)].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}function Js(n,e,t,r,o){return{credentialType:ae.ID_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t,realm:o}}function Xs(n,e,t,r,o,i,s,a,c,l,u,d,h,f,C){var v,E;const p={homeAccountId:n,credentialType:ae.ACCESS_TOKEN,secret:t,cachedAt:bn().toString(),expiresOn:s.toString(),extendedExpiresOn:a.toString(),environment:e,clientId:r,realm:o,target:i,tokenType:u||Ne.BEARER};if(d&&(p.userAssertionHash=d),l&&(p.refreshOn=l.toString()),f&&(p.requestedClaims=f,p.requestedClaimsHash=C),((v=p.tokenType)==null?void 0:v.toLowerCase())!==Ne.BEARER.toLowerCase())switch(p.credentialType=ae.ACCESS_TOKEN_WITH_AUTH_SCHEME,p.tokenType){case Ne.POP:const b=qr(t,c);if(!((E=b==null?void 0:b.cnf)!=null&&E.kid))throw H(Kg);p.keyId=b.cnf.kid;break;case Ne.SSH:p.keyId=h}return p}function Vg(n,e,t,r,o,i,s){const a={credentialType:ae.REFRESH_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t};return i&&(a.userAssertionHash=i),o&&(a.familyId=o),s&&(a.expiresOn=s.toString()),a}function pl(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function Pd(n){return n?pl(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===ae.ACCESS_TOKEN||n.credentialType===ae.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function Nd(n){return n?pl(n)&&n.hasOwnProperty("realm")&&n.credentialType===ae.ID_TOKEN:!1}function Md(n){return n?pl(n)&&n.credentialType===ae.REFRESH_TOKEN:!1}function Kw(n){return[n.homeAccountId,n.environment].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}function qw(n){const e=n.credentialType===ae.REFRESH_TOKEN&&n.familyId||n.clientId;return[n.credentialType,e,n.realm||""].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}function $w(n){return(n.target||"").toLowerCase()}function jw(n){return(n.requestedClaimsHash||"").toLowerCase()}function Gw(n){return n.tokenType&&n.tokenType.toLowerCase()!==Ne.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function Vw(n,e){const t=n.indexOf(ut.CACHE_KEY)===0;let r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),t&&r}function zw(n,e){let t=!1;n&&(t=n.indexOf(ti.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),t&&r}function Qw({environment:n,clientId:e}){return[il,n,e].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}function Ww(n,e){return e?n.indexOf(il)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function Yw(n,e){return e?n.indexOf(gs.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function xd(){return bn()+gs.REFRESH_TIME_SECONDS}function ji(n,e,t){n.authorization_endpoint=e.authorization_endpoint,n.token_endpoint=e.token_endpoint,n.end_session_endpoint=e.end_session_endpoint,n.issuer=e.issuer,n.endpointsFromNetwork=t,n.jwks_uri=e.jwks_uri}function Pa(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function Dd(n){return n.expiresAt<=bn()}/*! @azure/msal-common v14.16.1 2025-08-05 */const zg="redirect_uri_empty",Jw="claims_request_parsing_error",Qg="authority_uri_insecure",jo="url_parse_error",Wg="empty_url_error",Yg="empty_input_scopes_error",Jg="invalid_prompt_value",ml="invalid_claims",Xg="token_request_empty",Zg="logout_request_empty",ep="invalid_code_challenge_method",yl="pkce_params_missing",Cl="invalid_cloud_discovery_metadata",tp="invalid_authority_metadata",np="untrusted_authority",Zs="missing_ssh_jwk",rp="missing_ssh_kid",Xw="missing_nonce_authentication_header",Zw="invalid_authentication_header",op="cannot_set_OIDCOptions",ip="cannot_allow_native_broker",sp="authority_mismatch";/*! @azure/msal-common v14.16.1 2025-08-05 */const e_={[zg]:"A redirect URI is required for all calls, and none has been set.",[Jw]:"Could not parse the given claims request object.",[Qg]:"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",[jo]:"URL could not be parsed into appropriate segments.",[Wg]:"URL was empty or null.",[Yg]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Jg]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[ml]:"Given claims parameter must be a stringified JSON object.",[Xg]:"Token request was empty and not found in cache.",[Zg]:"The logout request was null or undefined.",[ep]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[yl]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Cl]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[tp]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[np]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Zs]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[rp]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[Xw]:"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.",[Zw]:"Invalid authentication header provided",[op]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[ip]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[sp]:"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."};class vl extends Fe{constructor(e){super(e,e_[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,vl.prototype)}}function xe(n){return new vl(n)}/*! @azure/msal-common v14.16.1 2025-08-05 */class tn{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},r=e.split("&"),o=i=>decodeURIComponent(i.replace(/\+/g," "));return r.forEach(i=>{if(i.trim()){const[s,a]=i.split(/=(.+)/g,2);s&&a&&(t[o(s)]=o(a))}}),t}static trimArrayEntries(e){return e.map(t=>t.trim())}static removeEmptyStringsFromArray(e){return e.filter(t=>!!t)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Ye{constructor(e){const t=e?tn.trimArrayEntries([...e]):[],r=t?tn.removeEmptyStringsFromArray(t):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(o=>this.scopes.add(o))}static fromString(e){const r=(e||R.EMPTY_STRING).split(" ");return new Ye(r)}static createSearchScopes(e){const t=new Ye(e);return t.containsOnlyOIDCScopes()?t.removeScope(R.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw xe(Yg)}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new Ye(t);return e?r.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(t=>this.containsScope(t))}containsOnlyOIDCScopes(){let e=0;return bd.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(t=>this.appendScope(t))}catch{throw H(Fg)}}removeScope(e){if(!e)throw H(Hg);this.scopes.delete(e.trim())}removeOIDCScopes(){bd.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw H(fc);const t=new Set;return e.scopes.forEach(r=>t.add(r.toLowerCase())),this.scopes.forEach(r=>t.add(r.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw H(fc);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount();return t.size<o+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(t=>e.push(t)),e}printScopes(){return this.scopes?this.asArray().join(" "):R.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.16.1 2025-08-05 */function ys(n,e){if(!n)throw H(Rg);try{const t=e(n);return JSON.parse(t)}catch{throw H(al)}}function no(n){if(!n)throw H(al);const e=n.split(yt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?R.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.16.1 2025-08-05 */function Cs(n,e){return!!n&&!!e&&n===e.split(".")[1]}function Tl(n,e,t,r){if(r){const{oid:o,sub:i,tid:s,name:a,tfp:c,acr:l}=r,u=s||c||l||"";return{tenantId:u,localAccountId:o||i||"",name:a,isHomeTenant:Cs(u,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:Cs(t,n)}}function Al(n,e,t,r){let o=n;if(e){const{isHomeTenant:i,...s}=e;o={...n,...s}}if(t){const{isHomeTenant:i,...s}=Tl(n.homeAccountId,n.localAccountId,n.tenantId,t);return o={...o,...s,idTokenClaims:t,idToken:r},o}return o}/*! @azure/msal-common v14.16.1 2025-08-05 */const Zt={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.1 2025-08-05 */function ap(n){return n&&(n.tid||n.tfp||n.acr)||null}/*! @azure/msal-common v14.16.1 2025-08-05 */const qn={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.1 2025-08-05 */class rt{generateAccountId(){return[this.homeAccountId,this.environment].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return rt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(yt.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,r){var l,u,d,h,f,C;const o=new rt;t.authorityType===Zt.Adfs?o.authorityType=qi.ADFS_ACCOUNT_TYPE:t.protocolMode===qn.AAD?o.authorityType=qi.MSSTS_ACCOUNT_TYPE:o.authorityType=qi.GENERIC_ACCOUNT_TYPE;let i;e.clientInfo&&r&&(i=ys(e.clientInfo,r)),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const s=e.environment||t&&t.getPreferredCache();if(!s)throw H(dl);o.environment=s,o.realm=(i==null?void 0:i.utid)||ap(e.idTokenClaims)||"",o.localAccountId=(i==null?void 0:i.uid)||((l=e.idTokenClaims)==null?void 0:l.oid)||((u=e.idTokenClaims)==null?void 0:u.sub)||"";const a=((d=e.idTokenClaims)==null?void 0:d.preferred_username)||((h=e.idTokenClaims)==null?void 0:h.upn),c=(f=e.idTokenClaims)!=null&&f.emails?e.idTokenClaims.emails[0]:null;if(o.username=a||c||"",o.name=((C=e.idTokenClaims)==null?void 0:C.name)||"",o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const p=Tl(e.homeAccountId,o.localAccountId,o.realm,e.idTokenClaims);o.tenantProfiles=[p]}return o}static createFromAccountInfo(e,t,r){var i;const o=new rt;return o.authorityType=e.authorityType||qi.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.cloudGraphHostName=t,o.msGraphHost=r,o.tenantProfiles=Array.from(((i=e.tenantProfiles)==null?void 0:i.values())||[]),o}static generateHomeAccountId(e,t,r,o,i){if(!(t===Zt.Adfs||t===Zt.Dsts)){if(e)try{const s=ys(e,o.base64Decode);if(s.uid&&s.utid)return`${s.uid}.${s.utid}`}catch{}r.warning("No client info in response")}return(i==null?void 0:i.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,r){if(!e||!t)return!1;let o=!0;if(r){const i=e.idTokenClaims||{},s=t.idTokenClaims||{};o=i.iat===s.iat&&i.nonce===s.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}}/*! @azure/msal-common v14.16.1 2025-08-05 */function cp(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function vs(n){if(!n||n.indexOf("=")<0)return null;try{const e=cp(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw H(Ng)}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */class ve{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw xe(Wg);e.includes("#")||(this._urlString=ve.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return tn.endsWith(t,"?")?t=t.slice(0,-1):tn.endsWith(t,"?/")&&(t=t.slice(0,-2)),tn.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw xe(jo)}if(!e.HostNameAndPort||!e.PathSegments)throw xe(jo);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw xe(Qg)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return ve.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===ur.COMMON||r[0]===ur.ORGANIZATIONS)&&(r[0]=e),ve.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw xe(jo);const r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let o=r.AbsolutePath.split("/");return o=o.filter(i=>i&&i.length>0),r.PathSegments=o,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw xe(jo);return r[2]}static getAbsoluteUrl(e,t){if(e[0]===R.FORWARD_SLASH){const o=new ve(t).getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new ve(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!vs(e)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const lp={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{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"]}]}},Ld=lp.endpointMetadata,El=lp.instanceDiscoveryMetadata,up=new Set;El.metadata.forEach(n=>{n.aliases.forEach(e=>{up.add(e)})});function t_(n,e){var o;let t;const r=n.canonicalAuthority;if(r){const i=new ve(r).getUrlComponents().HostNameAndPort;t=Ud(i,(o=n.cloudDiscoveryMetadata)==null?void 0:o.metadata,Dt.CONFIG,e)||Ud(i,El.metadata,Dt.HARDCODED_VALUES,e)||n.knownAuthorities}return t||[]}function Ud(n,e,t,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${t}`),n&&e){const o=Ts(e,n);if(o)return r==null||r.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${t}, returning aliases`),o.aliases;r==null||r.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${t}`)}return null}function n_(n){return Ts(El.metadata,n)}function Ts(n,e){for(let t=0;t<n.length;t++){const r=n[t];if(r.aliases.includes(e))return r}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */const wl="cache_quota_exceeded",_l="cache_error_unknown";/*! @azure/msal-common v14.16.1 2025-08-05 */const Na={[wl]:"Exceeded cache storage capacity.",[_l]:"Unexpected error occurred when using cache storage."};class co extends Error{constructor(e,t){const r=t||(Na[e]?Na[e]:Na[_l]);super(`${e}: ${r}`),Object.setPrototypeOf(this,co.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}function dp(n){return n instanceof Error?n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED"||n.message.includes("exceeded the quota")?new co(wl):new co(n.name,n.message):new co(_l)}/*! @azure/msal-common v14.16.1 2025-08-05 */class bo{constructor(e,t,r,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(jg,fl),this.staticAuthorityOptions=o}getAllAccounts(e,t){return this.buildTenantProfiles(this.getAccountsFilteredBy(t||{},e),e,t)}getAccountInfoFilteredBy(e,t){const r=this.getAllAccounts(t,e);return r.length>1?r.sort(i=>i.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e,t){const r=this.getAccountsFilteredBy(e,t);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,t,r){return e.flatMap(o=>this.getTenantProfilesFromAccountEntity(o,t,r==null?void 0:r.tenantId,r))}getTenantedAccountInfoByFilter(e,t,r,o,i){let s=null,a;if(i&&!this.tenantProfileMatchesFilter(r,i))return null;const c=this.getIdToken(e,o,t,r.tenantId);return c&&(a=qr(c.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,i))?null:(s=Al(e,r,a,c==null?void 0:c.secret),s)}getTenantProfilesFromAccountEntity(e,t,r,o){const i=e.getAccountInfo();let s=i.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const l=s.get(r);if(l)s=new Map([[r,l]]);else return[]}const c=[];return s.forEach(l=>{const u=this.getTenantedAccountInfoByFilter(i,a,l,t,o);u&&c.push(u)}),c}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)||t.name&&e.name!==t.name||t.isHomeTenant!==void 0&&e.isHomeTenant!==t.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,t){return!(t&&(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)||t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)||t.username&&!this.matchUsername(e.preferred_username,t.username)||t.name&&!this.matchName(e,t.name)||t.sid&&!this.matchSid(e,t.sid)))}async saveCacheRecord(e,t,r){var o;if(!e)throw H(Bg);try{e.account&&this.setAccount(e.account,t),e.idToken&&(r==null?void 0:r.idToken)!==!1&&this.setIdTokenCredential(e.idToken,t),e.accessToken&&(r==null?void 0:r.accessToken)!==!1&&await this.saveAccessToken(e.accessToken,t),e.refreshToken&&(r==null?void 0:r.refreshToken)!==!1&&this.setRefreshTokenCredential(e.refreshToken,t),e.appMetadata&&this.setAppMetadata(e.appMetadata,t)}catch(i){throw(o=this.commonLogger)==null||o.error("CacheManager.saveCacheRecord: failed"),i instanceof Fe?i:dp(i)}}async saveAccessToken(e,t){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),i=Ye.fromString(e.target);o.accessToken.forEach(s=>{if(!this.accessTokenKeyMatchesFilter(s,r,!1))return;const a=this.getAccessTokenCredential(s,t);a&&this.credentialMatchesFilter(a,r)&&Ye.fromString(a.target).intersectingScopeSets(i)&&this.removeAccessToken(s,t)}),this.setAccessTokenCredential(e,t)}getAccountsFilteredBy(e,t){const r=this.getAccountKeys(),o=[];return r.forEach(i=>{var l;if(!this.isAccountKey(i,e.homeAccountId))return;const s=this.getAccount(i,t,this.commonLogger);if(!s||e.homeAccountId&&!this.matchHomeAccountId(s,e.homeAccountId)||e.username&&!this.matchUsername(s.username,e.username)||e.environment&&!this.matchEnvironment(s,e.environment)||e.realm&&!this.matchRealm(s,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(s,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(s,e.authorityType))return;const a={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},c=(l=s.tenantProfiles)==null?void 0:l.filter(u=>this.tenantProfileMatchesFilter(u,a));c&&c.length===0||o.push(s)}),o}isAccountKey(e,t,r){return!(e.split(yt.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))}isCredentialKey(e){if(e.split(yt.CACHE_KEY_SEPARATOR).length<6)return!1;const t=e.toLowerCase();if(t.indexOf(ae.ID_TOKEN.toLowerCase())===-1&&t.indexOf(ae.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(ae.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(ae.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(ae.REFRESH_TOKEN.toLowerCase())>-1){const r=`${ae.REFRESH_TOKEN}${yt.CACHE_KEY_SEPARATOR}${this.clientId}${yt.CACHE_KEY_SEPARATOR}`,o=`${ae.REFRESH_TOKEN}${yt.CACHE_KEY_SEPARATOR}${ei}${yt.CACHE_KEY_SEPARATOR}`;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(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===ae.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Ne.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))}getAppMetadataFilteredBy(e){const t=this.getKeys(),r={};return t.forEach(o=>{if(!this.isAppMetadata(o))return;const i=this.getAppMetadata(o);i&&(e.environment&&!this.matchEnvironment(i,e.environment)||e.clientId&&!this.matchClientId(i,e.clientId)||(r[o]=i))}),r}getAuthorityMetadataByAlias(e){const t=this.getAuthorityMetadataKeys();let r=null;return t.forEach(o=>{if(!this.isAuthorityMetadata(o)||o.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(o);i&&i.aliases.indexOf(e)!==-1&&(r=i)}),r}async removeAllAccounts(e){const t=this.getAccountKeys(),r=[];t.forEach(o=>{r.push(this.removeAccount(o,e))}),await Promise.all(r)}async removeAccount(e,t){const r=this.getAccount(e,t,this.commonLogger);r&&(await this.removeAccountContext(r,t),this.removeItem(e,t))}async removeAccountContext(e,t){const r=this.getTokenKeys(),o=e.generateAccountId();r.idToken.forEach(i=>{i.indexOf(o)===0&&this.removeIdToken(i,t)}),r.accessToken.forEach(i=>{i.indexOf(o)===0&&this.removeAccessToken(i,t)}),r.refreshToken.forEach(i=>{i.indexOf(o)===0&&this.removeRefreshToken(i,t)}),this.getKeys().forEach(i=>{i.includes(o)&&this.removeItem(i,t)})}updateOutdatedCachedAccount(e,t,r,o){var i;if(t&&t.isSingleTenant()){(i=this.commonLogger)==null||i.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const s=this.getAccountKeys().filter(d=>d.startsWith(t.homeAccountId)),a=[];s.forEach(d=>{const h=this.getCachedAccountEntity(d,r);h&&a.push(h)});const c=a.find(d=>Cs(d.realm,d.homeAccountId))||a[0];c.tenantProfiles=a.map(d=>({tenantId:d.realm,localAccountId:d.localAccountId,name:d.name,isHomeTenant:Cs(d.realm,d.homeAccountId)}));const l=bo.toObject(new rt,{...c}),u=l.generateAccountKey();return s.forEach(d=>{d!==u&&this.removeOutdatedAccount(e,r)}),this.setAccount(l,r),o==null||o.verbose("Updated an outdated account entity in the cache"),l}return t}removeAccessToken(e,t){const r=this.getAccessTokenCredential(e,t);if(this.removeItem(e,t),!r||r.credentialType.toLowerCase()!==ae.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||r.tokenType!==Ne.POP)return;const o=r.keyId;o&&this.cryptoImpl.removeTokenBindingKey(o).catch(()=>{this.commonLogger.error("Binding key could not be removed")})}removeAppMetadata(e){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r,e)}),!0}readAccountFromCache(e,t){const r=rt.generateAccountCacheKey(e);return this.getAccount(r,t,this.commonLogger)}getIdToken(e,t,r,o,i){this.commonLogger.trace("CacheManager - getIdToken called");const s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ae.ID_TOKEN,clientId:this.clientId,realm:o},a=this.getIdTokensByFilter(s,t,r),c=a.size;if(c<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(c>1){let l=a;if(!o){const u=new Map;a.forEach((h,f)=>{h.realm===e.tenantId&&u.set(f,h)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),a.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;l=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),l.forEach((u,d)=>{this.removeIdToken(d,t)}),i&&t&&i.addFields({multiMatchedID:a.size},t),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),a.values().next().value}getIdTokensByFilter(e,t,r){const o=r&&r.idToken||this.getTokenKeys().idToken,i=new Map;return o.forEach(s=>{if(!this.idTokenKeyMatchesFilter(s,{clientId:this.clientId,...e}))return;const a=this.getIdTokenCredential(s,t);a&&this.credentialMatchesFilter(a,e)&&i.set(s,a)}),i}idTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}removeIdToken(e,t){this.removeItem(e,t)}removeRefreshToken(e,t){this.removeItem(e,t)}getAccessToken(e,t,r,o,i){this.commonLogger.trace("CacheManager - getAccessToken called");const s=Ye.createSearchScopes(t.scopes),a=t.authenticationScheme||Ne.BEARER,c=a.toLowerCase()!==Ne.BEARER.toLowerCase()?ae.ACCESS_TOKEN_WITH_AUTH_SCHEME:ae.ACCESS_TOKEN,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:o||e.tenantId,target:s,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},u=r&&r.accessToken||this.getTokenKeys().accessToken,d=[];u.forEach(f=>{if(this.accessTokenKeyMatchesFilter(f,l,!0)){const C=this.getAccessTokenCredential(f,t.correlationId);C&&this.credentialMatchesFilter(C,l)&&d.push(C)}});const h=d.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),d.forEach(f=>{this.removeAccessToken(to(f),t.correlationId)}),i&&t.correlationId&&i.addFields({multiMatchedAT:d.length},t.correlationId),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),d[0])}accessTokenKeyMatchesFilter(e,t,r){const 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){const i=t.target.asArray();for(let s=0;s<i.length;s++){if(r&&!o.includes(i[s].toLowerCase()))return!1;if(!r&&o.includes(i[s].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,t){const r=this.getTokenKeys(),o=[];return r.accessToken.forEach(i=>{if(!this.accessTokenKeyMatchesFilter(i,e,!0))return;const s=this.getAccessTokenCredential(i,t);s&&this.credentialMatchesFilter(s,e)&&o.push(s)}),o}getRefreshToken(e,t,r,o,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const s=t?ei:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ae.REFRESH_TOKEN,clientId:this.clientId,familyId:s},c=o&&o.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,a)){const h=this.getRefreshTokenCredential(d,r);h&&this.credentialMatchesFilter(h,a)&&l.push(h)}});const u=l.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&i&&r&&i.addFields({multiMatchedRT:u},r),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])}refreshTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),o=Object.keys(r).map(s=>r[s]),i=o.length;if(i<1)return null;if(i>1)throw H(Lg);return o[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===ei)}matchHomeAccountId(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,t){const r=e.oid||e.sub;return t===r}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){var r;return t.toLowerCase()===((r=e.name)==null?void 0:r.toLowerCase())}matchUsername(e,t){return!!(e&&typeof e=="string"&&(t==null?void 0:t.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){const o=t_(this.staticAuthorityOptions,this.commonLogger);if(o.includes(t)&&o.includes(e.environment))return!0}const r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){var r;return((r=e.realm)==null?void 0:r.toLowerCase())===t.toLowerCase()}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||e.preferred_username===t||e.upn===t}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){return e.credentialType!==ae.ACCESS_TOKEN&&e.credentialType!==ae.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:Ye.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(il)!==-1}isAuthorityMetadata(e){return e.indexOf(gs.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${gs.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class r_ extends bo{setAccount(){throw H(ge)}getAccount(){throw H(ge)}getCachedAccountEntity(){throw H(ge)}setIdTokenCredential(){throw H(ge)}getIdTokenCredential(){throw H(ge)}setAccessTokenCredential(){throw H(ge)}getAccessTokenCredential(){throw H(ge)}setRefreshTokenCredential(){throw H(ge)}getRefreshTokenCredential(){throw H(ge)}setAppMetadata(){throw H(ge)}getAppMetadata(){throw H(ge)}setServerTelemetry(){throw H(ge)}getServerTelemetry(){throw H(ge)}setAuthorityMetadata(){throw H(ge)}getAuthorityMetadata(){throw H(ge)}getAuthorityMetadataKeys(){throw H(ge)}setThrottlingCache(){throw H(ge)}getThrottlingCache(){throw H(ge)}removeItem(){throw H(ge)}getKeys(){throw H(ge)}getAccountKeys(){throw H(ge)}getTokenKeys(){throw H(ge)}updateCredentialCacheKey(){throw H(ge)}removeOutdatedAccount(){throw H(ge)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const hp={tokenRenewalOffsetSeconds:_w,preventCorsPreflight:!1},o_={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ke.Info,correlationId:R.EMPTY_STRING},i_={claimsBasedCachingEnabled:!1},s_={async sendGetRequestAsync(){throw H(ge)},async sendPostRequestAsync(){throw H(ge)}},a_={sku:R.SKU,version:fl,cpu:R.EMPTY_STRING,os:R.EMPTY_STRING},c_={clientSecret:R.EMPTY_STRING,clientAssertion:void 0},l_={azureCloudInstance:gl.None,tenant:`${R.DEFAULT_COMMON_TENANT}`},u_={application:{appName:"",appVersion:""}};function d_({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:r,storageInterface:o,networkInterface:i,cryptoInterface:s,clientCredentials:a,libraryInfo:c,telemetry:l,serverTelemetryManager:u,persistencePlugin:d,serializableCache:h}){const f={...o_,...t};return{authOptions:h_(n),systemOptions:{...hp,...e},loggerOptions:f,cacheOptions:{...i_,...r},storageInterface:o||new r_(n.clientId,ms,new hr(f)),networkInterface:i||s_,cryptoInterface:s||ms,clientCredentials:a||c_,libraryInfo:{...a_,...c},telemetry:{...u_,...l},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}function h_(n){return{clientCapabilities:[],azureCloudOptions:l_,skipAuthorityMetadataCache:!1,instanceAware:!1,...n}}function Cc(n){return n.authOptions.authority.options.protocolMode===qn.OIDC}/*! @azure/msal-common v14.16.1 2025-08-05 */const qt={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.1 2025-08-05 */const Ur="client_id",fp="redirect_uri",Hd="response_type",f_="response_mode",g_="grant_type",p_="claims",m_="scope",y_="refresh_token",C_="state",v_="nonce",T_="prompt",A_="code",E_="code_challenge",w_="code_challenge_method",__="code_verifier",b_="client-request-id",I_="x-client-SKU",S_="x-client-VER",R_="x-client-OS",k_="x-client-CPU",O_="x-client-current-telemetry",P_="x-client-last-telemetry",N_="x-ms-lib-capability",M_="x-app-name",x_="x-app-ver",D_="post_logout_redirect_uri",L_="id_token_hint",U_="device_code",H_="client_secret",F_="client_assertion",B_="client_assertion_type",Fd="token_type",Bd="req_cnf",K_="assertion",q_="requested_token_use",Kd="return_spa_code",$_="nativebroker",j_="logout_hint",G_="sid",V_="login_hint",z_="domain_hint",Q_="x-client-xtra-sku",bl="brk_client_id",vc="brk_redirect_uri";/*! @azure/msal-common v14.16.1 2025-08-05 */class Jr{static validateRedirectUri(e){if(!e)throw xe(zg)}static validatePrompt(e){const t=[];for(const r in at)t.push(at[r]);if(t.indexOf(e)<0)throw xe(Jg)}static validateClaims(e){try{JSON.parse(e)}catch{throw xe(ml)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw xe(yl);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Id.PLAIN,Id.S256].indexOf(e)<0)throw xe(ep)}}/*! @azure/msal-common v14.16.1 2025-08-05 */function W_(n,e,t){if(!e)return;const r=n.get(Ur);r&&n.has(bl)&&(t==null||t.addFields({embeddedClientId:r,embeddedRedirectUri:n.get(fp)},e))}class ni{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Hd,encodeURIComponent(R.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Hd,encodeURIComponent(`${R.TOKEN_RESPONSE_TYPE} ${R.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(f_,encodeURIComponent(e||Aw.QUERY))}addNativeBroker(){this.parameters.set($_,encodeURIComponent("1"))}addScopes(e,t=!0,r=Po){t&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=t?[...e||[],...r]:e||[],i=new Ye(o);this.parameters.set(m_,encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(Ur,encodeURIComponent(e))}addRedirectUri(e){Jr.validateRedirectUri(e),this.parameters.set(fp,encodeURIComponent(e))}addPostLogoutRedirectUri(e){Jr.validateRedirectUri(e),this.parameters.set(D_,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(L_,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(z_,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(V_,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(bt.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(bt.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(G_,encodeURIComponent(e))}addClaims(e,t){const r=this.addClientCapabilitiesToClaims(e,t);Jr.validateClaims(r),this.parameters.set(p_,encodeURIComponent(r))}addCorrelationId(e){this.parameters.set(b_,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(I_,e.sku),this.parameters.set(S_,e.version),e.os&&this.parameters.set(R_,e.os),e.cpu&&this.parameters.set(k_,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(M_,e.appName),e!=null&&e.appVersion&&this.parameters.set(x_,e.appVersion)}addPrompt(e){Jr.validatePrompt(e),this.parameters.set(`${T_}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(C_,encodeURIComponent(e))}addNonce(e){this.parameters.set(v_,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(Jr.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(E_,encodeURIComponent(e)),this.parameters.set(w_,encodeURIComponent(t));else throw xe(yl)}addAuthorizationCode(e){this.parameters.set(A_,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(U_,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(y_,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(__,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(H_,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(F_,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(B_,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(K_,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(q_,encodeURIComponent(e))}addGrantType(e){this.parameters.set(g_,encodeURIComponent(e))}addClientInfo(){this.parameters.set(Ew,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([t,r])=>{!this.parameters.has(t)&&r&&this.parameters.set(t,r)})}addClientCapabilitiesToClaims(e,t){let r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw xe(ml)}return t&&t.length>0&&(r.hasOwnProperty(Ki.ACCESS_TOKEN)||(r[Ki.ACCESS_TOKEN]={}),r[Ki.ACCESS_TOKEN][Ki.XMS_CC]={values:t}),JSON.stringify(r)}addUsername(e){this.parameters.set(Rd.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(Rd.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Fd,Ne.POP),this.parameters.set(Bd,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Fd,Ne.SSH),this.parameters.set(Bd,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(O_,e.generateCurrentRequestHeaderValue()),this.parameters.set(P_,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(N_,ti.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(j_,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[bl]=e.brokerClientId,t[vc]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,r)=>{e.push(`${r}=${t}`)}),W_(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.1 2025-08-05 */function Y_(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.1 2025-08-05 */function J_(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.1 2025-08-05 */function X_(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.1 2025-08-05 */const _={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},Z_={InProgress:1};/*! @azure/msal-common v14.16.1 2025-08-05 */const $r=(n,e,t,r,o)=>(...i)=>{t.trace(`Executing function ${e}`);const s=r==null?void 0:r.startMeasurement(e,o);if(o){const a=e+"CallCount";r==null||r.incrementFields({[a]:1},o)}try{const a=n(...i);return s==null||s.end({success:!0}),t.trace(`Returning result from ${e}`),a}catch(a){t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(a))}catch{t.trace("Unable to print error message.")}throw s==null||s.end({success:!1},a),a}},q=(n,e,t,r,o)=>(...i)=>{t.trace(`Executing function ${e}`);const s=r==null?void 0:r.startMeasurement(e,o);if(o){const a=e+"CallCount";r==null||r.incrementFields({[a]:1},o)}return r==null||r.setPreQueueTime(e,o),n(...i).then(a=>(t.trace(`Returning result from ${e}`),s==null||s.end({success:!0}),a)).catch(a=>{t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(a))}catch{t.trace("Unable to print error message.")}throw s==null||s.end({success:!1},a),a})};/*! @azure/msal-common v14.16.1 2025-08-05 */class ea{constructor(e,t,r,o){this.networkInterface=e,this.logger=t,this.performanceClient=r,this.correlationId=o}async detectRegion(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(_.RegionDiscoveryDetectRegion,this.correlationId);let r=e;if(r)t.region_source=zr.ENVIRONMENT_VARIABLE;else{const i=ea.IMDS_OPTIONS;try{const s=await q(this.getRegionFromIMDS.bind(this),_.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(R.IMDS_VERSION,i);if(s.status===$i.httpSuccess&&(r=s.body,t.region_source=zr.IMDS),s.status===$i.httpBadRequest){const a=await q(this.getCurrentVersion.bind(this),_.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(i);if(!a)return t.region_source=zr.FAILED_AUTO_DETECTION,null;const c=await q(this.getRegionFromIMDS.bind(this),_.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,i);c.status===$i.httpSuccess&&(r=c.body,t.region_source=zr.IMDS)}}catch{return t.region_source=zr.FAILED_AUTO_DETECTION,null}}return r||(t.region_source=zr.FAILED_AUTO_DETECTION),r||null}async getRegionFromIMDS(e,t){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(_.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${R.IMDS_ENDPOINT}?api-version=${e}&format=text`,t,R.IMDS_TIMEOUT)}async getCurrentVersion(e){var t;(t=this.performanceClient)==null||t.addQueueMeasurement(_.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${R.IMDS_ENDPOINT}?format=json`,e);return r.status===$i.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}ea.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.16.1 2025-08-05 */class pt{constructor(e,t,r,o,i,s,a,c){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,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.managedIdentity=c||!1,this.regionDiscovery=new ea(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(R.CIAM_AUTH_URL))return Zt.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case R.ADFS:return Zt.Adfs;case R.DSTS:return Zt.Dsts}return Zt.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new ve(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw H(Mn)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw H(Mn)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw H(Mn)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw H($g);return this.replacePath(this.metadata.end_session_endpoint)}else throw H(Mn)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw H(Mn)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw H(Mn)}canReplaceTenant(e){return e.PathSegments.length===1&&!pt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Zt.Default&&this.protocolMode===qn.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const o=new ve(this.metadata.canonical_authority).getUrlComponents(),i=o.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((a,c)=>{let l=i[c];if(c===0&&this.canReplaceTenant(o)){const u=new ve(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];l!==u&&(this.logger.verbose(`Replacing tenant domain name ${l} with id ${u}`),l=u)}a!==l&&(t=t.replace(`/${l}/`,`/${a}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Zt.Adfs||this.protocolMode!==qn.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var o,i;(o=this.performanceClient)==null||o.addQueueMeasurement(_.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),t=await q(this.updateCloudDiscoveryMetadata.bind(this),_.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await q(this.updateEndpointMetadata.bind(this),_.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:r}),(i=this.performanceClient)==null||i.addFields({cloudDiscoverySource:t,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:xd(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==Dt.CACHE&&(r==null?void 0:r.source)!==Dt.CACHE&&(e.expiresAt=xd(),e.canonical_authority=this.canonicalAuthority);const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e}async updateEndpointMetadata(e){var o,i,s;(o=this.performanceClient)==null||o.addQueueMeasurement(_.AuthorityUpdateEndpointMetadata,this.correlationId);const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===Dt.HARDCODED_VALUES&&(i=this.authorityOptions.azureRegionConfiguration)!=null&&i.azureRegion&&t.metadata){const a=await q(this.updateMetadataWithRegionalInformation.bind(this),_.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(t.metadata);ji(e,a,!1),e.canonical_authority=this.canonicalAuthority}return t.source}let r=await q(this.getEndpointMetadataFromNetwork.bind(this),_.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return(s=this.authorityOptions.azureRegionConfiguration)!=null&&s.azureRegion&&(r=await q(this.updateMetadataWithRegionalInformation.bind(this),_.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r)),ji(e,r,!0),Dt.NETWORK;throw H(Pg,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),ji(e,t,!1),{source:Dt.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const o=this.getEndpointMetadataFromHardcodedValues();if(o)return ji(e,o,!1),{source:Dt.HARDCODED_VALUES,metadata:o};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const r=Dd(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!r?(this.logger.verbose("Found endpoint metadata in the cache."),{source:Dt.CACHE}):(r&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new ve(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw xe(tp)}return null}async getEndpointMetadataFromNetwork(){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(_.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{const o=await this.networkInterface.sendGetRequestAsync(t,e);return Y_(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Ld?Ld[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var r,o,i;(r=this.performanceClient)==null||r.addQueueMeasurement(_.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const t=(o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.azureRegion;if(t){if(t!==R.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Oa.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=t,pt.replaceWithRegionalInformation(e,t);const s=await q(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),_.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((i=this.authorityOptions.azureRegionConfiguration)==null?void 0:i.environmentRegion,this.regionDiscoveryMetadata);if(s)return this.regionDiscoveryMetadata.region_outcome=Oa.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,pt.replaceWithRegionalInformation(e,s);this.regionDiscoveryMetadata.region_outcome=Oa.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(_.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const r=await q(this.getCloudDiscoveryMetadataFromNetwork.bind(this),_.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return Pa(e,r,!0),Dt.NETWORK;throw xe(np)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||R.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||R.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||R.NOT_APPLICABLE}`);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),Pa(e,t,!1),Dt.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const o=n_(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),Pa(e,o,!1),Dt.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const r=Dd(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),Dt.CACHE):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Zt.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),pt.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.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=Ts(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."),xe(Cl)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),pt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(_.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${R.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let r=null;try{const i=await this.networkInterface.sendGetRequestAsync(e,t);let s,a;if(J_(i.body))s=i.body,a=s.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${s.tenant_discovery_endpoint}`);else if(X_(i.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${i.status}`),s=i.body,s.error===R.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${s.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${s.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=Ts(a,this.hostnameAndPort)}catch(i){if(i instanceof Fe)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
Error: ${i.errorCode}
|
|
Error Description: ${i.errorMessage}`);else{const s=i;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
Error: ${s.name}
|
|
Error Description: ${s.message}`)}return null}return r||(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."),r=pt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(t=>t&&ve.getDomainFromUrl(t).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let r;if(t&&t.azureCloudInstance!==gl.None){const o=t.tenant?t.tenant:R.DEFAULT_COMMON_TENANT;r=`${t.azureCloudInstance}/${o}/`}return r||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return R.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw H(Mn)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return up.has(e)}static isPublicCloudAuthority(e){return R.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,r){const o=new ve(e);o.validateAsUri();const i=o.getUrlComponents();let s=`${t}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(s=`${t}.${R.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const a=ve.constructAuthorityUriFromObject({...o.getUrlComponents(),HostNameAndPort:s}).urlString;return r?`${a}?${r}`:a}static replaceWithRegionalInformation(e,t){const r={...e};return r.authorization_endpoint=pt.buildRegionalAuthorityString(r.authorization_endpoint,t),r.token_endpoint=pt.buildRegionalAuthorityString(r.token_endpoint,t),r.end_session_endpoint&&(r.end_session_endpoint=pt.buildRegionalAuthorityString(r.end_session_endpoint,t)),r}static transformCIAMAuthority(e){let t=e;const o=new ve(e).getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(R.CIAM_AUTH_URL)){const i=o.HostNameAndPort.split(".")[0];t=`${t}${i}${R.AAD_TENANT_DOMAIN_SUFFIX}`}return t}}pt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",ur.COMMON,ur.CONSUMERS,ur.ORGANIZATIONS]);function eb(n){var o;const r=(o=new ve(n).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:o.toLowerCase();switch(r){case ur.COMMON:case ur.ORGANIZATIONS:case ur.CONSUMERS:return;default:return r}}function gp(n){return n.endsWith(R.FORWARD_SLASH)?n:`${n}${R.FORWARD_SLASH}`}function tb(n){const e=n.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw xe(Cl)}return{canonicalAuthority:n.authority?gp(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.1 2025-08-05 */async function pp(n,e,t,r,o,i,s){s==null||s.addQueueMeasurement(_.AuthorityFactoryCreateDiscoveredInstance,i);const a=pt.transformCIAMAuthority(gp(n)),c=new pt(a,e,t,r,o,i,s);try{return await q(c.resolveEndpointsAsync.bind(c),_.AuthorityResolveEndpointsAsync,o,s,i)(),c}catch{throw H(Mn)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class fr extends Fe{constructor(e,t,r,o,i){super(e,t,r),this.name="ServerError",this.errorNo=o,this.status=i,Object.setPrototypeOf(this,fr.prototype)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Tn{static generateThrottlingStorageKey(e){return`${ti.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,t,r){var s;const o=Tn.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,r);return}throw new fr(((s=i.errorCodes)==null?void 0:s.join(" "))||R.EMPTY_STRING,i.errorMessage,i.subError)}}static postProcess(e,t,r,o){if(Tn.checkResponseStatus(r)||Tn.checkResponseForRetryAfter(r)){const i={throttleTime:Tn.calculateThrottleTime(parseInt(r.headers[bt.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(Tn.generateThrottlingStorageKey(t),i,o)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(bt.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||ti.DEFAULT_THROTTLE_TIME_SECONDS),r+ti.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,t,r,o){const i={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:o,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=this.generateThrottlingStorageKey(i);e.removeItem(s,r.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class ta extends Fe{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,ta.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function qd(n,e,t){return new ta(n,e,t)}/*! @azure/msal-common v14.16.1 2025-08-05 */class Il{constructor(e,t){this.config=d_(e),this.logger=new hr(this.config.loggerOptions,jg,fl),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){const t={};if(t[bt.CONTENT_TYPE]=R.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case qt.HOME_ACCOUNT_ID:try{const r=no(e.credential);t[bt.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case qt.UPN:t[bt.CCS_HEADER]=`UPN: ${e.credential}`;break}return t}async executePostToTokenEndpoint(e,t,r,o,i,s){var c;s&&((c=this.performanceClient)==null||c.addQueueMeasurement(s,i));const a=await this.sendPostRequest(o,e,{body:t,headers:r},i);return this.config.serverTelemetryManager&&a.status<500&&a.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),a}async sendPostRequest(e,t,r,o){var s,a,c;Tn.preProcess(this.cacheManager,e,o);let i;try{i=await q(this.networkClient.sendPostRequestAsync.bind(this.networkClient),_.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,o)(t,r);const l=i.headers||{};(a=this.performanceClient)==null||a.addFields({refreshTokenSize:((s=i.body.refresh_token)==null?void 0:s.length)||0,httpVerToken:l[bt.X_MS_HTTP_VERSION]||"",requestId:l[bt.X_MS_REQUEST_ID]||""},o)}catch(l){if(l instanceof ta){const u=l.responseHeaders;throw u&&((c=this.performanceClient)==null||c.addFields({httpVerToken:u[bt.X_MS_HTTP_VERSION]||"",requestId:u[bt.X_MS_REQUEST_ID]||"",contentTypeHeader:u[bt.CONTENT_TYPE]||void 0,contentLengthHeader:u[bt.CONTENT_LENGTH]||void 0,httpStatus:l.httpStatus},o)),l.error}throw l instanceof Fe?l:H(Og)}return Tn.postProcess(this.cacheManager,e,i,o),i}async updateAuthority(e,t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(_.UpdateTokenEndpointAuthority,t);const r=`https://${e}/${this.authority.tenant}/`,o=await pp(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const t=new ni(e.correlationId,this.performanceClient);return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.addCorrelationId(e.correlationId),t.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */const As="no_tokens_found",mp="native_account_unavailable",Sl="refresh_token_expired",nb="interaction_required",rb="consent_required",ob="login_required",na="bad_token";/*! @azure/msal-common v14.16.1 2025-08-05 */const $d=[nb,rb,ob,na],ib=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],sb={[As]:"No refresh token found in the cache. Please sign-in.",[mp]:"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.",[Sl]:"Refresh token has expired.",[na]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class cn extends Fe{constructor(e,t,r,o,i,s,a,c){super(e,t,r),Object.setPrototypeOf(this,cn.prototype),this.timestamp=o||R.EMPTY_STRING,this.traceId=i||R.EMPTY_STRING,this.correlationId=s||R.EMPTY_STRING,this.claims=a||R.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=c}}function jd(n,e,t){const r=!!n&&$d.indexOf(n)>-1,o=!!t&&ib.indexOf(t)>-1,i=!!e&&$d.some(s=>e.indexOf(s)>-1);return r||i||o}function Tc(n){return new cn(n,sb[n])}/*! @azure/msal-common v14.16.1 2025-08-05 */class nn{static setRequestState(e,t,r){const o=nn.generateLibraryState(e,r);return t?`${o}${R.RESOURCE_DELIM}${t}`:o}static generateLibraryState(e,t){if(!e)throw H(pc);const r={id:e.createNewGuid()};t&&(r.meta=t);const o=JSON.stringify(r);return e.base64Encode(o)}static parseRequestState(e,t){if(!e)throw H(pc);if(!t)throw H(_o);try{const r=t.split(R.RESOURCE_DELIM),o=r[0],i=r.length>1?r.slice(1).join(R.RESOURCE_DELIM):R.EMPTY_STRING,s=e.base64Decode(o),a=JSON.parse(s);return{userRequestState:i||R.EMPTY_STRING,libraryState:a}}catch{throw H(_o)}}}/*! @azure/msal-common v14.16.1 2025-08-05 */const ab={SW:"sw"};class Io{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(_.PopTokenGenerateCnf,e.correlationId);const r=await q(this.generateKid.bind(this),_.PopTokenGenerateCnf,t,this.performanceClient,e.correlationId)(e),o=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:o}}async generateKid(e){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(_.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:ab.SW}}async signPopToken(e,t,r){return this.signPayload(e,t,r)}async signPayload(e,t,r,o){const{resourceRequestMethod:i,resourceRequestUri:s,shrClaims:a,shrNonce:c,shrOptions:l}=r,u=s?new ve(s):void 0,d=u==null?void 0:u.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:bn(),m:i==null?void 0:i.toUpperCase(),u:d==null?void 0:d.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:d==null?void 0:d.AbsolutePath,q:d!=null&&d.QueryString?[[],d.QueryString]:void 0,client_claims:a||void 0,...o},t,l,r.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class cb{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.16.1 2025-08-05 */function lb(n){var r,o;const e="code=",t=(r=n.error_uri)==null?void 0:r.lastIndexOf(e);return t&&t>=0?(o=n.error_uri)==null?void 0:o.substring(t+e.length):void 0}class Hr{constructor(e,t,r,o,i,s,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.serializableCache=i,this.persistencePlugin=s,this.performanceClient=a}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?H(ps,"Cached State"):H(ps,"Server State");let r,o;try{r=decodeURIComponent(e.state)}catch{throw H(_o,e.state)}try{o=decodeURIComponent(t)}catch{throw H(_o,e.state)}if(r!==o)throw H(Mg);if(e.error||e.error_description||e.suberror){const i=lb(e);throw jd(e.error,e.error_description,e.suberror)?new cn(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",i):new fr(e.error||"",e.error_description,e.suberror,i)}}validateTokenResponse(e,t){var r;if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||R.NOT_AVAILABLE} - Timestamp: ${e.timestamp||R.NOT_AVAILABLE} - Description: ${e.error_description||R.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||R.NOT_AVAILABLE} - Trace ID: ${e.trace_id||R.NOT_AVAILABLE}`,i=(r=e.error_codes)!=null&&r.length?e.error_codes[0]:void 0,s=new fr(e.error,o,e.suberror,i,e.status);if(t&&e.status&&e.status>=Bi.SERVER_ERROR_RANGE_START&&e.status<=Bi.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
|
|
${s}`);return}else if(t&&e.status&&e.status>=Bi.CLIENT_ERROR_RANGE_START&&e.status<=Bi.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
|
|
${s}`);return}throw jd(e.error,e.error_description,e.suberror)?new cn(e.error,e.error_description,e.suberror,e.timestamp||R.EMPTY_STRING,e.trace_id||R.EMPTY_STRING,e.correlation_id||R.EMPTY_STRING,e.claims||R.EMPTY_STRING,i):s}}async handleServerTokenResponse(e,t,r,o,i,s,a,c,l){var C;(C=this.performanceClient)==null||C.addQueueMeasurement(_.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=qr(e.id_token||R.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw H(xg);if(o.maxAge||o.maxAge===0){const p=u.auth_time;if(!p)throw H(ll);Gg(p,o.maxAge)}}this.homeAccountIdentifier=rt.generateHomeAccountId(e.client_info||R.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,u);let d;i&&i.state&&(d=nn.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0;const h=this.generateCacheRecord(e,t,r,o,u,s,i);let f;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),f=new cb(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(f)),a&&!c&&h.account){const p=h.account.generateAccountKey();if(!this.cacheStorage.getAccount(p,o.correlationId,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Hr.generateAuthenticationResult(this.cryptoObj,t,h,!1,o,u,d,void 0,l)}await this.cacheStorage.saveCacheRecord(h,o.correlationId,o.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&f&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(f))}return Hr.generateAuthenticationResult(this.cryptoObj,t,h,!1,o,u,d,e,l)}generateCacheRecord(e,t,r,o,i,s,a){const c=t.getPreferredCache();if(!c)throw H(dl);const l=ap(i);let u,d;e.id_token&&i&&(u=Js(this.homeAccountIdentifier,c,e.id_token,this.clientId,l||""),d=Rl(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,o.correlationId,i,e.client_info,c,l,a,void 0,this.logger));let h=null;if(e.access_token){const p=e.scope?Ye.fromString(e.scope):new Ye(o.scopes||[]),v=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,E=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,b=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,y=r+v,T=y+E,N=b&&b>0?r+b:void 0;h=Xs(this.homeAccountIdentifier,c,e.access_token,this.clientId,l||t.tenant||"",p.printScopes(),y,T,this.cryptoObj.base64Decode,N,e.token_type,s,e.key_id,o.claims,o.requestedClaimsHash)}let f=null;if(e.refresh_token){let p;if(e.refresh_token_expires_in){const v=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;p=r+v}f=Vg(this.homeAccountIdentifier,c,e.refresh_token,this.clientId,e.foci,s,p)}let C=null;return e.foci&&(C={clientId:this.clientId,environment:c,familyId:e.foci}),{account:d,idToken:u,accessToken:h,refreshToken:f,appMetadata:C}}static async generateAuthenticationResult(e,t,r,o,i,s,a,c,l){var y,T,N,z,B;let u=R.EMPTY_STRING,d=[],h=null,f,C,p=R.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===Ne.POP&&!i.popKid){const F=new Io(e),{secret:O,keyId:Q}=r.accessToken;if(!Q)throw H(hl);u=await F.signPopToken(O,Q,i)}else u=r.accessToken.secret;d=Ye.fromString(r.accessToken.target).asArray(),h=new Date(Number(r.accessToken.expiresOn)*1e3),f=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),r.accessToken.refreshOn&&(C=new Date(Number(r.accessToken.refreshOn)*1e3))}r.appMetadata&&(p=r.appMetadata.familyId===ei?ei:"");const v=(s==null?void 0:s.oid)||(s==null?void 0:s.sub)||"",E=(s==null?void 0:s.tid)||"";c!=null&&c.spa_accountid&&r.account&&(r.account.nativeAccountId=c==null?void 0:c.spa_accountid);const b=r.account?Al(r.account.getAccountInfo(),void 0,s,(y=r.idToken)==null?void 0:y.secret):null;return{authority:t.canonicalAuthority,uniqueId:v,tenantId:E,scopes:d,account:b,idToken:((T=r==null?void 0:r.idToken)==null?void 0:T.secret)||"",idTokenClaims:s||{},accessToken:u,fromCache:o,expiresOn:h,extExpiresOn:f,refreshOn:C,correlationId:i.correlationId,requestId:l||R.EMPTY_STRING,familyId:p,tokenType:((N=r.accessToken)==null?void 0:N.tokenType)||R.EMPTY_STRING,state:a?a.userRequestState:R.EMPTY_STRING,cloudGraphHostName:((z=r.account)==null?void 0:z.cloudGraphHostName)||R.EMPTY_STRING,msGraphHost:((B=r.account)==null?void 0:B.msGraphHost)||R.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}}}function Rl(n,e,t,r,o,i,s,a,c,l,u,d){d==null||d.verbose("setCachedAccount called");const f=n.getAccountKeys().find(b=>b.startsWith(t));let C=null;f&&(C=n.getAccount(f,o,d));const p=C||rt.createAccount({homeAccountId:t,idTokenClaims:i,clientInfo:s,environment:a,cloudGraphHostName:l==null?void 0:l.cloud_graph_host_name,msGraphHost:l==null?void 0:l.msgraph_host,nativeAccountId:u},e,r),v=p.tenantProfiles||[],E=c||p.realm;if(E&&!v.find(b=>b.tenantId===E)){const b=Tl(t,p.localAccountId,E,i);v.push(b)}return p.tenantProfiles=v,p}/*! @azure/msal-common v14.16.1 2025-08-05 */async function yp(n,e,t){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.1 2025-08-05 */class Cp extends Il{constructor(e,t){var r;super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=(r=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:r.defaultScopes}async getAuthCodeUrl(e){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(_.GetAuthCodeUrl,e.correlationId);const t=await q(this.createAuthCodeUrlQueryString.bind(this),_.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return ve.appendQueryString(this.authority.authorizationEndpoint,t)}async acquireToken(e,t){var a,c;if((a=this.performanceClient)==null||a.addQueueMeasurement(_.AuthClientAcquireToken,e.correlationId),!e.code)throw H(Ug);const r=bn(),o=await q(this.executeTokenRequest.bind(this),_.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=(c=o.headers)==null?void 0:c[bt.X_MS_REQUEST_ID],s=new Hr(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return s.validateTokenResponse(o.body),q(s.handleServerTokenResponse.bind(s),_.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,t,void 0,void 0,void 0,i)}handleFragmentResponse(e,t){if(new Hr(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw H(qg);return e}getLogoutUri(e){if(!e)throw xe(Zg);const t=this.createLogoutUrlQueryString(e);return ve.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t){var l,u;(l=this.performanceClient)==null||l.addQueueMeasurement(_.AuthClientExecuteTokenRequest,t.correlationId);const r=this.createTokenQueryParameters(t),o=ve.appendQueryString(e.tokenEndpoint,r),i=await q(this.createTokenRequestBody.bind(this),_.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t);let s;if(t.clientInfo)try{const d=ys(t.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${d.uid}${yt.CLIENT_INFO_SEPARATOR}${d.utid}`,type:qt.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}const a=this.createTokenRequestHeaders(s||t.ccsCredential),c={clientId:((u=t.tokenBodyParameters)==null?void 0:u.clientId)||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return q(this.executePostToTokenEndpoint.bind(this),_.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(o,i,a,c,t.correlationId,_.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,i;(o=this.performanceClient)==null||o.addQueueMeasurement(_.AuthClientCreateTokenRequestBody,e.correlationId);const t=new ni(e.correlationId,this.performanceClient);if(t.addClientId(e.embeddedClientId||((i=e.tokenBodyParameters)==null?void 0:i[Ur])||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):Jr.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!Cc(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const s=this.config.clientCredentials.clientAssertion;t.addClientAssertion(await yp(s.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(s.assertionType)}if(t.addGrantType(Ig.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Ne.POP){const s=new Io(this.cryptoUtils,this.performanceClient);let a;e.popKid?a=this.cryptoUtils.encodeKid(e.popKid):a=(await q(s.generateCnf.bind(s),_.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(a)}else if(e.authenticationScheme===Ne.SSH)if(e.sshJwk)t.addSshJwk(e.sshJwk);else throw xe(Zs);(!tn.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities);let r;if(e.clientInfo)try{const s=ys(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${s.uid}${yt.CLIENT_INFO_SEPARATOR}${s.utid}`,type:qt.HOME_ACCOUNT_ID}}catch(s){this.logger.verbose("Could not parse client info for CCS Header: "+s)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case qt.HOME_ACCOUNT_ID:try{const s=no(r.credential);t.addCcsOid(s)}catch(s){this.logger.verbose("Could not parse home account ID for CCS Header: "+s)}break;case qt.UPN:t.addCcsUpn(r.credential);break}return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Kd])&&t.addExtraQueryParameters({[Kd]:"1"}),t.createQueryString()}async createAuthCodeUrlQueryString(e){var i,s;const t=e.correlationId||this.config.cryptoInterface.createNewGuid();(i=this.performanceClient)==null||i.addQueueMeasurement(_.AuthClientCreateQueryString,t);const r=new ni(t,this.performanceClient);r.addClientId(e.embeddedClientId||((s=e.extraQueryParameters)==null?void 0:s[Ur])||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];if(r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri),r.addCorrelationId(t),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),Cc(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==at.SELECT_ACCOUNT)if(e.sid&&e.prompt===at.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const a=this.extractAccountSid(e.account);let c=this.extractLoginHint(e.account);if(c&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),c=null),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(c);try{const l=no(e.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&e.prompt===at.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(a);try{const l=no(e.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const l=no(e.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,r),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Ne.POP)){const a=new Io(this.cryptoUtils);let c;e.popKid?c=this.cryptoUtils.encodeKid(e.popKid):c=(await q(a.generateCnf.bind(a),_.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(c)}return r.createQueryString()}createLogoutUrlQueryString(e){const t=new ni(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,t),t.createQueryString()}addExtraQueryParams(e,t){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){var t;return((t=e.idTokenClaims)==null?void 0:t.sid)||null}extractLoginHint(e){var t;return((t=e.idTokenClaims)==null?void 0:t.login_hint)||null}}/*! @azure/msal-common v14.16.1 2025-08-05 */const ub=300;class Ac extends Il{constructor(e,t){super(e,t)}async acquireToken(e){var s,a;(s=this.performanceClient)==null||s.addQueueMeasurement(_.RefreshTokenClientAcquireToken,e.correlationId);const t=bn(),r=await q(this.executeTokenRequest.bind(this),_.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),o=(a=r.headers)==null?void 0:a[bt.X_MS_REQUEST_ID],i=new Hr(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(r.body),q(i.handleServerTokenResponse.bind(i),_.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,o)}async acquireTokenByRefreshToken(e){var r;if(!e)throw xe(Xg);if((r=this.performanceClient)==null||r.addQueueMeasurement(_.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw H(ul);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await q(this.acquireTokenWithCachedRefreshToken.bind(this),_.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const i=o instanceof cn&&o.errorCode===As,s=o instanceof fr&&o.errorCode===Sd.INVALID_GRANT_ERROR&&o.subError===Sd.CLIENT_MISMATCH_ERROR;if(i||s)return q(this.acquireTokenWithCachedRefreshToken.bind(this),_.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return q(this.acquireTokenWithCachedRefreshToken.bind(this),_.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(_.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const r=$r(this.cacheManager.getRefreshToken.bind(this.cacheManager),_.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,t,e.correlationId,void 0,this.performanceClient);if(!r)throw Tc(As);if(r.expiresOn&&yc(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||ub))throw Tc(Sl);const o={...e,refreshToken:r.secret,authenticationScheme:e.authenticationScheme||Ne.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:qt.HOME_ACCOUNT_ID}};try{return await q(this.acquireToken.bind(this),_.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(o)}catch(s){if(s instanceof cn&&s.subError===na){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const a=to(r);this.cacheManager.removeRefreshToken(a,e.correlationId)}throw s}}async executeTokenRequest(e,t){var c,l;(c=this.performanceClient)==null||c.addQueueMeasurement(_.RefreshTokenClientExecuteTokenRequest,e.correlationId);const r=this.createTokenQueryParameters(e),o=ve.appendQueryString(t.tokenEndpoint,r),i=await q(this.createTokenRequestBody.bind(this),_.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),s=this.createTokenRequestHeaders(e.ccsCredential),a={clientId:((l=e.tokenBodyParameters)==null?void 0:l.clientId)||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return q(this.executePostToTokenEndpoint.bind(this),_.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(o,i,s,a,e.correlationId,_.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,i,s;(o=this.performanceClient)==null||o.addQueueMeasurement(_.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const t=e.correlationId,r=new ni(t,this.performanceClient);if(r.addClientId(e.embeddedClientId||((i=e.tokenBodyParameters)==null?void 0:i[Ur])||this.config.authOptions.clientId),e.redirectUri&&r.addRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,(s=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:s.defaultScopes),r.addGrantType(Ig.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!Cc(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),r.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const a=this.config.clientCredentials.clientAssertion;r.addClientAssertion(await yp(a.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(a.assertionType)}if(e.authenticationScheme===Ne.POP){const a=new Io(this.cryptoUtils,this.performanceClient);let c;e.popKid?c=this.cryptoUtils.encodeKid(e.popKid):c=(await q(a.generateCnf.bind(a),_.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(c)}else if(e.authenticationScheme===Ne.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw xe(Zs);if((!tn.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case qt.HOME_ACCOUNT_ID:try{const a=no(e.ccsCredential.credential);r.addCcsOid(a)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case qt.UPN:r.addCcsUpn(e.ccsCredential.credential);break}return e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),r.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */class db extends Il{constructor(e,t){super(e,t)}async acquireToken(e){var t;try{const[r,o]=await this.acquireCachedToken({...e,scopes:(t=e.scopes)!=null&&t.length?e.scopes:[...Po]});return o===er.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new Ac(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof Ys&&r.errorCode===Fn)return new Ac(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){var c;(c=this.performanceClient)==null||c.addQueueMeasurement(_.SilentFlowClientAcquireCachedToken,e.correlationId);let t=er.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!tn.isEmptyObj(e.claims))throw this.setCacheOutcome(er.FORCE_REFRESH_OR_CLAIMS,e.correlationId),H(Fn);if(!e.account)throw H(ul);const r=e.account.tenantId||eb(e.authority),o=this.cacheManager.getTokenKeys(),i=this.cacheManager.getAccessToken(e.account,e,o,r,this.performanceClient);if(i){if(Bw(i.cachedAt)||yc(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(er.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),H(Fn);i.refreshOn&&yc(i.refreshOn,0)&&(t=er.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(er.NO_CACHED_ACCESS_TOKEN,e.correlationId),H(Fn);const s=e.authority||this.authority.getPreferredCache(),a={account:this.cacheManager.readAccountFromCache(e.account,e.correlationId),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,o,r,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(s)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await q(this.generateResultFromCacheRecord.bind(this),_.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(a,e),t]}setCacheOutcome(e,t){var r,o;(r=this.serverTelemetryManager)==null||r.setCacheOutcome(e),(o=this.performanceClient)==null||o.addFields({cacheOutcome:e},t),e!==er.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(_.SilentFlowClientGenerateResultFromCacheRecord,t.correlationId);let r;if(e.idToken&&(r=qr(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||t.maxAge===0){const i=r==null?void 0:r.auth_time;if(!i)throw H(ll);Gg(i,t.maxAge)}return Hr.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const hb={sendGetRequestAsync:()=>Promise.reject(H(ge)),sendPostRequestAsync:()=>Promise.reject(H(ge))};/*! @azure/msal-common v14.16.1 2025-08-05 */const Gd=",",vp="|";function fb(n){const{skus:e,libraryName:t,libraryVersion:r,extensionName:o,extensionVersion:i}=n,s=new Map([[0,[t,r]],[2,[o,i]]]);let a=[];if(e!=null&&e.length){if(a=e.split(Gd),a.length<4)return e}else a=Array.from({length:4},()=>vp);return s.forEach((c,l)=>{var u,d;c.length===2&&((u=c[0])!=null&&u.length)&&((d=c[1])!=null&&d.length)&&gb({skuArr:a,index:l,skuName:c[0],skuVersion:c[1]})}),a.join(Gd)}function gb(n){const{skuArr:e,index:t,skuName:r,skuVersion:o}=n;t>=e.length||(e[t]=[r,o].join(vp))}class gi{constructor(e,t){this.cacheOutcome=er.NOT_APPLICABLE,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||R.EMPTY_STRING,this.wrapperVer=e.wrapperVer||R.EMPTY_STRING,this.telemetryCacheKey=ut.CACHE_KEY+yt.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${ut.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r!=null&&r.length&&t.push(`broker_error=${r}`);const o=t.join(ut.VALUE_SEPARATOR),i=this.getRegionDiscoveryFields(),s=[e,i].join(ut.VALUE_SEPARATOR);return[ut.SCHEMA_VERSION,s,o].join(ut.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=gi.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(ut.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(ut.VALUE_SEPARATOR),i=e.errors.length,s=t<i?ut.OVERFLOW_TRUE:ut.OVERFLOW_FALSE,a=[i,s].join(ut.VALUE_SEPARATOR);return[ut.SCHEMA_VERSION,e.cacheHits,r,o,a].join(ut.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=ut.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Fe?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(ut.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),t=gi.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const o={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o,this.correlationId)}}static maxErrorsToSend(e){let t,r=0,o=0;const i=e.errors.length;for(t=0;t<i;t++){const s=e.failedRequests[2*t]||R.EMPTY_STRING,a=e.failedRequests[2*t+1]||R.EMPTY_STRING,c=e.errors[t]||R.EMPTY_STRING;if(o+=s.toString().length+a.toString().length+c.length+3,o<ut.MAX_LAST_HEADER_BYTES)r+=1;else break}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||R.EMPTY_STRING),e.push(this.regionSource||R.EMPTY_STRING),e.push(this.regionOutcome||R.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return fb(e)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Tp="missing_kid_error",Ap="missing_alg_error";/*! @azure/msal-common v14.16.1 2025-08-05 */const pb={[Tp]:"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.",[Ap]:"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."};class kl extends Fe{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,kl.prototype)}}function Vd(n){return new kl(n,pb[n])}/*! @azure/msal-common v14.16.1 2025-08-05 */class Ol{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw Vd(Tp);if(!e.alg)throw Vd(Ap);const t=new Ol({typ:e.typ||ww.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class zd{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class mb{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Z_.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new zd}}startPerformanceMeasurement(){return new zd}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Pl="pkce_not_created",Ec="crypto_nonexistent",ra="empty_navigate_uri",Ep="hash_empty_error",Nl="no_state_in_hash",wp="hash_does_not_contain_known_properties",_p="unable_to_parse_state",bp="state_interaction_type_mismatch",Ip="interaction_in_progress",Sp="popup_window_error",Rp="empty_window_error",Fr="user_cancelled",yb="monitor_popup_timeout",kp="monitor_window_timeout",Op="redirect_in_iframe",Pp="block_iframe_reload",Np="block_nested_popups",Cb="iframe_closed_prematurely",oa="silent_logout_unsupported",Mp="no_account_error",vb="silent_prompt_value_error",xp="no_token_request_cache_error",Dp="unable_to_parse_token_request_cache_error",Ml="no_cached_authority_error",Tb="auth_request_not_set_error",Ab="invalid_cache_type",ia="non_browser_environment",Xr="database_not_open",Es="no_network_connectivity",Lp="post_request_failed",Up="get_request_failed",wc="failed_to_parse_response",Hp="unable_to_load_token",xl="crypto_key_not_found",Fp="auth_code_required",Bp="auth_code_or_nativeAccountId_required",Kp="spa_code_and_nativeAccountId_present",Dl="database_unavailable",qp="unable_to_acquire_token_from_native_platform",$p="native_handshake_timeout",jp="native_extension_not_installed",Oi="native_connection_not_established",Gp="uninitialized_public_client_application",Vp="native_prompt_not_supported",zp="invalid_base64_string",Qp="invalid_pop_token_request",Wp="failed_to_build_headers",Yp="failed_to_parse_headers";/*! @azure/msal-browser v3.30.0 2025-08-05 */const On="For more visit: aka.ms/msaljs/browser-errors",Eb={[Pl]:"The PKCE code challenge and verifier could not be generated.",[Ec]:"The crypto object or function is not available.",[ra]:"Navigation URI is empty. Please check stack trace for more info.",[Ep]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${On}`,[Nl]:"Hash does not contain state. Please verify that the request originated from msal.",[wp]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${On}`,[_p]:"Unable to parse state. Please verify that the request originated from msal.",[bp]:"Hash contains state but the interaction type does not match the caller.",[Ip]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${On}`,[Sp]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Rp]:"window.open returned null or undefined window object.",[Fr]:"User cancelled the flow.",[yb]:`Token acquisition in popup failed due to timeout. ${On}`,[kp]:`Token acquisition in iframe failed due to timeout. ${On}`,[Op]:"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.",[Pp]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${On}`,[Np]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[Cb]:"The iframe being monitored was closed prematurely.",[oa]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[Mp]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[vb]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[xp]:"No token request found in cache.",[Dp]:"The cached token request could not be parsed.",[Ml]:"No cached authority found.",[Tb]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[Ab]:"Invalid cache type",[ia]:"Login and token requests are not supported in non-browser environments.",[Xr]:"Database is not open!",[Es]:"No network connectivity. Check your internet connection.",[Lp]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[Up]:"Network request failed. Please check the network trace to determine root cause.",[wc]:"Failed to parse network response. Check network trace.",[Hp]:"Error loading token to cache.",[xl]:"Cryptographic Key or Keypair not found in browser storage.",[Fp]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[Bp]:"An authorization code or nativeAccountId must be provided to this flow.",[Kp]:"Request cannot contain both spa code and native account id.",[Dl]:"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.",[qp]:`Unable to acquire token from native platform. ${On}`,[$p]:"Timed out while attempting to establish connection to browser extension",[jp]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[Oi]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${On}`,[Gp]:`You must call and await the initialize function before attempting to call any other MSAL API. ${On}`,[Vp]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[zp]:"Invalid base64 encoded string.",[Qp]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[Wp]:"Failed to build request headers object.",[Yp]:"Failed to parse response headers"};class Pi extends Fe{constructor(e,t){super(e,Eb[e],t),Object.setPrototypeOf(this,Pi.prototype),this.name="BrowserAuthError"}}function Y(n,e){return new Pi(n,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Bt={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"},ro={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},br={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},Ot={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},Qd={GET:"GET",POST:"POST"},ke={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},zt={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys",VERSION:"msal.version"},Gi={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},He={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var ee;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(ee||(ee={}));const Wd={scopes:Po},Jp="jwk",_c="msal.db",wb=1,_b=`${_c}.keys`,Lt={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},bb=[Lt.Default,Lt.Skip,Lt.RefreshTokenAndNetwork],Ib="msal.browser.log.level",Sb="msal.browser.log.pii";/*! @azure/msal-browser v3.30.0 2025-08-05 */function Vi(n){return encodeURIComponent(Ll(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function sa(n){return Xp(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ll(n){return Xp(new TextEncoder().encode(n))}function Xp(n){const e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Rb="RSASSA-PKCS1-v1_5",Zp="SHA-256",kb=2048,Ob=new Uint8Array([1,0,1]),Yd="0123456789abcdef",Jd=new Uint32Array(1),Pb="crypto_subtle_undefined",Ul={name:Rb,hash:Zp,modulusLength:kb,publicExponent:Ob};function Nb(n){if(!window)throw Y(ia);if(!window.crypto)throw Y(Ec);if(!n&&!window.crypto.subtle)throw Y(Ec,Pb)}async function em(n,e,t){e==null||e.addQueueMeasurement(_.Sha256Digest,t);const o=new TextEncoder().encode(n);return window.crypto.subtle.digest(Zp,o)}function Mb(n){return window.crypto.getRandomValues(n)}function Ma(){return window.crypto.getRandomValues(Jd),Jd[0]}function In(){const n=Date.now(),e=Ma()*1024+(Ma()&1023),t=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,i=Ma();t[0]=n/2**40,t[1]=n/2**32,t[2]=n/2**24,t[3]=n/2**16,t[4]=n/2**8,t[5]=n,t[6]=112|r>>>8,t[7]=r,t[8]=128|o>>>24,t[9]=o>>>16,t[10]=o>>>8,t[11]=o,t[12]=i>>>24,t[13]=i>>>16,t[14]=i>>>8,t[15]=i;let s="";for(let a=0;a<t.length;a++)s+=Yd.charAt(t[a]>>>4),s+=Yd.charAt(t[a]&15),(a===3||a===5||a===7||a===9)&&(s+="-");return s}async function xb(n,e){return window.crypto.subtle.generateKey(Ul,n,e)}async function xa(n){return window.crypto.subtle.exportKey(Jp,n)}async function Db(n,e,t){return window.crypto.subtle.importKey(Jp,n,Ul,e,t)}async function Lb(n,e){return window.crypto.subtle.sign(Ul,n,e)}async function tm(n){const e=await em(n),t=new Uint8Array(e);return sa(t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Hl="storage_not_supported",Ub="stubbed_public_client_application_called",nm="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.30.0 2025-08-05 */const Hb={[Hl]:"Given storage configuration option was not supported.",[Ub]:"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",[nm]:"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."};class Fl extends Fe{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Fl.prototype)}}function Bl(n){return new Fl(n,Hb[n])}/*! @azure/msal-browser v3.30.0 2025-08-05 */function Fb(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function Bb(n){const e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Kl(){return window.parent!==window}function Kb(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Bt.POPUP_NAME_PREFIX}.`)===0}function Bn(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function qb(){const e=new ve(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function $b(){if(ve.hashContainsKnownProperties(window.location.hash)&&Kl())throw Y(Pp)}function jb(n){if(Kl()&&!n)throw Y(Op)}function Gb(){if(Kb())throw Y(Np)}function rm(){if(typeof window>"u")throw Y(ia)}function om(n){if(!n)throw Y(Gp)}function ql(n){rm(),$b(),Gb(),om(n)}function Xd(n,e){if(ql(n),jb(e.system.allowRedirectInIframe),e.cache.cacheLocation===Ot.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw Bl(nm)}function im(n){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(n).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function Vb(){return In()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class ws{navigateInternal(e,t){return ws.defaultNavigateWindow(e,t)}navigateExternal(e,t){return ws.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(r=>{setTimeout(()=>{r(!0)},t.timeout)})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class zb{async sendGetRequestAsync(e,t){let r,o={},i=0;const s=Zd(t);try{r=await fetch(e,{method:Qd.GET,headers:s})}catch{throw Y(window.navigator.onLine?Up:Es)}o=eh(r.headers);try{return i=r.status,{headers:o,body:await r.json(),status:i}}catch{throw qd(Y(wc),i,o)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=Zd(t);let i,s=0,a={};try{i=await fetch(e,{method:Qd.POST,headers:o,body:r})}catch{throw Y(window.navigator.onLine?Lp:Es)}a=eh(i.headers);try{return s=i.status,{headers:a,body:await i.json(),status:s}}catch{throw qd(Y(wc),s,a)}}}function Zd(n){try{const e=new Headers;if(!(n&&n.headers))return e;const t=n.headers;return Object.entries(t).forEach(([r,o])=>{e.append(r,o)}),e}catch{throw Y(Wp)}}function eh(n){try{const e={};return n.forEach((t,r)=>{e[r]=t}),e}catch{throw Y(Yp)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Qb=6e4,bc=1e4,Wb=3e4,Yb=2e3;function Jb({auth:n,cache:e,system:t,telemetry:r},o){const i={clientId:R.EMPTY_STRING,authority:`${R.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:R.EMPTY_STRING,authorityMetadata:R.EMPTY_STRING,redirectUri:typeof window<"u"?Bn():"",postLogoutRedirectUri:R.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:qn.AAD,OIDCOptions:{serverResponseType:ki.FRAGMENT,defaultScopes:[R.OPENID_SCOPE,R.PROFILE_SCOPE,R.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:gl.None,tenant:R.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},s={cacheLocation:Ot.SessionStorage,temporaryCacheLocation:Ot.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===Ot.LocalStorage),claimsBasedCachingEnabled:!1},a={loggerCallback:()=>{},logLevel:Ke.Info,piiLoggingEnabled:!1},l={...{...hp,loggerOptions:a,networkClient:o?new zb:hb,navigationClient:new ws,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||Qb,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||bc,navigateFrameWait:0,redirectNavigationTimeout:Wb,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||Yb,pollIntervalMilliseconds:Bt.DEFAULT_POLL_INTERVAL_MS},...t,loggerOptions:(t==null?void 0:t.loggerOptions)||a},u={application:{appName:R.EMPTY_STRING,appVersion:R.EMPTY_STRING},client:new mb};if((n==null?void 0:n.protocolMode)!==qn.OIDC&&(n!=null&&n.OIDCOptions)&&new hr(l.loggerOptions).warning(JSON.stringify(xe(op))),n!=null&&n.protocolMode&&n.protocolMode!==qn.AAD&&(l!=null&&l.allowNativeBroker))throw xe(ip);return{auth:{...i,...n,OIDCOptions:{...i.OIDCOptions,...n==null?void 0:n.OIDCOptions}},cache:{...s,...e},system:l,telemetry:{...u,...r}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Xb="@azure/msal-browser",So="3.30.0";/*! @azure/msal-browser v3.30.0 2025-08-05 */class $l{static loggerCallback(e,t){switch(e){case Ke.Error:console.error(t);return;case Ke.Info:console.info(t);return;case Ke.Verbose:console.debug(t);return;case Ke.Warning:console.warn(t);return;default:console.log(t);return}}constructor(e){var c;this.browserEnvironment=typeof window<"u",this.config=Jb(e,this.browserEnvironment);let t;try{t=window[Ot.SessionStorage]}catch{}const r=t==null?void 0:t.getItem(Ib),o=(c=t==null?void 0:t.getItem(Sb))==null?void 0:c.toLowerCase(),i=o==="true"?!0:o==="false"?!1:void 0,s={...this.config.system.loggerOptions},a=r&&Object.keys(Ke).includes(r)?Ke[r]:void 0;a&&(s.loggerCallback=$l.loggerCallback,s.logLevel=a),i!==void 0&&(s.piiLoggingEnabled=i),this.logger=new hr(s,Xb,So),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Br extends $l{getModuleName(){return Br.MODULE_NAME}getId(){return Br.ID}async initialize(){return this.available=typeof window<"u",this.available}}Br.MODULE_NAME="";Br.ID="StandardOperatingContext";/*! @azure/msal-browser v3.30.0 2025-08-05 */function _n(n){return new TextDecoder().decode(Zb(n))}function Zb(n){let e=n.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw Y(zp)}const t=atob(e);return Uint8Array.from(t,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class eI{constructor(){this.dbName=_c,this.version=wb,this.tableName=_b,this.dbOpen=!1}async open(){return new Promise((e,t)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",o=>{o.target.result.createObjectStore(this.tableName)}),r.addEventListener("success",o=>{const i=o;this.db=i.target.result,this.dbOpen=!0,e()}),r.addEventListener("error",()=>t(Y(Dl)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(Y(Xr));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);s.addEventListener("success",a=>{const c=a;this.closeConnection(),t(c.target.result)}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async setItem(e,t){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(Y(Xr));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",c=>{this.closeConnection(),o(c)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(Y(Xr));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);s.addEventListener("success",()=>{this.closeConnection(),t()}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(Y(Xr));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",s=>{const a=s;this.closeConnection(),e(a.target.result)}),i.addEventListener("error",s=>{this.closeConnection(),t(s)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(Y(Xr));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);s.addEventListener("success",a=>{const c=a;this.closeConnection(),t(c.target.result===1)}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{const r=window.indexedDB.deleteDatabase(_c),o=setTimeout(()=>t(!1),200);r.addEventListener("success",()=>(clearTimeout(o),e(!0))),r.addEventListener("blocked",()=>(clearTimeout(o),e(!0))),r.addEventListener("error",()=>(clearTimeout(o),t(!1)))})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Ic{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,t){this.cache.set(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((t,r)=>{e.push(r)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class tI{constructor(e){this.inMemoryCache=new Ic,this.indexedDBCache=new eI,this.logger=e}handleDatabaseAccessError(e){if(e instanceof Pi&&e.errorCode===Dl)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}async getItem(e){const t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(r){this.handleDatabaseAccessError(r)}return t}async setItem(e,t){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(r){this.handleDatabaseAccessError(r)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(t){this.handleDatabaseAccessError(t)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t)}return e}async containsKey(e){const t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(r){this.handleDatabaseAccessError(r)}return t}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Ro{constructor(e,t,r){this.logger=e,Nb(r??!1),this.cache=new tI(this.logger),this.performanceClient=t}createNewGuid(){return In()}base64Encode(e){return Ll(e)}base64Decode(e){return _n(e)}base64UrlEncode(e){return Vi(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var u;const t=(u=this.performanceClient)==null?void 0:u.startMeasurement(_.CryptoOptsGetPublicKeyThumbprint,e.correlationId),r=await xb(Ro.EXTRACTABLE,Ro.POP_KEY_USAGES),o=await xa(r.publicKey),i={e:o.e,kty:o.kty,n:o.n},s=th(i),a=await this.hashString(s),c=await xa(r.privateKey),l=await Db(c,!1,["sign"]);return await this.cache.setItem(a,{privateKey:l,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),t&&t.end({success:!0}),a}async removeTokenBindingKey(e){return await this.cache.removeItem(e),!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,t,r,o){var y;const i=(y=this.performanceClient)==null?void 0:y.startMeasurement(_.CryptoOptsSignJwt,o),s=await this.cache.getItem(t);if(!s)throw Y(xl);const a=await xa(s.publicKey),c=th(a),l=Vi(JSON.stringify({kid:t})),u=Ol.getShrHeaderString({...r==null?void 0:r.header,alg:a.alg,kid:l}),d=Vi(u);e.cnf={jwk:JSON.parse(c)};const h=Vi(JSON.stringify(e)),f=`${d}.${h}`,p=new TextEncoder().encode(f),v=await Lb(s.privateKey,p),E=sa(new Uint8Array(v)),b=`${f}.${E}`;return i&&i.end({success:!0}),b}async hashString(e){return tm(e)}}Ro.POP_KEY_USAGES=["sign","verify"];Ro.EXTRACTABLE=!0;function th(n){return JSON.stringify(n,Object.keys(n).sort())}/*! @azure/msal-browser v3.30.0 2025-08-05 */class nI{constructor(){if(!window.localStorage)throw Bl(Hl)}getItem(e){return window.localStorage.getItem(e)}setItem(e,t){window.localStorage.setItem(e,t)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class rI{constructor(){if(!window.sessionStorage)throw Bl(Hl)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function sm(n,e){if(!e)return null;try{return nn.parseRequestState(n,e).libraryState.meta}catch{throw H(_o)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const oI=24*60*60*1e3;class iI{getItem(e){const t=`${encodeURIComponent(e)}`,r=document.cookie.split(";");for(let o=0;o<r.length;o++){const i=r[o],[s,...a]=decodeURIComponent(i).trim().split("="),c=a.join("=");if(s===t)return c}return""}setItem(e,t,r,o=!0){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(r){const s=sI(r);i+=`expires=${s};`}o&&(i+="Secure;"),document.cookie=i}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach(r=>{const o=decodeURIComponent(r).trim().split("=");t.push(o[0])}),t}containsKey(e){return this.getKeys().includes(e)}}function sI(n){const e=new Date;return new Date(e.getTime()+n*oI).toUTCString()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Sc extends bo{constructor(e,t,r,o,i,s){super(e,r,o,i),this.cacheConfig=t,this.logger=o,this.internalStorage=new Ic,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new iI,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=s}setupBrowserStorage(e){try{switch(e){case Ot.LocalStorage:return new nI;case Ot.SessionStorage:return new rI;case Ot.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=Ot.MemoryStorage,new Ic}migrateCacheEntries(){const e=this.browserStorage.getItem(zt.VERSION);e&&this.logger.info(`MSAL.js was last initialized with version ${e}`),e!==So&&this.browserStorage.setItem(zt.VERSION,So);const t=`${R.CACHE_PREFIX}.${it.ID_TOKEN}`,r=`${R.CACHE_PREFIX}.${it.CLIENT_INFO}`,o=`${R.CACHE_PREFIX}.${it.ERROR}`,i=`${R.CACHE_PREFIX}.${it.ERROR_DESC}`,s=this.browserStorage.getItem(t),a=this.browserStorage.getItem(r),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=[s,a,c,l];[it.ID_TOKEN,it.CLIENT_INFO,it.ERROR,it.ERROR_DESC].forEach((h,f)=>{const C=u[f];C&&this.setTemporaryCache(h,C,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.cryptoImpl.createNewGuid(),t=this.getItem(zt.ACCOUNT_KEYS),r=this.getItem(`${zt.TOKEN_KEYS}.${this.clientId}`);if(t&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(i=>{if(this.isCredentialKey(i)){const s=this.getItem(i);if(s){const a=this.validateAndParseJson(s);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case ae.ID_TOKEN:if(Nd(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${i} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(i,c,e);this.addTokenKey(l,ae.ID_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${i}`);break;case ae.ACCESS_TOKEN:case ae.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Pd(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${i} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(i,c,e);this.addTokenKey(l,ae.ACCESS_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${i}`);break;case ae.REFRESH_TOKEN:if(Md(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${i} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(i,c,e);this.addTokenKey(l,ae.REFRESH_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${i}`);break}}}if(this.isAccountKey(i)){const s=this.getItem(i);if(s){const a=this.validateAndParseJson(s);a&&rt.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${i} found, saving key to account key map`),this.addAccountKeyToMap(i,e))}}})}validateAndParseJson(e){try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,t,r){let o=[];for(let s=0;s<=20;s++)try{this.browserStorage.setItem(e,t),s>0&&this.removeAccessTokenKeys(o.slice(0,s),r);break}catch(a){const c=dp(a);if(c.errorCode===wl&&s<20){if(o.length||(e===`${zt.TOKEN_KEYS}.${this.clientId}`?o=JSON.parse(t).accessToken:o=this.getTokenKeys().accessToken),o.length<=s)throw c;this.removeAccessToken(o[s],r,!1)}else throw c}}getAccount(e,t,r){this.logger.trace("BrowserCacheManager.getAccount called");const o=this.getCachedAccountEntity(e,t);return this.updateOutdatedCachedAccount(e,o,t,r)}getCachedAccountEntity(e,t){const r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e,t),null;const o=this.validateAndParseJson(r);return!o||!rt.isAccountEntity(o)?null:bo.toObject(new rt,o)}setAccount(e,t){this.logger.trace("BrowserCacheManager.setAccount called");const r=e.generateAccountKey();e.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(e),t),this.addAccountKeyToMap(r,t)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(zt.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e,t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(zt.ACCOUNT_KEYS,JSON.stringify(r),t),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e,t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);if(o>-1){if(r.splice(o,1),r.length===0){this.removeItem(zt.ACCOUNT_KEYS);return}else this.setItem(zt.ACCOUNT_KEYS,JSON.stringify(r),t);this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e,t){super.removeAccount(e,t),this.removeAccountKeyFromMap(e,t)}removeOutdatedAccount(e,t){this.removeItem(e),this.removeAccountKeyFromMap(e,t)}removeIdToken(e,t){super.removeIdToken(e,t),this.removeTokenKey(e,ae.ID_TOKEN,t)}removeAccessToken(e,t,r=!0){var o;super.removeAccessToken(e,t),(o=this.performanceClient)==null||o.incrementFields({accessTokensRemoved:1},t),r&&this.removeTokenKey(e,ae.ACCESS_TOKEN,t)}removeAccessTokenKeys(e,t){this.logger.trace("removeAccessTokenKey called");const r=this.getTokenKeys();let o=0;if(e.forEach(i=>{const s=r.accessToken.indexOf(i);s>-1&&(r.accessToken.splice(s,1),o++)}),o>0){this.logger.info(`removed ${o} accessToken keys from tokenKeys map`),this.setTokenKeys(r,t);return}}removeRefreshToken(e,t){super.removeRefreshToken(e,t),this.removeTokenKey(e,ae.REFRESH_TOKEN,t)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${zt.TOKEN_KEYS}.${this.clientId}`);if(e){const t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;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:[]}}setTokenKeys(e,t){if(e.idToken.length===0&&e.accessToken.length===0&&e.refreshToken.length===0){this.removeItem(`${zt.TOKEN_KEYS}.${this.clientId}`);return}else this.setItem(`${zt.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(e),t)}addTokenKey(e,t,r){this.logger.trace("BrowserCacheManager addTokenKey called");const o=this.getTokenKeys();switch(t){case ae.ID_TOKEN:o.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(e));break;case ae.ACCESS_TOKEN:const i=o.accessToken.indexOf(e);i!==-1&&o.accessToken.splice(i,1),this.logger.trace(`access token ${i===-1?"added to":"updated in"} map`),o.accessToken.push(e);break;case ae.REFRESH_TOKEN:o.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),H(mc)}this.setTokenKeys(o,r)}removeTokenKey(e,t,r,o=this.getTokenKeys()){switch(this.logger.trace("BrowserCacheManager removeTokenKey called"),t){case ae.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const i=o.idToken.indexOf(e);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 ae.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const s=o.accessToken.indexOf(e);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ae.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=o.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${t}`),H(mc)}this.setTokenKeys(o,r)}getIdTokenCredential(e,t){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(e,t),null;const o=this.validateAndParseJson(r);return!o||!Nd(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}setIdTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=to(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(e),t),this.addTokenKey(r,ae.ID_TOKEN,t)}getAccessTokenCredential(e,t){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ae.ACCESS_TOKEN,t),null;const o=this.validateAndParseJson(r);return!o||!Pd(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}setAccessTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=to(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(e),t),this.addTokenKey(r,ae.ACCESS_TOKEN,t)}getRefreshTokenCredential(e,t){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ae.REFRESH_TOKEN,t),null;const o=this.validateAndParseJson(r);return!o||!Md(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}setRefreshTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=to(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(e),t),this.addTokenKey(r,ae.REFRESH_TOKEN,t)}getAppMetadata(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!Ww(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),r)}setAppMetadata(e,t){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=Qw(e);this.setItem(r,JSON.stringify(e),t)}getServerTelemetry(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!Vw(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),r)}setServerTelemetry(e,t,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t),r)}getAuthorityMetadata(e){const t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return r&&Yw(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(t=>this.isAuthorityMetadata(t))}setWrapperMetadata(e,t){this.internalStorage.setItem(Gi.WRAPPER_SKU,e),this.internalStorage.setItem(Gi.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(Gi.WRAPPER_SKU)||R.EMPTY_STRING,t=this.internalStorage.getItem(Gi.WRAPPER_VER)||R.EMPTY_STRING;return[e,t]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(e){const t=this.generateCacheKey(it.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(t);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const i=this.generateCacheKey(it.ACTIVE_ACCOUNT),s=this.getItem(i);if(!s)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:s},e);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,e),a):null}const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId},e)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e,t){const r=this.generateCacheKey(it.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(it.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const i={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId,lastUpdatedAt:Date.now().toString()};this.setItem(r,JSON.stringify(i),t),this.setItem(o,e.localAccountId,t)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)}getThrottlingCache(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!zw(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),r)}setThrottlingCache(e,t,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t),r)}getTemporaryCache(e,t){const r=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.cookieStorage.getItem(r);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const o=this.temporaryCacheStorage.getItem(r);if(!o){if(this.cacheConfig.cacheLocation===Ot.LocalStorage){const i=this.browserStorage.getItem(r);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o}setTemporaryCache(e,t,r){const o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(o,t,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(e){await this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEach(t=>{(t.indexOf(R.CACHE_PREFIX)!==-1||t.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(t)}),this.browserStorage.getKeys().forEach(t=>{(t.indexOf(R.CACHE_PREFIX)!==-1||t.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(t)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,t){e.addQueueMeasurement(_.ClearTokensAndKeysWithClaims,t);const r=this.getTokenKeys();let o=0;r.accessToken.forEach(i=>{const s=this.getAccessTokenCredential(i,t);s!=null&&s.requestedClaimsHash&&i.includes(s.requestedClaimsHash.toLowerCase())&&(this.removeAccessToken(i,t),o++)}),o>0&&this.logger.warning(`${o} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):tn.startsWith(e,R.CACHE_PREFIX)||tn.startsWith(e,it.ADAL_ID_TOKEN)?e:`${R.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=nn.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ke.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=nn.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ke.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=nn.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ke.REQUEST_STATE}.${t}`)}getCachedAuthority(e){const t=this.generateStateKey(e),r=this.getTemporaryCache(t);if(!r)return null;const o=this.generateAuthorityKey(r);return this.getTemporaryCache(o)}updateCacheEntries(e,t,r,o,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const s=this.generateStateKey(e);this.setTemporaryCache(s,e,!1);const a=this.generateNonceKey(e);this.setTemporaryCache(a,t,!1);const c=this.generateAuthorityKey(e);if(this.setTemporaryCache(c,r,!1),i){const l={credential:i.homeAccountId,type:qt.HOME_ACCOUNT_ID};this.setTemporaryCache(ke.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(o){const l={credential:o,type:qt.UPN};this.setTemporaryCache(ke.CCS_CREDENTIAL,JSON.stringify(l),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{t.indexOf(e)!==-1&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(ke.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(ke.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(ke.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(ke.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(ke.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(ke.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const t=this.generateStateKey(e),r=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r||R.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(t.indexOf(ke.REQUEST_STATE)===-1)return;const r=this.temporaryCacheStorage.getItem(t);if(!r)return;const o=sm(this.cryptoImpl,r);o&&o.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const t=Ll(JSON.stringify(e));this.setTemporaryCache(ke.REQUEST_PARAMS,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const t=this.getTemporaryCache(ke.REQUEST_PARAMS,!0);if(!t)throw Y(xp);let r;try{r=JSON.parse(_n(t))}catch(o){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${o}`),Y(Dp)}if(this.removeTemporaryItem(this.generateCacheKey(ke.REQUEST_PARAMS)),!r.authority){const o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw Y(Ml);r.authority=i}return r}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(ke.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${R.CACHE_PREFIX}.${ke.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const t=`${R.CACHE_PREFIX}.${ke.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw Y(Ip);this.setTemporaryCache(t,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(t)}getLegacyLoginHint(){const e=this.getTemporaryCache(it.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(it.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const t=this.getTemporaryCache(it.ID_TOKEN,!0);t&&(this.browserStorage.removeItem(this.generateCacheKey(it.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const r=t||e;if(r){const o=qr(r,_n);if(o.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.preferred_username;if(o.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.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}updateCredentialCacheKey(e,t,r){const o=to(t);if(e!==o){const i=this.getItem(e);if(i)return this.browserStorage.removeItem(e),this.setItem(o,i,r),this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`),o;this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}async hydrateCache(e,t){var a,c,l;const r=Js((a=e.account)==null?void 0:a.homeAccountId,(c=e.account)==null?void 0:c.environment,e.idToken,this.clientId,e.tenantId);let o;t.claims&&(o=await this.cryptoImpl.hashString(t.claims));const i=Xs((l=e.account)==null?void 0:l.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,_n,void 0,e.tokenType,void 0,t.sshKid,t.claims,o),s={idToken:r,accessToken:i};return this.saveCacheRecord(s,e.correlationId)}async saveCacheRecord(e,t,r){try{await super.saveCacheRecord(e,t,r)}catch(o){if(o instanceof co&&this.performanceClient&&t)try{const i=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:i.refreshToken.length,cacheIdCount:i.idToken.length,cacheAtCount:i.accessToken.length},t)}catch{}throw o}}}const aI=(n,e)=>{const t={cacheLocation:Ot.MemoryStorage,temporaryCacheLocation:Ot.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new Sc(n,t,ms,e)};/*! @azure/msal-browser v3.30.0 2025-08-05 */function cI(n,e,t,r,o){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(r,o):[]}function lI(n,e,t,r){if(e.trace("getAccount called"),Object.keys(n).length===0)return e.warning("getAccount: No accountFilter provided"),null;const o=t.getAccountInfoFilteredBy(n,r);return o?(e.verbose("getAccount: Account matching provided filter found, returning"),o):(e.verbose("getAccount: No matching account found, returning null"),null)}function uI(n,e,t,r){if(e.trace("getAccountByUsername called"),!n)return e.warning("getAccountByUsername: No username provided"),null;const o=t.getAccountInfoFilteredBy({username:n},r);return o?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${n}`),o):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function dI(n,e,t,r){if(e.trace("getAccountByHomeId called"),!n)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const o=t.getAccountInfoFilteredBy({homeAccountId:n},r);return o?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${n}`),o):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function hI(n,e,t,r){if(e.trace("getAccountByLocalId called"),!n)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const o=t.getAccountInfoFilteredBy({localAccountId:n},r);return o?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${n}`),o):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function fI(n,e,t){e.setActiveAccount(n,t)}function gI(n,e){return n.getActiveAccount(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const oe={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.30.0 2025-08-05 */class pI{constructor(e){this.eventCallbacks=new Map,this.logger=e||new hr({})}addEventCallback(e,t,r){if(typeof window<"u"){const o=r||Vb();return this.eventCallbacks.has(o)?(this.logger.error(`Event callback with id: ${o} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(o,[e,t||[]]),this.logger.verbose(`Event callback registered with id: ${o}`),o)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,t,r,o){if(typeof window<"u"){const i={eventType:e,interactionType:t||null,payload:r||null,error:o||null,timestamp:Date.now()};this.eventCallbacks.forEach(([s,a],c)=>{(a.length===0||a.includes(e))&&(this.logger.verbose(`Emitting event to callback ${c}: ${e}`),s.apply(null,[i]))})}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class am{constructor(e,t,r,o,i,s,a,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=s,this.nativeMessageHandler=c,this.correlationId=l||In(),this.logger=o.clone(Bt.MSAL_SKU,So,this.correlationId),this.performanceClient=a}async clearCacheOnLogout(e){if(e){rt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(this.correlationId),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null,this.correlationId));try{await this.browserStorage.removeAccount(rt.generateAccountCacheKey(e),this.correlationId),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(this.correlationId),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const t=e||this.config.auth.redirectUri;return ve.getAbsoluteUrl(t,Bn())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");const r={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 gi(r,this.browserStorage)}async getDiscoveredAuthority(e){const{account:t}=e,r=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(_.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=e.requestAuthority||this.config.auth.authority,s=r!=null&&r.length?r==="true":this.config.auth.instanceAware,a=t&&s?this.config.auth.authority.replace(ve.getDomainFromUrl(i),t.environment):i,c=pt.generateAuthority(a,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),l=await q(pp,_.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(c,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient);if(t&&!l.isAlias(t.environment))throw xe(sp);return l}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const mI=32;async function yI(n,e,t){n.addQueueMeasurement(_.GeneratePkceCodes,t);const r=$r(CI,_.GenerateCodeVerifier,e,n,t)(n,e,t),o=await q(vI,_.GenerateCodeChallengeFromVerifier,e,n,t)(r,n,e,t);return{verifier:r,challenge:o}}function CI(n,e,t){try{const r=new Uint8Array(mI);return $r(Mb,_.GetRandomValues,e,n,t)(r),sa(r)}catch{throw Y(Pl)}}async function vI(n,e,t,r){e.addQueueMeasurement(_.GenerateCodeChallengeFromVerifier,r);try{const o=await q(em,_.Sha256Digest,t,e,r)(n,e,r);return sa(new Uint8Array(o))}catch{throw Y(Pl)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function jl(n,e,t,r){t.addQueueMeasurement(_.InitializeBaseRequest,n.correlationId);const o=n.authority||e.auth.authority,i=[...n&&n.scopes||[]],s={...n,correlationId:n.correlationId,authority:o,scopes:i};if(!s.authenticationScheme)s.authenticationScheme=Ne.BEARER,r.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(s.authenticationScheme===Ne.SSH){if(!n.sshJwk)throw xe(Zs);if(!n.sshKid)throw xe(rp)}r.verbose(`Authentication Scheme set to "${s.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!tn.isEmptyObj(n.claims)&&(s.requestedClaimsHash=await tm(n.claims)),s}async function TI(n,e,t,r,o){r.addQueueMeasurement(_.InitializeSilentRequest,n.correlationId);const i=await q(jl,_.InitializeBaseRequest,o,r,n.correlationId)(n,t,r,o);return{...n,...i,account:e,forceRefresh:n.forceRefresh||!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class No extends am{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(_.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await q(yI,_.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),r={...e,redirectUri:e.redirectUri,code:R.EMPTY_STRING,codeVerifier:t.verifier};return e.codeChallenge=t.challenge,e.codeChallengeMethod=R.S256_CODE_CHALLENGE_METHOD,r}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const t={correlationId:this.correlationId||In(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const r=this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=r)}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!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=ve.getAbsoluteUrl(e.postLogoutRedirectUri,Bn())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=ve.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Bn())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=ve.getAbsoluteUrl(Bn(),Bn())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return t.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}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(_.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const t=await q(this.getClientConfiguration.bind(this),_.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new Cp(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:i,account:s}=e;this.performanceClient.addQueueMeasurement(_.StandardInteractionClientGetClientConfiguration,this.correlationId);const a=await q(this.getDiscoveredAuthority.bind(this),_.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:i,account:s}),c=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:c.loggerCallback,piiLoggingEnabled:c.piiLoggingEnabled,logLevel:c.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Bt.MSAL_SKU,version:So,cpu:R.EMPTY_STRING,os:R.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,t){this.performanceClient.addQueueMeasurement(_.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const r=this.getRedirectUri(e.redirectUri),o={interactionType:t},i=nn.setRequestState(this.browserCrypto,e&&e.state||R.EMPTY_STRING,o),a={...await q(jl,_.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:r,state:i,nonce:e.nonce||In(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return a;const c=e.account||this.browserStorage.getActiveAccount(this.correlationId);if(c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${c.homeAccountId}`,this.correlationId),a.account=c),!a.loginHint&&!c){const l=this.browserStorage.getLegacyLoginHint();l&&(a.loginHint=l)}return a}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const AI="ContentError",cm="user_switch";/*! @azure/msal-browser v3.30.0 2025-08-05 */const EI="USER_INTERACTION_REQUIRED",wI="USER_CANCEL",_I="NO_NETWORK",bI="PERSISTENT_ERROR",II="DISABLED",SI="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.30.0 2025-08-05 */const RI=-2147186943,kI={[cm]:"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."};class An extends Fe{constructor(e,t,r){super(e,t),Object.setPrototypeOf(this,An.prototype),this.name="NativeAuthError",this.ext=r}}function Zr(n){if(n.ext&&n.ext.status&&(n.ext.status===bI||n.ext.status===II)||n.ext&&n.ext.error&&n.ext.error===RI)return!0;switch(n.errorCode){case AI:return!0;default:return!1}}function Rc(n,e,t){if(t&&t.status)switch(t.status){case SI:return Tc(mp);case EI:return new cn(n,e);case wI:return Y(Fr);case _I:return Y(Es)}return new An(n,kI[n]||e,t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class lm extends No{async acquireToken(e){this.performanceClient.addQueueMeasurement(_.SilentCacheClientAcquireToken,e.correlationId);const t=this.initializeServerTelemetryManager(He.acquireTokenSilent_silentFlow),r=await q(this.getClientConfiguration.bind(this),_.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),o=new db(r,this.performanceClient);this.logger.verbose("Silent auth client created");try{const s=(await q(o.acquireCachedToken.bind(o),_.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),s}catch(i){throw i instanceof Pi&&i.errorCode===xl&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i}}logout(e){this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t==null?void 0:t.account)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class lo extends am{constructor(e,t,r,o,i,s,a,c,l,u,d,h){var C;super(e,t,r,o,i,s,c,l,h),this.apiId=a,this.accountId=u,this.nativeMessageHandler=l,this.nativeStorageManager=d,this.silentCacheClient=new lm(e,this.nativeStorageManager,r,o,i,s,c,l,h),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const f=this.nativeMessageHandler.getExtensionId()===ro.PREFERRED_EXTENSION_ID?"chrome":(C=this.nativeMessageHandler.getExtensionId())!=null&&C.length?"unknown":void 0;this.skus=gi.makeExtraSkuString({libraryName:Bt.MSAL_SKU,libraryVersion:So,extensionName:f,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[Q_]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(_.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const t=this.performanceClient.startMeasurement(_.NativeInteractionClientAcquireToken,e.correlationId),r=bn();try{const o=await this.initializeNativeRequest(e);try{const l=await this.acquireTokensFromCache(this.accountId,o);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...i}=o,s={method:br.GetToken,request:i},a=await this.nativeMessageHandler.sendMessage(s),c=this.validateNativeResponse(a);return await this.handleNativeResponse(c,o,r).then(l=>(t.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),l)).catch(l=>{throw t.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}catch(o){throw o instanceof An&&this.serverTelemetryManager.setNativeBrokerErrorCode(o.errorCode),o}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:Ye.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),H(gc);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},t.correlationId);if(!r)throw H(gc);try{const o=this.createSilentCacheRequest(t,r),i=await this.silentCacheClient.acquireToken(o),s={...r,idTokenClaims:i==null?void 0:i.idTokenClaims,idToken:i==null?void 0:i.idToken};return{...i,account:s}}catch(o){throw o}}async acquireTokenRedirect(e,t){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...r}=e;delete r.onRedirectNavigate;const o=await this.initializeNativeRequest(r),i={method:br.GetToken,request:o};try{const c=await this.nativeMessageHandler.sendMessage(i);this.validateNativeResponse(c)}catch(c){if(c instanceof An&&(this.serverTelemetryManager.setNativeBrokerErrorCode(c.errorCode),Zr(c)))throw c}this.browserStorage.setTemporaryCache(ke.NATIVE_REQUEST,JSON.stringify(o),!0);const s={apiId:He.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),await this.navigationClient.navigateExternal(a,s)}async handleRedirectPromise(e,t){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."),null;const r=this.browserStorage.getCachedNativeRequest();if(!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&(e==null||e.addFields({errorCode:"no_cached_request"},t)),null;const{prompt:o,...i}=r;o&&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(ke.NATIVE_REQUEST));const s={method:br.GetToken,request:i},a=bn();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const c=await this.nativeMessageHandler.sendMessage(s);this.validateNativeResponse(c);const l=this.handleNativeResponse(c,i,a);this.browserStorage.setInteractionInProgress(!1);const u=await l;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),u}catch(c){throw this.browserStorage.setInteractionInProgress(!1),c}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,r){var u;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const o=qr(e.id_token,_n),i=this.createHomeAccountIdentifier(e,o),s=(u=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId},this.correlationId))==null?void 0:u.homeAccountId;if(i!==s&&e.account.id!==t.accountId)throw Rc(cm);const a=await this.getDiscoveredAuthority({requestAuthority:t.authority}),c=Rl(this.browserStorage,a,i,_n,this.correlationId,o,e.client_info,void 0,o.tid,void 0,e.account.id,this.logger),l=await this.generateAuthenticationResult(e,t,o,c,a.canonicalAuthority,r);return this.cacheAccount(c),this.cacheNativeTokens(e,t,i,o,e.access_token,l.tenantId,r),l}createHomeAccountIdentifier(e,t){return rt.generateHomeAccountId(e.client_info||R.EMPTY_STRING,Zt.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?Ye.fromString(e.scope):Ye.fromString(t.scope)}async generatePopAccessToken(e,t){if(t.tokenType===Ne.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const r=new Io(this.browserCrypto),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw H(hl);return r.signPopToken(e.access_token,t.keyId,o)}else return e.access_token}async generateAuthenticationResult(e,t,r,o,i,s){const a=this.addTelemetryFromNativeResponse(e),c=e.scope?Ye.fromString(e.scope):Ye.fromString(t.scope),l=e.account.properties||{},u=l.UID||r.oid||r.sub||R.EMPTY_STRING,d=l.TenantId||r.tid||R.EMPTY_STRING,h=Al(o.getAccountInfo(),void 0,r,e.id_token);h.nativeAccountId!==e.account.id&&(h.nativeAccountId=e.account.id);const f=await this.generatePopAccessToken(e,t),C=t.tokenType===Ne.POP?Ne.POP:Ne.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:c.asArray(),account:h,idToken:e.id_token,idTokenClaims:r,accessToken:f,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:new Date(Number(s+e.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e,this.correlationId).catch(t=>{this.logger.error(`Error occurred while removing account context from browser storage. ${t}`)})}cacheNativeTokens(e,t,r,o,i,s,a){const c=Js(r,t.authority,e.id_token||"",t.clientId,o.tid||""),l=t.tokenType===Ne.POP?R.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=a+l,d=this.generateScopes(e,t),h=Xs(r,t.authority,i,t.clientId,o.tid||s,d.printScopes(),u,0,_n,void 0,t.tokenType,void 0,t.keyId),f={idToken:c,accessToken:h};this.nativeStorageManager.saveCacheRecord(f,t.correlationId,t.storeInCache)}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Sg(sl,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const t=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:t,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const r=new ve(t);r.validateAsUri();const{scopes:o,...i}=e,s=new Ye(o||[]);s.appendScopes(Po);const a=()=>{switch(this.apiId){case He.ssoSilent:case He.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),at.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case at.NONE:case at.CONSENT:case at.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),Y(Vp)}},c={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:r.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(c.signPopToken&&e.popKid)throw Y(Qp);if(this.handleExtraBrokerParams(c),c.extraParameters=c.extraParameters||{},c.extraParameters.telemetry=ro.MATS_TELEMETRY,e.authenticationScheme===Ne.POP){const l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new Io(this.browserCrypto);let d;if(c.keyId)d=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:c.keyId})),c.signPopToken=!1;else{const h=await q(u.generateCnf.bind(u),_.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(l,this.logger);d=h.reqCnfString,c.keyId=h.kid,c.signPopToken=!0}c.reqCnf=d}return this.addRequestSKUs(c),c}handleExtraBrokerParams(e){var i;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(bl)&&e.extraParameters.hasOwnProperty(vc)&&e.extraParameters.hasOwnProperty(Ur);if(!e.embeddedClientId&&!t)return;let r="";const o=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[vc],r=e.extraParameters[Ur]),e.extraParameters={child_client_id:r,child_redirect_uri:o},(i=this.performanceClient)==null||i.addFields({embeddedClientId:r,embeddedRedirectUri:o},e.correlationId)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class En{constructor(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(_.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const t={channel:ro.CHANNEL_ID,extensionId:this.extensionId,responseId:In(),body:e};return 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),new Promise((r,o)=>{this.resolvers.set(t.responseId,{resolve:r,reject:o})})}static async createProvider(e,t,r){e.trace("NativeMessageHandler - createProvider called.");try{const o=new En(e,t,r,ro.PREFERRED_EXTENSION_ID);return await o.sendHandshakeRequest(),o}catch{const i=new En(e,t,r);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ro.CHANNEL_ID,extensionId:this.extensionId,responseId:In(),body:{method:br.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=t=>{this.onChannelMessage(t)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,r)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(Y($p)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const t=e.data;if(!(!t.channel||t.channel!==ro.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===br.HandshakeRequest){const r=this.handshakeResolvers.get(t.responseId);if(!r){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);return}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),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(Y(jp))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const t=e.data,r=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{const i=t.body.method;if(i===br.Response){if(!r)return;const s=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(s)}`),s.status!=="Success")r.reject(Rc(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?r.reject(Rc(s.result.code,s.result.description,s.result.ext)):r.resolve(s.result);else throw Sg(sl,"Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===br.HandshakeResponse){if(!o){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${t.responseId}`);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.end({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),r?r.reject(i):o&&o.reject(i)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,t,r,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case Ne.BEARER:case Ne.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}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Gl{constructor(e,t,r,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=i}async handleCodeResponse(e,t){this.performanceClient.addQueueMeasurement(_.HandleCodeResponse,t.correlationId);let r;try{r=this.authModule.handleFragmentResponse(e,t.state)}catch(o){throw o instanceof fr&&o.subError===Fr?Y(Fr):o}return q(this.handleCodeResponseFromServer.bind(this),_.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)(r,t)}async handleCodeResponseFromServer(e,t,r=!0){if(this.performanceClient.addQueueMeasurement(_.HandleCodeResponseFromServer,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await q(this.authModule.updateAuthority.bind(this.authModule),_.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId),r&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(t);i&&(this.authCodeRequest.ccsCredential=i)}return await q(this.authModule.acquireToken.bind(this.authModule),_.AuthClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:qt.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:qt.UPN}:null}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function um(n,e,t){const r=vs(n);if(!r)throw cp(n)?(t.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),t.errorPii(`The ${e} detected is: ${n}`),Y(wp)):(t.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),Y(Ep));return r}function OI(n,e,t){if(!n.state)throw Y(Nl);const r=sm(e,n.state);if(!r)throw Y(_p);if(r.interactionType!==t)throw Y(bp)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class PI extends No{constructor(e,t,r,o,i,s,a,c,l,u){super(e,t,r,o,i,s,a,l,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=c}acquireToken(e){try{const r={popupName:this.generatePopupName(e.scopes||Po,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(e,r))}catch(t){return Promise.reject(t)}}logout(e){try{this.logger.verbose("logoutPopup called");const t=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},o=e&&e.authority,i=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,r,o,i)):(this.logger.verbose("asyncPopup set to false, opening popup"),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(t,r,o,i))}catch(t){return Promise.reject(t)}}async acquireTokenPopupAsync(e,t){var i;this.logger.verbose("acquireTokenPopupAsync called");const r=this.initializeServerTelemetryManager(He.acquireTokenPopup),o=await q(this.initializeAuthorizationRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,ee.Popup);im(o.authority);try{const s=await q(this.initializeAuthorizationCodeRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(o),a=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),c=En.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let l;c&&(l=this.performanceClient.startMeasurement(_.FetchAccountIdWithNativeBroker,e.correlationId));const u=await a.getAuthCodeUrl({...o,nativeBroker:c}),d=new Gl(a,this.browserStorage,s,this.logger,this.performanceClient),h=this.initiateAuthRequest(u,t);this.eventHandler.emitEvent(oe.POPUP_OPENED,ee.Popup,{popupWindow:h},null);const f=await this.monitorPopupForHash(h,t.popupWindowParent),C=$r(um,_.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(f,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Tn.removeThrottle(this.browserStorage,this.config.auth.clientId,s),C.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),l&&l.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Y(Oi);const v=new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,C.accountId,this.nativeStorage,o.correlationId),{userRequestState:E}=nn.parseRequestState(this.browserCrypto,o.state);return await v.acquireToken({...o,state:E,prompt:void 0})}return await d.handleCodeResponse(C,o)}catch(s){throw(i=t.popup)==null||i.close(),s instanceof Fe&&(s.setCorrelationId(this.correlationId),r.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,t,r,o){var s,a,c,l;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(oe.LOGOUT_START,ee.Popup,e);const i=this.initializeServerTelemetryManager(He.logoutPopup);try{await this.clearCacheOnLogout(e.account);const u=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:i,requestAuthority:r,account:e.account||void 0});try{u.authority.endSessionEndpoint}catch{if((s=e.account)!=null&&s.homeAccountId&&e.postLogoutRedirectUri&&u.authority.protocolMode===qn.OIDC){if(this.browserStorage.removeAccount((a=e.account)==null?void 0:a.homeAccountId,this.correlationId),this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS,ee.Popup,e),o){const f={apiId:He.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=ve.getAbsoluteUrl(o,Bn());await this.navigationClient.navigateInternal(C,f)}(c=t.popup)==null||c.close();return}}const d=u.getLogoutUri(e);this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS,ee.Popup,e);const h=this.openPopup(d,t);if(this.eventHandler.emitEvent(oe.POPUP_OPENED,ee.Popup,{popupWindow:h},null),await this.monitorPopupForHash(h,t.popupWindowParent).catch(()=>{}),o){const f={apiId:He.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=ve.getAbsoluteUrl(o,Bn());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${C}`),await this.navigationClient.navigateInternal(C,f)}else this.logger.verbose("No main window navigation requested")}catch(u){throw(l=t.popup)==null||l.close(),u instanceof Fe&&(u.setCorrelationId(this.correlationId),i.cacheFailedRequest(u)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(oe.LOGOUT_FAILURE,ee.Popup,null,u),this.eventHandler.emitEvent(oe.LOGOUT_END,ee.Popup),u}this.eventHandler.emitEvent(oe.LOGOUT_END,ee.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),Y(ra)}monitorPopupForHash(e,t){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const i=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(i),o(Y(Fr));return}let s="";try{s=e.location.href}catch{}if(!s||s==="about:blank")return;clearInterval(i);let a="";const c=this.config.auth.OIDCOptions.serverResponseType;e&&(c===ki.QUERY?a=e.location.search:a=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,t)})}openPopup(e,t){try{let r;if(t.popup?(r=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),r.location.assign(e)):typeof t.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),r=this.openSizedPopup(e,t)),!r)throw Y(Rp);return r.focus&&r.focus(),this.currentWindow=r,t.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),r}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),Y(Sp)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:r,popupWindowParent:o}){var f,C,p,v;const i=o.screenLeft?o.screenLeft:o.screenX,s=o.screenTop?o.screenTop:o.screenY,a=o.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=o.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let l=(f=r.popupSize)==null?void 0:f.width,u=(C=r.popupSize)==null?void 0:C.height,d=(p=r.popupPosition)==null?void 0:p.top,h=(v=r.popupPosition)==null?void 0:v.left;return(!l||l<0||l>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),l=Bt.POPUP_WIDTH),(!u||u<0||u>c)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),u=Bt.POPUP_HEIGHT),(!d||d<0||d>c)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),d=Math.max(0,c/2-Bt.POPUP_HEIGHT/2+s)),(!h||h<0||h>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),h=Math.max(0,a/2-Bt.POPUP_WIDTH/2+i)),o.open(e,t,`width=${l}, height=${u}, top=${d}, left=${h}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(ee.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,t){e.close(),t.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${Bt.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${Bt.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t}.${this.correlationId}`}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class nh{constructor(e,t,r,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=i}async initiateAuthRequest(e,t){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ke.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ke.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const r={apiId:He.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1};if(typeof t.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),t.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await t.navigationClient.navigateExternal(e,r);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await t.navigationClient.navigateExternal(e,r);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Y(ra)}async handleCodeResponse(e,t){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const r=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(r);if(!o)throw H(ps,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,o)}catch(l){throw l instanceof fr&&l.subError===Fr?Y(Fr):l}const s=this.browserStorage.generateNonceKey(o),a=this.browserStorage.getTemporaryCache(s);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await q(this.authModule.updateAuthority.bind(this.authModule),_.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=a||void 0,i.state=o,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const l=this.checkCcsCredentials();l&&(this.authCodeRequest.ccsCredential=l)}const c=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(t),c}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(ke.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}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function NI(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const n=window.performance.getEntriesByType("navigation"),e=n.length?n[0]:void 0;return e==null?void 0:e.type}class MI extends No{constructor(e,t,r,o,i,s,a,c,l,u){super(e,t,r,o,i,s,a,l,u),this.nativeStorage=c}async acquireToken(e){const t=await q(this.initializeAuthorizationRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,ee.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);const r=this.initializeServerTelemetryManager(He.acquireTokenRedirect),o=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(oe.RESTORE_FROM_BFCACHE,ee.Redirect))};try{const i=await q(this.initializeAuthorizationCodeRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(t),s=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),a=new nh(s,this.browserStorage,i,this.logger,this.performanceClient),c=await s.getAuthCodeUrl({...t,nativeBroker:En.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),l=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${l}`),window.addEventListener("pageshow",o),await a.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(i){throw i instanceof Fe&&(i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i)),window.removeEventListener("pageshow",o),this.browserStorage.cleanRequestByState(t.state),i}}async handleRedirectPromise(e="",t){const r=this.initializeServerTelemetryManager(He.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,i]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(ee.Redirect),NI()!=="back_forward"?t.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const s=this.browserStorage.getTemporaryCache(ke.ORIGIN_URI,!0)||R.EMPTY_STRING,a=ve.removeHashFromUrl(s),c=ve.removeHashFromUrl(window.location.href);if(a===c&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),s.indexOf("#")>-1&&Bb(s),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Kl()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(ke.URL_HASH,i,!0);const l={apiId:He.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let u=!0;if(!s||s==="null"){const d=qb();this.browserStorage.setTemporaryCache(ke.ORIGIN_URI,d,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),u=await this.navigationClient.navigateInternal(d,l)}else this.logger.verbose(`Navigating to loginRequestUrl: ${s}`),u=await this.navigationClient.navigateInternal(s,l);if(!u)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof Fe&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(ee.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(this.config.auth.OIDCOptions.serverResponseType===ki.QUERY?t=window.location.search:t=window.location.hash);let r=vs(t);if(r){try{OI(r,this.browserCrypto,ee.Redirect)}catch(i){return i instanceof Fe&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return Fb(window),this.logger.verbose("Hash contains known properties, returning response hash"),[r,t]}const o=this.browserStorage.getTemporaryCache(ke.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ke.URL_HASH)),o&&(r=vs(o),r)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[r,o]):[null,""]}async handleResponse(e,t){const r=e.state;if(!r)throw Y(Nl);const o=this.browserStorage.getCachedRequest(r);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Y(Oi);const c=new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,o.correlationId),{userRequestState:l}=nn.parseRequestState(this.browserCrypto,r);return c.acquireToken({...o,state:l,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(r)})}const i=this.browserStorage.getCachedAuthority(r);if(!i)throw Y(Ml);const s=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:i});return Tn.removeThrottle(this.browserStorage,this.config.auth.clientId,o),new nh(s,this.browserStorage,o,this.logger,this.performanceClient).handleCodeResponse(e,r)}async logout(e){var o,i;this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(He.logout);try{this.eventHandler.emitEvent(oe.LOGOUT_START,ee.Redirect,e),await this.clearCacheOnLogout(t.account);const s={apiId:He.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(a.authority.protocolMode===qn.OIDC)try{a.authority.endSessionEndpoint}catch{if((o=t.account)!=null&&o.homeAccountId){this.browserStorage.removeAccount((i=t.account)==null?void 0:i.homeAccountId,this.correlationId),this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS,ee.Redirect,t);return}}const c=a.getLogoutUri(t);if(this.eventHandler.emitEvent(oe.LOGOUT_SUCCESS,ee.Redirect,t),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(c)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(c,s);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(c,s);return}}catch(s){throw s instanceof Fe&&(s.setCorrelationId(this.correlationId),r.cacheFailedRequest(s)),this.eventHandler.emitEvent(oe.LOGOUT_FAILURE,ee.Redirect,null,s),this.eventHandler.emitEvent(oe.LOGOUT_END,ee.Redirect),s}this.eventHandler.emitEvent(oe.LOGOUT_END,ee.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return ve.getAbsoluteUrl(t,Bn())}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function xI(n,e,t,r,o){if(e.addQueueMeasurement(_.SilentHandlerInitiateAuthRequest,r),!n)throw t.info("Navigate url is empty"),Y(ra);return o?q(LI,_.SilentHandlerLoadFrame,t,e,r)(n,o,e,r):$r(UI,_.SilentHandlerLoadFrameSync,t,e,r)(n)}async function DI(n,e,t,r,o,i,s){return r.addQueueMeasurement(_.SilentHandlerMonitorIframeForHash,i),new Promise((a,c)=>{e<bc&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${bc}ms). This may result in timeouts.`);const l=window.setTimeout(()=>{window.clearInterval(u),c(Y(kp))},e),u=window.setInterval(()=>{let d="";const h=n.contentWindow;try{d=h?h.location.href:""}catch{}if(!d||d==="about:blank")return;let f="";h&&(s===ki.QUERY?f=h.location.search:f=h.location.hash),window.clearTimeout(l),window.clearInterval(u),a(f)},t)}).finally(()=>{$r(HI,_.RemoveHiddenIframe,o,r,i)(n)})}function LI(n,e,t,r){return t.addQueueMeasurement(_.SilentHandlerLoadFrame,r),new Promise((o,i)=>{const s=dm();window.setTimeout(()=>{if(!s){i("Unable to load iframe");return}s.src=n,o(s)},e)})}function UI(n){const e=dm();return e.src=n,e}function dm(){const n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(n),n}function HI(n){document.body===n.parentNode&&document.body.removeChild(n)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class FI extends No{constructor(e,t,r,o,i,s,a,c,l,u,d){super(e,t,r,o,i,s,c,u,d),this.apiId=a,this.nativeStorage=l}async acquireToken(e){this.performanceClient.addQueueMeasurement(_.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const t={...e};t.prompt?t.prompt!==at.NONE&&t.prompt!==at.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${at.NONE}`),t.prompt=at.NONE):t.prompt=at.NONE;const r=await q(this.initializeAuthorizationRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,ee.Silent);im(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);let i;try{return i=await q(this.createAuthCodeClient.bind(this),_.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:o,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),await q(this.silentTokenHelper.bind(this),_.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(i,r)}catch(s){if(s instanceof Fe&&(s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s)),!i||!(s instanceof Fe)||s.errorCode!==Bt.INVALID_GRANT_ERROR)throw s;this.performanceClient.addFields({retryError:s.errorCode},this.correlationId);const a=await q(this.initializeAuthorizationRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,ee.Silent);return await q(this.silentTokenHelper.bind(this),_.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(i,a)}}logout(){return Promise.reject(Y(oa))}async silentTokenHelper(e,t){const r=t.correlationId;this.performanceClient.addQueueMeasurement(_.SilentIframeClientTokenHelper,r);const o=await q(this.initializeAuthorizationCodeRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,r)(t),i=await q(e.getAuthCodeUrl.bind(e),_.GetAuthCodeUrl,this.logger,this.performanceClient,r)({...t,nativeBroker:En.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),s=new Gl(e,this.browserStorage,o,this.logger,this.performanceClient),a=await q(xI,_.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(i,this.performanceClient,this.logger,r,this.config.system.navigateFrameWait),c=this.config.auth.OIDCOptions.serverResponseType,l=await q(DI,_.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(a,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,c),u=$r(um,_.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(l,c,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Y(Oi);const d=new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,r),{userRequestState:h}=nn.parseRequestState(this.browserCrypto,t.state);return q(d.acquireToken.bind(d),_.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,r)({...t,state:h,prompt:t.prompt||at.NONE})}return q(s.handleCodeResponse.bind(s),_.HandleCodeResponse,this.logger,this.performanceClient,r)(u,t)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class BI extends No{async acquireToken(e){this.performanceClient.addQueueMeasurement(_.SilentRefreshClientAcquireToken,e.correlationId);const t=await q(jl,_.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),r={...e,...t};e.redirectUri&&(r.redirectUri=this.getRedirectUri(e.redirectUri));const o=this.initializeServerTelemetryManager(He.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient({serverTelemetryManager:o,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return q(i.acquireTokenByRefreshToken.bind(i),_.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(r).catch(s=>{throw s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s),s})}logout(){return Promise.reject(Y(oa))}async createRefreshTokenClient(e){const t=await q(this.getClientConfiguration.bind(this),_.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new Ac(t,this.performanceClient)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class KI{constructor(e,t,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=o}loadExternalTokens(e,t,r){if(!this.isBrowserEnvironment)throw Y(ia);const o=e.correlationId||In(),i=t.id_token?qr(t.id_token,_n):void 0,s={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},a=e.authority?new pt(pt.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,s,this.logger,e.correlationId||In()):void 0,c=this.loadAccount(e,r.clientInfo||t.client_info||"",o,i,a),l=this.loadIdToken(t,c.homeAccountId,c.environment,c.realm,o),u=this.loadAccessToken(e,t,c.homeAccountId,c.environment,c.realm,r,o),d=this.loadRefreshToken(t,c.homeAccountId,c.environment,o);return this.generateAuthenticationResult(e,{account:c,idToken:l,accessToken:u,refreshToken:d},i,a)}loadAccount(e,t,r,o,i){if(this.logger.verbose("TokenCache - loading account"),e.account){const l=rt.createFromAccountInfo(e.account);return this.storage.setAccount(l,r),l}else if(!i||!t&&!o)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),Y(Hp);const s=rt.generateHomeAccountId(t,i.authorityType,this.logger,this.cryptoObj,o),a=o==null?void 0:o.tid,c=Rl(this.storage,i,s,_n,r,o,t,i.hostnameAndPort,a,void 0,void 0,this.logger);return this.storage.setAccount(c,r),c}loadIdToken(e,t,r,o,i){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const s=Js(t,r,e.id_token,this.config.auth.clientId,o);return this.storage.setIdTokenCredential(s,i),s}loadAccessToken(e,t,r,o,i,s,a){if(t.access_token)if(t.expires_in){if(!t.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const c=t.scope?Ye.fromString(t.scope):new Ye(e.scopes),l=s.expiresOn||t.expires_in+new Date().getTime()/1e3,u=s.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+new Date().getTime()/1e3,d=Xs(r,o,t.access_token,this.config.auth.clientId,i,c.printScopes(),l,u,_n);return this.storage.setAccessTokenCredential(d,a),d}loadRefreshToken(e,t,r,o){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const i=Vg(t,r,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(i,o),i}generateAuthenticationResult(e,t,r,o){var u,d,h;let i="",s=[],a=null,c;t!=null&&t.accessToken&&(i=t.accessToken.secret,s=Ye.fromString(t.accessToken.target).asArray(),a=new Date(Number(t.accessToken.expiresOn)*1e3),c=new Date(Number(t.accessToken.extendedExpiresOn)*1e3));const l=t.account;return{authority:o?o.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:s,account:l.getAccountInfo(),idToken:((u=t.idToken)==null?void 0:u.secret)||"",idTokenClaims:r||{},accessToken:i,fromCache:!0,expiresOn:a,correlationId:e.correlationId||"",requestId:"",extExpiresOn:c,familyId:((d=t.refreshToken)==null?void 0:d.familyId)||"",tokenType:((h=t==null?void 0:t.accessToken)==null?void 0:h.tokenType)||"",state:e.state||"",cloudGraphHostName:l.cloudGraphHostName||"",msGraphHost:l.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class qI extends Cp{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class $I extends No{constructor(e,t,r,o,i,s,a,c,l,u){super(e,t,r,o,i,s,c,l,u),this.apiId=a}async acquireToken(e){if(!e.code)throw Y(Fp);const t=await q(this.initializeAuthorizationRequest.bind(this),_.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,ee.Silent),r=this.initializeServerTelemetryManager(this.apiId);try{const o={...t,code:e.code},i=await q(this.getClientConfiguration.bind(this),_.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),s=new qI(i);this.logger.verbose("Auth code client created");const a=new Gl(s,this.browserStorage,o,this.logger,this.performanceClient);return await q(a.handleCodeResponseFromServer.bind(a),_.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(o){throw o instanceof Fe&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),o}}logout(){return Promise.reject(Y(oa))}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function dn(n){const e=n==null?void 0:n.idTokenClaims;if(e!=null&&e.tfp||e!=null&&e.acr)return"B2C";if(e!=null&&e.tid){if((e==null?void 0:e.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function zi(n,e){try{ql(n)}catch(t){throw e.end({success:!1},t),t}}class aa{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Ro(this.logger,this.performanceClient):ms,this.eventHandler=new pI(this.logger),this.browserStorage=this.isBrowserEnvironment?new Sc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,tb(this.config.auth),this.performanceClient):aI(this.config.auth.clientId,this.logger);const t={cacheLocation:Ot.MemoryStorage,temporaryCacheLocation:Ot.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new Sc(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new KI(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,t){const r=new aa(e);return await r.initialize(t),r}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(oe.INITIALIZE_END);return}const t=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),r=this.config.system.allowNativeBroker,o=this.performanceClient.startMeasurement(_.InitializeClientApplication,t);if(this.eventHandler.emitEvent(oe.INITIALIZE_START),r)try{this.nativeExtensionProvider=await En.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(i){this.logger.verbose(i)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await q(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),_.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(oe.INITIALIZE_END),o.end({allowNativeBroker:r,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),om(this.initialized),this.isBrowserEnvironment){const t=e||"";let r=this.redirectResponse.get(t);return typeof r>"u"?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,r),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),r}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const t=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),o=r&&En.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,i=o?r==null?void 0:r.correlationId:this.browserStorage.getTemporaryCache(ke.CORRELATION_ID,!0)||"",s=this.performanceClient.startMeasurement(_.AcquireTokenRedirect,i);this.eventHandler.emitEvent(oe.HANDLE_REDIRECT_START,ee.Redirect);let a;if(o&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const c=new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,r.accountId,this.nativeInternalStorage,r.correlationId);a=q(c.handleRedirectPromise.bind(c),_.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(this.performanceClient,s.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const c=this.createRedirectClient(i);a=q(c.handleRedirectPromise.bind(c),_.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(e,s)}return a.then(c=>(c?(t.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(oe.LOGIN_SUCCESS,ee.Redirect,c),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS,ee.Redirect,c),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),s.end({success:!0,accountType:dn(c.account)})):s.event.errorCode?s.end({success:!1}):s.discard(),this.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END,ee.Redirect),c)).catch(c=>{const l=c;throw t.length>0?this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE,ee.Redirect,null,l):this.eventHandler.emitEvent(oe.LOGIN_FAILURE,ee.Redirect,null,l),this.eventHandler.emitEvent(oe.HANDLE_REDIRECT_END,ee.Redirect),s.end({success:!1},l),c})}async acquireTokenRedirect(e){const t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);const r=this.performanceClient.startMeasurement(_.AcquireTokenPreRedirect,t);r.add({accountType:dn(e.account),scenarioId:e.scenarioId});const o=e.onRedirectNavigate;if(o)e.onRedirectNavigate=s=>{const a=typeof o=="function"?o(s):void 0;return a!==!1?r.end({success:!0}):r.discard(),a};else{const s=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=a=>{const c=typeof s=="function"?s(a):void 0;return c!==!1?r.end({success:!0}):r.discard(),c}}const i=this.getAllAccounts().length>0;try{Xd(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),i?this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START,ee.Redirect,e):this.eventHandler.emitEvent(oe.LOGIN_START,ee.Redirect,e);let s;return this.nativeExtensionProvider&&this.canUseNative(e)?s=new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,r).catch(c=>{if(c instanceof An&&Zr(c))return this.nativeExtensionProvider=void 0,this.createRedirectClient(t).acquireToken(e);if(c instanceof cn)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),c}):s=this.createRedirectClient(t).acquireToken(e),await s}catch(s){throw r.end({success:!1},s),i?this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE,ee.Redirect,null,s):this.eventHandler.emitEvent(oe.LOGIN_FAILURE,ee.Redirect,null,s),s}}acquireTokenPopup(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(_.AcquireTokenPopup,t);r.add({scenarioId:e.scenarioId,accountType:dn(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),zi(this.initialized,r),this.browserStorage.setInteractionInProgress(!0)}catch(s){return Promise.reject(s)}const o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START,ee.Popup,e):this.eventHandler.emitEvent(oe.LOGIN_START,ee.Popup,e);let i;return this.canUseNative(e)?i=this.acquireTokenNative({...e,correlationId:t},He.acquireTokenPopup).then(s=>(this.browserStorage.setInteractionInProgress(!1),r.end({success:!0,isNativeBroker:!0,accountType:dn(s.account)}),s)).catch(s=>{if(s instanceof An&&Zr(s))return this.nativeExtensionProvider=void 0,this.createPopupClient(t).acquireToken(e);if(s instanceof cn)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),s}):i=this.createPopupClient(t).acquireToken(e),i.then(s=>(o.length<this.getAllAccounts().length?this.eventHandler.emitEvent(oe.LOGIN_SUCCESS,ee.Popup,s):this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS,ee.Popup,s),r.end({success:!0,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:dn(s.account)}),s)).catch(s=>(o.length>0?this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE,ee.Popup,null,s):this.eventHandler.emitEvent(oe.LOGIN_FAILURE,ee.Popup,null,s),r.end({success:!1},s),Promise.reject(s)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var i,s;const t=this.getRequestCorrelationId(e),r={...e,prompt:e.prompt,correlationId:t};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(_.SsoSilent,t),(i=this.ssoSilentMeasurement)==null||i.add({scenarioId:e.scenarioId,accountType:dn(e.account)}),zi(this.initialized,this.ssoSilentMeasurement),(s=this.ssoSilentMeasurement)==null||s.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(oe.SSO_SILENT_START,ee.Silent,r);let o;return this.canUseNative(r)?o=this.acquireTokenNative(r,He.ssoSilent).catch(a=>{if(a instanceof An&&Zr(a))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(r.correlationId).acquireToken(r);throw a}):o=this.createSilentIframeClient(r.correlationId).acquireToken(r),o.then(a=>{var c;return this.eventHandler.emitEvent(oe.SSO_SILENT_SUCCESS,ee.Silent,a),(c=this.ssoSilentMeasurement)==null||c.end({success:!0,isNativeBroker:a.fromNativeBroker,accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length,accountType:dn(a.account)}),a}).catch(a=>{var c;throw this.eventHandler.emitEvent(oe.SSO_SILENT_FAILURE,ee.Silent,null,a),(c=this.ssoSilentMeasurement)==null||c.end({success:!1},a),a}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);const r=this.performanceClient.startMeasurement(_.AcquireTokenByCode,t);zi(this.initialized,r),this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_START,ee.Silent,e),r.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw Y(Kp);if(e.code){const o=e.code;let i=this.hybridAuthCodeResponses.get(o);return i?(this.logger.verbose("Existing acquireTokenByCode request found",t),r.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync({...e,correlationId:t}).then(s=>(this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_SUCCESS,ee.Silent,s),this.hybridAuthCodeResponses.delete(o),r.end({success:!0,isNativeBroker:s.fromNativeBroker,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:dn(s.account)}),s)).catch(s=>{throw this.hybridAuthCodeResponses.delete(o),this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE,ee.Silent,null,s),r.end({success:!1},s),s}),this.hybridAuthCodeResponses.set(o,i)),await i}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){const o=await this.acquireTokenNative({...e,correlationId:t},He.acquireTokenByCode,e.nativeAccountId).catch(i=>{throw i instanceof An&&Zr(i)&&(this.nativeExtensionProvider=void 0),i});return r.end({accountType:dn(o.account),success:!0}),o}else throw Y(qp);else throw Y(Bp)}catch(o){throw this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_BY_CODE_FAILURE,ee.Silent,null,o),r.end({success:!1},o),o}}async acquireTokenByCodeAsync(e){var o;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(_.AcquireTokenByCodeAsync,e.correlationId),(o=this.acquireTokenByCodeAsyncMeasurement)==null||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(i=>{var s;return(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!0,fromCache:i.fromCache,isNativeBroker:i.fromNativeBroker}),i}).catch(i=>{var s;throw(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!1},i),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,t){switch(this.performanceClient.addQueueMeasurement(_.AcquireTokenFromCache,e.correlationId),t){case Lt.Default:case Lt.AccessToken:case Lt.AccessTokenAndRefreshToken:const r=this.createSilentCacheClient(e.correlationId);return q(r.acquireToken.bind(r),_.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw H(Fn)}}async acquireTokenByRefreshToken(e,t){switch(this.performanceClient.addQueueMeasurement(_.AcquireTokenByRefreshToken,e.correlationId),t){case Lt.Default:case Lt.AccessTokenAndRefreshToken:case Lt.RefreshToken:case Lt.RefreshTokenAndNetwork:const r=this.createSilentRefreshClient(e.correlationId);return q(r.acquireToken.bind(r),_.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw H(Fn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(_.AcquireTokenBySilentIframe,e.correlationId);const t=this.createSilentIframeClient(e.correlationId);return q(t.acquireToken.bind(t),_.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect({correlationId:t,...e})}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);return Xd(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return ql(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(t).logout(e)}catch(t){return Promise.reject(t)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){const t=this.getRequestCorrelationId();return cI(this.logger,this.browserStorage,this.isBrowserEnvironment,t,e)}getAccount(e){const t=this.getRequestCorrelationId();return lI(e,this.logger,this.browserStorage,t)}getAccountByUsername(e){const t=this.getRequestCorrelationId();return uI(e,this.logger,this.browserStorage,t)}getAccountByHomeId(e){const t=this.getRequestCorrelationId();return dI(e,this.logger,this.browserStorage,t)}getAccountByLocalId(e){const t=this.getRequestCorrelationId();return hI(e,this.logger,this.browserStorage,t)}setActiveAccount(e){const t=this.getRequestCorrelationId();fI(e,this.browserStorage,t)}getActiveAccount(){const e=this.getRequestCorrelationId();return gI(this.browserStorage,e)}async hydrateCache(e,t){this.logger.verbose("hydrateCache called");const r=rt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(r,e.correlationId),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)}async acquireTokenNative(e,t,r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Y(Oi);return new lo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,t){if(this.logger.trace("canUseNative called"),!En.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 at.NONE:case at.CONSENT:case at.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}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new PI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new MI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new FI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new lm(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new BI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new $I(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,He.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return rm(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){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)))}disableAccountStorageEvents(){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."))}handleAccountCacheChange(e){var t;try{(t=e.key)!=null&&t.includes(it.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(oe.ACTIVE_ACCOUNT_CHANGED);const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!rt.isAccountEntity(o))return;const s=bo.toObject(new rt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(oe.ACCOUNT_ADDED,void 0,s)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(oe.ACCOUNT_REMOVED,void 0,s))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?In():R.EMPTY_STRING}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect({correlationId:t,...e||Wd})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||Wd})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(_.AcquireTokenSilent,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),zi(this.initialized,r),this.logger.verbose("acquireTokenSilent called",t);const o=e.account||this.getActiveAccount();if(!o)throw Y(Mp);r.add({accountType:dn(o)});const i={clientId:this.config.auth.clientId,authority:e.authority||R.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},s=JSON.stringify(i),a=this.activeSilentTokenRequests.get(s);if(typeof a>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);const c=q(this.acquireTokenSilentAsync.bind(this),_.AcquireTokenSilentAsync,this.logger,this.performanceClient,t)({...e,correlationId:t},o).then(l=>(this.activeSilentTokenRequests.delete(s),r.end({success:!0,fromCache:l.fromCache,isNativeBroker:l.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),l)).catch(l=>{throw this.activeSilentTokenRequests.delete(s),r.end({success:!1},l),l});return this.activeSilentTokenRequests.set(s,c),{...await c,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),r.discard(),{...await a,state:e.state}}async acquireTokenSilentAsync(e,t){const r=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(_.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_START,ee.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",r);const o=await q(TI,_.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),i=e.cacheLookupPolicy||Lt.Default;return this.acquireTokenSilentNoIframe(o,i).catch(async a=>{if(jI(a,i))if(this.activeIframeRequest)if(i!==Lt.Skip){const[l,u]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${u}`,o.correlationId);const d=this.performanceClient.startMeasurement(_.AwaitConcurrentIframe,o.correlationId);d.add({awaitIframeCorrelationId:u});const h=await l;if(d.end({success:h}),h)return this.logger.verbose(`Parallel iframe request with correlationId: ${u} succeeded. Retrying cache and/or RT redemption`,o.correlationId),this.acquireTokenSilentNoIframe(o,i);throw this.logger.info(`Iframe request with correlationId: ${u} failed. Interaction is required.`),a}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",o.correlationId),q(this.acquireTokenBySilentIframe.bind(this),_.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o);else{let l;return this.activeIframeRequest=[new Promise(u=>{l=u}),o.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",o.correlationId),q(this.acquireTokenBySilentIframe.bind(this),_.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o).then(u=>(l(!0),u)).catch(u=>{throw l(!1),u}).finally(()=>{this.activeIframeRequest=void 0})}else throw a}).then(a=>(this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_SUCCESS,ee.Silent,a),e.correlationId&&this.performanceClient.addFields({fromCache:a.fromCache,isNativeBroker:a.fromNativeBroker},e.correlationId),a)).catch(a=>{throw this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_FAILURE,ee.Silent,null,a),a}).finally(()=>{document.removeEventListener("visibilitychange",r)})}async acquireTokenSilentNoIframe(e,t){return En.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,He.acquireTokenSilent_silentFlow).catch(async r=>{throw r instanceof An&&Zr(r)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,H(Fn)):r})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),q(this.acquireTokenFromCache.bind(this),_.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,t).catch(r=>{if(t===Lt.AccessToken)throw r;return this.eventHandler.emitEvent(oe.ACQUIRE_TOKEN_NETWORK_START,ee.Silent,e),q(this.acquireTokenByRefreshToken.bind(this),_.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,t)}))}}function jI(n,e){const t=!(n instanceof cn&&n.subError!==na),r=n.errorCode===Bt.INVALID_GRANT_ERROR||n.errorCode===Fn,o=t&&r||n.errorCode===As||n.errorCode===Sl,i=bb.includes(e);return o&&i}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function GI(n,e){const t=new Br(n);return await t.initialize(),aa.createController(t,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Vl{static async createPublicClientApplication(e){const t=await GI(e);return new Vl(e,t)}constructor(e,t){this.controller=t||new aa(new Br(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}const _s=new Vl({auth:{clientId:"9079054c-9620-4757-a256-23413042f1ef",authority:"https://login.microsoftonline.com/e519c2e6-bc6d-4fdf-8d9c-923c2f002385",redirectUri:"https://optical-dev.oliver.solutions/cc-dashboard/"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1}}),VI=["openid","profile","email"];async function zI(){await _s.initialize(),await _s.handleRedirectPromise()}const hm=YC("auth",()=>{const n=Oe(null),e=Oe(null),t=Oe(!1),r=Oe(null),o=Te(()=>n.value!==null),i=Te(()=>{var u;return((u=e.value)==null?void 0:u.role)==="admin"});async function s(){var u,d;t.value=!0,r.value=null;try{const f=(await _s.loginPopup({scopes:VI})).idToken,C=await fs.post("/api/auth/microsoft",{id_token:f});n.value=C.data.access_token,await c()}catch(h){const f=h;throw r.value=((d=(u=f.response)==null?void 0:u.data)==null?void 0:d.detail)??f.message??"Login failed",h}finally{t.value=!1}}async function a(){n.value=null,e.value=null;try{await _s.clearCache()}catch{}}async function c(){const u=await fs.get("/api/auth/me");e.value=u.data}function l(){return n.value}return{token:n,user:e,loading:t,error:r,isAuthenticated:o,isAdmin:i,loginWithMicrosoft:s,logout:a,fetchMe:c,getToken:l}}),QI=[{path:"/login",name:"login",component:()=>xt(()=>import("./LoginView-DM9KI6Ae.js"),__vite__mapDeps([0,1,2])),meta:{public:!0}},{path:"/",component:()=>xt(()=>import("./AppLayout-BwO78Dm0.js"),[]),children:[{path:"",name:"dashboard",component:()=>xt(()=>import("./DashboardView-CJ7FOGk4.js"),__vite__mapDeps([3,4,1,2,5,6,7,8]))},{path:"calendar",name:"calendar",component:()=>xt(()=>import("./CalendarView-BChdlpXx.js"),__vite__mapDeps([9,4,2,7,8,10,11,12,13,14,15,16]))},{path:"planner",name:"planner",component:()=>xt(()=>import("./PlannerView-CaKoMOa-.js"),__vite__mapDeps([17,10,11,7,8,2,12,13,15]))},{path:"projects",name:"projects",component:()=>xt(()=>import("./ProjectsView-DVgw8gzK.js"),__vite__mapDeps([18,4,1,2,6,8]))},{path:"projects/:id/:date?",name:"project-detail",component:()=>xt(()=>import("./ProjectDetailView-YjRyle7i.js"),__vite__mapDeps([19,4,1,2,5,8]))},{path:"live",name:"live",component:()=>xt(()=>import("./LiveView-D9kDBjRB.js"),__vite__mapDeps([20,1,2,7,8]))},{path:"reports",name:"reports",component:()=>xt(()=>import("./ReportsView-BtOdlx7U.js"),__vite__mapDeps([21,1,2,15,7,8,14,22]))},{path:"keys",name:"keys",component:()=>xt(()=>import("./KeysView-o3-16_hO.js"),__vite__mapDeps([23,24,1,2,7,8,11,12]))},{path:"devops",name:"devops",component:()=>xt(()=>import("./DevopsView-B8BZKorb.js"),__vite__mapDeps([25,13,1,2,5,7,8,26,12]))},{path:"settings",name:"settings",component:()=>xt(()=>import("./SettingsView-O5bFJQz1.js"),__vite__mapDeps([27,13,1,2,5,12,7,8,26]))},{path:"admin",name:"admin",component:()=>xt(()=>import("./AdminView-Cdln6Ec3.js"),__vite__mapDeps([28,24,1,2,15,8])),meta:{adminOnly:!0}}]},{path:"/:pathMatch(.*)*",redirect:"/"}],kc=NA({history:uA("/cc-dashboard/"),routes:QI});kc.beforeEach((n,e,t)=>{const r=hm();if(n.meta.public){t();return}if(!r.isAuthenticated){t({name:"login",query:{redirect:n.fullPath}});return}if(n.meta.adminOnly&&!r.isAdmin){t({name:"dashboard"});return}t()});zI().then(()=>{const n=KC(_T),e=jC();n.use(e),n.use(kc),n.use(Pv);const t=hm();Tw(()=>t.getToken(),()=>{t.logout(),kc.push({name:"login"})}),n.mount("#app")});export{lr as A,YC as B,nS as C,eS as D,fs as E,We as F,nf as G,JI as H,sS as K,SA as R,ZI as T,xt as _,sn as a,XI as b,je as c,ko as d,Ge as e,aS as f,cS as g,dt as h,Tr as i,Te as j,Hn as k,_y as l,Wt as m,Ht as n,Ee as o,za as p,Oe as q,qa as r,Do as s,Bo as t,hm as u,Mr as v,vr as w,ss as x,YI as y,tS as z};
|