PageSourceSearch

https://noteasilysquished.com/assets/index-BQfCPwaw.js

js noteasilysquished.com collected 2026-10-02 16:03:07 UTC 663,537 bytes, 3,199 lines download raw bytes

vendor: 3,594 bytes, lines 1-8
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var Ff={};/**
2* @vue/shared v3.5.21
3* (c) 2018-present Yuxi (Evan) You and Vue contributors
4* @license MIT
5**/function hh(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const $e={},Qr=[],Mn=()=>{},wg=()=>!1,Dc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),dh=t=>t.startsWith("onUpdate:"),xt=Object.assign,fh=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Kw=Object.prototype.hasOwnProperty,Le=(t,e)=>Kw.call(t,e),pe=Array.isArray,Jr=t=>Nc(t)==="[object Map]",Eg=t=>Nc(t)==="[object Set]",_e=t=>typeof t=="function",lt=t=>typeof t=="string",Zs=t=>typeof t=="symbol",Xe=t=>t!==null&&typeof t=="object",Tg=t=>(Xe(t)||_e(t))&&_e(t.then)&&_e(t.catch),Ig=Object.prototype.toString,Nc=t=>Ig.call(t),Qw=t=>Nc(t).slice(8,-1),Sg=t=>Nc(t)==="[object Object]",ph=t=>lt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,to=hh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oc=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},Jw=/-\w/g,on=Oc(t=>t.replace(Jw,e=>e.slice(1).toUpperCase())),Xw=/\B([A-Z])/g,Ar=Oc(t=>t.replace(Xw,"-$1").toLowerCase()),xc=Oc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ul=Oc(t=>t?`on${xc(t)}`:""),xs=(t,e)=>!Object.is(t,e),xa=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Ag=(t,e,n,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:n})},mu=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Uf;const Vc=()=>Uf||(Uf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Ff<"u"?Ff:{});function mh(t){if(pe(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=lt(s)?nE(s):mh(s);if(r)for(const i in r)e[i]=r[i]}return e}else if(lt(t)||Xe(t))return t}const Zw=/;(?![^(]*\))/g,eE=/:([^]+)/,tE=/\/\*[^]*?\*\//g;function nE(t){const e={};return t.replace(tE,"").split(Zw).forEach(n=>{if(n){const s=n.split(eE);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function wo(t){let e="";if(lt(t))e=t;else if(pe(t))for(let n=0;n<t.length;n++){const s=wo(t[n]);s&&(e+=s+" ")}else if(Xe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const sE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rE=hh(sE);function bg(t){return!!t||t===""}const Rg=t=>!!(t&&t.__v_isRef===!0),kn=t=>lt(t)?t:t==null?"":pe(t)||Xe(t)&&(t.toString===Ig||!_e(t.toString))?Rg(t)?kn(t.value):JSON.stringify(t,Cg,2):String(t),Cg=(t,e)=>Rg(e)?Cg(t,e.value):Jr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r],i)=>(n[jl(s,i)+" =>"]=r,n),{})}:Eg(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>jl(n))}:Zs(e)?jl(e):Xe(e)&&!pe(e)&&!Sg(e)?String(e):e,jl=(t,e="")=>{var n;return Zs(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6* @vue/reactivity v3.5.21
7* (c) 2018-present Yuxi (Evan) You and Vue contributors
8* @license MIT
vendor: 5,486 bytes, line 9
9**/let Pt;class Pg{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pt,!e&&Pt&&(this.index=(Pt.scopes||(Pt.scopes=[])).push(this)-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=Pt;try{return Pt=this,e()}finally{Pt=n}}}on(){++this._on===1&&(this.prevScope=Pt,Pt=this)}off(){this._on>0&&--this._on===0&&(Pt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function kg(t){return new Pg(t)}function Mg(){return Pt}function iE(t,e=!1){Pt&&Pt.cleanups.push(t)}let He;const $l=new WeakSet;class Dg{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,Pt&&Pt.active&&Pt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$l.has(this)&&($l.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Og(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,jf(this),xg(this);const e=He,n=mn;He=this,mn=!0;try{return this.fn()}finally{Vg(this),He=e,mn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)yh(e);this.deps=this.depsTail=void 0,jf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$l.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){gu(this)&&this.run()}get dirty(){return gu(this)}}let Ng=0,no,so;function Og(t,e=!1){if(t.flags|=8,e){t.next=so,so=t;return}t.next=no,no=t}function gh(){Ng++}function _h(){if(--Ng>0)return;if(so){let e=so;for(so=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;no;){let e=no;for(no=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=n}}if(t)throw t}function xg(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Vg(t){let e,n=t.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),yh(s),oE(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}t.deps=e,t.depsTail=n}function gu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Lg(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Lg(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Eo)||(t.globalVersion=Eo,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!gu(t))))return;t.flags|=2;const e=t.dep,n=He,s=mn;He=t,mn=!0;try{xg(t);const r=t.fn(t._value);(e.version===0||xs(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(r){throw e.version++,r}finally{He=n,mn=s,Vg(t),t.flags&=-3}}function yh(t,e=!1){const{dep:n,prevSub:s,nextSub:r}=t;if(s&&(s.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=s,t.nextSub=void 0),n.subs===t&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)yh(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function oE(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 Fg=[];function os(){Fg.push(mn),mn=!1}function as(){const t=Fg.pop();mn=t===void 0?!0:t}function jf(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=He;He=void 0;try{e()}finally{He=n}}}let Eo=0;class aE{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 vh{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(!He||!mn||He===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==He)n=this.activeLink=new aE(He,this),He.deps?(n.prevDep=He.depsTail,He.depsTail.nextDep=n,He.depsTail=n):He.deps=He.depsTail=n,Ug(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=He.depsTail,n.nextDep=void 0,He.depsTail.nextDep=n,He.depsTail=n,He.deps===n&&(He.deps=s)}return n}trigger(e){this.version++,Eo++,this.notify(e)}notify(e){gh();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_h()}}}function Ug(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)Ug(s)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Za=new WeakMap,pr=Symbol(""),_u=Symbol(""),To=Symbol("");function Mt(t,e,n){if(mn&&He){let s=Za.get(t);s||Za.set(t,s=new Map);let r=s.get(n);r||(s.set(n,r=new vh),r.map=s,r.key=n),r.track()}}function Jn(t,e,n,s,r,i){const o=Za.get(t);if(!o){Eo++;return}const c=l=>{l&&l.trigger()};
vendor: 4,954 bytes, line 9
9if(gh(),e==="clear")o.forEach(c);else{const l=pe(t),h=l&&ph(n);if(l&&n==="length"){const d=Number(s);o.forEach((p,m)=>{(m==="length"||m===To||!Zs(m)&&m>=d)&&c(p)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),h&&c(o.get(To)),e){case"add":l?h&&c(o.get("length")):(c(o.get(pr)),Jr(t)&&c(o.get(_u)));break;case"delete":l||(c(o.get(pr)),Jr(t)&&c(o.get(_u)));break;case"set":Jr(t)&&c(o.get(pr));break}}_h()}function cE(t,e){const n=Za.get(t);return n&&n.get(e)}function Lr(t){const e=Ne(t);return e===t?e:(Mt(e,"iterate",To),rn(t)?e:e.map(Et))}function Lc(t){return Mt(t=Ne(t),"iterate",To),t}const lE={__proto__:null,[Symbol.iterator](){return Bl(this,Symbol.iterator,Et)},concat(...t){return Lr(this).concat(...t.map(e=>pe(e)?Lr(e):e))},entries(){return Bl(this,"entries",t=>(t[1]=Et(t[1]),t))},every(t,e){return Yn(this,"every",t,e,void 0,arguments)},filter(t,e){return Yn(this,"filter",t,e,n=>n.map(Et),arguments)},find(t,e){return Yn(this,"find",t,e,Et,arguments)},findIndex(t,e){return Yn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Yn(this,"findLast",t,e,Et,arguments)},findLastIndex(t,e){return Yn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Yn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Hl(this,"includes",t)},indexOf(...t){return Hl(this,"indexOf",t)},join(t){return Lr(this).join(t)},lastIndexOf(...t){return Hl(this,"lastIndexOf",t)},map(t,e){return Yn(this,"map",t,e,void 0,arguments)},pop(){return Hi(this,"pop")},push(...t){return Hi(this,"push",t)},reduce(t,...e){return $f(this,"reduce",t,e)},reduceRight(t,...e){return $f(this,"reduceRight",t,e)},shift(){return Hi(this,"shift")},some(t,e){return Yn(this,"some",t,e,void 0,arguments)},splice(...t){return Hi(this,"splice",t)},toReversed(){return Lr(this).toReversed()},toSorted(t){return Lr(this).toSorted(t)},toSpliced(...t){return Lr(this).toSpliced(...t)},unshift(...t){return Hi(this,"unshift",t)},values(){return Bl(this,"values",Et)}};function Bl(t,e,n){const s=Lc(t),r=s[e]();return s!==t&&!rn(t)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const uE=Array.prototype;function Yn(t,e,n,s,r,i){const o=Lc(t),c=o!==t&&!rn(t),l=o[e];if(l!==uE[e]){const p=l.apply(t,i);return c?Et(p):p}let h=n;o!==t&&(c?h=function(p,m){return n.call(this,Et(p),m,t)}:n.length>2&&(h=function(p,m){return n.call(this,p,m,t)}));const d=l.call(o,h,s);return c&&r?r(d):d}function $f(t,e,n,s){const r=Lc(t);let i=n;return r!==t&&(rn(t)?n.length>3&&(i=function(o,c,l){return n.call(this,o,c,l,t)}):i=function(o,c,l){return n.call(this,o,Et(c),l,t)}),r[e](i,...s)}function Hl(t,e,n){const s=Ne(t);Mt(s,"iterate",To);const r=s[e](...n);return(r===-1||r===!1)&&Th(n[0])?(n[0]=Ne(n[0]),s[e](...n)):r}function Hi(t,e,n=[]){os(),gh();const s=Ne(t)[e].apply(t,n);return _h(),as(),s}const hE=hh("__proto__,__v_isRef,__isVue"),jg=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Zs));function dE(t){Zs(t)||(t=String(t));const e=Ne(this);return Mt(e,"has",t),e.hasOwnProperty(t)}class $g{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?TE:zg:i?Wg:Hg).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=pe(e);if(!r){let l;if(o&&(l=lE[n]))return l;if(n==="hasOwnProperty")return dE}const c=Reflect.get(e,n,it(e)?e:s);return(Zs(n)?jg.has(n):hE(n))||(r||Mt(e,"get",n),i)?c:it(c)?o&&ph(n)?c:c.value:Xe(c)?r?qg(c):Wo(c):c}}class Bg extends $g{constructor(e=!1){super(!1,e)}set(e,n,s,r){let i=e[n];if(!this._isShallow){const l=zs(i);if(!rn(s)&&!zs(s)&&(i=Ne(i),s=Ne(s)),!pe(e)&&it(i)&&!it(s))return l||(i.value=s),!0}const o=pe(e)&&ph(n)?Number(n)<e.length:Le(e,n),c=Reflect.set(e,n,s,it(e)?e:r);return e===Ne(r)&&(o?xs(s,i)&&Jn(e,"set",n,s):Jn(e,"add",n,s)),c}deleteProperty(e,n){const s=Le(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&s&&Jn(e,"delete",n,void 0),r}has(e,n){const s=Reflect.has(e,n);return(!Zs(n)||!jg.has(n))&&Mt(e,"has",n),s}ownKeys(e){return Mt(e,"iterate",pe(e)?"length":pr),Reflect.ownKeys(e)}}class fE extends $g{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const pE=new Bg,mE=new fE,gE=new Bg(!0);const yu=t=>t,Sa=t=>Reflect.getPrototypeOf(t);function _E(t,e,n){return function(...s){const r=this.__v_raw,i=Ne(r),o=Jr(i),c=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,h=r[t](...s),d=n?yu:e?ec:Et;return!e&&Mt(i,"iterate",l?_u:pr),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:c?[d(p[0]),d(p[1])]:d(p),done:m}},[Symbol.iterator](){return this}}}}function Aa(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function yE(t,e){const n={get(r){const i=this.__v_raw,o=Ne(i),c=Ne(r);
vendor: 5,949 bytes, lines 9-12
9t||(xs(r,c)&&Mt(o,"get",r),Mt(o,"get",c));const{has:l}=Sa(o),h=e?yu:t?ec:Et;if(l.call(o,r))return h(i.get(r));if(l.call(o,c))return h(i.get(c));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!t&&Mt(Ne(r),"iterate",pr),r.size},has(r){const i=this.__v_raw,o=Ne(i),c=Ne(r);return t||(xs(r,c)&&Mt(o,"has",r),Mt(o,"has",c)),r===c?i.has(r):i.has(r)||i.has(c)},forEach(r,i){const o=this,c=o.__v_raw,l=Ne(c),h=e?yu:t?ec:Et;return!t&&Mt(l,"iterate",pr),c.forEach((d,p)=>r.call(i,h(d),h(p),o))}};return xt(n,t?{add:Aa("add"),set:Aa("set"),delete:Aa("delete"),clear:Aa("clear")}:{add(r){!e&&!rn(r)&&!zs(r)&&(r=Ne(r));const i=Ne(this);return Sa(i).has.call(i,r)||(i.add(r),Jn(i,"add",r,r)),this},set(r,i){!e&&!rn(i)&&!zs(i)&&(i=Ne(i));const o=Ne(this),{has:c,get:l}=Sa(o);let h=c.call(o,r);h||(r=Ne(r),h=c.call(o,r));const d=l.call(o,r);return o.set(r,i),h?xs(i,d)&&Jn(o,"set",r,i):Jn(o,"add",r,i),this},delete(r){const i=Ne(this),{has:o,get:c}=Sa(i);let l=o.call(i,r);l||(r=Ne(r),l=o.call(i,r)),c&&c.call(i,r);const h=i.delete(r);return l&&Jn(i,"delete",r,void 0),h},clear(){const r=Ne(this),i=r.size!==0,o=r.clear();return i&&Jn(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=_E(r,t,e)}),n}function wh(t,e){const n=yE(t,e);return(s,r,i)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(Le(n,r)&&r in s?n:s,r,i)}const vE={get:wh(!1,!1)},wE={get:wh(!1,!0)},EE={get:wh(!0,!1)};const Hg=new WeakMap,Wg=new WeakMap,zg=new WeakMap,TE=new WeakMap;function IE(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SE(t){return t.__v_skip||!Object.isExtensible(t)?0:IE(Qw(t))}function Wo(t){return zs(t)?t:Eh(t,!1,pE,vE,Hg)}function Yg(t){return Eh(t,!1,gE,wE,Wg)}function qg(t){return Eh(t,!0,mE,EE,zg)}function Eh(t,e,n,s,r){if(!Xe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=SE(t);if(i===0)return t;const o=r.get(t);if(o)return o;const c=new Proxy(t,i===2?s:n);return r.set(t,c),c}function Vs(t){return zs(t)?Vs(t.__v_raw):!!(t&&t.__v_isReactive)}function zs(t){return!!(t&&t.__v_isReadonly)}function rn(t){return!!(t&&t.__v_isShallow)}function Th(t){return t?!!t.__v_raw:!1}function Ne(t){const e=t&&t.__v_raw;return e?Ne(e):t}function Ih(t){return!Le(t,"__v_skip")&&Object.isExtensible(t)&&Ag(t,"__v_skip",!0),t}const Et=t=>Xe(t)?Wo(t):t,ec=t=>Xe(t)?qg(t):t;function it(t){return t?t.__v_isRef===!0:!1}function gn(t){return Gg(t,!1)}function AE(t){return Gg(t,!0)}function Gg(t,e){return it(t)?t:new bE(t,e)}class bE{constructor(e,n){this.dep=new vh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ne(e),this._value=n?e:Et(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,s=this.__v_isShallow||rn(e)||zs(e);e=s?e:Ne(e),xs(e,n)&&(this._rawValue=e,this._value=s?e:Et(e),this.dep.trigger())}}function Xr(t){return it(t)?t.value:t}const RE={get:(t,e,n)=>e==="__v_raw"?t:Xr(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return it(r)&&!it(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function Kg(t){return Vs(t)?t:new Proxy(t,RE)}function CE(t){const e=pe(t)?new Array(t.length):{};for(const n in t)e[n]=kE(t,n);return e}class PE{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return cE(Ne(this._object),this._key)}}function kE(t,e,n){const s=t[e];return it(s)?s:new PE(t,e,n)}class ME{constructor(e,n,s){this.fn=e,this.setter=n,this._value=void 0,this.dep=new vh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&He!==this)return Og(this,!0),!0}get value(){const e=this.dep.track();return Lg(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function DE(t,e,n=!1){let s,r;return _e(t)?s=t:(s=t.get,r=t.set),new ME(s,r,n)}const ba={},tc=new WeakMap;let lr;function NE(t,e=!1,n=lr){if(n){let s=tc.get(n);s||tc.set(n,s=[]),s.push(t)}}function OE(t,e,n=$e){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:c,call:l}=n,h=q=>r?q:rn(q)||r===!1||r===0?Xn(q,1):Xn(q);let d,p,m,v,P=!1,M=!1;if(it(t)?(p=()=>t.value,P=rn(t)):Vs(t)?(p=()=>h(t),P=!0):pe(t)?(M=!0,P=t.some(q=>Vs(q)||rn(q)),p=()=>t.map(q=>{if(it(q))return q.value;if(Vs(q))return h(q);if(_e(q))return l?l(q,2):q()})):_e(t)?e?p=l?()=>l(t,2):t:p=()=>{if(m){os();try{m()}finally{as()}}const q=lr;lr=d;try{return l?l(t,3,[v]):t(v)}finally{lr=q}}:p=Mn,e&&r){const q=p,le=r===!0?1/0:r;p=()=>Xn(q(),le)}const O=Mg(),$=()=>{d.stop(),O&&O.active&&fh(O.effects,d)};if(i&&e){const q=e;e=(...le)=>{q(...le),$()}}let U=M?new Array(t.length).fill(ba):ba;const H=q=>{if(!(!(d.flags&1)||!d.dirty&&!q))if(e){const le=d.run();if(r||P||(M?le.some((be,S)=>xs(be,U[S])):xs(le,U))){m&&m();const be=lr;lr=d;try{const S=[le,U===ba?void 0:M&&U[0]===ba?[]:U,v];U=le,l?l(e,3,S):e(...S)}finally{lr=be}}}else d.run()};return c&&c(H),d=new Dg(p),d.scheduler=o?()=>o(H,!1):H,v=q=>NE(q,!1,d),m=d.onStop=()=>{const q=tc.get(d);if(q){if(l)l(q,4);else for(const le of q)le();tc.delete(d)}},e?s?H(!0):U=d.run():o?o(H.bind(null,!0),!0):d.run(),$.pause=d.pause.bind(d),$.resume=d.resume.bind(d),$.stop=$,$}function Xn(t,e=1/0,n){if(e<=0||!Xe(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,it(t))Xn(t.value,e,n);else if(pe(t))for(let s=0;s<t.length;s++)Xn(t[s],e,n);else if(Eg(t)||Jr(t))t.forEach(s=>{Xn(s,e,n)});else if(Sg(t)){for(const s in t)Xn(t[s],e,n);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&Xn(t[s],e,n)}return t}/**
10* @vue/runtime-core v3.5.21
11* (c) 2018-present Yuxi (Evan) You and Vue contributors
12* @license MIT
13**/function zo(t,e,n,s){try{return s?t(...s):t()}catch(r){Fc(r,e,n)}}function Fn(t,e,n,s){if(_e(t)){const r=zo(t,e,n,s);return r&&Tg(r)&&r.catch(i=>{Fc(i,e,n)}),r}if(pe(t)){const r=[];for(let i=0;i<t.length;i++)r.push(Fn(t[i],e,n,s));return r}}function Fc(t,e,n,s=!0){const r=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||$e;if(e){let c=e.parent;const l=e.proxy,h=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const d=c.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](t,l,h)===!1)return}c=c.parent}if(i){os(),zo(i,null,10,[t,l,h]),as();return}}xE(t,n,r,s,o)}function xE(t,e,n,s=!0,r=!1){if(r)throw t;console.error(t)}const jt=[];let bn=-1;const Zr=[];let As=null,jr=0;const Qg=Promise.resolve();let nc=null;function Sh(t){const e=nc||Qg;return t?e.then(this?t.bind(this):t):e}function VE(t){let e=bn+1,n=jt.length;for(;e<n;){const s=e+n>>>1,r=jt[s],i=Io(r);i<t||i===t&&r.flags&2?e=s+1:n=s}return e}function Ah(t){if(!(t.flags&1)){const e=Io(t),n=jt[jt.length-1];!n||!(t.flags&2)&&e>=Io(n)?jt.push(t):jt.splice(VE(e),0,t),t.flags|=1,Jg()}}function Jg(){nc||(nc=Qg.then(Zg))}function LE(t){pe(t)?Zr.push(...t):As&&t.id===-1?As.splice(jr+1,0,t):t.flags&1||(Zr.push(t),t.flags|=1),Jg()}function Bf(t,e,n=bn+1){for(;n<jt.length;n++){const s=jt[n];if(s&&s.flags&2){if(t&&s.id!==t.uid)continue;jt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Xg(t){if(Zr.length){const e=[...new Set(Zr)].sort((n,s)=>Io(n)-Io(s));if(Zr.length=0,As){As.push(...e);return}for(As=e,jr=0;jr<As.length;jr++){const n=As[jr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}As=null,jr=0}}const Io=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Zg(t){try{for(bn=0;bn<jt.length;bn++){const e=jt[bn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),zo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;bn<jt.length;bn++){const e=jt[bn];e&&(e.flags&=-2)}bn=-1,jt.length=0,Xg(),nc=null,(jt.length||Zr.length)&&Zg()}}let Gt=null,e_=null;function sc(t){const e=Gt;return Gt=t,e_=t&&t.type.__scopeId||null,e}function t_(t,e=Gt,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&oc(-1);const i=sc(e);let o;try{o=t(...r)}finally{sc(i),s._d&&oc(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function n_(t,e){if(Gt===null)return t;const n=Bc(Gt),s=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[i,o,c,l=$e]=e[r];i&&(_e(i)&&(i={mounted:i,updated:i}),i.deep&&Xn(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:c,modifiers:l}))}return t}function or(t,e,n,s){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const c=r[o];i&&(c.oldValue=i[o].value);let l=c.dir[s];l&&(os(),Fn(l,n,8,[t.el,c,t,e]),as())}}const FE=Symbol("_vte"),UE=t=>t.__isTeleport,jE=Symbol("_leaveCb");function bh(t,e){t.shapeFlag&6&&t.component?(t.transition=e,bh(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 s_(t,e){return _e(t)?xt({name:t.name},e,{setup:t}):t}function r_(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const rc=new WeakMap;function ro(t,e,n,s,r=!1){if(pe(t)){t.forEach((P,M)=>ro(P,e&&(pe(e)?e[M]:e),n,s,r));return}if(io(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ro(t,e,n,s.component.subTree);return}const i=s.shapeFlag&4?Bc(s.component):s.el,o=r?null:i,{i:c,r:l}=t,h=e&&e.r,d=c.refs===$e?c.refs={}:c.refs,p=c.setupState,m=Ne(p),v=p===$e?wg:P=>Le(m,P);if(h!=null&&h!==l){if(Hf(e),lt(h))d[h]=null,v(h)&&(p[h]=null);else if(it(h)){h.value=null;const P=e;P.k&&(d[P.k]=null)}}if(_e(l))zo(l,c,12,[o,d]);else{const P=lt(l),M=it(l);if(P||M){const O=()=>{if(t.f){const $=P?v(l)?p[l]:d[l]:l.value;if(r)pe($)&&fh($,i);else if(pe($))$.includes(i)||$.push(i);else if(P)d[l]=[i],v(l)&&(p[l]=d[l]);else{const U=[i];l.value=U,t.k&&(d[t.k]=U)}}else P?(d[l]=o,v(l)&&(p[l]=o)):M&&(l.value=o,t.k&&(d[t.k]=o))};if(o){const $=()=>{O(),rc.delete(t)};$.id=-1,rc.set(t,$),qt($,n)}else Hf(t),O()}}}function Hf(t){const e=rc.get(t);e&&(e.flags|=8,rc.delete(t))}Vc().requestIdleCallback;Vc().cancelIdleCallback;const io=t=>!!t.type.__asyncLoader,i_=t=>t.type.__isKeepAlive;function $E(t,e){o_(t,"a",e)}function BE(t,e){o_(t,"da",e)}function o_(t,e,n=Nt){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Uc(e,s,n),n){let r=n.parent;for(;r&&r.parent;)i_(r.parent.vnode)&&HE(s,e,n,r),r=r.parent}}function HE(t,e,n,s){const r=Uc(e,t,s,!0);a_(()=>{fh(s[e],r)},n)}
vendor: 9,974 bytes, line 13
13function Uc(t,e,n=Nt,s=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{os();const c=qo(n),l=Fn(e,n,t,o);return c(),as(),l});return s?r.unshift(i):r.push(i),i}}const fs=t=>(e,n=Nt)=>{(!Ao||t==="sp")&&Uc(t,(...s)=>e(...s),n)},WE=fs("bm"),zE=fs("m"),YE=fs("bu"),qE=fs("u"),GE=fs("bum"),a_=fs("um"),KE=fs("sp"),QE=fs("rtg"),JE=fs("rtc");function XE(t,e=Nt){Uc("ec",t,e)}const ZE="components";function dt(t,e){return tT(ZE,t,!0,e)||t}const eT=Symbol.for("v-ndc");function tT(t,e,n=!0,s=!1){const r=Gt||Nt;if(r){const i=r.type;{const c=WT(i,!1);if(c&&(c===e||c===on(e)||c===xc(on(e))))return i}const o=Wf(r[t]||i[t],e)||Wf(r.appContext[t],e);return!o&&s?i:o}}function Wf(t,e){return t&&(t[e]||t[on(e)]||t[xc(on(e))])}function c_(t,e,n,s){let r;const i=n,o=pe(t);if(o||lt(t)){const c=o&&Vs(t);let l=!1,h=!1;c&&(l=!rn(t),h=zs(t),t=Lc(t)),r=new Array(t.length);for(let d=0,p=t.length;d<p;d++)r[d]=e(l?h?ec(Et(t[d])):Et(t[d]):t[d],d,void 0,i)}else if(typeof t=="number"){r=new Array(t);for(let c=0;c<t;c++)r[c]=e(c+1,c,void 0,i)}else if(Xe(t))if(t[Symbol.iterator])r=Array.from(t,(c,l)=>e(c,l,void 0,i));else{const c=Object.keys(t);r=new Array(c.length);for(let l=0,h=c.length;l<h;l++){const d=c[l];r[l]=e(t[d],d,l,i)}}else r=[];return r}const vu=t=>t?P_(t)?Bc(t):vu(t.parent):null,oo=xt(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=>vu(t.parent),$root:t=>vu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>u_(t),$forceUpdate:t=>t.f||(t.f=()=>{Ah(t.update)}),$nextTick:t=>t.n||(t.n=Sh.bind(t.proxy)),$watch:t=>IT.bind(t)}),Wl=(t,e)=>t!==$e&&!t.__isScriptSetup&&Le(t,e),nT={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:c,appContext:l}=t;let h;if(e[0]!=="$"){const v=o[e];if(v!==void 0)switch(v){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(Wl(s,e))return o[e]=1,s[e];if(r!==$e&&Le(r,e))return o[e]=2,r[e];if((h=t.propsOptions[0])&&Le(h,e))return o[e]=3,i[e];if(n!==$e&&Le(n,e))return o[e]=4,n[e];wu&&(o[e]=0)}}const d=oo[e];let p,m;if(d)return e==="$attrs"&&Mt(t.attrs,"get",""),d(t);if((p=c.__cssModules)&&(p=p[e]))return p;if(n!==$e&&Le(n,e))return o[e]=4,n[e];if(m=l.config.globalProperties,Le(m,e))return m[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:i}=t;return Wl(r,e)?(r[e]=n,!0):s!==$e&&Le(s,e)?(s[e]=n,!0):Le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,propsOptions:i,type:o}},c){let l,h;return!!(n[c]||t!==$e&&c[0]!=="$"&&Le(t,c)||Wl(e,c)||(l=i[0])&&Le(l,c)||Le(s,c)||Le(oo,c)||Le(r.config.globalProperties,c)||(h=o.__cssModules)&&h[c])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Le(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function zf(t){return pe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let wu=!0;function sT(t){const e=u_(t),n=t.proxy,s=t.ctx;wu=!1,e.beforeCreate&&Yf(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:c,provide:l,inject:h,created:d,beforeMount:p,mounted:m,beforeUpdate:v,updated:P,activated:M,deactivated:O,beforeDestroy:$,beforeUnmount:U,destroyed:H,unmounted:q,render:le,renderTracked:be,renderTriggered:S,errorCaptured:_,serverPrefetch:y,expose:I,inheritAttrs:A,components:b,directives:E,filters:mt}=e;if(h&&rT(h,s,null),o)for(const fe in o){const Ee=o[fe];_e(Ee)&&(s[fe]=Ee.bind(n))}if(r){const fe=r.call(n,n);Xe(fe)&&(t.data=Wo(fe))}if(wu=!0,i)for(const fe in i){const Ee=i[fe],zt=_e(Ee)?Ee.bind(n,n):_e(Ee.get)?Ee.get.bind(n,n):Mn,ln=!_e(Ee)&&_e(Ee.set)?Ee.set.bind(n):Mn,Jt=tn({get:zt,set:ln});Object.defineProperty(s,fe,{enumerable:!0,configurable:!0,get:()=>Jt.value,set:Ze=>Jt.value=Ze})}if(c)for(const fe in c)l_(c[fe],s,n,fe);if(l){const fe=_e(l)?l.call(n):l;Reflect.ownKeys(fe).forEach(Ee=>{Va(Ee,fe[Ee])})}d&&Yf(d,t,"c");function Be(fe,Ee){pe(Ee)?Ee.forEach(zt=>fe(zt.bind(n))):Ee&&fe(Ee.bind(n))}if(Be(WE,p),Be(zE,m),Be(YE,v),Be(qE,P),Be($E,M),Be(BE,O),Be(XE,_),Be(JE,be),Be(QE,S),Be(GE,U),Be(a_,q),Be(KE,y),pe(I))if(I.length){const fe=t.exposed||(t.exposed={});I.forEach(Ee=>{Object.defineProperty(fe,Ee,{get:()=>n[Ee],set:zt=>n[Ee]=zt,enumerable:!0})})}else t.exposed||(t.exposed={});le&&t.render===Mn&&(t.render=le),A!=null&&(t.inheritAttrs=A),b&&(t.components=b),E&&(t.directives=E),y&&r_(t)}function rT(t,e,n=Mn){pe(t)&&(t=Eu(t));for(const s in t){const r=t[s];let i;Xe(r)?"default"in r?i=_n(r.from||s,r.default,!0):i=_n(r.from||s):i=_n(r),it(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function Yf(t,e,n){Fn(pe(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function l_(t,e,n,s){let r=s.includes(".")?I_(n,s):()=>n[s];if(lt(t)){const i=e[t];_e(i)&&ao(r,i)}else if(_e(t))ao(r,t.bind(n));else if(Xe(t))if(pe(t))t.forEach(i=>l_(i,e,n,s));else{const i=_e(t.handler)?t.handler.bind(n):e[t.handler];_e(i)&&ao(r,i,t)}}function u_(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,c=i.get(e);let l;return c?l=c:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(h=>ic(l,h,o,!0)),ic(l,e,o)),Xe(e)&&i.set(e,l),l}function ic(t,e,n,s=!1){const{mixins:r,extends:i}=e;i&&ic(t,i,n,!0),r&&r.forEach(o=>ic(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const c=iT[o]||n&&n[o];t[o]=c?c(t[o],e[o]):e[o]}return t}const iT={data:qf,props:Gf,emits:Gf,methods:Gi,computed:Gi,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:Gi,directives:Gi,watch:aT,provide:qf,inject:oT};function qf(t,e){return e?t?function(){return xt(_e(t)?t.call(this,this):t,_e(e)?e.call(this,this):e)}:e:t}function oT(t,e){return Gi(Eu(t),Eu(e))}function Eu(t){if(pe(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ut(t,e){return t?[...new Set([].concat(t,e))]:e}function Gi(t,e){return t?xt(Object.create(null),t,e):e}function Gf(t,e){return t?pe(t)&&pe(e)?[...new Set([...t,...e])]:xt(Object.create(null),zf(t),zf(e??{})):e}function aT(t,e){if(!t)return e;if(!e)return t;const n=xt(Object.create(null),t);for(const s in e)n[s]=Ut(t[s],e[s]);return n}function h_(){return{app:null,config:{isNativeTag:wg,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 cT=0;function lT(t,e){return function(s,r=null){_e(s)||(s=xt({},s)),r!=null&&!Xe(r)&&(r=null);const i=h_(),o=new WeakSet,c=[];let l=!1;const h=i.app={_uid:cT++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:YT,get config(){return i.config},set config(d){},use(d,...p){return o.has(d)||(d&&_e(d.install)?(o.add(d),d.install(h,...p)):_e(d)&&(o.add(d),d(h,...p))),h},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),h},component(d,p){return p?(i.components[d]=p,h):i.components[d]},directive(d,p){return p?(i.directives[d]=p,h):i.directives[d]},mount(d,p,m){if(!l){const v=h._ceVNode||ze(s,r);return v.appContext=i,m===!0?m="svg":m===!1&&(m=void 0),t(v,d,m),l=!0,h._container=d,d.__vue_app__=h,Bc(v.component)}},onUnmount(d){c.push(d)},unmount(){l&&(Fn(c,h._instance,16),t(null,h._container),delete h._container.__vue_app__)},provide(d,p){return i.provides[d]=p,h},runWithContext(d){const p=mr;mr=h;try{return d()}finally{mr=p}}};return h}}let mr=null;function Va(t,e){if(Nt){let n=Nt.provides;const s=Nt.parent&&Nt.parent.provides;s===n&&(n=Nt.provides=Object.create(s)),n[t]=e}}function _n(t,e,n=!1){const s=C_();if(s||mr){let r=mr?mr._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&_e(e)?e.call(s&&s.proxy):e}}function uT(){return!!(C_()||mr)}const d_={},f_=()=>Object.create(d_),p_=t=>Object.getPrototypeOf(t)===d_;function hT(t,e,n,s=!1){const r={},i=f_();t.propsDefaults=Object.create(null),m_(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=s?r:Yg(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function dT(t,e,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,c=Ne(r),[l]=t.propsOptions;let h=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let p=0;p<d.length;p++){let m=d[p];if(jc(t.emitsOptions,m))continue;const v=e[m];if(l)if(Le(i,m))v!==i[m]&&(i[m]=v,h=!0);else{const P=on(m);r[P]=Tu(l,c,P,v,t,!1)}else v!==i[m]&&(i[m]=v,h=!0)}}}else{m_(t,e,r,i)&&(h=!0);let d;for(const p in c)(!e||!Le(e,p)&&((d=Ar(p))===p||!Le(e,d)))&&(l?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Tu(l,c,p,void 0,t,!0)):delete r[p]);if(i!==c)for(const p in i)(!e||!Le(e,p))&&(delete i[p],h=!0)}h&&Jn(t.attrs,"set","")}function m_(t,e,n,s){const[r,i]=t.propsOptions;let o=!1,c;if(e)for(let l in e){if(to(l))continue;const h=e[l];let d;r&&Le(r,d=on(l))?!i||!i.includes(d)?n[d]=h:(c||(c={}))[d]=h:jc(t.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,o=!0)}if(i){const l=Ne(n),h=c||$e;for(let d=0;d<i.length;d++){const p=i[d];n[p]=Tu(r,l,p,h[p],t,!Le(h,p))}}return o}function Tu(t,e,n,s,r,i){const o=t[n];if(o!=null){const c=Le(o,"default");if(c&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&_e(l)){const{propsDefaults:h}=r;if(n in h)s=h[n];else{const d=qo(r);s=h[n]=l.call(null,e),d()}}else s=l;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!c?s=!1:o[1]&&(s===""||s===Ar(n))&&(s=!0))}return s}const fT=new WeakMap;function g_(t,e,n=!1){const s=n?fT:e.propsCache,r=s.get(t);if(r)return r;const i=t.props,o={},c=[];let l=!1;if(!_e(t)){const d=p=>{l=!0;const[m,v]=g_(p,e,!0);xt(o,m),v&&c.push(...v)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!i&&!l)return Xe(t)&&s.set(t,Qr),Qr;if(pe(i))for(let d=0;d<i.length;
vendor: 6,550 bytes, line 13
13d++){const p=on(i[d]);Kf(p)&&(o[p]=$e)}else if(i)for(const d in i){const p=on(d);if(Kf(p)){const m=i[d],v=o[p]=pe(m)||_e(m)?{type:m}:xt({},m),P=v.type;let M=!1,O=!0;if(pe(P))for(let $=0;$<P.length;++$){const U=P[$],H=_e(U)&&U.name;if(H==="Boolean"){M=!0;break}else H==="String"&&(O=!1)}else M=_e(P)&&P.name==="Boolean";v[0]=M,v[1]=O,(M||Le(v,"default"))&&c.push(p)}}const h=[o,c];return Xe(t)&&s.set(t,h),h}function Kf(t){return t[0]!=="$"&&!to(t)}const Rh=t=>t==="_"||t==="_ctx"||t==="$stable",Ch=t=>pe(t)?t.map(Cn):[Cn(t)],pT=(t,e,n)=>{if(e._n)return e;const s=t_((...r)=>Ch(e(...r)),n);return s._c=!1,s},__=(t,e,n)=>{const s=t._ctx;for(const r in t){if(Rh(r))continue;const i=t[r];if(_e(i))e[r]=pT(r,i,s);else if(i!=null){const o=Ch(i);e[r]=()=>o}}},y_=(t,e)=>{const n=Ch(e);t.slots.default=()=>n},v_=(t,e,n)=>{for(const s in e)(n||!Rh(s))&&(t[s]=e[s])},mT=(t,e,n)=>{const s=t.slots=f_();if(t.vnode.shapeFlag&32){const r=e._;r?(v_(s,e,n),n&&Ag(s,"_",r,!0)):__(e,s)}else e&&y_(t,e)},gT=(t,e,n)=>{const{vnode:s,slots:r}=t;let i=!0,o=$e;if(s.shapeFlag&32){const c=e._;c?n&&c===1?i=!1:v_(r,e,n):(i=!e.$stable,__(e,r)),o=e}else e&&(y_(t,e),o={default:1});if(i)for(const c in r)!Rh(c)&&o[c]==null&&delete r[c]},qt=MT;function _T(t){return yT(t)}function yT(t,e){const n=Vc();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:c,createComment:l,setText:h,setElementText:d,parentNode:p,nextSibling:m,setScopeId:v=Mn,insertStaticContent:P}=t,M=(w,T,R,N=null,F=null,x=null,G=void 0,z=null,W=!!T.dynamicChildren)=>{if(w===T)return;w&&!Wi(w,T)&&(N=D(w),Ze(w,F,x,!0),w=null),T.patchFlag===-2&&(W=!1,T.dynamicChildren=null);const{type:j,ref:ae,shapeFlag:Q}=T;switch(j){case $c:O(w,T,R,N);break;case Ys:$(w,T,R,N);break;case La:w==null&&U(T,R,N,G);break;case Tt:b(w,T,R,N,F,x,G,z,W);break;default:Q&1?le(w,T,R,N,F,x,G,z,W):Q&6?E(w,T,R,N,F,x,G,z,W):(Q&64||Q&128)&&j.process(w,T,R,N,F,x,G,z,W,ne)}ae!=null&&F?ro(ae,w&&w.ref,x,T||w,!T):ae==null&&w&&w.ref!=null&&ro(w.ref,null,x,w,!0)},O=(w,T,R,N)=>{if(w==null)s(T.el=c(T.children),R,N);else{const F=T.el=w.el;T.children!==w.children&&h(F,T.children)}},$=(w,T,R,N)=>{w==null?s(T.el=l(T.children||""),R,N):T.el=w.el},U=(w,T,R,N)=>{[w.el,w.anchor]=P(w.children,T,R,N,w.el,w.anchor)},H=({el:w,anchor:T},R,N)=>{let F;for(;w&&w!==T;)F=m(w),s(w,R,N),w=F;s(T,R,N)},q=({el:w,anchor:T})=>{let R;for(;w&&w!==T;)R=m(w),r(w),w=R;r(T)},le=(w,T,R,N,F,x,G,z,W)=>{T.type==="svg"?G="svg":T.type==="math"&&(G="mathml"),w==null?be(T,R,N,F,x,G,z,W):y(w,T,F,x,G,z,W)},be=(w,T,R,N,F,x,G,z)=>{let W,j;const{props:ae,shapeFlag:Q,transition:se,dirs:de}=w;if(W=w.el=o(w.type,x,ae&&ae.is,ae),Q&8?d(W,w.children):Q&16&&_(w.children,W,null,N,F,zl(w,x),G,z),de&&or(w,null,N,"created"),S(W,w,w.scopeId,G,N),ae){for(const ye in ae)ye!=="value"&&!to(ye)&&i(W,ye,null,ae[ye],x,N);"value"in ae&&i(W,"value",null,ae.value,x),(j=ae.onVnodeBeforeMount)&&An(j,N,w)}de&&or(w,null,N,"beforeMount");const ce=vT(F,se);ce&&se.beforeEnter(W),s(W,T,R),((j=ae&&ae.onVnodeMounted)||ce||de)&&qt(()=>{j&&An(j,N,w),ce&&se.enter(W),de&&or(w,null,N,"mounted")},F)},S=(w,T,R,N,F)=>{if(R&&v(w,R),N)for(let x=0;x<N.length;x++)v(w,N[x]);if(F){let x=F.subTree;if(T===x||A_(x.type)&&(x.ssContent===T||x.ssFallback===T)){const G=F.vnode;S(w,G,G.scopeId,G.slotScopeIds,F.parent)}}},_=(w,T,R,N,F,x,G,z,W=0)=>{for(let j=W;j<w.length;j++){const ae=w[j]=z?bs(w[j]):Cn(w[j]);M(null,ae,T,R,N,F,x,G,z)}},y=(w,T,R,N,F,x,G)=>{const z=T.el=w.el;let{patchFlag:W,dynamicChildren:j,dirs:ae}=T;W|=w.patchFlag&16;const Q=w.props||$e,se=T.props||$e;let de;if(R&&ar(R,!1),(de=se.onVnodeBeforeUpdate)&&An(de,R,T,w),ae&&or(T,w,R,"beforeUpdate"),R&&ar(R,!0),(Q.innerHTML&&se.innerHTML==null||Q.textContent&&se.textContent==null)&&d(z,""),j?I(w.dynamicChildren,j,z,R,N,zl(T,F),x):G||Ee(w,T,z,null,R,N,zl(T,F),x,!1),W>0){if(W&16)A(z,Q,se,R,F);else if(W&2&&Q.class!==se.class&&i(z,"class",null,se.class,F),W&4&&i(z,"style",Q.style,se.style,F),W&8){const ce=T.dynamicProps;for(let ye=0;ye<ce.length;ye++){const Re=ce[ye],gt=Q[Re],_t=se[Re];(_t!==gt||Re==="value")&&i(z,Re,gt,_t,F,R)}}W&1&&w.children!==T.children&&d(z,T.children)}else!G&&j==null&&A(z,Q,se,R,F);((de=se.onVnodeUpdated)||ae)&&qt(()=>{de&&An(de,R,T,w),ae&&or(T,w,R,"updated")},N)},I=(w,T,R,N,F,x,G)=>{for(let z=0;z<T.length;z++){const W=w[z],j=T[z],ae=W.el&&(W.type===Tt||!Wi(W,j)||W.shapeFlag&198)?p(W.el):R;M(W,j,ae,null,N,F,x,G,!0)}},A=(w,T,R,N,F)=>{if(T!==R){if(T!==$e)for(const x in T)!to(x)&&!(x in R)&&i(w,x,T[x],null,F,N);for(const x in R){if(to(x))continue;const G=R[x],z=T[x];G!==z&&x!=="value"&&i(w,x,z,G,F,N)}"value"in R&&i(w,"value",T.value,R.value,F)}},b=(w,T,R,N,F,x,G,z,W)=>{const j=T.el=w?w.el:c(""),ae=T.anchor=w?w.anchor:c("");let{patchFlag:Q,dynamicChildren:se,slotScopeIds:de}=T;de&&(z=z?z.concat(de):de),w==null?(s(j,R,N),s(ae,R,N),_(T.children||[],R,ae,F,x,G,z,W)):Q>0&&Q&64&&se&&w.dynamicChildren?(I(w.dynamicChildren,se,R,F,x,G,z),(T.key!=null||F&&T===F.subTree)&&w_(w,T,!0)):Ee(w,T,R,ae,F,x,G,z,W)},E=(w,T,R,N,F,x,G,z,W)=>{T.slotScopeIds=z,w==null?T.shapeFlag&512?F.ctx.activate(T,R,N,G,W):mt(T,R,N,F,x,G,W):$t(w,T,W)},mt=(w,T,R,N,F,x,G)=>{const z=w.component=UT(w,N,F);if(i_(w)&&(z.ctx.renderer=ne),jT(z,!1,G),z.asyncDep){if(F&&F.registerDep(z,Be,G),!w.el){const W=z.subTree=ze(Ys);$(null,W,T,R),w.placeholder=W.el}}else Be(z,w,T,R,F,x,G)},$t=(w,T,R)=>{const N=T.component=w.component;if(PT(w,T,R))if(N.asyncDep&&!N.asyncResolved){fe(N,T,R);return}else N.next=T,N.update();else T.el=w.el,N.vnode=T},Be=(w,T,R,N,F,x,G)=>{const z=()=>{if(w.isMounted){let{next:Q,bu:se,u:de,parent:ce,vnode:ye}=w;{const At=E_(w);if(At){Q&&(Q.el=ye.el,fe(w,Q,G)),At.asyncDep.then(()=>{w.isUnmounted||z()});return}}let Re=Q,gt;ar(w,!1),Q?(Q.el=ye.el,fe(w,Q,G)):Q=ye,se&&xa(se),(gt=Q.props&&Q.props.onVnodeBeforeUpdate)&&An(gt,ce,Q,ye),ar(w,!0);const _t=Jf(w),Xt=w.subTree;w.subTree=_t,M(Xt,_t,p(Xt.el),D(Xt),w,F,x),Q.el=_t.el,Re===null&&kT(w,_t.el),de&&qt(de,F),(gt=Q.props&&Q.props.onVnodeUpdated)&&qt(()=>An(gt,ce,Q,ye),F)}else{let Q;const{el:se,props:de}=T,{bm:ce,m:ye,parent:Re,root:gt,type:_t}=w,Xt=io(T);ar(w,!1),ce&&xa(ce),!Xt&&(Q=de&&de.onVnodeBeforeMount)&&An(Q,Re,T),ar(w,!0);{gt.ce&&gt.ce._def.shadowRoot!==!1&&gt.ce._injectChildStyle(_t);const At=w.subTree=Jf(w);M(null,At,R,N,w,F,x),T.el=At.el}if(ye&&qt(ye,F),!Xt&&(Q=de&&de.onVnodeMounted)){const At=T;qt(()=>An(Q,Re,At),F)}(T.shapeFlag&256||Re&&io(Re.vnode)&&Re.vnode.shapeFlag&256)&&w.a&&qt(w.a,F),w.isMounted=!0,T=R=N=null}};w.scope.on();const W=w.effect=new Dg(z);w.scope.off();const j=w.update=W.run.bind(W),ae=w.job=W.runIfDirty.bind(W);
vendor: 2,472 bytes, line 13
13ae.i=w,ae.id=w.uid,W.scheduler=()=>Ah(ae),ar(w,!0),j()},fe=(w,T,R)=>{T.component=w;const N=w.vnode.props;w.vnode=T,w.next=null,dT(w,T.props,N,R),gT(w,T.children,R),os(),Bf(w),as()},Ee=(w,T,R,N,F,x,G,z,W=!1)=>{const j=w&&w.children,ae=w?w.shapeFlag:0,Q=T.children,{patchFlag:se,shapeFlag:de}=T;if(se>0){if(se&128){ln(j,Q,R,N,F,x,G,z,W);return}else if(se&256){zt(j,Q,R,N,F,x,G,z,W);return}}de&8?(ae&16&&Bt(j,F,x),Q!==j&&d(R,Q)):ae&16?de&16?ln(j,Q,R,N,F,x,G,z,W):Bt(j,F,x,!0):(ae&8&&d(R,""),de&16&&_(Q,R,N,F,x,G,z,W))},zt=(w,T,R,N,F,x,G,z,W)=>{w=w||Qr,T=T||Qr;const j=w.length,ae=T.length,Q=Math.min(j,ae);let se;for(se=0;se<Q;se++){const de=T[se]=W?bs(T[se]):Cn(T[se]);M(w[se],de,R,null,F,x,G,z,W)}j>ae?Bt(w,F,x,!0,!1,Q):_(T,R,N,F,x,G,z,W,Q)},ln=(w,T,R,N,F,x,G,z,W)=>{let j=0;const ae=T.length;let Q=w.length-1,se=ae-1;for(;j<=Q&&j<=se;){const de=w[j],ce=T[j]=W?bs(T[j]):Cn(T[j]);if(Wi(de,ce))M(de,ce,R,null,F,x,G,z,W);else break;j++}for(;j<=Q&&j<=se;){const de=w[Q],ce=T[se]=W?bs(T[se]):Cn(T[se]);if(Wi(de,ce))M(de,ce,R,null,F,x,G,z,W);else break;Q--,se--}if(j>Q){if(j<=se){const de=se+1,ce=de<ae?T[de].el:N;for(;j<=se;)M(null,T[j]=W?bs(T[j]):Cn(T[j]),R,ce,F,x,G,z,W),j++}}else if(j>se)for(;j<=Q;)Ze(w[j],F,x,!0),j++;else{const de=j,ce=j,ye=new Map;for(j=ce;j<=se;j++){const yt=T[j]=W?bs(T[j]):Cn(T[j]);yt.key!=null&&ye.set(yt.key,j)}let Re,gt=0;const _t=se-ce+1;let Xt=!1,At=0;const ys=new Array(_t);for(j=0;j<_t;j++)ys[j]=0;for(j=de;j<=Q;j++){const yt=w[j];if(gt>=_t){Ze(yt,F,x,!0);continue}let Zt;if(yt.key!=null)Zt=ye.get(yt.key);else for(Re=ce;Re<=se;Re++)if(ys[Re-ce]===0&&Wi(yt,T[Re])){Zt=Re;break}Zt===void 0?Ze(yt,F,x,!0):(ys[Zt-ce]=j+1,Zt>=At?At=Zt:Xt=!0,M(yt,T[Zt],R,null,F,x,G,z,W),gt++)}const ki=Xt?wT(ys):Qr;for(Re=ki.length-1,j=_t-1;j>=0;j--){const yt=ce+j,Zt=T[yt],ca=T[yt+1],Dr=yt+1<ae?ca.el||ca.placeholder:N;ys[j]===0?M(null,Zt,R,Dr,F,x,G,z,W):Xt&&(Re<0||j!==ki[Re]?Jt(Zt,R,Dr,2):Re--)}}},Jt=(w,T,R,N,F=null)=>{const{el:x,type:G,transition:z,children:W,shapeFlag:j}=w;if(j&6){Jt(w.component.subTree,T,R,N);return}if(j&128){w.suspense.move(T,R,N);return}if(j&64){G.move(w,T,R,ne);return}if(G===Tt){s(x,T,R);for(let Q=0;Q<W.length;Q++)Jt(W[Q],T,R,N);s(w.anchor,T,R);return}if(G===La){H(w,T,R);return}if(N!==2&&j&1&&z)if(N===0)z.beforeEnter(x),s(x,T,R),qt(()=>z.enter(x),F);else{const{leave:Q,delayLeave:se,afterLeave:de}=z,ce=()=>{w.ctx.isUnmounted?r(x):s(x,T,R)},ye=()=>{x._isLeaving&&x[jE](!0),Q(x,()=>{ce(),de&&de()})};se?se(x,ce,ye):ye()}else s(x,T,R)}
vendor: 7,665 bytes, line 13
13,Ze=(w,T,R,N=!1,F=!1)=>{const{type:x,props:G,ref:z,children:W,dynamicChildren:j,shapeFlag:ae,patchFlag:Q,dirs:se,cacheIndex:de}=w;if(Q===-2&&(F=!1),z!=null&&(os(),ro(z,null,R,w,!0),as()),de!=null&&(T.renderCache[de]=void 0),ae&256){T.ctx.deactivate(w);return}const ce=ae&1&&se,ye=!io(w);let Re;if(ye&&(Re=G&&G.onVnodeBeforeUnmount)&&An(Re,T,w),ae&6)Sn(w.component,R,N);else{if(ae&128){w.suspense.unmount(R,N);return}ce&&or(w,null,T,"beforeUnmount"),ae&64?w.type.remove(w,T,R,ne,N):j&&!j.hasOnce&&(x!==Tt||Q>0&&Q&64)?Bt(j,T,R,!1,!0):(x===Tt&&Q&384||!F&&ae&16)&&Bt(W,T,R),N&&et(w)}(ye&&(Re=G&&G.onVnodeUnmounted)||ce)&&qt(()=>{Re&&An(Re,T,w),ce&&or(w,null,T,"unmounted")},R)},et=w=>{const{type:T,el:R,anchor:N,transition:F}=w;if(T===Tt){_s(R,N);return}if(T===La){q(w);return}const x=()=>{r(R),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(w.shapeFlag&1&&F&&!F.persisted){const{leave:G,delayLeave:z}=F,W=()=>G(R,x);z?z(w.el,x,W):W()}else x()},_s=(w,T)=>{let R;for(;w!==T;)R=m(w),r(w),w=R;r(T)},Sn=(w,T,R)=>{const{bum:N,scope:F,job:x,subTree:G,um:z,m:W,a:j}=w;Qf(W),Qf(j),N&&xa(N),F.stop(),x&&(x.flags|=8,Ze(G,w,T,R)),z&&qt(z,T),qt(()=>{w.isUnmounted=!0},T)},Bt=(w,T,R,N=!1,F=!1,x=0)=>{for(let G=x;G<w.length;G++)Ze(w[G],T,R,N,F)},D=w=>{if(w.shapeFlag&6)return D(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const T=m(w.anchor||w.el),R=T&&T[FE];return R?m(R):T};let Z=!1;const K=(w,T,R)=>{w==null?T._vnode&&Ze(T._vnode,null,null,!0):M(T._vnode||null,w,T,null,null,null,R),T._vnode=w,Z||(Z=!0,Bf(),Xg(),Z=!1)},ne={p:M,um:Ze,m:Jt,r:et,mt,mc:_,pc:Ee,pbc:I,n:D,o:t};return{render:K,hydrate:void 0,createApp:lT(K)}}function zl({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 ar({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function vT(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function w_(t,e,n=!1){const s=t.children,r=e.children;if(pe(s)&&pe(r))for(let i=0;i<s.length;i++){const o=s[i];let c=r[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=r[i]=bs(r[i]),c.el=o.el),!n&&c.patchFlag!==-2&&w_(o,c)),c.type===$c&&c.patchFlag!==-1&&(c.el=o.el),c.type===Ys&&!c.el&&(c.el=o.el)}}function wT(t){const e=t.slice(),n=[0];let s,r,i,o,c;const l=t.length;for(s=0;s<l;s++){const h=t[s];if(h!==0){if(r=n[n.length-1],t[r]<h){e[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)c=i+o>>1,t[n[c]]<h?i=c+1:o=c;h<t[n[i]]&&(i>0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function E_(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:E_(e)}function Qf(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const ET=Symbol.for("v-scx"),TT=()=>_n(ET);function T_(t,e){return Ph(t,null,e)}function ao(t,e,n){return Ph(t,e,n)}function Ph(t,e,n=$e){const{immediate:s,deep:r,flush:i,once:o}=n,c=xt({},n),l=e&&s||!e&&i!=="post";let h;if(Ao){if(i==="sync"){const v=TT();h=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Mn,v.resume=Mn,v.pause=Mn,v}}const d=Nt;c.call=(v,P,M)=>Fn(v,d,P,M);let p=!1;i==="post"?c.scheduler=v=>{qt(v,d&&d.suspense)}:i!=="sync"&&(p=!0,c.scheduler=(v,P)=>{P?v():Ah(v)}),c.augmentJob=v=>{e&&(v.flags|=4),p&&(v.flags|=2,d&&(v.id=d.uid,v.i=d))};const m=OE(t,e,c);return Ao&&(h?h.push(m):l&&m()),m}function IT(t,e,n){const s=this.proxy,r=lt(t)?t.includes(".")?I_(s,t):()=>s[t]:t.bind(s,s);let i;_e(e)?i=e:(i=e.handler,n=e);const o=qo(this),c=Ph(r,i.bind(s),n);return o(),c}function I_(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const ST=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${on(e)}Modifiers`]||t[`${Ar(e)}Modifiers`];function AT(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||$e;let r=n;const i=e.startsWith("update:"),o=i&&ST(s,e.slice(7));o&&(o.trim&&(r=n.map(d=>lt(d)?d.trim():d)),o.number&&(r=n.map(mu)));let c,l=s[c=Ul(e)]||s[c=Ul(on(e))];!l&&i&&(l=s[c=Ul(Ar(e))]),l&&Fn(l,t,6,r);const h=s[c+"Once"];if(h){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Fn(h,t,6,r)}}const bT=new WeakMap;function S_(t,e,n=!1){const s=n?bT:e.emitsCache,r=s.get(t);if(r!==void 0)return r;const i=t.emits;let o={},c=!1;if(!_e(t)){const l=h=>{const d=S_(h,e,!0);d&&(c=!0,xt(o,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!c?(Xe(t)&&s.set(t,null),null):(pe(i)?i.forEach(l=>o[l]=null):xt(o,i),Xe(t)&&s.set(t,o),o)}function jc(t,e){return!t||!Dc(e)?!1:(e=e.slice(2).replace(/Once$/,""),Le(t,e[0].toLowerCase()+e.slice(1))||Le(t,Ar(e))||Le(t,e))}function Jf(t){const{type:e,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:c,emit:l,render:h,renderCache:d,props:p,data:m,setupState:v,ctx:P,inheritAttrs:M}=t,O=sc(t);let $,U;try{if(n.shapeFlag&4){const q=r||s,le=q;$=Cn(h.call(le,q,d,p,v,m,P)),U=c}else{const q=e;$=Cn(q.length>1?q(p,{attrs:c,slots:o,emit:l}):q(p,null)),U=e.props?c:RT(c)}}catch(q){co.length=0,Fc(q,t,1),$=ze(Ys)}let H=$;if(U&&M!==!1){const q=Object.keys(U),{shapeFlag:le}=H;q.length&&le&7&&(i&&q.some(dh)&&(U=CT(U,i)),H=ai(H,U,!1,!0))}return n.dirs&&(H=ai(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&bh(H,n.transition),$=H,sc(O),$}const RT=t=>{let e;for(const n in t)(n==="class"||n==="style"||Dc(n))&&((e||(e={}))[n]=t[n]);return e},CT=(t,e)=>{const n={};for(const s in t)(!dh(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function PT(t,e,n){const{props:s,children:r,component:i}=t,{props:o,children:c,patchFlag:l}=e,h=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Xf(s,o,h):!!o;if(l&8){const d=e.dynamicProps;for(let p=0;p<d.length;p++){const m=d[p];if(o[m]!==s[m]&&!jc(h,m))return!0}}}else return(r||c)&&(!c||!c.$stable)?!0:s===o?!1:s?o?Xf(s,o,h):!0:!!o;return!1}function Xf(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(e[i]!==t[i]&&!jc(n,i))return!0}return!1}function kT({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const A_=t=>t.__isSuspense;function MT(t,e){e&&e.pendingBranch?pe(t)?e.effects.push(...t):e.effects.push(t):LE(t)}const Tt=Symbol.for("v-fgt"),$c=Symbol.for("v-txt"),Ys=Symbol.for("v-cmt"),La=Symbol.for("v-stc"),co=[];let Kt=null;function we(t=!1){co.push(Kt=t?null:[])}function DT(){co.pop(),Kt=co[co.length-1]||null}let So=1;function oc(t,e=!1){So+=t,t<0&&Kt&&e&&(Kt.hasOnce=!0)}function b_(t){return t.dynamicChildren=So>0?Kt||Qr:null,DT(),So>0&&Kt&&Kt.push(t),t}function ke(t,e,n,s,r,i){return b_(oe(t,e,n,s,r,i,!0))}function Yo(t,e,n,s,r){return b_(ze(t,e,n,s,r,!0))}function ac(t){return t?t.__v_isVNode===!0:!1}function Wi(t,e){return t.type===e.type&&t.key===e.key}const R_=({key:t})=>t??null,Fa=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?lt(t)||it(t)||_e(t)?{i:Gt,r:t,k:e,f:!!n}:t:null);function oe(t,e=null,n=null,s=0,r=null,i=t===Tt?0:1,o=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&R_(e),ref:e&&Fa(e),scopeId:e_,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Gt};return c?(kh(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=lt(n)?8:16),So>0&&!o&&Kt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Kt.push(l),l}const ze=NT;
vendor: 4,051 bytes, line 13
13function NT(t,e=null,n=null,s=0,r=null,i=!1){if((!t||t===eT)&&(t=Ys),ac(t)){const c=ai(t,e,!0);return n&&kh(c,n),So>0&&!i&&Kt&&(c.shapeFlag&6?Kt[Kt.indexOf(t)]=c:Kt.push(c)),c.patchFlag=-2,c}if(zT(t)&&(t=t.__vccOpts),e){e=OT(e);let{class:c,style:l}=e;c&&!lt(c)&&(e.class=wo(c)),Xe(l)&&(Th(l)&&!pe(l)&&(l=xt({},l)),e.style=mh(l))}const o=lt(t)?1:A_(t)?128:UE(t)?64:Xe(t)?4:_e(t)?2:0;return oe(t,e,n,s,r,o,i,!0)}function OT(t){return t?Th(t)||p_(t)?xt({},t):t:null}function ai(t,e,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:c,transition:l}=t,h=e?VT(r||{},e):r,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&R_(h),ref:e&&e.ref?n&&i?pe(i)?i.concat(Fa(e)):[i,Fa(e)]:Fa(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Tt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ai(t.ssContent),ssFallback:t.ssFallback&&ai(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&bh(d,l.clone(d)),d}function xT(t=" ",e=0){return ze($c,null,t,e)}function $n(t,e){const n=ze(La,null,t);return n.staticCount=e,n}function Iu(t="",e=!1){return e?(we(),Yo(Ys,null,t)):ze(Ys,null,t)}function Cn(t){return t==null||typeof t=="boolean"?ze(Ys):pe(t)?ze(Tt,null,t.slice()):ac(t)?bs(t):ze($c,null,String(t))}function bs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ai(t)}function kh(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(pe(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),kh(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!p_(e)?e._ctx=Gt:r===3&&Gt&&(Gt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else _e(e)?(e={default:e,_ctx:Gt},n=32):(e=String(e),s&64?(n=16,e=[xT(e)]):n=8);t.children=e,t.shapeFlag|=n}function VT(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=wo([e.class,s.class]));else if(r==="style")e.style=mh([e.style,s.style]);else if(Dc(r)){const i=e[r],o=s[r];o&&i!==o&&!(pe(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=s[r])}return e}function An(t,e,n,s=null){Fn(t,e,7,[n,s])}const LT=h_();let FT=0;function UT(t,e,n){const s=t.type,r=(e?e.appContext:t.appContext)||LT,i={uid:FT++,vnode:t,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:g_(s,r),emitsOptions:S_(s,r),emit:null,emitted:null,propsDefaults:$e,inheritAttrs:s.inheritAttrs,ctx:$e,data:$e,props:$e,attrs:$e,slots:$e,refs:$e,setupState:$e,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,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=AT.bind(null,i),t.ce&&t.ce(i),i}let Nt=null;const C_=()=>Nt||Gt;let cc,Su;{const t=Vc(),e=(n,s)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};cc=e("__VUE_INSTANCE_SETTERS__",n=>Nt=n),Su=e("__VUE_SSR_SETTERS__",n=>Ao=n)}const qo=t=>{const e=Nt;return cc(t),t.scope.on(),()=>{t.scope.off(),cc(e)}},Zf=()=>{Nt&&Nt.scope.off(),cc(null)};function P_(t){return t.vnode.shapeFlag&4}let Ao=!1;function jT(t,e=!1,n=!1){e&&Su(e);const{props:s,children:r}=t.vnode,i=P_(t);hT(t,s,i,e),mT(t,r,n||e);const o=i?$T(t,e):void 0;return e&&Su(!1),o}function $T(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,nT);const{setup:s}=n;if(s){os();const r=t.setupContext=s.length>1?HT(t):null,i=qo(t),o=zo(s,t,0,[t.props,r]),c=Tg(o);
vendor: 1,241 bytes, lines 13-16
13if(as(),i(),(c||t.sp)&&!io(t)&&r_(t),c){if(o.then(Zf,Zf),e)return o.then(l=>{ep(t,l)}).catch(l=>{Fc(l,t,0)});t.asyncDep=o}else ep(t,o)}else k_(t)}function ep(t,e,n){_e(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Xe(e)&&(t.setupState=Kg(e)),k_(t)}function k_(t,e,n){const s=t.type;t.render||(t.render=s.render||Mn);{const r=qo(t);os();try{sT(t)}finally{as(),r()}}}const BT={get(t,e){return Mt(t,"get",""),t[e]}};function HT(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,BT),slots:t.slots,emit:t.emit,expose:e}}function Bc(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Kg(Ih(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in oo)return oo[n](t)},has(e,n){return n in e||n in oo}})):t.proxy}function WT(t,e=!0){return _e(t)?t.displayName||t.name:t.name||e&&t.__name}function zT(t){return _e(t)&&"__vccOpts"in t}const tn=(t,e)=>DE(t,e,Ao);function M_(t,e,n){const s=(i,o,c)=>{oc(-1);try{return ze(i,o,c)}finally{oc(1)}},r=arguments.length;return r===2?Xe(e)&&!pe(e)?ac(e)?s(t,null,[e]):s(t,e):s(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ac(n)&&(n=[n]),s(t,e,n))}const YT="3.5.21";/**
14* @vue/runtime-dom v3.5.21
15* (c) 2018-present Yuxi (Evan) You and Vue contributors
16* @license MIT
17**/let Au;const tp=typeof window<"u"&&window.trustedTypes;if(tp)try{Au=tp.createPolicy("vue",{createHTML:t=>t})}catch{}const D_=Au?t=>Au.createHTML(t):t=>t,qT="http://www.w3.org/2000/svg",GT="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,np=Kn&&Kn.createElement("template"),KT={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e==="svg"?Kn.createElementNS(qT,t):e==="mathml"?Kn.createElementNS(GT,t):n?Kn.createElement(t,{is:n}):Kn.createElement(t);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>Kn.createTextNode(t),createComment:t=>Kn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Kn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,i){const o=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{np.innerHTML=D_(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const c=np.content;if(s==="svg"||s==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}e.insertBefore(c,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},QT=Symbol("_vtc");function JT(t,e,n){const s=t[QT];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const sp=Symbol("_vod"),XT=Symbol("_vsh"),ZT=Symbol(""),eI=/(?:^|;)\s*display\s*:/;function tI(t,e,n){const s=t.style,r=lt(n);let i=!1;if(n&&!r){if(e)if(lt(e))for(const o of e.split(";")){const c=o.slice(0,o.indexOf(":")).trim();n[c]==null&&Ua(s,c,"")}else for(const o in e)n[o]==null&&Ua(s,o,"");for(const o in n)o==="display"&&(i=!0),Ua(s,o,n[o])}else if(r){if(e!==n){const o=s[ZT];o&&(n+=";"+o),s.cssText=n,i=eI.test(n)}}else e&&t.removeAttribute("style");sp in t&&(t[sp]=i?s.display:"",t[XT]&&(s.display="none"))}const rp=/\s*!important$/;function Ua(t,e,n){if(pe(n))n.forEach(s=>Ua(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=nI(t,e);rp.test(n)?t.setProperty(Ar(s),n.replace(rp,""),"important"):t[s]=n}}const ip=["Webkit","Moz","ms"],Yl={};function nI(t,e){const n=Yl[e];if(n)return n;let s=on(e);if(s!=="filter"&&s in t)return Yl[e]=s;s=xc(s);for(let r=0;r<ip.length;r++){const i=ip[r]+s;if(i in t)return Yl[e]=i}return e}const op="http://www.w3.org/1999/xlink";function ap(t,e,n,s,r,i=rE(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(op,e.slice(6,e.length)):t.setAttributeNS(op,e,n):n==null||i&&!bg(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Zs(n)?String(n):n)}function cp(t,e,n,s,r){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?D_(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(c!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=bg(n):n==null&&c==="string"?(n="",o=!0):c==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(r||e)}function $r(t,e,n,s){t.addEventListener(e,n,s)}function sI(t,e,n,s){t.removeEventListener(e,n,s)}const lp=Symbol("_vei");function rI(t,e,n,s,r=null){const i=t[lp]||(t[lp]={}),o=i[e];if(s&&o)o.value=s;else{const[c,l]=iI(e);if(s){const h=i[e]=cI(s,r);$r(t,c,h,l)}else o&&(sI(t,c,o,l),i[e]=void 0)}}const up=/(?:Once|Passive|Capture)$/;function iI(t){let e;if(up.test(t)){e={};let s;for(;s=t.match(up);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ar(t.slice(2)),e]}let ql=0;const oI=Promise.resolve(),aI=()=>ql||(oI.then(()=>ql=0),ql=Date.now());function cI(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Fn(lI(s,n.value),e,5,[s])};return n.value=t,n.attached=aI(),n}function lI(t,e){if(pe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const hp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,uI=(t,e,n,s,r,i)=>{const o=r==="svg";e==="class"?JT(t,s,o):e==="style"?tI(t,n,s):Dc(e)?dh(e)||rI(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):hI(t,e,s,o))?(cp(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ap(t,e,s,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!lt(s))?cp(t,on(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ap(t,e,s,o))};function hI(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&hp(e)&&_e(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return hp(e)&&lt(n)?!1:e in t}const dp=t=>{const e=t.props["onUpdate:modelValue"]||!1;return pe(e)?n=>xa(e,n):e};function dI(t){t.target.composing=!0}function fp(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Gl=Symbol("_assign"),N_={created(t,{modifiers:{lazy:e,trim:n,number:s}},r){t[Gl]=dp(r);const i=s||r.props&&r.props.type==="number";$r(t,e?"change":"input",o=>{if(o.target.composing)return;let c=t.value;n&&(c=c.trim()),i&&(c=mu(c)),t[Gl](c)}),n&&$r(t,"change",()=>{t.value=t.value.trim()}),e||($r(t,"compositionstart",dI),$r(t,"compositionend",fp),$r(t,"change",fp))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(t[Gl]=dp(o),t.composing)return;const c=(i||t.type==="number")&&!/^0\d/.test(t.value)?mu(t.value):t.value,l=e??"";c!==l&&(document.activeElement===t&&t.type!=="range"&&(s&&e===n||r&&t.value.trim()===l)||(t.value=l))}},fI=xt({patchProp:uI},KT);let pp;
vendor: 5,098 bytes, line 17
17function pI(){return pp||(pp=_T(fI))}const O_=((...t)=>{const e=pI().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=gI(s);if(!r)return;const i=e._component;!_e(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,mI(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e});function mI(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function gI(t){return lt(t)?document.querySelector(t):t}let x_;const Hc=t=>x_=t,V_=Symbol();function bu(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var lo;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(lo||(lo={}));function _I(){const t=kg(!0),e=t.run(()=>gn({}));let n=[],s=[];const r=Ih({install(i){Hc(r),r._a=i,i.provide(V_,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const L_=()=>{};function mp(t,e,n,s=L_){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&Mg()&&iE(r),r}function Fr(t,...e){t.slice().forEach(n=>{n(...e)})}const yI=t=>t(),gp=Symbol(),Kl=Symbol();function Ru(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,s)=>t.set(s,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];bu(r)&&bu(s)&&t.hasOwnProperty(n)&&!it(s)&&!Vs(s)?t[n]=Ru(r,s):t[n]=s}return t}const vI=Symbol();function wI(t){return!bu(t)||!Object.prototype.hasOwnProperty.call(t,vI)}const{assign:Ss}=Object;function EI(t){return!!(it(t)&&t.effect)}function TI(t,e,n,s){const{state:r,actions:i,getters:o}=e,c=n.state.value[t];let l;function h(){c||(n.state.value[t]=r?r():{});const d=CE(n.state.value[t]);return Ss(d,i,Object.keys(o||{}).reduce((p,m)=>(p[m]=Ih(tn(()=>{Hc(n);const v=n._s.get(t);return o[m].call(v,v)})),p),{}))}return l=F_(t,h,e,n,s,!0),l}function F_(t,e,n={},s,r,i){let o;const c=Ss({actions:{}},n),l={deep:!0};let h,d,p=[],m=[],v;const P=s.state.value[t];!i&&!P&&(s.state.value[t]={}),gn({});let M;function O(_){let y;h=d=!1,typeof _=="function"?(_(s.state.value[t]),y={type:lo.patchFunction,storeId:t,events:v}):(Ru(s.state.value[t],_),y={type:lo.patchObject,payload:_,storeId:t,events:v});const I=M=Symbol();Sh().then(()=>{M===I&&(h=!0)}),d=!0,Fr(p,y,s.state.value[t])}const $=i?function(){const{state:y}=n,I=y?y():{};this.$patch(A=>{Ss(A,I)})}:L_;function U(){o.stop(),p=[],m=[],s._s.delete(t)}const H=(_,y="")=>{if(gp in _)return _[Kl]=y,_;const I=function(){Hc(s);const A=Array.from(arguments),b=[],E=[];function mt(fe){b.push(fe)}function $t(fe){E.push(fe)}Fr(m,{args:A,name:I[Kl],store:le,after:mt,onError:$t});let Be;try{Be=_.apply(this&&this.$id===t?this:le,A)}catch(fe){throw Fr(E,fe),fe}return Be instanceof Promise?Be.then(fe=>(Fr(b,fe),fe)).catch(fe=>(Fr(E,fe),Promise.reject(fe))):(Fr(b,Be),Be)};return I[gp]=!0,I[Kl]=y,I},q={_p:s,$id:t,$onAction:mp.bind(null,m),$patch:O,$reset:$,$subscribe(_,y={}){const I=mp(p,_,y.detached,()=>A()),A=o.run(()=>ao(()=>s.state.value[t],b=>{(y.flush==="sync"?d:h)&&_({storeId:t,type:lo.direct,events:v},b)},Ss({},l,y)));return I},$dispose:U},le=Wo(q);s._s.set(t,le);const S=(s._a&&s._a.runWithContext||yI)(()=>s._e.run(()=>(o=kg()).run(()=>e({action:H}))));for(const _ in S){const y=S[_];if(it(y)&&!EI(y)||Vs(y))i||(P&&wI(y)&&(it(y)?y.value=P[_]:Ru(y,P[_])),s.state.value[t][_]=y);else if(typeof y=="function"){const I=H(y,_);S[_]=I,c.actions[_]=y}}return Ss(le,S),Ss(Ne(le),S),Object.defineProperty(le,"$state",{get:()=>s.state.value[t],set:_=>{O(y=>{Ss(y,_)})}}),s._p.forEach(_=>{Ss(le,o.run(()=>_({store:le,app:s._a,pinia:s,options:c})))}),P&&i&&n.hydrate&&n.hydrate(le.$state,P),h=!0,d=!0,le}/*! #__NO_SIDE_EFFECTS__ */function II(t,e,n){let s;const r=typeof e=="function";s=r?n:e;function i(o,c){const l=uT();return o=o||(l?_n(V_,null):null),o&&Hc(o),o=x_,o._s.has(t)||(r?F_(t,e,s,o):TI(t,s,o)),o._s.get(t)}return i.$id=t,i}const SI="/assets/sprite-DaCrPZMC.svg",U_="/assets/not-easily-squished-title-500x200-v3-ITP2xTGu.png",Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},AI={setup(){const t=gn(!1);return{isActive:t,toggleMenu:()=>{t.value=!t.value}}}},bI=SI+"#menu";function RI(t,e,n,s,r,i){return we(),ke("header",null,[oe("nav",{class:wo(["nav",[s.isActive?"collapsible--expanded":"collapsible"]])},[(we(),ke("svg",{class:"icon icon--white nav__toggler",onClick:e[0]||(e[0]=(...o)=>s.toggleMenu&&s.toggleMenu(...o))},[...e[1]||(e[1]=[oe("use",{href:bI},null,-1)])])),oe("a",{class:wo(["nav__brand",{"hidden-mobile":s.isActive}]),href:"/"},[...e[2]||(e[2]=[oe("img",{class:"logo-text logo-primary",src:U_,alt:"Not Easily Squished Logo"},null,-1)])],2),e[3]||(e[3]=$n('<ul class="list nav__list collapsible__content"><li class="nav__item"><a href="/">Home</a></li><li class="nav__item"><a href="/about">About</a></li><li class="nav__item"><a href="/episodes">
vendor: 15,907 bytes, lines 17-25
17Episodes</a></li><li class="nav__item"><a href="/extras">Extras</a></li><li class="nav__item"><a href="https://podcastindex.org/podcast/6014487" target="_blank">Subscribe</a></li><li class="nav__item"><a href="https://oncetold.com/book" target="_blank">Oncetold</a></li></ul>',1))],2)])}const CI=Ke(AI,[["render",RI]]);//! moment.js
18//! version : 2.30.1
19//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
20//! license : MIT
21//! momentjs.com
22var j_;function J(){return j_.apply(null,arguments)}function PI(t){j_=t}function yn(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function gr(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function Oe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Mh(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(Oe(t,e))return!1;return!0}function Ht(t){return t===void 0}function cs(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Go(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function $_(t,e){var n=[],s,r=t.length;for(s=0;s<r;++s)n.push(e(t[s],s));return n}function Ds(t,e){for(var n in e)Oe(e,n)&&(t[n]=e[n]);return Oe(e,"toString")&&(t.toString=e.toString),Oe(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Bn(t,e,n,s){return uy(t,e,n,s,!0).utc()}function kI(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ve(t){return t._pf==null&&(t._pf=kI()),t._pf}var Cu;Array.prototype.some?Cu=Array.prototype.some:Cu=function(t){var e=Object(this),n=e.length>>>0,s;for(s=0;s<n;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};function Dh(t){var e=null,n=!1,s=t._d&&!isNaN(t._d.getTime());if(s&&(e=ve(t),n=Cu.call(e.parsedDateParts,function(r){return r!=null}),s=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(s=s&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s;return t._isValid}function Wc(t){var e=Bn(NaN);return t!=null?Ds(ve(e),t):ve(e).userInvalidated=!0,e}var _p=J.momentProperties=[],Ql=!1;function Nh(t,e){var n,s,r,i=_p.length;if(Ht(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Ht(e._i)||(t._i=e._i),Ht(e._f)||(t._f=e._f),Ht(e._l)||(t._l=e._l),Ht(e._strict)||(t._strict=e._strict),Ht(e._tzm)||(t._tzm=e._tzm),Ht(e._isUTC)||(t._isUTC=e._isUTC),Ht(e._offset)||(t._offset=e._offset),Ht(e._pf)||(t._pf=ve(e)),Ht(e._locale)||(t._locale=e._locale),i>0)for(n=0;n<i;n++)s=_p[n],r=e[s],Ht(r)||(t[s]=r);return t}function Ko(t){Nh(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ql===!1&&(Ql=!0,J.updateOffset(this),Ql=!1)}function vn(t){return t instanceof Ko||t!=null&&t._isAMomentObject!=null}function B_(t){J.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function an(t,e){var n=!0;return Ds(function(){if(J.deprecationHandler!=null&&J.deprecationHandler(null,t),n){var s=[],r,i,o,c=arguments.length;for(i=0;i<c;i++){if(r="",typeof arguments[i]=="object"){r+=`
23[`+i+"] ";for(o in arguments[0])Oe(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}B_(t+`
24Arguments: `+Array.prototype.slice.call(s).join("")+`
25`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var yp={};function H_(t,e){J.deprecationHandler!=null&&J.deprecationHandler(t,e),yp[t]||(B_(e),yp[t]=!0)}J.suppressDeprecationWarnings=!1;J.deprecationHandler=null;function Hn(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function MI(t){var e,n;for(n in t)Oe(t,n)&&(e=t[n],Hn(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Pu(t,e){var n=Ds({},t),s;for(s in e)Oe(e,s)&&(gr(t[s])&&gr(e[s])?(n[s]={},Ds(n[s],t[s]),Ds(n[s],e[s])):e[s]!=null?n[s]=e[s]:delete n[s]);for(s in t)Oe(t,s)&&!Oe(e,s)&&gr(t[s])&&(n[s]=Ds({},n[s]));return n}function Oh(t){t!=null&&this.set(t)}var ku;Object.keys?ku=Object.keys:ku=function(t){var e,n=[];for(e in t)Oe(t,e)&&n.push(e);return n};var DI={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function NI(t,e,n){var s=this._calendar[t]||this._calendar.sameElse;return Hn(s)?s.call(e,n):s}function Un(t,e,n){var s=""+Math.abs(t),r=e-s.length,i=t>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var xh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ra=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jl={},ei={};function ie(t,e,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),t&&(ei[t]=r),e&&(ei[e[0]]=function(){return Un(r.apply(this,arguments),e[1],e[2])}),n&&(ei[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function OI(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function xI(t){var e=t.match(xh),n,s;for(n=0,s=e.length;n<s;n++)ei[e[n]]?e[n]=ei[e[n]]:e[n]=OI(e[n]);return function(r){var i="",o;for(o=0;o<s;o++)i+=Hn(e[o])?e[o].call(r,t):e[o];return i}}function ja(t,e){return t.isValid()?(e=W_(e,t.localeData()),Jl[e]=Jl[e]||xI(e),Jl[e](t)):t.localeData().invalidDate()}function W_(t,e){var n=5;function s(r){return e.longDateFormat(r)||r}for(Ra.lastIndex=0;n>=0&&Ra.test(t);)t=t.replace(Ra,s),Ra.lastIndex=0,n-=1;return t}var VI={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function LI(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(xh).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var FI="Invalid date";function UI(){return this._invalidDate}var jI="%d",$I=/\d{1,2}/;function BI(t){return this._ordinal.replace("%d",t)}var HI={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function WI(t,e,n,s){var r=this._relativeTime[n];return Hn(r)?r(t,e,n,s):r.replace(/%d/i,t)}function zI(t,e){var n=this._relativeTime[t>0?"future":"past"];return Hn(n)?n(e):n.replace(/%s/i,e)}var vp={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function cn(t){return typeof t=="string"?vp[t]||vp[t.toLowerCase()]:void 0}function Vh(t){var e={},n,s;for(s in t)Oe(t,s)&&(n=cn(s),n&&(e[n]=t[s]));return e}var YI={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function qI(t){var e=[],n;for(n in t)Oe(t,n)&&e.push({unit:n,priority:YI[n]});return e.sort(function(s,r){return s.priority-r.priority}),e}var z_=/\d/,Qt=/\d\d/,Y_=/\d{3}/,Lh=/\d{4}/,zc=/[+-]?\d{6}/,Qe=/\d\d?/,q_=/\d\d\d\d?/,G_=/\d\d\d\d\d\d?/,Yc=/\d{1,3}/,Fh=/\d{1,4}/,qc=/[+-]?\d{1,6}/,yi=/\d+/,Gc=/[+-]?\d+/,GI=/Z|[+-]\d\d:?\d\d/gi,Kc=/Z|[+-]\d\d(?::?\d\d)?/gi,KI=/[+-]?\d+(\.\d{1,3})?/,Qo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vi=/^[1-9]\d?/,Uh=/^([1-9]\d|\d)/,lc;lc={};function te(t,e,n){lc[t]=Hn(e)?e:function(s,r){return s&&n?n:e}}function QI(t,e){return Oe(lc,t)?lc[t](e._strict,e._locale):new RegExp(JI(t))}function JI(t){return ss(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,s,r,i){return n||s||r||i}))}function ss(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function en(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Ae(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=en(e)),n}var Mu={};function Ue(t,e){var n,s=e,r;for(typeof t=="string"&&(t=[t]),cs(e)&&(s=function(i,o){o[e]=Ae(i)}),r=t.length,n=0;n<r;n++)Mu[t[n]]=s}function Jo(t,e){Ue(t,function(n,s,r,i){r._w=r._w||{},e(n,r._w,r,i)})}function XI(t,e,n){e!=null&&Oe(Mu,t)&&Mu[t](e,n._a,n,t)}function Qc(t){return t%4===0&&t%100!==0||t%400===0}var Ot=0,Zn=1,Pn=2,ut=3,dn=4,es=5,dr=6,ZI=7,e1=8;ie("Y",0,0,function(){var t=this.year();return t<=9999?Un(t,4):"+"+t});ie(0,["YY",2],0,function(){return this.year()%100});ie(0,["YYYY",4],0,"year");ie(0,["YYYYY",5],0,"year");ie(0,["YYYYYY",6,!0],0,"year");te("Y",Gc);te("YY",Qe,Qt);te("YYYY",Fh,Lh);te("YYYYY",qc,zc);te("YYYYYY",qc,zc);Ue(["YYYYY","YYYYYY"],Ot);Ue("YYYY",function(t,e){e[Ot]=t.length===2?J.parseTwoDigitYear(t):Ae(t)});Ue("YY",function(t,e){e[Ot]=J.parseTwoDigitYear(t)});Ue("Y",function(t,e){e[Ot]=parseInt(t,10)});function uo(t){return Qc(t)?366:365}J.parseTwoDigitYear=function(t){return Ae(t)+(Ae(t)>68?1900:2e3)};var K_=wi("FullYear",!0);function t1(){return Qc(this.year())}function wi(t,e){return function(n){return n!=null?(Q_(this,t,n),J.updateOffset(this,e),this):bo(this,t)}}function bo(t,e){if(!t.isValid())return NaN;var n=t._d,s=t._isUTC;switch(e){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Q_(t,e,n){var s,r,i,o,c;if(!(!t.isValid()||isNaN(n))){switch(s=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}i=n,o=t.month(),c=t.date(),c=c===29&&o===1&&!Qc(i)?28:c,r?s.setUTCFullYear(i,o,c):s.setFullYear(i,o,c)}}function n1(t){return t=cn(t),Hn(this[t])?this[t]():this}function s1(t,e){if(typeof t=="object"){t=Vh(t);var n=qI(t),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](t[n[s].unit])}else if(t=cn(t),Hn(this[t]))return this[t](e);return this}function r1(t,e){return(t%e+e)%e}var st;Array.prototype.indexOf?st=Array.prototype.indexOf:st=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function jh(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=r1(e,12);return t+=(e-n)/12,n===1?Qc(t)?29:28:31-n%7%2}ie("M",["MM",2],"Mo",function(){return this.month()+1});ie("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});ie("MMMM",0,0,function(t){return this.localeData().months(this,t)});te("M",Qe,vi);te("MM",Qe,Qt);te("MMM",function(t,e){return e.monthsShortRegex(t)});te("MMMM",function(t,e){return e.monthsRegex(t)});Ue(["M","MM"],function(t,e){e[Zn]=Ae(t)-1});Ue(["MMM","MMMM"],function(t,e,n,s){var r=n._locale.monthsParse(t,s,n._strict);r!=null?e[Zn]=r:ve(n).invalidMonth=t});var i1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),J_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),X_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,o1=Qo,a1=Qo;function c1(t,e){return t?yn(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||X_).test(e)?"format":"standalone"][t.month()]:yn(this._months)?this._months:this._months.standalone}function l1(t,e){return t?yn(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[X_.test(e)?"format":"standalone"][t.month()]:yn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function u1(t,e,n){var s,r,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=Bn([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return n?e==="MMM"?(r=st.call(this._shortMonthsParse,o),r!==-1?r:null):(r=st.call(this._longMonthsParse,o),r!==-1?r:null):e==="MMM"?(r=st.call(this._shortMonthsParse,o),r!==-1?r:(r=st.call(this._longMonthsParse,o),r!==-1?r:null)):(r=st.call(this._longMonthsParse,o),r!==-1?r:(r=st.call(this._shortMonthsParse,o),r!==-1?r:null))}function h1(t,e,n){var s,r,i;if(this._monthsParseExact)return u1.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=Bn([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[s].test(t))return s;if(n&&e==="MMM"&&this._shortMonthsParse[s].test(t))return s;if(!n&&this._monthsParse[s].test(t))return s}}function Z_(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ae(e);else if(e=t.localeData().monthsParse(e),!cs(e))return t}var n=e,s=t.date();return s=s<29?s:Math.min(s,jh(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,s):t._d.setMonth(n,s),t}function ey(t){return t!=null?(Z_(this,t),J.updateOffset(this,!0),this):bo(this,"Month")}function d1(){return jh(this.year(),this.month())}function f1(t){return this._monthsParseExact?(Oe(this,"_monthsRegex")||ty.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Oe(this,"_monthsShortRegex")||(this._monthsShortRegex=o1),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function p1(t){return this._monthsParseExact?(Oe(this,"_monthsRegex")||ty.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Oe(this,"_monthsRegex")||(this._monthsRegex=a1),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ty(){function t(l,h){return h.length-l.length}var e=[],n=[],s=[],r,i,o,c;for(r=0;r<12;r++)i=Bn([2e3,r]),o=ss(this.monthsShort(i,"")),c=ss(this.months(i,"")),e.push(o),n.push(c),s.push(c),s.push(o);e.sort(t),n.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function m1(t,e,n,s,r,i,o){var c;return t<100&&t>=0?(c=new Date(t+400,e,n,s,r,i,o),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,n,s,r,i,o),c}function Ro(t){var e,n;return t<100&&t>
25=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function uc(t,e,n){var s=7+e-n,r=(7+Ro(t,0,s).getUTCDay()-e)%7;return-r+s-1}function ny(t,e,n,s,r){var i=(7+n-s)%7,o=uc(t,s,r),c=1+7*(e-1)+i+o,l,h;return c<=0?(l=t-1,h=uo(l)+c):c>uo(t)?(l=t+1,h=c-uo(t)):(l=t,h=c),{year:l,dayOfYear:h}}function Co(t,e,n){var s=uc(t.year(),e,n),r=Math.floor((t.dayOfYear()-s-1)/7)+1,i,o;return r<1?(o=t.year()-1,i=r+rs(o,e,n)):r>rs(t.year(),e,n)?(i=r-rs(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{week:i,year:o}}function rs(t,e,n){var s=uc(t,e,n),r=uc(t+1,e,n);return(uo(t)-s+r)/7}ie("w",["ww",2],"wo","week");ie("W",["WW",2],"Wo","isoWeek");te("w",Qe,vi);te("ww",Qe,Qt);te("W",Qe,vi);te("WW",Qe,Qt);Jo(["w","ww","W","WW"],function(t,e,n,s){e[s.substr(0,1)]=Ae(t)});function g1(t){return Co(t,this._week.dow,this._week.doy).week}var _1={dow:0,doy:6};function y1(){return this._week.dow}function v1(){return this._week.doy}function w1(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function E1(t){var e=Co(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}ie("d",0,"do","day");ie("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});ie("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});ie("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});ie("e",0,0,"weekday");ie("E",0,0,"isoWeekday");te("d",Qe);te("e",Qe);te("E",Qe);te("dd",function(t,e){return e.weekdaysMinRegex(t)});te("ddd",function(t,e){return e.weekdaysShortRegex(t)});te("dddd",function(t,e){return e.weekdaysRegex(t)});Jo(["dd","ddd","dddd"],function(t,e,n,s){var r=n._locale.weekdaysParse(t,s,n._strict);r!=null?e.d=r:ve(n).invalidWeekday=t});Jo(["d","e","E"],function(t,e,n,s){e[s]=Ae(t)});function T1(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),t
vendor: 14,418 bytes, line 25
25ypeof t=="number"?t:null):parseInt(t,10)}function I1(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function $h(t,e){return t.slice(e,7).concat(t.slice(0,e))}var S1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),A1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),b1=Qo,R1=Qo,C1=Qo;function P1(t,e){var n=yn(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?$h(n,this._week.dow):t?n[t.day()]:n}function k1(t){return t===!0?$h(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function M1(t){return t===!0?$h(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function D1(t,e,n){var s,r,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=Bn([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(r=st.call(this._weekdaysParse,o),r!==-1?r:null):e==="ddd"?(r=st.call(this._shortWeekdaysParse,o),r!==-1?r:null):(r=st.call(this._minWeekdaysParse,o),r!==-1?r:null):e==="dddd"?(r=st.call(this._weekdaysParse,o),r!==-1||(r=st.call(this._shortWeekdaysParse,o),r!==-1)?r:(r=st.call(this._minWeekdaysParse,o),r!==-1?r:null)):e==="ddd"?(r=st.call(this._shortWeekdaysParse,o),r!==-1||(r=st.call(this._weekdaysParse,o),r!==-1)?r:(r=st.call(this._minWeekdaysParse,o),r!==-1?r:null)):(r=st.call(this._minWeekdaysParse,o),r!==-1||(r=st.call(this._weekdaysParse,o),r!==-1)?r:(r=st.call(this._shortWeekdaysParse,o),r!==-1?r:null))}function N1(t,e,n){var s,r,i;if(this._weekdaysParseExact)return D1.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=Bn([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[s].test(t))return s;if(n&&e==="ddd"&&this._shortWeekdaysParse[s].test(t))return s;if(n&&e==="dd"&&this._minWeekdaysParse[s].test(t))return s;if(!n&&this._weekdaysParse[s].test(t))return s}}function O1(t){if(!this.isValid())return t!=null?this:NaN;var e=bo(this,"Day");return t!=null?(t=T1(t,this.localeData()),this.add(t-e,"d")):e}function x1(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function V1(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=I1(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function L1(t){return this._weekdaysParseExact?(Oe(this,"_weekdaysRegex")||Bh.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Oe(this,"_weekdaysRegex")||(this._weekdaysRegex=b1),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function F1(t){return this._weekdaysParseExact?(Oe(this,"_weekdaysRegex")||Bh.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Oe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=R1),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function U1(t){return this._weekdaysParseExact?(Oe(this,"_weekdaysRegex")||Bh.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Oe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=C1),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bh(){function t(d,p){return p.length-d.length}var e=[],n=[],s=[],r=[],i,o,c,l,h;for(i=0;i<7;i++)o=Bn([2e3,1]).day(i),c=ss(this.weekdaysMin(o,"")),l=ss(this.weekdaysShort(o,"")),h=ss(this.weekdays(o,"")),e.push(c),n.push(l),s.push(h),r.push(c),r.push(l),r.push(h);e.sort(t),n.sort(t),s.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Hh(){return this.hours()%12||12}function j1(){return this.hours()||24}ie("H",["HH",2],0,"hour");ie("h",["hh",2],0,Hh);ie("k",["kk",2],0,j1);ie("hmm",0,0,function(){return""+Hh.apply(this)+Un(this.minutes(),2)});ie("hmmss",0,0,function(){return""+Hh.apply(this)+Un(this.minutes(),2)+Un(this.seconds(),2)});ie("Hmm",0,0,function(){return""+this.hours()+Un(this.minutes(),2)});ie("Hmmss",0,0,function(){return""+this.hours()+Un(this.minutes(),2)+Un(this.seconds(),2)});function ry(t,e){ie(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ry("a",!0);ry("A",!1);function iy(t,e){return e._meridiemParse}te("a",iy);te("A",iy);te("H",Qe,Uh);te("h",Qe,vi);te("k",Qe,vi);te("HH",Qe,Qt);te("hh",Qe,Qt);te("kk",Qe,Qt);te("hmm",q_);te("hmmss",G_);te("Hmm",q_);te("Hmmss",G_);Ue(["H","HH"],ut);Ue(["k","kk"],function(t,e,n){var s=Ae(t);e[ut]=s===24?0:s});Ue(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});Ue(["h","hh"],function(t,e,n){e[ut]=Ae(t),ve(n).bigHour=!0});Ue("hmm",function(t,e,n){var s=t.length-2;e[ut]=Ae(t.substr(0,s)),e[dn]=Ae(t.substr(s)),ve(n).bigHour=!0});Ue("hmmss",function(t,e,n){var s=t.length-4,r=t.length-2;e[ut]=Ae(t.substr(0,s)),e[dn]=Ae(t.substr(s,2)),e[es]=Ae(t.substr(r)),ve(n).bigHour=!0});Ue("Hmm",function(t,e,n){var s=t.length-2;e[ut]=Ae(t.substr(0,s)),e[dn]=Ae(t.substr(s))});Ue("Hmmss",function(t,e,n){var s=t.length-4,r=t.length-2;e[ut]=Ae(t.substr(0,s)),e[dn]=Ae(t.substr(s,2)),e[es]=Ae(t.substr(r))});function $1(t){return(t+"").toLowerCase().charAt(0)==="p"}var B1=/[ap]\.?m?\.?/i,H1=wi("Hours",!0);function W1(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var oy={calendar:DI,longDateFormat:VI,invalidDate:FI,ordinal:jI,dayOfMonthOrdinalParse:$I,relativeTime:HI,months:i1,monthsShort:J_,week:_1,weekdays:S1,weekdaysMin:A1,weekdaysShort:sy,meridiemParse:B1},Je={},zi={},Po;function z1(t,e){var n,s=Math.min(t.length,e.length);for(n=0;n<s;n+=1)if(t[n]!==e[n])return n;return s}function wp(t){return t&&t.toLowerCase().replace("_","-")}function Y1(t){for(var e=0,n,s,r,i;e<t.length;){for(i=wp(t[e]).split("-"),n=i.length,s=wp(t[e+1]),s=s?s.split("-"):null;n>0;){if(r=Jc(i.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&z1(i,s)>=n-1)break;n--}e++}return Po}function q1(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Jc(t){var e=null,n;if(Je[t]===void 0&&typeof module<"u"&&module&&module.exports&&q1(t))try{e=Po._abbr,n=require,n("./locale/"+t),Ls(e)}catch{Je[t]=null}return Je[t]}function Ls(t,e){var n;return t&&(Ht(e)?n=ps(t):n=Wh(t,e),n?Po=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Po._abbr}function Wh(t,e){if(e!==null){var n,s=oy;if(e.abbr=t,Je[t]!=null)H_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Je[t]._config;else if(e.parentLocale!=null)if(Je[e.parentLocale]!=null)s=Je[e.parentLocale]._config;else if(n=Jc(e.parentLocale),n!=null)s=n._config;else return zi[e.parentLocale]||(zi[e.parentLocale]=[]),zi[e.parentLocale].push({name:t,config:e}),null;return Je[t]=new Oh(Pu(s,e)),zi[t]&&zi[t].forEach(function(r){Wh(r.name,r.config)}),Ls(t),Je[t]}else return delete Je[t],null}function G1(t,e){if(e!=null){var n,s,r=oy;Je[t]!=null&&Je[t].parentLocale!=null?Je[t].set(Pu(Je[t]._config,e)):(s=Jc(t),s!=null&&(r=s._config),e=Pu(r,e),s==null&&(e.abbr=t),n=new Oh(e),n.parentLocale=Je[t],Je[t]=n),Ls(t)}else Je[t]!=null&&(Je[t].parentLocale!=null?(Je[t]=Je[t].parentLocale,t===Ls()&&Ls(t)):Je[t]!=null&&delete Je[t]);return Je[t]}function ps(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Po;if(!yn(t)){if(e=Jc(t),e)return e;t=[t]}return Y1(t)}function K1(){return ku(Je)}function zh(t){var e,n=t._a;return n&&ve(t).overflow===-2&&(e=n[Zn]<0||n[Zn]>11?Zn:n[Pn]<1||n[Pn]>jh(n[Ot],n[Zn])?Pn:n[ut]<0||n[ut]>24||n[ut]===24&&(n[dn]!==0||n[es]!==0||n[dr]!==0)?ut:n[dn]<0||n[dn]>59?dn:n[es]<0||n[es]>59?es:n[dr]<0||n[dr]>999?dr:-1,ve(t)._overflowDayOfYear&&(e<Ot||e>Pn)&&(e=Pn),ve(t)._overflowWeeks&&e===-1&&(e=ZI),ve(t)._overflowWeekday&&e===-1&&(e=e1),ve(t).overflow=e),t}var Q1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,J1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,X1=/Z|[+-]\d\d(?::?\d\d)?/,Ca=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Xl=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Z1=/^\/?Date\((-?\d+)/i,eS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tS={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ay(t){var e,n,s=t._i,r=Q1.exec(s)||J1.exec(s),i,o,c,l,h=Ca.length,d=Xl.length;if(r){for(ve(t).iso=!0,e=0,n=h;e<n;e++)if(Ca[e][1].exec(r[1])){o=Ca[e][0],i=Ca[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(r[3]){for(e=0,n=d;e<n;e++)if(Xl[e][1].exec(r[3])){c=(r[2]||" ")+Xl[e][0];break}if(c==null){t._isValid=!1;return}}if(!i&&c!=null){t._isValid=!1;return}if(r[4])if(X1.exec(r[4]))l="Z";else{t._isValid=!1;return}t._f=o+(c||"")+(l||""),qh(t)}else t._isValid=!1}function nS(t,e,n,s,r,i){var o=[sS(t),J_.indexOf(e),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return i&&o.push(parseInt(i,10)),o}function sS(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function rS(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iS(t,e,n){if(t){var s=sy.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(s!==r)return ve(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function oS(t,e,n){if(t)return tS[t];if(e)return 0;var s=parseInt(n,10),r=s%100,i=(s-r)/100;return i*60+r}function cy(t){var e=eS.exec(rS(t._i)),n;if(e){if(n=nS(e[4],e[3],e[2],e[5],e[6],e[7]),!iS(e[1],n,t))return;t._a=n,t._tzm=oS(e[8],e[9],e[10]),t._d=Ro.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),ve(t).rfc2822=!0}else t._isValid=!1}function aS(t){var e=Z1.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(ay(t),t._isValid===!1)delete t._isValid;else return;if(cy(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:J.createFromInputFallback(t)}J.createFromInputFallback=an("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Br(t,e,n){return t??e??n}function cS(t){var e=new Date(J.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Yh(t){var e,n,s=[],r,i,o;if(!t._d){for(r=cS(t),t._w&&t._a[Pn]==null&&t._a[Zn]==null&&lS(t),t._dayOfYear!=null&&(o=Br(t._a[Ot],r[Ot]),(t._dayOfYear>uo(o)||t._dayOfYear===0)&&(ve(t)._overflowDayOfYear=!0),n=Ro(o,0,t._dayOfYear),t._a[Zn]=n.getUTCMonth(),t._a[Pn]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[ut]===24&&t._a[dn]===0&&t._a[es]===0&&t._a[dr]===0&&(t._nextDay=!0,t._a[ut]=0),t._d=(t._useUTC?Ro:m1).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ut]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(ve(t).weekdayMismatch=!0)}}function lS(t){var e,n,s,r,i,o,c,l,h;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,n=Br(e.GG,t._a[Ot],Co(Ge(),1,4).year),s=Br(e.W,1),r=Br(e.E,1),(r<1||r>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,h=Co(Ge(),i,o),n=Br(e.gg,t._a[Ot],h.year),s=Br(e.w,h.week),e.d!=null?(r=e.d,(r<0||r>6)&&(l=!0)):e.e!=null?(r=e.e+i,(e.e<0||e.e>6)&&(l=!0)):r=i),s<1||s>rs(n,i,o)?ve(t)._overflowWeeks=!0:l!=null?ve(t)._overflowWeekday=!0:(c=ny(n,s,r,i,o),t._a[Ot]=c.year,t._dayOfYear=c.dayOfYear)}J.ISO_8601=function(){};J.RFC_2822=function(){};function qh(t){if(t._f===J.ISO_8601){ay(t);return}if(t._f===J.RFC_2822){cy(t);return}t._a=[],ve(t).empty=!0;var e=""+t._i,n,s,r,i,o,c=e.length,l=0,h,d;for(r=W_(t._f,t._locale).match(xh)||[],d=r.length,n=0;n<d;n++)i=r[n],s=(e.match(QI(i,t))||[])[0],s&&(o=e.substr(0,e.indexOf(s)),o.length>0&&ve(t).unusedInput.push(o),e=e.slice(e.indexOf(s)+s.length),l+=s.length),ei[i]?(s?ve(t).empty=!1:ve(t).unusedTokens.push(i),XI(i,s,t)):t._strict&&!s&&ve(t).unusedTokens.push(i);ve(t).charsLeftOver=c-l,e.length>0&&ve(t).unusedInput.push(e),t._a[ut]<=12&&ve(t).bigHour===!0&&t._a[ut]>0&&(ve(t).bigHour=void 0),ve(t).parsedDateParts=t._a.slice(0),ve(t).meridiem=t._meridiem,t._a[ut]=uS(t._locale,t._a[ut],t._meridiem),h=ve(t).era,h!==null&&(t._a[Ot]=t._locale.erasConvertYear(h,t._a[Ot])),Yh(t),zh(t)}function uS(t,e,n){var s;
vendor: 10,520 bytes, line 25
25return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(s=t.isPM(n),s&&e<12&&(e+=12),!s&&e===12&&(e=0)),e)}function hS(t){var e,n,s,r,i,o,c=!1,l=t._f.length;if(l===0){ve(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<l;r++)i=0,o=!1,e=Nh({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[r],qh(e),Dh(e)&&(o=!0),i+=ve(e).charsLeftOver,i+=ve(e).unusedTokens.length*10,ve(e).score=i,c?i<s&&(s=i,n=e):(s==null||i<s||o)&&(s=i,n=e,o&&(c=!0));Ds(t,n||e)}function dS(t){if(!t._d){var e=Vh(t._i),n=e.day===void 0?e.date:e.day;t._a=$_([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(s){return s&&parseInt(s,10)}),Yh(t)}}function fS(t){var e=new Ko(zh(ly(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function ly(t){var e=t._i,n=t._f;return t._locale=t._locale||ps(t._l),e===null||n===void 0&&e===""?Wc({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),vn(e)?new Ko(zh(e)):(Go(e)?t._d=e:yn(n)?hS(t):n?qh(t):pS(t),Dh(t)||(t._d=null),t))}function pS(t){var e=t._i;Ht(e)?t._d=new Date(J.now()):Go(e)?t._d=new Date(e.valueOf()):typeof e=="string"?aS(t):yn(e)?(t._a=$_(e.slice(0),function(n){return parseInt(n,10)}),Yh(t)):gr(e)?dS(t):cs(e)?t._d=new Date(e):J.createFromInputFallback(t)}function uy(t,e,n,s,r){var i={};return(e===!0||e===!1)&&(s=e,e=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(gr(t)&&Mh(t)||yn(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=t,i._f=e,i._strict=s,fS(i)}function Ge(t,e,n,s){return uy(t,e,n,s,!1)}var mS=an("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ge.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Wc()}),gS=an("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ge.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Wc()});function hy(t,e){var n,s;if(e.length===1&&yn(e[0])&&(e=e[0]),!e.length)return Ge();for(n=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](n))&&(n=e[s]);return n}function _S(){var t=[].slice.call(arguments,0);return hy("isBefore",t)}function yS(){var t=[].slice.call(arguments,0);return hy("isAfter",t)}var vS=function(){return Date.now?Date.now():+new Date},Yi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wS(t){var e,n=!1,s,r=Yi.length;for(e in t)if(Oe(t,e)&&!(st.call(Yi,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(s=0;s<r;++s)if(t[Yi[s]]){if(n)return!1;parseFloat(t[Yi[s]])!==Ae(t[Yi[s]])&&(n=!0)}return!0}function ES(){return this._isValid}function TS(){return In(NaN)}function Xc(t){var e=Vh(t),n=e.year||0,s=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,c=e.hour||0,l=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=wS(e),this._milliseconds=+d+h*1e3+l*6e4+c*1e3*60*60,this._days=+o+i*7,this._months=+r+s*3+n*12,this._data={},this._locale=ps(),this._bubble()}function $a(t){return t instanceof Xc}function Du(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function IS(t,e,n){var s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),i=0,o;for(o=0;o<s;o++)Ae(t[o])!==Ae(e[o])&&i++;return i+r}function dy(t,e){ie(t,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+Un(~~(n/60),2)+e+Un(~~n%60,2)})}dy("Z",":");dy("ZZ","");te("Z",Kc);te("ZZ",Kc);Ue(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Gh(Kc,t)});var SS=/([\+\-]|\d\d)/gi;function Gh(t,e){var n=(e||"").match(t),s,r,i;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(SS)||["-",0,0],i=+(r[1]*60)+Ae(r[2]),i===0?0:r[0]==="+"?i:-i)}function Kh(t,e){var n,s;return e._isUTC?(n=e.clone(),s=(vn(t)||Go(t)?t.valueOf():Ge(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),J.updateOffset(n,!1),n):Ge(t).local()}function Nu(t){return-Math.round(t._d.getTimezoneOffset())}J.updateOffset=function(){};function AS(t,e,n){var s=this._offset||0,r;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Gh(Kc,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(r=Nu(this)),this._offset=t,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==t&&(!e||this._changeInProgress?my(this,In(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,J.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Nu(this)}function bS(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function RS(t){return this.utcOffset(0,t)}function CS(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Nu(this),"m")),this}function PS(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Gh(GI,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function kS(t){return this.isValid()?(t=t?Ge(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function MS(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function DS(){if(!Ht(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Nh(t,this),t=ly(t),t._a?(e=t._isUTC?Bn(t._a):Ge(t._a),this._isDSTShifted=this.isValid()&&IS(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function NS(){return this.isValid()?!this._isUTC:!1}function OS(){return this.isValid()?this._isUTC:!1}function fy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xS=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,VS=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function In(t,e){var n=t,s=null,r,i,o;return $a(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:cs(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(s=xS.exec(t))?(r=s[1]==="-"?-1:1,n={y:0,d:Ae(s[Pn])*r,h:Ae(s[ut])*r,m:Ae(s[dn])*r,s:Ae(s[es])*r,ms:Ae(Du(s[dr]*1e3))*r}):(s=VS.exec(t))?(r=s[1]==="-"?-1:1,n={y:cr(s[2],r),M:cr(s[3],r),w:cr(s[4],r),d:cr(s[5],r),h:cr(s[6],r),m:cr(s[7],r),s:cr(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=LS(Ge(n.from),Ge(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new Xc(n),$a(t)&&Oe(t,"_locale")&&(i._locale=t._locale),$a(t)&&Oe(t,"_isValid")&&(i._isValid=t._isValid),i}In.fn=Xc.prototype;In.invalid=TS;function cr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ep(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function LS(t,e){var n;return t.isValid()&&e.isValid()?(e=Kh(e,t),t.isBefore(e)?n=Ep(t,e):(n=Ep(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function py(t,e){return function(n,s){var r,i;return s!==null&&!isNaN(+s)&&(H_(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=s,s=i),r=In(n,s),my(this,r,t),this}}function my(t,e,n,s){var r=e._milliseconds,i=Du(e._days),o=Du(e._months);t.isValid()&&(s=s??!0,o&&Z_(t,bo(t,"Month")+o*n),i&&Q_(t,"Date",bo(t,"Date")+i*n),r&&t._d.setTime(t._d.valueOf()+r*n),s&&J.updateOffset(t,i||o))}var FS=py(1,"add"),US=py(-1,"subtract");function gy(t){return typeof t=="string"||t instanceof String}function jS(t){return vn(t)||Go(t)||gy(t)||cs(t)||BS(t)||$S(t)||t===null||t===void 0}function $S(t){var e=gr(t)&&!Mh(t),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,o=s.length;for(r=0;r<o;r+=1)i=s[r],n=n||Oe(t,i);return e&&n}function BS(t){var e=yn(t),n=!1;return e&&(n=t.filter(function(s){return!cs(s)&&gy(t)}).length===0),e&&n}function HS(t){var e=gr(t)&&!Mh(t),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<s.length;r+=1)i=s[r],n=n||Oe(t,i);return e&&n}function WS(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zS(t,e){arguments.length===1&&(arguments[0]?jS(arguments[0])?(t=arguments[0],e=void 0):HS(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ge(),s=Kh(n,this).startOf("day"),r=J.calendarFormat(this,s)||"sameElse",i=e&&(Hn(e[r])?e[r].call(this,n):e[r]);return this.format(i||this.localeData().calendar(r,this,Ge(n)))}function YS(){return new Ko(this)}function qS(t,e){var n=vn(t)?t:Ge(t);return this.isValid()&&n.isValid()?(e=cn(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function GS(t,e){var n=vn(t)?t:Ge(t);return this.isValid()&&n.isValid()?(e=cn(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function KS(t,e,n,s){var r=vn(t)?t:Ge(t),i=vn(e)?e:Ge(e);return this.isValid()&&r.isValid()&&i.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function QS(t,e){var n=vn(t)?t:Ge(t),s;return this.isValid()&&n.isValid()?(e=cn(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf())):!1}function JS(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function XS(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ZS(t,e,n){var s,r,i;if(!this.isValid())return NaN;if(s=Kh(t,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,e=cn(e),e){case"year":i=Ba(this,s)/12;break;case"month":i=Ba(this,s);break;case"quarter":i=Ba(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-r)/864e5;break;case"week":i=(this-s-r)/6048e5;break;default:i=this-s}return n?i:en(i)}function Ba(t,e){if(t.date()<e.date())return-Ba(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),s=t.clone().add(n,"months"),r,i;return e-s<0?(r=t.clone().add(n-1,"months"),i=(e-s)/(s-r)):(r=t.clone().add(n+1,"months"),i=(e-s)/(r-s)),-(n+i)||0}J.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";J.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function eA(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function tA(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;
vendor: 19,144 bytes, lines 25-26
25return n.year()<0||n.year()>9999?ja(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Hn(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ja(n,"Z")):ja(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nA(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,s,r,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+s+r+i)}function sA(t){t||(t=this.isUtc()?J.defaultFormatUtc:J.defaultFormat);var e=ja(this,t);return this.localeData().postformat(e)}function rA(t,e){return this.isValid()&&(vn(t)&&t.isValid()||Ge(t).isValid())?In({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function iA(t){return this.from(Ge(),t)}function oA(t,e){return this.isValid()&&(vn(t)&&t.isValid()||Ge(t).isValid())?In({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function aA(t){return this.to(Ge(),t)}function _y(t){var e;return t===void 0?this._locale._abbr:(e=ps(t),e!=null&&(this._locale=e),this)}var yy=an("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function vy(){return this._locale}var hc=1e3,ti=60*hc,dc=60*ti,wy=(365*400+97)*24*dc;function ni(t,e){return(t%e+e)%e}function Ey(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-wy:new Date(t,e,n).valueOf()}function Ty(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-wy:Date.UTC(t,e,n)}function cA(t){var e,n;if(t=cn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ty:Ey,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ni(e+(this._isUTC?0:this.utcOffset()*ti),dc);break;case"minute":e=this._d.valueOf(),e-=ni(e,ti);break;case"second":e=this._d.valueOf(),e-=ni(e,hc);break}return this._d.setTime(e),J.updateOffset(this,!0),this}function lA(t){var e,n;if(t=cn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ty:Ey,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=dc-ni(e+(this._isUTC?0:this.utcOffset()*ti),dc)-1;break;case"minute":e=this._d.valueOf(),e+=ti-ni(e,ti)-1;break;case"second":e=this._d.valueOf(),e+=hc-ni(e,hc)-1;break}return this._d.setTime(e),J.updateOffset(this,!0),this}function uA(){return this._d.valueOf()-(this._offset||0)*6e4}function hA(){return Math.floor(this.valueOf()/1e3)}function dA(){return new Date(this.valueOf())}function fA(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function pA(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function mA(){return this.isValid()?this.toISOString():null}function gA(){return Dh(this)}function _A(){return Ds({},ve(this))}function yA(){return ve(this).overflow}function vA(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ie("N",0,0,"eraAbbr");ie("NN",0,0,"eraAbbr");ie("NNN",0,0,"eraAbbr");ie("NNNN",0,0,"eraName");ie("NNNNN",0,0,"eraNarrow");ie("y",["y",1],"yo","eraYear");ie("y",["yy",2],0,"eraYear");ie("y",["yyy",3],0,"eraYear");ie("y",["yyyy",4],0,"eraYear");te("N",Qh);te("NN",Qh);te("NNN",Qh);te("NNNN",kA);te("NNNNN",MA);Ue(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,s){var r=n._locale.erasParse(t,s,n._strict);r?ve(n).era=r:ve(n).invalidEra=t});te("y",yi);te("yy",yi);te("yyy",yi);te("yyyy",yi);te("yo",DA);Ue(["y","yy","yyy","yyyy"],Ot);Ue(["yo"],function(t,e,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ot]=n._locale.eraYearOrdinalParse(t,r):e[Ot]=parseInt(t,10)});function wA(t,e){var n,s,r,i=this._eras||ps("en")._eras;for(n=0,s=i.length;n<s;++n){switch(typeof i[n].since){case"string":r=J(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=J(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function EA(t,e,n){var s,r,i=this.eras(),o,c,l;for(t=t.toUpperCase(),s=0,r=i.length;s<r;++s)if(o=i[s].name.toUpperCase(),c=i[s].abbr.toUpperCase(),l=i[s].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(c===t)return i[s];break;case"NNNN":if(o===t)return i[s];break;case"NNNNN":if(l===t)return i[s];break}else if([o,c,l].indexOf(t)>=0)return i[s]}function TA(t,e){var n=t.since<=t.until?1:-1;return e===void 0?J(t.since).year():J(t.since).year()+(e-t.offset)*n}function IA(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].name;return""}function SA(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].narrow;return""}function AA(){var t,e,n,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),s[t].since<=n&&n<=s[t].until||s[t].until<=n&&n<=s[t].since)return s[t].abbr;return""}function bA(){var t,e,n,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=r[t].since<=r[t].until?1:-1,s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return(this.year()-J(r[t].since).year())*n+r[t].offset;return this.year()}function RA(t){return Oe(this,"_erasNameRegex")||Jh.call(this),t?this._erasNameRegex:this._erasRegex}function CA(t){return Oe(this,"_erasAbbrRegex")||Jh.call(this),t?this._erasAbbrRegex:this._erasRegex}function PA(t){return Oe(this,"_erasNarrowRegex")||Jh.call(this),t?this._erasNarrowRegex:this._erasRegex}function Qh(t,e){return e.erasAbbrRegex(t)}function kA(t,e){return e.erasNameRegex(t)}function MA(t,e){return e.erasNarrowRegex(t)}function DA(t,e){return e._eraYearOrdinalRegex||yi}function Jh(){var t=[],e=[],n=[],s=[],r,i,o,c,l,h=this.eras();for(r=0,i=h.length;r<i;++r)o=ss(h[r].name),c=ss(h[r].abbr),l=ss(h[r].narrow),e.push(o),t.push(c),n.push(l),s.push(o),s.push(c),s.push(l);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ie(0,["gg",2],0,function(){return this.weekYear()%100});ie(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Zc(t,e){ie(0,[t,t.length],0,e)}Zc("gggg","weekYear");Zc("ggggg","weekYear");Zc("GGGG","isoWeekYear");Zc("GGGGG","isoWeekYear");te("G",Gc);te("g",Gc);te("GG",Qe,Qt);te("gg",Qe,Qt);te("GGGG",Fh,Lh);te("gggg",Fh,Lh);te("GGGGG",qc,zc);te("ggggg",qc,zc);Jo(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,s){e[s.substr(0,2)]=Ae(t)});Jo(["gg","GG"],function(t,e,n,s){e[s]=J.parseTwoDigitYear(t)});function NA(t){return Iy.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function OA(t){return Iy.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function xA(){return rs(this.year(),1,4)}function VA(){return rs(this.isoWeekYear(),1,4)}function LA(){var t=this.localeData()._week;return rs(this.year(),t.dow,t.doy)}function FA(){var t=this.localeData()._week;return rs(this.weekYear(),t.dow,t.doy)}function Iy(t,e,n,s,r){var i;return t==null?Co(this,s,r).year:(i=rs(t,s,r),e>i&&(e=i),UA.call(this,t,e,n,s,r))}function UA(t,e,n,s,r){var i=ny(t,e,n,s,r),o=Ro(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}ie("Q",0,"Qo","quarter");te("Q",z_);Ue("Q",function(t,e){e[Zn]=(Ae(t)-1)*3});function jA(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}ie("D",["DD",2],"Do","date");te("D",Qe,vi);te("DD",Qe,Qt);te("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Ue(["D","DD"],Pn);Ue("Do",function(t,e){e[Pn]=Ae(t.match(Qe)[0])});var Sy=wi("Date",!0);ie("DDD",["DDDD",3],"DDDo","dayOfYear");te("DDD",Yc);te("DDDD",Y_);Ue(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Ae(t)});function $A(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}ie("m",["mm",2],0,"minute");te("m",Qe,Uh);te("mm",Qe,Qt);Ue(["m","mm"],dn);var BA=wi("Minutes",!1);ie("s",["ss",2],0,"second");te("s",Qe,Uh);te("ss",Qe,Qt);Ue(["s","ss"],es);var HA=wi("Seconds",!1);ie("S",0,0,function(){return~~(this.millisecond()/100)});ie(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ie(0,["SSS",3],0,"millisecond");ie(0,["SSSS",4],0,function(){return this.millisecond()*10});ie(0,["SSSSS",5],0,function(){return this.millisecond()*100});ie(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ie(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ie(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ie(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});te("S",Yc,z_);te("SS",Yc,Qt);te("SSS",Yc,Y_);var Ns,Ay;for(Ns="SSSS";Ns.length<=9;Ns+="S")te(Ns,yi);function WA(t,e){e[dr]=Ae(("0."+t)*1e3)}for(Ns="S";Ns.length<=9;Ns+="S")Ue(Ns,WA);Ay=wi("Milliseconds",!1);ie("z",0,0,"zoneAbbr");ie("zz",0,0,"zoneName");function zA(){return this._isUTC?"UTC":""}function YA(){return this._isUTC?"Coordinated Universal Time":""}var B=Ko.prototype;B.add=FS;B.calendar=zS;B.clone=YS;B.diff=ZS;B.endOf=lA;B.format=sA;B.from=rA;B.fromNow=iA;B.to=oA;B.toNow=aA;B.get=n1;B.invalidAt=yA;B.isAfter=qS;B.isBefore=GS;B.isBetween=KS;B.isSame=QS;B.isSameOrAfter=JS;B.isSameOrBefore=XS;B.isValid=gA;B.lang=yy;B.locale=_y;B.localeData=vy;B.max=gS;B.min=mS;B.parsingFlags=_A;B.set=s1;B.startOf=cA;B.subtract=US;B.toArray=fA;B.toObject=pA;B.toDate=dA;B.toISOString=tA;B.inspect=nA;typeof Symbol<"u"&&Symbol.for!=null&&(B[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});B.toJSON=mA;B.toString=eA;B.unix=hA;B.valueOf=uA;B.creationData=vA;B.eraName=IA;B.eraNarrow=SA;B.eraAbbr=AA;B.eraYear=bA;B.year=K_;B.isLeapYear=t1;B.weekYear=NA;B.isoWeekYear=OA;B.quarter=B.quarters=jA;B.month=ey;B.daysInMonth=d1;B.week=B.weeks=w1;B.isoWeek=B.isoWeeks=E1;B.weeksInYear=LA;B.weeksInWeekYear=FA;B.isoWeeksInYear=xA;B.isoWeeksInISOWeekYear=VA;B.date=Sy;B.day=B.days=O1;B.weekday=x1;B.isoWeekday=V1;B.dayOfYear=$A;B.hour=B.hours=H1;B.minute=B.minutes=BA;B.second=B.seconds=HA;B.millisecond=B.milliseconds=Ay;B.utcOffset=AS;B.utc=RS;B.local=CS;B.parseZone=PS;B.hasAlignedHourOffset=kS;B.isDST=MS;B.isLocal=NS;B.isUtcOffset=OS;B.isUtc=fy;B.isUTC=fy;B.zoneAbbr=zA;B.zoneName=YA;B.dates=an("dates accessor is deprecated. Use date instead.",Sy);B.months=an("months accessor is deprecated. Use month instead",ey);B.years=an("years accessor is deprecated. Use year instead",K_);B.zone=an("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bS);B.isDSTShifted=an("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",DS);function qA(t){return Ge(t*1e3)}function GA(){return Ge.apply(null,arguments).parseZone()}function by(t){return t}var xe=Oh.prototype;xe.calendar=NI;xe.longDateFormat=LI;xe.invalidDate=UI;xe.ordinal=BI;xe.preparse=by;xe.postformat=by;xe.relativeTime=WI;xe.pastFuture=zI;xe.set=MI;xe.eras=wA;xe.erasParse=EA;xe.erasConvertYear=TA;xe.erasAbbrRegex=CA;xe.erasNameRegex=RA;xe.erasNarrowRegex=PA;xe.months=c1;xe.monthsShort=l1;xe.monthsParse=h1;xe.monthsRegex=p1;xe.monthsShortRegex=f1;xe.week=g1;xe.firstDayOfYear=v1;xe.firstDayOfWeek=y1;xe.weekdays=P1;xe.weekdaysMin=M1;xe.weekdaysShort=k1;xe.weekdaysParse=N1;xe.weekdaysRegex=L1;xe.weekdaysShortRegex=F1;xe.weekdaysMinRegex=U1;xe.isPM=$1;xe.meridiem=W1;function fc(t,e,n,s){var r=ps(),i=Bn().set(s,e);return r[n](i,t)}function Ry(t,e,n){if(cs(t)&&(e=t,t=void 0),t=t||"",e!=null)return fc(t,e,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=fc(t,s,n,"month");return r}function Xh(t,e,n,s){typeof t=="boolean"?(cs(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,cs(e)&&(n=e,e=void 0),e=e||"");var r=ps(),i=t?r._week.dow:0,o,c=[];if(n!=null)return fc(e,(n+i)%7,s,"day");for(o=0;o<7;o++)c[o]=fc(e,(o+i)%7,s,"day");return c}function KA(t,e){return Ry(t,e,"months")}function QA(t,e){return Ry(t,e,"monthsShort")}function JA(t,e,n){return Xh(t,e,n,"weekdays")}function XA(t,e,n){return Xh(t,e,n,"weekdaysShort")}function ZA(t,e,n){return Xh(t,e,n,"weekdaysMin")}Ls("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Ae(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});J.lang=an("moment.lang is deprecated. Use moment.locale instead.",Ls);J.langData=an("moment.langData is deprecated. Use moment.localeData instead.",ps);var qn=Math.abs;function eb(){var t=this._data;return this._milliseconds=qn(this._milliseconds),this._days=qn(this._days),this._months=qn(this._months),t.milliseconds=qn(t.milliseconds),t.seconds=qn(t.seconds),t.minutes=qn(t.minutes),t.hours=qn(t.hours),t.months=qn(t.months),t.years=qn(t.years),this}function Cy(t,e,n,s){var r=In(e,n);return t._milliseconds+=s*r._milliseconds,t._days+=s*r._days,t._months+=s*r._months,t._bubble()}function tb(t,e){return Cy(this,t,e,1)}function nb(t,e){return Cy(this,t,e,-1)}function Tp(t){return t<0?Math.floor(t):Math.ceil(t)}function sb(){var t=this._milliseconds,e=this._days,n=this._months,s=this._data,r,i,o,c,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=Tp(Ou(n)+e)*864e5,e=0,n=0),s.milliseconds=t%1e3,r=en(t/1e3),s.seconds=r%60,i=en(r/60),s.minutes=i%60,o=en(i/60),s.hours=o%24,e+=en(o/24),l=en(Py(e)),n+=l,e-=Tp(Ou(l)),c=en(n/12),n%=12,s.days=e,s.months=n,s.years=c,this}function Py(t){return t*4800/146097}function Ou(t){return t*146097/4800}function rb(t){if(!this.isValid())return NaN;var e,n,s=this._milliseconds;if(t=cn(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+s/864e5,n=this._months+Py(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Ou(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return e*24+s/36e5;case"minute":return e*1440+s/6e4;case"second":return e*86400+s/1e3;case"millisecond":return Math.floor(e*864e5)+s;default:throw new Error("Unknown unit "+t)}}function ms(t){return function(){return this.as(t)}}var ky=ms("ms"),ib=ms("s"),ob=ms("m"),ab=ms("h"),cb=ms("d"),lb=ms("w"),ub=ms("M"),hb=ms("Q"),db=ms("y"),fb=ky;function pb(){return In(this)}function mb(t){return t=cn(t),this.isValid()?this[t+"s"]():NaN}function br(t){return function(){return this.isValid()?this._data[t]:NaN}}var gb=br("milliseconds"),_b=br("seconds"),yb=br("minutes"),vb=br("hours"),wb=br("days"),Eb=br("months"),Tb=br("years");function Ib(){return en(this.days()/7)}var Qn=Math.round,Gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sb(t,e,n,s,r){return r.relativeTime(e||1,!!n,t,s)}function Ab(t,e,n,s){var r=In(t).abs(),i=Qn(r.as("s")),o=Qn(r.as("m")),c=Qn(r.as("h")),l=Qn(r.as("d")),h=Qn(r.as("M")),d=Qn(r.as("w")),p=Qn(r.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||c<=1&&["h"]||c<n.h&&["hh",c]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||h<=1&&["M"]||h<n.M&&["MM",h]||p<=1&&["y"]||["yy",p],m[2]=e,m[3]=+t>0,m[4]=s,Sb.apply(null,m)}function bb(t){return t===void 0?Qn:typeof t=="function"?(Qn=t,!0):!1}function Rb(t,e){return Gr[t]===void 0?!1:e===void 0?Gr[t]:(Gr[t]=e,t==="s"&&(Gr.ss=e-1),!0)}function Cb(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=Gr,r,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(s=Object.assign({},Gr,e),e.s!=null&&e.ss==null&&(s.ss=e.s-1)),r=this.localeData(),i=Ab(this,!n,s,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var Zl=Math.abs;function Ur(t){return(t>0)-(t<0)||+t}function el(){if(!this.isValid())return this.localeData().invalidDate();var t=Zl(this._milliseconds)/1e3,e=Zl(this._days),n=Zl(this._months),s,r,i,o,c=this.asSeconds(),l,h,d,p;return c?(s=en(t/60),r=en(s/60),t%=60,s%=60,i=en(n/12),n%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=c<0?"-":"",h=Ur(this._months)!==Ur(c)?"-":"",d=Ur(this._days)!==Ur(c)?"-":"",p=Ur(this._milliseconds)!==Ur(c)?"-":"",l+"P"+(i?h+i+"Y":"")+(n?h+n+"M":"")+(e?d+e+"D":"")+(r||s||t?"T":"")+(r?p+r+"H":"")+(s?p+s+"M":"")+(t?p+o+"S":"")):"P0D"}var Pe=Xc.prototype;Pe.isValid=ES;Pe.abs=eb;Pe.add=tb;Pe.subtract=nb;Pe.as=rb;Pe.asMilliseconds=ky;Pe.asSeconds=ib;Pe.asMinutes=ob;Pe.asHours=ab;Pe.asDays=cb;Pe.asWeeks=lb;Pe.asMonths=ub;Pe.asQuarters=hb;Pe.asYears=db;Pe.valueOf=fb;Pe._bubble=sb;Pe.clone=pb;Pe.get=mb;Pe.milliseconds=gb;Pe.seconds=_b;Pe.minutes=yb;Pe.hours=vb;Pe.days=wb;Pe.weeks=Ib;Pe.months=Eb;Pe.years=Tb;Pe.humanize=Cb;Pe.toISOString=el;Pe.toString=el;Pe.toJSON=el;Pe.locale=_y;Pe.localeData=vy;Pe.toIsoString=an("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",el);Pe.lang=yy;ie("X",0,0,"unix");ie("x",0,0,"valueOf");te("x",Gc);te("X",KI);Ue("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});Ue("x",function(t,e,n){n._d=new Date(Ae(t))});//! moment.js
26J.version="2.30.1";PI(Ge);J.fn=B;J.min=_S;J.max=yS;J.now=vS;J.utc=Bn;J.unix=qA;J.months=KA;J.isDate=Go;J.locale=Ls;J.invalid=Wc;J.duration=In;J.isMoment=vn;J.weekdays=JA;J.parseZone=GA;J.localeData=ps;J.isDuration=$a;J.monthsShort=QA;J.weekdaysMin=ZA;J.defineLocale=Wh;J.updateLocale=G1;J.locales=K1;J.weekdaysShort=XA;J.normalizeUnits=cn;J.relativeTimeRounding=bb;J.relativeTimeThreshold=Rb;J.calendarFormat=WS;J.prototype=B;J.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Pb={name:"TheFooter",components:{},props:[],setup(){const t="1.2.0";
26let e=J().year();return{otVersion:t,currentYear:e}}},kb={class:"block footer--dark footer"},Mb={class:"container grid grid--1x2 footer__sections"},Db={class:"footer__brand"},Nb={class:"footer__copyright"},Ob={class:"footer__version"};function xb(t,e,n,s,r,i){return we(),ke("footer",kb,[oe("div",Mb,[oe("div",Db,[e[0]||(e[0]=oe("a",{class:"nav__brand",href:"/"},[oe("img",{class:"footer-logo-text logo-primary",src:U_,alt:"Not Easily Squished Logo"})],-1)),oe("p",Nb," Copyright © "+kn(s.currentYear)+". Not Easily Squished and Oncetold. ",1),oe("p",Ob,"Website Version: "+kn(s.otVersion),1)]),e[1]||(e[1]=$n('<section class="footer__section"><div class="footer__navigation"><ul class="list"><li> Get Tougher: <a href="https://podcastworthy.com/" target="_blank">Podcast Worthy</a>  <a href="https://oncetold.com/learn" target="_blank">Learn</a>  <a href="https://oncetold.com/book" target="_blank">Get the Book</a></li><li> Subscribe: <a href="https://feeds.oncetold.net/80000018" target="_blank">RSS</a>  <a href="https://pod.link/1504157398" target="_blank">Podlink</a>  <a href="https://podcastindex.org/podcast/6014487" target="_blank">Podcast Index</a>  <a href="https://podverse.fm/podcast/Lm6edZGO2" target="_blank">Podverse</a>  </li><li> Listen: <a href="https://truefans.fm/not-easily-squished" target="_blank">TrueFans</a>  <a href="https://podcasts.apple.com/us/podcast/not-easily-squished/id1504157398" target="_blank">Apple Podcasts</a>  <a href="https://open.spotify.com/show/5Rn8QSP6mq5DfZICBN0dfx" target="_blank">Spotify</a>  <a href="https://music.amazon.com/podcasts/eb115cc0-4248-435f-88d7-842d9f34a4be/not-easily-squished" target="_blank">Amazon Music</a>  </li><li> Extras: <a href="/about">About</a>  <a href="https://kylebondo.com/" target="_blank">Hire Me</a>  <a href="https://podwrecked.com/" target="_blank">Podwrecked</a>  </li><li> Hosting: <a href="https://oncetold.com" target="_blank">Oncetold</a>  <a href="https://oncetold.cloud" target="_blank">Oncetold Login</a>  <a href="https://podnews.net/podcast/iq6f?1756315886" target="_blank">Stats</a></li></ul></div></section>',1))])])}const Vb=Ke(Pb,[["render",xb]]),Lb={components:{TheHeader:CI,TheFooter:Vb}};function Fb(t,e,n,s,r,i){const o=dt("TheHeader"),c=dt("router-view"),l=dt("TheFooter");return we(),ke(Tt,null,[ze(o),ze(c),ze(l)],64)}const My=Ke(Lb,[["render",Fb]]),Ub=()=>{};var xu={},Ip={};/**
27 * @license
28 * Copyright 2017 Google LLC
29 *
30 * Licensed under the Apache License, Version 2.0 (the "License");
31 * you may not use this file except in compliance with the License.
32 * You may obtain a copy of the License at
33 *
34 *   http://www.apache.org/licenses/LICENSE-2.0
35 *
36 * Unless required by applicable law or agreed to in writing, software
37 * distributed under the License is distributed on an "AS IS" BASIS,
38 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 * See the License for the specific language governing permissions and
40 * limitations under the License.
41 */const Dy=function(t){const e=[];let n=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=r&63|128):(r&64512)===55296&&s+1<t.length&&(t.charCodeAt(s+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++s)&1023),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=r&63|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=r&63|128)}return e},jb=function(t){const e=[];let n=0,s=0;for(;n<t.length;){const r=t[n++];if(r<128)e[s++]=String.fromCharCode(r);else if(r>191&&r<224){const i=t[n++];e[s++]=String.fromCharCode((r&31)<<6|i&63)}else if(r>239&&r<365){const i=t[n++],o=t[n++],c=t[n++],l=((r&7)<<18|(i&63)<<12|(o&63)<<6|c&63)-65536;e[s++]=String.fromCharCode(55296+(l>>10)),e[s++]=String.fromCharCode(56320+(l&1023))}else{const i=t[n++],o=t[n++];e[s++]=String.fromCharCode((r&15)<<12|(i&63)<<6|o&63)}}return e.join("")},Ny={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_,s=[];for(let r=0;r<t.length;r+=3){const i=t[r],o=r+1<t.length,c=o?t[r+1]:0,l=r+2<t.length,h=l?t[r+2]:0,d=i>>2,p=(i&3)<<4|c>>4;let m=(c&15)<<2|h>>6,v=h&63;l||(v=64,o||(m=64)),s.push(n[d],n[p],n[m],n[v])}return s.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Dy(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):jb(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<t.length;){const i=n[t.charAt(r++)],c=r<t.length?n[t.charAt(r)]:0;++r;
41const h=r<t.length?n[t.charAt(r)]:64;++r;const p=r<t.length?n[t.charAt(r)]:64;if(++r,i==null||c==null||h==null||p==null)throw new $b;const m=i<<2|c>>4;if(s.push(m),h!==64){const v=c<<4&240|h>>2;if(s.push(v),p!==64){const P=h<<6&192|p;s.push(P)}}}return s},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)}}};class $b extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Bb=function(t){const e=Dy(t);return Ny.encodeByteArray(e,!0)},pc=function(t){return Bb(t).replace(/\./g,"")},Oy=function(t){try{return Ny.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
42 * @license
43 * Copyright 2022 Google LLC
44 *
45 * Licensed under the Apache License, Version 2.0 (the "License");
46 * you may not use this file except in compliance with the License.
47 * You may obtain a copy of the License at
48 *
49 *   http://www.apache.org/licenses/LICENSE-2.0
50 *
51 * Unless required by applicable law or agreed to in writing, software
52 * distributed under the License is distributed on an "AS IS" BASIS,
53 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54 * See the License for the specific language governing permissions and
55 * limitations under the License.
56 */function Hb(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof xu<"u")return xu;throw new Error("Unable to locate global object.")}/**
57 * @license
58 * Copyright 2022 Google LLC
59 *
60 * Licensed under the Apache License, Version 2.0 (the "License");
61 * you may not use this file except in compliance with the License.
62 * You may obtain a copy of the License at
63 *
64 *   http://www.apache.org/licenses/LICENSE-2.0
65 *
66 * Unless required by applicable law or agreed to in writing, software
67 * distributed under the License is distributed on an "AS IS" BASIS,
68 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69 * See the License for the specific language governing permissions and
70 * limitations under the License.
71 */const Wb=()=>Hb().__FIREBASE_DEFAULTS__,zb=()=>{if(typeof process>"u"||typeof Ip>"u")return;const t=Ip.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Yb=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Oy(t[1]);return e&&JSON.parse(e)},tl=()=>{try{return Ub()||Wb()||zb()||Yb()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},xy=t=>tl()?.emulatorHosts?.[t],qb=t=>{const e=xy(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 s=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),s]:[e.substring(0,n),s]},Vy=()=>tl()?.config,Ly=t=>tl()?.[`_${t}`];/**
72 * @license
73 * Copyright 2017 Google LLC
74 *
75 * Licensed under the Apache License, Version 2.0 (the "License");
76 * you may not use this file except in compliance with the License.
77 * You may obtain a copy of the License at
78 *
79 *   http://www.apache.org/licenses/LICENSE-2.0
80 *
81 * Unless required by applicable law or agreed to in writing, software
82 * distributed under the License is distributed on an "AS IS" BASIS,
83 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
84 * See the License for the specific language governing permissions and
85 * limitations under the License.
86 */class Gb{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,s)=>{n?this.reject(n):this.resolve(s),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,s))}}}/**
87 * @license
88 * Copyright 2025 Google LLC
89 *
90 * Licensed under the Apache License, Version 2.0 (the "License");
91 * you may not use this file except in compliance with the License.
92 * You may obtain a copy of the License at
93 *
94 *   http://www.apache.org/licenses/LICENSE-2.0
95 *
96 * Unless required by applicable law or agreed to in writing, software
97 * distributed under the License is distributed on an "AS IS" BASIS,
98 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99 * See the License for the specific language governing permissions and
100 * limitations under the License.
101 */function Ei(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Fy(t){return(await fetch(t,{credentials:"include"})).ok}/**
102 * @license
103 * Copyright 2021 Google LLC
104 *
105 * Licensed under the Apache License, Version 2.0 (the "License");
106 * you may not use this file except in compliance with the License.
107 * You may obtain a copy of the License at
108 *
109 *   http://www.apache.org/licenses/LICENSE-2.0
110 *
111 * Unless required by applicable law or agreed to in writing, software
112 * distributed under the License is distributed on an "AS IS" BASIS,
113 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114 * See the License for the specific language governing permissions and
115 * limitations under the License.
116 */function Kb(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"},s=e||"demo-project",r=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/${s}`,aud:s,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...t};return[pc(JSON.stringify(n)),pc(JSON.stringify(o)),""].join(".")}const ho={};function Qb(){const t={prod:[],emulator:[]};for(const e of Object.keys(ho))ho[e]?t.emulator.push(e):t.prod.push(e);return t}function Jb(t){let e=document.getElementById(t),n=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),n=!0),{created:n,element:e}}let Sp=!1;function Uy(t,e){if(typeof window>"u"||typeof document>"u"||!Ei(window.location.host)||ho[t]===e||ho[t]||Sp)return;ho[t]=e;function n(m){return`__firebase__banner__${m}`}const s="__firebase__banner",i=Qb().prod.length>0;function o(){const m=document.getElementById(s);m&&m.remove()}function c(m){m.style.display="flex",m.style.background="#7faaf0",m.style.position="fixed",m.style.bottom="5px",m.style.left="5px",m.style.padding=".5em",m.style.borderRadius="5px",m.style.alignItems="center"}function l(m,v){m.setAttribute("width","24"),m.setAttribute("id",v),m.setAttribute("height","24"),m.setAttribute("viewBox","0 0 24 24"),m.setAttribute("fill","none"),m.style.marginLeft="-6px"}function h(){const m=document.createElement("span");return m.style.cursor="pointer",m.style.marginLeft="16px",m.style.fontSize="24px",m.innerHTML=" &times;",m.onclick=()=>{Sp=!0,o()},m}function d(m,v){m.setAttribute("id",v),m.innerText="Learn more",m.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",m.setAttribute("target","__blank"),m.style.paddingLeft="5px",m.style.textDecoration="underline"}function p(){const m=Jb(s),v=n("text"),P=document.getElementById(v)||document.createElement("span"),M=n("learnmore"),O=document.getElementById(M)||document.createElement("a"),$=n("preprendIcon"),U=document.getElementById($)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(m.created){const H=m.element;c(H),d(O,M);const q=h();l(U,$),H.append(U,P,O,q),document.body.appendChild(H)}i?(P.innerText="Preview backend disconnected.",U.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
117<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
118</g>
119<defs>
120<clipPath id="clip0_6013_33858">
121<rect width="24" height="24" fill="white"/>
122</clipPath>
123</defs>`):(U.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
124<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 
12412.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
125</g>
126<defs>
127<clipPath id="clip0_6083_34804">
128<rect width="24" height="24" fill="white"/>
129</clipPath>
130</defs>`,P.innerText="Preview backend running in this workspace."),P.setAttribute("id",v)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",p):p()}/**
131 * @license
132 * Copyright 2017 Google LLC
133 *
134 * Licensed under the Apache License, Version 2.0 (the "License");
135 * you may not use this file except in compliance with the License.
136 * You may obtain a copy of the License at
137 *
138 *   http://www.apache.org/licenses/LICENSE-2.0
139 *
140 * Unless required by applicable law or agreed to in writing, software
141 * distributed under the License is distributed on an "AS IS" BASIS,
142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
143 * See the License for the specific language governing permissions and
144 * limitations under the License.
145 */function Vt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Xb(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Vt())}function Zb(){const t=tl()?.forceEnvironment;if(t==="node")return!0;if(t==="browser")return!1;try{return Object.prototype.toString.call(xu.process)==="[object process]"}catch{return!1}}function eR(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function tR(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function nR(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function sR(){const t=Vt();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function rR(){return!Zb()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function iR(){try{return typeof indexedDB=="object"}catch{return!1}}function oR(){return new Promise((t,e)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(s);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(s),t(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{e(r.error?.message||"")}}catch(n){e(n)}})}/**
146 * @license
147 * Copyright 2017 Google LLC
148 *
149 * Licensed under the Apache License, Version 2.0 (the "License");
150 * you may not use this file except in compliance with the License.
151 * You may obtain a copy of the License at
152 *
153 *   http://www.apache.org/licenses/LICENSE-2.0
154 *
155 * Unless required by applicable law or agreed to in writing, software
156 * distributed under the License is distributed on an "AS IS" BASIS,
157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
158 * See the License for the specific language governing permissions and
159 * limitations under the License.
160 */const aR="FirebaseError";
160class gs extends Error{constructor(e,n,s){super(n),this.code=e,this.customData=s,this.name=aR,Object.setPrototypeOf(this,gs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Xo.prototype.create)}}class Xo{constructor(e,n,s){this.service=e,this.serviceName=n,this.errors=s}create(e,...n){const s=n[0]||{},r=`${this.service}/${e}`,i=this.errors[e],o=i?cR(i,s):"Error",c=`${this.serviceName}: ${o} (${r}).`;return new gs(r,c,s)}}function cR(t,e){return t.replace(lR,(n,s)=>{const r=e[s];return r!=null?String(r):`<${s}?>`})}const lR=/\{\$([^}]+)}/g;function uR(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function wr(t,e){if(t===e)return!0;const n=Object.keys(t),s=Object.keys(e);for(const r of n){if(!s.includes(r))return!1;const i=t[r],o=e[r];if(Ap(i)&&Ap(o)){if(!wr(i,o))return!1}else if(i!==o)return!1}for(const r of s)if(!n.includes(r))return!1;return!0}function Ap(t){return t!==null&&typeof t=="object"}/**
161 * @license
162 * Copyright 2017 Google LLC
163 *
164 * Licensed under the Apache License, Version 2.0 (the "License");
165 * you may not use this file except in compliance with the License.
166 * You may obtain a copy of the License at
167 *
168 *   http://www.apache.org/licenses/LICENSE-2.0
169 *
170 * Unless required by applicable law or agreed to in writing, software
171 * distributed under the License is distributed on an "AS IS" BASIS,
172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
173 * See the License for the specific language governing permissions and
174 * limitations under the License.
175 */function Zo(t){const e=[];for(const[n,s]of Object.entries(t))Array.isArray(s)?s.forEach(r=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(s));return e.length?"&"+e.join("&"):""}function Ki(t){const e={};return t.replace(/^\?/,"").split("&").forEach(s=>{if(s){const[r,i]=s.split("=");e[decodeURIComponent(r)]=decodeURIComponent(i)}}),e}function Qi(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function hR(t,e){const n=new dR(t,e);return n.subscribe.bind(n)}class dR{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(s=>{this.error(s)})}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,s){let r;if(e===void 0&&n===void 0&&s===void 0)throw new Error("Missing Observer.");fR(e,["next","error","complete"])?r=e:r={next:e,error:n,complete:s},r.next===void 0&&(r.next=eu),r.error===void 0&&(r.error=eu),r.complete===void 0&&(r.complete=eu);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),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(s){typeof console<"u"&&console.error&&console.error(s)}})}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 fR(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 eu(){}/**
176 * @license
177 * Copyright 2021 Google LLC
178 *
179 * Licensed under the Apache License, Version 2.0 (the "License");
180 * you may not use this file except in compliance with the License.
181 * You may obtain a copy of the License at
182 *
183 *   http://www.apache.org/licenses/LICENSE-2.0
184 *
185 * Unless required by applicable law or agreed to in writing, software
186 * distributed under the License is distributed on an "AS IS" BASIS,
187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
188 * See the License for the specific language governing permissions and
189 * limitations under the License.
190 */function Lt(t){return t&&t._delegate?t._delegate:t}class Er{constructor(e,n,s){this.name=e,this.instanceFactory=n,this.type=s,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}}/**
191 * @license
192 * Copyright 2019 Google LLC
193 *
194 * Licensed under the Apache License, Version 2.0 (the "License");
195 * you may not use this file except in compliance with the License.
196 * You may obtain a copy of the License at
197 *
198 *   http://www.apache.org/licenses/LICENSE-2.0
199 *
200 * Unless required by applicable law or agreed to in writing, software
201 * distributed under the License is distributed on an "AS IS" BASIS,
202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203 * See the License for the specific language governing permissions and
204 * limitations under the License.
205 */const ur="[DEFAULT]";/**
206 * @license
207 * Copyright 2019 Google LLC
208 *
209 * Licensed under the Apache License, Version 2.0 (the "License");
210 * you may not use this file except in compliance with the License.
211 * You may obtain a copy of the License at
212 *
213 *   http://www.apache.org/licenses/LICENSE-2.0
214 *
215 * Unless required by applicable law or agreed to in writing, software
216 * distributed under the License is distributed on an "AS IS" BASIS,
217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
218 * See the License for the specific language governing permissions and
219 * limitations under the License.
220 */class pR{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 s=new Gb;if(this.instancesDeferred.set(n,s),this.isInitialized(n)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:n});r&&s.resolve(r)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){const n=this.normalizeInstanceIdentifier(e?.identifier),s=e?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(r){if(s)return null;throw r}else{if(s)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(gR(e))try{this.getOrInitializeService({instanceIdentifier:ur})}catch{}for(const[n,s]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:r});s.resolve(i)}catch{}}}}clearInstance(e=ur){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=ur){return this.instances.has(e)}getOptions(e=ur){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:s,options:n});for(const[i,o]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(i);s===c&&o.resolve(r)}return r}onInit(e,n){const s=this.normalizeInstanceIdentifier(n),r=this.onInitCallbacks.get(s)??new Set;r.add(e),this.onInitCallbacks.set(s,r);const i=this.instances.get(s);return i&&e(i,s),()=>{r.delete(e)}}invokeOnInitCallbacks(e,n){const s=this.onInitCallbacks.get(n);if(s)for(const r of s)try{r(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let s=this.instances.get(e);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:mR(e),options:n}),this.instances.set(e,s),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(s,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,s)}catch{}return s||null}normalizeInstanceIdentifier(e=ur){return this.component?this.component.multipleInstances?e:ur:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function mR(t){return t===ur?void 0:t}function gR(t){return t.instantiationMode==="EAGER"}/**
221 * @license
222 * Copyright 2019 Google LLC
223 *
224 * Licensed under the Apache License, Version 2.0 (the "License");
225 * you may not use this file except in compliance with the License.
226 * You may obtain a copy of the License at
227 *
228 *   http://www.apache.org/licenses/LICENSE-2.0
229 *
230 * Unless required by applicable law or agreed to in writing, software
231 * distributed under the License is distributed on an "AS IS" BASIS,
232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
233 * See the License for the specific language governing permissions and
234 * limitations under the License.
235 */class _R{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 pR(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
236 * @license
237 * Copyright 2017 Google LLC
238 *
239 * Licensed under the Apache License, Version 2.0 (the "License");
240 * you may not use this file except in compliance with the License.
241 * You may obtain a copy of the License at
242 *
243 *   http://www.apache.org/licenses/LICENSE-2.0
244 *
245 * Unless required by applicable law or agreed to in writing, software
246 * distributed under the License is distributed on an "AS IS" BASIS,
247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
248 * See the License for the specific language governing permissions and
249 * limitations under the License.
250 */var Te;(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"})(Te||(Te={}));const yR={debug:Te.DEBUG,verbose:Te.VERBOSE,info:Te.INFO,warn:Te.WARN,error:Te.ERROR,silent:Te.SILENT},vR=Te.INFO,wR={[Te.DEBUG]:"log",[Te.VERBOSE]:"log",[Te.INFO]:"info",[Te.WARN]:"warn",[Te.ERROR]:"error"},ER=(t,e,...n)=>{if(e<t.logLevel)return;const s=new Date().toISOString(),r=wR[e];if(r)console[r](`[${s}]  ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Zh{constructor(e){this.name=e,this._logLevel=vR,this._logHandler=ER,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Te))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?yR[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,Te.DEBUG,...e),this._logHandler(this,Te.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Te.VERBOSE,...e),this._logHandler(this,Te.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Te.INFO,...e),this._logHandler(this,Te.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Te.WARN,...e),this._logHandler(this,Te.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Te.ERROR,...e),this._logHandler(this,Te.ERROR,...e)}}const TR=(t,e)=>e.some(n=>t instanceof n);let bp,Rp;function IR(){return bp||(bp=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function SR(){return Rp||(Rp=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const jy=new WeakMap,Vu=new WeakMap,$y=new WeakMap,tu=new WeakMap,ed=new WeakMap;function AR(t){const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(Fs(t.result)),r()},o=()=>{s(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&jy.set(n,t)}).catch(()=>{}),ed.set(e,t),e}function bR(t){if(Vu.has(t))return;const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),r()},o=()=>{s(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Vu.set(t,e)}let Lu={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Vu.get(t);if(e==="objectStoreNames")return t.objectStoreNames||$y.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fs(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 RR(t){Lu=t(Lu)}function CR(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const s=t.call(nu(this),e,...n);return $y.set(s,e.sort?e.sort():[e]),Fs(s)}:SR().includes(t)?function(...e){return t.apply(nu(this),e),Fs(jy.get(this))}:function(...e){return Fs(t.apply(nu(this),e))}}function PR(t){return typeof t=="function"?CR(t):(t instanceof IDBTransaction&&bR(t),TR(t,IR())?new Proxy(t,Lu):t)}function Fs(t){if(t instanceof IDBRequest)return AR(t);if(tu.has(t))return tu.get(t);const e=PR(t);return e!==t&&(tu.set(t,e),ed.set(e,t)),e}const nu=t=>ed.get(t);function kR(t,e,{blocked:n,upgrade:s,blocking:r,terminated:i}={}){const o=indexedDB.open(t,e),c=Fs(o);return s&&o.addEventListener("upgradeneeded",l=>{s(Fs(o.result),l.oldVersion,l.newVersion,Fs(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),c.then(l=>{i&&l.addEventListener("close",()=>i()),r&&l.addEventListener("versionchange",h=>r(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}const MR=["get","getKey","getAll","getAllKeys","count"],DR=["put","add","delete","clear"],su=new Map;function Cp(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(su.get(e))return su.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,r=DR.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(r||MR.includes(n)))return;const i=async function(o,...c){const l=this.transaction(o,r?"readwrite":"readonly");let h=l.store;
250return s&&(h=h.index(c.shift())),(await Promise.all([h[n](...c),r&&l.done]))[0]};return su.set(e,i),i}RR(t=>({...t,get:(e,n,s)=>Cp(e,n)||t.get(e,n,s),has:(e,n)=>!!Cp(e,n)||t.has(e,n)}));/**
251 * @license
252 * Copyright 2019 Google LLC
253 *
254 * Licensed under the Apache License, Version 2.0 (the "License");
255 * you may not use this file except in compliance with the License.
256 * You may obtain a copy of the License at
257 *
258 *   http://www.apache.org/licenses/LICENSE-2.0
259 *
260 * Unless required by applicable law or agreed to in writing, software
261 * distributed under the License is distributed on an "AS IS" BASIS,
262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263 * See the License for the specific language governing permissions and
264 * limitations under the License.
265 */class NR{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(OR(n)){const s=n.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(n=>n).join(" ")}}function OR(t){return t.getComponent()?.type==="VERSION"}const Fu="@firebase/app",Pp="0.14.2";/**
266 * @license
267 * Copyright 2019 Google LLC
268 *
269 * Licensed under the Apache License, Version 2.0 (the "License");
270 * you may not use this file except in compliance with the License.
271 * You may obtain a copy of the License at
272 *
273 *   http://www.apache.org/licenses/LICENSE-2.0
274 *
275 * Unless required by applicable law or agreed to in writing, software
276 * distributed under the License is distributed on an "AS IS" BASIS,
277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
278 * See the License for the specific language governing permissions and
279 * limitations under the License.
280 */const ls=new Zh("@firebase/app"),xR="@firebase/app-compat",VR="@firebase/analytics-compat",LR="@firebase/analytics",FR="@firebase/app-check-compat",UR="@firebase/app-check",jR="@firebase/auth",$R="@firebase/auth-compat",BR="@firebase/database",HR="@firebase/data-connect",WR="@firebase/database-compat",zR="@firebase/functions",YR="@firebase/functions-compat",qR="@firebase/installations",GR="@firebase/installations-compat",KR="@firebase/messaging",QR="@firebase/messaging-compat",JR="@firebase/performance",XR="@firebase/performance-compat",ZR="@firebase/remote-config",eC="@firebase/remote-config-compat",tC="@firebase/storage",nC="@firebase/storage-compat",sC="@firebase/firestore",rC="@firebase/ai",iC="@firebase/firestore-compat",oC="firebase",aC="12.2.0";/**
281 * @license
282 * Copyright 2019 Google LLC
283 *
284 * Licensed under the Apache License, Version 2.0 (the "License");
285 * you may not use this file except in compliance with the License.
286 * You may obtain a copy of the License at
287 *
288 *   http://www.apache.org/licenses/LICENSE-2.0
289 *
290 * Unless required by applicable law or agreed to in writing, software
291 * distributed under the License is distributed on an "AS IS" BASIS,
292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
293 * See the License for the specific language governing permissions and
294 * limitations under the License.
295 */const Uu="[DEFAULT]",cC={[Fu]:"fire-core",[xR]:"fire-core-compat",[LR]:"fire-analytics",[VR]:"fire-analytics-compat",[UR]:"fire-app-check",[FR]:"fire-app-check-compat",[jR]:"fire-auth",[$R]:"fire-auth-compat",[BR]:"fire-rtdb",[HR]:"fire-data-connect",[WR]:"fire-rtdb-compat",[zR]:"fire-fn",[YR]:"fire-fn-compat",[qR]:"fire-iid",[GR]:"fire-iid-compat",[KR]:"fire-fcm",[QR]:"fire-fcm-compat",[JR]:"fire-perf",[XR]:"fire-perf-compat",[ZR]:"fire-rc",[eC]:"fire-rc-compat",[tC]:"fire-gcs",[nC]:"fire-gcs-compat",[sC]:"fire-fst",[iC]:"fire-fst-compat",[rC]:"fire-vertex","fire-js":"fire-js",[oC]:"fire-js-all"};/**
296 * @license
297 * Copyright 2019 Google LLC
298 *
299 * Licensed under the Apache License, Version 2.0 (the "License");
300 * you may not use this file except in compliance with the License.
301 * You may obtain a copy of the License at
302 *
303 *   http://www.apache.org/licenses/LICENSE-2.0
304 *
305 * Unless required by applicable law or agreed to in writing, software
306 * distributed under the License is distributed on an "AS IS" BASIS,
307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
308 * See the License for the specific language governing permissions and
309 * limitations under the License.
310 */const mc=new Map,lC=new Map,ju=new Map;function kp(t,e){try{t.container.addComponent(e)}catch(n){ls.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function ci(t){const e=t.name;if(ju.has(e))return ls.debug(`There were multiple attempts to register component ${e}.`),!1;ju.set(e,t);for(const n of mc.values())kp(n,t);for(const n of lC.values())kp(n,t);return!0}function td(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function hn(t){return t==null?!1:t.settings!==void 0}/**
311 * @license
312 * Copyright 2019 Google LLC
313 *
314 * Licensed under the Apache License, Version 2.0 (the "License");
315 * you may not use this file except in compliance with the License.
316 * You may obtain a copy of the License at
317 *
318 *   http://www.apache.org/licenses/LICENSE-2.0
319 *
320 * Unless required by applicable law or agreed to in writing, software
321 * distributed under the License is distributed on an "AS IS" BASIS,
322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
323 * See the License for the specific language governing permissions and
324 * limitations under the License.
325 */const uC={"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
325d-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."},Us=new Xo("app","Firebase",uC);/**
326 * @license
327 * Copyright 2019 Google LLC
328 *
329 * Licensed under the Apache License, Version 2.0 (the "License");
330 * you may not use this file except in compliance with the License.
331 * You may obtain a copy of the License at
332 *
333 *   http://www.apache.org/licenses/LICENSE-2.0
334 *
335 * Unless required by applicable law or agreed to in writing, software
336 * distributed under the License is distributed on an "AS IS" BASIS,
337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
338 * See the License for the specific language governing permissions and
339 * limitations under the License.
340 */class hC{constructor(e,n,s){this._isDeleted=!1,this._options={...e},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new Er("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 Us.create("app-deleted",{appName:this._name})}}/**
341 * @license
342 * Copyright 2019 Google LLC
343 *
344 * Licensed under the Apache License, Version 2.0 (the "License");
345 * you may not use this file except in compliance with the License.
346 * You may obtain a copy of the License at
347 *
348 *   http://www.apache.org/licenses/LICENSE-2.0
349 *
350 * Unless required by applicable law or agreed to in writing, software
351 * distributed under the License is distributed on an "AS IS" BASIS,
352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
353 * See the License for the specific language governing permissions and
354 * limitations under the License.
355 */const Ti=aC;function By(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const s={name:Uu,automaticDataCollectionEnabled:!0,...e},r=s.name;if(typeof r!="string"||!r)throw Us.create("bad-app-name",{appName:String(r)});if(n||(n=Vy()),!n)throw Us.create("no-options");const i=mc.get(r);if(i){if(wr(n,i.options)&&wr(s,i.config))return i;throw Us.create("duplicate-app",{appName:r})}const o=new _R(r);for(const l of ju.values())o.addComponent(l);const c=new hC(n,s,o);return mc.set(r,c),c}function Hy(t=Uu){const e=mc.get(t);if(!e&&t===Uu&&Vy())return By();if(!e)throw Us.create("no-app",{appName:t});return e}function js(t,e,n){let s=cC[t]??t;n&&(s+=`-${n}`);const r=s.match(/\s|\//),i=e.match(/\s|\//);if(r||i){const o=[`Unable to register library "${s}" with version "${e}":`];r&&o.push(`library name "${s}" contains illegal characters (whitespace or "/")`),r&&i&&o.push("and"),i&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),ls.warn(o.join(" "));return}ci(new Er(`${s}-version`,()=>({library:s,version:e}),"VERSION"))}/**
356 * @license
357 * Copyright 2021 Google LLC
358 *
359 * Licensed under the Apache License, Version 2.0 (the "License");
360 * you may not use this file except in compliance with the License.
361 * You may obtain a copy of the License at
362 *
363 *   http://www.apache.org/licenses/LICENSE-2.0
364 *
365 * Unless required by applicable law or agreed to in writing, softw
365are
366 * distributed under the License is distributed on an "AS IS" BASIS,
367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
368 * See the License for the specific language governing permissions and
369 * limitations under the License.
370 */const dC="firebase-heartbeat-database",fC=1,ko="firebase-heartbeat-store";let ru=null;function Wy(){return ru||(ru=kR(dC,fC,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(ko)}catch(n){console.warn(n)}}}}).catch(t=>{throw Us.create("idb-open",{originalErrorMessage:t.message})})),ru}async function pC(t){try{const n=(await Wy()).transaction(ko),s=await n.objectStore(ko).get(zy(t));return await n.done,s}catch(e){if(e instanceof gs)ls.warn(e.message);else{const n=Us.create("idb-get",{originalErrorMessage:e?.message});ls.warn(n.message)}}}async function Mp(t,e){try{const s=(await Wy()).transaction(ko,"readwrite");await s.objectStore(ko).put(e,zy(t)),await s.done}catch(n){if(n instanceof gs)ls.warn(n.message);else{const s=Us.create("idb-set",{originalErrorMessage:n?.message});ls.warn(s.message)}}}function zy(t){return`${t.name}!${t.options.appId}`}/**
371 * @license
372 * Copyright 2021 Google LLC
373 *
374 * Licensed under the Apache License, Version 2.0 (the "License");
375 * you may not use this file except in compliance with the License.
376 * You may obtain a copy of the License at
377 *
378 *   http://www.apache.org/licenses/LICENSE-2.0
379 *
380 * Unless required by applicable law or agreed to in writing, software
381 * distributed under the License is distributed on an "AS IS" BASIS,
382 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
383 * See the License for the specific language governing permissions and
384 * limitations under the License.
385 */const mC=1024,gC=30;class _C{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new vC(n),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=Dp();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(r=>r.date===s))return;if(this._heartbeatsCache.heartbeats.push({date:s,agent:n}),this._heartbeatsCache.heartbeats.length>gC){const r=wC(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(r,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){ls.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const e=Dp(),{heartbeatsToSend:n,unsentEntries:s}=yC(this._heartbeatsCache.heartbeats),r=pc(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(e){return ls.warn(e),""}}}function Dp(){return new Date().toISOString().substring(0,10)}function yC(t,e=mC){const n=[];let s=t.slice();for(const r of t){const i=n.find(o=>o.agent===r.agent);if(i){if(i.dates.push(r.date),Np(n)>e){i.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),Np(n)>e){n.pop();break}s=s.slice(1)}return{heartbeatsToSend:n,unsentEntries:s}}class vC{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return iR()?oR().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await pC(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const s=await this.read();return Mp(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const s=await this.read();return Mp(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function Np(t){return pc(JSON.stringify({version:2,heartbeats:t})).length}function wC(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let s=1;s<t.length;s++)t[s].date<n&&(n=t[s].date,e=s);return e}/**
386 * @license
387 * Copyright 2019 Google LLC
388 *
389 * Licensed under the Apache License, Version 2.0 (the "License");
390 * you may not use this file except in compliance with the License.
391 * You may obtain a copy of the License at
392 *
393 *   http://www.apache.org/licenses/LICENSE-2.0
394 *
395 * Unless required by applicable law or agreed to in writing, software
396 * distributed under the License is distributed on an "AS IS" BASIS,
397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
398 * See the License for the specific language governing permissions and
399 * limitations under the License.
400 */function EC(t){ci(new Er("platform-logger",e=>new NR(e),"PRIVATE")),ci(new Er("heartbeat",e=>new _C(e),"PRIVATE")),js(Fu,Pp,t),js(Fu,Pp,"esm2020"),js("fire-js","")}EC("");var TC="firebase",IC="12.2.1";/**
401 * @license
402 * Copyright 2020 Google LLC
403 *
404 * Licensed under the Apache License, Version 2.0 (the "License");
405 * you may not use this file except in compliance with the License.
406 * You may obtain a copy of the License at
407 *
408 *   http://www.apache.org/licenses/LICENSE-2.0
409 *
410 * Unless required by applicable law or agreed to in writing, software
411 * distributed under the License is distributed on an "AS IS" BASIS,
412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
413 * See the License for the specific language governing permissions and
414 * limitations under the License.
415 */js(TC,IC,"app");function Yy(){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 SC=Yy,qy=new Xo("auth","Firebase",Yy());/**
416 * @license
417 * Copyright 2020 Google LLC
418 *
419 * Licensed under the Apache License, Version 2.0 (the "License");
420 * you may not use this file except in compliance with the License.
421 * You may obtain a copy of the License at
422 *
423 *   http://www.apache.org/licenses/LICENSE-2.0
424 *
425 * Unless required by applicable law or agreed to in writing, software
426 * distributed under the License is distributed on an "AS IS" BASIS,
427 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
428 * See the License for the specific language governing permissions and
429 * limitations under the License.
430 */const gc=new Zh("@firebase/auth");function AC(t,...e){gc.logLevel<=Te.WARN&&gc.warn(`Auth (${Ti}): ${t}`,...e)}function Ha(t,...e){gc.logLevel<=Te.ERROR&&gc.error(`Auth (${Ti}): ${t}`,...e)}/**
431 * @license
432 * Copyright 2020 Google LLC
433 *
434 * Licensed under the Apache License, Version 2.0 (the "License");
435 * you may not use this file except in compliance with the License.
436 * You may obtain a copy of the License at
437 *
438 *   http://www.apache.org/licenses/LICENSE-2.0
439 *
440 * Unless required by applicable law or agreed to in writing, software
441 * distributed under the License is distributed on an "AS IS" BASIS,
442 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
443 * See the License for the specific language governing permissions and
444 * limitations under the License.
445 */function wn(t,...e){throw nd(t,...e)}function Dn(t,...e){return nd(t,...e)}function Gy(t,e,n){const s={...SC(),[e]:n};return new Xo("auth","Firebase",s).create(e,{appName:t.name})}function $s(t){return Gy(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function nd(t,...e){if(typeof t!="string"){const n=e[0],s=[...e.slice(1)];return s[0]&&(s[0].appName=t.name),t._errorFactory.create(n,...s)}return qy.create(t,...e)}function ue(t,e,...n){if(!t)throw nd(e,...n)}function ts(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Ha(e),new Error(e)}function us(t,e){t||ts(e)}/**
446 * @license
447 * Copyright 2020 Google LLC
448 *
449 * Licensed under the Apache License, Version 2.0 (the "License");
450 * you may not use this file except in compliance with the License.
451 * You may obtain a copy of the License at
452 *
453 *   http://www.apache.org/licenses/LICENSE-2.0
454 *
455 * Unless required by applicable law or agreed to in writing, software
456 * distributed under the License is distributed on an "AS IS" BASIS,
457 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
458 * See the License for the specific language governing permissions and
459 * limitations under the License.
460 */function $u(){return typeof self<"u"&&self.location?.href||""}function bC(){return Op()==="http:"||Op()==="https:"}function Op(){return typeof self<"u"&&self.location?.protocol||null}/**
461 * @license
462 * Copyright 2020 Google LLC
463 *
464 * Licensed under the Apache License, Version 2.0 (the "License");
465 * you may not use this file except in compliance with the License.
466 * You may obtain a copy of the License at
467 *
468 *   http://www.apache.org/licenses/LICENSE-2.0
469 *
470 * Unless required by applicable law or agreed to in writing, software
471 * distributed under the License is distributed on an "AS IS" BASIS,
472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
473 * See the License for the specific language governing permissions and
474 * limitations under the License.
475 */function RC(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(bC()||tR()||"connection"in navigator)?navigator.onLine:!0}function CC(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/**
476 * @license
477 * Copyright 2020 Google LLC
478 *
479 * Licensed under the Apache License, Version 2.0 (the "License");
480 * you may not use this file except in compliance with the License.
481 * You may obtain a copy of the License at
482 *
483 *   http://www.apache.org/licenses/LICENSE-2.0
484 *
485 * Unless required by applicable law or agreed to in writing, software
486 * distributed under the License is distributed on an "AS IS" BASIS,
487 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
488 * See the License for the specific language governing permissions and
489 * limitations under the License.
490 */class ea{constructor(e,n){this.shortDelay=e,this.longDelay=n,us(n>e,"Short delay should be less than long delay!"),this.isMobile=Xb()||nR()}get(){return RC()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
491 * @license
492 * Copyright 2020 Google LLC
493 *
494 * Licensed under the Apache License, Version 2.0 (the "License");
495 * you may not use this file except in compliance with the License.
496 * You may obtain a copy of the License at
497 *
498 *   http://www.apache.org/licenses/LICENSE-2.0
499 *
500 * Unless required by applicable law or agreed to in writing, software
501 * distributed under the License is distributed on an "AS IS" BASIS,
502 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503 * See the License for the specific language governing permissions and
504 * limitations under the License.
505 */function sd(t,e){us(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/**
506 * @license
507 * Copyright 2020 Google LLC
508 *
509 * Licensed under the Apache License, Version 2.0 (the "License");
510 * you may not use this file except in compliance with the License.
511 * You may obtain a copy of the License at
512 *
513 *   http://www.apache.org/licenses/LICENSE-2.0
514 *
515 * Unless required by applicable law or agreed to in writing, software
516 * distributed under the License is distributed on an "AS IS" BASIS,
517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
518 * See the License for the specific language governing permissions and
519 * limitations under the License.
520 */class Ky{static initialize(e,n,s){this.fetchImpl=e,n&&(this.headersImpl=n),s&&(this.responseImpl=s)}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;ts("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;ts("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;ts("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
521 * @license
522 * Copyright 2020 Google LLC
523 *
524 * Licensed under the Apache License, Version 2.0 (the "License");
525 * you may not use this file except in compliance with the License.
526 * You may obtain a copy of the License at
527 *
528 *   http://www.apache.org/licenses/LICENSE-2.0
529 *
530 * Unless required by applicable law or agreed to in writing, software
531 * distributed under the License is distributed on an "AS IS" BASIS,
532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
533 * See the License for the specific language governing permissions and
534 * limitations under the License.
535 */const PC={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-recaptcha-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"};/**
536 * @license
537 * Copyright 2020 Google LLC
538 *
539 * Licensed under the Apache License, Version 2.0 (the "License");
540 * you may not use this file except in compliance with the License.
541 * You may obtain a copy of the License at
542 *
543 *   http://www.apache.org/licenses/LICENSE-2.0
544 *
545 * Unless required by applicable law or agreed to in writing, software
546 * distributed under the License is distributed on an "AS IS" BASIS,
547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
548 * See the License for the specific language governing permissions and
549 * limitations under the License.
550 */const kC=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],MC=new ea(3e4,6e4);function Rr(t,e){return t.tenantId&&!e.tenantId?{...e,tenantId:t.tenantId}:e}async function er(t,e,n,s,r={}){return Qy(t,r,async()=>{let i={},o={};s&&(e==="GET"?o=s:i={body:JSON.stringify(s)});const c=Zo({key:t.config.apiKey,...o}).slice(1),l=await t._getAdditionalHeaders();l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode);const h={method:e,headers:l,...i};return eR()||(h.referrerPolicy="no-referrer"),t.emulatorConfig&&Ei(t.emulatorConfig.host)&&(h.credentials="include"),Ky.fetch()(await Jy(t,t.config.apiHost,n,c),h)})}async function Qy(t,e,n){t._canInitEmulator=!1;const s={...PC,...e};try{const r=new NC(t),i=await Promise.race([n(),r.promise]);r.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw Pa(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const c=i.ok?o.errorMessage:o.error.message,[l,h]=c.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Pa(t,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw Pa(t,"email-already-in-use",o);if(l==="USER_DISABLED")throw Pa(t,"user-disabled",o);const d=s[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(h)throw Gy(t,d,h);wn(t,d)}}catch(r){if(r instanceof gs)throw r;wn(t,"network-request-failed",{message:String(r)})}}async function nl(t,e,n,s,r={}){const i=await er(t,e,n,s,r);return"mfaPendingCredential"in i&&wn(t,"multi-factor-auth-required",{_serverResponse:i}),i}async function Jy(t,e,n,s){const r=`${e}${n}?${s}`,i=t,o=i.config.emulator?sd(t.config,r):`${t.config.apiScheme}://${r}`;return kC.includes(n)&&(await i._persistenceManagerAvailable,i._getPersistenceType()==="COOKIE")?
550i._getPersistence()._getFinalTarget(o).toString():o}function DC(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class NC{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,s)=>{this.timer=setTimeout(()=>s(Dn(this.auth,"network-request-failed")),MC.get())})}}function Pa(t,e,n){const s={appName:t.name};n.email&&(s.email=n.email),n.phoneNumber&&(s.phoneNumber=n.phoneNumber);const r=Dn(t,e,s);return r.customData._tokenResponse=n,r}function xp(t){return t!==void 0&&t.enterprise!==void 0}class OC{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 DC(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 xC(t,e){return er(t,"GET","/v2/recaptchaConfig",Rr(t,e))}/**
551 * @license
552 * Copyright 2020 Google LLC
553 *
554 * Licensed under the Apache License, Version 2.0 (the "License");
555 * you may not use this file except in compliance with the License.
556 * You may obtain a copy of the License at
557 *
558 *   http://www.apache.org/licenses/LICENSE-2.0
559 *
560 * Unless required by applicable law or agreed to in writing, software
561 * distributed under the License is distributed on an "AS IS" BASIS,
562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
563 * See the License for the specific language governing permissions and
564 * limitations under the License.
565 */async function VC(t,e){return er(t,"POST","/v1/accounts:delete",e)}async function _c(t,e){return er(t,"POST","/v1/accounts:lookup",e)}/**
566 * @license
567 * Copyright 2020 Google LLC
568 *
569 * Licensed under the Apache License, Version 2.0 (the "License");
570 * you may not use this file except in compliance with the License.
571 * You may obtain a copy of the License at
572 *
573 *   http://www.apache.org/licenses/LICENSE-2.0
574 *
575 * Unless required by applicable law or agreed to in writing, software
576 * distributed under the License is distributed on an "AS IS" BASIS,
577 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
578 * See the License for the specific language governing permissions and
579 * limitations under the License.
580 */function fo(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function LC(t,e=!1){const n=Lt(t),s=await n.getIdToken(e),r=rd(s);ue(r&&r.exp&&r.auth_time&&r.iat,n.auth,"internal-error");const i=typeof r.firebase=="object"?r.firebase:void 0,o=i?.sign_in_provider;return{claims:r,token:s,authTime:fo(iu(r.auth_time)),issuedAtTime:fo(iu(r.iat)),expirationTime:fo(iu(r.exp)),signInProvider:o||null,signInSecondFactor:i?.sign_in_second_factor||null}}function iu(t){return Number(t)*1e3}function rd(t){const[e,n,s]=t.split(".");if(e===void 0||n===void 0||s===void 0)return Ha("JWT malformed, contained fewer than 3 sections"),null;try{const r=Oy(n);return r?JSON.parse(r):(Ha("Failed to decode base64 JWT payload"),null)}catch(r){return Ha("Caught error parsing JWT payload as JSON",r?.toString()),null}}function Vp(t){const e=rd(t);return ue(e,"internal-error"),ue(typeof e.exp<"u","internal-error"),ue(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/**
581 * @license
582 * Copyright 2020 Google LLC
583 *
584 * Licensed under the Apache License, Version 2.0 (the "License");
585 * you may not use this file except in compliance with the License.
586 * You may obtain a copy of the License at
587 *
588 *   http://www.apache.org/licenses/LICENSE-2.0
589 *
590 * Unless required by applicable law or agreed to in writing, softw
590are
591 * distributed under the License is distributed on an "AS IS" BASIS,
592 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
593 * See the License for the specific language governing permissions and
594 * limitations under the License.
595 */async function Mo(t,e,n=!1){if(n)return e;try{return await e}catch(s){throw s instanceof gs&&FC(s)&&t.auth.currentUser===t&&await t.auth.signOut(),s}}function FC({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/**
596 * @license
597 * Copyright 2020 Google LLC
598 *
599 * Licensed under the Apache License, Version 2.0 (the "License");
600 * you may not use this file except in compliance with the License.
601 * You may obtain a copy of the License at
602 *
603 *   http://www.apache.org/licenses/LICENSE-2.0
604 *
605 * Unless required by applicable law or agreed to in writing, software
606 * distributed under the License is distributed on an "AS IS" BASIS,
607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
608 * See the License for the specific language governing permissions and
609 * limitations under the License.
610 */class UC{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 s=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,s)}}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()}}/**
611 * @license
612 * Copyright 2020 Google LLC
613 *
614 * Licensed under the Apache License, Version 2.0 (the "License");
615 * you may not use this file except in compliance with the License.
616 * You may obtain a copy of the License at
617 *
618 *   http://www.apache.org/licenses/LICENSE-2.0
619 *
620 * Unless required by applicable law or agreed to in writing, software
621 * distributed under the License is distributed on an "AS IS" BASIS,
622 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
623 * See the License for the specific language governing permissions and
624 * limitations under the License.
625 */class Bu{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=fo(this.lastLoginAt),this.creationTime=fo(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
626 * @license
627 * Copyright 2019 Google LLC
628 *
629 * Licensed under the Apache License, Version 2.0 (the "License");
630 * you may not use this file except in compliance with the License.
631 * You may obtain a copy of the License at
632 *
633 *   http://www.apache.org/licenses/LICENSE-2.0
634 *
635 * Unless required by applicable law or agreed to in writing, software
636 * distributed under the License is distributed on an "AS IS" BASIS,
637 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
638 * See the License for the specific language governing permissions and
639 * limitations under the License.
640 */async function yc(t){const e=t.auth,n=await t.getIdToken(),s=await Mo(t,_c(e,{idToken:n}));ue(s?.users.length,e,"internal-error");const r=s.users[0];t._notifyReloadListener(r);const i=r.providerUserInfo?.length?Xy(r.providerUserInfo):[],o=$C(t.providerData,i),c=t.isAnonymous,l=!(t.email&&r.passwordHash)&&!o?.length,h=c?l:!1,d={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:o,metadata:new Bu(r.createdAt,r.lastLoginAt),isAnonymous:h};Object.assign(t,d)}async function jC(t){const e=Lt(t);await yc(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function $C(t,e){return[...t.filter(s=>
640!e.some(r=>r.providerId===s.providerId)),...e]}function Xy(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}))}/**
641 * @license
642 * Copyright 2020 Google LLC
643 *
644 * Licensed under the Apache License, Version 2.0 (the "License");
645 * you may not use this file except in compliance with the License.
646 * You may obtain a copy of the License at
647 *
648 *   http://www.apache.org/licenses/LICENSE-2.0
649 *
650 * Unless required by applicable law or agreed to in writing, software
651 * distributed under the License is distributed on an "AS IS" BASIS,
652 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
653 * See the License for the specific language governing permissions and
654 * limitations under the License.
655 */async function BC(t,e){const n=await Qy(t,{},async()=>{const s=Zo({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:i}=t.config,o=await Jy(t,r,"/v1/token",`key=${i}`),c=await t._getAdditionalHeaders();c["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:c,body:s};return t.emulatorConfig&&Ei(t.emulatorConfig.host)&&(l.credentials="include"),Ky.fetch()(o,l)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function HC(t,e){return er(t,"POST","/v2/accounts:revokeToken",Rr(t,e))}/**
656 * @license
657 * Copyright 2020 Google LLC
658 *
659 * Licensed under the Apache License, Version 2.0 (the "License");
660 * you may not use this file except in compliance with the License.
661 * You may obtain a copy of the License at
662 *
663 *   http://www.apache.org/licenses/LICENSE-2.0
664 *
665 * Unless required by applicable law or agreed to in writing, software
666 * distributed under the License is distributed on an "AS IS" BASIS,
667 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
668 * See the License for the specific language governing permissions and
669 * limitations under the License.
670 */class si{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){ue(e.idToken,"internal-error"),ue(typeof e.idToken<"u","internal-error"),ue(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):Vp(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){ue(e.length!==0,"internal-error");const n=Vp(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(ue(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:s,refreshToken:r,expiresIn:i}=await BC(e,n);this.updateTokensAndExpiration(s,r,Number(i))}updateTokensAndExpiration(e,n,s){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+s*1e3}static fromJSON(e,n){const{refreshToken:s,accessToken:r,expirationTime:i}=n,o=new si;return s&&(ue(typeof s=="string","internal-error",{appName:e}),o.refreshToken=s),r&&(ue(typeof r=="string","internal-error",{appName:e}),o.accessToken=r),i&&(ue(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 si,this.toJSON())}_performRefresh(){return ts("not implemented")}}/**
671 * @license
672 * Copyright 2020 Google LLC
673 *
674 * Licensed under the Apache License, Version 2.0 (the "License");
675 * you may not use this file except in compliance with the License.
676 * You may obtain a copy of the License at
677 *
678 *   http://www.apache.org/licenses/LICENSE-2.0
679 *
680 * Unless required by applicable law or agreed to in writing, softw
680are
681 * distributed under the License is distributed on an "AS IS" BASIS,
682 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
683 * See the License for the specific language governing permissions and
684 * limitations under the License.
685 */function Ts(t,e){ue(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class fn{constructor({uid:e,auth:n,stsTokenManager:s,...r}){this.providerId="firebase",this.proactiveRefresh=new UC(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=n,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new Bu(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const n=await Mo(this,this.stsTokenManager.getToken(this.auth,e));return ue(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return LC(this,e)}reload(){return jC(this)}_assign(e){this!==e&&(ue(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 fn({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(e){ue(!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 s=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),s=!0),n&&await yc(this),await this.auth._persistUserIfCurrent(this),s&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(hn(this.auth.app))return Promise.reject($s(this.auth));const e=await this.getIdToken();return await Mo(this,VC(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 s=n.displayName??void 0,r=n.email??void 0,i=n.phoneNumber??void 0,o=n.photoURL??void 0,c=n.tenantId??void 0,l=n._redirectEventId??void 0,h=n.createdAt??void 0,d=n.lastLoginAt??void 0,{uid:p,emailVerified:m,isAnonymous:v,providerData:P,stsTokenManager:M}=n;ue(p&&M,e,"internal-error");const O=si.fromJSON(this.name,M);ue(typeof p=="string",e,"internal-error"),Ts(s,e.name),Ts(r,e.name),ue(typeof m=="boolean",e,"internal-error"),ue(typeof v=="boolean",e,"internal-error"),Ts(i,e.name),Ts(o,e.name),Ts(c,e.name),Ts(l,e.name),Ts(h,e.name),Ts(d,e.name);const $=new fn({uid:p,auth:e,email:r,emailVerified:m,displayName:s,isAnonymous:v,photoURL:o,phoneNumber:i,tenantId:c,stsTokenManager:O,createdAt:h,lastLoginAt:d});return P&&Array.isArray(P)&&($.providerData=P.map(U=>({...U}))),l&&($._redirectEventId=l),$}static async _fromIdTokenResponse(e,n,s=!1){const r=new si;r.updateFromServerResponse(n);const i=new fn({uid:n.localId,auth:e,stsTokenManager:r,isAnonymous:s});return await yc(i),i}static async _fromGetAccountInfoResponse(e,n,s){const r=n.users[0];ue(r.localId!==void 0,"internal-error");const i=r.providerUserInfo!==void 0?Xy(r.providerUserInfo):[],o=!(r.email&&r.passwordHash)&&!i?.length,c=new si;c.updateFromIdToken(s);const l=new fn({uid:r.localId,auth:e,stsTokenManager:c,isAnonymous:o}),h={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new Bu(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!i?.length};return Object.assign(l,h),l}}/**
686 * @license
687 * Copyright 2020 Google LLC
688 *
689 * Licensed under the Apache License, Version 2.0 (the "License");
690 * you may not use this file except in compliance with the License.
691 * You may obtain a copy of the License at
692 *
693 *   http://www.apache.org/licenses/LICENSE-2.0
694 *
695 * Unless required by applicable law or agreed to in writing, software
696 * distributed under the License is distributed on an "AS IS" BASIS,
697 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
698 * See the License for the specific language governing permissions and
699 * limitations under the License.
700 */const Lp=new Map;function ns(t){us(t instanceof Function,"Expected a class definition");let e=Lp.get(t);return e?(us(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,Lp.set(t,e),e)}/**
701 * @license
702 * Copyright 2019 Google LLC
703 *
704 * Licensed under the Apache License, Version 2.0 (the "License");
705 * you may not use this file except in compliance with the License.
706 * You may obtain a copy of the License at
707 *
708 *   http://www.apache.org/licenses/LICENSE-2.0
709 *
710 * Unless required by applicable law or agreed to in writing, software
711 * distributed under the License is distributed on an "AS IS" BASIS,
712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
713 * See the License for the specific language governing permissions and
714 * limitations under the License.
715 */class Zy{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){}}Zy.type="NONE";const Fp=Zy;/**
716 * @license
717 * Copyright 2019 Google LLC
718 *
719 * Licensed under the Apache License, Version 2.0 (the "License");
720 * you may not use this file except in compliance with the License.
721 * You may obtain a copy of the License at
722 *
723 *   http://www.apache.org/licenses/LICENSE-2.0
724 *
725 * Unless required by applicable law or agreed to in writing, software
726 * distributed under the License is distributed on an "AS IS" BASIS,
727 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
728 * See the License for the specific language governing permissions and
729 * limitations under the License.
730 */function Wa(t,e,n){return`firebase:${t}:${e}:${n}`}class ri{constructor(e,n,s){this.persistence=e,this.auth=n,this.userKey=s;const{config:r,name:i}=this.auth;this.fullUserKey=Wa(this.userKey,r.apiKey,i),this.fullPersistenceKey=Wa("persistence",r.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 _c(this.auth,{idToken:e}).catch(()=>{});return n?fn._fromGetAccountInfoResponse(this.auth,n,e):null}return fn._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,s="authUser"){if(!n.length)return new ri(ns(Fp),e,s);const r=(await Promise.all(n.map(async h=>{if(await h._isAvailable())return h}))).filter(h=>h);let i=r[0]||ns(Fp);const o=Wa(s,e.config.apiKey,e.name);let c=null;for(const h of n)try{const d=await h._get(o);if(d){let p;if(typeof d=="string"){const m=await _c(e,{idToken:d}).catch(()=>{});if(!m)break;p=await fn._fromGetAccountInfoResponse(e,m,d)}else p=fn._fromJSON(e,d);h!==i&&(c=p),i=h;break}}catch{}const l=r.filter(h=>h._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new ri(i,e,s):(i=l[0],c&&await i._set(o,c.toJSON()),await Promise.all(n.map(async h=>{if(h!==i)try{await h._remove(o)}catch{}})),new ri(i,e,s))}}/**
731 * @license
732 * Copyright 2020 Google LLC
733 *
734 * Licensed under the Apache License, Version 2.0 (the "License");
735 * you may not use this file except in compliance with the License.
736 * You may obtain a copy of the License at
737 *
738 *   http://www.apache.org/licenses/LICENSE-2.0
739 *
740 * Unless required by applicable law or agreed to in writing, software
741 * distributed under the License is distributed on an "AS IS" BASIS,
742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
743 * See the License for the specific language governing permissions and
744 * limitations under the License.
745 */function Up(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(s0(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(e0(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(i0(e))return"Blackberry";if(o0(e))return"Webos";if(t0(e))return"Safari";if((e.includes("chrome/")||n0(e))&&!e.includes("edge/"))return"Chrome";if(r0(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,s=t.match(n);if(s?.length===2)return s[1]}return"Other"}function e0(t=Vt()){return/firefox\//i.test(t)}function t0(t=Vt()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function n0(t=Vt()){return/crios\//i.test(t)}function s0(t=Vt()){return/iemobile/i.test(t)}function r0(t=Vt()){return/android/i.test(t)}function i0(t=Vt()){return/blackberry/i.test(t)}function o0(t=Vt()){return/webos/i.test(t)}function id(t=Vt()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function WC(t=Vt()){return id(t)&&!!window.navigator?.standalone}function zC(){return sR()&&document.documentMode===10}function a0(t=Vt()){return id(t)||r0(t)||o0(t)||i0(t)||/windows phone/i.test(t)||s0(t)}/**
746 * @license
747 * Copyright 2020 Google LLC
748 *
749 * Licensed under the Apache License, Version 2.0 (the "License");
750 * you may not use this file except in compliance with the License.
751 * You may obtain a copy of the License at
752 *
753 *   http://www.apache.org/licenses/LICENSE-2.0
754 *
755 * Unless required by applicable law or agreed to in writing, software
756 * distributed under the License is distributed on an "AS IS" BASIS,
757 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
758 * See the License for the specific language governing permissions and
759 * limitations under the License.
760 */function c0(t,e=[]){let n;switch(t){case"Browser":n=Up(Vt());break;case"Worker":n=`${Up(Vt())}-${t}`;break;default:n=t}const s=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Ti}/${s}`}/**
761 * @license
762 * Copyright 2022 Google LLC
763 *
764 * Licensed under the Apache License, Version 2.0 (the "License");
765 * you may not use this file except in compliance with the License.
766 * You may obtain a copy of the License at
767 *
768 *   http://www.apache.org/licenses/LICENSE-2.0
769 *
770 * Unless required by applicable law or agreed to in writing, software
771 * distributed under the License is distributed on an "AS IS" BASIS,
772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
773 * See the License for the specific language governing permissions and
774 * limitations under the License.
775 */class YC{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const s=i=>new Promise((o,c)=>{try{const l=e(i);o(l)}catch(l){c(l)}});s.onAbort=n,this.queue.push(s);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const s of this.queue)await s(e),s.onAbort&&n.push(s.onAbort)}catch(s){n.reverse();for(const r of n)try{r()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:s?.message})}}}/**
776 * @license
777 * Copyright 2023 Google LLC
778 *
779 * Licensed under the Apache License, Version 2.0 (the "License");
780 * you may not use this file except in compliance with the License.
781 * You may obtain a copy of the License at
782 *
783 *   http://www.apache.org/licenses/LICENSE-2.0
784 *
785 * Unless required by applicable law or agreed to in writing, software
786 * distributed under the License is distributed on an "AS IS" BASIS,
787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
788 * See the License for the specific language governing permissions and
789 * limitations under the License.
790 */async function qC(t,e={}){return er(t,"GET","/v2/passwordPolicy",Rr(t,e))}/**
791 * @license
792 * Copyright 2023 Google LLC
793 *
794 * Licensed under the Apache License, Version 2.0 (the "License");
795 * you may not use this file except in compliance with the License.
796 * You may obtain a copy of the License at
797 *
798 *   http://www.apache.org/licenses/LICENSE-2.0
799 *
800 * Unless required by applicable law or agreed to in writing, software
801 * distributed under the License is distributed on an "AS IS" BASIS,
802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
803 * See the License for the specific language governing permissions and
804 * limitations under the License.
805 */const GC=6;class KC{constructor(e){const n=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??GC,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&&(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 s=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;s&&(n.meetsMinPasswordLength=e.length>=s),r&&(n.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,
805!1,!1,!1);let s;for(let r=0;r<e.length;r++)s=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(n,s>="a"&&s<="z",s>="A"&&s<="Z",s>="0"&&s<="9",this.allowedNonAlphanumericCharacters.includes(s))}updatePasswordCharacterOptionsStatuses(e,n,s,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=s)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/**
806 * @license
807 * Copyright 2020 Google LLC
808 *
809 * Licensed under the Apache License, Version 2.0 (the "License");
810 * you may not use this file except in compliance with the License.
811 * You may obtain a copy of the License at
812 *
813 *   http://www.apache.org/licenses/LICENSE-2.0
814 *
815 * Unless required by applicable law or agreed to in writing, software
816 * distributed under the License is distributed on an "AS IS" BASIS,
817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
818 * See the License for the specific language governing permissions and
819 * limitations under the License.
820 */class QC{constructor(e,n,s,r){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=s,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new jp(this),this.idTokenSubscription=new jp(this),this.beforeStateQueue=new YC(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=qy,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=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(i=>this._resolvePersistenceManagerAvailable=i)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=ns(n)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await ri.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 _c(this,{idToken:e}),s=await fn._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(s)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(hn(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 s=n,r=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const i=this.redirectUser?._redirectEventId,o=s?._redirectEventId,c=await this.tryRedirectSignIn(e);(!i||i===o)&&c?.user&&(s=c.user,r=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(s)}catch(i){s=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(i))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return ue(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}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 yc(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=CC()}async _delete(){this._deleted=!0}
820async updateCurrentUser(e){if(hn(this.app))return Promise.reject($s(this));const n=e?Lt(e):null;return n&&ue(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&&ue(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 hn(this.app)?Promise.reject($s(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return hn(this.app)?Promise.reject($s(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ns(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 qC(this),n=new KC(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 Xo("auth","Firebase",e())}onAuthStateChanged(e,n,s){return this.registerStateListener(this.authStateSubscription,e,n,s)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,s){return this.registerStateListener(this.idTokenSubscription,e,n,s)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const s=this.onAuthStateChanged(()=>{s(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),s={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(s.tenantId=this.tenantId),await HC(this,s)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,n){const s=await this.getOrInitRedirectPersistenceManager(n);return e===null?s.removeCurrentUser():s.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&ns(e)||this._popupRedirectResolver;ue(n,this,"argument-error"),this.redirectPersistenceManager=await ri.create(this,[ns(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,s,r){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const c=this._isInitialized?Promise.resolve():this._initializationPromise;if(ue(c,this,"internal-error"),c.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,s,r);return()=>{o=!0,l()}}else{const l=e.addObserver(n);return()=>{o=!0,l()}}}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 ue(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=c0(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 s=await this._getAppCheckToken();return s&&(e["X-Firebase-AppCheck"]=s),e}async _getAppCheckToken(){if(hn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&AC(`Error while retrieving App Check token: ${e.error}`),e?.token}}function Ii(t){return Lt(t)}class jp{constructor(e){this.auth=e,this.observer=null,this.addObserver=hR(n=>this.observer=n)}get next(){return ue(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
821 * @license
822 * Copyright 2020 Google LLC
823 *
824 * Licensed under the Apache License, Version 2.0 (the "License");
825 * you may not use this file except in compliance with the License.
826 * You may obtain a copy of the License at
827 *
828 *   http://www.apache.org/licenses/LICENSE-2.0
829 *
830 * Unless required by applicable law or agreed to in writing, software
831 * distributed under the License is distributed on an "AS IS" BASIS,
832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
833 * See the License for the specific language governing permissions and
834 * limitations under the License.
835 */let sl={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function JC(t){sl=t}function l0(t){return sl.loadJS(t)}function XC(){return sl.recaptchaEnterpriseScript}function ZC(){return sl.gapiScript}function eP(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class tP{constructor(){this.enterprise=new nP}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class nP{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}const sP="recaptcha-enterprise",u0="NO_RECAPTCHA";class rP{constructor(e){this.type=sP,this.auth=Ii(e)}async verify(e="verify",n=!1){async function s(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,c)=>{xC(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)c(new Error("recaptcha Enterprise site key undefined"));else{const h=new OC(l);return i.tenantId==null?i._agentRecaptchaConfig=h:i._tenantRecaptchaConfigs[i.tenantId]=h,o(h.siteKey)}}).catch(l=>{c(l)})})}function r(i,o,c){const l=window.grecaptcha;xp(l)?l.enterprise.ready(()=>{l.enterprise.execute(i,{action:e}).then(h=>{o(h)}).catch(()=>{o(u0)})}):c(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new tP().execute("siteKey",{action:"verify"}):new Promise((i,o)=>{s(this.auth).then(c=>{if(!n&&xp(window.grecaptcha))r(c,i,o);else{if(typeof window>"u"){o(new Error("RecaptchaVerifier is only supported in browser"));return}let l=XC();l.length!==0&&(l+=c),l0(l).then(()=>{r(c,i,o)}).catch(h=>{o(h)})}}).catch(c=>{o(c)})})}}async function $p(t,e,n,s=!1,r=!1){const i=new rP(t);let o;if(r)o=u0;else try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const c={...e};if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in c){const l=c.phoneEnrollmentInfo.phoneNumber,h=c.phoneEnrollmentInfo.recaptchaToken;Object.assign(c,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:h,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in c){const l=c.phoneSignInInfo.recaptchaToken;Object.assign(c,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return c}return s?Object.assign(c,{captchaResp:o}):Object.assign(c,{captchaResponse:o}),Object.assign(c,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(c,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),c}async function Bp(t,e,n,s,r){if(t._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await $p(t,e,n,n==="getOobCode");return s(t,i)}else return s(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 $p(t,e,n,n==="getOobCode");return s(t,o)}else return Promise.reject(i)})}/**
836 * @license
837 * Copyright 2020 Google LLC
838 *
839 * Licensed under the Apache License, Version 2.0 (the "License");
840 * you may not use this file except in compliance with the License.
841 * You may obtain a copy of the License at
842 *
843 *   http://www.apache.org/licenses/LICENSE-2.0
844 *
845 * Unless required by applicable law or agreed to in writing, software
846 * distributed under the License is distributed on an "AS IS" BASIS,
847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
848 * See the License for the specific language governing permissions and
849 * limitations under the License.
850 */function iP(t,e){const n=td(t,"auth");if(n.isInitialized()){const r=n.getImmediate(),i=n.getOptions();if(wr(i,e??{}))return r;wn(r,"already-initialized")}return n.initialize({options:e})}function oP(t,e){const n=e?.persistence||[],s=(Array.isArray(n)?n:[n]).map(ns);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(s,e?.popupRedirectResolver)}function aP(t,e,n){const s=Ii(t);ue(/^https?:\/\//.test(e),s,"invalid-emulator-scheme");const r=!1,i=h0(e),{host:o,port:c}=cP(e),l=c===null?"":`:${c}`,h={url:`${i}//${o}${l}/`},d=Object.freeze({host:o,port:c,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:r})});if(!s._canInitEmulator){ue(s.config.emulator&&s.emulatorConfig,s,"emulator-config-failed"),ue(wr(h,s.config.emulator)&&wr(d,s.emulatorConfig),s,"emulator-config-failed");return}s.config.emulator=h,s.emulatorConfig=d,s.settings.appVerificationDisabledForTesting=!0,Ei(o)?(Fy(`${i}//${o}${l}`),Uy("Auth",!0)):lP()}function h0(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function cP(t){const e=h0(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const s=n[2].split("@").pop()||"",r=/^(\[[^\]]+\])(:|$)/.exec(s);if(r){const i=r[1];return{host:i,port:Hp(s.substr(i.length+1))}}else{const[i,o]=s.split(":");return{host:i,port:Hp(o)}}}function Hp(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function lP(){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())}/**
851 * @license
852 * Copyright 2020 Google LLC
853 *
854 * Licensed under the Apache License, Version 2.0 (the "License");
855 * you may not use this file except in compliance with the License.
856 * You may obtain a copy of the License at
857 *
858 *   http://www.apache.org/licenses/LICENSE-2.0
859 *
860 * Unless required by applicable law or agreed to in writing, software
861 * distributed under the License is distributed on an "AS IS" BASIS,
862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
863 * See the License for the specific language governing permissions and
864 * limitations under the License.
865 */class od{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return ts("not implemented")}_getIdTokenResponse(e){return ts("not implemented")}_linkToIdToken(e,n){return ts("not implemented")}_getReauthenticationResolver(e){return ts("not implemented")}}async function uP(t,e){return er(t,"POST","/v1/accounts:signUp",e)}/**
866 * @license
867 * Copyright 2020 Google LLC
868 *
869 * Licensed under the Apache License, Version 2.0 (the "License");
870 * you may not use this file except in compliance with the License.
871 * You may obtain a copy of the License at
872 *
873 *   http://www.apache.org/licenses/LICENSE-2.0
874 *
875 * Unless required by applicable law or agreed to in writing, software
876 * distributed under the License is distributed on an "AS IS" BASIS,
877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
878 * See the License for the specific language governing permissions and
879 * limitations under the License.
880 */async function hP(t,e){return nl(t,"POST","/v1/accounts:signInWithPassword",Rr(t,e))}/**
881 * @license
882 * Copyright 2020 Google LLC
883 *
884 * Licensed under the Apache License, Version 2.0 (the "License");
885 * you may not use this file except in compliance with the License.
886 * You may obtain a copy of the License at
887 *
888 *   http://www.apache.org/licenses/LICENSE-2.0
889 *
890 * Unless required by applicable law or agreed to in writing, software
891 * distributed under the License is distributed on an "AS IS" BASIS,
892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
893 * See the License for the specific language governing permissions and
894 * limitations under the License.
895 */async function dP(t,e){return nl(t,"POST","/v1/accounts:signInWithEmailLink",Rr(t,e))}async function fP(t,e){return nl(t,"POST","/v1/accounts:signInWithEmailLink",Rr(t,e))}/**
896 * @license
897 * Copyright 2020 Google LLC
898 *
899 * Licensed under the Apache License, Version 2.0 (the "License");
900 * you may not use this file except in compliance with the License.
901 * You may obtain a copy of the License at
902 *
903 *   http://www.apache.org/licenses/LICENSE-2.0
904 *
905 * Unless required by applicable law or agreed to in writing, software
906 * distributed under the License is distributed on an "AS IS" BASIS,
907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
908 * See the License for the specific language governing permissions and
909 * limitations under the License.
910 */class Do extends od{constructor(e,n,s,r=null){super("password",s),this._email=e,this._password=n,this._tenantId=r}static _fromEmailAndPassword(e,n){return new Do(e,n,"password")}static _fromEmailAndCode(e,n,s=null){return new Do(e,n,"emailLink",s)}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 Bp(e,n,"signInWithPassword",hP);case"emailLink":return dP(e,{email:this._email,oobCode:this._password});default:wn(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const s={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Bp(e,s,"signUpPassword",uP);case"emailLink":return fP(e,{idToken:n,email:this._email,oobCode:this._password});default:wn(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
911 * @license
912 * Copyright 2020 Google LLC
913 *
914 * Licensed under the Apache License, Version 2.0 (the "License");
915 * you may not use this file except in compliance with the License.
916 * You may obtain a copy of the License at
917 *
918 *   http://www.apache.org/licenses/LICENSE-2.0
919 *
920 * Unless required by applicable law or agreed to in writing, software
921 * distributed under the License is distributed on an "AS IS" BASIS,
922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
923 * See the License for the specific language governing permissions and
924 * limitations under the License.
925 */async function ii(t,e){return nl(t,"POST","/v1/accounts:signInWithIdp",Rr(t,e))}/**
926 * @license
927 * Copyright 2020 Google LLC
928 *
929 * Licensed under the Apache License, Version 2.0 (the "License");
930 * you may not use this file except in compliance with the License.
931 * You may obtain a copy of the License at
932 *
933 *   http://www.apache.org/licenses/LICENSE-2.0
934 *
935 * Unless required by applicable law or agreed to in writing, software
936 * distributed under the License is distributed on an "AS IS" BASIS,
937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
938 * See the License for the specific language governing permissions and
939 * limitations under the License.
940 */const pP="http://localhost";class Tr extends od{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new Tr(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&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):wn("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
940once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:s,signInMethod:r,...i}=n;if(!s||!r)return null;const o=new Tr(s,r);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 ii(e,n)}_linkToIdToken(e,n){const s=this.buildRequest();return s.idToken=n,ii(e,s)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,ii(e,n)}buildRequest(){const e={requestUri:pP,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=Zo(n)}return e}}/**
941 * @license
942 * Copyright 2020 Google LLC
943 *
944 * Licensed under the Apache License, Version 2.0 (the "License");
945 * you may not use this file except in compliance with the License.
946 * You may obtain a copy of the License at
947 *
948 *   http://www.apache.org/licenses/LICENSE-2.0
949 *
950 * Unless required by applicable law or agreed to in writing, software
951 * distributed under the License is distributed on an "AS IS" BASIS,
952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
953 * See the License for the specific language governing permissions and
954 * limitations under the License.
955 */function mP(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 gP(t){const e=Ki(Qi(t)).link,n=e?Ki(Qi(e)).deep_link_id:null,s=Ki(Qi(t)).deep_link_id;return(s?Ki(Qi(s)).link:null)||s||n||e||t}class ad{constructor(e){const n=Ki(Qi(e)),s=n.apiKey??null,r=n.oobCode??null,i=mP(n.mode??null);ue(s&&r&&i,"argument-error"),this.apiKey=s,this.operation=i,this.code=r,this.continueUrl=n.continueUrl??null,this.languageCode=n.lang??null,this.tenantId=n.tenantId??null}static parseLink(e){const n=gP(e);try{return new ad(n)}catch{return null}}}/**
956 * @license
957 * Copyright 2020 Google LLC
958 *
959 * Licensed under the Apache License, Version 2.0 (the "License");
960 * you may not use this file except in compliance with the License.
961 * You may obtain a copy of the License at
962 *
963 *   http://www.apache.org/licenses/LICENSE-2.0
964 *
965 * Unless required by applicable law or agreed to in writing, software
966 * distributed under the License is distributed on an "AS IS" BASIS,
967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
968 * See the License for the specific language governing permissions and
969 * limitations under the License.
970 */class Si{constructor(){this.providerId=Si.PROVIDER_ID}static credential(e,n){return Do._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const s=ad.parseLink(n);return ue(s,"argument-error"),Do._fromEmailAndCode(e,s.code,s.tenantId)}}Si.PROVIDER_ID="password";Si.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Si.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
971 * @license
972 * Copyright 2020 Google LLC
973 *
974 * Licensed under the Apache License, Version 2.0 (the "License");
975 * you may not use this file except in compliance with the License.
976 * You may obtain a copy of the License at
977 *
978 *   http://www.apache.org/licenses/LICENSE-2.0
979 *
980 * Unless required by applicable law or agreed to in writing, software
981 * distributed under the License is distributed on an "AS IS" BASIS,
982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
983 * See the License for the specific language governing permissions and
984 * limitations under the License.
985 */class d0{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}}/**
986 * @license
987 * Copyright 2019 Google LLC
988 *
989 * Licensed under the Apache License, Version 2.0 (the "License");
990 * you may not use this file except in compliance with the License.
991 * You may obtain a copy of the License at
992 *
993 *   http://www.apache.org/licenses/LICENSE-2.0
994 *
995 * Unless required by applicable law or agreed to in writing, software
996 * distributed under the License is distributed on an "AS IS" BASIS,
997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
998 * See the License for the specific language governing permissions and
999 * limitations under the License.
1000 */class ta extends d0{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
1001 * @license
1002 * Copyright 2020 Google LLC
1003 *
1004 * Licensed under the Apache License, Version 2.0 (the "License");
1005 * you may not use this file except in compliance with the License.
1006 * You may obtain a copy of the License at
1007 *
1008 *   http://www.apache.org/licenses/LICENSE-2.0
1009 *
1010 * Unless required by applicable law or agreed to in writing, software
1011 * distributed under the License is distributed on an "AS IS" BASIS,
1012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1013 * See the License for the specific language governing permissions and
1014 * limitations under the License.
1015 */class Cs extends ta{constructor(){super("facebook.com")}static credential(e){return Tr._fromParams({providerId:Cs.PROVIDER_ID,signInMethod:Cs.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Cs.credentialFromTaggedObject(e)}static credentialFromError(e){return Cs.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Cs.credential(e.oauthAccessToken)}catch{return null}}}Cs.FACEBOOK_SIGN_IN_METHOD="facebook.com";Cs.PROVIDER_ID="facebook.com";/**
1016 * @license
1017 * Copyright 2020 Google LLC
1018 *
1019 * Licensed under the Apache License, Version 2.0 (the "License");
1020 * you may not use this file except in compliance with the License.
1021 * You may obtain a copy of the License at
1022 *
1023 *   http://www.apache.org/licenses/LICENSE-2.0
1024 *
1025 * Unless required by applicable law or agreed to in writing, software
1026 * distributed under the License is distributed on an "AS IS" BASIS,
1027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1028 * See the License for the specific language governing permissions and
1029 * limitations under the License.
1030 */class Ps extends ta{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return Tr._fromParams({providerId:Ps.PROVIDER_ID,signInMethod:Ps.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Ps.credentialFromTaggedObject(e)}static credentialFromError(e){return Ps.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:s}=e;if(!n&&!s)return null;try{return Ps.credential(n,s)}catch{return null}}}Ps.GOOGLE_SIGN_IN_METHOD="google.com";Ps.PROVIDER_ID="google.com";/**
1031 * @license
1032 * Copyright 2020 Google LLC
1033 *
1034 * Licensed under the Apache License, Version 2.0 (the "License");
1035 * you may not use this file except in compliance with the License.
1036 * You may obtain a copy of the License at
1037 *
1038 *   http://www.apache.org/licenses/LICENSE-2.0
1039 *
1040 * Unless required by applicable law or agreed to in writing, software
1041 * distributed under the License is distributed on an "AS IS" BASIS,
1042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1043 * See the License for the specific language governing permissions and
1044 * limitations under the License.
1045 */class ks extends ta{constructor(){super("github.com")}static credential(e){return Tr._fromParams({providerId:ks.PROVIDER_ID,signInMethod:ks.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ks.credentialFromTaggedObject(e)}static credentialFromError(e){return ks.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return ks.credential(e.oauthAccessToken)}catch{return null}}}ks.GITHUB_SIGN_IN_METHOD="github.com";ks.PROVIDER_ID="github.com";/**
1046 * @license
1047 * Copyright 2020 Google LLC
1048 *
1049 * Licensed under the Apache License, Version 2.0 (the "License");
1050 * you may not use this file except in compliance with the License.
1051 * You may obtain a copy of the License at
1052 *
1053 *   http://www.apache.org/licenses/LICENSE-2.0
1054 *
1055 * Unless required by applicable law or agreed to in writing, software
1056 * distributed under the License is distributed on an "AS IS" BASIS,
1057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1058 * See the License for the specific language governing permissions and
1059 * limitations under the License.
1060 */class Ms extends ta{constructor(){super("twitter.com")}static credential(e,n){return Tr._fromParams({providerId:Ms.PROVIDER_ID,signInMethod:Ms.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Ms.credentialFromTaggedObject(e)}static credentialFromError(e){return Ms.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:s}=e;if(!n||!s)return null;try{return Ms.credential(n,s)}catch{return null}}}Ms.TWITTER_SIGN_IN_METHOD="twitter.com";Ms.PROVIDER_ID="twitter.com";/**
1061 * @license
1062 * Copyright 2020 Google LLC
1063 *
1064 * Licensed under the Apache License, Version 2.0 (the "License");
1065 * you may not use this file except in compliance with the License.
1066 * You may obtain a copy of the License at
1067 *
1068 *   http://www.apache.org/licenses/LICENSE-2.0
1069 *
1070 * Unless required by applicable law or agreed to in writing, software
1071 * distributed under the License is distributed on an "AS IS" BASIS,
1072 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1073 * See the License for the specific language governing permissions and
1074 * limitations under the License.
1075 */class li{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,s,r=!1){const i=await fn._fromIdTokenResponse(e,s,r),o=Wp(s);return new li({user:i,providerId:o,_tokenResponse:s,operationType:n})}static async _forOperation(e,n,s){await e._updateTokensIfNecessary(s,!0);const r=Wp(s);return new li({user:e,providerId:r,_tokenResponse:s,operationType:n})}}function Wp(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/**
1076 * @license
1077 * Copyright 2020 Google LLC
1078 *
1079 * Licensed under the Apache License, Version 2.0 (the "License");
1080 * you may not use this file except in compliance with the License.
1081 * You may obtain a copy of the License at
1082 *
1083 *   http://www.apache.org/licenses/LICENSE-2.0
1084 *
1085 * Unless required by applicable law or agreed to in writing, software
1086 * distributed under the License is distributed on an "AS IS" BASIS,
1087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1088 * See the License for the specific language governing permissions and
1089 * limitations under the License.
1090 */class vc extends gs{constructor(e,n,s,r){super(n.code,n.message),this.operationType=s,this.user=r,Object.setPrototypeOf(this,vc.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:s}}static _fromErrorAndOperation(e,n,s,r){return new vc(e,n,s,r)}}function f0(t,e,n,s){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?vc._fromErrorAndOperation(t,i,e,s):i})}async function _P(t,e,n=!1){const s=await Mo(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return li._forOperation(t,"link",s)}/**
1091 * @license
1092 * Copyright 2019 Google LLC
1093 *
1094 * Licensed under the Apache License, Version 2.0 (the "License");
1095 * you may not use this file except in compliance with the License.
1096 * You may obtain a copy of the License at
1097 *
1098 *   http://www.apache.org/licenses/LICENSE-2.0
1099 *
1100 * Unless required by applicable law or agreed to in writing, software
1101 * distributed under the License is distributed on an "AS IS" BASIS,
1102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1103 * See the License for the specific language governing permissions and
1104 * limitations under the License.
1105 */async function yP(t,e,n=!1){const{auth:s}=t;if(hn(s.app))return Promise.reject($s(s));const r="reauthenticate";try{const i=await Mo(t,f0(s,r,e,t),n);ue(i.idToken,s,"internal-error");const o=rd(i.idToken);ue(o,s,"internal-error");const{sub:c}=o;return ue(t.uid===c,s,"user-mismatch"),li._forOperation(t,r,i)}catch(i){throw i?.code==="auth/user-not-found"&&wn(s,"user-mismatch"),i}}/**
1106 * @license
1107 * Copyright 2020 Google LLC
1108 *
1109 * Licensed under the Apache License, Version 2.0 (the "License");
1110 * you may not use this file except in compliance with the License.
1111 * You may obtain a copy of the License at
1112 *
1113 *   http://www.apache.org/licenses/LICENSE-2.0
1114 *
1115 * Unless required by applicable law or agreed to in writing, software
1116 * distributed under the License is distributed on an "AS IS" BASIS,
1117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1118 * See the License for the specific language governing permissions and
1119 * limitations under the License.
1120 */async function p0(t,e,n=!1){if(hn(t.app))return Promise.reject($s(t));const s="signIn",r=await f0(t,s,e),i=await li._fromIdTokenResponse(t,s,r);return n||await t._updateCurrentUser(i.user),i}async function vP(t,e){return p0(Ii(t),e)}/**
1121 * @license
1122 * Copyright 2020 Google LLC
1123 *
1124 * Licensed under the Apache License, Version 2.0 (the "License");
1125 * you may not use this file except in compliance with the License.
1126 * You may obtain a copy of the License at
1127 *
1128 *   http://www.apache.org/licenses/LICENSE-2.0
1129 *
1130 * Unless required by applicable law or agreed to in writing, software
1131 * distributed under the License is distributed on an "AS IS" BASIS,
1132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1133 * See the License for the specific language governing permissions and
1134 * limitations under the License.
1135 */async function wP(t){const e=Ii(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}function EP(t,e,n){return hn(t.app)?Promise.reject($s(t)):vP(Lt(t),Si.credential(e,n)).catch(async s=>{throw s.code==="auth/password-does-not-meet-requirements"&&wP(t),s})}function TP(t,e,n,s){return Lt(t).onIdTokenChanged(e,n,s)}function IP(t,e,n){return Lt(t).beforeAuthStateChanged(e,n)}function SP(t,e,n,s){return Lt(t).onAuthStateChanged(e,n,s)}function zp(t){return Lt(t).signOut()}const wc="__sak";/**
1136 * @license
1137 * Copyright 2019 Google LLC
1138 *
1139 * Licensed under the Apache License, Version 2.0 (the "License");
1140 * you may not use this file except in compliance with the License.
1141 * You may obtain a copy of the License at
1142 *
1143 *   http://www.apache.org/licenses/LICENSE-2.0
1144 *
1145 * Unless required by applicable law or agreed to in writing, software
1146 * distributed under the License is distributed on an "AS IS" BASIS,
1147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1148 * See the License for the specific language governing permissions and
1149 * limitations under the License.
1150 */class m0{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(wc,"1"),this.storage.removeItem(wc),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()}}/**
1151 * @license
1152 * Copyright 2020 Google LLC
1153 *
1154 * Licensed under the Apache License, Version 2.0 (the "License");
1155 * you may not use this file except in compliance with the License.
1156 * You may obtain a copy of the License at
1157 *
1158 *   http://www.apache.org/licenses/LICENSE-2.0
1159 *
1160 * Unless required by applicable law or agreed to in writing, software
1161 * distributed under the License is distributed on an "AS IS" BASIS,
1162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1163 * See the License for the specific language governing permissions and
1164 * limitations under the License.
1165 */const AP=1e3,bP=10;class g0 extends m0{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=a0(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const s=this.storage.getItem(n),r=this.localCache[n];s!==r&&e(n,r,s)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,c,l)=>{this.notifyListeners(o,l)});return}const s=e.key;n?this.detachListener():this.stopPolling();const r=()=>{const o=this.storage.getItem(s);!n&&this.localCache[s]===o||this.notifyListeners(s,o)},i=this.storage.getItem(s);zC()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,bP):r()}notifyListeners(e,n){this.localCache[e]=n;const s=this.listeners[e];if(s)for(const r of Array.from(s))r(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,s)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:s}),!0)})},AP)}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
1165ject.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]}}g0.type="LOCAL";const RP=g0;/**
1166 * @license
1167 * Copyright 2020 Google LLC
1168 *
1169 * Licensed under the Apache License, Version 2.0 (the "License");
1170 * you may not use this file except in compliance with the License.
1171 * You may obtain a copy of the License at
1172 *
1173 *   http://www.apache.org/licenses/LICENSE-2.0
1174 *
1175 * Unless required by applicable law or agreed to in writing, software
1176 * distributed under the License is distributed on an "AS IS" BASIS,
1177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1178 * See the License for the specific language governing permissions and
1179 * limitations under the License.
1180 */class _0 extends m0{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}_0.type="SESSION";const y0=_0;/**
1181 * @license
1182 * Copyright 2019 Google LLC
1183 *
1184 * Licensed under the Apache License, Version 2.0 (the "License");
1185 * you may not use this file except in compliance with the License.
1186 * You may obtain a copy of the License at
1187 *
1188 *   http://www.apache.org/licenses/LICENSE-2.0
1189 *
1190 * Unless required by applicable law or agreed to in writing, software
1191 * distributed under the License is distributed on an "AS IS" BASIS,
1192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1193 * See the License for the specific language governing permissions and
1194 * limitations under the License.
1195 */function CP(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
1196 * @license
1197 * Copyright 2019 Google LLC
1198 *
1199 * Licensed under the Apache License, Version 2.0 (the "License");
1200 * you may not use this file except in compliance with the License.
1201 * You may obtain a copy of the License at
1202 *
1203 *   http://www.apache.org/licenses/LICENSE-2.0
1204 *
1205 * Unless required by applicable law or agreed to in writing, software
1206 * distributed under the License is distributed on an "AS IS" BASIS,
1207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1208 * See the License for the specific language governing permissions and
1209 * limitations under the License.
1210 */class rl{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(r=>r.isListeningto(e));if(n)return n;const s=new rl(e);return this.receivers.push(s),s}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:s,eventType:r,data:i}=n.data,o=this.handlersMap[r];if(!o?.size)return;n.ports[0].postMessage({status:"ack",eventId:s,eventType:r});const c=Array.from(o).map(async h=>h(n.origin,i)),l=await CP(c);n.ports[0].postMessage({status:"done",eventId:s,eventType:r,response:l})}_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)}}rl.receivers=[];/**
1211 * @license
1212 * Copyright 2020 Google LLC
1213 *
1214 * Licensed under the Apache License, Version 2.0 (the "License");
1215 * you may not use this file except in compliance with the License.
1216 * You may obtain a copy of the License at
1217 *
1218 *   http://www.apache.org/licenses/LICENSE-2.0
1219 *
1220 * Unless required by applicable law or agreed to in writing, software
1221 * distributed under the License is distributed on an "AS IS" BASIS,
1222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1223 * See the License for the specific language governing permissions and
1224 * limitations under the License.
1225 */function cd(t="",e=10){let n="";for(let s=0;s<e;s++)n+=Math.floor(Math.random()*10);return t+n}/**
1226 * @license
1227 * Copyright 2019 Google LLC
1228 *
1229 * Licensed under the Apache License, Version 2.0 (the "License");
1230 * you may not use this file except in compliance with the License.
1231 * You may obtain a copy of the License at
1232 *
1233 *   http://www.apache.org/licenses/LICENSE-2.0
1234 *
1235 * Unless required by applicable law or agreed to in writing, software
1236 * distributed under the License is distributed on an "AS IS" BASIS,
1237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1238 * See the License for the specific language governing permissions and
1239 * limitations under the License.
1240 */class PP{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,s=50){const r=typeof MessageChannel<"u"?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise((c,l)=>{const h=cd("",20);r.port1.start();const d=setTimeout(()=>{l(new Error("unsupported_event"))},s);o={messageChannel:r,onMessage(p){const m=p;if(m.data.eventId===h)switch(m.data.status){case"ack":clearTimeout(d),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),c(m.data.response);break;default:clearTimeout(d),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:h,data:n},[r.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/**
1241 * @license
1242 * Copyright 2020 Google LLC
1243 *
1244 * Licensed under the Apache License, Version 2.0 (the "License");
1245 * you may not use this file except in compliance with the License.
1246 * You may obtain a copy of the License at
1247 *
1248 *   http://www.apache.org/licenses/LICENSE-2.0
1249 *
1250 * Unless required by applicable law or agreed to in writing, software
1251 * distributed under the License is distributed on an "AS IS" BASIS,
1252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1253 * See the License for the specific language governing permissions and
1254 * limitations under the License.
1255 */function Nn(){return window}function kP(t){Nn().location.href=t}/**
1256 * @license
1257 * Copyright 2020 Google LLC.
1258 *
1259 * Licensed under the Apache License, Version 2.0 (the "License");
1260 * you may not use this file except in compliance with the License.
1261 * You may obtain a copy of the License at
1262 *
1263 *   http://www.apache.org/licenses/LICENSE-2.0
1264 *
1265 * Unless required by applicable law or agreed to in writing, software
1266 * distributed under the License is distributed on an "AS IS" BASIS,
1267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1268 * See the License for the specific language governing permissions and
1269 * limitations under the License.
1270 */function v0(){return typeof Nn().WorkerGlobalScope<"u"&&typeof Nn().importScripts=="function"}async function MP(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function DP(){return navigator?.serviceWorker?.controller||null}function NP(){return v0()?self:null}/**
1271 * @license
1272 * Copyright 2019 Google LLC
1273 *
1274 * Licensed under the Apache License, Version 2.0 (the "License");
1275 * you may not use this file except in compliance with the License.
1276 * You may obtain a copy of the License at
1277 *
1278 *   http://www.apache.org/licenses/LICENSE-2.0
1279 *
1280 * Unless required by applicable law or agreed to in writing, software
1281 * distributed under the License is distributed on an "AS IS" BASIS,
1282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1283 * See the License for the specific language governing permissions and
1284 * limitations under the License.
1285 */const w0="firebaseLocalStorageDb",OP=1,Ec="firebaseLocalStorage",E0="fbase_key";class na{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 il(t,e){return t.transaction([Ec],e?"readwrite":"readonly").objectStore(Ec)}function xP(){const t=indexedDB.deleteDatabase(w0);
1285return new na(t).toPromise()}function Hu(){const t=indexedDB.open(w0,OP);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const s=t.result;try{s.createObjectStore(Ec,{keyPath:E0})}catch(r){n(r)}}),t.addEventListener("success",async()=>{const s=t.result;s.objectStoreNames.contains(Ec)?e(s):(s.close(),await xP(),e(await Hu()))})})}async function Yp(t,e,n){const s=il(t,!0).put({[E0]:e,value:n});return new na(s).toPromise()}async function VP(t,e){const n=il(t,!1).get(e),s=await new na(n).toPromise();return s===void 0?null:s.value}function qp(t,e){const n=il(t,!0).delete(e);return new na(n).toPromise()}const LP=800,FP=3;class T0{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 Hu(),this.db)}async _withRetries(e){let n=0;for(;;)try{const s=await this._openDb();return await e(s)}catch(s){if(n++>FP)throw s;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return v0()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=rl._getInstance(NP()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1285)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await MP(),!this.activeServiceWorker)return;this.sender=new PP(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||DP()!==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 Hu();return await Yp(e,wc,"1"),await qp(e,wc),!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(s=>Yp(s,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(s=>VP(s,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>qp(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(r=>{const i=il(r,!1).getAll();return new na(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],s=new Set;if(e.length!==0)for(const{fbase_key:r,value:i}of e)s.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),n.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!s.has(r)&&(this.notifyListeners(r,null),n.push(r));return n}notifyListeners(e,n){this.localCache[e]=n;const s=this.listeners[e];if(s)for(const r of Array.from(s))r(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),LP)}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
vendor: 4,318 bytes, lines 1285-1334
1285ject.keys(this.listeners).length===0&&this.stopPolling()}}T0.type="LOCAL";const UP=T0;new ea(3e4,6e4);/**
1286 * @license
1287 * Copyright 2021 Google LLC
1288 *
1289 * Licensed under the Apache License, Version 2.0 (the "License");
1290 * you may not use this file except in compliance with the License.
1291 * You may obtain a copy of the License at
1292 *
1293 *   http://www.apache.org/licenses/LICENSE-2.0
1294 *
1295 * Unless required by applicable law or agreed to in writing, software
1296 * distributed under the License is distributed on an "AS IS" BASIS,
1297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1298 * See the License for the specific language governing permissions and
1299 * limitations under the License.
1300 */function jP(t,e){return e?ns(e):(ue(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/**
1301 * @license
1302 * Copyright 2019 Google LLC
1303 *
1304 * Licensed under the Apache License, Version 2.0 (the "License");
1305 * you may not use this file except in compliance with the License.
1306 * You may obtain a copy of the License at
1307 *
1308 *   http://www.apache.org/licenses/LICENSE-2.0
1309 *
1310 * Unless required by applicable law or agreed to in writing, software
1311 * distributed under the License is distributed on an "AS IS" BASIS,
1312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1314 * limitations under the License.
1315 */class ld extends od{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ii(e,this._buildIdpRequest())}_linkToIdToken(e,n){return ii(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return ii(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 $P(t){return p0(t.auth,new ld(t),t.bypassAuthState)}function BP(t){const{auth:e,user:n}=t;return ue(n,e,"internal-error"),yP(n,new ld(t),t.bypassAuthState)}async function HP(t){const{auth:e,user:n}=t;return ue(n,e,"internal-error"),_P(n,new ld(t),t.bypassAuthState)}/**
1316 * @license
1317 * Copyright 2020 Google LLC
1318 *
1319 * Licensed under the Apache License, Version 2.0 (the "License");
1320 * you may not use this file except in compliance with the License.
1321 * You may obtain a copy of the License at
1322 *
1323 *   http://www.apache.org/licenses/LICENSE-2.0
1324 *
1325 * Unless required by applicable law or agreed to in writing, software
1326 * distributed under the License is distributed on an "AS IS" BASIS,
1327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1328 * See the License for the specific language governing permissions and
1329 * limitations under the License.
1330 */class I0{constructor(e,n,s,r,i=!1){this.auth=e,this.resolver=s,this.user=r,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(s){this.reject(s)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:s,postBody:r,tenantId:i,error:o,type:c}=e;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:s,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(c)(l))}catch(h){this.reject(h)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return $P;case"linkViaPopup":case"linkViaRedirect":return HP;case"reauthViaPopup":case"reauthViaRedirect":return BP;default:wn(this.auth,"internal-error")}}resolve(e){us(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){us(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()}}/**
1331 * @license
1332 * Copyright 2020 Google LLC
1333 *
1334 * Licensed under the Apache License, Version 2.0 (the "License");
1335 * you may not use this file except in compliance with the License.
1336 * You may obtain a copy of the License at
1337 *
1338 *   http://www.apache.org/licenses/LICENSE-2.0
1339 *
1340 * Unless required by applicable law or agreed to in writing, software
1341 * distributed under the License is distributed on an "AS IS" BASIS,
1342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1343 * See the License for the specific language governing permissions and
1344 * limitations under the License.
1345 */const WP=new ea(2e3,1e4);class Kr extends I0{constructor(e,n,s,r,i){super(e,n,r,i),this.provider=s,this.authWindow=null,this.pollId=null,Kr.currentPopupAction&&Kr.currentPopupAction.cancel(),Kr.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return ue(e,this.auth,"internal-error"),e}async onExecution(){us(this.filter.length===1,"Popup operations only handle one event");const e=cd();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(Dn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(Dn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Kr.currentPopupAction=null}pollUserCancellation(){const e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Dn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,WP.get())};e()}}Kr.currentPopupAction=null;/**
1346 * @license
1347 * Copyright 2020 Google LLC
1348 *
1349 * Licensed under the Apache License, Version 2.0 (the "License");
1350 * you may not use this file except in compliance with the License.
1351 * You may obtain a copy of the License at
1352 *
1353 *   http://www.apache.org/licenses/LICENSE-2.0
1354 *
1355 * Unless required by applicable law or agreed to in writing, software
1356 * distributed under the License is distributed on an "AS IS" BASIS,
1357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1358 * See the License for the specific language governing permissions and
1359 * limitations under the License.
1360 */const zP="pendingRedirect",za=new Map;class YP extends I0{constructor(e,n,s=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,s),this.eventId=null}async execute(){let e=za.get(this.auth._key());if(!e){try{const s=await qP(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(s)}catch(n){e=()=>Promise.reject(n)}za.set(this.auth._key(),e)}return this.bypassAuthState||za.set(this.auth._key(),()=>Promise.resolve(null)),e()}async 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 qP(t,e){const n=QP(e),s=KP(t);if(!await s._isAvailable())return!1;const r=await s._get(n)==="true";return await s._remove(n),r}function GP(t,e){za.set(t._key(),e)}function KP(t){return ns(t._redirectPersistence)}function QP(t){return Wa(zP,t.config.apiKey,t.name)}async function JP(t,e,n=!1){if(hn(t.app))return Promise.reject($s(t));const s=Ii(t),r=jP(s,e),o=await new YP(s,r,n).execute();return o&&!n&&(delete o.user._redirectEventId,await s._persistUserIfCurrent(o.user),await s._setRedirectUser(null,e)),o}/**
1361 * @license
1362 * Copyright 2020 Google LLC
1363 *
1364 * Licensed under the Apache License, Version 2.0 (the "License");
1365 * you may not use this file except in compliance with the License.
1366 * You may obtain a copy of the License at
1367 *
1368 *   http://www.apache.org/licenses/LICENSE-2.0
1369 *
1370 * Unless required by applicable law or agreed to in writing, software
1371 * distributed under the License is distributed on an "AS IS" BASIS,
1372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1373 * See the License for the specific language governing permissions and
1374 * limitations under the License.
1375 */const XP=600*1e3;class ZP{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=
1375Date.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(s=>{this.isEventForConsumer(e,s)&&(n=!0,this.sendToConsumer(e,s),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!ek(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){if(e.error&&!S0(e)){const s=e.error.code?.split("auth/")[1]||"internal-error";n.onError(Dn(this.auth,s))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const s=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&s}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=XP&&this.cachedEventUids.clear(),this.cachedEventUids.has(Gp(e))}saveEventToCache(e){this.cachedEventUids.add(Gp(e)),this.lastProcessedEventTime=Date.now()}}function Gp(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function S0({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function ek(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return S0(t);default:return!1}}/**
1376 * @license
1377 * Copyright 2020 Google LLC
1378 *
1379 * Licensed under the Apache License, Version 2.0 (the "License");
1380 * you may not use this file except in compliance with the License.
1381 * You may obtain a copy of the License at
1382 *
1383 *   http://www.apache.org/licenses/LICENSE-2.0
1384 *
1385 * Unless required by applicable law or agreed to in writing, software
1386 * distributed under the License is distributed on an "AS IS" BASIS,
1387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1388 * See the License for the specific language governing permissions and
1389 * limitations under the License.
1390 */async function tk(t,e={}){return er(t,"GET","/v1/projects",e)}/**
1391 * @license
1392 * Copyright 2020 Google LLC
1393 *
1394 * Licensed under the Apache License, Version 2.0 (the "License");
1395 * you may not use this file except in compliance with the License.
1396 * You may obtain a copy of the License at
1397 *
1398 *   http://www.apache.org/licenses/LICENSE-2.0
1399 *
1400 * Unless required by applicable law or agreed to in writing, software
1401 * distributed under the License is distributed on an "AS IS" BASIS,
1402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1403 * See the License for the specific language governing permissions and
1404 * limitations under the License.
1405 */const nk=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,sk=/^https?/;async function rk(t){if(t.config.emulator)return;const{authorizedDomains:e}=await tk(t);for(const n of e)try{if(ik(n))return}catch{}wn(t,"unauthorized-domain")}function ik(t){const e=$u(),{protocol:n,hostname:s}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&s===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===s}if(!sk.test(n))return!1;if(nk.test(t))return s===t;const r=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+r+"|"+r+")$","i").test(s)}/**
1406 * @license
1407 * Copyright 2020 Google LLC.
1408 *
1409 * Licensed under the Apache License, Version 2.0 (the "License");
1410 * you may not use this file except in compliance with the License.
1411 * You may obtain a copy of the License at
1412 *
1413 *   http://www.apache.org/licenses/LICENSE-2.0
1414 *
1415 * Unless required by applicable law or agreed to in writing, software
1416 * distributed under the License is distributed on an "AS IS" BASIS,
1417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1418 * See the License for the specific language governing permissions and
1419 * limitations under the License.
1420 */const ok=new ea(3e4,6e4);function Kp(){const t=Nn().___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}}
1420function ak(t){return new Promise((e,n)=>{function s(){Kp(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Kp(),n(Dn(t,"network-request-failed"))},timeout:ok.get()})}if(Nn().gapi?.iframes?.Iframe)e(gapi.iframes.getContext());else if(Nn().gapi?.load)s();else{const r=eP("iframefcb");return Nn()[r]=()=>{gapi.load?s():n(Dn(t,"network-request-failed"))},l0(`${ZC()}?onload=${r}`).catch(i=>n(i))}}).catch(e=>{throw Ya=null,e})}let Ya=null;function ck(t){return Ya=Ya||ak(t),Ya}/**
1421 * @license
1422 * Copyright 2020 Google LLC.
1423 *
1424 * Licensed under the Apache License, Version 2.0 (the "License");
1425 * you may not use this file except in compliance with the License.
1426 * You may obtain a copy of the License at
1427 *
1428 *   http://www.apache.org/licenses/LICENSE-2.0
1429 *
1430 * Unless required by applicable law or agreed to in writing, software
1431 * distributed under the License is distributed on an "AS IS" BASIS,
1432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1433 * See the License for the specific language governing permissions and
1434 * limitations under the License.
1435 */const lk=new ea(5e3,15e3),uk="__/auth/iframe",hk="emulator/auth/iframe",dk={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fk=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function pk(t){const e=t.config;ue(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?sd(e,hk):`https://${t.config.authDomain}/${uk}`,s={apiKey:e.apiKey,appName:t.name,v:Ti},r=fk.get(t.config.apiHost);r&&(s.eid=r);const i=t._getFrameworks();return i.length&&(s.fw=i.join(",")),`${n}?${Zo(s).slice(1)}`}async function mk(t){const e=await ck(t),n=Nn().gapi;return ue(n,t,"internal-error"),e.open({where:document.body,url:pk(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:dk,dontclear:!0},s=>new Promise(async(r,i)=>{await s.restyle({setHideOnLeave:!1});const o=Dn(t,"network-request-failed"),c=Nn().setTimeout(()=>{i(o)},lk.get());function l(){Nn().clearTimeout(c),r(s)}s.ping(l).then(l,()=>{i(o)})}))}/**
1436 * @license
1437 * Copyright 2020 Google LLC.
1438 *
1439 * Licensed under the Apache License, Version 2.0 (the "License");
1440 * you may not use this file except in compliance with the License.
1441 * You may obtain a copy of the License at
1442 *
1443 *   http://www.apache.org/licenses/LICENSE-2.0
1444 *
1445 * Unless required by applicable law or agreed to in writing, software
1446 * distributed under the License is distributed on an "AS IS" BASIS,
1447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1448 * See the License for the specific language governing permissions and
1449 * limitations under the License.
1450 */const gk={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},_k=500,yk=600,vk="_blank",wk="http://localhost";class Qp{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function Ek(t,e,n,s=_k,r=yk){const i=Math.max((window.screen.availHeight-r)/2,0).toString(),o=Math.max((window.screen.availWidth-s)/2,0).toString();let c="";const l={...gk,width:s.toString(),height:r.toString(),top:i,left:o},h=Vt().toLowerCase();n&&(c=n0(h)?vk:n),e0(h)&&(e=e||wk,l.scrollbars="yes");const d=Object.entries(l).reduce((m,[v,P])=>`${m}${v}=${P},`,"");if(WC(h)&&c!=="_self")return Tk(e||"",c),new Qp(null);const p=window.open(e||"",c,d);ue(p,t,"popup-blocked");try{p.focus()}catch{}return new Qp(p)}function Tk(t,e){const n=document.createElement("a");n.href=t,n.target=e;const s=document.createEvent("MouseEvent");s.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(s)}/**
1451 * @license
1452 * Copyright 2021 Google LLC
1453 *
1454 * Licensed under the Apache License, Version 2.0 (the "License");
1455 * you may not use this file except in compliance with the License.
1456 * You may obtain a copy of the License at
1457 *
1458 *   http://www.apache.org/licenses/LICENSE-2.0
1459 *
1460 * Unless required by applicable law or agreed to in writing, softw
1460are
1461 * distributed under the License is distributed on an "AS IS" BASIS,
1462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1463 * See the License for the specific language governing permissions and
1464 * limitations under the License.
1465 */const Ik="__/auth/handler",Sk="emulator/auth/handler",Ak=encodeURIComponent("fac");async function Jp(t,e,n,s,r,i){ue(t.config.authDomain,t,"auth-domain-config-required"),ue(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:s,v:Ti,eventId:r};if(e instanceof d0){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",uR(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[d,p]of Object.entries({}))o[d]=p}if(e instanceof ta){const d=e.getScopes().filter(p=>p!=="");d.length>0&&(o.scopes=d.join(","))}t.tenantId&&(o.tid=t.tenantId);const c=o;for(const d of Object.keys(c))c[d]===void 0&&delete c[d];const l=await t._getAppCheckToken(),h=l?`#${Ak}=${encodeURIComponent(l)}`:"";return`${bk(t)}?${Zo(c).slice(1)}${h}`}function bk({config:t}){return t.emulator?sd(t,Sk):`https://${t.authDomain}/${Ik}`}/**
1466 * @license
1467 * Copyright 2020 Google LLC
1468 *
1469 * Licensed under the Apache License, Version 2.0 (the "License");
1470 * you may not use this file except in compliance with the License.
1471 * You may obtain a copy of the License at
1472 *
1473 *   http://www.apache.org/licenses/LICENSE-2.0
1474 *
1475 * Unless required by applicable law or agreed to in writing, software
1476 * distributed under the License is distributed on an "AS IS" BASIS,
1477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1478 * See the License for the specific language governing permissions and
1479 * limitations under the License.
1480 */const ou="webStorageSupport";class Rk{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=y0,this._completeRedirectFn=JP,this._overrideRedirectResult=GP}async _openPopup(e,n,s,r){us(this.eventManagers[e._key()]?.manager,"_initialize() not called before _openPopup()");const i=await Jp(e,n,s,$u(),r);return Ek(e,i,cd())}async _openRedirect(e,n,s,r){await this._originValidation(e);const i=await Jp(e,n,s,$u(),r);return kP(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:r,promise:i}=this.eventManagers[n];return r?Promise.resolve(r):(us(i,"If manager is not set, promise should be"),i)}const s=this.initAndGetManager(e);return this.eventManagers[n]={promise:s},s.catch(()=>{delete this.eventManagers[n]}),s}async initAndGetManager(e){const n=await mk(e),s=new ZP(e);return n.register("authEvent",r=>(ue(r?.authEvent,e,"invalid-auth-event"),{status:s.onEvent(r.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:s},this.iframes[e._key()]=n,s}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(ou,{type:ou},r=>{const i=r?.[0]?.[ou];i!==void 0&&n(!!i),wn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=rk(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return a0()||t0()||id()}}const Ck=Rk;var Xp="@firebase/auth",Zp="1.11.0";/**
1481 * @license
1482 * Copyright 2020 Google LLC
1483 *
1484 * Licensed under the Apache License, Version 2.0 (the "License");
1485 * you may not use this file except in compliance with the License.
1486 * You may obtain a copy of the License at
1487 *
1488 *   http://www.apache.org/licenses/LICENSE-2.0
1489 *
1490 * Unless required by applicable law or agreed to in writing, software
1491 * distributed under the License is distributed on an "AS IS" BASIS,
1492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1493 * See the License for the specific language governing permissions and
1494 * limitations under the License.
1495 */class Pk{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(s=>{e(s?.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(){ue(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1496 * @license
1497 * Copyright 2020 Google LLC
1498 *
1499 * Licensed under the Apache License, Version 2.0 (the "License");
1500 * you may not use this file except in compliance with the License.
1501 * You may obtain a copy of the License at
1502 *
1503 *   http://www.apache.org/licenses/LICENSE-2.0
1504 *
1505 * Unless required by applicable law or agreed to in writing, software
1506 * distributed under the License is distributed on an "AS IS" BASIS,
1507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1508 * See the License for the specific language governing permissions and
1509 * limitations under the License.
1510 */function kk(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 Mk(t){ci(new Er("auth",(e,{options:n})=>{const s=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:c}=s.options;ue(o&&!o.includes(":"),"invalid-api-key",{appName:s.name});const l={apiKey:o,authDomain:c,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:c0(t)},h=new QC(s,r,i,l);return oP(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,s)=>{e.getProvider("auth-internal").initialize()})),ci(new Er("auth-internal",e=>{const n=Ii(e.getProvider("auth").getImmediate());return(s=>new Pk(s))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),js(Xp,Zp,kk(t)),js(Xp,Zp,"esm2020")}/**
1511 * @license
1512 * Copyright 2021 Google LLC
1513 *
1514 * Licensed under the Apache License, Version 2.0 (the "License");
1515 * you may not use this file except in compliance with the License.
1516 * You may obtain a copy of the License at
1517 *
1518 *   http://www.apache.org/licenses/LICENSE-2.0
1519 *
1520 * Unless required by applicable law or agreed to in writing, software
1521 * distributed under the License is distributed on an "AS IS" BASIS,
1522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1523 * See the License for the specific language governing permissions and
1524 * limitations under the License.
1525 */const Dk=300,Nk=Ly("authIdTokenMaxAge")||Dk;let em=null;const Ok=t=>async e=>{const n=e&&await e.getIdTokenResult(),s=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(s&&s>Nk)return;const r=n?.token;em!==r&&(em=r,await fetch(t,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))};function xk(t=Hy()){const e=td(t,"auth");if(e.isInitialized())return e.getImmediate();const n=iP(t,{popupRedirectResolver:Ck,persistence:[UP,RP,y0]}),s=Ly("authTokenSyncURL");if(s&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(s,location.origin);if(location.origin===i.origin){const o=Ok(i.toString());IP(n,o,()=>o(n.currentUser)),TP(n,c=>o(c))}}const r=xy("auth");return r&&aP(n,`http://${r}`),n}function Vk(){return document.getElementsByTagName("head")?.[0]??document}JC({loadJS(t){return new Promise((e,n)=>{const s=document.createElement("script");s.setAttribute("src",t),s.onload=e,s.onerror=r=>{const i=Dn("internal-error");i.customData=r,n(i)},s.type="text/javascript",s.charset="UTF-8",Vk().appendChild(s)})},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="});Mk("Browser");var tm={},nm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof tm<"u"?tm:typeof self<"u"?self:{};/** @license
1526Copyright The Closure Library Authors.
1527SPDX-License-Identifier: Apache-2.0
1528*/var Bs,A0;(function(){var t;/** @license
1529
1530 Copyright The Closure Library Authors.
1531 SPDX-License-Identifier: Apache-2.0
1532*/function e(S,_){function y(){}y.prototype=_.prototype,S.D=_.prototype,S.prototype=new y,S.prototype.constructor=S,S.C=function(I,A,b){for(var E=Array(arguments.length-2),mt=2;mt<arguments.length;mt++)E[mt-2]=arguments[mt];return _.prototype[A].apply(I,E)}}function n(){this.blockSize=-1}function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(s,n),s.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function r(S,_,y){y||(y=0);var I=Array(16);if(typeof _=="string")for(var A=0;16>A;++A)I[A]=_.charCodeAt(y++)|_.charCodeAt(y++)<<8|_.charCodeAt(y++)<<16|_.charCodeAt(y++)<<24;else for(A=0;16>A;++A)I[A]=_[y++]|_[y++]<<8|_[y++]<<16|_[y++]<<24;_=S.g[0],y=S.g[1],A=S.g[2];var b=S.g[3],E=_+(b^y&(A^b))+I[0]+3614090360&4294967295;_=y+(E<<7&4294967295|E>>>25),E=b+(A^_&(y^A))+I[1]+3905402710&4294967295,b=_+(E<<12&4294967295|E>>>20),E=A+(y^b&(_^y))+I[2]+606105819&4294967295,A=b+(E<<17&4294967295|E>>>15),E=y+(_^A&(b^_))+I[3]+3250441966&4294967295,y=A+(E<<22&4294967295|E>>>10),E=_+(b^y&(A^b))+I[4]+4118548399&4294967295,_=y+(E<<7&4294967295|E>>>25),E=b+(A^_&(y^A))+I[5]+1200080426&4294967295,b=_+(E<<12&4294967295|E>>>20),E=A+(y^b&(_^y))+I[6]+2821735955&4294967295,A=b+(E<<17&4294967295|E>>>15),E=y+(_^A&(b^_))+I[7]+4249261313&4294967295,y=A+(E<<22&4294967295|E>>>10),E=_+(b^y&(A^b))+I[8]+1770035416&4294967295,_=y+(E<<7&4294967295|E>>>25),E=b+(A^_&(y^A))+I[9]+2336552879&4294967295,b=_+(E<<12&4294967295|E>>>20),E=A+(y^b&(_^y))+I[10]+4294925233&4294967295,A=b+(E<<17&4294967295|E>>>15),E=y+(_^A&(b^_))+I[11]+2304563134&4294967295,y=A+(E<<22&4294967295|E>>>10),E=_+(b^y&(A^b))+I[12]+1804603682&4294967295,_=y+(E<<7&4294967295|E>>>25),E=b+(A^_&(y^A))+I[13]+4254626195&4294967295,b=_+(E<<12&4294967295|E>>>20),E=A+(y^b&(_^y))+I[14]+2792965006&4294967295,A=b+(E<<17&4294967295|E>>>15),E=y+(_^A&(b^_))+I[15]+1236535329&4294967295,y=A+(E<<22&4294967295|E>>>10),E=_+(A^b&(y^A))+I[1]+4129170786&4294967295,_=y+(E<<5&4294967295|E>>>27),E=b+(y^A&(_^y))+I[6]+3225465664&4294967295,b=_+(E<<9&4294967295|E>>>23),E=A+(_^y&(b^_))+I[11]+643717713&4294967295,A=b+(E<<14&4294967295|E>>>18),E=y+(b^_&(A^b))+I[0]+3921069994&4294967295,y=A+(E<<20&4294967295|E>>>12),E=_+(A^b&(y^A))+I[5]+3593408605&4294967295,_=y+(E<<5&4294967295|E>>>27),E=b+(y^A&(_^y))+I[10]+38016083&4294967295,b=_+(E<<9&4294967295|E>>>23),E=A+(_^y&(b^_))+I[15]+3634488961&4294967295,A=b+(E<<14&4294967295|E>>>18),E=y+(b^_&(A^b))+I[4]+3889429448&4294967295,y=A+(E<<20&4294967295|E>>>12),E=_+(A^b&(y^A))+I[9]+568446438&4294967295,_=y+(E<<5&4294967295|E>>>27),E=b+(y^A&(_^y))+I[14]+3275163606&4294967295,b=_+(E<<9&4294967295|E>>>23),E=A+(_^y&(b^_))+I[3]+4107603335&4294967295,A=b+(E<<14&4294967295|E>>>18),E=y+(b^_&(A^b))+I[8]+1163531501&4294967295,y=A+(E<<20&4294967295|E>>>12),E=_+(A^b&(y^A))+I[13]+2850285829&4294967295,_=y+(E<<5&4294967295|E>>>27),E=b+(y^A&(_^y))+I[2]+4243563512&4294967295,b=_+(E<<9&4294967295|E>>>23),E=A+(_^y&(b^_))+I[7]+1735328473&4294967295,A=b+(E<<14&4294967295|E>>>18),E=y+(b^_&(A^b))+I[12]+2368359562&4294967295,y=A+(E<<20&4294967295|E>>>12),E=_+(y^A^b)+I[5]+4294588738&4294967295,_=y+(E<<4&4294967295|E>>>28),E=b+(_^y^A)+I[8]+2272392833&4294967295,b=_+(E<<11&4294967295|E>>>21),E=A+(b^_^y)+I[11]+1839030562&4294967295,A=b+(E<<16&4294967295|E>>>16),E=y+(A^b^_)+I[14]+4259657740&4294967295,y=A+(E<<23&4294967295|E>>>9),E=_+(y^A^b)+I[1]+2763975236&4294967295,_=y+(E<<4&4294967295|E>>>28),E=b+(_^y^A)+I[4]+1272893353&4294967295,b=_+(E<<11&4294967295|E>>>21),E=A+(b^_^y)+I[7]+4139469664&4294967295,A=b+(E<<16&4294967295|E>>>16),E=y+(A^b^_)+I[10]+3200236656&4294967295,y=A+(E<<23&4294967295|E>>>9),E=_+(y^A^b)+I[13]+681279174&4294967295,_=y+(E<<4&4294967295|E>>>28),E=b+(_^y^A)+I[0]+3936430074&4294967295,b=_+(E<<11&4294967295|E>>>21),E=A+(b^_^y)+I[3]+3572445317&4294967295,A=b+(E<<16&4294967295|E>>>16),E=y+(A^b^_)+I[6]+76029189&4294967295,y=A+(E<<23&4294967295|E>>>9),E=_+(y^A^b)+I[9]+3654602809&4294967295,_=y+(E<<4&4294967295|E>>>28),E=b+(_^y^A)+I[12]+3873151461&4294967295,b=_+(E<<11&4294967295|E>>>21),E=A+(b^_^y)+I[15]+530742520&4294967295,A=b+(E<<16&4294967295|E>>>16),E=y+(A^b^_)+I[2]+3299628645&4294967295,y=A+(E<<23&4294967295|E>>>9),E=_+(A^(y|~b))+I[0]+4096336452&4294967295,_=y+(E<<6&4294967295|E>>>26),E=b+(y^(_|~A))+I[7]+1126891415&4294967295,b=_+(E<<10&4294967295|E>>>22),E=A+(_^(b|~y))+I[14]+2878612391&4294967295,A=b+(E<<15&4294967295|E>>>17),E=y+(b^(A|~_))+I[5]+4237533241&4294967295,y=A+(E<<21&4294967295|E>>>11),E=_+(A^(y|~b))+I[12]+1700485571&4294967295,_=y+(E<<6&4294967295|E>>>26),E=b+(y^(_|~A))+I[3]+2399980690&4294967295,b=_+(E<<10&4294967295|E>>>22),E=A+(_^(b|~y))+I[10]+4293915773&4294967295,A=b+(E<<15&4294967295|E>>>17),E=y+(b^(A|~_))+I[1]+2240044497&4294967295,y=A+(E<<21&4294967295|E>>>11),E=_+(A^(y|~b))+I[8]+1873313359&4294967295,_=y+(E<<6&4294967295|E>>>26),E=b+(y^(_|~A))+I[15]+4264355552&4294967295,b=_+(E<<10&4294967295|E>>>22),E=A+(_^(b|~y))+I[6]+2734768916&4294967295,A=b+(E<<15&4294967295|E>>>17),E=y+(b^(A|~_))+I[13]+1309151649&4294967295,y=A+(E<<21&4294967295|E>>>11),E=_+(A^(y|~b))+I[4]+4149444226&4294967295,_=y+(E<<6&4294967295|E>>>26),E=b+(y^(_|~A))+I[11]+3174756917&4294967295,b=_+(E<<10&4294967295|E>>>22),E=A+(_^(b|~y))+I[2]+718787259&4294967295,A=b+(E<<15&4294967295|E>>>17),E=y+(b^(A|~_))+I[9]+3951481745&4294967295,S.g[0]=S.g[0]+_&4294967295,S.g[1]=S.g[1]+(A+(E<<21&4294967295|E>>>11))&4294967295,S.g[2]=S.g[2]+A&4294967295,S.g[3]=S.g[3]+b&4294967295}s.prototype.u=function(S,_){_===void 0&&(_=S.length);for(var y=_-this.blockSize,I=this.B,A=this.h,b=0;b<_;){if(A==0)for(;b<=y;)r(this,S,b),b+=this.blockSize;if(typeof S=="string"){for(;b<_;)if(I[A++]=S.charCodeAt(b++),A==this.blockSize){r(this,I),A=0;break}}else for(;b<_;)if(I[A++]=S[b++],A==this.blockSize){r(this,I),A=0;break}}this.h=A,this.o+=_},s.prototype.v=function(){var S=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);S[0]=128;for(var _=1;_<S.length-8;++_)S[_]=0;var y=8*this.o;for(_=S.length-8;_<S.length;++_)S[_]=y&255,y/=256;for(this.u(S),S=Array(16),_=y=0;4>_;++_)for(var I=0;32>I;I+=8)S[y++]=this.g[_]>>>I&255;return S};function i(S,_){var y=c;return Object.prototype.hasOwnProperty.call(y,S)?y[S]:y[S]=_(S)}function o(S,_){this.h=_;for(var y=[],I=!0,A=S.length-1;0<=A;A--){var b=S[A]|0;I&&b==_||(y[A]=b,I=!1)}this.g=y}var c={};function l(S){return-128<=S&&128>S?i(S,function(_){return new o([_|0],0>_?-1:0)}):new o([S|0],0>S?-1:0)}function h(S){if(isNaN(S)||!isFinite(S))return p;if(0>S)return O(h(-S));for(var _=[],y=1,I=0;S>=y;I++)_[I]=S/y|0,y*=4294967296;return new o(_,0)}function d(S,_){if(S.length==0)throw Error("number format error: empty string");if(_=_||10,2>_||36<_)throw Error("radix out of range: "+_);if(S.charAt(0)=="-")return O(d(S.substring(1),_));if(0<=S.indexOf("-"))throw Error('number format error: interior "-" character');for(var y=h(Math.pow(_,8)),I=p,A=0;A<S.length;A+=8){var b=Math.min(8,S.length-A),E=parseInt(S.substring(A,A+b),_);8>b?(b=h(Math.pow(_,b)),I=I.j(b).add(h(E))):(I=I.j(y),I=I.add(h(E)))}return I}var p=l(0),m=l(1),v=l(16777216);
vendor: 43,233 bytes, lines 1532-1547
1532t=o.prototype,t.m=function(){if(M(this))return-O(this).m();for(var S=0,_=1,y=0;y<this.g.length;y++){var I=this.i(y);S+=(0<=I?I:4294967296+I)*_,_*=4294967296}return S},t.toString=function(S){if(S=S||10,2>S||36<S)throw Error("radix out of range: "+S);if(P(this))return"0";if(M(this))return"-"+O(this).toString(S);for(var _=h(Math.pow(S,6)),y=this,I="";;){var A=q(y,_).g;y=$(y,A.j(_));var b=((0<y.g.length?y.g[0]:y.h)>>>0).toString(S);if(y=A,P(y))return b+I;for(;6>b.length;)b="0"+b;I=b+I}},t.i=function(S){return 0>S?0:S<this.g.length?this.g[S]:this.h};function P(S){if(S.h!=0)return!1;for(var _=0;_<S.g.length;_++)if(S.g[_]!=0)return!1;return!0}function M(S){return S.h==-1}t.l=function(S){return S=$(this,S),M(S)?-1:P(S)?0:1};function O(S){for(var _=S.g.length,y=[],I=0;I<_;I++)y[I]=~S.g[I];return new o(y,~S.h).add(m)}t.abs=function(){return M(this)?O(this):this},t.add=function(S){for(var _=Math.max(this.g.length,S.g.length),y=[],I=0,A=0;A<=_;A++){var b=I+(this.i(A)&65535)+(S.i(A)&65535),E=(b>>>16)+(this.i(A)>>>16)+(S.i(A)>>>16);I=E>>>16,b&=65535,E&=65535,y[A]=E<<16|b}return new o(y,y[y.length-1]&-2147483648?-1:0)};function $(S,_){return S.add(O(_))}t.j=function(S){if(P(this)||P(S))return p;if(M(this))return M(S)?O(this).j(O(S)):O(O(this).j(S));if(M(S))return O(this.j(O(S)));if(0>this.l(v)&&0>S.l(v))return h(this.m()*S.m());for(var _=this.g.length+S.g.length,y=[],I=0;I<2*_;I++)y[I]=0;for(I=0;I<this.g.length;I++)for(var A=0;A<S.g.length;A++){var b=this.i(I)>>>16,E=this.i(I)&65535,mt=S.i(A)>>>16,$t=S.i(A)&65535;y[2*I+2*A]+=E*$t,U(y,2*I+2*A),y[2*I+2*A+1]+=b*$t,U(y,2*I+2*A+1),y[2*I+2*A+1]+=E*mt,U(y,2*I+2*A+1),y[2*I+2*A+2]+=b*mt,U(y,2*I+2*A+2)}for(I=0;I<_;I++)y[I]=y[2*I+1]<<16|y[2*I];for(I=_;I<2*_;I++)y[I]=0;return new o(y,0)};function U(S,_){for(;(S[_]&65535)!=S[_];)S[_+1]+=S[_]>>>16,S[_]&=65535,_++}function H(S,_){this.g=S,this.h=_}function q(S,_){if(P(_))throw Error("division by zero");if(P(S))return new H(p,p);if(M(S))return _=q(O(S),_),new H(O(_.g),O(_.h));if(M(_))return _=q(S,O(_)),new H(O(_.g),_.h);if(30<S.g.length){if(M(S)||M(_))throw Error("slowDivide_ only works with positive integers.");for(var y=m,I=_;0>=I.l(S);)y=le(y),I=le(I);var A=be(y,1),b=be(I,1);for(I=be(I,2),y=be(y,2);!P(I);){var E=b.add(I);0>=E.l(S)&&(A=A.add(y),b=E),I=be(I,1),y=be(y,1)}return _=$(S,A.j(_)),new H(A,_)}for(A=p;0<=S.l(_);){for(y=Math.max(1,Math.floor(S.m()/_.m())),I=Math.ceil(Math.log(y)/Math.LN2),I=48>=I?1:Math.pow(2,I-48),b=h(y),E=b.j(_);M(E)||0<E.l(S);)y-=I,b=h(y),E=b.j(_);P(b)&&(b=m),A=A.add(b),S=$(S,E)}return new H(A,S)}t.A=function(S){return q(this,S).h},t.and=function(S){for(var _=Math.max(this.g.length,S.g.length),y=[],I=0;I<_;I++)y[I]=this.i(I)&S.i(I);return new o(y,this.h&S.h)},t.or=function(S){for(var _=Math.max(this.g.length,S.g.length),y=[],I=0;I<_;I++)y[I]=this.i(I)|S.i(I);return new o(y,this.h|S.h)},t.xor=function(S){for(var _=Math.max(this.g.length,S.g.length),y=[],I=0;I<_;I++)y[I]=this.i(I)^S.i(I);return new o(y,this.h^S.h)};function le(S){for(var _=S.g.length+1,y=[],I=0;I<_;I++)y[I]=S.i(I)<<1|S.i(I-1)>>>31;return new o(y,S.h)}function be(S,_){var y=_>>5;_%=32;for(var I=S.g.length-y,A=[],b=0;b<I;b++)A[b]=0<_?S.i(b+y)>>>_|S.i(b+y+1)<<32-_:S.i(b+y);return new o(A,S.h)}s.prototype.digest=s.prototype.v,s.prototype.reset=s.prototype.s,s.prototype.update=s.prototype.u,A0=s,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,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=h,o.fromString=d,Bs=o}).apply(typeof nm<"u"?nm:typeof self<"u"?self:typeof window<"u"?window:{});var sm={},ka=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof sm<"u"?sm:typeof self<"u"?self:{};/** @license
1533Copyright The Closure Library Authors.
1534SPDX-License-Identifier: Apache-2.0
1535*/var b0,Ji,R0,qa,Wu,C0,P0,k0;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,u,f){return a==Array.prototype||a==Object.prototype||(a[u]=f.value),a};function n(a){a=[typeof globalThis=="object"&&globalThis,a,typeof window=="object"&&window,typeof self=="object"&&self,typeof ka=="object"&&ka];for(var u=0;u<a.length;++u){var f=a[u];if(f&&f.Math==Math)return f}throw Error("Cannot find global object")}var s=n(this);function r(a,u){if(u)e:{var f=s;a=a.split(".");for(var g=0;g<a.length-1;g++){var C=a[g];if(!(C in f))break e;f=f[C]}a=a[a.length-1],g=f[a],u=u(g),u!=g&&u!=null&&e(f,a,{configurable:!0,writable:!0,value:u})}}function i(a,u){a instanceof String&&(a+="");var f=0,g=!1,C={next:function(){if(!g&&f<a.length){var k=f++;return{value:u(k,a[k]),done:!1}}return g=!0,{done:!0,value:void 0}}};return C[Symbol.iterator]=function(){return C},C}r("Array.prototype.values",function(a){return a||function(){return i(this,function(u,f){return f})}});/** @license
1536
1537 Copyright The Closure Library Authors.
1538 SPDX-License-Identifier: Apache-2.0
1539*/var o=o||{},c=this||self;function l(a){var u=typeof a;return u=u!="object"?u:a?Array.isArray(a)?"array":u:"null",u=="array"||u=="object"&&typeof a.length=="number"}function h(a){var u=typeof a;return u=="object"&&a!=null||u=="function"}function d(a,u,f){return a.call.apply(a.bind,arguments)}function p(a,u,f){if(!a)throw Error();if(2<arguments.length){var g=Array.prototype.slice.call(arguments,2);return function(){var C=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(C,g),a.apply(u,C)}}return function(){return a.apply(u,arguments)}}function m(a,u,f){return m=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?d:p,m.apply(null,arguments)}function v(a,u){var f=Array.prototype.slice.call(arguments,1);return function(){var g=f.slice();return g.push.apply(g,arguments),a.apply(this,g)}}function P(a,u){function f(){}f.prototype=u.prototype,a.aa=u.prototype,a.prototype=new f,a.prototype.constructor=a,a.Qb=function(g,C,k){for(var Y=Array(arguments.length-2),je=2;je<arguments.length;je++)Y[je-2]=arguments[je];return u.prototype[C].apply(g,Y)}}function M(a){const u=a.length;if(0<u){const f=Array(u);for(let g=0;g<u;g++)f[g]=a[g];return f}return[]}function O(a,u){for(let f=1;f<arguments.length;f++){const g=arguments[f];if(l(g)){const C=a.length||0,k=g.length||0;a.length=C+k;for(let Y=0;Y<k;Y++)a[C+Y]=g[Y]}else a.push(g)}}class ${constructor(u,f){this.i=u,this.j=f,this.h=0,this.g=null}get(){let u;return 0<this.h?(this.h--,u=this.g,this.g=u.next,u.next=null):u=this.i(),u}}function U(a){return/^[\s\xa0]*$/.test(a)}function H(){var a=c.navigator;return a&&(a=a.userAgent)?a:""}function q(a){return q[" "](a),a}q[" "]=function(){};var le=H().indexOf("Gecko")!=-1&&!(H().toLowerCase().indexOf("webkit")!=-1&&H().indexOf("Edge")==-1)&&!(H().indexOf("Trident")!=-1||H().indexOf("MSIE")!=-1)&&H().indexOf("Edge")==-1;function be(a,u,f){for(const g in a)u.call(f,a[g],g,a)}function S(a,u){for(const f in a)u.call(void 0,a[f],f,a)}function _(a){const u={};for(const f in a)u[f]=a[f];return u}const y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function I(a,u){let f,g;for(let C=1;C<arguments.length;C++){g=arguments[C];for(f in g)a[f]=g[f];for(let k=0;k<y.length;k++)f=y[k],Object.prototype.hasOwnProperty.call(g,f)&&(a[f]=g[f])}}function A(a){var u=1;a=a.split(":");const f=[];for(;0<u&&a.length;)f.push(a.shift()),u--;return a.length&&f.push(a.join(":")),f}function b(a){c.setTimeout(()=>{throw a},0)}function E(){var a=zt;let u=null;return a.g&&(u=a.g,a.g=a.g.next,a.g||(a.h=null),u.next=null),u}class mt{constructor(){this.h=this.g=null}add(u,f){const g=$t.get();g.set(u,f),this.h?this.h.next=g:this.g=g,this.h=g}}var $t=new $(()=>new Be,a=>a.reset());class Be{constructor(){this.next=this.g=this.h=null}set(u,f){this.h=u,this.g=f,this.next=null}reset(){this.next=this.g=this.h=null}}let fe,Ee=!1,zt=new mt,ln=()=>{const a=c.Promise.resolve(void 0);fe=()=>{a.then(Jt)}};var Jt=()=>{for(var a;a=E();){try{a.h.call(a.g)}catch(f){b(f)}var u=$t;u.j(a),100>u.h&&(u.h++,a.next=u.g,u.g=a)}Ee=!1};function Ze(){this.s=this.s,this.C=this.C}Ze.prototype.s=!1,Ze.prototype.ma=function(){this.s||(this.s=!0,this.N())},Ze.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function et(a,u){this.type=a,this.g=this.target=u,this.defaultPrevented=!1}et.prototype.h=function(){this.defaultPrevented=!0};var _s=(function(){if(!c.addEventListener||!Object.defineProperty)return!1;var a=!1,u=Object.defineProperty({},"passive",{get:function(){a=!0}});try{const f=()=>{};c.addEventListener("test",f,u),c.removeEventListener("test",f,u)}catch{}return a})();function Sn(a,u){if(et.call(this,a?a.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,a){var f=this.type=a.type,g=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;if(this.target=a.target||a.srcElement,this.g=u,u=a.relatedTarget){if(le){e:{try{q(u.nodeName);var C=!0;break e}catch{}C=!1}C||(u=null)}}else f=="mouseover"?u=a.fromElement:f=="mouseout"&&(u=a.toElement);this.relatedTarget=u,g?(this.clientX=g.clientX!==void 0?g.clientX:g.pageX,this.clientY=g.clientY!==void 0?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0),this.button=a.button,this.key=a.key||"",this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.pointerId=a.pointerId||0,this.pointerType=typeof a.pointerType=="string"?a.pointerType:Bt[a.pointerType]||"",this.state=a.state,this.i=a,a.defaultPrevented&&Sn.aa.h.call(this)}}P(Sn,et);var Bt={2:"touch",3:"pen",4:"mouse"};Sn.prototype.h=function(){Sn.aa.h.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var D="closure_listenable_"+(1e6*Math.random()|0),Z=0;function K(a,u,f,g,C){this.listener=a,this.proxy=null,this.src=u,this.type=f,this.capture=!!g,this.ha=C,this.key=++Z,this.da=this.fa=!1}function ne(a){a.da=!0,a.listener=null,a.proxy=null,a.src=null,a.ha=null}function Me(a){this.src=a,this.g={},this.h=0}Me.prototype.add=function(a,u,f,g,C){var k=a.toString();a=this.g[k],a||(a=this.g[k]=[],this.h++);var Y=T(a,u,g,C);return-1<Y?(u=a[Y],f||(u.fa=!1)):(u=new K(u,this.src,k,!!g,C),u.fa=f,a.push(u)),u};function w(a,u){var f=u.type;if(f in a.g){var g=a.g[f],C=Array.prototype.indexOf.call(g,u,void 0),k;(k=0<=C)&&Array.prototype.splice.call(g,C,1),k&&(ne(u),a.g[f].length==0&&(delete a.g[f],a.h--))}}function T(a,u,f,g){for(var C=0;C<a.length;++C){var k=a[C];if(!k.da&&k.listener==u&&k.capture==!!f&&k.ha==g)return C}return-1}var R="closure_lm_"+(1e6*Math.random()|0),N={};function F(a,u,f,g,C){if(Array.isArray(u)){for(var k=0;k<u.length;k++)F(a,u[k],f,g,C);return null}return f=de(f),a&&a[D]?a.K(u,f,h(g)?!!g.capture:!1,C):x(a,u,f,!1,g,C)}function x(a,u,f,g,C,k){if(!u)throw Error("Invalid event type");var Y=h(C)?!!C.capture:!!C,je=Q(a);if(je||(a[R]=je=new Me(a)),f=je.add(u,f,g,Y,k),f.proxy)return f;if(g=G(),f.proxy=g,g.src=a,g.listener=f,a.addEventListener)_s||(C=Y),C===void 0&&(C=!1),a.addEventListener(u.toString(),g,C);else if(a.attachEvent)a.attachEvent(j(u.toString()),g);else if(a.addListener&&a.removeListener)a.addListener(g);else throw Error("addEventListener and attachEvent are unavailable.");return f}function G(){function a(f){return u.call(a.src,a.listener,f)}const u=ae;return a}function z(a,u,f,g,C){if(Array.isArray(u))for(var k=0;k<u.length;k++)z(a,u[k],f,g,C);else g=h(g)?!!g.capture:!!g,f=de(f),a&&a[D]?(a=a.i,u=String(u).toString(),u in a.g&&(k=a.g[u],f=T(k,f,g,C),-1<f&&(ne(k[f]),Array.prototype.splice.call(k,f,1),k.length==0&&(delete a.g[u],a.h--)))):a&&(a=Q(a))&&(u=a.g[u.toString()],a=-1,u&&(a=T(u,f,g,C)),(f=-1<a?u[a]:null)&&W(f))}function W(a){if(typeof a!="number"&&a&&!a.da){var u=a.src;if(u&&u[D])w(u.i,a);else{var f=a.type,g=a.proxy;u.removeEventListener?u.removeEventListener(f,g,a.capture):u.detachEvent?u.detachEvent(j(f),g):u.addListener&&u.removeListener&&u.removeListener(g),(f=Q(u))?(w(f,a),f.h==0&&(f.src=null,u[R]=null)):ne(a)}}}function j(a){return a in N?N[a]:N[a]="on"+a}function ae(a,u){if(a.da)a=!0;else{u=new Sn(u,this);var f=a.listener,g=a.ha||a.src;a.fa&&W(a),a=f.call(g,u)}return a}function Q(a){return a=a[R],a instanceof Me?a:null}var se="__closure_events_fn_"+(1e9*Math.random()>>>0);function de(a){return typeof a=="function"?a:(a[se]||(a[se]=function(u){return a.handleEvent(u)}),a[se])}function ce(){Ze.call(this),this.i=new Me(this),this.M=this,this.F=null}P(ce,Ze),ce.prototype[D]=!0,ce.prototype.removeEventListener=function(a,u,f,g){z(this,a,u,f,g)};function ye(a,u){var f,g=a.F;if(g)for(f=[];g;g=g.F)f.push(g);if(a=a.M,g=u.type||u,typeof u=="string")u=new et(u,a);else if(u instanceof et)u.target=u.target||a;else{var C=u;u=new et(g,a),I(u,C)}if(C=!0,f)for(var k=f.length-1;0<=k;k--){var Y=u.g=f[k];C=Re(Y,g,!0,u)&&C}if(Y=u.g=a,C=Re(Y,g,!0,u)&&C,C=Re(Y,g,!1,u)&&C,f)for(k=0;k<f.length;k++)Y=u.g=f[k],C=Re(Y,g,!1,u)&&C}ce.prototype.N=function(){if(ce.aa.N.call(this),this.i){var a=this.i,u;for(u in a.g){for(var f=a.g[u],g=0;g<f.length;g++)ne(f[g]);delete a.g[u],a.h--}}this.F=null},ce.prototype.K=function(a,u,f,g){return this.i.add(String(a),u,!1,f,g)},ce.prototype.L=function(a,u,f,g){return this.i.add(String(a),u,!0,f,g)};function Re(a,u,f,g){if(u=a.i.g[String(u)],!u)return!0;u=u.concat();for(var C=!0,k=0;k<u.length;++k){var Y=u[k];if(Y&&!Y.da&&Y.capture==f){var je=Y.listener,vt=Y.ha||Y.src;Y.fa&&w(a.i,Y),C=je.call(vt,g)!==!1&&C}}return C&&!g.defaultPrevented}function gt(a,u,f){if(typeof a=="function")f&&(a=m(a,f));else if(a&&typeof a.handleEvent=="function")a=m(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(u)?-1:c.setTimeout(a,u||0)}function _t(a){a.g=gt(()=>{a.g=null,a.i&&(a.i=!1,_t(a))},a.l);const u=a.h;a.h=null,a.m.apply(null,u)}class Xt extends Ze{constructor(u,f){super(),this.m=u,this.l=f,this.h=null,this.i=!1,this.g=null}j(u){this.h=arguments,this.g?this.i=!0:_t(this)}N(){super.N(),this.g&&(c.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function At(a){Ze.call(this),this.h=a,this.g={}}P(At,Ze);var ys=[];function ki(a){be(a.g,function(u,f){this.g.hasOwnProperty(f)&&W(u)},a),a.g={}}At.prototype.N=function(){At.aa.N.call(this),ki(this)},At.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var yt=c.JSON.stringify,Zt=c.JSON.parse,ca=class{stringify(a){return c.JSON.stringify(a,void 0)}parse(a){return c.JSON.parse(a,void 0)}};function Dr(){}Dr.prototype.h=null;function Yd(a){return a.h||(a.h=a.i())}function qd(){}var Mi={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Al(){et.call(this,"d")}P(Al,et);function bl(){et.call(this,"c")}P(bl,et);var nr={},Gd=null;function la(){return Gd=Gd||new ce}nr.La="serverreachability";function Kd(a){et.call(this,nr.La,a)}P(Kd,et);function Di(a){const u=la();ye(u,new Kd(u))}nr.STAT_EVENT="statevent";function Qd(a,u){et.call(this,nr.STAT_EVENT,a),this.stat=u}P(Qd,et);function Ft(a){const u=la();ye(u,new Qd(u,a))}nr.Ma="timingevent";function Jd(a,u){et.call(this,nr.Ma,a),this.size=u}P(Jd,et);function Ni(a,u){if(typeof a!="function")throw Error("Fn must not be null and must be a function");return c.setTimeout(function(){a()},u)}function Oi(){this.g=!0}Oi.prototype.xa=function(){this.g=!1};function bw(a,u,f,g,C,k){a.info(function(){if(a.g)if(k)for(var Y="",je=k.split("&"),vt=0;vt<je.length;vt++){var De=je[vt].split("=");if(1<De.length){var bt=De[0];De=De[1];var Rt=bt.split("_");Y=2<=Rt.length&&Rt[1]=="type"?Y+(bt+"="+De+"&"):Y+(bt+"=redacted&")}}else Y=null;else Y=k;return"XMLHTTP REQ ("+g+") [attempt "+C+"]: "+u+`
1540`+f+`
1541`+Y})}function Rw(a,u,f,g,C,k,Y){a.info(function(){return"XMLHTTP RESP ("+g+") [ attempt "+C+"]: "+u+`
1542`+f+`
1543`+k+" "+Y})}function Nr(a,u,f,g){a.info(function(){return"XMLHTTP TEXT ("+u+"): "+Pw(a,f)+(g?" "+g:"")})}function Cw(a,u){a.info(function(){return"TIMEOUT: "+u})}Oi.prototype.info=function(){};function Pw(a,u){if(!a.g)return u;if(!u)return null;try{var f=JSON.parse(u);if(f){for(a=0;a<f.length;a++)if(Array.isArray(f[a])){var g=f[a];if(!(2>g.length)){var C=g[1];if(Array.isArray(C)&&!(1>C.length)){var k=C[0];if(k!="noop"&&k!="stop"&&k!="close")for(var Y=1;Y<C.length;Y++)C[Y]=""}}}}return yt(f)}catch{return u}}var ua={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},Xd={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},Rl;function ha(){}P(ha,Dr),ha.prototype.g=function(){return new XMLHttpRequest},ha.prototype.i=function(){return{}},Rl=new ha;function vs(a,u,f,g){this.j=a,this.i=u,this.l=f,this.R=g||1,this.U=new At(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Zd}function Zd(){this.i=null,this.g="",this.h=!1}var ef={},Cl={};function Pl(a,u,f){a.L=1,a.v=ma(Wn(u)),a.m=f,a.P=!0,tf(a,null)}function tf(a,u){a.F=Date.now(),da(a),a.A=Wn(a.v);var f=a.A,g=a.R;Array.isArray(g)||(g=[String(g)]),gf(f.i,"t",g),a.C=0,f=a.j.J,a.h=new Zd,a.g=Of(a.j,f?u:null,!a.m),0<a.O&&(a.M=new Xt(m(a.Y,a,a.g),a.O)),u=a.U,f=a.g,g=a.ca;var C="readystatechange";Array.isArray(C)||(C&&(ys[0]=C.toString()),C=ys);for(var k=0;k<C.length;k++){var Y=F(f,C[k],g||u.handleEvent,!1,u.h||u);if(!Y)break;u.g[Y.key]=Y}u=a.H?_(a.H):{},a.m?(a.u||(a.u="POST"),u["Content-Type"]="application/x-www-form-urlencoded",a.g.ea(a.A,a.u,a.m,u)):(a.u="GET",a.g.ea(a.A,a.u,null,u)),Di(),bw(a.i,a.u,a.A,a.l,a.R,a.m)}vs.prototype.ca=function(a){a=a.target;const u=this.M;u&&zn(a)==3?u.j():this.Y(a)},vs.prototype.Y=function(a){try{if(a==this.g)e:{const Rt=zn(this.g);var u=this.g.Ba();const Vr=this.g.Z();if(!(3>Rt)&&(Rt!=3||this.g&&(this.h.h||this.g.oa()||If(this.g)))){this.J||Rt!=4||u==7||(u==8||0>=Vr?Di(3):Di(2)),kl(this);var f=this.g.Z();this.X=f;t:if(nf(this)){var g=If(this.g);a="";var C=g.length,k=zn(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){sr(this),xi(this);var Y="";break t}this.h.i=new c.TextDecoder}for(u=0;u<C;u++)this.h.h=!0,a+=this.h.i.decode(g[u],{stream:!(k&&u==C-1)});g.length=0,this.h.g+=a,this.C=0,Y=this.h.g}else Y=this.g.oa();if(this.o=f==200,Rw(this.i,this.u,this.A,this.l,this.R,Rt,f),this.o){if(this.T&&!this.K){t:{if(this.g){var je,vt=this.g;if((je=vt.g?vt.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!U(je)){var De=je;break t}}De=null}if(f=De)Nr(this.i,this.l,f,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ml(this,f);else{this.o=!1,this.s=3,Ft(12),sr(this),xi(this);break e}}if(this.P){f=!0;let un;for(;!this.J&&this.C<Y.length;)if(un=kw(this,Y),un==Cl){Rt==4&&(this.s=4,Ft(14),f=!1),Nr(this.i,this.l,null,"[Incomplete Response]");break}else if(un==ef){this.s=4,Ft(15),Nr(this.i,this.l,Y,"[Invalid Chunk]"),f=!1;break}else Nr(this.i,this.l,un,null),Ml(this,un);if(nf(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Rt!=4||Y.length!=0||this.h.h||(this.s=1,Ft(16),f=!1),this.o=this.o&&f,!f)Nr(this.i,this.l,Y,"[Invalid Chunked Response]"),sr(this),xi(this);else if(0<Y.length&&!this.W){this.W=!0;var bt=this.j;bt.g==this&&bt.ba&&!bt.M&&(bt.j.info("Great, no buffering proxy detected. Bytes received: "+Y.length),Ll(bt),bt.M=!0,Ft(11))}}else Nr(this.i,this.l,Y,null),Ml(this,Y);Rt==4&&sr(this),this.o&&!this.J&&(Rt==4?kf(this.j,this):(this.o=!1,da(this)))}else qw(this.g),f==400&&0<Y.indexOf("Unknown SID")?(this.s=3,Ft(12)):(this.s=0,Ft(13)),sr(this),xi(this)}}}catch{}finally{}};function nf(a){return a.g?a.u=="GET"&&a.L!=2&&a.j.Ca:!1}function kw(a,u){var f=a.C,g=u.indexOf(`
1544`,f);return g==-1?Cl:(f=Number(u.substring(f,g)),isNaN(f)?ef:(g+=1,g+f>u.length?Cl:(u=u.slice(g,g+f),a.C=g+f,u)))}vs.prototype.cancel=function(){this.J=!0,sr(this)};function da(a){a.S=Date.now()+a.I,sf(a,a.I)}function sf(a,u){if(a.B!=null)throw Error("WatchDog timer not null");a.B=Ni(m(a.ba,a),u)}function kl(a){a.B&&(c.clearTimeout(a.B),a.B=null)}vs.prototype.ba=function(){this.B=null;const a=Date.now();0<=a-this.S?(Cw(this.i,this.A),this.L!=2&&(Di(),Ft(17)),sr(this),this.s=2,xi(this)):sf(this,this.S-a)};function xi(a){a.j.G==0||a.J||kf(a.j,a)}function sr(a){kl(a);var u=a.M;u&&typeof u.ma=="function"&&u.ma(),a.M=null,ki(a.U),a.g&&(u=a.g,a.g=null,u.abort(),u.ma())}function Ml(a,u){try{var f=a.j;if(f.G!=0&&(f.g==a||Dl(f.h,a))){if(!a.K&&Dl(f.h,a)&&f.G==3){try{var g=f.Da.g.parse(u)}catch{g=null}if(Array.isArray(g)&&g.length==3){var C=g;if(C[0]==0){e:if(!f.u){if(f.g)if(f.g.F+3e3<a.F)Ea(f),va(f);else break e;Vl(f),Ft(18)}}else f.za=C[1],0<f.za-f.T&&37500>C[2]&&f.F&&f.v==0&&!f.C&&(f.C=Ni(m(f.Za,f),6e3));if(1>=af(f.h)&&f.ca){try{f.ca()}catch{}f.ca=void 0}}else ir(f,11)}else if((a.K||f.g==a)&&Ea(f),!U(u))for(C=f.Da.g.parse(u),u=0;u<C.length;u++){let De=C[u];if(f.T=De[0],De=De[1],f.G==2)if(De[0]=="c"){f.K=De[1],f.ia=De[2];const bt=De[3];bt!=null&&(f.la=bt,f.j.info("VER="+f.la));const Rt=De[4];Rt!=null&&(f.Aa=Rt,f.j.info("SVER="+f.Aa));const Vr=De[5];Vr!=null&&typeof Vr=="number"&&0<Vr&&(g=1.5*Vr,f.L=g,f.j.info("backChannelRequestTimeoutMs_="+g)),g=f;const un=a.g;if(un){const Ia=un.g?un.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Ia){var k=g.h;k.g||Ia.indexOf("spdy")==-1&&Ia.indexOf("quic")==-1&&Ia.indexOf("h2")==-1||(k.j=k.l,k.g=new Set,k.h&&(Nl(k,k.h),k.h=null))}if(g.D){const Fl=un.g?un.g.getResponseHeader("X-HTTP-Session-Id"):null;Fl&&(g.ya=Fl,Ye(g.I,g.D,Fl))}}f.G=3,f.l&&f.l.ua(),f.ba&&(f.R=Date.now()-a.F,f.j.info("Handshake RTT: "+f.R+"ms")),g=f;var Y=a;if(g.qa=Nf(g,g.J?g.ia:null,g.W),Y.K){cf(g.h,Y);var je=Y,vt=g.L;vt&&(je.I=vt),je.B&&(kl(je),da(je)),g.g=Y}else Cf(g);0<f.i.length&&wa(f)}else De[0]!="stop"&&De[0]!="close"||ir(f,7);else f.G==3&&(De[0]=="stop"||De[0]=="close"?De[0]=="stop"?ir(f,7):xl(f):De[0]!="noop"&&f.l&&f.l.ta(De),f.v=0)}}Di(4)}catch{}}var Mw=class{constructor(a,u){this.g=a,this.map=u}};function rf(a){this.l=a||10,c.PerformanceNavigationTiming?(a=c.performance.getEntriesByType("navigation"),a=0<a.length&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(c.chrome&&c.chrome.loadTimes&&c.chrome.loadTimes()&&c.chrome.loadTimes().wasFetchedViaSpdy),this.j=a?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function of(a){return a.h?!0:a.g?a.g.size>=a.j:!1}function af(a){return a.h?1:a.g?a.g.size:0}function Dl(a,u){return a.h?a.h==u:a.g?a.g.has(u):!1}function Nl(a,u){a.g?a.g.add(u):a.h=u}function cf(a,u){a.h&&a.h==u?a.h=null:a.g&&a.g.has(u)&&a.g.delete(u)}rf.prototype.cancel=function(){if(this.i=lf(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const a of this.g.values())a.cancel();this.g.clear()}};function lf(a){if(a.h!=null)return a.i.concat(a.h.D);if(a.g!=null&&a.g.size!==0){let u=a.i;for(const f of a.g.values())u=u.concat(f.D);return u}return M(a.i)}function Dw(a){if(a.V&&typeof a.V=="function")return a.V();if(typeof Map<"u"&&a instanceof Map||typeof Set<"u"&&a instanceof Set)return Array.from(a.values());if(typeof a=="string")return a.split("");if(l(a)){for(var u=[],f=a.length,g=0;g<f;g++)u.push(a[g]);return u}u=[],f=0;for(g in a)u[f++]=a[g];return u}function Nw(a){if(a.na&&typeof a.na=="function")return a.na();if(!a.V||typeof a.V!="function"){if(typeof Map<"u"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set<"u"&&a instanceof Set)){if(l(a)||typeof a=="string"){var u=[];a=a.length;for(var f=0;f<a;f++)u.push(f);return u}u=[],f=0;for(const g in a)u[f++]=g;return u}}}function uf(a,u){if(a.forEach&&typeof a.forEach=="function")a.forEach(u,void 0);else if(l(a)||typeof a=="string")Array.prototype.forEach.call(a,u,void 0);else for(var f=Nw(a),g=Dw(a),C=g.length,k=0;k<C;k++)u.call(void 0,g[k],f&&f[k],a)}var hf=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ow(a,u){if(a){a=a.split("&");for(var f=0;f<a.length;f++){var g=a[f].indexOf("="),C=null;if(0<=g){var k=a[f].substring(0,g);C=a[f].substring(g+1)}else k=a[f];u(k,C?decodeURIComponent(C.replace(/\+/g," ")):"")}}}function rr(a){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,a instanceof rr){this.h=a.h,fa(this,a.j),this.o=a.o,this.g=a.g,pa(this,a.s),this.l=a.l;var u=a.i,f=new Fi;f.i=u.i,u.g&&(f.g=new Map(u.g),f.h=u.h),df(this,f),this.m=a.m}else a&&(u=String(a).match(hf))?(this.h=!1,fa(this,u[1]||"",!0),this.o=Vi(u[2]||""),this.g=Vi(u[3]||"",!0),pa(this,u[4]),this.l=Vi(u[5]||"",!0),df(this,u[6]||"",!0),this.m=Vi(u[7]||"")):(this.h=!1,this.i=new Fi(null,this.h))}rr.prototype.toString=function(){var a=[],u=this.j;u&&a.push(Li(u,ff,!0),":");var f=this.g;return(f||u=="file")&&(a.push("//"),(u=this.o)&&a.push(Li(u,ff,!0),"@"),a.push(encodeURIComponent(String(f)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.s,f!=null&&a.push(":",String(f))),(f=this.l)&&(this.g&&f.charAt(0)!="/"&&a.push("/"),a.push(Li(f,f.charAt(0)=="/"?Lw:Vw,!0))),(f=this.i.toString())&&a.push("?",f),(f=this.m)&&a.push("#",Li(f,Uw)),a.join("")};function Wn(a){return new rr(a)}function fa(a,u,f){a.j=f?Vi(u,!0):u,a.j&&(a.j=a.j.replace(/:$/,""))}function pa(a,u){if(u){if(u=Number(u),isNaN(u)||0>u)throw Error("Bad port number "+u);a.s=u}else a.s=null}function df(a,u,f){u instanceof Fi?(a.i=u,jw(a.i,a.h)):(f||(u=Li(u,Fw)),a.i=new Fi(u,a.h))}function Ye(a,u,f){a.i.set(u,f)}function ma(a){return Ye(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),a}function Vi(a,u){return a?u?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Li(a,u,f){return typeof a=="string"?(a=encodeURI(a).replace(u,xw),f&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function xw(a){return a=a.charCodeAt(0),"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ff=/[#\/\?@]/g,Vw=/[#\?:]/g,Lw=/[#\?]/g,Fw=/[#\?@]/g,Uw=/#/g;function Fi(a,u){this.h=this.g=null,this.i=a||null,this.j=!!u}function ws(a){a.g||(a.g=new Map,a.h=0,a.i&&Ow(a.i,function(u,f){a.add(decodeURIComponent(u.replace(/\+/g," ")),f)}))}t=Fi.prototype,t.add=function(a,u){ws(this),this.i=null,a=Or(this,a);var f=this.g.get(a);return f||this.g.set(a,f=[]),f.push(u),this.h+=1,this};function pf(a,u){ws(a),u=Or(a,u),a.g.has(u)&&(a.i=null,a.h-=a.g.get(u).length,a.g.delete(u))}function mf(a,u){return ws(a),u=Or(a,u),a.g.has(u)}t.forEach=function(a,u){ws(this),this.g.forEach(function(f,g){f.forEach(function(C){a.call(u,C,g,this)},this)},this)},t.na=function(){ws(this);const a=Array.from(this.g.values()),u=Array.from(this.g.keys()),f=[];for(let g=0;g<u.length;g++){const C=a[g];for(let k=0;k<C.length;k++)f.push(u[g])}return f},t.V=function(a){ws(this);let u=[];if(typeof a=="string")mf(this,a)&&(u=u.concat(this.g.get(Or(this,a))));else{a=Array.from(this.g.values());for(let f=0;f<a.length;f++)u=u.concat(a[f])}return u},t.set=function(a,u){return ws(this),this.i=null,a=Or(this,a),mf(this,a)&&(this.h-=this.g.get(a).length),this.g.set(a,[u]),this.h+=1,this},t.get=function(a,u){return a?(a=this.V(a),0<a.length?String(a[0]):u):u};function gf(a,u,f){pf(a,u),0<f.length&&(a.i=null,a.g.set(Or(a,u),M(f)),a.h+=f.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const a=[],u=Array.from(this.g.keys());for(var f=0;f<u.length;f++){var g=u[f];const k=encodeURIComponent(String(g)),Y=this.V(g);for(g=0;g<Y.length;g++){var C=k;Y[g]!==""&&(C+="="+encodeURIComponent(String(Y[g]))),a.push(C)}}return this.i=a.join("&")};function Or(a,u){return u=String(u),a.j&&(u=u.toLowerCase()),u}function jw(a,u){u&&!a.j&&(ws(a),a.i=null,a.g.forEach(function(f,g){var C=g.toLowerCase();g!=C&&(pf(this,g),gf(this,C,f))},a)),a.j=u}function $w(a,u){const f=new Oi;if(c.Image){const g=new Image;g.onload=v(Es,f,"TestLoadImage: loaded",!0,u,g),g.onerror=v(Es,f,"TestLoadImage: error",!1,u,g),g.onabort=v(Es,f,"TestLoadImage: abort",!1,u,g),g.ontimeout=v(Es,f,"TestLoadImage: timeout",!1,u,g),c.setTimeout(function(){g.ontimeout&&g.ontimeout()},1e4),g.src=a}else u(!1)}function Bw(a,u){const f=new Oi,g=new AbortController,C=setTimeout(()=>{g.abort(),Es(f,"TestPingServer: timeout",!1,u)},1e4);fetch(a,{signal:g.signal}).then(k=>{clearTimeout(C),k.ok?Es(f,"TestPingServer: ok",!0,u):Es(f,"TestPingServer: server error",!1,u)}).catch(()=>{clearTimeout(C),Es(f,"TestPingServer: error",!1,u)})}function Es(a,u,f,g,C){try{C&&(C.onload=null,C.onerror=null,C.onabort=null,C.ontimeout=null),g(f)}catch{}}function Hw(){this.g=new ca}function Ww(a,u,f){const g=f||"";try{uf(a,function(C,k){let Y=C;h(C)&&(Y=yt(C)),u.push(g+k+"="+encodeURIComponent(Y))})}catch(C){throw u.push(g+"type="+encodeURIComponent("_badmap")),C}}function ga(a){this.l=a.Ub||null,this.j=a.eb||!1}P(ga,Dr),ga.prototype.g=function(){return new _a(this.l,this.j)},ga.prototype.i=(function(a){return function(){return a}})({});function _a(a,u){ce.call(this),this.D=a,this.o=u,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}P(_a,ce),t=_a.prototype,t.open=function(a,u){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=a,this.A=u,this.readyState=1,ji(this)},t.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const u={headers:this.u,method:this.B,credentials:this.m,cache:void 0};a&&(u.body=a),(this.D||c).fetch(new Request(this.A,u)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,Ui(this)),this.readyState=0},t.Sa=function(a){if(this.g&&(this.l=a,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=a.headers,this.readyState=2,ji(this)),this.g&&(this.readyState=3,ji(this),this.g)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof c.ReadableStream<"u"&&"body"in a){if(this.j=a.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.v=new TextDecoder;_f(this)}else a.text().then(this.Ra.bind(this),this.ga.bind(this))};function _f(a){a.j.read().then(a.Pa.bind(a)).catch(a.ga.bind(a))}t.Pa=function(a){if(this.g){if(this.o&&a.value)this.response.push(a.value);else if(!this.o){var u=a.value?a.value:new Uint8Array(0);(u=this.v.decode(u,{stream:!a.done}))&&(this.response=this.responseText+=u)}a.done?Ui(this):ji(this),this.readyState==3&&_f(this)}},t.Ra=function(a){this.g&&(this.response=this.responseText=a,Ui(this))},t.Qa=function(a){this.g&&(this.response=a,Ui(this))},t.ga=function(){this.g&&Ui(this)};function Ui(a){a.readyState=4,a.l=null,a.j=null,a.v=null,ji(a)}t.setRequestHeader=function(a,u){this.u.append(a,u)},t.getResponseHeader=function(a){return this.h&&this.h.get(a.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const a=[],u=this.h.entries();for(var f=u.next();!f.done;)f=f.value,a.push(f[0]+": "+f[1]),f=u.next();return a.join(`\r
1545`)};function ji(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(_a.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(a){this.m=a?"include":"same-origin"}});function yf(a){let u="";return be(a,function(f,g){u+=g,u+=":",u+=f,u+=`\r
1546`}),u}function Ol(a,u,f){e:{for(g in f){var g=!1;break e}g=!0}g||(f=yf(f),typeof a=="string"?f!=null&&encodeURIComponent(String(f)):Ye(a,u,f))}function nt(a){ce.call(this),this.headers=new Map,this.o=a||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}P(nt,ce);var zw=/^https?$/i,Yw=["POST","PUT"];t=nt.prototype,t.Ha=function(a){this.J=a},t.ea=function(a,u,f,g){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+a);u=u?u.toUpperCase():"GET",this.D=a,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rl.g(),this.v=this.o?Yd(this.o):Yd(Rl),this.g.onreadystatechange=m(this.Ea,this);try{this.B=!0,this.g.open(u,String(a),!0),this.B=!1}catch(k){vf(this,k);return}if(a=f||"",f=new Map(this.headers),g)if(Object.getPrototypeOf(g)===Object.prototype)for(var C in g)f.set(C,g[C]);else if(typeof g.keys=="function"&&typeof g.get=="function")for(const k of g.keys())f.set(k,g.get(k));else throw Error("Unknown input type for opt_headers: "+String(g));g=Array.from(f.keys()).find(k=>k.toLowerCase()=="content-type"),C=c.FormData&&a instanceof c.FormData,!(0<=Array.prototype.indexOf.call(Yw,u,void 0))||g||C||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[k,Y]of f)this.g.setRequestHeader(k,Y);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Tf(this),this.u=!0,this.g.send(a),this.u=!1}catch(k){vf(this,k)}};function vf(a,u){a.h=!1,a.g&&(a.j=!0,a.g.abort(),a.j=!1),a.l=u,a.m=5,wf(a),ya(a)}function wf(a){a.A||(a.A=!0,ye(a,"complete"),ye(a,"error"))}t.abort=function(a){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=a||7,ye(this,"complete"),ye(this,"abort"),ya(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),ya(this,!0)),nt.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?Ef(this):this.bb())},t.bb=function(){Ef(this)};function Ef(a){if(a.h&&typeof o<"u"&&(!a.v[1]||zn(a)!=4||a.Z()!=2)){if(a.u&&zn(a)==4)gt(a.Ea,0,a);else if(ye(a,"readystatechange"),zn(a)==4){a.h=!1;try{const Y=a.Z();e:switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var u=!0;break e;default:u=!1}var f;if(!(f=u)){var g;if(g=Y===0){var C=String(a.D).match(hf)[1]||null;!C&&c.self&&c.self.location&&(C=c.self.location.protocol.slice(0,-1)),g=!zw.test(C?C.toLowerCase():"")}f=g}if(f)ye(a,"complete"),ye(a,"success");else{a.m=6;try{var k=2<zn(a)?a.g.statusText:""}catch{k=""}a.l=k+" ["+a.Z()+"]",wf(a)}}finally{ya(a)}}}}function ya(a,u){if(a.g){Tf(a);const f=a.g,g=a.v[0]?()=>{}:null;a.g=null,a.v=null,u||ye(a,"ready");try{f.onreadystatechange=g}catch{}}}function Tf(a){a.I&&(c.clearTimeout(a.I),a.I=null)}t.isActive=function(){return!!this.g};function zn(a){return a.g?a.g.readyState:0}t.Z=function(){try{return 2<zn(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(a){if(this.g){var u=this.g.responseText;return a&&u.indexOf(a)==0&&(u=u.substring(a.length)),Zt(u)}};function If(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.H){case"":case"text":return a.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch{return null}}function qw(a){const u={};a=(a.g&&2<=zn(a)&&a.g.getAllResponseHeaders()||"").split(`\r
1547`);for(let g=0;g<a.length;g++){if(U(a[g]))continue;var f=A(a[g]);const C=f[0];if(f=f[1],typeof f!="string")continue;f=f.trim();const k=u[C]||[];u[C]=k,k.push(f)}S(u,function(g){return g.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function $i(a,u,f){return f&&f.internalChannelParams&&f.internalChannelParams[a]||u}function Sf(a){this.Aa=0,this.i=[],this.j=new Oi,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=$i("failFast",!1,a),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=$i("baseRetryDelayMs",5e3,a),this.cb=$i("retryDelaySeedMs",1e4,a),this.Wa=$i("forwardChannelMaxRetries",2,a),this.wa=$i("forwardChannelRequestTimeoutMs",2e4,a),this.pa=a&&a.xmlHttpFactory||void 0,this.Xa=a&&a.Tb||void 0,this.Ca=a&&a.useFetchStreams||!1,this.L=void 0,this.J=a&&a.supportsCrossDomainXhr||!1,this.K="",this.h=new rf(a&&a.concurrentRequestLimit),this.Da=new Hw,this.P=a&&a.fastHandshake||!1,this.O=a&&a.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=a&&a.Rb||!1,a&&a.xa&&this.j.xa(),a&&a.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&a&&a.detectBufferingProxy||!1,this.ja=void 0,a&&a.longPollingTimeout&&0<a.longPollingTimeout&&(this.ja=a.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=Sf.prototype,t.la=8,t.G=1,t.connect=function(a,u,f,g){Ft(0),this.W=a,this.H=u||{},f&&g!==void 0&&(this.H.OSID=f,this.H.OAID=g),this.F=this.X,this.I=Nf(this,null,this.W),wa(this)};function xl(a){if(Af(a),a.G==3){var u=a.U++,f=Wn(a.I);if(Ye(f,"SID",a.K),Ye(f,"RID",u),Ye(f,"TYPE","terminate"),Bi(a,f),u=new vs(a,a.j,u),u.L=2,u.v=ma(Wn(f)),f=!1,c.navigator&&c.navigator.sendBeacon)try{f=c.navigator.sendBeacon(u.v.toString(),"")}catch{}!f&&c.Image&&(new Image().src=u.v,f=!0),f||(u.g=Of(u.j,null),u.g.ea(u.v)),u.F=Date.now(),da(u)}Df(a)}function va(a){a.g&&(Ll(a),a.g.cancel(),a.g=null)}function Af(a){va(a),a.u&&(c.clearTimeout(a.u),a.u=null),Ea(a),a.h.cancel(),a.s&&(typeof a.s=="number"&&c.clearTimeout(a.s),a.s=null)}function wa(a){if(!of(a.h)&&!a.s){a.s=!0;var u=a.Ga;fe||ln(),Ee||(fe(),Ee=!0),zt.add(u,a),a.B=0}}function Gw(a,u){return af(a.h)>=a.h.j-(a.s?1:0)?!1:a.s?(a.i=u.D.concat(a.i),!0):a.G==1||a.G==2||a.B>=(a.Va?0:a.Wa)?!1:(a.s=Ni(m(a.Ga,a,u),Mf(a,a.B)),a.B++,!0)}t.Ga=function(a){if(this.s)if(this.s=null,this.G==1){if(!a){this.U=Math.floor(1e5*Math.random()),a=this.U++;const C=new vs(this,this.j,a);let k=this.o;if(this.S&&(k?(k=_(k),I(k,this.S)):k=this.S),this.m!==null||this.O||(C.H=k,k=null),this.P)e:{for(var u=0,f=0;f<this.i.length;f++){t:{var g=this.i[f];if("__data__"in g.map&&(g=g.map.__data__,typeof g=="string")){g=g.length;break t}g=void 0}if(g===void 0)break;if(u+=g,4096<u){u=f;break e}if(u===4096||f===this.i.length-1){u=f+1;break e}}u=1e3}else u=1e3;u=Rf(this,C,u),f=Wn(this.I),Ye(f,"RID",a),Ye(f,"CVER",22),this.D&&Ye(f,"X-HTTP-Session-Id",this.D),Bi(this,f),k&&(this.O?u="headers="+encodeURIComponent(String(yf(k)))+"&"+u:this.m&&Ol(f,this.m,k)),Nl(this.h,C),this.Ua&&Ye(f,"TYPE","init"),this.P?(Ye(f,"$req",u),Ye(f,"SID","null"),C.T=!0,Pl(C,f,null)):Pl(C,f,u),this.G=2}}else this.G==3&&(a?bf(this,a):this.i.length==0||of(this.h)||bf(this))};function bf(a,u){var f;u?f=u.l:f=a.U++;const g=Wn(a.I);Ye(g,"SID",a.K),Ye(g,"RID",f),Ye(g,"AID",a.T),Bi(a,g),a.m&&a.o&&Ol(g,a.m,a.o),f=new vs(a,a.j,f,a.B+1),a.m===null&&(f.H=a.o),u&&(a.i=u.D.concat(a.i)),u=Rf(a,f,1e3),f.I=Math.round(.5*a.wa)+Math.round(.5*a.wa*Math.random()),Nl(a.h,f),Pl(f,g,u)}function Bi(a,u){a.H&&be(a.H,function(f,g){Ye(u,g,f)}),a.l&&uf({},function(f,g){Ye(u,g,f)})}function Rf(a,u,f){f=Math.min(a.i.length,f);var g=a.l?m(a.l.Na,a.l,a):null;e:{var C=a.i;let k=-1;for(;;){const Y=["count="+f];k==-1?0<f?(k=C[0].g,Y.push("ofs="+k)):k=0:Y.push("ofs="+k);let je=!0;for(let vt=0;vt<f;vt++){let De=C[vt].g;const bt=C[vt].map;if(De-=k,0>De)k=Math.max(0,C[vt].g-100),je=!1;else try{Ww(bt,Y,"req"+De+"_")}catch{g&&g(bt)}}if(je){g=Y.join("&");break e}}}return a=a.i.splice(0,f),u.D=a,g}function Cf(a){if(!a.g&&!a.u){a.Y=1;var u=a.Fa;fe||ln(),Ee||(fe(),Ee=!0),zt.add(u,a),a.v=0}}function Vl(a){return a.g||a.u||3<=a.v?!1:(a.Y++,a.u=Ni(m(a.Fa,a),Mf(a,a.v)),a.v++,!0)}t.Fa=function(){if(this.u=null,Pf(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var a=2*this.R;this.j.info("BP detection timer enabled: "+a),this.A=Ni(m(this.ab,this),a)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Ft(10),va(this),Pf(this))};function Ll(a){a.A!=null&&(c.clearTimeout(a.A),a.A=null)}function Pf(a){a.g=new vs(a,a.j,"rpc",a.Y),a.m===null&&(a.g.H=a.o),a.g.O=0;var u=Wn(a.qa);Ye(u,"RID","rpc"),Ye(u,"SID",a.K),Ye(u,"AID",a.T),Ye(u,"CI",a.F?"0":"1"),!a.F&&a.ja&&Ye(u,"TO",a.ja),Ye(u,"TYPE","xmlhttp"),Bi(a,u),a.m&&a.o&&Ol(u,a.m,a.o),a.L&&(a.g.I=a.L);var f=a.g;a=a.ia,f.L=1,f.v=ma(Wn(u)),f.m=null,f.P=!0,tf(f,a)}t.Za=function(){this.C!=null&&(this.C=null,va(this),Vl(this),Ft(19))};function Ea(a){a.C!=null&&(c.clearTimeout(a.C),a.C=null)}function kf(a,u){var f=null;if(a.g==u){Ea(a),Ll(a),a.g=null;var g=2}else if(Dl(a.h,u))f=u.D,cf(a.h,u),g=1;else return;if(a.G!=0){if(u.o)if(g==1){f=u.m?u.m.length:0,u=Date.now()-u.F;var C=a.B;g=la(),ye(g,new Jd(g,f)),wa(a)}else Cf(a);else if(C=u.s,C==3||C==0&&0<u.X||!(g==1&&Gw(a,u)||g==2&&Vl(a)))switch(f&&0<f.length&&(u=a.h,u.i=u.i.concat(f)),C){case 1:ir(a,5);break;case 4:ir(a,10);break;case 3:ir(a,6);break;default:ir(a,2)}}}function Mf(a,u){let f=a.Ta+Math.floor(Math.random()*a.cb);return a.isActive()||(f*=2),f*u}function ir(a,u){if(a.j.info("Error code "+u),u==2){var f=m(a.fb,a),g=a.Xa;const C=!g;g=new rr(g||"//www.google.com/images/cleardot.gif"),c.location&&c.location.protocol=="http"||fa(g,"https"),ma(g),C?$w(g.toString(),f):Bw(g.toString(),f)}else Ft(2);a.G=0,a.l&&a.l.sa(u),Df(a),Af(a)}t.fb=function(a){a?(this.j.info("Successfully pinged google.com"),Ft(2)):(this.j.info("Failed to ping google.com"),Ft(1))};function Df(a){if(a.G=0,a.ka=[],a.l){const u=lf(a.h);(u.length!=0||a.i.length!=0)&&(O(a.ka,u),O(a.ka,a.i),a.h.i.length=0,M(a.i),a.i.length=0),a.l.ra()}}function Nf(a,u,f){var g=f instanceof rr?Wn(f):new rr(f);if(g.g!="")u&&(g.g=u+"."+g.g),pa(g,g.s);else{var C=c.location;g=C.protocol,u=u?u+"."+C.hostname:C.hostname,C=+C.port;var k=new rr(null);g&&fa(k,g),u&&(k.g=u),C&&pa(k,C),f&&(k.l=f),g=k}return f=a.D,u=a.ya,f&&u&&Ye(g,f,u),Ye(g,"VER",a.la),Bi(a,g),g}function Of(a,u,f){if(u&&!a.J)throw Error("Can't create secondary domain capable XhrIo object.");return u=a.Ca&&!a.pa?new nt(new ga({eb:f})):new nt(a.pa),u.Ha(a.J),u}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function xf(){}t=xf.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function Ta(){}Ta.prototype.g=function(a,u){return new Yt(a,u)};function Yt(a,u){ce.call(this),this.g=new Sf(u),this.l=a,this.h=u&&u.messageUrlParams||null,a=u&&u.messageHeaders||null,u&&u.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"}),this.g.o=a,a=u&&u.initMessageHeaders||null,u&&u.messageContentType&&(a?a["X-WebChannel-Content-Type"]=u.messageContentType:a={"X-WebChannel-Content-Type":u.messageContentType}),u&&u.va&&(a?a["X-WebChannel-Client-Profile"]=u.va:a={"X-WebChannel-Client-Profile":u.va}),this.g.S=a,(a=u&&u.Sb)&&!U(a)&&(this.g.m=a),this.v=u&&u.supportsCrossDomainXhr||!1,this.u=u&&u.sendRawJson||!1,(u=u&&u.httpSessionIdParam)&&!U(u)&&(this.g.D=u,a=this.h,a!==null&&u in a&&(a=this.h,u in a&&delete a[u])),this.j=new xr(this)}P(Yt,ce),Yt.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Yt.prototype.close=function(){xl(this.g)},Yt.prototype.o=function(a){var u=this.g;
1547if(typeof a=="string"){var f={};f.__data__=a,a=f}else this.u&&(f={},f.__data__=yt(a),a=f);u.i.push(new Mw(u.Ya++,a)),u.G==3&&wa(u)},Yt.prototype.N=function(){this.g.l=null,delete this.j,xl(this.g),delete this.g,Yt.aa.N.call(this)};function Vf(a){Al.call(this),a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var u=a.__sm__;if(u){e:{for(const f in u){a=f;break e}a=void 0}(this.i=a)&&(a=this.i,u=u!==null&&a in u?u[a]:void 0),this.data=u}else this.data=a}P(Vf,Al);function Lf(){bl.call(this),this.status=1}P(Lf,bl);function xr(a){this.g=a}P(xr,xf),xr.prototype.ua=function(){ye(this.g,"a")},xr.prototype.ta=function(a){ye(this.g,new Vf(a))},xr.prototype.sa=function(a){ye(this.g,new Lf)},xr.prototype.ra=function(){ye(this.g,"b")},Ta.prototype.createWebChannel=Ta.prototype.g,Yt.prototype.send=Yt.prototype.o,Yt.prototype.open=Yt.prototype.m,Yt.prototype.close=Yt.prototype.close,k0=function(){return new Ta},P0=function(){return la()},C0=nr,Wu={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},ua.NO_ERROR=0,ua.TIMEOUT=8,ua.HTTP_ERROR=6,qa=ua,Xd.COMPLETE="complete",R0=Xd,qd.EventType=Mi,Mi.OPEN="a",Mi.CLOSE="b",Mi.ERROR="c",Mi.MESSAGE="d",ce.prototype.listen=ce.prototype.K,Ji=qd,nt.prototype.listenOnce=nt.prototype.L,nt.prototype.getLastError=nt.prototype.Ka,nt.prototype.getLastErrorCode=nt.prototype.Ba,nt.prototype.getStatus=nt.prototype.Z,nt.prototype.getResponseJson=nt.prototype.Oa,nt.prototype.getResponseText=nt.prototype.oa,nt.prototype.send=nt.prototype.ea,nt.prototype.setWithCredentials=nt.prototype.Ha,b0=nt}).apply(typeof ka<"u"?ka:typeof self<"u"?self:typeof window<"u"?window:{});const rm="@firebase/firestore",im="4.9.1";/**
1548 * @license
1549 * Copyright 2017 Google LLC
1550 *
1551 * Licensed under the Apache License, Version 2.0 (the "License");
1552 * you may not use this file except in compliance with the License.
1553 * You may obtain a copy of the License at
1554 *
1555 *   http://www.apache.org/licenses/LICENSE-2.0
1556 *
1557 * Unless required by applicable law or agreed to in writing, software
1558 * distributed under the License is distributed on an "AS IS" BASIS,
1559 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1560 * See the License for the specific language governing permissions and
1561 * limitations under the License.
1562 */class kt{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}}kt.UNAUTHENTICATED=new kt(null),kt.GOOGLE_CREDENTIALS=new kt("google-credentials-uid"),kt.FIRST_PARTY=new kt("first-party-uid"),kt.MOCK_USER=new kt("mock-user");/**
1563 * @license
1564 * Copyright 2017 Google LLC
1565 *
1566 * Licensed under the Apache License, Version 2.0 (the "License");
1567 * you may not use this file except in compliance with the License.
1568 * You may obtain a copy of the License at
1569 *
1570 *   http://www.apache.org/licenses/LICENSE-2.0
1571 *
1572 * Unless required by applicable law or agreed to in writing, software
1573 * distributed under the License is distributed on an "AS IS" BASIS,
1574 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1575 * See the License for the specific language governing permissions and
1576 * limitations under the License.
1577 */let Ai="12.2.0";/**
1578 * @license
1579 * Copyright 2017 Google LLC
1580 *
1581 * Licensed under the Apache License, Version 2.0 (the "License");
1582 * you may not use this file except in compliance with the License.
1583 * You may obtain a copy of the License at
1584 *
1585 *   http://www.apache.org/licenses/LICENSE-2.0
1586 *
1587 * Unless required by applicable law or agreed to in writing, software
1588 * distributed under the License is distributed on an "AS IS" BASIS,
1589 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1590 * See the License for the specific language governing permissions and
1591 * limitations under the License.
1592 */const Ir=new Zh("@firebase/firestore");function Hr(){return Ir.logLevel}function ee(t,...e){if(Ir.logLevel<=Te.DEBUG){const n=e.map(ud);Ir.debug(`Firestore (${Ai}): ${t}`,...n)}}function hs(t,...e){if(Ir.logLevel<=Te.ERROR){const n=e.map(ud);Ir.error(`Firestore (${Ai}): ${t}`,...n)}}function ui(t,...e){if(Ir.logLevel<=Te.WARN){const n=e.map(ud);Ir.warn(`Firestore (${Ai}): ${t}`,...n)}}function ud(t){if(typeof t=="string")return t;try{/**
1593* @license
1594* Copyright 2020 Google LLC
1595*
1596* Licensed under the Apache License, Version 2.0 (the "License");
1597* you may not use this file except in compliance with the License.
1598* You may obtain a copy of the License at
1599*
1600*   http://www.apache.org/licenses/LICENSE-2.0
1601*
1602* Unless required by applicable law or agreed to in writing, software
1603* distributed under the License is distributed on an "AS IS" BASIS,
1604* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1605* See the License for the specific language governing permissions and
1606* limitations under the License.
1607*/return(function(n){return JSON.stringify(n)})(t)}catch{return t}}/**
1608 * @license
1609 * Copyright 2017 Google LLC
1610 *
1611 * Licensed under the Apache License, Version 2.0 (the "License");
1612 * you may not use this file except in compliance with the License.
1613 * You may obtain a copy of the License at
1614 *
1615 *   http://www.apache.org/licenses/LICENSE-2.0
1616 *
1617 * Unless required by applicable law or agreed to in writing, software
1618 * distributed under the License is distributed on an "AS IS" BASIS,
1619 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1620 * See the License for the specific language governing permissions and
1621 * limitations under the License.
1622 */function he(t,e,n){let s="Unexpected state";typeof e=="string"?s=e:n=e,M0(t,s,n)}function M0(t,e,n){let s=`FIRESTORE (${Ai}) INTERNAL ASSERTION FAILED: ${e} (ID: ${t.toString(16)})`;if(n!==void 0)try{s+=" CONTEXT: "+JSON.stringify(n)}catch{s+=" CONTEXT: "+n}throw hs(s),new Error(s)}function Fe(t,e,n,s){let r="Unexpected state";typeof n=="string"?r=n:s=n,t||M0(e,r,s)}function ge(t,e){return t}/**
1623 * @license
1624 * Copyright 2017 Google LLC
1625 *
1626 * Licensed under the Apache License, Version 2.0 (the "License");
1627 * you may not use this file except in compliance with the License.
1628 * You may obtain a copy of the License at
1629 *
1630 *   http://www.apache.org/licenses/LICENSE-2.0
1631 *
1632 * Unless required by applicable law or agreed to in writing, software
1633 * distributed under the License is distributed on an "AS IS" BASIS,
1634 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1635 * See the License for the specific language governing permissions and
1636 * limitations under the License.
1637 */const V={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 X extends gs{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/**
1638 * @license
1639 * Copyright 2017 Google LLC
1640 *
1641 * Licensed under the Apache License, Version 2.0 (the "License");
1642 * you may not use this file except in compliance with the License.
1643 * You may obtain a copy of the License at
1644 *
1645 *   http://www.apache.org/licenses/LICENSE-2.0
1646 *
1647 * Unless required by applicable law or agreed to in writing, software
1648 * distributed under the License is distributed on an "AS IS" BASIS,
1649 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1650 * See the License for the specific language governing permissions and
1651 * limitations under the License.
1652 */class Hs{constructor(){this.promise=new Promise(((e,n)=>{this.resolve=e,this.reject=n}))}}/**
1653 * @license
1654 * Copyright 2017 Google LLC
1655 *
1656 * Licensed under the Apache License, Version 2.0 (the "License");
1657 * you may not use this file except in compliance with the License.
1658 * You may obtain a copy of the License at
1659 *
1660 *   http://www.apache.org/licenses/LICENSE-2.0
1661 *
1662 * Unless required by applicable law or agreed to in writing, software
1663 * distributed under the License is distributed on an "AS IS" BASIS,
1664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1665 * See the License for the specific language governing permissions and
1666 * limitations under the License.
1667 */class D0{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Lk{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable((()=>n(kt.UNAUTHENTICATED)))}shutdown(){}}class Fk{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 Uk{constructor(e){this.t=e,this.currentUser=kt.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){Fe(this.o===void 0,42304);let s=this.i;const r=l=>this.i!==s?(s=this.i,n(l)):Promise.resolve();let i=new Hs;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Hs,e.enqueueRetryable((()=>r(this.currentUser)))};const o=()=>{const l=i;e.enqueueRetryable((async()=>{await l.promise,await r(this.currentUser)}))},c=l=>{ee("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit((l=>c(l))),setTimeout((()=>
vendor: 4,869 bytes, lines 1667-1701
1667{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?c(l):(ee("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Hs)}}),0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((s=>this.i!==e?(ee("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(Fe(typeof s.accessToken=="string",31837,{l:s}),new D0(s.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 Fe(e===null||typeof e=="string",2055,{h:e}),new kt(e)}}class jk{constructor(e,n,s){this.P=e,this.T=n,this.I=s,this.type="FirstParty",this.user=kt.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);const e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}}class $k{constructor(e,n,s){this.P=e,this.T=n,this.I=s}getToken(){return Promise.resolve(new jk(this.P,this.T,this.I))}start(e,n){e.enqueueRetryable((()=>n(kt.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class om{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 Bk{constructor(e,n){this.V=n,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,hn(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,n){Fe(this.o===void 0,3512);const s=i=>{i.error!=null&&ee("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,ee("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable((()=>s(i)))};const r=i=>{ee("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit((i=>r(i))),setTimeout((()=>{if(!this.appCheck){const i=this.V.getImmediate({optional:!0});i?r(i):ee("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){if(this.p)return Promise.resolve(new om(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((n=>n?(Fe(typeof n.token=="string",44558,{tokenResult:n}),this.m=n.token,new om(n.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/**
1668 * @license
1669 * Copyright 2020 Google LLC
1670 *
1671 * Licensed under the Apache License, Version 2.0 (the "License");
1672 * you may not use this file except in compliance with the License.
1673 * You may obtain a copy of the License at
1674 *
1675 *   http://www.apache.org/licenses/LICENSE-2.0
1676 *
1677 * Unless required by applicable law or agreed to in writing, software
1678 * distributed under the License is distributed on an "AS IS" BASIS,
1679 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1680 * See the License for the specific language governing permissions and
1681 * limitations under the License.
1682 */function Hk(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 s=0;s<t;s++)n[s]=Math.floor(256*Math.random());return n}/**
1683 * @license
1684 * Copyright 2017 Google LLC
1685 *
1686 * Licensed under the Apache License, Version 2.0 (the "License");
1687 * you may not use this file except in compliance with the License.
1688 * You may obtain a copy of the License at
1689 *
1690 *   http://www.apache.org/licenses/LICENSE-2.0
1691 *
1692 * Unless required by applicable law or agreed to in writing, software
1693 * distributed under the License is distributed on an "AS IS" BASIS,
1694 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1695 * See the License for the specific language governing permissions and
1696 * limitations under the License.
1697 */class hd{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let s="";for(;s.length<20;){const r=Hk(40);for(let i=0;i<r.length;++i)s.length<20&&r[i]<n&&(s+=e.charAt(r[i]%62))}return s}}function Ie(t,e){return t<e?-1:t>e?1:0}function zu(t,e){const n=Math.min(t.length,e.length);for(let s=0;s<n;s++){const r=t.charAt(s),i=e.charAt(s);if(r!==i)return au(r)===au(i)?Ie(r,i):au(r)?1:-1}return Ie(t.length,e.length)}const Wk=55296,zk=57343;function au(t){const e=t.charCodeAt(0);return e>=Wk&&e<=zk}function hi(t,e,n){return t.length===e.length&&t.every(((s,r)=>n(s,e[r])))}/**
1698 * @license
1699 * Copyright 2017 Google LLC
1700 *
1701 * Licensed under the Apache License, Version 2.0 (the "License");
1702 * you may not use this file except in compliance with the License.
1703 * You may obtain a copy of the License at
1704 *
1705 *   http://www.apache.org/licenses/LICENSE-2.0
1706 *
1707 * Unless required by applicable law or agreed to in writing, software
1708 * distributed under the License is distributed on an "AS IS" BASIS,
1709 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1710 * See the License for the specific language governing permissions and
1711 * limitations under the License.
1712 */const am="__name__";class Rn{constructor(e,n,s){n===void 0?n=0:n>e.length&&he(637,{offset:n,range:e.length}),s===void 0?s=e.length-n:s>e.length-n&&he(1746,{length:s,range:e.length-n}),this.segments=e,this.offset=n,this.len=s}get length(){return this.len}isEqual(e){return Rn.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof Rn?e.forEach((s=>{n.push(s)})):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,s=this.limit();n<s;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const s=Math.min(e.length,n.length);for(let r=0;r<s;r++){const i=Rn.compareSegments(e.get(r),n.get(r));if(i!==0)return i}return Ie(e.length,n.length)}static compareSegments(e,n){const s=Rn.isNumericId(e),r=Rn.isNumericId(n);return s&&!r?-1:!s&&r?1:s&&r?Rn.extractNumericId(e).compare(Rn.extractNumericId(n)):zu(e,n)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Bs.fromString(e.substring(4,e.length-2))}}class We extends Rn{construct(e,n,s){return new We(e,n,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const s of e){if(s.indexOf("//")>=0)throw new X(V.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);n.push(...s.split("/").filter((r=>r.length>0)))}return new We(n)}static emptyPath(){return new We([])}}const Yk=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class It extends Rn{construct(e,n,s){return new It(e,n,s)}static isValidIdentifier(e){return Yk.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),It.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===am}static keyField(){return new It([am])}static fromServerFormat(e){const n=[];let s="",r=0;const i=()=>{if(s.length===0)throw new X(V.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(s),s=""};let o=!1;for(;r<e.length;){const c=e[r];if(c==="\\"){if(r+1===e.length)throw new X(V.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[r+1];if(l!=="\\"&&l!=="."&&l!=="`")throw new X(V.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);s+=l,r+=2}else c==="`"?(o=!o,r++):c!=="."||o?(s+=c,r++):(i(),r++)}if(i(),o)throw new X(V.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new It(n)}static emptyPath(){return new It([])}}/**
1713 * @license
1714 * Copyright 2017 Google LLC
1715 *
1716 * Licensed under the Apache License, Version 2.0 (the "License");
1717 * you may not use this file except in compliance with the License.
1718 * You may obtain a copy of the License at
1719 *
1720 *   http://www.apache.org/licenses/LICENSE-2.0
1721 *
1722 * Unless required by applicable law or agreed to in writing, softw
1722are
1723 * distributed under the License is distributed on an "AS IS" BASIS,
1724 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1725 * See the License for the specific language governing permissions and
1726 * limitations under the License.
1727 */class re{constructor(e){this.path=e}static fromPath(e){return new re(We.fromString(e))}static fromName(e){return new re(We.fromString(e).popFirst(5))}static empty(){return new re(We.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&&We.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return We.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new re(new We(e.slice()))}}/**
1728 * @license
1729 * Copyright 2017 Google LLC
1730 *
1731 * Licensed under the Apache License, Version 2.0 (the "License");
1732 * you may not use this file except in compliance with the License.
1733 * You may obtain a copy of the License at
1734 *
1735 *   http://www.apache.org/licenses/LICENSE-2.0
1736 *
1737 * Unless required by applicable law or agreed to in writing, software
1738 * distributed under the License is distributed on an "AS IS" BASIS,
1739 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1740 * See the License for the specific language governing permissions and
1741 * limitations under the License.
1742 */function N0(t,e,n){if(!n)throw new X(V.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function qk(t,e,n,s){if(e===!0&&s===!0)throw new X(V.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function cm(t){if(!re.isDocumentKey(t))throw new X(V.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function lm(t){if(re.isDocumentKey(t))throw new X(V.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function O0(t){return typeof t=="object"&&t!==null&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null)}function ol(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(s){return s.constructor?s.constructor.name:null})(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":he(12329,{type:typeof t})}function _r(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new X(V.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=ol(t);throw new X(V.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/**
1743 * @license
1744 * Copyright 2025 Google LLC
1745 *
1746 * Licensed under the Apache License, Version 2.0 (the "License");
1747 * you may not use this file except in compliance with the License.
1748 * You may obtain a copy of the License at
1749 *
1750 *   http://www.apache.org/licenses/LICENSE-2.0
1751 *
1752 * Unless required by applicable law or agreed to in writing, software
1753 * distributed under the License is distributed on an "AS IS" BASIS,
1754 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1755 * See the License for the specific language governing permissions and
1756 * limitations under the License.
1757 */function ct(t,e){const n={typeString:t};return e&&(n.value=e),n}function sa(t,e){if(!O0(t))throw new X(V.INVALID_ARGUMENT,"JSON must be an object");let n;for(const s in e)if(e[s]){const r=e[s].typeString,i="value"in e[s]?{value:e[s].value}:void 0;if(!(s in t)){n=`JSON missing required field: '${s}'`;break}const o=t[s];if(r&&typeof o!==r){n=`JSON field '${s}' must be a ${r}.`;break}if(i!==void 0&&o!==i.value){n=`Expected '${s}' field to equal '${i.value}'`;break}}if(n)throw new X(V.INVALID_ARGUMENT,n);return!0}/**
1758 * @license
1759 * Copyright 2017 Google LLC
1760 *
1761 * Licensed under the Apache License, Version 2.0 (the "License");
1762 * you may not use this file except in compliance with the License.
1763 * You may obtain a copy of the License at
1764 *
1765 *   http://www.apache.org/licenses/LICENSE-2.0
1766 *
1767 * Unless required by applicable law or agreed to in writing, software
1768 * distributed under the License is distributed on an "AS IS" BASIS,
1769 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1770 * See the License for the specific language governing permissions and
1771 * limitations under the License.
1772 */const um=-62135596800,hm=1e6;class qe{static now(){return qe.fromMillis(Date.now())}static fromDate(e){return qe.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),s=Math.floor((e-1e3*n)*hm);return new qe(n,s)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new X(V.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new X(V.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<um)throw new X(V.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new X(V.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/hm}_compareTo(e){return this.seconds===e.seconds?Ie(this.nanoseconds,e.nanoseconds):Ie(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:qe._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(sa(e,qe._jsonSchema))return new qe(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-um;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}qe._jsonSchemaVersion="firestore/timestamp/1.0",qe._jsonSchema={type:ct("string",qe._jsonSchemaVersion),seconds:ct("number"),nanoseconds:ct("number")};/**
1773 * @license
1774 * Copyright 2017 Google LLC
1775 *
1776 * Licensed under the Apache License, Version 2.0 (the "License");
1777 * you may not use this file except in compliance with the License.
1778 * You may obtain a copy of the License at
1779 *
1780 *   http://www.apache.org/licenses/LICENSE-2.0
1781 *
1782 * Unless required by applicable law or agreed to in writing, software
1783 * distributed under the License is distributed on an "AS IS" BASIS,
1784 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1785 * See the License for the specific language governing permissions and
1786 * limitations under the License.
1787 */class me{static fromTimestamp(e){return new me(e)}static min(){return new me(new qe(0,0))}static max(){return new me(new qe(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}}/**
1788 * @license
1789 * Copyright 2021 Google LLC
1790 *
1791 * Licensed under the Apache License, Version 2.0 (the "License");
1792 * you may not use this file except in compliance with the License.
1793 * You may obtain a copy of the License at
1794 *
1795 *   http://www.apache.org/licenses/LICENSE-2.0
1796 *
1797 * Unless required by applicable law or agreed to in writing, software
1798 * distributed under the License is distributed on an "AS IS" BASIS,
1799 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1800 * See the License for the specific language governing permissions and
1801 * limitations under the License.
1802 */const No=-1;function Gk(t,e){const n=t.toTimestamp().seconds,s=t.toTimestamp().nanoseconds+1,r=me.fromTimestamp(s===1e9?new qe(n+1,0):new qe(n,s));return new qs(r,re.empty(),e)}function Kk(t){return new qs(t.readTime,t.key,No)}class qs{constructor(e,n,s){this.readTime=e,this.documentKey=n,this.largestBatchId=s}static min(){return new qs(me.min(),re.empty(),No)}static max(){return new qs(me.max(),re.empty(),No)}}function Qk(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=re.comparator(t.documentKey,e.documentKey),n!==0?n:Ie(t.largestBatchId,e.largestBatchId))}/**
1803 * @license
1804 * Copyright 2020 Google LLC
1805 *
1806 * Licensed under the Apache License, Version 2.0 (the "License");
1807 * you may not use this file except in compliance with the License.
1808 * You may obtain a copy of the License at
1809 *
1810 *   http://www.apache.org/licenses/LICENSE-2.0
1811 *
1812 * Unless required by applicable law or agreed to in writing, software
1813 * distributed under the License is distributed on an "AS IS" BASIS,
1814 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1815 * See the License for the specific language governing permissions and
1816 * limitations under the License.
1817 */const Jk="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Xk{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}/**
1818 * @license
1819 * Copyright 2017 Google LLC
1820 *
1821 * Licensed under the Apache License, Version 2.0 (the "License");
1822 * you may not use this file except in compliance with the License.
1823 * You may obtain a copy of the License at
1824 *
1825 *   http://www.apache.org/licenses/LICENSE-2.0
1826 *
1827 * Unless required by applicable law or agreed to in writing, software
1828 * distributed under the License is distributed on an "AS IS" BASIS,
1829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1830 * See the License for the specific language governing permissions and
1831 * limitations under the License.
1832 */async function bi(t){if(t.code!==V.FAILED_PRECONDITION||t.message!==Jk)throw t;ee("LocalStore","Unexpectedly lost primary lease")}/**
1833 * @license
1834 * Copyright 2017 Google LLC
1835 *
1836 * Licensed under the Apache License, Version 2.0 (the "License");
1837 * you may not use this file except in compliance with the License.
1838 * You may obtain a copy of the License at
1839 *
1840 *   http://www.apache.org/licenses/LICENSE-2.0
1841 *
1842 * Unless required by applicable law or agreed to in writing, software
1843 * distributed under the License is distributed on an "AS IS" BASIS,
1844 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1845 * See the License for the specific language governing permissions and
1846 * limitations under the License.
1847 */class L{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&&he(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new L(((s,r)=>{this.nextCallback=i=>{this.wrapSuccess(e,i).next(s,r)},this.catchCallback=i=>{this.wrapFailure(n,i).next(s,r)}}))}toPromise(){return new Promise(((e,n)=>{this.next(e,n)}))}wrapUserFunction(e){try{const n=e();return n instanceof L?n:L.resolve(n)}catch(n){return L.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction((()=>e(n))):L.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction((()=>e(n))):L.reject(n)}static resolve(e){return new L(((n,s)=>{n(e)}))}static reject(e){return new L(((n,s)=>{s(e)}))}static waitFor(e){return new L(((n,s)=>{let r=0,i=0,o=!1;e.forEach((c=>{++r,c.next((()=>{++i,o&&i===r&&n()}),(l=>s(l)))})),o=!0,i===r&&n()}))}static or(e){let n=L.resolve(!1);for(const s of e)n=n.next((r=>r?L.resolve(r):s()));return n}static forEach(e,n){const s=[];return e.forEach(((r,i)=>{s.push(n.call(this,r,i))})),this.waitFor(s)}static mapArray(e,n){return new L(((s,r)=>{const i=e.length,o=new Array(i);let c=0;for(let l=0;l<i;l++){const h=l;n(e[h]).next((d=>{o[h]=d,++c,c===i&&s(o)}),(d=>r(d)))}}))}static doWhile(e,n){return new L(((s,r)=>{const i=()=>{e()===!0?n().next((()=>{i()}),r):s()};i()}))}}function Zk(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Ri(t){return t.name==="IndexedDbTransactionError"}/**
1848 * @license
1849 * Copyright 2018 Google LLC
1850 *
1851 * Licensed under the Apache License, Version 2.0 (the "License");
1852 * you may not use this file except in compliance with the License.
1853 * You may obtain a copy of the License at
1854 *
1855 *   http://www.apache.org/licenses/LICENSE-2.0
1856 *
1857 * Unless required by applicable law or agreed to in writing, softw
1857are
1858 * distributed under the License is distributed on an "AS IS" BASIS,
1859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1860 * See the License for the specific language governing permissions and
1861 * limitations under the License.
1862 */class al{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=s=>this.ae(s),this.ue=s=>n.writeSequenceNumber(s))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}al.ce=-1;/**
1863 * @license
1864 * Copyright 2017 Google LLC
1865 *
1866 * Licensed under the Apache License, Version 2.0 (the "License");
1867 * you may not use this file except in compliance with the License.
1868 * You may obtain a copy of the License at
1869 *
1870 *   http://www.apache.org/licenses/LICENSE-2.0
1871 *
1872 * Unless required by applicable law or agreed to in writing, software
1873 * distributed under the License is distributed on an "AS IS" BASIS,
1874 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1875 * See the License for the specific language governing permissions and
1876 * limitations under the License.
1877 */const dd=-1;function cl(t){return t==null}function Tc(t){return t===0&&1/t==-1/0}function eM(t){return typeof t=="number"&&Number.isInteger(t)&&!Tc(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/**
1878 * @license
1879 * Copyright 2017 Google LLC
1880 *
1881 * Licensed under the Apache License, Version 2.0 (the "License");
1882 * you may not use this file except in compliance with the License.
1883 * You may obtain a copy of the License at
1884 *
1885 *   http://www.apache.org/licenses/LICENSE-2.0
1886 *
1887 * Unless required by applicable law or agreed to in writing, software
1888 * distributed under the License is distributed on an "AS IS" BASIS,
1889 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1890 * See the License for the specific language governing permissions and
1891 * limitations under the License.
1892 */const x0="�";function tM(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=dm(e)),e=nM(t.get(n),e);return dm(e)}function nM(t,e){let n=e;const s=t.length;for(let r=0;r<s;r++){const i=t.charAt(r);switch(i){case"\0":n+="��";break;case x0:n+="��";break;default:n+=i}}return n}function dm(t){return t+x0+"�"}/**
1893 * @license
1894 * Copyright 2017 Google LLC
1895 *
1896 * Licensed under the Apache License, Version 2.0 (the "License");
1897 * you may not use this file except in compliance with the License.
1898 * You may obtain a copy of the License at
1899 *
1900 *   http://www.apache.org/licenses/LICENSE-2.0
1901 *
1902 * Unless required by applicable law or agreed to in writing, software
1903 * distributed under the License is distributed on an "AS IS" BASIS,
1904 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1905 * See the License for the specific language governing permissions and
1906 * limitations under the License.
1907 */function fm(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Cr(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function V0(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/**
1908 * @license
1909 * Copyright 2017 Google LLC
1910 *
1911 * Licensed under the Apache License, Version 2.0 (the "License");
1912 * you may not use this file except in compliance with the License.
1913 * You may obtain a copy of the License at
1914 *
1915 *   http://www.apache.org/licenses/LICENSE-2.0
1916 *
1917 * Unless required by applicable law or agreed to in writing, software
1918 * distributed under the License is distributed on an "AS IS" BASIS,
1919 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1920 * See the License for the specific language governing permissions and
1921 * limitations under the License.
1922 */class tt{constructor(e,n){this.comparator=e,this.root=n||wt.EMPTY}insert(e,n){return new tt(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,wt.BLACK,null,null))}remove(e){return new tt(this.comparator,this.root.remove(e,this.comparator).copy(null,null,wt.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const s=this.comparator(e,n.key);if(s===0)return n.value;s<0?n=n.left:s>0&&(n=n.right)}return null}indexOf(e){let n=0,s=this.root;for(;!s.isEmpty();){const r=this.comparator(e,s.key);if(r===0)return n+s.left.size;r<0?s=s.left:(n+=s.left.size+1,s=s.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,s)=>(e(n,s),!1)))}toString(){const e=[];return this.inorderTraversal(((n,s)=>(e.push(`${n}:${s}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Ma(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Ma(this.root,e,this.comparator,!1)}getReverseIterator(){return new Ma(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Ma(this.root,e,this.comparator,!0)}}class Ma{constructor(e,n,s,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();
vendor: 4,139 bytes, lines 1922-1932
1922)if(i=n?s(e.key,n):1,n&&r&&(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 wt{constructor(e,n,s,r,i){this.key=e,this.value=n,this.color=s??wt.RED,this.left=r??wt.EMPTY,this.right=i??wt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,s,r,i){return new wt(e??this.key,n??this.value,s??this.color,r??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,s){let r=this;const i=s(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,n,s),null):i===0?r.copy(null,n,null,null,null):r.copy(null,null,null,null,r.right.insert(e,n,s)),r.fixUp()}removeMin(){if(this.left.isEmpty())return wt.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 s,r=this;if(n(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,n),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),n(e,r.key)===0){if(r.right.isEmpty())return wt.EMPTY;s=r.right.min(),r=r.copy(s.key,s.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,n))}return r.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,wt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,wt.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 he(43730,{key:this.key,value:this.value});if(this.right.isRed())throw he(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw he(27949);return e+(this.isRed()?0:1)}}wt.EMPTY=null,wt.RED=!0,wt.BLACK=!1;wt.EMPTY=new class{constructor(){this.size=0}get key(){throw he(57766)}get value(){throw he(16141)}get color(){throw he(16727)}get left(){throw he(29726)}get right(){throw he(36894)}copy(e,n,s,r,i){return this}insert(e,n,s){return new wt(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}};/**
1923 * @license
1924 * Copyright 2017 Google LLC
1925 *
1926 * Licensed under the Apache License, Version 2.0 (the "License");
1927 * you may not use this file except in compliance with the License.
1928 * You may obtain a copy of the License at
1929 *
1930 *   http://www.apache.org/licenses/LICENSE-2.0
1931 *
1932 * Unless required by applicable law or agreed to in writing, softw
1932are
1933 * distributed under the License is distributed on an "AS IS" BASIS,
1934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1935 * See the License for the specific language governing permissions and
1936 * limitations under the License.
1937 */class ft{constructor(e){this.comparator=e,this.data=new tt(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,s)=>(e(n),!1)))}forEachInRange(e,n){const s=this.data.getIteratorFrom(e[0]);for(;s.hasNext();){const r=s.getNext();if(this.comparator(r.key,e[1])>=0)return;n(r.key)}}forEachWhile(e,n){let s;for(s=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();s.hasNext();)if(!e(s.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new pm(this.data.getIterator())}getIteratorFrom(e){return new pm(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((s=>{n=n.add(s)})),n}isEqual(e){if(!(e instanceof ft)||this.size!==e.size)return!1;const n=this.data.getIterator(),s=e.data.getIterator();for(;n.hasNext();){const r=n.getNext().key,i=s.getNext().key;if(this.comparator(r,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 ft(this.comparator);return n.data=e,n}}class pm{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/**
1938 * @license
1939 * Copyright 2020 Google LLC
1940 *
1941 * Licensed under the Apache License, Version 2.0 (the "License");
1942 * you may not use this file except in compliance with the License.
1943 * You may obtain a copy of the License at
1944 *
1945 *   http://www.apache.org/licenses/LICENSE-2.0
1946 *
1947 * Unless required by applicable law or agreed to in writing, software
1948 * distributed under the License is distributed on an "AS IS" BASIS,
1949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1950 * See the License for the specific language governing permissions and
1951 * limitations under the License.
1952 */class pn{constructor(e){this.fields=e,e.sort(It.comparator)}static empty(){return new pn([])}unionWith(e){let n=new ft(It.comparator);for(const s of this.fields)n=n.add(s);for(const s of e)n=n.add(s);return new pn(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return hi(this.fields,e.fields,((n,s)=>n.isEqual(s)))}}/**
1953 * @license
1954 * Copyright 2023 Google LLC
1955 *
1956 * Licensed under the Apache License, Version 2.0 (the "License");
1957 * you may not use this file except in compliance with the License.
1958 * You may obtain a copy of the License at
1959 *
1960 *   http://www.apache.org/licenses/LICENSE-2.0
1961 *
1962 * Unless required by applicable law or agreed to in writing, software
1963 * distributed under the License is distributed on an "AS IS" BASIS,
1964 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1965 * See the License for the specific language governing permissions and
1966 * limitations under the License.
1967 */class L0 extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/**
1968 * @license
1969 * Copyright 2020 Google LLC
1970 *
1971 * Licensed under the Apache License, Version 2.0 (the "License");
1972 * you may not use this file except in compliance with the License.
1973 * You may obtain a copy of the License at
1974 *
1975 *   http://www.apache.org/licenses/LICENSE-2.0
1976 *
1977 * Unless required by applicable law or agreed to in writing, software
1978 * distributed under the License is distributed on an "AS IS" BASIS,
1979 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1980 * See the License for the specific language governing permissions and
1981 * limitations under the License.
1982 */class St{constructor(e){this.binaryString=e}static fromBase64String(e){const n=(function(r){try{return atob(r)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new L0("Invalid base64 string: "+i):i}})(e);return new St(n)}static fromUint8Array(e){const n=(function(r){let i="";for(let o=0;o<r.length;++o)i+=String.fromCharCode(r[o]);return i})(e);return new St(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 s=new Uint8Array(n.length);for(let r=0;r<n.length;r++)s[r]=n.charCodeAt(r);return s})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ie(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}St.EMPTY_BYTE_STRING=new St("");const sM=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Gs(t){if(Fe(!!t,39018),typeof t=="string"){let e=0;const n=sM.exec(t);if(Fe(!!n,46558,{timestamp:t}),n[1]){let r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}const s=new Date(t);return{seconds:Math.floor(s.getTime()/1e3),nanos:e}}return{seconds:rt(t.seconds),nanos:rt(t.nanos)}}function rt(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function Ks(t){return typeof t=="string"?St.fromBase64String(t):St.fromUint8Array(t)}/**
1983 * @license
1984 * Copyright 2020 Google LLC
1985 *
1986 * Licensed under the Apache License, Version 2.0 (the "License");
1987 * you may not use this file except in compliance with the License.
1988 * You may obtain a copy of the License at
1989 *
1990 *   http://www.apache.org/licenses/LICENSE-2.0
1991 *
1992 * Unless required by applicable law or agreed to in writing, software
1993 * distributed under the License is distributed on an "AS IS" BASIS,
1994 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1995 * See the License for the specific language governing permissions and
1996 * limitations under the License.
1997 */const F0="server_timestamp",U0="__type__",j0="__previous_value__",$0="__local_write_time__";function fd(t){return(t?.mapValue?.fields||{})[U0]?.stringValue===F0}function ll(t){const e=t.mapValue.fields[j0];return fd(e)?ll(e):e}function Oo(t){const e=Gs(t.mapValue.fields[$0].timestampValue);return new qe(e.seconds,e.nanos)}/**
1998 * @license
1999 * Copyright 2017 Google LLC
2000 *
2001 * Licensed under the Apache License, Version 2.0 (the "License");
2002 * you may not use this file except in compliance with the License.
2003 * You may obtain a copy of the License at
2004 *
2005 *   http://www.apache.org/licenses/LICENSE-2.0
2006 *
2007 * Unless required by applicable law or agreed to in writing, software
2008 * distributed under the License is distributed on an "AS IS" BASIS,
2009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2010 * See the License for the specific language governing permissions and
2011 * limitations under the License.
2012 */class rM{constructor(e,n,s,r,i,o,c,l,h,d){this.databaseId=e,this.appId=n,this.persistenceKey=s,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=c,this.longPollingOptions=l,this.useFetchStreams=h,this.isUsingEmulator=d}}const Ic="(default)";class xo{constructor(e,n){this.projectId=e,this.database=n||Ic}static empty(){return new xo("","")}get isDefaultDatabase(){return this.database===Ic}isEqual(e){return e instanceof xo&&e.projectId===this.projectId&&e.database===this.database}}/**
2013 * @license
2014 * Copyright 2020 Google LLC
2015 *
2016 * Licensed under the Apache License, Version 2.0 (the "License");
2017 * you may not use this file except in compliance with the License.
2018 * You may obtain a copy of the License at
2019 *
2020 *   http://www.apache.org/licenses/LICENSE-2.0
2021 *
2022 * Unless required by applicable law or agreed to in writing, software
2023 * distributed under the License is distributed on an "AS IS" BASIS,
2024 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2025 * See the License for the specific language governing permissions and
2026 * limitations under the License.
2027 */const B0="__type__",iM="__max__",Da={mapValue:{}},H0="__vector__",Sc="value";function Qs(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?fd(t)?4:aM(t)?9007199254740991:oM(t)?10:11:he(28295,{value:t})}function jn(t,e){if(t===e)return!0;const n=Qs(t);if(n!==Qs(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Oo(t).isEqual(Oo(e));case 3:return(function(r,i){if(typeof r.timestampValue=="string"&&typeof i.timestampValue=="string"&&r.timestampValue.length===i.timestampValue.length)return r.timestampValue===i.timestampValue;const o=Gs(r.timestampValue),c=Gs(i.timestampValue);return o.seconds===c.seconds&&o.nanos===c.nanos})(t,e);case 5:return t.stringValue===e.stringValue;case 6:return(function(r,i){return Ks(r.bytesValue).isEqual(Ks(i.bytesValue))})(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return(function(r,i){return rt(r.geoPointValue.latitude)===rt(i.geoPointValue.latitude)&&rt(r.geoPointValue.longitude)===rt(i.geoPointValue.longitude)})(t,e);case 2:return(function(r,i){if("integerValue"in r&&"integerValue"in i)return rt(r.integerValue)===rt(i.integerValue);if("doubleValue"in r&&"doubleValue"in i){const o=rt(r.doubleValue),c=rt(i.doubleValue);return o===c?Tc(o)===Tc(c):isNaN(o)&&isNaN(c)}return!1})(t,e);case 9:return hi(t.arrayValue.values||[],e.arrayValue.values||[],jn);case 10:case 11:return(function(r,i){const o=r.mapValue.fields||{},c=i.mapValue.fields||{};if(fm(o)!==fm(c))return!1;for(const l in o)if(o.hasOwnProperty(l)&&(c[l]===void 0||!jn(o[l],c[l])))return!1;return!0})(t,e);default:return he(52216,{left:t})}}function Vo(t,e){return(t.values||[]).find((n=>jn(n,e)))!==void 0}function di(t,e){if(t===e)return 0;const n=Qs(t),s=Qs(e);if(n!==s)return Ie(n,s);switch(n){case 0:case 9007199254740991:return 0;case 1:return Ie(t.booleanValue,e.booleanValue);case 2:return(function(i,o){const c=rt(i.integerValue||i.doubleValue),l=rt(o.integerValue||o.doubleValue);return c<l?-1:c>l?1:c===l?0:isNaN(c)?isNaN(l)?0:-1:1})(t,e);case 3:return mm(t.timestampValue,e.timestampValue);case 4:return mm(Oo(t),Oo(e));case 5:return zu(t.stringValue,e.stringValue);case 6:return(function(i,o){const c=Ks(i),l=Ks(o);return c.compareTo(l)})(t.bytesValue,e.bytesValue);case 7:return(function(i,o){const c=i.split("/"),l=o.split("/");for(let h=0;h<c.length&&h<l.length;h++){const d=Ie(c[h],l[h]);if(d!==0)return d}return Ie(c.length,l.length)})(t.referenceValue,e.referenceValue);case 8:return(function(i,o){const c=Ie(rt(i.latitude),rt(o.latitude));return c!==0?c:Ie(rt(i.longitude),rt(o.longitude))})(t.geoPointValue,e.geoPointValue);case 9:return gm(t.arrayValue,e.arrayValue);case 10:return(function(i,o){const c=i.fields||{},l=o.fields||{},h=c[Sc]?.arrayValue,d=l[Sc]?.arrayValue,p=Ie(h?.values?.length||0,d?.values?.length||0);return p!==0?p:gm(h,d)})(t.mapValue,e.mapValue);case 11:return(function(i,o){if(i===Da.mapValue&&o===Da.mapValue)return 0;if(i===Da.mapValue)return 1;if(o===Da.mapValue)return-1;const c=i.fields||{},l=Object.keys(c),h=o.fields||{},d=Object.keys(h);l.sort(),d.sort();for(let p=0;p<l.length&&p<d.length;++p){const m=zu(l[p],d[p]);if(m!==0)return m;const v=di(c[l[p]],h[d[p]]);if(v!==0)return v}return Ie(l.length,d.length)})(t.mapValue,e.mapValue);default:throw he(23264,{he:n})}}function mm(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Ie(t,e);const n=Gs(t),s=Gs(e),r=Ie(n.seconds,s.seconds);return r!==0?r:Ie(n.nanos,s.nanos)}function gm(t,e){const n=t.values||[],s=e.values||[];for(let r=0;r<n.length&&r<s.length;++r){const i=di(n[r],s[r]);if(i)return i}return Ie(n.length,s.length)}function fi(t){return Yu(t)}function Yu(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 s=Gs(n);return`time(${s.seconds},${s.nanos})`})(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?(function(n){return Ks(n).toBase64()})(t.bytesValue):"referenceValue"in t?(function(n){return re.fromName(n).toString()})(t.referenceValue):"geoPointValue"in t?(function(n){return`geo(${n.latitude},${n.longitude})`})(t.geoPointValue):"arrayValue"in t?(function(n){let s="[",r=!0;for(const i of n.values||[])r?r=!1:s+=",",s+=Yu(i);return s+"]"})(t.arrayValue):"mapValue"in t?(function(n){const s=Object.keys(n.fields||{}).sort();let r="{",i=!0;for(const o of s)i?i=!1:r+=",",r+=`${o}:${Yu(n.fields[o])}`;return r+"}"})(t.mapValue):he(61005,{value:t})}function Ga(t){switch(Qs(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=ll(t);return e?16+Ga(e):16;case 5:return 2*t.stringValue.length;case 6:return Ks(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(function(s){return(s.values||[]).reduce(((r,i)=>r+Ga(i)),0)})(t.arrayValue);case 10:case 11:return(function(s){let r=0;
vendor: 2,944 bytes, lines 2027-2042
2027return Cr(s.fields,((i,o)=>{r+=i.length+Ga(o)})),r})(t.mapValue);default:throw he(13486,{value:t})}}function _m(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function qu(t){return!!t&&"integerValue"in t}function pd(t){return!!t&&"arrayValue"in t}function ym(t){return!!t&&"nullValue"in t}function vm(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Ka(t){return!!t&&"mapValue"in t}function oM(t){return(t?.mapValue?.fields||{})[B0]?.stringValue===H0}function po(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 Cr(t.mapValue.fields,((n,s)=>e.mapValue.fields[n]=po(s))),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=po(t.arrayValue.values[n]);return e}return{...t}}function aM(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===iM}/**
2028 * @license
2029 * Copyright 2017 Google LLC
2030 *
2031 * Licensed under the Apache License, Version 2.0 (the "License");
2032 * you may not use this file except in compliance with the License.
2033 * You may obtain a copy of the License at
2034 *
2035 *   http://www.apache.org/licenses/LICENSE-2.0
2036 *
2037 * Unless required by applicable law or agreed to in writing, software
2038 * distributed under the License is distributed on an "AS IS" BASIS,
2039 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2040 * See the License for the specific language governing permissions and
2041 * limitations under the License.
2042 */class nn{constructor(e){this.value=e}static empty(){return new nn({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let s=0;s<e.length-1;++s)if(n=(n.mapValue.fields||{})[e.get(s)],!Ka(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=po(n)}setAll(e){let n=It.emptyPath(),s={},r=[];e.forEach(((o,c)=>{if(!n.isImmediateParentOf(c)){const l=this.getFieldsMap(n);this.applyChanges(l,s,r),s={},r=[],n=c.popLast()}o?s[c.lastSegment()]=po(o):r.push(c.lastSegment())}));const i=this.getFieldsMap(n);this.applyChanges(i,s,r)}delete(e){const n=this.field(e.popLast());Ka(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return jn(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let s=0;s<e.length;++s){let r=n.mapValue.fields[e.get(s)];Ka(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},n.mapValue.fields[e.get(s)]=r),n=r}return n.mapValue.fields}applyChanges(e,n,s){Cr(n,((r,i)=>e[r]=i));for(const r of s)delete e[r]}clone(){return new nn(po(this.value))}}function W0(t){const e=[];return Cr(t.fields,((n,s)=>{const r=new It([n]);if(Ka(s)){const i=W0(s.mapValue).fields;
vendor: 4,181 bytes, lines 2042-2082
2042if(i.length===0)e.push(r);else for(const o of i)e.push(r.child(o))}else e.push(r)})),new pn(e)}/**
2043 * @license
2044 * Copyright 2017 Google LLC
2045 *
2046 * Licensed under the Apache License, Version 2.0 (the "License");
2047 * you may not use this file except in compliance with the License.
2048 * You may obtain a copy of the License at
2049 *
2050 *   http://www.apache.org/licenses/LICENSE-2.0
2051 *
2052 * Unless required by applicable law or agreed to in writing, software
2053 * distributed under the License is distributed on an "AS IS" BASIS,
2054 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2055 * See the License for the specific language governing permissions and
2056 * limitations under the License.
2057 */class Dt{constructor(e,n,s,r,i,o,c){this.key=e,this.documentType=n,this.version=s,this.readTime=r,this.createTime=i,this.data=o,this.documentState=c}static newInvalidDocument(e){return new Dt(e,0,me.min(),me.min(),me.min(),nn.empty(),0)}static newFoundDocument(e,n,s,r){return new Dt(e,1,n,me.min(),s,r,0)}static newNoDocument(e,n){return new Dt(e,2,n,me.min(),me.min(),nn.empty(),0)}static newUnknownDocument(e,n){return new Dt(e,3,n,me.min(),me.min(),nn.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(me.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=nn.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=nn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=me.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 Dt&&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 Dt(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}})`}}/**
2058 * @license
2059 * Copyright 2022 Google LLC
2060 *
2061 * Licensed under the Apache License, Version 2.0 (the "License");
2062 * you may not use this file except in compliance with the License.
2063 * You may obtain a copy of the License at
2064 *
2065 *   http://www.apache.org/licenses/LICENSE-2.0
2066 *
2067 * Unless required by applicable law or agreed to in writing, software
2068 * distributed under the License is distributed on an "AS IS" BASIS,
2069 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2070 * See the License for the specific language governing permissions and
2071 * limitations under the License.
2072 */class Ac{constructor(e,n){this.position=e,this.inclusive=n}}function wm(t,e,n){let s=0;for(let r=0;r<t.position.length;r++){const i=e[r],o=t.position[r];if(i.field.isKeyField()?s=re.comparator(re.fromName(o.referenceValue),n.key):s=di(o,n.data.field(i.field)),i.dir==="desc"&&(s*=-1),s!==0)break}return s}function Em(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(!jn(t.position[n],e.position[n]))return!1;return!0}/**
2073 * @license
2074 * Copyright 2022 Google LLC
2075 *
2076 * Licensed under the Apache License, Version 2.0 (the "License");
2077 * you may not use this file except in compliance with the License.
2078 * You may obtain a copy of the License at
2079 *
2080 *   http://www.apache.org/licenses/LICENSE-2.0
2081 *
2082 * Unless required by applicable law or agreed to in writing, softw
2082are
2083 * distributed under the License is distributed on an "AS IS" BASIS,
2084 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2085 * See the License for the specific language governing permissions and
2086 * limitations under the License.
2087 */class Lo{constructor(e,n="asc"){this.field=e,this.dir=n}}function cM(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/**
2088 * @license
2089 * Copyright 2022 Google LLC
2090 *
2091 * Licensed under the Apache License, Version 2.0 (the "License");
2092 * you may not use this file except in compliance with the License.
2093 * You may obtain a copy of the License at
2094 *
2095 *   http://www.apache.org/licenses/LICENSE-2.0
2096 *
2097 * Unless required by applicable law or agreed to in writing, software
2098 * distributed under the License is distributed on an "AS IS" BASIS,
2099 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2100 * See the License for the specific language governing permissions and
2101 * limitations under the License.
2102 */class z0{}class at extends z0{constructor(e,n,s){super(),this.field=e,this.op=n,this.value=s}static create(e,n,s){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,s):new uM(e,n,s):n==="array-contains"?new fM(e,s):n==="in"?new pM(e,s):n==="not-in"?new mM(e,s):n==="array-contains-any"?new gM(e,s):new at(e,n,s)}static createKeyFieldInFilter(e,n,s){return n==="in"?new hM(e,s):new dM(e,s)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&n.nullValue===void 0&&this.matchesComparison(di(n,this.value)):n!==null&&Qs(this.value)===Qs(n)&&this.matchesComparison(di(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 he(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class En extends z0{constructor(e,n){super(),this.filters=e,this.op=n,this.Pe=null}static create(e,n){return new En(e,n)}matches(e){return Y0(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 Y0(t){return t.op==="and"}function q0(t){return lM(t)&&Y0(t)}function lM(t){for(const e of t.filters)if(e instanceof En)return!1;return!0}function Gu(t){if(t instanceof at)return t.field.canonicalString()+t.op.toString()+fi(t.value);if(q0(t))return t.filters.map((e=>Gu(e))).join(",");{const e=t.filters.map((n=>Gu(n))).join(",");return`${t.op}(${e})`}}function G0(t,e){return t instanceof at?(function(s,r){return r instanceof at&&s.op===r.op&&s.field.isEqual(r.field)&&jn(s.value,r.value)})(t,e):t instanceof En?(function(s,r){return r instanceof En&&s.op===r.op&&s.filters.length===r.filters.length?s.filters.reduce(((i,o,c)=>i&&G0(o,r.filters[c])),!0):!1})(t,e):void he(19439)}function K0(t){return t instanceof at?(function(n){return`${n.field.canonicalString()} ${n.op} ${fi(n.value)}`})(t):t instanceof En?(function(n){return n.op.toString()+" {"+n.getFilters().map(K0).join(" ,")+"}"})(t):"Filter"}class uM extends at{constructor(e,n,s){super(e,n,s),this.key=re.fromName(s.referenceValue)}matches(e){const n=re.comparator(e.key,this.key);return this.matchesComparison(n)}}class hM extends at{constructor(e,n){super(e,"in",n),this.keys=Q0("in",n)}matches(e){return this.keys.some((n=>n.isEqual(e.key)))}}class dM extends at{constructor(e,n){super(e,"not-in",n),this.keys=Q0("not-in",n)}matches(e){return!this.keys.some((n=>n.isEqual(e.key)))}}function Q0(t,e){return(e.arrayValue?.values||[]).map((n=>re.fromName(n.referenceValue)))}class fM extends at{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return pd(n)&&Vo(n.arrayValue,this.value)}}class pM extends at{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Vo(this.value.arrayValue,n)}}class mM extends at{constructor(e,n){super(e,"not-in",n)}matches(e){if(Vo(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&n.nullValue===void 0&&!Vo(this.value.arrayValue,n)}}class gM extends at{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!pd(n)||!n.arrayValue.values)&&n.arrayValue.values.some((s=>Vo(this.value.arrayValue,s)))}}/**
2103 * @license
2104 * Copyright 2019 Google LLC
2105 *
2106 * Licensed under the Apache License, Version 2.0 (the "License");
2107 * you may not use this file except in compliance with the License.
2108 * You may obtain a copy of the License at
2109 *
2110 *   http://www.apache.org/licenses/LICENSE-2.0
2111 *
2112 * Unless required by applicable law or agreed to in writing, software
2113 * distributed under the License is distributed on an "AS IS" BASIS,
2114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2115 * See the License for the specific language governing permissions and
2116 * limitations under the License.
2117 */class _M{constructor(e,n=null,s=[],r=[],i=null,o=null,c=null){this.path=e,this.collectionGroup=n,this.orderBy=s,this.filters=r,this.limit=i,this.startAt=o,this.endAt=c,this.Te=null}}function Tm(t,e=null,n=[],s=[],r=null,i=null,o=null){return new _M(t,e,n,s,r,i,o)}function md(t){const e=ge(t);if(e.Te===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((s=>Gu(s))).join(","),n+="|ob:",n+=e.orderBy.map((s=>(function(i){return i.field.canonicalString()+i.dir})(s))).join(","),cl(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map((s=>fi(s))).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map((s=>fi(s))).join(",")),e.Te=n}return e.Te}function gd(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(!cM(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(!G0(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!Em(t.startAt,e.startAt)&&Em(t.endAt,e.endAt)}function Ku(t){return re.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/**
2118 * @license
2119 * Copyright 2017 Google LLC
2120 *
2121 * Licensed under the Apache License, Version 2.0 (the "License");
2122 * you may not use this file except in compliance with the License.
2123 * You may obtain a copy of the License at
2124 *
2125 *   http://www.apache.org/licenses/LICENSE-2.0
2126 *
2127 * Unless required by applicable law or agreed to in writing, software
2128 * distributed under the License is distributed on an "AS IS" BASIS,
2129 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2130 * See the License for the specific language governing permissions and
2131 * limitations under the License.
2132 */class Ci{constructor(e,n=null,s=[],r=[],i=null,o="F",c=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=s,this.filters=r,this.limit=i,this.limitType=o,this.startAt=c,this.endAt=l,this.Ie=null,this.Ee=null,this.de=null,this.startAt,this.endAt}}function yM(t,e,n,s,r,i,o,c){return new Ci(t,e,n,s,r,i,o,c)}function _d(t){return new Ci(t)}function Im(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 J0(t){return t.collectionGroup!==null}function mo(t){const e=ge(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 s=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let c=new ft(It.comparator);return o.filters.forEach((l=>{l.getFlattenedFilters().forEach((h=>{h.isInequality()&&(c=c.add(h.field))}))})),c})(e).forEach((i=>{n.has(i.canonicalString())||i.isKeyField()||e.Ie.push(new Lo(i,s))})),n.has(It.keyField().canonicalString())||e.Ie.push(new Lo(It.keyField(),s))}return e.Ie}function On(t){const e=ge(t);return e.Ee||(e.Ee=vM(e,mo(t))),e.Ee}function vM(t,e){if(t.limitType==="F")return Tm(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map((r=>{const i=r.dir==="desc"?"asc":"desc";return new Lo(r.field,i)}));const n=t.endAt?new Ac(t.endAt.position,t.endAt.inclusive):null,s=t.startAt?new Ac(t.startAt.position,t.startAt.inclusive):null;return Tm(t.path,t.collectionGroup,e,t.filters,t.limit,n,s)}}function Qu(t,e){const n=t.filters.concat([e]);return new Ci(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Ju(t,e,n){return new Ci(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function ul(t,e){return gd(On(t),On(e))&&t.limitType===e.limitType}function X0(t){return`${md(On(t))}|lt:${t.limitType}`}function Wr(t){return`Query(target=${(function(n){let s=n.path.canonicalString();return n.collectionGroup!==null&&(s+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(s+=`, filters: [${n.filters.map((r=>K0(r))).join(", ")}]`),cl(n.limit)||(s+=", limit: "+n.limit),n.orderBy.length>0&&(s+=`, orderBy: [${n.orderBy.map((r=>(function(o){return`${o.field.canonicalString()} (${o.dir})`})(r))).join(", ")}]`),n.startAt&&(s+=", startAt: ",s+=n.startAt.inclusive?"b:":"a:",s+=n.startAt.position.map((r=>fi(r))).join(",")),n.endAt&&(s+=", endAt: ",s+=n.endAt.inclusive?"a:":"b:",s+=n.endAt.position.map((r=>fi(r))).join(",")),`Target(${s})`})(On(t))}; limitType=${t.limitType})`}
2132function hl(t,e){return e.isFoundDocument()&&(function(s,r){const i=r.key.path;return s.collectionGroup!==null?r.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(i):re.isDocumentKey(s.path)?s.path.isEqual(i):s.path.isImmediateParentOf(i)})(t,e)&&(function(s,r){for(const i of mo(s))if(!i.field.isKeyField()&&r.data.field(i.field)===null)return!1;return!0})(t,e)&&(function(s,r){for(const i of s.filters)if(!i.matches(r))return!1;return!0})(t,e)&&(function(s,r){return!(s.startAt&&!(function(o,c,l){const h=wm(o,c,l);return o.inclusive?h<=0:h<0})(s.startAt,mo(s),r)||s.endAt&&!(function(o,c,l){const h=wm(o,c,l);return o.inclusive?h>=0:h>0})(s.endAt,mo(s),r))})(t,e)}function wM(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function Z0(t){return(e,n)=>{let s=!1;for(const r of mo(t)){const i=EM(r,e,n);if(i!==0)return i;s=s||r.field.isKeyField()}return 0}}function EM(t,e,n){const s=t.field.isKeyField()?re.comparator(e.key,n.key):(function(i,o,c){const l=o.data.field(i),h=c.data.field(i);return l!==null&&h!==null?di(l,h):he(42886)})(t.field,e,n);switch(t.dir){case"asc":return s;case"desc":return-1*s;default:return he(19790,{direction:t.dir})}}/**
2133 * @license
2134 * Copyright 2017 Google LLC
2135 *
2136 * Licensed under the Apache License, Version 2.0 (the "License");
2137 * you may not use this file except in compliance with the License.
2138 * You may obtain a copy of the License at
2139 *
2140 *   http://www.apache.org/licenses/LICENSE-2.0
2141 *
2142 * Unless required by applicable law or agreed to in writing, software
2143 * distributed under the License is distributed on an "AS IS" BASIS,
2144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2145 * See the License for the specific language governing permissions and
2146 * limitations under the License.
2147 */class Pr{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),s=this.inner[n];if(s!==void 0){for(const[r,i]of s)if(this.equalsFn(r,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const s=this.mapKeyFn(e),r=this.inner[s];if(r===void 0)return this.inner[s]=[[e,n]],void this.innerSize++;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,n]);r.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),s=this.inner[n];if(s===void 0)return!1;for(let r=0;r<s.length;r++)if(this.equalsFn(s[r][0],e))return s.length===1?delete this.inner[n]:s.splice(r,1),this.innerSize--,!0;return!1}forEach(e){Cr(this.inner,((n,s)=>{for(const[r,i]of s)e(r,i)}))}isEmpty(){return V0(this.inner)}size(){return this.innerSize}}/**
2148 * @license
2149 * Copyright 2017 Google LLC
2150 *
2151 * Licensed under the Apache License, Version 2.0 (the "License");
2152 * you may not use this file except in compliance with the License.
2153 * You may obtain a copy of the License at
2154 *
2155 *   http://www.apache.org/licenses/LICENSE-2.0
2156 *
2157 * Unless required by applicable law or agreed to in writing, software
2158 * distributed under the License is distributed on an "AS IS" BASIS,
2159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2160 * See the License for the specific language governing permissions and
2161 * limitations under the License.
2162 */const TM=new tt(re.comparator);function ds(){return TM}const ev=new tt(re.comparator);function Xi(...t){let e=ev;for(const n of t)e=e.insert(n.key,n);return e}function tv(t){let e=ev;return t.forEach(((n,s)=>e=e.insert(n,s.overlayedDocument))),e}function fr(){return go()}function nv(){return go()}function go(){return new Pr((t=>t.toString()),((t,e)=>t.isEqual(e)))}const IM=new tt(re.comparator),SM=new ft(re.comparator);function Se(...t){let e=SM;for(const n of t)e=e.add(n);return e}const AM=new ft(Ie);function bM(){return AM}/**
2163 * @license
2164 * Copyright 2020 Google LLC
2165 *
2166 * Licensed under the Apache License, Version 2.0 (the "License");
2167 * you may not use this file except in compliance with the License.
2168 * You may obtain a copy of the License at
2169 *
2170 *   http://www.apache.org/licenses/LICENSE-2.0
2171 *
2172 * Unless required by applicable law or agreed to in writing, softw
2172are
2173 * distributed under the License is distributed on an "AS IS" BASIS,
2174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2175 * See the License for the specific language governing permissions and
2176 * limitations under the License.
2177 */function yd(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:Tc(e)?"-0":e}}function sv(t){return{integerValue:""+t}}function RM(t,e){return eM(e)?sv(e):yd(t,e)}/**
2178 * @license
2179 * Copyright 2018 Google LLC
2180 *
2181 * Licensed under the Apache License, Version 2.0 (the "License");
2182 * you may not use this file except in compliance with the License.
2183 * You may obtain a copy of the License at
2184 *
2185 *   http://www.apache.org/licenses/LICENSE-2.0
2186 *
2187 * Unless required by applicable law or agreed to in writing, software
2188 * distributed under the License is distributed on an "AS IS" BASIS,
2189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2190 * See the License for the specific language governing permissions and
2191 * limitations under the License.
2192 */class dl{constructor(){this._=void 0}}function CM(t,e,n){return t instanceof Fo?(function(r,i){const o={fields:{[U0]:{stringValue:F0},[$0]:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return i&&fd(i)&&(i=ll(i)),i&&(o.fields[j0]=i),{mapValue:o}})(n,e):t instanceof Uo?iv(t,e):t instanceof jo?ov(t,e):(function(r,i){const o=rv(r,i),c=Sm(o)+Sm(r.Ae);return qu(o)&&qu(r.Ae)?sv(c):yd(r.serializer,c)})(t,e)}function PM(t,e,n){return t instanceof Uo?iv(t,e):t instanceof jo?ov(t,e):n}function rv(t,e){return t instanceof bc?(function(s){return qu(s)||(function(i){return!!i&&"doubleValue"in i})(s)})(e)?e:{integerValue:0}:null}class Fo extends dl{}class Uo extends dl{constructor(e){super(),this.elements=e}}function iv(t,e){const n=av(e);for(const s of t.elements)n.some((r=>jn(r,s)))||n.push(s);return{arrayValue:{values:n}}}class jo extends dl{constructor(e){super(),this.elements=e}}function ov(t,e){let n=av(e);for(const s of t.elements)n=n.filter((r=>!jn(r,s)));return{arrayValue:{values:n}}}class bc extends dl{constructor(e,n){super(),this.serializer=e,this.Ae=n}}function Sm(t){return rt(t.integerValue||t.doubleValue)}function av(t){return pd(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}/**
2193 * @license
2194 * Copyright 2017 Google LLC
2195 *
2196 * Licensed under the Apache License, Version 2.0 (the "License");
2197 * you may not use this file except in compliance with the License.
2198 * You may obtain a copy of the License at
2199 *
2200 *   http://www.apache.org/licenses/LICENSE-2.0
2201 *
2202 * Unless required by applicable law or agreed to in writing, software
2203 * distributed under the License is distributed on an "AS IS" BASIS,
2204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2205 * See the License for the specific language governing permissions and
2206 * limitations under the License.
2207 */class kM{constructor(e,n){this.field=e,this.transform=n}}function MM(t,e){return t.field.isEqual(e.field)&&(function(s,r){return s instanceof Uo&&r instanceof Uo||s instanceof jo&&r instanceof jo?hi(s.elements,r.elements,jn):s instanceof bc&&r instanceof bc?jn(s.Ae,r.Ae):s instanceof Fo&&r instanceof Fo})(t.transform,e.transform)}class DM{constructor(e,n){this.version=e,this.transformResults=n}}class is{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new is}static exists(e){return new is(void 0,e)}static updateTime(e){return new is(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 Qa(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class fl{}function cv(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new uv(t.key,is.none()):new ra(t.key,t.data,is.none());{const n=t.data,s=nn.empty();let r=new ft(It.comparator);for(let i of e.fields)if(!r.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?s.delete(i):s.set(i,o),r=r.add(i)}return new kr(t.key,s,new pn(r.toArray()),is.none())}}function NM(t,e,n){t instanceof ra?(function(r,i,o){const c=r.value.clone(),l=bm(r.fieldTransforms,i,o.transformResults);
2207c.setAll(l),i.convertToFoundDocument(o.version,c).setHasCommittedMutations()})(t,e,n):t instanceof kr?(function(r,i,o){if(!Qa(r.precondition,i))return void i.convertToUnknownDocument(o.version);const c=bm(r.fieldTransforms,i,o.transformResults),l=i.data;l.setAll(lv(r)),l.setAll(c),i.convertToFoundDocument(o.version,l).setHasCommittedMutations()})(t,e,n):(function(r,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()})(0,e,n)}function _o(t,e,n,s){return t instanceof ra?(function(i,o,c,l){if(!Qa(i.precondition,o))return c;const h=i.value.clone(),d=Rm(i.fieldTransforms,l,o);return h.setAll(d),o.convertToFoundDocument(o.version,h).setHasLocalMutations(),null})(t,e,n,s):t instanceof kr?(function(i,o,c,l){if(!Qa(i.precondition,o))return c;const h=Rm(i.fieldTransforms,l,o),d=o.data;return d.setAll(lv(i)),d.setAll(h),o.convertToFoundDocument(o.version,d).setHasLocalMutations(),c===null?null:c.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map((p=>p.field)))})(t,e,n,s):(function(i,o,c){return Qa(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):c})(t,e,n)}function OM(t,e){let n=null;for(const s of t.fieldTransforms){const r=e.data.field(s.field),i=rv(s.transform,r||null);i!=null&&(n===null&&(n=nn.empty()),n.set(s.field,i))}return n||null}function Am(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!(function(s,r){return s===void 0&&r===void 0||!(!s||!r)&&hi(s,r,((i,o)=>MM(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 ra extends fl{constructor(e,n,s,r=[]){super(),this.key=e,this.value=n,this.precondition=s,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class kr extends fl{constructor(e,n,s,r,i=[]){super(),this.key=e,this.data=n,this.fieldMask=s,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function lv(t){const e=new Map;return t.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const s=t.data.field(n);e.set(n,s)}})),e}function bm(t,e,n){const s=new Map;Fe(t.length===n.length,32656,{Re:n.length,Ve:t.length});for(let r=0;r<n.length;r++){const i=t[r],o=i.transform,c=e.data.field(i.field);s.set(i.field,PM(o,c,n[r]))}return s}function Rm(t,e,n){const s=new Map;for(const r of t){const i=r.transform,o=n.data.field(r.field);s.set(r.field,CM(i,o,e))}return s}class uv extends fl{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class xM extends fl{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/**
2208 * @license
2209 * Copyright 2017 Google LLC
2210 *
2211 * Licensed under the Apache License, Version 2.0 (the "License");
2212 * you may not use this file except in compliance with the License.
2213 * You may obtain a copy of the License at
2214 *
2215 *   http://www.apache.org/licenses/LICENSE-2.0
2216 *
2217 * Unless required by applicable law or agreed to in writing, software
2218 * distributed under the License is distributed on an "AS IS" BASIS,
2219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2220 * See the License for the specific language governing permissions and
2221 * limitations under the License.
2222 */class VM{constructor(e,n,s,r){this.batchId=e,this.localWriteTime=n,this.baseMutations=s,this.mutations=r}applyToRemoteDocument(e,n){const s=n.mutationResults;for(let r=0;r<this.mutations.length;r++){const i=this.mutations[r];i.key.isEqual(e.key)&&NM(i,e,s[r])}}applyToLocalView(e,n){for(const s of this.baseMutations)s.key.isEqual(e.key)&&(n=_o(s,e,n,this.localWriteTime));for(const s of this.mutations)s.key.isEqual(e.key)&&(n=_o(s,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const s=nv();return this.mutations.forEach((r=>{const i=e.get(r.key),o=i.overlayedDocument;let c=this.applyToLocalView(o,i.mutatedFields);c=n.has(r.key)?null:c;const l=cv(o,c);l!==null&&s.set(r.key,l),o.isValidDocument()||o.convertToNoDocument(me.min())})),s}keys(){return this.mutations.reduce(((e,n)=>e.add(n.key)),Se())}isEqual(e){return this.batchId===e.batchId&&hi(this.mutations,e.mutations,((n,s)=>Am(n,s)))&&hi(this.baseMutations,e.baseMutations,((n,s)=>Am(n,s)))}}class vd{constructor(e,n,s,r){this.batch=e,this.commitVersion=n,this.mutationResults=s,this.docVersions=r}static from(e,n,s){Fe(e.mutations.length===s.length,58842,{me:e.mutations.length,fe:s.length});let r=(function(){return IM})();const i=e.mutations;for(let o=0;o<i.length;o++)r=r.insert(i[o].key,s[o].version);return new vd(e,n,s,r)}}/**
2223 * @license
2224 * Copyright 2022 Google LLC
2225 *
2226 * Licensed under the Apache License, Version 2.0 (the "License");
2227 * you may not use this file except in compliance with the License.
2228 * You may obtain a copy of the License at
2229 *
2230 *   http://www.apache.org/licenses/LICENSE-2.0
2231 *
2232 * Unless required by applicable law or agreed to in writing, software
2233 * distributed under the License is distributed on an "AS IS" BASIS,
2234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2235 * See the License for the specific language governing permissions and
2236 * limitations under the License.
2237 */class LM{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{
2238      largestBatchId: ${this.largestBatchId},
2239      mutation: ${this.mutation.toString()}
2240    }`}}/**
2241 * @license
2242 * Copyright 2017 Google LLC
2243 *
2244 * Licensed under the Apache License, Version 2.0 (the "License");
2245 * you may not use this file except in compliance with the License.
2246 * You may obtain a copy of the License at
2247 *
2248 *   http://www.apache.org/licenses/LICENSE-2.0
2249 *
2250 * Unless required by applicable law or agreed to in writing, software
2251 * distributed under the License is distributed on an "AS IS" BASIS,
2252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2253 * See the License for the specific language governing permissions and
2254 * limitations under the License.
2255 */class FM{constructor(e,n){this.count=e,this.unchangedNames=n}}/**
2256 * @license
2257 * Copyright 2017 Google LLC
2258 *
2259 * Licensed under the Apache License, Version 2.0 (the "License");
2260 * you may not use this file except in compliance with the License.
2261 * You may obtain a copy of the License at
2262 *
2263 *   http://www.apache.org/licenses/LICENSE-2.0
2264 *
2265 * Unless required by applicable law or agreed to in writing, software
2266 * distributed under the License is distributed on an "AS IS" BASIS,
2267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2268 * See the License for the specific language governing permissions and
2269 * limitations under the License.
2270 */var ot,Ce;function UM(t){switch(t){case V.OK:return he(64938);case V.CANCELLED:case V.UNKNOWN:case V.DEADLINE_EXCEEDED:case V.RESOURCE_EXHAUSTED:case V.INTERNAL:case V.UNAVAILABLE:case V.UNAUTHENTICATED:return!1;case V.INVALID_ARGUMENT:case V.NOT_FOUND:case V.ALREADY_EXISTS:case V.PERMISSION_DENIED:case V.FAILED_PRECONDITION:case V.ABORTED:case V.OUT_OF_RANGE:case V.UNIMPLEMENTED:case V.DATA_LOSS:return!0;default:return he(15467,{code:t})}}function hv(t){if(t===void 0)return hs("GRPC error has no .code"),V.UNKNOWN;switch(t){case ot.OK:return V.OK;case ot.CANCELLED:return V.CANCELLED;case ot.UNKNOWN:return V.UNKNOWN;case ot.DEADLINE_EXCEEDED:return V.DEADLINE_EXCEEDED;case ot.RESOURCE_EXHAUSTED:return V.RESOURCE_EXHAUSTED;case ot.INTERNAL:return V.INTERNAL;case ot.UNAVAILABLE:return V.UNAVAILABLE;case ot.UNAUTHENTICATED:return V.UNAUTHENTICATED;case ot.INVALID_ARGUMENT:return V.INVALID_ARGUMENT;case ot.NOT_FOUND:return V.NOT_FOUND;case ot.ALREADY_EXISTS:return V.ALREADY_EXISTS;case ot.PERMISSION_DENIED:return V.PERMISSION_DENIED;case ot.FAILED_PRECONDITION:return V.FAILED_PRECONDITION;case ot.ABORTED:return V.ABORTED;case ot.OUT_OF_RANGE:return V.OUT_OF_RANGE;case ot.UNIMPLEMENTED:return V.UNIMPLEMENTED;case ot.DATA_LOSS:return V.DATA_LOSS;default:return he(39323,{code:t})}}(Ce=ot||(ot={}))[Ce.OK=0]="OK",Ce[Ce.CANCELLED=1]="CANCELLED",Ce[Ce.UNKNOWN=2]="UNKNOWN",Ce[Ce.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ce[Ce.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ce[Ce.NOT_FOUND=5]="NOT_FOUND",Ce[Ce.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ce[Ce.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ce[Ce.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ce[Ce.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ce[Ce.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ce[Ce.ABORTED=10]="ABORTED",Ce[Ce.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ce[Ce.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ce[Ce.INTERNAL=13]="INTERNAL",Ce[Ce.UNAVAILABLE=14]="UNAVAILABLE",Ce[Ce.DATA_LOSS=15]="DATA_LOSS";/**
2271 * @license
2272 * Copyright 2023 Google LLC
2273 *
2274 * Licensed under the Apache License, Version 2.0 (the "License");
2275 * you may not use this file except in compliance with the License.
2276 * You may obtain a copy of the License at
2277 *
2278 *   http://www.apache.org/licenses/LICENSE-2.0
2279 *
2280 * Unless required by applicable law or agreed to in writing, software
2281 * distributed under the License is distributed on an "AS IS" BASIS,
2282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2283 * See the License for the specific language governing permissions and
2284 * limitations under the License.
2285 */function jM(){return new TextEncoder}/**
2286 * @license
2287 * Copyright 2022 Google LLC
2288 *
2289 * Licensed under the Apache License, Version 2.0 (the "License");
2290 * you may not use this file except in compliance with the License.
2291 * You may obtain a copy of the License at
2292 *
2293 *   http://www.apache.org/licenses/LICENSE-2.0
2294 *
2295 * Unless required by applicable law or agreed to in writing, software
2296 * distributed under the License is distributed on an "AS IS" BASIS,
2297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2298 * See the License for the specific language governing permissions and
2299 * limitations under the License.
2300 */const $M=new Bs([4294967295,4294967295],0);function Cm(t){const e=jM().encode(t),n=new A0;return n.update(e),new Uint8Array(n.digest())}function Pm(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),s=e.getUint32(4,!0),r=e.getUint32(8,!0),i=e.getUint32(12,!0);return[new Bs([n,s],0),new Bs([r,i],0)]}class wd{constructor(e,n,s){if(this.bitmap=e,this.padding=n,this.hashCount=s,n<0||n>=8)throw new Zi(`Invalid padding: ${n}`);if(s<0)throw new Zi(`Invalid hash count: ${s}`);if(e.length>0&&this.hashCount===0)throw new Zi(`Invalid hash count: ${s}`);if(e.length===0&&n!==0)throw new Zi(`Invalid padding when bitmap length is 0: ${n}`);this.ge=8*e.length-n,this.pe=Bs.fromNumber(this.ge)}ye(e,n,s){let r=e.add(n.multiply(Bs.fromNumber(s)));return r.compare($M)===1&&(r=new Bs([r.getBits(0),r.getBits(1)],0)),r.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=Cm(e),[s,r]=Pm(n);for(let i=0;i<this.hashCount;i++){const o=this.ye(s,r,i);if(!this.we(o))return!1}return!0}static create(e,n,s){const r=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),o=new wd(i,r,n);return s.forEach((c=>o.insert(c))),o}insert(e){if(this.ge===0)return;const n=Cm(e),[s,r]=Pm(n);for(let i=0;i<this.hashCount;i++){const o=this.ye(s,r,i);this.Se(o)}}Se(e){const n=Math.floor(e/8),s=e%8;this.bitmap[n]|=1<<s}}class Zi extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/**
2301 * @license
2302 * Copyright 2017 Google LLC
2303 *
2304 * Licensed under the Apache License, Version 2.0 (the "License");
2305 * you may not use this file except in compliance with the License.
2306 * You may obtain a copy of the License at
2307 *
2308 *   http://www.apache.org/licenses/LICENSE-2.0
2309 *
2310 * Unless required by applicable law or agreed to in writing, software
2311 * distributed under the License is distributed on an "AS IS" BASIS,
2312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2313 * See the License for the specific language governing permissions and
2314 * limitations under the License.
2315 */class pl{constructor(e,n,s,r,i){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=s,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,n,s){const r=new Map;return r.set(e,ia.createSynthesizedTargetChangeForCurrentChange(e,n,s)),new pl(me.min(),r,new tt(Ie),ds(),Se())}}class ia{constructor(e,n,s,r,i){this.resumeToken=e,this.current=n,this.addedDocuments=s,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,n,s){return new ia(s,n,Se(),Se(),Se())}}/**
2316 * @license
2317 * Copyright 2017 Google LLC
2318 *
2319 * Licensed under the Apache License, Version 2.0 (the "License");
2320 * you may not use this file except in compliance with the License.
2321 * You may obtain a copy of the License at
2322 *
2323 *   http://www.apache.org/licenses/LICENSE-2.0
2324 *
2325 * Unless required by applicable law or agreed to in writing, softw
2325are
2326 * distributed under the License is distributed on an "AS IS" BASIS,
2327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2328 * See the License for the specific language governing permissions and
2329 * limitations under the License.
2330 */class Ja{constructor(e,n,s,r){this.be=e,this.removedTargetIds=n,this.key=s,this.De=r}}class dv{constructor(e,n){this.targetId=e,this.Ce=n}}class fv{constructor(e,n,s=St.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=n,this.resumeToken=s,this.cause=r}}class km{constructor(){this.ve=0,this.Fe=Mm(),this.Me=St.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=Se(),n=Se(),s=Se();return this.Fe.forEach(((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:n=n.add(r);break;case 1:s=s.add(r);break;default:he(38017,{changeType:i})}})),new ia(this.Me,this.xe,e,n,s)}qe(){this.Oe=!1,this.Fe=Mm()}Qe(e,n){this.Oe=!0,this.Fe=this.Fe.insert(e,n)}$e(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}Ue(){this.ve+=1}Ke(){this.ve-=1,Fe(this.ve>=0,3241,{ve:this.ve})}We(){this.Oe=!0,this.xe=!0}}class BM{constructor(e){this.Ge=e,this.ze=new Map,this.je=ds(),this.Je=Na(),this.He=Na(),this.Ye=new tt(Ie)}Ze(e){for(const n of e.be)e.De&&e.De.isFoundDocument()?this.Xe(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 s=this.nt(n);switch(e.state){case 0:this.rt(n)&&s.Le(e.resumeToken);break;case 1:s.Ke(),s.Ne||s.qe(),s.Le(e.resumeToken);break;case 2:s.Ke(),s.Ne||this.removeTarget(n);break;case 3:this.rt(n)&&(s.We(),s.Le(e.resumeToken));break;case 4:this.rt(n)&&(this.it(n),s.Le(e.resumeToken));break;default:he(56790,{state:e.state})}}))}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.ze.forEach(((s,r)=>{this.rt(r)&&n(r)}))}st(e){const n=e.targetId,s=e.Ce.count,r=this.ot(n);if(r){const i=r.target;if(Ku(i))if(s===0){const o=new re(i.path);this.et(n,o,Dt.newNoDocument(o,me.min()))}else Fe(s===1,20013,{expectedCount:s});else{const o=this._t(n);if(o!==s){const c=this.ut(e),l=c?this.ct(c,e,o):1;if(l!==0){this.it(n);const h=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ye=this.Ye.insert(n,h)}}}}}ut(e){const n=e.Ce.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:s="",padding:r=0},hashCount:i=0}=n;let o,c;try{o=Ks(s).toUint8Array()}catch(l){if(l instanceof L0)return ui("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{c=new wd(o,r,i)}catch(l){return ui(l instanceof Zi?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return c.ge===0?null:c}ct(e,n,s){return n.Ce.count===s-this.Pt(e,n.targetId)?0:2}Pt(e,n){const s=this.Ge.getRemoteKeysForTarget(n);let r=0;return s.forEach((i=>{const o=this.Ge.ht(),c=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(c)||(this.et(n,i,null),r++)})),r}Tt(e){const n=new Map;this.ze.forEach(((i,o)=>{const c=this.ot(o);if(c){if(i.current&&Ku(c.target)){const l=new re(c.target.path);this.It(l).has(o)||this.Et(o,l)||this.et(o,l,Dt.newNoDocument(l,e))}i.Be&&(n.set(o,i.ke()),i.qe())}}));let s=Se();this.He.forEach(((i,o)=>{let c=!0;o.forEachWhile((l=>{const h=this.ot(l);return!h||h.purpose==="TargetPurposeLimboResolution"||(c=!1,!1)})),c&&(s=s.add(i))})),this.je.forEach(((i,o)=>o.setReadTime(e)));const r=new pl(e,n,this.Ye,this.je,s);return this.je=ds(),this.Je=Na(),this.He=Na(),this.Ye=new tt(Ie),r}Xe(e,n){if(!this.rt(e))return;const s=this.Et(e,n.key)?2:0;this.nt(e).Qe(n.key,s),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.dt(n.key).add(e))}et(e,n,s){if(!this.rt(e))return;const r=this.nt(e);this.Et(e,n)?r.Qe(n,1):r.$e(n),this.He=this.He.insert(n,this.dt(n).delete(e)),this.He=this.He.insert(n,this.dt(n).add(e)),s&&(this.je=this.je.insert(n,s))}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}Ue(e){this.nt(e).Ue()}nt(e){let n=this.ze.get(e);return n||(n=new km,this.ze.set(e,n)),n}dt(e){let n=this.He.get(e);return n||(n=new ft(Ie),this.He=this.He.insert(e,n)),n}It(e){let n=this.Je.get(e);return n||(n=new ft(Ie),this.Je=this.Je.insert(e,n)),n}rt(e){const n=this.ot(e)!==null;return n||ee("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 km),this.Ge.getRemoteKeysForTarget(e).forEach((n=>{this.et(e,n,null)}))}Et(e,n){return this.Ge.getRemoteKeysForTarget(e).has(n)}}function Na(){return new tt(re.comparator)}function Mm(){return new tt(re.comparator)}const HM={asc:"ASCENDING",desc:"DESCENDING"},WM={"<":"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"},zM={and:"AND",or:"OR"};class YM{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function Xu(t,e){return t.useProto3Json||cl(e)?e:{value:e}}function Rc(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 pv(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function qM(t,e){return Rc(t,e.toTimestamp())}function xn(t){return Fe(!!t,49232),me.fromTimestamp((function(n){const s=Gs(n);return new qe(s.seconds,s.nanos)})(t))}function Ed(t,e){return Zu(t,e).canonicalString()}function Zu(t,e){const n=(function(r){return new We(["projects",r.projectId,"databases",r.database])})(t).child("documents");return e===void 0?n:n.child(e)}function mv(t){const e=We.fromString(t);return Fe(wv(e),10190,{key:e.toString()}),e}function eh(t,e){return Ed(t.databaseId,e.path)}function cu(t,e){const n=mv(e);
vendor: 5,973 bytes, line 2330
2330if(n.get(1)!==t.databaseId.projectId)throw new X(V.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 X(V.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new re(_v(n))}function gv(t,e){return Ed(t.databaseId,e)}function GM(t){const e=mv(t);return e.length===4?We.emptyPath():_v(e)}function th(t){return new We(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function _v(t){return Fe(t.length>4&&t.get(4)==="documents",29091,{key:t.toString()}),t.popFirst(5)}function Dm(t,e,n){return{name:eh(t,e),fields:n.value.mapValue.fields}}function KM(t,e){let n;if("targetChange"in e){e.targetChange;const s=(function(h){return h==="NO_CHANGE"?0:h==="ADD"?1:h==="REMOVE"?2:h==="CURRENT"?3:h==="RESET"?4:he(39313,{state:h})})(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],i=(function(h,d){return h.useProto3Json?(Fe(d===void 0||typeof d=="string",58123),St.fromBase64String(d||"")):(Fe(d===void 0||d instanceof Buffer||d instanceof Uint8Array,16193),St.fromUint8Array(d||new Uint8Array))})(t,e.targetChange.resumeToken),o=e.targetChange.cause,c=o&&(function(h){const d=h.code===void 0?V.UNKNOWN:hv(h.code);return new X(d,h.message||"")})(o);n=new fv(s,r,i,c||null)}else if("documentChange"in e){e.documentChange;const s=e.documentChange;s.document,s.document.name,s.document.updateTime;const r=cu(t,s.document.name),i=xn(s.document.updateTime),o=s.document.createTime?xn(s.document.createTime):me.min(),c=new nn({mapValue:{fields:s.document.fields}}),l=Dt.newFoundDocument(r,i,o,c),h=s.targetIds||[],d=s.removedTargetIds||[];n=new Ja(h,d,l.key,l)}else if("documentDelete"in e){e.documentDelete;const s=e.documentDelete;s.document;const r=cu(t,s.document),i=s.readTime?xn(s.readTime):me.min(),o=Dt.newNoDocument(r,i),c=s.removedTargetIds||[];n=new Ja([],c,o.key,o)}else if("documentRemove"in e){e.documentRemove;const s=e.documentRemove;s.document;const r=cu(t,s.document),i=s.removedTargetIds||[];n=new Ja([],i,r,null)}else{if(!("filter"in e))return he(11601,{Rt:e});{e.filter;const s=e.filter;s.targetId;const{count:r=0,unchangedNames:i}=s,o=new FM(r,i),c=s.targetId;n=new dv(c,o)}}return n}function QM(t,e){let n;if(e instanceof ra)n={update:Dm(t,e.key,e.value)};else if(e instanceof uv)n={delete:eh(t,e.key)};else if(e instanceof kr)n={update:Dm(t,e.key,e.data),updateMask:iD(e.fieldMask)};else{if(!(e instanceof xM))return he(16599,{Vt:e.type});n={verify:eh(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((s=>(function(i,o){const c=o.transform;if(c instanceof Fo)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(c instanceof Uo)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:c.elements}};if(c instanceof jo)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:c.elements}};if(c instanceof bc)return{fieldPath:o.field.canonicalString(),increment:c.Ae};throw he(20930,{transform:o.transform})})(0,s)))),e.precondition.isNone||(n.currentDocument=(function(r,i){return i.updateTime!==void 0?{updateTime:qM(r,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:he(27497)})(t,e.precondition)),n}function JM(t,e){return t&&t.length>0?(Fe(e!==void 0,14353),t.map((n=>(function(r,i){let o=r.updateTime?xn(r.updateTime):xn(i);return o.isEqual(me.min())&&(o=xn(i)),new DM(o,r.transformResults||[])})(n,e)))):[]}function XM(t,e){return{documents:[gv(t,e.path)]}}function ZM(t,e){const n={structuredQuery:{}},s=e.path;let r;e.collectionGroup!==null?(r=s,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(r=s.popLast(),n.structuredQuery.from=[{collectionId:s.lastSegment()}]),n.parent=gv(t,r);const i=(function(h){if(h.length!==0)return vv(En.create(h,"and"))})(e.filters);i&&(n.structuredQuery.where=i);const o=(function(h){if(h.length!==0)return h.map((d=>(function(m){return{field:zr(m.field),direction:nD(m.dir)}})(d)))})(e.orderBy);o&&(n.structuredQuery.orderBy=o);const c=Xu(t,e.limit);return c!==null&&(n.structuredQuery.limit=c),e.startAt&&(n.structuredQuery.startAt=(function(h){return{before:h.inclusive,values:h.position}})(e.startAt)),e.endAt&&(n.structuredQuery.endAt=(function(h){return{before:!h.inclusive,values:h.position}})(e.endAt)),{ft:n,parent:r}}function eD(t){let e=GM(t.parent);const n=t.structuredQuery,s=n.from?n.from.length:0;let r=null;if(s>0){Fe(s===1,65062);const d=n.from[0];d.allDescendants?r=d.collectionId:e=e.child(d.collectionId)}let i=[];n.where&&(i=(function(p){const m=yv(p);return m instanceof En&&q0(m)?m.getFilters():[m]})(n.where));let o=[];n.orderBy&&(o=(function(p){return p.map((m=>(function(P){return new Lo(Yr(P.field),(function(O){switch(O){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(P.direction))})(m)))})(n.orderBy));let c=null;n.limit&&(c=(function(p){let m;return m=typeof p=="object"?p.value:p,cl(m)?null:m})(n.limit));let l=null;n.startAt&&(l=(function(p){const m=!!p.before,v=p.values||[];return new Ac(v,m)})(n.startAt));let h=null;return n.endAt&&(h=(function(p){const m=!p.before,v=p.values||[];return new Ac(v,m)})(n.endAt)),yM(e,r,o,i,c,"F",l,h)}function tD(t,e){const n=(function(r){switch(r){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return he(28987,{purpose:r})}})(e.purpose);return n==null?null:{"goog-listen-tags":n}}function yv(t){return t.unaryFilter!==void 0?(function(n){switch(n.unaryFilter.op){case"IS_NAN":const s=Yr(n.unaryFilter.field);return at.create(s,"==",{doubleValue:NaN});case"IS_NULL":const r=Yr(n.unaryFilter.field);return at.create(r,"==",{nullValue:"NULL_VALUE"});
2330case"IS_NOT_NAN":const i=Yr(n.unaryFilter.field);return at.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Yr(n.unaryFilter.field);return at.create(o,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return he(61313);default:return he(60726)}})(t):t.fieldFilter!==void 0?(function(n){return at.create(Yr(n.fieldFilter.field),(function(r){switch(r){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 he(58110);default:return he(50506)}})(n.fieldFilter.op),n.fieldFilter.value)})(t):t.compositeFilter!==void 0?(function(n){return En.create(n.compositeFilter.filters.map((s=>yv(s))),(function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return he(1026)}})(n.compositeFilter.op))})(t):he(30097,{filter:t})}function nD(t){return HM[t]}function sD(t){return WM[t]}function rD(t){return zM[t]}function zr(t){return{fieldPath:t.canonicalString()}}function Yr(t){return It.fromServerFormat(t.fieldPath)}function vv(t){return t instanceof at?(function(n){if(n.op==="=="){if(vm(n.value))return{unaryFilter:{field:zr(n.field),op:"IS_NAN"}};if(ym(n.value))return{unaryFilter:{field:zr(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(vm(n.value))return{unaryFilter:{field:zr(n.field),op:"IS_NOT_NAN"}};if(ym(n.value))return{unaryFilter:{field:zr(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:zr(n.field),op:sD(n.op),value:n.value}}})(t):t instanceof En?(function(n){const s=n.getFilters().map((r=>vv(r)));return s.length===1?s[0]:{compositeFilter:{op:rD(n.op),filters:s}}})(t):he(54877,{filter:t})}function iD(t){const e=[];return t.fields.forEach((n=>e.push(n.canonicalString()))),{fieldPaths:e}}function wv(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/**
2331 * @license
2332 * Copyright 2017 Google LLC
2333 *
2334 * Licensed under the Apache License, Version 2.0 (the "License");
2335 * you may not use this file except in compliance with the License.
2336 * You may obtain a copy of the License at
2337 *
2338 *   http://www.apache.org/licenses/LICENSE-2.0
2339 *
2340 * Unless required by applicable law or agreed to in writing, software
2341 * distributed under the License is distributed on an "AS IS" BASIS,
2342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2343 * See the License for the specific language governing permissions and
2344 * limitations under the License.
2345 */class Os{constructor(e,n,s,r,i=me.min(),o=me.min(),c=St.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=s,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=c,this.expectedCount=l}withSequenceNumber(e){return new Os(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Os(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Os(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Os(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/**
2346 * @license
2347 * Copyright 2017 Google LLC
2348 *
2349 * Licensed under the Apache License, Version 2.0 (the "License");
2350 * you may not use this file except in compliance with the License.
2351 * You may obtain a copy of the License at
2352 *
2353 *   http://www.apache.org/licenses/LICENSE-2.0
2354 *
2355 * Unless required by applicable law or agreed to in writing, software
2356 * distributed under the License is distributed on an "AS IS" BASIS,
2357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2358 * See the License for the specific language governing permissions and
2359 * limitations under the License.
2360 */class oD{constructor(e){this.yt=e}}function aD(t){const e=eD({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?Ju(e,e.limit,"L"):e}/**
2361 * @license
2362 * Copyright 2019 Google LLC
2363 *
2364 * Licensed under the Apache License, Version 2.0 (the "License");
2365 * you may not use this file except in compliance with the License.
2366 * You may obtain a copy of the License at
2367 *
2368 *   http://www.apache.org/licenses/LICENSE-2.0
2369 *
2370 * Unless required by applicable law or agreed to in writing, software
2371 * distributed under the License is distributed on an "AS IS" BASIS,
2372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2373 * See the License for the specific language governing permissions and
2374 * limitations under the License.
2375 */class cD{constructor(){this.Cn=new lD}addToCollectionParentIndex(e,n){return this.Cn.add(n),L.resolve()}getCollectionParents(e,n){return L.resolve(this.Cn.getEntries(n))}addFieldIndex(e,n){return L.resolve()}deleteFieldIndex(e,n){return L.resolve()}deleteAllFieldIndexes(e){return L.resolve()}createTargetIndexes(e,n){return L.resolve()}getDocumentsMatchingTarget(e,n){return L.resolve(null)}getIndexType(e,n){return L.resolve(0)}getFieldIndexes(e,n){return L.resolve([])}getNextCollectionGroupToUpdate(e){return L.resolve(null)}getMinOffset(e,n){return L.resolve(qs.min())}getMinOffsetFromCollectionGroup(e,n){return L.resolve(qs.min())}updateCollectionGroup(e,n,s){return L.resolve()}updateIndexEntries(e,n){return L.resolve()}}class lD{constructor(){this.index={}}add(e){const n=e.lastSegment(),s=e.popLast(),r=this.index[n]||new ft(We.comparator),i=!r.has(s);return this.index[n]=r.add(s),i}has(e){const n=e.lastSegment(),s=e.popLast(),r=this.index[n];return r&&r.has(s)}getEntries(e){return(this.index[e]||new ft(We.comparator)).toArray()}}/**
2376 * @license
2377 * Copyright 2018 Google LLC
2378 *
2379 * Licensed under the Apache License, Version 2.0 (the "License");
2380 * you may not use this file except in compliance with the License.
2381 * You may obtain a copy of the License at
2382 *
2383 *   http://www.apache.org/licenses/LICENSE-2.0
2384 *
2385 * Unless required by applicable law or agreed to in writing, software
2386 * distributed under the License is distributed on an "AS IS" BASIS,
2387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2388 * See the License for the specific language governing permissions and
2389 * limitations under the License.
2390 */const Nm={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Ev=41943040;class Wt{static withCacheSize(e){return new Wt(e,Wt.DEFAULT_COLLECTION_PERCENTILE,Wt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,s){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=s}}/**
2391 * @license
2392 * Copyright 2017 Google LLC
2393 *
2394 * Licensed under the Apache License, Version 2.0 (the "License");
2395 * you may not use this file except in compliance with the License.
2396 * You may obtain a copy of the License at
2397 *
2398 *   http://www.apache.org/licenses/LICENSE-2.0
2399 *
2400 * Unless required by applicable law or agreed to in writing, software
2401 * distributed under the License is distributed on an "AS IS" BASIS,
2402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2403 * See the License for the specific language governing permissions and
2404 * limitations under the License.
2405 */Wt.DEFAULT_COLLECTION_PERCENTILE=10,Wt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Wt.DEFAULT=new Wt(Ev,Wt.DEFAULT_COLLECTION_PERCENTILE,Wt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Wt.DISABLED=new Wt(-1,0,0);/**
2406 * @license
2407 * Copyright 2017 Google LLC
2408 *
2409 * Licensed under the Apache License, Version 2.0 (the "License");
2410 * you may not use this file except in compliance with the License.
2411 * You may obtain a copy of the License at
2412 *
2413 *   http://www.apache.org/licenses/LICENSE-2.0
2414 *
2415 * Unless required by applicable law or agreed to in writing, software
2416 * distributed under the License is distributed on an "AS IS" BASIS,
2417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2418 * See the License for the specific language governing permissions and
2419 * limitations under the License.
2420 */class pi{constructor(e){this.ar=e}next(){return this.ar+=2,this.ar}static ur(){return new pi(0)}static cr(){return new pi(-1)}}/**
2421 * @license
2422 * Copyright 2020 Google LLC
2423 *
2424 * Licensed under the Apache License, Version 2.0 (the "License");
2425 * you may not use this file except in compliance with the License.
2426 * You may obtain a copy of the License at
2427 *
2428 *   http://www.apache.org/licenses/LICENSE-2.0
2429 *
2430 * Unless required by applicable law or agreed to in writing, software
2431 * distributed under the License is distributed on an "AS IS" BASIS,
2432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2433 * See the License for the specific language governing permissions and
2434 * limitations under the License.
2435 */const Om="LruGarbageCollector",uD=1048576;function xm([t,e],[n,s]){const r=Ie(t,n);return r===0?Ie(e,s):r}class hD{constructor(e){this.Ir=e,this.buffer=new ft(xm),this.Er=0}dr(){return++this.Er}Ar(e){const n=[e,this.dr()];if(this.buffer.size<this.Ir)this.buffer=this.buffer.add(n);else{const s=this.buffer.last();xm(n,s)<0&&(this.buffer=this.buffer.delete(s).add(n))}}get maxValue(){return this.buffer.last()[0]}}class dD{constructor(e,n,s){this.garbageCollector=e,this.asyncQueue=n,this.localStore=s,this.Rr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Vr(6e4)}stop(){this.Rr&&(this.Rr.cancel(),this.Rr=null)}get started(){return this.Rr!==null}Vr(e){ee(Om,`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){Ri(n)?ee(Om,"Ignoring IndexedDB error during garbage collection: ",n):await bi(n)}await this.Vr(3e5)}))}}class fD{constructor(e,n){this.mr=e,this.params=n}calculateTargetCount(e,n){return this.mr.gr(e).next((s=>Math.floor(n/100*s)))}nthSequenceNumber(e,n){if(n===0)return L.resolve(al.ce);const s=new hD(n);return this.mr.forEachTarget(e,(r=>s.Ar(r.sequenceNumber))).next((()=>this.mr.pr(e,(r=>s.Ar(r))))).next((()=>s.maxValue))}removeTargets(e,n,s){return this.mr.removeTargets(e,n,s)}removeOrphanedDocuments(e,n){return this.mr.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(ee("LruGarbageCollector","Garbage collection skipped; disabled"),L.resolve(Nm)):this.getCacheSize(e).next((s=>s<this.params.cacheSizeCollectionThreshold?(ee("LruGarbageCollector",`Garbage collection skipped; Cache size ${s} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Nm):this.yr(e,n)))}getCacheSize(e){return this.mr.getCacheSize(e)}yr(e,n){let s,r,i,o,c,l,h;const d=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((p=>(p>this.params.maximumSequenceNumbersToCollect?(ee("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${p}`),r=this.params.maximumSequenceNumbersToCollect):r=p,o=Date.now(),this.nthSequenceNumber(e,r)))).next((p=>(s=p,c=Date.now(),this.removeTargets(e,s,n)))).next((p=>(i=p,l=Date.now(),this.removeOrphanedDocuments(e,s)))).next((p=>(h=Date.now(),Hr()<=Te.DEBUG&&ee("LruGarbageCollector",`LRU Garbage Collection
2436	Counted targets in ${o-d}ms
2437	Determined least recently used ${r} in `+(c-o)+`ms
2438	Removed ${i} targets in `+(l-c)+`ms
2439	Removed ${p} documents in `+(h-l)+`ms
2440Total Duration: ${h-d}ms`),L.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:p}))))}}function pD(t,e){return new fD(t,e)}/**
2441 * @license
2442 * Copyright 2017 Google LLC
2443 *
2444 * Licensed under the Apache License, Version 2.0 (the "License");
2445 * you may not use this file except in compliance with the License.
2446 * You may obtain a copy of the License at
2447 *
2448 *   http://www.apache.org/licenses/LICENSE-2.0
2449 *
2450 * Unless required by applicable law or agreed to in writing, software
2451 * distributed under the License is distributed on an "AS IS" BASIS,
2452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2453 * See the License for the specific language governing permissions and
2454 * limitations under the License.
2455 */class mD{constructor(){this.changes=new Pr((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,Dt.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const s=this.changes.get(n);return s!==void 0?L.resolve(s):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
vendor: 5,066 bytes, lines 2455-2500
2455assertNotApplied(){}}/**
2456 * @license
2457 * Copyright 2017 Google LLC
2458 *
2459 * Licensed under the Apache License, Version 2.0 (the "License");
2460 * you may not use this file except in compliance with the License.
2461 * You may obtain a copy of the License at
2462 *
2463 *   http://www.apache.org/licenses/LICENSE-2.0
2464 *
2465 * Unless required by applicable law or agreed to in writing, software
2466 * distributed under the License is distributed on an "AS IS" BASIS,
2467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2468 * See the License for the specific language governing permissions and
2469 * limitations under the License.
2470 *//**
2471 * @license
2472 * Copyright 2022 Google LLC
2473 *
2474 * Licensed under the Apache License, Version 2.0 (the "License");
2475 * you may not use this file except in compliance with the License.
2476 * You may obtain a copy of the License at
2477 *
2478 *   http://www.apache.org/licenses/LICENSE-2.0
2479 *
2480 * Unless required by applicable law or agreed to in writing, software
2481 * distributed under the License is distributed on an "AS IS" BASIS,
2482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2483 * See the License for the specific language governing permissions and
2484 * limitations under the License.
2485 */class gD{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/**
2486 * @license
2487 * Copyright 2017 Google LLC
2488 *
2489 * Licensed under the Apache License, Version 2.0 (the "License");
2490 * you may not use this file except in compliance with the License.
2491 * You may obtain a copy of the License at
2492 *
2493 *   http://www.apache.org/licenses/LICENSE-2.0
2494 *
2495 * Unless required by applicable law or agreed to in writing, software
2496 * distributed under the License is distributed on an "AS IS" BASIS,
2497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2498 * See the License for the specific language governing permissions and
2499 * limitations under the License.
2500 */class _D{constructor(e,n,s,r){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=s,this.indexManager=r}getDocument(e,n){let s=null;return this.documentOverlayCache.getOverlay(e,n).next((r=>(s=r,this.remoteDocumentCache.getEntry(e,n)))).next((r=>(s!==null&&_o(s.mutation,r,pn.empty(),qe.now()),r)))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next((s=>this.getLocalViewOfDocuments(e,s,Se()).next((()=>s))))}getLocalViewOfDocuments(e,n,s=Se()){const r=fr();return this.populateOverlays(e,r,n).next((()=>this.computeViews(e,n,r,s).next((i=>{let o=Xi();return i.forEach(((c,l)=>{o=o.insert(c,l.overlayedDocument)})),o}))))}getOverlayedDocuments(e,n){const s=fr();return this.populateOverlays(e,s,n).next((()=>this.computeViews(e,n,s,Se())))}populateOverlays(e,n,s){const r=[];return s.forEach((i=>{n.has(i)||r.push(i)})),this.documentOverlayCache.getOverlays(e,r).next((i=>{i.forEach(((o,c)=>{n.set(o,c)}))}))}computeViews(e,n,s,r){let i=ds();const o=go(),c=(function(){return go()})();return n.forEach(((l,h)=>{const d=s.get(h.key);r.has(h.key)&&(d===void 0||d.mutation instanceof kr)?i=i.insert(h.key,h):d!==void 0?(o.set(h.key,d.mutation.getFieldMask()),_o(d.mutation,h,d.mutation.getFieldMask(),qe.now())):o.set(h.key,pn.empty())})),this.recalculateAndSaveOverlays(e,i).next((l=>(l.forEach(((h,d)=>o.set(h,d))),n.forEach(((h,d)=>c.set(h,new gD(d,o.get(h)??null)))),c)))}recalculateAndSaveOverlays(e,n){const s=go();let r=new tt(((o,c)=>o-c)),i=Se();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next((o=>{for(const c of o)c.keys().forEach((l=>{const h=n.get(l);if(h===null)return;let d=s.get(l)||pn.empty();d=c.applyToLocalView(h,d),s.set(l,d);const p=(r.get(c.batchId)||Se()).add(l);r=r.insert(c.batchId,p)}))})).next((()=>{const o=[],c=r.getReverseIterator();for(;c.hasNext();){const l=c.getNext(),h=l.key,d=l.value,p=nv();d.forEach((m=>{if(!i.has(m)){const v=cv(n.get(m),s.get(m));v!==null&&p.set(m,v),i=i.add(m)}})),o.push(this.documentOverlayCache.saveOverlays(e,h,p))}return L.waitFor(o)})).next((()=>s))}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next((s=>this.recalculateAndSaveOverlays(e,s)))}getDocumentsMatchingQuery(e,n,s,r){return(function(o){return re.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0})(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):J0(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,s,r):this.getDocumentsMatchingCollectionQuery(e,n,s,r)}getNextDocuments(e,n,s,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,s,r).next((i=>{const o=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,s.largestBatchId,r-i.size):L.resolve(fr());let c=No,l=i;return o.next((h=>L.forEach(h,((d,p)=>(c<p.largestBatchId&&(c=p.largestBatchId),i.get(d)?L.resolve():this.remoteDocumentCache.getEntry(e,d).next((m=>{l=l.insert(d,m)}))))).next((()=>this.populateOverlays(e,h,i))).next((()=>this.computeViews(e,l,h,Se()))).next((d=>({batchId:c,changes:tv(d)})))))}))}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new re(n)).next((s=>{let r=Xi();
2500return s.isFoundDocument()&&(r=r.insert(s.key,s)),r}))}getDocumentsMatchingCollectionGroupQuery(e,n,s,r){const i=n.collectionGroup;let o=Xi();return this.indexManager.getCollectionParents(e,i).next((c=>L.forEach(c,(l=>{const h=(function(p,m){return new Ci(m,null,p.explicitOrderBy.slice(),p.filters.slice(),p.limit,p.limitType,p.startAt,p.endAt)})(n,l.child(i));return this.getDocumentsMatchingCollectionQuery(e,h,s,r).next((d=>{d.forEach(((p,m)=>{o=o.insert(p,m)}))}))})).next((()=>o))))}getDocumentsMatchingCollectionQuery(e,n,s,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,s.largestBatchId).next((o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,s,i,r)))).next((o=>{i.forEach(((l,h)=>{const d=h.getKey();o.get(d)===null&&(o=o.insert(d,Dt.newInvalidDocument(d)))}));let c=Xi();return o.forEach(((l,h)=>{const d=i.get(l);d!==void 0&&_o(d.mutation,h,pn.empty(),qe.now()),hl(n,h)&&(c=c.insert(l,h))})),c}))}}/**
2501 * @license
2502 * Copyright 2020 Google LLC
2503 *
2504 * Licensed under the Apache License, Version 2.0 (the "License");
2505 * you may not use this file except in compliance with the License.
2506 * You may obtain a copy of the License at
2507 *
2508 *   http://www.apache.org/licenses/LICENSE-2.0
2509 *
2510 * Unless required by applicable law or agreed to in writing, software
2511 * distributed under the License is distributed on an "AS IS" BASIS,
2512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2513 * See the License for the specific language governing permissions and
2514 * limitations under the License.
2515 */class yD{constructor(e){this.serializer=e,this.Lr=new Map,this.kr=new Map}getBundleMetadata(e,n){return L.resolve(this.Lr.get(n))}saveBundleMetadata(e,n){return this.Lr.set(n.id,(function(r){return{id:r.id,version:r.version,createTime:xn(r.createTime)}})(n)),L.resolve()}getNamedQuery(e,n){return L.resolve(this.kr.get(n))}saveNamedQuery(e,n){return this.kr.set(n.name,(function(r){return{name:r.name,query:aD(r.bundledQuery),readTime:xn(r.readTime)}})(n)),L.resolve()}}/**
2516 * @license
2517 * Copyright 2022 Google LLC
2518 *
2519 * Licensed under the Apache License, Version 2.0 (the "License");
2520 * you may not use this file except in compliance with the License.
2521 * You may obtain a copy of the License at
2522 *
2523 *   http://www.apache.org/licenses/LICENSE-2.0
2524 *
2525 * Unless required by applicable law or agreed to in writing, software
2526 * distributed under the License is distributed on an "AS IS" BASIS,
2527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2528 * See the License for the specific language governing permissions and
2529 * limitations under the License.
2530 */class vD{constructor(){this.overlays=new tt(re.comparator),this.qr=new Map}getOverlay(e,n){return L.resolve(this.overlays.get(n))}getOverlays(e,n){const s=fr();return L.forEach(n,(r=>this.getOverlay(e,r).next((i=>{i!==null&&s.set(r,i)})))).next((()=>s))}saveOverlays(e,n,s){return s.forEach(((r,i)=>{this.St(e,n,i)})),L.resolve()}removeOverlaysForBatchId(e,n,s){const r=this.qr.get(s);return r!==void 0&&(r.forEach((i=>this.overlays=this.overlays.remove(i))),this.qr.delete(s)),L.resolve()}getOverlaysForCollection(e,n,s){const r=fr(),i=n.length+1,o=new re(n.child("")),c=this.overlays.getIteratorFrom(o);for(;c.hasNext();){const l=c.getNext().value,h=l.getKey();if(!n.isPrefixOf(h.path))break;h.path.length===i&&l.largestBatchId>s&&r.set(l.getKey(),l)}return L.resolve(r)}getOverlaysForCollectionGroup(e,n,s,r){let i=new tt(((h,d)=>h-d));const o=this.overlays.getIterator();for(;o.hasNext();){const h=o.getNext().value;if(h.getKey().getCollectionGroup()===n&&h.largestBatchId>s){let d=i.get(h.largestBatchId);d===null&&(d=fr(),i=i.insert(h.largestBatchId,d)),d.set(h.getKey(),h)}}const c=fr(),l=i.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach(((h,d)=>c.set(h,d))),!(c.size()>=r)););return L.resolve(c)}St(e,n,s){const r=this.overlays.get(s.key);if(r!==null){const o=this.qr.get(r.largestBatchId).delete(s.key);this.qr.set(r.largestBatchId,o)}this.overlays=this.overlays.insert(s.key,new LM(n,s));let i=this.qr.get(n);i===void 0&&(i=Se(),this.qr.set(n,i)),this.qr.set(n,i.add(s.key))}}/**
2531 * @license
2532 * Copyright 2024 Google LLC
2533 *
2534 * Licensed under the Apache License, Version 2.0 (the "License");
2535 * you may not use this file except in compliance with the License.
2536 * You may obtain a copy of the License at
2537 *
2538 *   http://www.apache.org/licenses/LICENSE-2.0
2539 *
2540 * Unless required by applicable law or agreed to in writing, software
2541 * distributed under the License is distributed on an "AS IS" BASIS,
2542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2543 * See the License for the specific language governing permissions and
2544 * limitations under the License.
2545 */class wD{constructor(){this.sessionToken=St.EMPTY_BYTE_STRING}getSessionToken(e){return L.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,L.resolve()}}/**
2546 * @license
2547 * Copyright 2017 Google LLC
2548 *
2549 * Licensed under the Apache License, Version 2.0 (the "License");
2550 * you may not use this file except in compliance with the License.
2551 * You may obtain a copy of the License at
2552 *
2553 *   http://www.apache.org/licenses/LICENSE-2.0
2554 *
2555 * Unless required by applicable law or agreed to in writing, software
2556 * distributed under the License is distributed on an "AS IS" BASIS,
2557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2558 * See the License for the specific language governing permissions and
2559 * limitations under the License.
2560 */class Td{constructor(){this.Qr=new ft(pt.$r),this.Ur=new ft(pt.Kr)}isEmpty(){return this.Qr.isEmpty()}addReference(e,n){const s=new pt(e,n);this.Qr=this.Qr.add(s),this.Ur=this.Ur.add(s)}Wr(e,n){e.forEach((s=>this.addReference(s,n)))}removeReference(e,n){this.Gr(new pt(e,n))}zr(e,n){e.forEach((s=>this.removeReference(s,n)))}jr(e){const n=new re(new We([])),s=new pt(n,e),r=new pt(n,e+1),i=[];return this.Ur.forEachInRange([s,r],(o=>{this.Gr(o),i.push(o.key)})),i}Jr(){this.Qr.forEach((e=>this.Gr(e)))}Gr(e){this.Qr=this.Qr.delete(e),this.Ur=this.Ur.delete(e)}Hr(e){const n=new re(new We([])),s=new pt(n,e),r=new pt(n,e+1);let i=Se();return this.Ur.forEachInRange([s,r],(o=>{i=i.add(o.key)})),i}containsKey(e){const n=new pt(e,0),s=this.Qr.firstAfterOrEqual(n);return s!==null&&e.isEqual(s.key)}}class pt{constructor(e,n){this.key=e,this.Yr=n}static $r(e,n){return re.comparator(e.key,n.key)||Ie(e.Yr,n.Yr)}static Kr(e,n){return Ie(e.Yr,n.Yr)||re.comparator(e.key,n.key)}}/**
2561 * @license
2562 * Copyright 2017 Google LLC
2563 *
2564 * Licensed under the Apache License, Version 2.0 (the "License");
2565 * you may not use this file except in compliance with the License.
2566 * You may obtain a copy of the License at
2567 *
2568 *   http://www.apache.org/licenses/LICENSE-2.0
2569 *
2570 * Unless required by applicable law or agreed to in writing, software
2571 * distributed under the License is distributed on an "AS IS" BASIS,
2572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2573 * See the License for the specific language governing permissions and
2574 * limitations under the License.
2575 */class ED{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.tr=1,this.Zr=new ft(pt.$r)}checkEmpty(e){return L.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,s,r){const i=this.tr;this.tr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new VM(i,n,s,r);this.mutationQueue.push(o);for(const c of r)this.Zr=this.Zr.add(new pt(c.key,i)),this.indexManager.addToCollectionParentIndex(e,c.key.path.popLast());return L.resolve(o)}lookupMutationBatch(e,n){return L.resolve(this.Xr(n))}getNextMutationBatchAfterBatchId(e,n){const s=n+1,r=this.ei(s),i=r<0?0:r;return L.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return L.resolve(this.mutationQueue.length===0?dd:this.tr-1)}getAllMutationBatches(e){return L.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const s=new pt(n,0),r=new pt(n,Number.POSITIVE_INFINITY),i=[];return this.Zr.forEachInRange([s,r],(o=>{const c=this.Xr(o.Yr);i.push(c)})),L.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let s=new ft(Ie);return n.forEach((r=>{const i=new pt(r,0),o=new pt(r,Number.POSITIVE_INFINITY);this.Zr.forEachInRange([i,o],(c=>{s=s.add(c.Yr)}))})),L.resolve(this.ti(s))}getAllMutationBatchesAffectingQuery(e,n){const s=n.path,r=s.length+1;let i=s;re.isDocumentKey(i)||(i=i.child(""));const o=new pt(new re(i),0);let c=new ft(Ie);return this.Zr.forEachWhile((l=>{const h=l.key.path;return!!s.isPrefixOf(h)&&(h.length===r&&(c=c.add(l.Yr)),!0)}),o),L.resolve(this.ti(c))}ti(e){const n=[];return e.forEach((s=>{const r=this.Xr(s);r!==null&&n.push(r)})),n}removeMutationBatch(e,n){Fe(this.ni(n.batchId,"removed")===0,55003),this.mutation
vendor: 14,028 bytes, lines 2575-2665
2575Queue.shift();let s=this.Zr;return L.forEach(n.mutations,(r=>{const i=new pt(r.key,n.batchId);return s=s.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.Zr=s}))}ir(e){}containsKey(e,n){const s=new pt(n,0),r=this.Zr.firstAfterOrEqual(s);return L.resolve(n.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,L.resolve()}ni(e,n){return this.ei(e)}ei(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Xr(e){const n=this.ei(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/**
2576 * @license
2577 * Copyright 2017 Google LLC
2578 *
2579 * Licensed under the Apache License, Version 2.0 (the "License");
2580 * you may not use this file except in compliance with the License.
2581 * You may obtain a copy of the License at
2582 *
2583 *   http://www.apache.org/licenses/LICENSE-2.0
2584 *
2585 * Unless required by applicable law or agreed to in writing, software
2586 * distributed under the License is distributed on an "AS IS" BASIS,
2587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2588 * See the License for the specific language governing permissions and
2589 * limitations under the License.
2590 */class TD{constructor(e){this.ri=e,this.docs=(function(){return new tt(re.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const s=n.key,r=this.docs.get(s),i=r?r.size:0,o=this.ri(n);return this.docs=this.docs.insert(s,{document:n.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,s.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 s=this.docs.get(n);return L.resolve(s?s.document.mutableCopy():Dt.newInvalidDocument(n))}getEntries(e,n){let s=ds();return n.forEach((r=>{const i=this.docs.get(r);s=s.insert(r,i?i.document.mutableCopy():Dt.newInvalidDocument(r))})),L.resolve(s)}getDocumentsMatchingQuery(e,n,s,r){let i=ds();const o=n.path,c=new re(o.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(c);for(;l.hasNext();){const{key:h,value:{document:d}}=l.getNext();if(!o.isPrefixOf(h.path))break;h.path.length>o.length+1||Qk(Kk(d),s)<=0||(r.has(d.key)||hl(n,d))&&(i=i.insert(d.key,d.mutableCopy()))}return L.resolve(i)}getAllFromCollectionGroup(e,n,s,r){he(9500)}ii(e,n){return L.forEach(this.docs,(s=>n(s)))}newChangeBuffer(e){return new ID(this)}getSize(e){return L.resolve(this.size)}}class ID extends mD{constructor(e){super(),this.Nr=e}applyChanges(e){const n=[];return this.changes.forEach(((s,r)=>{r.isValidDocument()?n.push(this.Nr.addEntry(e,r)):this.Nr.removeEntry(s)})),L.waitFor(n)}getFromCache(e,n){return this.Nr.getEntry(e,n)}getAllFromCache(e,n){return this.Nr.getEntries(e,n)}}/**
2591 * @license
2592 * Copyright 2017 Google LLC
2593 *
2594 * Licensed under the Apache License, Version 2.0 (the "License");
2595 * you may not use this file except in compliance with the License.
2596 * You may obtain a copy of the License at
2597 *
2598 *   http://www.apache.org/licenses/LICENSE-2.0
2599 *
2600 * Unless required by applicable law or agreed to in writing, software
2601 * distributed under the License is distributed on an "AS IS" BASIS,
2602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2603 * See the License for the specific language governing permissions and
2604 * limitations under the License.
2605 */class SD{constructor(e){this.persistence=e,this.si=new Pr((n=>md(n)),gd),this.lastRemoteSnapshotVersion=me.min(),this.highestTargetId=0,this.oi=0,this._i=new Td,this.targetCount=0,this.ai=pi.ur()}forEachTarget(e,n){return this.si.forEach(((s,r)=>n(r))),L.resolve()}getLastRemoteSnapshotVersion(e){return L.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return L.resolve(this.oi)}allocateTargetId(e){return this.highestTargetId=this.ai.next(),L.resolve(this.highestTargetId)}setTargetsMetadata(e,n,s){return s&&(this.lastRemoteSnapshotVersion=s),n>this.oi&&(this.oi=n),L.resolve()}Pr(e){this.si.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.ai=new pi(n),this.highestTargetId=n),e.sequenceNumber>this.oi&&(this.oi=e.sequenceNumber)}addTargetData(e,n){return this.Pr(n),this.targetCount+=1,L.resolve()}updateTargetData(e,n){return this.Pr(n),L.resolve()}removeTargetData(e,n){return this.si.delete(n.target),this._i.jr(n.targetId),this.targetCount-=1,L.resolve()}removeTargets(e,n,s){let r=0;const i=[];return this.si.forEach(((o,c)=>{c.sequenceNumber<=n&&s.get(c.targetId)===null&&(this.si.delete(o),i.push(this.removeMatchingKeysForTargetId(e,c.targetId)),r++)})),L.waitFor(i).next((()=>r))}getTargetCount(e){return L.resolve(this.targetCount)}getTargetData(e,n){const s=this.si.get(n)||null;return L.resolve(s)}addMatchingKeys(e,n,s){return this._i.Wr(n,s),L.resolve()}removeMatchingKeys(e,n,s){this._i.zr(n,s);const r=this.persistence.referenceDelegate,i=[];return r&&n.forEach((o=>{i.push(r.markPotentiallyOrphaned(e,o))})),L.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this._i.jr(n),L.resolve()}getMatchingKeysForTargetId(e,n){const s=this._i.Hr(n);return L.resolve(s)}containsKey(e,n){return L.resolve(this._i.containsKey(n))}}/**
2606 * @license
2607 * Copyright 2017 Google LLC
2608 *
2609 * Licensed under the Apache License, Version 2.0 (the "License");
2610 * you may not use this file except in compliance with the License.
2611 * You may obtain a copy of the License at
2612 *
2613 *   http://www.apache.org/licenses/LICENSE-2.0
2614 *
2615 * Unless required by applicable law or agreed to in writing, software
2616 * distributed under the License is distributed on an "AS IS" BASIS,
2617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2618 * See the License for the specific language governing permissions and
2619 * limitations under the License.
2620 */class Tv{constructor(e,n){this.ui={},this.overlays={},this.ci=new al(0),this.li=!1,this.li=!0,this.hi=new wD,this.referenceDelegate=e(this),this.Pi=new SD(this),this.indexManager=new cD,this.remoteDocumentCache=(function(r){return new TD(r)})((s=>this.referenceDelegate.Ti(s))),this.serializer=new oD(n),this.Ii=new yD(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.li=!1,Promise.resolve()}get started(){return this.li}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new vD,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let s=this.ui[e.toKey()];return s||(s=new ED(n,this.referenceDelegate),this.ui[e.toKey()]=s),s}getGlobalsCache(){return this.hi}getTargetCache(){return this.Pi}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ii}runTransaction(e,n,s){ee("MemoryPersistence","Starting transaction:",e);const r=new AD(this.ci.next());return this.referenceDelegate.Ei(),s(r).next((i=>this.referenceDelegate.di(r).next((()=>i)))).toPromise().then((i=>(r.raiseOnCommittedEvent(),i)))}Ai(e,n){return L.or(Object.values(this.ui).map((s=>()=>s.containsKey(e,n))))}}class AD extends Xk{constructor(e){super(),this.currentSequenceNumber=e}}class Id{constructor(e){this.persistence=e,this.Ri=new Td,this.Vi=null}static mi(e){return new Id(e)}get fi(){if(this.Vi)return this.Vi;throw he(60996)}addReference(e,n,s){return this.Ri.addReference(s,n),this.fi.delete(s.toString()),L.resolve()}removeReference(e,n,s){return this.Ri.removeReference(s,n),this.fi.add(s.toString()),L.resolve()}markPotentiallyOrphaned(e,n){return this.fi.add(n.toString()),L.resolve()}removeTarget(e,n){this.Ri.jr(n.targetId).forEach((r=>this.fi.add(r.toString())));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(e,n.targetId).next((r=>{r.forEach((i=>this.fi.add(i.toString())))})).next((()=>s.removeTargetData(e,n)))}Ei(){this.Vi=new Set}di(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return L.forEach(this.fi,(s=>{const r=re.fromPath(s);return this.gi(e,r).next((i=>{i||n.removeEntry(r,me.min())}))})).next((()=>(this.Vi=null,n.apply(e))))}updateLimboDocument(e,n){return this.gi(e,n).next((s=>{s?this.fi.delete(n.toString()):this.fi.add(n.toString())}))}Ti(e){return 0}gi(e,n){return L.or([()=>L.resolve(this.Ri.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Ai(e,n)])}}class Cc{constructor(e,n){this.persistence=e,this.pi=new Pr((s=>tM(s.path)),((s,r)=>s.isEqual(r))),this.garbageCollector=pD(this,n)}static mi(e,n){return new Cc(e,n)}Ei(){}di(e){return L.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}gr(e){const n=this.wr(e);return this.persistence.getTargetCache().getTargetCount(e).next((s=>n.next((r=>s+r))))}wr(e){let n=0;return this.pr(e,(s=>{n++})).next((()=>n))}pr(e,n){return L.forEach(this.pi,((s,r)=>this.br(e,s,r).next((i=>i?L.resolve():n(r)))))}removeTargets(e,n,s){return this.persistence.getTargetCache().removeTargets(e,n,s)}removeOrphanedDocuments(e,n){let s=0;const r=this.persistence.getRemoteDocumentCache(),i=r.newChangeBuffer();return r.ii(e,(o=>this.br(e,o,n).next((c=>{c||(s++,i.removeEntry(o,me.min()))})))).next((()=>i.apply(e))).next((()=>s))}markPotentiallyOrphaned(e,n){return this.pi.set(n,e.currentSequenceNumber),L.resolve()}removeTarget(e,n){const s=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,s)}addReference(e,n,s){return this.pi.set(s,e.currentSequenceNumber),L.resolve()}removeReference(e,n,s){return this.pi.set(s,e.currentSequenceNumber),L.resolve()}updateLimboDocument(e,n){return this.pi.set(n,e.currentSequenceNumber),L.resolve()}Ti(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=Ga(e.data.value)),n}br(e,n,s){return L.or([()=>this.persistence.Ai(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const r=this.pi.get(n);return L.resolve(r!==void 0&&r>s)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/**
2621 * @license
2622 * Copyright 2017 Google LLC
2623 *
2624 * Licensed under the Apache License, Version 2.0 (the "License");
2625 * you may not use this file except in compliance with the License.
2626 * You may obtain a copy of the License at
2627 *
2628 *   http://www.apache.org/licenses/LICENSE-2.0
2629 *
2630 * Unless required by applicable law or agreed to in writing, software
2631 * distributed under the License is distributed on an "AS IS" BASIS,
2632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2633 * See the License for the specific language governing permissions and
2634 * limitations under the License.
2635 */class Sd{constructor(e,n,s,r){this.targetId=e,this.fromCache=n,this.Es=s,this.ds=r}static As(e,n){let s=Se(),r=Se();for(const i of n.docChanges)switch(i.type){case 0:s=s.add(i.doc.key);break;case 1:r=r.add(i.doc.key)}return new Sd(e,n.fromCache,s,r)}}/**
2636 * @license
2637 * Copyright 2023 Google LLC
2638 *
2639 * Licensed under the Apache License, Version 2.0 (the "License");
2640 * you may not use this file except in compliance with the License.
2641 * You may obtain a copy of the License at
2642 *
2643 *   http://www.apache.org/licenses/LICENSE-2.0
2644 *
2645 * Unless required by applicable law or agreed to in writing, software
2646 * distributed under the License is distributed on an "AS IS" BASIS,
2647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2648 * See the License for the specific language governing permissions and
2649 * limitations under the License.
2650 */class bD{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/**
2651 * @license
2652 * Copyright 2019 Google LLC
2653 *
2654 * Licensed under the Apache License, Version 2.0 (the "License");
2655 * you may not use this file except in compliance with the License.
2656 * You may obtain a copy of the License at
2657 *
2658 *   http://www.apache.org/licenses/LICENSE-2.0
2659 *
2660 * Unless required by applicable law or agreed to in writing, software
2661 * distributed under the License is distributed on an "AS IS" BASIS,
2662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2663 * See the License for the specific language governing permissions and
2664 * limitations under the License.
2665 */class RD{constructor(){this.Rs=!1,this.Vs=!1,this.fs=100,this.gs=(function(){return rR()?8:Zk(Vt())>0?6:4})()}initialize(e,n){this.ps=e,this.indexManager=n,this.Rs=!0}getDocumentsMatchingQuery(e,n,s,r){const i={result:null};return this.ys(e,n).next((o=>{i.result=o})).next((()=>{if(!i.result)return this.ws(e,n,r,s).next((o=>{i.result=o}))})).next((()=>{if(i.result)return;const o=new bD;return this.Ss(e,n,o).next((c=>{if(i.result=c,this.Vs)return this.bs(e,n,o,c.size)}))})).next((()=>i.result))}bs(e,n,s,r){return s.documentReadCount<this.fs?(Hr()<=Te.DEBUG&&ee("QueryEngine","SDK will not create cache indexes for query:",Wr(n),"since it only creates cache indexes for collection contains","more than or equal to",this.fs,"documents"),L.resolve()):(Hr()<=Te.DEBUG&&ee("QueryEngine","Query:",Wr(n),"scans",s.documentReadCount,"local documents and returns",r,"documents as results."),s.documentReadCount>this.gs*r?(Hr()<=Te.DEBUG&&ee("QueryEngine","The SDK decides to create cache indexes for query:",Wr(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,On(n))):L.resolve())}ys(e,n){if(Im(n))return L.resolve(null);let s=On(n);return this.indexManager.getIndexType(e,s).next((r=>r===0?null:(n.limit!==null&&r===1&&(n=Ju(n,null,"F"),s=On(n)),this.indexManager.getDocumentsMatchingTarget(e,s).next((i=>{const o=Se(...i);return this.ps.getDocuments(e,o).next((c=>this.indexManager.getMinOffset(e,s).next((l=>{const h=this.Ds(n,c);return this.Cs(n,h,o,l.readTime)?this.ys(e,Ju(n,null,"F")):this.vs(e,h,n,l)}))))})))))}ws(e,n,s,r){return Im(n)||r.isEqual(me.min())?L.resolve(null):this.ps.getDocuments(e,s).next((i=>{const o=this.Ds(n,i);return this.Cs(n,o,s,r)?L.resolve(null):(Hr()<=Te.DEBUG&&ee("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),Wr(n)),this.vs(e,o,n,Gk(r,No)).next((c=>c)))}))}Ds(e,n){let s=new ft(Z0(e));
2665return n.forEach(((r,i)=>{hl(e,i)&&(s=s.add(i))})),s}Cs(e,n,s,r){if(e.limit===null)return!1;if(s.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}Ss(e,n,s){return Hr()<=Te.DEBUG&&ee("QueryEngine","Using full collection scan to execute query:",Wr(n)),this.ps.getDocumentsMatchingQuery(e,n,qs.min(),s)}vs(e,n,s,r){return this.ps.getDocumentsMatchingQuery(e,s,r).next((i=>(n.forEach((o=>{i=i.insert(o.key,o)})),i)))}}/**
2666 * @license
2667 * Copyright 2020 Google LLC
2668 *
2669 * Licensed under the Apache License, Version 2.0 (the "License");
2670 * you may not use this file except in compliance with the License.
2671 * You may obtain a copy of the License at
2672 *
2673 *   http://www.apache.org/licenses/LICENSE-2.0
2674 *
2675 * Unless required by applicable law or agreed to in writing, software
2676 * distributed under the License is distributed on an "AS IS" BASIS,
2677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2678 * See the License for the specific language governing permissions and
2679 * limitations under the License.
2680 */const Ad="LocalStore",CD=3e8;class PD{constructor(e,n,s,r){this.persistence=e,this.Fs=n,this.serializer=r,this.Ms=new tt(Ie),this.xs=new Pr((i=>md(i)),gd),this.Os=new Map,this.Ns=e.getRemoteDocumentCache(),this.Pi=e.getTargetCache(),this.Ii=e.getBundleCache(),this.Bs(s)}Bs(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new _D(this.Ns,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Ns.setIndexManager(this.indexManager),this.Fs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(n=>e.collect(n,this.Ms)))}}function kD(t,e,n,s){return new PD(t,e,n,s)}async function Iv(t,e){const n=ge(t);return await n.persistence.runTransaction("Handle user change","readonly",(s=>{let r;
2680return n.mutationQueue.getAllMutationBatches(s).next((i=>(r=i,n.Bs(e),n.mutationQueue.getAllMutationBatches(s)))).next((i=>{const o=[],c=[];let l=Se();for(const h of r){o.push(h.batchId);for(const d of h.mutations)l=l.add(d.key)}for(const h of i){c.push(h.batchId);for(const d of h.mutations)l=l.add(d.key)}return n.localDocuments.getDocuments(s,l).next((h=>({Ls:h,removedBatchIds:o,addedBatchIds:c})))}))}))}function MD(t,e){const n=ge(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(s=>{const r=e.batch.keys(),i=n.Ns.newChangeBuffer({trackRemovals:!0});return(function(c,l,h,d){const p=h.batch,m=p.keys();let v=L.resolve();return m.forEach((P=>{v=v.next((()=>d.getEntry(l,P))).next((M=>{const O=h.docVersions.get(P);Fe(O!==null,48541),M.version.compareTo(O)<0&&(p.applyToRemoteDocument(M,h),M.isValidDocument()&&(M.setReadTime(h.commitVersion),d.addEntry(M)))}))})),v.next((()=>c.mutationQueue.removeMutationBatch(l,p)))})(n,s,e,i).next((()=>i.apply(s))).next((()=>n.mutationQueue.performConsistencyCheck(s))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(s,r,e.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,(function(c){let l=Se();for(let h=0;h<c.mutationResults.length;++h)c.mutationResults[h].transformResults.length>0&&(l=l.add(c.batch.mutations[h].key));return l})(e)))).next((()=>n.localDocuments.getDocuments(s,r)))}))}function Sv(t){const e=ge(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(n=>e.Pi.getLastRemoteSnapshotVersion(n)))}function DD(t,e){const n=ge(t),s=e.snapshotVersion;let r=n.Ms;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(i=>{const o=n.Ns.newChangeBuffer({trackRemovals:!0});r=n.Ms;const c=[];
2680e.targetChanges.forEach(((d,p)=>{const m=r.get(p);if(!m)return;c.push(n.Pi.removeMatchingKeys(i,d.removedDocuments,p).next((()=>n.Pi.addMatchingKeys(i,d.addedDocuments,p))));let v=m.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(p)!==null?v=v.withResumeToken(St.EMPTY_BYTE_STRING,me.min()).withLastLimboFreeSnapshotVersion(me.min()):d.resumeToken.approximateByteSize()>0&&(v=v.withResumeToken(d.resumeToken,s)),r=r.insert(p,v),(function(M,O,$){return M.resumeToken.approximateByteSize()===0||O.snapshotVersion.toMicroseconds()-M.snapshotVersion.toMicroseconds()>=CD?!0:$.addedDocuments.size+$.modifiedDocuments.size+$.removedDocuments.size>0})(m,v,d)&&c.push(n.Pi.updateTargetData(i,v))}));let l=ds(),h=Se();if(e.documentUpdates.forEach((d=>{e.resolvedLimboDocuments.has(d)&&c.push(n.persistence.referenceDelegate.updateLimboDocument(i,d))})),c.push(ND(i,o,e.documentUpdates).next((d=>{l=d.ks,h=d.qs}))),!s.isEqual(me.min())){const d=n.Pi.getLastRemoteSnapshotVersion(i).next((p=>n.Pi.setTargetsMetadata(i,i.currentSequenceNumber,s)));c.push(d)}return L.waitFor(c).next((()=>o.apply(i))).next((()=>n.localDocuments.getLocalViewOfDocuments(i,l,h))).next((()=>l))})).then((i=>(n.Ms=r,i)))}function ND(t,e,n){let s=Se(),r=Se();return n.forEach((i=>s=s.add(i))),e.getEntries(t,s).next((i=>{let o=ds();return n.forEach(((c,l)=>{const h=i.get(c);l.isFoundDocument()!==h.isFoundDocument()&&(r=r.add(c)),l.isNoDocument()&&l.version.isEqual(me.min())?(e.removeEntry(c,l.readTime),o=o.insert(c,l)):!h.isValidDocument()||l.version.compareTo(h.version)>0||l.version.compareTo(h.version)===0&&h.hasPendingWrites?(e.addEntry(l),o=o.insert(c,l)):ee(Ad,"Ignoring outdated watch update for ",c,". Current version:",h.version," Watch version:",l.version)})),{ks:o,qs:r}}))}function OD(t,e){const n=ge(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(s=>(e===void 0&&(e=dd),n.mutationQueue.getNextMutationBatchAfterBatchId(s,e))))}function xD(t,e){const n=ge(t);return n.persistence.runTransaction("Allocate target","readwrite",(s=>{let r;return n.Pi.getTargetData(s,e).next((i=>i?(r=i,L.resolve(r)):n.Pi.allocateTargetId(s).next((o=>(r=new Os(e,o,"TargetPurposeListen",s.currentSequenceNumber),n.Pi.addTargetData(s,r).next((()=>r)))))))})).then((s=>{const r=n.Ms.get(s.targetId);return(r===null||s.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Ms=n.Ms.insert(s.targetId,s),n.xs.set(e,s.targetId)),s}))}async function nh(t,e,n){const s=ge(t),r=s.Ms.get(e),i=n?"readwrite":"readwrite-primary";try{n||await s.persistence.runTransaction("Release target",i,(o=>s.persistence.referenceDelegate.removeTarget(o,r)))}catch(o){if(!Ri(o))throw o;ee(Ad,`Failed to update sequence numbers for target ${e}: ${o}`)}s.Ms=s.Ms.remove(e),s.xs.delete(r.target)}function Vm(t,e,n){const s=ge(t);let r=me.min(),i=Se();return s.persistence.runTransaction("Execute query","readwrite",(o=>(function(l,h,d){const p=ge(l),m=p.xs.get(d);return m!==void 0?L.resolve(p.Ms.get(m)):p.Pi.getTargetData(h,d)})(s,o,On(e)).next((c=>{if(c)return r=c.lastLimboFreeSnapshotVersion,s.Pi.getMatchingKeysForTargetId(o,c.targetId).next((l=>{i=l}))})).next((()=>s.Fs.getDocumentsMatchingQuery(o,e,n?r:me.min(),n?i:Se()))).next((c=>(VD(s,wM(e),c),{documents:c,Qs:i})))))}function VD(t,e,n){let s=t.Os.get(e)||me.min();n.forEach(((r,i)=>{i.readTime.compareTo(s)>0&&(s=i.readTime)})),t.Os.set(e,s)}class Lm{constructor(){this.activeTargetIds=bM()}zs(e){this.activeTargetIds=this.activeTargetIds.add(e)}js(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Gs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class LD{constructor(){this.Mo=new Lm,this.xo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,s){}addLocalQueryTarget(e,n=!0){return n&&this.Mo.zs(e),this.xo[e]||"not-current"}updateQueryState(e,n,s){this.xo[e]=n}removeLocalQueryTarget(e){this.Mo.js(e)}isLocalQueryTarget(e){return this.Mo.activeTargetIds.has(e)}clearQueryState(e){delete this.xo[e]}getAllActiveQueryTargets(){return this.Mo.activeTargetIds}isActiveQueryTarget(e){return this.Mo.activeTargetIds.has(e)}start(){return this.Mo=new Lm,Promise.resolve()}handleUserChange(e,n,s){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/**
2681 * @license
2682 * Copyright 2019 Google LLC
2683 *
2684 * Licensed under the Apache License, Version 2.0 (the "License");
2685 * you may not use this file except in compliance with the License.
2686 * You may obtain a copy of the License at
2687 *
2688 *   http://www.apache.org/licenses/LICENSE-2.0
2689 *
2690 * Unless required by applicable law or agreed to in writing, software
2691 * distributed under the License is distributed on an "AS IS" BASIS,
2692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2693 * See the License for the specific language governing permissions and
2694 * limitations under the License.
2695 */class FD{Oo(e){}shutdown(){}}/**
2696 * @license
2697 * Copyright 2019 Google LLC
2698 *
2699 * Licensed under the Apache License, Version 2.0 (the "License");
2700 * you may not use this file except in compliance with the License.
2701 * You may obtain a copy of the License at
2702 *
2703 *   http://www.apache.org/licenses/LICENSE-2.0
2704 *
2705 * Unless required by applicable law or agreed to in writing, software
2706 * distributed under the License is distributed on an "AS IS" BASIS,
2707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2708 * See the License for the specific language governing permissions and
2709 * limitations under the License.
2710 */const Fm="ConnectivityMonitor";class Um{constructor(){this.No=()=>this.Bo(),this.Lo=()=>this.ko(),this.qo=[],this.Qo()}Oo(e){this.qo.push(e)}shutdown(){window.removeEventListener("online",this.No),window.removeEventListener("offline",this.Lo)}Qo(){window.addEventListener("online",this.No),window.addEventListener("offline",this.Lo)}Bo(){ee(Fm,"Network connectivity changed: AVAILABLE");for(const e of this.qo)e(0)}ko(){ee(Fm,"Network connectivity changed: UNAVAILABLE");for(const e of this.qo)e(1)}static v(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/**
2711 * @license
2712 * Copyright 2023 Google LLC
2713 *
2714 * Licensed under the Apache License, Version 2.0 (the "License");
2715 * you may not use this file except in compliance with the License.
2716 * You may obtain a copy of the License at
2717 *
2718 *   http://www.apache.org/licenses/LICENSE-2.0
2719 *
2720 * Unless required by applicable law or agreed to in writing, software
2721 * distributed under the License is distributed on an "AS IS" BASIS,
2722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2723 * See the License for the specific language governing permissions and
2724 * limitations under the License.
2725 */let Oa=null;function sh(){return Oa===null?Oa=(function(){return 268435456+Math.round(2147483648*Math.random())})():Oa++,"0x"+Oa.toString(16)}/**
2726 * @license
2727 * Copyright 2020 Google LLC
2728 *
2729 * Licensed under the Apache License, Version 2.0 (the "License");
2730 * you may not use this file except in compliance with the License.
2731 * You may obtain a copy of the License at
2732 *
2733 *   http://www.apache.org/licenses/LICENSE-2.0
2734 *
2735 * Unless required by applicable law or agreed to in writing, software
2736 * distributed under the License is distributed on an "AS IS" BASIS,
2737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2738 * See the License for the specific language governing permissions and
2739 * limitations under the License.
2740 */const lu="RestConnection",UD={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class jD{get $o(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",s=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.Uo=n+"://"+e.host,this.Ko=`projects/${s}/databases/${r}`,this.Wo=this.databaseId.database===Ic?`project_id=${s}`:`project_id=${s}&database_id=${r}`}Go(e,n,s,r,i){const o=sh(),c=this.zo(e,n.toUriEncodedString());ee(lu,`Sending RPC '${e}' ${o}:`,c,s);const l={"google-cloud-resource-prefix":this.Ko,"x-goog-request-params":this.Wo};this.jo(l,r,i);const{host:h}=new URL(c),d=Ei(h);return this.Jo(e,c,l,s,d).then((p=>(ee(lu,`Received RPC '${e}' ${o}: `,p),p)),(p=>{throw ui(lu,`RPC '${e}' ${o} failed with error: `,p,"url: ",c,"request:",s),p}))}Ho(e,n,s,r,i,o){return this.Go(e,n,s,r,i)}jo(e,n,s){e["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+Ai})(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEac
vendor: 4,095 bytes, lines 2740-2770
2740h(((r,i)=>e[i]=r)),s&&s.headers.forEach(((r,i)=>e[i]=r))}zo(e,n){const s=UD[e];return`${this.Uo}/v1/${n}:${s}`}terminate(){}}/**
2741 * @license
2742 * Copyright 2017 Google LLC
2743 *
2744 * Licensed under the Apache License, Version 2.0 (the "License");
2745 * you may not use this file except in compliance with the License.
2746 * You may obtain a copy of the License at
2747 *
2748 *   http://www.apache.org/licenses/LICENSE-2.0
2749 *
2750 * Unless required by applicable law or agreed to in writing, software
2751 * distributed under the License is distributed on an "AS IS" BASIS,
2752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2753 * See the License for the specific language governing permissions and
2754 * limitations under the License.
2755 */class $D{constructor(e){this.Yo=e.Yo,this.Zo=e.Zo}Xo(e){this.e_=e}t_(e){this.n_=e}r_(e){this.i_=e}onMessage(e){this.s_=e}close(){this.Zo()}send(e){this.Yo(e)}o_(){this.e_()}__(){this.n_()}a_(e){this.i_(e)}u_(e){this.s_(e)}}/**
2756 * @license
2757 * Copyright 2017 Google LLC
2758 *
2759 * Licensed under the Apache License, Version 2.0 (the "License");
2760 * you may not use this file except in compliance with the License.
2761 * You may obtain a copy of the License at
2762 *
2763 *   http://www.apache.org/licenses/LICENSE-2.0
2764 *
2765 * Unless required by applicable law or agreed to in writing, software
2766 * distributed under the License is distributed on an "AS IS" BASIS,
2767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2768 * See the License for the specific language governing permissions and
2769 * limitations under the License.
2770 */const Ct="WebChannelConnection";class BD extends jD{constructor(e){super(e),this.c_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Jo(e,n,s,r,i){const o=sh();return new Promise(((c,l)=>{const h=new b0;h.setWithCredentials(!0),h.listenOnce(R0.COMPLETE,(()=>{try{switch(h.getLastErrorCode()){case qa.NO_ERROR:const p=h.getResponseJson();ee(Ct,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(p)),c(p);break;case qa.TIMEOUT:ee(Ct,`RPC '${e}' ${o} timed out`),l(new X(V.DEADLINE_EXCEEDED,"Request time out"));break;case qa.HTTP_ERROR:const m=h.getStatus();if(ee(Ct,`RPC '${e}' ${o} failed with status:`,m,"response text:",h.getResponseText()),m>0){let v=h.getResponseJson();Array.isArray(v)&&(v=v[0]);const P=v?.error;if(P&&P.status&&P.message){const M=(function($){const U=$.toLowerCase().replace(/_/g,"-");return Object.values(V).indexOf(U)>=0?U:V.UNKNOWN})(P.status);l(new X(M,P.message))}else l(new X(V.UNKNOWN,"Server responded with status "+h.getStatus()))}else l(new X(V.UNAVAILABLE,"Connection failed."));break;default:he(9055,{l_:e,streamId:o,h_:h.getLastErrorCode(),P_:h.getLastError()})}}finally{ee(Ct,`RPC '${e}' ${o} completed.`)}}));const d=JSON.stringify(r);ee(Ct,`RPC '${e}' ${o} sending request:`,r),h.send(n,"POST",d,s,15)}))}T_(e,n,s){const r=sh(),i=[this.Uo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=k0(),c=P0(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},h=this.longPollingOptions.timeoutSeconds;h!==void 0&&(l.longPollingTimeout=Math.round(1e3*h)),this.useFetchStreams&&(l.useFetchStreams=!0),this.jo(l.initMessageHeaders,n,s),l.encodeInitMessageHeaders=!0;const d=i.join("");ee(Ct,`Creating RPC '${e}' stream ${r}: ${d}`,l);const p=o.createWebChannel(d,l);this.I_(p);let m=!1,v=!1;const P=new $D({Yo:O=>{v?ee(Ct,`Not sending because RPC '${e}' stream ${r} is closed:`,O):(m||(ee(Ct,`Opening RPC '${e}' stream ${r} transport.`),p.open(),m=!0),ee(Ct,`RPC '${e}' stream ${r} sending:`,O),p.send(O))},Zo:()=>p.close()}),M=(O,$,U)=>{O.listen($,(H=>{try{U(H)}catch(q){setTimeout((()=>{throw q}),0)}}))};return M(p,Ji.EventType.OPEN,(()=>{v||(ee(Ct,`RPC '${e}' stream ${r}
2770 transport opened.`),P.o_())})),M(p,Ji.EventType.CLOSE,(()=>{v||(v=!0,ee(Ct,`RPC '${e}' stream ${r} transport closed`),P.a_(),this.E_(p))})),M(p,Ji.EventType.ERROR,(O=>{v||(v=!0,ui(Ct,`RPC '${e}' stream ${r} transport errored. Name:`,O.name,"Message:",O.message),P.a_(new X(V.UNAVAILABLE,"The operation could not be completed")))})),M(p,Ji.EventType.MESSAGE,(O=>{if(!v){const $=O.data[0];Fe(!!$,16349);const U=$,H=U?.error||U[0]?.error;if(H){ee(Ct,`RPC '${e}' stream ${r} received error:`,H);const q=H.status;let le=(function(_){const y=ot[_];if(y!==void 0)return hv(y)})(q),be=H.message;le===void 0&&(le=V.INTERNAL,be="Unknown error status: "+q+" with message "+H.message),v=!0,P.a_(new X(le,be)),p.close()}else ee(Ct,`RPC '${e}' stream ${r} received:`,$),P.u_($)}})),M(c,C0.STAT_EVENT,(O=>{O.stat===Wu.PROXY?ee(Ct,`RPC '${e}' stream ${r} detected buffering proxy`):O.stat===Wu.NOPROXY&&ee(Ct,`RPC '${e}' stream ${r} detected no buffering proxy`)})),setTimeout((()=>{P.__()}),0),P}terminate(){this.c_.forEach((e=>e.close())),this.c_=[]}I_(e){this.c_.push(e)}E_(e){this.c_=this.c_.filter((n=>n===e))}}function uu(){return typeof document<"u"?document:null}/**
2771 * @license
2772 * Copyright 2020 Google LLC
2773 *
2774 * Licensed under the Apache License, Version 2.0 (the "License");
2775 * you may not use this file except in compliance with the License.
2776 * You may obtain a copy of the License at
2777 *
2778 *   http://www.apache.org/licenses/LICENSE-2.0
2779 *
2780 * Unless required by applicable law or agreed to in writing, software
2781 * distributed under the License is distributed on an "AS IS" BASIS,
2782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2783 * See the License for the specific language governing permissions and
2784 * limitations under the License.
2785 */function ml(t){return new YM(t,!0)}/**
2786 * @license
2787 * Copyright 2017 Google LLC
2788 *
2789 * Licensed under the Apache License, Version 2.0 (the "License");
2790 * you may not use this file except in compliance with the License.
2791 * You may obtain a copy of the License at
2792 *
2793 *   http://www.apache.org/licenses/LICENSE-2.0
2794 *
2795 * Unless required by applicable law or agreed to in writing, software
2796 * distributed under the License is distributed on an "AS IS" BASIS,
2797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2798 * See the License for the specific language governing permissions and
2799 * limitations under the License.
2800 */class Av{constructor(e,n,s=1e3,r=1.5,i=6e4){this.Mi=e,this.timerId=n,this.d_=s,this.A_=r,this.R_=i,this.V_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.V_=0}g_(){this.V_=this.R_}p_(e){this.cancel();const n=Math.floor(this.V_+this.y_()),s=Math.max(0,Date.now()-this.f_),r=Math.max(0,n-s);r>0&&ee("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.V_} ms, delay with jitter: ${n} ms, last attempt: ${s} ms ago)`),this.m_=this.Mi.enqueueAfterDelay(this.timerId,r,(()=>(this.f_=Date.now(),e()))),this.V_*=this.A_,this.V_<this.d_&&(this.V_=this.d_),this.V_>this.R_&&(this.V_=this.R_)}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.V_}}/**
2801 * @license
2802 * Copyright 2017 Google LLC
2803 *
2804 * Licensed under the Apache License, Version 2.0 (the "License");
2805 * you may not use this file except in compliance with the License.
2806 * You may obtain a copy of the License at
2807 *
2808 *   http://www.apache.org/licenses/LICENSE-2.0
2809 *
2810 * Unless required by applicable law or agreed to in writing, software
2811 * distributed under the License is distributed on an "AS IS" BASIS,
2812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2813 * See the License for the specific language governing permissions and
2814 * limitations under the License.
2815 */const jm="PersistentStream";class bv{constructor(e,n,s,r,i,o,c,l){this.Mi=e,this.S_=s,this.b_=r,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=c,this.listener=l,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new Av(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.Mi.enqueueAfterDelay(this.S_,6e4,(()=>this.k_())))}q_(e){this.Q_(),this.stream.send(e)}
vendor: 4,259 bytes, lines 2815-2830
2815async 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===V.RESOURCE_EXHAUSTED?(hs(n.toString()),hs("Using maximum backoff delay to prevent overloading the backend."),this.M_.g_()):n&&n.code===V.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.K_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.r_(n)}K_(){}auth(){this.state=1;const e=this.W_(this.D_),n=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([s,r])=>{this.D_===n&&this.G_(s,r)}),(s=>{e((()=>{const r=new X(V.UNKNOWN,"Fetching auth token failed: "+s.message);return this.z_(r)}))}))}G_(e,n){const s=this.W_(this.D_);this.stream=this.j_(e,n),this.stream.Xo((()=>{s((()=>this.listener.Xo()))})),this.stream.t_((()=>{s((()=>(this.state=2,this.v_=this.Mi.enqueueAfterDelay(this.b_,1e4,(()=>(this.O_()&&(this.state=3),Promise.resolve()))),this.listener.t_())))})),this.stream.r_((r=>{s((()=>this.z_(r)))})),this.stream.onMessage((r=>{s((()=>++this.F_==1?this.J_(r):this.onNext(r)))}))}N_(){this.state=5,this.M_.p_((async()=>{this.state=0,this.start()}))}z_(e){return ee(jm,`close with error: ${e}`),this.stream=null,this.close(4,e)}W_(e){return n=>{this.Mi.enqueueAndForget((()=>this.D_===e?n():(ee(jm,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class HD extends bv{constructor(e,n,s,r,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,s,r,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=KM(this.serializer,e),s=(function(i){if(!("targetChange"in i))return me.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?me.min():o.readTime?xn(o.readTime):me.min()})(e);return this.listener.H_(n,s)}Y_(e){const n={};n.database=th(this.serializer),n.addTarget=(function(i,o){let c;const l=o.target;if(c=Ku(l)?{documents:XM(i,l)}:{query:ZM(i,l).ft},c.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){c.resumeToken=pv(i,o.resumeToken);const h=Xu(i,o.expectedCount);h!==null&&(c.expectedCount=h)}else if(o.snapshotVersion.compareTo(me.min())>0){c.readTime=Rc(i,o.snapshotVersion.toTimestamp());const h=Xu(i,o.expectedCount);h!==null&&(c.expectedCount=h)}return c})(this.serializer,e);const s=tD(this.serializer,e);s&&(n.labels=s),this.q_(n)}Z_(e){const n={};n.database=th(this.serializer),n.removeTarget=e,this.q_(n)}}class WD extends bv{constructor(e,n,s,r,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,s,r,o),this.serializer=i}get X_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}K_(){this.X_&&this.ea([])}j_(e,n){return this.connection.T_("Write",e,n)}J_(e){return Fe(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,Fe(!e.writeResults||e.writeResults.length===0,55816),this.listener.ta()}onNext(e){Fe(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();const n=JM(e.writeResults,e.commitTime),s=xn(e.commitTime);return this.listener.na(s,n)}ra(){const e={};e.database=th(this.serializer),this.q_(e)}ea(e){const n={streamToken:this.lastStreamToken,writes:e.map((s=>QM(this.serializer,s)))};this.q_(n)}}/**
2816 * @license
2817 * Copyright 2017 Google LLC
2818 *
2819 * Licensed under the Apache License, Version 2.0 (the "License");
2820 * you may not use this file except in compliance with the License.
2821 * You may obtain a copy of the License at
2822 *
2823 *   http://www.apache.org/licenses/LICENSE-2.0
2824 *
2825 * Unless required by applicable law or agreed to in writing, software
2826 * distributed under the License is distributed on an "AS IS" BASIS,
2827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2828 * See the License for the specific language governing permissions and
2829 * limitations under the License.
2830 */class zD{}class YD extends zD{constructor(e,n,s,r){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=s,this.serializer
2830=r,this.ia=!1}sa(){if(this.ia)throw new X(V.FAILED_PRECONDITION,"The client has already been terminated.")}Go(e,n,s,r){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,o])=>this.connection.Go(e,Zu(n,s),r,i,o))).catch((i=>{throw i.name==="FirebaseError"?(i.code===V.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new X(V.UNKNOWN,i.toString())}))}Ho(e,n,s,r,i){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([o,c])=>this.connection.Ho(e,Zu(n,s),r,o,c,i))).catch((o=>{throw o.name==="FirebaseError"?(o.code===V.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new X(V.UNKNOWN,o.toString())}))}terminate(){this.ia=!0,this.connection.terminate()}}class qD{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}
2831This 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?(hs(n),this.aa=!1):ee("OnlineStateTracker",n)}Pa(){this._a!==null&&(this._a.cancel(),this._a=null)}}/**
2832 * @license
2833 * Copyright 2017 Google LLC
2834 *
2835 * Licensed under the Apache License, Version 2.0 (the "License");
2836 * you may not use this file except in compliance with the License.
2837 * You may obtain a copy of the License at
2838 *
2839 *   http://www.apache.org/licenses/LICENSE-2.0
2840 *
2841 * Unless required by applicable law or agreed to in writing, software
2842 * distributed under the License is distributed on an "AS IS" BASIS,
2843 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2844 * See the License for the specific language governing permissions and
2845 * limitations under the License.
2846 */const Sr="RemoteStore";class GD{constructor(e,n,s,r,i){this.localStore=e,this.datastore=n,this.asyncQueue=s,this.remoteSyncer={},this.Ta=[],this.Ia=new Map,this.Ea=new Set,this.da=[],this.Aa=i,this.Aa.Oo((o=>{s.enqueueAndForget((async()=>{Mr(this)&&(ee(Sr,"Restarting streams for network reachability change."),await(async function(l){const h=ge(l);h.Ea.add(4),await oa(h),h.Ra.set("Unknown"),h.Ea.delete(4),await gl(h)})(this))}))})),this.Ra=new qD(s,r)}}async function gl(t){if(Mr(t))for(const e of t.da)await e(!0)}async function oa(t){for(const e of t.da)await e(!1)}function Rv(t,e){const n=ge(t);n.Ia.has(e.targetId)||(n.Ia.set(e.targetId,e),Pd(n)?Cd(n):Pi(n).O_()&&Rd(n,e))}function bd(t,e){const n=ge(t),s=Pi(n);n.Ia.delete(e),s.O_()&&Cv(n,e),n.Ia.size===0&&(s.O_()?s.L_():Mr(n)&&n.Ra.set("Unknown"))}function Rd(t,e){if(t.Va.Ue(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(me.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Pi(t).Y_(e)}function Cv(t,e){t.Va.Ue(e),Pi(t).Z_(e)}function Cd(t){t.Va=new BM({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),At:e=>t.Ia.get(e)||null,ht:()=>t.datastore.serializer.databaseId}),Pi(t).start(),t.Ra.ua()}function Pd(t){return Mr(t)&&!Pi(t).x_()&&t.Ia.size>0}function Mr(t){return ge(t).Ea.size===0}function Pv(t){t.Va=void 0}async function KD(t){t.Ra.set("Online")}async function QD(t){t.Ia.forEach(((e,n)=>{Rd(t,e)}))}async function JD(t,e){Pv(t),Pd(t)?(t.Ra.ha(e),Cd(t)):t.Ra.set("Unknown")}async function XD(t,e,n){if(t.Ra.set("Online"),e instanceof fv&&e.state===2&&e.cause)try{await(async function(r,i){const o=i.cause;for(const c of i.targetIds)r.Ia.has(c)&&(await r.remoteSyncer.rejectListen(c,o),r.Ia.delete(c),r.Va.removeTarget(c))})(t,e)}catch(s){ee(Sr,"Failed to remove targets %s: %s ",e.targetIds.join(","),s),await Pc(t,s)}else if(e instanceof Ja?t.Va.Ze(e):e instanceof dv?t.Va.st(e):t.Va.tt(e),!n.isEqual(me.min()))try{const s=await Sv(t.localStore);n.compareTo(s)>=0&&await(function(i,o){const c=i.Va.Tt(o);
vendor: 4,229 bytes, lines 2846-2861
2846return c.targetChanges.forEach(((l,h)=>{if(l.resumeToken.approximateByteSize()>0){const d=i.Ia.get(h);d&&i.Ia.set(h,d.withResumeToken(l.resumeToken,o))}})),c.targetMismatches.forEach(((l,h)=>{const d=i.Ia.get(l);if(!d)return;i.Ia.set(l,d.withResumeToken(St.EMPTY_BYTE_STRING,d.snapshotVersion)),Cv(i,l);const p=new Os(d.target,l,h,d.sequenceNumber);Rd(i,p)})),i.remoteSyncer.applyRemoteEvent(c)})(t,n)}catch(s){ee(Sr,"Failed to raise snapshot:",s),await Pc(t,s)}}async function Pc(t,e,n){if(!Ri(e))throw e;t.Ea.add(1),await oa(t),t.Ra.set("Offline"),n||(n=()=>Sv(t.localStore)),t.asyncQueue.enqueueRetryable((async()=>{ee(Sr,"Retrying IndexedDB access"),await n(),t.Ea.delete(1),await gl(t)}))}function kv(t,e){return e().catch((n=>Pc(t,n,e)))}async function _l(t){const e=ge(t),n=Js(e);let s=e.Ta.length>0?e.Ta[e.Ta.length-1].batchId:dd;for(;ZD(e);)try{const r=await OD(e.localStore,s);if(r===null){e.Ta.length===0&&n.L_();break}s=r.batchId,e2(e,r)}catch(r){await Pc(e,r)}Mv(e)&&Dv(e)}function ZD(t){return Mr(t)&&t.Ta.length<10}function e2(t,e){t.Ta.push(e);const n=Js(t);n.O_()&&n.X_&&n.ea(e.mutations)}function Mv(t){return Mr(t)&&!Js(t).x_()&&t.Ta.length>0}function Dv(t){Js(t).start()}async function t2(t){Js(t).ra()}async function n2(t){const e=Js(t);for(const n of t.Ta)e.ea(n.mutations)}async function s2(t,e,n){const s=t.Ta.shift(),r=vd.from(s,e,n);await kv(t,(()=>t.remoteSyncer.applySuccessfulWrite(r))),await _l(t)}async function r2(t,e){e&&Js(t).X_&&await(async function(s,r){if((function(o){return UM(o)&&o!==V.ABORTED})(r.code)){const i=s.Ta.shift();Js(s).B_(),await kv(s,(()=>s.remoteSyncer.rejectFailedWrite(i.batchId,r))),await _l(s)}})(t,e),Mv(t)&&Dv(t)}async function $m(t,e){const n=ge(t);n.asyncQueue.verifyOperationInProgress(),ee(Sr,"RemoteStore received new credentials");const s=Mr(n);n.Ea.add(3),await oa(n),s&&n.Ra.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.Ea.delete(3),await gl(n)}async function i2(t,e){const n=ge(t);e?(n.Ea.delete(2),await gl(n)):e||(n.Ea.add(2),await oa(n),n.Ra.set("Unknown"))}function Pi(t){return t.ma||(t.ma=(function(n,s,r){const i=ge(n);return i.sa(),new HD(s,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,r)})(t.datastore,t.asyncQueue,{Xo:KD.bind(null,t),t_:QD.bind(null,t),r_:JD.bind(null,t),H_:XD.bind(null,t)}),t.da.push((async e=>{e?(t.ma.B_(),Pd(t)?Cd(t):t.Ra.set("Unknown")):(await t.ma.stop(),Pv(t))}))),t.ma}function Js(t){return t.fa||(t.fa=(function(n,s,r){const i=ge(n);return i.sa(),new WD(s,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,r)})(t.datastore,t.asyncQueue,{Xo:()=>Promise.resolve(),t_:t2.bind(null,t),r_:r2.bind(null,t),ta:n2.bind(null,t),na:s2.bind(null,t)}),t.da.push((async e=>{e?(t.fa.B_(),await _l(t)):(await t.fa.stop(),t.Ta.length>0&&(ee(Sr,`Stopping write stream with ${t.Ta.length} pending writes`),t.Ta=[]))}))),t.fa}/**
2847 * @license
2848 * Copyright 2017 Google LLC
2849 *
2850 * Licensed under the Apache License, Version 2.0 (the "License");
2851 * you may not use this file except in compliance with the License.
2852 * You may obtain a copy of the License at
2853 *
2854 *   http://www.apache.org/licenses/LICENSE-2.0
2855 *
2856 * Unless required by applicable law or agreed to in writing, software
2857 * distributed under the License is distributed on an "AS IS" BASIS,
2858 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2859 * See the License for the specific language governing permissions and
2860 * limitations under the License.
2861 */class kd{constructor(e,n,s,r,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=s,this.op=r,this.removalCallback=i,this.deferred=new Hs,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,s,r,i){const o=Date.now()+s,c=new kd(e,n,o,r,i);return c.start(s),c}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new X(V.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((e=>
2861this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Md(t,e){if(hs("AsyncQueue",`${e}: ${t}`),Ri(t))return new X(V.UNAVAILABLE,`${e}: ${t}`);throw t}/**
2862 * @license
2863 * Copyright 2017 Google LLC
2864 *
2865 * Licensed under the Apache License, Version 2.0 (the "License");
2866 * you may not use this file except in compliance with the License.
2867 * You may obtain a copy of the License at
2868 *
2869 *   http://www.apache.org/licenses/LICENSE-2.0
2870 *
2871 * Unless required by applicable law or agreed to in writing, software
2872 * distributed under the License is distributed on an "AS IS" BASIS,
2873 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2874 * See the License for the specific language governing permissions and
2875 * limitations under the License.
2876 */class oi{static emptySet(e){return new oi(e.comparator)}constructor(e){this.comparator=e?(n,s)=>e(n,s)||re.comparator(n.key,s.key):(n,s)=>re.comparator(n.key,s.key),this.keyedMap=Xi(),this.sortedSet=new tt(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,s)=>(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 oi)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),s=e.sortedSet.getIterator();for(;n.hasNext();){const r=n.getNext().key,i=s.getNext().key;if(!r.isEqual(i))return!1}return!0}toString(){const e=[];return this.forEach((n=>{e.push(n.toString())})),e.length===0?"DocumentSet ()":`DocumentSet (
2877  `+e.join(`  
2878`)+`
2879)`}copy(e,n){const s=new oi;return s.comparator=this.comparator,s.keyedMap=e,s.sortedSet=n,s}}/**
2880 * @license
2881 * Copyright 2017 Google LLC
2882 *
2883 * Licensed under the Apache License, Version 2.0 (the "License");
2884 * you may not use this file except in compliance with the License.
2885 * You may obtain a copy of the License at
2886 *
2887 *   http://www.apache.org/licenses/LICENSE-2.0
2888 *
2889 * Unless required by applicable law or agreed to in writing, software
2890 * distributed under the License is distributed on an "AS IS" BASIS,
2891 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2892 * See the License for the specific language governing permissions and
2893 * limitations under the License.
2894 */class Bm{constructor(){this.ga=new tt(re.comparator)}track(e){const n=e.doc.key,s=this.ga.get(n);s?e.type!==0&&s.type===3?this.ga=this.ga.insert(n,e):e.type===3&&s.type!==1?this.ga=this.ga.insert(n,{type:s.type,doc:e.doc}):e.type===2&&s.type===2?this.ga=this.ga.insert(n,{type:2,doc:e.doc}):e.type===2&&s.type===0?this.ga=this.ga.insert(n,{type:0,doc:e.doc}):e.type===1&&s.type===0?this.ga=this.ga.remove(n):e.type===1&&s.type===2?this.ga=this.ga.insert(n,{type:1,doc:s.doc}):e.type===0&&s.type===1?this.ga=this.ga.insert(n,{type:2,doc:e.doc}):he(63341,{Rt:e,pa:s}):this.ga=this.ga.insert(n,e)}ya(){const e=[];return this.ga.inorderTraversal(((n,s)=>{e.push(s)})),e}}class mi{constructor(e,n,s,r,i,o,c,l,h){this.query=e,this.docs=n,this.oldDocs=s,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=c,this.excludesMetadataChanges=l,this.hasCachedResults=h}static fromInitialDocuments(e,n,s,r,i){const o=[];return n.forEach((c=>{o.push({type:0,doc:c})})),new mi(e,n,oi.emptySet(n),o,s,r,!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)&&ul(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,s=e.docChanges;if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++)if(n[r].type!==s[r].type||!n[r].doc.isEqual(s[r].doc))return!1;return!0}}/**
2895 * @license
2896 * Copyright 2017 Google LLC
2897 *
2898 * Licensed under the Apache License, Version 2.0 (the "License");
2899 * you may not use this file except in compliance with the License.
2900 * You may obtain a copy of the License at
2901 *
2902 *   http://www.apache.org/licenses/LICENSE-2.0
2903 *
2904 * Unless required by applicable law or agreed to in writing, software
2905 * distributed under the License is distributed on an "AS IS" BASIS,
2906 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2907 * See the License for the specific language governing permissions and
2908 * limitations under the License.
2909 */class o2{constructor(){this.wa=void 0,this.Sa=[]}ba(){return this.Sa.some((e=>e.Da()))}}class a2{constructor(){this.queries=Hm(),this.onlineState="Unknown",this.Ca=new Set}terminate(){(function(n,s){const r=ge(n),i=r.queries;r.queries=Hm(),i.forEach(((o,c)=>{for(const l of c.Sa)l.onError(s)}))})(this,new X(V.ABORTED,"Firestore shutting down"))}}function Hm(){return new Pr((t=>X0(t)),ul)}async function Nv(t,e){const n=ge(t);let s=3;const r=e.query;let i=n.queries.get(r);i?!i.ba()&&e.Da()&&(s=2):(i=new o2,s=e.Da()?0:1);try{switch(s){case 0:i.wa=await n.onListen(r,!0);break;case 1:i.wa=await n.onListen(r,!1);break;case 2:await n.onFirstRemoteStoreListen(r)}}catch(o){const c=Md(o,`Initialization of query '${Wr(e.query)}' failed`);return void e.onError(c)}n.queries.set(r,i),i.Sa.push(e),e.va(n.onlineState),i.wa&&e.Fa(i.wa)&&Dd(n)}async function Ov(t,e){const n=ge(t),s=e.query;let r=3;const i=n.queries.get(s);if(i){const o=i.Sa.indexOf(e);o>=0&&(i.Sa.splice(o,1),i.Sa.length===0?r=e.Da()?0:1:!i.ba()&&e.Da()&&(r=2))}switch(r){case 0:return n.queries.delete(s),n.onUnlisten(s,!0);case 1:return n.queries.delete(s),n.onUnlisten(s,!1);case 2:return n.onLastRemoteStoreUnlisten(s);default:return}}function c2(t,e){const n=ge(t);let s=!1;for(const r of e){const i=r.query,o=n.queries.get(i);if(o){for(const c of o.Sa)c.Fa(r)&&(s=!0);o.wa=r}}s&&Dd(n)}function l2(t,e,n){const s=ge(t),r=s.queries.get(e);if(r)for(const i of r.Sa)i.onError(n);s.queries.delete(e)}function Dd(t){t.Ca.forEach((e=>{e.next()}))}var rh,Wm;(Wm=rh||(rh={})).Ma="default",Wm.Cache="cache";class xv{constructor(e,n,s){this.query=e,this.xa=n,this.Oa=!1,this.Na=null,this.onlineState="Unknown",this.options=s||{}}Fa(e){if(!this.options.includeMetadataChanges){const s=[];for(const r of e.docChanges)r.type!==3&&s.push(r);e=new mi(e.query,e.docs,e.oldDocs,s,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.Oa?this.Ba(e)&&(this.xa.next(e),n=!0):this.La(e,this.onlineState)&&(this.ka(e),n=!0),this.Na=e,n}onError(e){this.xa.error(e)}va(e){this.onlineState=e;let n=!1;return this.Na&&!this.Oa&&this.La(this.Na,e)&&(this.ka(this.Na),n=!0),n}La(e,n){if(!e.fromCache||!this.Da())return!0;const s=n!=="Offline";return(!this.options.qa||!s)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}Ba(e){if(e.docChanges.length>0)return!0;const n=this.Na&&this.Na.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}ka(e){e=mi.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Oa=!0,this.xa.next(e)}Da(){return this.options.source!==rh.Cache}}/**
2910 * @license
2911 * Copyright 2017 Google LLC
2912 *
2913 * Licensed under the Apache License, Version 2.0 (the "License");
2914 * you may not use this file except in compliance with the License.
2915 * You may obtain a copy of the License at
2916 *
2917 *   http://www.apache.org/licenses/LICENSE-2.0
2918 *
2919 * Unless required by applicable law or agreed to in writing, software
2920 * distributed under the License is distributed on an "AS IS" BASIS,
2921 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2922 * See the License for the specific language governing permissions and
2923 * limitations under the License.
2924 */class Vv{constructor(e){this.key=e}}class Lv{constructor(e){this.key=e}}class u2{constructor(e,n){this.query=e,this.Ya=n,this.Za=null,this.hasCachedResults=!1,this.current=!1,this.Xa=Se(),this.mutatedKeys=Se(),this.eu=Z0(e),this.tu=new oi(this.eu)}get nu(){return this.Ya}ru(e,n){const s=n?n.iu:new Bm,r=n?n.tu:this.tu;let i=n?n.mutatedKeys:this.mutatedKeys,o=r,c=!1;const l=this.query.limitType==="F"&&r.size===this.query.limit?r.last():null,h=this.query.limitType==="L"&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal(((d,p)=>{const m=r.get(d),v=hl(this.query,p)?p:null,P=!!m&&this.mutatedKeys.has(m.ke
2924y),M=!!v&&(v.hasLocalMutations||this.mutatedKeys.has(v.key)&&v.hasCommittedMutations);let O=!1;m&&v?m.data.isEqual(v.data)?P!==M&&(s.track({type:3,doc:v}),O=!0):this.su(m,v)||(s.track({type:2,doc:v}),O=!0,(l&&this.eu(v,l)>0||h&&this.eu(v,h)<0)&&(c=!0)):!m&&v?(s.track({type:0,doc:v}),O=!0):m&&!v&&(s.track({type:1,doc:m}),O=!0,(l||h)&&(c=!0)),O&&(v?(o=o.add(v),i=M?i.add(d):i.delete(d)):(o=o.delete(d),i=i.delete(d)))})),this.query.limit!==null)for(;o.size>this.query.limit;){const d=this.query.limitType==="F"?o.last():o.first();o=o.delete(d.key),i=i.delete(d.key),s.track({type:1,doc:d})}return{tu:o,iu:s,Cs:c,mutatedKeys:i}}su(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,s,r){const i=this.tu;this.tu=e.tu,this.mutatedKeys=e.mutatedKeys;const o=e.iu.ya();o.sort(((d,p)=>(function(v,P){const M=O=>{switch(O){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return he(20277,{Rt:O})}};return M(v)-M(P)})(d.type,p.type)||this.eu(d.doc,p.doc))),this.ou(s),r=r??!1;const c=n&&!r?this._u():[],l=this.Xa.size===0&&this.current&&!r?1:0,h=l!==this.Za;return this.Za=l,o.length!==0||h?{snapshot:new mi(this.query,e.tu,i,o,e.mutatedKeys,l===0,h,!1,!!s&&s.resumeToken.approximateByteSize()>0),au:c}:{au:c}}va(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({tu:this.tu,iu:new Bm,mutatedKeys:this.mutatedKeys,Cs:!1},!1)):{au:[]}}uu(e){return!this.Ya.has(e)&&!!this.tu.has(e)&&!this.tu.get(e).hasLocalMutations}ou(e){e&&(e.addedDocuments.forEach((n=>this.Ya=this.Ya.add(n))),e.modifiedDocuments.forEach((n=>{})),e.removedDocuments.forEach((n=>this.Ya=this.Ya.delete(n))),this.current=e.current)}_u(){if(!this.current)return[];const e=this.Xa;this.Xa=Se(),this.tu.forEach((s=>{this.uu(s.key)&&(this.Xa=this.Xa.add(s.key))}));const n=[];return e.forEach((s=>{this.Xa.has(s)||n.push(new Lv(s))})),this.Xa.forEach((s=>{e.has(s)||n.push(new Vv(s))})),n}cu(e){this.Ya=e.Qs,this.Xa=Se();const n=this.ru(e.documents);return this.applyChanges(n,!0)}lu(){return mi.fromInitialDocuments(this.query,this.tu,this.mutatedKeys,this.Za===0,this.hasCachedResults)}}const Nd="SyncEngine";class h2{constructor(e,n,s){this.query=e,this.targetId=n,this.view=s}}class d2{constructor(e){this.key=e,this.hu=!1}}class f2{constructor(e,n,s,r,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=s,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.Pu={},this.Tu=new Pr((c=>X0(c)),ul),this.Iu=new Map,this.Eu=new Set,this.du=new tt(re.comparator),this.Au=new Map,this.Ru=new Td,this.Vu={},this.mu=new Map,this.fu=pi.cr(),this.onlineState="Unknown",this.gu=void 0}get isPrimaryClient(){return this.gu===!0}}async function p2(t,e,n=!0){const s=Hv(t);let r;const i=s.Tu.get(e);return i?(s.sharedClientState.addLocalQueryTarget(i.targetId),r=i.view.lu()):r=await Fv(s,e,n,!0),r}async function m2(t,e){const n=Hv(t);await Fv(n,e,!0,!1)}async function Fv(t,e,n,s){const r=await xD(t.localStore,On(e)),i=r.targetId,o=t.sharedClientState.addLocalQueryTarget(i,n);let c;return s&&(c=await g2(t,e,i,o==="current",r.resumeToken)),t.isPrimaryClient&&n&&Rv(t.remoteStore,r),c}async function g2(t,e,n,s,r){t.pu=(p,m,v)=>(async function(M,O,$,U){let H=O.view.ru($);H.Cs&&(H=await Vm(M.localStore,O.query,!1).then((({documents:S})=>O.view.ru(S,H))));const q=U&&U.targetChanges.get(O.targetId),le=U&&U.targetMismatches.get(O.targetId)!=null,be=O.view.applyChanges(H,M.isPrimaryClient,q,le);return Ym(M,O.targetId,be.au),be.snapshot})(t,p,m,v);const i=await Vm(t.localStore,e,!0),o=new u2(e,i.Qs),c=o.ru(i.documents),l=ia.createSynthesizedTargetChangeForCurrentChange(n,s&&t.onlineState!=="Offline",r),h=o.applyChanges(c,t.isPrimaryClient,l);Ym(t,n,h.au);const d=new h2(e,n,o);return t.Tu.set(e,d),t.Iu.has(n)?t.Iu.get(n).push(e):t.Iu.set(n,[e]),h.snapshot}async function _2(t,e,n){const s=ge(t),r=s.Tu.get(e),i=s.Iu.get(r.targetId);if(i.length>1)return s.Iu.set(r.targetId,i.filter((o=>!ul(o,e)))),void s.Tu.delete(e);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(r.targetId),s.sharedClientState.isActiveQueryTarget(r.targetId)||await nh(s.localStore,r.targetId,!1).then((()=>
2924{s.sharedClientState.clearQueryState(r.targetId),n&&bd(s.remoteStore,r.targetId),ih(s,r.targetId)})).catch(bi)):(ih(s,r.targetId),await nh(s.localStore,r.targetId,!0))}async function y2(t,e){const n=ge(t),s=n.Tu.get(e),r=n.Iu.get(s.targetId);n.isPrimaryClient&&r.length===1&&(n.sharedClientState.removeLocalQueryTarget(s.targetId),bd(n.remoteStore,s.targetId))}async function v2(t,e,n){const s=b2(t);try{const r=await(function(o,c){const l=ge(o),h=qe.now(),d=c.reduce(((v,P)=>v.add(P.key)),Se());let p,m;return l.persistence.runTransaction("Locally write mutations","readwrite",(v=>{let P=ds(),M=Se();return l.Ns.getEntries(v,d).next((O=>{P=O,P.forEach((($,U)=>{U.isValidDocument()||(M=M.add($))}))})).next((()=>l.localDocuments.getOverlayedDocuments(v,P))).next((O=>{p=O;const $=[];for(const U of c){const H=OM(U,p.get(U.key).overlayedDocument);H!=null&&$.push(new kr(U.key,H,W0(H.value.mapValue),is.exists(!0)))}return l.mutationQueue.addMutationBatch(v,h,$,c)})).next((O=>{m=O;const $=O.applyToLocalDocumentSet(p,M);return l.documentOverlayCache.saveOverlays(v,O.batchId,$)}))})).then((()=>({batchId:m.batchId,changes:tv(p)})))})(s.localStore,e);s.sharedClientState.addPendingMutation(r.batchId),(function(o,c,l){let h=o.Vu[o.currentUser.toKey()];h||(h=new tt(Ie)),h=h.insert(c,l),o.Vu[o.currentUser.toKey()]=h})(s,r.batchId,n),await aa(s,r.changes),await _l(s.remoteStore)}catch(r){const i=Md(r,"Failed to persist write");n.reject(i)}}async function Uv(t,e){const n=ge(t);try{const s=await DD(n.localStore,e);
2924e.targetChanges.forEach(((r,i)=>{const o=n.Au.get(i);o&&(Fe(r.addedDocuments.size+r.modifiedDocuments.size+r.removedDocuments.size<=1,22616),r.addedDocuments.size>0?o.hu=!0:r.modifiedDocuments.size>0?Fe(o.hu,14607):r.removedDocuments.size>0&&(Fe(o.hu,42227),o.hu=!1))})),await aa(n,s,e)}catch(s){await bi(s)}}function zm(t,e,n){const s=ge(t);if(s.isPrimaryClient&&n===0||!s.isPrimaryClient&&n===1){const r=[];s.Tu.forEach(((i,o)=>{const c=o.view.va(e);c.snapshot&&r.push(c.snapshot)})),(function(o,c){const l=ge(o);l.onlineState=c;let h=!1;l.queries.forEach(((d,p)=>{for(const m of p.Sa)m.va(c)&&(h=!0)})),h&&Dd(l)})(s.eventManager,e),r.length&&s.Pu.H_(r),s.onlineState=e,s.isPrimaryClient&&s.sharedClientState.setOnlineState(e)}}async function w2(t,e,n){const s=ge(t);s.sharedClientState.updateQueryState(e,"rejected",n);const r=s.Au.get(e),i=r&&r.key;if(i){let o=new tt(re.comparator);o=o.insert(i,Dt.newNoDocument(i,me.min()));const c=Se().add(i),l=new pl(me.min(),new Map,new tt(Ie),o,c);await Uv(s,l),s.du=s.du.remove(i),s.Au.delete(e),Od(s)}else await nh(s.localStore,e,!1).then((()=>ih(s,e,n))).catch(bi)}async function E2(t,e){const n=ge(t),s=e.batch.batchId;try{const r=await MD(n.localStore,e);$v(n,s,null),jv(n,s),n.sharedClientState.updateMutationState(s,"acknowledged"),await aa(n,r)}catch(r){await bi(r)}}async function T2(t,e,n){const s=ge(t);try{const r=await(function(o,c){const l=ge(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",(h=>{let d;return l.mutationQueue.lookupMutationBatch(h,c).next((p=>(Fe(p!==null,37113),d=p.keys(),l.mutationQueue.removeMutationBatch(h,p)))).next((()=>l.mutationQueue.performConsistencyCheck(h))).next((()=>l.documentOverlayCache.removeOverlaysForBatchId(h,d,c))).next((()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(h,d))).next((()=>l.localDocuments.getDocuments(h,d)))}))})(s.localStore,e);$v(s,e,n),jv(s,e),s.sharedClientState.updateMutationState(e,"rejected",n),await aa(s,r)}catch(r){await bi(r)}}function jv(t,e){(t.mu.get(e)||[]).forEach((n=>{n.resolve()})),t.mu.delete(e)}function $v(t,e,n){const s=ge(t);let r=s.Vu[s.currentUser.toKey()];if(r){const i=r.get(e);i&&(n?i.reject(n):i.resolve(),r=r.remove(e)),s.Vu[s.currentUser.toKey()]=r}}
vendor: 4,235 bytes, line 2924
2924function ih(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const s of t.Iu.get(e))t.Tu.delete(s),n&&t.Pu.yu(s,n);t.Iu.delete(e),t.isPrimaryClient&&t.Ru.jr(e).forEach((s=>{t.Ru.containsKey(s)||Bv(t,s)}))}function Bv(t,e){t.Eu.delete(e.path.canonicalString());const n=t.du.get(e);n!==null&&(bd(t.remoteStore,n),t.du=t.du.remove(e),t.Au.delete(n),Od(t))}function Ym(t,e,n){for(const s of n)s instanceof Vv?(t.Ru.addReference(s.key,e),I2(t,s)):s instanceof Lv?(ee(Nd,"Document no longer in limbo: "+s.key),t.Ru.removeReference(s.key,e),t.Ru.containsKey(s.key)||Bv(t,s.key)):he(19791,{wu:s})}function I2(t,e){const n=e.key,s=n.path.canonicalString();t.du.get(n)||t.Eu.has(s)||(ee(Nd,"New document in limbo: "+n),t.Eu.add(s),Od(t))}function Od(t){for(;t.Eu.size>0&&t.du.size<t.maxConcurrentLimboResolutions;){const e=t.Eu.values().next().value;t.Eu.delete(e);const n=new re(We.fromString(e)),s=t.fu.next();t.Au.set(s,new d2(n)),t.du=t.du.insert(n,s),Rv(t.remoteStore,new Os(On(_d(n.path)),s,"TargetPurposeLimboResolution",al.ce))}}async function aa(t,e,n){const s=ge(t),r=[],i=[],o=[];s.Tu.isEmpty()||(s.Tu.forEach(((c,l)=>{o.push(s.pu(l,e,n).then((h=>{if((h||n)&&s.isPrimaryClient){const d=h?!h.fromCache:n?.targetChanges.get(l.targetId)?.current;s.sharedClientState.updateQueryState(l.targetId,d?"current":"not-current")}if(h){r.push(h);const d=Sd.As(l.targetId,h);i.push(d)}})))})),await Promise.all(o),s.Pu.H_(r),await(async function(l,h){const d=ge(l);try{await d.persistence.runTransaction("notifyLocalViewChanges","readwrite",(p=>L.forEach(h,(m=>L.forEach(m.Es,(v=>d.persistence.referenceDelegate.addReference(p,m.targetId,v))).next((()=>L.forEach(m.ds,(v=>d.persistence.referenceDelegate.removeReference(p,m.targetId,v)))))))))}catch(p){if(!Ri(p))throw p;ee(Ad,"Failed to update sequence numbers: "+p)}for(const p of h){const m=p.targetId;if(!p.fromCache){const v=d.Ms.get(m),P=v.snapshotVersion,M=v.withLastLimboFreeSnapshotVersion(P);d.Ms=d.Ms.insert(m,M)}}})(s.localStore,i))}async function S2(t,e){const n=ge(t);if(!n.currentUser.isEqual(e)){ee(Nd,"User change. New user:",e.toKey());const s=await Iv(n.localStore,e);n.currentUser=e,(function(i,o){i.mu.forEach((c=>{c.forEach((l=>{l.reject(new X(V.CANCELLED,o))}))})),i.mu.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,s.removedBatchIds,s.addedBatchIds),await aa(n,s.Ls)}}function A2(t,e){const n=ge(t),s=n.Au.get(e);if(s&&s.hu)return Se().add(s.key);{let r=Se();const i=n.Iu.get(e);if(!i)return r;for(const o of i){const c=n.Tu.get(o);r=r.unionWith(c.view.nu)}return r}}function Hv(t){const e=ge(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=Uv.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=A2.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=w2.bind(null,e),e.Pu.H_=c2.bind(null,e.eventManager),e.Pu.yu=l2.bind(null,e.eventManager),e}function b2(t){const e=ge(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=E2.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=T2.bind(null,e),e}class kc{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=ml(e.databaseInfo.databaseId),this.sharedClientState=this.Du(e),this.persistence=this.Cu(e),await this.persistence.start(),this.localStore=this.vu(e),this.gcScheduler=this.Fu(e,this.localStore),this.indexBackfillerScheduler=this.Mu(e,this.localStore)}Fu(e,n){return null}Mu(e,n){return null}vu(e){return kD(this.persistence,new RD,e.initialUser,this.serializer)}Cu(e){return new Tv(Id.mi,this.serializer)}Du(e){return new LD}async terminate(){this.gcScheduler?.stop(),this.indexBackfillerScheduler?.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}kc.provider={build:()=>new kc};class R2 extends kc{constructor(e){super(),this.cacheSizeBytes=e}Fu(e,n){Fe(this.persistence.referenceDelegate instanceof Cc,46915);const s=this.persistence.referenceDelegate.garbageCollector;return new dD(s,e.asyncQueue,n)}Cu(e){const n=this.cacheSizeBytes!==void 0?Wt.withCacheSize(this.cacheSizeBytes):Wt.DEFAULT;return new Tv((s=>Cc.mi(s,n)),this.serializer)}}class oh{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedCl
2924ientState=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=s=>zm(this.syncEngine,s,1),this.remoteStore.remoteSyncer.handleCredentialChange=S2.bind(null,this.syncEngine),await i2(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return(function(){return new a2})()}createDatastore(e){const n=ml(e.databaseInfo.databaseId),s=(function(i){return new BD(i)})(e.databaseInfo);return(function(i,o,c,l){return new YD(i,o,c,l)})(e.authCredentials,e.appCheckCredentials,s,n)}createRemoteStore(e){return(function(s,r,i,o,c){return new GD(s,r,i,o,c)})(this.localStore,this.datastore,e.asyncQueue,(n=>zm(this.syncEngine,n,0)),(function(){return Um.v()?new Um:new FD})())}createSyncEngine(e,n){return(function(r,i,o,c,l,h,d){const p=new f2(r,i,o,c,l,h);return d&&(p.gu=!0),p})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){await(async function(n){const s=ge(n);ee(Sr,"RemoteStore shutting down."),s.Ea.add(5),await oa(s),s.Aa.shutdown(),s.Ra.set("Unknown")})(this.remoteStore),this.datastore?.terminate(),this.eventManager?.terminate()}}oh.provider={build:()=>new oh};/**
2925 * @license
2926 * Copyright 2020 Google LLC
2927 *
2928 * Licensed under the Apache License, Version 2.0 (the "License");
2929 * you may not use this file except in compliance with the License.
2930 * You may obtain a copy of the License at
2931 *
2932 *   http://www.apache.org/licenses/LICENSE-2.0
2933 *
2934 * Unless required by applicable law or agreed to in writing, software
2935 * distributed under the License is distributed on an "AS IS" BASIS,
2936 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2937 * See the License for the specific language governing permissions and
2938 * limitations under the License.
2939 *//**
2940 * @license
2941 * Copyright 2017 Google LLC
2942 *
2943 * Licensed under the Apache License, Version 2.0 (the "License");
2944 * you may not use this file except in compliance with the License.
2945 * You may obtain a copy of the License at
2946 *
2947 *   http://www.apache.org/licenses/LICENSE-2.0
2948 *
2949 * Unless required by applicable law or agreed to in writing, software
2950 * distributed under the License is distributed on an "AS IS" BASIS,
2951 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2952 * See the License for the specific language governing permissions and
2953 * limitations under the License.
2954 */class Wv{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ou(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ou(this.observer.error,e):hs("Uncaught Error in snapshot listener:",e.toString()))}Nu(){this.muted=!0}Ou(e,n){setTimeout((()=>{this.muted||e(n)}),0)}}/**
2955 * @license
2956 * Copyright 2017 Google LLC
2957 *
2958 * Licensed under the Apache License, Version 2.0 (the "License");
2959 * you may not use this file except in compliance with the License.
2960 * You may obtain a copy of the License at
2961 *
2962 *   http://www.apache.org/licenses/LICENSE-2.0
2963 *
2964 * Unless required by applicable law or agreed to in writing, software
2965 * distributed under the License is distributed on an "AS IS" BASIS,
2966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2967 * See the License for the specific language governing permissions and
2968 * limitations under the License.
2969 */const Xs="FirestoreClient";class C2{constructor(e,n,s,r,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=s,this.databaseInfo=r,this.user=kt.UNAUTHENTICATED,this.clientId=hd.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(s,(async o=>{ee(Xs,"Received user=",o.uid),await this.authCredentialListener(o),this.user=o})),this.appCheckCredentials.start(s,(o=>(ee(Xs,"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 Hs;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 s=Md(n,"Failed to shutdown persistence");e.reject(s)}})),e.promise}}async function hu(t,e){t.asyncQueue.verifyOperationInProgress(),ee(Xs,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let s=n.initialUser;t.setCredentialChangeListener((async r=>{s.isEqual(r)||(await Iv(e.localStore,r),s=r)})),e.persistence.setDatabaseDeletedListener((()=>t.terminate())),t._offlineComponents=e}async function qm(t,e){t.asyncQueue.verifyOperationInProgress();const n=await P2(t);ee(Xs,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener((s=>$m(e.remoteStore,s))),t.setAppCheckTokenChangeListener(((s,r)=>$m(e.remoteStore,r))),t._onlineComponents=e}async function P2(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ee(Xs,"Using user provided OfflineComponentProvider");try{await hu(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!(function(r){return r.name==="FirebaseError"?r.code===V.FAILED_PRECONDITION||r.code===V.UNIMPLEMENT
2969ED:!(typeof DOMException<"u"&&r instanceof DOMException)||r.code===22||r.code===20||r.code===11})(n))throw n;ui("Error using user provided cache. Falling back to memory cache: "+n),await hu(t,new kc)}}else ee(Xs,"Using default OfflineComponentProvider"),await hu(t,new R2(void 0));return t._offlineComponents}async function zv(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ee(Xs,"Using user provided OnlineComponentProvider"),await qm(t,t._uninitializedComponentsProvider._online)):(ee(Xs,"Using default OnlineComponentProvider"),await qm(t,new oh))),t._onlineComponents}function k2(t){return zv(t).then((e=>e.syncEngine))}async function ah(t){const e=await zv(t),n=e.eventManager;return n.onListen=p2.bind(null,e.syncEngine),n.onUnlisten=_2.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=m2.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=y2.bind(null,e.syncEngine),n}function M2(t,e,n={}){const s=new Hs;return t.asyncQueue.enqueueAndForget((async()=>(function(i,o,c,l,h){const d=new Wv({next:m=>{d.Nu(),o.enqueueAndForget((()=>Ov(i,p))),m.fromCache&&l.source==="server"?h.reject(new X(V.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.)')):h.resolve(m)},error:m=>h.reject(m)}),p=new xv(c,d,{includeMetadataChanges:!0,qa:!0});return Nv(i,p)})(await ah(t),t.asyncQueue,e,n,s))),s.promise}/**
2970 * @license
2971 * Copyright 2023 Google LLC
2972 *
2973 * Licensed under the Apache License, Version 2.0 (the "License");
2974 * you may not use this file except in compliance with the License.
2975 * You may obtain a copy of the License at
2976 *
2977 *   http://www.apache.org/licenses/LICENSE-2.0
2978 *
2979 * Unless required by applicable law or agreed to in writing, software
2980 * distributed under the License is distributed on an "AS IS" BASIS,
2981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2982 * See the License for the specific language governing permissions and
2983 * limitations under the License.
2984 */function Yv(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/**
2985 * @license
2986 * Copyright 2020 Google LLC
2987 *
2988 * Licensed under the Apache License, Version 2.0 (the "License");
2989 * you may not use this file except in compliance with the License.
2990 * You may obtain a copy of the License at
2991 *
2992 *   http://www.apache.org/licenses/LICENSE-2.0
2993 *
2994 * Unless required by applicable law or agreed to in writing, software
2995 * distributed under the License is distributed on an "AS IS" BASIS,
2996 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2997 * See the License for the specific language governing permissions and
2998 * limitations under the License.
2999 */const Gm=new Map;/**
3000 * @license
3001 * Copyright 2020 Google LLC
3002 *
3003 * Licensed under the Apache License, Version 2.0 (the "License");
3004 * you may not use this file except in compliance with the License.
3005 * You may obtain a copy of the License at
3006 *
3007 *   http://www.apache.org/licenses/LICENSE-2.0
3008 *
3009 * Unless required by applicable law or agreed to in writing, software
3010 * distributed under the License is distributed on an "AS IS" BASIS,
3011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3012 * See the License for the specific language governing permissions and
3013 * limitations under the License.
3014 */const qv="firestore.googleapis.com",Km=!0;class Qm{constructor(e){if(e.host===void 0){if(e.ssl!==void 0)throw new X(V.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=qv,this.ssl=Km}else this.host=e.host,this.ssl=e.ssl??Km;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=Ev;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<uD)throw new X(V.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}qk("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=Yv(e.experimentalLongPollingOptions??{}),(function(s){if(s.timeoutSeconds!==void 0){if(isNaN(s.timeoutSeconds))throw new X(V.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (must not be NaN)`);if(s.timeoutSeconds<5)throw new X(V.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (minimum allowed value is 5)`);if(s.timeoutSeconds>30)throw new X(V.INVALID_ARGUMENT,`invalid long polling timeout: ${s.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(s,r){return s.timeoutSeconds===r.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class yl{constructor(e,n,s,r){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=s,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Qm({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new X(V.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 X(V.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 Qm(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=(function(s){if(!s)return new Lk;switch(s.type){case"firstParty":return new $k(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new X(V.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
3014d 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 s=Gm.get(n);s&&(ee("ComponentProvider","Removing Datastore"),Gm.delete(n),s.terminate())})(this),Promise.resolve()}}function D2(t,e,n,s={}){t=_r(t,yl);const r=Ei(e),i=t._getSettings(),o={...i,emulatorOptions:t._getEmulatorOptions()},c=`${e}:${n}`;r&&(Fy(`https://${c}`),Uy("Firestore",!0)),i.host!==qv&&i.host!==c&&ui("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const l={...i,host:c,ssl:r,emulatorOptions:s};if(!wr(l,o)&&(t._setSettings(l),s.mockUserToken)){let h,d;if(typeof s.mockUserToken=="string")h=s.mockUserToken,d=kt.MOCK_USER;else{h=Kb(s.mockUserToken,t._app?.options.projectId);const p=s.mockUserToken.sub||s.mockUserToken.user_id;if(!p)throw new X(V.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");d=new kt(p)}t._authCredentials=new Fk(new D0(h,d))}}/**
3015 * @license
3016 * Copyright 2020 Google LLC
3017 *
3018 * Licensed under the Apache License, Version 2.0 (the "License");
3019 * you may not use this file except in compliance with the License.
3020 * You may obtain a copy of the License at
3021 *
3022 *   http://www.apache.org/licenses/LICENSE-2.0
3023 *
3024 * Unless required by applicable law or agreed to in writing, software
3025 * distributed under the License is distributed on an "AS IS" BASIS,
3026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3027 * See the License for the specific language governing permissions and
3028 * limitations under the License.
3029 */class tr{constructor(e,n,s){this.converter=n,this._query=s,this.type="query",this.firestore=e}withConverter(e){return new tr(this.firestore,e,this._query)}}class ht{constructor(e,n,s){this.converter=n,this._key=s,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Ws(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new ht(this.firestore,e,this._key)}toJSON(){return{type:ht._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,n,s){if(sa(n,ht._jsonSchema))return new ht(e,s||null,new re(We.fromString(n.referencePath)))}}ht._jsonSchemaVersion="firestore/documentReference/1.0",ht._jsonSchema={type:ct("string",ht._jsonSchemaVersion),referencePath:ct("string")};class Ws extends tr{constructor(e,n,s){super(e,n,_d(s)),this._path=s,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 ht(this.firestore,null,new re(e))}withConverter(e){return new Ws(this.firestore,e,this._path)}}function vl(t,e,...n){if(t=Lt(t),N0("collection","path",e),t instanceof yl){const s=We.fromString(e,...n);return lm(s),new Ws(t,null,s)}{if(!(t instanceof ht||t instanceof Ws))throw new X(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=t._path.child(We.fromString(e,...n));return lm(s),new Ws(t.firestore,null,s)}}function N2(t,e,...n){if(t=Lt(t),arguments.length===1&&(e=hd.newId()),N0("doc","path",e),t instanceof yl){const s=We.fromString(e,...n);return cm(s),new ht(t,null,new re(s))}{if(!(t instanceof ht||t instanceof Ws))throw new X(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=t._path.child(We.fromString(e,...n));return cm(s),new ht(t.firestore,t instanceof Ws?t.converter:null,new re(s))}}/**
3030 * @license
3031 * Copyright 2020 Google LLC
3032 *
3033 * Licensed under the Apache License, Version 2.0 (the "License");
3034 * you may not use this file except in compliance with the License.
3035 * You may obtain a copy of the License at
3036 *
3037 *   http://www.apache.org/licenses/LICENSE-2.0
3038 *
3039 * Unless required by applicable law or agreed to in writing, software
3040 * distributed under the License is distributed on an "AS IS" BASIS,
3041 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3042 * See the License for the specific language governing permissions and
3043 * limitations under the License.
3044 */const Jm="AsyncQueue";class Xm{constructor(e=Promise.resolve()){this.Xu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new Av(this,"async_queue_retry"),this._c=()=>{const s=uu();s&&ee(Jm,"Visibility state changed to "+s.visibilityState),this.M_.w_()},this.ac=e;const n=uu();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const n=uu();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise((()=>{}));const n=new Hs;return this.cc((()=>this.ec&&this.sc?Promise.resolve():(e().then(n.resolve,n.reject),n.promise))).then((()=>n.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Xu.push(e),this.lc())))}async lc(){if(this.Xu.length!==0){try{await this.Xu[0](),this.Xu.shift(),this.M_.reset()}catch(e){if(!Ri(e))throw e;ee(Jm,"Operation failed with retryable error: "+e)}this.Xu.length>0&&this.M_.p_((()=>this.lc()))}}cc(e){const n=this.ac.then((()=>(this.rc=!0,e().catch((s=>{throw this.nc=s,this.rc=!1,hs("INTERNAL UNHANDLED ERROR: ",Zm(s)),s})).then((s=>(this.rc=!1,s))))));return this.ac=n,n}enqueueAfterDelay(e,n,s){this.uc(),this.oc.indexOf(e)>-1&&(n=0);const r=kd.createAndSchedule(this,e,n,s,(i=>this.hc(i)));return this.tc.push(r),r}uc(){this.nc&&he(47125,{Pc:Zm(this.nc)})}verifyOperationInProgress(){}async Tc(){let e;do e=this.ac,await e;while(e!==this.ac)}Ic(e){for(const n of this.tc)if(n.timerId===e)return!0;return!1}Ec(e){return this.Tc().then((()=>{this.tc.sort(((n,s)=>n.targetTimeMs-s.targetTimeMs));for(const n of this.tc)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.Tc()}))}dc(e){this.oc.push(e)}hc(e){const n=this.tc.indexOf(e);this.tc.splice(n,1)}}function Zm(t){let e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+`
3045`+t.stack),e}/**
3046 * @license
3047 * Copyright 2017 Google LLC
3048 *
3049 * Licensed under the Apache License, Version 2.0 (the "License");
3050 * you may not use this file except in compliance with the License.
3051 * You may obtain a copy of the License at
3052 *
3053 *   http://www.apache.org/licenses/LICENSE-2.0
3054 *
3055 * Unless required by applicable law or agreed to in writing, software
3056 * distributed under the License is distributed on an "AS IS" BASIS,
3057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3058 * See the License for the specific language governing permissions and
3059 * limitations under the License.
3060 */function eg(t){return(function(n,s){if(typeof n!="object"||n===null)return!1;const r=n;for(const i of s)if(i in r&&typeof r[i]=="function")return!0;return!1})(t,["next","error","complete"])}class $o extends yl{constructor(e,n,s,r){super(e,n,s,r),this.type="firestore",this._queue=new Xm,this._persistenceKey=r?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new Xm(e),this._firestoreClient=void 0,await e}}}function O2(t,e){const n=typeof t=="object"?t:Hy(),s=typeof t=="string"?t:Ic,r=td(n,"firestore").getImmediate({identifier:s});if(!r._initialized){const i=qb("firestore");i&&D2(r,...i)}return r}function xd(t){if(t._terminated)throw new X(V.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||x2(t),t._firestoreClient}function x2(t){const e=t._freezeSettings(),n=(function(r,i,o,c){return new rM(r,i,o,c.host,c.ssl,c.experimentalForceLongPolling,c.experimentalAutoDetectLongPolling,Yv(c.experimentalLongPollingOptions),c.useFetchStreams,c.isUsingEmulator)})(t._databaseId,t._app?.options.appId||"",t._persistenceKey,e);t._componentsProvider||e.localCache?._offlineComponentProvider&&e.localCache?._onlineComponentProvider&&(t._componentsProvider={_offline:e.localCache._offlineComponentProvider,_online:e.localCache._onlineComponentProvider}),t._firestoreClient=new C2(t._authCredentials,t._appCheckCredentials,t._queue,n,t._componentsProvider&&(function(r){const i=r?._online.build();return{_offline:r?._offline.build(i),_online:i}})(t._componentsProvider))}/**
3061 * @license
3062 * Copyright 2020 Google LLC
3063 *
3064 * Licensed under the Apache License, Version 2.0 (the "License");
3065 * you may not use this file except in compliance with the License.
3066 * You may obtain a copy of the License at
3067 *
3068 *   http://www.apache.org/licenses/LICENSE-2.0
3069 *
3070 * Unless required by applicable law or agreed to in writing, software
3071 * distributed under the License is distributed on an "AS IS" BASIS,
3072 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3073 * See the License for the specific language governing permissions and
3074 * limitations under the License.
3075 */class sn{constructor(e){this._byteString=e}static fromBase64String(e){try{return new sn(St.fromBase64String(e))}catch(n){throw new X(V.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new sn(St.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:sn._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(sa(e,sn._jsonSchema))return sn.fromBase64String(e.bytes)}}sn._jsonSchemaVersion="firestore/bytes/1.0",sn._jsonSchema={type:ct("string",sn._jsonSchemaVersion),bytes:ct("string")};/**
3076 * @license
3077 * Copyright 2020 Google LLC
3078 *
3079 * Licensed under the Apache License, Version 2.0 (the "License");
3080 * you may not use this file except in compliance with the License.
3081 * You may obtain a copy of the License at
3082 *
3083 *   http://www.apache.org/licenses/LICENSE-2.0
3084 *
3085 * Unless required by applicable law or agreed to in writing, software
3086 * distributed under the License is distributed on an "AS IS" BASIS,
3087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3088 * See the License for the specific language governing permissions and
3089 * limitations under the License.
3090 */class Vd{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new X(V.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new It(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/**
3091 * @license
3092 * Copyright 2020 Google LLC
3093 *
3094 * Licensed under the Apache License, Version 2.0 (the "License");
3095 * you may not use this file except in compliance with the License.
3096 * You may obtain a copy of the License at
3097 *
3098 *   http://www.apache.org/licenses/LICENSE-2.0
3099 *
3100 * Unless required by applicable law or agreed to in writing, software
3101 * distributed under the License is distributed on an "AS IS" BASIS,
3102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3103 * See the License for the specific language governing permissions and
3104 * limitations under the License.
3105 */class Ld{constructor(e){this._methodName=e}}/**
3106 * @license
3107 * Copyright 2017 Google LLC
3108 *
3109 * Licensed under the Apache License, Version 2.0 (the "License");
3110 * you may not use this file except in compliance with the License.
3111 * You may obtain a copy of the License at
3112 *
3113 *   http://www.apache.org/licenses/LICENSE-2.0
3114 *
3115 * Unless required by applicable law or agreed to in writing, software
3116 * distributed under the License is distributed on an "AS IS" BASIS,
3117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3118 * See the License for the specific language governing permissions and
3119 * limitations under the License.
3120 */class Vn{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new X(V.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new X(V.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 Ie(this._lat,e._lat)||Ie(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:Vn._jsonSchemaVersion}}static fromJSON(e){if(sa(e,Vn._jsonSchema))return new Vn(e.latitude,e.longitude)}}Vn._jsonSchemaVersion="firestore/geoPoint/1.0",Vn._jsonSchema={type:ct("string",Vn._jsonSchemaVersion),latitude:ct("number"),longitude:ct("number")};/**
3121 * @license
3122 * Copyright 2024 Google LLC
3123 *
3124 * Licensed under the Apache License, Version 2.0 (the "License");
3125 * you may not use this file except in compliance with the License.
3126 * You may obtain a copy of the License at
3127 *
3128 *   http://www.apache.org/licenses/LICENSE-2.0
3129 *
3130 * Unless required by applicable law or agreed to in writing, software
3131 * distributed under the License is distributed on an "AS IS" BASIS,
3132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3133 * See the License for the specific language governing permissions and
3134 * limitations under the License.
3135 */class Ln{constructor(e){this._values=(e||[]).map((n=>n))}toArray(){return this._values.map((e=>e))}isEqual(e){return(function(s,r){if(s.length!==r.length)return!1;for(let i=0;i<s.length;++i)if(s[i]!==r[i])return!1;return!0})(this._values,e._values)}toJSON(){return{type:Ln._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(sa(e,Ln._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every((n=>typeof n=="number")))return new Ln(e.vectorValues);throw new X(V.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}Ln._jsonSchemaVersion="firestore/vectorValue/1.0",Ln._jsonSchema={type:ct("string",Ln._jsonSchemaVersion),vectorValues:ct("object")};/**
3136 * @license
3137 * Copyright 2017 Google LLC
3138 *
3139 * Licensed under the Apache License, Version 2.0 (the "License");
3140 * you may not use this file except in compliance with the License.
3141 * You may obtain a copy of the License at
3142 *
3143 *   http://www.apache.org/licenses/LICENSE-2.0
3144 *
3145 * Unless required by applicable law or agreed to in writing, software
3146 * distributed under the License is distributed on an "AS IS" BASIS,
3147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3148 * See the License for the specific language governing permissions and
3149 * limitations under the License.
3150 */const V2=/^__.*__$/;class L2{constructor(e,n,s){this.data=e,this.fieldMask=n,this.fieldTransforms=s}toMutation(e,n){return this.fieldMask!==null?new kr(e,this.data,this.fieldMask,n,this.fieldTransforms):new ra(e,this.data,n,this.fieldTransforms)}}function Gv(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw he(40011,{Ac:t})}}class Fd{constructor(e,n,s,r,i,o){this.settings=e,this.databaseId=n,this.serializer=s,this.ignoreUndefinedProperties=r,i===void 0&&this.Rc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get Ac(){return this.settings.Ac}Vc(e){return new Fd({...this.settings,...e},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}mc(e){const n=this.path?.child(e),s=this.Vc({path:n,fc:!1});return s.gc(e),s}yc(e){const n=this.path?.child(e),s=this.Vc({path:n,fc:!1});return s.Rc(),s}wc(e){return this.Vc({path:void 0,fc:!0})}Sc(e){return Mc(e,this.settings.methodName,this.settings.bc||!1,this.path,this.settings.Dc)}contains(e){return this.fieldMask.find((n=>e.isPrefixOf(n)))!==void 0||this.fieldTransforms.find((n=>e.isPrefixOf(n.field)))!==void 0}Rc(){if(this.path)for(let e=0;e<this.path.length;e++)this.gc(this.path.get(e))}gc(e){if(e.length===0)throw this.Sc("Document fields must not be empty");if(Gv(this.Ac)&&V2.test(e))throw this.Sc('Document fields cannot begin and end with "__"')}}class F2{constructor(e,n,s){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=s||ml(e)}Cc(e,n,s,r=!1){return new Fd({Ac:e,methodName:n,Dc:s,path:It.emptyPath(),fc:!1,bc:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Kv(t){const e=t._freezeSettings(),n=ml(t._databaseId);return new F2(t._databaseId,!!e.ignoreUndefinedProperties,n)}function U2(t,e,n,s,r,i={}){const o=t.Cc(i.merge||i.mergeFields?2:0,e,n,r);Xv("Data must be an object, but it was:",o,s);const c=Qv(s,o);let l,h;if(i.merge)l=new pn(o.fieldMask),h=o.fieldTransforms;else if(i.mergeFields){const d=[];for(const p of i.mergeFields){const m=$2(e,p,n);if(!o.contains(m))throw new X(V.INVALID_ARGUMENT,`Field '${m}' is specified in your field mask but missing from your input data.`);H2(d,m)||d.push(m)}l=new pn(d),h=o.fieldTransforms.filter((p=>l.covers(p.field)))}else l=null,h=o.fieldTransforms;return new L2(new nn(c),l,h)}class Ud extends Ld{_toFieldTransform(e){return new kM(e.path,new Fo)}isEqual(e){return e instanceof Ud}}function j2(t,e,n,s=!1){return jd(n,t.Cc(s?4:3,e))}
vendor: 4,776 bytes, lines 3150-3169
3150function jd(t,e){if(Jv(t=Lt(t)))return Xv("Unsupported field value:",e,t),Qv(t,e);if(t instanceof Ld)return(function(s,r){if(!Gv(r.Ac))throw r.Sc(`${s._methodName}() can only be used with update() and set()`);if(!r.path)throw r.Sc(`${s._methodName}() is not currently supported inside arrays`);const i=s._toFieldTransform(r);i&&r.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.fc&&e.Ac!==4)throw e.Sc("Nested arrays are not supported");return(function(s,r){const i=[];let o=0;for(const c of s){let l=jd(c,r.wc(o));l==null&&(l={nullValue:"NULL_VALUE"}),i.push(l),o++}return{arrayValue:{values:i}}})(t,e)}return(function(s,r){if((s=Lt(s))===null)return{nullValue:"NULL_VALUE"};if(typeof s=="number")return RM(r.serializer,s);if(typeof s=="boolean")return{booleanValue:s};if(typeof s=="string")return{stringValue:s};if(s instanceof Date){const i=qe.fromDate(s);return{timestampValue:Rc(r.serializer,i)}}if(s instanceof qe){const i=new qe(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Rc(r.serializer,i)}}if(s instanceof Vn)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof sn)return{bytesValue:pv(r.serializer,s._byteString)};if(s instanceof ht){const i=r.databaseId,o=s.firestore._databaseId;if(!o.isEqual(i))throw r.Sc(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:Ed(s.firestore._databaseId||r.databaseId,s._key.path)}}if(s instanceof Ln)return(function(o,c){return{mapValue:{fields:{[B0]:{stringValue:H0},[Sc]:{arrayValue:{values:o.toArray().map((h=>{if(typeof h!="number")throw c.Sc("VectorValues must only contain numeric values.");return yd(c.serializer,h)}))}}}}}})(s,r);throw r.Sc(`Unsupported field value: ${ol(s)}`)})(t,e)}function Qv(t,e){const n={};return V0(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Cr(t,((s,r)=>{const i=jd(r,e.mc(s));i!=null&&(n[s]=i)})),{mapValue:{fields:n}}}function Jv(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof qe||t instanceof Vn||t instanceof sn||t instanceof ht||t instanceof Ld||t instanceof Ln)}function Xv(t,e,n){if(!Jv(n)||!O0(n)){const s=ol(n);throw s==="an object"?e.Sc(t+" a custom object"):e.Sc(t+" "+s)}}function $2(t,e,n){if((e=Lt(e))instanceof Vd)return e._internalPath;if(typeof e=="string")return Zv(t,e);throw Mc("Field path arguments must be of type string or ",t,!1,void 0,n)}const B2=new RegExp("[~\\*/\\[\\]]");function Zv(t,e,n){if(e.search(B2)>=0)throw Mc(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Vd(...e.split("."))._internalPath}catch{throw Mc(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Mc(t,e,n,s,r){const i=s&&!s.isEmpty(),o=r!==void 0;let c=`Function ${e}() called with invalid data`;n&&(c+=" (via `toFirestore()`)"),c+=". ";let l="";return(i||o)&&(l+=" (found",i&&(l+=` in field ${s}`),o&&(l+=` in document ${r}`),l+=")"),new X(V.INVALID_ARGUMENT,c+t+l)}function H2(t,e){return t.some((n=>n.isEqual(e)))}/**
3151 * @license
3152 * Copyright 2020 Google LLC
3153 *
3154 * Licensed under the Apache License, Version 2.0 (the "License");
3155 * you may not use this file except in compliance with the License.
3156 * You may obtain a copy of the License at
3157 *
3158 *   http://www.apache.org/licenses/LICENSE-2.0
3159 *
3160 * Unless required by applicable law or agreed to in writing, software
3161 * distributed under the License is distributed on an "AS IS" BASIS,
3162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3163 * See the License for the specific language governing permissions and
3164 * limitations under the License.
3165 */class ew{constructor(e,n,s,r,i){this._firestore=e,this._userDataWriter=n,this._key=s,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new ht(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new W2(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(wl("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class W2 extends ew{data(){return super.data()}}function wl(t,e){return typeof e=="string"?Zv(t,e):e instanceof Vd?e._internalPath:e._delegate._internalPath}/**
3166 * @license
3167 * Copyright 2020 Google LLC
3168 *
3169 * Licensed under the Apache License, Version 2.0 (the "License");
3170 * you may not use this file except in compliance with the License.
3171 * You may obtain a copy of the License at
3172 *
3173 *   http://www.apache.org/licenses/LICENSE-2.0
3174 *
3175 * Unless required by applicable law or agreed to in writing, software
3176 * distributed under the License is distributed on an "AS IS" BASIS,
3177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3178 * See the License for the specific language governing permissions and
3179 * limitations under the License.
3180 */function tw(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new X(V.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class $d{}class nw extends $d{}function sw(t,e,...n){let s=[];e instanceof $d&&s.push(e),s=s.concat(n),(function(i){const o=i.filter((l=>l instanceof Bd)).length,c=i.filter((l=>l instanceof El)).length;if(o>1||o>0&&c>0)throw new X(V.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(...)))`.")})(s);for(const r of s)t=r._apply(t);return t}class El extends nw{constructor(e,n,s){super(),this._field=e,this._op=n,this._value=s,this.type="where"}static _create(e,n,s){return new El(e,n,s)}_apply(e){const n=this._parse(e);return rw(e._query,n),new tr(e.firestore,e.converter,Qu(e._query,n))}_parse(e){const n=Kv(e.firestore);return(function(i,o,c,l,h,d,p){let m;if(h.isKeyField()){if(d==="array-contains"||d==="array-contains-any")throw new X(V.INVALID_ARGUMENT,`Invalid Query. You can't perform '${d}' queries on documentId().`);if(d==="in"||d==="not-in"){ng(p,d);const P=[];for(const M of p)P.push(tg(l,i,M));m={arrayValue:{values:P}}}else m=tg(l,i,p)}else d!=="in"&&d!=="not-in"&&d!=="array-contains-any"||ng(p,d),m=j2(c,o,p,d==="in"||d==="not-in");return at.create(h,d,m)})(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function z2(t,e,n){const s=e,r=wl("where",t);return El._create(r,s,n)}class Bd extends $d{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Bd(e,n)}_parse(e){const n=this._queryConstraints.map((s=>s._parse(e))).filter((s=>s.getFilters().length>0));return n.length===1?n[0]:En.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:((function(r,i){let o=r;const c=i.getFlattenedFilters();for(const l of c)rw(o,l),o=Qu(o,l)})(e._query,n),new tr(e.firestore,e.converter,Qu(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class Hd extends nw{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new Hd(e,n)}_apply(e){const n=(function(r,i,o){if(r.startAt!==null)throw new X(V.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(r.endAt!==null)throw new X(V.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new Lo(i,o)})(e._query,this._field,this._direction);return new tr(e.firestore,e.converter,(function(r,i){const o=r.explicitOrderBy.concat([i]);
vendor: 6,954 bytes, lines 3180-3195
3180return new Ci(r.path,r.collectionGroup,o,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)})(e._query,n))}}function Y2(t,e="asc"){const n=e,s=wl("orderBy",t);return Hd._create(s,n)}function tg(t,e,n){if(typeof(n=Lt(n))=="string"){if(n==="")throw new X(V.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!J0(e)&&n.indexOf("/")!==-1)throw new X(V.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const s=e.path.child(We.fromString(n));if(!re.isDocumentKey(s))throw new X(V.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${s}' is not because it has an odd number of segments (${s.length}).`);return _m(t,new re(s))}if(n instanceof ht)return _m(t,n._key);throw new X(V.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${ol(n)}.`)}function ng(t,e){if(!Array.isArray(t)||t.length===0)throw new X(V.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function rw(t,e){const n=(function(r,i){for(const o of r)for(const c of o.getFlattenedFilters())if(i.indexOf(c.op)>=0)return c.op;return null})(t.filters,(function(r){switch(r){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 X(V.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new X(V.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class q2{convertValue(e,n="none"){switch(Qs(e)){case 0:return null;case 1:return e.booleanValue;case 2:return rt(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(Ks(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 he(62114,{value:e})}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const s={};return Cr(e,((r,i)=>{s[r]=this.convertValue(i,n)})),s}convertVectorValue(e){const n=e.fields?.[Sc].arrayValue?.values?.map((s=>rt(s.doubleValue)));return new Ln(n)}convertGeoPoint(e){return new Vn(rt(e.latitude),rt(e.longitude))}convertArray(e,n){return(e.values||[]).map((s=>this.convertValue(s,n)))}convertServerTimestamp(e,n){switch(n){case"previous":const s=ll(e);return s==null?null:this.convertValue(s,n);case"estimate":return this.convertTimestamp(Oo(e));default:return null}}convertTimestamp(e){const n=Gs(e);return new qe(n.seconds,n.nanos)}convertDocumentKey(e,n){const s=We.fromString(e);Fe(wv(s),9688,{name:e});const r=new xo(s.get(1),s.get(3)),i=new re(s.popFirst(5));return r.isEqual(n)||hs(`Document ${i} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}/**
3181 * @license
3182 * Copyright 2020 Google LLC
3183 *
3184 * Licensed under the Apache License, Version 2.0 (the "License");
3185 * you may not use this file except in compliance with the License.
3186 * You may obtain a copy of the License at
3187 *
3188 *   http://www.apache.org/licenses/LICENSE-2.0
3189 *
3190 * Unless required by applicable law or agreed to in writing, software
3191 * distributed under the License is distributed on an "AS IS" BASIS,
3192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3193 * See the License for the specific language governing permissions and
3194 * limitations under the License.
3195 */function G2(t,e,n){let s;return s=t?t.toFirestore(e):e,s}class eo{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class yr extends ew{constructor(e,n,s,r,i,o){super(e,n,s,r,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 Xa(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 s=this._document.data.field(wl("DocumentSnapshot.get",e));if(s!==null)return this._userDataWriter.convertValue(s,n.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new X(V.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=yr._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)}}yr._jsonSchemaVersion="firestore/documentSnapshot/1.0",yr._jsonSchema={type:ct("string",yr._jsonSchemaVersion),bundleSource:ct("string","DocumentSnapshot"),bundleName:ct("string"),bundle:ct("string")};class Xa extends yr{data(e={}){return super.data(e)}}class vr{constructor(e,n,s,r){this._firestore=e,this._userDataWriter=n,this._snapshot=r,this.metadata=new eo(r.hasPendingWrites,r.fromCache),this.query=s}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((s=>{e.call(n,new Xa(this._firestore,this._userDataWriter,s.key,s,new eo(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new X(V.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(r,i){if(r._snapshot.oldDocs.isEmpty()){let o=0;return r._snapshot.docChanges.map((c=>{const l=new Xa(r._firestore,r._userDataWriter,c.doc.key,c.doc,new eo(r._snapshot.mutatedKeys.has(c.doc.key),r._snapshot.fromCache),r.query.converter);return c.doc,{type:"added",doc:l,oldIndex:-1,newIndex:o++}}))}{let o=r._snapshot.oldDocs;return r._snapshot.docChanges.filter((c=>
3195i||c.type!==3)).map((c=>{const l=new Xa(r._firestore,r._userDataWriter,c.doc.key,c.doc,new eo(r._snapshot.mutatedKeys.has(c.doc.key),r._snapshot.fromCache),r.query.converter);let h=-1,d=-1;return c.type!==0&&(h=o.indexOf(c.doc.key),o=o.delete(c.doc.key)),c.type!==1&&(o=o.add(c.doc),d=o.indexOf(c.doc.key)),{type:K2(c.type),doc:l,oldIndex:h,newIndex:d}}))}})(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new X(V.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=vr._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=hd.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const n=[],s=[],r=[];return this.docs.forEach((i=>{i._document!==null&&(n.push(i._document),s.push(this._userDataWriter.convertObjectMap(i._document.data.value.mapValue.fields,"previous")),r.push(i.ref.path))})),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function K2(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return he(61501,{type:t})}}vr._jsonSchemaVersion="firestore/querySnapshot/1.0",vr._jsonSchema={type:ct("string",vr._jsonSchemaVersion),bundleSource:ct("string","QuerySnapshot"),bundleName:ct("string"),bundle:ct("string")};class Wd extends q2{constructor(e){super(),this.firestore=e}convertBytes(e){return new sn(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new ht(this.firestore,null,n)}}function Q2(t){t=_r(t,tr);const e=_r(t.firestore,$o),n=xd(e),s=new Wd(e);return tw(t._query),M2(n,t._query).then((r=>new vr(e,s,t,r)))}function iw(t,e){const n=_r(t.firestore,$o),s=N2(t),r=G2(t.converter,e);return X2(n,[U2(Kv(t.firestore),"addDoc",s._key,r,t.converter!==null,{}).toMutation(s._key,is.exists(!1))]).then((()=>s))}function J2(t,...e){t=Lt(t);let n={includeMetadataChanges:!1,source:"default"},s=0;typeof e[s]!="object"||eg(e[s])||(n=e[s++]);const r={includeMetadataChanges:n.includeMetadataChanges,source:n.source};if(eg(e[s])){const l=e[s];e[s]=l.next?.bind(l),e[s+1]=l.error?.bind(l),e[s+2]=l.complete?.bind(l)}let i,o,c;if(t instanceof ht)o=_r(t.firestore,$o),c=_d(t._key.path),i={next:l=>{e[s]&&e[s](Z2(o,t,l))},error:e[s+1],complete:e[s+2]};else{const l=_r(t,tr);o=_r(l.firestore,$o),c=l._query;const h=new Wd(o);i={next:d=>{e[s]&&e[s](new vr(o,h,l,d))},error:e[s+1],complete:e[s+2]},tw(t._query)}return(function(h,d,p,m){const v=new Wv(m),P=new xv(d,v,p);return h.asyncQueue.enqueueAndForget((async()=>Nv(await ah(h),P))),()=>{v.Nu(),h.asyncQueue.enqueueAndForget((async()=>Ov(await ah(h),P)))}})(xd(o),c,r,i)}function X2(t,e){return(function(s,r){const i=new Hs;return s.asyncQueue.enqueueAndForget((async()=>v2(await k2(s),r,i))),i.promise})(xd(t),e)}function Z2(t,e,n){const s=n.docs.get(e._key),r=new Wd(t);return new yr(t,r,e._key,s,new eo(n.hasPendingWrites,n.fromCache),e.converter)}function ow(){return new Ud("serverTimestamp")}(function(e,n=!0){(function(r){Ai=r})(Ti),ci(new Er("firestore",((s,{instanceIdentifier:r,options:i})=>{const o=s.getProvider("app").getImmediate(),c=new $o(new Uk(s.getProvider("auth-internal")),new Bk(o,s.getProvider("app-check-internal")),(function(h,d){if(!Object.prototype.hasOwnProperty.apply(h.options,["projectId"]))throw new X(V.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new xo(h.options.projectId,d)})(o,r),o);return i={useFetchStreams:n,...i},c._setSettings(i),c}),"PUBLIC").setMultipleInstances(!0)),js(rm,im,e),js(rm,im,"esm2020")})();const eN={apiKey:"AIzaSyBpf3kYxjvic_pft8G-xb200l4D71Qxgf8",authDomain:"oncetold-company-sites.firebaseapp.com",projectId:"oncetold-company-sites",storageBucket:"oncetold-company-sites.firebasestorage.app",messagingSenderId:"463285512681",appId:"1:463285512681:web:f238cf726b1e639a9c0378"},aw=By(eN),hr=xk(aw),Tl=O2(aw),tN=II("auth",{state:()=>({email:null,user:null,authIsReady:!1,currentPercent:0}),getters:{getCurrentPercent:t=>(console.log("getCurrentPercent:",t.currentPercent),t.currentPercent)},actions:{async setup(){try{const t=await new Promise(e=>{const n=SP(hr,s=>{n(),e(s)})});this.setAuthIsReady(!0),this.setUser(t)}catch(t){console.error("Error setting up authentication:",t)}},setUser(t){this.user=t},setAuthIsReady(t){this.authIsReady=t},setCurrentPercent(t){this.currentPercent=t}
vendor: 11,033 bytes, lines 3195-3199
3195,async signup({displayName:t,email:e,password:n}){console.log("##### Pinia: Signup Action");const s=await createUserWithEmailAndPassword(hr,e,n);if(s)this.setUser(s.user),await updateProfile(s.user,{displayName:t}),console.log("##### Pinia: User profile updated");else throw new Error("##### Pinia: Could not complete signup")},async verify({email:t,password:e}){console.log("##### Pinia: Verify Action"),await createUserWithEmailAndPassword(hr,t,e)},async login({email:t,password:e}){console.log("##### Pinia: Login Action");const n=await EP(hr,t,e);if(n)this.setUser(n.user);else throw new Error("##### Pinia: Could not complete login")},async authNotReady(){console.log("##### Pinia: Auth Not Ready action"),this.setAuthIsReady(!1)},async continue(){console.log("##### Pinia: Continue Action"),await zp(hr),this.setAuthIsReady(!0),this.setUser(null)},async logout(){zp(hr),this.setUser(null),console.log("##### Pinia: Logout Action")},async setPercent(t){this.setCurrentPercent(t),console.log("##### Pinia: Set Percentage")}}});/*!
3196  * vue-router v4.5.1
3197  * (c) 2025 Eduardo San Martin Morote
3198  * @license MIT
3199  */const qr=typeof document<"u";function cw(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function nN(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&cw(t.default)}const Ve=Object.assign;function du(t,e){const n={};for(const s in e){const r=e[s];n[s]=Tn(r)?r.map(t):t(r)}return n}const yo=()=>{},Tn=Array.isArray,lw=/#/g,sN=/&/g,rN=/\//g,iN=/=/g,oN=/\?/g,uw=/\+/g,aN=/%5B/g,cN=/%5D/g,hw=/%5E/g,lN=/%60/g,dw=/%7B/g,uN=/%7C/g,fw=/%7D/g,hN=/%20/g;function zd(t){return encodeURI(""+t).replace(uN,"|").replace(aN,"[").replace(cN,"]")}function dN(t){return zd(t).replace(dw,"{").replace(fw,"}").replace(hw,"^")}function ch(t){return zd(t).replace(uw,"%2B").replace(hN,"+").replace(lw,"%23").replace(sN,"%26").replace(lN,"`").replace(dw,"{").replace(fw,"}").replace(hw,"^")}function fN(t){return ch(t).replace(iN,"%3D")}function pN(t){return zd(t).replace(lw,"%23").replace(oN,"%3F")}function mN(t){return t==null?"":pN(t).replace(rN,"%2F")}function Bo(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const gN=/\/$/,_N=t=>t.replace(gN,"");function fu(t,e,n="/"){let s,r={},i="",o="";const c=e.indexOf("#");let l=e.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(s=e.slice(0,l),i=e.slice(l+1,c>-1?c:e.length),r=t(i)),c>-1&&(s=s||e.slice(0,c),o=e.slice(c,e.length)),s=EN(s??e,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:Bo(o)}}function yN(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function sg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function vN(t,e,n){const s=e.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&gi(e.matched[s],n.matched[r])&&pw(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function gi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function pw(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!wN(t[n],e[n]))return!1;return!0}function wN(t,e){return Tn(t)?rg(t,e):Tn(e)?rg(e,t):t===e}function rg(t,e){return Tn(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function EN(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,c;for(o=0;o<s.length;o++)if(c=s[o],c!==".")if(c==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Is={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ho;(function(t){t.pop="pop",t.push="push"})(Ho||(Ho={}));var vo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(vo||(vo={}));function TN(t){if(!t)if(qr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),_N(t)}const IN=/^[^#]+#/;function SN(t,e){return t.replace(IN,"#")+e}function AN(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const Il=()=>({left:window.scrollX,top:window.scrollY});function bN(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=AN(r,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)}function ig(t,e){return(history.state?history.state.position-e:-1)+t}const lh=new Map;function RN(t,e){lh.set(t,e)}function CN(t){const e=lh.get(t);return lh.delete(t),e}let PN=()=>location.protocol+"//"+location.host;function mw(t,e){const{pathname:n,search:s,hash:r}=e,i=t.indexOf("#");if(i>-1){let c=r.includes(t.slice(i))?t.slice(i).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),sg(l,"")}return sg(n,t)+s+r}function kN(t,e,n,s){let r=[],i=[],o=null;const c=({state:m})=>{const v=mw(t,location),P=n.value,M=e.value;let O=0;if(m){if(n.value=v,e.value=m,o&&o===P){o=null;return}O=M?m.position-M.position:0}else s(v);r.forEach($=>{$(n.value,P,{delta:O,type:Ho.pop,direction:O?O>0?vo.forward:vo.back:vo.unknown})})};function l(){o=n.value}function h(m){r.push(m);const v=()=>{const P=r.indexOf(m);P>-1&&r.splice(P,1)};return i.push(v),v}function d(){const{history:m}=window;m.state&&m.replaceState(Ve({},m.state,{scroll:Il()}),"")}function p(){for(const m of i)m();i=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:h,destroy:p}}function og(t,e,n,s=!1,r=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:r?Il():null}}function MN(t){const{history:e,location:n}=window,s={value:mw(t,n)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,h,d){const p=t.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+l:PN()+t+l;try{e[d?"replaceState":"pushState"](h,"",m),r.value=h}catch(v){console.error(v),n[d?"replace":"assign"](m)}}function o(l,h){const d=Ve({},e.state,og(r.value.back,l,r.value.forward,!0),h,{position:r.value.position});i(l,d,!0),s.value=l}function c(l,h){const d=Ve({},r.value,e.state,{forward:l,scroll:Il()});i(d.current,d,!0);const p=Ve({},og(s.value,l,null),{position:d.position+1},h);i(l,p,!1),s.value=l}return{location:s,state:r,push:c,replace:o}}function DN(t){t=TN(t);const e=MN(t),n=kN(t,e.state,e.location,e.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=Ve({location:"",base:t,go:s,createHref:SN.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function NN(t){return typeof t=="string"||t&&typeof t=="object"}function gw(t){return typeof t=="string"||typeof t=="symbol"}const _w=Symbol("");var ag;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ag||(ag={}));function _i(t,e){return Ve(new Error,{type:t,[_w]:!0},e)}function Gn(t,e){return t instanceof Error&&_w in t&&(e==null||!!(t.type&e))}const cg="[^/]+?",ON={sensitive:!1,strict:!1,start:!0,end:!0},xN=/[.+*?^${}()[\]/\\]/g;function VN(t,e){const n=Ve({},ON,e),s=[];let r=n.start?"^":"";const i=[];for(const h of t){const d=h.length?[]:[90];n.strict&&!h.length&&(r+="/");for(let p=0;p<h.length;p++){const m=h[p];let v=40+(n.sensitive?.25:0);if(m.type===0)p||(r+="/"),r+=m.value.replace(xN,"\\$&"),v+=40;else if(m.type===1){const{value:P,repeatable:M,optional:O,regexp:$}=m;i.push({name:P,repeatable:M,optional:O});const U=$||cg;if(U!==cg){v+=10;try{new RegExp(`(${U})`)}catch(q){throw new Error(`Invalid custom RegExp for param "${P}" (${U}): `+q.message)}}let H=M?`((?:${U})(?:/(?:${U}))*)`:`(${U})`;p||(H=O&&h.length<2?`(?:/${H})`:"/"+H),O&&(H+="?"),r+=H,v+=20,O&&(v+=-8),M&&(v+=-20),U===".*"&&(v+=-50)}d.push(v)}s.push(d)}if(n.strict&&n.end){const h=s.length-1;s[h][s[h].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function c(h){const d=h.match(o),p={};if(!d)return null;for(let m=1;m<d.length;m++){const v=d[m]||"",P=i[m-1];p[P.name]=v&&P.repeatable?v.split("/"):v}return p}function l(h){let d="",p=!1;for(const m of t){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const v of m)if(v.type===0)d+=v.value;else if(v.type===1){const{value:P,repeatable:M,optional:O}=v,$=P in h?h[P]:"";if(Tn($)&&!M)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const U=Tn($)?$.join("/"):$;if(!U)if(O)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${P}"`);d+=U}}return d||"/"}return{re:o,score:s,keys:i,parse:c,stringify:l}}function LN(t,e){let n=0;for(;n<t.length&&n<e.length;){const s=e[n]-t[n];if(s)return s;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function yw(t,e){let n=0;const s=t.score,r=e.score;for(;n<s.length&&n<r.length;){const i=LN(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(lg(s))return 1;if(lg(r))return-1}return r.length-s.length}function lg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const FN={type:0,value:""},UN=/[a-zA-Z0-9_]/;function jN(t){if(!t)return[[]];if(t==="/")return[[FN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(v){throw new Error(`ERR (${n})/"${h}": ${v}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let c=0,l,h="",d="";function p(){h&&(n===0?i.push({type:0,value:h}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:h,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),h="")}function m(){h+=l}for(;c<t.length;){if(l=t[c++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(h&&p(),o()):l===":"?(p(),n=1):m();break;case 4:m(),n=s;break;case 1:l==="("?n=2:UN.test(l)?m():(p(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:p(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--,d="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${h}"`),p(),o(),r}function $N(t,e,n){const s=VN(jN(t.path),n),r=Ve(s,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function BN(t,e){const n=[],s=new Map;e=fg({strict:!1,end:!0,sensitive:!1},e);function r(p){return s.get(p)}function i(p,m,v){const P=!v,M=hg(p);M.aliasOf=v&&v.record;const O=fg(e,p),$=[M];
vendor: 8,301 bytes, line 3199
3199if("alias"in p){const q=typeof p.alias=="string"?[p.alias]:p.alias;for(const le of q)$.push(hg(Ve({},M,{components:v?v.record.components:M.components,path:le,aliasOf:v?v.record:M})))}let U,H;for(const q of $){const{path:le}=q;if(m&&le[0]!=="/"){const be=m.record.path,S=be[be.length-1]==="/"?"":"/";q.path=m.record.path+(le&&S+le)}if(U=$N(q,m,O),v?v.alias.push(U):(H=H||U,H!==U&&H.alias.push(U),P&&p.name&&!dg(U)&&o(p.name)),vw(U)&&l(U),M.children){const be=M.children;for(let S=0;S<be.length;S++)i(be[S],U,v&&v.children[S])}v=v||U}return H?()=>{o(H)}:yo}function o(p){if(gw(p)){const m=s.get(p);m&&(s.delete(p),n.splice(n.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=n.indexOf(p);m>-1&&(n.splice(m,1),p.record.name&&s.delete(p.record.name),p.children.forEach(o),p.alias.forEach(o))}}function c(){return n}function l(p){const m=zN(p,n);n.splice(m,0,p),p.record.name&&!dg(p)&&s.set(p.record.name,p)}function h(p,m){let v,P={},M,O;if("name"in p&&p.name){if(v=s.get(p.name),!v)throw _i(1,{location:p});O=v.record.name,P=Ve(ug(m.params,v.keys.filter(H=>!H.optional).concat(v.parent?v.parent.keys.filter(H=>H.optional):[]).map(H=>H.name)),p.params&&ug(p.params,v.keys.map(H=>H.name))),M=v.stringify(P)}else if(p.path!=null)M=p.path,v=n.find(H=>H.re.test(M)),v&&(P=v.parse(M),O=v.record.name);else{if(v=m.name?s.get(m.name):n.find(H=>H.re.test(m.path)),!v)throw _i(1,{location:p,currentLocation:m});O=v.record.name,P=Ve({},m.params,p.params),M=v.stringify(P)}const $=[];let U=v;for(;U;)$.unshift(U.record),U=U.parent;return{name:O,path:M,params:P,matched:$,meta:WN($)}}t.forEach(p=>i(p));function d(){n.length=0,s.clear()}return{addRoute:i,resolve:h,removeRoute:o,clearRoutes:d,getRoutes:c,getRecordMatcher:r}}function ug(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function hg(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:HN(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 HN(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="object"?n[s]:n;return e}function dg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function WN(t){return t.reduce((e,n)=>Ve(e,n.meta),{})}function fg(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}function zN(t,e){let n=0,s=e.length;for(;n!==s;){const i=n+s>>1;yw(t,e[i])<0?s=i:n=i+1}const r=YN(t);return r&&(s=e.lastIndexOf(r,s-1)),s}function YN(t){let e=t;for(;e=e.parent;)if(vw(e)&&yw(t,e)===0)return e}function vw({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function qN(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<s.length;++r){const i=s[r].replace(uw," "),o=i.indexOf("="),c=Bo(o<0?i:i.slice(0,o)),l=o<0?null:Bo(i.slice(o+1));if(c in e){let h=e[c];Tn(h)||(h=e[c]=[h]),h.push(l)}else e[c]=l}return e}function pg(t){let e="";for(let n in t){const s=t[n];if(n=fN(n),s==null){s!==void 0&&(e+=(e.length?"&":"")+n);continue}(Tn(s)?s.map(i=>i&&ch(i)):[s&&ch(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function GN(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=Tn(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const KN=Symbol(""),mg=Symbol(""),Sl=Symbol(""),ww=Symbol(""),uh=Symbol("");function qi(){let t=[];function e(s){return t.push(s),()=>{const r=t.indexOf(s);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Rs(t,e,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((c,l)=>{const h=m=>{m===!1?l(_i(4,{from:n,to:e})):m instanceof Error?l(m):NN(m)?l(_i(2,{from:e,to:m})):(o&&s.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),c())},d=i(()=>t.call(s&&s.instances[r],e,n,h));let p=Promise.resolve(d);t.length<3&&(p=p.then(h)),p.catch(m=>l(m))})}function pu(t,e,n,s,r=i=>i()){const i=[];for(const o of t)for(const c in o.components){let l=o.components[c];if(!(e!=="beforeRouteEnter"&&!o.instances[c]))if(cw(l)){const d=(l.__vccOpts||l)[e];d&&i.push(Rs(d,n,s,o,c,r))}else{let h=l();i.push(()=>h.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${o.path}"`);const p=nN(d)?d.default:d;o.mods[c]=d,o.components[c]=p;const v=(p.__vccOpts||p)[e];return v&&Rs(v,n,s,o,c,r)()}))}}return i}function gg(t){const e=_n(Sl),n=_n(ww),s=tn(()=>{const l=Xr(t.to);return e.resolve(l)}),r=tn(()=>{const{matched:l}=s.value,{length:h}=l,d=l[h-1],p=n.matched;if(!d||!p.length)return-1;const m=p.findIndex(gi.bind(null,d));if(m>-1)return m;const v=_g(l[h-2]);return h>1&&_g(d)===v&&p[p.length-1].path!==v?p.findIndex(gi.bind(null,l[h-2])):m}),i=tn(()=>r.value>-1&&eO(n.params,s.value.params)),o=tn(()=>r.value>-1&&r.value===n.matched.length-1&&pw(n.params,s.value.params));function c(l={}){if(ZN(l)){const h=e[Xr(t.replace)?"replace":"push"](Xr(t.to)).catch(yo);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>h),h}return Promise.resolve()}return{route:s,href:tn(()=>s.value.href),isActive:i,isExactActive:o,navigate:c}}function QN(t){return t.length===1?t[0]:t}const JN=s_({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:gg,setup(t,{slots:e}){const n=Wo(gg(t)),{options:s}=_n(Sl),r=tn(()=>({[yg(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[yg(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&QN(e.default(n));return t.custom?i:M_("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),XN=JN;function ZN(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 eO(t,e){for(const n in e){const s=e[n],r=t[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Tn(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function _g(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const yg=(t,e,n)=>t??e??n,tO=s_({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=_n(uh),r=tn(()=>t.route||s.value),i=_n(mg,0),o=tn(()=>{let h=Xr(i);const{matched:d}=r.value;let p;for(;(p=d[h])&&!p.components;)h++;return h}),c=tn(()=>r.value.matched[o.value]);Va(mg,tn(()=>o.value+1)),Va(KN,c),Va(uh,r);const l=gn();return ao(()=>[l.value,c.value,t.name],([h,d,p],[m,v,P])=>{d&&(d.instances[p]=h,v&&v!==d&&h&&h===m&&(d.leaveGuards.size||(d.leaveGuards=v.leaveGuards),d.updateGuards.size||(d.updateGuards=v.updateGuards))),h&&d&&(!v||!gi(d,v)||!m)&&(d.enterCallbacks[p]||[]).forEach(M=>M(h))},{flush:"post"}),()=>{const h=r.value,d=t.name,p=c.value,m=p&&p.components[d];if(!m)return vg(n.default,{Component:m,route:h});const v=p.props[d],P=v?v===!0?h.params:typeof v=="function"?v(h):v:null,O=M_(m,Ve({},P,e,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(p.instances[d]=null)},ref:l}));return vg(n.default,{Component:O,route:h})||O}}});function vg(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const nO=tO;function sO(t){const e=BN(t.routes,t),n=t.parseQuery||qN,s=t.stringifyQuery||pg,r=t.history,i=qi(),o=qi(),c=qi(),l=AE(Is);let h=Is;qr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=du.bind(null,D=>""+D),p=du.bind(null,mN),m=du.bind(null,Bo);function v(D,Z){let K,ne;return gw(D)?(K=e.getRecordMatcher(D),ne=Z):ne=D,e.addRoute(ne,K)}function P(D){const Z=e.getRecordMatcher(D);Z&&e.removeRoute(Z)}function M(){return e.getRoutes().map(D=>D.record)}function O(D){return!!e.getRecordMatcher(D)}function $(D,Z){if(Z=Ve({}
vendor: 4,817 bytes, line 3199
3199,Z||l.value),typeof D=="string"){const R=fu(n,D,Z.path),N=e.resolve({path:R.path},Z),F=r.createHref(R.fullPath);return Ve(R,N,{params:m(N.params),hash:Bo(R.hash),redirectedFrom:void 0,href:F})}let K;if(D.path!=null)K=Ve({},D,{path:fu(n,D.path,Z.path).path});else{const R=Ve({},D.params);for(const N in R)R[N]==null&&delete R[N];K=Ve({},D,{params:p(R)}),Z.params=p(Z.params)}const ne=e.resolve(K,Z),Me=D.hash||"";ne.params=d(m(ne.params));const w=yN(s,Ve({},D,{hash:dN(Me),path:ne.path})),T=r.createHref(w);return Ve({fullPath:w,hash:Me,query:s===pg?GN(D.query):D.query||{}},ne,{redirectedFrom:void 0,href:T})}function U(D){return typeof D=="string"?fu(n,D,l.value.path):Ve({},D)}function H(D,Z){if(h!==D)return _i(8,{from:Z,to:D})}function q(D){return S(D)}function le(D){return q(Ve(U(D),{replace:!0}))}function be(D){const Z=D.matched[D.matched.length-1];if(Z&&Z.redirect){const{redirect:K}=Z;let ne=typeof K=="function"?K(D):K;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=U(ne):{path:ne},ne.params={}),Ve({query:D.query,hash:D.hash,params:ne.path!=null?{}:D.params},ne)}}function S(D,Z){const K=h=$(D),ne=l.value,Me=D.state,w=D.force,T=D.replace===!0,R=be(K);if(R)return S(Ve(U(R),{state:typeof R=="object"?Ve({},Me,R.state):Me,force:w,replace:T}),Z||K);const N=K;N.redirectedFrom=Z;let F;return!w&&vN(s,ne,K)&&(F=_i(16,{to:N,from:ne}),Jt(ne,ne,!0,!1)),(F?Promise.resolve(F):I(N,ne)).catch(x=>Gn(x)?Gn(x,2)?x:ln(x):Ee(x,N,ne)).then(x=>{if(x){if(Gn(x,2))return S(Ve({replace:T},U(x.to),{state:typeof x.to=="object"?Ve({},Me,x.to.state):Me,force:w}),Z||N)}else x=b(N,ne,!0,T,Me);return A(N,ne,x),x})}function _(D,Z){const K=H(D,Z);return K?Promise.reject(K):Promise.resolve()}function y(D){const Z=_s.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(D):D()}function I(D,Z){let K;const[ne,Me,w]=rO(D,Z);K=pu(ne.reverse(),"beforeRouteLeave",D,Z);for(const R of ne)R.leaveGuards.forEach(N=>{K.push(Rs(N,D,Z))});const T=_.bind(null,D,Z);return K.push(T),Bt(K).then(()=>{K=[];for(const R of i.list())K.push(Rs(R,D,Z));return K.push(T),Bt(K)}).then(()=>{K=pu(Me,"beforeRouteUpdate",D,Z);for(const R of Me)R.updateGuards.forEach(N=>{K.push(Rs(N,D,Z))});return K.push(T),Bt(K)}).then(()=>{K=[];for(const R of w)if(R.beforeEnter)if(Tn(R.beforeEnter))for(const N of R.beforeEnter)K.push(Rs(N,D,Z));else K.push(Rs(R.beforeEnter,D,Z));return K.push(T),Bt(K)}).then(()=>(D.matched.forEach(R=>R.enterCallbacks={}),K=pu(w,"beforeRouteEnter",D,Z,y),K.push(T),Bt(K))).then(()=>{K=[];for(const R of o.list())K.push(Rs(R,D,Z));return K.push(T),Bt(K)}).catch(R=>Gn(R,8)?R:Promise.reject(R))}function A(D,Z,K){c.list().forEach(ne=>y(()=>ne(D,Z,K)))}function b(D,Z,K,ne,Me){const w=H(D,Z);if(w)return w;const T=Z===Is,R=qr?history.state:{};K&&(ne||T?r.replace(D.fullPath,Ve({scroll:T&&R&&R.scroll},Me)):r.push(D.fullPath,Me)),l.value=D,Jt(D,Z,K,T),ln()}let E;function mt(){E||(E=r.listen((D,Z,K)=>{if(!Sn.listening)return;const ne=$(D),Me=be(ne);if(Me){S(Ve(Me,{replace:!0,force:!0}),ne).catch(yo);return}h=ne;const w=l.value;qr&&RN(ig(w.fullPath,K.delta),Il()),I(ne,w).catch(T=>Gn(T,12)?T:Gn(T,2)?(S(Ve(U(T.to),{force:!0}),ne).then(R=>{Gn(R,20)&&!K.delta&&K.type===Ho.pop&&r.go(-1,!1)}).catch(yo),Promise.reject()):(K.delta&&r.go(-K.delta,!1),Ee(T,ne,w))).then(T=>{T=T||b(ne,w,!1),T&&(K.delta&&!Gn(T,8)?r.go(-K.delta,!1):K.type===Ho.pop&&Gn(T,20)&&r.go(-1,!1)),A(ne,w,T)}).catch(yo)}))}let $t=qi(),Be=qi(),fe;function Ee(D,Z,K){ln(D);const ne=Be.list();return ne.length?ne.forEach(Me=>Me(D,Z,K)):console.error(D),Promise.reject(D)}function zt(){return fe&&l.value!==Is?Promise.resolve():new Promise((D,Z)=>{$t.add([D,Z])})}function ln(D){return fe||(fe=!D,mt(),$t.list().forEach(([Z,K])=>D?K(D):Z()),$t.reset()),D}function Jt(D,Z,K,ne){const{scrollBehavior:Me}=t;if(!qr||!Me)return Promise.resolve();const w=!K&&CN(ig(D.fullPath,0))||(ne||!K)&&history.state&&history.state.scroll||null;return Sh().then(()=>Me(D,Z,w)).then(T=>T&&bN(T)).catch(T=>Ee(T,D,Z))}const Ze=D=>r.go(D);let et;const _s=new Set,Sn={currentRoute:l,listening:!0,addRoute:v,removeRoute:P,clearRoutes:e.clearRoutes,hasRoute:O,getRoutes:M,resolve:$,options:t,push:q,replace:le,go:Ze,back:()=>Ze(-1),forward:()=>Ze(1),beforeEach:i.add,beforeResolve:o.add,afterEach:c.add,onError:Be.add,isReady:zt,install(D){const Z=this;D.component("RouterLink",XN),D.component("RouterView",nO),D.config.globalProperties.$router=Z,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>Xr(l)}),qr&&!et&&l.value===Is&&(et=!0,q(r.location).catch(Me=>{}));const K={};for(const Me in Is)Object.defineProperty(K,Me,{get:()=>l.value[Me],enumerable:!0});D.provide(Sl,Z),D.provide(ww,Yg(K)),D.provide(uh,l);const ne=D.unmount;_s.add(D),D.unmount=function(){_s.delete(D),_s.size<1&&(h=Is,E&&E(),E=null,l.value=
3199Is,et=!1,fe=!1),ne()}}};function Bt(D){return D.reduce((Z,K)=>Z.then(()=>y(K)),Promise.resolve())}return Sn}function rO(t,e){const n=[],s=[],r=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const c=e.matched[o];c&&(t.matched.find(h=>gi(h,c))?s.push(c):n.push(c));const l=t.matched[o];l&&(e.matched.find(h=>gi(h,l))||r.push(l))}return[n,s,r]}function iO(){return _n(Sl)}const oO="/assets/t-rex-drawing-big-v2-CQ4SGh8b.svg",aO={},cO={class:"not-found-block block--not-found"};function lO(t,e,n,s,r,i){return we(),ke("section",cO,[...e[0]||(e[0]=[$n('<div class="container"><header class="not-found-block__header"><div class="not-found__heading-img"><img class="not-found-logo" src="'+oO+'"></div><h1 class="not-found__heading">404</h1><p class="not-found__shortline"> Whoops! Now a word from Oncetold Web Engineer, Buck Futz: </p><h2 class="not-found__heading"><em>&quot;Something Broke!&quot;</em></h2></header></div>',1)])])}const uO=Ke(aO,[["render",lO]]),hO={},dO={class:"cloud-row"};function fO(t,e,n,s,r,i){return we(),ke("div",dO,[...e[0]||(e[0]=[$n('<div class="cloud-row-top"><svg class="separator" width="100%" height="100" viewBox="0.1 0.1 180 40" preserveAspectRatio="none"><g transform="translate(-18.298844,-77.973964)"><path style="fill:#232f3e;" d="M 31.615583,86.351641 H 192.16499 v 26.901969 c 0,0 -32.03411,-14.237983 -59.62682,-12.72484 -22.34188,1.2252 -54.779359,9.72634 -54.779359,9.72634 0,0 -22.029534,3.62882 -34.471238,-1.88988 -12.441702,-5.51871 -11.67199,-22.013589 -11.67199,-22.013589 z"></path><path style="fill:#385266;" d="M 18.441597,78.106256 H 198.58126 v 39.288614 c 0,0 -43.10672,-27.825245 -73.47599,-19.687823 -30.369264,8.137423 -46.832208,12.548653 -46.832208,12.548653 0,0 -32.775418,8.05972 -46.735258,0 C 17.577964,102.19598 18.441597,78.106256 18.441597,78.106256 Z"></path></g></svg></div>',1)])])}const pO=Ke(hO,[["render",fO]]),mO="/assets/nes-v5-1400x1400-CWvFjG3j.jpg",gO={name:"TheSplash",components:{},props:[],setup(){return{}}},_O={class:"splash-block splash-block--dark"};function yO(t,e,n,s,r,i){return we(),ke("section",_O,[...e[0]||(e[0]=[$n('<div class="container"><header class="splash-summary__header"><a href="https://podcastindex.org/podcast/6014487" target="_blank"><picture class="splash-summary__image"><img src="'+mO+'" alt="Not Easily Squished Showart"></picture></a><h2 class="splash-summary__heading">Not Easily Squished</h2><h3 class="splash-summary__subhead">In Podcasting: It&#39;s Survive or Die!</h3><p class="splash-summary__text"> Why do podcasts fail? Because they are all built on easily squished concepts that lack vision, direction, and planning. If you want your podcast to survive, it demands real thought and structure that only comes with applying design principles that are proven to work. Go beyond content creation and delivery by following your host, Kyle M. Bondo, as he teaches you how you take your fragile podcast idea and transform it into fierce audio concept that is <em>Not Easily Squished!</em><br>Presented by <span class="splash-link"><a href="https://oncetold.com" target="_blank">Oncetold</a></span>. </p></header><article class="splash-summary__article"><h3 class="splash-summary__subhead"> Listen to Ep.01 - I am Not Easily Squished </h3><audio class="splash-player" id="player" controls type="audio/mpeg" src="https://op3.dev/e/media.oncetold.net/80000018/20800032/nes001-i-am-not-easily-squished.mp3"> Your browser does not support the audio element. </audio><h3 class="episode-details__follow"><a href="https://pod.link/1504157398" target="_blank">Pod.Link</a>  <a href="https://podcastindex.org/podcast/6014487" target="_blank">Podcast Index</a>  <a href="https://music.amazon.com/podcasts/eb115cc0-4248-435f-88d7-842d9f34a4be/not-easily-squished" target="_blank">Amazon</a>  <a href="https://podcasts.apple.com/us/podcast/not-easily-squished/id1504157398" target="_blank">Apple Podcasts</a>  </h3></article><article class="splash-summary__article"><a href="https://pod.link/1504157398" target="_blank"><button class="btn btn--dino-skin btn--stretched"> Listen to the Show </button></a></article></div>',1)])])}
3199const Ew=Ke(gO,[["render",yO]]),vO={name:"PageNotFound",components:{PageNotFoundHero:uO,CloudRow:pO,TheSplash:Ew}};function wO(t,e,n,s,r,i){const o=dt("PageNotFoundHero"),c=dt("CloudRow"),l=dt("TheSplash");return we(),ke(Tt,null,[ze(o),ze(c),ze(l)],64)}const EO=Ke(vO,[["render",wO]]),TO={name:"HomeView",components:{TheSplash:Ew}};function IO(t,e,n,s,r,i){const o=dt("TheSplash");return we(),Yo(o)}const SO=Ke(TO,[["render",IO]]),AO={},bO={class:"about-details-block"};function RO(t,e,n,s,r,i){return we(),ke("section",bO,[...e[0]||(e[0]=[$n('<div class="container"><article class="about-detail"><div class="about-detail__content"><h2 class="about-detail__heading">About the Show</h2><p class="about-detail__info"> Podcasting starts with an idea: an idea that is not easily squished! However, long before their creators ever sit down at the microphone, a podcast idea needs to be hardened, tested and found worthy. This goes beyond just content creation and delivery. It requires real thought and structure to design a podcast that will survive long enough to find an audience. Follow your host Kyle M. Bondo as he takes fragile podcast ideas and transforms them into fierce audio concepts that are Not Easily Squished! </p></div></article><article class="about-detail"><div class="about-detail__content"><h2 class="about-detail__heading">About the Host</h2><p class="about-detail__info"> Kyle M. Bondo is the Chief Creative and Founder of <a href="https://oncetold.com" target="_blank">Oncetold</a>, a podcast education and technology company dedicated to simplifying the complicated world of podcasting. He loves &quot;thinking bleep up&quot; to solve problems and has been creating both audio and visual ideas for over 20 years in hopes of making a small dent in the podcast universe. </p></div></article><article class="about-detail"><div class="about-detail__content"><h2 class="about-detail__heading">About the Theme Music</h2><p class="about-detail__info"><a href="https://audiojungle.net/item/what-are-you-waiting-for/15993045" target="_blank">What Are You Waiting For by NoiseWorld </a> is a motivational rock song by Australian artist <a href="https://audiojungle.net/user/noiseworld" target="_blank"><em>NoiseWorld</em></a>, about getting pumped up and taking action. It&#39;s classic rock feel makes it fun and full of power, while the lyrics inspire the listener that maybe it&#39;s time to start a podcast! </p></div></article><article class="about-detail"><div class="about-detail__content"><h2 class="about-detail__heading">Reach Out</h2><p class="about-detail__info"> Each episode of Not Easily Squished is produced by <a href="https://oncetold.com" target="_blank">Oncetold</a> in Fort Worth, Texas. We are always interested in your feedback! If you have constructive feedback, ideas for future episodes, or just want to tell us how we did, please <a href="mailto:[email protected]" target="_blank">drop us a line!</a></p></div></article></div>',1)])])}const CO=Ke(AO,[["render",RO]]),PO={name:"AboutView",components:{AboutDetails:CO}};function kO(t,e,n,s,r,i){const o=dt("AboutDetails");return we(),Yo(o)}const MO=Ke(PO,[["render",kO]]),DO={},NO={class:"extras-detail-block"};function OO(t,e,n,s,r,i){return we(),ke("section",NO,[...e[0]||(e[0]=[$n('<div class="container"><article class="extras-detail"><div class="extras-detail__content"><h2 class="extras-detail__heading">Extras</h2><p class="extras-detail__info">Some of the experiments I&#39;ve conducted:</p></div></article><article class="extras-detail"><div class="extras-detail__content"><h2 class="extras-detail__heading">PAUSE for Dramatic Effect</h2><h3 class="extras-detail__subhead"> Not all nightmares happen when you sleep! </h3><p class="extras-detail__info"> Douglas Dire&#39;s world is one of isolation. Once a decorated Iraq War veteran, he now roams the streets haunted by the memory of friends lost in combat. With a fleeting grip on reality, a dark past full of unresolved pain, and a hopeless future, Douglas stumbles upon a ring in an empty parking lot that forces him to confront a secret he didn&#39;t know he was keeping. </p><p class="extras-detail__info"> Introducing Pause for Dramatic Effect, an audio drama podcast about a US Marine Corps veteran challenged by survivor&#39;s guilt, dark forces, and ancient magic. </p><p class="extras-detail__info"><a href="https://pausefordramaticeffect.com/" target="_blank">Listen to the Podcast</a>! </p></div></article></div>',1)])])}const xO=Ke(DO,[["render",OO]]),VO={name:"ExtrasView",components:{ExtrasDetails:xO}};function LO(t,e,n,s,r,i){const o=dt("ExtrasDetails");return we(),Yo(o)}const FO=Ke(VO,[["render",LO]]),UO={},jO={class:"spin"};function $O(t,e){return we(),ke("div",jO)}const Tw=Ke(UO,[["render",$O]]),BO={name:"EpisodesList",components:{TheSpinner:Tw},setup(){const t=gn(null),e=gn([]),n="7qmtayHFQOKm9RTOWafi";
3199console.log("otSiteID: ",n);try{const s=sw(vl(Tl,`sites/${n}/episodes`),Y2("index","desc")),r=J2(s,i=>{let o=[];i.docs.forEach(c=>{const l=c.data();o.push({...l,slug:l.slug})}),e.value=o});T_(i=>{i(()=>r())})}catch(s){t.value=s.message,console.error(t.value)}return{otSiteID:n,episodes:e,error:t}}},HO={class:"episodes-items-block"},WO={class:"container"},zO={key:0},YO={class:"episodes-error"},qO={class:"episodes-error-message"},GO={key:1,class:"episodes-grid"},KO={class:"episodes-item__content"},QO={class:"episodes-item__content-left"},JO={class:"articles-item__thumb"},XO=["src","alt"],ZO={class:"episodes-item__content-right"},ex={class:"episodes-item-heading"},tx={class:"episodes-item__heading"},nx={class:"episodes-item__excerpt"},sx={key:2};function rx(t,e,n,s,r,i){const o=dt("router-link"),c=dt("TheSpinner");return we(),ke("section",HO,[oe("div",WO,[s.error?(we(),ke("div",zO,[oe("div",YO,[oe("div",qO,kn(s.error),1)])])):Iu("",!0),s.episodes?(we(),ke("div",GO,[(we(!0),ke(Tt,null,c_(s.episodes,(l,h)=>(we(),ke("article",{class:"episodes-item",key:h},[oe("div",KO,[oe("div",QO,[oe("div",JO,[oe("img",{src:`/images/${l.thumb}`,alt:l.title},null,8,XO)])]),oe("div",ZO,[oe("div",ex,[ze(o,{to:{name:"EpisodesDetail",params:{slug:l.slug}}},{default:t_(()=>[oe("h2",tx,kn(l.title),1)]),_:2},1032,["to"]),oe("p",nx,kn(l.excerpt),1)])])])]))),128))])):(we(),ke("div",sx,[ze(c)]))])])}const ix=Ke(BO,[["render",rx]]),ox={},ax={class:"block container"};function cx(t,e,n,s,r,i){return we(),ke("section",ax,[...e[0]||(e[0]=[oe("header",{class:"block__header"},null,-1)])])}const lx=Ke(ox,[["render",cx]]),ux={name:"EpisodesView",components:{EpisodesList:ix,TheSpacer:lx}};function hx(t,e,n,s,r,i){const o=dt("EpisodesList"),c=dt("TheSpacer");return we(),ke(Tt,null,[ze(o),ze(c)],64)}const dx=Ke(ux,[["render",hx]]),fx="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2051%2051'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23393939;}.cls-2{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-1'%20cx='25.5'%20cy='25.5'%20r='25.5'/%3e%3crect%20class='cls-2'%20x='24.4'%20y='27.9'%20width='1.6'%20height='15.24'%20rx='0.8'%20transform='matrix(0.78,%20-0.63,%200.63,%200.78,%20-21.26,%2015.39)'/%3e%3crect%20class='cls-2'%20x='33.3'%20y='27.9'%20width='1.6'%20height='15.24'%20rx='0.8'%20transform='translate(24%20-21.9)%20rotate(37.3)'/%3e%3c/svg%3e",px="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA4JJREFUWEfF12nI7VMUBvDfpWSeP5BMt2sqMl7KkEzhlkS5hBDKEIlkTuZZRGaRMl6S8MHMB2Omm6FQKGOGjHVDpp63tevfue8599zTOawvp7P3f+/17LWe9ay9ZxifzcaDmIeb8OkwW88Y5qMhvzkMd9W3v2Et/LCotZMC8Ap2we//B4D98MiiHLf5SURgE3wwaQD3Y9dycg7+wdVYAV9hB1yP7eqbk3HPdKBGjcBnWLs2vA1/4dgCkj13r4pYGfl/DU4ZN4CXytEn5XhDzMXTuB2H1KkPrbIcC4CZuAAHVb2H6WvUyb7DAXihc9IbceS4AMRpwr18ObgPd2PT+v8+nqpULFNjD+PdcQCIyNyJP3BR5fNxHD4E238tgTphVA5sjeR7AebgNUTpbuhHrB5HIeyLOHgUAEvgzQrzHpXfFfEzUn4XdzbdssONrGn2Nr7FnqMACKsfwJU4rTZYH2H+cbi5s+nHCEk/xzqd8WeQctxmWABLIqeNmITVa2Jd/FQbZKPXcWBVQts38ytVqpbrOMsBtkWAL2S9QrRVEaYxOwtuxTGdlQnlE6UBz3bG+wFIKUYLkrqBALbHk1Vmz+HrEpN9EMY3C5kiq8n5/M74o1gPXxRZ29SFOBspzYW6Y4vAKngPq+EIROvPwKUlNN90HJ2I6yrPyXc/S184vYQoaUyPeAgB9H1b1ABcXiQ7CnfUZJwcjeQzzabZeTi3IpXSnM5yGQn5NsbfiBZEwMKvgA7HPszCAFiqwp2BEK85S+7270htc5QuF3nNhl1gXSAhXiooynk+vsTqdchT8RHCtwUBsHPVdzaN2jXbCBv05D9z92KnTjecLgIh7aqVwt75ltozcVkAnIRrq4aHuUimAtKAthiQ/0FTScM7WBqzAiBqFjRJxZ8DVu5V4Yw0J/Qv17r8Lq61KMwMgFYmQZRm088iqTl1ZDgSHZYnGnsvrveS5SktCYDjq7GEsVPM7GPhSiKUE2fdbvgRb4wAoPFuTjbKve1VpF2mw/0X1t4QswMgpEjLzGk2r/vdpEHkMrNvhK8JUUh4SUlmfidpm1WLz9thbgMQnX4LuViehasmFIlZRdx017wl53e7YUj4fNV4lOqxYd52Q4YqfiJqae/LVo+4Imt723EuErdUmYz6ZhiE6Zdqcnk9T1k/J3le7divhw956u5nEa70g7T7drGZmv8X5bm/DOep7yQAAAAASUVORK5CYII=",mx="/assets/flowgnar-about-CeLHysWT.svg",gx="/assets/flowgnar-boosts-9y0zJJEx.svg",_x="/assets/flowgnar-episodes-BUzixev6.svg",yx="/assets/flowgnar-fine-print-IXQjuJ9d.svg",vx="/assets/flowgnar-logo-footer-B2fbSt1T.svg",wx="/assets/flowgnar-logo-footer-B2fbSt1T.svg",Ex="/assets/flowgnar-logo-text-ChRxyV34.svg",Tx="data:image/svg+xml,%3csvg%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='heart'%20class='svg-inline--fa%20fa-heart%20fa-w-16'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M462.3%2062.6C407.5%2015.9%20326%2024.3%20275.7%2076.2L256%2096.5l-19.7-20.3C186.1%2024.3%20104.5%2015.9%2049.7%2062.6c-62.8%2053.6-66.1%20149.8-9.9%202
319907.9l193.5%20199.8c12.5%2012.9%2032.8%2012.9%2045.3%200l193.5-199.8c56.3-58.1%2053-154.3-9.8-207.9z'%3e%3c/path%3e%3c/svg%3e",Ix="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iNTQiIHZpZXdCb3g9IjAgMCAyMDkgNTQiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6ICMyNTg0ZmY7CiAgICAgICAgc3Ryb2tlOiAjMjU4NGZmOwogICAgICB9CgogICAgICAuY2xzLTEsIC5jbHMtMiB7CiAgICAgICAgc3Ryb2tlLWxpbmVjYXA6IHJvdW5kOwogICAgICAgIHN0cm9rZS1saW5lam9pbjogcm91bmQ7CiAgICAgICAgc3Ryb2tlLXdpZHRoOiAxMHB4OwogICAgICAgIGZpbGwtcnVsZTogZXZlbm9kZDsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiAjZmYzNDAwOwogICAgICAgIHN0cm9rZTogI2ZmMzQwMDsKICAgICAgICBtaXgtYmxlbmQtbW9kZTogbGlnaHRlbjsKICAgICAgfQoKICAgICAgLmNscy0zIHsKICAgICAgICBmb250LXNpemU6IDMyLjQ5OHB4OwogICAgICAgIGZpbGw6ICNmZmY7CiAgICAgICAgZm9udC1mYW1pbHk6IEludGVyOwogICAgICAgIGZvbnQtd2VpZ2h0OiA3MDA7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDxwYXRoIGlkPSJQb2x5Z29uXzFfY29weV8yIiBkYXRhLW5hbWU9IlBvbHlnb24gMSBjb3B5IDIiIGNsYXNzPSJjbHMtMSIgZD0iTTQzLjg1MSwyOS43TDI0LjI0NCwzOS4yLDMyLjAzNywxNC4wMloiLz4KICA8cGF0aCBpZD0iUG9seWdvbl8xX2NvcHlfMi0yIiBkYXRhLW5hbWU9IlBvbHlnb24gMSBjb3B5IDIiIGNsYXNzPSJjbHMtMiIgZD0iTTM3LjAzMywyOS43TDU2LjY0LDM5LjIsNDguODQ3LDE0LjAyWiIvPgogIDx0ZXh0IGlkPSJNb3NoaWZ5IiBjbGFzcz0iY2xzLTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcxLjQ2NiAzNS40MzcpIHNjYWxlKDAuOTIzKSI+TW9zaGlmeTwvdGV4dD4KPC9zdmc+Cg==",Sx="data:image/svg+xml,%3csvg%20id='light'%20enable-background='new%200%200%2024%2024'%20height='512'%20viewBox='0%200%2024%2024'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m21.5%2024h-19c-1.379%200-2.5-1.122-2.5-2.5v-19c0-1.378%201.121-2.5%202.5-2.5h19c1.379%200%202.5%201.122%202.5%202.5v19c0%201.378-1.121%202.5-2.5%202.5zm-19-23c-.827%200-1.5.673-1.5%201.5v19c0%20.827.673%201.5%201.5%201.5h19c.827%200%201.5-.673%201.5-1.5v-19c0-.827-.673-1.5-1.5-1.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20d='m16.5%208h-9c-.276%200-.5-.224-.5-.5s.224-.5.5-.5h9c.276%200%20.5.224.5.5s-.224.5-.5.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20d='m16.5%2012.5h-9c-.276%200-.5-.224-.5-.5s.224-.5.5-.5h9c.276%200%20.5.224.5.5s-.224.5-.5.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20d='m16.5%2017h-9c-.276%200-.5-.224-.5-.5s.224-.5.5-.5h9c.276%200%20.5.224.5.5s-.224.5-.5.5z'/%3e%3c/g%3e%3c/svg%3e",Ax="/assets/nes-book-cover-amazon-kindle-hdx-2560x1600-v1-Z5dQ6dZD.jpg",bx="/assets/nes-v4-1400x1400-qf4iipG1.jpg",Rx="/assets/nes-v4-banner-1200x644-Ddy7vrML.jpg",Cx="/assets/nes-v4-banner-1920x480-DBdnKyti.jpg",Px="/assets/nes-v5-1400x1400-CWvFjG3j.jpg",kx="/assets/not-easily-squished-title-500x200-v3-ITP2xTGu.png",Mx="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M467.812,431.851l-36.629-61.056c-16.917-28.181-25.856-60.459-25.856-93.312V224c0-67.52-45.056-124.629-106.667-143.04%20V42.667C298.66,19.136,279.524,0,255.993,0s-42.667,19.136-42.667,42.667V80.96C151.716,99.371,106.66,156.48,106.66,224v53.483%20c0,32.853-8.939,65.109-25.835,93.291l-36.629,61.056c-1.984,3.307-2.027,7.403-0.128,10.752c1.899,3.349,5.419,5.419,9.259,5.419%20H458.66c3.84,0,7.381-2.069,9.28-5.397C469.839,439.275,469.775,435.136,467.812,431.851z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M188.815,469.333C200.847,494.464,226.319,512,255.993,512s55.147-17.536,67.179-42.667H188.815z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e",Dx="/assets/oncetold-alby-qr-code-BItp9JP5.svg",Nx="/assets/oncetold-linkedin-adopt-a-good-enough-mentality-1200x644-Cvs3WlcB.jpg",Ox="/assets/oncetold-linkedin-bootstraping-an-audio-drama-podcast-1200x644-DcxR0seM.jpg",xx="/assets/oncetold-linkedin-does-your-audience-love-your-story-1200x644-CB7NUttK.jpg",Vx="/assets/oncetold-linkedin-dont-do-an-interview-podcast-1200x644-hWDqjtp4.jpg",Lx="/assets/oncetold-linkedin-flow-is-everything-1200x644-DsZWivCg.jpg",Fx="/assets/oncetold-linkedin-future-of-total-transcription-1200x644-D-xX0S0g.jpg",Ux="/assets/oncetold-linkedin-in-a-world-of-ai-slop-1200x644-BZU1o0SZ.jpg",jx="/assets/oncetold-linkedin-it-doesnt-have-to-make-money-1200x644-BqC9WN6a.jpg",$x="/assets/oncetold-linkedin-listeners-can-smell-a-fake-1200x644-DkudchIG.jpg",Bx="/assets/oncetold-linkedin-look-whos-talking-1200x644-BlP5Prxq.jpg",Hx="/assets/oncetold-linkedin-love-your-idea-1200x644-CrnLLUoo.jpg",Wx="/assets/oncetold-linkedin-pick-a-fight-1200x644-DqLNqQNT.jpg",zx="/assets/oncetold-linkedin-selecting-the-best-audio-drama-music-1200x644-DcbzPD3C.jpg",Yx="/assets/oncetold-linkedin-starting-an-audio-drama-podcast-1200x644-ClBnL6lp.jpg",qx="/assets/oncetold-linkedin-take-an-interest-1200x644-Cih6HEmM.jpg",Gx="/assets/oncetold-linkedin-you-are-the-secret-ingredient-1200x644-CNAz4Xg9.jpg",Kx="/assets/oncetold-linkedin-you-might-suck-1200x644-CXRPomT5.jpg",Qx="/assets/oncetold-linkedin-your-podcast-starts-here-1200x644-CS_5m3-l.jpg",Jx="/assets/oncetold-linkedin-your-weird-thing-1200x644-BD-cxPmM.jpg",Xx="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20width='67.58'%20height='54.68'%20viewBox='0%200%2067.58%2054.68'%3e%3cpath%20d='M44.93,28V24.06c0-1.38-1.39-2.47-3.17-2.47s-3.18,1.09-3.18,2.47V28a1.21,1.21,0,0,0,1.21,1.21h3.93A1.21,1.21,0,0,0,44.93,28Z'%20transform='translate(-0.03%20-0.04)'%20fill='%23fff'/%3e%3cpath%20d='M56.11,29.59,55,17.65V10.42a1.66,1.66,0,0,0-1.66-1.
319966H49.05a1.66,1.66,0,0,0-1.66,1.66h0V13H45.6V10.42a1.66,1.66,0,0,0-1.66-1.66h-.76v-3l3.17-1a1.66,1.66,0,0,0,1.07-2.09,1.63,1.63,0,0,0-1.07-1.07L42,.12a1.67,1.67,0,0,0-1.5.23,1.69,1.69,0,0,0-.69,1.35V8.8h-1a1.66,1.66,0,0,0-1.67,1.65h0v2.62H35.39V10.42a1.66,1.66,0,0,0-1.66-1.66H29.44a1.66,1.66,0,0,0-1.66,1.66h0V14A20.67,20.67,0,0,0,15,25.06h-.1a14.83,14.83,0,0,0,0,29.66H55a12.59,12.59,0,0,0,1.11-25.13ZM55,51.39H14.83a11.5,11.5,0,0,1-1.1-22.95A20.74,20.74,0,0,0,13,33.92a1.67,1.67,0,0,0,3.33,0A17.47,17.47,0,0,1,27.75,17.55v.1L25.82,38.32a10.66,10.66,0,0,0-3.67,1,1.67,1.67,0,0,0,.77,3.15,1.71,1.71,0,0,0,.76-.19,9.22,9.22,0,0,1,7.39,0,1.68,1.68,0,0,0,1.53-3h0a10.89,10.89,0,0,0-3.44-1L31.07,17.8V12h1v2.62a1.67,1.67,0,0,0,1.67,1.67h5.12a1.67,1.67,0,0,0,1.66-1.67V12h1.77v2.62a1.66,1.66,0,0,0,1.65,1.67H49a1.66,1.66,0,0,0,1.66-1.66h0V12h1v5.8l1.11,11.87a12.48,12.48,0,0,0-6.7,3.47,1.67,1.67,0,0,0,2.36,2.35A9.18,9.18,0,0,1,53.07,33h0a10.35,10.35,0,0,1,1.23-.16,1.69,1.69,0,0,0,.45,0,1.65,1.65,0,0,0,.32-.06A9.27,9.27,0,0,1,55,51.29Z'%20transform='translate(-0.03%20-0.04)'%20fill='ivory'/%3e%3c/svg%3e",Zx="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMywgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0MDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0ZGRkZGMDt9Cjwvc3R5bGU+CjxnPgoJPGc+CgkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTEzLjQsNjMuMWMwLTE3LjcsMTItMjcuOSwyNS4yLTI3LjlzMjUuMiwxMC4yLDI1LjIsMjcuOWMwLDE3LjYtMTIsMjcuOC0yNS4yLDI3LjhTMTMuNCw4MC43LDEzLjQsNjMuMXoKCQkJIE01MSw2My4xYzAtMTAuNi00LjctMTcuNy0xMi40LTE3LjdjLTcuOCwwLTEyLjQsNy4xLTEyLjQsMTcuN2MwLDEwLjYsNC43LDE3LjYsMTIuNCwxNy42QzQ2LjQsODAuNyw1MSw3My43LDUxLDYzLjF6Ii8+CgkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTcyLjksMzYuNmgxMC4ybDEsNy4yaDAuM2M0LjgtNC42LDEwLjItOC41LDE3LjQtOC41YzExLjQsMCwxNi4zLDcuNywxNi4zLDIxLjF2MzMuM2gtMTIuNFY1Ny45CgkJCWMwLTguNy0yLjUtMTItOC4zLTEyYy00LjcsMC03LjcsMi4zLTEyLjEsNi42djM3LjFINzIuOVYzNi42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMjYuNyw2My4xYzAtMTcuNywxMi41LTI3LjksMjYuNi0yNy45YzYuNywwLDExLjcsMi42LDE1LjUsNmwtNiw4LjFjLTIuOC0yLjUtNS41LTMuOS04LjgtMy45CgkJCWMtOC42LDAtMTQuNSw3LjEtMTQuNSwxNy43YzAsMTAuNiw1LjgsMTcuNiwxNC4xLDE3LjZjNC4xLDAsNy45LTIsMTEtNC42bDUuMSw4LjJjLTUsNC40LTExLjMsNi41LTE3LjMsNi41CgkJCUMxMzcuOCw5MC45LDEyNi43LDgwLjcsMTI2LjcsNjMuMXoiLz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTczLjMsNjMuMWMwLTE3LjIsMTItMjcuOSwyNC41LTI3LjljMTQuMywwLDIxLjksMTAuNCwyMS45LDI1LjJjMCwyLjQtMC4zLDQuOC0wLjUsNmgtMzMuNwoJCQljMSw5LjQsNy4xLDE0LjgsMTUuNiwxNC44YzQuNSwwLDguNC0xLjQsMTIuMy0zLjhsNC4yLDcuN2MtNS4xLDMuNC0xMS40LDUuNy0xOC4yLDUuN0MxODQuOCw5MC45LDE3My4zLDgwLjYsMTczLjMsNjMuMXoKCQkJIE0yMDguOSw1OGMwLTguMi0zLjYtMTMuMS0xMC45LTEzLjFjLTYuMiwwLTExLjYsNC42LTEyLjcsMTMuMUgyMDguOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjMwLjIsNzEuN1Y0Ni40aC03LjZ2LTkuM2w4LjItMC42bDEuNS0xNC41aDEwLjN2MTQuNWgxMy41djkuOWgtMTMuNXYyNS4zYzAsNi4yLDIuNCw5LjMsNy41LDkuMwoJCQljMS44LDAsNC0wLjYsNS41LTEuMmwyLjEsOS4yYy0yLjksMS02LjYsMS45LTEwLjgsMS45QzIzNC43LDkwLjksMjMwLjIsODMuMiwyMzAuMiw3MS43eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yNjAuNiw2My4xYzAtMTcuNywxMi0yNy45LDI1LjItMjcuOVMzMTEsNDUuNSwzMTEsNjMuMWMwLDE3LjYtMTIsMjcuOC0yNS4yLDI3LjhTMjYwLjYsODAuNywyNjAuNiw2My4xegoJCQkgTTI5OC4zLDYzLjFjMC0xMC42LTQuNy0xNy43LTEyLjQtMTcuN3MtMTIuNCw3LjEtMTIuNCwxNy43YzAsMTAuNiw0LjcsMTcuNiwxMi40LDE3LjZTMjk4LjMsNzMuNywyOTguMyw2My4xeiIvPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zMjAuMSw3NlYxMy4zaDEyLjR2NjMuM2MwLDMuMSwxLjQsNC4xLDIuNyw0LjFjMC42LDAsMSwwLDEuOS0wLjJsMS42LDkuM2MtMS41LDAuNi0zLjYsMS4xLTYuNiwxLjEKCQkJQzMyMy40LDkwLjksMzIwLjEsODUuMiwzMjAuMSw3NnoiLz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzQyLjksNjMuMWMwLTE3LjMsMTAuOC0yNy45LDIyLjUtMjcuOWM2LDAsOS44LDIuMiwxMy45LDUuOGwtMC41LTguNlYxMy4zaDEyLjR2NzYuM2gtMTAuMmwtMS01LjdoLTAuMwoJCQljLTMuOSwzLjktOS40LDctMTUuMSw3QzM1MS41LDkwLjksMzQyLjksODAuNiwzNDIuOSw2My4xeiBNMzc4LjgsNzQuN1Y0OS45Yy0zLjYtMy4yLTcuMi00LjQtMTAuOC00LjRjLTYuNywwLTEyLjMsNi40LTEyLjMsMTcu
3199NQoJCQljMCwxMS41LDQuNCwxNy42LDEyLjEsMTcuNkMzNzEuOSw4MC42LDM3NS4zLDc4LjgsMzc4LjgsNzQuN3oiLz4KCTwvZz4KPC9nPgo8dGV4dCBpZD0iT25jZXRvbGQiPk9uY2V0b2xkPC90ZXh0Pgo8L3N2Zz4K",e4="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.2.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20283.5%20283.5'%20style='enable-background:new%200%200%20283.5%20283.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M188.4,144.4v-16.5c0-5.8-5.9-10.4-13.3-10.4c-7.5,0-13.3,4.6-13.3,10.4v16.5c0,2.8,2.3,5.1,5.1,5.1h16.5%20C186.2,149.5,188.4,147.2,188.4,144.4z'/%3e%3cpath%20class='st0'%20d='M235.3,151.1l-4.7-50.1V70.7c0-3.9-3.1-7-7-7h-18c-3.9,0-7,3.1-7,7v11h-7.5v-11c0-3.9-3.1-7-7-7h-3.2V51%20l13.3-4.4c2.9-0.9,4.8-3.6,4.8-6.6c0-3-1.9-5.7-4.8-6.6l-18.1-6c-2.1-0.7-4.5-0.3-6.3,1c-1.8,1.3-2.9,3.4-2.9,5.7v12v17.8h-4.3%20c-3.9,0-7,3.1-7,7v11h-7.5v-11c0-3.9-3.1-7-7-7h-18c-3.9,0-7,3.1-7,7v15c-23.4,7-43.1,23.6-53.8,46.4c-0.1,0-0.3,0-0.4,0%20C27.9,132.1,0,160,0,194.3c0,34.3,27.9,62.2,62.2,62.2h168.5c29.1,0,52.8-23.7,52.8-52.8C283.5,176.1,262.3,153.5,235.3,151.1z%20M230.6,242.5H62.2c-26.6,0-48.2-21.6-48.2-48.2c0-25,19.2-45.7,43.6-48c-2,7.3-3.1,15-3.1,23c0,3.9,3.1,7,7,7c3.9,0,7-3.1,7-7%20c0-31.5,20-58.3,47.9-68.6v0.4l-8.1,86.7c-5.6,0.6-11,2.1-15.4,4.4c-3.4,1.8-4.7,6-3,9.4c1.2,2.4,3.7,3.8,6.2,3.8%20c1.1,0,2.2-0.3,3.2-0.8c8.2-4.3,22.7-4.3,31,0c3.4,1.8,7.6,0.4,9.4-3c1.8-3.4,0.5-7.6-3-9.4c-4.2-2.2-9.2-3.6-14.4-4.2l8-85.9%20c0-0.2,0-0.4,0-0.6V77.7h4v11c0,3.9,3.1,7,7,7h21.5c3.8,0,7-3.1,7-7v-11h7.5v11c0,3.9,3.1,7,7,7h21.5c3.8,0,7-3.1,7-7v-11h4v23.7%20c0,0.2,0,0.4,0,0.6l4.6,49.8c-10.6,1.9-20.3,6.8-28.1,14.5c-2.7,2.7-2.7,7.1,0,9.9c1.4,1.4,3.1,2,4.9,2c1.8,0,3.6-0.7,4.9-2%20c5.4-5.4,12.1-9,19.4-10.5h0c1.7-0.4,3.4-0.6,5.2-0.7c0.6,0.1,1.2,0.2,1.9,0.1c0.5,0,0.9-0.1,1.3-0.3%20c21.3,0.2,38.6,17.5,38.6,38.8C269.5,225.1,252.1,242.5,230.6,242.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",t4="/assets/sprite-DaCrPZMC.svg",n4="/assets/t-rex-big-Bc-DoGMB.svg",s4="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='120.000000pt'%20height='100.000000pt'%20viewBox='0%200%20120.000000%20100.000000'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20transform='translate(0.000000,100.000000)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3c/g%3e%3c/svg%3e",r4="/assets/t-rex-drawing-big-v2-CQ4SGh8b.svg",i4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20none;%20stroke:%20%232dd5a7;%20stroke-width:%202px;%20fill-rule:%20evenodd;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20id='Shape_10_copy_5'%20data-name='Shape%2010%20copy%205'%20class='cls-1'%20d='M2,4L6,8l8-8'/%3e%3c/svg%3e",o4={name:"EpisodesDetail",components:{TheSpinner:Tw},props:["slug"],setup(t){const e=gn(null),n=gn(null),s=gn(!0),r=iO(),i="7qmtayHFQOKm9RTOWafi";return T_(async()=>{try{const c=sw(vl(Tl,`sites/${i}/episodes`),z2("slug","==",t.slug));if((await Q2(c)).forEach(h=>{e.value={...h.data(),id:h.id}}),!e.value)throw new Error("Episode not found")}catch(c){n.value=c.message,console.error("Error fetching episode:",n.value)}finally{s.value=!1}}),{episode:e,error:n,isLoading:s,router:r,getImageUrl:c=>
3199new URL(Object.assign({"../assets/images/chevron.svg":fx,"../assets/images/favicon-32x32.png":px,"../assets/images/flowgnar-about.svg":mx,"../assets/images/flowgnar-boosts.svg":gx,"../assets/images/flowgnar-episodes.svg":_x,"../assets/images/flowgnar-fine-print.svg":yx,"../assets/images/flowgnar-logo-footer.svg":vx,"../assets/images/flowgnar-logo-header.svg":wx,"../assets/images/flowgnar-logo-text.svg":Ex,"../assets/images/heart-solid.svg":Tx,"../assets/images/logo.svg":Ix,"../assets/images/menu.svg":Sx,"../assets/images/nes-book-cover-amazon-kindle-hdx-2560x1600-v1.jpg":Ax,"../assets/images/nes-v4-1400x1400.jpg":bx,"../assets/images/nes-v4-banner-1200x644.jpg":Rx,"../assets/images/nes-v4-banner-1920x480.jpg":Cx,"../assets/images/nes-v5-1400x1400.jpg":Px,"../assets/images/not-easily-squished-title-500x200-v3.png":kx,"../assets/images/notification.svg":Mx,"../assets/images/oncetold-alby-qr-code.svg":Dx,"../assets/images/oncetold-linkedin-adopt-a-good-enough-mentality-1200x644.jpg":Nx,"../assets/images/oncetold-linkedin-bootstraping-an-audio-drama-podcast-1200x644.jpg":Ox,"../assets/images/oncetold-linkedin-does-your-audience-love-your-story-1200x644.jpg":xx,"../assets/images/oncetold-linkedin-dont-do-an-interview-podcast-1200x644.jpg":Vx,"../assets/images/oncetold-linkedin-flow-is-everything-1200x644.jpg":Lx,"../assets/images/oncetold-linkedin-future-of-total-transcription-1200x644.jpg":Fx,"../assets/images/oncetold-linkedin-in-a-world-of-ai-slop-1200x644.jpg":Ux,"../assets/images/oncetold-linkedin-it-doesnt-have-to-make-money-1200x644.jpg":jx,"../assets/images/oncetold-linkedin-listeners-can-smell-a-fake-1200x644.jpg":$x,"../assets/images/oncetold-linkedin-look-whos-talking-1200x644.jpg":Bx,"../assets/images/oncetold-linkedin-love-your-idea-1200x644.jpg":Hx,"../assets/images/oncetold-linkedin-pick-a-fight-1200x644.jpg":Wx,"../assets/images/oncetold-linkedin-selecting-the-best-audio-drama-music-1200x644.jpg":zx,"../assets/images/oncetold-linkedin-starting-an-audio-drama-podcast-1200x644.jpg":Yx,"../assets/images/oncetold-linkedin-take-an-interest-1200x644.jpg":qx,"../assets/images/oncetold-linkedin-you-are-the-secret-ingredient-1200x644.jpg":Gx,"../assets/images/oncetold-linkedin-you-might-suck-1200x644.jpg":Kx,"../assets/images/oncetold-linkedin-your-podcast-starts-here-1200x644.jpg":Qx,"../assets/images/oncetold-linkedin-your-weird-thing-1200x644.jpg":Jx,"../assets/images/oncetold-logo-sm.svg":Xx,"../assets/images/oncetold-logo-text.svg":Zx,"../assets/images/oncetold-logo.svg":e4,"../assets/images/sprite.svg":t4,"../assets/images/t-rex-big.svg":n4,"../assets/images/t-rex-drawing-100.svg":s4,"../assets/images/t-rex-drawing-big-v2.svg":r4,"../assets/images/tick.svg":i4})[`../assets/images/${c}`],import.meta.url).href}}},a4={key:0},c4={class:"episode-details-error"},l4={class:"episode-details-error-message"},u4={key:1},h4={class:"episode-details-blob-block"},d4={class:"episode-details-container"},f4={class:"episode-details-block__header"},p4={class:"episode-details__tags"},m4={key:0,class:"episode-details-tag-pill"},g4={href:"https://podcastindex.org/podcast/6014487",target:"_blank"},_4={class:"episode-details__image"},y4=["src","alt"],v4={class:"episode-details-blob"},w4={class:"episode-details-blob__content"},E4={class:"episode-details-audio"},T4=["src"],I4={class:"episode-details__title"},S4=["innerHTML"],A4={class:"episode-details-block__footer"},b4={key:2};function R4(t,e,n,s,r,i){const o=dt("TheSpinner");return we(),ke(Tt,null,[s.error?(we(),ke("div",a4,[oe("div",c4,[oe("div",l4,kn(s.error),1)])])):Iu("",!0),s.episode?(we(),ke("div",u4,[oe("section",h4,[oe("div",d4,[oe("header",f4,[oe("p",p4,[s.episode.epType==="serial"&&s.episode.season?(we(),ke("span",m4," Season "+kn(s.episode.season),1)):Iu("",!0),(we(!0),ke(Tt,null,c_(s.episode.tags,c=>(we(),ke("span",{key:c,class:"episode-details-tag-pill"},kn(c),1))),128))]),oe("a",g4,[oe("picture",_4,[oe("img",{src:s.getImageUrl(s.episode.thumb),alt:s.episode.title},null,8,y4)])])]),oe("article",v4,[oe("div",w4,[e[2]||(e[2]=oe("h3",{class:"episode-details__listen"},"🎧 LISTEN NOW",-1)),oe("div",E4,[oe("audio",{class:"episode-details-player",id:"epPlayer",controls:"",type:"audio/mpeg",src:s.episode.media}," Your browser does not support the audio element. ",8,T4),e[1]||(e[1]=$n('<h3 class="episode-details__follow"><a href="https://pod.link/1504157398" target="_blank">Podlink</a>  <a href="https://podcastindex.org/podcast/6014487" target="_blank">Podcast Index</a>  <a href="https://music.amazon.com/podcasts/eb115cc0-4248-435f-88d7-842d9f34a4be/not-easily-squished" target="_blank">Amazon</a>  <a href="https://podcasts.apple.com/us/podcast/not-easily-squished/id1504157398" target="_blank">Apple Podcasts</a>  </h3>
3199',1))]),oe("h2",I4,kn(s.episode.title),1),oe("div",{class:"episode-details-blob__body",innerHTML:s.episode.body},null,8,S4)])]),oe("footer",A4,[oe("button",{class:"btn btn--dino-sky btn--stretched",onClick:e[0]||(e[0]=c=>s.router.back())}," Back to Episodes List ")])])])])):(we(),ke("div",b4,[ze(o)]))],64)}const C4=Ke(o4,[["render",R4]]),P4={},k4={class:"fine-print-detail-block"};function M4(t,e,n,s,r,i){return we(),ke("section",k4,[...e[0]||(e[0]=[$n('<div class="container"><article class="fine-print-detail"><div class="fine-print-detail__content"><h2 class="fine-print-detail__heading">Value 4 Value Music Ownership</h2><p class="fine-print-detail__info"> Flowgnar is a <a href="https://oncetold.us/" target="_blank">Oncetold Music Experiment</a> created to support <a href="https://value4value.info/" target="_blank">Valueverse</a> music and was produced with the understanding that all songs are the property of their respective artists. Music is used for entertainment purposes only. </p></div></article><article class="fine-print-detail"><div class="fine-print-detail__content"><h2 class="fine-print-detail__heading">V4V Split Percentages</h2><p class="fine-print-detail__info"> The Flowgnar Value Block is setup to send 90 percent of all boosts to the artist&#39;s value block while the song is playing. Flowgnar receives the remaining 10 percent to cover production and hosting costs. </p></div></article><article class="fine-print-detail"><div class="fine-print-detail__content"><h2 class="fine-print-detail__heading">Segue Music</h2><p class="fine-print-detail__info"> Flowgnar segue music is <a href="https://www.pond5.com/royalty-free-music/item/245428917-vocal-energetic-garage-rock-instrumental" target="_blank">Cinderella by Joel Loopez</a> licensed via <a href="https://Pond5.com" target="_blank">Pond5.com</a>. </p></div></article></div>',1)])])}const D4=Ke(P4,[["render",M4]]),N4={name:"FooterLicensesView",components:{FinePrintDetails:D4}};function O4(t,e,n,s,r,i){const o=dt("FinePrintDetails");return we(),Yo(o)}const x4=Ke(N4,[["render",O4]]),V4={name:"SineWaveHome"},L4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 50",class:"sine-wave",preserveAspectRatio:"none",transform:"scale(-1, 1)",x:"-1440"};function F4(t,e,n,s,r,i){return we(),ke("svg",L4,[...e[0]||(e[0]=[$n('<defs data-v-a1448d5b><filter id="roughen" data-v-a1448d5b><feTurbulence type="fractalNoise" baseFrequency="0.05" numOctaves="2" result="noise" data-v-a1448d5b></feTurbulence><feDisplacementMap in="SourceGraphic" in2="noise" scale="4" data-v-a1448d5b></feDisplacementMap></filter></defs><path fill="#394955" fill-opacity="1" filter="url(#roughen)" d="M0,0L50,12C100,25,200,35,300,40C400,50,500,35,600,30C700,25,800,15,900,20C1000,25,1100,30,1200,25C1300,20,1400,30,1450,35L1500,40L1500,50L1450,50C1400,50,1300,50,1200,50C1100,50,1000,50,900,50C800,50,700,50,600,50C500,50,400,50,300,50C200,50,100,50,50,50L0,50Z" data-v-a1448d5b></path><path fill="none" stroke="#fff" stroke-width="2" filter="url(#roughen)" d="M0,0 L50,12 C100,25,200,35,300,40 C400,50,500,35,600,30 C700,25,800,15,900,20 C1000,25,1100,30,1200,25 C1300,20,1400,30,1450,35 L1500,40" data-v-a1448d5b></path>',3)])])}const U4=Ke(V4,[["render",F4],["__scopeId","data-v-a1448d5b"]]),j4={name:"TheHero",components:{SineWaveHome:U4}},$4={class:"hero-block block--hero"};function B4(t,e,n,s,r,i){return we(),ke("section",$4,[...e[0]||(e[0]=[oe("div",{class:"container"},[oe("header",{class:"hero-block__header"})],-1)])])}const Iw=Ke(j4,[["render",B4]]),H4={name:"RSSFeeder",setup(){const t=gn(""),e="7qmtayHFQOKm9RTOWafi";return console.log("otSiteID:",e),{rssUrl:t,importFeed:async()=>{if(!t.value){alert("Please enter a valid RSS feed URL.");return}try{await iw(vl(Tl,"feeders"),{url:t.value,siteID:e,createdAt:ow()}),console.log("Feed request submitted to Cloud Function."),t.value=""}catch(s){console.error("Error submitting feed request:",s)}}}}},W4={class:"splash-block splash-block--dark"},z4={class:"container"},Y4={class:"splash-summary__header"};function q4(t,e,n,s,r,i){return we(),ke("section",W4,[oe("div",z4,[oe("header",Y4,[e[2]||(e[2]=oe("h2",null,"RSS Feeder",-1)),n_(oe("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.rssUrl=o),placeholder:"Enter RSS Feed URL"},null,512),[[N_,s.rssUrl]]),oe("button",{onClick:e[1]||(e[1]=(...o)=>s.importFeed&&s.importFeed(...o))},"Import Feed")])])])}const G4=Ke(H4,[["render",q4]]),K4={name:"HomeView",components:{TheHero:Iw,RSSFeeder:G4}};function Q4(t,e,n,s,r,i){const o=dt("TheHero"),c=dt("RSSFeeder");return we(),ke(Tt,null,[ze(o),ze(c)],64)}const J4=Ke(K4,[["render",Q4]]),X4={name:"RSSFeeder",setup(){const t=gn(""),e="7qmtayHFQOKm9RTOWafi";
3199return console.log("otSiteID:",e),{rssUrl:t,importRefeed:async()=>{if(!t.value){alert("Please enter a valid RSS re-feed URL.");return}try{await iw(vl(Tl,"refeeders"),{url:t.value,siteID:e,createdAt:ow()}),console.log("Re-Feed request submitted to Cloud Function."),t.value=""}catch(s){console.error("Error submitting re-feed request:",s)}}}}},Z4={class:"splash-block splash-block--dark"},eV={class:"container"},tV={class:"splash-summary__header"};function nV(t,e,n,s,r,i){return we(),ke("section",Z4,[oe("div",eV,[oe("header",tV,[e[2]||(e[2]=oe("h2",null,"RSS Re-Feeder",-1)),n_(oe("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.rssUrl=o),placeholder:"Enter RSS Re-Feed URL"},null,512),[[N_,s.rssUrl]]),oe("button",{onClick:e[1]||(e[1]=(...o)=>s.importRefeed&&s.importRefeed(...o))},"Import Re-Feed")])])])}const sV=Ke(X4,[["render",nV]]),rV={name:"HomeView",components:{TheHero:Iw,RSSRefeeder:sV}};function iV(t,e,n,s,r,i){const o=dt("TheHero"),c=dt("RSSRefeeder");return we(),ke(Tt,null,[ze(o),ze(c)],64)}const oV=Ke(rV,[["render",iV]]),aV=[{path:"/",name:"home",component:SO},{path:"/:catchAll(.*)*",name:"SitePageNotFound",component:EO},{path:"/about",name:"about",component:MO},{path:"/extras",name:"extras",component:FO},{path:"/fine-print",name:"fine-print",component:x4},{path:"/episodes",name:"episodes",component:dx},{path:"/episodes/:slug",name:"EpisodesDetail",component:C4,props:!0},{path:"/rssfeeder",name:"rssfeeder",component:J4},{path:"/rssrefeeder",name:"rssrefeeder",component:oV}],Sw=sO({history:DN("/"),routes:aV}),Aw=_I(),cV=O_(My).use(Aw).use(Sw).mount("#app"),lV=tN();hr.onAuthStateChanged(t=>{lV.setup(t),cV||O_(My).use(Aw).use(Sw).mount("#app")});

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.