PageSourceSearch

https://morningmail.ai/_nuxt/C_pwUvic.js

js morningmail.ai collected 2026-10-05 12:16:53 UTC 721,556 bytes, 41 lines download raw bytes

vendor: 5,302 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vmrrPkxt.js","./CFDMWr98.js","./DWqz9JEU.js","./JR5CIJ86.js","./Button.CPFVLoju.css","./D0wbGXh5.js","./Callout.DZzzUUjc.css","./CEn7hD1L.js","./B-bPu2_q.js","./B54jpB-G.js","./Ds0FFPec.js","./D9bF31HU.js","./DI06vf5G.js","./C_gOoUpc.js","./useLocalisedList.Ct_2Rn68.css","./Cayqorbh.js","./useEmail.B-8XsTbH.css","./B_ZvCrXL.js","./auth-error-copy.D52F7CyB.css","./CaJExxYA.js","./TextInput.CLGMTpq1.css","./CO4Eimym.js","./wrzXCuEe.js","./CdCkgZ3q.js","./CyIuj0Ss.js","./DBdJYrsf.js","./ChnziUQC.js","./DT0S2E4E.js","./BK5P88GG.js","./BR8xUDRu.js","./BXcEihoa.js","./wLzHM0vs.js","./useCreditsFormatting.DUY7MPww.css","./LandingPricing.DTOkzHE0.css","./BO0LpaBi.js","./index.PC4v3W7o.css","./rSCGDP1T.js","./B97TPPsk.js","./DqvFe6Gx.js","./DdgW8t-F.js","./mzDL_ZuX.js","./RdQIK0Nz.js","./Letter.sgKxVPR4.css","./D3GxADYb.js","./lt9deTLh.js","./Cl5_tg-7.js","./CaFuhFDH.js","./Masthead.CWYdwQHF.css","./BtSeYQxE.js","./brief-queue.DI1lM2Go.css","./TTBP1mlo.js","./tWRp9Ay9.js","./emails.y4otydYa.css","./C1jFloiR.js","./engagement.BqZcnb95.css","./BLj3FsHl.js","./guides.BuwYiQmd.css","./Cj8U6Y5d.js","./reset-password.CCufBfNu.css","./Crtroovb.js","./BfobR7PQ.js","./Do8BDkiZ.js","./CCoIIevq.js","./D55Ef2C_.js","./vIm6R4Pv.js","./5zbFH6Zf.js","./explore.upypcPTF.css","./vYndbwJD.js","./COBzCcuq.js","./BANPK2Ma.js","./Field.DdkFu9j0.css","./BeSgvRyt.js","./ProfileSection.CXdLvVQT.css","./notifications.Cv3oeegV.css","./CJIO0y8M.js","./CyqobW_s.js","./DNQp2l68.js","./Ds0W5O8-.js","./ReaderPreferencesMenu.BzfrmboH.css","./ClQCBfYh.js","./DoB5qpHX.js","./BriefReader.oU0GbMd3.css","./_date_.D-qvckxz.css","./BZ83I5AR.js","./B3IOgV1I.js","./_slug_.C0-oqWcK.css","./C43qK2rM.js","./jJwOKSPc.js","./B0OKMJm2.js","./1sgY9JXE.js","./7QIxaOnK.js","./Modal.BgUNonav.css","./DhuWmA2H.js","./C-nZ6UF5.js","./TopUpChip.DeGeYAzs.css","./D9wFuM70.js","./DeleteTemplateDialog.BLIWveXC.css","./BymwbEaB.js","./BoltIcon.BghjCN_Q.css","./_templateId_.Dwt6YYCl.css","./C0FJVDo_.js","./index.D3uihMwP.css","./CPRnoOUL.js","./index.DTqLAzd8.css","./xgtPU6gI.js","./CZj-uVnB.js","./index.BYZj_kjP.css","./BTyEzSoU.js","./index.CrfNhgFA.css","./C7Ui74sf.js","./credits.BDFjbm9m.css","./BEkSUeHS.js","./I0lv1ts5.js","./DRzvhTck.js","./reader-feed.CVU9W4As.css","./BWf73ohr.js","./home.a9mqhtkN.css","./D20qAoDb.js","./BK5YeHe2.js","./index.KOZE2e10.css","./B-b053V1.js","./index.B11M7g5J.css","./C36xBOOE.js","./reader.DBCtwMSA.css","./BudcoyNx.js","./templates.DEIdissT.css","./D4VEc4C4.js","./training.BHTHAqFs.css","./Co6YcwMK.js","./BDMR-sem.js","./admin.CqEZzUZw.css","./D7hNapT5.js","./default.4JD0NiLA.css"])))=>i.map(i=>d[i]);
2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function np(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const We={},Fi=[],rr=()=>{},pE=()=>!1,Qa=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_u=t=>t.startsWith("onUpdate:"),kt=Object.assign,rp=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},uS=Object.prototype.hasOwnProperty,je=(t,e)=>uS.call(t,e),de=Array.isArray,Ui=t=>_o(t)==="[object Map]",yu=t=>_o(t)==="[object Set]",Dg=t=>_o(t)==="[object Date]",fS=t=>_o(t)==="[object RegExp]",me=t=>typeof t=="function",ze=t=>typeof t=="string",En=t=>typeof t=="symbol",Fe=t=>t!==null&&typeof t=="object",sp=t=>(Fe(t)||me(t))&&me(t.then)&&me(t.catch),mE=Object.prototype.toString,_o=t=>mE.call(t),hS=t=>_o(t).slice(8,-1),ip=t=>_o(t)==="[object Object]",vu=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Zs=np(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Eu=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},dS=/-\w/g,rn=Eu(t=>t.replace(dS,e=>e.slice(1).toUpperCase())),pS=/\B([A-Z])/g,As=Eu(t=>t.replace(pS,"-$1").toLowerCase()),wu=Eu(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ff=Eu(t=>t?`on${wu(t)}`:""),nr=(t,e)=>!Object.is(t,e),$i=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},gE=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Tu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},_E=t=>{const e=ze(t)?Number(t):NaN;return isNaN(e)?t:e};let Ng;const bu=()=>Ng||(Ng=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Iu(t){if(de(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=ze(r)?yS(r):Iu(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(ze(t)||Fe(t))return t}const mS=/;(?![^(]*\))/g,gS=/:([^]+)/,_S=/\/\*[^]*?\*\//g;function yS(t){const e={};
vendor: 8,564 bytes, line 2
2return t.replace(_S,"").split(mS).forEach(n=>{if(n){const r=n.split(gS);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Au(t){let e="";if(ze(t))e=t;else if(de(t))for(let n=0;n<t.length;n++){const r=Au(t[n]);r&&(e+=r+" ")}else if(Fe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function K3(t){if(!t)return null;let{class:e,style:n}=t;return e&&!ze(e)&&(t.class=Au(e)),n&&(t.style=Iu(n)),t}const vS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ES=np(vS);function yE(t){return!!t||t===""}function wS(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Ya(t[r],e[r]);return n}function Ya(t,e){if(t===e)return!0;let n=Dg(t),r=Dg(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=En(t),r=En(e),n||r)return t===e;if(n=de(t),r=de(e),n||r)return n&&r?wS(t,e):!1;if(n=Fe(t),r=Fe(e),n||r){if(!n||!r)return!1;const s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(const o in t){const a=t.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!Ya(t[o],e[o]))return!1}}return String(t)===String(e)}function TS(t,e){return t.findIndex(n=>Ya(n,e))}const vE=t=>!!(t&&t.__v_isRef===!0),ji=t=>ze(t)?t:t==null?"":de(t)||Fe(t)&&(t.toString===mE||!me(t.toString))?vE(t)?ji(t.value):JSON.stringify(t,EE,2):String(t),EE=(t,e)=>vE(e)?EE(t,e.value):Ui(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],i)=>(n[Uf(r,i)+" =>"]=s,n),{})}:yu(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Uf(n))}:En(e)?Uf(e):Fe(e)&&!de(e)&&!ip(e)?String(e):e,Uf=(t,e="")=>{var n;return En(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let Ct;class wE{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&&Ct&&(Ct.active?(this.parent=Ct,this.index=(Ct.scopes||(Ct.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Ct;try{return Ct=this,e()}finally{Ct=n}}}on(){++this._on===1&&(this.prevScope=Ct,Ct=this)}off(){if(this._on>0&&--this._on===0){if(Ct===this)Ct=this.prevScope;else{let e=Ct;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 n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ru(t){return new wE(t)}function yo(){return Ct}function Aa(t,e=!1){Ct&&Ct.cleanups.push(t)}let Qe;const $f=new WeakSet;class TE{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,Ct&&(Ct.active?Ct.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$f.has(this)&&($f.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||IE(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mg(this),AE(this);const e=Qe,n=Mn;Qe=this,Mn=!0;try{return this.fn()}finally{RE(this),Qe=e,Mn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)cp(e);this.deps=this.depsTail=void 0,Mg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$f.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ph(this)&&this.run()}get dirty(){return Ph(this)}}let bE=0,pa,ma;function IE(t,e=!1){if(t.flags|=8,e){t.next=ma,ma=t;return}t.next=pa,pa=t}function op(){bE++}function ap(){if(--bE>0)return;if(ma){let e=ma;for(ma=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;pa;){let e=pa;for(pa=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function AE(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function RE(t){let e,n=t.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),cp(r),bS(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Ph(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(SE(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function SE(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ra)||(t.globalVersion=Ra,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Ph(t))))return;t.flags|=2;const e=t.dep,n=Qe,r=Mn;Qe=t,Mn=!0;try{AE(t);const s=t.fn(t._value);(e.version===0||nr(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Qe=n,Mn=r,RE(t),t.flags&=-3}}function cp(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)cp(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function bS(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Mn=!0;const CE=[];function Fr(){CE.push(Mn),Mn=!1}function Ur(){const t=CE.pop();Mn=t===void 0?!0:t}function Mg(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Qe;Qe=void 0;try{e()}finally{Qe=n}}}let Ra=0;class IS{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Su{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(!Qe||!Mn||Qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Qe)n=this.activeLink=new IS(Qe,this),Qe.deps?(n.prevDep=Qe.depsTail,Qe.depsTail.nextDep=n,Qe.depsTail=n):Qe.deps=Qe.depsTail=n,PE(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Qe.depsTail,n.nextDep=void 0,Qe.depsTail.nextDep=n,Qe.depsTail=n,Qe.deps===n&&(Qe.deps=r)}return n}trigger(e){this.version++,Ra++,this.notify(e)}notify(e){op();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ap()}}}function PE(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)PE(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const vl=new WeakMap,ei=Symbol(""),kh=Symbol(""),Sa=Symbol("");function Wt(t,e,n){if(Mn&&Qe){let r=vl.get(t);r||vl.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Su),s.map=r,s.key=n),s.track()}}function br(t,e,n,r,s,i){const o=vl.get(t);if(!o){Ra++;return}const a=c=>{c&&c.trigger()};if(op(),e==="clear")o.forEach(a);else{const c=de(t),l=c&&vu(n);if(c&&n==="length"){const f=Number(r);o.forEach((h,d)=>{(d==="length"||d===Sa||!En(d)&&d>=f)&&a(h)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(Sa)),e){case"add":c?l&&a(o.get("length")):(a(o.get(ei)),Ui(t)&&a(o.get(kh)));break;case"delete":c||(a(o.get(ei)),Ui(t)&&a(o.get(kh)));break;case"set":Ui(t)&&a(o.get(ei));break}}ap()}function AS(t,e){const n=vl.get(t);return n&&n.get(e)}function Ri(t){const e=Ne(t);return e===t?e:(Wt(e,"iterate",Sa),_n(t)?e:e.map(Un))}function Cu(t){return Wt(t=Ne(t),"iterate",Sa),t}function er(t,e){return lr(t)?no(cs(t)?Un(e):e):Un(e)}const RS={__proto__:null,[Symbol.iterator](){return jf(this,Symbol.iterator,t=>er(this,t))},concat(...t){return Ri(this).concat(...t.map(e=>de(e)?Ri(e):e))},entries(){return jf(this,"entries",t=>(t[1]=er(this,t[1]),t))},every(t,e){return gr(this,"every",t,e,void 0,arguments)},filter(t,e){return gr(this,"filter",t,e,n=>n.map(r=>er(this,r)),arguments)},find(t,e){return gr(this,"find",t,e,n=>er(this,n),arguments)},findIndex(t,e){return gr(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return gr(this,"findLast",t,e,n=>er(this,n),arguments)},findLastIndex(t,e){return gr(this,"findLastIndex",t,e,void 0,arguments)}
vendor: 9,336 bytes, line 2
2,forEach(t,e){return gr(this,"forEach",t,e,void 0,arguments)},includes(...t){return Bf(this,"includes",t)},indexOf(...t){return Bf(this,"indexOf",t)},join(t){return Ri(this).join(t)},lastIndexOf(...t){return Bf(this,"lastIndexOf",t)},map(t,e){return gr(this,"map",t,e,void 0,arguments)},pop(){return Ko(this,"pop")},push(...t){return Ko(this,"push",t)},reduce(t,...e){return xg(this,"reduce",t,e)},reduceRight(t,...e){return xg(this,"reduceRight",t,e)},shift(){return Ko(this,"shift")},some(t,e){return gr(this,"some",t,e,void 0,arguments)},splice(...t){return Ko(this,"splice",t)},toReversed(){return Ri(this).toReversed()},toSorted(t){return Ri(this).toSorted(t)},toSpliced(...t){return Ri(this).toSpliced(...t)},unshift(...t){return Ko(this,"unshift",t)},values(){return jf(this,"values",t=>er(this,t))}};function jf(t,e,n){const r=Cu(t),s=r[e]();return r!==t&&!_n(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const SS=Array.prototype;function gr(t,e,n,r,s,i){const o=Cu(t),a=o!==t&&!_n(t),c=o[e];if(c!==SS[e]){const h=c.apply(t,i);return a?Un(h):h}let l=n;o!==t&&(a?l=function(h,d){return n.call(this,er(t,h),d,t)}:n.length>2&&(l=function(h,d){return n.call(this,h,d,t)}));const f=c.call(o,l,r);return a&&s?s(f):f}function xg(t,e,n,r){const s=Cu(t),i=s!==t&&!_n(t);let o=n,a=!1;s!==t&&(i?(a=r.length===0,o=function(l,f,h){return a&&(a=!1,l=er(t,l)),n.call(this,l,er(t,f),h,t)}):n.length>3&&(o=function(l,f,h){return n.call(this,l,f,h,t)}));const c=s[e](o,...r);return a?er(t,c):c}function Bf(t,e,n){const r=Ne(t);Wt(r,"iterate",Sa);const s=r[e](...n);return(s===-1||s===!1)&&Ou(n[0])?(n[0]=Ne(n[0]),r[e](...n)):s}function Ko(t,e,n=[]){Fr(),op();const r=Ne(t)[e].apply(t,n);return ap(),Ur(),r}const CS=np("__proto__,__v_isRef,__isVue"),kE=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(En));function PS(t){En(t)||(t=String(t));const e=Ne(this);return Wt(e,"has",t),e.hasOwnProperty(t)}class OE{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?VE:xE:i?ME:NE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=de(e);if(!s){let c;if(o&&(c=RS[n]))return c;if(n==="hasOwnProperty")return PS}const a=Reflect.get(e,n,Xe(e)?e:r);if((En(n)?kE.has(n):CS(n))||(s||Wt(e,"get",n),i))return a;if(Xe(a)){const c=o&&vu(n)?a:a.value;return s&&Fe(c)?kn(c):c}return Fe(a)?s?kn(a):Pn(a):a}}class LE extends OE{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=de(e)&&vu(n);if(!this._isShallow){const l=lr(i);if(!_n(r)&&!lr(r)&&(i=Ne(i),r=Ne(r)),!o&&Xe(i)&&!Xe(r))return l||(i.value=r),!0}const a=o?Number(n)<e.length:je(e,n),c=Reflect.set(e,n,r,Xe(e)?e:s);return e===Ne(s)&&(a?nr(r,i)&&br(e,"set",n,r):br(e,"add",n,r)),c}deleteProperty(e,n){const r=je(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&r&&br(e,"delete",n,void 0),s}has(e,n){const r=Reflect.has(e,n);return(!En(n)||!kE.has(n))&&Wt(e,"has",n),r}ownKeys(e){return Wt(e,"iterate",de(e)?"length":ei),Reflect.ownKeys(e)}}class DE extends OE{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const kS=new LE,OS=new DE,LS=new LE(!0),DS=new DE(!0),Oh=t=>t,kc=t=>Reflect.getPrototypeOf(t);function NS(t,e,n){return function(...r){const s=this.__v_raw,i=Ne(s),o=Ui(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,l=s[t](...r),f=n?Oh:e?no:Un;return!e&&Wt(i,"iterate",c?kh:ei),kt(Object.create(l),{next(){const{value:h,done:d}=l.next();return d?{value:h,done:d}:{value:a?[f(h[0]),f(h[1])]:f(h),done:d}}})}}function Oc(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function MS(t,e){const n={get(s){const i=this.__v_raw,o=Ne(i),a=Ne(s);t||(nr(s,a)&&Wt(o,"get",s),Wt(o,"get",a));const{has:c}=kc(o),l=e?Oh:t?no:Un;if(c.call(o,s))return l(i.get(s));if(c.call(o,a))return l(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&Wt(Ne(s),"iterate",ei),s.size},has(s){const i=this.__v_raw,o=Ne(i),a=Ne(s);return t||(nr(s,a)&&Wt(o,"has",s),Wt(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,c=Ne(a),l=e?Oh:t?no:Un;return!t&&Wt(c,"iterate",ei),a.forEach((f,h)=>s.call(i,l(f),l(h),o))}};return kt(n,t?{add:Oc("add"),set:Oc("set"),delete:Oc("delete"),clear:Oc("clear")}:{add(s){const i=Ne(this),o=kc(i),a=Ne(s),c=!e&&!_n(s)&&!lr(s)?a:s;return o.has.call(i,c)||nr(s,c)&&o.has.call(i,s)||nr(a,c)&&o.has.call(i,a)||(i.add(c),br(i,"add",c,c)),this},set(s,i){!e&&!_n(i)&&!lr(i)&&(i=Ne(i));const o=Ne(this),{has:a,get:c}=kc(o);let l=a.call(o,s);l||(s=Ne(s),l=a.call(o,s));const f=c.call(o,s);return o.set(s,i),l?nr(i,f)&&br(o,"set",s,i):br(o,"add",s,i),this},delete(s){const i=Ne(this),{has:o,get:a}=kc(i);let c=o.call(i,s);c||(s=Ne(s),c=o.call(i,s)),a&&a.call(i,s);const l=i.delete(s);return c&&br(i,"delete",s,void 0),l},clear(){const s=Ne(this),i=s.size!==0,o=s.clear();return i&&br(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=NS(s,t,e)}),n}function Pu(t,e){const n=MS(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(je(n,s)&&s in r?n:r,s,i)}const xS={get:Pu(!1,!1)},VS={get:Pu(!1,!0)},FS={get:Pu(!0,!1)},US={get:Pu(!0,!0)},NE=new WeakMap,ME=new WeakMap,xE=new WeakMap,VE=new WeakMap;function $S(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jS(t){return t.__v_skip||!Object.isExtensible(t)?0:$S(hS(t))}function Pn(t){return lr(t)?t:ku(t,!1,kS,xS,NE)}function Ln(t){return ku(t,!1,LS,VS,ME)}function kn(t){return ku(t,!0,OS,FS,xE)}function G3(t){return ku(t,!0,DS,US,VE)}function ku(t,e,n,r,s){if(!Fe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=jS(t);if(i===0)return t;const o=s.get(t);if(o)return o;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function cs(t){return lr(t)?cs(t.__v_raw):!!(t&&t.__v_isReactive)}function lr(t){return!!(t&&t.__v_isReadonly)}function _n(t){return!!(t&&t.__v_isShallow)}function Ou(t){return t?!!t.__v_raw:!1}function Ne(t){const e=t&&t.__v_raw;return e?Ne(e):t}function FE(t){return!je(t,"__v_skip")&&Object.isExtensible(t)&&gE(t,"__v_skip",!0),t}const Un=t=>Fe(t)?Pn(t):t,no=t=>Fe(t)?kn(t):t;function Xe(t){return t?t.__v_isRef===!0:!1}function nt(t){return UE(t,!1)}function Cn(t){return UE(t,!0)}function UE(t,e){return Xe(t)?t:new BS(t,e)}class BS{constructor(e,n){this.dep=new Su,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ne(e),this._value=n?e:Un(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||_n(e)||lr(e);e=r?e:Ne(e),nr(e,n)&&(this._rawValue=e,this._value=r?e:Un(e),this.dep.trigger())}}function Ee(t){return Xe(t)?t.value:t}function tr(t){return me(t)?t():Ee(t)}const HS={get:(t,e,n)=>e==="__v_raw"?t:Ee(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function $E(t){return cs(t)?t:new Proxy(t,HS)}class qS{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Su,{get:r,set:s}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function WS(t){return new qS(t)}function z3(t){const e=de(t)?new Array(t.length):{};for(const n in t)e[n]=jE(t,n);return e}class KS{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=En(n)?n:String(n),this._raw=Ne(e);let s=!0,i=e;if(!de(e)||En(this._key)||!vu(this._key))do s=!Ou(i)||_n(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=Ee(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Xe(this._raw[this._key])){const n=this._object[this._key];if(Xe(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return AS(this._raw,this._key)}}class GS{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function lp(t,e,n){return Xe(t)?t:me(t)?new GS(t):Fe(t)&&arguments.length>1?jE(t,e,n):nt(t)}function jE(t,e,n){return new KS(t,e,n)}class zS{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Su(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ra-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Qe!==this)return IE(this,!0),!0}get value(){const e=this.dep.track();return SE(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function QS(t,e,n=!1){let r,s;return me(t)?r=t:(r=t.get,s=t.set),new zS(r,s,n)}const Lc={},El=new WeakMap;let qs;function YS(t,e=!1,n=qs){if(n){let r=El.get(n);r||El.set(n,r=[]),r.push(t)}}function JS(t,e,n=We){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=n,l=I=>s?I:_n(I)||s===!1||s===0?Ir(I,1):Ir(I);let f,h,d,m,y=!1,_=!1;if(Xe(t)?(h=()=>t.value,y=_n(t)):cs(t)?(h=()=>l(t),y=!0):de(t)?(_=!0,y=t.some(I=>cs(I)||_n(I)),h=()=>t.map(I=>
vendor: 4,292 bytes, line 2
2{if(Xe(I))return I.value;if(cs(I))return l(I);if(me(I))return c?c(I,2):I()})):me(t)?e?h=c?()=>c(t,2):t:h=()=>{if(d){Fr();try{d()}finally{Ur()}}const I=qs;qs=f;try{return c?c(t,3,[m]):t(m)}finally{qs=I}}:h=rr,e&&s){const I=h,D=s===!0?1/0:s;h=()=>Ir(I(),D)}const A=yo(),w=()=>{f.stop(),A&&A.active&&rp(A.effects,f)};if(i&&e){const I=e;e=(...D)=>{I(...D),w()}}let R=_?new Array(t.length).fill(Lc):Lc;const v=I=>{if(!(!(f.flags&1)||!f.dirty&&!I))if(e){const D=f.run();if(s||y||(_?D.some((x,E)=>nr(x,R[E])):nr(D,R))){d&&d();const x=qs;qs=f;try{const E=[D,R===Lc?void 0:_&&R[0]===Lc?[]:R,m];R=D,c?c(e,3,E):e(...E)}finally{qs=x}}}else f.run()};return a&&a(v),f=new TE(h),f.scheduler=o?()=>o(v,!1):v,m=I=>YS(I,!1,f),d=f.onStop=()=>{const I=El.get(f);if(I){if(c)c(I,4);else for(const D of I)D();El.delete(f)}},e?r?v(!0):R=f.run():o?o(v.bind(null,!0),!0):f.run(),w.pause=f.pause.bind(f),w.resume=f.resume.bind(f),w.stop=w,w}function Ir(t,e=1/0,n){if(e<=0||!Fe(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Xe(t))Ir(t.value,e,n);else if(de(t))for(let r=0;r<t.length;r++)Ir(t[r],e,n);else if(yu(t)||Ui(t))t.forEach(r=>{Ir(r,e,n)});else if(ip(t)){for(const r in t)Ir(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Ir(t[r],e,n)}return t}function Ja(t,e,n,r){try{return r?t(...r):t()}catch(s){vo(s,e,n)}}function $n(t,e,n,r){if(me(t)){const s=Ja(t,e,n,r);return s&&sp(s)&&s.catch(i=>{vo(i,e,n)}),s}if(de(t)){const s=[];for(let i=0;i<t.length;i++)s.push($n(t[i],e,n,r));return s}}function vo(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||We;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](t,c,l)===!1)return}a=a.parent}if(i){Fr(),Ja(i,null,10,[t,c,l]),Ur();return}}XS(t,n,s,r,o)}function XS(t,e,n,r=!0,s=!1){if(s)throw t;console.error(t)}const en=[];let Yn=-1;const Bi=[];let ns=null,Ci=0;const BE=Promise.resolve();let wl=null;function jn(t){const e=wl||BE;return t?e.then(this?t.bind(this):t):e}function ZS(t){let e=Yn+1,n=en.length;for(;e<n;){const r=e+n>>>1,s=en[r],i=Pa(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function up(t){if(!(t.flags&1)){const e=Pa(t),n=en[en.length-1];!n||!(t.flags&2)&&e>=Pa(n)?en.push(t):en.splice(ZS(e),0,t),t.flags|=1,HE()}}function HE(){wl||(wl=BE.then(qE))}function Ca(t){de(t)?Bi.push(...t):ns&&t.id===-1?ns.splice(Ci+1,0,t):t.flags&1||(Bi.push(t),t.flags|=1),HE()}function Vg(t,e,n=Yn+1){for(;n<en.length;n++){const r=en[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;en.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Tl(t){if(Bi.length){const e=[...new Set(Bi)].sort((n,r)=>Pa(n)-Pa(r));if(Bi.length=0,ns){ns.push(...e);return}for(ns=e,Ci=0;Ci<ns.length;Ci++){const n=ns[Ci];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ns=null,Ci=0}}const Pa=t=>t.id==null?t.flags&2?-1:1/0:t.id;function qE(t){try{for(Yn=0;Yn<en.length;Yn++){const e=en[Yn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ja(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Yn<en.length;Yn++){const e=en[Yn];e&&(e.flags&=-2)}Yn=-1,en.length=0,Tl(),wl=null,(en.length||Bi.length)&&qE()}}let Ft=null,WE=null;function bl(t){const e=Ft;return Ft=t,WE=t&&t.type.__scopeId||null,e}function Xa(t,e=Ft,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Cl(-1);const i=bl(e);let o;try{o=t(...s)}finally{bl(i),r._d&&Cl(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Q3(t,e){if(Ft===null)return t;const n=xu(Ft),r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[i,o,a,c=We]=e[s];i&&(me(i)&&(i={mounted:i,updated:i}),i.deep&&Ir(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:c}))}return t}function Jn(t,e,n,r){const s=t.dirs,i=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let c=a.dir[r];c&&(Fr(),$n(c,n,8,[t.el,a,t,e]),Ur())}}function Dr(t,e){if(xt){let n=xt.provides;const r=xt.parent&&xt.parent.provides;r===n&&(n=xt.provides=Object.create(r)),n[t]=e}}function It(t,e,n=!1){const r=wn();if(r||ti){let s=ti?ti._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];
vendor: 4,372 bytes, line 2
2if(arguments.length>1)return n&&me(e)?e.call(r&&r.proxy):e}}function Lu(){return!!(wn()||ti)}const eC=Symbol.for("v-scx"),tC=()=>It(eC);function nC(t,e){return fp(t,null,e)}function ht(t,e,n){return fp(t,e,n)}function fp(t,e,n=We){const{immediate:r,deep:s,flush:i,once:o}=n,a=kt({},n),c=e&&r||!e&&i!=="post";let l;if(oi){if(i==="sync"){const m=tC();l=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=rr,m.resume=rr,m.pause=rr,m}}const f=xt;a.call=(m,y,_)=>$n(m,f,y,_);let h=!1;i==="post"?a.scheduler=m=>{vt(m,f&&f.suspense)}:i!=="sync"&&(h=!0,a.scheduler=(m,y)=>{y?m():up(m)}),a.augmentJob=m=>{e&&(m.flags|=4),h&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const d=JS(t,e,a);return oi&&(l?l.push(d):c&&d()),d}function rC(t,e,n){const r=this.proxy,s=ze(t)?t.includes(".")?KE(r,t):()=>r[t]:t.bind(r,r);let i;me(e)?i=e:(i=e.handler,n=e);const o=wo(this),a=fp(s,i.bind(r),n);return o(),a}function KE(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const ts=new WeakMap,GE=Symbol("_vte"),zE=t=>t.__isTeleport,Gs=t=>t&&(t.disabled||t.disabled===""),sC=t=>t&&(t.defer||t.defer===""),Fg=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Ug=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Lh=(t,e)=>{const n=t&&t.to;return ze(n)?e?e(n):null:n},iC={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,i,o,a,c,l){const{mc:f,pc:h,pbc:d,o:{insert:m,querySelector:y,createText:_,createComment:A,parentNode:w}}=l,R=Gs(e.props);let{dynamicChildren:v}=e;const I=(E,T,b)=>{E.shapeFlag&16&&f(E.children,T,b,s,i,o,a,c)},D=(E=e)=>{const T=Gs(E.props),b=E.target=Lh(E.props,y),S=Dh(b,E,_,m);b&&(o!=="svg"&&Fg(b)?o="svg":o!=="mathml"&&Ug(b)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(b),T||(I(E,b,S),sa(E,!1)))},x=E=>{const T=()=>{if(ts.get(E)===T){if(ts.delete(E),Gs(E.props)){const b=w(E.el)||n;I(E,b,E.anchor),sa(E,!0)}D(E)}};ts.set(E,T),vt(T,i)};if(t==null){const E=e.el=_(""),T=e.anchor=_("");if(m(E,n,r),m(T,n,r),sC(e.props)||i&&i.pendingBranch){x(e);return}R&&(I(e,n,T),sa(e,!0)),D()}else{e.el=t.el;const E=e.anchor=t.anchor,T=ts.get(t);if(T){T.flags|=8,ts.delete(t),x(e);return}e.targetStart=t.targetStart;const b=e.target=t.target,S=e.targetAnchor=t.targetAnchor,O=Gs(t.props),L=O?n:b,k=O?E:S;if(o==="svg"||Fg(b)?o="svg":(o==="mathml"||Ug(b))&&(o="mathml"),v?(d(t.dynamicChildren,v,L,s,i,o,a),_p(t,e,!0)):c||h(t,e,L,k,s,i,o,a,!1),R)O?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Dc(e,n,E,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ce=e.target=Lh(e.props,y);ce&&Dc(e,ce,null,l,0)}else O&&Dc(e,b,S,l,1);sa(e,R)}},remove(t,e,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:f,target:h,props:d}=t;let m=i||!Gs(d);const y=ts.get(t);if(y&&(y.flags|=8,ts.delete(t),m=!1),h&&(s(l),s(f)),i&&s(c),o&16)for(let _=0;_<a.length;_++){const A=a[_];r(A,e,n,m,!!A.dynamicChildren)}},move:Dc,hydrate:oC};function Dc(t,e,n,{o:{insert:r},m:s},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:c,children:l,props:f}=t,h=i===2;if(h&&r(o,e,n),!ts.has(t)&&(!h||Gs(f))&&c&16)for(let d=0;d<l.length;d++)s(l[d],e,n,2);h&&r(a,e,n)}function oC(t,e,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:l,createText:f}},h){function d(A,w){let R=w;for(;R;){if(R&&R.nodeType===8){if(R.data==="teleport start anchor")e.targetStart=R;else if(R.data==="teleport anchor"){e.targetAnchor=R,A._lpa=e.targetAnchor&&o(e.targetAnchor);break}}R=o(R)}}function m(A,w){w.anchor=h(o(A),w,a(A),n,r,s,i)}const y=e.target=Lh(e.props,c),_=Gs(e.props);if(y){const A=y._lpa||y.firstChild;e.shapeFlag&16&&(_?(m(t,e),d(y,A),e.targetAnchor||Dh(y,e,f,l,a(t)===y?t:null)):(e.anchor=o(t),d(y,A),e.targetAnchor||Dh(y,e,f,l),h(A&&o(A),e,y,n,r,s,i))),sa(e,_)}else _&&e.shapeFlag&16&&(m(t,e),e.targetStart=t,e.targetAnchor=o(t));return e.anchor&&o(e.anchor)}const Y3=iC;function sa(t,e){const n=t.ctx;if(n&&n.ut){let r,s;for(e?(r=t.el,s=t.anchor):(r=t.targetStart,s=t.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Dh(t,e,n,r,s=null){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[GE]=o,t&&(r(i,t,s),r(o,t,s)),o}const Xn=Symbol("_leaveCb"),Go=Symbol("_enterCb");function aC(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
2ingVNodes:new Map};return Rs(()=>{t.isMounted=!0}),Eo(()=>{t.isUnmounting=!0}),t}const bn=[Function,Array],QE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bn,onEnter:bn,onAfterEnter:bn,onEnterCancelled:bn,onBeforeLeave:bn,onLeave:bn,onAfterLeave:bn,onLeaveCancelled:bn,onBeforeAppear:bn,onAppear:bn,onAfterAppear:bn,onAppearCancelled:bn},YE=t=>{const e=t.subTree;return e.component?YE(e.component):e},cC={name:"BaseTransition",props:QE,setup(t,{slots:e}){const n=wn(),r=aC();return()=>{const s=e.default&&ZE(e.default(),!0),i=s&&s.length?JE(s):n.subTree?Ow():void 0;if(!i)return;const o=Ne(t),{mode:a}=o;if(r.isLeaving)return Hf(i);const c=$g(i);if(!c)return Hf(i);let l=Nh(c,o,r,n,h=>l=h);c.type!==Et&&ro(c,l);let f=n.subTree&&$g(n.subTree);if(f&&f.type!==Et&&!Dn(f,c)&&YE(n).type!==Et){let h=Nh(f,o,r,n);if(ro(f,h),a==="out-in"&&c.type!==Et)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},Hf(i);a==="in-out"&&c.type!==Et?h.delayLeave=(d,m,y)=>{const _=XE(r,f);_[String(f.key)]=f,d[Xn]=()=>{m(),d[Xn]=void 0,delete l.delayedLeave,f=void 0},l.delayedLeave=()=>{y(),delete l.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function JE(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Et){e=n;break}}return e}const lC=cC;function XE(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Nh(t,e,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onLeave:m,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:A,onAppear:w,onAfterAppear:R,onAppearCancelled:v}=e,I=String(t.key),D=XE(n,t),x=(b,S)=>{b&&$n(b,r,9,S)},E=(b,S)=>{const O=S[1];x(b,S),de(b)?b.every(L=>L.length<=1)&&O():b.length<=1&&O()},T={mode:o,persisted:a,beforeEnter(b){let S=c;if(!n.isMounted)if(i)S=A||c;else return;b[Xn]&&b[Xn](!0);const O=D[I];O&&Dn(t,O)&&O.el[Xn]&&O.el[Xn](),x(S,[b])},enter(b){if(D[I]===t)return;let S=l,O=f,L=h;if(!n.isMounted)if(i)S=w||l,O=R||f,L=v||h;else return;let k=!1;b[Go]=_e=>{k||(k=!0,_e?x(L,[b]):x(O,[b]),T.delayedLeave&&T.delayedLeave(),b[Go]=void 0)};const ce=b[Go].bind(null,!1);S?E(S,[b,ce]):ce()},leave(b,S){const O=String(t.key);if(b[Go]&&b[Go](!0),n.isUnmounting)return S();x(d,[b]);let L=!1;b[Xn]=ce=>{L||(L=!0,S(),ce?x(_,[b]):x(y,[b]),b[Xn]=void 0,D[O]===t&&delete D[O])};const k=b[Xn].bind(null,!1);D[O]=t,m?E(m,[b,k]):k()},clone(b){const S=Nh(b,e,n,r,s);return s&&s(S),S}};return T}function Hf(t){if(Za(t))return t=ur(t),t.children=null,t}function $g(t){if(!Za(t))return zE(t.type)&&t.children?JE(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&me(n.default))return n.default()}}function ro(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ro(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ZE(t,e=!1,n){let r=[],s=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Nt?(o.patchFlag&128&&s++,r=r.concat(ZE(o.children,e,a))):(e||o.type!==Et)&&r.push(a!=null?ur(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function jt(t,e){return me(t)?kt({name:t.name},e,{setup:t}):t}function J3(){const t=wn();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function hp(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function jg(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Il=new WeakMap;function Hi(t,e,n,r,s=!1){if(de(t)){t.forEach((_,A)=>Hi(_,e&&(de(e)?e[A]:e),n,r,s));return}if(Nr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Hi(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?xu(r.component):r.el,o=s?null:i,{i:a,r:c}=t,l=e&&e.r,f=a.refs===We?a.refs={}:a.refs,h=a.setupState,d=Ne(h),m=h===We?pE:_=>jg(f,_)?!1:je(d,_),y=(_,A)=>!(A&&jg(f,A));if(l!=null&&l!==c){if(Bg(e),ze(l))f[l]=null,m(l)&&(h[l]=null);else if(Xe(l)){const _=e;y(l,_.k)&&(l.value=null),_.k&&(f[_.k]=null)}}if(me(c))Ja(c,a,12,[o,f]);else{const _=ze(c),A=Xe(c);if(_||A){const w=()=>
vendor: 10,989 bytes, lines 2-4
2{if(t.f){const R=_?m(c)?h[c]:f[c]:y()||!t.k?c.value:f[t.k];if(s)de(R)&&rp(R,i);else if(de(R))R.includes(i)||R.push(i);else if(_)f[c]=[i],m(c)&&(h[c]=f[c]);else{const v=[i];y(c,t.k)&&(c.value=v),t.k&&(f[t.k]=v)}}else _?(f[c]=o,m(c)&&(h[c]=o)):A&&(y(c,t.k)&&(c.value=o),t.k&&(f[t.k]=o))};if(o){const R=()=>{w(),Il.delete(t)};R.id=-1,Il.set(t,R),vt(R,n)}else Bg(t),w()}}}function Bg(t){const e=Il.get(t);e&&(e.flags|=8,Il.delete(t))}let Hg=!1;const Si=()=>{Hg||(console.error("Hydration completed but contains mismatches."),Hg=!0)},uC=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",fC=t=>t.namespaceURI.includes("MathML"),Nc=t=>{if(t.nodeType===1){if(uC(t))return"svg";if(fC(t))return"mathml"}},xi=t=>t.nodeType===8;function hC(t){const{mt:e,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:l}}=t,f=(v,I)=>{if(!I.hasChildNodes()){n(null,v,I),Tl(),I._vnode=v;return}h(I.firstChild,v,null,null,null),Tl(),I._vnode=v},h=(v,I,D,x,E,T=!1)=>{T=T||!!I.dynamicChildren;const b=xi(v)&&v.data==="[",S=()=>_(v,I,D,x,E,b),{type:O,ref:L,shapeFlag:k,patchFlag:ce}=I;let _e=v.nodeType;I.el=v,ce===-2&&(T=!1,I.dynamicChildren=null);let ae=null;switch(O){case ls:_e!==3?I.children===""?(c(I.el=s(""),o(v),v),ae=v):ae=S():(v.data!==I.children&&(Si(),v.data=I.children),ae=i(v));break;case Et:R(v)?(ae=i(v),w(I.el=v.content.firstChild,v,D)):_e!==8||b?ae=S():ae=i(v);break;case _a:if(b&&(v=i(v),_e=v.nodeType),_e===1||_e===3){ae=v;const pe=!I.children.length;for(let re=0;re<I.staticCount;re++)pe&&(I.children+=ae.nodeType===1?ae.outerHTML:ae.data),re===I.staticCount-1&&(I.anchor=ae),ae=i(ae);return b?i(ae):ae}else S();break;case Nt:b?ae=y(v,I,D,x,E,T):ae=S();break;default:if(k&1)(_e!==1||I.type.toLowerCase()!==v.tagName.toLowerCase())&&!R(v)?ae=S():ae=d(v,I,D,x,E,T);else if(k&6){I.slotScopeIds=E;const pe=o(v);if(b?ae=A(v):xi(v)&&v.data==="teleport start"?ae=A(v,v.data,"teleport end"):ae=i(v),e(I,pe,null,D,x,Nc(pe),T),Nr(I)&&!I.type.__asyncResolved){let re;b?(re=Je(Nt),re.anchor=ae?ae.previousSibling:pe.lastChild):re=v.nodeType===3?zs(""):Je("div"),re.el=v,I.component.subTree=re}}else k&64?_e!==8?ae=S():ae=I.type.hydrate(v,I,D,x,E,T,t,m):k&128&&(ae=I.type.hydrate(v,I,D,x,Nc(o(v)),E,T,t,h))}return L!=null&&Hi(L,null,x,I),ae},d=(v,I,D,x,E,T)=>{T=T||!!I.dynamicChildren;const{type:b,props:S,patchFlag:O,shapeFlag:L,dirs:k,transition:ce}=I,_e=b==="input"||b==="option";if(_e||O!==-1){k&&Jn(I,null,D,"created");let ae=!1;if(R(v)){ae=bw(null,ce)&&D&&D.vnode.props&&D.vnode.props.appear;const re=v.content.firstChild;if(ae){const ve=re.getAttribute("class");ve&&(re.$cls=ve),ce.beforeEnter(re)}w(re,v,D),I.el=v=re}if(L&16&&!(S&&(S.innerHTML||S.textContent))){let re=m(v.firstChild,I,v,D,x,E,T);for(;re;){Mc(v,1)||Si();const ve=re;re=re.nextSibling,a(ve)}}else if(L&8){let re=I.children;re[0]===`
3`&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(re=re.slice(1));const{textContent:ve}=v;ve!==re&&ve!==re.replace(/\r\n|\r/g,`
4`)&&(Mc(v,0)||Si(),v.textContent=I.children)}if(S){if(_e||!T||O&48){const re=v.tagName.includes("-");for(const ve in S)(_e&&(ve.endsWith("value")||ve==="indeterminate")||Qa(ve)&&!Zs(ve)||ve[0]==="."||re&&!Zs(ve))&&r(v,ve,null,S[ve],void 0,D)}else if(S.onClick)r(v,"onClick",null,S.onClick,void 0,D);else if(O&4&&cs(S.style))for(const re in S.style)S.style[re]}let pe;(pe=S&&S.onVnodeBeforeMount)&&on(pe,D,I),k&&Jn(I,null,D,"beforeMount"),((pe=S&&S.onVnodeMounted)||k||ae)&&Sw(()=>{pe&&on(pe,D,I),ae&&ce.enter(v),k&&Jn(I,null,D,"mounted")},x)}return v.nextSibling},m=(v,I,D,x,E,T,b)=>{b=b||!!I.dynamicChildren;const S=I.children,O=S.length;for(let L=0;L<O;L++){const k=b?S[L]:S[L]=pn(S[L]),ce=k.type===ls;v?(ce&&!b&&L+1<O&&pn(S[L+1]).type===ls&&(c(s(v.data.slice(k.children.length)),D,i(v)),v.data=k.children),v=h(v,k,x,E,T,b)):ce&&!k.children?c(k.el=s(""),D):(Mc(D,1)||Si(),n(null,k,D,null,x,E,Nc(D),T))}return v},y=(v,I,D,x,E,T)=>{const{slotScopeIds:b}=I;b&&(E=E?E.concat(b):b);const S=o(v),O=m(i(v),I,S,D,x,E,T);return O&&xi(O)&&O.data==="]"?i(I.anchor=O):(Si(),c(I.anchor=l("]"),S,O),O)},_=(v,I,D,x,E,T)=>{if(Mc(v.parentElement,1)||Si(),I.el=null,T){const O=A(v);for(;;){const L=i(v);if(L&&L!==O)a(L);else break}}const b=i(v),S=o(v);return a(v),n(null,I,S,b,D,x,Nc(S),E),D&&(D.vnode.el=I.el,Mu(D,I.el)),b},A=(v,I="[",D="]")=>{let x=0;for(;v;)if(v=i(v),v&&xi(v)&&(v.data===I&&x++,v.data===D)){if(x===0)return i(v);x--}return v},w=(v,I,D)=>{const x=I.parentNode;x&&x.replaceChild(v,I);let E=D;for(;E;)E.vnode.el===I&&(E.vnode.el=E.subTree.el=v),E=E.parent},R=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[f,h]}const qg="data-allow-mismatch",dC={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Mc(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(qg);)t=t.parentElement;const n=t&&t.getAttribute(qg);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(dC[e])}}bu().requestIdleCallback;bu().cancelIdleCallback;function pC(t,e){if(xi(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(xi(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Nr=t=>!!t.type.__asyncLoader;function Mh(t){me(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:c}=t;let l=null,f,h=0;const d=()=>(h++,l=null,m()),m=()=>{let y;return l||(y=l=e().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((A,w)=>{c(_,()=>A(d()),()=>w(_),h+1)});throw _}).then(_=>y!==l&&l?l:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return jt({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(y,_,A){let w=!1;(_.bu||(_.bu=[])).push(()=>w=!0);const R=()=>{w||A()},v=i?()=>{const I=i(R,D=>pC(y,D));I&&(_.bum||(_.bum=[])).push(I)}:R;f?v():m().then(()=>!_.isUnmounted&&v())},get __asyncResolved(){return f},setup(){const y=xt;if(hp(y),f)return()=>xc(f,y);const _=v=>{l=null,vo(v,y,13,!r)};if(a&&y.suspense||oi)return m().then(v=>()=>xc(v,y)).catch(v=>(_(v),()=>r?Je(r,{error:v}):null));const A=nt(!1),w=nt(),R=nt(!!s);return s&&setTimeout(()=>{R.value=!1},s),o!=null&&setTimeout(()=>{if(!A.value&&!w.value){const v=new Error(`Async component timed out after ${o}ms.`);_(v),w.value=v}},o),m().then(()=>{A.value=!0,y.parent&&Za(y.parent.vnode)&&y.parent.update()}).catch(v=>{_(v),w.value=v}),()=>{if(A.value&&f)return xc(f,y);if(w.value&&r)return Je(r,{error:w.value});if(n&&!R.value)return xc(n,y)}}})}function xc(t,e){const{ref:n,props:r,children:s,ce:i}=e.vnode,o=Je(t,r,s);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Za=t=>t.type.__isKeepAlive,mC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=wn(),r=n.ctx;if(!r.renderer)return()=>{const R=e.default&&e.default();return R&&R.length===1?R[0]:R};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:l,um:f,o:{createElement:h}}}=r,d=h("div");r.activate=(R,v,I,D,x)=>{const E=R.component;l(R,v,I,0,a),c(E.vnode,R,v,I,E,a,D,R.slotScopeIds,x),vt(()=>{E.isDeactivated=!1,E.a&&$i(E.a);const T=R.props&&R.props.onVnodeMounted;T&&on(T,E.parent,R)},a)},r.deactivate=R=>{const v=R.component;Rl(v.m),Rl(v.a),l(R,d,null,1,a),vt(()=>{v.da&&$i(v.da);const I=R.props&&R.props.onVnodeUnmounted;I&&on(I,v.parent,R),v.isDeactivated=!0},a)};function m(R){qf(R),f(R,n,a,!0)}function y(R){s.forEach((v,I)=>{const D=Bh(Nr(v)?v.type.__asyncResolved||{}:v.type);D&&!R(D)&&_(I)})}function _(R){const v=s.get(R);v&&(!o||!Dn(v,o))?m(v):o&&qf(o),s.delete(R),i.delete(R)}ht(()=>[t.include,t.exclude],([R,v])=>{R&&y(I=>ia(R,I)),v&&y(I=>!ia(v,I))},{flush:"post",deep:!0});let A=null;const w=()=>{A!=null&&(Sl(n.subTree.type)?vt(()=>{s.set(A,Vc(n.subTree))},n.subTree.suspense):s.set(A,Vc(n.subTree)))};return Rs(w),nw(w),Eo(()=>{s.forEach(R=>{const{subTree:v,suspense:I}=n,D=Vc(v);if(R.type===D.type&&R.key===D.key){qf(D);const x=D.component.da;x&&vt(x,I);return}m(R)})}),()=>{if(A=null,!e.default)return o=null;const R=e.default(),v=R[0];if(R.length>1)return o=null,R;if(!ii(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let I=Vc(v);if(I.type===Et)return o=null,I;const D=I.type,x=Bh(Nr(I)?I.type.__asyncResolved||{}:D),{include:E,exclude:T,max:b}=t;if(E&&(!x||!ia(E,x))||T&&x&&ia(T,x))return I.shapeFlag&=-257,o=I,v;const S=I.key==null?D:I.key,O=s.get(S);return I.el&&(I=ur(I),v.shapeFlag&128&&(v.ssContent=I)),A=S,O?(I.el=O.el,I.component=O.component,I.transition&&ro(I,I.transition),I.shapeFlag|=512,i.delete(S),i.add(S)):(i.add(S),b&&i.size>parseInt(b,10)&&_(i.values().next().value)),I.shapeFlag|=256,o=I,Sl(v.type)?v:I}}},gC=mC;function ia(t,e){return de(t)?t.some(n=>ia(n,e)):ze(t)?t.split(",").includes(e):fS(t)?(t.lastIndex=0,t.test(e)):!1}function dp(t,e){ew(t,"a",e)}function pp(t,e){ew(t,"da",e)}function ew(t,e,n=xt){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Du(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Za(s.parent.vnode)&&_C(r,e,n,s),s=s.parent}}function _C(t,e,n,r){const s=Du(e,t,r,!0);yi(()=>{rp(r[e],s)},n)}function qf(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Vc(t){return t.shapeFlag&128?t.ssContent:t}function Du(t,e,n=xt,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{Fr();const a=wo(n),c=$n(e,n,t,o);return a(),Ur(),c});return r?s.unshift(i):s.push(i),i}}const qr=t=>(e,n=xt)=>{(!oi||t==="sp")&&Du(t,(...r)=>e(...r),n)},tw=qr("bm"),Rs=qr("m"),yC=qr("bu"),nw=qr("u"),Eo=qr("bum"),yi=qr("um"),vC=qr("sp"),EC=qr("rtg"),wC=qr("rtc");function rw(t,e=xt){Du("ec",t,e)}const sw="components";function Wg(t,e){return ow(sw,t,!0,e)||t}const iw=Symbol.for("v-ndc");function TC(t){return ze(t)?ow(sw,t,!1)||t:t||iw}function ow(t,e,n=!0,r=!1){const s=Ft||xt;if(s){const i=s.type;{const a=Bh(i,!1);if(a&&(a===e||a===rn(e)||a===wu(rn(e))))return i}const o=Kg(s[t]||i[t],e)||Kg(s.appContext[t],e);return!o&&r?i:o}}function Kg(t,e){return t&&(t[e]||t[rn(e)]||t[wu(rn(e))])}function X3(t,e,n,r){let s;const i=n&&n[r],o=de(t);if(o||ze(t)){const a=o&&cs(t);let c=!1,l=!1;a&&(c=!_n(t),l=lr(t),t=Cu(t)),s=new Array(t.length);for(let f=0,h=t.length;f<h;f++)s[f]=e(c?l?no(Un(t[f])):Un(t[f]):t[f],f,void 0,i&&i[f])}else if(typeof t=="number"){s=new Array(t);for(let a=0;a<t;a++)s[a]=e(a+1,a,void 0,i&&i[a])}else if(Fe(t))if(t[Symbol.iterator])s=Array.from(t,(a,c)=>e(a,c,void 0,i&&i[c]));else{const a=Object.keys(t);s=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const f=a[c];s[c]=e(t[f],f,c,i&&i[c])}}else s=[];return n&&(n[r]=s),s}function Z3(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(de(r))for(let s=0;s<r.length;s++)t[r[s].name]=r[s].fn;else r&&(t[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return t}function ej(t,e,n={},r,s){if(Ft.ce||Ft.parent&&Nr(Ft.parent)&&Ft.parent.ce){const l=Object.keys(n).length>0;return e!=="default"&&(n.name=e),tn(),Ar(Nt,null,[Je("slot",n,r&&r()
vendor: 4,325 bytes, line 4
4)],l?-2:64)}let i=t[e];i&&i._c&&(i._d=!1),tn();const o=i&&aw(i(n)),a=n.key||o&&o.key,c=Ar(Nt,{key:(a&&!En(a)?a:`_${e}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&t._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function aw(t){return t.some(e=>ii(e)?!(e.type===Et||e.type===Nt&&!aw(e.children)):!0)?t:null}const xh=t=>t?Dw(t)?xu(t):xh(t.parent):null,ga=kt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>xh(t.parent),$root:t=>xh(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>uw(t),$forceUpdate:t=>t.f||(t.f=()=>{up(t.update)}),$nextTick:t=>t.n||(t.n=jn.bind(t.proxy)),$watch:t=>rC.bind(t)}),Wf=(t,e)=>t!==We&&!t.__isScriptSetup&&je(t,e),bC={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=t;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(Wf(r,e))return o[e]=1,r[e];if(s!==We&&je(s,e))return o[e]=2,s[e];if(je(i,e))return o[e]=3,i[e];if(n!==We&&je(n,e))return o[e]=4,n[e];Vh&&(o[e]=0)}}const l=ga[e];let f,h;if(l)return e==="$attrs"&&Wt(t.attrs,"get",""),l(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==We&&je(n,e))return o[e]=4,n[e];if(h=c.config.globalProperties,je(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return Wf(s,e)?(s[e]=n,!0):r!==We&&je(r,e)?(r[e]=n,!0):je(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let c;return!!(n[a]||t!==We&&a[0]!=="$"&&je(t,a)||Wf(e,a)||je(i,a)||je(r,a)||je(ga,a)||je(s.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:je(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function tj(){return cw().slots}function nj(){return cw().attrs}function cw(t){const e=wn();return e.setupContext||(e.setupContext=Mw(e))}function Gg(t){return de(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function rj(t){const e=wn(),n=oi;let r=t();Oa(),n&&Ki(!1);const s=()=>{wo(e),n&&Ki(!0)},i=()=>{wn()!==e&&e.scope.off(),Oa(),n&&Ki(!1)};return sp(r)&&(r=r.catch(o=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(i)),o})),[r,()=>{s(),Promise.resolve().then(i)}]}let Vh=!0;function IC(t){const e=uw(t),n=t.proxy,r=t.ctx;Vh=!1,e.beforeCreate&&zg(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:f,beforeMount:h,mounted:d,beforeUpdate:m,updated:y,activated:_,deactivated:A,beforeDestroy:w,beforeUnmount:R,destroyed:v,unmounted:I,render:D,renderTracked:x,renderTriggered:E,errorCaptured:T,serverPrefetch:b,expose:S,inheritAttrs:O,components:L,directives:k,filters:ce}=e;if(l&&AC(l,r,null),o)for(const pe in o){const re=o[pe];me(re)&&(r[pe]=re.bind(n))}if(s){const pe=s.call(n,n);Fe(pe)&&(t.data=Pn(pe))}if(Vh=!0,i)for(const pe in i){const re=i[pe],ve=me(re)?re.bind(n,n):me(re.get)?re.get.bind(n,n):rr,zt=!me(re)&&me(re.set)?re.set.bind(n):rr,Ot=Ie({get:ve,set:zt});Object.defineProperty(r,pe,{enumerable:!0,configurable:!0,get:()=>Ot.value,set:dt=>Ot.value=dt})}if(a)for(const pe in a)lw(a[pe],r,n,pe);if(c){const pe=me(c)?c.call(n):c;Reflect.ownKeys(pe).forEach(re=>{Dr(re,pe[re])})}f&&zg(f,t,"c");function ae(pe,re){de(re)?re.forEach(ve=>pe(ve.bind(n))):re&&pe(re.bind(n))}if(ae(tw,h),ae(Rs,d),ae(yC,m),ae(nw,y),ae(dp,_),ae(pp,A),ae(rw,T),ae(wC,x),ae(EC,E),ae(Eo,R),ae(yi,I),ae(vC,b),de(S))if(S.length){const pe=t.exposed||(t.exposed={});S.forEach(re=>{Object.defineProperty(pe,re,{get:()=>n[re],set:ve=>n[re]=ve,enumerable:!0})})}else t.exposed||(t.exposed={});D&&t.render===rr&&(t.render=D),O!=null&&(t.inheritAttrs=O),L&&(t.components=L),k&&(t.directives=k),b&&hp(t)}function AC(t,e,n=rr){de(t)&&(t=Fh(t));for(const r in t){const s=t[r];let i;Fe(s)?"default"in s?i=It(s.from||r,s.default,!0):i=It(s.from||r):i=It(s),Xe(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function zg(t,e,n){$n(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function lw(t,e,n,r){let s=r.includes(".")?KE(n,r):()=>n[r];if(ze(t)){const i=e[t];me(i)&&ht(s,i)}else if(me(t))ht(s,t.bind(n));else if(Fe(t))if(de(t))t.forEach(i=>
vendor: 4,244 bytes, line 4
4lw(i,e,n,r));else{const i=me(t.handler)?t.handler.bind(n):e[t.handler];me(i)&&ht(s,i,t)}}function uw(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let c;return a?c=a:!s.length&&!n&&!r?c=e:(c={},s.length&&s.forEach(l=>Al(c,l,o,!0)),Al(c,e,o)),Fe(e)&&i.set(e,c),c}function Al(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Al(t,i,n,!0),s&&s.forEach(o=>Al(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=RC[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const RC={data:Qg,props:Yg,emits:Yg,methods:oa,computed:oa,beforeCreate:Xt,created:Xt,beforeMount:Xt,mounted:Xt,beforeUpdate:Xt,updated:Xt,beforeDestroy:Xt,beforeUnmount:Xt,destroyed:Xt,unmounted:Xt,activated:Xt,deactivated:Xt,errorCaptured:Xt,serverPrefetch:Xt,components:oa,directives:oa,watch:CC,provide:Qg,inject:SC};function Qg(t,e){return e?t?function(){return kt(me(t)?t.call(this,this):t,me(e)?e.call(this,this):e)}:e:t}function SC(t,e){return oa(Fh(t),Fh(e))}function Fh(t){if(de(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Xt(t,e){return t?[...new Set([].concat(t,e))]:e}function oa(t,e){return t?kt(Object.create(null),t,e):e}function Yg(t,e){return t?de(t)&&de(e)?[...new Set([...t,...e])]:kt(Object.create(null),Gg(t),Gg(e??{})):e}function CC(t,e){if(!t)return e;if(!e)return t;const n=kt(Object.create(null),t);for(const r in e)n[r]=Xt(t[r],e[r]);return n}function fw(){return{app:null,config:{isNativeTag:pE,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 PC=0;function kC(t,e){return function(r,s=null){me(r)||(r=kt({},r)),s!=null&&!Fe(s)&&(s=null);const i=fw(),o=new WeakSet,a=[];let c=!1;const l=i.app={_uid:PC++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:cP,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&me(f.install)?(o.add(f),f.install(l,...h)):me(f)&&(o.add(f),f(l,...h))),l},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),l},component(f,h){return h?(i.components[f]=h,l):i.components[f]},directive(f,h){return h?(i.directives[f]=h,l):i.directives[f]},mount(f,h,d){if(!c){const m=l._ceVNode||Je(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),h&&e?e(m,f):t(m,f,d),c=!0,l._container=f,f.__vue_app__=l,xu(m.component)}},onUnmount(f){a.push(f)},unmount(){c&&($n(a,l._instance,16),t(null,l._container),delete l._container.__vue_app__)},provide(f,h){return i.provides[f]=h,l},runWithContext(f){const h=ti;ti=l;try{return f()}finally{ti=h}}};return l}}let ti=null;const OC=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rn(e)}Modifiers`]||t[`${As(e)}Modifiers`];function LC(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||We;let s=n;const i=e.startsWith("update:"),o=i&&OC(r,e.slice(7));o&&(o.trim&&(s=n.map(f=>ze(f)?f.trim():f)),o.number&&(s=n.map(Tu)));let a,c=r[a=Ff(e)]||r[a=Ff(rn(e))];!c&&i&&(c=r[a=Ff(As(e))]),c&&$n(c,t,6,s);const l=r[a+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,$n(l,t,6,s)}}const DC=new WeakMap;function hw(t,e,n=!1){const r=n?DC:e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!me(t)){const c=l=>{const f=hw(l,e,!0);f&&(a=!0,kt(o,f))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!i&&!a?(Fe(t)&&r.set(t,null),null):(de(i)?i.forEach(c=>o[c]=null):kt(o,i),Fe(t)&&r.set(t,o),o)}function Nu(t,e){return!t||!Qa(e)?!1:(e=e.slice(2).replace(/Once$/,""),je(t,e[0].toLowerCase()+e.slice(1))||je(t,As(e))||je(t,e))}function Kf(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:l,renderCache:f,props:h,data:d,setupState:m,ctx:y,inheritAttrs:_}=t,A=bl(t);let w,R;try{if(n.shapeFlag&4){const I=s||r,D=I;w=pn(l.call(D,I,f,h,m,d,y)),R=a}else{const I=e;w=pn(I.length>1?I(h,{attrs:a,slots:o,emit:c}):I(h,null)),R=e.props?a:MC(a)}}catch(I){ya.length=0,vo(I,t,1),w=Je(Et)}let v=w;if(R&&_!==!1){const I=Object.keys(R),{shapeFlag:D}=v;
vendor: 8,967 bytes, line 4
4I.length&&D&7&&(i&&I.some(_u)&&(R=xC(R,i)),v=ur(v,R,!1,!0))}return n.dirs&&(v=ur(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&ro(v,n.transition),w=v,bl(A),w}function NC(t,e=!0){let n;for(let r=0;r<t.length;r++){const s=t[r];if(ii(s)){if(s.type!==Et||s.children==="v-if"){if(n)return;n=s}}else return}return n}const MC=t=>{let e;for(const n in t)(n==="class"||n==="style"||Qa(n))&&((e||(e={}))[n]=t[n]);return e},xC=(t,e)=>{const n={};for(const r in t)(!_u(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function VC(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:c}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jg(r,o,l):!!o;if(c&8){const f=e.dynamicProps;for(let h=0;h<f.length;h++){const d=f[h];if(dw(o,r,d)&&!Nu(l,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Jg(r,o,l):!0:!!o;return!1}function Jg(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(dw(e,t,i)&&!Nu(n,i))return!0}return!1}function dw(t,e,n){const r=t[n],s=e[n];return n==="style"&&Fe(r)&&Fe(s)?!Ya(r,s):r!==s}function Mu({vnode:t,parent:e,suspense:n},r){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.suspense.vnode.el=s.el=r,t=s),s===t)(t=e.vnode).el=r,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=r)}const pw={},mw=()=>Object.create(pw),gw=t=>Object.getPrototypeOf(t)===pw;function FC(t,e,n,r=!1){const s={},i=mw();t.propsDefaults=Object.create(null),_w(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:Ln(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function UC(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Ne(s),[c]=t.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let h=0;h<f.length;h++){let d=f[h];if(Nu(t.emitsOptions,d))continue;const m=e[d];if(c)if(je(i,d))m!==i[d]&&(i[d]=m,l=!0);else{const y=rn(d);s[y]=Uh(c,a,y,m,t,!1)}else m!==i[d]&&(i[d]=m,l=!0)}}}else{_w(t,e,s,i)&&(l=!0);let f;for(const h in a)(!e||!je(e,h)&&((f=As(h))===h||!je(e,f)))&&(c?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=Uh(c,a,h,void 0,t,!0)):delete s[h]);if(i!==a)for(const h in i)(!e||!je(e,h))&&(delete i[h],l=!0)}l&&br(t.attrs,"set","")}function _w(t,e,n,r){const[s,i]=t.propsOptions;let o=!1,a;if(e)for(let c in e){if(Zs(c))continue;const l=e[c];let f;s&&je(s,f=rn(c))?!i||!i.includes(f)?n[f]=l:(a||(a={}))[f]=l:Nu(t.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(i){const c=Ne(n),l=a||We;for(let f=0;f<i.length;f++){const h=i[f];n[h]=Uh(s,c,h,l[h],t,!je(l,h))}}return o}function Uh(t,e,n,r,s,i){const o=t[n];if(o!=null){const a=je(o,"default");if(a&&r===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&me(c)){const{propsDefaults:l}=s;if(n in l)r=l[n];else{const f=wo(s);r=l[n]=c.call(null,e),f()}}else r=c;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===As(n))&&(r=!0))}return r}const $C=new WeakMap;function yw(t,e,n=!1){const r=n?$C:e.propsCache,s=r.get(t);if(s)return s;const i=t.props,o={},a=[];let c=!1;if(!me(t)){const f=h=>{c=!0;const[d,m]=yw(h,e,!0);kt(o,d),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!c)return Fe(t)&&r.set(t,Fi),Fi;if(de(i))for(let f=0;f<i.length;f++){const h=rn(i[f]);Xg(h)&&(o[h]=We)}else if(i)for(const f in i){const h=rn(f);if(Xg(h)){const d=i[f],m=o[h]=de(d)||me(d)?{type:d}:kt({},d),y=m.type;let _=!1,A=!0;if(de(y))for(let w=0;w<y.length;++w){const R=y[w],v=me(R)&&R.name;if(v==="Boolean"){_=!0;break}else v==="String"&&(A=!1)}else _=me(y)&&y.name==="Boolean";m[0]=_,m[1]=A,(_||je(m,"default"))&&a.push(h)}}const l=[o,a];return Fe(t)&&r.set(t,l),l}function Xg(t){return t[0]!=="$"&&!Zs(t)}const mp=t=>t==="_"||t==="_ctx"||t==="$stable",gp=t=>de(t)?t.map(pn):[pn(t)],jC=(t,e,n)=>{if(e._n)return e;const r=Xa((...s)=>gp(e(...s)),n);return r._c=!1,r},vw=(t,e,n)=>{const r=t._ctx;for(const s in t){if(mp(s))continue;const i=t[s];if(me(i))e[s]=jC(s,i,r);else if(i!=null){const o=gp(i);e[s]=()=>o}}},Ew=(t,e)=>{const n=gp(e);t.slots.default=()=>n},ww=(t,e,n)=>{for(const r in e)(n||!mp(r))&&(t[r]=e[r])},BC=(t,e,n)=>{const r=t.slots=mw();if(t.vnode.shapeFlag&32){const s=e._;s?(ww(r,e,n),n&&gE(r,"_",s,!0)):vw(e,r)}else e&&Ew(t,e)},HC=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=We;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:ww(s,e,n):(i=!e.$stable,vw(e,s)),o=e}else e&&(Ew(t,e),o={default:1});if(i)for(const a in s)!mp(a)&&o[a]==null&&delete s[a]},vt=Sw;function qC(t){return Tw(t)}function WC(t){return Tw(t,hC)}function Tw(t,e){const n=bu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:f,parentNode:h,nextSibling:d,setScopeId:m=rr,insertStaticContent:y}=t,_=(M,V,B,Q=null,G=null,C=null,N=void 0,U=null,j=!!V.dynamicChildren)=>{if(M===V)return;M&&!Dn(M,V)&&(Q=z(M),dt(M,G,C,!0),M=null),V.patchFlag===-2&&(j=!1,V.dynamicChildren=null);const{type:W,ref:J,shapeFlag:F}=V;switch(W){case ls:A(M,V,B,Q);break;case Et:w(M,V,B,Q);break;case _a:M==null&&R(V,B,Q,N);break;case Nt:L(M,V,B,Q,G,C,N,U,j);break;default:F&1?D(M,V,B,Q,G,C,N,U,j):F&6?k(M,V,B,Q,G,C,N,U,j):(F&64||F&128)&&W.process(M,V,B,Q,G,C,N,U,j,le)}J!=null&&G?Hi(J,M&&M.ref,C,V||M,!V):J==null&&M&&M.ref!=null&&Hi(M.ref,null,C,M,!0)},A=(M,V,B,Q)=>{if(M==null)r(V.el=a(V.children),B,Q);else{const G=V.el=M.el;V.children!==M.children&&l(G,V.children)}},w=(M,V,B,Q)=>{M==null?r(V.el=c(V.children||""),B,Q):V.el=M.el},R=(M,V,B,Q)=>{[M.el,M.anchor]=y(M.children,V,B,Q,M.el,M.anchor)},v=({el:M,anchor:V},B,Q)=>{let G;for(;M&&M!==V;)G=d(M),r(M,B,Q),M=G;r(V,B,Q)},I=({el:M,anchor:V})=>{let B;for(;M&&M!==V;)B=d(M),s(M),M=B;s(V)},D=(M,V,B,Q,G,C,N,U,j)=>{if(V.type==="svg"?N="svg":V.type==="math"&&(N="mathml"),M==null)x(V,B,Q,G,C,N,U,j);else{const W=M.el&&M.el._isVueCE?M.el:null;try{W&&W._beginPatch(),b(M,V,G,C,N,U,j)}finally{W&&W._endPatch()}}},x=(M,V,B,Q,G,C,N,U)=>{let j,W;const{props:J,shapeFlag:F,transition:H,dirs:te}=M;if(j=M.el=o(M.type,C,J&&J.is,J),F&8?f(j,M.children):F&16&&T(M.children,j,null,Q,G,Gf(M,C),N,U),te&&Jn(M,null,Q,"created"),E(j,M,M.scopeId,N,Q),J){for(const Re in J)Re!=="value"&&!Zs(Re)&&i(j,Re,null,J[Re],C,Q);"value"in J&&i(j,"value",null,J.value,C),(W=J.onVnodeBeforeMount)&&on(W,Q,M)}te&&Jn(M,null,Q,"beforeMount");const ue=bw(G,H);ue&&H.beforeEnter(j),r(j,V,B),((W=J&&J.onVnodeMounted)||ue||te)&&vt(()=>{W&&on(W,Q,M),ue&&H.enter(j),te&&Jn(M,null,Q,"mounted")},G)},E=(M,V,B,Q,G)=>{if(B&&m(M,B),Q)for(let C=0;C<Q.length;C++)m(M,Q[C]);if(G){let C=G.subTree;if(V===C||Sl(C.type)&&(C.ssContent===V||C.ssFallback===V)){const N=G.vnode;E(M,N,N.scopeId,N.slotScopeIds,G.parent)}}},T=(M,V,B,Q,G,C,N,U,j=0)=>{for(let W=j;W<M.length;W++){const J=M[W]=U?Tr(M[W]):pn(M[W]);_(null,J,V,B,Q,G,C,N,U)}},b=(M,V,B,Q,G,C,N)=>{const U=V.el=M.el;let{patchFlag:j,dynamicChildren:W,dirs:J}=V;j|=M.patchFlag&16;const F=M.props||We,H=V.props||We;let te;if(B&&Us(B,!1),(te=H.onVnodeBeforeUpdate)&&on(te,B,V,M),J&&Jn(V,M,B,"beforeUpdate"),B&&Us(B,!0),(F.innerHTML&&H.innerHTML==null||F.textContent&&H.textContent==null)&&f(U,""),W?S(M.dynamicChildren,W,U,B,Q,Gf(V,G),C):N||re(M,V,U,null,B,Q,Gf(V,G),C,!1),j>0){if(j&16)O(U,F,H,B,G);else if(j&2&&F.class!==H.class&&i(U,"class",null,H.class,G),j&4&&i(U,"style",F.style,H.style,G),j&8){const ue=V.dynamicProps;for(let Re=0;Re<ue.length;Re++){const ke=ue[Re],Le=F[ke],st=H[ke];(st!==Le||ke==="value")&&i(U,ke,Le,st,G,B)}}j&1&&M.children!==V.children&&f(U,V.children)}else!N&&W==null&&O(U,F,H,B,G);((te=H.onVnodeUpdated)||J)&&vt(()=>{te&&on(te,B,V,M),J&&Jn(V,M,B,"updated")},Q)},S=(M,V,B,Q,G,C,N)=>{for(let U=0;U<V.length;U++){const j=M[U],W=V[U],J=j.el&&(j.type===Nt||!Dn(j,W)||j.shapeFlag&198)?h(j.el):B;_(j,W,J,null,Q,G,C,N,!0)}},O=(M,V,B,Q,G)=>{if(V!==B){if(V!==We)for(const C in V)!Zs(C)&&!(C in B)&&i(M,C,V[C],null,G,Q);for(const C in B){if(Zs(C))continue;const N=B[C],U=V[C];N!==U&&C!=="value"&&i(M,C,U,N,G,Q)}"value"in B&&i(M,"value",V.value,B.value,G)}},L=(M,V,B,Q,G,C,N,U,j)=>{const W=V.el=M?M.el:a(""),J=V.anchor=M?M.anchor:a("");let{patchFlag:F,dynamicChildren:H,slotScopeIds:te}=V;te&&(U=U?U.concat(te):te),M==null?(r(W,B,Q),r(J,B,Q),T(V.children||[],B,J,G,C,N,U,j)):F>0&&F&64&&H&&M.dynamicChildren&&M.dynamicChildren.length===H.length?(S(M.dynamicChildren,H,B,G,C,N,U),(V.key!=null||G&&V===G.subTree)&&_p(M,V,!0)):re(M,V,B,J,G,C,N,U,j)},k=(M,V,B,Q,G,C,N,U,j)=>{V.slotScopeIds=U,M==null?V.shapeFlag&512?G.ctx.activate(V,B,Q,N,j):ce(V,B,Q,G,C,N,j):_e(M,V,j)},ce=(M,V,B,Q,G,C,N)=>{const U=M.component=rP(M,Q,G);if(Za(M)&&(U.ctx.renderer=le),sP(U,!1,N),U.asyncDep){if(G&&G.registerDep(U,ae,N),!M.el){const j=U.subTree=Je(Et);w(null,j,V,B),M.placeholder=j.el}}else ae(U,M,V,B,G,C,N)},_e=(M,V,B)=>{const Q=V.component=M.component;if(VC(M,V,B))if(Q.asyncDep&&!Q.asyncResolved){pe(Q,V,B);return}else Q.next=V,Q.update();else V.el=M.el,Q.vnode=V},ae=(M,V,B,Q,G,C,N)=>{const U=()=>
vendor: 4,913 bytes, line 4
4{if(M.isMounted){let{next:F,bu:H,u:te,parent:ue,vnode:Re}=M;{const At=Iw(M);if(At){F&&(F.el=Re.el,pe(M,F,N)),At.asyncDep.then(()=>{vt(()=>{M.isUnmounted||W()},G)});return}}let ke=F,Le;Us(M,!1),F?(F.el=Re.el,pe(M,F,N)):F=Re,H&&$i(H),(Le=F.props&&F.props.onVnodeBeforeUpdate)&&on(Le,ue,F,Re),Us(M,!0);const st=Kf(M),Yt=M.subTree;M.subTree=st,_(Yt,st,h(Yt.el),z(Yt),M,G,C),F.el=st.el,ke===null&&Mu(M,st.el),te&&vt(te,G),(Le=F.props&&F.props.onVnodeUpdated)&&vt(()=>on(Le,ue,F,Re),G)}else{let F;const{el:H,props:te}=V,{bm:ue,m:Re,parent:ke,root:Le,type:st}=M,Yt=Nr(V);if(Us(M,!1),ue&&$i(ue),!Yt&&(F=te&&te.onVnodeBeforeMount)&&on(F,ke,V),Us(M,!0),H&&xe){const At=()=>{M.subTree=Kf(M),xe(H,M.subTree,M,G,null)};Yt&&st.__asyncHydrate?st.__asyncHydrate(H,M,At):At()}else{Le.ce&&Le.ce._hasShadowRoot()&&Le.ce._injectChildStyle(st,M.parent?M.parent.type:void 0);const At=M.subTree=Kf(M);_(null,At,B,Q,M,G,C),V.el=At.el}if(Re&&vt(Re,G),!Yt&&(F=te&&te.onVnodeMounted)){const At=V;vt(()=>on(F,ke,At),G)}(V.shapeFlag&256||ke&&Nr(ke.vnode)&&ke.vnode.shapeFlag&256)&&M.a&&vt(M.a,G),M.isMounted=!0,V=B=Q=null}};M.scope.on();const j=M.effect=new TE(U);M.scope.off();const W=M.update=j.run.bind(j),J=M.job=j.runIfDirty.bind(j);J.i=M,J.id=M.uid,j.scheduler=()=>up(J),Us(M,!0),W()},pe=(M,V,B)=>{V.component=M;const Q=M.vnode.props;M.vnode=V,M.next=null,UC(M,V.props,Q,B),HC(M,V.children,B),Fr(),Vg(M),Ur()},re=(M,V,B,Q,G,C,N,U,j=!1)=>{const W=M&&M.children,J=M?M.shapeFlag:0,F=V.children,{patchFlag:H,shapeFlag:te}=V;if(H>0){if(H&128){zt(W,F,B,Q,G,C,N,U,j);return}else if(H&256){ve(W,F,B,Q,G,C,N,U,j);return}}te&8?(J&16&&_t(W,G,C),F!==W&&f(B,F)):J&16?te&16?zt(W,F,B,Q,G,C,N,U,j):_t(W,G,C,!0):(J&8&&f(B,""),te&16&&T(F,B,Q,G,C,N,U,j))},ve=(M,V,B,Q,G,C,N,U,j)=>{M=M||Fi,V=V||Fi;const W=M.length,J=V.length,F=Math.min(W,J);let H;for(H=0;H<F;H++){const te=V[H]=j?Tr(V[H]):pn(V[H]);_(M[H],te,B,null,G,C,N,U,j)}W>J?_t(M,G,C,!0,!1,F):T(V,B,Q,G,C,N,U,j,F)},zt=(M,V,B,Q,G,C,N,U,j)=>{let W=0;const J=V.length;let F=M.length-1,H=J-1;for(;W<=F&&W<=H;){const te=M[W],ue=V[W]=j?Tr(V[W]):pn(V[W]);if(Dn(te,ue))_(te,ue,B,null,G,C,N,U,j);else break;W++}for(;W<=F&&W<=H;){const te=M[F],ue=V[H]=j?Tr(V[H]):pn(V[H]);if(Dn(te,ue))_(te,ue,B,null,G,C,N,U,j);else break;F--,H--}if(W>F){if(W<=H){const te=H+1,ue=te<J?V[te].el:Q;for(;W<=H;)_(null,V[W]=j?Tr(V[W]):pn(V[W]),B,ue,G,C,N,U,j),W++}}else if(W>H)for(;W<=F;)dt(M[W],G,C,!0),W++;else{const te=W,ue=W,Re=new Map;for(W=ue;W<=H;W++){const pt=V[W]=j?Tr(V[W]):pn(V[W]);pt.key!=null&&Re.set(pt.key,W)}let ke,Le=0;const st=H-ue+1;let Yt=!1,At=0;const mr=new Array(st);for(W=0;W<st;W++)mr[W]=0;for(W=te;W<=F;W++){const pt=M[W];if(Le>=st){dt(pt,G,C,!0);continue}let hn;if(pt.key!=null)hn=Re.get(pt.key);else for(ke=ue;ke<=H;ke++)if(mr[ke-ue]===0&&Dn(pt,V[ke])){hn=ke;break}hn===void 0?dt(pt,G,C,!0):(mr[hn-ue]=W+1,hn>=At?At=hn:Yt=!0,_(pt,V[hn],B,null,G,C,N,U,j),Le++)}const Ti=Yt?KC(mr):Fi;for(ke=Ti.length-1,W=st-1;W>=0;W--){const pt=ue+W,hn=V[pt],Ns=V[pt+1],Oo=pt+1<J?Ns.el||Aw(Ns):Q;mr[W]===0?_(null,hn,B,Oo,G,C,N,U,j):Yt&&(ke<0||W!==Ti[ke]?Ot(hn,B,Oo,2):ke--)}}},Ot=(M,V,B,Q,G=null)=>{const{el:C,type:N,transition:U,children:j,shapeFlag:W}=M;if(W&6){Ot(M.component.subTree,V,B,Q);return}if(W&128){M.suspense.move(V,B,Q);return}if(W&64){N.move(M,V,B,le);return}if(N===Nt){r(C,V,B);for(let F=0;F<j.length;F++)Ot(j[F],V,B,Q);r(M.anchor,V,B);return}if(N===_a){v(M,V,B);return}if(Q!==2&&W&1&&U)if(Q===0)U.beforeEnter(C),r(C,V,B),vt(()=>U.enter(C),G);else{const{leave:F,delayLeave:H,afterLeave:te}=U,ue=()=>{M.ctx.isUnmounted?s(C):r(C,V,B)},Re=()=>{C._isLeaving&&C[Xn](!0),F(C,()=>{ue(),te&&te()})};H?H(C,ue,Re):Re()}else r(C,V,B)},dt=(M,V,B,Q=!1,G=!1)=>{const{type:C,props:N,ref:U,children:j,dynamicChildren:W,shapeFlag:J,patchFlag:F,dirs:H,cacheIndex:te,memo:ue}=M;if(F===-2&&(G=!1),U!=null&&(Fr(),Hi(U,null,B,M,!0),Ur()),te!=null&&(V.renderCache[te]=void 0),J&256){V.ctx.deactivate(M);return}const Re=J&1&&H,ke=!Nr(M);let Le;if(ke&&(Le=N&&N.onVnodeBeforeUnmount)&&on(Le,V,M),J&6)sn(M.component,B,Q);else{if(J&128){M.suspense.unmount(B,Q);return}Re&&Jn(M,null,V,"beforeUnmount"),J&64?M.type.remove(M,V,B,le,Q):W&&!W.hasOnce&&(C!==Nt||F>0&&F&64)?_t(W,V,B,!1,!0):(C===Nt&&F&384||!G&&J&16)&&_t(j,V,B),Q&&fn(M)}const st=ue!=null&&te==null;(ke&&(Le=N&&N.onVnodeUnmounted)||Re||st)&&vt(()=>{Le&&on(Le,V,M),Re&&Jn(M,null,V,"unmounted"),st&&(M.el=null)},B)},fn=M=>{const{type:V,el:B,anchor:Q,transition:G}=M;if(V===Nt){Qt(B,Q);return}if(V===_a){I(M);return}const C=()=>{s(B),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(M.shapeFlag&1&&G&&!G.persisted){const{leave:N,delayLeave:U}=G,j=()=>N(B,C);U?U(M.el,C,j):j()}else C()},Qt=(M,V)=>{let B;for(;M!==V;)B=d(M),s(M),M=B;s(V)},sn=(M,V,B)=>{const{bum:Q,scope:G,job:C,subTree:N,um:U,m:j,a:W}=M;Rl(j),Rl(W),Q&&$i(Q),G.stop(),C&&(C.flags|=8,dt(N,M,V,B)),U&&vt(U,V),vt(()=>{M.isUnmounted=!0},V)},_t=(M,V,B,Q=!1,G=!1,C=0)=>{for(let N=C;N<M.length;N++)dt(M[N],V,B,Q,G)},z=M=>
vendor: 11,038 bytes, line 4
4{if(M.shapeFlag&6)return z(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const V=d(M.anchor||M.el),B=V&&V[GE];return B?d(B):V};let se=!1;const ee=(M,V,B)=>{let Q;M==null?V._vnode&&(dt(V._vnode,null,null,!0),Q=V._vnode.component):_(V._vnode||null,M,V,null,null,null,B),V._vnode=M,se||(se=!0,Vg(Q),Tl(),se=!1)},le={p:_,um:dt,m:Ot,r:fn,mt:ce,mc:T,pc:re,pbc:S,n:z,o:t};let Te,xe;return e&&([Te,xe]=e(le)),{render:ee,hydrate:Te,createApp:kC(ee,Te)}}function Gf({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Us({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function bw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function _p(t,e,n=!1){const r=t.children,s=e.children;if(de(r)&&de(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Tr(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&_p(o,a)),a.type===ls&&(a.patchFlag===-1&&(a=s[i]=Tr(a)),a.el=o.el),a.type===Et&&!a.el&&(a.el=o.el)}}function KC(t){const e=t.slice(),n=[0];let r,s,i,o,a;const c=t.length;for(r=0;r<c;r++){const l=t[r];if(l!==0){if(s=n[n.length-1],t[s]<l){e[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<l?i=a+1:o=a;l<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function Iw(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Iw(e)}function Rl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Aw(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Aw(e.subTree):null}const Sl=t=>t.__isSuspense;let $h=0;const GC={name:"Suspense",__isSuspense:!0,process(t,e,n,r,s,i,o,a,c,l){if(t==null)zC(e,n,r,s,i,o,a,c,l);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}QC(t,e,n,r,s,o,a,c,l)}},hydrate:YC,normalize:JC},yp=GC;function ka(t,e){const n=t.props&&t.props[e];me(n)&&n()}function zC(t,e,n,r,s,i,o,a,c){const{p:l,o:{createElement:f}}=c,h=f("div"),d=t.suspense=Rw(t,s,r,e,h,n,i,o,a,c);l(null,d.pendingBranch=t.ssContent,h,null,r,d,i,o),d.deps>0?(ka(t,"onPending"),ka(t,"onFallback"),l(null,t.ssFallback,e,n,r,null,i,o),qi(d,t.ssFallback)):d.resolve(!1,!0)}function QC(t,e,n,r,s,i,o,a,{p:c,um:l,o:{createElement:f}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const d=e.ssContent,m=e.ssFallback,{activeBranch:y,pendingBranch:_,isInFallback:A,isHydrating:w}=h;if(_)h.pendingBranch=d,Dn(_,d)?(c(_,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():A&&(w||(c(y,m,n,r,s,null,i,o,a),qi(h,m)))):(h.pendingId=$h++,w?(h.isHydrating=!1,h.activeBranch=_):l(_,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),A?(c(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():(c(y,m,n,r,s,null,i,o,a),qi(h,m))):y&&Dn(y,d)?(c(y,d,n,r,s,h,i,o,a),h.resolve(!0)):(c(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0&&h.resolve()));else if(y&&Dn(y,d))c(y,d,n,r,s,h,i,o,a),qi(h,d);else if(ka(e,"onPending"),h.pendingBranch=d,d.shapeFlag&512?h.pendingId=d.component.suspenseId:h.pendingId=$h++,c(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0)h.resolve();else{const{timeout:R,pendingId:v}=h;R>0?setTimeout(()=>{h.pendingId===v&&h.fallback(m)},R):R===0&&h.fallback(m)}}function Rw(t,e,n,r,s,i,o,a,c,l,f=!1){const{p:h,m:d,um:m,n:y,o:{parentNode:_,remove:A}}=l;let w;const R=XC(t);R&&e&&e.pendingBranch&&(w=e.pendingId,e.deps++);const v=t.props?_E(t.props.timeout):void 0,I=i,D={vnode:t,parent:e,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:$h++,timeout:typeof v=="number"?v:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(x=!1,E=!1){const{vnode:T,activeBranch:b,pendingBranch:S,pendingId:O,effects:L,parentComponent:k,container:ce,isInFallback:_e}=D;let ae=!1;if(D.isHydrating)D.isHydrating=!1;else if(!x){ae=b&&S.transition&&S.transition.mode==="out-in";let ve=!1;ae&&(b.transition.afterLeave=()=>{O===D.pendingId&&(d(S,ce,i===I&&!ve?y(b):i,0),Ca(L),_e&&T.ssFallback&&(T.ssFallback.el=null))}),b&&!D.isFallbackMountPending&&(_(b.el)===ce&&(i=y(b),ve=!0),m(b,k,D,!0),!ae&&_e&&T.ssFallback&&vt(()=>T.ssFallback.el=null,D)),ae||d(S,ce,i,0)}D.isFallbackMountPending=!1,qi(D,S),D.pendingBranch=null,D.isInFallback=!1;let pe=D.parent,re=!1;for(;pe;){if(pe.pendingBranch){pe.effects.push(...L),re=!0;break}pe=pe.parent}!re&&!ae&&Ca(L),D.effects=[],R&&e&&e.pendingBranch&&w===e.pendingId&&(e.deps--,e.deps===0&&!E&&e.resolve()),ka(T,"onResolve")},fallback(x){if(!D.pendingBranch)return;const{vnode:E,activeBranch:T,parentComponent:b,container:S,namespace:O}=D;ka(E,"onFallback");const L=y(T),k=()=>{D.isFallbackMountPending=!1,D.isInFallback&&(h(null,x,S,L,b,null,O,a,c),qi(D,x))},ce=x.transition&&x.transition.mode==="out-in";ce&&(D.isFallbackMountPending=!0,T.transition.afterLeave=k),D.isInFallback=!0,m(T,b,null,!0),ce||k()},move(x,E,T){D.activeBranch&&d(D.activeBranch,x,E,T),D.container=x},next(){return D.activeBranch&&y(D.activeBranch)},registerDep(x,E,T){const b=!!D.pendingBranch;b&&D.deps++;const S=x.vnode.el;x.asyncDep.catch(O=>{vo(O,x,0)}).then(O=>{if(x.isUnmounted||D.isUnmounted||D.pendingId!==x.suspenseId)return;Oa(),x.asyncResolved=!0;const{vnode:L}=x;jh(x,O),S&&(L.el=S);const k=!S&&x.subTree.el;E(x,L,_(S||x.subTree.el),S?null:y(x.subTree),D,o,T),k&&(L.placeholder=null,A(k)),Mu(x,L.el),b&&--D.deps===0&&D.resolve()})},unmount(x,E){D.isUnmounted=!0,D.activeBranch&&m(D.activeBranch,n,x,E),D.pendingBranch&&m(D.pendingBranch,n,x,E)}};return D}function YC(t,e,n,r,s,i,o,a,c){const l=e.suspense=Rw(e,r,n,t.parentNode,document.createElement("div"),null,s,i,o,a,!0),f=c(t,l.pendingBranch=e.ssContent,n,l,i,o);return l.deps===0&&l.resolve(!1,!0),f}function JC(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=Zg(r?n.default:n),t.ssFallback=r?Zg(n.fallback):Je(Et)}function Zg(t){let e;if(me(t)){const n=so&&t._c;n&&(t._d=!1,tn()),t=t(),n&&(t._d=!0,e=un,Cw())}return de(t)&&(t=NC(t)),t=pn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function Sw(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):Ca(t)}function qi(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Mu(r,s))}function XC(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Nt=Symbol.for("v-fgt"),ls=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),_a=Symbol.for("v-stc"),ya=[];let un=null;function tn(t=!1){ya.push(un=t?null:[])}function Cw(){ya.pop(),un=ya[ya.length-1]||null}let so=1;function Cl(t,e=!1){so+=t,t<0&&un&&e&&(un.hasOnce=!0)}function Pw(t){return t.dynamicChildren=so>0?un||Fi:null,Cw(),so>0&&un&&un.push(t),t}function Wi(t,e,n,r,s,i){return Pw(Ye(t,e,n,r,s,i,!0))}function Ar(t,e,n,r,s){return Pw(Je(t,e,n,r,s,!0))}function ii(t){return t?t.__v_isVNode===!0:!1}function Dn(t,e){return t.type===e.type&&t.key===e.key}const kw=({key:t})=>t??null,sl=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ze(t)||Xe(t)||me(t)?{i:Ft,r:t,k:e,f:!!n}:t:null);function Ye(t,e=null,n=null,r=0,s=null,i=t===Nt?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&kw(e),ref:e&&sl(e),scopeId:WE,slotScopeIds:null,children:n,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:s,dynamicChildren:null,appContext:null,ctx:Ft};return a?(vp(c,n),i&128&&t.normalize(c)):n&&(c.shapeFlag|=ze(n)?8:16),so>0&&!o&&un&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&un.push(c),c}const Je=ZC;function ZC(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===iw)&&(t=Et),ii(t)){const a=ur(t,e,!0);return n&&vp(a,n),so>0&&!i&&un&&(a.shapeFlag&6?un[un.indexOf(t)]=a:un.push(a)),a.patchFlag=-2,a}if(aP(t)&&(t=t.__vccOpts),e){e=eP(e);let{class:a,style:c}=e;a&&!ze(a)&&(e.class=Au(a)),Fe(c)&&(Ou(c)&&!de(c)&&(c=kt({},c)),e.style=Iu(c))}const o=ze(t)?1:Sl(t)?128:zE(t)?64:Fe(t)?4:me(t)?2:0;return Ye(t,e,n,r,s,o,i,!0)}function eP(t){return t?Ou(t)||gw(t)?kt({},t):t:null}function ur(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=t,l=e?Lw(s||{},e):s,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&kw(l),ref:e&&e.ref?n&&i?de(i)?i.concat(sl(e)):[i,sl(e)]:sl(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Nt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ur(t.ssContent),ssFallback:t.ssFallback&&ur(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&r&&ro(f,c.clone(f)),f}function zs(t=" ",e=0){return Je(ls,null,t,e)}function sj(t,e){const n=Je(_a,null,t);return n.staticCount=e,n}function Ow(t="",e=!1){return e?(tn(),Ar(Et,null,t)):Je(Et,null,t)}function pn(t){return t==null||typeof t=="boolean"?Je(Et):de(t)?Je(Nt,null,t.slice()):ii(t)?Tr(t):Je(ls,null,String(t))}function Tr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ur(t)}function vp(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),vp(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!gw(e)?e._ctx=Ft:s===3&&Ft&&(Ft.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else me(e)?(e={default:e,_ctx:Ft},n=32):(e=String(e),r&64?(n=16,e=[zs(e)]):n=8);t.children=e,t.shapeFlag|=n}function Lw(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=Au([e.class,r.class]));else if(s==="style")e.style=Iu([e.style,r.style]);else if(Qa(s)){const i=e[s],o=r[s];o&&i!==o&&!(de(i)&&i.includes(o))?e[s]=i?[].concat(i,o):o:o==null&&i==null&&!_u(s)&&(e[s]=o)}else s!==""&&(e[s]=r[s])}return e}function on(t,e,n,r=null){$n(t,e,7,[n,r])}const tP=fw();let nP=0;function rP(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||tP,i={uid:nP++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wE(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yw(r,s),emitsOptions:hw(r,s),emit:null,emitted:null,propsDefaults:We,inheritAttrs:r.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.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,
vendor: 9,327 bytes, line 4
4sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=LC.bind(null,i),t.ce&&t.ce(i),i}let xt=null;const wn=()=>xt||Ft;let Pl,Ki;{const t=bu(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Pl=e("__VUE_INSTANCE_SETTERS__",n=>xt=n),Ki=e("__VUE_SSR_SETTERS__",n=>oi=n)}const wo=t=>{const e=xt;return Pl(t),t.scope.on(),()=>{t.scope.off(),Pl(e)}},Oa=()=>{xt&&xt.scope.off(),Pl(null)};function Dw(t){return t.vnode.shapeFlag&4}let oi=!1;function sP(t,e=!1,n=!1){e&&Ki(e);const{props:r,children:s}=t.vnode,i=Dw(t);FC(t,r,i,e),BC(t,s,n||e);const o=i?iP(t,e):void 0;return e&&Ki(!1),o}function iP(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,bC);const{setup:r}=n;if(r){Fr();const s=t.setupContext=r.length>1?Mw(t):null,i=wo(t),o=Ja(r,t,0,[t.props,s]),a=sp(o);if(Ur(),i(),(a||t.sp)&&!Nr(t)&&hp(t),a){if(o.then(Oa,Oa),e)return o.then(c=>{jh(t,c)}).catch(c=>{vo(c,t,0)});t.asyncDep=o}else jh(t,o)}else Nw(t)}function jh(t,e,n){me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Fe(e)&&(t.setupState=$E(e)),Nw(t)}function Nw(t,e,n){const r=t.type;t.render||(t.render=r.render||rr);{const s=wo(t);Fr();try{IC(t)}finally{Ur(),s()}}}const oP={get(t,e){return Wt(t,"get",""),t[e]}};function Mw(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,oP),slots:t.slots,emit:t.emit,expose:e}}function xu(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy($E(FE(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ga)return ga[n](t)},has(e,n){return n in e||n in ga}})):t.proxy}function Bh(t,e=!0){return me(t)?t.displayName||t.name:t.name||e&&t.__name}function aP(t){return me(t)&&"__vccOpts"in t}const Ie=(t,e)=>QS(t,e,oi);function tt(t,e,n){try{Cl(-1);const r=arguments.length;return r===2?Fe(e)&&!de(e)?ii(e)?Je(t,null,[e]):Je(t,e):Je(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ii(n)&&(n=[n]),Je(t,e,n))}finally{Cl(1)}}const cP="3.5.34";let Hh;const e_=typeof window<"u"&&window.trustedTypes;if(e_)try{Hh=e_.createPolicy("vue",{createHTML:t=>t})}catch{}const xw=Hh?t=>Hh.createHTML(t):t=>t,lP="http://www.w3.org/2000/svg",uP="http://www.w3.org/1998/Math/MathML",wr=typeof document<"u"?document:null,t_=wr&&wr.createElement("template"),fP={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?wr.createElementNS(lP,t):e==="mathml"?wr.createElementNS(uP,t):n?wr.createElement(t,{is:n}):wr.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>wr.createTextNode(t),createComment:t=>wr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>wr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{t_.innerHTML=xw(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=t_.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Xr="transition",zo="animation",La=Symbol("_vtc"),Vw={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},hP=kt({},QE,Vw),dP=t=>(t.displayName="Transition",t.props=hP,t),Fw=dP((t,{slots:e})=>tt(lC,pP(t),e)),$s=(t,e=[])=>{de(t)?t.forEach(n=>n(...e)):t&&t(...e)},n_=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function pP(t){const e={};for(const L in t)L in Vw||(e[L]=t[L]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,y=mP(s),_=y&&y[0],A=y&&y[1],{onBeforeEnter:w,onEnter:R,onEnterCancelled:v,onLeave:I,onLeaveCancelled:D,onBeforeAppear:x=w,onAppear:E=R,onAppearCancelled:T=v}=e,b=(L,k,ce,_e)=>{L._enterCancelled=_e,js(L,k?f:a),js(L,k?l:o),ce&&ce()},S=(L,k)=>{L._isLeaving=!1,js(L,h),js(L,m),js(L,d),k&&k()},O=L=>(k,ce)=>{const _e=L?E:R,ae=()=>b(k,L,ce);$s(_e,[k,ae]),r_(()=>{js(k,L?c:i),_r(k,L?f:a),n_(_e)||s_(k,r,_,ae)})};return kt(e,{onBeforeEnter(L){$s(w,[L]),_r(L,i),_r(L,o)},onBeforeAppear(L){$s(x,[L]),_r(L,c),_r(L,l)},onEnter:O(!1),onAppear:O(!0),onLeave(L,k){L._isLeaving=!0;const ce=()=>S(L,k);_r(L,h),L._enterCancelled?(_r(L,d),a_(L)):(a_(L),_r(L,d)),r_(()=>{L._isLeaving&&(js(L,h),_r(L,m),n_(I)||s_(L,r,A,ce))}),$s(I,[L,ce])},onEnterCancelled(L){b(L,!1,void 0,!0),$s(v,[L])},onAppearCancelled(L){b(L,!0,void 0,!0),$s(T,[L])},onLeaveCancelled(L){S(L),$s(D,[L])}})}function mP(t){if(t==null)return null;if(Fe(t))return[zf(t.enter),zf(t.leave)];{const e=zf(t);return[e,e]}}function zf(t){return _E(t)}function _r(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[La]||(t[La]=new Set)).add(e)}function js(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[La];n&&(n.delete(e),n.size||(t[La]=void 0))}function r_(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let gP=0;function s_(t,e,n,r){const s=t._endId=++gP,i=()=>{s===t._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=_P(t,e);if(!o)return r();const l=o+"end";let f=0;const h=()=>{t.removeEventListener(l,d),i()},d=m=>{m.target===t&&++f>=c&&h()};setTimeout(()=>{f<c&&h()},a+1),t.addEventListener(l,d)}function _P(t,e){const n=window.getComputedStyle(t),r=y=>(n[y]||"").split(", "),s=r(`${Xr}Delay`),i=r(`${Xr}Duration`),o=i_(s,i),a=r(`${zo}Delay`),c=r(`${zo}Duration`),l=i_(a,c);let f=null,h=0,d=0;e===Xr?o>0&&(f=Xr,h=o,d=i.length):e===zo?l>0&&(f=zo,h=l,d=c.length):(h=Math.max(o,l),f=h>0?o>l?Xr:zo:null,d=f?f===Xr?i.length:c.length:0);const m=f===Xr&&/\b(?:transform|all)(?:,|$)/.test(r(`${Xr}Property`).toString());return{type:f,timeout:h,propCount:d,hasTransform:m}}function i_(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>o_(n)+o_(t[r])))}function o_(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function a_(t){return(t?t.ownerDocument:document).body.offsetHeight}function yP(t,e,n){const r=t[La];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const kl=Symbol("_vod"),Uw=Symbol("_vsh"),ij={name:"show",beforeMount(t,{value:e},{transition:n}){t[kl]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Qo(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Qo(t,!0),r.enter(t)):r.leave(t,()=>{Qo(t,!1)}):Qo(t,e))},beforeUnmount(t,{value:e}){Qo(t,e)}};function Qo(t,e){t.style.display=e?t[kl]:"none",t[Uw]=!e}const vP=Symbol(""),EP=/(?:^|;)\s*display\s*:/;function wP(t,e,n){const r=t.style,s=ze(n);let i=!1;if(n&&!s){if(e)if(ze(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&aa(r,a,"")}else for(const o in e)n[o]==null&&aa(r,o,"");for(const o in n){o==="display"&&(i=!0);const a=n[o];a!=null?bP(t,o,!ze(e)&&e?e[o]:void 0,a)||aa(r,o,a):aa(r,o,"")}}else if(s){if(e!==n){const o=r[vP];o&&(n+=";"+o),r.cssText=n,i=EP.test(n)}}else e&&t.removeAttribute("style");kl in t&&(t[kl]=i?r.display:"",t[Uw]&&(r.display="none"))}const c_=/\s*!important$/;function aa(t,e,n){if(de(n))n.forEach(r=>aa(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=TP(t,e);c_.test(n)?t.setProperty(As(r),n.replace(c_,""),"important"):t[r]=n}}const l_=["Webkit","Moz","ms"],Qf={};function TP(t,e){const n=Qf[e];if(n)return n;let r=rn(e);if(r!=="filter"&&r in t)return Qf[e]=r;r=wu(r);for(let s=0;s<l_.length;s++){const i=l_[s]+r;if(i in t)return Qf[e]=i}return e}function bP(t,e,n,r){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&ze(r)&&n===r}const u_="http://www.w3.org/1999/xlink";function f_(t,e,n,r,s,i=ES(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(u_,e.slice(6,e.length)):t.setAttributeNS(u_,e,n):n==null||i&&!yE(n)?t.removeAttribute(e):t.setAttribute(e,i?"":En(n)?String(n):n)}function h_(t,e,n,r,s){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?xw(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?t.getAttribute("value")||"":t.value,c=n==null?t.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in t))&&(t.value=c),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=yE(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(s||e)}function Qs(t,e,n,r){t.addEventListener(e,n,r)}function IP(t,e,n,r){t.removeEventListener(e,n,r)}const d_=Symbol("_vei");function AP(t,e,n,r,s=null){const i=t[d_]||(t[d_]={}),o=i[e];if(r&&o)o.value=r;else{const[a,c]=RP(e);
4if(r){const l=i[e]=PP(r,s);Qs(t,a,l,c)}else o&&(IP(t,a,o,c),i[e]=void 0)}}const p_=/(?:Once|Passive|Capture)$/;function RP(t){let e;if(p_.test(t)){e={};let r;for(;r=t.match(p_);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):As(t.slice(2)),e]}let Yf=0;const SP=Promise.resolve(),CP=()=>Yf||(SP.then(()=>Yf=0),Yf=Date.now());function PP(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$n(kP(r,n.value),e,5,[r])};return n.value=t,n.attached=CP(),n}function kP(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const m_=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,OP=(t,e,n,r,s,i)=>{const o=s==="svg";e==="class"?yP(t,r,o):e==="style"?wP(t,n,r):Qa(e)?_u(e)||AP(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):LP(t,e,r,o))?(h_(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&f_(t,e,r,o,i,e!=="value")):t._isVueCE&&(DP(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!ze(r)))?h_(t,rn(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),f_(t,e,r,o))};function LP(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&m_(e)&&me(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return m_(e)&&ze(n)?!1:e in t}function DP(t,e){const n=t._def.props;if(!n)return!1;const r=rn(e);return Array.isArray(n)?n.some(s=>rn(s)===r):Object.keys(n).some(s=>rn(s)===r)}const Ol=t=>{const e=t.props["onUpdate:modelValue"]||!1;return de(e)?n=>$i(e,n):e};function NP(t){t.target.composing=!0}function g_(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Gi=Symbol("_assign");function __(t,e,n){return e&&(t=t.trim()),n&&(t=Tu(t)),t}const oj={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t[Gi]=Ol(s);const i=r||s.props&&s.props.type==="number";Qs(t,e?"change":"input",o=>{o.target.composing||t[Gi](__(t.value,n,i))}),(n||i)&&Qs(t,"change",()=>{t.value=__(t.value,n,i)}),e||(Qs(t,"compositionstart",NP),Qs(t,"compositionend",g_),Qs(t,"change",g_))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(t[Gi]=Ol(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Tu(t.value):t.value,c=e??"";if(a===c)return;const l=t.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===t&&t.type!=="range"&&(r&&e===n||s&&t.value.trim()===c)||(t.value=c)}},aj={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=yu(e);Qs(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Tu(Ll(o)):Ll(o));t[Gi](t.multiple?s?new Set(i):i:i[0]),t._assigning=!0,jn(()=>{t._assigning=!1})}),t[Gi]=Ol(r)},mounted(t,{value:e}){y_(t,e)},beforeUpdate(t,e,n){t[Gi]=Ol(n)},updated(t,{value:e}){t._assigning||y_(t,e)}};function y_(t,e){const n=t.multiple,r=de(e);if(!(n&&!r&&!yu(e))){for(let s=0,i=t.options.length;s<i;s++){const o=t.options[s],a=Ll(o);if(n)if(r){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(l=>String(l)===String(a)):o.selected=TS(e,a)>-1}else o.selected=e.has(a);else if(Ya(Ll(o),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ll(t){return"_value"in t?t._value:t.value}const MP=["ctrl","shift","alt","meta"],xP={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>MP.some(n=>t[`${n}Key`]&&!e.includes(n))},cj=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<e.length;o++){const a=xP[e[o]];if(a&&a(s,e))return}return t(s,...i)}))},VP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},lj=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=As(s.key);if(e.some(o=>o===i||VP[o]===i))return t(s)}))},$w=kt({patchProp:OP},fP);let va,v_=!1;function FP(){return va||(va=qC($w))}function UP(){return va=v_?va:WC($w),v_=!0,va}const $P=((...t)=>{const e=FP().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=Bw(r);if(!s)return;const i=e._component;!me(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,jw(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e}),jP=((...t)=>{const e=UP().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=Bw(r);if(s)return n(s,!0,jw(s))},e});function jw(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Bw(t){return ze(t)?document.querySelector(t):t}const BP=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,HP=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,qP=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function WP(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){KP(t);return}return e}function KP(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function GP(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!qP.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(BP.test(t)||HP.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,WP)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const Hw=/#/g,qw=/&/g,Ww=/\//g,zP=/=/g,QP=/\?/g,Vu=/\+/g,YP=/%5e/gi,JP=/%60/gi,XP=/%7c/gi,ZP=/%20/gi,ek=/%2f/gi,tk=/%252f/gi;function Kw(t){return encodeURI(""+t).replace(XP,"|")}function qh(t){return Kw(typeof t=="string"?t:JSON.stringify(t)).replace(Vu,"%2B").replace(ZP,"+").replace(Hw,"%23").replace(qw,"%26").replace(JP,"`").replace(YP,"^").replace(Ww,"%2F")}function Jf(t){return qh(t).replace(zP,"%3D")}function Gw(t){return Kw(t).replace(Hw,"%23").replace(QP,"%3F").replace(tk,"%2F").replace(qw,"%26").replace(Vu,"%2B")}function uj(t){return Gw(t).replace(Ww,"%2F")}function ai(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function nk(t){return ai(t.replace(ek,"%252F"))}function rk(t){return ai(t.replace(Vu," "))}function sk(t){return ai(t.replace(Vu," "))}function Fu(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=rk(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=sk(r[2]||"");e[s]===void 0?e[s]=i:Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]}return e}function ik(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Jf(t)}=${qh(n)}`).join("&"):`${Jf(t)}=${qh(e)}`:Jf(t)}function ok(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>
4ik(e,t[e])).filter(Boolean).join("&")}const ak=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ck=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lk=/^([/\\]\s*){2,}[^/\\]/,uk=/^[\s\0]*(blob|data|javascript|vbscript):$/i,fk=/\/$|\/\?|\/#/,hk=/^\.?\//;function qn(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?ak.test(t):ck.test(t)||(e.acceptRelative?lk.test(t):!1)}function dk(t){return!!t&&uk.test(t)}function Wh(t="",e){return e?fk.test(t):t.endsWith("/")}function io(t="",e){if(!e)return(Wh(t)?t.slice(0,-1):t)||"/";if(!Wh(t,!0))return t||"/";let n=t,r="";const s=t.indexOf("#");s!==-1&&(n=t.slice(0,s),r=t.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Dl(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Wh(t,!0))return t||"/";let n=t,r="";const s=t.indexOf("#");if(s!==-1&&(n=t.slice(0,s),r=t.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function pk(t=""){return t.startsWith("/")}function E_(t=""){return pk(t)?t:"/"+t}function mk(t,e){if(zw(e)||qn(t))return t;const n=io(e);if(t.startsWith(n)){const r=t[n.length];if(!r||r==="/"||r==="?")return t}return ci(n,t)}function w_(t,e){if(zw(e))return t;const n=io(e);if(!t.startsWith(n))return t;const r=t[n.length];return r&&r!=="/"&&r!=="?"?t:"/"+t.slice(n.length).replace(/^\/+/,"")}function Uu(t,e){const n=Ep(t),r={...Fu(n.search),...e};return n.search=ok(r),yk(n)}function zw(t){return!t||t==="/"}function gk(t){return t&&t!=="/"}function ci(t,...e){let n=t||"";for(const r of e.filter(s=>gk(s)))if(n){const s=r.replace(hk,"");n=Dl(n)+s}else n=r;return n}function Qw(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,c]of o.split(e).entries())if(!(!c||c===".")){if(c===".."){if(r.length===1&&qn(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+c;continue}r.push(c),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function Yw(t,e){return ai(io(t))===ai(io(e))}function _k(t,e,n={}){return n.trailingSlash||(t=Dl(t),e=Dl(e)),n.leadingSlash||(t=E_(t),e=E_(e)),n.encoding||(t=ai(t),e=ai(e)),t===e}const Jw=Symbol.for("ufo:protocolRelative");function Ep(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,d=""]=n;return{protocol:h.toLowerCase(),pathname:d,href:h+d,auth:"",host:"",search:"",hash:""}}if(!qn(t,{acceptRelative:!0}))return Kh(t);const[,r="",s,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:f}=Kh(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:c,search:l,hash:f,[Jw]:!r}}function Kh(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function yk(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",s=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[Jw]?(t.protocol||"")+"//":"")+s+i+e+n+r}class vk extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Ek(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${s}: ${i}${e?` ${e}`:""}`,a=new vk(o,t.error?{cause:t.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return t[c]}});for(const[c,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return t.response&&t.response[l]}});return a}const wk=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function T_(t="GET"){return wk.has(t.toUpperCase())}function Tk(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const bk=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ik=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ak(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return Ik.test(e)?"json":e==="text/event-stream"?"stream":bk.has(e)||e.startsWith("text/")?"text":"blob"}function Rk(t,e,n,r){const s=Sk(e?.headers??t?.headers,n?.headers,r);let i;return(n?.query||n?.params||e?.params||e?.query)&&(i={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:i,params:i,headers:s}}function Sk(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[s,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(s,i);return r}async function Fc(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const Ck=new Set([408,409,425,429,500,502,503,504]),Pk=new Set([101,204,205,304]);function Xw(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=T_(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):Ck.has(h))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(m=>setTimeout(m,d)),i(a.request,{...a.options,retry:f-1})}}const l=Ek(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,i),l}const i=async function(c,l={}){const f={request:c,options:Rk(c,l,t.defaults,n),response:void 0,error:void 0};if(f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&(await Fc(f,f.options.onRequest),f.options.headers instanceof n||(f.options.headers=new n(f.o
4ptions.headers||{}))),typeof f.request=="string"&&(f.options.baseURL&&(f.request=mk(f.request,f.options.baseURL)),f.options.query&&(f.request=Uu(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&T_(f.options.method))if(Tk(f.options.body)){const m=f.options.headers.get("content-type");typeof f.options.body!="string"&&(f.options.body=m==="application/x-www-form-urlencoded"?new URLSearchParams(f.options.body).toString():JSON.stringify(f.options.body)),m||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")}else("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half"));let h;if(!f.options.signal&&f.options.timeout){const m=new r;h=setTimeout(()=>{const y=new Error("[TimeoutError]: The operation was aborted due to timeout");y.name="TimeoutError",y.code=23,m.abort(y)},f.options.timeout),f.options.signal=m.signal}try{f.response=await e(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await Fc(f,f.options.onRequestError),await s(f)}finally{h&&clearTimeout(h)}if((f.response.body||f.response._bodyInit)&&!Pk.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||Ak(f.response.headers.get("content-type")||"");switch(m){case"json":{const y=await f.response.text(),_=f.options.parseResponse||GP;f.response._data=_(y);break}case"stream":{f.response._data=f.response.body||f.response._bodyInit;break}default:f.response._data=await f.response[m]()}}return f.options.onResponse&&await Fc(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await Fc(f,f.options.onResponseError),await s(f)):f.response},o=async function(c,l){return(await i(c,l))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={},c={})=>Xw({...t,...c,defaults:{...t.defaults,...c.defaults,...a}}),o}const Nl=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),kk=Nl.fetch?(...t)=>Nl.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ok=Nl.Headers,Lk=Nl.AbortController,Dk=Xw({fetch:kk,Headers:Ok,AbortController:Lk}),Nk=Dk,Mk=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,wp=()=>Mk().app,xk=()=>wp().baseURL,Vk=()=>wp().buildAssetsDir,Tp=(...t)=>Qw(Zw(),Vk(),...t),Zw=(...t)=>{const e=wp(),n=e.cdnURL||e.baseURL;return t.length?Qw(n,...t):n};globalThis.__buildAssetsURL=Tp,globalThis.__publicAssetsURL=Zw;globalThis.$fetch||(globalThis.$fetch=Nk.create({baseURL:xk()}));"global"in globalThis||(globalThis.global=globalThis);function Gh(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Gh(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const eT=(()=>{if(console.createTask)return console.createTask;const t={run:e=>e()};return()=>t})();function tT(t,e,n,r){for(let s=n;s<t.length;s+=1)try{const i=r?r.run(()=>t[s](...e)):t[s](...e);if(i&&typeof i.then=="function")return Promise.resolve(i).then(()=>tT(t,e,s+1,r))}catch(i){return Promise.reject(i)}}function Fk(t,e,n){if(t.length>0)return tT(t,e,0,eT(n))}function Uk(t,e,n){if(t.length>0){const r=eT(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}}function Xf(t,e){for(const n of[...t])n(e)}var $k=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,e,n={}){if(!t||typeof e!="function")return()=>{};const r=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,e(...s));return n=this.hook(t,r),n}removeHook(t,e){const n=this._hooks[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[t]=void 0)}}clearHook(t){this._hooks[t]=void 0}deprecateHook(t,e){this._deprecatedHooks[t]=typeof e=="string"?{to:e}:e;const n=this._hooks[t]||[];this._hooks[t]=void 0;for(const r of n)this.hook(t,r)}deprecateHooks(t){for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=Gh(t),n=Object.keys(e).map(r=>this.hook(r,e[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(t){const e=Gh(t);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){this._hooks={}}callHook(t,...e){return this.callHookWith(Fk,t,e)}callHookParallel(t,...e){return this.callHookWith(Uk,t,e)}callHookWith(t,e,n){const r=this._before||this._after?{name:e,args:n,context:{}}:void 0;this._before&&Xf(this._before,r);const s=t(this._hooks[e]?[...this._hooks[e]]:[],n,e);return s instanceof Promise?s.finally(()=>{this._after&&r&&Xf(this._after,r)}):(this._after&&r&&Xf(this._after,r),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const e=this._before.indexOf(t);e!==-1&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const e=this._after.indexOf(t);e!==-1&&this._after.splice(e,1)}}}};function nT(){return new $k}function jk(t={}){let e,n=!1;const r=o=>{if(e&&e!==o)throw new Error("Context conflict")};let s;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>
4{if(s){const o=s.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{r(o),e=o;try{return s?s.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const c=()=>{e=o},l=()=>e===o?c:void 0;zh.add(l);try{const f=s?s.run(o,a):a();return n||(e=void 0),await f}finally{zh.delete(l)}}}}function Bk(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=jk({...t,...r})),e[n]}}}const Ml=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},b_="__unctx__",Hk=Ml[b_]||(Ml[b_]=Bk()),qk=(t,e={})=>Hk.get(t,e),I_="__unctx_async_handlers__",zh=Ml[I_]||(Ml[I_]=new Set);function us(t){const e=[];for(const s of zh){const i=s();i&&e.push(i)}const n=()=>{for(const s of e)s()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const A_=!1,R_=!1,Wk=!1,S_={id:"__nuxt-loader"},Kk={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Gk={deep:!1},zk={},Qk="#__nuxt",rT="nuxt-app",C_=36e5,Yk="vite:preloadError";function sT(t=rT){return qk(t,{asyncContext:!1})}const Jk="__nuxt_plugin";function Xk(t){let e=0;const n={_id:t.id||rT||"nuxt-app",_scope:Ru(),provide:void 0,versions:{get nuxt(){return"4.4.5"},get vue(){return n.vueApp.version}},payload:Ln({...t.ssrContext?.payload||{},data:Ln({}),state:Pn({}),once:new Set,_errors:Ln({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!yo()?n._scope.run(()=>P_(n,s)):P_(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Ln({}),_state:Ln({}),_payloadRevivers:{},...t};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=nT(),n.hook=n.hooks.hook;{const s=n.hooks.callHook;n.hooks.callHook=(i,...o)=>Promise.resolve().then(()=>s(i,...o))}n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Uc(n,o,i),Uc(n.vueApp.config.globalProperties,o,i)},Uc(n.vueApp,"$nuxt",n),Uc(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Yk,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=be;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Zk(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function e1(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const r in n)t.provide(r,n[r])}}async function t1(t,e){const n=new Set,r=[],s=[];let i,o=0;async function a(c){const l=c.dependsOn?.filter(f=>e.some(h=>h._name===f)&&!n.has(f))??[];if(l.length>0)r.push([new Set(l),c]);else{const f=e1(t,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([h,d])=>{h.has(c._name)&&(h.delete(c._name),h.size===0&&(o++,await a(d)))})))}).catch(h=>{if(!c.parallel&&!t.payload.error)throw h;i||=h});c.parallel?s.push(f):await f}}for(const c of e)Zk(t,c);for(const c of e)await a(c);if(await Promise.all(s),o)for(let c=0;c<o;c++)await Promise.all(s);if(i)throw t.payload.error||i}function gt(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[Jk]:!0,_name:e})}const n1=gt;function P_(t,e,n){const r=()=>e();return sT(t._id).set(t),t.vueApp.runWithContext(r)}function r1(t){let e;return Lu()&&(e=wn()?.appContext.app.$nuxt),e||=sT(t).tryUse(),e||null}function be(t){const e=r1(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function Ss(t){return be().$config}function Uc(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function Zf(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Qh(t,e,n=".",r){if(!Zf(e))return Qh(t,{},n,r);const s={...e};for(const i of Object.keys(t)){if(i==="__proto__"||i==="constructor")continue;const o=t[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Zf(o)&&Zf(s[i])?s[i]=Qh(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function bp(t){return(...e)=>e.reduce((n,r)=>Qh(n,r,"",t),{})}const iT=bp(),s1=bp((t,e,n)=>{if(t[e]!==void 0&&typeof n=="function")return t[e]=n(t[e]),!0});function i1(t,e){try{return e in t}catch{return!1}}
4class k_ extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,n={}){super(e,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:Yh(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=oT(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function o1(t){if(typeof t=="string")return new k_(t);if(a1(t))return t;const e=new k_(t.message??t.statusMessage??"",{cause:t.cause||t});if(i1(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=Yh(t.statusCode,e.statusCode):t.status&&(e.statusCode=Yh(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;oT(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function a1(t){return t?.constructor?.__h3_error__===!0}const c1=/[^\u0009\u0020-\u007E]/g;function oT(t=""){return t.replace(c1,"")}function Yh(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const aT=Symbol("layout-meta"),li=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Ut=()=>be()?.$router,ec=()=>Lu()?It(li,be()._route):be()._route;function fj(t){return t}const l1=(t,e,n={})=>{const r=be(),s=n.global||typeof t!="string",i=e;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",t);return}s?r._middleware.global.push(i):r._middleware.named[t]=i},u1=()=>{try{if(be()._processingMiddleware)return!0}catch{return!1}return!1},Jh=(t,e)=>{t||="/";const n=typeof t=="string"?t:"path"in t?Xh(t):Ut().resolve(t).href;if(e?.open){const{target:l="_blank",windowFeatures:f={}}=e.open,h=[];for(const[d,m]of Object.entries(f))m!==void 0&&h.push(`${d.toLowerCase()}=${m}`);return open(n,l,h.join(", ")),Promise.resolve()}const r=qn(n,{acceptRelative:!0}),s=e?.external||r;if(s){if(!e?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&dk(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=u1();if(!s&&i){if(e?.replace){if(typeof t=="string"){const{pathname:l,search:f,hash:h}=Ep(t);return{path:l,...f&&{query:Fu(f)},...h&&{hash:h},replace:!0}}return{...t,replace:!0}}return t}const o=Ut(),a=be();if(s)return a._scope.stop(),e?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const c=typeof t=="string"?cT(t):t;return e?.replace?o.replace(c):o.push(c)};function Xh(t){return Uu(t.path||"",t.query||{})+(t.hash||"")}function cT(t){const e=Ep(t);return Gw(nk(e.pathname))+e.search+e.hash}const lT="__nuxt_error",To=()=>lp(be().payload,"error"),Ws=t=>{const e=fs(t);try{const n=To();be().hooks.callHook("app:error",e),n.value||=e}catch{throw e}return e},xl=async(t={})=>{const e=be(),n=To();e.callHook("app:error:cleared",t),t.redirect&&await Ut().replace(t.redirect),n.value=void 0},uT=t=>!!t&&typeof t=="object"&&lT in t,fs=t=>{typeof t!="string"&&t.statusText&&(t.message??=t.statusText);const e=o1(t);return Object.defineProperty(e,lT,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(e,"status",{get:()=>e.statusCode,configurable:!0}),Object.defineProperty(e,"statusText",{get:()=>e.statusMessage,configurable:!0}),e};const f1=Symbol();var O_;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(O_||(O_={}));function h1(){const t=Ru(!0),e=t.run(()=>nt({}));let n=[],r=[];const s=FE({install(i){s._a=i,i.provide(f1,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}function d1(t){return Uint8Array.fromBase64(t).buffer}function p1(t){return Uint8Array.from(Buffer.from(t,"base64")).buffer}function m1(t){const e=atob(t),n=e.length,r=new Uint8Array(n);for(let s=0;s<n;s++)r[s]=e.charCodeAt(s);return r.buffer}const g1=typeof Uint8Array.fromBase64=="function",_1=typeof process=="object"&&process.versions?.n
4ode!==void 0,y1=g1?d1:_1?p1:m1,v1=-1,E1=-2,w1=-3,T1=-4,b1=-5,I1=-6,A1=-7;function R1(t,e){return S1(JSON.parse(t),e)}function S1(t,e){if(typeof t=="number")return i(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);let s=null;function i(o,a=!1){if(o===v1)return;if(o===w1)return NaN;if(o===T1)return 1/0;if(o===b1)return-1/0;if(o===I1)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const c=n[o];if(!c||typeof c!="object")r[o]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0],f=e&&Object.hasOwn(e,l)?e[l]:void 0;if(f){let h=c[1];if(typeof h!="number"&&(h=n.push(c[1])-1),s??=new Set,s.has(h))throw new Error("Invalid circular reference");return s.add(h),r[o]=f(i(h)),s.delete(h),r[o]}switch(l){case"Date":r[o]=new Date(c[1]);break;case"Set":const h=new Set;r[o]=h;for(let y=1;y<c.length;y+=1)h.add(i(c[y]));break;case"Map":const d=new Map;r[o]=d;for(let y=1;y<c.length;y+=2)d.set(i(c[y]),i(c[y+1]));break;case"RegExp":r[o]=new RegExp(c[1],c[2]);break;case"Object":{const y=c[1];if(typeof n[y]=="object"&&n[y][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(i(y));break}case"BigInt":r[o]=BigInt(c[1]);break;case"null":const m=Object.create(null);r[o]=m;for(let y=1;y<c.length;y+=2){if(c[y]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");m[c[y]]=i(c[y+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const y=globalThis[l],_=i(c[1]);r[o]=c[2]!==void 0?new y(_,c[2],c[3]):new y(_);break}case"ArrayBuffer":{const y=c[1];if(typeof y!="string")throw new Error("Invalid ArrayBuffer encoding");const _=y1(y);r[o]=_;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const y=l.slice(9);r[o]=Temporal[y].from(c[1]);break}case"URL":{const y=new URL(c[1]);r[o]=y;break}case"URLSearchParams":{const y=new URLSearchParams(c[1]);r[o]=y;break}default:throw new Error(`Unknown type ${l}`)}}else if(c[0]===A1){const l=c[1];if(!Number.isInteger(l)||l<0)throw new Error("Invalid input");const f=new Array(l);r[o]=f;for(let h=2;h<c.length;h+=2){const d=c[h];if(!Number.isInteger(d)||d<0||d>=l)throw new Error("Invalid input");f[d]=i(c[h+1])}}else{const l=new Array(c.length);r[o]=l;for(let f=0;f<c.length;f+=1){const h=c[f];h!==E1&&(l[f]=i(h))}}else{const l={};r[o]=l;for(const f of Object.keys(c)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=c[f];l[f]=i(h)}}return r[o]}return i(0)}const C1=new Set(["link","style","script","noscript"]),P1=new Set(["title","titleTemplate","script","style","noscript"]),Zh=new Set(["base","meta","link","style","script","noscript"]),k1=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),O1=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),L1=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),D1=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Ip=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Da={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},N1={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},fT={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>`${Sr(t)}=${e}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:t,value:e})=>t==="seconds"?`${e}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>typeof e=="boolean"?Sr(t):`${Sr(t)}:${e}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:t,value:e})=>`${Sr(t)} ${e}`}},charset:{}};function Sr(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=e.indexOf("-");return n===-1?e:Da.META.has(e.slice(0,n))||Da.OG.has(e.slice(0,n))?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function hT(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>String(n)!=="false"&&e))}function ed(t){return Array.isArray(t)?t.map(ed):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[Sr(e),ed(n)]))}function dT(t,e={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:s,resolve:i}=e;return Object.entries(t).map(([o,a])=>{if(i){const l=i({key:o,value:a});if(l!==void 0)return l}const c=typeof a=="object"?dT(a,e):typeof a=="number"?a.toString():typeof a=="str
4ing"&&s?`${s}${a.replace(new RegExp(s,"g"),`\\${s}`)}${s}`:a;return`${o}${r}${c}`}).join(n)}function L_(t,e){const n=hT(e),r=Sr(t),s=pT(r);if(!Ip.has(r))return[{[s]:r,...n}];const i=Object.fromEntries(Object.entries(n).map(([o,a])=>[`${t}${o==="url"?"":`${o[0].toUpperCase()}${o.slice(1)}`}`,a]));return Vl(i||{}).sort((o,a)=>(o[s]?.length||0)-(a[s]?.length||0))}function pT(t){if(fT[t]?.metaKey==="http-equiv"||Da.HTTP_EQUIV.has(t))return"http-equiv";const e=Sr(t),n=e.indexOf(":");return n===-1?"name":Da.OG.has(e.slice(0,n))?"property":"name"}function M1(t){return N1[t]||Sr(t)}function x1(t,e){return e==="refresh"?`${t.seconds};url=${t.url}`:dT(ed(t),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...fT[e]?.unpack})}function Vl(t){const e=[],n={};for(const[s,i]of Object.entries(t)){if(Array.isArray(i)){if(s==="themeColor"){i.forEach(o=>{typeof o=="object"&&o!==null&&e.push({name:"theme-color",...o})});continue}for(const o of i)if(typeof o=="object"&&o!==null){const a=[],c=[];for(const[l,f]of Object.entries(o)){const h=`${s}${l==="url"?"":`:${l}`}`,d=Vl({[h]:f});(l==="url"?a:c).push(...d)}e.push(...a,...c)}else e.push(...typeof o=="string"?Vl({[s]:o}):L_(s,o));continue}if(typeof i=="object"&&i)if(Da.MEDIA.has(s)){const o=s.startsWith("twitter")?"twitter":"og",a=s.replace(/^(og|twitter)/,"").toLowerCase(),c=o==="twitter"?"name":"property";i.url&&e.push({[c]:`${o}:${a}`,content:i.url}),i.secureUrl&&e.push({[c]:`${o}:${a}:secure_url`,content:i.secureUrl});for(const[l,f]of Object.entries(i))l!=="url"&&l!=="secureUrl"&&e.push({[c]:`${o}:${a}:${l}`,content:f})}else Ip.has(Sr(s))?e.push(...L_(s,i)):n[s]=hT(i);else n[s]=i}const r=Object.entries(n).map(([s,i])=>{if(s==="charset")return{charset:i===null?"_null":i};const o=pT(s),a=M1(s),c=i===null?"_null":typeof i=="object"?x1(i,s):typeof i=="number"?i.toString():i;return o==="http-equiv"?{"http-equiv":a,content:c}:{[o]:a,content:c}});return[...e,...r].map(s=>"content"in s&&s.content==="_null"?{...s,content:null}:s)}const V1={key:"flatMeta",hooks:{"entries:normalize":t=>{const e=[];t.tags=t.tags.map(n=>n.tag!=="_flatMeta"?n:(e.push(Vl(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...e)}}},F1=["name","property","http-equiv"],U1=new Set(["viewport","description","keywords","robots"]);function mT(t){const e=t.split(":");return e.length?Ip.has(e[1]):!1}function td(t){const{props:e,tag:n}=t;if(O1.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(n==="link"&&e.rel==="alternate"){if(e.hreflang)return`alternate:${e.hreflang}`;if(e.type)return`alternate:${e.type}:${e.href||""}`}if(e.charset)return"charset";if(t.tag==="meta"){for(const r of F1)if(e[r]!==void 0){const s=e[r],i=s&&typeof s=="string"&&s.includes(":"),o=s&&U1.has(s),c=!(i||o)&&t.key?`:key:${t.key}`:"";return`${n}:${s}${c}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(n==="link"&&e.rel==="alternate")return`alternate:${e.href||""}`;if(P1.has(n)){const r=t.textContent||t.innerHTML;if(r)return`${n}:content:${r}`}}function gT(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function Fl(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());const s=e?e(n,t):t;if(Array.isArray(s))return s.map(i=>Fl(i,e));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=Fl(s[o],e,o);return i}return s}function $1(t,e){const n=t==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const i=String(s).trim();if(i)if(t==="style"){const[o,...a]=i.split(":").map(c=>c?c.trim():"");o&&a.length&&n.set(o,a.join(":"))}else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(s=>r(s)):e&&typeof e=="object"&&Object.entries(e).forEach(([s,i])=>{i&&i!=="false"&&(t==="style"?n.set(String(s).trim(),String(i)):r(s))}),n}function _T(t,e){if(t.props=t.props||{},!e)return t;if(t.tag==="templateParams")return t.props=e,t;const n=Zh.has(t.tag)||t.tag==="htmlAttrs"||t.tag==="bodyAttrs";return Object.entries(e).forEach(([r,s])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(s===null){t.props[r]=null;return}if(r==="class"||r==="style"){t.props[r]=$1(r,s);return}if(L1.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof s=="object"){let l=e.type;if(e.type||(l="application/json"),!l?.endsWith("json")&&l!=="speculationrules")return;e.type=l,t.props.type=l,t[r]=JSON.stringify(s)}else t[r]=s;return}const i=r.startsWith("data-"),o=n&&!i?r.toLowerCase():r,a=String(s),c=t.tag==="meta"&&o==="content";a==="true"||a===""?t.props[o]=i||c?a:!0:!s&&i&&a==="false"?t.props[o]="false":s!==void 0&&(t.props[o]=s)}),t}function j1(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=_T({tag:t,props:{}},n);return r.key&&C1.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function B1(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(s,i)=>{for(let o=0;o<e.length;o++)i=e[o](s,i);return i};t=n(void 0,t);const r=[];return t=Fl(t,n),Object.entries(t||{}
4).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(j1(s,o))}),r.flat()}const D_=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,N_={base:-10,title:10},H1={critical:-8,high:-1,low:2},M_={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},q1=/@import/,Yo=t=>t===""||t===!0;function W1(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=H1[e.tagPriority]||0,s=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:M_;if(e.tag in N_)n=N_[e.tag];else if(e.tag==="meta"){const i=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;i&&(n=M_.meta[i])}else if(e.tag==="link"&&e.props.rel)n=s.link[e.props.rel];else if(e.tag==="script"){const i=String(e.props.type);Yo(e.props.async)?n=s.script.async:e.props.src&&!Yo(e.props.defer)&&!Yo(e.props.async)&&i!=="module"&&!i.endsWith("json")||e.innerHTML&&!i.endsWith("json")?n=s.script.sync:(Yo(e.props.defer)&&e.props.src&&!Yo(e.props.async)||i==="module")&&(n=s.script.defer)}else e.tag==="style"&&(n=e.innerHTML&&q1.test(e.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function x_(t,e){const n=typeof e=="function"?e(t):e,r=n.key||String(t.plugins.size+1);t.plugins.get(r)||(t.plugins.set(r,n),t.hooks.addHooks(n.hooks||{}))}function K1(t={}){const e=nT();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>x_(o,a),push(a,c){const l={...c||{}};delete l.head;const f=l._index??o._entryCount++,h={_i:f,input:a,options:l},d={_poll(m=!1){o.dirty=!0,!m&&i.add(f),e.callHook("entries:updated",o)},dispose(){r.delete(f)&&o.invalidate()},patch(m){(!l.mode||l.mode==="server"&&n||l.mode==="client"&&!n)&&(h.input=m,r.set(f,h),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await e.callHook("entries:resolve",a);i.size;){const d=i.values().next().value;i.delete(d);const m=r.get(d);if(m){const y={tags:B1(m.input,t.propResolvers||[]).map(_=>Object.assign(_,m.options)),entry:m};await e.callHook("entries:normalize",y),m._tags=y.tags.map((_,A)=>(_._w=W1(o,_),_._p=(m._i<<10)+A,_._d=td(_),_._d||(_._h=gT(_)),_))}}let c=!1;a.entries.flatMap(d=>(d._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(D_).reduce((d,m)=>{const y=m._d||m._h;if(!d.has(y))return d.set(y,m);const _=d.get(y);if((m?.tagDuplicateStrategy||(D1.has(m.tag)?"merge":null)||(m.key&&m.key===_.key?"merge":null))==="merge"){const w={..._.props};Object.entries(m.props).forEach(([R,v])=>w[R]=R==="style"?new Map([..._.props.style||new Map,...v]):R==="class"?new Set([..._.props.class||new Set,...v]):v),d.set(y,{...m,props:w})}else m._p>>10===_._p>>10&&m.tag==="meta"&&mT(y)?(d.set(y,Object.assign([...Array.isArray(_)?_:[_],m],m)),c=!0):(m._w===_._w?m._p>_._p:m?._w<_?._w)&&d.set(y,m);return d},a.tagMap);const l=a.tagMap.get("title"),f=a.tagMap.get("titleTemplate");if(o._title=l?.textContent,f){const d=f?.textContent;if(o._titleTemplate=d,d){let m=typeof d=="function"?d(l?.textContent):d;typeof m=="string"&&!o.plugins.has("template-params")&&(m=m.replace("%s",l?.textContent||"")),l?m===null?a.tagMap.delete("title"):a.tagMap.set("title",{...l,textContent:m}):(f.tag="title",f.textContent=m)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(D_)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const h=[];for(const d of a.tags){const{innerHTML:m,tag:y,props:_}=d;if(k1.has(y)&&!(Object.keys(_).length===0&&!d.innerHTML&&!d.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&m){if(String(_.type).endsWith("json")){const A=typeof m=="string"?m:JSON.stringify(m);d.innerHTML=A.replace(/</g,"\\u003C")}else typeof m=="string"&&(d.innerHTML=m.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));d._d=td(d)}h.push(d)}}return h},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,e.callHook("entries:updated",o)}};
4return(t?.plugins||[]).forEach(a=>x_(o,a)),o.hooks.callHook("init",o),t.init?.forEach(a=>a&&o.push(a)),o}const G1=(t,e)=>Xe(e)?tr(e):e,Ap="usehead";function z1(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(Ap,t)}}.install}function yT(){if(Lu()){const t=It(Ap);if(t)return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function vT(t,e={}){const n=e.head||yT();return n.ssr?n.push(t||{},e):Q1(n,t,e)}function Q1(t,e,n={}){const r=nt(!1);let s;return nC(()=>{const o=r.value?{}:Fl(e,G1);s?s.patch(o):s=t.push(o,n)}),wn()&&(Eo(()=>{s.dispose()}),pp(()=>{r.value=!0}),dp(()=>{r.value=!1})),s}function Y1(t={},e={}){(e.head||yT()).use(V1);const{title:r,titleTemplate:s,...i}=t;return vT({title:r,titleTemplate:s,_flatMeta:i},e)}function ET(t){const e=t||be();return e.ssrContext?.head||e.runWithContext(()=>{if(Lu()){const n=It(Ap);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function Rp(t,e={}){const n=e.head||ET(e.nuxt);return vT(t,{head:n,...e})}function J1(t,e={}){const n=e.head||ET(e.nuxt);return Y1(t,{head:n,...e})}const X1=(t,e)=>[],wT=t=>iT({},...X1().map(e=>e.data).reverse()),Z1=wT;let il;function eO(){let t;return t=$fetch(Tp(`builds/meta/${Ss().app.buildId}.json`),{responseType:"json"}),il=t,t.catch(e=>{il===t&&(il=void 0),console.error("[nuxt] Error fetching app manifest.",e)}),t}function TT(){return il||eO()}function bT(t){const e=typeof t=="string"?t:t.path;try{return Z1(e)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function V_(t,e={}){return null}async function tO(t){return null}let Bs=null;async function nO(){if(Bs)return Bs;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await rO(t.textContent||""),n=t.dataset.src?await tO(t.dataset.src):void 0;return Bs={...e,...n,...window.__NUXT__},Bs.config?.public&&(Bs.config.public=Pn(Bs.config.public)),Bs}async function rO(t){return await R1(t,be()._payloadRevivers)}function IT(t,e){be()._payloadRevivers[t]=e}const sO=n1(()=>{IT("skipHydrate",t=>{})});function F_(t){try{return JSON.parse(t)}catch{return t}}const iO=[["NuxtError",t=>fs(t)],["EmptyShallowRef",t=>Cn(t==="_"?void 0:t==="0n"?BigInt(0):F_(t))],["EmptyRef",t=>nt(t==="_"?void 0:t==="0n"?BigInt(0):F_(t))],["ShallowRef",t=>Cn(t)],["ShallowReactive",t=>Ln(t)],["Ref",t=>nt(t)],["Reactive",t=>Pn(t)]],oO=gt({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[r,s]of iO)IT(r,s);Object.assign(t.payload,([e,n]=us(()=>t.runWithContext(nO)),e=await e,n(),e)),delete window.__NUXT__}});async function Sp(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async s=>{const i=new Map,o=new Promise(m=>{t.resolveTags().then(y=>{m(y.map(_=>{const A=i.get(_._d)||0,w={tag:_,id:(A?`${_._d}:${A}`:_._d)||_._h,shouldRender:!0};return _._d&&mT(_._d)&&i.set(_._d,A+1),w}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const m of["body","head"]){const y=n[m]?.children;for(const _ of y){const A=_.tagName.toLowerCase();if(!Zh.has(A))continue;const w=_T({tag:A,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((R,v)=>(R[v]=_.getAttribute(v),R),{})||{}});if(w.key=_.getAttribute("data-hid")||void 0,w._d=td(w)||gT(w),a.elMap.has(w._d)){let R=1,v=w._d;for(;a.elMap.has(v);)v=`${w._d}:${R++}`;a.elMap.set(v,_)}else a.elMap.set(w._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(m,y,_){const A=`${m}:${y}`;a.sideEffects[A]=_,delete a.pendingSideEffects[A]}function l({id:m,$el:y,tag:_}){const A=_.tag.endsWith("Attrs");a.elMap.set(m,y),A||(_.textContent&&_.textContent!==y.textContent&&(y.textContent=_.textContent),_.innerHTML&&_.innerHTML!==y.innerHTML&&(y.innerHTML=_.innerHTML),c(m,"el",()=>{y?.remove(),a.elMap.delete(m)}));for(const w in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,w))continue;const R=_.props[w];if(w.startsWith("on")&&typeof R=="function"){const I=y?.dataset;if(I&&I[`${w}fired`]){const D=w.slice(0,-5);
4R.call(y,new Event(D.substring(2)))}y.getAttribute(`data-${w}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:y).addEventListener(w.substring(2),R.bind(y)),y.setAttribute(`data-${w}`,""));continue}const v=`attr:${w}`;if(w==="class"){if(!R)continue;for(const I of R)A&&c(m,`${v}:${I}`,()=>y.classList.remove(I)),!y.classList.contains(I)&&y.classList.add(I)}else if(w==="style"){if(!R)continue;for(const[I,D]of R)c(m,`${v}:${I}`,()=>{y.style.removeProperty(I)}),y.style.setProperty(I,D)}else R!==!1&&R!==null&&(y.getAttribute(w)!==R&&y.setAttribute(w,R===!0?"":String(R)),A&&c(m,v,()=>y.removeAttribute(w)))}}const f=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await o;for(const m of d){const{tag:y,shouldRender:_,id:A}=m;if(_){if(y.tag==="title"){n.title=y.textContent,c("title","",()=>n.title=a.title);continue}m.$el=m.$el||a.elMap.get(A),m.$el?l(m):Zh.has(y.tag)&&f.push(m)}}for(const m of f){const y=m.tag.tagPosition||"head";m.$el=n.createElement(m.tag.tag),l(m),h[y]=h[y]||n.createDocumentFragment(),h[y].appendChild(m.$el)}for(const m of d)await t.hooks.callHook("dom:renderTag",m,n,c);h.head&&n.head.appendChild(h.head),h.bodyOpen&&n.body.insertBefore(h.bodyOpen,n.body.firstChild),h.bodyClose&&n.body.appendChild(h.bodyClose);for(const m in a.pendingSideEffects)a.pendingSideEffects[m]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function aO(t={}){const e=t.domOptions?.render||Sp;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return K1({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function cO(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function lO(t={}){const e=aO({domOptions:{render:cO(()=>Sp(e),n=>setTimeout(n,0))},...t});return e.install=z1(e),e}const uO={disableDefaults:!0},fO=gt({name:"nuxt:head",enforce:"pre",setup(t){const e=lO(uO);t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await Sp(e)};e.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r);const s=e.push.bind(e);e.push=((i,o)=>{const a=s(i,o),c=a.dispose.bind(a);return a.dispose=()=>{const l=t["~transitionPromise"];l?l.then(c):c()},a})}}});const Pi=typeof document<"u";function AT(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function hO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&AT(t.default)}const Ue=Object.assign;function eh(t,e){const n={};for(const r in e){const s=e[r];n[r]=Bn(s)?s.map(t):t(s)}return n}const Ea=()=>{},Bn=Array.isArray;function U_(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}let lt=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const RT=Symbol("");lt.MATCHER_NOT_FOUND+"",lt.NAVIGATION_GUARD_REDIRECT+"",lt.NAVIGATION_ABORTED+"",lt.NAVIGATION_CANCELLED+"",lt.NAVIGATION_DUPLICATED+"";function oo(t,e){return Ue(new Error,{type:t,[RT]:!0},e)}function yr(t,e){return t instanceof Error&&RT in t&&(e==null||!!(t.type&e))}const dO=["params","query","hash"];function pO(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of dO)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}const ST=Symbol(""),$_=Symbol(""),Cp=Symbol(""),Pp=Symbol(""),nd=Symbol("");function CT(t){return It(Pp)}const PT=/#/g,mO=/&/g,gO=/\//g,_O=/=/g,yO=/\?/g,kT=/\+/g,vO=/%5B/g,EO=/%5D/g,OT=/%5E/g,wO=/%60/g,LT=/%7B/g,TO=/%7C/g,DT=/%7D/g,bO=/%20/g;function kp(t){return t==null?"":encodeURI(""+t).replace(TO,"|").replace(vO,"[").replace(EO,"]")}function IO(t){return kp(t).replace(LT,"{").replace(DT,"}").replace(OT,"^")}function rd(t){return kp(t).replace(kT,"%2B").replace(bO,"+").replace(PT,"%23").replace(mO,"%26").replace(wO,"`").replace(LT,"{").replace(DT,"}").replace(OT,"^")}function AO(t){return rd(t).replace(_O,"%3D")}function RO(t){return kp(t).replace(PT,"%23").replace(yO,"%3F")}function SO(t){return RO(t).replace(gO,"%2F")}function Ul(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const CO=/\/$/,PO=t=>t.replace(CO,"");function th(t,e,n="/"){let r,s={},i="",o="";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),s=t(i.slice(1))),a>=0&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=DO(r??e,n),{fullPath:r+i+o,path:r,query:s,hash:Ul(o)}}function kO(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function j_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function OO(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&ao(e.matched[r],n.matched[s])&&NT(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function ao(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function NT(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!LO(t[n],e[n]))return!1;return!0}function LO(t,e){return Bn(t)?B_(t,e):Bn(e)?B_(e,t):(t&&t.valueOf())===(e&&e.valueOf())}function B_(t,e){return Bn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function DO(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const In={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let sd=(function(t){return t.pop="pop",t.push="push",t})({}),nh=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function NO(t){if(!t)if(Pi){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),PO(t)}const MO=/^[^#]+#/;function xO(t,e){return t.replace(MO,"#")+e}function VO(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const $u=()=>({left:window.scrollX,top:window.scrollY});function FO(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=VO(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}
vendor: 17,910 bytes, line 4
4function H_(t,e){return(history.state?history.state.position-e:-1)+t}const id=new Map;function UO(t,e){id.set(t,e)}function $O(t){const e=id.get(t);return id.delete(t),e}function jO(t){return typeof t=="string"||t&&typeof t=="object"}function MT(t){return typeof t=="string"||typeof t=="symbol"}function BO(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(kT," "),i=s.indexOf("="),o=Ul(i<0?s:s.slice(0,i)),a=i<0?null:Ul(s.slice(i+1));if(o in e){let c=e[o];Bn(c)||(c=e[o]=[c]),c.push(a)}else e[o]=a}return e}function q_(t){let e="";for(let n in t){const r=t[n];if(n=AO(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Bn(r)?r.map(s=>s&&rd(s)):[r&&rd(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function HO(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Bn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}function Jo(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function qO(t,e,n){const r=t.value;if(!r)return;let s=r;const i=()=>{s[e].delete(n)};yi(i),pp(i),dp(()=>{const o=t.value;o&&(s=o),s[e].add(n)}),s[e].add(n)}function hj(t){qO(It(ST,{}),"leaveGuards",t)}function rs(t,e,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=d=>{d===!1?c(oo(lt.NAVIGATION_ABORTED,{from:n,to:e})):d instanceof Error?c(d):jO(d)?c(oo(lt.NAVIGATION_GUARD_REDIRECT,{from:e,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),a())},f=i(()=>t.call(r&&r.instances[s],e,n,l));let h=Promise.resolve(f);t.length<3&&(h=h.then(l)),h.catch(d=>c(d))})}function rh(t,e,n,r,s=i=>i()){const i=[];for(const o of t)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(AT(c)){const l=(c.__vccOpts||c)[e];l&&i.push(rs(l,n,r,o,a,s))}else{let l=c();i.push(()=>l.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const h=hO(f)?f.default:f;o.mods[a]=f,o.components[a]=h;const d=(h.__vccOpts||h)[e];return d&&rs(d,n,r,o,a,s)()}))}}return i}function WO(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const a=e.matched[o];a&&(t.matched.find(l=>ao(l,a))?r.push(a):n.push(a));const c=t.matched[o];c&&(e.matched.find(l=>ao(l,c))||s.push(c))}return[n,r,s]}let KO=()=>location.protocol+"//"+location.host;function xT(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let o=s.includes(t.slice(i))?t.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),j_(a,"")}return j_(n,t)+r+s}function GO(t,e,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const m=xT(t,location),y=n.value,_=e.value;let A=0;if(d){if(n.value=m,e.value=d,o&&o===y){o=null;return}A=_?d.position-_.position:0}else r(m);s.forEach(w=>{w(n.value,y,{delta:A,type:sd.pop,direction:A?A>0?nh.forward:nh.back:nh.unknown})})};function c(){o=n.value}function l(d){s.push(d);const m=()=>{const y=s.indexOf(d);y>-1&&s.splice(y,1)};return i.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Ue({},d.state,{scroll:$u()}),"")}}function h(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:c,listen:l,destroy:h}}function W_(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?$u():null}}function zO(t){const{history:e,location:n}=window,r={value:xT(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,l,f){const h=t.indexOf("#"),d=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+c:KO()+t+c;try{e[f?"replaceState":"pushState"](l,"",d),s.value=l}catch(m){console.error(m),n[f?"replace":"assign"](d)}}function o(c,l){i(c,Ue({},e.state,W_(s.value.back,c,s.value.forward,!0),l,{position:s.value.position}),!0),r.value=c}function a(c,l){const f=Ue({},s.value,e.state,{forward:c,scroll:$u()});i(f.current,f,!0),i(c,Ue({},W_(r.value,c,null),{position:f.position+1},l),!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function QO(t){t=NO(t);const e=zO(t),n=GO(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Ue({location:"",base:t,go:r,createHref:xO.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}let Ys=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var St=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(St||{});const YO={type:Ys.Static,value:""},JO=/[a-zA-Z0-9_]/;function XO(t){if(!t)return[[]];if(t==="/")return[[YO]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${n})/"${l}": ${m}`)}let n=St.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",f="";function h(){l&&(n===St.Static?i.push({type:Ys.Static,value:l}):n===St.Param||n===St.ParamRegExp||n===St.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ys.Param,value:l,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a<t.length;){if(c=t[a++],c==="\\"&&n!==St.ParamRegExp){r=n,n=St.EscapeNext;continue}switch(n){case St.Static:c==="/"?(l&&h(),o()):c===":"?(h(),n=St.Param):d();break;case St.EscapeNext:d(),n=r;break;case St.Param:c==="("?n=St.ParamRegExp:JO.test(c)?d():(h(),n=St.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case St.ParamRegExp:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=St.ParamRegExpEnd:f+=c;break;case St.ParamRegExpEnd:h(),n=St.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,f="";break;default:e("Unknown state");break}}return n===St.ParamRegExp&&e(`Unfinished custom RegExp for param "${l}"`),h(),o(),s}const K_="[^/]+?",ZO={sensitive:!1,strict:!1,start:!0,end:!0};var Zt=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(Zt||{});const eL=/[.+*?^${}()[\]/\\]/g;function tL(t,e){const n=Ue({},ZO,e),r=[];let s=n.start?"^":"";const i=[];for(const l of t){const f=l.length?[]:[Zt.Root];n.strict&&!l.length&&(s+="/");for(let h=0;h<l.length;h++){const d=l[h];let m=Zt.Segment+(n.sensitive?Zt.BonusCaseSensitive:0);if(d.type===Ys.Static)h||(s+="/"),s+=d.value.replace(eL,"\\$&"),m+=Zt.Static;else if(d.type===Ys.Param){const{value:y,repeatable:_,optional:A,regexp:w}=d;i.push({name:y,repeatable:_,optional:A});const R=w||K_;if(R!==K_){m+=Zt.BonusCustomRegExp;try{new RegExp(`(${R})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${y}" (${R}): `+I.message)}}let v=_?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;h||(v=A&&l.length<2?`(?:/${v})`:"/"+v),A&&(v+="?"),s+=v,m+=Zt.Dynamic,A&&(m+=Zt.BonusOptional),_&&(m+=Zt.BonusRepeatable),R===".*"&&(m+=Zt.BonusWildcard)}f.push(m)}r.push(f)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=Zt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(l){const f=l.match(o),h={};if(!f)return null;for(let d=1;d<f.length;d++){const m=f[d]||"",y=i[d-1];h[y.name]=m&&y.repeatable?m.split("/"):m}return h}function c(l){let f="",h=!1;for(const d of t){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const m of d)if(m.type===Ys.Static)f+=m.value;else if(m.type===Ys.Param){const{value:y,repeatable:_,optional:A}=m,w=y in l?l[y]:"";if(Bn(w)&&!_)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const R=Bn(w)?w.join("/"):w;if(!R)if(A)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${y}"`);f+=R}}return f||"/"}return{re:o,score:r,keys:i,parse:a,stringify:c}}function nL(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===Zt.Static+Zt.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===Zt.Static+Zt.Segment?1:-1:0}function VT(t,e){let n=0;const r=t.score,s=e.score;for(;n<r.length&&n<s.length;){const i=nL(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(G_(r))return 1;if(G_(s))return-1}return s.length-r.length}function G_(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const rL={strict:!1,end:!0,sensitive:!1};function sL(t,e,n){const r=tL(XO(t.path),n),s=Ue(r,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function iL(t,e){const n=[],r=new Map;e=U_(rL,e);function s(h){return r.get(h)}function i(h,d,m){const y=!m,_=Q_(h);_.aliasOf=m&&m.record;const A=U_(e,h),w=[_];if("alias"in h){const I=typeof h.alias=="string"?[h.alias]:h.alias;for(const D of I)w.push(Q_(Ue({},_,{components:m?m.record.components:_.components,path:D,aliasOf:m?m.record:_})))}let R,v;for(const I of w){const{path:D}=I;if(d&&D[0]!=="/"){const x=d.record.path,E=x[x.length-1]==="/"?"":"/";I.path=d.record.path+(D&&E+D)}if(R=sL(I,d,A),m?m.alias.push(R):(v=v||R,v!==R&&v.alias.push(R),y&&h.name&&!Y_(R)&&o(h.name)),FT(R)&&c(R),_.children){const x=_.children;for(let E=0;E<x.length;E++)i(x[E],R,m&&m.children[E])}m=m||R}return v?()=>{o(v)}:Ea}function o(h){if(MT(h)){const d=r.get(h);d&&(r.delete(h),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(h);d>-1&&(n.splice(d,1),h.record.name&&r.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function a(){return n}function c(h){const d=cL(h,n);n.splice(d,0,h),h.record.name&&!Y_(h)&&r.set(h.record.name,h)}function l(h,d){let m,y={},_,A;if("name"in h&&h.name){if(m=r.get(h.name),!m)throw oo(lt.MATCHER_NOT_FOUND,{location:h});A=m.record.name,y=Ue(z_(d.params,m.keys.filter(v=>!v.optional).concat(m.parent?m.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),h.params&&z_(h.params,m.keys.map(v=>v.name))),_=m.stringify(y)}else if(h.path!=null)_=h.path,m=n.find(v=>v.re.test(_)),m&&(y=m.parse(_),A=m.record.name);else{if(m=d.name?r.get(d.name):n.find(v=>v.re.test(d.path)),!m)throw oo(lt.MATCHER_NOT_FOUND,{location:h,currentLocation:d});A=m.record.name,y=Ue({},d.params,h.params),_=m.stringify(y)}const w=[];let R=m;for(;R;)w.unshift(R.record),R=R.parent;return{name:A,path:_,params:y,matched:w,meta:aL(w)}}t.forEach(h=>i(h));function f(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:o,clearRoutes:f,getRoutes:a,getRecordMatcher:s}}function z_(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Q_(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:oL(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function oL(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Y_(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function aL(t){return t.reduce((e,n)=>Ue(e,n.meta),{})}function cL(t,e){let n=0,r=e.length;for(;n!==r;){const i=n+r>>1;VT(t,e[i])<0?r=i:n=i+1}const s=lL(t);return s&&(r=e.lastIndexOf(s,r-1)),r}function lL(t){let e=t;for(;e=e.parent;)if(FT(e)&&VT(t,e)===0)return e}function FT({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function J_(t){const e=It(Cp),n=It(Pp),r=Ie(()=>{const c=Ee(t.to);return e.resolve(c)}),s=Ie(()=>{const{matched:c}=r.value,{length:l}=c,f=c[l-1],h=n.matched;if(!f||!h.length)return-1;const d=h.findIndex(ao.bind(null,f));if(d>-1)return d;const m=X_(c[l-2]);return l>1&&X_(f)===m&&h[h.length-1].path!==m?h.findIndex(ao.bind(null,c[l-2])):d}),i=Ie(()=>s.value>-1&&pL(n.params,r.value.params)),o=Ie(()=>s.value>-1&&s.value===n.matched.length-1&&NT(n.params,r.value.params));function a(c={}){if(dL(c)){const l=e[Ee(t.replace)?"replace":"push"](Ee(t.to)).catch(Ea);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:Ie(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function uL(t){return t.length===1?t[0]:t}const fL=jt({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:J_,setup(t,{slots:e}){const n=Pn(J_(t)),{options:r}=It(Cp),s=Ie(()=>({[Z_(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Z_(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&uL(e.default(n));return t.custom?i:tt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),hL=fL;function dL(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function pL(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Bn(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function X_(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Z_=(t,e,n)=>t??e??n,mL=jt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=It(nd),s=Ie(()=>t.route||r.value),i=It($_,0),o=Ie(()=>{let l=Ee(i);const{matched:f}=s.value;let h;for(;(h=f[l])&&!h.components;)l++;return l}),a=Ie(()=>s.value.matched[o.value]);Dr($_,Ie(()=>o.value+1)),Dr(ST,a),Dr(nd,s);const c=nt();return ht(()=>[c.value,a.value,t.name],([l,f,h],[d,m,y])=>{f&&(f.instances[h]=l,m&&m!==f&&l&&l===d&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),l&&f&&(!m||!ao(f,m)||!d)&&(f.enterCallbacks[h]||[]).forEach(_=>_(l))},{flush:"post"}),()=>{const l=s.value,f=t.name,h=a.value,d=h&&h.components[f];if(!d)return ey(n.default,{Component:d,route:l});const m=h.props[f],y=m?m===!0?l.params:typeof m=="function"?m(l):m:null,A=tt(d,Ue({},y,e,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return ey(n.default,{Component:A,route:l})||A}}});function ey(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const UT=mL;function gL(t){const e=iL(t.routes,t),n=t.parseQuery||BO,r=t.stringifyQuery||q_,s=t.history,i=Jo(),o=Jo(),a=Jo(),c=Cn(In);let l=In;Pi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=eh.bind(null,z=>""+z),h=eh.bind(null,SO),d=eh.bind(null,Ul);function m(z,se){let ee,le;return MT(z)?(ee=e.getRecordMatcher(z),le=se):le=z,e.addRoute(le,ee)}function y(z){const se=e.getRecordMatcher(z);se&&e.removeRoute(se)}function _(){return e.getRoutes().map(z=>z.record)}function A(z){return!!e.getRecordMatcher(z)}function w(z,se){if(se=Ue({},se||c.value),typeof z=="string"){const V=th(n,z,se.path),B=e.resolve({path:V.path},se),Q=s.createHref(V.fullPath);return Ue(V,B,{params:d(B.params),redirectedFrom:void 0,href:Q})}let ee;if(z.path!=null)ee=Ue({},z,{path:th(n,z.path,se.path).path});else{const V=Ue({},z.params);for(const B in V)V[B]==null&&delete V[B];ee=Ue({},z,{params:h(V)}),se.params=h(se.params)}const le=e.resolve(ee,se),Te=z.hash||"";le.params=f(d(le.params));const xe=kO(r,Ue({},z,{hash:IO(Te),path:le.path})),M=s.createHref(xe);return Ue({fullPath:xe,hash:Te,query:r===q_?HO(z.query):z.query||{}},le,{redirectedFrom:void 0,href:M})}function R(z){return typeof z=="string"?th(n,z,c.value.path):Ue({},z)}function v(z,se){if(l!==z)return oo(lt.NAVIGATION_CANCELLED,{from:se,to:z})}function I(z){return E(z)}function D(z){return I(Ue(R(z),{replace:!0}))}function x(z,se){const ee=z.matched[z.matched.length-1];if(ee&&ee.redirect){const{redirect:le}=ee;let Te=typeof le=="function"?le(z,se):le;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=R(Te):{path:Te},Te.params={}),Ue({query:z.query,hash:z.hash,params:Te.path!=null?{}:z.params},Te)}}function E(z,se){const ee=l=w(z),le=c.value,Te=z.state,xe=z.force,M=z.replace===!0,V=x(ee,le);if(V)return E(Ue(R(V),{state:typeof V=="object"?Ue({},Te,V.state):Te,force:xe,replace:M}),se||ee);const B=ee;B.redirectedFrom=se;let Q;return!xe&&OO(r,le,ee)&&(Q=oo(lt.NAVIGATION_DUPLICATED,{to:B,from:le}),Ot(le,le,!0,!1)),(Q?Promise.resolve(Q):S(B,le)).catch(G=>yr(G)?yr(G,lt.NAVIGATION_GUARD_REDIRECT)?G:zt(G):re(G,B,le)).then(G=>{if(G){if(yr(G,lt.NAVIGATION_GUARD_REDIRECT))return E(Ue({replace:M},R(G.to),{state:typeof G.to=="object"?Ue({},Te,G.to.state):Te,force:xe}),se||B)}else G=L(B,le,!0,M,Te);return O(B,le,G),G})}function T(z,se){const ee=v(z,se);
4return ee?Promise.reject(ee):Promise.resolve()}function b(z){const se=Qt.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(z):z()}function S(z,se){let ee;const[le,Te,xe]=WO(z,se);ee=rh(le.reverse(),"beforeRouteLeave",z,se);for(const V of le)V.leaveGuards.forEach(B=>{ee.push(rs(B,z,se))});const M=T.bind(null,z,se);return ee.push(M),_t(ee).then(()=>{ee=[];for(const V of i.list())ee.push(rs(V,z,se));return ee.push(M),_t(ee)}).then(()=>{ee=rh(Te,"beforeRouteUpdate",z,se);for(const V of Te)V.updateGuards.forEach(B=>{ee.push(rs(B,z,se))});return ee.push(M),_t(ee)}).then(()=>{ee=[];for(const V of xe)if(V.beforeEnter)if(Bn(V.beforeEnter))for(const B of V.beforeEnter)ee.push(rs(B,z,se));else ee.push(rs(V.beforeEnter,z,se));return ee.push(M),_t(ee)}).then(()=>(z.matched.forEach(V=>V.enterCallbacks={}),ee=rh(xe,"beforeRouteEnter",z,se,b),ee.push(M),_t(ee))).then(()=>{ee=[];for(const V of o.list())ee.push(rs(V,z,se));return ee.push(M),_t(ee)}).catch(V=>yr(V,lt.NAVIGATION_CANCELLED)?V:Promise.reject(V))}function O(z,se,ee){a.list().forEach(le=>b(()=>le(z,se,ee)))}function L(z,se,ee,le,Te){const xe=v(z,se);if(xe)return xe;const M=se===In,V=Pi?history.state:{};ee&&(le||M?s.replace(z.fullPath,Ue({scroll:M&&V&&V.scroll},Te)):s.push(z.fullPath,Te)),c.value=z,Ot(z,se,ee,M),zt()}let k;function ce(){k||(k=s.listen((z,se,ee)=>{if(!sn.listening)return;const le=w(z),Te=x(le,sn.currentRoute.value);if(Te){E(Ue(Te,{replace:!0,force:!0}),le).catch(Ea);return}l=le;const xe=c.value;Pi&&UO(H_(xe.fullPath,ee.delta),$u()),S(le,xe).catch(M=>yr(M,lt.NAVIGATION_ABORTED|lt.NAVIGATION_CANCELLED)?M:yr(M,lt.NAVIGATION_GUARD_REDIRECT)?(E(Ue(R(M.to),{force:!0}),le).then(V=>{yr(V,lt.NAVIGATION_ABORTED|lt.NAVIGATION_DUPLICATED)&&!ee.delta&&ee.type===sd.pop&&s.go(-1,!1)}).catch(Ea),Promise.reject()):(ee.delta&&s.go(-ee.delta,!1),re(M,le,xe))).then(M=>{M=M||L(le,xe,!1),M&&(ee.delta&&!yr(M,lt.NAVIGATION_CANCELLED)?s.go(-ee.delta,!1):ee.type===sd.pop&&yr(M,lt.NAVIGATION_ABORTED|lt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),O(le,xe,M)}).catch(Ea)}))}let _e=Jo(),ae=Jo(),pe;function re(z,se,ee){zt(z);const le=ae.list();return le.length?le.forEach(Te=>Te(z,se,ee)):console.error(z),Promise.reject(z)}function ve(){return pe&&c.value!==In?Promise.resolve():new Promise((z,se)=>{_e.add([z,se])})}function zt(z){return pe||(pe=!z,ce(),_e.list().forEach(([se,ee])=>z?ee(z):se()),_e.reset()),z}function Ot(z,se,ee,le){const{scrollBehavior:Te}=t;if(!Pi||!Te)return Promise.resolve();const xe=!ee&&$O(H_(z.fullPath,0))||(le||!ee)&&history.state&&history.state.scroll||null;return jn().then(()=>Te(z,se,xe)).then(M=>M&&FO(M)).catch(M=>re(M,z,se))}const dt=z=>s.go(z);let fn;const Qt=new Set,sn={currentRoute:c,listening:!0,addRoute:m,removeRoute:y,clearRoutes:e.clearRoutes,hasRoute:A,getRoutes:_,resolve:w,options:t,push:I,replace:D,go:dt,back:()=>dt(-1),forward:()=>dt(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:ae.add,isReady:ve,install(z){z.component("RouterLink",hL),z.component("RouterView",UT),z.config.globalProperties.$router=sn,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>Ee(c)}),Pi&&!fn&&c.value===In&&(fn=!0,I(s.location).catch(le=>{}));const se={};for(const le in In)Object.defineProperty(se,le,{get:()=>c.value[le],enumerable:!0});z.provide(Cp,sn),z.provide(Pp,Ln(se)),z.provide(nd,c);const ee=z.unmount;Qt.add(z),z.unmount=function(){Qt.delete(z),Qt.size<1&&(l=In,k&&k(),k=null,c.value=In,fn=!1,pe=!1),ee()}}};function _t(z){return z.reduce((se,ee)=>se.then(()=>b(ee)),Promise.resolve())}return sn}const _L=/(:\w+)\([^)]+\)/g,yL=/(:\w+)[?+*]/g,vL=/:\w+/g,EL=(t,e)=>e.path.replace(_L,"$1").replace(yL,"$1").replace(vL,n=>t.params[n.slice(1)]?.toString()||""),od=(t,e)=>{const n=t.route.matched.find(s=>s.components?.default===t.Component.type),r=e??n?.meta.key??(n&&EL(t.route,n));return typeof r=="function"?r(t.route):r},wL=(t,e)=>({default:()=>t?tt(gC,t===!0?{}:t,e):e});function $T(t){return Array.isArray(t)?t:[t]}const TL="modulepreload",bL=function(t,e){return new URL(t,e).href},ty={},ne=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");s=l(n.map(f=>{if(f=bL(f,r),f in ty)return;ty[f]=!0;const h=f.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(r)for(let y=o.length-1;y>=0;y--){const _=o[y];if(_.href===f&&(!h||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${d}`))return;
4const m=document.createElement("link");if(m.rel=h?"stylesheet":TL,h||(m.as="script"),m.crossOrigin="",m.href=f,c&&m.setAttribute("nonce",c),document.head.appendChild(m),h)return new Promise((y,_)=>{m.addEventListener("load",y),m.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},sh={layout:"default"},ny={layout:"default"},ry={layout:"admin"},sy={layout:"admin"},iy={layout:"admin"},oy={layout:"admin"},ay={layout:"default"},cy={layout:"default"},ly={layout:"default"},uy={layout:"default"},fy={layout:"default"},hy={layout:"default"},dy={layout:"default"},py={layout:"admin"},my={layout:"default"},gy={layout:"default"},_y={layout:"default"},yy={layout:"default",title:"Impressum - MorningMail",description:"Impressum für MorningMail - Rechtliche Informationen und Kontaktdaten"},vy={layout:"default",title:"Imprint - MorningMail",description:"Imprint for MorningMail - Legal information and contact details (English translation)"},Ey={layout:"default"},wy={layout:"default",title:"Privacy Policy - MorningMail",description:"Privacy Policy for MorningMail - Information about the processing of your personal data"},Ty={layout:"default"},by={layout:"default"},Iy={layout:"default"},Ay={layout:"default",title:"Nutzungsbedingungen - MorningMail",description:"Nutzungsbedingungen für MorningMail - Allgemeine Geschäftsbedingungen für die Nutzung unserer KI-gestützten E-Mail-Plattform"},Ry={layout:"default",title:"Terms and Conditions - MorningMail",description:"Terms and Conditions for MorningMail - General Terms and Conditions for using our AI-powered email platform (English translation)"},Sy={layout:"default"},ih=[{name:"index",path:"/",meta:{...sh||{},middleware:"guest"},component:()=>ne(()=>import("./vmrrPkxt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url)},{name:"_playground-letter___de",path:"/de/_playground/letter",meta:ny||{},component:()=>ne(()=>import("./rSCGDP1T.js"),__vite__mapDeps([36,37,26,2,38,39,40,1,25,41,42]),import.meta.url)},{name:"_playground-letter___en",path:"/en/_playground/letter",meta:ny||{},component:()=>ne(()=>import("./rSCGDP1T.js"),__vite__mapDeps([36,37,26,2,38,39,40,1,25,41,42]),import.meta.url)},{name:"admin-brief-queue___de",path:"/de/admin/brief-queue",meta:ry||{},component:()=>ne(()=>import("./D3GxADYb.js"),__vite__mapDeps([43,44,45,2,46,47,3,4,48,49]),import.meta.url)},{name:"admin-brief-queue___en",path:"/en/admin/brief-queue",meta:ry||{},component:()=>ne(()=>import("./D3GxADYb.js"),__vite__mapDeps([43,44,45,2,46,47,3,4,48,49]),import.meta.url)},{name:"admin-emails___de",path:"/de/admin/emails",meta:sy||{},component:()=>ne(()=>import("./TTBP1mlo.js"),__vite__mapDeps([50,44,45,2,46,47,51,48,52]),import.meta.url)},{name:"admin-emails___en",path:"/en/admin/emails",meta:sy||{},component:()=>ne(()=>import("./TTBP1mlo.js"),__vite__mapDeps([50,44,45,2,46,47,51,48,52]),import.meta.url)},{name:"admin-engagement___de",path:"/de/admin/engagement",meta:iy||{},component:()=>ne(()=>import("./C1jFloiR.js"),__vite__mapDeps([53,44,45,2,46,47,5,6,51,48,54]),import.meta.url)},{name:"admin-engagement___en",path:"/en/admin/engagement",meta:iy||{},component:()=>ne(()=>import("./C1jFloiR.js"),__vite__mapDeps([53,44,45,2,46,47,5,6,51,48,54]),import.meta.url)},{name:"admin-guides___de",path:"/de/admin/guides",meta:oy||{},component:()=>ne(()=>import("./BLj3FsHl.js"),__vite__mapDeps([55,44,45,2,46,47,48,56]),import.meta.url)},{name:"admin-guides___en",path:"/en/admin/guides",meta:oy||{},component:()=>ne(()=>import("./BLj3FsHl.js"),__vite__mapDeps([55,44,45,2,46,47,48,56]),import.meta.url)},{name:"auth-reset-password___de",path:"/de/auth/reset-password",meta:{...ay||{},middleware:"guest"},component:()=>ne(()=>import("./Cj8U6Y5d.js"),__vite__mapDeps([57,46,5,2,6,3,4,19,20,58]),import.meta.url)},{name:"auth-reset-password___en",path:"/en/auth/reset-password",meta:{...ay||{},middleware:"guest"},component:()=>ne(()=>import("./Cj8U6Y5d.js"),__vite__mapDeps([57,46,5,2,6,3,4,19,20,58]),import.meta.url)},{name:"billing-canceled___de",path:"/de/billing/canceled",meta:{middleware:["auth"]},component:()=>ne(()=>import("./Crtroovb.js"),__vite__mapDeps([59,60,61]),import.meta.url)},{name:"billing-canceled___en",path:"/en/billing/canceled",meta:{middleware:["auth"]},component:()=>ne(()=>import("./Crtroovb.js"),__vite__mapDeps([59,60,61]),import.meta.url)},{name:"billing-success___de",path:"/de/billing/success",meta:{middleware:["auth"]},component:()=>ne(()=>
4import("./CCoIIevq.js"),__vite__mapDeps([62,60,61,63,22,9,64]),import.meta.url)},{name:"billing-success___en",path:"/en/billing/success",meta:{middleware:["auth"]},component:()=>ne(()=>import("./CCoIIevq.js"),__vite__mapDeps([62,60,61,63,22,9,64]),import.meta.url)},{name:"newsletters-explore___de",path:"/de/newsletters/explore",meta:cy||{},component:()=>ne(()=>import("./5zbFH6Zf.js"),__vite__mapDeps([65,40,2,46,39,1,5,6,28,11,9,29,66]),import.meta.url)},{name:"newsletters-explore___en",path:"/en/newsletters/explore",meta:cy||{},component:()=>ne(()=>import("./5zbFH6Zf.js"),__vite__mapDeps([65,40,2,46,39,1,5,6,28,11,9,29,66]),import.meta.url)},{name:"profile-notifications___de",path:"/de/profile/notifications",meta:{...ly||{},middleware:"auth"},component:()=>ne(()=>import("./vYndbwJD.js"),__vite__mapDeps([67,44,45,2,46,47,68,69,70,51,71,72,73]),import.meta.url)},{name:"profile-notifications___en",path:"/en/profile/notifications",meta:{...ly||{},middleware:"auth"},component:()=>ne(()=>import("./vYndbwJD.js"),__vite__mapDeps([67,44,45,2,46,47,68,69,70,51,71,72,73]),import.meta.url)},{name:"newsletter-slugAndId-date___de",path:"/de/newsletter/:slugAndId()/:date()",meta:uy||{},component:()=>ne(()=>import("./CJIO0y8M.js"),__vite__mapDeps([74,75,46,5,2,6,1,45,24,40,37,26,38,39,25,41,42,76,13,77,78,79,12,80,11,9,29,81,82]),import.meta.url)},{name:"newsletter-slugAndId-date___en",path:"/en/newsletter/:slugAndId()/:date()",meta:uy||{},component:()=>ne(()=>import("./CJIO0y8M.js"),__vite__mapDeps([74,75,46,5,2,6,1,45,24,40,37,26,38,39,25,41,42,76,13,77,78,79,12,80,11,9,29,81,82]),import.meta.url)},{name:"blog-slug___de",path:"/de/blog/:slug()",meta:fy||{},component:()=>ne(()=>import("./BZ83I5AR.js"),__vite__mapDeps([83,37,26,2,38,39,40,1,25,41,42,79,12,80,84,11,9,29,8,85]),import.meta.url)},{name:"blog-slug___en",path:"/en/blog/:slug()",meta:fy||{},component:()=>ne(()=>import("./BZ83I5AR.js"),__vite__mapDeps([83,37,26,2,38,39,40,1,25,41,42,79,12,80,84,11,9,29,8,85]),import.meta.url)},{name:"builder-templateId___de",path:"/de/builder/:templateId()",meta:{...hy||{},middleware:"auth"},component:()=>ne(()=>import("./C43qK2rM.js"),__vite__mapDeps([86,2,45,3,4,87,5,6,51,88,7,8,9,10,11,12,13,14,38,80,89,68,46,40,28,34,19,20,90,91,25,41,1,92,31,32,93,64,94,95,96,15,16,37,26,39,42,97,98,69,70,29,21,22,99]),import.meta.url)},{name:"builder-templateId___en",path:"/en/builder/:templateId()",meta:{...hy||{},middleware:"auth"},component:()=>ne(()=>import("./C43qK2rM.js"),__vite__mapDeps([86,2,45,3,4,87,5,6,51,88,7,8,9,10,11,12,13,14,38,80,89,68,46,40,28,34,19,20,90,91,25,41,1,92,31,32,93,64,94,95,96,15,16,37,26,39,42,97,98,69,70,29,21,22,99]),import.meta.url)},{name:"newsletter-slugAndId___de",path:"/de/newsletter/:slugAndId()",meta:dy||{},component:()=>ne(()=>import("./C0FJVDo_.js"),__vite__mapDeps([100,75,46,5,2,6,1,45,24,40,37,26,38,39,25,41,42,76,13,77,78,79,12,80,11,9,29,81,101]),import.meta.url)},{name:"newsletter-slugAndId___en",path:"/en/newsletter/:slugAndId()",meta:dy||{},component:()=>ne(()=>import("./C0FJVDo_.js"),__vite__mapDeps([100,75,46,5,2,6,1,45,24,40,37,26,38,39,25,41,42,76,13,77,78,79,12,80,11,9,29,81,101]),import.meta.url)},{name:"about___de",path:"/de/about",component:()=>ne(()=>import("./JRw7QWL6.js"),[],import.meta.url)},{name:"about___en",path:"/en/about",component:()=>ne(()=>import("./JRw7QWL6.js"),[],import.meta.url)},{name:"admin___de",path:"/de/admin",meta:py||{},component:()=>ne(()=>import("./CPRnoOUL.js"),__vite__mapDeps([102,44,45,2,46,47,103]),import.meta.url)},{name:"admin___en",path:"/en/admin",meta:py||{},component:()=>ne(()=>import("./CPRnoOUL.js"),__vite__mapDeps([102,44,45,2,46,47,103]),import.meta.url)},{name:"auth___de",path:"/de/auth",component:()=>ne(()=>import("./xgtPU6gI.js"),__vite__mapDeps([104,46,5,2,6,19,20,3,4,17,18,90,89,91,105,106]),import.meta.url)},{name:"auth___en",path:"/en/auth",component:()=>ne(()=>import("./xgtPU6gI.js"),__vite__mapDeps([104,46,5,2,6,19,20,3,4,17,18,90,89,91,105,106]),import.meta.url)},{name:"blog___de",path:"/de/blog",meta:my||{},component:()=>ne(()=>import("./BTyEzSoU.js"),__vite__mapDeps([107,84,11,9,108]),import.meta.url)},{name:"blog___en",path:"/en/blog",meta:my||{},component:()=>ne(()=>import("./BTyEzSoU.js"),__vite__mapDeps([107,84,11,9,108]),import.meta.url)},{name:"credits___de",path:"/de/credits",meta:{...gy||{},middleware:"auth"},component:()=>ne(()=>import("./C7Ui74sf.js"),__vite__mapDeps([109,44,45,2,46,47,3,4,92,5,6,31,9,32,93,64,94,21,22,110]),import.meta.url)},{name:"credits___en",path:"/en/credits",meta:{...gy||{},middleware:"auth"},component:()=>ne(()=>import("./C7Ui74sf.js"),__vite__mapDeps([109,44,45,2,46,47,3,4,92,5,6,31,9,32,93,64,94,21,22,110]),import.meta.url)},{name:"home___de",path:"/de/home",meta:{..._y||{},middleware:"auth"},component:()=>ne(()=>import("./BEkSUeHS.js"),__vite__mapDeps([111,46,25,2,3,4,112,1,15,12,16,113,37,26,38,39,40,41,42,34,114,77,79,80,115,23,21,22,9,116]),import.meta.url)},{name:"home___en",path:"/en/home",meta:{..._y||{},middleware:"auth"},component:()=>ne(()=>import("./BEkSUeHS.js"),__vite__mapDeps([111,46,25,2,3,4,112,1,15,12,16,113,37,26,38,39,40,41,42,34,114,77,79,80,115,23,21,22,9,116]),import.meta.url)},{name:"imprint___de",path:"/de/imprint",meta:yy||{},component:()=>ne(()=>import("./Djavchnx.js"),[],import.meta.url)},{name:"imprint___en",path:"/en/imprint",meta:yy||{},component:()=>ne(()=>import("./Djavchnx.js"),[],import.meta.url)},{name:"imprint-en___de",path:"/de/imprint-en",meta:vy||{},component:()=>ne(()=>import("./CiHXWVY6.js"),[],import.meta.url)},{name:"imprint-en___en",path:"/en/imprint-en",meta:vy||{},component:()=>ne(()=>import("./CiHXWVY6.js"),[],import.meta.url)},{name:"pay___de",path:"/de/pay",component:()=>ne(()=>import("./D20qAoDb.js"),__vite__mapDeps([117,60,61,63,93,64]),import.meta.url)},{name:"pay___en",path:"/en/pay",component:()=>ne(()=>import("./D20qAoDb.js"),__vite__mapDeps([117,60,61,63,93,64]),import.meta.url)},{name:"pricing___de",path:"/de/pricing",meta:Ey||{},component:()=>ne(()=>import("./BK5YeHe2.js"),__vite__mapDeps([118,30,31,9,32,33,119]),import.meta.url)},{name:"pricing___en",path:"/en/pricing",meta:Ey||{},component:()=>ne(()=>import("./BK5YeHe2.js"),__vite__mapDeps([118,30,31,9,32,33,119]),import.meta.url)},{name:"privacy-policy___de",path:"/de/privacy-policy",component:()=>ne(()=>import("./5fwenqea.js"),[],import.meta.url)},{name:"privacy-policy___en",path:"/en/privacy-policy",component:()=>ne(()=>import("./5fwenqea.js"),[],import.meta.url)},{name:"privacy-policy-en___de",path:"/de/privacy-policy-en",meta:wy||{},component:()=>ne(()=>import("./k91s5lOU.js"),[],import.meta.url)},{name:"privacy-policy-en___en",path:"/en/privacy-policy-en",meta:wy||{},component:()=>ne(()=>import("./k91s5lOU.js"),[],import.meta.url)},{name:"profile___de",path:"/de/profile",meta:{...Ty||{},middleware:"auth"},component:()=>ne(()=>import("./B-b053V1.js"),__vite__mapDeps([120,44,45,2,46,47,51,19,20,69,70,71,72,97,39,98,27,13,87,1,40,25,3,4,88,90,89,91,21,22,9,121]),import.meta.url)},{name:"profile___en",path:"/en/profile",meta:{...Ty||{},middleware:"auth"},component:()=>ne(()=>import("./B-b053V1.js"),__vite__mapDeps([120,44,45,2,46,47,51,19,20,69,70,71,72,97,39,98,27,13,87,1,40,25,3,4,88,90,89,91,21,22,9,121]),import.meta.url)},{name:"reader___de",path:"/de/reader",meta:{...by||{},middleware:"auth"},component:()=>ne(()=>import("./C36xBOOE.js"),__vite__mapDeps([122,45,2,76,13,77,78,113,3,4,37,26,38,39,40,1,25,41,42,34,114,79,12,80,115,23,21,22,9,123]),import.meta.url)},{name:"reader___en",path:"/en/reader",meta:{...by||{},middleware:"auth"},component:()=>ne(()=>import("./C36xBOOE.js"),__vite__mapDeps([122,45,2,76,13,77,78,113,3,4,37,26,38,39,40,1,25,41,42,34,114,79,12,80,115,23,21,22,9,123]),import.meta.url)},{name:"templates___de",path:"/de/templates",meta:{...Iy||{},middleware:"auth"},component:()=>ne(()=>import("./BudcoyNx.js"),__vite__mapDeps([124,34,2,3,4,44,45,46,47,51,25,41,88,115,23,12,21,22,9,95,90,89,91,96,10,79,80,125]),import.meta.url)},{name:"templates___en",path:"/en/templates",meta:{...Iy||{},middleware:"auth"},component:()=>ne(()=>import("./BudcoyNx.js"),__vite__mapDeps([124,34,2,3,4,44,45,46,47,51,25,41,88,115,23,12,21,22,9,95,90,89,91,96,10,79,80,125]),import.meta.url)},{name:"terms-and-conditions___de",path:"/de/terms-and-conditions",meta:Ay||{},component:()=>ne(()=>import("./CqDrMU8S.js"),[],import.meta.url)},{name:"terms-and-conditions___en",path:"/en/terms-and-conditions",meta:Ay||{},component:()=>ne(()=>import("./CqDrMU8S.js"),[],import.meta.url)},{name:"terms-and-conditions-en___de",path:"/de/terms-and-conditions-en",meta:Ry||{},component:()=>ne(()=>import("./D7qLyRKX.js"),[],import.meta.url)},{name:"terms-and-conditions-en___en",path:"/en/terms-and-conditions-en",meta:Ry||{},component:()=>ne(()=>import("./D7qLyRKX.js"),[],import.meta.url)},{name:"training___de",path:"/de/training",meta:{...Sy||{},middleware:"auth"},component:()=>ne(()=>import("./D4VEc4C4.js"),__vite__mapDeps([126,45,2,3,4,40,46,26,38,25,51,89,127]),import.meta.url)},{name:"training___en",path:"/en/training",meta:{...Sy||{},middleware:"auth"},component:()=>ne(()=>import("./D4VEc4C4.js"),__vite__mapDeps([126,45,2,3,4,40,46,26,38,25,51,89,127]),import.meta.url)},{name:"index___de",path:"/de",meta:{...sh||{},middleware:"guest"},component:()=>ne(()=>import("./vmrrPkxt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url)},{name:"index___en",path:"/en",meta:{...sh||{},middleware:"guest"},component:()=>ne(()=>import("./vmrrPkxt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url)}],jT=(t,e)=>({default:()=>t?tt(Fw,t===!0?{}:t,e):e.default?.()}),IL=/(:\w+)\([^)]+\)/g,AL=/(:\w+)[?+*]/g,RL=/:\w+/g;function Cy(t){const e=t?.meta.key??t.path.replace(IL,"$1").replace(AL,"$1").replace(RL,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function SL(t,e){return t===e||e===In?!1:Cy(t)!==Cy(e)?!0:!t.matched.every((r,s)=>r.components&&r.components.default===e.matched[s]?.components?.default)}function Py(t){return Array.isArray(t)?t:[t]}function BT(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?Py(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Py(n.onBeforeLeave):void 0});return iT(...e)}const CL={scrollBehavior(t,e,n){const r=be(),s=Ut().options?.scrollBehaviorType??"auto";return t.path.replace(/\/$/,"")===e.path.replace(/\/$/,"")?e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:HT(t.hash),behavior:s}:!1:(typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1?!1:e===In?ky(t,e,n,s):new Promise(o=>{const a=()=>{requestAnimationFrame(()=>o(ky(t,e,n,s)))};r.hooks.hookOnce("page:loading:end",()=>{const c=r["~transitionPromise"];c?c.then(a):a()})})}};function HT(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function ky(t,e,n,r){return n||(t.hash?{el:t.hash,top:HT(t.hash),behavior:SL(t,e)?r:"instant"}:{left:0,top:0})}const PL={hashMode:!1,scrollBehaviorType:"auto"},Zr={...PL,...CL},kL=async(t,e)=>{let n,r;if(!t.meta?.validate)return;const s=([n,r]=us(()=>Promise.resolve(t.meta.validate(t))),n=await n,r(),n);if(s===!0)return;const i=fs({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),i},OL=t=>{const e=bT({path:t.path});if(e.redirect){const n=e.redirect.includes("#")?e.redirect:e.redirect+t.hash;return qn(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},LL=[kL,OL],ad={auth:()=>ne(()=>import("./Co6YcwMK.js"),__vite__mapDeps([128,105]),import.meta.url),guest:()=>ne(()=>import("./D7mM7EH6.js"),[],import.meta.url)};function DL(t,e,n){const{pathname:r,search:s,hash:i}=e,o=t.indexOf("#");if(o>-1){const l=i.includes(t.slice(o))?t.slice(o).length:1;let f=i.slice(l);return f[0]!=="/"&&(f="/"+f),w_(f,"")}const a=w_(r,t),c=!n||Yw(a,n)?a:n;
4return c+(c.includes("?")?"":s)+i}const NL=gt({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,r=Ss().app.baseURL;const s=Zr.history?.(r)??QO(r),i=Zr.routes?([e,n]=us(()=>Zr.routes(ih)),e=await e,n(),e??ih):ih;let o;const a=gL({...Zr,scrollBehavior:(w,R,v)=>{if(R===In){o=v;return}if(Zr.scrollBehavior){if(a.options.scrollBehavior=Zr.scrollBehavior,"scrollRestoration"in window.history){const I=a.beforeEach(()=>{I(),window.history.scrollRestoration="manual"})}return Zr.scrollBehavior(w,In,o||v)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const c=Cn(a.currentRoute.value);a.afterEach((w,R)=>{c.value=R}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=DL(r,window.location,t.payload.path),f=Cn(a.currentRoute.value),h=()=>{f.value=a.currentRoute.value};a.afterEach((w,R)=>{const v=w.matched.at(-1)?.components?.default,I=R.matched.at(-1)?.components?.default;if(v===I){h();return}w.matched.length<R.matched.length&&w.matched.every((D,x)=>D.components?.default===R.matched[x]?.components?.default)&&h()});const d={sync:h};for(const w in f.value)Object.defineProperty(d,w,{get:()=>f.value[w],enumerable:!0});t._route=Ln(d),t._middleware||={global:[],named:{}};const m=To();a.afterEach(async(w,R,v)=>{delete t._processingMiddleware,!t.isHydrating&&m.value&&await t.runWithContext(xl),v&&await t.callHook("page:loading:end")});try{[e,n]=us(()=>a.isReady()),await e,n()}catch(w){[e,n]=us(()=>t.runWithContext(()=>Ws(w))),await e,n()}const y=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value,_=t.isHydrating&&t.payload.prerenderedAt&&t.payload.path&&l!==t.payload.path&&Yw(a.currentRoute.value.path,t.payload.path);h();const A=t.payload.state._layout;return a.beforeEach(async(w,R)=>{await t.callHook("page:loading:start"),w.meta=Pn(w.meta),t.isHydrating&&A&&!lr(w.meta.layout)&&(w.meta.layout=A),t._processingMiddleware=!0;{const v=new Set([...LL,...t._middleware.global]);for(const D of w.matched){const x=D.meta.middleware;if(x)for(const E of $T(x))v.add(E)}const I=bT({path:w.path});if(I.appMiddleware)for(const D in I.appMiddleware)I.appMiddleware[D]?v.add(D):v.delete(D);
4for(const D of v){const x=typeof D=="string"?t._middleware.named[D]||await ad[D]?.().then(E=>E.default||E):D;if(!x)throw new Error(`Unknown route middleware: '${D}'.`);try{const E=await t.runWithContext(()=>x(w,R));if(!t.payload.serverRendered&&t.isHydrating&&(E===!1||E instanceof Error)){const T=E||fs({status:404,statusText:`Page Not Found: ${l}`});return await t.runWithContext(()=>Ws(T)),!1}if(E===!0)continue;if(E===!1)return E;if(E)return uT(E)&&E.fatal&&await t.runWithContext(()=>Ws(E)),E}catch(E){const T=fs(E);return T.fatal&&await t.runWithContext(()=>Ws(T)),T}}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),a.afterEach(w=>{if(w.matched.length===0&&!m.value)return t.runWithContext(()=>Ws(fs({status:404,fatal:!1,statusText:`Page not found: ${w.fullPath}`,data:{path:w.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{if("name"in y&&(y.name=void 0),_){const w=a.resolve(t.payload.path);"name"in w&&(w.name=void 0),await a.replace({...w,force:!0}),t.hooks.hookOnce("app:suspense:resolve",async()=>{await a.replace({...y,force:!0})})}else await a.replace({...y,force:!0});a.options.scrollBehavior=Zr.scrollBehavior}catch(w){await t.runWithContext(()=>Ws(w))}}),{provide:{router:a}}}}),cd=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),ML=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),ju=t=>{const e=be();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{cd(()=>t())}):cd(()=>t())},xL=gt({name:"nuxt:payload",setup(t){const e=new Set;Ut().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await V_(n.path);if(s){for(const i of e)delete t.static.data[i];for(const i in s.data)i in t.static.data||e.add(i),t.static.data[i]=s.data[i]}}),ju(()=>{t.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await V_().catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(TT,1e3)})}}),VL=gt(()=>{const t=Ut();ju(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),FL=gt(t=>{let e;async function n(){let r;try{r=await TT()}catch(s){const i=s;
4if(!("status"in i&&(i.status===404||i.status===403)))throw i}e&&clearTimeout(e),e=setTimeout(n,C_);try{const s=await $fetch(Tp("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(t.hooks.callHook("app:manifest:update",s),e&&clearTimeout(e))}catch{}}ju(()=>{e=setTimeout(n,C_)})});function UL(t={}){const e=t.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||n?.path!==e||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:be().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const $L=gt({name:"nuxt:chunk-reload",setup(t){const e=Ut(),n=Ss(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=ci(n.app.baseURL,i.fullPath);UL({path:o,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(s)}),e.onError((i,o)=>{r.has(i)&&s(o)})}});function ld(t){return typeof t=="string"?`'${t}'`:new jL().serialize(t)}const jL=(function(){class t{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,c]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(c)}`,o<s.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}
4$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(n){return`${e}(${n})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function BL(t,e){return t===e||ld(t)===ld(e)}const HL=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],qL=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],WL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Hs=[];class KL{_data=new $c;_hash=new $c([...HL]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],c=r[4],l=r[5],f=r[6],h=r[7];for(let d=0;d<64;d++){if(d<16)Hs[d]=e[n+d]|0;else{const v=Hs[d-15],I=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,D=Hs[d-2],x=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;Hs[d]=I+Hs[d-7]+x+Hs[d-16]}const m=c&l^~c&f,y=s&i^s&o^i&o,_=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),A=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),w=h+A+m+qL[d]+Hs[d],R=_+y;h=f,f=l,l=c,c=a+w|0,a=o,o=i,i=s,s=w+R|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0}_append(e){typeof e=="string"&&(e=$c.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let n,r=this._data.sigBytes/64;e?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*16,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=16)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new $c(n,i)}}let $c=class qT{words;sigBytes;constructor(e,n){e=this.words=e||[],this.sigBytes=n===void 0?e.length*4:n}static fromUtf8(e){const n=unescape(encodeURIComponent(e)),r=n.length,s=[];for(let i=0;i<r;i++)s[i>>>2]|=(n.charCodeAt(i)&255)<<24-i%4*8;return new qT(s,r)}toBase64(){const e=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,s=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,i=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,o=r<<16|s<<8|i;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)e.push(WL.charAt(o>>>6*(3-a)&63))}return e.join("")}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<e.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=e.words[n>>>2];this.sigBytes+=e.sigBytes}};function GL(t){return new KL().finalize(t).toBase64()}function ki(t){return GL(ld(t))}const zL={trailing:!0};function QL(t,e=25,n={}){if(n={...zL,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let r,s,i=[],o,a;const c=(h,d)=>(o=YL(t,h,d),o.finally(()=>{if(o=null,n.trailing&&a&&!s){const m=c(h,a);return a=null,m}}),o),l=function(...h){return n.trailing&&(a=h),o||new Promise(d=>{const m=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const y=n.leading?r:c(this,h);a=null;for(const _ of i)_(y);i=[]},e),m?(r=c(this,h),d(r)):i.push(d)})},f=h=>{h&&(clearTimeout(h),s=null)};return l.isPending=()=>!!s,l.cancel=()=>{f(s),i=[],a=null},l.flush=()=>
4{if(f(s),!a||o)return;const h=a;return a=null,c(this,h)},l}async function YL(t,e,n){return await t.apply(e,n)}const WT=Symbol.for("nuxt:client-only"),dj=jt({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:e,attrs:n}){const r=Cn(!1);Rs(()=>{r.value=!0});const s=wn();return s&&(s._nuxtClientOnly=!0),Dr(WT,!0),()=>{if(r.value){const c=e.default?.();return c&&c.length===1?[ur(c[0],n)]:c}const i=e.fallback||e.placeholder;if(i)return tt(i);const o=t.fallback||t.placeholder||"",a=t.fallbackTag||t.placeholderTag||"span";return Wi(a,n,o)}}});function KT(t){return Object.defineProperty(function(){throw new Error(`[nuxt] \`${t.name}\` is a compiler macro and cannot be called at runtime.`)},"__nuxt_factory",{enumerable:!1,get:()=>t.factory})}const GT=KT({name:"createUseAsyncData",factory(t={}){function e(...n){const r=typeof n[n.length-1]=="string"?n.pop():void 0;XL(n[0],n[1])&&n.unshift(r);let[s,i,o={}]=n,a=!1;const c=Xe(s)||typeof s=="function",l=c?Ie(()=>tr(s)):{value:s};if(!l.value||typeof l.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a non-empty string.");if(typeof i!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const f=typeof t=="function",h=be(),d=f?t(o):t;if(!f)for(const v in d)d[v]!==void 0&&o[v]===void 0&&(o[v]=d[v]);if(o.server??=!0,o.default??=eD,o.getCachedData??=QT,o.lazy??=!1,o.immediate??=!0,o.deep??=Gk.deep,o.dedupe??="cancel",f)for(const v in d)d[v]!==void 0&&(o[v]=d[v]);h._asyncData[l.value];function m(){const v={cause:"initial",dedupe:o.dedupe},I=h._asyncData[l.value];return I?._init?v.cachedData=I._initialCachedData:(v.cachedData=o.getCachedData(l.value,h,{cause:"initial"}),h._asyncData[l.value]=Oy(h,l.value,i,o,v.cachedData),h._asyncData[l.value]._initialCachedData=v.cachedData),()=>h._asyncData[l.value].execute(v)}const y=m(),_=h._asyncData[l.value];_._deps++;const A=o.server!==!1&&h.payload.serverRendered;{let v=function(S){const O=h._asyncData[S];O?._deps&&(O._deps--,O._deps===0&&O?._off())};const I=wn();if(I&&A&&o.immediate&&!I.sp&&(I.sp=[]),I&&!I._nuxtOnBeforeMountCbs){I._nuxtOnBeforeMountCbs=[];const S=I._nuxtOnBeforeMountCbs;tw(()=>{S.forEach(O=>{O()}),S.splice(0,S.length)}),yi(()=>S.splice(0,S.length))}const D=I&&(I._nuxtClientOnly||It(WT,!1));A&&h.isHydrating&&(_.error.value||_.data.value!==void 0)?_.status.value=_.error.value?"error":"success":I&&(!D&&h.payload.serverRendered&&h.isHydrating||o.lazy)&&o.immediate?I._nuxtOnBeforeMountCbs.push(y):o.immediate&&_.status.value!=="success"&&y();const x=yo(),E=()=>{},T=c?ht(l,(S,O)=>{if((S||O)&&S!==O){a=!0;const L=h._asyncData[O]?.data.value!==void 0,k=h._asyncDataPromises[O]!==void 0,ce={cause:"initial",dedupe:o.dedupe};if(!h._asyncData[S]?._init){let _e;O&&L?_e=h._asyncData[O].data.value:(_e=o.getCachedData(S,h,{cause:"initial"}),ce.cachedData=_e),h._asyncData[S]=Oy(h,S,i,o,_e)}h._asyncData[S]._deps++,O&&v(O),(o.immediate||L||k)&&h._asyncData[S].execute(ce),Ca(()=>{a=!1})}},{flush:"sync"}):E,b=o.watch?ht(o.watch,()=>{a||(h._asyncData[l.value]?._execute.isPending()&&Ca(()=>{h._asyncData[l.value]?._execute.flush()}),h._asyncData[l.value]?._execute({cause:"watch",dedupe:o.dedupe}))}):E;x&&Aa(()=>{T(),b(),v(l.value)})}const w={data:jc(()=>h._asyncData[l.value]?.data),pending:jc(()=>h._asyncData[l.value]?.pending),status:jc(()=>h._asyncData[l.value]?.status),error:jc(()=>h._asyncData[l.value]?.error),refresh:(...v)=>h._asyncData[l.value]?._init?h._asyncData[l.value].execute(...v):m()(),execute:(...v)=>w.refresh(...v),clear:()=>{const v=h._asyncData[l.value];if(v?._abortController)try{v._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{v._abortController=void 0}zT(h,l.value)}},R=Promise.resolve(h._asyncDataPromises[l.value]).then(()=>w);return Object.assign(R,w),Object.defineProperties(R,{then:{enumerable:!0,value:R.then.bind(R)},catch:{enumerable:!0,value:R.catch.bind(R)},finally:{enumerable:!0,value:R.finally.bind(R)}}),R}return e}}),JL=GT.__nuxt_factory();GT.__nuxt_factory({lazy:!0,_functionName:"useLazyAsyncData"});function jc(t){return Ie({get(){return t()?.value},set(e){const n=t();n&&(n.value=e)}})}function XL(t,e){return!(typeof t=="string"||typeof t=="object"&&t!==null||typeof t=="function"&&typeof e=="function")}function zT(t,e){e in t.payload.data&&(t.payload.data[e]=void 0),e in t.payload._errors&&(t.payload._errors[e]=void 0),t._asyncData[e]&&(t._asyncData[e].data.value=Ee(t._asyncData[e]._default()),t._asyncData[e].error.value=void 0,t._asyncData[e].status.value="idle",t._asyncData[e]._initialCachedData=void 0),e in t._asyncDataPromises&&(t._asyncDataPromises[e]=void 0)}function ZL(t,e){const n={};for(const r of e)n[r]=t[r];return n}function Oy(t,e,n,r,s){t.payload._errors[e]??=void 0;const i=r.getCachedData!==QT,o=n,a=r.deep?nt:Cn,c=s!==void 0,l=t.hook("app:data:refresh",async h=>{(!h||h.includes(e))&&await f.execute({cause:"refresh:hook"})}),f={data:a(c?s:r.default()),pending:Ie(()=>f.status.value==="pending"),error:lp(t.payload._errors,e),status:Cn("idle"),execute:(...h)=>{const[d,m=void 0]=h,y=d&&m===void 0&&typeof d=="object"?d:{};if(t._asyncDataPromises[e]&&(y.dedupe??r.dedupe)==="defer")return t._asyncDataPromises[e];{const w="cachedData"in y?y.cachedData:r.getCachedData(e,t,{cause:y.cause??"refresh:manual"});if(w!==void 0)return t.payload.data[e]=f.data.value=w,f.error.value=void 0,f.status.value="success",Promise.resolve(w)}f._abortController&&f._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),f._abortController=new AbortController,f.status.value="pending";const _=new AbortController,A=new Promise((w,R)=>{try{const v=y.timeout??r.timeout,I=tD([f._abortController?.signal,y?.signal],_.signal,v);if(I.aborted){const D=I.reason;R(D instanceof Error?D:new DOMException(String(D??"Aborted"),"AbortError"));return}return I.addEventListener("abort",()=>{const D=I.reason;R(D instanceof Error?D:new DOMException(String(D??"Aborted"),"AbortError"))},{once:!0,signal:_.signal}),Promise.resolve(o(t,{signal:I})).then(w,R)}catch(v){R(v)}}).then(async w=>{if(t._asyncDataPromises[e]!==A)return;let R=w;r.transform&&(R=await r.transform(w)),r.pick&&(R=ZL(R,r.pick)),t.payload.data[e]=R,f.data.value=R,f.error.value=void 0,f.status.value="success"}).catch(w=>{if(t._asyncDataPromises[e]!==A||f._abortController?.signal.aborted)return t._asyncDataPromises[e];if(typeof DOMException<"u"&&w instanceof DOMException&&w.name==="AbortError")return f.status.value="idle",t._asyncDataPromises[e];f.error.value=fs(w),f.data.value=Ee(r.default()),f.status.value="error"}).finally(()=>{_.abort(),t._asyncDataPromises[e]===A&&delete t._asyncDataPromises[e]});return t._asyncDataPromises[e]=A,t._asyncDataPromises[e]},_execute:QL((...h)=>f.execute(...h),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),t._asyncData[e]?._init&&(t._asyncData[e]._init=!1),i||jn(()=>{t._asyncData[e]?._init||(zT(t,e),f.execute=()=>Promise.resolve())})}};return f}const eD=()=>{},QT=(t,e,n)=>{if(e.isHydrating)return e.payload.data[t];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return e.static.data[t]};function tD(t,e,n){const r=t.filter(o=>!!o);if(typeof n=="number"&&n>=0){const o=AbortSignal.timeout?.(n);o&&r.push(o)}if(AbortSignal.any)return AbortSignal.any(r);const s=new AbortController;for(const o of r)if(o.aborted){const a=o.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}return s.signal}const i=()=>{const a=r.find(c=>c.aborted)?.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}};for(const o of r)o.addEventListener?.("abort",i,{once:!0,signal:e});return s.signal}const nD="$s";function bo(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;
4typeof t[0]!="string"&&t.unshift(e);const[n,r]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=nD+n,i=be(),o=lp(i.payload.state,s);if(r&&(i._state[s]??={_default:r}),o.value===void 0&&r){const a=r();if(Xe(a))return i.payload.state[s]=a,a;o.value=a}return o}function pj(t){}function rD(t){const e=[tr(t.method)?.toUpperCase()||"GET",tr(t.baseURL)];for(const n of[t.query||t.params]){const r=tr(n);if(!r)continue;const s={};for(const[i,o]of Object.entries(r))s[tr(i)]=tr(o);e.push(s)}if(t.body){const n=tr(t.body);if(!n)e.push(ki(n));else if(n instanceof ArrayBuffer)e.push(ki(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,s])=>[r,s.toString()]))));else if(n instanceof FormData){const r=[];for(const s of n.entries()){const[i,o]=s;r.push([i,o instanceof File?`${o.name}:${o.size}:${o.lastModified}`:o])}e.push(ki(r))}else if(ip(n))e.push(ki(Pn(n)));else try{e.push(ki(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return e}const YT=KT({name:"createUseFetch",factory(t={}){function e(n,r,s){const[i={},o]=typeof r=="string"?[{},r]:[r,s],a=typeof t=="function"?t(i):t,{server:c,lazy:l,default:f,transform:h,pick:d,watch:m,immediate:y,getCachedData:_,deep:A,dedupe:w,timeout:R,...v}={...typeof t=="function"?{}:a,...i,...typeof t=="function"?a:{}},I=Ie(()=>tr(n)),D=Ie(()=>tr(v.key)||"$f"+ki([o,typeof I.value=="string"?I.value:"",...rD(v)]));if(!v.baseURL&&typeof I.value=="string"&&I.value[0]==="/"&&I.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const x=Pn({...zk,...v,cache:typeof v.cache=="boolean"?void 0:v.cache}),E={server:c,lazy:l,default:f,transform:h,pick:d,immediate:y,getCachedData:_,deep:A,dedupe:w,timeout:R,watch:m===!1?[]:[...m||[],x]};return JL(m===!1?D.value:D,(b,{signal:S})=>(v.$fetch||globalThis.$fetch)(I.value,{signal:S,...x}),E)}return e}}),mj=YT.__nuxt_factory();YT.__nuxt_factory({lazy:!0,_functionName:"useLazyFetch"});const sD=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function iD(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");const n=new sD,r=e||{},s=r.decode||oD;let i=0;for(;i<t.length;){const o=t.indexOf("=",i);if(o===-1)break;let a=t.indexOf(";",i);if(a===-1)a=t.length;else if(a<o){i=t.lastIndexOf(";",o-1)+1;continue}const c=t.slice(i,o).trim();if(r?.filter&&!r?.filter(c)){i=a+1;continue}if(n[c]===void 0){let l=t.slice(o+1,a).trim();l.codePointAt(0)===34&&(l=l.slice(1,-1)),n[c]=aD(l,s)}i=a+1}return n}function oD(t){return t.includes("%")?decodeURIComponent(t):t}function aD(t,e){try{return e(t)}catch{return t}}const Bc=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Ly(t,e,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Bc.test(t))throw new TypeError("argument name is invalid");const i=s(e);if(i&&!Bc.test(i))throw new TypeError("argument val is invalid");let o=t+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Bc.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Bc.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!cD(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
4d");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function cD(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function On(t){if(typeof t!="object")return t;var e,n,r=Object.prototype.toString.call(t);if(r==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(e in t)t.hasOwnProperty(e)&&n[e]!==t[e]&&(n[e]=On(t[e]))}else{n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:On(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=On(t[e])}return n}if(r==="[object Array]"){for(e=t.length,n=Array(e);e--;)n[e]=On(t[e]);return n}return r==="[object Set]"?(n=new Set,t.forEach(function(s){n.add(On(s))}),n):r==="[object Map]"?(n=new Map,t.forEach(function(s,i){n.set(On(i),On(s))}),n):r==="[object Date]"?new Date(+t):r==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):r==="[object DataView]"?new t.constructor(On(t.buffer)):r==="[object ArrayBuffer]"?t.slice(0):r.slice(-6)==="Array]"?new t.constructor(t):t}function lD(t){if(t!=="undefined")try{const e=JSON.parse(t);return typeof e=="number"&&String(e)!==t?t:e}catch{return t}}const uD={path:"/",watch:!0,decode:t=>t&&lD(decodeURIComponent(t)),encode:t=>{if(typeof t!="string"||t==="undefined")return encodeURIComponent(JSON.stringify(t));try{if(typeof JSON.parse(t)!="string")return encodeURIComponent(JSON.stringify(t))}catch{}return encodeURIComponent(t)},refresh:!1},Hc=globalThis.cookieStore;function JT(t,e){const n={...uD,...e};n.filter??=l=>l===t;const r=Dy(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||r[t]===void 0||r[t]===null,a=On(i?void 0:r[t]??n.default?.()),c=s&&!i?mD(a,s,n.watch&&n.watch!=="shallow"):nt(a);{let l=null;try{!Hc&&typeof BroadcastChannel<"u"&&(l=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const f=(y=!1)=>{if(!y&&(n.readonly||BL(c.value,r[t])))return;const _=c.value===null||c.value===void 0?void 0:n.encode(c.value);pD(t,_,n),r[t]=On(c.value),l?.postMessage({value:n.encode(c.value)})},h=y=>{const _=y.refresh?Dy(n)?.[t]:n.decode(y.value);d=!0,c.value=_,r[t]=On(_),jn(()=>{d=!1})};let d=!1;const m=!!yo();if(m&&Aa(()=>{d=!0,f(),l?.close()}),Hc){const y=_=>{const A=_.changed.find(R=>R.name===t),w=_.deleted.find(R=>R.name===t);A&&h({value:A.value}),w&&h({value:null})};Hc.addEventListener("change",y),m&&Aa(()=>Hc.removeEventListener("change",y))}else l&&(l.onmessage=({data:y})=>h(y));n.watch&&ht(c,()=>{d||f(n.refresh)},{deep:n.watch!=="shallow"}),o&&f(o)}return c}function Dy(t={}){return iD(document.cookie,t)}const fD=t=>t;function hD(t){const{encode:e,decode:n,...r}=t;return{...r,encode:fD}}function dD(t,e,n={}){const r=hD(n);return e===void 0?Ly(t,"",{...r,maxAge:-1}):Ly(t,e,r)}function pD(t,e,n={}){document.cookie=dD(t,e,n)}const Ny=2147483647;function mD(t,e,n){let r,s,i=0;const o=n?nt(t):{value:t};return yo()&&Aa(()=>{s?.(),clearTimeout(r)}),WS((a,c)=>{n&&(s=ht(o,c));function l(){const h=e-i,d=h<Ny?h:Ny;r=setTimeout(()=>{if(i+=d,i<e)return l();o.value=void 0,c()},d)}
4function f(){i=0,clearTimeout(r),l()}return{get(){return a(),o.value},set(h){f(),o.value=h,c()}}})}function gD(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}async function XT(t,e=Ut()){const{path:n,matched:r}=e.resolve(t);if(!r.length||(e._routePreloaded||=new Set,e._routePreloaded.has(n)))return;const s=e._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>XT(t,e));e._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a),1));s.push(a)}await Promise.all(s)}function ZT(t){return new URL(globalThis.location.href)}const _D=(...t)=>t.find(e=>e!==void 0);function yD(t){const e=t.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,o,a){const c=a??t.trailingSlash;if(!i||c!=="append"&&c!=="remove")return i;if(typeof i=="string")return qc(i,c);const l="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:qc(l,c)}}function s(i){const o=Ut(),a=Ss(),c=Ie(()=>!!Ee(i.target)&&Ee(i.target)!=="_self"),l=Ie(()=>{const A=Ee(i.to)||Ee(i.href)||"";return typeof A=="string"&&qn(A,{acceptRelative:!0})}),f=Wg("RouterLink"),h=f&&typeof f!="string"?f.useLink:void 0,d=Ie(()=>{if(Ee(i.external))return!0;const A=Ee(i.to)||Ee(i.href)||"";return typeof A=="object"?!1:A===""||l.value}),m=Ie(()=>{const A=Ee(i.to)||Ee(i.href)||"";return d.value?A:r(A,o.resolve,Ee(i.trailingSlash))}),y=d.value?void 0:h?.({...i,to:m,viewTransition:Ee(i.viewTransition)}),_=Ie(()=>{const A=Ee(i.trailingSlash)??t.trailingSlash;if(!m.value||l.value||n(m.value))return m.value;if(d.value){const w=typeof m.value=="object"&&"path"in m.value?Xh(m.value):m.value,R=typeof w=="object"?o.resolve(w).href:w;return qc(R,A)}return typeof m.value=="object"?o.resolve(m.value)?.href??null:qc(ci(a.app.baseURL,m.value),A)});return{to:m,hasTarget:c,isAbsoluteUrl:l,isExternal:d,href:_,isActive:y?.isActive??Ie(()=>m.value===o.currentRoute.value.path),isExactActive:y?.isExactActive??Ie(()=>m.value===o.currentRoute.value.path),route:y?.route??Ie(()=>o.resolve(m.value)),async navigate(A){await Jh(_.value,{replace:Ee(i.replace),external:d.value||c.value})}}}return jt({name:e,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=Ut(),{to:c,href:l,navigate:f,isExternal:h,hasTarget:d,isAbsoluteUrl:m}=s(i),y=Cn(!1),_=nt(null),A=v=>{_.value=i.custom?v?.$el?.nextElementSibling:v?.$el};function w(v){return!y.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===v:i.prefetchOn?.[v]??t.prefetchOn?.[v])&&(i.prefetch??t.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!TD()}async function R(v=be()){if(y.value)return;y.value=!0;const I=typeof c.value=="string"?c.value:h.value?Xh(c.value):a.resolve(c.value).fullPath,D=h.value?new URL(I,window.location.href).href:I;await Promise.all([v.hooks.callHook("link:prefetch",D)?.catch(()=>{}),!h.value&&!d.value&&XT(c.value,a).catch(()=>{})])}if(w("visibility")){const v=be();let I,D=null;Rs(()=>{const x=ED();ju(()=>{I=cd(()=>{_?.value?.tagName&&(D=x.observe(_.value,async()=>{D?.(),D=null,await R(v)}))})})}),Eo(()=>{I&&ML(I),D?.(),D=null})}return()=>{if(!h.value&&!d.value&&!n(c.value)){const D={ref:A,to:c.value,activeClass:i.activeClass||t.activeClass,exactActiveClass:i.exactActiveClass||t.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
4return i.custom||(w("interaction")&&(D.onPointerenter=R.bind(null,void 0),D.onFocus=R.bind(null,void 0)),y.value&&(D.class=i.prefetchedClass||t.prefetchedClass),D.rel=i.rel||void 0),tt(Wg("RouterLink"),D,o.default)}const v=i.target||null,I=_D(i.noRel?"":i.rel,t.externalRelAttribute,m.value||d.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:l.value,navigate:f,prefetch:R,get route(){if(!l.value)return;const D=new URL(l.value,window.location.href);return{path:D.pathname,fullPath:D.pathname,get query(){return Fu(D.search)},hash:D.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:I,target:v,isExternal:h.value||d.value,isActive:!1,isExactActive:!1}):null:tt("a",{ref:_,href:l.value||null,rel:I,target:v,onClick:async D=>{if(!(h.value||d.value)){D.preventDefault();try{const x=cT(l.value);return await(i.replace?a.replace(x):a.push(x))}finally{if(n(c.value)){const x=c.value.slice(1);let E=x;try{E=decodeURIComponent(x)}catch{}document.getElementById(E)?.focus()}}}}},o.default?.())}}})}const vD=yD(Kk);function qc(t,e){const n=e==="append"?Dl:io;return qn(t)&&!t.startsWith("http")?t:n(t,!0)}function ED(){const t=be();if(t._observer)return t._observer;let e=null;const n=new Map,r=(i,o)=>(e||=new IntersectionObserver(a=>{for(const c of a){const l=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&l&&l()}}),n.set(i,o),e.observe(i),()=>{n.delete(i),e?.unobserve(i),n.size===0&&(e?.disconnect(),e=null)});return t._observer={observe:r}}const wD=/2g/;function TD(){const t=navigator.connection;return!!(t&&(t.saveData||wD.test(t.effectiveType)))}const bD={nuxt:{},ui:{colors:{primary:"green",secondary:"blue",success:"green",info:"blue",warning:"yellow",error:"red",neutral:"slate"},icons:{arrowDown:"i-lucide-arrow-down",arrowLeft:"i-lucide-arrow-left",arrowRight:"i-lucide-arrow-right",arrowUp:"i-lucide-arrow-up",caution:"i-lucide-circle-alert",check:"i-lucide-check",chevronDoubleLeft:"i-lucide-chevrons-left",chevronDoubleRight:"i-lucide-chevrons-right",chevronDown:"i-lucide-chevron-down",chevronLeft:"i-lucide-chevron-left",chevronRight:"i-lucide-chevron-right",chevronUp:"i-lucide-chevron-up",close:"i-lucide-x",copy:"i-lucide-copy",copyCheck:"i-lucide-copy-check",dark:"i-lucide-moon",ellipsis:"i-lucide-ellipsis",error:"i-lucide-circle-x",external:"i-lucide-arrow-up-right",eye:"i-lucide-eye",eyeOff:"i-lucide-eye-off",file:"i-lucide-file",folder:"i-lucide-folder",folderOpen:"i-lucide-folder-open",hash:"i-lucide-hash",info:"i-lucide-info",light:"i-lucide-sun",loading:"i-lucide-loader-circle",menu:"i-lucide-menu",minus:"i-lucide-minus",panelClose:"i-lucide-panel-left-close",panelOpen:"i-lucide-panel-left-open",plus:"i-lucide-plus",reload:"i-lucide-rotate-ccw",search:"i-lucide-search",stop:"i-lucide-square",success:"i-lucide-circle-check",system:"i-lucide-monitor",tip:"i-lucide-lightbulb",upload:"i-lucide-upload",warning:"i-lucide-triangle-alert"}},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,cssSelectorPrefix:"i-",cssWherePseudo:!0,cssLayer:"components",mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency","cryptocurrency-color","cuida","dashicons","devicon","devicon-plain","dinkie-icons","duo-icons","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-color","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guid
4ance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide","lucide-lab","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si","si-glyph","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline","streamline-block","streamline-color","streamline-cyber","streamline-cyber-color","streamline-emojis","streamline-flex","streamline-flex-color","streamline-freehand","streamline-freehand-color","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump","streamline-plump-color","streamline-sharp","streamline-sharp-color","streamline-stickies-color","streamline-ultimate","streamline-ultimate-color","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:1500}},ID=s1(bD);function eb(){const t=be();return t._appConfig||=Pn(ID),t._appConfig}const AD=gt({name:"pinia",setup(t){const e=h1();return t.vueApp.use(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}},hooks:{"app:rendered"(){const t=be();t.payload.pinia=Ne(t.$pinia).state.value}}}),RD=Mh(()=>ne(()=>import("./Do8BDkiZ.js"),[],import.meta.url).then(t=>t.default||t.default||t)),SD=[["Icon",RD]],CD=gt({name:"nuxt:global-components",setup(t){for(const[e,n]of SD)t.vueApp.component(e,n),t.vueApp.component("Lazy"+e,n)}}),as={admin:Mh(()=>ne(()=>import("./BDMR-sem.js"),__vite__mapDeps([129,44,45,2,46,47,3,4,48,130]),import.meta.url).then(t=>t.default||t)),default:Mh(()=>ne(()=>import("./D7hNapT5.js"),__vite__mapDeps([131,3,4,87,2,112,40,1,21,22,9,89,132]),import.meta.url).then(t=>t.default||t))},PD=gt({name:"nuxt:prefetch",setup(t){const e=Ut();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof as[r]=="function"&&await as[r]()})}),t.hooks.hook("link:prefetch",n=>{if(qn(n))return;const r=e.resolve(n);if(!r)return;const s=r.meta.layout;let i=$T(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof ad[o]=="function"&&ad[o]();typeof s=="string"&&s in as&&gD(as[s])})}});function kD(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const $l=typeof window<"u",Cs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),OD=(t,e,n)=>LD({l:t,k:e,s:n}),LD=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Tt=t=>typeof t=="number"&&isFinite(t),tb=t=>Hu(t)==="[object Date]",jl=t=>Hu(t)==="[object RegExp]",Bu=t=>Ve(t)&&Object.keys(t).length===0,at=Object.assign,DD=Object.create,Be=(t=null)=>DD(t);function My(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function xy(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ND(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${xy(i)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${xy(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEac
4h(r=>{t=t.replace(r,"$1javascript&#58;")}),t}const MD=Object.prototype.hasOwnProperty;function Rn(t,e){return MD.call(t,e)}const ut=Array.isArray,et=t=>typeof t=="function",oe=t=>typeof t=="string",ot=t=>typeof t=="boolean",Me=t=>t!==null&&typeof t=="object",xD=t=>Me(t)&&et(t.then)&&et(t.catch),nb=Object.prototype.toString,Hu=t=>nb.call(t),Ve=t=>Hu(t)==="[object Object]",VD=t=>t==null?"":ut(t)||Ve(t)&&t.toString===nb?JSON.stringify(t,null,2):String(t);function Op(t,e=""){return t.reduce((n,r,s)=>s===0?n+r:n+e+r,"")}const Wc=t=>!Me(t)||ut(t);function zi(t,e){if(Wc(t)||Wc(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Me(r[i])&&!Me(s[i])&&(s[i]=Array.isArray(r[i])?[]:Be()),Wc(s[i])||Wc(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}function FD(t,e=t.getCurrentLanguage(),n=t.getCurrentDirection()){const r={htmlAttrs:{},link:[],meta:[]};if(t.dir&&(r.htmlAttrs.dir=n),t.lang&&e&&(r.htmlAttrs.lang=e),t.seo){const s=$D(t);r.link=r.link.concat(s,BD(t)),r.meta=r.meta.concat(HD(t),qD(t),WD(t,t.locales.map(i=>i.language||i.code)))}return r}function UD(t){const e=new Map;for(const n of t){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[r,s]=n.language.split("-");r&&s&&(n.isCatchallLocale||!e.has(r))&&e.set(r,n),e.set(n.language,n)}return e}function $D(t){if(!t.hreflangLinks)return[];const e=[],n=UD(t.locales);for(const[r,s]of n.entries()){const i=jD(r,s,t);i&&(e.push(i),t.defaultLocale&&t.defaultLocale===s.code&&e[0].hreflang!=="x-default"&&e.unshift({[t.key]:"i18n-xd",rel:"alternate",href:i.href,hreflang:"x-default"}))}return e}function jD(t,e,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){const s=n.getLocalizedRoute(e.code,r);if(!s)return;const i=Uu(qn(s)?s:ci(n.baseUrl,s),n.strictCanonicals?sb(n):{});return{[n.key]:`i18n-alt-${t}`,rel:"alternate",href:i,hreflang:t}}function rb(t,e=t.getCurrentRoute()){const n=t.getLocaleRoute(Object.assign({},e,{path:void 0,name:t.getRouteBaseName(e)}));return n?Uu(ci(t.baseUrl,n.path),sb(t)):""}function BD(t,e=rb(t)){return e?[{[t.key]:"i18n-can",rel:"canonical",href:e}]:[]}function sb(t,e=t.getCurrentRoute()){const r=t.getLocaleRoute(Object.assign({},e,{path:void 0,name:t.getRouteBaseName(e)}))?.query??{},s={};for(const i of t.canonicalQueries.filter(o=>o in r)){s[i]??=[];for(const o of KD(r[i]))s[i].push(o||"")}return s}function HD(t,e=rb(t)){return e?[{[t.key]:"i18n-og-url",property:"og:url",content:e}]:[]}function qD(t,e=t.getCurrentLanguage()){return e?[{[t.key]:"i18n-og",property:"og:locale",content:ib(e)}]:[]}function WD(t,e,n=t.getCurrentLanguage()){return e.filter(s=>s&&s!==n).map(s=>({[t.key]:`i18n-og-alt-${s}`,property:"og:locale:alternate",content:ib(s)}))}function ib(t=""){return t.replace(/-/g,"_")}function KD(t){return Array.isArray(t)?t:[t]}function Bl(t,e,n=t.getLocale()){if(oe(e)&&qn(e,{acceptRelative:!0}))return e;try{return ab(t,e,n).fullPath}catch{return""}}function ob(t,e,n=t.getLocale()){try{return ab(t,e,n)}catch{return}}function GD(t){if(!oe(t))return at({},t);if(t[0]==="/"){const{pathname:e,search:n,hash:r}=Kh(t);return{path:e,query:Fu(n),hash:r}}return{name:t}}function ab(t,e,n){const r=GD(e),s=t.router.resolve(t.resolveLocalizedRouteObject(r,n));return s.name?s:t.router.resolve(e)}function Lp(t,e,n=t.router.currentRoute.value){const r=t.getRouteBaseName(n);if(!r)return"";const s={name:r,params:at({},n.params,t.getLocalizedDynamicParams(e)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},i=Bl(t,s,e);return t.afterSwitchLocalePath(i,e)}function zD(t,e,n=t.getLocale(),r=t.getLocales(),s=t.getBaseUrl()){const i=r.find(a=>a.code===n)||{},o=typeof e.seo=="object"&&e.seo?.canonicalQueries||[];return s||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{...e,key:"id",locales:r,baseUrl:s,canonicalQueries:o,hreflangLinks:t.routingOptions.hreflangLinks,defaultLocale:t.routingOptions.defaultLocale,strictCanonicals:t.routingOptions.strictCanonicals,getRouteBaseName:t.getRouteBaseName,getCurrentRoute:()=>t.router.currentRoute.value,getCurrentLanguage:()=>i.language,getCurrentDirection:()=>i.dir||"ltr",getLocaleRoute:a=>ob(t,a),getLocalizedRoute:(a,c)=>Lp(t,a,c),getRouteWithoutQuery:()=>{try{return at({},t.router.resolve({query:{}}),{meta:t.router.currentRoute.value.meta})}catch{return}}}}function QD(t,{dir:e=!0,lang:n=!0,seo:r=!0}){return FD(zD(t,{dir:e,lang:n,seo:r}))}function YD(t=0){return e=>{const s=(typeof e=="string"?e:e.pathname).split("?")[0].split("/");return s[0]===""&&s.shift(),s.length>t&&s[t]||""}}const qu="___",JD="default",gj=qu+JD;function cb(t){return typeof t=="string"?t:t!=null?t.toString():""}function oh(t){return cb(typeof t=="object"?t?.name:t).split(qu)[0]}function XD(t,e,n){return t+qu+e}const ZD=YD(0),ud=t=>ZD(t),eN=t=>t.split(qu).at(1)??"";function tN(t){return String(typeof t!="object"?t:t?.name||t?.path||"")}function nN(t){const e=tN(t);if(e[0]==="/")return ud(e);const n=eN(e);return n||(typeof t=="object"&&t?.path?ud(String(t.path)):"")}function rN(t){return(e,n)=>XD(cb(e),n)}function sN(t){return(e,n)=>
4{const r="/"+n+(e.path==="/"?"":e.path),s=t.options.routes.find(i=>i.path===r);return s!=null?t.resolve(at({},e,s,{path:r})):e}}const Na=["de","en"],Hl={de:[{key:"locale_de_46json_1f0b5e7e",load:()=>ne(()=>import("./DLH1Xg-O.js"),[],import.meta.url),cache:!0}],en:[{key:"locale_en_46json_1c122aa6",load:()=>ne(()=>import("./HsJCgP5U.js"),[],import.meta.url),cache:!0}]},iN=[],tc=[{code:"de",iso:"de-DE",name:"Deutsch",flag:"🇩🇪",language:"de-DE"},{code:"en",iso:"en-US",name:"English",flag:"🇺🇸",language:"en-US"}],lb=new Map,oN=bp((t,e,n)=>{if(e==="messages"||e==="datetimeFormats"||e==="numberFormats")return t[e]??=Be(null),zi(n,t[e]),!0});async function aN(t){const e=be();let n={messages:Be(null)};for(const r of t){const s=await r().then(o=>ub(o)?o.default:o),i=et(s)?await e.runWithContext(()=>s()):s;n=oN(Be(null),i,n)}return n.fallbackLocale??=!1,n}const ub=t=>Hu(t)==="[object Module]";async function cN(t,e){const n=be();try{const r=await n.runWithContext(e.load).then(s=>ub(s)?s.default:s);return et(r)?await n.runWithContext(()=>r(t)):r}catch(r){throw new Error(`Failed loading locale (${t}): `+r.message)}}async function lN(t,e=[]){const n=be(),r=await Promise.all(e.map(async i=>{const o=uN(i),a=o||await n.runWithContext(()=>cN(t,i));return!o&&i.cache!==!1&&lb.set(i.key,{ttl:Date.now()+86400*1e3,value:a}),a})),s={};for(const i of r)zi(i,s);return s}function uN(t){if(t.cache===!1)return;const e=lb.get(t.key);if(e!=null)return e.ttl>Date.now()?e.value:void 0}function Dp(t){return t!=null&&"global"in t&&"mode"in t?t.global:t}function Kc(t){const e=Dp(t);return"__composer"in e?e.__composer:e}function Wu(t,e){return t?t.$config.public.i18n:Ss().public.i18n}function nc(t){const e=Wu(t).detectBrowserLanguage,n=e||{};return{...n,enabled:!!e,cookieKey:n.cookieKey||"i18n_redirected"}}function fN(t){if(t)return{path:"/"+(oe(t)?t:t.path).replace(/^\//,""),code:!oe(t)&&t.statusCode||302}}function hN(t){return Array.isArray(t)?t:[t]}function dN(t,e,n){const r=(i="")=>i.replace(/https?:\/\//,""),s=t.filter(i=>r(i.domain)===e||hN(i.domains).includes(e));return s.length<=1?s[0]?.code:s.find(i=>i.code===n)?.code||s.find(i=>i.defaultForDomains?.includes(e)??i.domainDefault)?.code}function pN(t,e,n){const r=tc.find(i=>i.code===n),s=t?.[n]?.domain||r?.domain||r?.domains?.find(i=>i===e.host);if(s)return qn(s,{strict:!0})?s:e.protocol+"//"+s}function mN(t){const e={};for(const n of Na){const r=gN(t,[n]),s=_N(n,r);e[n]={fallbacks:r,cacheable:s}}return e}function gN(t,e){if(t===!1)return[];if(ut(t))return t;let n=[];if(oe(t))return e.every(s=>s!==t)&&n.push(t),n;const r=[...e,"default"];for(const s of r)s in t&&(n=[...n,...t[s].filter(Boolean)]);return n}function Vy(t){return Hl[t]!=null&&Hl[t].every(e=>e.cache!==!1)}function _N(t,e){return Vy(t)&&e.every(n=>Vy(n))}function yN(t){return tc.find(e=>!!e.defaultForDomains?.includes(t))?.code}const ni=t=>Na.includes(t||""),Fy=t=>ni(t)?t:void 0;var vN={de:"f6f182c8",en:"f6f182c8"};const fb=()=>bo("i18n:cached-locale-configs",()=>{}),hb=()=>bo("i18n:resolved-locale",()=>"");function EN({cookieCrossOrigin:t,cookieDomain:e,cookieSecure:n,cookieKey:r}){const s=new Date;return JT(r||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(s.setDate(s.getDate()+365)),sameSite:t?"none":"lax",domain:e||void 0,secure:t||n})}function wN(t,e,n){const r=Dp(e),s=Wu(t),i=nc(t),o=fb(),a=EN(i),c=new Set,l=A=>o.value[A],f=A=>pN(s.domainLocales,ZT(),A),h=NN(t,s.baseUrl),d=hb(),m=async A=>{const w=l(A)?.fallbacks??[];w.includes(A)||w.push(A);for(const R of w){const v=await t.runWithContext(()=>
4lN(R,Hl[R]));r.mergeLocaleMessage(R,v)}},y=async A=>{if(!(A in Hl))return;const w=l(A)?.cacheable?{}:{"Cache-Control":"no-cache"},R=await $fetch(`/_i18n/${vN[A]}/${A}/messages.json`,{headers:w});for(const v of Object.keys(R))r.mergeLocaleMessage(v,R[v])},_={vueI18n:e,initial:!0,preloaded:!1,config:s,rootRedirect:fN(s.rootRedirect),redirectStatusCode:s.redirectStatusCode??302,dynamicResourcesSSG:!1,getDefaultLocale:()=>n,getLocale:()=>Ee(r.locale),setLocale:async A=>{const w=_.getLocale();A===w||!ni(A)||(Xe(r.locale)?r.locale.value=A:r.locale=A,await t.callHook("i18n:localeSwitched",{newLocale:A,oldLocale:w}),d.value=A)},setLocaleSuspend:async A=>{ni(A)&&(_.vueI18n.__pendingLocale=A,_.vueI18n.__pendingLocalePromise=new Promise(w=>{_.vueI18n.__resolvePendingLocalePromise=async()=>{_.setCookieLocale(A),await _.setLocale(A),_.vueI18n.__pendingLocale=void 0,w()}}),(t.isHydrating||!_.config.skipSettingLocaleOnNavigate)&&await _.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>Ee(r.locales).map(A=>oe(A)?{code:A}:A),setCookieLocale:A=>{i.useCookie&&ni(A)&&(a.value=A)},getBaseUrl:A=>ci(A&&f(A)||h(),t.$config.app.baseURL),loadMessages:async A=>{if(!(t.isHydrating&&c.has(A)))try{return _.dynamicResourcesSSG?await m(A):await y(A)}catch(w){console.warn(`Failed to load messages for locale "${A}"`,w)}finally{c.add(A)}},composableCtx:void 0};return _.composableCtx=ON(_,t),_}function Ku(t){if(t._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return t._nuxtI18n}function TN(t,e){const n=[];for(const[r,s]of e.entries()){const i=t.find(o=>o.language?.toLowerCase()===s.toLowerCase());if(i){n.push({code:i.code,score:1-r/e.length});break}}for(const[r,s]of e.entries()){const i=s.split("-")[0].toLowerCase(),o=t.find(a=>a.language?.split("-")[0].toLowerCase()===i);if(o){n.push({code:o.code,score:.999-r/e.length});break}}return n}function bN(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}function IN(t,e){return TN(t.map(r=>({code:r.code,language:r.language||r.code})),e).sort(bN).at(0)?.code??""}const AN=(t,e)=>JT(e).value||void 0,RN=(t,e)=>nN(e),SN=t=>IN(tc,navigator.languages),CN=(t,e,n)=>{const r=new URL(window.location.href).host,s=tc.map(i=>({...i,domain:n[i.code]?.domain??i.domain}));return dN(s,r,ud(e))},Gu=(t,e,n)=>{const r=Wu(n);return{cookie:()=>AN(t,e.cookieKey),header:()=>{},navigator:()=>SN(),host:s=>CN(t,s,r.domainLocales),route:s=>RN(t,s)}},PN=t=>!!t.path&&!t.name;function rc(t){const e=t?._nuxtI18n?.composableCtx;if(!e)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return e}const kN=io;function ON(t,e=be()){const n=Ut();Gu(void 0,nc(e),e);const r=t.getDefaultLocale(),s=rN();function i(l,f){l.name=oh(l.name||n.currentRoute.value);const h=s(l.name,f);return n.hasRoute(h)&&(l.name=h),l.name=h,l}const o=sN(n);function a(l,f){const h=o(l,f),d=oh(h);if(d){const m=s(d,f);return n.hasRoute(m),h.name=m,h}return h.path="/"+f+h.path,h.path=kN(h.path,!0),h}const c={router:n,_head:void 0,get head(){return this._head??=Rp({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:LN(),routingOptions:{defaultLocale:r,strictCanonicals:t.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!0},getLocale:t.getLocale,getLocales:t.getLocales,getBaseUrl:t.getBaseUrl,getRouteBaseName:oh,getRouteLocalizedParams:()=>n.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:l=>c.getRouteLocalizedParams()?.[l],afterSwitchLocalePath:(l,f)=>(c.getRouteLocalizedParams(),l),resolveLocalizedRouteObject:(l,f)=>PN(l)?a(l,f):i(l,f)};return c}function LN(t=be()){const e=document.querySelector(`[data-nuxt-i18n-slp="${t._id}"]`)?.textContent;return JSON.parse(e||"{}")}async function fd(t,e){const n=Ku(t),r=n.getLocale();if(e===r&&!n.initial&&(!n.vueI18n.__pendingLocale||n.vueI18n.__pendingLocale===e))return e;const s={oldLocale:r,newLocale:e,initialSetup:n.initial,context:t};let i=await t.callHook("i18n:beforeLocaleSwitch",s);return i!=null,i??=s.newLocale,ni(i)&&(e=i),await n.loadMessages(e),await n.setLocaleSuspend(e),e}function DN(t,e,n){return!!(t.redirectOn==="root"&&e!=="/"||t.redirectOn==="no prefix"&&!t.alwaysRedirect&&ni(n))}function Uy(t,e){const n=nc(t),r=Gu(void 0,n,t),s=Ku(t),i=oe(e)?e:e.path;function*o(){s.initial&&n.enabled&&!DN(n,i,r.route(i))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale),yield r.route(e)}for(const a of o())if(a&&ni(a))return a;return s.getLocale()||s.getDefaultLocale()||""}function db(t,e,n){const r=Ku(t),s=rc(t);if(e.path==="/"&&r.rootRedirect)return Jh(Bl(s,r.rootRedirect.path,n),{redirectCode:r.rootRedirect.code});if(r.vueI18n.__pendingLocale&&be()._processingMiddleware||Gu(void 0,nc(t),t).route(e)===n)return;const o=Lp(s,n,e)||Bl(s,e.fullPath,n);if(!_k(o,e.fullPath))return Jh(o,{redirectCode:r.redirectStatusCode})}function NN(t,e,n,r){return et(e)?()=>e(t):()=>e??""}function MN(t,e,n){return{line:t,column:e,offset:n}}function hd(t,e,n){return{start:t,end:e}}const $e={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
4RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},xN=17;function zu(t,e,n={}){const{domain:r,messages:s,args:i}=n,o=t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function VN(t){throw t}const zn=" ",FN="\r",Ht=`
5`,UN="\u2028",$N="\u2029";function jN(t){const e=t;let n=0,r=1,s=1,i=0;const o=E=>e[E]===FN&&e[E+1]===Ht,a=E=>e[E]===Ht,c=E=>e[E]===$N,l=E=>e[E]===UN,f=E=>o(E)||a(E)||c(E)||l(E),h=()=>n,d=()=>r,m=()=>s,y=()=>i,_=E=>o(E)||c(E)||l(E)?Ht:e[E],A=()=>_(n),w=()=>_(n+i);function R(){return i=0,f(n)&&(r++,s=0),o(n)&&n++,n++,s++,e[n]}function v(){return o(n+i)&&i++,i++,e[n+i]}function I(){n=0,r=1,s=1,i=0}function D(E=0){i=E}function x(){const E=n+i;for(;E!==n;)R();i=0}return{index:h,line:d,column:m,peekOffset:y,charAt:_,currentChar:A,currentPeek:w,next:R,peek:v,reset:I,resetPeek:D,skipToPeek:x}}const vr=void 0,BN=".",$y="'",HN="tokenizer";function qN(t,e={}){const n=e.location!==!1,r=jN(t),s=()=>r.index(),i=()=>MN(r.line(),r.column(),r.index()),o=i(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:f}=e;function h(C,N,U,...j){const W=l();if(N.column+=U,N.offset+=U,f){const J=n?hd(W.startLoc,N):null,F=zu(C,J,{domain:HN,args:j});f(F)}}function d(C,N,U){C.endLoc=i(),C.currentType=N;const j={type:N};return n&&(j.loc=hd(C.startLoc,C.endLoc)),U!=null&&(j.value=U),j}const m=C=>d(C,13);function y(C,N){return C.currentChar()===N?(C.next(),N):(h($e.EXPECTED_TOKEN,i(),0,N),"")}function _(C){let N="";for(;C.currentPeek()===zn||C.currentPeek()===Ht;)N+=C.currentPeek(),C.peek();return N}function A(C){const N=_(C);return C.skipToPeek(),N}function w(C){if(C===vr)return!1;const N=C.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function R(C){if(C===vr)return!1;const N=C.charCodeAt(0);return N>=48&&N<=57}function v(C,N){const{currentType:U}=N;if(U!==2)return!1;_(C);const j=w(C.currentPeek());return C.resetPeek(),j}function I(C,N){const{currentType:U}=N;if(U!==2)return!1;_(C);const j=C.currentPeek()==="-"?C.peek():C.currentPeek(),W=R(j);return C.resetPeek(),W}function D(C,N){const{currentType:U}=N;if(U!==2)return!1;_(C);const j=C.currentPeek()===$y;return C.resetPeek(),j}function x(C,N){const{currentType:U}=N;if(U!==7)return!1;_(C);const j=C.currentPeek()===".";return C.resetPeek(),j}function E(C,N){const{currentType:U}=N;if(U!==8)return!1;_(C);const j=w(C.currentPeek());return C.resetPeek(),j}function T(C,N){const{currentType:U}=N;if(!(U===7||U===11))return!1;_(C);const j=C.currentPeek()===":";return C.resetPeek(),j}function b(C,N){const{currentType:U}=N;if(U!==9)return!1;const j=()=>{const J=C.currentPeek();return J==="{"?w(C.peek()):J==="@"||J==="|"||J===":"||J==="."||J===zn||
5!J?!1:J===Ht?(C.peek(),j()):O(C,!1)},W=j();return C.resetPeek(),W}function S(C){_(C);const N=C.currentPeek()==="|";return C.resetPeek(),N}function O(C,N=!0){const U=(W=!1,J="")=>{const F=C.currentPeek();return F==="{"||F==="@"||!F?W:F==="|"?!(J===zn||J===Ht):F===zn?(C.peek(),U(!0,zn)):F===Ht?(C.peek(),U(!0,Ht)):!0},j=U();return N&&C.resetPeek(),j}function L(C,N){const U=C.currentChar();return U===vr?vr:N(U)?(C.next(),U):null}function k(C){const N=C.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36}function ce(C){return L(C,k)}function _e(C){const N=C.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36||N===45}function ae(C){return L(C,_e)}function pe(C){const N=C.charCodeAt(0);return N>=48&&N<=57}function re(C){return L(C,pe)}function ve(C){const N=C.charCodeAt(0);return N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102}function zt(C){return L(C,ve)}function Ot(C){let N="",U="";for(;N=re(C);)U+=N;return U}function dt(C){let N="";for(;;){const U=C.currentChar();if(U==="\\"){const j=C.peek();j==="{"||j==="}"||j==="@"||j==="|"||j==="\\"?(N+=U+j,C.next(),C.next()):(C.resetPeek(),N+=U,C.next())}else{if(U==="{"||U==="}"||U==="@"||U==="|"||!U)break;if(U===zn||U===Ht)if(O(C))N+=U,C.next();else{if(S(C))break;N+=U,C.next()}else N+=U,C.next()}}return N}function fn(C){A(C);let N="",U="";for(;N=ae(C);)U+=N;const j=C.currentChar();if(j&&j!=="}"&&j!==vr&&j!==zn&&j!==Ht&&j!==" "){const W=le(C);return h($e.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,U+W),U+W}return C.currentChar()===vr&&h($e.UNTERMINATED_CLOSING_BRACE,i(),0),U}function Qt(C){A(C);let N="";return C.currentChar()==="-"?(C.next(),N+=`-${Ot(C)}`):N+=Ot(C),C.currentChar()===vr&&h($e.UNTERMINATED_CLOSING_BRACE,i(),0),N}function sn(C){return C!==$y&&C!==Ht}function _t(C){A(C),y(C,"'");let N="",U="";for(;N=L(C,sn);)N==="\\"?U+=z(C):U+=N;const j=C.currentChar();return j===Ht||j===vr?(h($e.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),j===Ht&&(C.next(),y(C,"'")),U):(y(C,"'"),U)}function z(C){const N=C.currentChar();switch(N){case"\\":case"'":return C.next(),`\\${N}`;case"u":return se(C,N,4);case"U":return se(C,N,6);default:return h($e.UNKNOWN_ESCAPE_SEQUENCE,i(),0,N),""}}function se(C,N,U){y(C,N);let j="";for(let W=0;W<U;W++){const J=zt(C);if(!J){h($e.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${N}${j}${C.currentChar()}`);break}j+=J}return`\\${N}${j}`}function ee(C){return C!=="{"&&C!=="}"&&C!==zn&&C!==Ht}function le(C){A(C);let N="",U="";for(;N=L(C,ee);)U+=N;return U}function Te(C){let N="",U="";for(;N=ce(C);)U+=N;return U}function xe(C){const N=U=>{const j=C.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===zn?U:(U+=j,C.next(),N(U))};return N("")}function M(C){A(C);const N=y(C,"|");return A(C),N}function V(C,N){let U=null;switch(C.currentChar()){case"{":return N.braceNest>=1&&h($e.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),C.next(),U=d(N,2,"{"),A(C),N.braceNest++,U;case"}":return N.braceNest>0&&N.currentType===2&&h($e.EMPTY_PLACEHOLDER,i(),0),C.next(),U=d(N,3,"}"),N.braceNest--,N.braceNest>0&&A(C),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),U;case"@":return N.braceNest>0&&h($e.UNTERMINATED_CLOSING_BRACE,i(),0),U=B(C,N)||m(N),N.braceNest=0,U;default:{let W=!0,J=!0,F=!0;if(S(C))return N.braceNest>0&&h($e.UNTERMINATED_CLOSING_BRACE,i(),0),U=d(N,1,M(C)),N.braceNest=0,N.inLinked=!1,U;if(N.braceNest>0&&(N.currentType===4||N.currentType===5||N.currentType===6))return h($e.UNTERMINATED_CLOSING_BRACE,i(),0),N.braceNest=0,Q(C,N);if(W=v(C,N))return U=d(N,4,fn(C)),A(C),U;if(J=I(C,N))return U=d(N,5,Qt(C)),A(C),U;if(F=D(C,N))return U=d(N,6,_t(C)),A(C),U;if(!W&&!J&&!F)return U=d(N,12,le(C)),h($e.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,U.value),A(C),U;break}}return U}function B(C,N){const{currentType:U}=N;let j=null;const W=C.currentChar();switch((U===7||U===8||U===11||U===9)&&(W===Ht||W===zn)&&h($e.INVALID_LINKED_FORMAT,i(),0),W){case"@":return C.next(),j=d(N,7,"@"),N.inLinked=!0,j;case".":return A(C),C.next(),d(N,8,".");case":":return A(C),C.next(),d(N,9,":");default:return S(C)?(j=d(N,1,M(C)),N.braceNest=0,N.inLinked=!1,j):x(C,N)||T(C,N)?(A(C),B(C,N)):E(C,N)?(A(C),d(N,11,Te(C))):b(C,N)?(A(C),W==="{"?V(C,N)||j:d(N,10,xe(C))):(U===7&&h($e.INVALID_LINKED_FORMAT,i(),0
5),N.braceNest=0,N.inLinked=!1,Q(C,N))}}function Q(C,N){let U={type:13};if(N.braceNest>0)return V(C,N)||m(N);if(N.inLinked)return B(C,N)||m(N);switch(C.currentChar()){case"{":return V(C,N)||m(N);case"}":return h($e.UNBALANCED_CLOSING_BRACE,i(),0),C.next(),d(N,3,"}");case"@":return B(C,N)||m(N);default:{if(S(C))return U=d(N,1,M(C)),N.braceNest=0,N.inLinked=!1,U;if(O(C))return d(N,0,dt(C));break}}return U}function G(){const{currentType:C,offset:N,startLoc:U,endLoc:j}=c;return c.lastType=C,c.lastOffset=N,c.lastStartLoc=U,c.lastEndLoc=j,c.offset=s(),c.startLoc=i(),r.currentChar()===vr?d(c,13):Q(r,c)}return{nextToken:G,currentOffset:s,currentPosition:i,context:l}}const WN="parser",KN=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,GN=/\\([\\@{}|])/g;function zN(t,e){return e}function QN(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function YN(t={}){const e=t.location!==!1,{onError:n}=t;function r(w,R,v,I,...D){const x=w.currentPosition();if(x.offset+=I,x.column+=I,n){const E=e?hd(v,x):null,T=zu(R,E,{domain:WN,args:D});n(T)}}function s(w,R,v){const I={type:w};return e&&(I.start=R,I.end=R,I.loc={start:v,end:v}),I}function i(w,R,v,I){e&&(w.end=R,w.loc&&(w.loc.end=v))}function o(w,R){const v=w.context(),I=s(3,v.offset,v.startLoc);return I.value=R.replace(GN,zN),i(I,w.currentOffset(),w.currentPosition()),I}function a(w,R){const v=w.context(),{lastOffset:I,lastStartLoc:D}=v,x=s(5,I,D);return x.index=parseInt(R,10),w.nextToken(),i(x,w.currentOffset(),w.currentPosition()),x}function c(w,R){const v=w.context(),{lastOffset:I,lastStartLoc:D}=v,x=s(4,I,D);return x.key=R,w.nextToken(),i(x,w.currentOffset(),w.currentPosition()),x}function l(w,R){const v=w.context(),{lastOffset:I,lastStartLoc:D}=v,x=s(9,I,D);return x.value=R.replace(KN,QN),w.nextToken(),i(x,w.currentOffset(),w.currentPosition()),x}function f(w){const R=w.nextToken(),v=w.context(),{lastOffset:I,lastStartLoc:D}=v,x=s(8,I,D);return R.type!==11?(r(w,$e.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),x.value="",i(x,I,D),{nextConsumeToken:R,node:x}):(R.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qn(R)),x.value=R.value||"",i(x,w.currentOffset(),w.currentPosition()),{node:x})}function h(w,R){const v=w.context(),I=s(7,v.offset,v.startLoc);return I.value=R,i(I,w.currentOffset(),w.currentPosition()),I}function d(w){const R=w.context(),v=s(6,R.offset,R.startLoc);let I=w.nextToken();if(I.type===8){const D=f(w);v.modifier=D.node,I=D.nextConsumeToken||w.nextToken()}switch(I.type!==9&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(I)),I=w.nextToken(),I.type===2&&(I=w.nextToken()),I.type){case 10:I.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(I)),v.key=h(w,I.value||"");break;case 4:I.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(I)),v.key=c(w,I.value||"");break;case 5:I.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(I)),v.key=a(w,I.value||"");break;case 6:I.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(I)),v.key=l(w,I.value||"");break;default:{r(w,$e.UNEXPECTED_EMPTY_LINKED_KEY,R.lastStartLoc,0);const D=w.context(),x=s(7,D.offset,D.startLoc);return x.value="",i(x,D.offset,D.startLoc),v.key=x,i(v,D.offset,D.startLoc),{nextConsumeToken:I,node:v}}}return i(v,w.currentOffset(),w.currentPosition()),{node:v}}function m(w){const R=w.context(),v=R.currentType===1?w.currentOffset():R.offset,I=R.currentType===1?R.endLoc:R.startLoc,D=s(2,v,I);D.items=[];let x=null;do{const b=x||w.nextToken();switch(x=null,b.type){case 0:b.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(b)),D.items.push(o(w,b.value||""));break;case 5:b.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(b)),D.items.push(a(w,b.value||""));break;case 4:b.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(b)),D.items.push(c(w,b.value||""));break;case 6:b.value==null&&r(w,$e.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,Qn(b)),D.items.push(l(w,b.value||""));break;case 7:{const S=d(w);D.items.push(S.node),x=S.nextConsumeToken||null;break}}}while(R.currentType!==13&&R.currentType!==1);const E=R.currentType===1?R.lastOffset:w.currentOffset(),T=R.currentType===1?R.lastEndLoc:w.currentPosition();return i(D,E,T),D}function y(w,R,v,I){const D=w.context();let x=I.items.length===0;const E=s(1,R,v);E.cases=[],E.cases.push(I);do{const T=m(w);x||(x=T.items.length===0),E.cases.push(T)}while(D.currentType!==13);return x&&r(w,$e.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),i(E,w.currentOffset(),w.currentPosition()),E}function _(w){const R=w.context(),{offset:v,startLoc:I}=R,D=m(w);return R.currentType===13?D:y(w,v,I,D)}function A(w){const R=qN(w,at({},t)),v=R.context(),I=s(0,v.offset,v.startLoc);return e&&I.loc&&(I.loc.source=w),I.body=_(R),t.onCacheKey&&(I.cacheKey=t.onCacheKey(w)),v.currentType!==13&&r(R,$e.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,w[v.offset]||""),i(I,R.currentOffset(),R.currentPosition()),I}return{parse:A}}function Qn(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>
510?e.slice(0,9)+"…":e}function JN(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function jy(t,e){for(let n=0;n<t.length;n++)Np(t[n],e)}function Np(t,e){switch(t.type){case 1:jy(t.cases,e),e.helper("plural");break;case 2:jy(t.items,e);break;case 6:{Np(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function XN(t,e={}){const n=JN(t);n.helper("normalize"),t.body&&Np(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function ZN(t){const e=t.body;return e.type===2?By(e):e.cases.forEach(n=>By(n)),t}function By(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=Op(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Oi(t){switch(t.t=t.type,t.type){case 0:{const e=t;Oi(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Oi(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Oi(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Oi(e.key),e.k=e.key,delete e.key,e.modifier&&(Oi(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}}delete t.type}function eM(t,e){const{filename:n,breakLineCode:r,needIndent:s}=e,i=e.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&t.loc&&(o.source=t.loc.source);const a=()=>o;function c(_,A){o.code+=_}function l(_,A=!0){const w=A?r:"";c(s?w+"  ".repeat(_):w)}function f(_=!0){const A=++o.indentLevel;_&&l(A)}function h(_=!0){const A=--o.indentLevel;_&&l(A)}function d(){l(o.indentLevel)}return{context:a,push:c,indent:f,deindent:h,newline:d,helper:_=>`_${_}`,needIndent:()=>o.needIndent}}function tM(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),co(t,e.key),e.modifier?(t.push(", "),co(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function nM(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const s=e.items.length;for(let i=0;i<s&&(co(t,e.items[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function rM(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const s=e.cases.length;for(let i=0;i<s&&(co(t,e.cases[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function sM(t,e){e.body?co(t,e.body):t.push("null")}function co(t,e){const{helper:n}=t;switch(e.type){case 0:sM(t,e);break;case 1:rM(t,e);break;case 2:nM(t,e);break;case 6:tM(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const iM=(t,e={})=>{const n=oe(e.mode)?e.mode:"normal",r=oe(e.filename)?e.filename:"message.intl";e.sourceMap;const s=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
6`,i=e.needIndent?e.needIndent:n!=="arrow",o=t.helpers||[],a=eM(t,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${Op(o.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),co(a,t),a.deindent(i),a.push("}"),delete t.helpers;const{code:c,map:l}=a.context();return{ast:t,code:c,map:l?l.toJSON():void 0}};function oM(t,e={}){const n=at({},e),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=YN(n).parse(t);return r?(i&&ZN(a),s&&Oi(a),{ast:a,code:""}
6):(XN(a,n),iM(a,n))}function sr(t){return Me(t)&&Mp(t)===0&&(Rn(t,"b")||Rn(t,"body"))}const pb=["b","body"];function aM(t){return Ps(t,pb)}const mb=["c","cases"];function cM(t){return Ps(t,mb,[])}const gb=["s","static"];function lM(t){return Ps(t,gb)}const _b=["i","items"];function uM(t){return Ps(t,_b,[])}const yb=["t","type"];function Mp(t){return Ps(t,yb)}const vb=["v","value"];function Gc(t,e){const n=Ps(t,vb);if(n!=null)return n;throw Ma(e)}const Eb=["m","modifier"];function fM(t){return Ps(t,Eb)}const wb=["k","key"];function hM(t){const e=Ps(t,wb);if(e)return e;throw Ma(6)}function Ps(t,e,n){for(let r=0;r<e.length;r++){const s=e[r];if(Rn(t,s)&&t[s]!=null)return t[s]}return n}const Tb=[...pb,...mb,...gb,..._b,...wb,...Eb,...vb,...yb];function Ma(t){return new Error(`unhandled node type: ${t}`)}function ah(t){return n=>dM(n,t)}function dM(t,e){const n=aM(e);if(n==null)throw Ma(0);if(Mp(n)===1){const i=cM(n);return t.plural(i.reduce((o,a)=>[...o,Hy(t,a)],[]))}else return Hy(t,n)}function Hy(t,e){const n=lM(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=uM(e).reduce((s,i)=>[...s,dd(t,i)],[]);return t.normalize(r)}}function dd(t,e){const n=Mp(e);switch(n){case 3:return Gc(e,n);case 9:return Gc(e,n);case 4:{const r=e;if(Rn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(Rn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Ma(n)}case 5:{const r=e;if(Rn(r,"i")&&Tt(r.i))return t.interpolate(t.list(r.i));if(Rn(r,"index")&&Tt(r.index))return t.interpolate(t.list(r.index));throw Ma(n)}case 6:{const r=e,s=fM(r),i=hM(r);return t.linked(dd(t,i),s?dd(t,s):void 0,t.type)}case 7:return Gc(e,n);case 8:return Gc(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const pM=t=>t;let zc=Be();function mM(t,e={}){let n=!1;const r=e.onError||VN;return e.onError=s=>{n=!0,r(s)},{...oM(t,e),detectError:n}}function gM(t,e){if(oe(t)){ot(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||pM)(t),s=zc[r];if(s)return s;const{ast:i,detectError:o}=mM(t,{...e,location:!1,jit:!0}),a=ah(i);return o?a:zc[r]=a}else{const n=t.cacheKey;if(n){const r=zc[n];return r||(zc[n]=ah(t))}else return ah(t)}}const Cr={INVALID_ARGUMENT:xN,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},_M=24;function Pr(t){return zu(t,null,void 0)}function xp(t,e){return e.locale!=null?qy(e.locale):qy(t.locale)}let ch;function qy(t){if(oe(t))return t;if(et(t)){if(t.resolvedOnce&&ch!=null)return ch;if(t.constructor.name==="Function"){const e=t();if(xD(e))throw Pr(Cr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ch=e}else throw Pr(Cr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Pr(Cr.NOT_SUPPORT_LOCALE_TYPE)}function yM(t,e,n){return[...new Set([n,...ut(e)?e:Me(e)?Object.keys(e):oe(e)?[e]:[n]])]}function pd(t,e,n){const r=oe(n)?n:ql,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ut(o);)o=Wy(i,o,e);const a=ut(e)||!Ve(e)?e:e.default?e.default:null;o=oe(a)?[a]:a,ut(o)&&Wy(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Wy(t,e,n){let r=!0;for(let s=0;s<e.length&&ot(r);s++){const i=e[s];oe(i)&&(r=vM(t,e[s],n))}return r}function vM(t,e,n){let r;const s=e.split("-");do{const i=s.join("-");r=EM(t,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function EM(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const s=e.replace(/!/g,"");t.push(s),(ut(n)||Ve(n))&&n[s]&&(r=n[s])}return r}const ks=[];ks[0]={w:[0],i:[3,0],"[":[4],o:[7]};ks[1]={w:[1],".":[2],"[":[4],o:[7]};ks[2]={w:[2],i:[3,0],0:[3,0]};ks[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ks[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ks[5]={"'":[4,0],o:8,l:[5,0]};ks[6]={'"':[4,0],o:8,l:[6,0]};const wM=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function TM(t){return wM.test(t)}function bM(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function IM(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function AM(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:TM(e)?bM(e):"*"+e}function RM(t){const e=[];let n=-1,r=0,s=0,i,o,a,c,l,f,h;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>
6{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=AM(o),o===!1))return!1;d[1]()}};function m(){const y=t[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&m())){if(c=IM(i),h=ks[r],l=h[c]||h.l||8,l===8||(r=l[0],l[1]!==void 0&&(f=d[l[1]],f&&(a=i,f()===!1))))return;if(r===7)return e}}const Ky=new Map;function SM(t,e){return Me(t)?t[e]:null}function CM(t,e){if(!Me(t))return null;let n=Ky.get(e);if(n||(n=RM(e),n&&Ky.set(e,n)),!n)return null;const r=n.length;let s=t,i=0;for(;i<r;){const o=n[i];if(Tb.includes(o)&&sr(s)||!Me(s)||!Rn(s,o))return null;const a=s[o];if(a===void 0||et(s))return null;s=a,i++}return s}const PM="11.4.2",Qu=-1,ql="en-US",Wl="",Gy=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function kM(){return{upper:(t,e)=>e==="text"&&oe(t)?t.toUpperCase():e==="vnode"&&Me(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&oe(t)?t.toLowerCase():e==="vnode"&&Me(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&oe(t)?Gy(t):e==="vnode"&&Me(t)&&"__v_isVNode"in t?Gy(t.children):t}}let bb;function OM(t){bb=t}let Ib;function LM(t){Ib=t}let Ab;function DM(t){Ab=t}let Rb=null;const zy=t=>{Rb=t},NM=()=>Rb;let Qy=0;function MM(t={}){const e=et(t.onWarn)?t.onWarn:kD,n=oe(t.version)?t.version:PM,r=oe(t.locale)||et(t.locale)?t.locale:ql,s=et(r)?ql:r,i=ut(t.fallbackLocale)||Ve(t.fallbackLocale)||oe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s,o=Ve(t.messages)?t.messages:lh(s),a=Ve(t.datetimeFormats)?t.datetimeFormats:lh(s),c=Ve(t.numberFormats)?t.numberFormats:lh(s),l=at(Be(),t.modifiers,kM()),f=t.pluralRules||Be(),h=et(t.missing)?t.missing:null,d=ot(t.missingWarn)||jl(t.missingWarn)?t.missingWarn:!0,m=ot(t.fallbackWarn)||jl(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,_=!!t.unresolving,A=et(t.postTranslation)?t.postTranslation:null,w=Ve(t.processor)?t.processor:null,R=ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter,I=et(t.messageCompiler)?t.messageCompiler:bb,D=et(t.messageResolver)?t.messageResolver:Ib||SM,x=et(t.localeFallbacker)?t.localeFallbacker:Ab||yM,E=Me(t.fallbackContext)?t.fallbackContext:void 0,T=t,b=Me(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,S=Me(T.__numberFormatters)?T.__numberFormatters:new Map,O=Me(T.__meta)?T.__meta:{};Qy++;const L={version:n,cid:Qy,locale:r,fallbackLocale:i,messages:o,modifiers:l,pluralRules:f,missing:h,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:_,postTranslation:A,processor:w,warnHtmlMessage:R,escapeParameter:v,messageCompiler:I,messageResolver:D,localeFallbacker:x,fallbackContext:E,onWarn:e,__meta:O};return L.datetimeFormats=a,L.numberFormats=c,L.__datetimeFormatters=b,L.__numberFormatters=S,L}const lh=t=>({[t]:Be()});function Vp(t,e,n,r,s){const{missing:i,onWarn:o}=t;if(i!==null){const a=i(t,n,e,s);return oe(a)?a:e}else return e}function Xo(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function xM(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function VM(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(xM(t,e[r]))return!0;return!1}function Yy(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:a}=t;if(!oe(e[0])&&!tb(e[0])&&!Tt(e[0]))return Wl;const[c,l,f,h]=md(...e),d=ot(f.missingWarn)?f.missingWarn:t.missingWarn;ot(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const m=!!f.part,y=xp(t,f),_=o(t,s,y);if(!oe(c)||c==="")return new Intl.DateTimeFormat(y.replace(/!/g,""),h).format(l);let A={},w,R=null;const v="datetime format";for(let x=0;x<_.length&&(w=_[x],A=n[w]||{},R=A[c],!Ve(R));x++)Vp(t,c,w,d,v);if(!Ve(R)||!oe(w))return r?Qu:c;let I=`${w}__${c}`;Bu(h)||(I=`${I}__${JSON.stringify(h)}`);let D=a.get(I);return D||(D=new Intl.DateTimeFormat(w,at({},R,h)),a.set(I,D)),m?D.formatToParts(l):D.format(l)}const Sb=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function md(...t){const[e,n,r,s]=t,i=Be();let o=Be(),a;if(oe(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Pr(Cr.INVALID_ISO_DATE_ARGUMENT);const l=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(l);try{a.toISOString()}catch{throw Pr(Cr.INVALID_ISO_DATE_ARGUMENT)}}else if(tb(e)){if(isNaN(e.getTime()))throw Pr(Cr.INVALID_DATE_ARGUMENT);a=e}else if(Tt(e))a=e;else throw Pr(Cr.INVALID_ARGUMENT);
6return oe(n)?i.key=n:Ve(n)&&Object.keys(n).forEach(c=>{Sb.includes(c)?o[c]=n[c]:i[c]=n[c]}),oe(r)?i.locale=r:Ve(r)&&(o=r),Ve(s)&&(o=s),[i.key||"",a,i,o]}function Jy(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Xy(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:a}=t;if(!Tt(e[0]))return Wl;const[c,l,f,h]=gd(...e),d=ot(f.missingWarn)?f.missingWarn:t.missingWarn;ot(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const m=!!f.part,y=xp(t,f),_=o(t,s,y);if(!oe(c)||c==="")return new Intl.NumberFormat(y.replace(/!/g,""),h).format(l);let A={},w,R=null;const v="number format";for(let x=0;x<_.length&&(w=_[x],A=n[w]||{},R=A[c],!Ve(R));x++)Vp(t,c,w,d,v);if(!Ve(R)||!oe(w))return r?Qu:c;let I=`${w}__${c}`;Bu(h)||(I=`${I}__${JSON.stringify(h)}`);let D=a.get(I);return D||(D=new Intl.NumberFormat(w,at({},R,h)),a.set(I,D)),m?D.formatToParts(l):D.format(l)}const Cb=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function gd(...t){const[e,n,r,s]=t,i=Be();let o=Be();if(!Tt(e))throw Pr(Cr.INVALID_ARGUMENT);const a=e;return oe(n)?i.key=n:Ve(n)&&Object.keys(n).forEach(c=>{Cb.includes(c)?o[c]=n[c]:i[c]=n[c]}),oe(r)?i.locale=r:Ve(r)&&(o=r),Ve(s)&&(o=s),[i.key||"",a,i,o]}function Zy(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const FM=t=>t,UM=t=>"",$M="text",jM=t=>t.length===0?"":Op(t),BM=VD;function uh(t,e){return t=Math.abs(t),e===2?t===1?0:1:Math.min(t,2)}function HM(t){const e=Tt(t.pluralIndex)?t.pluralIndex:-1;return Tt(t.named?.count)?t.named.count:Tt(t.named?.n)?t.named.n:e}function qM(t={}){const e=t.locale,n=HM(t),r=oe(e)&&et(t.pluralRules?.[e])?t.pluralRules[e]:uh,s=r===uh?void 0:uh,i=w=>w[r(n,w.length,s)],o=t.list||[],a=w=>o[w],c=t.named||Be();Tt(t.pluralIndex)&&(c.count||=t.pluralIndex,c.n||=t.pluralIndex);const l=w=>c[w];function f(w,R){const v=et(t.messages)?t.messages(w,!!R):Me(t.messages)?t.messages[w]:!1;return v||(t.parent?t.parent.message(w):UM)}const h=w=>t.modifiers?t.modifiers[w]:FM,d=et(t.processor?.normalize)?t.processor.normalize:jM,m=et(t.processor?.interpolate)?t.processor.interpolate:BM,y=oe(t.processor?.type)?t.processor.type:$M,A={list:a,named:l,plural:i,linked:(w,...R)=>{const[v,I]=R;let D="text",x="";R.length===1?Me(v)?(x=v.modifier||x,D=v.type||D):oe(v)&&(x=v||x):R.length===2&&(oe(v)&&(x=v||x),oe(I)&&(D=I||D));const E=f(w,!0)(A),T=E===""||E===void 0?w:E,b=D==="vnode"&&ut(T)&&x?T[0]:T;return x?h(x)(b,D):b},message:f,type:y,interpolate:m,normalize:d,values:at(Be(),o,c)};return A}const ev=()=>"",Mr=t=>et(t);function tv(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=t,[c,l]=_d(...e),f=ot(l.missingWarn)?l.missingWarn:t.missingWarn,h=ot(l.fallbackWarn)?l.fallbackWarn:t.fallbackWarn,d=ot(l.escapeParameter)?l.escapeParameter:t.escapeParameter,m=!!l.resolvedMessage,y=oe(l.default)||ot(l.default)?ot(l.default)?i?c:()=>c:l.default:n?i?c:()=>c:null,_=n||y!=null&&(oe(y)||et(y)),A=xp(t,l);d&&WM(l);let[w,R,v]=m?[c,A,a[A]||Be()]:Pb(t,c,A,o,h,f),I=w,D=c;if(!m&&!(oe(I)||sr(I)||Mr(I))&&_&&(I=y,D=I),!m&&(!(oe(I)||sr(I)||Mr(I))||!oe(R)))return s?Qu:c;let x=!1;const E=()=>{x=!0},T=Mr(I)?I:kb(t,c,R,I,D,E);if(x)return I;const b=zM(t,R,v,l),S=qM(b),O=KM(t,T,S);let L=r?r(O,c):O;return d&&oe(L)&&(L=ND(L)),L}function WM(t){ut(t.list)?t.list=t.list.map(e=>oe(e)?My(e):e):Me(t.named)&&Object.keys(t.named).forEach(e=>{oe(t.named[e])&&(t.named[e]=My(t.named[e]))})}function Pb(t,e,n,r,s,i){const{messages:o,onWarn:a,messageResolver:c,localeFallbacker:l}=t,f=l(t,r,n);let h=Be(),d,m=null;const y="translate";for(let _=0;_<f.length&&(d=f[_],h=o[d]||Be(),(m=c(h,e))===null&&(m=h[e]),!(oe(m)||sr(m)||Mr(m)));_++)if(!VM(d,f)){const A=Vp(t,e,d,i,y);A!==e&&(m=A)}return[m,d,h]}function kb(t,e,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=t;if(Mr(r)){const l=r;return l.locale=l.locale||n,l.key=l.key||e,l}if(o==null){const l=(()=>r);return l.locale=n,l.key=e,l}const c=o(r,GM(t,n,s,r,a,i));return c.locale=n,c.key=e,c.source=r,c}function KM(t,e,n){return e(n)}function _d(...t){const[e,n,r]=t,s=Be();if(!oe(e)&&!Tt(e)&&!Mr(e)&&!sr(e))throw Pr(Cr.INVALID_ARGUMENT);const i=Tt(e)?String(e):(Mr(e),e);return Tt(n)?s.plural=n:oe(n)?s.default=n:Ve(n)&&!Bu(n)?s.named=n:ut(n)&&(s.list=n),Tt(r)?s.plural=r:oe(r)?s.default=r:Ve(r)&&at(s,r),[i,s]}function GM(t,e,n,r,s,i){return{locale:e,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>OD(e,n,o)}}function zM(t,e,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:f}=t,d={locale:e,modifiers:s,pluralRules:i,messages:(m,y)=>{let _=o(n,m);if(_==null&&(f||y)){const[A,,w]=Pb(f||t,m,e,a,c,l);_=A??o(w,m)}if(oe(_)||sr(_)){let A=!1;const R=kb(t,m,e,_,m,()=>{A=!0});return A?ev:R}else return Mr(_)?_:ev}};return t.processor&&(d.processor=t.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Tt(r.plural)&&(d.pluralIndex=r.plural),d}const QM="11.4.2",yn={UNEXPECTED_RETURN_TYPE:_M,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Sn(t,...e){return zu(t,null,void 0)}const yd=Cs("__translateVNode"),vd=Cs("__datetimeParts"),Ed=Cs("__numberParts"),YM=Cs("__setPluralRules"),JM=Cs("__injectWithOption"),Vi=Cs("__dispose");function xa(t){if(!Me(t)||sr(t))return t;
6for(const e in t)if(Rn(t,e))if(!e.includes("."))Me(t[e])&&xa(t[e]);else{const n=e.split("."),r=n.length-1;let s=t,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=Be()),!Me(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(sr(s)?Tb.includes(n[r])||delete t[e]:(s[n[r]]=t[e],delete t[e])),!sr(s)){const o=s[n[r]];Me(o)&&xa(o)}}return t}function Ob(t,e){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=e,o=Ve(n)?n:ut(r)?Be():{[t]:Be()};if(ut(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;c?(o[c]=o[c]||Be(),zi(l,o[c])):zi(l,o)}else oe(a)&&zi(JSON.parse(a),o)}),s==null&&i)for(const a in o)Rn(o,a)&&xa(o[a]);return o}function XM(t){return t.type}function ZM(t,e,n){let r=Me(e.messages)?e.messages:Be();"__i18nGlobal"in n&&(r=Ob(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Me(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Me(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function nv(t){return Je(ls,null,t,0)}function Lb(){return wn()}const rv=()=>[],ex=()=>!1;let sv=0;function iv(t){return((e,n,r,s)=>t(n,r,Lb()||void 0,s))}function wd(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,s=t.flatJson,i=$l?nt:Cn;let o=ot(t.inheritLocale)?t.inheritLocale:!0;const a=i(e&&o?e.locale.value:oe(t.locale)?t.locale:ql),c=i(e&&o?e.fallbackLocale.value:oe(t.fallbackLocale)||ut(t.fallbackLocale)||Ve(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),l=i(Ob(a.value,t)),f=i(Ve(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=i(Ve(t.numberFormats)?t.numberFormats:{[a.value]:{}});let d=e?e.missingWarn:ot(t.missingWarn)||jl(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:ot(t.fallbackWarn)||jl(t.fallbackWarn)?t.fallbackWarn:!0,y=e?e.fallbackRoot:ot(t.fallbackRoot)?t.fallbackRoot:!0,_=!!t.fallbackFormat,A=et(t.missing)?t.missing:null,w=et(t.missing)?iv(t.missing):null,R=et(t.postTranslation)?t.postTranslation:null,v=e?e.warnHtmlMessage:ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0,I=!!t.escapeParameter;const D=e?e.modifiers:Ve(t.modifiers)?t.modifiers:{};let x=t.pluralRules||e&&e.pluralRules,E;E=(()=>{r&&zy(null);const F={version:QM,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:D,pluralRules:x,missing:w===null?void 0:w,missingWarn:d,fallbackWarn:m,fallbackFormat:_,unresolving:!0,postTranslation:R===null?void 0:R,warnHtmlMessage:v,escapeParameter:I,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};F.datetimeFormats=f.value,F.numberFormats=h.value,F.__datetimeFormatters=Ve(E)?E.__datetimeFormatters:void 0,F.__numberFormatters=Ve(E)?E.__numberFormatters:void 0;const H=MM(F);return r&&zy(H),H})(),Xo(E,a.value,c.value);function b(){return[a.value,c.value,l.value,f.value,h.value]}const S=Ie({get:()=>a.value,set:F=>{E.locale=F,a.value=F}}),O=Ie({get:()=>c.value,set:F=>{E.fallbackLocale=F,c.value=F,Xo(E,a.value,F)}}),L=Ie(()=>l.value),k=Ie(()=>f.value),ce=Ie(()=>h.value);function _e(){return et(R)?R:null}function ae(F){R=F,E.postTranslation=F}function pe(){return A}function re(F){F!==null&&(w=iv(F)),A=F,E.missing=w}const ve=(F,H,te,ue,Re,ke)=>{b();let Le;try{r||(E.fallbackContext=e?NM():void 0),Le=F(E)}finally{r||(E.fallbackContext=void 0)}if(te!=="translate exists"&&Tt(Le)&&Le===Qu||te==="translate exists"&&!Le){const[st,Yt]=H();return e&&y?ue(e):Re(st)}else{if(ke(Le))return Le;throw Sn(yn.UNEXPECTED_RETURN_TYPE)}};function zt(...F){return ve(H=>Reflect.apply(tv,null,[H,...F]),()=>_d(...F),"translate",H=>Reflect.apply(H.t,H,[...F]),H=>H,H=>oe(H))}function Ot(...F){const[H,te,ue]=F;if(ue&&!Me(ue))throw Sn(yn.INVALID_ARGUMENT);return zt(H,te,at({resolvedMessage:!0},ue||{}))}function dt(...F){return ve(H=>Reflect.apply(Yy,null,[H,...F]),()=>md(...F),"datetime format",H=>Reflect.apply(H.d,H,[...F]),()=>Wl,H=>oe(H)||ut(H))}function fn(...F){return ve(H=>
6Reflect.apply(Xy,null,[H,...F]),()=>gd(...F),"number format",H=>Reflect.apply(H.n,H,[...F]),()=>Wl,H=>oe(H)||ut(H))}function Qt(F){return F.map(H=>oe(H)||Tt(H)||ot(H)?nv(String(H)):H)}const _t={normalize:Qt,interpolate:F=>F,type:"vnode"};function z(...F){return ve(H=>{let te;const ue=H;try{ue.processor=_t,te=Reflect.apply(tv,null,[ue,...F])}finally{ue.processor=null}return te},()=>_d(...F),"translate",H=>H[yd](...F),H=>[nv(H)],H=>ut(H))}function se(...F){return ve(H=>Reflect.apply(Xy,null,[H,...F]),()=>gd(...F),"number format",H=>H[Ed](...F),rv,H=>oe(H)||ut(H))}function ee(...F){return ve(H=>Reflect.apply(Yy,null,[H,...F]),()=>md(...F),"datetime format",H=>H[vd](...F),rv,H=>oe(H)||ut(H))}function le(F){x=F,E.pluralRules=x}function Te(F,H){return ve(()=>{if(!F)return!1;const te=oe(H)?H:a.value,ue=oe(H)?[te]:pd(E,c.value,te);for(let Re=0;Re<ue.length;Re++){const ke=V(ue[Re]);let Le=E.messageResolver(ke,F);if(Le===null&&(Le=ke[F]),sr(Le)||Mr(Le)||oe(Le))return!0}return!1},()=>[F],"translate exists",te=>Reflect.apply(te.te,te,[F,H]),ex,te=>ot(te))}function xe(F){let H=null;const te=pd(E,c.value,a.value);for(let ue=0;ue<te.length;ue++){const Re=l.value[te[ue]]||{},ke=E.messageResolver(Re,F);if(ke!=null){H=ke;break}}return H}function M(F){const H=xe(F);return H??(e?e.tm(F)||{}:{})}function V(F){return l.value[F]||{}}function B(F,H){if(s){const te={[F]:H};for(const ue in te)Rn(te,ue)&&xa(te[ue]);H=te[F]}l.value[F]=H,E.messages=l.value}function Q(F,H){l.value[F]=l.value[F]||{};const te={[F]:H};if(s)for(const ue in te)Rn(te,ue)&&xa(te[ue]);H=te[F],zi(H,l.value[F]),E.messages=l.value}function G(F){return f.value[F]||{}}function C(F,H){f.value[F]=H,E.datetimeFormats=f.value,Jy(E,F,H)}function N(F,H){f.value[F]=at(f.value[F]||{},H),E.datetimeFormats=f.value,Jy(E,F,H)}function U(F){return h.value[F]||{}}function j(F,H){h.value[F]=H,E.numberFormats=h.value,Zy(E,F,H)}function W(F,H){h.value[F]=at(h.value[F]||{},H),E.numberFormats=h.value,Zy(E,F,H)}sv++,e&&$l&&(ht(e.locale,F=>{o&&(a.value=F,E.locale=F,Xo(E,a.value,c.value))}),ht(e.fallbackLocale,F=>{o&&(c.value=F,E.fallbackLocale=F,Xo(E,a.value,c.value))}));const J={id:sv,locale:S,fallbackLocale:O,get inheritLocale(){return o},set inheritLocale(F){o=F,F&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,Xo(E,a.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:L,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(F){d=F,E.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(F){m=F,E.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(F){y=F},get fallbackFormat(){return _},set fallbackFormat(F){_=F,E.fallbackFormat=_},get warnHtmlMessage(){return v},set warnHtmlMessage(F){v=F,E.warnHtmlMessage=F},get escapeParameter(){return I},set escapeParameter(F){I=F,E.escapeParameter=F},t:zt,getLocaleMessage:V,setLocaleMessage:B,mergeLocaleMessage:Q,getPostTranslationHandler:_e,setPostTranslationHandler:ae,getMissingHandler:pe,setMissingHandler:re,[YM]:le};return J.datetimeFormats=k,J.numberFormats=ce,J.rt=Ot,J.te=Te,J.tm=M,J.d=dt,J.n=fn,J.getDateTimeFormat=G,J.setDateTimeFormat=C,J.mergeDateTimeFormat=N,J.getNumberFormat=U,J.setNumberFormat=j,J.mergeNumberFormat=W,J[JM]=n,J[yd]=z,J[vd]=ee,J[Ed]=se,J}const Fp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function tx({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,s)=>[...r,...s.type===Nt?s.children:[s]],[]):e.reduce((n,r)=>{const s=t[r];return s&&(n[r]=s()),n},Be())}function Db(){return Nt}const nx=jt({name:"i18n-t",props:at({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Tt(t)||!isNaN(t)}},Fp),setup(t,e){const{slots:n,attrs:r}=e,s=t.i18n||sc({useScope:t.scope,__useComponent:!0});return()=>{const i=()=>{const c=Object.keys(n).filter(h=>h[0]!=="_"),l=Be();t.locale&&(l.locale=t.locale),t.plural!==void 0&&(l.plural=oe(t.plural)?+t.plural:t.plural);const f=tx(e,c);return s[yd](t.keypath,f,l)}
6,o=at(Be(),r),a=oe(t.tag)||Me(t.tag)?t.tag:Db();return Me(a)?tt(a,o,{default:i}):tt(a,o,i())}}}),ov=nx;function rx(t){return ut(t)&&!oe(t[0])}function Nb(t,e,n,r){const{slots:s,attrs:i}=e;return()=>{const o=()=>{const l={part:!0};let f=Be();t.locale&&(l.locale=t.locale),oe(t.format)?l.key=t.format:Me(t.format)&&(oe(t.format.key)&&(l.key=t.format.key),f=Object.keys(t.format).reduce((m,y)=>n.includes(y)?at(Be(),m,{[y]:t.format[y]}):m,Be()));const h=r(t.value,l,f);let d=[l.key];return ut(h)?d=h.map((m,y)=>{const _=s[m.type],A=_?_({[m.type]:m.value,index:y,parts:h}):[m.value];return rx(A)&&(A[0].key=`${m.type}-${y}`),A}):oe(h)&&(d=[h]),d},a=at(Be(),i),c=oe(t.tag)||Me(t.tag)?t.tag:Db();return Me(c)?tt(c,a,{default:o}):tt(c,a,o())}}const sx=jt({name:"i18n-n",props:at({value:{type:Number,required:!0},format:{type:[String,Object]}},Fp),setup(t,e){const n=t.i18n||sc({useScope:t.scope,__useComponent:!0});return Nb(t,e,Cb,(...r)=>n[Ed](...r))}}),av=sx;function ix(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function ox(t){const e=o=>{const{instance:a,value:c}=o;if(!a||!a.$)throw Sn(yn.UNEXPECTED_ERROR);const l=ix(t,a.$),f=cv(c);return[Reflect.apply(l.t,l,[...lv(f)]),l]};return{created:(o,a)=>{const[c,l]=e(a);$l&&(o.__i18nWatcher=ht(l.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=l,o.textContent=c},unmounted:o=>{$l&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const c=o.__composer,l=cv(a);o.textContent=Reflect.apply(c.t,c,[...lv(l)])}},getSSRProps:o=>{const[a]=e(o);return{textContent:a}}}}function cv(t){if(oe(t))return{path:t};if(Ve(t)){if(!("path"in t))throw Sn(yn.REQUIRED_VALUE,"path");return t}else throw Sn(yn.INVALID_VALUE)}function lv(t){const{path:e,locale:n,args:r,choice:s,plural:i}=t,o={},a=r||{};return oe(n)&&(o.locale=n),Tt(s)&&(o.plural=s),Tt(i)&&(o.plural=i),[e,a,o]}function ax(t,e,...n){const r=Ve(n[0])?n[0]:{};(!ot(r.globalInstall)||r.globalInstall)&&([ov.name,"I18nT"].forEach(i=>t.component(i,ov)),[av.name,"I18nN"].forEach(i=>t.component(i,av)),[hv.name,"I18nD"].forEach(i=>t.component(i,hv))),t.directive("t",ox(e))}const cx=Cs("global-vue-i18n");function lx(t={}){const e=ot(t.globalInjection)?t.globalInjection:!0,n=new Map,[r,s]=ux(t),i=Cs("");function o(f){return n.get(f)||null}function a(f,h){n.set(f,h)}function c(f){n.delete(f)}const l={get mode(){return"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,l),Ve(h[0])){const y=h[0];l.__composerExtend=y.__composerExtend,l.__vueI18nExtend=y.__vueI18nExtend}let d=null;e&&(d=_x(f,l.global)),ax(f,l,...h);const m=f.unmount;f.unmount=()=>{d&&d(),l.dispose(),m()}},get global(){return s},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:a,__deleteInstance:c};return l}function sc(t={}){const e=Lb();if(e==null)throw Sn(yn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Sn(yn.NOT_INSTALLED);const n=fx(e),r=dx(n),s=XM(e),i=hx(t,s);if(i==="global")return ZM(r,t,s),r;if(i==="parent"){let c=uv(n,e,t.__useComponent);return c==null&&(c=r),c}if(i==="isolated"){if(n.mode!=="composition")throw Sn(yn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,l=at({},t),f=uv(n,e);l.__root=f||r;const h=wd(l);return c.__composerExtend&&(h[Vi]=c.__composerExtend(h)),yo()&&Aa(()=>{const m=h[Vi];m&&(m(),delete h[Vi])}),h}const o=n;let a=o.__getInstance(e);if(a==null){const c=at({},t);"__i18n"in s&&(c.__i18n=s.__i18n),r&&(c.__root=r),a=wd(c),o.__composerExtend&&(a[Vi]=o.__composerExtend(a)),mx(o,e,a),o.__setInstance(e,a)}return a}function ux(t,e){const n=Ru(),r=n.run(()=>wd(t));if(r==null)throw Sn(yn.UNEXPECTED_ERROR);return[n,r]}function fx(t){const e=It(t.isCE?cx:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Sn(t.isCE?yn.NOT_INSTALLED_WITH_PROVIDE:yn.UNEXPECTED_ERROR);return e}function hx(t,e){return Bu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function dx(t){return t.mode==="composition"?t.global:t.global.__composer}function uv(t,e,n=!1){let r=null;const s=e.root;let i=px(e,n);for(;i!=null;){const o=t;if(t.mode==="composition"&&(r=o.__getInstance(i)),r!=null||s===i)break;i=i.parent}return r}function px(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function mx(t,e,n){Rs(()=>{},e),yi(()=>{const r=n;t.__deleteInstance(e);const s=r[Vi];s&&(s(),delete r[Vi])},e)}const gx=["locale","fallbackLocale","availableLocales"],fv=["t","rt","d","n","tm","te"];function _x(t,e){const n=Object.create(null);return gx.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i)throw Sn(yn.UNEXPECTED_ERROR);const o=Xe(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),t.config.globalProperties.$i18n=n,fv.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i||!i.value)throw Sn(yn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,i)}),()=>{delete t.config.globalProperties.$i18n,fv.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}const yx=jt({name:"i18n-d",props:at({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fp),setup(t,e){const n=t.i18n||sc({useScope:t.scope,__useComponent:!0});return Nb(t,e,Sb,(...r)=>n[vd](...r))}}),hv=yx;OM(gM);LM(CM);DM(pd);function dv(t=be()){const e=rc(t);return n=>{if(n!=null)return e.getRouteBaseName(n)||void 0}}function vx(t=be()){const e=rc(t);return(n,r)=>Bl(e,n,r)}function Ex(t=be()){const e=rc(t);return(n,r)=>ob(e,n,r)}function Mb(t=be()){const e=rc(t);return n=>Lp(e,n)}const pv="nuxt-i18n-slp",wx=new RegExp([`<!--${pv}-\\[(\\w+)\\]-->`,".+?",`<!--/${pv}-->`].join(""),"g"),Tx=gt({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(t){const e=be(t._id),n=Mb(e);e.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(wx,(s,i)=>{const o=encodeURI(n(i??""));return s.replace(/href="([^"]+)"/,`href="${o||"#"}" `)}))})}}),bx=gt({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(t){let e,n;const r=be(t._id),s=Ku(r),i=hb();
6[e,n]=us(()=>r.runWithContext(()=>fd(r,s.initial&&i.value||Uy(r,r.$router.currentRoute.value)))),await e,n(),l1("locale-changing",async o=>{let a,c;const l=([a,c]=us(()=>r.runWithContext(()=>fd(r,Uy(r,o)))),a=await a,c(),a);return s.initial=!1,r.runWithContext(()=>db(r,o,l))},{global:!0})}}),Ix=gt({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(t){}});function Ax(t,{extendComposer:e,extendComposerInstance:n}){const r=Ru(),s=t.install.bind(t);t.install=(i,...o)=>{const a=at({},o[0]);a.__composerExtend=l=>(n(l,Kc(t)),()=>{}),t.mode==="legacy"&&(a.__vueI18nExtend=l=>(n(l,Kc(l)),()=>{})),Reflect.apply(s,t,[i,a]);const c=Kc(t);if(r.run(()=>{e(c),t.mode==="legacy"&&"__composer"in t.global&&n(t.global,Kc(t.global))}),t.mode==="composition"&&i.config.globalProperties.$i18n!=null&&n(i.config.globalProperties.$i18n,c),i.unmount){const l=i.unmount.bind(i);i.unmount=()=>{r.stop(),l()}}}}const Rx=async t=>{const e=await aN(iN);e.locale=t||e.locale||"en-US",e.defaultLocale=t,e.fallbackLocale??=!1,e.messages??={};for(const n of Na)e.messages[n]??={};return e};var Sx={de:"f6f182c8",en:"f6f182c8"};const Cx=gt({name:"i18n:plugin",parallel:!1,async setup(t){let e,n;Object.defineProperty(t.versions,"nuxtI18n",{get:()=>"10.3.0"});const r=be(t._id),s=Wu(r),i=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=yN(ZT().host)||s.defaultLocale||"",a=i||([e,n]=us(()=>Rx(o)),e=await e,n(),e),c=fb();c.value??=mN(a.fallbackLocale),Na.map(d=>`/_i18n/${Sx[d]}/${d}/messages.json`);const l=lx(a),f=Gu(void 0,nc(r),r),h=wN(r,l,a.defaultLocale);r._nuxtI18n=h,Ax(l,{extendComposer(d){d.locales=Ie(()=>s.locales),d.localeCodes=Ie(()=>Na);const m=nt(h.getBaseUrl());d.baseUrl=Ie(()=>m.value),ht(d.locale,()=>m.value=h.getBaseUrl()),d.strategy="prefix",d.localeProperties=Ie(()=>tc.find(y=>y.code===d.locale.value)||{code:d.locale.value}),d.setLocale=async y=>{await fd(r,y),await r.runWithContext(()=>db(r,r.$router.currentRoute.value,y))},d.loadLocaleMessages=h.loadMessages,d.differentDomains=!1,d.defaultLocale=a.defaultLocale,d.getBrowserLocale=()=>Fy(f.navigator()),d.getLocaleCookie=()=>Fy(f.cookie()),d.setLocaleCookie=h.setCookieLocale,d.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&await l.__resolvePendingLocalePromise?.()},d.waitForPendingLocaleChange=async()=>{await l?.__pendingLocalePromise}},extendComposerInstance(d,m){const y=[["locales",()=>m.locales],["localeCodes",()=>m.localeCodes],["baseUrl",()=>m.baseUrl],["strategy",()=>"prefix"],["localeProperties",()=>m.localeProperties],["setLocale",()=>_=>Reflect.apply(m.setLocale,m,[_])],["loadLocaleMessages",()=>_=>Reflect.apply(m.loadLocaleMessages,m,[_])],["differentDomains",()=>!1],["defaultLocale",()=>m.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(m.getBrowserLocale,m,[])],["getLocaleCookie",()=>()=>Reflect.apply(m.getLocaleCookie,m,[])],["setLocaleCookie",()=>_=>Reflect.apply(m.setLocaleCookie,m,[_])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(m.finalizePendingLocaleChange,m,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(m.waitForPendingLocaleChange,m,[])]];for(const[_,A]of y)Object.defineProperty(d,_,{get:A})}}),r.vueApp.use(l),Object.defineProperty(r,"$i18n",{get:()=>Dp(l)}),r.provide("localeHead",d=>QD(r._nuxtI18n.composableCtx,d)),r.provide("localePath",vx(r)),r.provide("localeRoute",Ex(r)),r.provide("routeBaseName",dv(r)),r.provide("getRouteBaseName",dv(r)),r.provide("switchLocalePath",Mb(r))}});var Qc
vendor: 9,313 bytes, line 6
6={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};
6const Px=[50,100,200,300,400,500,600,700,800,900,950];function kx(t,e){return t in Qc&&typeof Qc[t]=="object"&&e in Qc[t]?Qc[t][e]:""}function Ox(t,e){return`${Px.map(n=>`--ui-color-${t}-${n}: var(--color-${e==="neutral"?"old-neutral":e}-${n}, ${kx(e,n)});`).join(`
7  `)}`}function mv(t,e){return`--ui-${t}: var(--ui-color-${t}-${e});`}const Lx=gt(()=>{const t=eb(),e=be(),n=Ie(()=>{const{neutral:s,...i}=t.ui.colors;return`@layer base {
8  :root {
9  ${Object.entries(t.ui.colors).map(([o,a])=>Ox(o,a)).join(`
10  `)}
11  }
12  :root, .light {
13  ${Object.keys(i).map(o=>mv(o,500)).join(`
14  `)}
15  }
16  .dark {
17  ${Object.keys(i).map(o=>mv(o,400)).join(`
18  `)}
19  }
20}`}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(e.isHydrating&&!e.payload.serverRendered){const s=document.createElement("style");s.innerHTML=n.value,s.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(s),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}Rp(r)}),Dx="__NUXT_COLOR_MODE__",fh="nuxt-color-mode",Nx="localStorage",Er=window[Dx]||{},Mx=gt(t=>{const e=bo("color-mode",()=>Pn({preference:Er.preference,value:Er.value,unknown:!1,forced:!1})).value;Ut().afterEach(i=>{const o=i.meta.colorMode;o&&o!=="system"?(e.value=o,e.forced=!0):(o==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?Er.getColorScheme():e.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!e.forced&&e.preference==="system"&&(e.value=Er.getColorScheme())}))}function s(i,o){switch(i){case"cookie":window.document.cookie=fh+"="+o;break;case"sessionStorage":window.sessionStorage?.setItem(fh,o);break;default:window.localStorage?.setItem(fh,o)}}ht(()=>e.preference,i=>{e.forced||(i==="system"?(e.value=Er.getColorScheme(),r()):e.value=i,s(Nx,i))},{immediate:!0}),ht(()=>e.value,(i,o)=>{let a;a=window.document.createElement("style"),a.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),window.document.head.appendChild(a),Er.removeColorScheme(o),Er.addColorScheme(i),window.getComputedStyle(a).opacity,document.head.removeChild(a)}),e.preference==="system"&&r(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=Er.preference,e.value=Er.value,e.unknown=!1)}),t.provide("colorMode",e)}),xb=/^[a-z0-9]+(-[a-z0-9]+)*$/,ic=(t,e,n,r="")=>{const s=t.split(":");if(t.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const a=s.pop(),c=s.pop(),l={provider:s.length>0?s[0]:r,prefix:c,name:a};return e&&!ol(l)?null:l}const i=s[0],o=i.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!ol(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return e&&!ol(a,n)?null:a}return null},ol=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function xx(t,e){const n=t.icons,r=t.aliases||Object.create(null),s=Object.create(null);function i(o){if(n[o])return s[o]=[];if(!(o in s)){s[o]=null;const a=r[o]&&r[o].parent,c=a&&i(a);c&&(s[o]=[a].concat(c))}return s[o]}
20return Object.keys(n).concat(Object.keys(r)).forEach(i),s}const Vb=Object.freeze({left:0,top:0,width:16,height:16}),Kl=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Io=Object.freeze({...Vb,...Kl}),Td=Object.freeze({...Io,body:"",hidden:!1});function Vx(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function gv(t,e){const n=Vx(t,e);for(const r in Td)r in Kl?r in t&&!(r in n)&&(n[r]=Kl[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function Fx(t,e,n){const r=t.icons,s=t.aliases||Object.create(null);let i={};function o(a){i=gv(r[a]||s[a],i)}return o(e),n.forEach(o),gv(t,i)}function Fb(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(s=>{e(s,null),n.push(s)});const r=xx(t);for(const s in r){const i=r[s];i&&(e(s,Fx(t,s,i)),n.push(s))}return n}const Ux={provider:"",aliases:{},not_found:{},...Vb};function hh(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Ub(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!hh(t,Ux))return null;const n=e.icons;for(const s in n){const i=n[s];if(!s||typeof i.body!="string"||!hh(i,Td))return null}const r=e.aliases||Object.create(null);for(const s in r){const i=r[s],o=i.parent;if(!s||typeof o!="string"||!n[o]&&!r[o]||!hh(i,Td))return null}return e}const _v=Object.create(null);function $x(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function ui(t,e){const n=_v[t]||(_v[t]=Object.create(null));return n[e]||(n[e]=$x(t,e))}function $b(t,e){return Ub(e)?Fb(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function jx(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let Va=!1;function jb(t){return typeof t=="boolean"&&(Va=t),Va}function Up(t){const e=typeof t=="string"?ic(t,!0,Va):t;if(e){const n=ui(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Bx(t,e){const n=ic(t,!0,Va);if(!n)return!1;const r=ui(n.provider,n.prefix);return e?jx(r,n.name,e):(r.missing.add(n.name),!0)}function Hx(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Va&&!e&&!t.prefix){let r=!1;return Ub(t)&&(t.prefix="",Fb(t,(s,i)=>{Bx(s,i)&&(r=!0)})),r}const n=t.prefix;return ol({prefix:n,name:"a"})?!!$b(ui(e,n),t):!1}function _j(t){const e=Up(t);return e&&{...Io,...e}}const Bb=Object.freeze({width:null,height:null}),Hb=Object.freeze({...Bb,...Kl}),qx=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wx=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yv(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(qx);if(r===null||!r.length)return t;const s=[];let i=r.shift(),o=Wx.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?s.push(i):s.push(Math.ceil(a*e*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");o=!o}}function Kx(t,e="defs"){let n="";const r=t.indexOf("<"+e);for(;r>=0;){const s=t.indexOf(">",r),i=t.indexOf("</"+e);if(s===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;n+=t.slice(s+1,i).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:n,content:t}}function Gx(t,e){return t?"<defs>"+t+"</defs>"+e:e}function zx(t,e,n){const r=Kx(t);return Gx(r.defs,e+r.content+n)}const Qx=t=>t==="unset"||t==="undefined"||t==="none";function Yx(t,e){const n={...Io,...t},r={...Hb,...e},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(_=>{const A=[],w=_.hFlip,R=_.vFlip;let v=_.rotate;w?R?v+=2:(A.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),A.push("scale(-1 1)"),s.top=s.left=0):R&&(A.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),A.push("scale(1 -1)"),s.top=s.left=0);let I;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:I=s.height/2+s.top,A.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:A.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:I=s.width/2+s.left,A.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}v%2===1&&(s.left!==s.top&&(I=s.left,s.left=s.top,s.top=I),s.width!==s.height&&(I=s.width,s.width=s.height,s.height=I)),A.length&&(i=zx(i,'<g transform="'+A.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,c=s.width,l=s.height;let f,h;o===null?(h=a===null?"1em":a==="auto"?l:a,f=yv(h,c/l)):(f=o==="auto"?c:o,h=a===null?yv(f,l/c):a==="auto"?l:a);const d={},m=(_,A)=>{Qx(A)||(d[_]=A.toString())};m("width",f),m("height",h);const y=[s.left,s.top,c,l];
20return d.viewBox=y.join(" "),{attributes:d,viewBox:y,body:i}}const Jx=/\sid="(\S+)"/g,vv=new Map;function Xx(t){t=t.replace(/[0-9]+$/,"")||"a";const e=vv.get(t)||0;return vv.set(t,e+1),e?`${t}${e}`:t}function Zx(t){const e=[];let n;for(;n=Jx.exec(t);)e.push(n[1]);if(!e.length)return t;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(s=>{const i=Xx(s),o=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}const bd=Object.create(null);function qb(t,e){bd[t]=e}function Id(t){return bd[t]||bd[""]}function $p(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Yu=Object.create(null),Zo=["https://api.simplesvg.com","https://api.unisvg.com"],al=[];for(;Zo.length>0;)Zo.length===1||Math.random()>.5?al.push(Zo.shift()):al.push(Zo.pop());Yu[""]=$p({resources:["https://api.iconify.design"].concat(al)});function Wb(t,e){const n=$p(e);return n===null?!1:(Yu[t]=n,!0)}function Ju(t){return Yu[t]}function eV(){return Object.keys(Yu)}const tV=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let Gl=tV();function nV(t){Gl=t}function rV(){return Gl}function sV(t,e){const n=Ju(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(o=>{s=Math.max(s,o.length)});const i=e+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function iV(t){return t===404}const oV=(t,e,n)=>{const r=[],s=sV(t,e),i="icons";let o={type:i,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=s&&l>0&&(r.push(o),o={type:i,provider:t,prefix:e,icons:[]},a=c.length),o.icons.push(c)}),r.push(o),r};function aV(t){if(typeof t=="string"){const e=Ju(t);if(e)return e.path}return"/"}const cV=(t,e,n)=>{if(!Gl){n("abort",424);return}let r=aV(e.provider);switch(e.type){case"icons":{const i=e.prefix,o=e.icons.join(","),a=new URLSearchParams({icons:o});r+=i+".json?"+a.toString();break}case"custom":{const i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;Gl(t+r).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{n(iV(o)?"abort":"next",o)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},lV={prepare:oV,send:cV};function Kb(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==e))})}function uV(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,s=t.prefix;e.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==s)return!0;const l=c.name;if(t.icons[l])o.loaded.push({provider:r,prefix:s,name:l});else if(t.missing.has(l))o.missing.push({provider:r,prefix:s,name:l});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||Kb([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let fV=0;function hV(t,e,n){const r=fV++,s=Kb.bind(null,n,r);if(!e.pending.length)return s;const i={id:r,icons:e,callback:t,abort:s};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),s}function dV(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,o=s.prefix,a=s.name,c=n[i]||(n[i]=Object.create(null)),l=c[o]||(c[o]=ui(i,o));let f;a in l.icons?f=e.loaded:o===""||l.missing.has(a)?f=e.missing:f=e.pending;const h={provider:i,prefix:o,name:a};f.push(h)}),e}function pV(t,e=!0,n=!1){const r=[];return t.forEach(s=>{const i=typeof s=="string"?ic(s,e,n):s;i&&r.push(i)}),r}const mV={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gV(t,e,n,r){const s=t.resources.length,i=t.random?Math.floor(Math.random()*s):t.index;let o;if(t.random){let x=t.resources.slice(0);for(o=[];x.length>1;){const E=Math.floor(Math.random()*x.length);o.push(x[E]),x=x.slice(0,E).concat(x.slice(E+1))}o=o.concat(x)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let c="pending",l=0,f,h=null,d=[],m=[];typeof r=="function"&&m.push(r);function y(){h&&(clearTimeout(h),h=null)}function _(){c==="pending"&&(c="aborted"),y(),d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function A(x,E){E&&(m=[]),typeof x=="function"&&m.push(x)}function w(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:d.length,subscribe:A,abort:_}}function R(){c="failed",m.forEach(x=>{x(void 0,f)})}function v(){d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function I(x,E,T){const b=E!=="success";switch(d=d.filter(S=>
20S!==x),c){case"pending":break;case"failed":if(b||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){f=T,R();return}if(b){f=T,d.length||(o.length?D():R());return}if(y(),v(),!t.random){const S=t.resources.indexOf(x.resource);S!==-1&&S!==t.index&&(t.index=S)}c="completed",m.forEach(S=>{S(T)})}function D(){if(c!=="pending")return;y();const x=o.shift();if(x===void 0){if(d.length){h=setTimeout(()=>{y(),c==="pending"&&(v(),R())},t.timeout);return}R();return}const E={status:"pending",resource:x,callback:(T,b)=>{I(E,T,b)}};d.push(E),l++,h=setTimeout(D,t.rotate),n(x,e,E.callback)}return setTimeout(D),w}function Gb(t){const e={...mV,...t};let n=[];function r(){n=n.filter(o=>o().status==="pending")}function s(o,a,c){const l=gV(e,o,a,(f,h)=>{r(),c&&c(f,h)});return n.push(l),l}function i(o){return n.find(a=>o(a))||null}return{query:s,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:r}}function Ev(){}const dh=Object.create(null);function _V(t){if(!dh[t]){const e=Ju(t);if(!e)return;dh[t]={config:e,redundancy:Gb(e)}}return dh[t]}function zb(t,e,n){let r,s;if(typeof t=="string"){const i=Id(t);if(!i)return n(void 0,424),Ev;s=i.send;const o=_V(t);o&&(r=o.redundancy)}else{const i=$p(t);if(i){r=Gb(i);const o=Id(t.resources?t.resources[0]:"");o&&(s=o.send)}}return!r||!s?(n(void 0,424),Ev):r.query(e,s,n)().abort}function wv(){}function yV(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,uV(t)}))}function vV(t){const e=[],n=[];return t.forEach(r=>{(r.match(xb)?e:n).push(r)}),{valid:e,invalid:n}}function ea(t,e,n){function r(){const s=t.pendingIcons;e.forEach(i=>{s&&s.delete(i),t.icons[i]||t.missing.add(i)})}if(n&&typeof n=="object")try{if(!$b(t,n).length){r();return}}catch(s){console.error(s)}r(),yV(t)}function Tv(t,e){t instanceof Promise?t.then(n=>{e(n)}).catch(()=>{e(null)}):e(t)}function EV(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,s=t.iconsToLoad;if(delete t.iconsToLoad,!s||!s.length)return;const i=t.loadIcon;if(t.loadIcons&&(s.length>1||!i)){Tv(t.loadIcons(s,r,n),l=>{ea(t,s,l)});return}if(i){s.forEach(l=>{Tv(i(l,r,n),f=>{ea(t,[l],f?{prefix:r,icons:{[l]:f}}:null)})});return}const{valid:o,invalid:a}=vV(s);if(a.length&&ea(t,a,null),!o.length)return;const c=r.match(xb)?Id(n):null;if(!c){ea(t,o,null);return}
20c.prepare(n,r,o).forEach(l=>{zb(n,l,f=>{ea(t,l.icons,f)})})}))}const Qb=(t,e)=>{const n=dV(pV(t,!0,jb()));if(!n.pending.length){let a=!0;return e&&setTimeout(()=>{a&&e(n.loaded,n.missing,n.pending,wv)}),()=>{a=!1}}const r=Object.create(null),s=[];let i,o;return n.pending.forEach(a=>{const{provider:c,prefix:l}=a;if(l===o&&c===i)return;i=c,o=l,s.push(ui(c,l));const f=r[c]||(r[c]=Object.create(null));f[l]||(f[l]=[])}),n.pending.forEach(a=>{const{provider:c,prefix:l,name:f}=a,h=ui(c,l),d=h.pendingIcons||(h.pendingIcons=new Set);d.has(f)||(d.add(f),r[c][l].push(f))}),s.forEach(a=>{const c=r[a.provider][a.prefix];c.length&&EV(a,c)}),e?hV(e,n,s):wv},yj=t=>new Promise((e,n)=>{const r=typeof t=="string"?ic(t,!0):t;if(!r){n(t);return}Qb([r||t],s=>{if(s.length&&r){const i=Up(r);if(i){e({...Io,...i});return}}n(t)})});function wV(t,e,n){ui("",e).loadIcons=t}function TV(t,e){const n={...t};for(const r in e){const s=e[r],i=typeof s;r in Bb?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const bV=/[\s,]+/;function IV(t,e){e.split(bV).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function AV(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(t);return isNaN(s)?0:r(s)}else if(n!==t){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return e}function RV(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function SV(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function CV(t){return"data:image/svg+xml,"+SV(t)}function PV(t){return'url("'+CV(t)+'")'}const bv={...Hb,inline:!1},kV={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},OV={display:"inline-block"},Ad={backgroundColor:"currentColor"},Yb={backgroundColor:"transparent"},Iv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Av={webkitMask:Ad,mask:Ad,background:Yb};for(const t in Av){const e=Av[t];for(const n in Iv)e[t+n]=Iv[n]}const cl={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";cl[t+"-flip"]=e,cl[t.slice(0,1)+"-flip"]=e,cl[t+"Flip"]=e});function Rv(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Sv=(t,e)=>{const n=TV(bv,e),r={...kV},s=e.mode||"svg",i={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let _ in e){const A=e[_];if(A!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":case"ssr":case"customise":break;case"inline":case"hFlip":case"vFlip":n[_]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&IV(n,A);break;case"color":i.color=A;break;case"rotate":typeof A=="string"?n[_]=AV(A):typeof A=="number"&&(n[_]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete r["aria-hidden"];break;default:{const w=cl[_];w?(A===!0||A==="true"||A===1)&&(n[w]=!0):bv[_]===void 0&&(r[_]=A)}}}const c=Yx(t,n),l=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),s==="svg")return r.style={...i,...a},Object.assign(r,l),r.innerHTML=Zx(c.body),tt("svg",r);const{body:f,width:h,height:d}=t,m=s==="mask"||(s==="bg"?!1:f.indexOf("currentColor")!==-1),y=RV(f,{...l,width:h+"",height:d+""});return r.style={...i,"--svg":PV(y),width:Rv(l.width),height:Rv(l.height),...OV,...m?Ad:Yb,...a},tt("span",r)};jb(!0);qb("",lV);if(typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Hx(r))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const r="IconifyProviders["+n+"] is invali
20d.";try{const s=e[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Wb(n,s)||console.error(r)}catch{console.error(r)}}}}const LV={...Io,body:""},vj=jt((t,{emit:e})=>{const n=nt(null);function r(){n.value&&(n.value.abort?.(),n.value=null)}const s=nt(!!t.ssr),i=nt(""),o=Cn(null);function a(){const l=t.icon;if(typeof l=="object"&&l!==null&&typeof l.body=="string")return i.value="",{data:l};let f;if(typeof l!="string"||(f=ic(l,!1,!0))===null)return null;let h=Up(f);if(!h){const y=n.value;return(!y||y.name!==l)&&(h===null?n.value={name:l}:n.value={name:l,abort:Qb([f],c)}),null}r(),i.value!==l&&(i.value=l,jn(()=>{e("load",l)}));const d=t.customise;if(d){h=Object.assign({},h);const y=d(h.body,f.name,f.prefix,f.provider);typeof y=="string"&&(h.body=y)}const m=["iconify"];return f.prefix!==""&&m.push("iconify--"+f.prefix),f.provider!==""&&m.push("iconify--"+f.provider),{data:h,classes:m}}function c(){const l=a();l?l.data!==o.value?.data&&(o.value=l):o.value=null}return s.value?c():Rs(()=>{s.value=!0,c()}),ht(()=>t.icon,c),yi(r),()=>{const l=o.value;if(!l)return Sv(LV,t);let f=t;return l.classes&&(f={...t,class:l.classes.join(" ")}),Sv({...Io,...l.data},f)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),Cv={getAPIConfig:Ju,setAPIModule:qb,sendAPIQuery:zb,setFetch:nV,getFetch:rV,listAPIProviders:eV},DV=gt({name:"@nuxt/icon",setup(){const t=Ss(),e=eb().icon;Cv.setFetch($fetch.native);const n=[];if(e.provider==="server"){const s=t.app?.baseURL?.replace(/\/$/,"")??"";n.push(s+(e.localApiEndpoint||"/api/_nuxt_icon")),(e.fallbackToApi===!0||e.fallbackToApi==="client-only")&&n.push(e.iconifyApiEndpoint)}else e.provider==="none"?Cv.setFetch(()=>Promise.resolve(new Response)):n.push(e.iconifyApiEndpoint);async function r(s,i){try{const o=await $fetch(n[0]+"/"+i+".json",{query:{icons:s.join(",")}});if(!o||o.prefix!==i||!o.icons)throw new Error("Invalid data"+JSON.stringify(o));return o}catch(o){return console.error("Failed to load custom icons",o),null}}Wb("",{resources:n});for(const s of e.customCollections||[])s&&wV(r,s)}});const NV=()=>{};var Pv={};const Jb=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},MV=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=t[n++];e[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=t[n++],o=t[n++],a=t[n++],c=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{const i=t[n++],o=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return e.join("")},Xb={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<t.length;s+=3){const i=t[s],o=s+1<t.length,a=o?t[s+1]:0,c=s+2<t.length,l=c?t[s+2]:0,f=i>>2,h=(i&3)<<4|a>>4;let d=(a&15)<<2|l>>6,m=l&63;c||(m=64,o||(d=64)),r.push(n[f],n[h],n[d],n[m])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Jb(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):MV(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<t.length;){const i=n[t.charAt(s++)],a=s<t.length?n[t.charAt(s)]:0;++s;const l=s<t.length?n[t.charAt(s)]:64;++s;const h=s<t.length?n[t.charAt(s)]:64;if(++s,i==null||a==null||l==null||h==null)throw new xV;const d=i<<2|a>>4;if(r.push(d),l!==64){const m=a<<4&240|l>>2;if(r.push(m),h!==64){const y=l<<6&192|h;r.push(y)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
20class xV extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const VV=function(t){const e=Jb(t);return Xb.encodeByteArray(e,!0)},zl=function(t){return VV(t).replace(/\./g,"")},Zb=function(t){try{return Xb.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function FV(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const UV=()=>FV().__FIREBASE_DEFAULTS__,$V=()=>{if(typeof process>"u"||typeof Pv>"u")return;const t=Pv.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},jV=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Zb(t[1]);return e&&JSON.parse(e)},Xu=()=>{try{return NV()||UV()||$V()||jV()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},eI=t=>Xu()?.emulatorHosts?.[t],BV=t=>{const e=eI(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},tI=()=>Xu()?.config,nI=t=>Xu()?.[`_${t}`];class HV{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function qV(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",s=t.iat||0,i=t.sub||t.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o={iss:`https://securetoken.google.com/${r}`,aud:r,iat:s,exp:s+3600,auth_time:s,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...t};return[zl(JSON.stringify(n)),zl(JSON.stringify(o)),""].join(".")}function Gt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function WV(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Gt())}function KV(){const t=Xu()?.forceEnvironment;if(t==="node")return!0;if(t==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function GV(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function zV(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function QV(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function YV(){const t=Gt();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function JV(){return!KV()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function XV(){try{return typeof indexedDB=="object"}catch{return!1}}function ZV(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{e(s.error?.message||"")}}catch(n){e(n)}})}const e2="FirebaseError";class Wr extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=e2,Object.setPrototypeOf(this,Wr.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,oc.prototype.create)}}class oc{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,i=this.errors[e],o=i?t2(i,r):"Error",a=`${this.serviceName}: ${o} (${s}).`;return new Wr(s,a,r)}}function t2(t,e){return t.replace(n2,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const n2=/\{\$([^}]+)}/g;function r2(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function fi(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const s of n){if(!r.includes(s))return!1;const i=t[s],o=e[s];if(kv(i)&&kv(o)){if(!fi(i,o))return!1}else if(i!==o)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function kv(t){return t!==null&&typeof t=="object"}function ac(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(s=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(s))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function ca(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[s,i]=r.split("=");e[decodeURIComponent(s)]=decodeURIComponent(i)}}),e}function la(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function s2(t,e){const n=new i2(t,e);return n.subscribe.bind(n)}class i2{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
20ise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let s;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");o2(e,["next","error","complete"])?s=e:s={next:e,error:n,complete:r},s.next===void 0&&(s.next=ph),s.error===void 0&&(s.error=ph),s.complete===void 0&&(s.complete=ph);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function o2(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function ph(){}function rt(t){return t&&t._delegate?t._delegate:t}function cc(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function rI(t){return(await fetch(t,{credentials:"include"})).ok}class hi{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const Ks="[DEFAULT]";class a2{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new HV;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){const n=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(s){if(r)return null;throw s}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(l2(e))try{this.getOrInitializeService({instanceIdentifier:Ks})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:s});r.resolve(i)}catch{}}}}clearInstance(e=Ks){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Ks){return this.instances.has(e)}getOptions(e=Ks){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(e,n){const r=this.normalizeInstanceIdentifier(n),s=this.onInitCallbacks.get(r)??new Set;s.add(e),this.onInitCallbacks.set(r,s);const i=this.instances.get(r);return i&&e(i,r),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:c2(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Ks){return this.component?this.component.multipleInstances?e:Ks:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function c2(t){return t===Ks?void 0:t}function l2(t){return t.instantiationMode==="EAGER"}class u2{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new a2(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}var Oe;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Oe||(Oe={}));const f2={debug:Oe.DEBUG,verbose:Oe.VERBOSE,info:Oe.INFO,warn:Oe.WARN,error:Oe.ERROR,silent:Oe.SILENT},h2=Oe.INFO,d2={[Oe.DEBUG]:"log",[Oe.VERBOSE]:"log",[Oe.INFO]:"info",[Oe.WARN]:"warn",[Oe.ERROR]:"error"},p2=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),s=d2[e];if(s)console[s](`[${r}]  ${t.name}:`,...n);
20else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class jp{constructor(e){this.name=e,this._logLevel=h2,this._logHandler=p2,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Oe))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?f2[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Oe.DEBUG,...e),this._logHandler(this,Oe.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Oe.VERBOSE,...e),this._logHandler(this,Oe.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Oe.INFO,...e),this._logHandler(this,Oe.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Oe.WARN,...e),this._logHandler(this,Oe.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Oe.ERROR,...e),this._logHandler(this,Oe.ERROR,...e)}}const m2=(t,e)=>e.some(n=>t instanceof n);let Ov,Lv;function g2(){return Ov||(Ov=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function _2(){return Lv||(Lv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const sI=new WeakMap,Rd=new WeakMap,iI=new WeakMap,mh=new WeakMap,Bp=new WeakMap;function y2(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(hs(t.result)),s()},o=()=>{r(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&sI.set(n,t)}).catch(()=>{}),Bp.set(e,t),e}function v2(t){if(Rd.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Rd.set(t,e)}let Sd={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Rd.get(t);if(e==="objectStoreNames")return t.objectStoreNames||iI.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return hs(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function E2(t){Sd=t(Sd)}function w2(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(gh(this),e,...n);return iI.set(r,e.sort?e.sort():[e]),hs(r)}:_2().includes(t)?function(...e){return t.apply(gh(this),e),hs(sI.get(this))}:function(...e){return hs(t.apply(gh(this),e))}}function T2(t){return typeof t=="function"?w2(t):(t instanceof IDBTransaction&&v2(t),m2(t,g2())?new Proxy(t,Sd):t)}function hs(t){if(t instanceof IDBRequest)return y2(t);if(mh.has(t))return mh.get(t);const e=T2(t);return e!==t&&(mh.set(t,e),Bp.set(e,t)),e}const gh=t=>Bp.get(t);function b2(t,e,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=hs(o);return r&&o.addEventListener("upgradeneeded",c=>{r(hs(o.result),c.oldVersion,c.newVersion,hs(o.transaction),c)}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const I2=["get","getKey","getAll","getAllKeys","count"],A2=["put","add","delete","clear"],_h=new Map;function Dv(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(_h.get(e))return _h.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=A2.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||I2.includes(n)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;
20return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),s&&c.done]))[0]};return _h.set(e,i),i}E2(t=>({...t,get:(e,n,r)=>Dv(e,n)||t.get(e,n,r),has:(e,n)=>!!Dv(e,n)||t.has(e,n)}));class R2{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(S2(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function S2(t){return t.getComponent()?.type==="VERSION"}const Cd="@firebase/app",Nv="0.14.12";const $r=new jp("@firebase/app"),C2="@firebase/app-compat",P2="@firebase/analytics-compat",k2="@firebase/analytics",O2="@firebase/app-check-compat",L2="@firebase/app-check",D2="@firebase/auth",N2="@firebase/auth-compat",M2="@firebase/database",x2="@firebase/data-connect",V2="@firebase/database-compat",F2="@firebase/functions",U2="@firebase/functions-compat",$2="@firebase/installations",j2="@firebase/installations-compat",B2="@firebase/messaging",H2="@firebase/messaging-compat",q2="@firebase/performance",W2="@firebase/performance-compat",K2="@firebase/remote-config",G2="@firebase/remote-config-compat",z2="@firebase/storage",Q2="@firebase/storage-compat",Y2="@firebase/firestore",J2="@firebase/ai",X2="@firebase/firestore-compat",Z2="firebase",eF="12.13.0";const Pd="[DEFAULT]",tF={[Cd]:"fire-core",[C2]:"fire-core-compat",[k2]:"fire-analytics",[P2]:"fire-analytics-compat",[L2]:"fire-app-check",[O2]:"fire-app-check-compat",[D2]:"fire-auth",[N2]:"fire-auth-compat",[M2]:"fire-rtdb",[x2]:"fire-data-connect",[V2]:"fire-rtdb-compat",[F2]:"fire-fn",[U2]:"fire-fn-compat",[$2]:"fire-iid",[j2]:"fire-iid-compat",[B2]:"fire-fcm",[H2]:"fire-fcm-compat",[q2]:"fire-perf",[W2]:"fire-perf-compat",[K2]:"fire-rc",[G2]:"fire-rc-compat",[z2]:"fire-gcs",[Q2]:"fire-gcs-compat",[Y2]:"fire-fst",[X2]:"fire-fst-compat",[J2]:"fire-vertex","fire-js":"fire-js",[Z2]:"fire-js-all"};const Ql=new Map,nF=new Map,kd=new Map;function Mv(t,e){try{t.container.addComponent(e)}catch(n){$r.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function lo(t){const e=t.name;if(kd.has(e))return $r.debug(`There were multiple attempts to register component ${e}.`),!1;kd.set(e,t);for(const n of Ql.values())Mv(n,t);for(const n of nF.values())Mv(n,t);return!0}function Hp(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function mn(t){return t==null?!1:t.settings!==void 0}const rF={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
20d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ds=new oc("app","Firebase",rF);class sF{constructor(e,n,r){this._isDeleted=!1,this._options={...e},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new hi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ds.create("app-deleted",{appName:this._name})}}const Ao=eF;function oI(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r={name:Pd,automaticDataCollectionEnabled:!0,...e},s=r.name;if(typeof s!="string"||!s)throw ds.create("bad-app-name",{appName:String(s)});if(n||(n=tI()),!n)throw ds.create("no-options");const i=Ql.get(s);if(i){if(fi(n,i.options)&&fi(r,i.config))return i;throw ds.create("duplicate-app",{appName:s})}const o=new u2(s);for(const c of kd.values())o.addComponent(c);const a=new sF(n,r,o);return Ql.set(s,a),a}function aI(t=Pd){const e=Ql.get(t);if(!e&&t===Pd&&tI())return oI();if(!e)throw ds.create("no-app",{appName:t});return e}function ps(t,e,n){let r=tF[t]??t;n&&(r+=`-${n}`);const s=r.match(/\s|\//),i=e.match(/\s|\//);if(s||i){const o=[`Unable to register library "${r}" with version "${e}":`];s&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&i&&o.push("and"),i&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),$r.warn(o.join(" "));return}lo(new hi(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}const iF="firebase-heartbeat-database",oF=1,Fa="firebase-heartbeat-store";let yh=null;function cI(){return yh||(yh=b2(iF,oF,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Fa)}catch(n){console.warn(n)}}}}).catch(t=>{throw ds.create("idb-open",{originalErrorMessage:t.message})})),yh}async function aF(t){try{const n=(await cI()).transaction(Fa),r=await n.objectStore(Fa).get(lI(t));return await n.done,r}catch(e){if(e instanceof Wr)$r.warn(e.message);else{const n=ds.create("idb-get",{originalErrorMessage:e?.message});$r.warn(n.message)}}}async function xv(t,e){try{const r=(await cI()).transaction(Fa,"readwrite");await r.objectStore(Fa).put(e,lI(t)),await r.done}catch(n){if(n instanceof Wr)$r.warn(n.message);else{const r=ds.create("idb-set",{originalErrorMessage:n?.message});$r.warn(r.message)}}}function lI(t){return`${t.name}!${t.options.appId}`}const cF=1024,lF=30;class uF{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new hF(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Vv();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(s=>s.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>lF){const s=dF(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){$r.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const e=Vv(),{heartbeatsToSend:n,unsentEntries:r}=fF(this._heartbeatsCache.heartbeats),s=zl(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(e){return $r.warn(e),""}}}function Vv(){return new Date().toISOString().substring(0,10)}function fF(t,e=cF){const n=[];let r=t.slice();for(const s of t){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),Fv(n)>e){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),Fv(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class hF{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return XV()?ZV().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await aF(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return xv(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return xv(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}
20function Fv(t){return zl(JSON.stringify({version:2,heartbeats:t})).length}function dF(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}function pF(t){lo(new hi("platform-logger",e=>new R2(e),"PRIVATE")),lo(new hi("heartbeat",e=>new uF(e),"PRIVATE")),ps(Cd,Nv,t),ps(Cd,Nv,"esm2020"),ps("fire-js","")}pF("");var mF="firebase",gF="12.13.0";ps(mF,gF,"app");function uI(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const _F=uI,fI=new oc("auth","Firebase",uI());const Yl=new jp("@firebase/auth");function yF(t,...e){Yl.logLevel<=Oe.WARN&&Yl.warn(`Auth (${Ao}): ${t}`,...e)}function ll(t,...e){Yl.logLevel<=Oe.ERROR&&Yl.error(`Auth (${Ao}): ${t}`,...e)}function Tn(t,...e){throw Wp(t,...e)}function xn(t,...e){return Wp(t,...e)}function qp(t,e,n){const r={..._F(),[e]:n};return new oc("auth","Firebase",r).create(e,{appName:t.name})}function xr(t){return qp(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vF(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&Tn(t,"argument-error"),qp(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Wp(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return fI.create(t,...e)}function fe(t,e,...n){if(!t)throw Wp(e,...n)}function kr(t){const e="INTERNAL ASSERTION FAILED: "+t;throw ll(e),new Error(e)}function jr(t,e){t||kr(e)}function Od(){return typeof self<"u"&&self.location?.href||""}function EF(){return Uv()==="http:"||Uv()==="https:"}function Uv(){return typeof self<"u"&&self.location?.protocol||null}function wF(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(EF()||zV()||"connection"in navigator)?navigator.onLine:!0}function TF(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}class lc{constructor(e,n){this.shortDelay=e,this.longDelay=n,jr(n>e,"Short delay should be less than long delay!"),this.isMobile=WV()||QV()}get(){return wF()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Kp(t,e){jr(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}class hI{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;kr("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;kr("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;kr("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const bF={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
20aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};const IF=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],AF=new lc(3e4,6e4);function dr(t,e){return t.tenantId&&!e.tenantId?{...e,tenantId:t.tenantId}:e}async function Wn(t,e,n,r,s={}){return dI(t,s,async()=>{let i={},o={};r&&(e==="GET"?o=r:i={body:JSON.stringify(r)});const a=ac({key:t.config.apiKey,...o}).slice(1),c=await t._getAdditionalHeaders();c["Content-Type"]="application/json",t.languageCode&&(c["X-Firebase-Locale"]=t.languageCode);const l={method:e,headers:c,...i};return GV()||(l.referrerPolicy="no-referrer"),t.emulatorConfig&&cc(t.emulatorConfig.host)&&(l.credentials="include"),hI.fetch()(await pI(t,t.config.apiHost,n,a),l)})}async function dI(t,e,n){t._canInitEmulator=!1;const r={...bF,...e};try{const s=new SF(t),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw Yc(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[c,l]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw Yc(t,"credential-already-in-use",o);if(c==="EMAIL_EXISTS")throw Yc(t,"email-already-in-use",o);if(c==="USER_DISABLED")throw Yc(t,"user-disabled",o);const f=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw qp(t,f,l);Tn(t,f)}}catch(s){if(s instanceof Wr)throw s;Tn(t,"network-request-failed",{message:String(s)})}}async function uc(t,e,n,r,s={}){const i=await Wn(t,e,n,r,s);return"mfaPendingCredential"in i&&Tn(t,"multi-factor-auth-required",{_serverResponse:i}),i}async function pI(t,e,n,r){const s=`${e}${n}?${r}`,i=t,o=i.config.emulator?Kp(t.config,s):`${t.config.apiScheme}://${s}`;return IF.includes(n)&&(await i._persistenceManagerAvailable,i._getPersistenceType()==="COOKIE")?i._getPersistence()._getFinalTarget(o).toString():o}function RF(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class SF{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(xn(this.auth,"network-request-failed")),AF.get())})}}function Yc(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=xn(t,e,r);return s.customData._tokenResponse=n,s}function $v(t){return t!==void 0&&t.enterprise!==void 0}class CF{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===e)return RF(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function PF(t,e){return Wn(t,"GET","/v2/recaptchaConfig",dr(t,e))}async function kF(t,e){return Wn(t,"POST","/v1/accounts:delete",e)}async function Jl(t,e){return Wn(t,"POST","/v1/accounts:lookup",e)}function wa(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function OF(t,e=!1){const n=rt(t),r=await n.getIdToken(e),s=Zu(r);fe(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i?.sign_in_provider;return{claims:s,token:r,authTime:wa(vh(s.auth_time)),issuedAtTime:wa(vh(s.iat)),expirationTime:wa(vh(s.exp
20)),signInProvider:o||null,signInSecondFactor:i?.sign_in_second_factor||null}}function vh(t){return Number(t)*1e3}function Zu(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return ll("JWT malformed, contained fewer than 3 sections"),null;try{const s=Zb(n);return s?JSON.parse(s):(ll("Failed to decode base64 JWT payload"),null)}catch(s){return ll("Caught error parsing JWT payload as JSON",s?.toString()),null}}function jv(t){const e=Zu(t);return fe(e,"internal-error"),fe(typeof e.exp<"u","internal-error"),fe(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}async function uo(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Wr&&LF(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function LF({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}class DF{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){const n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class Ld{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=wa(this.lastLoginAt),this.creationTime=wa(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Xl(t){const e=t.auth,n=await t.getIdToken(),r=await uo(t,Jl(e,{idToken:n}));fe(r?.users.length,e,"internal-error");const s=r.users[0];t._notifyReloadListener(s);const i=s.providerUserInfo?.length?mI(s.providerUserInfo):[],o=MF(t.providerData,i),a=t.isAnonymous,c=!(t.email&&s.passwordHash)&&!o?.length,l=a?c:!1,f={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:o,metadata:new Ld(s.createdAt,s.lastLoginAt),isAnonymous:l};Object.assign(t,f)}async function NF(t){const e=rt(t);await Xl(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function MF(t,e){return[...t.filter(r=>!e.some(s=>s.providerId===r.providerId)),...e]}function mI(t){return t.map(({providerId:e,...n})=>({providerId:e,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}))}async function xF(t,e){const n=await dI(t,{},async()=>{const r=ac({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:s,apiKey:i}=t.config,o=await pI(t,s,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const c={method:"POST",headers:a,body:r};return t.emulatorConfig&&cc(t.emulatorConfig.host)&&(c.credentials="include"),hI.fetch()(o,c)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function VF(t,e){return Wn(t,"POST","/v2/accounts:revokeToken",dr(t,e))}class Qi{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){fe(e.idToken,"internal-error"),fe(typeof e.idToken<"u","internal-error"),fe(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):jv(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){fe(e.length!==0,"internal-error");const n=jv(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(fe(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}
20async refresh(e,n){const{accessToken:r,refreshToken:s,expiresIn:i}=await xF(e,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new Qi;return r&&(fe(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),s&&(fe(typeof s=="string","internal-error",{appName:e}),o.accessToken=s),i&&(fe(typeof i=="number","internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Qi,this.toJSON())}_performRefresh(){return kr("not implemented")}}function es(t,e){fe(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Nn{constructor({uid:e,auth:n,stsTokenManager:r,...s}){this.providerId="firebase",this.proactiveRefresh=new DF(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new Ld(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await uo(this,this.stsTokenManager.getToken(this.auth,e));return fe(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return OF(this,e)}reload(){return NF(this)}_assign(e){this!==e&&(fe(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>({...n})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Nn({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(e){fe(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Xl(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(mn(this.auth.app))return Promise.reject(xr(this.auth));const e=await this.getIdToken();return await uo(this,kF(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){const r=n.displayName??void 0,s=n.email??void 0,i=n.phoneNumber??void 0,o=n.photoURL??void 0,a=n.tenantId??void 0,c=n._redirectEventId??void 0,l=n.createdAt??void 0,f=n.lastLoginAt??void 0,{uid:h,emailVerified:d,isAnonymous:m,providerData:y,stsTokenManager:_}=n;fe(h&&_,e,"internal-error");const A=Qi.fromJSON(this.name,_);fe(typeof h=="string",e,"internal-error"),es(r,e.name),es(s,e.name),fe(typeof d=="boolean",e,"internal-error"),fe(typeof m=="boolean",e,"internal-error"),es(i,e.name),es(o,e.name),es(a,e.name),es(c,e.name),es(l,e.name),es(f,e.
20name);const w=new Nn({uid:h,auth:e,email:s,emailVerified:d,displayName:r,isAnonymous:m,photoURL:o,phoneNumber:i,tenantId:a,stsTokenManager:A,createdAt:l,lastLoginAt:f});return y&&Array.isArray(y)&&(w.providerData=y.map(R=>({...R}))),c&&(w._redirectEventId=c),w}static async _fromIdTokenResponse(e,n,r=!1){const s=new Qi;s.updateFromServerResponse(n);const i=new Nn({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:r});return await Xl(i),i}static async _fromGetAccountInfoResponse(e,n,r){const s=n.users[0];fe(s.localId!==void 0,"internal-error");const i=s.providerUserInfo!==void 0?mI(s.providerUserInfo):[],o=!(s.email&&s.passwordHash)&&!i?.length,a=new Qi;a.updateFromIdToken(r);const c=new Nn({uid:s.localId,auth:e,stsTokenManager:a,isAnonymous:o}),l={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:i,metadata:new Ld(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!i?.length};return Object.assign(c,l),c}}const Bv=new Map;function Or(t){jr(t instanceof Function,"Expected a class definition");let e=Bv.get(t);return e?(jr(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,Bv.set(t,e),e)}class gI{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}gI.type="NONE";const Hv=gI;function ul(t,e,n){return`firebase:${t}:${e}:${n}`}class Yi{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=ul(this.userKey,s.apiKey,i),this.fullPersistenceKey=ul("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const n=await Jl(this.auth,{idToken:e}).catch(()=>{});return n?Nn._fromGetAccountInfoResponse(this.auth,n,e):null}return Nn._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new Yi(Or(Hv),e,r);const s=(await Promise.all(n.map(async l=>{if(await l._isAvailable())return l}))).filter(l=>l);let i=s[0]||Or(Hv);const o=ul(r,e.config.apiKey,e.name);let a=null;for(const l of n)try{const f=await l._get(o);if(f){let h;if(typeof f=="string"){const d=await Jl(e,{idToken:f}).catch(()=>{});if(!d)break;h=await Nn._fromGetAccountInfoResponse(e,d,f)}else h=Nn._fromJSON(e,f);l!==i&&(a=h),i=l;break}}catch{}const c=s.filter(l=>l._shouldAllowMigration);return!i._shouldAllowMigration||!c.length?new Yi(i,e,r):(i=c[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async l=>{if(l!==i)try{await l._remove(o)}catch{}})),new Yi(i,e,r))}}function qv(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(EI(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(_I(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(TI(e))return"Blackberry";if(bI(e))return"Webos";if(yI(e))return"Safari";if((e.includes("chrome/")||vI(e))&&!e.includes("edge/"))return"Chrome";if(wI(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if(r?.length===2)return r[1]}return"Other"}function _I(t=Gt()){return/firefox\//i.test(t)}function yI(t=Gt()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function vI(t=Gt()){return/crios\//i.test(t)}function EI(t=Gt()){return/iemobile/i.test(t)}function wI(t=Gt()){return/android/i.test(t)}function TI(t=Gt()){return/blackberry/i.test(t)}function bI(t=Gt()){return/webos/i.test(t)}function Gp(t=Gt()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function FF(t=Gt()){return Gp(t)&&!!window.navigator?.standalone}function UF(){return YV()&&document.documentMode===10}function II(t=Gt()){return Gp(t)||wI(t)||bI(t)||TI(t)||/windows phone/i.test(t)||EI(t)}function AI(t,e=[]){let n;switch(t){case"Browser":n=qv(Gt());break;case"Worker":n=`${qv(Gt())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Ao}/${r}`}class $F{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((o,a)=>{try{const c=e(i);o(c)}catch(c){a(c)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}async function jF(t,e={}){return Wn(t,"GET","/v2/passwordPolicy",dr(t,e))}const BF=6;class HF{constructor(e){const n=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??BF,n.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=n.maxPasswordLength),n.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=n.containsLowercaseCharacter),n.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=n.containsUppercaseCharacter),n.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=n.containsNumericCharacter),n.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=n.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const n={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,n),this.validatePasswordCharacterOptions(e,n),n.isValid&&
20(n.isValid=n.meetsMinPasswordLength??!0),n.isValid&&(n.isValid=n.meetsMaxPasswordLength??!0),n.isValid&&(n.isValid=n.containsLowercaseLetter??!0),n.isValid&&(n.isValid=n.containsUppercaseLetter??!0),n.isValid&&(n.isValid=n.containsNumericCharacter??!0),n.isValid&&(n.isValid=n.containsNonAlphanumericCharacter??!0),n}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),s&&(n.meetsMaxPasswordLength=e.length<=s)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s<e.length;s++)r=e.charAt(s),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class qF{constructor(e,n,r,s){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Wv(this),this.idTokenSubscription=new Wv(this),this.beforeStateQueue=new $F(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=fI,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=s.sdkClientVersion,this._persistenceManagerAvailable=new Promise(i=>this._resolvePersistenceManagerAvailable=i)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Or(n)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await Yi.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await Jl(this,{idToken:e}),r=await Nn._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(mn(this.app)){const i=this.app.settings.authIdToken;return i?new Promise(o=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(i).then(o,o))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const i=this.redirectUser?._redirectEventId,o=r?._redirectEventId,a=await this.tryRedirectSignIn(e);(!i||i===o)&&a?.user&&(r=a.user,s=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(r)}catch(i){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(i))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return fe(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Xl(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=TF()}async _delete(){this._deleted=!0}
20async updateCurrentUser(e){if(mn(this.app))return Promise.reject(xr(this));const n=e?rt(e):null;return n&&fe(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&fe(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return mn(this.app)?Promise.reject(xr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return mn(this.app)?Promise.reject(xr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Or(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await jF(this),n=new HF(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new oc("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await VF(this,r)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Or(e)||this._popupRedirectResolver;fe(n,this,"argument-error"),this.redirectPersistenceManager=await Yi.create(this,[Or(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(fe(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const c=e.addObserver(n,r,s);return()=>{o=!0,c()}}else{const c=e.addObserver(n);return()=>{o=!0,c()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return fe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=AI(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const n=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();n&&(e["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(e["X-Firebase-AppCheck"]=r),e}async _getAppCheckToken(){if(mn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&yF(`Error while retrieving App Check token: ${e.error}`),e?.token}}function pr(t){return rt(t)}class Wv{constructor(e){this.auth=e,this.observer=null,this.addObserver=s2(n=>this.observer=n)}get next(){return fe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let ef={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function WF(t){ef=t}function RI(t){return ef.loadJS(t)}function KF(){return ef.recaptchaEnterpriseScript}function GF(){return ef.gapiScript}function zF(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class QF{constructor(){this.enterprise=new YF}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class YF{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}const JF="recaptcha-enterprise",SI="NO_RECAPTCHA";class XF{constructor(e){this.type=JF,this.auth=pr(e)}
20async verify(e="verify",n=!1){async function r(i){if(!n){if(i.tenantId==null&&i._agentRecaptchaConfig!=null)return i._agentRecaptchaConfig.siteKey;if(i.tenantId!=null&&i._tenantRecaptchaConfigs[i.tenantId]!==void 0)return i._tenantRecaptchaConfigs[i.tenantId].siteKey}return new Promise(async(o,a)=>{PF(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(c=>{if(c.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const l=new CF(c);return i.tenantId==null?i._agentRecaptchaConfig=l:i._tenantRecaptchaConfigs[i.tenantId]=l,o(l.siteKey)}}).catch(c=>{a(c)})})}function s(i,o,a){const c=window.grecaptcha;$v(c)?c.enterprise.ready(()=>{c.enterprise.execute(i,{action:e}).then(l=>{o(l)}).catch(()=>{o(SI)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new QF().execute("siteKey",{action:"verify"}):new Promise((i,o)=>{r(this.auth).then(a=>{if(!n&&$v(window.grecaptcha))s(a,i,o);else{if(typeof window>"u"){o(new Error("RecaptchaVerifier is only supported in browser"));return}let c=KF();c.length!==0&&(c+=a),RI(c).then(()=>{s(a,i,o)}).catch(l=>{o(l)})}}).catch(a=>{o(a)})})}}async function Kv(t,e,n,r=!1,s=!1){const i=new XF(t);let o;if(s)o=SI;else try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const a={...e};if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){const c=a.phoneEnrollmentInfo.phoneNumber,l=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:c,recaptchaToken:l,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const c=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:c,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Zl(t,e,n,r,s){if(t._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Kv(t,e,n,n==="getOobCode");return r(t,i)}else return r(t,e).catch(async i=>{if(i.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const o=await Kv(t,e,n,n==="getOobCode");return r(t,o)}else return Promise.reject(i)})}function ZF(t,e){const n=Hp(t,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(fi(i,e??{}))return s;Tn(s,"already-initialized")}return n.initialize({options:e})}function eU(t,e){const n=e?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Or);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}function CI(t,e,n){const r=pr(t);
20fe(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const s=!!n?.disableWarnings,i=PI(e),{host:o,port:a}=tU(e),c=a===null?"":`:${a}`,l={url:`${i}//${o}${c}/`},f=Object.freeze({host:o,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:s})});if(!r._canInitEmulator){fe(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),fe(fi(l,r.config.emulator)&&fi(f,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=l,r.emulatorConfig=f,r.settings.appVerificationDisabledForTesting=!0,cc(o)?rI(`${i}//${o}${c}`):s||nU()}function PI(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function tU(t){const e=PI(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const i=s[1];return{host:i,port:Gv(r.substr(i.length+1))}}else{const[i,o]=r.split(":");return{host:i,port:Gv(o)}}}function Gv(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function nU(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}class zp{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return kr("not implemented")}_getIdTokenResponse(e){return kr("not implemented")}_linkToIdToken(e,n){return kr("not implemented")}_getReauthenticationResolver(e){return kr("not implemented")}}async function kI(t,e){return Wn(t,"POST","/v1/accounts:resetPassword",dr(t,e))}async function rU(t,e){return Wn(t,"POST","/v1/accounts:signUp",e)}async function sU(t,e){return uc(t,"POST","/v1/accounts:signInWithPassword",dr(t,e))}async function OI(t,e){return Wn(t,"POST","/v1/accounts:sendOobCode",dr(t,e))}async function iU(t,e){return OI(t,e)}async function oU(t,e){return OI(t,e)}async function aU(t,e){return uc(t,"POST","/v1/accounts:signInWithEmailLink",dr(t,e))}async function cU(t,e){return uc(t,"POST","/v1/accounts:signInWithEmailLink",dr(t,e))}class Ua extends zp{constructor(e,n,r,s=null){super("password",r),this._email=e,this._password=n,this._tenantId=s}static _fromEmailAndPassword(e,n){return new Ua(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new Ua(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n?.email&&n?.password){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Zl(e,n,"signInWithPassword",sU);case"emailLink":return aU(e,{email:this._email,oobCode:this._password});default:Tn(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Zl(e,r,"signUpPassword",rU);case"emailLink":return cU(e,{idToken:n,email:this._email,oobCode:this._password});default:Tn(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ji(t,e){return uc(t,"POST","/v1/accounts:signInWithIdp",dr(t,e))}const lU="http://localhost";class di extends zp{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new di(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
20(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Tn("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:s,...i}=n;if(!r||!s)return null;const o=new di(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return Ji(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Ji(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Ji(e,n)}buildRequest(){const e={requestUri:lU,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=ac(n)}return e}}function uU(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function fU(t){const e=ca(la(t)).link,n=e?ca(la(e)).deep_link_id:null,r=ca(la(t)).deep_link_id;return(r?ca(la(r)).link:null)||r||n||e||t}class Qp{constructor(e){const n=ca(la(e)),r=n.apiKey??null,s=n.oobCode??null,i=uU(n.mode??null);fe(r&&s&&i,"argument-error"),this.apiKey=r,this.operation=i,this.code=s,this.continueUrl=n.continueUrl??null,this.languageCode=n.lang??null,this.tenantId=n.tenantId??null}static parseLink(e){const n=fU(e);try{return new Qp(n)}catch{return null}}}class Ro{constructor(){this.providerId=Ro.PROVIDER_ID}static credential(e,n){return Ua._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=Qp.parseLink(n);return fe(r,"argument-error"),Ua._fromEmailAndCode(e,r.code,r.tenantId)}}Ro.PROVIDER_ID="password";Ro.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Ro.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Yp{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class fc extends Yp{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class ss extends fc{constructor(){super("facebook.com")}static credential(e){return di._fromParams({providerId:ss.PROVIDER_ID,signInMethod:ss.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ss.credentialFromTaggedObject(e)}static credentialFromError(e){return ss.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return ss.credential(e.oauthAccessToken)}catch{return null}}}ss.FACEBOOK_SIGN_IN_METHOD="facebook.com";ss.PROVIDER_ID="facebook.com";class Rr extends fc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return di._fromParams({providerId:Rr.PROVIDER_ID,signInMethod:Rr.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Rr.credentialFromTaggedObject(e)}static credentialFromError(e){return Rr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Rr.credential(n,r)}catch{return null}}}Rr.GOOGLE_SIGN_IN_METHOD="google.com";Rr.PROVIDER_ID="google.com";class is extends fc{constructor(){super("github.com")}static credential(e){return di._fromParams({providerId:is.PROVIDER_ID,signInMethod:is.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return is.credentialFromTaggedObject(e)}static credentialFromError(e){return is.credentialFromTaggedObject(e.customData||{})}
20static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return is.credential(e.oauthAccessToken)}catch{return null}}}is.GITHUB_SIGN_IN_METHOD="github.com";is.PROVIDER_ID="github.com";class os extends fc{constructor(){super("twitter.com")}static credential(e,n){return di._fromParams({providerId:os.PROVIDER_ID,signInMethod:os.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return os.credentialFromTaggedObject(e)}static credentialFromError(e){return os.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return os.credential(n,r)}catch{return null}}}os.TWITTER_SIGN_IN_METHOD="twitter.com";os.PROVIDER_ID="twitter.com";async function hU(t,e){return uc(t,"POST","/v1/accounts:signUp",dr(t,e))}class pi{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,s=!1){const i=await Nn._fromIdTokenResponse(e,r,s),o=zv(r);return new pi({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const s=zv(r);return new pi({user:e,providerId:s,_tokenResponse:r,operationType:n})}}function zv(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}class eu extends Wr{constructor(e,n,r,s){super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,eu.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,s){return new eu(e,n,r,s)}}function LI(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?eu._fromErrorAndOperation(t,i,e,r):i})}async function dU(t,e,n=!1){const r=await uo(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return pi._forOperation(t,"link",r)}async function pU(t,e,n=!1){const{auth:r}=t;if(mn(r.app))return Promise.reject(xr(r));const s="reauthenticate";try{const i=await uo(t,LI(r,s,e,t),n);fe(i.idToken,r,"internal-error");const o=Zu(i.idToken);fe(o,r,"internal-error");const{sub:a}=o;return fe(t.uid===a,r,"user-mismatch"),pi._forOperation(t,s,i)}catch(i){throw i?.code==="auth/user-not-found"&&Tn(r,"user-mismatch"),i}}async function DI(t,e,n=!1){if(mn(t.app))return Promise.reject(xr(t));const r="signIn",s=await LI(t,r,e),i=await pi._fromIdTokenResponse(t,r,s);return n||await t._updateCurrentUser(i.user),i}async function mU(t,e){return DI(pr(t),e)}class Jp{constructor(e,n){this.factorId=e,this.uid=n.mfaEnrollmentId,this.enrollmentTime=new Date(n.enrolledAt).toUTCString(),this.displayName=n.displayName}static _fromServerResponse(e,n){return"phoneInfo"in n?Xp._fromServerResponse(e,n):"totpInfo"in n?Zp._fromServerResponse(e,n):Tn(e,"internal-error")}}class Xp extends Jp{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,n){return new Xp(n)}}class Zp extends Jp{constructor(e){super("totp",e)}static _fromServerResponse(e,n){return new Zp(n)}}function NI(t,e,n){fe(n.url?.length>0,t,"invalid-continue-uri"),fe(typeof n.dynamicLinkDomain>"u"||n.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),fe(typeof n.linkDomain>"u"||n.linkDomain.length>0,t,"invalid-hosting-link-domain"),e.continueUrl=n.url,e.dynamicLinkDomain=n.dynamicLinkDomain,e.linkDomain=n.linkDomain,e.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(fe(n.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),e.iOSBundleId=n.iOS.bundleId),n.android&&(fe(n.android.packageName.length>0,t,"missing-android-pkg-name"),e.androidInstallApp=n.android.installApp,e.androidMinimumVersionCode=n.android.minimumVersion,e.androidPackageName=n.android.packageName)}async function em(t){const e=pr(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function gU(t,e,n){const r=pr(t),s={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};
20n&&NI(r,s,n),await Zl(r,s,"getOobCode",oU)}async function _U(t,e,n){await kI(rt(t),{oobCode:e,newPassword:n}).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&em(t),r})}async function yU(t,e){const n=rt(t),r=await kI(n,{oobCode:e}),s=r.requestType;switch(fe(s,n,"internal-error"),s){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":fe(r.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":fe(r.mfaInfo,n,"internal-error");default:fe(r.email,n,"internal-error")}let i=null;return r.mfaInfo&&(i=Jp._fromServerResponse(pr(n),r.mfaInfo)),{data:{email:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.newEmail:r.email)||null,previousEmail:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.email:r.newEmail)||null,multiFactorInfo:i},operation:s}}async function vU(t,e){const{data:n}=await yU(rt(t),e);return n.email}async function MI(t,e,n){if(mn(t.app))return Promise.reject(xr(t));const r=pr(t),o=await Zl(r,{returnSecureToken:!0,email:e,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",hU).catch(c=>{throw c.code==="auth/password-does-not-meet-requirements"&&em(t),c}),a=await pi._fromIdTokenResponse(r,"signIn",o);return await r._updateCurrentUser(a.user),a}function xI(t,e,n){return mn(t.app)?Promise.reject(xr(t)):mU(rt(t),Ro.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&em(t),r})}async function EU(t,e){const n=rt(t),s={requestType:"VERIFY_EMAIL",idToken:await t.getIdToken()};e&&NI(n.auth,s,e);const{email:i}=await iU(n.auth,s);i!==t.email&&await t.reload()}async function wU(t,e){return Wn(t,"POST","/v1/accounts:update",e)}async function TU(t,{displayName:e,photoURL:n}){if(e===void 0&&n===void 0)return;const r=rt(t),i={idToken:await r.getIdToken(),displayName:e,photoUrl:n,returnSecureToken:!0},o=await uo(r,wU(r.auth,i));r.displayName=o.displayName||null,r.photoURL=o.photoUrl||null;const a=r.providerData.find(({providerId:c})=>c==="password");a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(o)}function bU(t){if(!t)return null;const{providerId:e}=t,n=t.rawUserInfo?JSON.parse(t.rawUserInfo):{},r=t.isNewUser||t.kind==="identitytoolkit#SignupNewUserResponse";if(!e&&t?.idToken){const s=Zu(t.idToken)?.firebase?.sign_in_provider;if(s){const i=s!=="anonymous"&&s!=="custom"?s:null;return new Xi(r,i)}}if(!e)return null;switch(e){case"facebook.com":return new IU(r,n);case"github.com":return new AU(r,n);case"google.com":return new RU(r,n);case"twitter.com":return new SU(r,n,t.screenName||null);case"custom":case"anonymous":return new Xi(r,null);default:return new Xi(r,e,n)}}class Xi{constructor(e,n,r={}){this.isNewUser=e,this.providerId=n,this.profile=r}}class VI extends Xi{constructor(e,n,r,s){super(e,n,r),this.username=s}}class IU extends Xi{constructor(e,n){super(e,"facebook.com",n)}}class AU extends VI{constructor(e,n){super(e,"github.com",n,typeof n?.login=="string"?n?.login:null)}}class RU extends Xi{constructor(e,n){super(e,"google.com",n)}}class SU extends VI{constructor(e,n,r){super(e,"twitter.com",n,r)}}function Eh(t){const{user:e,_tokenResponse:n}=t;return e.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:bU(n)}function CU(t,e,n,r){return rt(t).onIdTokenChanged(e,n,r)}function PU(t,e,n){return rt(t).beforeAuthStateChanged(e,n)}function kU(t,e,n,r){return rt(t).onAuthStateChanged(e,n,r)}function OU(t){return rt(t).signOut()}const tu="__sak";class FI{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(tu,"1"),this.storage.removeItem(tu),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}const LU=1e3,DU=10;class UI extends FI{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=II(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&e(n,s,r)}}
20onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,c)=>{this.notifyListeners(o,c)});return}const r=e.key;n?this.detachListener():this.stopPolling();const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);UF()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(s,DU):s()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},LU)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
20ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}UI.type="LOCAL";const NU=UI;class $I extends FI{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}$I.type="SESSION";const jI=$I;function MU(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}class tf{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(s=>s.isListeningto(e));if(n)return n;const r=new tf(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:s,data:i}=n.data,o=this.handlersMap[s];if(!o?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(o).map(async l=>l(n.origin,i)),c=await MU(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:c})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}tf.receivers=[];function tm(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}class xU{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let i,o;return new Promise((a,c)=>{const l=tm("",20);s.port1.start();const f=setTimeout(()=>{c(new Error("unsupported_event"))},r);o={messageChannel:s,onMessage(h){const d=h;if(d.data.eventId===l)switch(d.data.status){case"ack":clearTimeout(f),i=setTimeout(()=>{c(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(d.data.response);break;default:clearTimeout(f),clearTimeout(i),c(new Error("invalid_response"));break}}},this.handlers.add(o),s.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:n},[s.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}function ir(){return window}function VU(t){ir().location.href=t}function BI(){return typeof ir().WorkerGlobalScope<"u"&&typeof ir().importScripts=="function"}async function FU(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function UU(){return navigator?.serviceWorker?.controller||null}function $U(){return BI()?self:null}const HI="firebaseLocalStorageDb",jU=1,nu="firebaseLocalStorage",qI="fbase_key";class hc{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function nf(t,e){return t.transaction([nu],e?"readwrite":"readonly").objectStore(nu)}function BU(){const t=indexedDB.deleteDatabase(HI);return new hc(t).toPromise()}function Dd(){const t=indexedDB.open(HI,jU);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(nu,{keyPath:qI})}catch(s){n(s)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(nu)?e(r):(r.close(),await BU(),e(await Dd()))})})}async function Qv(t,e,n){const r=nf(t,!0).put({[qI]:e,value:n});return new hc(r).toPromise()}async function HU(t,e){const n=nf(t,!1).get(e),r=await new hc(n).toPromise();return r===void 0?null:r.value}function Yv(t,e){const n=nf(t,!0).delete(e);return new hc(n).toPromise()}const qU=800,WU=3;class WI{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Dd(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>WU)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return BI()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tf._getInstance($U()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
20)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await FU(),!this.activeServiceWorker)return;this.sender=new xU(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||UU()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Dd();return await Qv(e,tu,"1"),await Yv(e,tu),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>Qv(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>HU(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>Yv(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(s=>{const i=nf(s,!1).getAll();return new hc(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:s,value:i}of e)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(i)&&(this.notifyListeners(s,i),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),qU)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
20ject.keys(this.listeners).length===0&&this.stopPolling()}}WI.type="LOCAL";const KU=WI;new lc(3e4,6e4);function KI(t,e){return e?Or(e):(fe(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}class nm extends zp{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ji(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Ji(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Ji(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function GU(t){return DI(t.auth,new nm(t),t.bypassAuthState)}function zU(t){const{auth:e,user:n}=t;return fe(n,e,"internal-error"),pU(n,new nm(t),t.bypassAuthState)}async function QU(t){const{auth:e,user:n}=t;return fe(n,e,"internal-error"),dU(n,new nm(t),t.bypassAuthState)}class GI{constructor(e,n,r,s,i=!1){this.auth=e,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=e;if(o){this.reject(o);return}const c={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(c))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return GU;case"linkViaPopup":case"linkViaRedirect":return QU;case"reauthViaPopup":case"reauthViaRedirect":return zU;default:Tn(this.auth,"internal-error")}}resolve(e){jr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){jr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const YU=new lc(2e3,1e4);async function JU(t,e,n){if(mn(t.app))return Promise.reject(xn(t,"operation-not-supported-in-this-environment"));const r=pr(t);vF(t,e,Yp);const s=KI(r,n);return new Js(r,"signInViaPopup",e,s).executeNotNull()}class Js extends GI{constructor(e,n,r,s,i){super(e,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,Js.currentPopupAction&&Js.currentPopupAction.cancel(),Js.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return fe(e,this.auth,"internal-error"),e}async onExecution(){jr(this.filter.length===1,"Popup operations only handle one event");const e=tm();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(xn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(xn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Js.currentPopupAction=null}pollUserCancellation(){const e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(xn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,YU.get())};e()}}Js.currentPopupAction=null;const XU="pendingRedirect",fl=new Map;class ZU extends GI{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=fl.get(this.auth._key());if(!e){try{const r=await e4(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}fl.set(this.auth._key(),e)}return this.bypassAuthState||fl.set(this.auth._key(),()=>Promise.resolve(null)),e()}
20async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function e4(t,e){const n=r4(e),r=n4(t);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function t4(t,e){fl.set(t._key(),e)}function n4(t){return Or(t._redirectPersistence)}function r4(t){return ul(XU,t.config.apiKey,t.name)}async function s4(t,e,n=!1){if(mn(t.app))return Promise.reject(xr(t));const r=pr(t),s=KI(r,e),o=await new ZU(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}const i4=600*1e3;class o4{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!a4(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){if(e.error&&!zI(e)){const r=e.error.code?.split("auth/")[1]||"internal-error";n.onError(xn(this.auth,r))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=i4&&this.cachedEventUids.clear(),this.cachedEventUids.has(Jv(e))}saveEventToCache(e){this.cachedEventUids.add(Jv(e)),this.lastProcessedEventTime=Date.now()}}function Jv(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function zI({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function a4(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return zI(t);default:return!1}}async function c4(t,e={}){return Wn(t,"GET","/v1/projects",e)}const l4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,u4=/^https?/;async function f4(t){if(t.config.emulator)return;const{authorizedDomains:e}=await c4(t);for(const n of e)try{if(h4(n))return}catch{}Tn(t,"unauthorized-domain")}function h4(t){const e=Od(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!u4.test(n))return!1;if(l4.test(t))return r===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}const d4=new lc(3e4,6e4);function Xv(){const t=ir().___jsl;if(t?.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function p4(t){return new Promise((e,n)=>{function r(){Xv(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Xv(),n(xn(t,"network-request-failed"))},timeout:d4.get()})}if(ir().gapi?.iframes?.Iframe)e(gapi.iframes.getContext());else if(ir().gapi?.load)r();else{const s=zF("iframefcb");return ir()[s]=()=>{gapi.load?r():n(xn(t,"network-request-failed"))},RI(`${GF()}?onload=${s}`).catch(i=>n(i))}}).catch(e=>{throw hl=null,e})}let hl=null;function m4(t){return hl=hl||p4(t),hl}const g4=new lc(5e3,15e3),_4="__/auth/iframe",y4="emulator/auth/iframe",v4={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},E4=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function w4(t){const e=t.config;fe(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?Kp(e,y4):`https://${t.config.authDomain}/${_4}`,r={apiKey:e.apiKey,appName:t.name,v:Ao},s=E4.get(t.config.apiHost);s&&(r.eid=s);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${ac(r).slice(1)}`}async function T4(t){const e=await m4(t),n=ir().gapi;return fe(n,t,"internal-error"),e.open({where:document.body,url:w4(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:v4,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=xn(t,"network-request-failed"),a=ir().setTimeout(()=>{i(o)},g4.get());
20function c(){ir().clearTimeout(a),s(r)}r.ping(c).then(c,()=>{i(o)})}))}const b4={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},I4=500,A4=600,R4="_blank",S4="http://localhost";class Zv{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function C4(t,e,n,r=I4,s=A4){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c={...b4,width:r.toString(),height:s.toString(),top:i,left:o},l=Gt().toLowerCase();n&&(a=vI(l)?R4:n),_I(l)&&(e=e||S4,c.scrollbars="yes");const f=Object.entries(c).reduce((d,[m,y])=>`${d}${m}=${y},`,"");if(FF(l)&&a!=="_self")return P4(e||"",a),new Zv(null);const h=window.open(e||"",a,f);fe(h,t,"popup-blocked");try{h.focus()}catch{}return new Zv(h)}function P4(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}const k4="__/auth/handler",O4="emulator/auth/handler",L4=encodeURIComponent("fac");async function e0(t,e,n,r,s,i){fe(t.config.authDomain,t,"auth-domain-config-required"),fe(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Ao,eventId:s};if(e instanceof Yp){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",r2(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[f,h]of Object.entries({}))o[f]=h}if(e instanceof fc){const f=e.getScopes().filter(h=>h!=="");f.length>0&&(o.scopes=f.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const f of Object.keys(a))a[f]===void 0&&delete a[f];const c=await t._getAppCheckToken(),l=c?`#${L4}=${encodeURIComponent(c)}`:"";return`${D4(t)}?${ac(a).slice(1)}${l}`}function D4({config:t}){return t.emulator?Kp(t,O4):`https://${t.authDomain}/${k4}`}const wh="webStorageSupport";class N4{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=jI,this._completeRedirectFn=s4,this._overrideRedirectResult=t4}
20async _openPopup(e,n,r,s){jr(this.eventManagers[e._key()]?.manager,"_initialize() not called before _openPopup()");const i=await e0(e,n,r,Od(),s);return C4(e,i,tm())}async _openRedirect(e,n,r,s){await this._originValidation(e);const i=await e0(e,n,r,Od(),s);return VU(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(jr(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await T4(e),r=new o4(e);return n.register("authEvent",s=>(fe(s?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(wh,{type:wh},s=>{const i=s?.[0]?.[wh];i!==void 0&&n(!!i),Tn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=f4(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return II()||yI()||Gp()}}const M4=N4;var t0="@firebase/auth",n0="1.13.1";class x4{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){fe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function V4(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function F4(t){lo(new hi("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;fe(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:AI(t)},l=new qF(r,s,i,c);return eU(l,n),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),lo(new hi("auth-internal",e=>{const n=pr(e.getProvider("auth").getImmediate());return(r=>new x4(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ps(t0,n0,V4(t)),ps(t0,n0,"esm2020")}const U4=300,$4=nI("authIdTokenMaxAge")||U4;let r0=null;const j4=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>$4)return;const s=n?.token;r0!==s&&(r0=s,await fetch(t,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function B4(t=aI()){const e=Hp(t,"auth");if(e.isInitialized())return e.getImmediate();const n=ZF(t,{popupRedirectResolver:M4,persistence:[KU,NU,jI]}),r=nI("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const o=j4(i.toString());PU(n,o,()=>o(n.currentUser)),CU(n,a=>o(a))}}const s=eI("auth");return s&&CI(n,`http://${s}`),n}function H4(){return document.getElementsByTagName("head")?.[0]??document}WF({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=s=>{const i=xn("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",H4().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});F4("Browser");var s0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var ms,QI;(function(){var t;function e(E,T){function b(){}b.prototype=T.prototype,E.F=T.prototype,E.prototype=new b,E.prototype.constructor=E,E.D=function(S,O,L){for(var k=Array(arguments.length-2),ce=2;ce<arguments.length;ce++)k[ce-2]=arguments[ce];return T.prototype[O].apply(S,k)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}e(r,n),r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function s(E,T,b){b||(b=0);const S=Array(16);if(typeof T=="string")for(var O=0;O<16;++O)S[O]=T.charCodeAt(b++)|T.charCodeAt(b++)<<8|T.charCodeAt(b++)<<16|T.charCodeAt(b++)<<24;else for(O=0;O<16;++O)S[O]=T[b++]|T[b++]<<8|T[b++]<<16|T[b++]<<24;T=E.g[0],b=E.g[1],O=E.g[2];let L=E.g[3],k;k=T+(L^b&(O^L))+S[0]+3614090360&4294967295,T=b+(k<<7&4294967295|k>>>25),k=L+(O^T&(b^O))+S[1]+3905402710&4294967295,L=T+(k<<12&4294967295|k>>>20),k=O+(b^L&(T^b))+S[2]+606105819&4294967295,O=L+(k<<17&4294967295|k>>>15),k=b+(T^O&(L^T))+S[3]+3250441966&4294967295,b=O+(k<<22&4294967295|k>>>10),k=T+(L^b&(O^L))+S[4]+4118548399&4294967295,T=b+(k<<7&4294967295|k>>>25),k=L+(O^T&(b^O))+S[5]+1200080426&4294967295,L=T+(k<<12&4294967295|k>>>20),k=O+(b^L&(T^b))+S[6]+2821735955&4294967295,O=L+(k<<17&4294967295|k>>>15),k=b+(T^O&(L^T))+S[7]+4249261313&4294967295,b=O+(k<<22&4294967295|k>>>10),k=T+(L^b&(O^L))+S[8]+1770035416&4294967295,T=b+(k<<7&4294967295|k>>>25),k=L+(O^T&(b^O))+S[9]+2336552879&4294967295,L=T+(k<<12&4294967295|k>>>20),k=O+(b^L&(T^b))+S[10]+4294925233&4294967295,O=L+(k<<17&4294967295|k>>>15),k=b+(T^O&(L^T))+S[11]+2304563134&4294967295,b=O+(k<<22&4294967295|k>>>10),k=T+(L^b&(O^L))+S[12]+1804603682&4294967295,T=b+(k<<7&4294967295|k>>>25),k=L+(O^T&(b^O))+S[13]+4254626195&4294967295,L=T+(k<<12&4294967295|k>>>20),k=O+(b^L&(T^b))+S[14]+2792965006&4294967295,O=L+(k<<17&4294967295|k>>>15),k=b+(T^O&(L^T))+S[15]+1236535329&4294967295,b=O+(k<<22&4294967295|k>>>10),k=T+(O^L&(b^O))+S[1]+4129170786&4294967295,T=b+(k<<5&4294967295|k>>>27),k=L+(b^O&(T^b))+S[6]+3225465664&4294967295,L=T+(k<<9&4294967295|k>>>23),k=O+(T^b&(L^T))+S[11]+643717713&4294967295,O=L+(k<<14&4294967295|k>>>18),k=b+(L^T&(O^L))+S[0]+3921069994&4294967295,b=O+(k<<20&4294967295|k>>>12),k=T+(O^L&(b^O))+S[5]+3593408605&4294967295,T=b+(k<<5&4294967295|k>>>27),k=L+(b^O&(T^b))+S[10]+38016083&4294967295,L=T+(k<<9&4294967295|k>>>23),k=O+(T^b&(L^T))+S[15]+3634488961&4294967295,O=L+(k<<14&4294967295|k>>>18),k=b+(L^T&(O^L))+S[4]+3889429448&4294967295,b=O+(k<<20&4294967295|k>>>12),k=T+(O^L&(b^O))+S[9]+568446438&4294967295,T=b+(k<<5&4294967295|k>>>27),k=L+(b^O&(T^b))+S[14]+3275163606&4294967295,L=T+(k<<9&4294967295|k>>>23),k=O+(T^b&(L^T))+S[3]+4107603335&4294967295,O=L+(k<<14&4294967295|k>>>18),k=b+(L^T&(O^L))+S[8]+1163531501&4294967295,b=O+(k<<20&4294967295|k>>>12),k=T+(O^L&(b^O))+S[13]+2850285829&4294967295,T=b+(k<<5&4294967295|k>>>27),k=L+(b^O&(T^b))+S[2]+4243563512&4294967295,L=T+(k<<9&4294967295|k>>>23),k=O+(T^b&(L^T))+S[7]+1735328473&4294967295,O=L+(k<<14&4294967295|k>>>18),k=b+(L^T&(O^L))+S[12]+2368359562&4294967295,b=O+(k<<20&4294967295|k>>>12),k=T+(b^O^L)+S[5]+4294588738&4294967295,T=b+(k<<4&4294967295|k>>>28),k=L+(T^b^O)+S[8]+2272392833&4294967295,L=T+(k<<11&4294967295|k>>>21),k=O+(L^T^b)+S[11]+1839030562&4294967295,O=L+(k<<16&4294967295|k>>>16),k=b+(O^L^T)+S[14]+4259657740&4294967295,b=O+(k<<23&4294967295|k>>>9),k=T+(b^O^L)+S[1]+2763975236&4294967295,T=b+(k<<4&4294967295|k>>>28),k=L+(T^b^O)+S[4]+1272893353&4294967295,L=T+(k<<11&4294967295|k>>>21),k=O+(L^T^b)+S[7]+4139469664&4294967295,O=L+(k<<16&4294967295|k>>>16),k=b+(O^L^T)+S[10]+3200236656&4294967295,b=O+(k<<23&4294967295|k>>>9),k=T+(b^O^L)+S[13]+681279174&4294967295,T=b+(k<<4&4294967295|k>>>28),k=L+(T^b^O)+S[0]+3936430074&4294967295,L=T+(k<<11&4294967295|k>>>21),k=O+(L^T^b)+S[3]+3572445317&4294967295,O=L+(k<<16&4294967295|k>>>16),k=b+(O^L^T)+S[6]+76029189&4294967295,b=O+(k<<23&4294967295|k>>>9),k=T+(b^O^L)+S[9]+3654602809&4294967295,T=b+(k<<4&4294967295|k>>>28),k=L+(T^b^O)+S[12]+3873151461&4294967295,L=T+(k<<11&4294967295|k>>>21),k=O+(L^T^b)+S[15]+530742520&4294967295,O=L+(k<<16&4294967295|k>>>16),k=b+(O^L^T)+S[2]+3299628645&4294967295,b=O+(k<<23&4294967295|k>>>9),k=T+(O^(b|~L))+S[0]+4096336452&4294967295,T=b+(k<<6&4294967295|k>>>
2026),k=L+(b^(T|~O))+S[7]+1126891415&4294967295,L=T+(k<<10&4294967295|k>>>22),k=O+(T^(L|~b))+S[14]+2878612391&4294967295,O=L+(k<<15&4294967295|k>>>17),k=b+(L^(O|~T))+S[5]+4237533241&4294967295,b=O+(k<<21&4294967295|k>>>11),k=T+(O^(b|~L))+S[12]+1700485571&4294967295,T=b+(k<<6&4294967295|k>>>26),k=L+(b^(T|~O))+S[3]+2399980690&4294967295,L=T+(k<<10&4294967295|k>>>22),k=O+(T^(L|~b))+S[10]+4293915773&4294967295,O=L+(k<<15&4294967295|k>>>17),k=b+(L^(O|~T))+S[1]+2240044497&4294967295,b=O+(k<<21&4294967295|k>>>11),k=T+(O^(b|~L))+S[8]+1873313359&4294967295,T=b+(k<<6&4294967295|k>>>26),k=L+(b^(T|~O))+S[15]+4264355552&4294967295,L=T+(k<<10&4294967295|k>>>22),k=O+(T^(L|~b))+S[6]+2734768916&4294967295,O=L+(k<<15&4294967295|k>>>17),k=b+(L^(O|~T))+S[13]+1309151649&4294967295,b=O+(k<<21&4294967295|k>>>11),k=T+(O^(b|~L))+S[4]+4149444226&4294967295,T=b+(k<<6&4294967295|k>>>26),k=L+(b^(T|~O))+S[11]+3174756917&4294967295,L=T+(k<<10&4294967295|k>>>22),k=O+(T^(L|~b))+S[2]+718787259&4294967295,O=L+(k<<15&4294967295|k>>>17),k=b+(L^(O|~T))+S[9]+3951481745&4294967295,E.g[0]=E.g[0]+T&4294967295,E.g[1]=E.g[1]+(O+(k<<21&4294967295|k>>>11))&4294967295,E.g[2]=E.g[2]+O&4294967295,E.g[3]=E.g[3]+L&4294967295}r.prototype.v=function(E,T){T===void 0&&(T=E.length);const b=T-this.blockSize,S=this.C;let O=this.h,L=0;for(;L<T;){if(O==0)for(;L<=b;)s(this,E,L),L+=this.blockSize;if(typeof E=="string"){for(;L<T;)if(S[O++]=E.charCodeAt(L++),O==this.blockSize){s(this,S),O=0;break}}else for(;L<T;)if(S[O++]=E[L++],O==this.blockSize){s(this,S),O=0;break}}this.h=O,this.o+=T},r.prototype.A=function(){var E=Array((this.h<56?this.blockSize:this.blockSize*2)-this.h);E[0]=128;for(var T=1;T<E.length-8;++T)E[T]=0;T=this.o*8;for(var b=E.length-8;b<E.length;++b)E[b]=T&255,T/=256;for(this.v(E),E=Array(16),T=0,b=0;b<4;++b)for(let S=0;S<32;S+=8)E[T++]=this.g[b]>>>S&255;return E};function i(E,T){var b=a;return Object.prototype.hasOwnProperty.call(b,E)?b[E]:b[E]=T(E)}function o(E,T){this.h=T;const b=[];let S=!0;for(let O=E.length-1;O>=0;O--){const L=E[O]|0;S&&L==T||(b[O]=L,S=!1)}this.g=b}var a={};function c(E){return-128<=E&&E<128?i(E,function(T){return new o([T|0],T<0?-1:0)}):new o([E|0],E<0?-1:0)}function l(E){if(isNaN(E)||!isFinite(E))return h;if(E<0)return A(l(-E));const T=[];let b=1;for(let S=0;E>=b;S++)T[S]=E/b|0,b*=4294967296;return new o(T,0)}function f(E,T){if(E.length==0)throw Error("number format error: empty string");if(T=T||10,T<2||36<T)throw Error("radix out of range: "+T);if(E.charAt(0)=="-")return A(f(E.substring(1),T));if(E.indexOf("-")>=0)throw Error('number format error: interior "-" character');const b=l(Math.pow(T,8));let S=h;for(let L=0;L<E.length;L+=8){var O=Math.min(8,E.length-L);const k=parseInt(E.substring(L,L+O),T);O<8?(O=l(Math.pow(T,O)),S=S.j(O).add(l(k))):(S=S.j(b),S=S.add(l(k)))}return S}var h=c(0),d=c(1),m=c(16777216);
20t=o.prototype,t.m=function(){if(_(this))return-A(this).m();let E=0,T=1;for(let b=0;b<this.g.length;b++){const S=this.i(b);E+=(S>=0?S:4294967296+S)*T,T*=4294967296}return E},t.toString=function(E){if(E=E||10,E<2||36<E)throw Error("radix out of range: "+E);if(y(this))return"0";if(_(this))return"-"+A(this).toString(E);const T=l(Math.pow(E,6));var b=this;let S="";for(;;){const O=I(b,T).g;b=w(b,O.j(T));let L=((b.g.length>0?b.g[0]:b.h)>>>0).toString(E);if(b=O,y(b))return L+S;for(;L.length<6;)L="0"+L;S=L+S}},t.i=function(E){return E<0?0:E<this.g.length?this.g[E]:this.h};function y(E){if(E.h!=0)return!1;for(let T=0;T<E.g.length;T++)if(E.g[T]!=0)return!1;return!0}function _(E){return E.h==-1}t.l=function(E){return E=w(this,E),_(E)?-1:y(E)?0:1};function A(E){const T=E.g.length,b=[];for(let S=0;S<T;S++)b[S]=~E.g[S];return new o(b,~E.h).add(d)}t.abs=function(){return _(this)?A(this):this},t.add=function(E){const T=Math.max(this.g.length,E.g.length),b=[];let S=0;for(let O=0;O<=T;O++){let L=S+(this.i(O)&65535)+(E.i(O)&65535),k=(L>>>16)+(this.i(O)>>>16)+(E.i(O)>>>16);S=k>>>16,L&=65535,k&=65535,b[O]=k<<16|L}return new o(b,b[b.length-1]&-2147483648?-1:0)};function w(E,T){return E.add(A(T))}t.j=function(E){if(y(this)||y(E))return h;if(_(this))return _(E)?A(this).j(A(E)):A(A(this).j(E));if(_(E))return A(this.j(A(E)));if(this.l(m)<0&&E.l(m)<0)return l(this.m()*E.m());const T=this.g.length+E.g.length,b=[];for(var S=0;S<2*T;S++)b[S]=0;for(S=0;S<this.g.length;S++)for(let O=0;O<E.g.length;O++){const L=this.i(S)>>>16,k=this.i(S)&65535,ce=E.i(O)>>>16,_e=E.i(O)&65535;b[2*S+2*O]+=k*_e,R(b,2*S+2*O),b[2*S+2*O+1]+=L*_e,R(b,2*S+2*O+1),b[2*S+2*O+1]+=k*ce,R(b,2*S+2*O+1),b[2*S+2*O+2]+=L*ce,R(b,2*S+2*O+2)}for(E=0;E<T;E++)b[E]=b[2*E+1]<<16|b[2*E];for(E=T;E<2*T;E++)b[E]=0;return new o(b,0)};function R(E,T){for(;(E[T]&65535)!=E[T];)E[T+1]+=E[T]>>>16,E[T]&=65535,T++}function v(E,T){this.g=E,this.h=T}function I(E,T){if(y(T))throw Error("division by zero");if(y(E))return new v(h,h);if(_(E))return T=I(A(E),T),new v(A(T.g),A(T.h));if(_(T))return T=I(E,A(T)),new v(A(T.g),T.h);if(E.g.length>30){if(_(E)||_(T))throw Error("slowDivide_ only works with positive integers.");for(var b=d,S=T;S.l(E)<=0;)b=D(b),S=D(S);var O=x(b,1),L=x(S,1);for(S=x(S,2),b=x(b,2);!y(S);){var k=L.add(S);k.l(E)<=0&&(O=O.add(b),L=k),S=x(S,1),b=x(b,1)}return T=w(E,O.j(T)),new v(O,T)}for(O=h;E.l(T)>=0;){for(b=Math.max(1,Math.floor(E.m()/T.m())),S=Math.ceil(Math.log(b)/Math.LN2),S=S<=48?1:Math.pow(2,S-48),L=l(b),k=L.j(T);_(k)||k.l(E)>0;)b-=S,L=l(b),k=L.j(T);y(L)&&(L=d),O=O.add(L),E=w(E,k)}return new v(O,E)}t.B=function(E){return I(this,E).h},t.and=function(E){const T=Math.max(this.g.length,E.g.length),b=[];for(let S=0;S<T;S++)b[S]=this.i(S)&E.i(S);return new o(b,this.h&E.h)},t.or=function(E){const T=Math.max(this.g.length,E.g.length),b=[];for(let S=0;S<T;S++)b[S]=this.i(S)|E.i(S);return new o(b,this.h|E.h)},t.xor=function(E){const T=Math.max(this.g.length,E.g.length),b=[];for(let S=0;S<T;S++)b[S]=this.i(S)^E.i(S);return new o(b,this.h^E.h)};function D(E){const T=E.g.length+1,b=[];for(let S=0;S<T;S++)b[S]=E.i(S)<<1|E.i(S-1)>>>31;return new o(b,E.h)}function x(E,T){const b=T>>5;T%=32;const S=E.g.length-b,O=[];for(let L=0;L<S;L++)O[L]=T>0?E.i(L+b)>>>T|E.i(L+b+1)<<32-T:E.i(L+b);return new o(O,E.h)}r.prototype.digest=r.prototype.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,QI=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.B,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=l,o.fromString=f,ms=o}).apply(typeof s0<"u"?s0:typeof self<"u"?self:typeof window<"u"?window:{});var Jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var YI,ua,JI,dl,Nd,XI,ZI,eA;(function(){var t,e=Object.defineProperty;function n(u){u=[typeof globalThis=="object"&&globalThis,u,typeof window=="object"&&window,typeof self=="object"&&self,typeof Jc=="object"&&Jc];for(var p=0;p<u.length;++p){var g=u[p];if(g&&g.Math==Math)return g}throw Error("Cannot find global object")}var r=n(this);function s(u,p){if(p)e:{var g=r;u=u.split(".");for(var P=0;P<u.length-1;P++){var $=u[P];if(!($ in g))break e;g=g[$]}u=u[u.length-1],P=g[u],p=p(P),p!=P&&p!=null&&e(g,u,{configurable:!0,writable:!0,value:p})}}s("Symbol.dispose",function(u){return u||Symbol("Symbol.dispose")}),s("Array.prototype.values",function(u){return u||function(){return this[Symbol.iterator]()}}),s("Object.entries",function(u){return u||function(p){var g=[],P;for(P in p)Object.prototype.hasOwnProperty.call(p,P)&&g.push([P,p[P]]);return g}});var i=i||{},o=this||self;function a(u){var p=typeof u;return p=="object"&&u!=null||p=="function"}function c(u,p,g){return u.call.apply(u.bind,arguments)}function l(u,p,g){return l=c,l.apply(null,arguments)}
20function f(u,p){var g=Array.prototype.slice.call(arguments,1);return function(){var P=g.slice();return P.push.apply(P,arguments),u.apply(this,P)}}function h(u,p){function g(){}g.prototype=p.prototype,u.Z=p.prototype,u.prototype=new g,u.prototype.constructor=u,u.Ob=function(P,$,q){for(var X=Array(arguments.length-2),Ae=2;Ae<arguments.length;Ae++)X[Ae-2]=arguments[Ae];return p.prototype[$].apply(P,X)}}var d=typeof AsyncContext<"u"&&typeof AsyncContext.Snapshot=="function"?u=>u&&AsyncContext.Snapshot.wrap(u):u=>u;function m(u){const p=u.length;if(p>0){const g=Array(p);for(let P=0;P<p;P++)g[P]=u[P];return g}return[]}function y(u,p){for(let P=1;P<arguments.length;P++){const $=arguments[P];var g=typeof $;if(g=g!="object"?g:$?Array.isArray($)?"array":g:"null",g=="array"||g=="object"&&typeof $.length=="number"){g=u.length||0;const q=$.length||0;u.length=g+q;for(let X=0;X<q;X++)u[g+X]=$[X]}else u.push($)}}class _{constructor(p,g){this.i=p,this.j=g,this.h=0,this.g=null}get(){let p;return this.h>0?(this.h--,p=this.g,this.g=p.next,p.next=null):p=this.i(),p}}function A(u){o.setTimeout(()=>{throw u},0)}function w(){var u=E;let p=null;return u.g&&(p=u.g,u.g=u.g.next,u.g||(u.h=null),p.next=null),p}class R{constructor(){this.h=this.g=null}add(p,g){const P=v.get();P.set(p,g),this.h?this.h.next=P:this.g=P,this.h=P}}var v=new _(()=>new I,u=>u.reset());class I{constructor(){this.next=this.g=this.h=null}set(p,g){this.h=p,this.g=g,this.next=null}reset(){this.next=this.g=this.h=null}}let D,x=!1,E=new R,T=()=>{const u=Promise.resolve(void 0);D=()=>{u.then(b)}};function b(){for(var u;u=w();){try{u.h.call(u.g)}catch(g){A(g)}var p=v;p.j(u),p.h<100&&(p.h++,u.next=p.g,p.g=u)}x=!1}function S(){this.u=this.u,this.C=this.C}S.prototype.u=!1,S.prototype.dispose=function(){this.u||(this.u=!0,this.N())},S.prototype[Symbol.dispose]=function(){this.dispose()},S.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function O(u,p){this.type=u,this.g=this.target=p,this.defaultPrevented=!1}O.prototype.h=function(){this.defaultPrevented=!0};var L=(function(){if(!o.addEventListener||!Object.defineProperty)return!1;var u=!1,p=Object.defineProperty({},"passive",{get:function(){u=!0}});try{const g=()=>{};o.addEventListener("test",g,p),o.removeEventListener("test",g,p)}catch{}return u})();function k(u){return/^[\s\xa0]*$/.test(u)}function ce(u,p){O.call(this,u?u.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,u&&this.init(u,p)}h(ce,O),ce.prototype.init=function(u,p){const g=this.type=u.type,P=u.changedTouches&&u.changedTouches.length?u.changedTouches[0]:null;this.target=u.target||u.srcElement,this.g=p,p=u.relatedTarget,p||(g=="mouseover"?p=u.fromElement:g=="mouseout"&&(p=u.toElement)),this.relatedTarget=p,P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.clientX=u.clientX!==void 0?u.clientX:u.pageX,this.clientY=u.clientY!==void 0?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0),this.button=u.button,this.key=u.key||"",this.ctrlKey=u.ctrlKey,this.altKey=u.altKey,this.shiftKey=u.shiftKey,this.metaKey=u.metaKey,this.pointerId=u.pointerId||0,this.pointerType=u.pointerType,this.state=u.state,this.i=u,u.defaultPrevented&&ce.Z.h.call(this)},ce.prototype.h=function(){ce.Z.h.call(this);const u=this.i;u.preventDefault?u.preventDefault():u.returnValue=!1};var _e="closure_listenable_"+(Math.random()*1e6|0),ae=0;function pe(u,p,g,P,$){this.listener=u,this.proxy=null,this.src=p,this.type=g,this.capture=!!P,this.ha=$,this.key=++ae,this.da=this.fa=!1}function re(u){u.da=!0,u.listener=null,u.proxy=null,u.src=null,u.ha=null}function ve(u,p,g){for(const P in u)p.call(g,u[P],P,u)}function zt(u,p){for(const g in u)p.call(void 0,u[g],g,u)}function Ot(u){const p={};for(const g in u)p[g]=u[g];return p}const dt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
20ing toString valueOf".split(" ");function fn(u,p){let g,P;for(let $=1;$<arguments.length;$++){P=arguments[$];for(g in P)u[g]=P[g];for(let q=0;q<dt.length;q++)g=dt[q],Object.prototype.hasOwnProperty.call(P,g)&&(u[g]=P[g])}}function Qt(u){this.src=u,this.g={},this.h=0}Qt.prototype.add=function(u,p,g,P,$){const q=u.toString();u=this.g[q],u||(u=this.g[q]=[],this.h++);const X=_t(u,p,P,$);return X>-1?(p=u[X],g||(p.fa=!1)):(p=new pe(p,this.src,q,!!P,$),p.fa=g,u.push(p)),p};function sn(u,p){const g=p.type;if(g in u.g){var P=u.g[g],$=Array.prototype.indexOf.call(P,p,void 0),q;(q=$>=0)&&Array.prototype.splice.call(P,$,1),q&&(re(p),u.g[g].length==0&&(delete u.g[g],u.h--))}}function _t(u,p,g,P){for(let $=0;$<u.length;++$){const q=u[$];if(!q.da&&q.listener==p&&q.capture==!!g&&q.ha==P)return $}return-1}var z="closure_lm_"+(Math.random()*1e6|0),se={};function ee(u,p,g,P,$){if(Array.isArray(p)){for(let q=0;q<p.length;q++)ee(u,p[q],g,P,$);return null}return g=C(g),u&&u[_e]?u.J(p,g,a(P)?!!P.capture:!1,$):le(u,p,g,!1,P,$)}function le(u,p,g,P,$,q){if(!p)throw Error("Invalid event type");const X=a($)?!!$.capture:!!$;let Ae=Q(u);if(Ae||(u[z]=Ae=new Qt(u)),g=Ae.add(p,g,P,X,q),g.proxy)return g;if(P=Te(),g.proxy=P,P.src=u,P.listener=g,u.addEventListener)L||($=X),$===void 0&&($=!1),u.addEventListener(p.toString(),P,$);else if(u.attachEvent)u.attachEvent(V(p.toString()),P);else if(u.addListener&&u.removeListener)u.addListener(P);else throw Error("addEventListener and attachEvent are unavailable.");return g}function Te(){function u(g){return p.call(u.src,u.listener,g)}const p=B;return u}function xe(u,p,g,P,$){if(Array.isArray(p))for(var q=0;q<p.length;q++)xe(u,p[q],g,P,$);else P=a(P)?!!P.capture:!!P,g=C(g),u&&u[_e]?(u=u.i,q=String(p).toString(),q in u.g&&(p=u.g[q],g=_t(p,g,P,$),g>-1&&(re(p[g]),Array.prototype.splice.call(p,g,1),p.length==0&&(delete u.g[q],u.h--)))):u&&(u=Q(u))&&(p=u.g[p.toString()],u=-1,p&&(u=_t(p,g,P,$)),(g=u>-1?p[u]:null)&&M(g))}function M(u){if(typeof u!="number"&&u&&!u.da){var p=u.src;if(p&&p[_e])sn(p.i,u);else{var g=u.type,P=u.proxy;p.removeEventListener?p.removeEventListener(g,P,u.capture):p.detachEvent?p.detachEvent(V(g),P):p.addListener&&p.removeListener&&p.removeListener(P),(g=Q(p))?(sn(g,u),g.h==0&&(g.src=null,p[z]=null)):re(u)}}}function V(u){return u in se?se[u]:se[u]="on"+u}function B(u,p){if(u.da)u=!0;else{p=new ce(p,this);const g=u.listener,P=u.ha||u.src;u.fa&&M(u),u=g.call(P,p)}return u}function Q(u){return u=u[z],u instanceof Qt?u:null}var G="__closure_events_fn_"+(Math.random()*1e9>>>0);function C(u){return typeof u=="function"?u:(u[G]||(u[G]=function(p){return u.handleEvent(p)}),u[G])}function N(){S.call(this),this.i=new Qt(this),this.M=this,this.G=null}h(N,S),N.prototype[_e]=!0,N.prototype.removeEventListener=function(u,p,g,P){xe(this,u,p,g,P)};function U(u,p){var g,P=u.G;if(P)for(g=[];P;P=P.G)g.push(P);if(u=u.M,P=p.type||p,typeof p=="string")p=new O(p,u);else if(p instanceof O)p.target=p.target||u;else{var $=p;p=new O(P,u),fn(p,$)}$=!0;let q,X;if(g)for(X=g.length-1;X>=0;X--)q=p.g=g[X],$=j(q,P,!0,p)&&$;if(q=p.g=u,$=j(q,P,!0,p)&&$,$=j(q,P,!1,p)&&$,g)for(X=0;X<g.length;X++)q=p.g=g[X],$=j(q,P,!1,p)&&$}N.prototype.N=function(){if(N.Z.N.call(this),this.i){var u=this.i;for(const p in u.g){const g=u.g[p];for(let P=0;P<g.length;P++)re(g[P]);delete u.g[p],u.h--}}this.G=null},N.prototype.J=function(u,p,g,P){return this.i.add(String(u),p,!1,g,P)},N.prototype.K=function(u,p,g,P){return this.i.add(String(u),p,!0,g,P)};function j(u,p,g,P){if(p=u.i.g[String(p)],!p)return!0;p=p.concat();let $=!0;for(let q=0;q<p.length;++q){const X=p[q];
20if(X&&!X.da&&X.capture==g){const Ae=X.listener,Rt=X.ha||X.src;X.fa&&sn(u.i,X),$=Ae.call(Rt,P)!==!1&&$}}return $&&!P.defaultPrevented}function W(u,p){if(typeof u!="function")if(u&&typeof u.handleEvent=="function")u=l(u.handleEvent,u);else throw Error("Invalid listener argument");return Number(p)>2147483647?-1:o.setTimeout(u,p||0)}function J(u){u.g=W(()=>{u.g=null,u.i&&(u.i=!1,J(u))},u.l);const p=u.h;u.h=null,u.m.apply(null,p)}class F extends S{constructor(p,g){super(),this.m=p,this.l=g,this.h=null,this.i=!1,this.g=null}j(p){this.h=arguments,this.g?this.i=!0:J(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function H(u){S.call(this),this.h=u,this.g={}}h(H,S);var te=[];function ue(u){ve(u.g,function(p,g){this.g.hasOwnProperty(g)&&M(p)},u),u.g={}}H.prototype.N=function(){H.Z.N.call(this),ue(this)},H.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Re=o.JSON.stringify,ke=o.JSON.parse,Le=class{stringify(u){return o.JSON.stringify(u,void 0)}parse(u){return o.JSON.parse(u,void 0)}};function st(){}function Yt(){}var At={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function mr(){O.call(this,"d")}h(mr,O);function Ti(){O.call(this,"c")}h(Ti,O);var pt={},hn=null;function Ns(){return hn=hn||new N}pt.Ia="serverreachability";function Oo(u){O.call(this,pt.Ia,u)}h(Oo,O);function Lo(u){const p=Ns();U(p,new Oo(p))}pt.STAT_EVENT="statevent";function Km(u,p){O.call(this,pt.STAT_EVENT,u),this.stat=p}h(Km,O);function Jt(u){const p=Ns();U(p,new Km(p,u))}pt.Ja="timingevent";function Gm(u,p){O.call(this,pt.Ja,u),this.size=p}h(Gm,O);function Do(u,p){if(typeof u!="function")throw Error("Fn must not be null and must be a function");return o.setTimeout(function(){u()},p)}function No(){this.g=!0}No.prototype.ua=function(){this.g=!1};function BR(u,p,g,P,$,q){u.info(function(){if(u.g)if(q){var X="",Ae=q.split("&");for(let qe=0;qe<Ae.length;qe++){var Rt=Ae[qe].split("=");if(Rt.length>1){const Lt=Rt[0];Rt=Rt[1];const Gn=Lt.split("_");X=Gn.length>=2&&Gn[1]=="type"?X+(Lt+"="+Rt+"&"):X+(Lt+"=redacted&")}}}else X=null;else X=q;return"XMLHTTP REQ ("+P+") [attempt "+$+"]: "+p+`
21`+g+`
22`+X})}function HR(u,p,g,P,$,q,X){u.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+$+"]: "+p+`
23`+g+`
24`+q+" "+X})}function bi(u,p,g,P){u.info(function(){return"XMLHTTP TEXT ("+p+"): "+WR(u,g)+(P?" "+P:"")})}function qR(u,p){u.info(function(){return"TIMEOUT: "+p})}No.prototype.info=function(){};function WR(u,p){if(!u.g)return p;if(!p)return null;try{const q=JSON.parse(p);if(q){for(u=0;u<q.length;u++)if(Array.isArray(q[u])){var g=q[u];if(!(g.length<2)){var P=g[1];if(Array.isArray(P)&&!(P.length<1)){var $=P[0];if($!="noop"&&$!="stop"&&$!="close")for(let X=1;X<P.length;X++)P[X]=""}}}}return Re(q)}catch{return p}}var Ec={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},zm={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"},Qm;function If(){}h(If,st),If.prototype.g=function(){return new XMLHttpRequest},Qm=new If;function Mo(u){return encodeURIComponent(String(u))}function KR(u){var p=1;u=u.split(":");const g=[];for(;p>0&&u.length;)g.push(u.shift()),p--;return u.length&&g.push(u.join(":")),g}function Kr(u,p,g,P){this.j=u,this.i=p,this.l=g,this.S=P||1,this.V=new H(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new Ym}function Ym(){this.i=null,this.g="",this.h=!1}var Jm={},Af={};function Rf(u,p,g){u.M=1,u.A=Tc(Kn(p)),u.u=g,u.R=!0,Xm(u,null)}function Xm(u,p){u.F=Date.now(),wc(u),u.B=Kn(u.A);var g=u.B,P=u.S;Array.isArray(P)||(P=[String(P)]),fg(g.i,"t",P),u.C=0,g=u.j.L,u.h=new Ym,u.g=Pg(u.j,g?p:null,!u.u),u.P>0&&(u.O=new F(l(u.Y,u,u.g),u.P)),p=u.V,g=u.g,P=u.ba;var $="readystatechange";Array.isArray($)||($&&(te[0]=$.toString()),$=te);for(let q=0;q<$.length;q++){const X=ee(g,$[q],P||p.handleEvent,!1,p.h||p);if(!X)break;p.g[X.key]=X}
24p=u.J?Ot(u.J):{},u.u?(u.v||(u.v="POST"),p["Content-Type"]="application/x-www-form-urlencoded",u.g.ea(u.B,u.v,u.u,p)):(u.v="GET",u.g.ea(u.B,u.v,null,p)),Lo(),BR(u.i,u.v,u.B,u.l,u.S,u.u)}Kr.prototype.ba=function(u){u=u.target;const p=this.O;p&&Qr(u)==3?p.j():this.Y(u)},Kr.prototype.Y=function(u){try{if(u==this.g)e:{const Ae=Qr(this.g),Rt=this.g.ya(),qe=this.g.ca();if(!(Ae<3)&&(Ae!=3||this.g&&(this.h.h||this.g.la()||yg(this.g)))){this.K||Ae!=4||Rt==7||(Rt==8||qe<=0?Lo(3):Lo(2)),Sf(this);var p=this.g.ca();this.X=p;var g=GR(this);if(this.o=p==200,HR(this.i,this.v,this.B,this.l,this.S,Ae,p),this.o){if(this.U&&!this.L){t:{if(this.g){var P,$=this.g;if((P=$.g?$.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!k(P)){var q=P;break t}}q=null}if(u=q)bi(this.i,this.l,u,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Cf(this,u);else{this.o=!1,this.m=3,Jt(12),Ms(this),xo(this);break e}}if(this.R){u=!0;let Lt;for(;!this.K&&this.C<g.length;)if(Lt=zR(this,g),Lt==Af){Ae==4&&(this.m=4,Jt(14),u=!1),bi(this.i,this.l,null,"[Incomplete Response]");break}else if(Lt==Jm){this.m=4,Jt(15),bi(this.i,this.l,g,"[Invalid Chunk]"),u=!1;break}else bi(this.i,this.l,Lt,null),Cf(this,Lt);if(Zm(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Ae!=4||g.length!=0||this.h.h||(this.m=1,Jt(16),u=!1),this.o=this.o&&u,!u)bi(this.i,this.l,g,"[Invalid Chunked Response]"),Ms(this),xo(this);else if(g.length>0&&!this.W){this.W=!0;var X=this.j;X.g==this&&X.aa&&!X.P&&(X.j.info("Great, no buffering proxy detected. Bytes received: "+g.length),xf(X),X.P=!0,Jt(11))}}else bi(this.i,this.l,g,null),Cf(this,g);Ae==4&&Ms(this),this.o&&!this.K&&(Ae==4?Ag(this.j,this):(this.o=!1,wc(this)))}else cS(this.g),p==400&&g.indexOf("Unknown SID")>0?(this.m=3,Jt(12)):(this.m=0,Jt(13)),Ms(this),xo(this)}}}catch{}};function GR(u){if(!Zm(u))return u.g.la();const p=yg(u.g);if(p==="")return"";let g="";const P=p.length,$=Qr(u.g)==4;if(!u.h.i){if(typeof TextDecoder>"u")return Ms(u),xo(u),"";u.h.i=new o.TextDecoder}for(let q=0;q<P;q++)u.h.h=!0,g+=u.h.i.decode(p[q],{stream:!($&&q==P-1)});return p.length=0,u.h.g+=g,u.C=0,u.h.g}function Zm(u){return u.g?u.v=="GET"&&u.M!=2&&u.j.Aa:!1}function zR(u,p){var g=u.C,P=p.indexOf(`
25`,g);return P==-1?Af:(g=Number(p.substring(g,P)),isNaN(g)?Jm:(P+=1,P+g>p.length?Af:(p=p.slice(P,P+g),u.C=P+g,p)))}Kr.prototype.cancel=function(){this.K=!0,Ms(this)};function wc(u){u.T=Date.now()+u.H,eg(u,u.H)}function eg(u,p){if(u.D!=null)throw Error("WatchDog timer not null");u.D=Do(l(u.aa,u),p)}function Sf(u){u.D&&(o.clearTimeout(u.D),u.D=null)}Kr.prototype.aa=function(){this.D=null;const u=Date.now();u-this.T>=0?(qR(this.i,this.B),this.M!=2&&(Lo(),Jt(17)),Ms(this),this.m=2,xo(this)):eg(this,this.T-u)};function xo(u){u.j.I==0||u.K||Ag(u.j,u)}function Ms(u){Sf(u);var p=u.O;p&&typeof p.dispose=="function"&&p.dispose(),u.O=null,ue(u.V),u.g&&(p=u.g,u.g=null,p.abort(),p.dispose())}function Cf(u,p){try{var g=u.j;if(g.I!=0&&(g.g==u||Pf(g.h,u))){if(!u.L&&Pf(g.h,u)&&g.I==3){try{var P=g.Ba.g.parse(p)}catch{P=null}if(Array.isArray(P)&&P.length==3){var $=P;if($[0]==0){e:if(!g.v){if(g.g)if(g.g.F+3e3<u.F)Sc(g),Ac(g);else break e;Mf(g),Jt(18)}}else g.xa=$[1],0<g.xa-g.K&&$[2]<37500&&g.F&&g.A==0&&!g.C&&(g.C=Do(l(g.Va,g),6e3));rg(g.h)<=1&&g.ta&&(g.ta=void 0)}else Vs(g,11)}else if((u.L||g.g==u)&&Sc(g),!k(p))for($=g.Ba.g.parse(p),p=0;p<$.length;p++){let qe=$[p];const Lt=qe[0];if(!(Lt<=g.K))if(g.K=Lt,qe=qe[1],g.I==2)if(qe[0]=="c"){g.M=qe[1],g.ba=qe[2];const Gn=qe[3];Gn!=null&&(g.ka=Gn,g.j.info("VER="+g.ka));const Fs=qe[4];Fs!=null&&(g.za=Fs,g.j.info("SVER="+g.za));const Yr=qe[5];Yr!=null&&typeof Yr=="number"&&Yr>0&&(P=1.5*Yr,g.O=P,g.j.info("backChannelRequestTimeoutMs_="+P)),P=g;const Jr=u.g;if(Jr){const Pc=Jr.g?Jr.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Pc){var q=P.h;q.g||Pc.indexOf("spdy")==-1&&Pc.indexOf("quic")==-1&&Pc.indexOf("h2")==-1||(q.j=q.l,q.g=new Set,q.h&&(kf(q,q.h),q.h=null))}if(P.G){const Vf=Jr.g?Jr.g.getResponseHeader("X-HTTP-Session-Id"):null;Vf&&(P.wa=Vf,Ze(P.J,P.G,Vf))}}g.I=3,g.l&&g.l.ra(),g.aa&&(g.T=Date.now()-u.F,g.j.info("Handshake RTT: "+g.T+"ms")),P=g;var X=u;if(P.na=Cg(P,P.L?P.ba:null,P.W),X.L){sg(P.h,X);var Ae=X,Rt=P.O;Rt&&(Ae.H=Rt),Ae.D&&(Sf(Ae),wc(Ae)),P.g=X}else bg(P);g.i.length>0&&Rc(g)}else qe[0]!="stop"&&qe[0]!="close"||Vs(g,7);else g.I==3&&(qe[0]=="stop"||qe[0]=="close"?qe[0]=="stop"?Vs(g,7):Nf(g):qe[0]!="noop"&&g.l&&g.l.qa(qe),g.A=0)}}Lo(4)}
25catch{}}var QR=class{constructor(u,p){this.g=u,this.map=p}};function tg(u){this.l=u||10,o.PerformanceNavigationTiming?(u=o.performance.getEntriesByType("navigation"),u=u.length>0&&(u[0].nextHopProtocol=="hq"||u[0].nextHopProtocol=="h2")):u=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=u?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function ng(u){return u.h?!0:u.g?u.g.size>=u.j:!1}function rg(u){return u.h?1:u.g?u.g.size:0}function Pf(u,p){return u.h?u.h==p:u.g?u.g.has(p):!1}function kf(u,p){u.g?u.g.add(p):u.h=p}function sg(u,p){u.h&&u.h==p?u.h=null:u.g&&u.g.has(p)&&u.g.delete(p)}tg.prototype.cancel=function(){if(this.i=ig(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const u of this.g.values())u.cancel();this.g.clear()}};function ig(u){if(u.h!=null)return u.i.concat(u.h.G);if(u.g!=null&&u.g.size!==0){let p=u.i;for(const g of u.g.values())p=p.concat(g.G);return p}return m(u.i)}var og=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function YR(u,p){if(u){u=u.split("&");for(let g=0;g<u.length;g++){const P=u[g].indexOf("=");let $,q=null;P>=0?($=u[g].substring(0,P),q=u[g].substring(P+1)):$=u[g],p($,q?decodeURIComponent(q.replace(/\+/g," ")):"")}}}function Gr(u){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let p;u instanceof Gr?(this.l=u.l,Vo(this,u.j),this.o=u.o,this.g=u.g,Fo(this,u.u),this.h=u.h,Of(this,hg(u.i)),this.m=u.m):u&&(p=String(u).match(og))?(this.l=!1,Vo(this,p[1]||"",!0),this.o=Uo(p[2]||""),this.g=Uo(p[3]||"",!0),Fo(this,p[4]),this.h=Uo(p[5]||"",!0),Of(this,p[6]||"",!0),this.m=Uo(p[7]||"")):(this.l=!1,this.i=new jo(null,this.l))}Gr.prototype.toString=function(){const u=[];var p=this.j;p&&u.push($o(p,ag,!0),":");var g=this.g;return(g||p=="file")&&(u.push("//"),(p=this.o)&&u.push($o(p,ag,!0),"@"),u.push(Mo(g).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),g=this.u,g!=null&&u.push(":",String(g))),(g=this.h)&&(this.g&&g.charAt(0)!="/"&&u.push("/"),u.push($o(g,g.charAt(0)=="/"?ZR:XR,!0))),(g=this.i.toString())&&u.push("?",g),(g=this.m)&&u.push("#",$o(g,tS)),u.join("")},Gr.prototype.resolve=function(u){const p=Kn(this);let g=!!u.j;g?Vo(p,u.j):g=!!u.o,g?p.o=u.o:g=!!u.g,g?p.g=u.g:g=u.u!=null;var P=u.h;if(g)Fo(p,u.u);else if(g=!!u.h){if(P.charAt(0)!="/")if(this.g&&!this.h)P="/"+P;else{var $=p.h.lastIndexOf("/");$!=-1&&(P=p.h.slice(0,$+1)+P)}if($=P,$==".."||$==".")P="";else if($.indexOf("./")!=-1||$.indexOf("/.")!=-1){P=$.lastIndexOf("/",0)==0,$=$.split("/");const q=[];for(let X=0;X<$.length;){const Ae=$[X++];Ae=="."?P&&X==$.length&&q.push(""):Ae==".."?((q.length>1||q.length==1&&q[0]!="")&&q.pop(),P&&X==$.length&&q.push("")):(q.push(Ae),P=!0)}P=q.join("/")}else P=$}return g?p.h=P:g=u.i.toString()!=="",g?Of(p,hg(u.i)):g=!!u.m,g&&(p.m=u.m),p};function Kn(u){return new Gr(u)}function Vo(u,p,g){u.j=g?Uo(p,!0):p,u.j&&(u.j=u.j.replace(/:$/,""))}function Fo(u,p){if(p){if(p=Number(p),isNaN(p)||p<0)throw Error("Bad port number "+p);u.u=p}else u.u=null}function Of(u,p,g){p instanceof jo?(u.i=p,nS(u.i,u.l)):(g||(p=$o(p,eS)),u.i=new jo(p,u.l))}function Ze(u,p,g){u.i.set(p,g)}function Tc(u){return Ze(u,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),u}function Uo(u,p){return u?p?decodeURI(u.replace(/%25/g,"%2525")):decodeURIComponent(u):""}function $o(u,p,g){return typeof u=="string"?(u=encodeURI(u).replace(p,JR),g&&(u=u.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u):null}function JR(u){return u=u.charCodeAt(0),"%"+(u>>4&15).toString(16)+(u&15).toString(16)}var ag=/[#\/\?@]/g,XR=/[#\?:]/g,ZR=/[#\?]/g,eS=/[#\?@]/g,tS=/#/g;function jo(u,p){this.h=this.g=null,this.i=u||null,this.j=!!p}function xs(u){u.g||(u.g=new Map,u.h=0,u.i&&YR(u.i,function(p,g){u.add(decodeURIComponent(p.replace(/\+/g," ")),g)}))}t=jo.prototype,t.add=function(u,p){xs(this),this.i=null,u=Ii(this,u);let g=this.g.get(u);return g||this.g.set(u,g=[]),g.push(p),this.h+=1,this};function cg(u,p){xs(u),p=Ii(u,p),u.g.has(p)&&(u.i=null,u.h-=u.g.get(p).length,u.g.delete(p))}function lg(u,p){return xs(u),p=Ii(u,p),u.g.has(p)}t.forEach=function(u,p){xs(this),this.g.forEach(function(g,P){g.forEach(function($){u.call(p,$,P,this)},this)},this)};function ug(u,p){xs(u);let g=[];if(typeof p=="string")lg(u,p)&&(g=g.concat(u.g.get(Ii(u,p))));else for(u=Array.from(u.g.values()),p=0;p<u.length;p++)g=g.concat(u[p]);return g}t.set=function(u,p){return xs(this),this.i=null,u=Ii(this,u),lg(this,u)&&(this.h-=this.g.get(u).length),this.g.set(u,[p]),this.h+=1,this},t.get=function(u,p){return u?(u=ug(this,u),u.length>0?String(u[0]):p):p};function fg(u,p,g){cg(u,p),g.length>0&&(u.i=null,u.g.set(Ii(u,p),m(g)),u.h+=g.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const u=[],p=Array.from(this.g.keys());for(let P=0;P<p.length;P++){var g=p[P];const $=Mo(g);g=ug(this,g);for(let q=0;q<g.length;q++){let X=$;g[q]!==""&&(X+="="+Mo(g[q])),u.push(X)}}return this.i=u.join("&")};function hg(u){const p=new jo;return p.i=u.i,u.g&&(p.g=new Map(u.g),p.h=u.h),p}function Ii(u,p){return p=String(p),u.j&&(p=p.toLowerCase()),p}function nS(u,p){p&&!u.j&&(xs(u),u.i=null,u.g.forEach(function(g,P){const $=P.toLowerCase();P!=$&&(cg(this,P),fg(this,$,g))},u)),u.j=p}function rS(u,p){const g=new No;if(o.Image){const P=new Image;P.onload=f(zr,g,"TestLoadImage: loaded",!0,p,P),P.onerror=f(zr,g,"TestLoadImage: error",!1,p,P),P.onabort=f(zr,g,"TestLoadImage: abort",!1,p,P),P.ontimeout=f(zr,g,"TestLoadImage: timeout",!1,p,P),o.setTimeout(function(){P.ontimeout&&P.ontimeout()},1e4),P.src=u}else p(!1)}function sS(u,p){const g=new No,P=new AbortController,$=setTimeout(()=>{P.abort(),zr(g,"TestPingServer: timeout",!1,p)},1e4);fetch(u,{signal:P.signal}).then(q=>{clearTimeout($),q.ok?zr(g,"TestPingServer: ok",!0,p):zr(g,"TestPingServer: server error",!1,p)}).catch(()=>{clearTimeout($),zr(g,"TestPingServer: error",!1,p)})}function zr(u,p,g,P,$){try{$&&($.onload=null,$.onerror=null,$.onabort=null,$.ontimeout=null),P(g)}catch{}}function iS(){this.g=new Le}function Lf(u){this.i=u.Sb||null,this.h=u.ab||!1}h(Lf,st),Lf.prototype.g=function(){return new bc(this.i,this.h)};function bc(u,p){N.call(this),this.H=u,this.o=p,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}h(bc,N),t=bc.prototype,t.open=function(u,p){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.F=u,this.D=p,this.readyState=1,Ho(this)},t.send=function(u){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");
25if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const p={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};u&&(p.body=u),(this.H||o).fetch(new Request(this.D,p)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,Bo(this)),this.readyState=0},t.Pa=function(u){if(this.g&&(this.l=u,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=u.headers,this.readyState=2,Ho(this)),this.g&&(this.readyState=3,Ho(this),this.g)))if(this.responseType==="arraybuffer")u.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof o.ReadableStream<"u"&&"body"in u){if(this.j=u.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;dg(this)}else u.text().then(this.Oa.bind(this),this.ga.bind(this))};function dg(u){u.j.read().then(u.Ma.bind(u)).catch(u.ga.bind(u))}t.Ma=function(u){if(this.g){if(this.o&&u.value)this.response.push(u.value);else if(!this.o){var p=u.value?u.value:new Uint8Array(0);(p=this.B.decode(p,{stream:!u.done}))&&(this.response=this.responseText+=p)}u.done?Bo(this):Ho(this),this.readyState==3&&dg(this)}},t.Oa=function(u){this.g&&(this.response=this.responseText=u,Bo(this))},t.Na=function(u){this.g&&(this.response=u,Bo(this))},t.ga=function(){this.g&&Bo(this)};function Bo(u){u.readyState=4,u.l=null,u.j=null,u.B=null,Ho(u)}t.setRequestHeader=function(u,p){this.A.append(u,p)},t.getResponseHeader=function(u){return this.h&&this.h.get(u.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const u=[],p=this.h.entries();for(var g=p.next();!g.done;)g=g.value,u.push(g[0]+": "+g[1]),g=p.next();return u.join(`\r
26`)};function Ho(u){u.onreadystatechange&&u.onreadystatechange.call(u)}Object.defineProperty(bc.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(u){this.m=u?"include":"same-origin"}});function pg(u){let p="";return ve(u,function(g,P){p+=P,p+=":",p+=g,p+=`\r
27`}),p}function Df(u,p,g){e:{for(P in g){var P=!1;break e}P=!0}P||(g=pg(g),typeof u=="string"?g!=null&&Mo(g):Ze(u,p,g))}function ct(u){N.call(this),this.headers=new Map,this.L=u||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}h(ct,N);var oS=/^https?$/i,aS=["POST","PUT"];t=ct.prototype,t.Fa=function(u){this.H=u},t.ea=function(u,p,g,P){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+u);p=p?p.toUpperCase():"GET",this.D=u,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():Qm.g(),this.g.onreadystatechange=d(l(this.Ca,this));try{this.B=!0,this.g.open(p,String(u),!0),this.B=!1}catch(q){mg(this,q);return}if(u=g||"",g=new Map(this.headers),P)if(Object.getPrototypeOf(P)===Object.prototype)for(var $ in P)g.set($,P[$]);else if(typeof P.keys=="function"&&typeof P.get=="function")for(const q of P.keys())g.set(q,P.get(q));else throw Error("Unknown input type for opt_headers: "+String(P));P=Array.from(g.keys()).find(q=>q.toLowerCase()=="content-type"),$=o.FormData&&u instanceof o.FormData,!(Array.prototype.indexOf.call(aS,p,void 0)>=0)||P||$||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[q,X]of g)this.g.setRequestHeader(q,X);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(u),this.v=!1}catch(q){mg(this,q)}};function mg(u,p){u.h=!1,u.g&&(u.j=!0,u.g.abort(),u.j=!1),u.l=p,u.o=5,gg(u),Ic(u)}function gg(u){u.A||(u.A=!0,U(u,"complete"),U(u,"error"))}t.abort=function(u){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=u||7,U(this,"complete"),U(this,"abort"),Ic(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Ic(this,!0)),ct.Z.N.call(this)},t.Ca=function(){this.u||(this.B||this.v||this.j?_g(this):this.Xa())},t.Xa=function(){_g(this)};function _g(u){if(u.h&&typeof i<"u"){if(u.v&&Qr(u)==4)setTimeout(u.Ca.bind(u),0);else if(U(u,"readystatechange"),Qr(u)==4){u.h=!1;try{const q=u.ca();e:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var p=!0;break e;default:p=!1}var g;if(!(g=p)){var P;if(P=q===0){let X=String(u.D).match(og)[1]||null;!X&&o.self&&o.self.location&&(X=o.self.location.protocol.slice(0,-1)),P=!oS.test(X?X.toLowerCase():"")}g=P}if(g)U(u,"complete"),U(u,"success");else{u.o=6;try{var $=Qr(u)>2?u.g.statusText:""}catch{$=""}u.l=$+" ["+u.ca()+"]",gg(u)}}finally{Ic(u)}}}}function Ic(u,p){if(u.g){u.m&&(clearTimeout(u.m),u.m=null);const g=u.g;u.g=null,p||U(u,"ready");try{g.onreadystatechange=null}catch{}}}t.isActive=function(){return!!this.g};function Qr(u){return u.g?u.g.readyState:0}t.ca=function(){try{return Qr(this)>2?this.g.status:-1}catch{return-1}},t.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.La=function(u){if(this.g){var p=this.g.responseText;return u&&p.indexOf(u)==0&&(p=p.substring(u.length)),ke(p)}};function yg(u){try{if(!u.g)return null;if("response"in u.g)return u.g.response;switch(u.F){case"":case"text":return u.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in u.g)return u.g.mozResponseArrayBuffer}return null}catch{return null}}function cS(u){const p={};u=(u.g&&Qr(u)>=2&&u.g.getAllResponseHeaders()||"").split(`\r
28`);for(let P=0;P<u.length;P++){if(k(u[P]))continue;var g=KR(u[P]);const $=g[0];if(g=g[1],typeof g!="string")continue;g=g.trim();const q=p[$]||[];p[$]=q,q.push(g)}zt(p,function(P){return P.join(", ")})}t.ya=function(){return this.o},t.Ha=function(){return typeof this.l=="string"?this.l:String(this.l)};
28function qo(u,p,g){return g&&g.internalChannelParams&&g.internalChannelParams[u]||p}function vg(u){this.za=0,this.i=[],this.j=new No,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=qo("failFast",!1,u),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=qo("baseRetryDelayMs",5e3,u),this.Za=qo("retryDelaySeedMs",1e4,u),this.Ta=qo("forwardChannelMaxRetries",2,u),this.va=qo("forwardChannelRequestTimeoutMs",2e4,u),this.ma=u&&u.xmlHttpFactory||void 0,this.Ua=u&&u.Rb||void 0,this.Aa=u&&u.useFetchStreams||!1,this.O=void 0,this.L=u&&u.supportsCrossDomainXhr||!1,this.M="",this.h=new tg(u&&u.concurrentRequestLimit),this.Ba=new iS,this.S=u&&u.fastHandshake||!1,this.R=u&&u.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=u&&u.Pb||!1,u&&u.ua&&this.j.ua(),u&&u.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&u&&u.detectBufferingProxy||!1,this.ia=void 0,u&&u.longPollingTimeout&&u.longPollingTimeout>0&&(this.ia=u.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}t=vg.prototype,t.ka=8,t.I=1,t.connect=function(u,p,g,P){Jt(0),this.W=u,this.H=p||{},g&&P!==void 0&&(this.H.OSID=g,this.H.OAID=P),this.F=this.X,this.J=Cg(this,null,this.W),Rc(this)};function Nf(u){if(Eg(u),u.I==3){var p=u.V++,g=Kn(u.J);if(Ze(g,"SID",u.M),Ze(g,"RID",p),Ze(g,"TYPE","terminate"),Wo(u,g),p=new Kr(u,u.j,p),p.M=2,p.A=Tc(Kn(g)),g=!1,o.navigator&&o.navigator.sendBeacon)try{g=o.navigator.sendBeacon(p.A.toString(),"")}catch{}!g&&o.Image&&(new Image().src=p.A,g=!0),g||(p.g=Pg(p.j,null),p.g.ea(p.A)),p.F=Date.now(),wc(p)}Sg(u)}function Ac(u){u.g&&(xf(u),u.g.cancel(),u.g=null)}function Eg(u){Ac(u),u.v&&(o.clearTimeout(u.v),u.v=null),Sc(u),u.h.cancel(),u.m&&(typeof u.m=="number"&&o.clearTimeout(u.m),u.m=null)}function Rc(u){if(!ng(u.h)&&!u.m){u.m=!0;var p=u.Ea;D||T(),x||(D(),x=!0),E.add(p,u),u.D=0}}function lS(u,p){return rg(u.h)>=u.h.j-(u.m?1:0)?!1:u.m?(u.i=p.G.concat(u.i),!0):u.I==1||u.I==2||u.D>=(u.Sa?0:u.Ta)?!1:(u.m=Do(l(u.Ea,u,p),Rg(u,u.D)),u.D++,!0)}t.Ea=function(u){if(this.m)if(this.m=null,this.I==1){if(!u){this.V=Math.floor(Math.random()*1e5),u=this.V++;const $=new Kr(this,this.j,u);let q=this.o;if(this.U&&(q?(q=Ot(q),fn(q,this.U)):q=this.U),this.u!==null||this.R||($.J=q,q=null),this.S)e:{for(var p=0,g=0;g<this.i.length;g++){t:{var P=this.i[g];if("__data__"in P.map&&(P=P.map.__data__,typeof P=="string")){P=P.length;break t}P=void 0}if(P===void 0)break;if(p+=P,p>4096){p=g;break e}if(p===4096||g===this.i.length-1){p=g+1;break e}}p=1e3}else p=1e3;p=Tg(this,$,p),g=Kn(this.J),Ze(g,"RID",u),Ze(g,"CVER",22),this.G&&Ze(g,"X-HTTP-Session-Id",this.G),Wo(this,g),q&&(this.R?p="headers="+Mo(pg(q))+"&"+p:this.u&&Df(g,this.u,q)),kf(this.h,$),this.Ra&&Ze(g,"TYPE","init"),this.S?(Ze(g,"$req",p),Ze(g,"SID","null"),$.U=!0,Rf($,g,null)):Rf($,g,p),this.I=2}}else this.I==3&&(u?wg(this,u):this.i.length==0||ng(this.h)||wg(this))};function wg(u,p){var g;p?g=p.l:g=u.V++;const P=Kn(u.J);Ze(P,"SID",u.M),Ze(P,"RID",g),Ze(P,"AID",u.K),Wo(u,P),u.u&&u.o&&Df(P,u.u,u.o),g=new Kr(u,u.j,g,u.D+1),u.u===null&&(g.J=u.o),p&&(u.i=p.G.concat(u.i)),p=Tg(u,g,1e3),g.H=Math.round(u.va*.5)+Math.round(u.va*.5*Math.random()),kf(u.h,g),Rf(g,P,p)}function Wo(u,p){u.H&&ve(u.H,function(g,P){Ze(p,P,g)}),u.l&&ve({},function(g,P){Ze(p,P,g)})}function Tg(u,p,g){g=Math.min(u.i.length,g);const P=u.l?l(u.l.Ka,u.l,u):null;e:{var $=u.i;let Ae=-1;for(;;){const Rt=["count="+g];Ae==-1?g>0?(Ae=$[0].g,Rt.push("ofs="+Ae)):Ae=0:Rt.push("ofs="+Ae);let qe=!0;for(let Lt=0;Lt<g;Lt++){var q=$[Lt].g;const Gn=$[Lt].map;if(q-=Ae,q<0)Ae=Math.max(0,$[Lt].g-100),qe=!1;else try{q="req"+q+"_"||"";try{var X=Gn instanceof Map?Gn:Object.entries(Gn);for(const[Fs,Yr]of X){let Jr=Yr;a(Yr)&&(Jr=Re(Yr)),Rt.push(q+Fs+"="+encodeURIComponent(Jr))}}catch(Fs){throw Rt.push(q+"type="+encodeURIComponent("_badmap")),Fs}}catch{P&&P(Gn)}}if(qe){X=Rt.join("&");break e}}X=void 0}return u=u.i.splice(0,g),p.G=u,X}function bg(u){if(!u.g&&!u.v){u.Y=1;var p=u.Da;D||T(),x||(D(),x=!0),E.add(p,u),u.A=0}}function Mf(u){return u.g||u.v||u.A>=3?!1:(u.Y++,u.v=Do(l(u.Da,u),Rg(u,u.A)),u.A++,!0)}
vendor: 6,300 bytes, line 28
28t.Da=function(){if(this.v=null,Ig(this),this.aa&&!(this.P||this.g==null||this.T<=0)){var u=4*this.T;this.j.info("BP detection timer enabled: "+u),this.B=Do(l(this.Wa,this),u)}},t.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Jt(10),Ac(this),Ig(this))};function xf(u){u.B!=null&&(o.clearTimeout(u.B),u.B=null)}function Ig(u){u.g=new Kr(u,u.j,"rpc",u.Y),u.u===null&&(u.g.J=u.o),u.g.P=0;var p=Kn(u.na);Ze(p,"RID","rpc"),Ze(p,"SID",u.M),Ze(p,"AID",u.K),Ze(p,"CI",u.F?"0":"1"),!u.F&&u.ia&&Ze(p,"TO",u.ia),Ze(p,"TYPE","xmlhttp"),Wo(u,p),u.u&&u.o&&Df(p,u.u,u.o),u.O&&(u.g.H=u.O);var g=u.g;u=u.ba,g.M=1,g.A=Tc(Kn(p)),g.u=null,g.R=!0,Xm(g,u)}t.Va=function(){this.C!=null&&(this.C=null,Ac(this),Mf(this),Jt(19))};function Sc(u){u.C!=null&&(o.clearTimeout(u.C),u.C=null)}function Ag(u,p){var g=null;if(u.g==p){Sc(u),xf(u),u.g=null;var P=2}else if(Pf(u.h,p))g=p.G,sg(u.h,p),P=1;else return;if(u.I!=0){if(p.o)if(P==1){g=p.u?p.u.length:0,p=Date.now()-p.F;var $=u.D;P=Ns(),U(P,new Gm(P,g)),Rc(u)}else bg(u);else if($=p.m,$==3||$==0&&p.X>0||!(P==1&&lS(u,p)||P==2&&Mf(u)))switch(g&&g.length>0&&(p=u.h,p.i=p.i.concat(g)),$){case 1:Vs(u,5);break;case 4:Vs(u,10);break;case 3:Vs(u,6);break;default:Vs(u,2)}}}function Rg(u,p){let g=u.Qa+Math.floor(Math.random()*u.Za);return u.isActive()||(g*=2),g*p}function Vs(u,p){if(u.j.info("Error code "+p),p==2){var g=l(u.bb,u),P=u.Ua;const $=!P;P=new Gr(P||"//www.google.com/images/cleardot.gif"),o.location&&o.location.protocol=="http"||Vo(P,"https"),Tc(P),$?rS(P.toString(),g):sS(P.toString(),g)}else Jt(2);u.I=0,u.l&&u.l.pa(p),Sg(u),Eg(u)}t.bb=function(u){u?(this.j.info("Successfully pinged google.com"),Jt(2)):(this.j.info("Failed to ping google.com"),Jt(1))};function Sg(u){if(u.I=0,u.ja=[],u.l){const p=ig(u.h);(p.length!=0||u.i.length!=0)&&(y(u.ja,p),y(u.ja,u.i),u.h.i.length=0,m(u.i),u.i.length=0),u.l.oa()}}function Cg(u,p,g){var P=g instanceof Gr?Kn(g):new Gr(g);if(P.g!="")p&&(P.g=p+"."+P.g),Fo(P,P.u);else{var $=o.location;P=$.protocol,p=p?p+"."+$.hostname:$.hostname,$=+$.port;const q=new Gr(null);P&&Vo(q,P),p&&(q.g=p),$&&Fo(q,$),g&&(q.h=g),P=q}return g=u.G,p=u.wa,g&&p&&Ze(P,g,p),Ze(P,"VER",u.ka),Wo(u,P),P}function Pg(u,p,g){if(p&&!u.L)throw Error("Can't create secondary domain capable XhrIo object.");return p=u.Aa&&!u.ma?new ct(new Lf({ab:g})):new ct(u.ma),p.Fa(u.L),p}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function kg(){}t=kg.prototype,t.ra=function(){},t.qa=function(){},t.pa=function(){},t.oa=function(){},t.isActive=function(){return!0},t.Ka=function(){};function Cc(){}Cc.prototype.g=function(u,p){return new dn(u,p)};function dn(u,p){N.call(this),this.g=new vg(p),this.l=u,this.h=p&&p.messageUrlParams||null,u=p&&p.messageHeaders||null,p&&p.clientProtocolHeaderRequired&&(u?u["X-Client-Protocol"]="webchannel":u={"X-Client-Protocol":"webchannel"}),this.g.o=u,u=p&&p.initMessageHeaders||null,p&&p.messageContentType&&(u?u["X-WebChannel-Content-Type"]=p.messageContentType:u={"X-WebChannel-Content-Type":p.messageContentType}),p&&p.sa&&(u?u["X-WebChannel-Client-Profile"]=p.sa:u={"X-WebChannel-Client-Profile":p.sa}),this.g.U=u,(u=p&&p.Qb)&&!k(u)&&(this.g.u=u),this.A=p&&p.supportsCrossDomainXhr||!1,this.v=p&&p.sendRawJson||!1,(p=p&&p.httpSessionIdParam)&&!k(p)&&(this.g.G=p,u=this.h,u!==null&&p in u&&(u=this.h,p in u&&delete u[p])),this.j=new Ai(this)}h(dn,N),dn.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},dn.prototype.close=function(){Nf(this.g)},dn.prototype.o=function(u){var p=this.g;if(typeof u=="string"){var g={};g.__data__=u,u=g}else this.v&&(g={},g.__data__=Re(u),u=g);p.i.push(new QR(p.Ya++,u)),p.I==3&&Rc(p)},dn.prototype.N=function(){this.g.l=null,delete this.j,Nf(this.g),delete this.g,dn.Z.N.call(this)};function Og(u){mr.call(this),u.__headers__&&(this.headers=u.__headers__,this.statusCode=u.__status__,delete u.__headers__,delete u.__status__);var p=u.__sm__;if(p){e:{for(const g in p){u=g;break e}u=void 0}(this.i=u)&&(u=this.i,p=p!==null&&u in p?p[u]:void 0),this.data=p}else this.data=u}h(Og,mr);function Lg(){Ti.call(this),this.status=1}h(Lg,Ti);function Ai(u){this.g=u}h(Ai,kg),Ai.prototype.ra=function(){U(this.g,"a")},Ai.prototype.qa=function(u){U(this.g,new Og(u))},Ai.prototype.pa=function(u){U(this.g,new Lg)},Ai.prototype.oa=function(){U(this.g,"b")},Cc.prototype.createWebChannel=Cc.prototype.g,dn.prototype.send=dn.prototype.o,dn.prototype.open=dn.prototype.m,dn.prototype.close=dn.prototype.close,eA=function(){return new Cc},ZI=function(){return Ns()},XI=pt,Nd={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Ec.NO_ERROR=0,Ec.TIMEOUT=8,Ec.HTTP_ERROR=6,dl=Ec,zm.COMPLETE="complete",JI=zm,Yt.EventType=At,At.OPEN="a",At.CLOSE="b",At.ERROR="c",At.MESSAGE="d",N.prototype.listen=N.prototype.J,ua=Yt,ct.prototype.listenOnce=ct.prototype.K,ct.prototype.getLastError=ct.prototype.Ha,ct.prototype.getLastErrorCode=ct.prototype.ya,ct.prototype.getStatus=ct.prototype.ca,ct.prototype.getResponseJson=ct.prototype.La,ct.prototype.getResponseText=ct.prototype.la,ct.prototype.send=ct.prototype.ea,ct.prototype.setWithCredentials=ct.prototype.Fa,YI=ct}).apply(typeof Jc<"u"?Jc:typeof self<"u"?self:typeof window<"u"?window:{});class qt{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}qt.UNAUTHENTICATED=new qt(null),qt.GOOGLE_CREDENTIALS=new qt("google-credentials-uid"),qt.FIRST_PARTY=new qt("first-party-uid"),qt.MOCK_USER=new qt("mock-user");let So="12.13.0";function q4(t){So=t}const mi=new jp("@firebase/firestore");function Li(){return mi.logLevel}function ie(t,...e){if(mi.logLevel<=Oe.DEBUG){const n=e.map(rm);mi.debug(`Firestore (${So}): ${t}`,...n)}}function Br(t,...e){if(mi.logLevel<=Oe.ERROR){const n=e.map(rm);mi.error(`Firestore (${So}): ${t}`,...n)}}function gi(t,...e){if(mi.logLevel<=Oe.WARN){const n=e.map(rm);mi.warn(`Firestore (${So}): ${t}`,...n)}}function rm(t){if(typeof t=="string")return t;try{return(function(n){return JSON.stringify(n)})(t)}catch{return t}}function ge(t,e,n){let r="Unexpected state";
28typeof e=="string"?r=e:n=e,tA(t,r,n)}function tA(t,e,n){let r=`FIRESTORE (${So}) INTERNAL ASSERTION FAILED: ${e} (ID: ${t.toString(16)})`;if(n!==void 0)try{r+=" CONTEXT: "+JSON.stringify(n)}catch{r+=" CONTEXT: "+n}throw Br(r),new Error(r)}function He(t,e,n,r){let s="Unexpected state";typeof n=="string"?s=n:r=n,t||tA(e,s,r)}function we(t,e){return t}const K={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Z extends Wr{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Vr{constructor(){this.promise=new Promise(((e,n)=>{this.resolve=e,this.reject=n}))}}class nA{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class W4{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable((()=>n(qt.UNAUTHENTICATED)))}shutdown(){}}class K4{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable((()=>n(this.token.user)))}shutdown(){this.changeListener=null}}class G4{constructor(e){this.t=e,this.currentUser=qt.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){He(this.o===void 0,42304);let r=this.i;const s=c=>this.i!==r?(r=this.i,n(c)):Promise.resolve();let i=new Vr;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Vr,e.enqueueRetryable((()=>s(this.currentUser)))};const o=()=>{const c=i;e.enqueueRetryable((async()=>{await c.promise,await s(this.currentUser)}))},a=c=>{ie("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit((c=>a(c))),setTimeout((()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?a(c):(ie("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Vr)}}),0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((r=>this.i!==e?(ie("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(He(typeof r.accessToken=="string",31837,{l:r}),new nA(r.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return He(e===null||typeof e=="string",2055,{h:e}),new qt(e)}}class z4{constructor(e,n,r){this.P=e,this.T=n,this.I=r,this.type="FirstParty",this.user=qt.FIRST_PARTY,this.R=new Map}A(){return this.I?this.I():null}get headers(){this.R.set("X-Goog-AuthUser",this.P);const e=this.A();return e&&this.R.set("Authorization",e),this.T&&this.R.set("X-Goog-Iam-Authorization-Token",this.T),this.R}}class Q4{constructor(e,n,r){this.P=e,this.T=n,this.I=r}getToken(){return Promise.resolve(new z4(this.P,this.T,this.I))}start(e,n){e.enqueueRetryable((()=>n(qt.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class i0{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Y4{constructor(e,n){this.V=n,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,mn(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,n){He(this.o===void 0,3512);const r=i=>{i.error!=null&&ie("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const o=i.token!==this.m;return this.m=i.token,ie("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable((()=>r(i)))};const s=i=>{ie("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit((i=>s(i))),setTimeout((()=>
28{if(!this.appCheck){const i=this.V.getImmediate({optional:!0});i?s(i):ie("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){if(this.p)return Promise.resolve(new i0(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((n=>n?(He(typeof n.token=="string",44558,{tokenResult:n}),this.m=n.token,new i0(n.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function J4(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}class sm{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const s=J4(40);for(let i=0;i<s.length;++i)r.length<20&&s[i]<n&&(r+=e.charAt(s[i]%62))}return r}}function Ce(t,e){return t<e?-1:t>e?1:0}function Md(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++){const s=t.charAt(r),i=e.charAt(r);if(s!==i)return Th(s)===Th(i)?Ce(s,i):Th(s)?1:-1}return Ce(t.length,e.length)}const X4=55296,Z4=57343;function Th(t){const e=t.charCodeAt(0);return e>=X4&&e<=Z4}function fo(t,e,n){return t.length===e.length&&t.every(((r,s)=>n(r,e[s])))}const o0="__name__";class Zn{constructor(e,n,r){n===void 0?n=0:n>e.length&&ge(637,{offset:n,range:e.length}),r===void 0?r=e.length-n:r>e.length-n&&ge(1746,{length:r,range:e.length-n}),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return Zn.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof Zn?e.forEach((r=>{n.push(r)})):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let s=0;s<r;s++){const i=Zn.compareSegments(e.get(s),n.get(s));if(i!==0)return i}return Ce(e.length,n.length)}static compareSegments(e,n){const r=Zn.isNumericId(e),s=Zn.isNumericId(n);return r&&!s?-1:!r&&s?1:r&&s?Zn.extractNumericId(e).compare(Zn.extractNumericId(n)):Md(e,n)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return ms.fromString(e.substring(4,e.length-2))}}class Ke extends Zn{construct(e,n,r){return new Ke(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new Z(K.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter((s=>s.length>0)))}return new Ke(n)}static emptyPath(){return new Ke([])}}const e9=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Vt extends Zn{construct(e,n,r){return new Vt(e,n,r)}static isValidIdentifier(e){return e9.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Vt.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===o0}static keyField(){return new Vt([o0])}static fromServerFormat(e){const n=[];let r="",s=0;const i=()=>{if(r.length===0)throw new Z(K.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;s<e.length;){const a=e[s];if(a==="\\"){if(s+1===e.length)throw new Z(K.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[s+1];if(c!=="\\"&&c!=="."&&c!=="`")throw new Z(K.INVALID_ARGUMENT,"Path has invali
28d escape sequence: "+e);r+=c,s+=2}else a==="`"?(o=!o,s++):a!=="."||o?(r+=a,s++):(i(),s++)}if(i(),o)throw new Z(K.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Vt(n)}static emptyPath(){return new Vt([])}}class he{constructor(e){this.path=e}static fromPath(e){return new he(Ke.fromString(e))}static fromName(e){return new he(Ke.fromString(e).popFirst(5))}static empty(){return new he(Ke.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&Ke.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return Ke.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new he(new Ke(e.slice()))}}function rA(t,e,n){if(!n)throw new Z(K.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function t9(t,e,n,r){if(e===!0&&r===!0)throw new Z(K.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function a0(t){if(!he.isDocumentKey(t))throw new Z(K.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function c0(t){if(he.isDocumentKey(t))throw new Z(K.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function sA(t){return typeof t=="object"&&t!==null&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null)}function rf(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=(function(r){return r.constructor?r.constructor.name:null})(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":ge(12329,{type:typeof t})}function vn(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Z(K.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=rf(t);throw new Z(K.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}function n9(t,e){if(e<=0)throw new Z(K.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${e}.`)}function bt(t,e){const n={typeString:t};return e&&(n.value=e),n}function dc(t,e){if(!sA(t))throw new Z(K.INVALID_ARGUMENT,"JSON must be an object");let n;for(const r in e)if(e[r]){const s=e[r].typeString,i="value"in e[r]?{value:e[r].value}:void 0;if(!(r in t)){n=`JSON missing required field: '${r}'`;break}const o=t[r];if(s&&typeof o!==s){n=`JSON field '${r}' must be a ${s}.`;break}if(i!==void 0&&o!==i.value){n=`Expected '${r}' field to equal '${i.value}'`;break}}if(n)throw new Z(K.INVALID_ARGUMENT,n);return!0}const l0=-62135596800,u0=1e6;class Ge{static now(){return Ge.fromMillis(Date.now())}static fromDate(e){return Ge.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor((e-1e3*n)*u0);return new Ge(n,r)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new Z(K.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Z(K.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<l0)throw new Z(K.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Z(K.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/u0}_compareTo(e){return this.seconds===e.seconds?Ce(this.nanoseconds,e.nanoseconds):Ce(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:Ge._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(dc(e,Ge._jsonSchema))return new Ge(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-l0;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
28}Ge._jsonSchemaVersion="firestore/timestamp/1.0",Ge._jsonSchema={type:bt("string",Ge._jsonSchemaVersion),seconds:bt("number"),nanoseconds:bt("number")};class ye{static fromTimestamp(e){return new ye(e)}static min(){return new ye(new Ge(0,0))}static max(){return new ye(new Ge(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}const $a=-1;function r9(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=ye.fromTimestamp(r===1e9?new Ge(n+1,0):new Ge(n,r));return new _s(s,he.empty(),e)}function s9(t){return new _s(t.readTime,t.key,$a)}class _s{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new _s(ye.min(),he.empty(),$a)}static max(){return new _s(ye.max(),he.empty(),$a)}}function i9(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=he.comparator(t.documentKey,e.documentKey),n!==0?n:Ce(t.largestBatchId,e.largestBatchId))}const o9="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class a9{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function Co(t){if(t.code!==K.FAILED_PRECONDITION||t.message!==o9)throw t;ie("LocalStore","Unexpectedly lost primary lease")}class Y{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)}),(n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)}))}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&ge(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new Y(((r,s)=>{this.nextCallback=i=>{this.wrapSuccess(e,i).next(r,s)},this.catchCallback=i=>{this.wrapFailure(n,i).next(r,s)}}))}toPromise(){return new Promise(((e,n)=>{this.next(e,n)}))}wrapUserFunction(e){try{const n=e();return n instanceof Y?n:Y.resolve(n)}catch(n){return Y.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction((()=>e(n))):Y.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction((()=>e(n))):Y.reject(n)}static resolve(e){return new Y(((n,r)=>{n(e)}))}static reject(e){return new Y(((n,r)=>{r(e)}))}static waitFor(e){return new Y(((n,r)=>{let s=0,i=0,o=!1;e.forEach((a=>{++s,a.next((()=>{++i,o&&i===s&&n()}),(c=>r(c)))})),o=!0,i===s&&n()}))}static or(e){let n=Y.resolve(!1);for(const r of e)n=n.next((s=>s?Y.resolve(s):r()));return n}static forEach(e,n){const r=[];return e.forEach(((s,i)=>{r.push(n.call(this,s,i))})),this.waitFor(r)}static mapArray(e,n){return new Y(((r,s)=>{const i=e.length,o=new Array(i);let a=0;for(let c=0;c<i;c++){const l=c;n(e[l]).next((f=>{o[l]=f,++a,a===i&&r(o)}),(f=>s(f)))}}))}static doWhile(e,n){return new Y(((r,s)=>{const i=()=>{e()===!0?n().next((()=>{i()}),s):r()};i()}))}}function c9(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Po(t){return t.name==="IndexedDbTransactionError"}class sf{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ae(r),this.ue=r=>n.writeSequenceNumber(r))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}sf.ce=-1;const im=-1;function of(t){return t==null}function ru(t){return t===0&&1/t==-1/0}function l9(t){return typeof t=="number"&&Number.isInteger(t)&&!ru(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}const iA="�";function u9(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=f0(e)),e=f9(t.get(n),e);return f0(e)}function f9(t,e){let n=e;const r=t.length;for(let s=0;s<r;s++){const i=t.charAt(s);switch(i){case"\0":n+="��";break;case iA:n+="��";break;default:n+=i}}return n}function f0(t){return t+iA+"�"}function h0(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Os(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function oA(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}class it{constructor(e,n){this.comparator=e,this.root=n||Mt.EMPTY}insert(e,n){return new it(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,Mt.BLACK,null,
28null))}remove(e){return new it(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Mt.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((n,r)=>(e(n,r),!1)))}toString(){const e=[];return this.inorderTraversal(((n,r)=>(e.push(`${n}:${r}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Xc(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Xc(this.root,e,this.comparator,!1)}getReverseIterator(){return new Xc(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Xc(this.root,e,this.comparator,!0)}}class Xc{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&s&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Mt{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??Mt.RED,this.left=s??Mt.EMPTY,this.right=i??Mt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,i){return new Mt(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let s=this;const i=r(e,s.key);return s=i<0?s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return Mt.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return Mt.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,Mt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Mt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw ge(43730,{key:this.key,value:this.value});if(this.right.isRed())throw ge(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw ge(27949);return e+(this.isRed()?0:1)}}Mt.EMPTY=null,Mt.RED=!0,Mt.BLACK=!1;
28Mt.EMPTY=new class{constructor(){this.size=0}get key(){throw ge(57766)}get value(){throw ge(16141)}get color(){throw ge(16727)}get left(){throw ge(29726)}get right(){throw ge(36894)}copy(e,n,r,s,i){return this}insert(e,n,r){return new Mt(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Pt{constructor(e){this.comparator=e,this.data=new it(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((n,r)=>(e(n),!1)))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new d0(this.data.getIterator())}getIteratorFrom(e){return new d0(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach((r=>{n=n.add(r)})),n}isEqual(e){if(!(e instanceof Pt)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(this.comparator(s,i)!==0)return!1}return!0}toArray(){const e=[];return this.forEach((n=>{e.push(n)})),e}toString(){const e=[];return this.forEach((n=>e.push(n))),"SortedSet("+e.toString()+")"}copy(e){const n=new Pt(this.comparator);return n.data=e,n}}class d0{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class gn{constructor(e){this.fields=e,e.sort(Vt.comparator)}static empty(){return new gn([])}unionWith(e){let n=new Pt(Vt.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new gn(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return fo(this.fields,e.fields,((n,r)=>n.isEqual(r)))}}class aA extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class $t{constructor(e){this.binaryString=e}static fromBase64String(e){const n=(function(s){try{return atob(s)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new aA("Invalid base64 string: "+i):i}})(e);return new $t(n)}static fromUint8Array(e){const n=(function(s){let i="";for(let o=0;o<s.length;++o)i+=String.fromCharCode(s[o]);return i})(e);return new $t(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return(function(n){return btoa(n)})(this.binaryString)}toUint8Array(){return(function(n){const r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ce(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}$t.EMPTY_BYTE_STRING=new $t("");const h9=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function ys(t){if(He(!!t,39018),typeof t=="string"){let e=0;const n=h9.exec(t);if(He(!!n,46558,{timestamp:t}),n[1]){let s=n[1];s=(s+"000000000").substr(0,9),e=Number(s)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:mt(t.seconds),nanos:mt(t.nanos)}}function mt(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function vs(t){return typeof t=="string"?$t.fromBase64String(t):$t.fromUint8Array(t)}const cA="server_timestamp",lA="__type__",uA="__previous_value__",fA="__local_write_time__";function af(t){return(t?.mapValue?.fields||{})[lA]?.stringValue===cA}function cf(t){const e=t.mapValue.fields[uA];return af(e)?cf(e):e}function ja(t){const e=ys(t.mapValue.fields[fA].timestampValue);return new Ge(e.seconds,e.nanos)}class d9{constructor(e,n,r,s,i,o,a,c,l,f,h){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=s,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=c,this.useFetchStreams=l,this.isUsingEmulator=f,this.apiKey=h}}const su="(default)";class Ba{constructor(e,n){this.projectId=e,this.database=n||su}static empty(){return new Ba("","")}get isDefaultDatabase(){return this.database===su}isEqual(e){return e instanceof Ba&&e.projectId===this.projectId&&e.database===this.database}}function p9(t,e){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Z(K.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ba(t.options.projectId,e)}const hA="__type__",m9="__max__",Zc={mapValue:{}},dA="__vector__",iu="value";function Es(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?af(t)?4:_9(t)?9007199254740991:g9(t)?10:11:ge(28295,{value:t})}function fr(t,e){if(t===e)return!0;const n=Es(t);if(n!==Es(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return ja(t).isEqual(ja(e));
28case 3:return(function(s,i){if(typeof s.timestampValue=="string"&&typeof i.timestampValue=="string"&&s.timestampValue.length===i.timestampValue.length)return s.timestampValue===i.timestampValue;const o=ys(s.timestampValue),a=ys(i.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos})(t,e);case 5:return t.stringValue===e.stringValue;case 6:return(function(s,i){return vs(s.bytesValue).isEqual(vs(i.bytesValue))})(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return(function(s,i){return mt(s.geoPointValue.latitude)===mt(i.geoPointValue.latitude)&&mt(s.geoPointValue.longitude)===mt(i.geoPointValue.longitude)})(t,e);case 2:return(function(s,i){if("integerValue"in s&&"integerValue"in i)return mt(s.integerValue)===mt(i.integerValue);if("doubleValue"in s&&"doubleValue"in i){const o=mt(s.doubleValue),a=mt(i.doubleValue);return o===a?ru(o)===ru(a):isNaN(o)&&isNaN(a)}return!1})(t,e);case 9:return fo(t.arrayValue.values||[],e.arrayValue.values||[],fr);case 10:case 11:return(function(s,i){const o=s.mapValue.fields||{},a=i.mapValue.fields||{};if(h0(o)!==h0(a))return!1;for(const c in o)if(o.hasOwnProperty(c)&&(a[c]===void 0||!fr(o[c],a[c])))return!1;return!0})(t,e);default:return ge(52216,{left:t})}}function Ha(t,e){return(t.values||[]).find((n=>fr(n,e)))!==void 0}function ho(t,e){if(t===e)return 0;const n=Es(t),r=Es(e);if(n!==r)return Ce(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Ce(t.booleanValue,e.booleanValue);case 2:return(function(i,o){const a=mt(i.integerValue||i.doubleValue),c=mt(o.integerValue||o.doubleValue);return a<c?-1:a>c?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1})(t,e);case 3:return p0(t.timestampValue,e.timestampValue);case 4:return p0(ja(t),ja(e));case 5:return Md(t.stringValue,e.stringValue);case 6:return(function(i,o){const a=vs(i),c=vs(o);return a.compareTo(c)})(t.bytesValue,e.bytesValue);case 7:return(function(i,o){const a=i.split("/"),c=o.split("/");for(let l=0;l<a.length&&l<c.length;l++){const f=Ce(a[l],c[l]);if(f!==0)return f}return Ce(a.length,c.length)})(t.referenceValue,e.referenceValue);case 8:return(function(i,o){const a=Ce(mt(i.latitude),mt(o.latitude));return a!==0?a:Ce(mt(i.longitude),mt(o.longitude))})(t.geoPointValue,e.geoPointValue);case 9:return m0(t.arrayValue,e.arrayValue);case 10:return(function(i,o){const a=i.fields||{},c=o.fields||{},l=a[iu]?.arrayValue,f=c[iu]?.arrayValue,h=Ce(l?.values?.length||0,f?.values?.length||0);return h!==0?h:m0(l,f)})(t.mapValue,e.mapValue);case 11:return(function(i,o){if(i===Zc.mapValue&&o===Zc.mapValue)return 0;if(i===Zc.mapValue)return 1;if(o===Zc.mapValue)return-1;const a=i.fields||{},c=Object.keys(a),l=o.fields||{},f=Object.keys(l);c.sort(),f.sort();for(let h=0;h<c.length&&h<f.length;++h){const d=Md(c[h],f[h]);if(d!==0)return d;const m=ho(a[c[h]],l[f[h]]);if(m!==0)return m}return Ce(c.length,f.length)})(t.mapValue,e.mapValue);default:throw ge(23264,{he:n})}}function p0(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Ce(t,e);const n=ys(t),r=ys(e),s=Ce(n.seconds,r.seconds);return s!==0?s:Ce(n.nanos,r.nanos)}function m0(t,e){const n=t.values||[],r=e.values||[];for(let s=0;s<n.length&&s<r.length;++s){const i=ho(n[s],r[s]);if(i)return i}return Ce(n.length,r.length)}function po(t){return xd(t)}function xd(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?(function(n){const r=ys(n);return`time(${r.seconds},${r.nanos})`})(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?(function(n){return vs(n).toBase64()})(t.bytesValue):"referenceValue"in t?(function(n){return he.fromName(n).toString()})(t.referenceValue):"geoPointValue"in t?(function(n){return`geo(${n.latitude},${n.longitude})`})(t.geoPointValue):"arrayValue"in t?(function(n){let r="[",s=!0;for(const i of n.values||[])s?s=!1:r+=",",r+=xd(i);return r+"]"})(t.arrayValue):"mapValue"in t?(function(n){const r=Object.keys(n.fields||{}).sort();let s="{",i=!0;for(const o of r)i?i=!1:s+=",",s+=`${o}:${xd(n.fields[o])}`;return s+"}"})(t.mapValue):ge(61005,{value:t})}function pl(t){switch(Es(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=cf(t);return e?16+pl(e):16;case 5:return 2*t.stringValue.length;case 6:return vs(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(function(r){return(r.values||[]).reduce(((s,i)=>s+pl(i)),0)})(t.arrayValue);case 10:case 11:return(function(r){let s=0;return Os(r.fields,((i,o)=>{s+=i.length+pl(o)})),s})(t.mapValue);default:throw ge(13486,{value:t})}}function ou(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function Vd(t){return!!t&&"integerValue"in t}function om(t){return!!t&&"arrayValue"in t}function g0(t){return!!t&&"nullValue"in t}function _0(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function ml(t){return!!t&&"mapValue"in t}function g9(t){return(t?.mapValue?.fields||{})[hA]?.stringValue===dA}function Ta(t){if(t.geoPointValue)return{geoPointValue:{...t.geoPointValue}};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:{...t.timestampValue}};if(t.mapValue){const e={mapValue:{fields:{}}};return Os(t.mapValue.fields,((n,r)=>e.mapValue.fields[n]=Ta(r))),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=Ta(t.arrayValue.values[n]);return e}return{...t}}function _9(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===m9}class ln{constructor(e){this.value=e}static empty(){return new ln({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!ml(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=Ta(n)}setAll(e){let n=Vt.emptyPath(),r={},s=[];e.forEach(((o,a)=>
28{if(!n.isImmediateParentOf(a)){const c=this.getFieldsMap(n);this.applyChanges(c,r,s),r={},s=[],n=a.popLast()}o?r[a.lastSegment()]=Ta(o):s.push(a.lastSegment())}));const i=this.getFieldsMap(n);this.applyChanges(i,r,s)}delete(e){const n=this.field(e.popLast());ml(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return fr(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let s=n.mapValue.fields[e.get(r)];ml(s)&&s.mapValue.fields||(s={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=s),n=s}return n.mapValue.fields}applyChanges(e,n,r){Os(n,((s,i)=>e[s]=i));for(const s of r)delete e[s]}clone(){return new ln(Ta(this.value))}}function pA(t){const e=[];return Os(t.fields,((n,r)=>{const s=new Vt([n]);if(ml(r)){const i=pA(r.mapValue).fields;if(i.length===0)e.push(s);else for(const o of i)e.push(s.child(o))}else e.push(s)})),new gn(e)}class Kt{constructor(e,n,r,s,i,o,a){this.key=e,this.documentType=n,this.version=r,this.readTime=s,this.createTime=i,this.data=o,this.documentState=a}static newInvalidDocument(e){return new Kt(e,0,ye.min(),ye.min(),ye.min(),ln.empty(),0)}static newFoundDocument(e,n,r,s){return new Kt(e,1,n,ye.min(),r,s,0)}static newNoDocument(e,n){return new Kt(e,2,n,ye.min(),ye.min(),ln.empty(),0)}static newUnknownDocument(e,n){return new Kt(e,3,n,ye.min(),ye.min(),ln.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(ye.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=ln.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=ln.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=ye.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof Kt&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new Kt(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class mo{constructor(e,n){this.position=e,this.inclusive=n}}function y0(t,e,n){let r=0;for(let s=0;s<t.position.length;s++){const i=e[s],o=t.position[s];if(i.field.isKeyField()?r=he.comparator(he.fromName(o.referenceValue),n.key):r=ho(o,n.data.field(i.field)),i.dir==="desc"&&(r*=-1),r!==0)break}return r}function v0(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!fr(t.position[n],e.position[n]))return!1;return!0}class qa{constructor(e,n="asc"){this.field=e,this.dir=n}}function y9(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}class mA{}class wt extends mA{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new E9(e,n,r):n==="array-contains"?new b9(e,r):n==="in"?new I9(e,r):n==="not-in"?new A9(e,r):n==="array-contains-any"?new R9(e,r):new wt(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new w9(e,r):new T9(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&n.nullValue===void 0&&this.matchesComparison(ho(n,this.value)):n!==null&&Es(this.value)===Es(n)&&this.matchesComparison(ho(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return ge(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Hn extends mA{constructor(e,n){super(),this.filters=e,this.op=n,this.Pe=null}static create(e,n){return new Hn(e,n)}matches(e){return gA(this)?this.filters.find((n=>!n.matches(e)))===void 0:this.filters.find((n=>n.matches(e)))!==void 0}getFlattenedFilters(){return this.Pe!==null||(this.Pe=this.filters.reduce(((e,n)=>e.concat(n.getFlattenedFilters())),[])),this.Pe}getFilters(){return Object.assign([],this.filters)}}function gA(t){return t.op==="and"}function _A(t){return v9(t)&&gA(t)}function v9(t){for(const e of t.filters)if(e instanceof Hn)return!1;return!0}function Fd(t){if(t instanceof wt)return t.field.canonicalString()+t.op.toString()+po(t.value);if(_A(t))return t.filters.map((e=>Fd(e))).join(",");{const e=t.filters.map((n=>Fd(n))).join(",");return`${t.op}(${e})`}}function yA(t,e){return t instanceof wt?(function(r,s){return s instanceof wt&&r.op===s.op&&r.field.isEqual(s.field)&&fr(r.value,s.value)})(t,e):t instanceof Hn?(function(r,s){return s instanceof Hn&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce(((i,o,a)=>i&&yA(o,s.filters[a])),!0):!1})(t,e):void ge(19439)}function vA(t){return t instanceof wt?(function(n){return`${n.field.canonicalString()} ${n.op} ${po(n.value)}`})(t):t instanceof Hn?(function(n){return n.op.toString()+" {"+n.getFilters().map(vA).join(" ,")+"}"})(t):"Filter"}class E9 extends wt{constructor(e,n,r){super(e,n,r),this.key=he.fromName(r.referenceValue)}matches(e){const n=he.comparator(e.key,this.key);return this.matchesComparison(n)}}class w9 extends wt{constructor(e,n){super(e,"in",n),this.keys=EA("in",n)}matches(e){return this.keys.some((n=>n.isEqual(e.key)))}}class T9 extends wt{constructor(e,n){super(e,"not-in",n),this.keys=EA("not-in",n)}matches(e){return!this.keys.some((n=>n.isEqual(e.key)))}}function EA(t,e){return(e.arrayValue?.values||[]).map((n=>he.fromName(n.referenceValue)))}class b9 extends wt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return om(n)&&Ha(n.arrayValue,this.value)}}class I9 extends wt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Ha(this.value.arrayValue,n)}}class A9 extends wt{constructor(e,n){super(e,"not-in",n)}matches(e){if(Ha(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&n.nullValue===void 0&&!Ha(this.value.arrayValue,n)}}class R9 extends wt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!om(n)||!n.arrayValue.values)&&n.arrayValue.values.some((r=>Ha(this.value.arrayValue,r)))}}class S9{constructor(e,n=null,r=[],s=[],i=null,o=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=s,this.limit=i,this.startAt=o,this.endAt=a,this.Te=null}}function E0(t,e=null,n=[],r=[],s=null,i=null,o=null){return new S9(t,e,n,r,s,i,o)}function am(t){const e=we(t);if(e.Te===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((r=>Fd(r))).join(","),n+="|ob:",n+=e.orderBy.map((r=>(function(i){return i.field.canonicalString()+i.dir})(r))).join(","),of(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map((r=>po(r))).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map((r=>po(r))).join(",")),e.Te=n}return e.Te}function cm(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!y9(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!yA(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!v0(t.startAt,e.startAt)&&v0(t.endAt,e.endAt)}function Ud(t){return he.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}class vi{constructor(e,n=null,r=[],s=[],i=null,o="F",a=null,c=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=s,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=c,this.Ie=null,this.Ee=null,this.Re=null,this.startAt,this.endAt}}function C9(t,e,n,r,s,i,o,a){return new vi(t,e,n,r,s,i,o,a)}function lf(t){return new vi(t)}function w0(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function P9(t){return he.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}function lm(t){return t.collectionGroup!==null}function Zi(t){const e=we(t);if(e.Ie===null){e.Ie=[];const n=new Set;for(const i of e.explicitOrderBy)e.Ie.push(i),n.add(i.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let a=new Pt(Vt.comparator);
28return o.filters.forEach((c=>{c.getFlattenedFilters().forEach((l=>{l.isInequality()&&(a=a.add(l.field))}))})),a})(e).forEach((i=>{n.has(i.canonicalString())||i.isKeyField()||e.Ie.push(new qa(i,r))})),n.has(Vt.keyField().canonicalString())||e.Ie.push(new qa(Vt.keyField(),r))}return e.Ie}function or(t){const e=we(t);return e.Ee||(e.Ee=k9(e,Zi(t))),e.Ee}function k9(t,e){if(t.limitType==="F")return E0(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map((s=>{const i=s.dir==="desc"?"asc":"desc";return new qa(s.field,i)}));const n=t.endAt?new mo(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new mo(t.startAt.position,t.startAt.inclusive):null;return E0(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function $d(t,e){const n=t.filters.concat([e]);return new vi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function O9(t,e){const n=t.explicitOrderBy.concat([e]);return new vi(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}function au(t,e,n){return new vi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function L9(t,e){return new vi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}function uf(t,e){return cm(or(t),or(e))&&t.limitType===e.limitType}function wA(t){return`${am(or(t))}|lt:${t.limitType}`}function Di(t){return`Query(target=${(function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map((s=>vA(s))).join(", ")}]`),of(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map((s=>(function(o){return`${o.field.canonicalString()} (${o.dir})`})(s))).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map((s=>po(s))).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map((s=>po(s))).join(",")),`Target(${r})`})(or(t))}; limitType=${t.limitType})`}function ff(t,e){return e.isFoundDocument()&&(function(r,s){const i=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):he.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)})(t,e)&&(function(r,s){for(const i of Zi(r))if(!i.field.isKeyField()&&s.data.field(i.field)===null)return!1;return!0})(t,e)&&(function(r,s){for(const i of r.filters)if(!i.matches(s))return!1;return!0})(t,e)&&(function(r,s){return!(r.startAt&&!(function(o,a,c){const l=y0(o,a,c);return o.inclusive?l<=0:l<0})(r.startAt,Zi(r),s)||r.endAt&&!(function(o,a,c){const l=y0(o,a,c);return o.inclusive?l>=0:l>0})(r.endAt,Zi(r),s))})(t,e)}function D9(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function TA(t){return(e,n)=>{let r=!1;for(const s of Zi(t)){const i=N9(s,e,n);if(i!==0)return i;r=r||s.field.isKeyField()}return 0}}function N9(t,e,n){const r=t.field.isKeyField()?he.comparator(e.key,n.key):(function(i,o,a){const c=o.data.field(i),l=a.data.field(i);return c!==null&&l!==null?ho(c,l):ge(42886)})(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return ge(19790,{direction:t.dir})}}class Ei{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[s,i]of r)if(this.equalsFn(s,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),s=this.inner[r];if(s===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let i=0;i<s.length;i++)if(this.equalsFn(s[i][0],e))return void(s[i]=[e,n]);s.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return r.length===1?delete this.inner[n]:r.splice(s,1),this.innerSize--,!0;return!1}forEach(e){Os(this.inner,((n,r)=>{for(const[s,i]of r)e(s,i)}))}isEmpty(){return oA(this.inner)}size(){return this.innerSize}}const M9=new it(he.comparator);function Hr(){return M9}const bA=new it(he.comparator);function fa(...t){let e=bA;for(const n of t)e=e.insert(n.key,n);return e}function IA(t){let e=bA;return t.forEach(((n,r)=>e=e.insert(n,r.overlayedDocument))),e}function Xs(){return ba()}function AA(){return ba()}function ba(){return new Ei((t=>t.toString()),((t,e)=>t.isEqual(e)))}const x9=new it(he.comparator),V9=new Pt(he.comparator);function Pe(...t){let e=V9;for(const n of t)e=e.add(n);return e}const F9=new Pt(Ce);function U9(){return F9}function um(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:ru(e)?"-0":e}}function RA(t){return{integerValue:""+t}}function $9(t,e){return l9(e)?RA(e):um(t,e)}class hf{constructor(){this._=void 0}}function j9(t,e,n){return t instanceof cu?(function(s,i){const o={fields:{[lA]:{stringValue:cA},[fA]:{timestampValue:{seconds:s.seconds,nanos:s.nanoseconds}}}};return i&&af(i)&&(i=cf(i)),i&&(o.fields[uA]=i),{mapValue:o}})(n,e):t instanceof Wa?CA(t,e):t instanceof Ka?PA(t,e):(function(s,i){const o=SA(s,i),a=T0(o)+T0(s.Ae);
28return Vd(o)&&Vd(s.Ae)?RA(a):um(s.serializer,a)})(t,e)}function B9(t,e,n){return t instanceof Wa?CA(t,e):t instanceof Ka?PA(t,e):n}function SA(t,e){return t instanceof lu?(function(r){return Vd(r)||(function(i){return!!i&&"doubleValue"in i})(r)})(e)?e:{integerValue:0}:null}class cu extends hf{}class Wa extends hf{constructor(e){super(),this.elements=e}}function CA(t,e){const n=kA(e);for(const r of t.elements)n.some((s=>fr(s,r)))||n.push(r);return{arrayValue:{values:n}}}class Ka extends hf{constructor(e){super(),this.elements=e}}function PA(t,e){let n=kA(e);for(const r of t.elements)n=n.filter((s=>!fr(s,r)));return{arrayValue:{values:n}}}class lu extends hf{constructor(e,n){super(),this.serializer=e,this.Ae=n}}function T0(t){return mt(t.integerValue||t.doubleValue)}function kA(t){return om(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function H9(t,e){return t.field.isEqual(e.field)&&(function(r,s){return r instanceof Wa&&s instanceof Wa||r instanceof Ka&&s instanceof Ka?fo(r.elements,s.elements,fr):r instanceof lu&&s instanceof lu?fr(r.Ae,s.Ae):r instanceof cu&&s instanceof cu})(t.transform,e.transform)}class q9{constructor(e,n){this.version=e,this.transformResults=n}}class Vn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Vn}static exists(e){return new Vn(void 0,e)}static updateTime(e){return new Vn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function gl(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}let df=class{};function OA(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new fm(t.key,Vn.none()):new pc(t.key,t.data,Vn.none());{const n=t.data,r=ln.empty();let s=new Pt(Vt.comparator);for(let i of e.fields)if(!s.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?r.delete(i):r.set(i,o),s=s.add(i)}return new Ls(t.key,r,new gn(s.toArray()),Vn.none())}}function W9(t,e,n){t instanceof pc?(function(s,i,o){const a=s.value.clone(),c=I0(s.fieldTransforms,i,o.transformResults);a.setAll(c),i.convertToFoundDocument(o.version,a).setHasCommittedMutations()})(t,e,n):t instanceof Ls?(function(s,i,o){if(!gl(s.precondition,i))return void i.convertToUnknownDocument(o.version);const a=I0(s.fieldTransforms,i,o.transformResults),c=i.data;c.setAll(LA(s)),c.setAll(a),i.convertToFoundDocument(o.version,c).setHasCommittedMutations()})(t,e,n):(function(s,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()})(0,e,n)}function Ia(t,e,n,r){return t instanceof pc?(function(i,o,a,c){if(!gl(i.precondition,o))return a;const l=i.value.clone(),f=A0(i.fieldTransforms,c,o);return l.setAll(f),o.convertToFoundDocument(o.version,l).setHasLocalMutations(),null})(t,e,n,r):t instanceof Ls?(function(i,o,a,c){if(!gl(i.precondition,o))return a;const l=A0(i.fieldTransforms,c,o),f=o.data;return f.setAll(LA(i)),f.setAll(l),o.convertToFoundDocument(o.version,f).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map((h=>h.field)))})(t,e,n,r):(function(i,o,a){return gl(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a})(t,e,n)}function K9(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),i=SA(r.transform,s||null);i!=null&&(n===null&&(n=ln.empty()),n.set(r.field,i))}return n||null}function b0(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!(function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&fo(r,s,((i,o)=>H9(i,o)))})(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class pc extends df{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class Ls extends df{constructor(e,n,r,s,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.prec
vendor: 4,299 bytes, lines 28-31
28ondition=s,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function LA(t){const e=new Map;return t.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}})),e}function I0(t,e,n){const r=new Map;He(t.length===n.length,32656,{Ve:n.length,de:t.length});for(let s=0;s<n.length;s++){const i=t[s],o=i.transform,a=e.data.field(i.field);r.set(i.field,B9(o,a,n[s]))}return r}function A0(t,e,n){const r=new Map;for(const s of t){const i=s.transform,o=n.data.field(s.field);r.set(s.field,j9(i,o,e))}return r}class fm extends df{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class G9 extends df{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class z9{constructor(e,n,r,s){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=s}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let s=0;s<this.mutations.length;s++){const i=this.mutations[s];i.key.isEqual(e.key)&&W9(i,e,r[s])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=Ia(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=Ia(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=AA();return this.mutations.forEach((s=>{const i=e.get(s.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=n.has(s.key)?null:a;const c=OA(o,a);c!==null&&r.set(s.key,c),o.isValidDocument()||o.convertToNoDocument(ye.min())})),r}keys(){return this.mutations.reduce(((e,n)=>e.add(n.key)),Pe())}isEqual(e){return this.batchId===e.batchId&&fo(this.mutations,e.mutations,((n,r)=>b0(n,r)))&&fo(this.baseMutations,e.baseMutations,((n,r)=>b0(n,r)))}}class hm{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){He(e.mutations.length===r.length,58842,{me:e.mutations.length,fe:r.length});let s=(function(){return x9})();const i=e.mutations;for(let o=0;o<i.length;o++)s=s.insert(i[o].key,r[o].version);return new hm(e,n,r,s)}}class Q9{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{
29      largestBatchId: ${this.largestBatchId},
30      mutation: ${this.mutation.toString()}
31    }`}}class Y9{constructor(e,n){this.count=e,this.unchangedNames=n}}var yt,De;function J9(t){switch(t){case K.OK:return ge(64938);case K.CANCELLED:case K.UNKNOWN:case K.DEADLINE_EXCEEDED:case K.RESOURCE_EXHAUSTED:case K.INTERNAL:case K.UNAVAILABLE:case K.UNAUTHENTICATED:return!1;case K.INVALID_ARGUMENT:case K.NOT_FOUND:case K.ALREADY_EXISTS:case K.PERMISSION_DENIED:case K.FAILED_PRECONDITION:case K.ABORTED:case K.OUT_OF_RANGE:case K.UNIMPLEMENTED:case K.DATA_LOSS:return!0;default:return ge(15467,{code:t})}}function DA(t){if(t===void 0)return Br("GRPC error has no .code"),K.UNKNOWN;switch(t){case yt.OK:return K.OK;case yt.CANCELLED:return K.CANCELLED;case yt.UNKNOWN:return K.UNKNOWN;case yt.DEADLINE_EXCEEDED:return K.DEADLINE_EXCEEDED;case yt.RESOURCE_EXHAUSTED:return K.RESOURCE_EXHAUSTED;case yt.INTERNAL:return K.INTERNAL;case yt.UNAVAILABLE:return K.UNAVAILABLE;case yt.UNAUTHENTICATED:return K.UNAUTHENTICATED;case yt.INVALID_ARGUMENT:return K.INVALID_ARGUMENT;case yt.NOT_FOUND:return K.NOT_FOUND;case yt.ALREADY_EXISTS:return K.ALREADY_EXISTS;case yt.PERMISSION_DENIED:return K.PERMISSION_DENIED;case yt.FAILED_PRECONDITION:return K.FAILED_PRECONDITION;case yt.ABORTED:return K.ABORTED;case yt.OUT_OF_RANGE:return K.OUT_OF_RANGE;case yt.UNIMPLEMENTED:return K.UNIMPLEMENTED;case yt.DATA_LOSS:return K.DATA_LOSS;default:return ge(39323,{code:t})}}(De=yt||(yt={}))[De.OK=0]="OK",De[De.CANCELLED=1]="CANCELLED",De[De.UNKNOWN=2]="UNKNOWN",De[De.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",De[De.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",De[De.NOT_FOUND=5]="NOT_FOUND",De[De.ALREADY_EXISTS=6]="ALREADY_EXISTS",De[De.PERMISSION_DENIED=7]="PERMISSION_DENIED",De[De.UNAUTHENTICATED=16]="UNAUTHENTICATED",De[De.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",De[De.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",De[De.ABORTED=10]="ABORTED",De[De.OUT_OF_RANGE=11]="OUT_OF_RANGE",De[De.UNIMPLEMENT
31ED=12]="UNIMPLEMENTED",De[De.INTERNAL=13]="INTERNAL",De[De.UNAVAILABLE=14]="UNAVAILABLE",De[De.DATA_LOSS=15]="DATA_LOSS";function X9(){return new TextEncoder}const Z9=new ms([4294967295,4294967295],0);function R0(t){const e=X9().encode(t),n=new QI;return n.update(e),new Uint8Array(n.digest())}function S0(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),s=e.getUint32(8,!0),i=e.getUint32(12,!0);return[new ms([n,r],0),new ms([s,i],0)]}class dm{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new ha(`Invalid padding: ${n}`);if(r<0)throw new ha(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new ha(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new ha(`Invalid padding when bitmap length is 0: ${n}`);this.ge=8*e.length-n,this.pe=ms.fromNumber(this.ge)}ye(e,n,r){let s=e.add(n.multiply(ms.fromNumber(r)));return s.compare(Z9)===1&&(s=new ms([s.getBits(0),s.getBits(1)],0)),s.modulo(this.pe).toNumber()}we(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.ge===0)return!1;const n=R0(e),[r,s]=S0(n);for(let i=0;i<this.hashCount;i++){const o=this.ye(r,s,i);if(!this.we(o))return!1}return!0}static create(e,n,r){const s=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),o=new dm(i,s,n);return r.forEach((a=>o.insert(a))),o}insert(e){if(this.ge===0)return;const n=R0(e),[r,s]=S0(n);for(let i=0;i<this.hashCount;i++){const o=this.ye(r,s,i);this.Se(o)}}Se(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}class ha extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class mc{constructor(e,n,r,s,i){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=s,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const s=new Map;return s.set(e,gc.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new mc(ye.min(),s,new it(Ce),Hr(),Pe())}}class gc{constructor(e,n,r,s,i){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=s,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new gc(r,n,Pe(),Pe(),Pe())}}class _l{constructor(e,n,r,s){this.be=e,this.removedTargetIds=n,this.key=r,this.De=s}}class NA{constructor(e,n){this.targetId=e,this.Ce=n}}class MA{constructor(e,n,r=$t.EMPTY_BYTE_STRING,s=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=s}}class C0{constructor(){this.ve=0,this.Fe=P0(),this.Me=$t.EMPTY_BYTE_STRING,this.xe=!1,this.Oe=!0}get current(){return this.xe}get resumeToken(){return this.Me}get Ne(){return this.ve!==0}get Be(){return this.Oe}Le(e){e.approximateByteSize()>0&&(this.Oe=!0,this.Me=e)}ke(){let e=Pe(),n=Pe(),r=Pe();return this.Fe.forEach(((s,i)=>{switch(i){case 0:e=e.add(s);break;case 2:n=n.add(s);break;case 1:r=r.add(s);break;default:ge(38017,{changeType:i})}})),new gc(this.Me,this.xe,e,n,r)}Ke(){this.Oe=!1,this.Fe=P0()}qe(e,n){this.Oe=!0,this.Fe=this.Fe.insert(e,n)}Ue(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}$e(){this.ve+=1}We(){this.ve-=1,He(this.ve>=0,3241,{ve:this.ve})}Qe(){this.Oe=!0,this.xe=!0}}class e6{constructor(e){this.Ge=e,this.ze=new Map,this.je=Hr(),this.Je=el(),this.He=el(),this.Ze=new it(Ce)}Xe(e){for(const n of e.be)e.De&&e.De.isFoundDocument()?this.Ye(n,e.De):this.et(n,e.key,e.De);for(const n of e.removedTargetIds)this.et(n,e.key,e.De)}tt(e){this.forEachTarget(e,(n=>{const r=this.nt(n);switch(e.state){case 0:this.rt(n)&&r.Le(e.resumeToken);break;case 1:r.We(),r.Ne||r.Ke(),r.Le(e.resumeToken);break;case 2:r.We(),r.Ne||this.removeTarget(n);break;case 3:this.rt(n)&&(r.Qe(),r.Le(e.resumeToken));break;case 4:this.rt(n)&&(this.it(n),r.Le(e.resumeToken));break;default:ge(56790,{state:e.state})}}))}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.ze.forEach(((r,s)=>{this.rt(s)&&n(s)}))}st(e){const n=e.targetId,r=e.Ce.count,s=this.ot(n);if(s){const i=s.target;if(Ud(i))if(r===0){const o=new he(i.path);this.et(n,o,Kt.newNoDocument(o,ye.min()))}else He(r===1,20013,{expectedCount:r});else{const o=this._t(n);if(o!==r){const a=this.ut(e),c=a?this.ct(a,e,o):1;if(c!==0){this.it(n);const l=c===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ze=this.Ze.insert(n,l)}}}}}ut(e){const n=e.Ce.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:s=0},hashCount:i=0}=n;let o,a;try{o=vs(r).toUint8Array()}catch(c){if(c instanceof aA)return gi("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}try{a=new dm(o,s,i)}catch(c){return gi(c instanceof ha?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return a.ge===0?null:a}ct(e,n,r){return n.Ce.count===r-this.Pt(e,n.targetId)?0:2}Pt(e,n){const r=this.Ge.getRemoteKeysForTarget(n);let s=0;return r.forEach((i=>{const o=this.Ge.ht(),a=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.et(n,i,null),s++)})),s}Tt(e){const n=new Map;this.ze.forEach(((i,o)=>{const a=this.ot(o);if(a){if(i.current&&Ud(a.target)){const c=new he(a.target.path);this.It(c).has(o)||this.Et(o,c)||this.et(o,c,Kt.newNoDocument(c,e))}i.Be&&(n.set(o,i.ke()),i.Ke())}}));let r=Pe();this.He.forEach(((i,o)=>{let a=!0;o.forEachWhile((c=>{const l=this.ot(c);return!l||l.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)})),a&&(r=r.add(i))})),this.je.forEach(((i,o)=>o.setReadTime(e)));const s=new mc(e,n,this.Ze,this.je,r);return this.je=Hr(),this.Je=el(),this.He=el(),this.Ze=new it(Ce),s}Ye(e,n){if(!this.rt(e))return;const r=this.Et(e,n.key)?2:0;this.nt(e).qe(n.key,r),this.je=this.je.insert(n.key,n),this.Je=this.Je.insert(n.key,this.It(n.key).add(e)),this.He=this.He.insert(n.key,this.Rt(n.key).add(e))}et(e,n,r){if(!this.rt(e))return;const s=this.nt(e);this.Et(e,n)?s.qe(n,1):s.Ue(n),this.He=this.He.insert(n,this.Rt(n).delete(e)),this.He=this.He.insert(n,this.Rt(n).add(e)),r&&(this.je=this.je.insert(n,r))}removeTarget(e){this.ze.delete(e)}_t(e){const n=this.nt(e).ke();return this.Ge.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}$e(e){this.nt(e).$e()}nt(e){let n=this.ze.get(e);return n||(n=new C0,this.ze.set(e,n)),n}Rt(e){let n=this.He.get(e);return n||(n=new Pt(Ce),this.He=this.He.insert(e,n)),n}It(e){let n=this.Je.get(e);return n||(n=new Pt(Ce),this.Je=this.Je.insert(e,n)),n}rt(e){const n=this.ot(e)!==null;return n||ie("WatchChangeAggregator","Detected inactive target",e),n}ot(e){const n=this.ze.get(e);return n&&n.Ne?null:this.Ge.At(e)}it(e){this.ze.set(e,new C0),this.Ge.getRemoteKeysForTarget(e).forEach((n=>{this.et(e,n,null)}))}Et(e,n){return this.Ge.getRemoteKeysForTarget(e).has(n)}}function el(){return new it(he.comparator)}function P0(){return new it(he.comparator)}const t6={asc:"ASCENDING",desc:"DESCENDING"},n6={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},r6={and:"AND",or:"OR"};class s6{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}
31function jd(t,e){return t.useProto3Json||of(e)?e:{value:e}}function uu(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function xA(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function i6(t,e){return uu(t,e.toTimestamp())}function ar(t){return He(!!t,49232),ye.fromTimestamp((function(n){const r=ys(n);return new Ge(r.seconds,r.nanos)})(t))}function pm(t,e){return Bd(t,e).canonicalString()}function Bd(t,e){const n=(function(s){return new Ke(["projects",s.projectId,"databases",s.database])})(t).child("documents");return e===void 0?n:n.child(e)}function VA(t){const e=Ke.fromString(t);return He(BA(e),10190,{key:e.toString()}),e}function Hd(t,e){return pm(t.databaseId,e.path)}function bh(t,e){const n=VA(e);if(n.get(1)!==t.databaseId.projectId)throw new Z(K.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new Z(K.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new he(UA(n))}function FA(t,e){return pm(t.databaseId,e)}function o6(t){const e=VA(t);return e.length===4?Ke.emptyPath():UA(e)}function qd(t){return new Ke(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function UA(t){return He(t.length>4&&t.get(4)==="documents",29091,{key:t.toString()}),t.popFirst(5)}function k0(t,e,n){return{name:Hd(t,e),fields:n.value.mapValue.fields}}function a6(t,e){let n;if("targetChange"in e){e.targetChange;const r=(function(l){return l==="NO_CHANGE"?0:l==="ADD"?1:l==="REMOVE"?2:l==="CURRENT"?3:l==="RESET"?4:ge(39313,{state:l})})(e.targetChange.targetChangeType||"NO_CHANGE"),s=e.targetChange.targetIds||[],i=(function(l,f){return l.useProto3Json?(He(f===void 0||typeof f=="string",58123),$t.fromBase64String(f||"")):(He(f===void 0||f instanceof Buffer||f instanceof Uint8Array,16193),$t.fromUint8Array(f||new Uint8Array))})(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&(function(l){const f=l.code===void 0?K.UNKNOWN:DA(l.code);return new Z(f,l.message||"")})(o);n=new MA(r,s,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const s=bh(t,r.document.name),i=ar(r.document.updateTime),o=r.document.createTime?ar(r.document.createTime):ye.min(),a=new ln({mapValue:{fields:r.document.fields}}),c=Kt.newFoundDocument(s,i,o,a),l=r.targetIds||[],f=r.removedTargetIds||[];n=new _l(l,f,c.key,c)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const s=bh(t,r.document),i=r.readTime?ar(r.readTime):ye.min(),o=Kt.newNoDocument(s,i),a=r.removedTargetIds||[];n=new _l([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const s=bh(t,r.document),i=r.removedTargetIds||[];n=new _l([],i,s,null)}else{if(!("filter"in e))return ge(11601,{Vt:e});{e.filter;const r=e.filter;r.targetId;const{count:s=0,unchangedNames:i}=r,o=new Y9(s,i),a=r.targetId;n=new NA(a,o)}}return n}function c6(t,e){let n;if(e instanceof pc)n={update:k0(t,e.key,e.value)};else if(e instanceof fm)n={delete:Hd(t,e.key)};else if(e instanceof Ls)n={update:k0(t,e.key,e.data),updateMask:_6(e.fieldMask)};else{if(!(e instanceof G9))return ge(16599,{dt:e.type});n={verify:Hd(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((r=>(function(i,o){const a=o.transform;if(a instanceof cu)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Wa)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Ka)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof lu)return{fieldPath:o.field.canonicalString(),increment:a.Ae};throw ge(20930,{transform:o.transform})})(0,r)))),e.precondition.isNone||(n.currentDocument=(function(s,i){return i.updateTime!==void 0?{updateTime:i6(s,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:ge(27497)})(t,e.precondition)),n}function l6(t,e){return t&&t.length>0?(He(e!==void 0,14353),t.map((n=>(function(s,i){let o=s.updateTime?ar(s.updateTime):ar(i);return o.isEqual(ye.min())&&(o=ar(i)),new q9(o,s.transformResults||[])})(n,e)))):[]}function u6(t,e){return{documents:[FA(t,e.path)]}}function f6(t,e){const n={structuredQuery:{}},r=e.path;let s;e.collectionGroup!==null?(s=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(s=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=FA(t,s);const i=(function(l){if(l.length!==0)return jA(Hn.create(l,"and"))})(e.filters);i&&(n.structuredQuery.where=i);const o=(function(l){if(l.length!==0)return l.map((f=>(function(d){return{field:Ni(d.field),direction:p6(d.dir)}})(f)))})(e.orderBy);o&&(n.structuredQuery.orderBy=o);const a=jd(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=(function(l){return{before:l.inclusive,values:l.position}})(e.startAt)),e.endAt&&(n.structuredQuery.endAt=(function(l){return{before:!l.inclusive,values:l.position}})(e.endAt)),{ft:n,parent:s}}function h6(t){let e=o6(t.parent);
31const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){He(r===1,65062);const f=n.from[0];f.allDescendants?s=f.collectionId:e=e.child(f.collectionId)}let i=[];n.where&&(i=(function(h){const d=$A(h);return d instanceof Hn&&_A(d)?d.getFilters():[d]})(n.where));let o=[];n.orderBy&&(o=(function(h){return h.map((d=>(function(y){return new qa(Mi(y.field),(function(A){switch(A){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(y.direction))})(d)))})(n.orderBy));let a=null;n.limit&&(a=(function(h){let d;return d=typeof h=="object"?h.value:h,of(d)?null:d})(n.limit));let c=null;n.startAt&&(c=(function(h){const d=!!h.before,m=h.values||[];return new mo(m,d)})(n.startAt));let l=null;return n.endAt&&(l=(function(h){const d=!h.before,m=h.values||[];return new mo(m,d)})(n.endAt)),C9(e,s,o,i,a,"F",c,l)}function d6(t,e){const n=(function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ge(28987,{purpose:s})}})(e.purpose);return n==null?null:{"goog-listen-tags":n}}function $A(t){return t.unaryFilter!==void 0?(function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Mi(n.unaryFilter.field);return wt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=Mi(n.unaryFilter.field);return wt.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=Mi(n.unaryFilter.field);return wt.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Mi(n.unaryFilter.field);return wt.create(o,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return ge(61313);default:return ge(60726)}})(t):t.fieldFilter!==void 0?(function(n){return wt.create(Mi(n.fieldFilter.field),(function(s){switch(s){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return ge(58110);default:return ge(50506)}})(n.fieldFilter.op),n.fieldFilter.value)})(t):t.compositeFilter!==void 0?(function(n){return Hn.create(n.compositeFilter.filters.map((r=>$A(r))),(function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return ge(1026)}})(n.compositeFilter.op))})(t):ge(30097,{filter:t})}function p6(t){return t6[t]}function m6(t){return n6[t]}function g6(t){return r6[t]}function Ni(t){return{fieldPath:t.canonicalString()}}function Mi(t){return Vt.fromServerFormat(t.fieldPath)}function jA(t){return t instanceof wt?(function(n){if(n.op==="=="){if(_0(n.value))return{unaryFilter:{field:Ni(n.field),op:"IS_NAN"}};if(g0(n.value))return{unaryFilter:{field:Ni(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(_0(n.value))return{unaryFilter:{field:Ni(n.field),op:"IS_NOT_NAN"}};if(g0(n.value))return{unaryFilter:{field:Ni(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ni(n.field),op:m6(n.op),value:n.value}}})(t):t instanceof Hn?(function(n){const r=n.getFilters().map((s=>jA(s)));return r.length===1?r[0]:{compositeFilter:{op:g6(n.op),filters:r}}})(t):ge(54877,{filter:t})}function _6(t){const e=[];return t.fields.forEach((n=>e.push(n.canonicalString()))),{fieldPaths:e}}function BA(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}function HA(t){return!!t&&typeof t._toProto=="function"&&t._protoValueType==="ProtoValue"}class Lr{constructor(e,n,r,s,i=ye.min(),o=ye.min(),a=$t.EMPTY_BYTE_STRING,c=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=s,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(e){return new Lr(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Lr(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Lr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Lr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class y6{constructor(e){this.yt=e}}function v6(t){const e=h6({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?au(e,e.limit,"L"):e}class E6{constructor(){this.bn=new w6}addToCollectionParentIndex(e,n){return this.bn.add(n),Y.resolve()}getCollectionParents(e,n){return Y.resolve(this.bn.getEntries(n))}addFieldIndex(e,n){return Y.resolve()}deleteFieldIndex(e,n){return Y.resolve()}deleteAllFieldIndexes(e){return Y.resolve()}createTargetIndexes(e,n){return Y.resolve()}getDocumentsMatchingTarget(e,n){return Y.resolve(null)}getIndexType(e,n){return Y.resolve(0)}getFieldIndexes(e,n){return Y.resolve([])}getNextCollectionGroupToUpdate(e){return Y.resolve(null)}getMinOffset(e,n){return Y.resolve(_s.min())}getMinOffsetFromCollectionGroup(e,n){return Y.resolve(_s.min())}updateCollectionGroup(e,n,r){return Y.resolve()}updateIndexEntries(e,n){return Y.resolve()}}class w6{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n]||new Pt(Ke.comparator),i=!s.has(r);return this.index[n]=s.add(r),i}has(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n];return s&&s.has(r)}getEntries(e){return(this.index[e]||new Pt(Ke.comparator)).toArray()}}const O0={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},qA=41943040;class an{static withCacheSize(e){return new an(e,an.DEFAULT_COLLECTION_PE
31RCENTILE,an.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}}an.DEFAULT_COLLECTION_PERCENTILE=10,an.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,an.DEFAULT=new an(qA,an.DEFAULT_COLLECTION_PERCENTILE,an.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),an.DISABLED=new an(-1,0,0);class ws{constructor(e){this.sr=e}next(){return this.sr+=2,this.sr}static _r(){return new ws(0)}static ar(){return new ws(-1)}}const L0="LruGarbageCollector",T6=1048576;function D0([t,e],[n,r]){const s=Ce(t,n);return s===0?Ce(e,r):s}class b6{constructor(e){this.Pr=e,this.buffer=new Pt(D0),this.Tr=0}Ir(){return++this.Tr}Er(e){const n=[e,this.Ir()];if(this.buffer.size<this.Pr)this.buffer=this.buffer.add(n);else{const r=this.buffer.last();D0(n,r)<0&&(this.buffer=this.buffer.delete(r).add(n))}}get maxValue(){return this.buffer.last()[0]}}class I6{constructor(e,n,r){this.garbageCollector=e,this.asyncQueue=n,this.localStore=r,this.Rr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Ar(6e4)}stop(){this.Rr&&(this.Rr.cancel(),this.Rr=null)}get started(){return this.Rr!==null}Ar(e){ie(L0,`Garbage collection scheduled in ${e}ms`),this.Rr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(async()=>{this.Rr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Po(n)?ie(L0,"Ignoring IndexedDB error during garbage collection: ",n):await Co(n)}await this.Ar(3e5)}))}}class A6{constructor(e,n){this.Vr=e,this.params=n}calculateTargetCount(e,n){return this.Vr.dr(e).next((r=>Math.floor(n/100*r)))}nthSequenceNumber(e,n){if(n===0)return Y.resolve(sf.ce);const r=new b6(n);return this.Vr.forEachTarget(e,(s=>r.Er(s.sequenceNumber))).next((()=>this.Vr.mr(e,(s=>r.Er(s))))).next((()=>r.maxValue))}removeTargets(e,n,r){return this.Vr.removeTargets(e,n,r)}removeOrphanedDocuments(e,n){return this.Vr.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(ie("LruGarbageCollector","Garbage collection skipped; disabled"),Y.resolve(O0)):this.getCacheSize(e).next((r=>r<this.params.cacheSizeCollectionThreshold?(ie("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),O0):this.gr(e,n)))}getCacheSize(e){return this.Vr.getCacheSize(e)}gr(e,n){let r,s,i,o,a,c,l;const f=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((h=>(h>this.params.maximumSequenceNumbersToCollect?(ie("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${h}`),s=this.params.maximumSequenceNumbersToCollect):s=h,o=Date.now(),this.nthSequenceNumber(e,s)))).next((h=>(r=h,a=Date.now(),this.removeTargets(e,r,n)))).next((h=>(i=h,c=Date.now(),this.removeOrphanedDocuments(e,r)))).next((h=>(l=Date.now(),Li()<=Oe.DEBUG&&ie("LruGarbageCollector",`LRU Garbage Collection
32	Counted targets in ${o-f}ms
33	Determined least recently used ${s} in `+(a-o)+`ms
34	Removed ${i} targets in `+(c-a)+`ms
35	Removed ${h} documents in `+(l-c)+`ms
36Total Duration: ${l-f}ms`),Y.resolve({didRun:!0,sequenceNumbersCollected:s,targetsRemoved:i,documentsRemoved:h}))))}}function R6(t,e){return new A6(t,e)}class S6{constructor(){this.changes=new Ei((e=>e.toString()),((e,n)=>e.isEqual(n))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,Kt.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?Y.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class C6{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}class P6{constructor(e,n,r,s){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=s}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next((s=>(r=s,this.remoteDocumentCache.getEntry(e,n)))).next((s=>(r!==null&&Ia(r.mutation,s,gn.empty(),Ge.now()),s)))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.getLocalViewOfDocuments(e,r,Pe()).next((()=>r))))}
36getLocalViewOfDocuments(e,n,r=Pe()){const s=Xs();return this.populateOverlays(e,s,n).next((()=>this.computeViews(e,n,s,r).next((i=>{let o=fa();return i.forEach(((a,c)=>{o=o.insert(a,c.overlayedDocument)})),o}))))}getOverlayedDocuments(e,n){const r=Xs();return this.populateOverlays(e,r,n).next((()=>this.computeViews(e,n,r,Pe())))}populateOverlays(e,n,r){const s=[];return r.forEach((i=>{n.has(i)||s.push(i)})),this.documentOverlayCache.getOverlays(e,s).next((i=>{i.forEach(((o,a)=>{n.set(o,a)}))}))}computeViews(e,n,r,s){let i=Hr();const o=ba(),a=(function(){return ba()})();return n.forEach(((c,l)=>{const f=r.get(l.key);s.has(l.key)&&(f===void 0||f.mutation instanceof Ls)?i=i.insert(l.key,l):f!==void 0?(o.set(l.key,f.mutation.getFieldMask()),Ia(f.mutation,l,f.mutation.getFieldMask(),Ge.now())):o.set(l.key,gn.empty())})),this.recalculateAndSaveOverlays(e,i).next((c=>(c.forEach(((l,f)=>o.set(l,f))),n.forEach(((l,f)=>a.set(l,new C6(f,o.get(l)??null)))),a)))}recalculateAndSaveOverlays(e,n){const r=ba();let s=new it(((o,a)=>o-a)),i=Pe();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next((o=>{for(const a of o)a.keys().forEach((c=>{const l=n.get(c);if(l===null)return;let f=r.get(c)||gn.empty();f=a.applyToLocalView(l,f),r.set(c,f);const h=(s.get(a.batchId)||Pe()).add(c);s=s.insert(a.batchId,h)}))})).next((()=>{const o=[],a=s.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),l=c.key,f=c.value,h=AA();f.forEach((d=>{if(!i.has(d)){const m=OA(n.get(d),r.get(d));m!==null&&h.set(d,m),i=i.add(d)}})),o.push(this.documentOverlayCache.saveOverlays(e,l,h))}return Y.waitFor(o)})).next((()=>r))}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.recalculateAndSaveOverlays(e,r)))}getDocumentsMatchingQuery(e,n,r,s){return P9(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):lm(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next((i=>{const o=s-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-i.size):Y.resolve(Xs());let a=$a,c=i;return o.next((l=>Y.forEach(l,((f,h)=>(a<h.largestBatchId&&(a=h.largestBatchId),i.get(f)?Y.resolve():this.remoteDocumentCache.getEntry(e,f).next((d=>{c=c.insert(f,d)}))))).next((()=>this.populateOverlays(e,l,i))).next((()=>this.computeViews(e,c,l,Pe()))).next((f=>({batchId:a,changes:IA(f)})))))}))}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new he(n)).next((r=>{let s=fa();return r.isFoundDocument()&&(s=s.insert(r.key,r)),s}))}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const i=n.collectionGroup;let o=fa();return this.indexManager.getCollectionParents(e,i).next((a=>Y.forEach(a,(c=>{const l=(function(h,d){return new vi(d,null,h.explicitOrderBy.slice(),h.filters.slice(),h.limit,h.limitType,h.startAt,h.endAt)})(n,c.child(i));return this.getDocumentsMatchingCollectionQuery(e,l,r,s).next((f=>{f.forEach(((h,d)=>{o=o.insert(h,d)}))}))})).next((()=>o))))}getDocumentsMatchingCollectionQuery(e,n,r,s){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next((o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,s)))).next((o=>{i.forEach(((c,l)=>{const f=l.getKey();o.get(f)===null&&(o=o.insert(f,Kt.newInvalidDocument(f)))}));let a=fa();return o.forEach(((c,l)=>{const f=i.get(c);f!==void 0&&Ia(f.mutation,l,gn.empty(),Ge.now()),ff(n,l)&&(a=a.insert(c,l))})),a}))}}class k6{constructor(e){this.serializer=e,this.Nr=new Map,this.Br=new Map}getBundleMetadata(e,n){return Y.resolve(this.Nr.get(n))}saveBundleMetadata(e,n){return this.Nr.set(n.id,(function(s){return{id:s.id,version:s.version,createTime:ar(s.createTime)}})(n)),Y.resolve()}getNamedQuery(e,n){return Y.resolve(this.Br.get(n))}saveNamedQuery(e,n){return this.Br.set(n.name,(function(s){return{name:s.name,query:v6(s.bundledQuery),readTime:ar(s.readTime)}})(n)),Y.resolve()}}class O6{constructor(){this.overlays=new it(he.comparator),this.Lr=new Map}getOverlay(e,n){return Y.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Xs();return Y.forEach(n,(s=>this.getOverlay(e,s).next((i=>{i!==null&&r.set(s,i)})))).next((()=>r))}saveOverlays(e,n,r){return r.forEach(((s,i)=>{this.St(e,n,i)})),Y.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Lr.get(r);return s!==void 0&&(s.forEach((i=>this.overlays=this.overlays.remove(i))),this.Lr.delete(r)),Y.resolve()}getOverlaysForCollection(e,n,r){const s=Xs(),i=n.length+1,o=new he(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const c=a.getNext().value,l=c.getKey();if(!n.isPrefixOf(l.path))break;l.path.length===i&&c.largestBatchId>r&&s.set(c.getKey(),c)}return Y.resolve(s)}
36getOverlaysForCollectionGroup(e,n,r,s){let i=new it(((l,f)=>l-f));const o=this.overlays.getIterator();for(;o.hasNext();){const l=o.getNext().value;if(l.getKey().getCollectionGroup()===n&&l.largestBatchId>r){let f=i.get(l.largestBatchId);f===null&&(f=Xs(),i=i.insert(l.largestBatchId,f)),f.set(l.getKey(),l)}}const a=Xs(),c=i.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach(((l,f)=>a.set(l,f))),!(a.size()>=s)););return Y.resolve(a)}St(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const o=this.Lr.get(s.largestBatchId).delete(r.key);this.Lr.set(s.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new Q9(n,r));let i=this.Lr.get(n);i===void 0&&(i=Pe(),this.Lr.set(n,i)),this.Lr.set(n,i.add(r.key))}}class L6{constructor(){this.sessionToken=$t.EMPTY_BYTE_STRING}getSessionToken(e){return Y.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,Y.resolve()}}class mm{constructor(){this.kr=new Pt(Dt.Kr),this.qr=new Pt(Dt.Ur)}isEmpty(){return this.kr.isEmpty()}addReference(e,n){const r=new Dt(e,n);this.kr=this.kr.add(r),this.qr=this.qr.add(r)}$r(e,n){e.forEach((r=>this.addReference(r,n)))}removeReference(e,n){this.Wr(new Dt(e,n))}Qr(e,n){e.forEach((r=>this.removeReference(r,n)))}Gr(e){const n=new he(new Ke([])),r=new Dt(n,e),s=new Dt(n,e+1),i=[];return this.qr.forEachInRange([r,s],(o=>{this.Wr(o),i.push(o.key)})),i}zr(){this.kr.forEach((e=>this.Wr(e)))}Wr(e){this.kr=this.kr.delete(e),this.qr=this.qr.delete(e)}jr(e){const n=new he(new Ke([])),r=new Dt(n,e),s=new Dt(n,e+1);let i=Pe();return this.qr.forEachInRange([r,s],(o=>{i=i.add(o.key)})),i}containsKey(e){const n=new Dt(e,0),r=this.kr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Dt{constructor(e,n){this.key=e,this.Jr=n}static Kr(e,n){return he.comparator(e.key,n.key)||Ce(e.Jr,n.Jr)}static Ur(e,n){return Ce(e.Jr,n.Jr)||he.comparator(e.key,n.key)}}class D6{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Yn=1,this.Hr=new Pt(Dt.Kr)}checkEmpty(e){return Y.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,s){const i=this.Yn;this.Yn++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new z9(i,n,r,s);this.mutationQueue.push(o);for(const a of s)this.Hr=this.Hr.add(new Dt(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return Y.resolve(o)}lookupMutationBatch(e,n){return Y.resolve(this.Zr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.Xr(r),i=s<0?0:s;return Y.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return Y.resolve(this.mutationQueue.length===0?im:this.Yn-1)}getAllMutationBatches(e){return Y.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Dt(n,0),s=new Dt(n,Number.POSITIVE_INFINITY),i=[];return this.Hr.forEachInRange([r,s],(o=>{const a=this.Zr(o.Jr);i.push(a)})),Y.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new Pt(Ce);return n.forEach((s=>{const i=new Dt(s,0),o=new Dt(s,Number.POSITIVE_INFINITY);this.Hr.forEachInRange([i,o],(a=>{r=r.add(a.Jr)}))})),Y.resolve(this.Yr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let i=r;he.isDocumentKey(i)||(i=i.child(""));const o=new Dt(new he(i),0);let a=new Pt(Ce);return this.Hr.forEachWhile((c=>{const l=c.key.path;return!!r.isPrefixOf(l)&&(l.length===s&&(a=a.add(c.Jr)),!0)}),o),Y.resolve(this.Yr(a))}Yr(e){const n=[];return e.forEach((r=>{const s=this.Zr(r);s!==null&&n.push(s)})),n}removeMutationBatch(e,n){He(this.ei(n.batchId,"removed")===0,55003),this.mutationQueue.shift();let r=this.Hr;return Y.forEach(n.mutations,(s=>{const i=new Dt(s.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)})).next((()=>{this.Hr=r}))}nr(e){}containsKey(e,n){const r=new Dt(n,0),s=this.Hr.firstAfterOrEqual(r);return Y.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,Y.resolve()}ei(e,n){return this.Xr(e)}
36Xr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Zr(e){const n=this.Xr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}class N6{constructor(e){this.ti=e,this.docs=(function(){return new it(he.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,s=this.docs.get(r),i=s?s.size:0,o=this.ti(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return Y.resolve(r?r.document.mutableCopy():Kt.newInvalidDocument(n))}getEntries(e,n){let r=Hr();return n.forEach((s=>{const i=this.docs.get(s);r=r.insert(s,i?i.document.mutableCopy():Kt.newInvalidDocument(s))})),Y.resolve(r)}getDocumentsMatchingQuery(e,n,r,s){let i=Hr();const o=n.path,a=new he(o.child("__id-9223372036854775808__")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:l,value:{document:f}}=c.getNext();if(!o.isPrefixOf(l.path))break;l.path.length>o.length+1||i9(s9(f),r)<=0||(s.has(f.key)||ff(n,f))&&(i=i.insert(f.key,f.mutableCopy()))}return Y.resolve(i)}getAllFromCollectionGroup(e,n,r,s){ge(9500)}ni(e,n){return Y.forEach(this.docs,(r=>n(r)))}newChangeBuffer(e){return new M6(this)}getSize(e){return Y.resolve(this.size)}}class M6 extends S6{constructor(e){super(),this.Mr=e}applyChanges(e){const n=[];
vendor: 8,158 bytes, line 36
36return this.changes.forEach(((r,s)=>{s.isValidDocument()?n.push(this.Mr.addEntry(e,s)):this.Mr.removeEntry(r)})),Y.waitFor(n)}getFromCache(e,n){return this.Mr.getEntry(e,n)}getAllFromCache(e,n){return this.Mr.getEntries(e,n)}}class x6{constructor(e){this.persistence=e,this.ri=new Ei((n=>am(n)),cm),this.lastRemoteSnapshotVersion=ye.min(),this.highestTargetId=0,this.ii=0,this.si=new mm,this.targetCount=0,this.oi=ws._r()}forEachTarget(e,n){return this.ri.forEach(((r,s)=>n(s))),Y.resolve()}getLastRemoteSnapshotVersion(e){return Y.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Y.resolve(this.ii)}allocateTargetId(e){return this.highestTargetId=this.oi.next(),Y.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.ii&&(this.ii=n),Y.resolve()}lr(e){this.ri.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.oi=new ws(n),this.highestTargetId=n),e.sequenceNumber>this.ii&&(this.ii=e.sequenceNumber)}addTargetData(e,n){return this.lr(n),this.targetCount+=1,Y.resolve()}updateTargetData(e,n){return this.lr(n),Y.resolve()}removeTargetData(e,n){return this.ri.delete(n.target),this.si.Gr(n.targetId),this.targetCount-=1,Y.resolve()}removeTargets(e,n,r){let s=0;const i=[];return this.ri.forEach(((o,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.ri.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),s++)})),Y.waitFor(i).next((()=>s))}getTargetCount(e){return Y.resolve(this.targetCount)}getTargetData(e,n){const r=this.ri.get(n)||null;return Y.resolve(r)}addMatchingKeys(e,n,r){return this.si.$r(n,r),Y.resolve()}removeMatchingKeys(e,n,r){this.si.Qr(n,r);const s=this.persistence.referenceDelegate,i=[];return s&&n.forEach((o=>{i.push(s.markPotentiallyOrphaned(e,o))})),Y.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.si.Gr(n),Y.resolve()}getMatchingKeysForTargetId(e,n){const r=this.si.jr(n);return Y.resolve(r)}containsKey(e,n){return Y.resolve(this.si.containsKey(n))}}class WA{constructor(e,n){this._i={},this.overlays={},this.ai=new sf(0),this.ui=!1,this.ui=!0,this.ci=new L6,this.referenceDelegate=e(this),this.li=new x6(this),this.indexManager=new E6,this.remoteDocumentCache=(function(s){return new N6(s)})((r=>this.referenceDelegate.hi(r))),this.serializer=new y6(n),this.Pi=new k6(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ui=!1,Promise.resolve()}get started(){return this.ui}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new O6,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this._i[e.toKey()];return r||(r=new D6(n,this.referenceDelegate),this._i[e.toKey()]=r),r}getGlobalsCache(){return this.ci}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Pi}runTransaction(e,n,r){ie("MemoryPersistence","Starting transaction:",e);const s=new V6(this.ai.next());return this.referenceDelegate.Ti(),r(s).next((i=>this.referenceDelegate.Ii(s).next((()=>i)))).toPromise().then((i=>(s.raiseOnCommittedEvent(),i)))}Ei(e,n){return Y.or(Object.values(this._i).map((r=>()=>r.containsKey(e,n))))}}class V6 extends a9{constructor(e){super(),this.currentSequenceNumber=e}}class gm{constructor(e){this.persistence=e,this.Ri=new mm,this.Ai=null}static Vi(e){return new gm(e)}get di(){if(this.Ai)return this.Ai;throw ge(60996)}addReference(e,n,r){return this.Ri.addReference(r,n),this.di.delete(r.toString()),Y.resolve()}removeReference(e,n,r){return this.Ri.removeReference(r,n),this.di.add(r.toString()),Y.resolve()}markPotentiallyOrphaned(e,n){return this.di.add(n.toString()),Y.resolve()}removeTarget(e,n){this.Ri.Gr(n.targetId).forEach((s=>this.di.add(s.toString())));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next((s=>{s.forEach((i=>this.di.add(i.toString())))})).next((()=>r.removeTargetData(e,n)))}Ti(){this.Ai=new Set}Ii(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Y.forEach(this.di,(r=>{const s=he.fromPath(r);return this.mi(e,s).next((i=>{i||n.removeEntry(s,ye.min())}))})).next((()=>(this.Ai=null,n.apply(e))))}updateLimboDocument(e,n){return this.mi(e,n).next((r=>{r?this.di.delete(n.toString()):this.di.add(n.toString())}))}hi(e){return 0}mi(e,n){return Y.or([()=>Y.resolve(this.Ri.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Ei(e,n)])}}class fu{constructor(e,n){this.persistence=e,this.fi=new Ei((r=>u9(r.path)),((r,s)=>r.isEqual(s))),this.garbageCollector=R6(this,n)}static Vi(e,n){return new fu(e,n)}Ti(){}Ii(e){return Y.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}dr(e){const n=this.pr(e);return this.persistence.getTargetCache().getTargetCount(e).next((r=>n.next((s=>r+s))))}pr(e){let n=0;return this.mr(e,(r=>{n++})).next((()=>n))}mr(e,n){return Y.forEach(this.fi,((r,s)=>this.wr(e,r,s).next((i=>i?Y.resolve():n(s)))))}removeTargets(e,n,r){return this.persistence.getTargetCache().removeTargets(e,n,r)}removeOrphanedDocuments(e,n){let r=0;const s=this.persistence.getRemoteDocumentCache(),i=s.newChangeBuffer();return s.ni(e,(o=>this.wr(e,o,n).next((a=>{a||(r++,i.removeEntry(o,ye.min()))})))).next((()=>i.apply(e))).next((()=>r))}markPotentiallyOrphaned(e,n){return this.fi.set(n,e.currentSequenceNumber),Y.resolve()}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,n,r){return this.fi.set(r,e.currentSequenceNumber),Y.resolve()}removeReference(e,n,r){return this.fi.set(r,e.currentSequenceNumber),Y.resolve()}updateLimboDocument(e,n){return this.fi.set(n,e.currentSequenceNumber),Y.resolve()}hi(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=pl(e.data.value)),n}wr(e,n,r){return Y.or([()=>this.persistence.Ei(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const s=this.fi.get(n);return Y.resolve(s!==void 0&&s>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class _m{constructor(e,n,r,s){this.targetId=e,this.fromCache=n,this.Ts=r,this.Is=s}static Es(e,n){let r=Pe(),s=Pe();for(const i of n.docChanges)switch(i.type){case 0:r=r.add(i.doc.key);break;case 1:s=s.add(i.doc.key)}return new _m(e,n.fromCache,r,s)}}class F6{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class U6{constructor(){this.Rs=!1,this.As=!1,this.Vs=100,this.ds=(function(){return JV()?8:c9(Gt())>0?6:4})()}initialize(e,n){this.fs=e,this.indexManager=n,this.Rs=!0}getDocumentsMatchingQuery(e,n,r,s){const i={result:null};return this.gs(e,n).next((o=>{i.result=o})).next((()=>{if(!i.result)return this.ps(e,n,s,r).next((o=>{i.result=o}))})).next((()=>{if(i.result)return;const o=new F6;return this.ys(e,n,o).next((a=>{if(i.result=a,this.As)return this.ws(e,n,o,a.size)}))})).next((()=>i.result))}ws(e,n,r,s){return r.documentReadCount<this.Vs?(Li()<=Oe.DEBUG&&ie("QueryEngine","SDK will not create cache indexes for query:",Di(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Vs,"documents"),Y.resolve()):(Li()<=Oe.DEBUG&&ie("QueryEngine","Query:",Di(n),"scans",r.documentReadCount,"local documents and returns",s,"documents as results."),r.documentReadCount>this.ds*s?(Li()<=Oe.DEBUG&&ie("QueryEngine","The SDK decides to create cache indexes for query:",Di(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,or(n))):Y.resolve())}gs(e,n){if(w0(n))return Y.resolve(null);let r=or(n);return this.indexManager.getIndexType(e,r).next((s=>s===0?null:(n.limit!==null&&s===1&&(n=au(n,null,"F"),r=or(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next((i=>{const o=Pe(...i);return this.fs.getDocuments(e,o).next((a=>this.indexManager.getMinOffset(e,r).next((c=>{const l=this.Ss(n,a);return this.bs(n,l,o,c.readTime)?this.gs(e,au(n,null,"F")):this.Ds(e,l,n,c)}))))})))))}
36ps(e,n,r,s){return w0(n)||s.isEqual(ye.min())?Y.resolve(null):this.fs.getDocuments(e,r).next((i=>{const o=this.Ss(n,i);return this.bs(n,o,r,s)?Y.resolve(null):(Li()<=Oe.DEBUG&&ie("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),Di(n)),this.Ds(e,o,n,r9(s,$a)).next((a=>a)))}))}Ss(e,n){let r=new Pt(TA(e));return n.forEach(((s,i)=>{ff(e,i)&&(r=r.add(i))})),r}bs(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(s)>0)}ys(e,n,r){return Li()<=Oe.DEBUG&&ie("QueryEngine","Using full collection scan to execute query:",Di(n)),this.fs.getDocumentsMatchingQuery(e,n,_s.min(),r)}Ds(e,n,r,s){return this.fs.getDocumentsMatchingQuery(e,r,s).next((i=>(n.forEach((o=>{i=i.insert(o.key,o)})),i)))}}const ym="LocalStore",$6=3e8;class j6{constructor(e,n,r,s){this.persistence=e,this.Cs=n,this.serializer=s,this.vs=new it(Ce),this.Fs=new Ei((i=>am(i)),cm),this.Ms=new Map,this.xs=e.getRemoteDocumentCache(),this.li=e.getTargetCache(),this.Pi=e.getBundleCache(),this.Os(r)}Os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new P6(this.xs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.xs.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(n=>e.collect(n,this.vs)))}}function B6(t,e,n,r){return new j6(t,e,n,r)}async function KA(t,e){const n=we(t);return await n.persistence.runTransaction("Handle user change","readonly",(r=>{let s;
36return n.mutationQueue.getAllMutationBatches(r).next((i=>(s=i,n.Os(e),n.mutationQueue.getAllMutationBatches(r)))).next((i=>{const o=[],a=[];let c=Pe();for(const l of s){o.push(l.batchId);for(const f of l.mutations)c=c.add(f.key)}for(const l of i){a.push(l.batchId);for(const f of l.mutations)c=c.add(f.key)}return n.localDocuments.getDocuments(r,c).next((l=>({Ns:l,removedBatchIds:o,addedBatchIds:a})))}))}))}function H6(t,e){const n=we(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(r=>{const s=e.batch.keys(),i=n.xs.newChangeBuffer({trackRemovals:!0});return(function(a,c,l,f){const h=l.batch,d=h.keys();let m=Y.resolve();return d.forEach((y=>{m=m.next((()=>f.getEntry(c,y))).next((_=>{const A=l.docVersions.get(y);He(A!==null,48541),_.version.compareTo(A)<0&&(h.applyToRemoteDocument(_,l),_.isValidDocument()&&(_.setReadTime(l.commitVersion),f.addEntry(_)))}))})),m.next((()=>a.mutationQueue.removeMutationBatch(c,h)))})(n,r,e,i).next((()=>i.apply(r))).next((()=>n.mutationQueue.performConsistencyCheck(r))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,(function(a){let c=Pe();for(let l=0;l<a.mutationResults.length;++l)a.mutationResults[l].transformResults.length>0&&(c=c.add(a.batch.mutations[l].key));return c})(e)))).next((()=>n.localDocuments.getDocuments(r,s)))}))}function GA(t){const e=we(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(n=>e.li.getLastRemoteSnapshotVersion(n)))}function q6(t,e){const n=we(t),r=e.snapshotVersion;let s=n.vs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(i=>{const o=n.xs.newChangeBuffer({trackRemovals:!0});s=n.vs;const a=[];
36e.targetChanges.forEach(((f,h)=>{const d=s.get(h);if(!d)return;a.push(n.li.removeMatchingKeys(i,f.removedDocuments,h).next((()=>n.li.addMatchingKeys(i,f.addedDocuments,h))));let m=d.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(h)!==null?m=m.withResumeToken($t.EMPTY_BYTE_STRING,ye.min()).withLastLimboFreeSnapshotVersion(ye.min()):f.resumeToken.approximateByteSize()>0&&(m=m.withResumeToken(f.resumeToken,r)),s=s.insert(h,m),(function(_,A,w){return _.resumeToken.approximateByteSize()===0||A.snapshotVersion.toMicroseconds()-_.snapshotVersion.toMicroseconds()>=$6?!0:w.addedDocuments.size+w.modifiedDocuments.size+w.removedDocuments.size>0})(d,m,f)&&a.push(n.li.updateTargetData(i,m))}));let c=Hr(),l=Pe();if(e.documentUpdates.forEach((f=>{e.resolvedLimboDocuments.has(f)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,f))})),a.push(W6(i,o,e.documentUpdates).next((f=>{c=f.Bs,l=f.Ls}))),!r.isEqual(ye.min())){const f=n.li.getLastRemoteSnapshotVersion(i).next((h=>n.li.setTargetsMetadata(i,i.currentSequenceNumber,r)));a.push(f)}return Y.waitFor(a).next((()=>o.apply(i))).next((()=>n.localDocuments.getLocalViewOfDocuments(i,c,l))).next((()=>c))})).then((i=>(n.vs=s,i)))}function W6(t,e,n){let r=Pe(),s=Pe();return n.forEach((i=>r=r.add(i))),e.getEntries(t,r).next((i=>{let o=Hr();return n.forEach(((a,c)=>{const l=i.get(a);c.isFoundDocument()!==l.isFoundDocument()&&(s=s.add(a)),c.isNoDocument()&&c.version.isEqual(ye.min())?(e.removeEntry(a,c.readTime),o=o.insert(a,c)):!l.isValidDocument()||c.version.compareTo(l.version)>0||c.version.compareTo(l.version)===0&&l.hasPendingWrites?(e.addEntry(c),o=o.insert(a,c)):ie(ym,"Ignoring outdated watch update for ",a,". Current version:",l.version," Watch version:",c.version)})),{Bs:o,Ls:s}}))}function K6(t,e){const n=we(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(r=>(e===void 0&&(e=im),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e))))}function G6(t,e){const n=we(t);return n.persistence.runTransaction("Allocate target","readwrite",(r=>{let s;return n.li.getTargetData(r,e).next((i=>i?(s=i,Y.resolve(s)):n.li.allocateTargetId(r).next((o=>(s=new Lr(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.li.addTargetData(r,s).next((()=>s)))))))})).then((r=>{const s=n.vs.get(r.targetId);return(s===null||r.snapshotVersion.compareTo(s.snapshotVersion)>0)&&(n.vs=n.vs.insert(r.targetId,r),n.Fs.set(e,r.targetId)),r}))}async function Wd(t,e,n){const r=we(t),s=r.vs.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,(o=>r.persistence.referenceDelegate.removeTarget(o,s)))}catch(o){if(!Po(o))throw o;ie(ym,`Failed to update sequence numbers for target ${e}: ${o}`)}r.vs=r.vs.remove(e),r.Fs.delete(s.target)}function N0(t,e,n){const r=we(t);let s=ye.min(),i=Pe();return r.persistence.runTransaction("Execute query","readwrite",(o=>(function(c,l,f){const h=we(c),d=h.Fs.get(f);return d!==void 0?Y.resolve(h.vs.get(d)):h.li.getTargetData(l,f)})(r,o,or(e)).next((a=>{if(a)return s=a.lastLimboFreeSnapshotVersion,r.li.getMatchingKeysForTargetId(o,a.targetId).next((c=>{i=c}))})).next((()=>r.Cs.getDocumentsMatchingQuery(o,e,n?s:ye.min(),n?i:Pe()))).next((a=>(z6(r,D9(e),a),{documents:a,ks:i})))))}function z6(t,e,n){let r=t.Ms.get(e)||ye.min();n.forEach(((s,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)})),t.Ms.set(e,r)}class M0{constructor(){this.activeTargetIds=U9()}Qs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class Q6{constructor(){this.vo=new M0,this.Fo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.vo.Qs(e),this.Fo[e]||"not-current"}updateQueryState(e,n,r){this.Fo[e]=n}removeLocalQueryTarget(e){this.vo.Gs(e)}isLocalQueryTarget(e){return this.vo.activeTargetIds.has(e)}clearQueryState(e){delete this.Fo[e]}getAllActiveQueryTargets(){return this.vo.activeTargetIds}isActiveQueryTarget(e){return this.vo.activeTargetIds.has(e)}start(){return this.vo=new M0,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Y6{Mo(e){}shutdown(){}}const x0="ConnectivityMonitor";class V0{constructor(){this.xo=()=>this.Oo(),this.No=()=>this.Bo(),this.Lo=[],this.ko()}Mo(e){this.Lo.push(e)}shutdown(){window.removeEventListener("online",this.xo),window.removeEventListener("offline",this.No)}
36ko(){window.addEventListener("online",this.xo),window.addEventListener("offline",this.No)}Oo(){ie(x0,"Network connectivity changed: AVAILABLE");for(const e of this.Lo)e(0)}Bo(){ie(x0,"Network connectivity changed: UNAVAILABLE");for(const e of this.Lo)e(1)}static v(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}let tl=null;function Kd(){return tl===null?tl=(function(){return 268435456+Math.round(2147483648*Math.random())})():tl++,"0x"+tl.toString(16)}const Ih="RestConnection",J6={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class X6{get Ko(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.qo=n+"://"+e.host,this.Uo=`projects/${r}/databases/${s}`,this.$o=this.databaseId.database===su?`project_id=${r}`:`project_id=${r}&database_id=${s}`}Wo(e,n,r,s,i){const o=Kd(),a=this.Qo(e,n.toUriEncodedString());ie(Ih,`Sending RPC '${e}' ${o}:`,a,r);const c={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.$o};this.Go(c,s,i);const{host:l}=new URL(a),f=cc(l);return this.zo(e,a,c,r,f).then((h=>(ie(Ih,`Received RPC '${e}' ${o}: `,h),h)),(h=>{throw gi(Ih,`RPC '${e}' ${o} failed with error: `,h,"url: ",a,"request:",r),h}))}jo(e,n,r,s,i,o){return this.Wo(e,n,r,s,i)}Go(e,n,r){e["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+So})(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEach(((s,i)=>e[i]=s)),r&&r.headers.forEach(((s,i)=>e[i]=s))}Qo(e,n){const r=J6[e];let s=`${this.qo}/v1/${n}:${r}`;return this.databaseInfo.apiKey&&(s=`${s}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),s}terminate(){}}class Z6{constructor(e){this.Jo=e.Jo,this.Ho=e.Ho}Zo(e){this.Xo=e}Yo(e){this.e_=e}t_(e){this.n_=e}onMessage(e){this.r_=e}close(){this.Ho()}send(e){this.Jo(e)}i_(){this.Xo()}s_(){this.e_()}o_(e){this.n_(e)}__(e){this.r_(e)}}const Bt="WebChannelConnection",ta=(t,e,n)=>{t.listen(e,(r=>{try{n(r)}catch(s){setTimeout((()=>{throw s}),0)}}))};class eo extends X6{constructor(e){super(e),this.a_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static u_(){if(!eo.c_){const e=ZI();ta(e,XI.STAT_EVENT,(n=>{n.stat===Nd.PROXY?ie(Bt,"STAT_EVENT: detected buffering proxy"):n.stat===Nd.NOPROXY&&ie(Bt,"STAT_EVENT: detected no buffering proxy")})),eo.c_=!0}}zo(e,n,r,s,i){const o=Kd();return new Promise(((a,c)=>{const l=new YI;l.setWithCredentials(!0),l.listenOnce(JI.COMPLETE,(()=>{try{switch(l.getLastErrorCode()){case dl.NO_ERROR:const h=l.getResponseJson();ie(Bt,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(h)),a(h);break;case dl.TIMEOUT:ie(Bt,`RPC '${e}' ${o} timed out`),c(new Z(K.DEADLINE_EXCEEDED,"Request time out"));break;case dl.HTTP_ERROR:const d=l.getStatus();if(ie(Bt,`RPC '${e}' ${o} failed with status:`,d,"response text:",l.getResponseText()),d>0){let m=l.getResponseJson();Array.isArray(m)&&(m=m[0]);const y=m?.error;if(y&&y.status&&y.message){const _=(function(w){const R=w.toLowerCase().replace(/_/g,"-");return Object.values(K).indexOf(R)>=0?R:K.UNKNOWN})(y.status);c(new Z(_,y.message))}else c(new Z(K.UNKNOWN,"Server responded with status "+l.getStatus()))}else c(new Z(K.UNAVAILABLE,"Connection failed."));break;default:ge(9055,{l_:e,streamId:o,h_:l.getLastErrorCode(),P_:l.getLastError()})}}finally{ie(Bt,`RPC '${e}' ${o} completed.`)}}));const f=JSON.stringify(s);ie(Bt,`RPC '${e}' ${o} sending request:`,s),l.send(n,"POST",f,r,15)}))}T_(e,n,r){const s=Kd(),i=[this.qo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=this.createWebChannelTransport(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`}
36,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(a.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(a.useFetchStreams=!0),this.Go(a.initMessageHeaders,n,r),a.encodeInitMessageHeaders=!0;const l=i.join("");ie(Bt,`Creating RPC '${e}' stream ${s}: ${l}`,a);const f=o.createWebChannel(l,a);this.I_(f);let h=!1,d=!1;const m=new Z6({Jo:y=>{d?ie(Bt,`Not sending because RPC '${e}' stream ${s} is closed:`,y):(h||(ie(Bt,`Opening RPC '${e}' stream ${s} transport.`),f.open(),h=!0),ie(Bt,`RPC '${e}' stream ${s} sending:`,y),f.send(y))},Ho:()=>f.close()});return ta(f,ua.EventType.OPEN,(()=>{d||(ie(Bt,`RPC '${e}' stream ${s} transport opened.`),m.i_())})),ta(f,ua.EventType.CLOSE,(()=>{d||(d=!0,ie(Bt,`RPC '${e}' stream ${s} transport closed`),m.o_(),this.E_(f))})),ta(f,ua.EventType.ERROR,(y=>{d||(d=!0,gi(Bt,`RPC '${e}' stream ${s} transport errored. Name:`,y.name,"Message:",y.message),m.o_(new Z(K.UNAVAILABLE,"The operation could not be completed")))})),ta(f,ua.EventType.MESSAGE,(y=>{if(!d){const _=y.data[0];He(!!_,16349);const A=_,w=A?.error||A[0]?.error;if(w){ie(Bt,`RPC '${e}' stream ${s} received error:`,w);const R=w.status;let v=(function(x){const E=yt[x];if(E!==void 0)return DA(E)})(R),I=w.message;R==="NOT_FOUND"&&I.includes("database")&&I.includes("does not exist")&&I.includes(this.databaseId.database)&&gi(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),v===void 0&&(v=K.INTERNAL,I="Unknown error status: "+R+" with message "+w.message),d=!0,m.o_(new Z(v,I)),f.close()}else ie(Bt,`RPC '${e}' stream ${s} received:`,_),m.__(_)}})),eo.u_(),setTimeout((()=>{m.s_()}),0),m}terminate(){this.a_.forEach((e=>e.close())),this.a_=[]}I_(e){this.a_.push(e)}E_(e){this.a_=this.a_.filter((n=>n===e))}Go(e,n,r){super.Go(e,n,r),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return eA()}}function e$(t){return new eo(t)}function Ah(){return typeof document<"u"?document:null}function pf(t){return new s6(t,!0)}eo.c_=!1;class zA{constructor(e,n,r=1e3,s=1.5,i=6e4){this.Ci=e,this.timerId=n,this.R_=r,this.A_=s,this.V_=i,this.d_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.d_=0}g_(){this.d_=this.V_}p_(e){this.cancel();const n=Math.floor(this.d_+this.y_()),r=Math.max(0,Date.now()-this.f_),s=Math.max(0,n-r);s>0&&ie("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.d_} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.m_=this.Ci.enqueueAfterDelay(this.timerId,s,(()=>(this.f_=Date.now(),e()))),this.d_*=this.A_,this.d_<this.R_&&(this.d_=this.R_),this.d_>this.V_&&(this.d_=this.V_)}w_(){this.m_!==null&&(this.m_.skipDelay(),this.m_=null)}cancel(){this.m_!==null&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.d_}}const F0="PersistentStream";class QA{constructor(e,n,r,s,i,o,a,c){this.Ci=e,this.S_=r,this.b_=s,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new zA(e,n)}x_(){return this.state===1||this.state===5||this.O_()}O_(){return this.state===2||this.state===3}start(){this.F_=0,this.state!==4?this.auth():this.N_()}async stop(){this.x_()&&await this.close(0)}B_(){this.state=0,this.M_.reset()}L_(){this.O_()&&this.C_===null&&(this.C_=this.Ci.enqueueAfterDelay(this.S_,6e4,(()=>this.k_())))}K_(e){this.q_(),this.stream.send(e)}async k_(){if(this.O_())return this.close(0)}q_(){this.C_&&(this.C_.cancel(),this.C_=null)}U_(){this.v_&&(this.v_.cancel(),this.v_=null)}async close(e,n){this.q_(),this.U_(),this.M_.cancel(),this.D_++,e!==4?this.M_.reset():n&&n.code===K.RESOURCE_EXHAUSTED?(Br(n.toString()),Br("Using maximum backoff delay to prevent overloading the backend."),this.M_.g_()):n&&n.code===K.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.W_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.t_(n)}W_(){}auth(){this.state=1;const e=this.Q_(this.D_),n=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([r,s])=>{this.D_===n&&this.G_(r,s)}),(r=>{e((()=>{const s=new Z(K.UNKNOWN,"Fetching auth token failed: "+r.message);return this.z_(s)}))}))}G_(e,n){const r=this.Q_(this.D_);this.stream=this.j_(e,n),this.stream.Zo((()=>{r((()=>this.listener.Zo()))})),this.stream.Yo((()=>{r((()=>(this.state=2,this.v_=this.Ci.enqueueAfterDelay(this.b_,1e4,(()=>(this.O_()&&(this.state=3),Promise.resolve()))),this.listener.Yo())))}
36)),this.stream.t_((s=>{r((()=>this.z_(s)))})),this.stream.onMessage((s=>{r((()=>++this.F_==1?this.J_(s):this.onNext(s)))}))}N_(){this.state=5,this.M_.p_((async()=>{this.state=0,this.start()}))}z_(e){return ie(F0,`close with error: ${e}`),this.stream=null,this.close(4,e)}Q_(e){return n=>{this.Ci.enqueueAndForget((()=>this.D_===e?n():(ie(F0,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class t$ extends QA{constructor(e,n,r,s,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}j_(e,n){return this.connection.T_("Listen",e,n)}J_(e){return this.onNext(e)}onNext(e){this.M_.reset();const n=a6(this.serializer,e),r=(function(i){if(!("targetChange"in i))return ye.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?ye.min():o.readTime?ar(o.readTime):ye.min()})(e);return this.listener.H_(n,r)}Z_(e){const n={};n.database=qd(this.serializer),n.addTarget=(function(i,o){let a;const c=o.target;if(a=Ud(c)?{documents:u6(i,c)}:{query:f6(i,c).ft},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=xA(i,o.resumeToken);const l=jd(i,o.expectedCount);l!==null&&(a.expectedCount=l)}else if(o.snapshotVersion.compareTo(ye.min())>0){a.readTime=uu(i,o.snapshotVersion.toTimestamp());const l=jd(i,o.expectedCount);l!==null&&(a.expectedCount=l)}return a})(this.serializer,e);const r=d6(this.serializer,e);r&&(n.labels=r),this.K_(n)}X_(e){const n={};n.database=qd(this.serializer),n.removeTarget=e,this.K_(n)}}class n$ extends QA{constructor(e,n,r,s,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}get Y_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}W_(){this.Y_&&this.ea([])}j_(e,n){return this.connection.T_("Write",e,n)}J_(e){return He(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,He(!e.writeResults||e.writeResults.length===0,55816),this.listener.ta()}onNext(e){He(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();const n=l6(e.writeResults,e.commitTime),r=ar(e.commitTime);return this.listener.na(r,n)}ra(){const e={};e.database=qd(this.serializer),this.K_(e)}ea(e){const n={streamToken:this.lastStreamToken,writes:e.map((r=>c6(this.serializer,r)))};this.K_(n)}}class r${}class s$ extends r${constructor(e,n,r,s){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=s,this.ia=!1}sa(){if(this.ia)throw new Z(K.FAILED_PRECONDITION,"The client has already been terminated.")}Wo(e,n,r,s){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,o])=>this.connection.Wo(e,Bd(n,r),s,i,o))).catch((i=>{throw i.name==="FirebaseError"?(i.code===K.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new Z(K.UNKNOWN,i.toString())}))}jo(e,n,r,s,i){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([o,a])=>this.connection.jo(e,Bd(n,r),s,o,a,i))).catch((o=>{throw o.name==="FirebaseError"?(o.code===K.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Z(K.UNKNOWN,o.toString())}))}terminate(){this.ia=!0,this.connection.terminate()}}function i$(t,e,n,r){return new s$(t,e,n,r)}class o${constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.oa=0,this._a=null,this.aa=!0}ua(){this.oa===0&&(this.ca("Unknown"),this._a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this._a=null,this.la("Backend didn't respond within 10 seconds."),this.ca("Offline"),Promise.resolve()))))}ha(e){this.state==="Online"?this.ca("Unknown"):(this.oa++,this.oa>=1&&(this.Pa(),this.la(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ca("Offline")))}set(e){this.Pa(),this.oa=0,e==="Online"&&(this.aa=!1),this.ca(e)}ca(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}la(e){const n=`Could not reach Cloud Firestore backend. ${e}
37This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.aa?(Br(n),this.aa=!1):ie("OnlineStateTracker",n)}Pa(){this._a!==null&&(this._a.cancel(),this._a=null)}}const hr="RemoteStore";class a${constructor(e,n,r,s,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.Ta=[],this.Ia=new Map,this.Ea=new Map,this.Ra=new Map,this.Aa=new ws(1e3),this.Va=new ws(1001),this.da=new Set,this.ma=[],this.fa=i,this.fa.Mo((o=>{r.enqueueAndForget((async()=>
37{wi(this)&&(ie(hr,"Restarting streams for network reachability change."),await(async function(c){const l=we(c);l.da.add(4),await _c(l),l.ga.set("Unknown"),l.da.delete(4),await mf(l)})(this))}))})),this.ga=new o$(r,s)}}async function mf(t){if(wi(t))for(const e of t.ma)await e(!0)}async function _c(t){for(const e of t.ma)await e(!1)}function Gd(t,e){return t.Ea.get(e)||void 0}function YA(t,e){const n=we(t),r=Gd(n,e.targetId);if(r!==void 0&&n.Ia.has(r))return;const s=(function(a,c){const l=Gd(a,c);l!==void 0&&a.Ra.delete(l);const f=(function(d,m){return m%2!=0?d.Va.next():d.Aa.next()})(a,c);return a.Ea.set(c,f),a.Ra.set(f,c),f})(n,e.targetId);ie(hr,"remoteStoreListen mapping SDK target ID to remote",e.targetId,s);const i=new Lr(e.target,s,e.purpose,e.sequenceNumber,e.snapshotVersion,e.lastLimboFreeSnapshotVersion,e.resumeToken);n.Ia.set(s,i),Tm(n)?wm(n):ko(n).O_()&&Em(n,i)}function vm(t,e){const n=we(t),r=ko(n),s=Gd(n,e);ie(hr,"remoteStoreUnlisten removing mapping of SDK target ID to remote",e,s),n.Ia.delete(s),n.Ea.delete(e),n.Ra.delete(s),r.O_()&&JA(n,s),n.Ia.size===0&&(r.O_()?r.L_():wi(n)&&n.ga.set("Unknown"))}function Em(t,e){if(t.pa.$e(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(ye.min())>0){const n=t.Ra.get(e.targetId);if(n===void 0)return void ie(hr,"SDK target ID not found for remote ID: "+e.targetId);const r=t.remoteSyncer.getRemoteKeysForTarget(n).size;e=e.withExpectedCount(r)}ko(t).Z_(e)}function JA(t,e){t.pa.$e(e),ko(t).X_(e)}function wm(t){t.pa=new e6({getRemoteKeysForTarget:e=>{const n=t.Ra.get(e);return n!==void 0?t.remoteSyncer.getRemoteKeysForTarget(n):Pe()},At:e=>t.Ia.get(e)||null,ht:()=>t.datastore.serializer.databaseId}),ko(t).start(),t.ga.ua()}function Tm(t){return wi(t)&&!ko(t).x_()&&t.Ia.size>0}function wi(t){return we(t).da.size===0}function XA(t){t.pa=void 0}async function c$(t){t.ga.set("Online")}async function l$(t){t.Ia.forEach(((e,n)=>{Em(t,e)}))}async function u$(t,e){XA(t),Tm(t)?(t.ga.ha(e),wm(t)):t.ga.set("Unknown")}async function f$(t,e,n){if(t.ga.set("Online"),e instanceof MA&&e.state===2&&e.cause)try{await(async function(s,i){const o=i.cause;for(const a of i.targetIds){if(s.Ia.has(a)){const c=s.Ra.get(a);c!==void 0&&(await s.remoteSyncer.rejectListen(c,o),s.Ea.delete(c),s.Ra.delete(a)),s.Ia.delete(a)}s.pa.removeTarget(a)}})(t,e)}catch(r){ie(hr,"Failed to remove targets %s: %s ",e.targetIds.join(","),r),await hu(t,r)}else if(e instanceof _l?t.pa.Xe(e):e instanceof NA?t.pa.st(e):t.pa.tt(e),!n.isEqual(ye.min()))try{const r=await GA(t.localStore);n.compareTo(r)>=0&&await(function(i,o){const a=i.pa.Tt(o);
37a.targetChanges.forEach(((l,f)=>{if(l.resumeToken.approximateByteSize()>0){const h=i.Ia.get(f);h&&i.Ia.set(f,h.withResumeToken(l.resumeToken,o))}})),a.targetMismatches.forEach(((l,f)=>{const h=i.Ia.get(l);if(!h)return;i.Ia.set(l,h.withResumeToken($t.EMPTY_BYTE_STRING,h.snapshotVersion)),JA(i,l);const d=new Lr(h.target,l,f,h.sequenceNumber);Em(i,d)}));const c=(function(f,h){const d=new Map;h.targetChanges.forEach(((y,_)=>{const A=f.Ra.get(_);A!==void 0&&d.set(A,y)}));let m=new it(Ce);return h.targetMismatches.forEach(((y,_)=>{const A=f.Ra.get(y);A!==void 0&&(m=m.insert(A,_))})),new mc(h.snapshotVersion,d,m,h.documentUpdates,h.resolvedLimboDocuments)})(i,a);return i.remoteSyncer.applyRemoteEvent(c)})(t,n)}catch(r){ie(hr,"Failed to raise snapshot:",r),await hu(t,r)}}async function hu(t,e,n){if(!Po(e))throw e;t.da.add(1),await _c(t),t.ga.set("Offline"),n||(n=()=>GA(t.localStore)),t.asyncQueue.enqueueRetryable((async()=>{ie(hr,"Retrying IndexedDB access"),await n(),t.da.delete(1),await mf(t)}))}function ZA(t,e){return e().catch((n=>hu(t,n,e)))}async function gf(t){const e=we(t),n=Ts(e);let r=e.Ta.length>0?e.Ta[e.Ta.length-1].batchId:im;for(;h$(e);)try{const s=await K6(e.localStore,r);if(s===null){e.Ta.length===0&&n.L_();break}r=s.batchId,d$(e,s)}catch(s){await hu(e,s)}eR(e)&&tR(e)}function h$(t){return wi(t)&&t.Ta.length<10}function d$(t,e){t.Ta.push(e);const n=Ts(t);n.O_()&&n.Y_&&n.ea(e.mutations)}function eR(t){return wi(t)&&!Ts(t).x_()&&t.Ta.length>0}function tR(t){Ts(t).start()}async function p$(t){Ts(t).ra()}async function m$(t){const e=Ts(t);for(const n of t.Ta)e.ea(n.mutations)}async function g$(t,e,n){const r=t.Ta.shift(),s=hm.from(r,e,n);await ZA(t,(()=>t.remoteSyncer.applySuccessfulWrite(s))),await gf(t)}async function _$(t,e){e&&Ts(t).Y_&&await(async function(r,s){if((function(o){return J9(o)&&o!==K.ABORTED})(s.code)){const i=r.Ta.shift();Ts(r).B_(),await ZA(r,(()=>r.remoteSyncer.rejectFailedWrite(i.batchId,s))),await gf(r)}})(t,e),eR(t)&&tR(t)}async function U0(t,e){const n=we(t);n.asyncQueue.verifyOperationInProgress(),ie(hr,"RemoteStore received new credentials");const r=wi(n);n.da.add(3),await _c(n),r&&n.ga.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.da.delete(3),await mf(n)}async function y$(t,e){const n=we(t);e?(n.da.delete(2),await mf(n)):e||(n.da.add(2),await _c(n),n.ga.set("Unknown"))}function ko(t){return t.ya||(t.ya=(function(n,r,s){const i=we(n);return i.sa(),new t$(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)})(t.datastore,t.asyncQueue,{Zo:c$.bind(null,t),Yo:l$.bind(null,t),t_:u$.bind(null,t),H_:f$.bind(null,t)}),t.ma.push((async e=>{e?(t.ya.B_(),Tm(t)?wm(t):t.ga.set("Unknown")):(await t.ya.stop(),XA(t))}))),t.ya}function Ts(t){return t.wa||(t.wa=(function(n,r,s){const i=we(n);return i.sa(),new n$(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)})(t.datastore,t.asyncQueue,{Zo:()=>Promise.resolve(),Yo:p$.bind(null,t),t_:_$.bind(null,t),ta:m$.bind(null,t),na:g$.bind(null,t)}),t.ma.push((async e=>{e?(t.wa.B_(),await gf(t)):(await t.wa.stop(),t.Ta.length>0&&(ie(hr,`Stopping write stream with ${t.Ta.length} pending writes`),t.Ta=[]))}))),t.wa}class bm{constructor(e,n,r,s,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=i,this.deferred=new Vr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((o=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,i){const o=Date.now()+r,a=new bm(e,n,o,s,i);return a.start(r),a}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new Z(K.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Im(t,e){if(Br("AsyncQueue",`${e}: ${t}`),Po(t))return new Z(K.UNAVAILABLE,`${e}: ${t}`);throw t}class to{static emptySet(e){return new to(e.comparator)}constructor(e){this.comparator=e?(n,r)=>e(n,r)||he.comparator(n.key,r.key):(n,r)=>he.comparator(n.key,r.key),this.keyedMap=fa(),this.sortedSet=new it(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((n,r)=>(e(n),!1)))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof to)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(!s.isEqual(i))return!1}return!0}toString(){const e=[];return this.forEach((n=>{e.push(n.toString())})),e.length===0?"DocumentSet ()":`DocumentSet (
38  `+e.join(`  
39`)+`
40)`}copy(e,n){const r=new to;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}class $0{constructor(){this.Sa=new it(he.comparator)}track(e){const n=e.doc.key,r=this.Sa.get(n);r?e.type!==0&&r.type===3?this.Sa=this.Sa.insert(n,e):e.type===3&&r.type!==1?this.Sa=this.Sa.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.Sa=this.Sa.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.Sa=this.Sa.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.Sa=this.Sa.remove(n):e.type===1&&r.type===2?this.Sa=this.Sa.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.Sa=this.Sa.insert(n,{type:2,doc:e.doc}):ge(63341,{Vt:e,ba:r}):this.Sa=this.Sa.insert(n,e)}Da(){const e=[];return this.Sa.inorderTraversal(((n,r)=>{e.push(r)})),e}}class go{constructor(e,n,r,s,i,o,a,c,l){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=s,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=l}static fromInitialDocuments(e,n,r,s,i){const o=[];
40return n.forEach((a=>{o.push({type:0,doc:a})})),new go(e,n,to.emptySet(n),o,r,s,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&uf(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let s=0;s<n.length;s++)if(n[s].type!==r[s].type||!n[s].doc.isEqual(r[s].doc))return!1;return!0}}class v${constructor(){this.Ca=void 0,this.va=[]}Fa(){return this.va.some((e=>e.Ma()))}}class E${constructor(){this.queries=j0(),this.onlineState="Unknown",this.xa=new Set}terminate(){(function(n,r){const s=we(n),i=s.queries;s.queries=j0(),i.forEach(((o,a)=>{for(const c of a.va)c.onError(r)}))})(this,new Z(K.ABORTED,"Firestore shutting down"))}}function j0(){return new Ei((t=>wA(t)),uf)}async function Am(t,e){const n=we(t);let r=3;const s=e.query;let i=n.queries.get(s);i?!i.Fa()&&e.Ma()&&(r=2):(i=new v$,r=e.Ma()?0:1);try{switch(r){case 0:i.Ca=await n.onListen(s,!0);break;case 1:i.Ca=await n.onListen(s,!1);break;case 2:await n.onFirstRemoteStoreListen(s)}}catch(o){const a=Im(o,`Initialization of query '${Di(e.query)}' failed`);return void e.onError(a)}n.queries.set(s,i),i.va.push(e),e.Oa(n.onlineState),i.Ca&&e.Na(i.Ca)&&Sm(n)}async function Rm(t,e){const n=we(t),r=e.query;let s=3;const i=n.queries.get(r);if(i){const o=i.va.indexOf(e);o>=0&&(i.va.splice(o,1),i.va.length===0?s=e.Ma()?0:1:!i.Fa()&&e.Ma()&&(s=2))}switch(s){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function w$(t,e){const n=we(t);let r=!1;for(const s of e){const i=s.query,o=n.queries.get(i);if(o){for(const a of o.va)a.Na(s)&&(r=!0);o.Ca=s}}r&&Sm(n)}function T$(t,e,n){const r=we(t),s=r.queries.get(e);if(s)for(const i of s.va)i.onError(n);r.queries.delete(e)}function Sm(t){t.xa.forEach((e=>{e.next()}))}var zd,B0;(B0=zd||(zd={})).Ba="default",B0.Cache="cache";class Cm{constructor(e,n,r){this.query=e,this.La=n,this.ka=!1,this.Ka=null,this.onlineState="Unknown",this.options=r||{}}Na(e){if(!this.options.includeMetadataChanges){const r=[];for(const s of e.docChanges)s.type!==3&&r.push(s);e=new go(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.ka?this.qa(e)&&(this.La.next(e),n=!0):this.Ua(e,this.onlineState)&&(this.$a(e),n=!0),this.Ka=e,n}onError(e){this.La.error(e)}Oa(e){this.onlineState=e;let n=!1;return this.Ka&&!this.ka&&this.Ua(this.Ka,e)&&(this.$a(this.Ka),n=!0),n}Ua(e,n){if(!e.fromCache||!this.Ma())return!0;const r=n!=="Offline";return(!this.options.Wa||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}qa(e){if(e.docChanges.length>0)return!0;const n=this.Ka&&this.Ka.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}$a(e){e=go.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ka=!0,this.La.next(e)}Ma(){return this.options.source!==zd.Cache}}class nR{constructor(e){this.key=e}}class rR{constructor(e){this.key=e}}class b${constructor(e,n){this.query=e,this.tu=n,this.nu=null,this.hasCachedResults=!1,this.current=!1,this.ru=Pe(),this.mutatedKeys=Pe(),this.iu=TA(e),this.su=new to(this.iu)}get ou(){return this.tu}_u(e,n){const r=n?n.au:new $0,s=n?n.su:this.su;let i=n?n.mutatedKeys:this.mutatedKeys,o=s,a=!1;const c=this.query.limitType==="F"&&s.size===this.query.limit?s.last():null,l=this.query.limitType==="L"&&s.size===this.query.limit?s.first():null;if(e.inorderTraversal(((f,h)=>{const d=s.get(f),m=ff(this.query,h)?h:null,y=!!d&&this.mutatedKeys.has(d.key),_=!!m&&(m.hasLocalMutations||this.mutatedKeys.has(m.key)&&m.hasCommittedMutations);let A=!1;d&&m?d.data.isEqual(m.data)?y!==_&&(r.track({type:3,doc:m}),A=!0):this.uu(d,m)||(r.track({type:2,doc:m}),A=!0,(c&&this.iu(m,c)>0||l&&this.iu(m,l)<0)&&(a=!0)):!d&&m?(r.track({type:0,doc:m}
40),A=!0):d&&!m&&(r.track({type:1,doc:d}),A=!0,(c||l)&&(a=!0)),A&&(m?(o=o.add(m),i=_?i.add(f):i.delete(f)):(o=o.delete(f),i=i.delete(f)))})),this.query.limit!==null)for(;o.size>this.query.limit;){const f=this.query.limitType==="F"?o.last():o.first();o=o.delete(f.key),i=i.delete(f.key),r.track({type:1,doc:f})}return{su:o,au:r,bs:a,mutatedKeys:i}}uu(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r,s){const i=this.su;this.su=e.su,this.mutatedKeys=e.mutatedKeys;const o=e.au.Da();o.sort(((f,h)=>(function(m,y){const _=A=>{switch(A){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ge(20277,{Vt:A})}};return _(m)-_(y)})(f.type,h.type)||this.iu(f.doc,h.doc))),this.cu(r),s=s??!1;const a=n&&!s?this.lu():[],c=this.ru.size===0&&this.current&&!s?1:0,l=c!==this.nu;return this.nu=c,o.length!==0||l?{snapshot:new go(this.query,e.su,i,o,e.mutatedKeys,c===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),hu:a}:{hu:a}}Oa(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({su:this.su,au:new $0,mutatedKeys:this.mutatedKeys,bs:!1},!1)):{hu:[]}}Pu(e){return!this.tu.has(e)&&!!this.su.has(e)&&!this.su.get(e).hasLocalMutations}cu(e){e&&(e.addedDocuments.forEach((n=>this.tu=this.tu.add(n))),e.modifiedDocuments.forEach((n=>{})),e.removedDocuments.forEach((n=>this.tu=this.tu.delete(n))),this.current=e.current)}lu(){if(!this.current)return[];const e=this.ru;this.ru=Pe(),this.su.forEach((r=>{this.Pu(r.key)&&(this.ru=this.ru.add(r.key))}));const n=[];return e.forEach((r=>{this.ru.has(r)||n.push(new rR(r))})),this.ru.forEach((r=>{e.has(r)||n.push(new nR(r))})),n}Tu(e){this.tu=e.ks,this.ru=Pe();const n=this._u(e.documents);return this.applyChanges(n,!0)}Iu(){return go.fromInitialDocuments(this.query,this.su,this.mutatedKeys,this.nu===0,this.hasCachedResults)}}const Pm="SyncEngine";class I${constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class A${constructor(e){this.key=e,this.Eu=!1}}class R${constructor(e,n,r,s,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.Ru={},this.Au=new Ei((a=>wA(a)),uf),this.Vu=new Map,this.du=new Set,this.mu=new it(he.comparator),this.fu=new Map,this.gu=new mm,this.pu={},this.yu=new Map,this.wu=ws.ar(),this.onlineState="Unknown",this.Su=void 0}get isPrimaryClient(){return this.Su===!0}}async function S$(t,e,n=!0){const r=lR(t);let s;const i=r.Au.get(e);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),s=i.view.Iu()):s=await sR(r,e,n,!0),s}async function C$(t,e){const n=lR(t);await sR(n,e,!0,!1)}async function sR(t,e,n,r){const s=await G6(t.localStore,or(e)),i=s.targetId,o=t.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await P$(t,e,i,o==="current",s.resumeToken)),t.isPrimaryClient&&n&&YA(t.remoteStore,s),a}async function P$(t,e,n,r,s){t.bu=(h,d,m)=>(async function(_,A,w,R){let v=A.view._u(w);v.bs&&(v=await N0(_.localStore,A.query,!1).then((({documents:E})=>A.view._u(E,v))));const I=R&&R.targetChanges.get(A.targetId),D=R&&R.targetMismatches.get(A.targetId)!=null,x=A.view.applyChanges(v,_.isPrimaryClient,I,D);return q0(_,A.targetId,x.hu),x.snapshot})(t,h,d,m);const i=await N0(t.localStore,e,!0),o=new b$(e,i.ks),a=o._u(i.documents),c=gc.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",s),l=o.applyChanges(a,t.isPrimaryClient,c);q0(t,n,l.hu);const f=new I$(e,n,o);return t.Au.set(e,f),t.Vu.has(n)?t.Vu.get(n).push(e):t.Vu.set(n,[e]),l.snapshot}async function k$(t,e,n){const r=we(t),s=r.Au.get(e),i=r.Vu.get(s.targetId);if(i.length>1)return r.Vu.set(s.targetId,i.filter((o=>!uf(o,e)))),void r.Au.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(s.targetId),r.sharedCl
40ientState.isActiveQueryTarget(s.targetId)||await Wd(r.localStore,s.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(s.targetId),n&&vm(r.remoteStore,s.targetId),Qd(r,s.targetId)})).catch(Co)):(Qd(r,s.targetId),await Wd(r.localStore,s.targetId,!0))}async function O$(t,e){const n=we(t),r=n.Au.get(e),s=n.Vu.get(r.targetId);n.isPrimaryClient&&s.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),vm(n.remoteStore,r.targetId))}async function L$(t,e,n){const r=U$(t);try{const s=await(function(o,a){const c=we(o),l=Ge.now(),f=a.reduce(((m,y)=>m.add(y.key)),Pe());let h,d;return c.persistence.runTransaction("Locally write mutations","readwrite",(m=>{let y=Hr(),_=Pe();return c.xs.getEntries(m,f).next((A=>{y=A,y.forEach(((w,R)=>{R.isValidDocument()||(_=_.add(w))}))})).next((()=>c.localDocuments.getOverlayedDocuments(m,y))).next((A=>{h=A;const w=[];for(const R of a){const v=K9(R,h.get(R.key).overlayedDocument);v!=null&&w.push(new Ls(R.key,v,pA(v.value.mapValue),Vn.exists(!0)))}return c.mutationQueue.addMutationBatch(m,l,w,a)})).next((A=>{d=A;const w=A.applyToLocalDocumentSet(h,_);return c.documentOverlayCache.saveOverlays(m,A.batchId,w)}))})).then((()=>({batchId:d.batchId,changes:IA(h)})))})(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),(function(o,a,c){let l=o.pu[o.currentUser.toKey()];l||(l=new it(Ce)),l=l.insert(a,c),o.pu[o.currentUser.toKey()]=l})(r,s.batchId,n),await yc(r,s.changes),await gf(r.remoteStore)}catch(s){const i=Im(s,"Failed to persist write");n.reject(i)}}async function iR(t,e){const n=we(t);try{const r=await q6(n.localStore,e);
40e.targetChanges.forEach(((s,i)=>{const o=n.fu.get(i);o&&(He(s.addedDocuments.size+s.modifiedDocuments.size+s.removedDocuments.size<=1,22616),s.addedDocuments.size>0?o.Eu=!0:s.modifiedDocuments.size>0?He(o.Eu,14607):s.removedDocuments.size>0&&(He(o.Eu,42227),o.Eu=!1))})),await yc(n,r,e)}catch(r){await Co(r)}}function H0(t,e,n){const r=we(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.Au.forEach(((i,o)=>{const a=o.view.Oa(e);a.snapshot&&s.push(a.snapshot)})),(function(o,a){const c=we(o);c.onlineState=a;let l=!1;c.queries.forEach(((f,h)=>{for(const d of h.va)d.Oa(a)&&(l=!0)})),l&&Sm(c)})(r.eventManager,e),s.length&&r.Ru.H_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function D$(t,e,n){const r=we(t);r.sharedClientState.updateQueryState(e,"rejected",n);const s=r.fu.get(e),i=s&&s.key;if(i){let o=new it(he.comparator);o=o.insert(i,Kt.newNoDocument(i,ye.min()));const a=Pe().add(i),c=new mc(ye.min(),new Map,new it(Ce),o,a);await iR(r,c),r.mu=r.mu.remove(i),r.fu.delete(e),km(r)}else await Wd(r.localStore,e,!1).then((()=>Qd(r,e,n))).catch(Co)}async function N$(t,e){const n=we(t),r=e.batch.batchId;try{const s=await H6(n.localStore,e);aR(n,r,null),oR(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await yc(n,s)}catch(s){await Co(s)}}async function M$(t,e,n){const r=we(t);try{const s=await(function(o,a){const c=we(o);return c.persistence.runTransaction("Reject batch","readwrite-primary",(l=>{let f;return c.mutationQueue.lookupMutationBatch(l,a).next((h=>
vendor: 1,952 bytes, line 40
40(He(h!==null,37113),f=h.keys(),c.mutationQueue.removeMutationBatch(l,h)))).next((()=>c.mutationQueue.performConsistencyCheck(l))).next((()=>c.documentOverlayCache.removeOverlaysForBatchId(l,f,a))).next((()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(l,f))).next((()=>c.localDocuments.getDocuments(l,f)))}))})(r.localStore,e);aR(r,e,n),oR(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await yc(r,s)}catch(s){await Co(s)}}function oR(t,e){(t.yu.get(e)||[]).forEach((n=>{n.resolve()})),t.yu.delete(e)}function aR(t,e,n){const r=we(t);let s=r.pu[r.currentUser.toKey()];if(s){const i=s.get(e);i&&(n?i.reject(n):i.resolve(),s=s.remove(e)),r.pu[r.currentUser.toKey()]=s}}function Qd(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.Vu.get(e))t.Au.delete(r),n&&t.Ru.Du(r,n);t.Vu.delete(e),t.isPrimaryClient&&t.gu.Gr(e).forEach((r=>{t.gu.containsKey(r)||cR(t,r)}))}function cR(t,e){t.du.delete(e.path.canonicalString());const n=t.mu.get(e);n!==null&&(vm(t.remoteStore,n),t.mu=t.mu.remove(e),t.fu.delete(n),km(t))}function q0(t,e,n){for(const r of n)r instanceof nR?(t.gu.addReference(r.key,e),x$(t,r)):r instanceof rR?(ie(Pm,"Document no longer in limbo: "+r.key),t.gu.removeReference(r.key,e),t.gu.containsKey(r.key)||cR(t,r.key)):ge(19791,{Cu:r})}function x$(t,e){const n=e.key,r=n.path.canonicalString();t.mu.get(n)||t.du.has(r)||(ie(Pm,"New document in limbo: "+n),t.du.add(r),km(t))}function km(t){for(;t.du.size>0&&t.mu.size<t.maxConcurrentLimboResolutions;){const e=t.du.values().next().value;t.du.delete(e);const n=new he(Ke.fromString(e)),r=t.wu.next();t.fu.set(r,new A$(n)),t.mu=t.mu.insert(n,r),YA(t.remoteStore,new Lr(or(lf(n.path)),r,"TargetPurposeLimboResolution",sf.ce))}}async function yc(t,e,n){const r=we(t),s=[],i=[],o=[];r.Au.isEmpty()||(r.Au.forEach(((a,c)=>{o.push(r.bu(c,e,n).then((l=>{if((l||n)&&r.isPrimaryClient){const f=l?!l.fromCache:n?.targetChanges.get(c.targetId)?.current;
40r.sharedClientState.updateQueryState(c.targetId,f?"current":"not-current")}if(l){s.push(l);const f=_m.Es(c.targetId,l);i.push(f)}})))})),await Promise.all(o),r.Ru.H_(s),await(async function(c,l){const f=we(c);try{await f.persistence.runTransaction("notifyLocalViewChanges","readwrite",(h=>Y.forEach(l,(d=>Y.forEach(d.Ts,(m=>f.persistence.referenceDelegate.addReference(h,d.targetId,m))).next((()=>Y.forEach(d.Is,(m=>f.persistence.referenceDelegate.removeReference(h,d.targetId,m)))))))))}catch(h){if(!Po(h))throw h;ie(ym,"Failed to update sequence numbers: "+h)}for(const h of l){const d=h.targetId;if(!h.fromCache){const m=f.vs.get(d),y=m.snapshotVersion,_=m.withLastLimboFreeSnapshotVersion(y);f.vs=f.vs.insert(d,_)}}})(r.localStore,i))}async function V$(t,e){const n=we(t);if(!n.currentUser.isEqual(e)){ie(Pm,"User change. New user:",e.toKey());const r=await KA(n.localStore,e);n.currentUser=e,(function(i,o){i.yu.forEach((a=>{a.forEach((c=>{c.reject(new Z(K.CANCELLED,o))}))})),i.yu.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await yc(n,r.Ns)}}function F$(t,e){const n=we(t),r=n.fu.get(e);if(r&&r.Eu)return Pe().add(r.key);{let s=Pe();const i=n.Vu.get(e);if(!i)return s;for(const o of i){const a=n.Au.get(o);s=s.unionWith(a.view.ou)}return s}}function lR(t){const e=we(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=iR.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=F$.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=D$.bind(null,e),e.Ru.H_=w$.bind(null,e.eventManager),e.Ru.Du=T$.bind(null,e.eventManager),e}function U$(t){const e=we(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=N$.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=M$.bind(null,e),e}class du{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=pf(e.databaseInfo.databaseId),this.sharedClientState=this.Mu(e),this.persistence=this.xu(e),await this.persistence.start(),this.localStore=this.Ou(e),this.gcScheduler=this.Nu(e,this.localStore),this.indexBackfillerScheduler=this.Bu(e,this.localStore)}Nu(e,n){return null}Bu(e,n){return null}Ou(e){return B6(this.persistence,new U6,e.initialUser,this.serializer)}xu(e){return new WA(gm.Vi,this.serializer)}Mu(e){return new Q6}async terminate(){this.gcScheduler?.stop(),this.indexBackfillerScheduler?.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}du.provider={build:()=>new du};class $$ extends du{constructor(e){super(),this.cacheSizeBytes=e}Nu(e,n){He(this.persistence.referenceDelegate instanceof fu,46915);const r=this.persistence.referenceDelegate.garbageCollector;return new I6(r,e.asyncQueue,n)}xu(e){const n=this.cacheSizeBytes!==void 0?an.withCacheSize(this.cacheSizeBytes):an.DEFAULT;return new WA((r=>fu.Vi(r,n)),this.serializer)}}class Yd{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>H0(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=V$.bind(null,this.syncEngine),await y$(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return(function(){return new E$})()}createDatastore(e){const n=pf(e.databaseInfo.databaseId),r=e$(e.databaseInfo);return i$(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return(function(r,s,i,o,a){return new a$(r,s,i,o,a)})(this.localStore,this.datastore,e.asyncQueue,(n=>H0(this.syncEngine,n,0)),(function(){return V0.v()?new V0:new Y6})())}createSyncEngine(e,n){return(function(s,i,o,a,c,l,f){const h=new R$(s,i,o,a,c,l);return f&&(h.Su=!0),h})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){await(async function(n){const r=we(n);ie(hr,"RemoteStore shutting down."),r.da.add(5),await _c(r),r.fa.shutdown(),r.ga.set("Unknown")})(this.remoteStore),this.datastore?.terminate(),this.eventManager?.terminate()}}Yd.provider={build:()=>new Yd};class Om{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.ku(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.ku(this.observer.error,e):Br("Uncaught Error in snapshot listener:",e.toString()))}Ku(){this.muted=!0}
40ku(e,n){setTimeout((()=>{this.muted||e(n)}),0)}}const bs="FirestoreClient";class j${constructor(e,n,r,s,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this._databaseInfo=s,this.user=qt.UNAUTHENTICATED,this.clientId=sm.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,(async o=>{ie(bs,"Received user=",o.uid),await this.authCredentialListener(o),this.user=o})),this.appCheckCredentials.start(r,(o=>(ie(bs,"Received new app check token=",o),this.appCheckCredentialListener(o,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this._databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Vr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=Im(n,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}async function Rh(t,e){t.asyncQueue.verifyOperationInProgress(),ie(bs,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener((async s=>{r.isEqual(s)||(await KA(e.localStore,s),r=s)})),e.persistence.setDatabaseDeletedListener((()=>t.terminate())),t._offlineComponents=e}async function W0(t,e){t.asyncQueue.verifyOperationInProgress();const n=await B$(t);ie(bs,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener((r=>U0(e.remoteStore,r))),t.setAppCheckTokenChangeListener(((r,s)=>U0(e.remoteStore,s))),t._onlineComponents=e}async function B$(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ie(bs,"Using user provided OfflineComponentProvider");try{await Rh(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!(function(s){return s.name==="FirebaseError"?s.code===K.FAILED_PRECONDITION||s.code===K.UNIMPLEMENTED:!(typeof DOMException<"u"&&s instanceof DOMException)||s.code===22||s.code===20||s.code===11})(n))throw n;gi("Error using user provided cache. Falling back to memory cache: "+n),await Rh(t,new du)}}else ie(bs,"Using default OfflineComponentProvider"),await Rh(t,new $$(void 0));return t._offlineComponents}async function uR(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ie(bs,"Using user provided OnlineComponentProvider"),await W0(t,t._uninitializedComponentsProvider._online)):(ie(bs,"Using default OnlineComponentProvider"),await W0(t,new Yd))),t._onlineComponents}function H$(t){return uR(t).then((e=>e.syncEngine))}async function pu(t){const e=await uR(t),n=e.eventManager;return n.onListen=S$.bind(null,e.syncEngine),n.onUnlisten=k$.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=C$.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=O$.bind(null,e.syncEngine),n}function q$(t,e,n,r){const s=new Om(r),i=new Cm(e,s,n);return t.asyncQueue.enqueueAndForget((async()=>Am(await pu(t),i))),()=>{s.Ku(),t.asyncQueue.enqueueAndForget((async()=>Rm(await pu(t),i)))}}function W$(t,e,n={}){const r=new Vr;return t.asyncQueue.enqueueAndForget((async()=>(function(i,o,a,c,l){const f=new Om({next:d=>{f.Ku(),o.enqueueAndForget((()=>Rm(i,h)));const m=d.docs.has(a);!m&&d.fromCache?l.reject(new Z(K.UNAVAILABLE,"Failed to get document because the client is offline.")):m&&d.fromCache&&c&&c.source==="server"?l.reject(new Z(K.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):l.resolve(d)},error:d=>l.reject(d)}),h=new Cm(lf(a.path),f,{includeMetadataChanges:!0,Wa:!0});return Am(i,h)})(await pu(t),t.asyncQueue,e,n,r))),r.promise}function K$(t,e,n={}){const r=new Vr;return t.asyncQueue.enqueueAndForget((async()=>(function(i,o,a,c,l){const f=new Om({next:d=>{f.Ku(),o.enqueueAndForget((()=>Rm(i,h))),d.fromCache&&c.source==="server"?l.reject(new Z(K.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):l.resolve(d)},error:d=>l.reject(d)}),h=new Cm(a,f,{includeMetadataChanges:!0,Wa:!0});return Am(i,h)})(await pu(t),t.asyncQueue,e,n,r))),r.promise}function G$(t,e){const n=new Vr;return t.asyncQueue.enqueueAndForget((async()=>L$(await H$(t),e,n))),n.promise}function fR(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}const z$="ComponentProvider",K0=new Map;function Q$(t,e,n,r,s){return new d9(t,e,n,s.host,s.ssl,s.experimentalForceLongPolling,s.experimentalAutoDetectLongPolling,fR(s.experimentalLongPollingOptions),s.useFetchStreams,s.isUsingEmulator,r)}const hR="firestore.googleapis.com",G0=!0;class z0{constructor(e){if(e.host===void 0){if(e.ssl!==void 0)throw new Z(K.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=hR,this.ssl=G0}else this.host=e.host,this.ssl=e.ssl??G0;if(this.isUsingEmulator=e.emulatorOptions!==void 0,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=qA;
40else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<T6)throw new Z(K.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}t9("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=fR(e.experimentalLongPollingOptions??{}),(function(r){if(r.timeoutSeconds!==void 0){if(isNaN(r.timeoutSeconds))throw new Z(K.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (must not be NaN)`);if(r.timeoutSeconds<5)throw new Z(K.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (minimum allowed value is 5)`);if(r.timeoutSeconds>30)throw new Z(K.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (maximum allowed value is 30)`)}})(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(function(r,s){return r.timeoutSeconds===s.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class _f{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new z0({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Z(K.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new Z(K.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new z0(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=(function(r){if(!r)return new W4;switch(r.type){case"firstParty":return new Q4(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new Z(K.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}})(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return(function(n){const r=K0.get(n);r&&(ie(z$,"Removing Datastore"),K0.delete(n),r.terminate())})(this),Promise.resolve()}}function dR(t,e,n,r={}){t=vn(t,_f);const s=cc(e),i=t._getSettings(),o={...i,emulatorOptions:t._getEmulatorOptions()},a=`${e}:${n}`;s&&rI(`https://${a}`),i.host!==hR&&i.host!==a&&gi("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const c={...i,host:a,ssl:s,emulatorOptions:r};if(!fi(c,o)&&(t._setSettings(c),r.mockUserToken)){let l,f;if(typeof r.mockUserToken=="string")l=r.mockUserToken,f=qt.MOCK_USER;else{l=qV(r.mockUserToken,t._app?.options.projectId);const h=r.mockUserToken.sub||r.mockUserToken.user_id;if(!h)throw new Z(K.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");f=new qt(h)}t._authCredentials=new K4(new nA(l,f))}}let Ds=class pR{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new pR(this.firestore,e,this._query)}};class ft{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}
vendor: 5,664 bytes, lines 40-41
40get path(){return this._key.path.canonicalString()}get parent(){return new gs(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new ft(this.firestore,e,this._key)}toJSON(){return{type:ft._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,n,r){if(dc(n,ft._jsonSchema))return new ft(e,r||null,new he(Ke.fromString(n.referencePath)))}}ft._jsonSchemaVersion="firestore/documentReference/1.0",ft._jsonSchema={type:bt("string",ft._jsonSchemaVersion),referencePath:bt("string")};class gs extends Ds{constructor(e,n,r){super(e,n,lf(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new ft(this.firestore,null,new he(e))}withConverter(e){return new gs(this.firestore,e,this._path)}}function Tj(t,e,...n){if(t=rt(t),rA("collection","path",e),t instanceof _f){const r=Ke.fromString(e,...n);return c0(r),new gs(t,null,r)}{if(!(t instanceof ft||t instanceof gs))throw new Z(K.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Ke.fromString(e,...n));return c0(r),new gs(t.firestore,null,r)}}function na(t,e,...n){if(t=rt(t),arguments.length===1&&(e=sm.newId()),rA("doc","path",e),t instanceof _f){const r=Ke.fromString(e,...n);return a0(r),new ft(t,null,new he(r))}{if(!(t instanceof ft||t instanceof gs))throw new Z(K.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Ke.fromString(e,...n));return a0(r),new ft(t.firestore,t instanceof gs?t.converter:null,new he(r))}}const Q0="AsyncQueue";class Y0{constructor(e=Promise.resolve()){this.rc=[],this.sc=!1,this.oc=[],this._c=null,this.ac=!1,this.uc=!1,this.cc=[],this.M_=new zA(this,"async_queue_retry"),this.lc=()=>{const r=Ah();r&&ie(Q0,"Visibility state changed to "+r.visibilityState),this.M_.w_()},this.hc=e;const n=Ah();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.lc)}get isShuttingDown(){return this.sc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pc(),this.Tc(e)}enterRestrictedMode(e){if(!this.sc){this.sc=!0,this.uc=e||!1;const n=Ah();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.lc)}}enqueue(e){if(this.Pc(),this.sc)return new Promise((()=>{}));const n=new Vr;return this.Tc((()=>this.sc&&this.uc?Promise.resolve():(e().then(n.resolve,n.reject),n.promise))).then((()=>n.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.rc.push(e),this.Ic())))}async Ic(){if(this.rc.length!==0){try{await this.rc[0](),this.rc.shift(),this.M_.reset()}catch(e){if(!Po(e))throw e;ie(Q0,"Operation failed with retryable error: "+e)}this.rc.length>0&&this.M_.p_((()=>this.Ic()))}}Tc(e){const n=this.hc.then((()=>(this.ac=!0,e().catch((r=>{throw this._c=r,this.ac=!1,Br("INTERNAL UNHANDLED ERROR: ",J0(r)),r})).then((r=>(this.ac=!1,r))))));return this.hc=n,n}enqueueAfterDelay(e,n,r){this.Pc(),this.cc.indexOf(e)>-1&&(n=0);const s=bm.createAndSchedule(this,e,n,r,(i=>this.Ec(i)));return this.oc.push(s),s}Pc(){this._c&&ge(47125,{Rc:J0(this._c)})}verifyOperationInProgress(){}async Ac(){let e;do e=this.hc,await e;while(e!==this.hc)}Vc(e){for(const n of this.oc)if(n.timerId===e)return!0;return!1}dc(e){return this.Ac().then((()=>{this.oc.sort(((n,r)=>n.targetTimeMs-r.targetTimeMs));for(const n of this.oc)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.Ac()}))}mc(e){this.cc.push(e)}Ec(e){const n=this.oc.indexOf(e);this.oc.splice(n,1)}}function J0(t){let e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+`
41`+t.stack),e}class Is extends _f{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=new Y0,this._persistenceKey=s?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new Y0(e),this._firestoreClient=void 0,await e}}}function Y$(t,e){const n=typeof t=="object"?t:aI(),r=typeof t=="string"?t:su,s=Hp(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const i=BV("firestore");i&&dR(s,...i)}return s}function yf(t){if(t._terminated)throw new Z(K.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||J$(t),t._firestoreClient}function J$(t){const e=t._freezeSettings(),n=Q$(t._databaseId,t._app?.options.appId||"",t._persistenceKey,t._app?.options.apiKey,e);t._componentsProvider||e.localCache?._offlineComponentProvider&&e.localCache?._onlineComponentProvider&&(t._componentsProvider={_offline:e.localCache._offlineComponentProvider,_online:e.localCache._onlineComponentProvider}),t._firestoreClient=new j$(t._authCredentials,t._appCheckCredentials,t._queue,n,t._componentsProvider&&(function(s){const i=s?._online.build();return{_offline:s?._offline.build(i),_online:i}})(t._componentsProvider))}class An{constructor(e){this._byteString=e}static fromBase64String(e){try{return new An($t.fromBase64String(e))}catch(n){throw new Z(K.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new An($t.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:An._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(dc(e,An._jsonSchema))return An.fromBase64String(e.bytes)}}
41An._jsonSchemaVersion="firestore/bytes/1.0",An._jsonSchema={type:bt("string",An._jsonSchemaVersion),bytes:bt("string")};class Lm{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new Z(K.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Vt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class Dm{constructor(e){this._methodName=e}}class cr{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new Z(K.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new Z(K.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return Ce(this._lat,e._lat)||Ce(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:cr._jsonSchemaVersion}}static fromJSON(e){if(dc(e,cr._jsonSchema))return new cr(e.latitude,e.longitude)}}cr._jsonSchemaVersion="firestore/geoPoint/1.0",cr._jsonSchema={type:bt("string",cr._jsonSchemaVersion),latitude:bt("number"),longitude:bt("number")};class Fn{constructor(e){this._values=(e||[]).map((n=>n))}toArray(){return this._values.map((e=>e))}isEqual(e){return(function(r,s){if(r.length!==s.length)return!1;for(let i=0;i<r.length;++i)if(r[i]!==s[i])return!1;return!0})(this._values,e._values)}toJSON(){return{type:Fn._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(dc(e,Fn._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every((n=>typeof n=="number")))return new Fn(e.vectorValues);throw new Z(K.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}Fn._jsonSchemaVersion="firestore/vectorValue/1.0",Fn._jsonSchema={type:bt("string",Fn._jsonSchemaVersion),vectorValues:bt("object")};const X$=/^__.*__$/;class Z${constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new Ls(e,this.data,this.fieldMask,n,this.fieldTransforms):new pc(e,this.data,n,this.fieldTransforms)}}class mR{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new Ls(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function gR(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ge(40011,{dataSource:t})}}class Nm{constructor(e,n,r,s,i,o){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=s,i===void 0&&this.fc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}i(e){return new Nm({...this.settings,...e},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}yc(e){const n=this.path?.child(e),r=this.i({path:n,arrayElement:!1});return r.wc(e),r}Sc(e){const n=this.path?.child(e),r=this.i({path:n,arrayElement:!1});return r.fc(),r}bc(e){return this.i({path:void 0,arrayElement:!0})}Dc(e){return mu(e,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(e){return this.fieldMask.find((n=>e.isPrefixOf(n)))!==void 0||this.fieldTransforms.find((n=>e.isPrefixOf(n.field)))!==void 0}fc(){if(this.path)for(let e=0;e<this.path.length;e++)this.wc(this.path.get(e))}wc(e){if(e.length===0)throw this.Dc("Document fields must not be empty");if(gR(this.dataSource)&&X$.test(e))throw this.Dc('Document fields cannot begin and end with "__"')}}class e5{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||pf(e)}V(e,n,r,s=!1){return new Nm({dataSource:e,methodName:n,targetDoc:r,path:Vt.emptyPath(),arrayElement:!1,hasConverter:s},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function vf(t){const e=t._freezeSettings(),n=pf(t._databaseId);return new e5(t._databaseId,!!e.ignoreUndefinedProperties,n)}function t5(t,e,n,r,s,i={}){const o=t.V(i.merge||i.mergeFields?2:0,e,n,s);Mm("Data must be an object, but it was:",o,r);const a=yR(r,o);let c,l;if(i.merge)c=new gn(o.fieldMask),l=o.fieldTransforms;else if(i.mergeFields){const f=[];for(const h of i.mergeFields){const d=_i(e,h,n);if(!o.contains(d))throw new Z(K.INVALID_ARGUMENT,`Field '${d}' is specified in your field mask but missing from your input data.`);wR(f,d)||f.push(d)}c=new gn(f),l=o.fieldTransforms.filter((h=>c.covers(h.field)))}else c=null,l=o.fieldTransforms;return new Z$(new ln(a),c,l)}class Ef extends Dm{_toFieldTransform(e){if(e.dataSource!==2)throw e.dataSource===1?e.Dc(`${this._methodName}() can only appear at the top level of your update data`):e.Dc(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Ef}}function n5(t,e,n,r){const s=t.V(1,e,n);Mm("Data must be an object, but it was:",s,r);const i=[],o=ln.empty();Os(r,((c,l)=>{const f=ER(e,c,n);l=rt(l);const h=s.Sc(f);if(l instanceof Ef)i.push(f);else{const d=vc(l,h);d!=null&&(i.push(f),o.set(f,d))}}));const a=new gn(i);return new mR(o,a,s.fieldTransforms)}function r5(t,e,n,r,s,i){const o=t.V(1,e,n),a=[_i(e,r,n)],c=[s];if(i.length%2!=0)throw new Z(K.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let d=0;d<i.length;d+=2)a.push(_i(e,i[d])),c.push(i[d+1]);const l=[],f=ln.empty();for(let d=a.length-1;d>=0;--d)if(!wR(l,a[d])){const m=a[d];let y=c[d];y=rt(y);const _=o.Sc(m);
41if(y instanceof Ef)l.push(m);else{const A=vc(y,_);A!=null&&(l.push(m),f.set(m,A))}}const h=new gn(l);return new mR(f,h,o.fieldTransforms)}function _R(t,e,n,r=!1){return vc(n,t.V(r?4:3,e))}function vc(t,e){if(vR(t=rt(t)))return Mm("Unsupported field value:",e,t),yR(t,e);if(t instanceof Dm)return(function(r,s){if(!gR(s.dataSource))throw s.Dc(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.Dc(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(s);i&&s.fieldTransforms.push(i)})(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.arrayElement&&e.dataSource!==4)throw e.Dc("Nested arrays are not supported");return(function(r,s){const i=[];let o=0;for(const a of r){let c=vc(a,s.bc(o));c==null&&(c={nullValue:"NULL_VALUE"}),i.push(c),o++}return{arrayValue:{values:i}}})(t,e)}return(function(r,s){if((r=rt(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return $9(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Ge.fromDate(r);return{timestampValue:uu(s.serializer,i)}}if(r instanceof Ge){const i=new Ge(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:uu(s.serializer,i)}}if(r instanceof cr)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof An)return{bytesValue:xA(s.serializer,r._byteString)};if(r instanceof ft){const i=s.databaseId,o=r.firestore._databaseId;if(!o.isEqual(i))throw s.Dc(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:pm(r.firestore._databaseId||s.databaseId,r._key.path)}}if(r instanceof Fn)return(function(o,a){const c=o instanceof Fn?o.toArray():o;return{mapValue:{fields:{[hA]:{stringValue:dA},[iu]:{arrayValue:{values:c.map((f=>{if(typeof f!="number")throw a.Dc("VectorValues must only contain numeric values.");return um(a.serializer,f)}))}}}}}})(r,s);if(HA(r))return r._toProto(s.serializer);throw s.Dc(`Unsupported field value: ${rf(r)}`)})(t,e)}function yR(t,e){const n={};return oA(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Os(t,((r,s)=>{const i=vc(s,e.yc(r));i!=null&&(n[r]=i)})),{mapValue:{fields:n}}}function vR(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Ge||t instanceof cr||t instanceof An||t instanceof ft||t instanceof Dm||t instanceof Fn||HA(t))}function Mm(t,e,n){if(!vR(n)||!sA(n)){const r=rf(n);throw r==="an object"?e.Dc(t+" a custom object"):e.Dc(t+" "+r)}}function _i(t,e,n){if((e=rt(e))instanceof Lm)return e._internalPath;if(typeof e=="string")return ER(t,e);throw mu("Field path arguments must be of type string or ",t,!1,void 0,n)}const s5=new RegExp("[~\\*/\\[\\]]");function ER(t,e,n){if(e.search(s5)>=0)throw mu(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Lm(...e.split("."))._internalPath}catch{throw mu(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function mu(t,e,n,r,s){const i=r&&!r.isEmpty(),o=s!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(i||o)&&(c+=" (found",i&&(c+=` in field ${r}`),o&&(c+=` in document ${s}`),c+=")"),new Z(K.INVALID_ARGUMENT,a+t+c)}function wR(t,e){return t.some((n=>n.isEqual(e)))}class i5{convertValue(e,n="none"){switch(Es(e)){case 0:return null;case 1:return e.booleanValue;case 2:return mt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(vs(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 11:return this.convertObject(e.mapValue,n);case 10:return this.convertVectorValue(e.mapValue);default:throw ge(62114,{value:e})}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Os(e,((s,i)=>{r[s]=this.convertValue(i,n)})),r}convertVectorValue(e){const n=e.fields?.[iu].arrayValue?.values?.map((r=>mt(r.doubleValue)));return new Fn(n)}convertGeoPoint(e){return new cr(mt(e.latitude),mt(e.longitude))}convertArray(e,n){return(e.values||[]).map((r=>this.convertValue(r,n)))}convertServerTimestamp(e,n){switch(n){case"previous":const r=cf(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(ja(e));default:return null}}convertTimestamp(e){const n=ys(e);return new Ge(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=Ke.fromString(e);He(BA(r),9688,{name:e});const s=new Ba(r.get(1),r.get(3)),i=new he(r.popFirst(5));return s.isEqual(n)||Br(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}class xm extends i5{constructor(e){super(),this.firestore=e}convertBytes(e){return new An(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);
41return new ft(this.firestore,null,n)}}const X0="@firebase/firestore",Z0="4.14.1";function eE(t){return(function(n,r){if(typeof n!="object"||n===null)return!1;const s=n;for(const i of r)if(i in s&&typeof s[i]=="function")return!0;return!1})(t,["next","error","complete"])}class Vm{constructor(e,n,r,s,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=s,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new ft(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new o5(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){const n=this._document.data.field(_i("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class o5 extends Vm{data(){return super.data()}}function TR(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new Z(K.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Fm{}class wf extends Fm{}function bj(t,e,...n){let r=[];e instanceof Fm&&r.push(e),r=r.concat(n),(function(i){const o=i.filter((c=>c instanceof Um)).length,a=i.filter((c=>c instanceof Tf)).length;if(o>1||o>0&&a>0)throw new Z(K.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")})(r);for(const s of r)t=s._apply(t);return t}class Tf extends wf{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new Tf(e,n,r)}_apply(e){const n=this._parse(e);return bR(e._query,n),new Ds(e.firestore,e.converter,$d(e._query,n))}_parse(e){const n=vf(e.firestore);return(function(i,o,a,c,l,f,h){let d;if(l.isKeyField()){if(f==="array-contains"||f==="array-contains-any")throw new Z(K.INVALID_ARGUMENT,`Invalid Query. You can't perform '${f}' queries on documentId().`);if(f==="in"||f==="not-in"){nE(h,f);const y=[];for(const _ of h)y.push(tE(c,i,_));d={arrayValue:{values:y}}}else d=tE(c,i,h)}else f!=="in"&&f!=="not-in"&&f!=="array-contains-any"||nE(h,f),d=_R(a,o,h,f==="in"||f==="not-in");return wt.create(l,f,d)})(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function Ij(t,e,n){const r=e,s=_i("where",t);return Tf._create(s,r,n)}class Um extends Fm{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Um(e,n)}_parse(e){const n=this._queryConstraints.map((r=>r._parse(e))).filter((r=>r.getFilters().length>0));return n.length===1?n[0]:Hn.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:((function(s,i){let o=s;const a=i.getFlattenedFilters();for(const c of a)bR(o,c),o=$d(o,c)})(e._query,n),new Ds(e.firestore,e.converter,$d(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class $m extends wf{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new $m(e,n)}_apply(e){const n=(function(s,i,o){if(s.startAt!==null)throw new Z(K.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(s.endAt!==null)throw new Z(K.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new qa(i,o)})(e._query,this._field,this._direction);return new Ds(e.firestore,e.converter,O9(e._query,n))}}function Aj(t,e="asc"){const n=e,r=_i("orderBy",t);return $m._create(r,n)}class jm extends wf{constructor(e,n,r){super(),this.type=e,this._limit=n,this._limitType=r}static _create(e,n,r){return new jm(e,n,r)}_apply(e){return new Ds(e.firestore,e.converter,au(e._query,this._limit,this._limitType))}}function Rj(t){return n9("limit",t),jm._create("limit",t,"F")}class Bm extends wf{constructor(e,n,r){super(),this.type=e,this._docOrFields=n,this._inclusive=r}static _create(e,n,r){return new Bm(e,n,r)}_apply(e){const n=a5(e,this.type,this._docOrFields,this._inclusive);return new Ds(e.firestore,e.converter,L9(e._query,n))}}function Sj(...t){return Bm._create("startAfter",t,!1)}function a5(t,e,n,r){if(n[0]=rt(n[0]),n[0]instanceof Vm)return(function(i,o,a,c,l){if(!c)throw new Z(K.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${a}().`);const f=[];for(const h of Zi(i))if(h.field.isKeyField())f.push(ou(o,c.key));else{const d=c.data.field(h.field);if(af(d))throw new Z(K.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+h.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(d===null){const m=h.field.canonicalString();throw new Z(K.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${m}' (used as the orderBy) does not exist.`)}f.push(d)}return new mo(f,l)})(t._query,t.firestore._databaseId,e,n[0]._document,r);{const s=vf(t.firestore);return(function(o,a,c,l,f,h){const d=o.explicitOrderBy;if(f.length>d.length)throw new Z(K.INVALID_ARGUMENT,`Too many arguments provided to ${l}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const m=[];for(let y=0;y<f.length;y++){const _=f[y];
41if(d[y].field.isKeyField()){if(typeof _!="string")throw new Z(K.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${l}(), but got a ${typeof _}`);if(!lm(o)&&_.indexOf("/")!==-1)throw new Z(K.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${l}() must be a plain document ID, but '${_}' contains a slash.`);const A=o.path.child(Ke.fromString(_));if(!he.isDocumentKey(A))throw new Z(K.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${l}() must result in a valid document path, but '${A}' is not because it contains an odd number of segments.`);const w=new he(A);m.push(ou(a,w))}else{const A=_R(c,l,_);m.push(A)}}return new mo(m,h)})(t._query,t.firestore._databaseId,s,e,n,r)}}function tE(t,e,n){if(typeof(n=rt(n))=="string"){if(n==="")throw new Z(K.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!lm(e)&&n.indexOf("/")!==-1)throw new Z(K.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(Ke.fromString(n));if(!he.isDocumentKey(r))throw new Z(K.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return ou(t,new he(r))}if(n instanceof ft)return ou(t,n._key);throw new Z(K.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${rf(n)}.`)}function nE(t,e){if(!Array.isArray(t)||t.length===0)throw new Z(K.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function bR(t,e){const n=(function(s,i){for(const o of s)for(const a of o.getFlattenedFilters())if(i.indexOf(a.op)>=0)return a.op;return null})(t.filters,(function(s){switch(s){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}})(e.op));if(n!==null)throw n===e.op?new Z(K.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new Z(K.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}function c5(t,e,n){let r;return r=t?t.toFirestore(e):e,r}class da{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class ri extends Vm{constructor(e,n,r,s,i,o){super(e,n,r,s,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new yl(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(_i("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Z(K.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,n={};return n.type=ri._jsonSchemaVersion,n.bundle="",n.bundleSource="DocumentSnapshot",n.bundleName=this._key.toString(),!e||!e.isValidDocument()||!e.isFoundDocument()?n:(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),n.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),n)}}ri._jsonSchemaVersion="firestore/documentSnapshot/1.0",ri._jsonSchema={type:bt("string",ri._jsonSchemaVersion),bundleSource:bt("string","DocumentSnapshot"),bundleName:bt("string"),bundle:bt("string")};class yl extends ri{data(e={}){return super.data(e)}}class si{constructor(e,n,r,s){this._firestore=e,this._userDataWriter=n,this._snapshot=s,this.metadata=new da(s.hasPendingWrites,s.fromCache),this.query=r}get docs(){const e=[];return this.forEach((n=>e.push(n))),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach((r=>{e.call(n,new yl(this._firestore,this._userDataWriter,r.key,r,new da(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new Z(K.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=(function(s,i){if
41(s._snapshot.oldDocs.isEmpty()){let o=0;return s._snapshot.docChanges.map((a=>{const c=new yl(s._firestore,s._userDataWriter,a.doc.key,a.doc,new da(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);return a.doc,{type:"added",doc:c,oldIndex:-1,newIndex:o++}}))}{let o=s._snapshot.oldDocs;return s._snapshot.docChanges.filter((a=>i||a.type!==3)).map((a=>{const c=new yl(s._firestore,s._userDataWriter,a.doc.key,a.doc,new da(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);let l=-1,f=-1;return a.type!==0&&(l=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),a.type!==1&&(o=o.add(a.doc),f=o.indexOf(a.doc.key)),{type:l5(a.type),doc:c,oldIndex:l,newIndex:f}}))}})(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Z(K.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=si._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=sm.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const n=[],r=[],s=[];return this.docs.forEach((i=>{i._document!==null&&(n.push(i._document),r.push(this._userDataWriter.convertObjectMap(i._document.data.value.mapValue.fields,"previous")),s.push(i.ref.path))})),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function l5(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ge(61501,{type:t})}}si._jsonSchemaVersion="firestore/querySnapshot/1.0",si._jsonSchema={type:bt("string",si._jsonSchemaVersion),bundleSource:bt("string","QuerySnapshot"),bundleName:bt("string"),bundle:bt("string")};function nl(t){t=vn(t,ft);const e=vn(t.firestore,Is),n=yf(e);return W$(n,t._key).then((r=>IR(e,t,r)))}function Cj(t){t=vn(t,Ds);const e=vn(t.firestore,Is),n=yf(e),r=new xm(e);return TR(t._query),K$(n,t._query).then((s=>new si(e,r,t,s)))}function u5(t,e,n){t=vn(t,ft);const r=vn(t.firestore,Is),s=c5(t.converter,e),i=vf(r);return Hm(r,[t5(i,"setDoc",t._key,s,t.converter!==null,n).toMutation(t._key,Vn.none())])}function f5(t,e,n,...r){t=vn(t,ft);const s=vn(t.firestore,Is),i=vf(s);let o;return o=typeof(e=rt(e))=="string"||e instanceof Lm?r5(i,"updateDoc",t._key,e,n,r):n5(i,"updateDoc",t._key,e),Hm(s,[o.toMutation(t._key,Vn.exists(!0))])}function Pj(t){return Hm(vn(t.firestore,Is),[new fm(t._key,Vn.none())])}function kj(t,...e){t=rt(t);let n={includeMetadataChanges:!1,source:"default"},r=0;typeof e[r]!="object"||eE(e[r])||(n=e[r++]);const s={includeMetadataChanges:n.includeMetadataChanges,source:n.source};if(eE(e[r])){const l=e[r];e[r]=l.next?.bind(l),e[r+1]=l.error?.bind(l),e[r+2]=l.complete?.bind(l)}let i,o,a;if(t instanceof ft)o=vn(t.firestore,Is),a=lf(t._key.path),i={next:l=>{e[r]&&e[r](IR(o,t,l))},error:e[r+1],complete:e[r+2]};else{const l=vn(t,Ds);o=vn(l.firestore,Is),a=l._query;const f=new xm(o);i={next:h=>{e[r]&&e[r](new si(o,f,l,h))},error:e[r+1],complete:e[r+2]},TR(t._query)}const c=yf(o);return q$(c,a,s,i)}function Hm(t,e){const n=yf(t);return G$(n,e)}function IR(t,e,n){const r=n.docs.get(e._key),s=new xm(t);return new ri(t,s,e._key,r,new da(n.hasPendingWrites,n.fromCache),e.converter)}(function(e,n=!0){q4(Ao),lo(new hi("firestore",((r,{instanceIdentifier:s,options:i})=>{const o=r.getProvider("app").getImmediate(),a=new Is(new G4(r.getProvider("auth-internal")),new Y4(o,r.getProvider("app-check-internal")),p9(o,s),o);return i={useFetchStreams:n,...i},a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),ps(X0,Z0,e),ps(X0,Z0,"esm2020")})();const h5=gt(()=>{const t=Ss(),e=t.public.firebaseConfig,n=nt(null),r=nt(!0);if(!e||!e.apiKey||e.apiKey==="your_firebase_api_key_here")return console.warn("Firebase configuration not properly set."),r.value=!1,n.value=null,{provide:{auth:null,db:null,authState:n,authLoading:r}};try{const s=oI(e),i=B4(s),o=Y$(s);t.public.e2eMode===!0&&(CI(i,"http://localhost:9099",{disableWarnings:!0}
41),dR(o,"localhost",8085),window.__e2eSignIn=async(l,f,h)=>{try{const d=await MI(i,l,f);return h&&await TU(d.user,{displayName:h}),{uid:d.user.uid}}catch(d){if(d?.code!=="auth/email-already-in-use")throw d;return{uid:(await xI(i,l,f)).user.uid}}}),i.authStateReady().then(()=>{n.value=i.currentUser,r.value=!1,console.log("Firebase auth state ready:",i.currentUser?"User authenticated":"No user","loading:",r.value)}).catch(l=>{console.error("Error waiting for auth state:",l),r.value=!1,n.value=null});const c=kU(i,l=>{n.value=l,r.value&&(r.value=!1,console.log("Auth state changed - loading set to false:",l?"User authenticated":"No user"))},l=>{console.error("Auth state listener error:",l),r.value=!1,n.value=null});return yi(()=>{try{c()}catch(l){console.warn("Error unsubscribing from auth state:",l)}}),{provide:{auth:i,db:o,authState:n,authLoading:r}}}catch(s){return console.error("Error initializing Firebase:",s),r.value=!1,{provide:{auth:null,db:null,authState:n,authLoading:r}}}});var bf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},d5=class extends bf{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},AR=new d5,p5={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},m5=class{#e=p5;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Jd=new m5;function g5(t){setTimeout(t,0)}var RR=typeof window>"u"||"Deno"in globalThis;function cn(){}function _5(t,e){return typeof t=="function"?t(e):t}function y5(t){return typeof t=="number"&&t>=0&&t!==1/0}function v5(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Xd(t,e){return typeof t=="function"?t(e):t}function E5(t,e){return typeof t=="function"?t(e):t}function rE(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==qm(o,e.options))return!1}else if(!za(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function sE(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(Ga(e.options.mutationKey)!==Ga(i))return!1}else if(!za(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function qm(t,e){return(e?.queryKeyHashFn||Ga)(t)}function Ga(t){return JSON.stringify(t,(e,n)=>Zd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function za(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>za(t[n],e[n])):!1}var w5=Object.prototype.hasOwnProperty;function SR(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=iE(t)&&iE(e);if(!r&&!(Zd(t)&&Zd(e)))return e;const i=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),a=o.length,c=r?new Array(a):{};let l=0;for(let f=0;f<a;f++){const h=r?f:o[f],d=t[h],m=e[h];if(d===m){c[h]=d,(r?f<i:w5.call(t,h))&&l++;continue}if(d===null||m===null||typeof d!="object"||typeof m!="object"){c[h]=m;continue}const y=SR(d,m,n+1);c[h]=y,y===d&&l++}return i===a&&l===i?t:c}function Oj(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function iE(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Zd(t){if(!oE(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!oE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function oE(t){return Object.prototype.toString.call(t)==="[object Object]"}function T5(t){return new Promise(e=>{Jd.setTimeout(e,t)})}function b5(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?SR(t,e):e}function I5(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function A5(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Wm=Symbol();function CR(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Wm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Lj(t,e){return typeof t=="function"?t(...e):!!t}function R5(t,e,n){let r=!1,s;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=e(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),t}var PR=(()=>{let t=()=>RR;return{isServer(){return t()},setIsServer(e){t=e}}})();function S5(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function C5(t){let e;if(t.then(n=>(e=n,n),cn)?.catch(cn),e!==void 0)return{data:e}}function P5(t){return t}function k5(t,e,n){if(typeof e!="object"||e===null)return;const r=t.getMutationCache(),s=t.getQueryCache(),i=t.getDefaultOptions().hydrate?.deserializeData??P5,o=e.mutations||[],a=e.queries||[];o.forEach(({state:c,...l})=>{r.build(t,{...t.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...l},c)}),a.forEach(({queryKey:c,state:l,queryHash:f,meta:h,promise:d,dehydratedAt:m,queryType:y})=>{const _=d?C5(d):void 0,A=l.data===void 0?_?.data:l.data,w=A===void 0?A:i(A);let R=s.get(f);const v=R?.state.status==="pending",I=R?.state.fetchStatus==="fetching";if(R){const D=_&&m!==void 0&&m>R.state.dataUpdatedAt;if(l.dataUpdatedAt>R.state.dataUpdatedAt||D){const{fetchStatus:x,...E}=l;R.setState({...E,data:w,...l.status==="pending"&&w!==void 0&&{status:"success",...!I&&{fetchStatus:"idle"}}})}}else R=s.build(t,{...t.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:c,queryHash:f,meta:h,_type:y},{...l,data:w,fetchStatus:"idle",status:l.status==="pending"&&w!==void 0?"success":l.status});d&&!_&&!v&&!I&&(m===void 0||m>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(d).then(i)}).catch(cn)})}var O5=g5;function L5(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=O5;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var nn=L5(),D5=class extends bf{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n
vendor: 3,114 bytes, line 41
41)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},gu=new D5;function N5(t){return Math.min(1e3*2**t,3e4)}function kR(t){return(t??"online")==="online"?gu.isOnline():!0}var ep=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function OR(t){let e=!1,n=0,r;const s=S5(),i=()=>s.status!=="pending",o=_=>{if(!i()){const A=new ep(_);d(A),t.onCancel?.(A)}},a=()=>{e=!0},c=()=>{e=!1},l=()=>AR.isFocused()&&(t.networkMode==="always"||gu.isOnline())&&t.canRun(),f=()=>kR(t.networkMode)&&t.canRun(),h=_=>{i()||(r?.(),s.resolve(_))},d=_=>{i()||(r?.(),s.reject(_))},m=()=>new Promise(_=>{r=A=>{(i()||l())&&_(A)},t.onPause?.()}).then(()=>{r=void 0,i()||t.onContinue?.()}),y=()=>{if(i())return;let _;const A=n===0?t.initialPromise:void 0;try{_=A??t.fn()}catch(w){_=Promise.reject(w)}Promise.resolve(_).then(h).catch(w=>{if(i())return;const R=t.retry??(PR.isServer()?0:3),v=t.retryDelay??N5,I=typeof v=="function"?v(n,w):v,D=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,w);if(e||!D){d(w);return}n++,t.onFail?.(n,w),T5(I).then(()=>l()?void 0:m()).then(()=>{e?d(w):y()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r?.(),s),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?y():m().then(y),s)}}var LR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),y5(this.gcTime)&&(this.#e=Jd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(PR.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Jd.clearTimeout(this.#e),this.#e=void 0)}};function M5(t){return{onFetch:(e,n)=>{const r=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let f=!1;const h=y=>{R5(y,()=>e.signal,()=>f=!0)},d=CR(e.options,e.fetchOptions),m=async(y,_,A)=>{if(f)return Promise.reject(e.signal.reason);if(_==null&&y.pages.length)return Promise.resolve(y);const R=(()=>{const x={client:e.client,queryKey:e.queryKey,pageParam:_,direction:A?"backward":"forward",meta:e.options.meta};return h(x),x})(),v=await d(R),{maxPages:I}=e.options,D=A?A5:I5;return{pages:D(y.pages,v,I),pageParams:D(y.pageParams,_,I)}};if(s&&i.length){const y=s==="backward",_=y?x5:aE,A={pages:i,pageParams:o},w=_(r,A);a=await m(A,w,y)}else{const y=t??i.length;do{const _=c===0?o[0]??r.initialPageParam:aE(r,a);if(c>0&&_==null)break;a=await m(a,_),c++}while(c<y)}return a};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=l}}}function aE(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function x5(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}
41var V5=class extends LR{#e;#t;#n;#s;#i;#r;#c;#o;constructor(t){super(),this.#o=!1,this.#c=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#s=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=lE(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#c,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=lE(this.options);e.data!==void 0&&(this.setState(cE(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(t,e){const n=b5(this.state.data,t,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#a({type:"setState",state:t})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(cn).catch(cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>E5(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!v5(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#o||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(l=>l.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const c=CR(this.options,e),f=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#o=!1,this.options.persister?this.options.persister(c,f,this):c(f)},o=(()=>{const c={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return r(c),c})();(this.#e==="infinite"?M5(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=OR({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:c=>{c instanceof ep&&c.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(c,l)=>{this.#a({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#s.config.onSuccess?.(c,this),this.#s.config.onSettled?.(c,this.state.error,this),c}
vendor: 10,144 bytes, line 41
41catch(c){if(c instanceof ep){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#a({type:"error",error:c}),this.#s.config.onError?.(c,this),this.#s.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#a(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...F5(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...cE(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?r:void 0,r;case"error":const s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),nn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:t})})}};function F5(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kR(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function cE(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lE(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var U5=class extends LR{#e;#t;#n;#s;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||$5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=OR({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#i({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)e();else{this.#i({type:"pending",variables:t,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const o=await this.options.onMutate?.(t,n);o!==this.state.context&&this.#i({type:"pending",context:o,variables:t,isPaused:s})}const i=await this.#s.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,n),await this.options.onSuccess?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,t,this.state.context,n),this.#i({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,t,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onError?.(i,t,this.state.context,n)}catch(o){Promise.reject(o)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,i,t,this.state.context,n)}catch(o){Promise.reject(o)}throw this.#i({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#i(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),nn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function $5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DR=class extends bf{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const s=new U5({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){this.#e.add(e);const n=rl(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=rl(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=rl(e);if(typeof n=="string"){const s=this.#t.get(n)?.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=rl(e);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){nn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>sE(n,r))}findAll(e={}){return this.getAll().filter(n=>sE(e,n))}notify(e){nn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return nn.batch(()=>Promise.all(e.map(n=>n.continue().catch(cn))))}};function rl(t){return t.options.scope?.id}var NR=class extends bf{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const s=n.queryKey,i=n.queryHash??qm(s,n);let o=this.get(i);return o||(o=new V5({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){nn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>rE(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>rE(e,r)):n}notify(e){nn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},j5=class{#e;#t;#n;#s;#i;#r;#c;#o;constructor(e={}){this.#e=e.queryCache||new NR,this.#t=e.mutationCache||new DR,this.#n=e.defaultOptions||{},this.#s=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#c=AR.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=gu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#c?.(),this.#c=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Xd(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(e,n,r){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,a=_5(n,o);if(a!==void 0)return this.#e.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(e,n,r){return nn.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;nn.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return nn.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},s=nn.batch(()=>this.#e.findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(cn).catch(cn)}invalidateQueries(e,n={}){return nn.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=nn.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(cn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(cn)}fetchQuery(e){const n=this.defaultQueryOptions(e);
41n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Xd(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cn).catch(cn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cn).catch(cn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return gu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#s.set(Ga(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#s.values()],r={};return n.forEach(s=>{za(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,n){this.#i.set(Ga(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],r={};return n.forEach(s=>{za(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=qm(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Wm&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},B5="VUE_QUERY_CLIENT";function H5(t){const e=t?`:${t}`:"";return`${B5}${e}`}function xj(t,e){Object.keys(t).forEach(n=>{t[n]=e[n]})}function tp(t,e,n="",r=0){if(e){const s=e(t,n,r);if(s===void 0&&Xe(t)||s!==void 0)return s}if(Array.isArray(t))return t.map((s,i)=>tp(s,e,String(i),r+1));if(typeof t=="object"&&W5(t)){const s=Object.entries(t).map(([i,o])=>[i,tp(o,e,i,r+1)]);return Object.fromEntries(s)}return t}function q5(t,e){return tp(t,e)}function Se(t,e=!1){return q5(t,(n,r,s)=>{if(s===1&&r==="queryKey")return Se(n,!0);if(e&&K5(n))return Se(n(),e);if(Xe(n))return Se(Ee(n),e)})}function W5(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function K5(t){return typeof t=="function"}var G5=class extends NR{find(t){return super.find(Se(t))}findAll(t={}){return super.findAll(Se(t))}},z5=class extends DR{find(t){return super.find(Se(t))}findAll(t={}){return super.findAll(Se(t))}},MR=class extends j5{constructor(t={}){const e={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new G5,mutationCache:t.mutationCache||new z5};super(e),this.isRestoring=nt(!1)}isFetching(t={}){return super.isFetching(Se(t))}isMutating(t={}){return super.isMutating(Se(t))}getQueryData(t){return super.getQueryData(Se(t))}ensureQueryData(t){return super.ensureQueryData(Se(t))}getQueriesData(t){return super.getQueriesData(Se(t))}setQueryData(t,e,n={}){return super.setQueryData(Se(t),e,Se(n))}setQueriesData(t,e,n={}){return super.setQueriesData(Se(t),e,Se(n))}getQueryState(t){return super.getQueryState(Se(t))}removeQueries(t={}){return super.removeQueries(Se(t))}resetQueries(t={},e={}){return super.resetQueries(Se(t),Se(e))}cancelQueries(t={},e={}){return super.cancelQueries(Se(t),Se(e))}invalidateQueries(t={},e={}){const n=Se(t),r=Se(e);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const s={...n,type:n.refetchType??n.type??"active"};return jn().then(()=>super.refetchQueries(s,r))}refetchQueries(t={},e={}){return super.refetchQueries(Se(t),Se(e))}fetchQuery(t){return super.fetchQuery(Se(t))}prefetchQuery(t){return super.prefetchQuery(Se(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(Se(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(Se(t))}setDefaultOptions(t){super.setDefaultOptions(Se(t))}setQueryDefaults(t,e){super.setQueryDefaults(Se(t),Se(e))}getQueryDefaults(t){return super.getQueryDefaults(Se(t))}setMutationDefaults(t,e){super.setMutationDefaults(Se(t),Se(e))}getMutationDefaults(t){return super.getMutationDefaults(Se(t))}},Q5={install:(t,e={})=>{const n=H5(e.queryClientKey);let r;if("queryClient"in e&&e.queryClient)r=e.queryClient;else{const o="queryClientConfig"in e?e.queryClientConfig:void 0;r=new MR(o)}RR||r.mount();let s=()=>{};if(e.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[o,a]=e.clientPersister(r);s=o,a.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),e.clientPersisterOnSuccess?.(r)})}const i=()=>{r.unmount(),s()};if(t.onUnmount)t.onUnmount(i);else{const o=t.unmount;t.unmount=function(){i(),o()}}t.provide(n,r)}};const Y5=gt(t=>{const e=bo("vue-query"),n=new MR({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*10,retry:1,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!0},mutations:{retry:1}}}),r={queryClient:n};t.vueApp.use(Q5,r),k5(n,e.value)}),J5=gt({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(t){}}),X5=[sO,oO,fO,NL,xL,VL,FL,$L,AD,CD,PD,Tx,bx,Ix,Cx,Lx,Mx,DV,h5,Y5,J5];function xR(t){return t.replace(/^\/[a-z]{2}/,"")}const Z5={class:"fixed inset-0 z-50 flex items-center justify-center bg-white dark:bg-gray-900"},e3={class:"text-center"},t3={class:"space-y-3"},n3={class:"text-lg font-medium text-gray-900 dark:text-gray-100"},r3={class:"text-sm text-gray-500 dark:text-gray-400"},s3=jt({__name:"AuthLoadingOverlay",setup(t){const{$authLoading:e}=be(),n=ec(),r=["","/","/auth","/terms","/privacy","/about"],s=bo("auth-loading",()=>!0),i=Ie(()=>r.includes(xR(n.path))?!1:s.value);return ht(()=>e?.value,o=>{typeof o=="boolean"&&(s.value=o)},{immediate:!0}),(o,a)=>Ee(i)?(tn(),Ar(Fw,{key:0,"enter-active-class":"transition-opacity duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Xa(()=>[Ye("div",Z5,[Ye("div",e3,[Ye("div",t3,[Ye("h2",n3,ji(o.$t("auth.loading.title")),1),Ye("p",r3,ji(o.$t("auth.loading.subtitle")),1)]),a[0]||(a[0]=Ye("div",{class:"mt-6 flex justify-center space-x-2"},[Ye("div",{class:"w-2 h-2 bg-primary-600 rounded-full animate-pulse"}),Ye("div",{class:"w-2 h-2 bg-primary-600 rounded-full animate-pulse",style:{"animation-delay":"0.2s"}}),Ye("div",{class:"w-2 h-2 bg-primary-600 rounded-full animate-pulse",style:{"animation-delay":"0.4s"}})],-1))])])]),_:1})):Ow("",!0)}}),VR=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},i3=Object.assign(VR(s3,[["__scopeId","data-v-867c11a3"]]),{__name:"AuthLoadingOverlay"}),FR=(t="RouteProvider")=>jt({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const n=e.renderKey,r=e.route,s={};for(const i in e.route)Object.defineProperty(s,i,{get:()=>n===e.renderKey?e.route[i]:r[i],enumerable:!0});return Dr(li,Ln(s)),()=>e.vnode?tt(e.vnode,{ref:e.vnodeRef}):e.vnode}}),o3=FR(),uE=new WeakMap,a3=jt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:n,expose:r}){const s=be(),i=nt(),o=It(li,null);let a;r({pageRef:i});const c=It(aT,null);let l;const f=s.deferHydration();let h=!1,d=!1,m=0;if(s.isHydrating){const _=s.hooks.hookOnce("app:error",f),A=Ut().beforeEach(()=>{_(),A()})}t.pageKey&&ht(()=>t.pageKey,(_,A)=>{_!==A&&s.callHook("page:loading:start")});let y=!1;{const _=Ut().beforeResolve(()=>{y=!1});Eo(()=>{_(),f()})}return()=>tt(UT,{name:t.name,route:t.route,...e},{default:_=>{const A=c3(o,_.route,_.Component),w=o&&o.matched.length===_.route.matched.length;if(!_.Component){if(l&&!w&&!Sh(l))return l;f();return}if(l&&c&&!Sh(l)&&!c.isCurrent(_.route))return l;if(A&&o&&(!c||c?.isCurrent(o)))return(w||l)&&!Sh(l)?l:null;const R=od(_,t.pageKey),v=l3(o,_.route,_.Component);!s.isHydrating&&a===R&&!v&&jn(()=>{y||(y=!0,s.callHook("page:loading:end"))}),h&&a!==R&&d&&m++,a=R;const I=!!(t.transition??_.route.meta.pageTransition??R_),D=I&&BT([t.transition,_.route.meta.pageTransition,R_,{onAfterLeave(){s["~transitionFinish"]?.(),delete s["~transitionFinish"],delete s["~transitionPromise"],s.callHook("page:transition:finish",_.Component)}}]),x=t.keepalive??_.route.meta.keepalive??Wk;return l=jT(I&&D,wL(x,tt(yp,{key:m,suspensible:!0,onPending:()=>{h=!0,I&&!s["~transitionPromise"]&&(s["~transitionPromise"]=new Promise(E=>{s["~transitionFinish"]=E})),s.callHook("page:start",_.Component)}
41,onResolve:async()=>{h=!1,d=!0;try{await jn(),s._route.sync?.(),await s.callHook("page:finish",_.Component),!y&&!v&&(y=!0,await s.callHook("page:loading:end"))}finally{f()}}},{default:()=>{const E={key:R||void 0,vnode:n.default?u3(n.default,_):_.Component,route:_.route,renderKey:R||void 0,trackRootNodes:I,vnodeRef:i};if(!x)return tt(o3,E);const T=_.Component.type,b=T;let S=uE.get(b);return S||(S=FR(T.name||T.__name),uE.set(b,S)),tt(S,E)}}))).default(),l}})}});function c3(t,e,n){if(!t)return!1;const r=e.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:e.matched.slice(0,r).some((s,i)=>s.components?.default!==t.matched[i]?.components?.default)||n&&od({route:e,Component:n})!==od({route:t,Component:n})}function l3(t,e,n){return t?e.matched.findIndex(s=>s.components?.default===n?.type)<e.matched.length-1:!1}function u3(t,e){const n=t(e);return n.length===1?tt(n[0]):tt(Nt,void 0,n)}function Sh(t){return!!t&&(!!t.suspense?.isUnmounted||!!t.component?.isUnmounted)}const UR=wT,f3=jt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>tt(as[t.name],t.layoutProps,e.slots)}}),h3={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},d3=jt({name:"NuxtLayout",inheritAttrs:!1,props:h3,setup(t,e){const n=be(),r=It(li),i=!r||r===ec()?CT():r,o=Ie(()=>
41{let f=Ee(t.name)??i?.meta.layout??UR(i?.path).appLayout??"default";return f&&!(f in as)&&t.fallback&&(f=Ee(t.fallback)),f}),a=Cn();e.expose({layoutRef:a});const c=n.deferHydration();if(n.isHydrating){const f=n.hooks.hookOnce("app:error",c),h=Ut().beforeEach(()=>{f(),h()})}let l;return()=>{const h=!!o.value&&o.value in as&&!!(i?.meta.layoutTransition??A_),d=h&&BT([i?.meta.layoutTransition,A_,{onBeforeLeave(){n["~transitionPromise"]=new Promise(y=>{n["~transitionFinish"]=y})},onAfterLeave(){n["~transitionFinish"]?.(),delete n["~transitionFinish"],delete n["~transitionPromise"]}}]),m=l;return l=o.value,jT(d,{default:()=>tt(yp,{suspensible:!0,onResolve:async()=>{await jn(c)}},{default:()=>tt(p3,{layoutProps:Lw(e.attrs,i.meta.layoutProps??{},{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!t.name,isRenderingNewLayout:y=>y!==m&&y===o.value,hasTransition:h},e.slots)})}).default()}}}),p3=jt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,e){const n=t.name;t.shouldProvide&&Dr(aT,{isCurrent:i=>n===!1||n===(i.meta.layout??UR(i.path).appLayout??"default")});const r=It(li);if(r&&r===ec()){const i=CT(),o={};for(const a in i){const c=a;Object.defineProperty(o,c,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?i[c]:r[c]})}Dr(li,Ln(o))}return()=>!n||typeof n=="string"&&!(n in as)?e.slots.default?.():tt(f3,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}});async function m3(t,e,n){return xI(t,e,n)}async function g3(t,e,n){return MI(t,e,n)}async function fE(t,e){return EU(t,{url:e,handleCodeInApp:!1})}async function _3(t,e){try{return await $fetch("/api/auth/send-verification-email",{method:"POST",headers:{Authorization:`Bearer ${t}`},body:{locale:e}})}catch(n){throw(n&&typeof n=="object"&&"statusCode"in n?n.statusCode:void 0)===429?Object.assign(new Error("Verification email throttled"),{code:"auth/too-many-requests"}):n}}async function y3(t,e,n){return gU(t,e,{url:n,handleCodeInApp:!1})}async function v3(t,e){return vU(t,e)}async function E3(t,e,n){return _U(t,e,n)}const Vj={INSUFFICIENT_CREDITS:"insufficient_credits",EMPTY_MODULES:"empty_modules",ALL_MODULES_FAILED:"all_modules_failed",TEMPLATE_NOT_FOUND:"template_not_found",MAX_ATTEMPTS_REACHED:"max_attempts_reached",EXECUTION_ERROR:"execution_error",RECIPIENT_LIMIT_EXCEEDED:"recipient_limit_exceeded",SUBSCRIPTION_REQUIRED:"subscription_required"},w3={USERS:"users",EMAIL_TEMPLATES:"emailTemplates",EMAIL_MODULES:"emailModules",EMAIL_EXECUTIONS:"emailExecutions",CREDIT_TRANSACTIONS:"creditTransactions",PADDLE_EVENTS:"paddleEvents",TOPIC_FEEDBACK:"topicFeedback",MOCK_EMAIL_LOG:"mockEmailLog",BRIEFS:"briefs",BRIEF_REVIEW_QUEUE:"briefReviewQueue",OPERATIONAL_ALERTS:"operationalAlerts"},ra=t=>w3[t];function T3(){const e=Ss().public.e2eMode===!0;async function n(r,s={}){return r.getIdToken(s.forceRefresh===!0||e)}return{getIdToken:n}}const b3=["a","b"],I3="a",A3="mm_ab_hero",R3=t=>typeof t=="string"&&b3.includes(t),Fj=t=>t===I3?"playground.deck":`playground.deck.variant.${t}`;function S3(){if(typeof document>"u")return;const e=document.cookie.match(new RegExp(`(?:^|;\\s*)${A3}=([^;]*)`))?.[1];return R3(e)?e:void 0}const C3={signup:"signup",templateCreated:"template_created",moduleAdded:"module_added",testSendClicked:"test_send_clicked",playgroundTopicAdded:"playground_topic_added",playgroundSignupOpened:"playground_signup_opened",testSendSucceeded:"test_send_succeeded",templateActivated:"template_activated",editionOpened:"edition_opened",paywallViewed:"paywall_viewed",checkoutOpened:"checkout_opened"};function P3(){function t(e,n){if(!(typeof window>"u"||typeof window.plausible!="function"))try{window.plausible(e,n?{props:n}:void 0)}catch{}}return{track:t,events:C3}}function Ch(t){return t instanceof Error?t:t&&typeof t=="object"&&"message"in t&&typeof t?.message=="string"?new Error(t.message):new Error(String(t))}const k3=()=>{const t=nt(null),e=nt(null),n=nt(!0),r=Ie(()=>t.value?.photoURL||e.value?.photoURL||null),{locale:s}=sc(),{getIdToken:i}=T3(),{$auth:o,$db:a,$authState:c,$authLoading:l}=be(),f=bo("firebase:suppressAutoCreate",()=>!1);
41try{if(o&&a){t.value=c.value,n.value=l.value;const h=async T=>{const b=na(a,ra("USERS"),T),S=await nl(b);if(S.exists()){e.value=S.data();return}const O={uid:T,email:t.value?.email||"",displayName:t.value?.displayName||"",photoURL:t.value?.photoURL||"",language:s.value,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,contentPreferences:{newsSources:[],weatherUnit:"celsius",dateFormat:"MM/dd/yyyy",timeFormat:"12h"},creditPlanId:"free",freeTestCredit:!0},L=S3();L&&(O.heroVariant=L);try{const k=Ge.now();await u5(b,{...O,createdAt:k,updatedAt:k}),e.value={...O,createdAt:k,updatedAt:k},P3().track("signup",{hero_variant:O.heroVariant??"unknown"})}catch(k){console.error("Error creating user profile:",k)}},d=async T=>{try{const b=await nl(na(a,ra("USERS"),T));b.exists()?e.value=b.data():f.value||await h(T)}catch(b){console.error("Error loading user profile:",b)}};ht(c,async T=>{t.value=T,T?await d(T.uid):e.value=null,n.value=l.value},{immediate:!0}),ht(l,T=>{n.value=T},{immediate:!0});const m=async()=>{f.value=!0;try{const T=new Rr;T.setCustomParameters({prompt:"select_account"});const b=await JU(o,T),S=Eh(b)?.isNewUser??!1,O=na(a,ra("USERS"),b.user.uid),L=await nl(O),k=L.exists();return k&&(e.value=L.data(),f.value=!1),{result:b,profileExists:k,isNewUser:S}}catch(T){f.value=!1;const b=Ch(T);throw console.error("Error signing in with Google:",b),b}},y=async T=>{try{await h(T)}finally{f.value=!1}},_=async()=>{try{await OU(o)}catch(T){const b=Ch(T);throw console.error("Error signing out:",b),b}},A=async(T,b)=>{f.value=!0;try{const S=await m3(o,T,b),O=Eh(S)?.isNewUser??!1,L=na(a,ra("USERS"),S.user.uid),k=await nl(L),ce=k.exists();return ce&&(e.value=k.data(),f.value=!1),{result:S,profileExists:ce,isNewUser:O}}catch(S){throw f.value=!1,S}},w=async T=>{const b=await i(T);await _3(b,s.value)};return{user:kn(t),userProfile:kn(e),photoURL:kn(r),isLoading:kn(n),sign
41InWithGoogle:m,createUserProfile:y,signOut:_,updateUserProfile:async T=>{if(!t.value)throw new Error("User not authenticated");try{const b=Object.fromEntries(Object.entries(T).filter(([L,k])=>k!==void 0)),S=na(a,ra("USERS"),t.value.uid),O=Ge.now();await f5(S,{...b,updatedAt:O}),e.value&&(e.value={...e.value,...b,updatedAt:O})}catch(b){const S=Ch(b);throw console.error("Error updating user profile:",S),S}},loadUserProfile:d,signInWithEmail:A,signUpWithEmail:async(T,b)=>{f.value=!0;try{const S=await g3(o,T,b),O=Eh(S)?.isNewUser??!1;return w(S.user).catch(L=>(console.warn("branded verification email failed, falling back to Firebase sender:",L),fE(S.user,`${window.location.origin}/`))).catch(L=>{console.warn("sendEmailVerification failed (non-blocking):",L)}),{result:S,profileExists:!1,isNewUser:O}}catch(S){throw f.value=!1,S}},resendVerificationEmail:async()=>{if(!t.value)throw new Error("Not signed in");try{await w(t.value)}catch(T){if(T?.code==="auth/too-many-requests")throw T;console.warn("branded verification email failed, falling back to Firebase sender:",T),await fE(t.value,`${window.location.origin}/`)}},sendPasswordReset:async T=>{await y3(o,T,`${window.location.origin}/auth`)},verifyPasswordResetCode:async T=>v3(o,T),confirmPasswordReset:async(T,b)=>{await E3(o,T,b)}}}else console.warn("Firebase services not available"),n.value=!1}catch(h){console.error("Error initializing Firebase:",h),n.value=!1}return{user:kn(t),userProfile:kn(e),photoURL:kn(r),isLoading:kn(n),sign
41InWithGoogle:async()=>{throw new Error("Firebase not available")},createUserProfile:async()=>{throw new Error("Firebase not available")},signOut:async()=>{throw new Error("Firebase not available")},updateUserProfile:async()=>{throw new Error("Firebase not available")},loadUserProfile:async()=>{throw new Error("Firebase not available")},signInWithEmail:async()=>{throw new Error("Firebase not available")},signUpWithEmail:async()=>{throw new Error("Firebase not available")},resendVerificationEmail:async()=>{throw new Error("Firebase not available")},sendPasswordReset:async()=>{throw new Error("Firebase not available")},verifyPasswordResetCode:async()=>{throw new Error("Firebase not available")},confirmPasswordReset:async()=>{throw new Error("Firebase not available")}}},$R=["de","en"],jR="en";function Uj(t){return $R.includes(t)?t:jR}const O3={id:"app"},L3=jt({__name:"app",setup(t){const{locale:e,setLocale:n,t:r}=sc(),{userProfile:s}=k3(),i=ec(),o=xR(i.path);Rp({title:()=>r("seo.title"),htmlAttrs:{lang:e.value},link:[{rel:"canonical",href:()=>`https://morningmail.ai${i.path}`},{rel:"alternate",hreflang:jR,href:()=>`https://morningmail.ai/en${o}`},{rel:"alternate",hreflang:"de",href:()=>`https://morningmail.ai/de${o}`},{rel:"alternate",hreflang:"x-default",href:()=>`https://morningmail.ai${o}`}],meta:[{name:"description",content:()=>r("seo.description")},{name:"keywords",content:()=>r("seo.keywords")},{name:"robots",content:"index, follow"},{name:"author",content:"MorningMail"},{name:"language",content:()=>e.value}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"MorningMail",description:r("seo.description"),applicationCategory:"ProductivityApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},author:{"@type":"Organization",name:"MorningMail"}})}]}),J1({ogTitle:()=>r("seo.title"),ogDescription:()=>r("seo.description"),ogType:"website",ogSiteName:"MorningMail",ogLocale:()=>e.value,ogUrl:()=>`https://morningmail.ai${i.path}`,ogImage:"https://morningmail.ai/thumbnails/og-default.png",ogImageSecureUrl:"https://morningmail.ai/thumbnails/og-default.png",ogImageType:"image/png",ogImageWidth:1200,ogImageHeight:630,ogImageAlt:()=>r("seo.title"),twitterCard:"summary_large_image",twitterTitle:()=>r("seo.title"),twitterDescription:()=>r("seo.description"),twitterSite:"@morningmail",twitterImage:"https://morningmail.ai/thumbnails/og-default.png",twitterImageAlt:()=>r("seo.title")}),ht(s,c=>{c?.language&&e.value!==c.language&&$R.includes(c.language)&&(console.log(`app.vue: language changed from '${e.value}' to '${c.language}'`),n(c.language).catch(l=>{console.error("Error setting locale:",l)}))});const a=To();return ht(a,c=>{if(c){const l={message:typeof c=="string"?c:c&&typeof c=="object"&&"message"in c?c?.message:"Unknown error",stack:c&&typeof c=="object"&&"stack"in c?c.stack:void 0};console.warn("Error caught and cleared:",l),xl()}},{immediate:!0}),Rs(()=>{a.value&&xl()}),(c,l)=>{const f=i3,h=a3,d=d3;return tn(),Wi("div",O3,[Je(f),Je(d,null,{default:Xa(()=>[Je(h)]),_:1})])}}}),D3={class:"error-page"},N3={class:"error-card"},M3={class:"error-masthead"},x3={class:"masthead-meta"},V3={class:"error-body"},F3={class:"error-eyebrow"},U3={class:"error-headline"},$3={key:0},j3={key:1},B3={class:"error-lede"},H3=jt({__name:"error",setup(t){const e=To(),n=Ie(()=>e.value&&typeof e.value=="object"&&e.value!==null?e.value.statusCode===404:!1),r=Ie(()=>{if(!e.value||typeof e.value!="object"||e.value===null)return"ERROR";const a=e.value.statusCode;return a?`ERROR · ${a}`:"ERROR"}),s=Ie(()=>{if(!e.value)return"Something went wrong. Please try again.";if(typeof e.value=="string")return e.value;if(typeof e.value=="object"&&e.value!==null){if(e.value.statusCode===404)return"The page you are looking for could not be found.";if(e.value.message&&typeof e.value.message=="string")return e.value.message}return"Something went wrong. Please try again."}),i=Ie(()=>new Intl.DateTimeFormat("en",{weekday:"long",month:"long",day:"numeric",year:"numeric"}).format(new Date).toUpperCase());function o(){xl()}return(a,c)=>{const l=vD;return tn(),Wi("div",D3,[Ye("div",N3,[Ye("header",M3,[Ye("div",x3,ji(Ee(i)),1),c[0]||(c[0]=Ye("div",{class:"masthead-title"},[zs(" The "),Ye("em",null,"Morning"),zs(" Mail"),Ye("em",{class:"dot-ai"},".ai")],-1)),c[1]||(c[1]=Ye("div",{class:"masthead-meta right"},"Delivered overnight",-1))]),Ye("div",V3,[Ye("p",F3,ji(Ee(r)),1),Ye("h1",U3,[Ee(n)?(tn(),Wi("span",$3,[...c[2]||(c[2]=[zs("Page ",-1),Ye("em",null,"not found",-1)])])):(tn(),Wi("span",j3,[...c[3]||(c[3]=[zs("Something went ",-1),Ye("em",null,"wrong",-1)])]))]),Ye("p",B3,ji(Ee(s)),1),Ye("div",{class:"error-actions"},[Ye("button",{class:"btn-primary",onClick:o},"Try Again")]),Je(l,{to:"/",class:"error-back"},{default:Xa(()=>[...c[4]||(c[4]=[zs("← Go back to home",-1)])]),_:1})])])])}}}),q3=VR(H3,[["__scopeId","data-v-bb5cbb40"]]),W3={key:0},hE={__name:"nuxt-root",setup(t){const e=()=>null,n=be(),r=n.deferHydration();if(n.isHydrating){const f=n.hooks.hookOnce("app:error",r),h=Ut().beforeEach(()=>{f(),h()})}const s=!1;Dr(li,ec()),n.hooks.callHookWith(f=>f.map(h=>h()),"vue:setup",[]);const i=To(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function c(f,h,d){const m=n.vueApp.config.errorHandler;if(m&&!m.__nuxt_default)try{m(f,h,d)}
41catch(y){console.error("[nuxt] Error in `app.config.errorHandler`",y)}}rw((f,h,d)=>{if(n.hooks.callHook("vue:error",f,h,d)?.catch(m=>console.error("[nuxt] Error in `vue:error` hook",m)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",f),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,f),!1;if(uT(f)&&(f.fatal||f.unhandled))return n.runWithContext(()=>Ws(f)),c(f,h,d),!1});const l=!1;return(f,h)=>(tn(),Ar(yp,{onResolve:Ee(r)},{default:Xa(()=>[Ee(o)?(tn(),Wi("div",W3)):Ee(i)?(tn(),Ar(Ee(q3),{key:1,error:Ee(i)},null,8,["error"])):Ee(l)?(tn(),Ar(Ee(e),{key:2,context:Ee(l)},null,8,["context"])):Ee(s)?(tn(),Ar(TC(Ee(s)),{key:3})):(tn(),Ar(Ee(L3),{key:4}))]),_:1},8,["onResolve"]))}};let dE;{let t;dE=async function(){if(t)return t;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?jP(hE):$P(hE),s=Xk({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=fs(o)}i.__nuxt_default=!0,r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)}),!n&&S_.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(S_.id)?.remove()});try{await t1(s,X5)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Qk),await s.hooks.callHook("app:mounted",r),await jn()}catch(o){i(o)}return r},t=dE().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{J1 as $,ht as A,tr as B,Ge as C,yo as D,Aa as E,Nt as F,bo as G,pj as H,I3 as I,R3 as J,Fj as K,yC as L,k3 as M,Eo as N,P3 as O,C3 as P,Z3 as Q,Cn as R,jn as S,Y3 as T,Uj as U,TC as V,K3 as W,eP as X,rj as Y,mj as Z,VR as _,Ee as a,Ga as a$,Rp as a0,Q3 as a1,oj as a2,Ut as a3,ec as a4,be as a5,kj as a6,na as a7,ra as a8,dp as a9,rn as aA,lp as aB,z3 as aC,kn as aD,WS as aE,aj as aF,J3 as aG,f5 as aH,Aj as aI,Rj as aJ,Sj as aK,Pj as aL,u5 as aM,bf as aN,S5 as aO,E5 as aP,Oj as aQ,Xd as aR,cn as aS,PR as aT,y5 as aU,v5 as aV,Jd as aW,AR as aX,F5 as aY,b5 as aZ,nn as a_,$R as aa,Fw as ab,Pn as ac,fs as ad,Iu as ae,lj as af,Cj as ag,bj as ah,Tj as ai,Ij as aj,T3 as ak,hj as al,ij as am,sj as an,iT as ao,qn as ap,E_ as aq,ci as ar,Ep as as,Gw as at,uj as au,Ss as av,nj as aw,Lw as ax,Vj as ay,nl as az,Ie as b,$5 as b0,Lu as b1,It as b2,H5 as b3,Ln as b4,G3 as b5,Se as b6,Lj as b7,xj as b8,eb as b9,_j as ba,yj as bb,tt as bc,Bx as bd,vj as be,dj as bf,fj as bg,us as bh,JT as bi,Jh as bj,nC as bk,Wi as c,jt as d,tj as e,Je as f,Ye as g,Ow as h,Ar as i,zs as j,nt as k,vx as l,Wg as m,Au as n,tn as o,vD as p,X3 as q,ej as r,Rs as s,ji as t,sc as u,Xe as v,Xa as w,cj as x,wn as y,Ru as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.