PageSourceSearch

https://fiorfitness.netlify.app/_nuxt/5YXSnQcP.js

js fiorfitness.netlify.app collected 2026-10-03 11:09:25 UTC 850,605 bytes, 1,997 lines download raw bytes

vendor: 8,991 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BAR48DQH.js","./CJ5JMFA1.js","./Bis-2WwU.js","./D6uftHTk.js","./DzFRn1Oq.js","./BmUXAoeR.js","./B2KaMc3S.js","./Djf5efFE.js","./CUl5ymSE.js","./index.BqQCXpkk.css","./Bfq3lCWC.js","./BZg5CmVV.js","./error-404.C3V-3Mc4.css","./CrpXGUdp.js","./error-500.dGVH929u.css"])))=>i.map(i=>d[i]);
2var Qb=Object.defineProperty;var Jb=(t,e,n)=>e in t?Qb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ri=(t,e,n)=>Jb(t,typeof e!="symbol"?e+"":e,n);/**
3* @vue/shared v3.5.13
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function yh(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const rt={},Er=[],Cn=()=>{},Zb=()=>!1,to=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_h=t=>t.startsWith("onUpdate:"),xt=Object.assign,bh=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},e0=Object.prototype.hasOwnProperty,Ze=(t,e)=>e0.call(t,e),Ve=Array.isArray,Tr=t=>no(t)==="[object Map]",lg=t=>no(t)==="[object Set]",t0=t=>no(t)==="[object RegExp]",je=t=>typeof t=="function",ut=t=>typeof t=="string",Xn=t=>typeof t=="symbol",st=t=>t!==null&&typeof t=="object",cg=t=>(st(t)||je(t))&&je(t.then)&&je(t.catch),hg=Object.prototype.toString,no=t=>hg.call(t),n0=t=>no(t).slice(8,-1),ug=t=>no(t)==="[object Object]",vh=t=>ut(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ar=yh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ha=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},i0=/-(\w)/g,un=Ha(t=>t.replace(i0,(e,n)=>n?n.toUpperCase():"")),r0=/\B([A-Z])/g,tr=Ha(t=>t.replace(r0,"-$1").toLowerCase()),za=Ha(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pl=Ha(t=>t?`on${za(t)}`:""),yi=(t,e)=>!Object.is(t,e),Es=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},dg=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},s0=t=>{const e=parseFloat(t);return isNaN(e)?t:e},fg=t=>{const e=ut(t)?Number(t):NaN;return isNaN(e)?t:e};let vd;const $a=()=>vd||(vd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wa(t){if(Ve(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=ut(i)?c0(i):Wa(i);if(r)for(const s in r)e[s]=r[s]}return e}else if(ut(t)||st(t))return t}const o0=/;(?![^(]*\))/g,a0=/:([^]+)/,l0=/\/\*[^]*?\*\//g;function c0(t){const e={};return t.replace(l0,"").split(o0).forEach(n=>{if(n){const i=n.split(a0);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Ga(t){let e="";if(ut(t))e=t;else if(Ve(t))for(let n=0;n<t.length;n++){const i=Ga(t[n]);i&&(e+=i+" ")}else if(st(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function h0(t){if(!t)return null;let{class:e,style:n}=t;return e&&!ut(e)&&(t.class=Ga(e)),n&&(t.style=Wa(n)),t}const u0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",d0=yh(u0);function pg(t){return!!t||t===""}const gg=t=>!!(t&&t.__v_isRef===!0),f0=t=>ut(t)?t:t==null?"":Ve(t)||st(t)&&(t.toString===hg||!je(t.toString))?gg(t)?f0(t.value):JSON.stringify(t,mg,2):String(t),mg=(t,e)=>gg(e)?mg(t,e.value):Tr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,r],s)=>(n[kl(i,s)+" =>"]=r,n),{})}:lg(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>kl(n))}:Xn(e)?kl(e):st(e)&&!Ve(e)&&!ug(e)?String(e):e,kl=(t,e="")=>{var n;return Xn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
7* @vue/reactivity v3.5.13
8* (c) 2018-present Yuxi (Evan) You and Vue contributors
9* @license MIT
10**/let Kt;class yg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Kt,!e&&Kt&&(this.index=(Kt.scopes||(Kt.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=Kt;try{return Kt=this,e()}finally{Kt=n}}}on(){Kt=this}off(){Kt=this.parent}stop(e){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;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 xh(t){return new yg(t)}function wh(){return Kt}function p0(t,e=!1){Kt&&Kt.cleanups.push(t)}let it;const Rl=new WeakSet;class _g{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,Kt&&Kt.active&&Kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rl.has(this)&&(Rl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vg(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xd(this),xg(this);const e=it,n=_n;it=this,_n=!0;try{return this.fn()}finally{wg(this),it=e,_n=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ah(e);this.deps=this.depsTail=void 0,xd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){hc(this)&&this.run()}get dirty(){return hc(this)}}let bg=0,Ts,As;function vg(t,e=!1){if(t.flags|=8,e){t.next=As,As=t;return}t.next=Ts,Ts=t}function Eh(){bg++}function Th(){if(--bg>0)return;if(As){let e=As;for(As=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Ts;){let e=Ts;for(Ts=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}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 wg(t){let e,n=t.depsTail,i=n;for(;i;){const r=i.prevDep;i.version===-1?(i===n&&(n=r),Ah(i),g0(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}t.deps=e,t.depsTail=n}function hc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Eg(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Eg(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===js))return;t.globalVersion=js;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!hc(t)){t.flags&=-3;return}const n=it,i=_n;it=t,_n=!0;try{xg(t);const r=t.fn(t._value);(e.version===0||yi(r,t._value))&&(t._value=r,e.version++)}catch(r){throw e.version++,r}finally{it=n,_n=i,wg(t),t.flags&=-3}}function Ah(t,e=!1){const{dep:n,prevSub:i,nextSub:r}=t;if(i&&(i.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Ah(s,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function g0(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let _n=!0;const Tg=[];function ki(){Tg.push(_n),_n=!1}function Ri(){const t=Tg.pop();_n=t===void 0?!0:t}function xd(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=it;it=void 0;try{e()}finally{it=n}}}let js=0;class m0{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 Sh{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}track(e){if(!it||!_n||it===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==it)n=this.activeLink=new m0(it,this),it.deps?(n.prevDep=it.depsTail,it.depsTail.nextDep=n,it.depsTail=n):it.deps=it.depsTail=n,Ag(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=it.depsTail,n.nextDep=void 0,it.depsTail.nextDep=n,it.depsTail=n,it.deps===n&&(it.deps=i)}return n}trigger(e){this.version++,js++,this.notify(e)}notify(e){Eh();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Th()}}}function Ag(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ag(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const ca=new WeakMap,qi=Symbol(""),uc=Symbol(""),Bs=Symbol("");function Ut(t,e,n){if(_n&&it){let i=ca.get(t);i||ca.set(t,i=new Map);let r=i.get(n);r||(i.set(n,r=new Sh),r.map=i,r.key=n),r.track()}}function Hn(t,e,n,i,r,s){const o=ca.get(t);if(!o){js++;return}const a=c=>{c&&c.trigger()};
vendor: 4,164 bytes, line 10
10if(Eh(),e==="clear")o.forEach(a);else{const c=Ve(t),d=c&&vh(n);if(c&&n==="length"){const h=Number(i);o.forEach((m,w)=>{(w==="length"||w===Bs||!Xn(w)&&w>=h)&&a(m)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),d&&a(o.get(Bs)),e){case"add":c?d&&a(o.get("length")):(a(o.get(qi)),Tr(t)&&a(o.get(uc)));break;case"delete":c||(a(o.get(qi)),Tr(t)&&a(o.get(uc)));break;case"set":Tr(t)&&a(o.get(qi));break}}Th()}function y0(t,e){const n=ca.get(t);return n&&n.get(e)}function dr(t){const e=Ke(t);return e===t?e:(Ut(e,"iterate",Bs),hn(t)?e:e.map(Ht))}function qa(t){return Ut(t=Ke(t),"iterate",Bs),t}const _0={__proto__:null,[Symbol.iterator](){return Ml(this,Symbol.iterator,Ht)},concat(...t){return dr(this).concat(...t.map(e=>Ve(e)?dr(e):e))},entries(){return Ml(this,"entries",t=>(t[1]=Ht(t[1]),t))},every(t,e){return Nn(this,"every",t,e,void 0,arguments)},filter(t,e){return Nn(this,"filter",t,e,n=>n.map(Ht),arguments)},find(t,e){return Nn(this,"find",t,e,Ht,arguments)},findIndex(t,e){return Nn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Nn(this,"findLast",t,e,Ht,arguments)},findLastIndex(t,e){return Nn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Nn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ol(this,"includes",t)},indexOf(...t){return Ol(this,"indexOf",t)},join(t){return dr(this).join(t)},lastIndexOf(...t){return Ol(this,"lastIndexOf",t)},map(t,e){return Nn(this,"map",t,e,void 0,arguments)},pop(){return hs(this,"pop")},push(...t){return hs(this,"push",t)},reduce(t,...e){return wd(this,"reduce",t,e)},reduceRight(t,...e){return wd(this,"reduceRight",t,e)},shift(){return hs(this,"shift")},some(t,e){return Nn(this,"some",t,e,void 0,arguments)},splice(...t){return hs(this,"splice",t)},toReversed(){return dr(this).toReversed()},toSorted(t){return dr(this).toSorted(t)},toSpliced(...t){return dr(this).toSpliced(...t)},unshift(...t){return hs(this,"unshift",t)},values(){return Ml(this,"values",Ht)}};function Ml(t,e,n){const i=qa(t),r=i[e]();return i!==t&&!hn(t)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const b0=Array.prototype;function Nn(t,e,n,i,r,s){const o=qa(t),a=o!==t&&!hn(t),c=o[e];if(c!==b0[e]){const m=c.apply(t,s);return a?Ht(m):m}let d=n;o!==t&&(a?d=function(m,w){return n.call(this,Ht(m),w,t)}:n.length>2&&(d=function(m,w){return n.call(this,m,w,t)}));const h=c.call(o,d,i);return a&&r?r(h):h}function wd(t,e,n,i){const r=qa(t);let s=n;return r!==t&&(hn(t)?n.length>3&&(s=function(o,a,c){return n.call(this,o,a,c,t)}):s=function(o,a,c){return n.call(this,o,Ht(a),c,t)}),r[e](s,...i)}function Ol(t,e,n){const i=Ke(t);Ut(i,"iterate",Bs);const r=i[e](...n);return(r===-1||r===!1)&&Ph(n[0])?(n[0]=Ke(n[0]),i[e](...n)):r}function hs(t,e,n=[]){ki(),Eh();const i=Ke(t)[e].apply(t,n);return Th(),Ri(),i}const v0=yh("__proto__,__v_isRef,__isVue"),Sg=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Xn));function x0(t){Xn(t)||(t=String(t));const e=Ke(this);return Ut(e,"has",t),e.hasOwnProperty(t)}class Cg{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?R0:Rg:s?kg:Pg).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=Ve(e);if(!r){let c;if(o&&(c=_0[n]))return c;if(n==="hasOwnProperty")return x0}const a=Reflect.get(e,n,pt(e)?e:i);return(Xn(n)?Sg.has(n):v0(n))||(r||Ut(e,"get",n),s)?a:pt(a)?o&&vh(n)?a:a.value:st(a)?r?Mg(a):wn(a):a}}class Ig extends Cg{constructor(e=!1){super(!1,e)}set(e,n,i,r){let s=e[n];if(!this._isShallow){const c=Ti(s);if(!hn(i)&&!Ti(i)&&(s=Ke(s),i=Ke(i)),!Ve(e)&&pt(s)&&!pt(i))return c?!1:(s.value=i,!0)}const o=Ve(e)&&vh(n)?Number(n)<e.length:Ze(e,n),a=Reflect.set(e,n,i,pt(e)?e:r);return e===Ke(r)&&(o?yi(i,s)&&Hn(e,"set",n,i):Hn(e,"add",n,i)),a}deleteProperty(e,n){const i=Ze(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&i&&Hn(e,"delete",n,void 0),r}has(e,n){const i=Reflect.has(e,n);
vendor: 4,936 bytes, line 10
10return(!Xn(n)||!Sg.has(n))&&Ut(e,"has",n),i}ownKeys(e){return Ut(e,"iterate",Ve(e)?"length":qi),Reflect.ownKeys(e)}}class w0 extends Cg{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const E0=new Ig,T0=new w0,A0=new Ig(!0);const dc=t=>t,Ro=t=>Reflect.getPrototypeOf(t);function S0(t,e,n){return function(...i){const r=this.__v_raw,s=Ke(r),o=Tr(s),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,d=r[t](...i),h=n?dc:e?fc:Ht;return!e&&Ut(s,"iterate",c?uc:qi),{next(){const{value:m,done:w}=d.next();return w?{value:m,done:w}:{value:a?[h(m[0]),h(m[1])]:h(m),done:w}},[Symbol.iterator](){return this}}}}function Mo(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function C0(t,e){const n={get(r){const s=this.__v_raw,o=Ke(s),a=Ke(r);t||(yi(r,a)&&Ut(o,"get",r),Ut(o,"get",a));const{has:c}=Ro(o),d=e?dc:t?fc:Ht;if(c.call(o,r))return d(s.get(r));if(c.call(o,a))return d(s.get(a));s!==o&&s.get(r)},get size(){const r=this.__v_raw;return!t&&Ut(Ke(r),"iterate",qi),Reflect.get(r,"size",r)},has(r){const s=this.__v_raw,o=Ke(s),a=Ke(r);return t||(yi(r,a)&&Ut(o,"has",r),Ut(o,"has",a)),r===a?s.has(r):s.has(r)||s.has(a)},forEach(r,s){const o=this,a=o.__v_raw,c=Ke(a),d=e?dc:t?fc:Ht;return!t&&Ut(c,"iterate",qi),a.forEach((h,m)=>r.call(s,d(h),d(m),o))}};return xt(n,t?{add:Mo("add"),set:Mo("set"),delete:Mo("delete"),clear:Mo("clear")}:{add(r){!e&&!hn(r)&&!Ti(r)&&(r=Ke(r));const s=Ke(this);return Ro(s).has.call(s,r)||(s.add(r),Hn(s,"add",r,r)),this},set(r,s){!e&&!hn(s)&&!Ti(s)&&(s=Ke(s));const o=Ke(this),{has:a,get:c}=Ro(o);let d=a.call(o,r);d||(r=Ke(r),d=a.call(o,r));const h=c.call(o,r);return o.set(r,s),d?yi(s,h)&&Hn(o,"set",r,s):Hn(o,"add",r,s),this},delete(r){const s=Ke(this),{has:o,get:a}=Ro(s);let c=o.call(s,r);c||(r=Ke(r),c=o.call(s,r)),a&&a.call(s,r);const d=s.delete(r);return c&&Hn(s,"delete",r,void 0),d},clear(){const r=Ke(this),s=r.size!==0,o=r.clear();return s&&Hn(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=S0(r,t,e)}),n}function Ch(t,e){const n=C0(t,e);return(i,r,s)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(Ze(n,r)&&r in i?n:i,r,s)}const I0={get:Ch(!1,!1)},P0={get:Ch(!1,!0)},k0={get:Ch(!0,!1)};const Pg=new WeakMap,kg=new WeakMap,Rg=new WeakMap,R0=new WeakMap;function M0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function O0(t){return t.__v_skip||!Object.isExtensible(t)?0:M0(n0(t))}function wn(t){return Ti(t)?t:Ih(t,!1,E0,I0,Pg)}function zn(t){return Ih(t,!1,A0,P0,kg)}function Mg(t){return Ih(t,!0,T0,k0,Rg)}function Ih(t,e,n,i,r){if(!st(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const o=O0(t);if(o===0)return t;const a=new Proxy(t,o===2?i:n);return r.set(t,a),a}function $n(t){return Ti(t)?$n(t.__v_raw):!!(t&&t.__v_isReactive)}function Ti(t){return!!(t&&t.__v_isReadonly)}function hn(t){return!!(t&&t.__v_isShallow)}function Ph(t){return t?!!t.__v_raw:!1}function Ke(t){const e=t&&t.__v_raw;return e?Ke(e):t}function kh(t){return!Ze(t,"__v_skip")&&Object.isExtensible(t)&&dg(t,"__v_skip",!0),t}const Ht=t=>st(t)?wn(t):t,fc=t=>st(t)?Mg(t):t;function pt(t){return t?t.__v_isRef===!0:!1}function nn(t){return Og(t,!1)}function Qi(t){return Og(t,!0)}function Og(t,e){return pt(t)?t:new L0(t,e)}class L0{constructor(e,n){this.dep=new Sh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ke(e),this._value=n?e:Ht(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,i=this.__v_isShallow||hn(e)||Ti(e);e=i?e:Ke(e),yi(e,n)&&(this._rawValue=e,this._value=i?e:Ht(e),this.dep.trigger())}}function nt(t){return pt(t)?t.value:t}function AM(t){return je(t)?t():nt(t)}const D0={get:(t,e,n)=>e==="__v_raw"?t:nt(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return pt(r)&&!pt(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function Lg(t){return $n(t)?t:new Proxy(t,D0)}function N0(t){const e=Ve(t)?new Array(t.length):{};for(const n in t)e[n]=Ng(t,n);return e}class V0{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,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 y0(Ke(this._object),this._key)}}class j0{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Dg(t,e,n){return pt(t)?t:je(t)?new j0(t):st(t)&&arguments.length>1?Ng(t,e,n):nn(t)}function Ng(t,e,n){const i=t[e];return pt(i)?i:new V0(t,e,n)}class B0{constructor(e,n,i){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Sh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=js-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}
vendor: 2,073 bytes, lines 10-13
10notify(){if(this.flags|=16,!(this.flags&8)&&it!==this)return vg(this,!0),!0}get value(){const e=this.dep.track();return Eg(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function F0(t,e,n=!1){let i,r;return je(t)?i=t:(i=t.get,r=t.set),new B0(i,r,n)}const Oo={},ha=new WeakMap;let $i;function U0(t,e=!1,n=$i){if(n){let i=ha.get(n);i||ha.set(n,i=[]),i.push(t)}}function H0(t,e,n=rt){const{immediate:i,deep:r,once:s,scheduler:o,augmentJob:a,call:c}=n,d=I=>r?I:hn(I)||r===!1||r===0?pi(I,1):pi(I);let h,m,w,k,A=!1,F=!1;if(pt(t)?(m=()=>t.value,A=hn(t)):$n(t)?(m=()=>d(t),A=!0):Ve(t)?(F=!0,A=t.some(I=>$n(I)||hn(I)),m=()=>t.map(I=>{if(pt(I))return I.value;if($n(I))return d(I);if(je(I))return c?c(I,2):I()})):je(t)?e?m=c?()=>c(t,2):t:m=()=>{if(w){ki();try{w()}finally{Ri()}}const I=$i;$i=h;try{return c?c(t,3,[k]):t(k)}finally{$i=I}}:m=Cn,e&&r){const I=m,V=r===!0?1/0:r;m=()=>pi(I(),V)}const j=wh(),U=()=>{h.stop(),j&&j.active&&bh(j.effects,h)};if(s&&e){const I=e;e=(...V)=>{I(...V),U()}}let C=F?new Array(t.length).fill(Oo):Oo;const x=I=>{if(!(!(h.flags&1)||!h.dirty&&!I))if(e){const V=h.run();if(r||A||(F?V.some((S,E)=>yi(S,C[E])):yi(V,C))){w&&w();const S=$i;$i=h;try{const E=[V,C===Oo?void 0:F&&C[0]===Oo?[]:C,k];c?c(e,3,E):e(...E),C=V}finally{$i=S}}}else h.run()};return a&&a(x),h=new _g(m),h.scheduler=o?()=>o(x,!1):x,k=I=>U0(I,!1,h),w=h.onStop=()=>{const I=ha.get(h);if(I){if(c)c(I,4);else for(const V of I)V();ha.delete(h)}},e?i?x(!0):C=h.run():o?o(x.bind(null,!0),!0):h.run(),U.pause=h.pause.bind(h),U.resume=h.resume.bind(h),U.stop=U,U}function pi(t,e=1/0,n){if(e<=0||!st(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,pt(t))pi(t.value,e,n);else if(Ve(t))for(let i=0;i<t.length;i++)pi(t[i],e,n);else if(lg(t)||Tr(t))t.forEach(i=>{pi(i,e,n)});else if(ug(t)){for(const i in t)pi(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&pi(t[i],e,n)}return t}/**
11* @vue/runtime-core v3.5.13
12* (c) 2018-present Yuxi (Evan) You and Vue contributors
13* @license MIT
14**/function io(t,e,n,i){try{return i?t(...i):t()}catch(r){Gr(r,e,n)}}function bn(t,e,n,i){if(je(t)){const r=io(t,e,n,i);return r&&cg(r)&&r.catch(s=>{Gr(s,e,n)}),r}if(Ve(t)){const r=[];for(let s=0;s<t.length;s++)r.push(bn(t[s],e,n,i));return r}}function Gr(t,e,n,i=!0){const r=e?e.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||rt;if(e){let a=e.parent;const c=e.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let m=0;m<h.length;m++)if(h[m](t,c,d)===!1)return}a=a.parent}if(s){ki(),io(s,null,10,[t,c,d]),Ri();return}}z0(t,n,r,i,o)}function z0(t,e,n,i=!0,r=!1){if(r)throw t;console.error(t)}const Xt=[];let En=-1;const Sr=[];let ci=null,gr=0;const Vg=Promise.resolve();let ua=null;function nr(t){const e=ua||Vg;return t?e.then(this?t.bind(this):t):e}function $0(t){let e=En+1,n=Xt.length;for(;e<n;){const i=e+n>>>1,r=Xt[i],s=Fs(r);s<t||s===t&&r.flags&2?e=i+1:n=i}return e}function Rh(t){if(!(t.flags&1)){const e=Fs(t),n=Xt[Xt.length-1];!n||!(t.flags&2)&&e>=Fs(n)?Xt.push(t):Xt.splice($0(e),0,t),t.flags|=1,jg()}}function jg(){ua||(ua=Vg.then(Bg))}function pc(t){Ve(t)?Sr.push(...t):ci&&t.id===-1?ci.splice(gr+1,0,t):t.flags&1||(Sr.push(t),t.flags|=1),jg()}function Ed(t,e,n=En+1){for(;n<Xt.length;n++){const i=Xt[n];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;Xt.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function da(t){if(Sr.length){const e=[...new Set(Sr)].sort((n,i)=>Fs(n)-Fs(i));if(Sr.length=0,ci){ci.push(...e);return}for(ci=e,gr=0;gr<ci.length;gr++){const n=ci[gr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ci=null,gr=0}}const Fs=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Bg(t){try{for(En=0;En<Xt.length;En++){const e=Xt[En];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),io(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;En<Xt.length;En++){const e=Xt[En];e&&(e.flags&=-2)}En=-1,Xt.length=0,da(),ua=null,(Xt.length||Sr.length)&&Bg()}}let Mt=null,Fg=null;function fa(t){const e=Mt;return Mt=t,Fg=t&&t.type.__scopeId||null,e}function Mh(t,e=Mt,n){if(!e||t._n)return t;const i=(...r)=>{i._d&&Dd(-1);const s=fa(e);let o;try{o=t(...r)}finally{fa(s),i._d&&Dd(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Tn(t,e,n,i){const r=t.dirs,s=e&&e.dirs;for(let o=0;o<r.length;o++){const a=r[o];s&&(a.oldValue=s[o].value);let c=a.dir[i];c&&(ki(),bn(c,n,8,[t.el,a,t,e]),Ri())}}const W0=Symbol("_vte"),Ug=t=>t.__isTeleport,hi=Symbol("_leaveCb"),Lo=Symbol("_enterCb");function G0(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lh(()=>{t.isMounted=!0}),Xa(()=>{t.isUnmounting=!0}),t}const on=[Function,Array],Hg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:on,onEnter:on,onAfterEnter:on,onEnterCancelled:on,onBeforeLeave:on,onLeave:on,onAfterLeave:on,onLeaveCancelled:on,onBeforeAppear:on,onAppear:on,onAfterAppear:on,onAppearCancelled:on},zg=t=>{const e=t.subTree;return e.component?zg(e.component):e},q0={name:"BaseTransition",props:Hg,setup(t,{slots:e}){const n=so(),i=G0();return()=>{const r=e.default&&Gg(e.default(),!0);if(!r||!r.length)return;const s=$g(r),o=Ke(t),{mode:a}=o;if(i.isLeaving)return Ll(s);const c=Td(s);if(!c)return Ll(s);let d=gc(c,o,i,n,m=>d=m);c.type!==wt&&Mr(c,d);let h=n.subTree&&Td(n.subTree);if(h&&h.type!==wt&&!mn(c,h)&&zg(n).type!==wt){let m=gc(h,o,i,n);if(Mr(h,m),a==="out-in"&&c.type!==wt)return i.isLeaving=!0,m.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete m.afterLeave,h=void 0},Ll(s);a==="in-out"&&c.type!==wt?m.delayLeave=(w,k,A)=>{const F=Wg(i,h);F[String(h.key)]=h,w[hi]=()=>{k(),w[hi]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{A(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return s}}};function $g(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==wt){e=n;break}}return e}const K0=q0;function Wg(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function gc(t,e,n,i,r){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:m,onBeforeLeave:w,onLeave:k,onAfterLeave:A,onLeaveCancelled:F,onBeforeAppear:j,onAppear:U,onAfterAppear:C,onAppearCancelled:x}=e,I=String(t.key),V=Wg(n,t),S=(T,v)=>{T&&bn(T,i,9,v)},E=(T,v)=>{const p=v[1];S(T,v),Ve(T)?T.every(y=>y.length<=1)&&p():T.length<=1&&p()},R={mode:o,persisted:a,beforeEnter(T){let v=c;
vendor: 12,843 bytes, lines 14-15
14if(!n.isMounted)if(s)v=j||c;else return;T[hi]&&T[hi](!0);const p=V[I];p&&mn(t,p)&&p.el[hi]&&p.el[hi](),S(v,[T])},enter(T){let v=d,p=h,y=m;if(!n.isMounted)if(s)v=U||d,p=C||h,y=x||m;else return;let u=!1;const g=T[Lo]=f=>{u||(u=!0,f?S(y,[T]):S(p,[T]),R.delayedLeave&&R.delayedLeave(),T[Lo]=void 0)};v?E(v,[T,g]):g()},leave(T,v){const p=String(t.key);if(T[Lo]&&T[Lo](!0),n.isUnmounting)return v();S(w,[T]);let y=!1;const u=T[hi]=g=>{y||(y=!0,v(),g?S(F,[T]):S(A,[T]),T[hi]=void 0,V[p]===t&&delete V[p])};V[p]=t,k?E(k,[T,u]):u()},clone(T){const v=gc(T,e,n,i,r);return r&&r(v),v}};return R}function Ll(t){if(ro(t))return t=Wn(t),t.children=null,t}function Td(t){if(!ro(t))return Ug(t.type)&&t.children?$g(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&je(n.default))return n.default()}}function Mr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Mr(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 Gg(t,e=!1,n){let i=[],r=0;for(let s=0;s<t.length;s++){let o=t[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===zt?(o.patchFlag&128&&r++,i=i.concat(Gg(o.children,e,a))):(e||o.type!==wt)&&i.push(a!=null?Wn(o,{key:a}):o)}if(r>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function Yn(t,e){return je(t)?xt({name:t.name},e,{setup:t}):t}function Oh(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Us(t,e,n,i,r=!1){if(Ve(t)){t.forEach((A,F)=>Us(A,e&&(Ve(e)?e[F]:e),n,i,r));return}if(_i(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Us(t,e,n,i.component.subTree);return}const s=i.shapeFlag&4?Uh(i.component):i.el,o=r?null:s,{i:a,r:c}=t,d=e&&e.r,h=a.refs===rt?a.refs={}:a.refs,m=a.setupState,w=Ke(m),k=m===rt?()=>!1:A=>Ze(w,A);if(d!=null&&d!==c&&(ut(d)?(h[d]=null,k(d)&&(m[d]=null)):pt(d)&&(d.value=null)),je(c))io(c,a,12,[o,h]);else{const A=ut(c),F=pt(c);if(A||F){const j=()=>{if(t.f){const U=A?k(c)?m[c]:h[c]:c.value;r?Ve(U)&&bh(U,s):Ve(U)?U.includes(s)||U.push(s):A?(h[c]=[s],k(c)&&(m[c]=h[c])):(c.value=[s],t.k&&(h[t.k]=c.value))}else A?(h[c]=o,k(c)&&(m[c]=o)):F&&(c.value=o,t.k&&(h[t.k]=o))};o?(j.id=-1,Pt(j,n)):j()}}}let Ad=!1;const fr=()=>{Ad||(console.error("Hydration completed but contains mismatches."),Ad=!0)},X0=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Y0=t=>t.namespaceURI.includes("MathML"),Do=t=>{if(t.nodeType===1){if(X0(t))return"svg";if(Y0(t))return"mathml"}},xr=t=>t.nodeType===8;function Q0(t){const{mt:e,p:n,o:{patchProp:i,createText:r,nextSibling:s,parentNode:o,remove:a,insert:c,createComment:d}}=t,h=(x,I)=>{if(!I.hasChildNodes()){n(null,x,I),da(),I._vnode=x;return}m(I.firstChild,x,null,null,null),da(),I._vnode=x},m=(x,I,V,S,E,R=!1)=>{R=R||!!I.dynamicChildren;const T=xr(x)&&x.data==="[",v=()=>F(x,I,V,S,E,T),{type:p,ref:y,shapeFlag:u,patchFlag:g}=I;let f=x.nodeType;I.el=x,g===-2&&(R=!1,I.dynamicChildren=null);let M=null;switch(p){case Yi:f!==3?I.children===""?(c(I.el=r(""),o(x),x),M=x):M=v():(x.data!==I.children&&(fr(),x.data=I.children),M=s(x));break;case wt:C(x)?(M=s(x),U(I.el=x.content.firstChild,x,V)):f!==8||T?M=v():M=s(x);break;case Cs:if(T&&(x=s(x),f=x.nodeType),f===1||f===3){M=x;const L=!I.children.length;for(let H=0;H<I.staticCount;H++)L&&(I.children+=M.nodeType===1?M.outerHTML:M.data),H===I.staticCount-1&&(I.anchor=M),M=s(M);return T?s(M):M}else v();break;case zt:T?M=A(x,I,V,S,E,R):M=v();break;default:if(u&1)(f!==1||I.type.toLowerCase()!==x.tagName.toLowerCase())&&!C(x)?M=v():M=w(x,I,V,S,E,R);else if(u&6){I.slotScopeIds=E;const L=o(x);if(T?M=j(x):xr(x)&&x.data==="teleport start"?M=j(x,x.data,"teleport end"):M=s(x),e(I,L,null,V,S,Do(L),R),_i(I)&&!I.type.__asyncResolved){let H;T?(H=ft(zt),H.anchor=M?M.previousSibling:L.lastChild):H=x.nodeType===3?Cm(""):ft("div"),H.el=x,I.component.subTree=H}}else u&64?f!==8?M=v():M=I.type.hydrate(x,I,V,S,E,R,t,k):u&128&&(M=I.type.hydrate(x,I,V,S,Do(o(x)),E,R,t,m))}return y!=null&&Us(y,null,S,I),M},w=(x,I,V,S,E,R)=>{R=R||!!I.dynamicChildren;const{type:T,props:v,patchFlag:p,shapeFlag:y,dirs:u,transition:g}=I,f=T==="input"||T==="option";if(f||p!==-1){u&&Tn(I,null,V,"created");let M=!1;if(C(x)){M=gm(null,g)&&V&&V.vnode.props&&V.vnode.props.appear;const H=x.content.firstChild;M&&g.beforeEnter(H),U(H,x,V),I.el=x=H}if(y&16&&!(v&&(v.innerHTML||v.textContent))){let H=k(x.firstChild,I,x,V,S,E,R);for(;H;){No(x,1)||fr();const q=H;H=H.nextSibling,a(q)}}else if(y&8){let H=I.children;H[0]===`
15`&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(H=H.slice(1)),x.textContent!==H&&(No(x,0)||fr(),x.textContent=I.children)}if(v){if(f||!R||p&48){const H=x.tagName.includes("-");for(const q in v)(f&&(q.endsWith("value")||q==="indeterminate")||to(q)&&!Ar(q)||q[0]==="."||H)&&i(x,q,null,v[q],void 0,V)}else if(v.onClick)i(x,"onClick",null,v.onClick,void 0,V);else if(p&4&&$n(v.style))for(const H in v.style)v.style[H]}let L;(L=v&&v.onVnodeBeforeMount)&&Yt(L,V,I),u&&Tn(I,null,V,"beforeMount"),((L=v&&v.onVnodeMounted)||u||M)&&xm(()=>{L&&Yt(L,V,I),M&&g.enter(x),u&&Tn(I,null,V,"mounted")},S)}return x.nextSibling},k=(x,I,V,S,E,R,T)=>{T=T||!!I.dynamicChildren;const v=I.children,p=v.length;for(let y=0;y<p;y++){const u=T?v[y]:v[y]=tn(v[y]),g=u.type===Yi;x?(g&&!T&&y+1<p&&tn(v[y+1]).type===Yi&&(c(r(x.data.slice(u.children.length)),V,s(x)),x.data=u.children),x=m(x,u,S,E,R,T)):g&&!u.children?c(u.el=r(""),V):(No(V,1)||fr(),n(null,u,V,null,S,E,Do(V),R))}return x},A=(x,I,V,S,E,R)=>{const{slotScopeIds:T}=I;T&&(E=E?E.concat(T):T);const v=o(x),p=k(s(x),I,v,V,S,E,R);return p&&xr(p)&&p.data==="]"?s(I.anchor=p):(fr(),c(I.anchor=d("]"),v,p),p)},F=(x,I,V,S,E,R)=>{if(No(x.parentElement,1)||fr(),I.el=null,R){const p=j(x);for(;;){const y=s(x);if(y&&y!==p)a(y);else break}}const T=s(x),v=o(x);return a(x),n(null,I,v,T,V,S,Do(v),E),V&&(V.vnode.el=I.el,Qa(V,I.el)),T},j=(x,I="[",V="]")=>{let S=0;for(;x;)if(x=s(x),x&&xr(x)&&(x.data===I&&S++,x.data===V)){if(S===0)return s(x);S--}return x},U=(x,I,V)=>{const S=I.parentNode;S&&S.replaceChild(x,I);let E=V;for(;E;)E.vnode.el===I&&(E.vnode.el=E.subTree.el=x),E=E.parent},C=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[h,m]}const Sd="data-allow-mismatch",J0={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function No(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Sd);)t=t.parentElement;const n=t&&t.getAttribute(Sd);if(n==null)return!1;if(n==="")return!0;{const i=n.split(",");return e===0&&i.includes("children")?!0:n.split(",").includes(J0[e])}}$a().requestIdleCallback;$a().cancelIdleCallback;function Z0(t,e){if(xr(t)&&t.data==="["){let n=1,i=t.nextSibling;for(;i;){if(i.nodeType===1){if(e(i)===!1)break}else if(xr(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else e(t)}const _i=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function pa(t){je(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:r=200,hydrate:s,timeout:o,suspensible:a=!0,onError:c}=t;let d=null,h,m=0;const w=()=>(m++,d=null,k()),k=()=>{let A;return d||(A=d=e().catch(F=>{if(F=F instanceof Error?F:new Error(String(F)),c)return new Promise((j,U)=>{c(F,()=>j(w()),()=>U(F),m+1)});throw F}).then(F=>A!==d&&d?d:(F&&(F.__esModule||F[Symbol.toStringTag]==="Module")&&(F=F.default),h=F,F)))};return Yn({name:"AsyncComponentWrapper",__asyncLoader:k,__asyncHydrate(A,F,j){const U=s?()=>{const C=s(j,x=>Z0(A,x));C&&(F.bum||(F.bum=[])).push(C)}:j;h?U():k().then(()=>!F.isUnmounted&&U())},get __asyncResolved(){return h},setup(){const A=Et;if(Oh(A),h)return()=>Dl(h,A);const F=x=>{d=null,Gr(x,A,13,!i)};if(a&&A.suspense||Lr)return k().then(x=>()=>Dl(x,A)).catch(x=>(F(x),()=>i?ft(i,{error:x}):null));const j=nn(!1),U=nn(),C=nn(!!r);return r&&setTimeout(()=>{C.value=!1},r),o!=null&&setTimeout(()=>{if(!j.value&&!U.value){const x=new Error(`Async component timed out after ${o}ms.`);F(x),U.value=x}},o),k().then(()=>{j.value=!0,A.parent&&ro(A.parent.vnode)&&A.parent.update()}).catch(x=>{F(x),U.value=x}),()=>{if(j.value&&h)return Dl(h,A);if(U.value&&i)return ft(i,{error:U.value});if(n&&!C.value)return ft(n)}}})}function Dl(t,e){const{ref:n,props:i,children:r,ce:s}=e.vnode,o=ft(t,i,r);return o.ref=n,o.ce=s,delete e.vnode.ce,o}const ro=t=>t.type.__isKeepAlive,ev={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=so(),i=n.ctx;if(!i.renderer)return()=>{const C=e.default&&e.default();return C&&C.length===1?C[0]:C};const r=new Map,s=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:m}}}=i,w=m("div");i.activate=(C,x,I,V,S)=>{const E=C.component;d(C,x,I,0,a),c(E.vnode,C,x,I,E,a,V,C.slotScopeIds,S),Pt(()=>{E.isDeactivated=!1,E.a&&Es(E.a);const R=C.props&&C.props.onVnodeMounted;R&&Yt(R,E.parent,C)},a)},i.deactivate=C=>{const x=C.component;ma(x.m),ma(x.a),d(C,w,null,1,a),Pt(()=>{x.da&&Es(x.da);const I=C.props&&C.props.onVnodeUnmounted;I&&Yt(I,x.parent,C),x.isDeactivated=!0},a)};function k(C){Nl(C),h(C,n,a,!0)}function A(C){r.forEach((x,I)=>{const V=Ec(x.type);V&&!C(V)&&F(I)})}function F(C){const x=r.get(C);x&&(!o||!mn(x,o))?k(x):o&&Nl(o),r.delete(C),s.delete(C)}In(()=>[t.include,t.exclude],([C,x])=>{C&&A(I=>ys(C,I)),x&&A(I=>!ys(x,I))},{flush:"post",deep:!0});let j=null;const U=()=>{j!=null&&(ya(n.subTree.type)?Pt(()=>{r.set(j,Vo(n.subTree))},n.subTree.suspense):r.set(j,Vo(n.subTree)))};return Lh(U),Yg(U),Xa(()=>{r.forEach(C=>{const{subTree:x,suspense:I}=n,V=Vo(x);if(C.type===V.type&&C.key===V.key){Nl(V);const S=V.component.da;S&&Pt(S,I);return}k(C)})}),()=>{if(j=null,!e.default)return o=null;const C=e.default(),x=C[0];if(C.length>1)return o=null,C;if(!Ji(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return o=null,x;let I=Vo(x);if(I.type===wt)return o=null,I;const V=I.type,S=Ec(_i(I)?I.type.__asyncResolved||{}:V),{include:E,exclude:R,max:T}=t;if(E&&(!S||!ys(E,S))||R&&S&&ys(R,S))return I.shapeFlag&=-257,o=I,x;const v=I.key==null?V:I.key,p=r.get(v);return I.el&&(I=Wn(I),x.shapeFlag&128&&(x.ssContent=I)),j=v,p?(I.el=p.el,I.component=p.component,I.transition&&Mr(I,I.transition),I.shapeFlag|=512,s.delete(v),s.add(v)):(s.add(v),T&&s.size>parseInt(T,10)&&F(s.values().next().value)),I.shapeFlag|=256,o=I,ya(x.type)?x:I}}},tv=ev;function ys(t,e){return Ve(t)?t.some(n=>ys(n,e)):ut(t)?t.split(",").includes(e):t0(t)?(t.lastIndex=0,t.test(e)):!1}function qg(t,e){Xg(t,"a",e)}function Kg(t,e){Xg(t,"da",e)}function Xg(t,e,n=Et){const i=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Ka(e,i,n),n){let r=n.parent;for(;r&&r.parent;)ro(r.parent.vnode)&&nv(i,e,n,r),r=r.parent}}function nv(t,e,n,i){const r=Ka(e,t,i,!0);Qg(()=>{bh(i[e],r)},n)}function Nl(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Vo(t){return t.shapeFlag&128?t.ssContent:t}function Ka(t,e,n=Et,i=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{ki();const a=oo(n),c=bn(e,n,t,o);return a(),Ri(),c});return i?r.unshift(s):r.push(s),s}}const Qn=t=>(e,n=Et)=>{(!Lr||t==="sp")&&Ka(t,(...i)=>e(...i),n)},iv=Qn("bm"),Lh=Qn("m"),rv=Qn("bu"),Yg=Qn("u"),Xa=Qn("bum"),Qg=Qn("um"),sv=Qn("sp"),ov=Qn("rtg"),av=Qn("rtc");function Jg(t,e=Et){Ka("ec",t,e)}const Zg="components";function SM(t,e){return tm(Zg,t,!0,e)||t}const em=Symbol.for("v-ndc");function lv(t){return ut(t)?tm(Zg,t,!1)||t:t||em}function tm(t,e,n=!0,i=!1){const r=Mt||Et;if(r){const s=r.type;{const a=Ec(s,!1);if(a&&(a===e||a===un(e)||a===za(un(e))))return s}const o=Cd(r[t]||s[t],e)||Cd(r.appContext[t],e);return!o&&i?s:o}}function Cd(t,e){return t&&(t[e]||t[un(e)]||t[za(un(e))])}function CM(t,e,n,i){let r;const s=n,o=Ve(t);if(o||ut(t)){const a=o&&$n(t);let c=!1;a&&(c=!hn(t),t=qa(t)),r=new Array(t.length);for(let d=0,h=t.length;d<h;d++)r[d]=e(c?Ht(t[d]):t[d],d,void 0,s)}else if(typeof t=="number"){r=new Array(t);for(let a=0;a<t;a++)r[a]=e(a+1,a,void 0,s)}else if(st(t))if(t[Symbol.iterator])r=Array.from(t,(a,c)=>e(a,c,void 0,s));else{const a=Object.keys(t);r=new Array(a.length);for(let c=0,d=a.length;c<d;c++){const h=a[c];r[c]=e(t[h],h,c,s)}}else r=[];return r}function IM(t,e,n={},i,r){if(Mt.ce||Mt.parent&&_i(Mt.parent)&&Mt.parent.ce)return e!=="default"&&(n.name=e),ln(),Sn(zt,null,[ft("slot",n,i&&i())],64);let s=t[e];s&&s._c&&(s._d=!1),ln();const o=s&&nm(s(n)),a=n.key||o&&o.key,c=Sn(zt,{key:(a&&!Xn(a)?a:`_${e}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&t._===1?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function nm(t){return t.some(e=>Ji(e)?!(e.type===wt||e.type===zt&&!nm(e.children)):!0)?t:null}const mc=t=>t?Pm(t)?Uh(t):mc(t.parent):null,Ss=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=>mc(t.parent),$root:t=>mc(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Dh(t),$forceUpdate:t=>
vendor: 4,623 bytes, line 15
15t.f||(t.f=()=>{Rh(t.update)}),$nextTick:t=>t.n||(t.n=nr.bind(t.proxy)),$watch:t=>kv.bind(t)}),Vl=(t,e)=>t!==rt&&!t.__isScriptSetup&&Ze(t,e),cv={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:o,type:a,appContext:c}=t;let d;if(e[0]!=="$"){const k=o[e];if(k!==void 0)switch(k){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return s[e]}else{if(Vl(i,e))return o[e]=1,i[e];if(r!==rt&&Ze(r,e))return o[e]=2,r[e];if((d=t.propsOptions[0])&&Ze(d,e))return o[e]=3,s[e];if(n!==rt&&Ze(n,e))return o[e]=4,n[e];yc&&(o[e]=0)}}const h=Ss[e];let m,w;if(h)return e==="$attrs"&&Ut(t.attrs,"get",""),h(t);if((m=a.__cssModules)&&(m=m[e]))return m;if(n!==rt&&Ze(n,e))return o[e]=4,n[e];if(w=c.config.globalProperties,Ze(w,e))return w[e]},set({_:t},e,n){const{data:i,setupState:r,ctx:s}=t;return Vl(r,e)?(r[e]=n,!0):i!==rt&&Ze(i,e)?(i[e]=n,!0):Ze(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:s}},o){let a;return!!n[o]||t!==rt&&Ze(t,o)||Vl(e,o)||(a=s[0])&&Ze(a,o)||Ze(i,o)||Ze(Ss,o)||Ze(r.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ze(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function PM(){return hv().attrs}function hv(){const t=so();return t.setupContext||(t.setupContext=Rm(t))}function Id(t){return Ve(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let yc=!0;function uv(t){const e=Dh(t),n=t.proxy,i=t.ctx;yc=!1,e.beforeCreate&&Pd(e.beforeCreate,t,"bc");const{data:r,computed:s,methods:o,watch:a,provide:c,inject:d,created:h,beforeMount:m,mounted:w,beforeUpdate:k,updated:A,activated:F,deactivated:j,beforeDestroy:U,beforeUnmount:C,destroyed:x,unmounted:I,render:V,renderTracked:S,renderTriggered:E,errorCaptured:R,serverPrefetch:T,expose:v,inheritAttrs:p,components:y,directives:u,filters:g}=e;if(d&&dv(d,i,null),o)for(const L in o){const H=o[L];je(H)&&(i[L]=H.bind(n))}if(r){const L=r.call(n,n);st(L)&&(t.data=wn(L))}if(yc=!0,s)for(const L in s){const H=s[L],q=je(H)?H.bind(n,n):je(H.get)?H.get.bind(n,n):Cn,z=!je(H)&&je(H.set)?H.set.bind(n):Cn,Q=Jt({get:q,set:z});Object.defineProperty(i,L,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ce=>Q.value=ce})}if(a)for(const L in a)im(a[L],i,n,L);if(c){const L=je(c)?c.call(n):c;Reflect.ownKeys(L).forEach(H=>{Xi(H,L[H])})}h&&Pd(h,t,"c");function M(L,H){Ve(H)?H.forEach(q=>L(q.bind(n))):H&&L(H.bind(n))}if(M(iv,m),M(Lh,w),M(rv,k),M(Yg,A),M(qg,F),M(Kg,j),M(Jg,R),M(av,S),M(ov,E),M(Xa,C),M(Qg,I),M(sv,T),Ve(v))if(v.length){const L=t.exposed||(t.exposed={});v.forEach(H=>{Object.defineProperty(L,H,{get:()=>n[H],set:q=>n[H]=q})})}else t.exposed||(t.exposed={});V&&t.render===Cn&&(t.render=V),p!=null&&(t.inheritAttrs=p),y&&(t.components=y),u&&(t.directives=u),T&&Oh(t)}function dv(t,e,n=Cn){Ve(t)&&(t=_c(t));for(const i in t){const r=t[i];let s;st(r)?"default"in r?s=Wt(r.from||i,r.default,!0):s=Wt(r.from||i):s=Wt(r),pt(s)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[i]=s}}function Pd(t,e,n){bn(Ve(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function im(t,e,n,i){let r=i.includes(".")?_m(n,i):()=>n[i];if(ut(t)){const s=e[t];je(s)&&In(r,s)}else if(je(t))In(r,t.bind(n));else if(st(t))if(Ve(t))t.forEach(s=>im(s,e,n,i));else{const s=je(t.handler)?t.handler.bind(n):e[t.handler];je(s)&&In(r,s,t)}}function Dh(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let c;return a?c=a:!r.length&&!n&&!i?c=e:(c={},r.length&&r.forEach(d=>ga(c,d,o,!0)),ga(c,e,o)),st(e)&&s.set(e,c),c}function ga(t,e,n,i=!1){const{mixins:r,extends:s}=e;s&&ga(t,s,n,!0),r&&r.forEach(o=>ga(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const a=fv[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const fv={data:kd,props:Rd,emits:Rd,methods:_s,computed:_s,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:_s,directives:_s,watch:gv,provide:kd,inject:pv};function kd(t,e){return e?t?function(){return xt(je(t)?t.call(this,this):t,je(e)?e.call(this,this):e)}:e:t}function pv(t,e){return _s(_c(t),_c(e))}function _c(t){if(Ve(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function qt(t,e){return t?[...new Set([].concat(t,e))]:e}function _s(t,e){return t?xt(Object.create(null),t,e):e}function Rd(t,e){return t?Ve(t)&&Ve(e)?[...new Set([...t,...e])]:xt(Object.create(null),Id(t),Id(e??{})):e}
vendor: 4,474 bytes, line 15
15function gv(t,e){if(!t)return e;if(!e)return t;const n=xt(Object.create(null),t);for(const i in e)n[i]=qt(t[i],e[i]);return n}function rm(){return{app:null,config:{isNativeTag:Zb,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 mv=0;function yv(t,e){return function(i,r=null){je(i)||(i=xt({},i)),r!=null&&!st(r)&&(r=null);const s=rm(),o=new WeakSet,a=[];let c=!1;const d=s.app={_uid:mv++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Mm,get config(){return s.config},set config(h){},use(h,...m){return o.has(h)||(h&&je(h.install)?(o.add(h),h.install(d,...m)):je(h)&&(o.add(h),h(d,...m))),d},mixin(h){return s.mixins.includes(h)||s.mixins.push(h),d},component(h,m){return m?(s.components[h]=m,d):s.components[h]},directive(h,m){return m?(s.directives[h]=m,d):s.directives[h]},mount(h,m,w){if(!c){const k=d._ceVNode||ft(i,r);return k.appContext=s,w===!0?w="svg":w===!1&&(w=void 0),m&&e?e(k,h):t(k,h,w),c=!0,d._container=h,h.__vue_app__=d,Uh(k.component)}},onUnmount(h){a.push(h)},unmount(){c&&(bn(a,d._instance,16),t(null,d._container),delete d._container.__vue_app__)},provide(h,m){return s.provides[h]=m,d},runWithContext(h){const m=Ki;Ki=d;try{return h()}finally{Ki=m}}};return d}}let Ki=null;function Xi(t,e){if(Et){let n=Et.provides;const i=Et.parent&&Et.parent.provides;i===n&&(n=Et.provides=Object.create(i)),n[t]=e}}function Wt(t,e,n=!1){const i=Et||Mt;if(i||Ki){const r=Ki?Ki._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&je(e)?e.call(i&&i.proxy):e}}function Nh(){return!!(Et||Mt||Ki)}const sm={},om=()=>Object.create(sm),am=t=>Object.getPrototypeOf(t)===sm;function _v(t,e,n,i=!1){const r={},s=om();t.propsDefaults=Object.create(null),lm(t,e,r,s);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=i?r:zn(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function bv(t,e,n,i){const{props:r,attrs:s,vnode:{patchFlag:o}}=t,a=Ke(r),[c]=t.propsOptions;let d=!1;if((i||o>0)&&!(o&16)){if(o&8){const h=t.vnode.dynamicProps;for(let m=0;m<h.length;m++){let w=h[m];if(Ya(t.emitsOptions,w))continue;const k=e[w];if(c)if(Ze(s,w))k!==s[w]&&(s[w]=k,d=!0);else{const A=un(w);r[A]=bc(c,a,A,k,t,!1)}else k!==s[w]&&(s[w]=k,d=!0)}}}else{lm(t,e,r,s)&&(d=!0);let h;for(const m in a)(!e||!Ze(e,m)&&((h=tr(m))===m||!Ze(e,h)))&&(c?n&&(n[m]!==void 0||n[h]!==void 0)&&(r[m]=bc(c,a,m,void 0,t,!0)):delete r[m]);if(s!==a)for(const m in s)(!e||!Ze(e,m))&&(delete s[m],d=!0)}d&&Hn(t.attrs,"set","")}function lm(t,e,n,i){const[r,s]=t.propsOptions;let o=!1,a;if(e)for(let c in e){if(Ar(c))continue;const d=e[c];let h;r&&Ze(r,h=un(c))?!s||!s.includes(h)?n[h]=d:(a||(a={}))[h]=d:Ya(t.emitsOptions,c)||(!(c in i)||d!==i[c])&&(i[c]=d,o=!0)}if(s){const c=Ke(n),d=a||rt;for(let h=0;h<s.length;h++){const m=s[h];n[m]=bc(r,c,m,d[m],t,!Ze(d,m))}}return o}function bc(t,e,n,i,r,s){const o=t[n];if(o!=null){const a=Ze(o,"default");if(a&&i===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&je(c)){const{propsDefaults:d}=r;if(n in d)i=d[n];else{const h=oo(r);i=d[n]=c.call(null,e),h()}}else i=c;r.ce&&r.ce._setProp(n,i)}o[0]&&(s&&!a?i=!1:o[1]&&(i===""||i===tr(n))&&(i=!0))}return i}const vv=new WeakMap;function cm(t,e,n=!1){const i=n?vv:e.propsCache,r=i.get(t);if(r)return r;const s=t.props,o={},a=[];let c=!1;if(!je(t)){const h=m=>{c=!0;const[w,k]=cm(m,e,!0);xt(o,w),k&&a.push(...k)};!n&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!s&&!c)return st(t)&&i.set(t,Er),Er;if(Ve(s))for(let h=0;h<s.length;h++){const m=un(s[h]);Md(m)&&(o[m]=rt)}else if(s)for(const h in s){const m=un(h);if(Md(m)){const w=s[h],k=o[m]=Ve(w)||je(w)?{type:w}:xt({},w),A=k.type;let F=!1,j=!0;if(Ve(A))for(let U=0;U<A.length;++U){const C=A[U],x=je(C)&&C.name;if(x==="Boolean"){F=!0;break}else x==="String"&&(j=!1)}else F=je(A)&&A.name==="Boolean";k[0]=F,k[1]=j,(F||Ze(k,"default"))&&a.push(m)}}const d=[o,a];return st(t)&&i.set(t,d),d}function Md(t){return t[0]!=="$"&&!Ar(t)}const hm=t=>t[0]==="_"||t==="$stable",Vh=t=>Ve(t)?t.map(tn):[tn(t)],xv=(t,e,n)=>{if(e._n)return e;const i=Mh((...r)=>Vh(e(...r)),n);return i._c=!1,i},um=(t,e,n)=>{const i=t._ctx;for(const r in t){if(hm(r))continue;const s=t[r];
vendor: 4,808 bytes, line 15
15if(je(s))e[r]=xv(r,s,i);else if(s!=null){const o=Vh(s);e[r]=()=>o}}},dm=(t,e)=>{const n=Vh(e);t.slots.default=()=>n},fm=(t,e,n)=>{for(const i in e)(n||i!=="_")&&(t[i]=e[i])},wv=(t,e,n)=>{const i=t.slots=om();if(t.vnode.shapeFlag&32){const r=e._;r?(fm(i,e,n),n&&dg(i,"_",r,!0)):um(e,i)}else e&&dm(t,e)},Ev=(t,e,n)=>{const{vnode:i,slots:r}=t;let s=!0,o=rt;if(i.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:fm(r,e,n):(s=!e.$stable,um(e,r)),o=e}else e&&(dm(t,e),o={default:1});if(s)for(const a in r)!hm(a)&&o[a]==null&&delete r[a]},Pt=xm;function Tv(t){return pm(t)}function Av(t){return pm(t,Q0)}function pm(t,e){const n=$a();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:o,createText:a,createComment:c,setText:d,setElementText:h,parentNode:m,nextSibling:w,setScopeId:k=Cn,insertStaticContent:A}=t,F=(_,b,B,$=null,X=null,J=null,re=void 0,ae=null,fe=!!b.dynamicChildren)=>{if(_===b)return;_&&!mn(_,b)&&($=le(_),ce(_,X,J,!0),_=null),b.patchFlag===-2&&(fe=!1,b.dynamicChildren=null);const{type:ue,ref:Z,shapeFlag:Y}=b;switch(ue){case Yi:j(_,b,B,$);break;case wt:U(_,b,B,$);break;case Cs:_==null&&C(b,B,$,re);break;case zt:y(_,b,B,$,X,J,re,ae,fe);break;default:Y&1?V(_,b,B,$,X,J,re,ae,fe):Y&6?u(_,b,B,$,X,J,re,ae,fe):(Y&64||Y&128)&&ue.process(_,b,B,$,X,J,re,ae,fe,W)}Z!=null&&X&&Us(Z,_&&_.ref,J,b||_,!b)},j=(_,b,B,$)=>{if(_==null)i(b.el=a(b.children),B,$);else{const X=b.el=_.el;b.children!==_.children&&d(X,b.children)}},U=(_,b,B,$)=>{_==null?i(b.el=c(b.children||""),B,$):b.el=_.el},C=(_,b,B,$)=>{[_.el,_.anchor]=A(_.children,b,B,$,_.el,_.anchor)},x=({el:_,anchor:b},B,$)=>{let X;for(;_&&_!==b;)X=w(_),i(_,B,$),_=X;i(b,B,$)},I=({el:_,anchor:b})=>{let B;for(;_&&_!==b;)B=w(_),r(_),_=B;r(b)},V=(_,b,B,$,X,J,re,ae,fe)=>{b.type==="svg"?re="svg":b.type==="math"&&(re="mathml"),_==null?S(b,B,$,X,J,re,ae,fe):T(_,b,X,J,re,ae,fe)},S=(_,b,B,$,X,J,re,ae)=>{let fe,ue;const{props:Z,shapeFlag:Y,transition:ee,dirs:ie}=_;if(fe=_.el=o(_.type,J,Z&&Z.is,Z),Y&8?h(fe,_.children):Y&16&&R(_.children,fe,null,$,X,jl(_,J),re,ae),ie&&Tn(_,null,$,"created"),E(fe,_,_.scopeId,re,$),Z){for(const ge in Z)ge!=="value"&&!Ar(ge)&&s(fe,ge,null,Z[ge],J,$);"value"in Z&&s(fe,"value",null,Z.value,J),(ue=Z.onVnodeBeforeMount)&&Yt(ue,$,_)}ie&&Tn(_,null,$,"beforeMount");const de=gm(X,ee);de&&ee.beforeEnter(fe),i(fe,b,B),((ue=Z&&Z.onVnodeMounted)||de||ie)&&Pt(()=>{ue&&Yt(ue,$,_),de&&ee.enter(fe),ie&&Tn(_,null,$,"mounted")},X)},E=(_,b,B,$,X)=>{if(B&&k(_,B),$)for(let J=0;J<$.length;J++)k(_,$[J]);if(X){let J=X.subTree;if(b===J||ya(J.type)&&(J.ssContent===b||J.ssFallback===b)){const re=X.vnode;E(_,re,re.scopeId,re.slotScopeIds,X.parent)}}},R=(_,b,B,$,X,J,re,ae,fe=0)=>{for(let ue=fe;ue<_.length;ue++){const Z=_[ue]=ae?ui(_[ue]):tn(_[ue]);F(null,Z,b,B,$,X,J,re,ae)}},T=(_,b,B,$,X,J,re)=>{const ae=b.el=_.el;let{patchFlag:fe,dynamicChildren:ue,dirs:Z}=b;fe|=_.patchFlag&16;const Y=_.props||rt,ee=b.props||rt;let ie;if(B&&Fi(B,!1),(ie=ee.onVnodeBeforeUpdate)&&Yt(ie,B,b,_),Z&&Tn(b,_,B,"beforeUpdate"),B&&Fi(B,!0),(Y.innerHTML&&ee.innerHTML==null||Y.textContent&&ee.textContent==null)&&h(ae,""),ue?v(_.dynamicChildren,ue,ae,B,$,jl(b,X),J):re||H(_,b,ae,null,B,$,jl(b,X),J,!1),fe>0){if(fe&16)p(ae,Y,ee,B,X);else if(fe&2&&Y.class!==ee.class&&s(ae,"class",null,ee.class,X),fe&4&&s(ae,"style",Y.style,ee.style,X),fe&8){const de=b.dynamicProps;for(let ge=0;ge<de.length;ge++){const pe=de[ge],me=Y[pe],ye=ee[pe];(ye!==me||pe==="value")&&s(ae,pe,me,ye,X,B)}}fe&1&&_.children!==b.children&&h(ae,b.children)}else!re&&ue==null&&p(ae,Y,ee,B,X);((ie=ee.onVnodeUpdated)||Z)&&Pt(()=>{ie&&Yt(ie,B,b,_),Z&&Tn(b,_,B,"updated")},$)},v=(_,b,B,$,X,J,re)=>{for(let ae=0;ae<b.length;ae++){const fe=_[ae],ue=b[ae],Z=fe.el&&(fe.type===zt||!mn(fe,ue)||fe.shapeFlag&70)?m(fe.el):B;F(fe,ue,Z,null,$,X,J,re,!0)}},p=(_,b,B,$,X)=>{if(b!==B){if(b!==rt)for(const J in b)!Ar(J)&&!(J in B)&&s(_,J,b[J],null,X,$);for(const J in B){if(Ar(J))continue;const re=B[J],ae=b[J];re!==ae&&J!=="value"&&s(_,J,ae,re,X,$)}"value"in B&&s(_,"value",b.value,B.value,X)}},y=(_,b,B,$,X,J,re,ae,fe)=>{const ue=b.el=_?_.el:a(""),Z=b.anchor=_?_.anchor:a("");let{patchFlag:Y,dynamicChildren:ee,slotScopeIds:ie}=b;ie&&(ae=ae?ae.concat(ie):ie),_==null?(i(ue,B,$),i(Z,B,$),R(b.children||[],B,Z,X,J,re,ae,fe)):Y>0&&Y&64&&ee&&_.dynamicChildren?(v(_.dynamicChildren,ee,B,X,J,re,ae),(b.key!=null||X&&b===X.subTree)&&mm(_,b,!0)):H(_,b,B,Z,X,J,re,ae,fe)},u=(_,b,B,$,X,J,re,ae,fe)=>{b.slotScopeIds=ae,_==null?b.shapeFlag&512?X.ctx.activate(b,B,$,re,fe):g(b,B,$,X,J,re,fe):f(_,b,fe)},g=(_,b,B,$,X,J,re)=>{const ae=_.component=qv(_,$,X);if(ro(_)&&(ae.ctx.renderer=W),Kv(ae,!1,re),ae.asyncDep){if(X&&X.registerDep(ae,M,re),!_.el){const fe=ae.subTree=ft(wt);U(null,fe,b,B)}}else M(ae,_,b,B,X,J,re)},f=(_,b,B)=>{const $=b.component=_.component;if(Nv(_,b,B))if($.asyncDep&&!$.asyncResolved){L($,b,B);return}
vendor: 21,477 bytes, lines 15-18
15else $.next=b,$.update();else b.el=_.el,$.vnode=b},M=(_,b,B,$,X,J,re)=>{const ae=()=>{if(_.isMounted){let{next:Y,bu:ee,u:ie,parent:de,vnode:ge}=_;{const ve=ym(_);if(ve){Y&&(Y.el=ge.el,L(_,Y,re)),ve.asyncDep.then(()=>{_.isUnmounted||ae()});return}}let pe=Y,me;Fi(_,!1),Y?(Y.el=ge.el,L(_,Y,re)):Y=ge,ee&&Es(ee),(me=Y.props&&Y.props.onVnodeBeforeUpdate)&&Yt(me,de,Y,ge),Fi(_,!0);const ye=Bl(_),_e=_.subTree;_.subTree=ye,F(_e,ye,m(_e.el),le(_e),_,X,J),Y.el=ye.el,pe===null&&Qa(_,ye.el),ie&&Pt(ie,X),(me=Y.props&&Y.props.onVnodeUpdated)&&Pt(()=>Yt(me,de,Y,ge),X)}else{let Y;const{el:ee,props:ie}=b,{bm:de,m:ge,parent:pe,root:me,type:ye}=_,_e=_i(b);if(Fi(_,!1),de&&Es(de),!_e&&(Y=ie&&ie.onVnodeBeforeMount)&&Yt(Y,pe,b),Fi(_,!0),ee&&P){const ve=()=>{_.subTree=Bl(_),P(ee,_.subTree,_,X,null)};_e&&ye.__asyncHydrate?ye.__asyncHydrate(ee,_,ve):ve()}else{me.ce&&me.ce._injectChildStyle(ye);const ve=_.subTree=Bl(_);F(null,ve,B,$,_,X,J),b.el=ve.el}if(ge&&Pt(ge,X),!_e&&(Y=ie&&ie.onVnodeMounted)){const ve=b;Pt(()=>Yt(Y,pe,ve),X)}(b.shapeFlag&256||pe&&_i(pe.vnode)&&pe.vnode.shapeFlag&256)&&_.a&&Pt(_.a,X),_.isMounted=!0,b=B=$=null}};_.scope.on();const fe=_.effect=new _g(ae);_.scope.off();const ue=_.update=fe.run.bind(fe),Z=_.job=fe.runIfDirty.bind(fe);Z.i=_,Z.id=_.uid,fe.scheduler=()=>Rh(Z),Fi(_,!0),ue()},L=(_,b,B)=>{b.component=_;const $=_.vnode.props;_.vnode=b,_.next=null,bv(_,b.props,$,B),Ev(_,b.children,B),ki(),Ed(_),Ri()},H=(_,b,B,$,X,J,re,ae,fe=!1)=>{const ue=_&&_.children,Z=_?_.shapeFlag:0,Y=b.children,{patchFlag:ee,shapeFlag:ie}=b;if(ee>0){if(ee&128){z(ue,Y,B,$,X,J,re,ae,fe);return}else if(ee&256){q(ue,Y,B,$,X,J,re,ae,fe);return}}ie&8?(Z&16&&oe(ue,X,J),Y!==ue&&h(B,Y)):Z&16?ie&16?z(ue,Y,B,$,X,J,re,ae,fe):oe(ue,X,J,!0):(Z&8&&h(B,""),ie&16&&R(Y,B,$,X,J,re,ae,fe))},q=(_,b,B,$,X,J,re,ae,fe)=>{_=_||Er,b=b||Er;const ue=_.length,Z=b.length,Y=Math.min(ue,Z);let ee;for(ee=0;ee<Y;ee++){const ie=b[ee]=fe?ui(b[ee]):tn(b[ee]);F(_[ee],ie,B,null,X,J,re,ae,fe)}ue>Z?oe(_,X,J,!0,!1,Y):R(b,B,$,X,J,re,ae,fe,Y)},z=(_,b,B,$,X,J,re,ae,fe)=>{let ue=0;const Z=b.length;let Y=_.length-1,ee=Z-1;for(;ue<=Y&&ue<=ee;){const ie=_[ue],de=b[ue]=fe?ui(b[ue]):tn(b[ue]);if(mn(ie,de))F(ie,de,B,null,X,J,re,ae,fe);else break;ue++}for(;ue<=Y&&ue<=ee;){const ie=_[Y],de=b[ee]=fe?ui(b[ee]):tn(b[ee]);if(mn(ie,de))F(ie,de,B,null,X,J,re,ae,fe);else break;Y--,ee--}if(ue>Y){if(ue<=ee){const ie=ee+1,de=ie<Z?b[ie].el:$;for(;ue<=ee;)F(null,b[ue]=fe?ui(b[ue]):tn(b[ue]),B,de,X,J,re,ae,fe),ue++}}else if(ue>ee)for(;ue<=Y;)ce(_[ue],X,J,!0),ue++;else{const ie=ue,de=ue,ge=new Map;for(ue=de;ue<=ee;ue++){const Ie=b[ue]=fe?ui(b[ue]):tn(b[ue]);Ie.key!=null&&ge.set(Ie.key,ue)}let pe,me=0;const ye=ee-de+1;let _e=!1,ve=0;const we=new Array(ye);for(ue=0;ue<ye;ue++)we[ue]=0;for(ue=ie;ue<=Y;ue++){const Ie=_[ue];if(me>=ye){ce(Ie,X,J,!0);continue}let Te;if(Ie.key!=null)Te=ge.get(Ie.key);else for(pe=de;pe<=ee;pe++)if(we[pe-de]===0&&mn(Ie,b[pe])){Te=pe;break}Te===void 0?ce(Ie,X,J,!0):(we[Te-de]=ue+1,Te>=ve?ve=Te:_e=!0,F(Ie,b[Te],B,null,X,J,re,ae,fe),me++)}const Ce=_e?Sv(we):Er;for(pe=Ce.length-1,ue=ye-1;ue>=0;ue--){const Ie=de+ue,Te=b[Ie],Se=Ie+1<Z?b[Ie+1].el:$;we[ue]===0?F(null,Te,B,Se,X,J,re,ae,fe):_e&&(pe<0||ue!==Ce[pe]?Q(Te,B,Se,2):pe--)}}},Q=(_,b,B,$,X=null)=>{const{el:J,type:re,transition:ae,children:fe,shapeFlag:ue}=_;if(ue&6){Q(_.component.subTree,b,B,$);return}if(ue&128){_.suspense.move(b,B,$);return}if(ue&64){re.move(_,b,B,W);return}if(re===zt){i(J,b,B);for(let Y=0;Y<fe.length;Y++)Q(fe[Y],b,B,$);i(_.anchor,b,B);return}if(re===Cs){x(_,b,B);return}if($!==2&&ue&1&&ae)if($===0)ae.beforeEnter(J),i(J,b,B),Pt(()=>ae.enter(J),X);else{const{leave:Y,delayLeave:ee,afterLeave:ie}=ae,de=()=>i(J,b,B),ge=()=>{Y(J,()=>{de(),ie&&ie()})};ee?ee(J,de,ge):ge()}else i(J,b,B)},ce=(_,b,B,$=!1,X=!1)=>{const{type:J,props:re,ref:ae,children:fe,dynamicChildren:ue,shapeFlag:Z,patchFlag:Y,dirs:ee,cacheIndex:ie}=_;if(Y===-2&&(X=!1),ae!=null&&Us(ae,null,B,_,!0),ie!=null&&(b.renderCache[ie]=void 0),Z&256){b.ctx.deactivate(_);return}const de=Z&1&&ee,ge=!_i(_);let pe;if(ge&&(pe=re&&re.onVnodeBeforeUnmount)&&Yt(pe,b,_),Z&6)se(_.component,B,$);else{if(Z&128){_.suspense.unmount(B,$);return}de&&Tn(_,null,b,"beforeUnmount"),Z&64?_.type.remove(_,b,B,W,$):ue&&!ue.hasOnce&&(J!==zt||Y>0&&Y&64)?oe(ue,b,B,!1,!0):(J===zt&&Y&384||!X&&Z&16)&&oe(fe,b,B),$&&G(_)}(ge&&(pe=re&&re.onVnodeUnmounted)||de)&&Pt(()=>{pe&&Yt(pe,b,_),de&&Tn(_,null,b,"unmounted")},B)},G=_=>{const{type:b,el:B,anchor:$,transition:X}=_;if(b===zt){ne(B,$);return}if(b===Cs){I(_);return}const J=()=>{r(B),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(_.shapeFlag&1&&X&&!X.persisted){const{leave:re,delayLeave:ae}=X,fe=()=>re(B,J);ae?ae(_.el,J,fe):fe()}else J()},ne=(_,b)=>{let B;for(;_!==b;)B=w(_),r(_),_=B;r(b)},se=(_,b,B)=>{const{bum:$,scope:X,job:J,subTree:re,um:ae,m:fe,a:ue}=_;ma(fe),ma(ue),$&&Es($),X.stop(),J&&(J.flags|=8,ce(re,_,b,B)),ae&&Pt(ae,b),Pt(()=>{_.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},oe=(_,b,B,$=!1,X=!1,J=0)=>{for(let re=J;re<_.length;re++)ce(_[re],b,B,$,X)},le=_=>{if(_.shapeFlag&6)return le(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const b=w(_.anchor||_.el),B=b&&b[W0];return B?w(B):b};let D=!1;const O=(_,b,B)=>{_==null?b._vnode&&ce(b._vnode,null,null,!0):F(b._vnode||null,_,b,null,null,null,B),b._vnode=_,D||(D=!0,Ed(),da(),D=!1)},W={p:F,um:ce,m:Q,r:G,mt:g,mc:R,pc:H,pbc:v,n:le,o:t};let te,P;return e&&([te,P]=e(W)),{render:O,hydrate:te,createApp:yv(O,te)}}function jl({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 Fi({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function gm(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function mm(t,e,n=!1){const i=t.children,r=e.children;if(Ve(i)&&Ve(r))for(let s=0;s<i.length;s++){const o=i[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=ui(r[s]),a.el=o.el),!n&&a.patchFlag!==-2&&mm(o,a)),a.type===Yi&&(a.el=o.el)}}function Sv(t){const e=t.slice(),n=[0];let i,r,s,o,a;const c=t.length;for(i=0;i<c;i++){const d=t[i];if(d!==0){if(r=n[n.length-1],t[r]<d){e[i]=r,n.push(i);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,t[n[a]]<d?s=a+1:o=a;d<t[n[s]]&&(s>0&&(e[i]=n[s-1]),n[s]=i)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}function ym(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ym(e)}function ma(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Cv=Symbol.for("v-scx"),Iv=()=>Wt(Cv);function Pv(t,e){return jh(t,null,e)}function In(t,e,n){return jh(t,e,n)}function jh(t,e,n=rt){const{immediate:i,deep:r,flush:s,once:o}=n,a=xt({},n),c=e&&i||!e&&s!=="post";let d;if(Lr){if(s==="sync"){const k=Iv();d=k.__watcherHandles||(k.__watcherHandles=[])}else if(!c){const k=()=>{};return k.stop=Cn,k.resume=Cn,k.pause=Cn,k}}const h=Et;a.call=(k,A,F)=>bn(k,h,A,F);let m=!1;s==="post"?a.scheduler=k=>{Pt(k,h&&h.suspense)}:s!=="sync"&&(m=!0,a.scheduler=(k,A)=>{A?k():Rh(k)}),a.augmentJob=k=>{e&&(k.flags|=4),m&&(k.flags|=2,h&&(k.id=h.uid,k.i=h))};const w=H0(t,e,a);return Lr&&(d?d.push(w):c&&w()),w}function kv(t,e,n){const i=this.proxy,r=ut(t)?t.includes(".")?_m(i,t):()=>i[t]:t.bind(i,i);let s;je(e)?s=e:(s=e.handler,n=e);const o=oo(this),a=jh(r,s.bind(i),n);return o(),a}function _m(t,e){const n=e.split(".");return()=>{let i=t;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}const Rv=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${un(e)}Modifiers`]||t[`${tr(e)}Modifiers`];function Mv(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||rt;let r=n;const s=e.startsWith("update:"),o=s&&Rv(i,e.slice(7));o&&(o.trim&&(r=n.map(h=>ut(h)?h.trim():h)),o.number&&(r=n.map(s0)));let a,c=i[a=Pl(e)]||i[a=Pl(un(e))];!c&&s&&(c=i[a=Pl(tr(e))]),c&&bn(c,t,6,r);const d=i[a+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,bn(d,t,6,r)}}function bm(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(r!==void 0)return r;const s=t.emits;let o={},a=!1;if(!je(t)){const c=d=>{const h=bm(d,e,!0);h&&(a=!0,xt(o,h))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!s&&!a?(st(t)&&i.set(t,null),null):(Ve(s)?s.forEach(c=>o[c]=null):xt(o,s),st(t)&&i.set(t,o),o)}function Ya(t,e){return!t||!to(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ze(t,e[0].toLowerCase()+e.slice(1))||Ze(t,tr(e))||Ze(t,e))}function Bl(t){const{type:e,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:o,attrs:a,emit:c,render:d,renderCache:h,props:m,data:w,setupState:k,ctx:A,inheritAttrs:F}=t,j=fa(t);let U,C;try{if(n.shapeFlag&4){const I=r||i,V=I;U=tn(d.call(V,I,h,m,k,w,A)),C=a}else{const I=e;U=tn(I.length>1?I(m,{attrs:a,slots:o,emit:c}):I(m,null)),C=e.props?a:Lv(a)}}catch(I){Is.length=0,Gr(I,t,1),U=ft(wt)}let x=U;if(C&&F!==!1){const I=Object.keys(C),{shapeFlag:V}=x;I.length&&V&7&&(s&&I.some(_h)&&(C=Dv(C,s)),x=Wn(x,C,!1,!0))}return n.dirs&&(x=Wn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Mr(x,n.transition),U=x,fa(j),U}function Ov(t,e=!0){let n;for(let i=0;i<t.length;i++){const r=t[i];if(Ji(r)){if(r.type!==wt||r.children==="v-if"){if(n)return;n=r}}else return}return n}const Lv=t=>{let e;for(const n in t)(n==="class"||n==="style"||to(n))&&((e||(e={}))[n]=t[n]);return e},Dv=(t,e)=>{const n={};for(const i in t)(!_h(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function Nv(t,e,n){const{props:i,children:r,component:s}=t,{props:o,children:a,patchFlag:c}=e,d=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?Od(i,o,d):!!o;if(c&8){const h=e.dynamicProps;for(let m=0;m<h.length;m++){const w=h[m];if(o[w]!==i[w]&&!Ya(d,w))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:i===o?!1:i?o?Od(i,o,d):!0:!!o;return!1}function Od(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(e[s]!==t[s]&&!Ya(n,s))return!0}return!1}function Qa({vnode:t,parent:e},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=e.vnode).el=n,e=e.parent;else break}}const ya=t=>t.__isSuspense;let vc=0;const Vv={name:"Suspense",__isSuspense:!0,process(t,e,n,i,r,s,o,a,c,d){if(t==null)jv(e,n,i,r,s,o,a,c,d);else{if(s&&s.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Bv(t,e,n,i,r,o,a,c,d)}},hydrate:Fv,normalize:Uv},Bh=Vv;function Hs(t,e){const n=t.props&&t.props[e];je(n)&&n()}function jv(t,e,n,i,r,s,o,a,c){const{p:d,o:{createElement:h}}=c,m=h("div"),w=t.suspense=vm(t,r,i,e,m,n,s,o,a,c);d(null,w.pendingBranch=t.ssContent,m,null,i,w,s,o),w.deps>0?(Hs(t,"onPending"),Hs(t,"onFallback"),d(null,t.ssFallback,e,n,i,null,s,o),Cr(w,t.ssFallback)):w.resolve(!1,!0)}function Bv(t,e,n,i,r,s,o,a,{p:c,um:d,o:{createElement:h}}){const m=e.suspense=t.suspense;m.vnode=e,e.el=t.el;const w=e.ssContent,k=e.ssFallback,{activeBranch:A,pendingBranch:F,isInFallback:j,isHydrating:U}=m;if(F)m.pendingBranch=w,mn(w,F)?(c(F,w,m.hiddenContainer,null,r,m,s,o,a),m.deps<=0?m.resolve():j&&(U||(c(A,k,n,i,r,null,s,o,a),Cr(m,k)))):(m.pendingId=vc++,U?(m.isHydrating=!1,m.activeBranch=F):d(F,r,m),m.deps=0,m.effects.length=0,m.hiddenContainer=h("div"),j?(c(null,w,m.hiddenContainer,null,r,m,s,o,a),m.deps<=0?m.resolve():(c(A,k,n,i,r,null,s,o,a),Cr(m,k))):A&&mn(w,A)?(c(A,w,n,i,r,m,s,o,a),m.resolve(!0)):(c(null,w,m.hiddenContainer,null,r,m,s,o,a),m.deps<=0&&m.resolve()));else if(A&&mn(w,A))c(A,w,n,i,r,m,s,o,a),Cr(m,w);else if(Hs(e,"onPending"),m.pendingBranch=w,w.shapeFlag&512?m.pendingId=w.component.suspenseId:m.pendingId=vc++,c(null,w,m.hiddenContainer,null,r,m,s,o,a),m.deps<=0)m.resolve();else{const{timeout:C,pendingId:x}=m;C>0?setTimeout(()=>{m.pendingId===x&&m.fallback(k)},C):C===0&&m.fallback(k)}}function vm(t,e,n,i,r,s,o,a,c,d,h=!1){const{p:m,m:w,um:k,n:A,o:{parentNode:F,remove:j}}=d;let U;const C=Hv(t);C&&e&&e.pendingBranch&&(U=e.pendingId,e.deps++);const x=t.props?fg(t.props.timeout):void 0,I=s,V={vnode:t,parent:e,parentComponent:n,namespace:o,container:i,hiddenContainer:r,deps:0,pendingId:vc++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(S=!1,E=!1){const{vnode:R,activeBranch:T,pendingBranch:v,pendingId:p,effects:y,parentComponent:u,container:g}=V;let f=!1;V.isHydrating?V.isHydrating=!1:S||(f=T&&v.transition&&v.transition.mode==="out-in",f&&(T.transition.afterLeave=()=>{p===V.pendingId&&(w(v,g,s===I?A(T):s,0),pc(y))}),T&&(F(T.el)===g&&(s=A(T)),k(T,u,V,!0)),f||w(v,g,s,0)),Cr(V,v),V.pendingBranch=null,V.isInFallback=!1;let M=V.parent,L=!1;for(;M;){if(M.pendingBranch){M.effects.push(...y),L=!0;break}M=M.parent}!L&&!f&&pc(y),V.effects=[],C&&e&&e.pendingBranch&&U===e.pendingId&&(e.deps--,e.deps===0&&!E&&e.resolve()),Hs(R,"onResolve")},fallback(S){if(!V.pendingBranch)return;const{vnode:E,activeBranch:R,parentComponent:T,container:v,namespace:p}=V;Hs(E,"onFallback");const y=A(R),u=()=>{V.isInFallback&&(m(null,S,v,y,T,null,p,a,c),Cr(V,S))},g=S.transition&&S.transition.mode==="out-in";g&&(R.transition.afterLeave=u),V.isInFallback=!0,k(R,T,null,!0),g||u()},move(S,E,R){V.activeBranch&&w(V.activeBranch,S,E,R),V.container=S},next(){return V.activeBranch&&A(V.activeBranch)},registerDep(S,E,R){const T=!!V.pendingBranch;T&&V.deps++;const v=S.vnode.el;S.asyncDep.catch(p=>{Gr(p,S,0)}).then(p=>{if(S.isUnmounted||V.isUnmounted||V.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:y}=S;wc(S,p,!1),v&&(y.el=v);const u=!v&&S.subTree.el;E(S,y,F(v||S.subTree.el),v?null:A(S.subTree),V,o,R),u&&j(u),Qa(S,y.el),T&&--V.deps===0&&V.resolve()})},unmount(S,E){V.isUnmounted=!0,V.activeBranch&&k(V.activeBranch,n,S,E),V.pendingBranch&&k(V.pendingBranch,n,S,E)}};return V}function Fv(t,e,n,i,r,s,o,a,c){const d=e.suspense=vm(e,i,n,t.parentNode,document.createElement("div"),null,r,s,o,a,!0),h=c(t,d.pendingBranch=e.ssContent,n,d,s,o);return d.deps===0&&d.resolve(!1,!0),h}function Uv(t){const{shapeFlag:e,children:n}=t,i=e&32;t.ssContent=Ld(i?n.default:n),t.ssFallback=i?Ld(n.fallback):ft(wt)}function Ld(t){let e;if(je(t)){const n=Or&&t._c;n&&(t._d=!1,ln()),t=t(),n&&(t._d=!0,e=Zt,wm())}return Ve(t)&&(t=Ov(t)),t=tn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function xm(t,e){e&&e.pendingBranch?Ve(t)?e.effects.push(...t):e.effects.push(t):pc(t)}function Cr(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t;let r=e.el;for(;!r&&e.component;)e=e.component.subTree,r=e.el;n.el=r,i&&i.subTree===n&&(i.vnode.el=r,Qa(i,r))}function Hv(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const zt=Symbol.for("v-fgt"),Yi=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Is=[];let Zt=null;function ln(t=!1){Is.push(Zt=t?null:[])}function wm(){Is.pop(),Zt=Is[Is.length-1]||null}let Or=1;function Dd(t,e=!1){Or+=t,t<0&&Zt&&e&&(Zt.hasOnce=!0)}function Em(t){return t.dynamicChildren=Or>0?Zt||Er:null,wm(),Or>0&&Zt&&Zt.push(t),t}function zv(t,e,n,i,r,s){return Em(Am(t,e,n,i,r,s,!0))}function Sn(t,e,n,i,r){return Em(ft(t,e,n,i,r,!0))}function Ji(t){return t?t.__v_isVNode===!0:!1}function mn(t,e){return t.type===e.type&&t.key===e.key}const Tm=({key:t})=>t??null,Ko=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ut(t)||pt(t)||je(t)?{i:Mt,r:t,k:e,f:!!n}:t:null);function Am(t,e=null,n=null,i=0,r=null,s=t===zt?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Tm(e),ref:e&&Ko(e),scopeId:Fg,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:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Mt};return a?(Fh(c,n),s&128&&t.normalize(c)):n&&(c.shapeFlag|=ut(n)?8:16),Or>0&&!o&&Zt&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Zt.push(c),c}const ft=$v;function $v(t,e=null,n=null,i=0,r=null,s=!1){if((!t||t===em)&&(t=wt),Ji(t)){const a=Wn(t,e,!0);return n&&Fh(a,n),Or>0&&!s&&Zt&&(a.shapeFlag&6?Zt[Zt.indexOf(t)]=a:Zt.push(a)),a.patchFlag=-2,a}if(Qv(t)&&(t=t.__vccOpts),e){e=Sm(e);let{class:a,style:c}=e;a&&!ut(a)&&(e.class=Ga(a)),st(c)&&(Ph(c)&&!Ve(c)&&(c=xt({},c)),e.style=Wa(c))}const o=ut(t)?1:ya(t)?128:Ug(t)?64:st(t)?4:je(t)?2:0;return Am(t,e,n,i,r,o,s,!0)}function Sm(t){return t?Ph(t)||am(t)?xt({},t):t:null}function Wn(t,e,n=!1,i=!1){const{props:r,ref:s,patchFlag:o,children:a,transition:c}=t,d=e?Im(r||{},e):r,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&Tm(d),ref:e&&e.ref?n&&s?Ve(s)?s.concat(Ko(e)):[s,Ko(e)]:Ko(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==zt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Wn(t.ssContent),ssFallback:t.ssFallback&&Wn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&i&&Mr(h,c.clone(h)),h}function Cm(t=" ",e=0){return ft(Yi,null,t,e)}function kM(t,e){const n=ft(Cs,null,t);return n.staticCount=e,n}function RM(t="",e=!1){return e?(ln(),Sn(wt,null,t)):ft(wt,null,t)}function tn(t){return t==null||typeof t=="boolean"?ft(wt):Ve(t)?ft(zt,null,t.slice()):Ji(t)?ui(t):ft(Yi,null,String(t))}function ui(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Wn(t)}function Fh(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(Ve(e))n=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),Fh(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!am(e)?e._ctx=Mt:r===3&&Mt&&(Mt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else je(e)?(e={default:e,_ctx:Mt},n=32):(e=String(e),i&64?(n=16,e=[Cm(e)]):n=8);t.children=e,t.shapeFlag|=n}function Im(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=Ga([e.class,i.class]));else if(r==="style")e.style=Wa([e.style,i.style]);else if(to(r)){const s=e[r],o=i[r];o&&s!==o&&!(Ve(s)&&s.includes(o))&&(e[r]=s?[].concat(s,o):o)}else r!==""&&(e[r]=i[r])}return e}function Yt(t,e,n,i=null){bn(t,e,7,[n,i])}const Wv=rm();let Gv=0;function qv(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||Wv,s={uid:Gv++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yg(!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:cm(i,r),emitsOptions:bm(i,r),emit:null,emitted:null,propsDefaults:rt,inheritAttrs:i.inheritAttrs,ctx:rt,data:rt,props:rt,attrs:rt,slots:rt,refs:rt,setupState:rt,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 s.ctx={_:s},s.root=e?e.root:s,s.emit=Mv.bind(null,s),t.ce&&t.ce(s),s}let Et=null;const so=()=>Et||Mt;let _a,xc;{const t=$a(),e=(n,i)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(i),s=>{r.length>1?r.forEach(o=>o(s)):r[0](s)}};_a=e("__VUE_INSTANCE_SETTERS__",n=>Et=n),xc=e("__VUE_SSR_SETTERS__",n=>Lr=n)}const oo=t=>{const e=Et;return _a(t),t.scope.on(),()=>{t.scope.off(),_a(e)}},Nd=()=>{Et&&Et.scope.off(),_a(null)};function Pm(t){return t.vnode.shapeFlag&4}let Lr=!1;function Kv(t,e=!1,n=!1){e&&xc(e);const{props:i,children:r}=t.vnode,s=Pm(t);_v(t,i,s,e),wv(t,r,n);const o=s?Xv(t,e):void 0;return e&&xc(!1),o}function Xv(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,cv);const{setup:i}=n;if(i){ki();const r=t.setupContext=i.length>1?Rm(t):null,s=oo(t),o=io(i,t,0,[t.props,r]),a=cg(o);if(Ri(),s(),(a||t.sp)&&!_i(t)&&Oh(t),a){if(o.then(Nd,Nd),e)return o.then(c=>{wc(t,c,e)}).catch(c=>{Gr(c,t,0)});t.asyncDep=o}else wc(t,o,e)}else km(t,e)}function wc(t,e,n){je(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:st(e)&&(t.setupState=Lg(e)),km(t,n)}let Vd;function km(t,e,n){const i=t.type;if(!t.render){if(!e&&Vd&&!i.render){const r=i.template||Dh(t).template;if(r){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:c}=i,d=xt(xt({isCustomElement:s,delimiters:a},o),c);i.render=Vd(r,d)}}t.render=i.render||Cn}{const r=oo(t);ki();try{uv(t)}finally{Ri(),r()}}}const Yv={get(t,e){return Ut(t,"get",""),t[e]}};function Rm(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Yv),slots:t.slots,emit:t.emit,expose:e}}function Uh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Lg(kh(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ss)return Ss[n](t)},has(e,n){return n in e||n in Ss}})):t.proxy}function Ec(t,e=!0){return je(t)?t.displayName||t.name:t.name||e&&t.__name}function Qv(t){return je(t)&&"__vccOpts"in t}const Jt=(t,e)=>F0(t,e,Lr);function Ot(t,e,n){const i=arguments.length;return i===2?st(e)&&!Ve(e)?Ji(e)?ft(t,null,[e]):ft(t,e):ft(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ji(n)&&(n=[n]),ft(t,e,n))}const Mm="3.5.13";/**
16* @vue/runtime-dom v3.5.13
17* (c) 2018-present Yuxi (Evan) You and Vue contributors
18* @license MIT
19**/let Tc;const jd=typeof window<"u"&&window.trustedTypes;if(jd)try{Tc=jd.createPolicy("vue",{createHTML:t=>t})}catch{}const Om=Tc?t=>Tc.createHTML(t):t=>t,Jv="http://www.w3.org/2000/svg",Zv="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,Bd=Un&&Un.createElement("template"),ex={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e==="svg"?Un.createElementNS(Jv,t):e==="mathml"?Un.createElementNS(Zv,t):n?Un.createElement(t,{is:n}):Un.createElement(t);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>Un.createTextNode(t),createComment:t=>Un.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Un.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,s){const o=n?n.previousSibling:e.lastChild;if(r&&(r===s||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Bd.innerHTML=Om(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const a=Bd.content;if(i==="svg"||i==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},si="transition",us="animation",zs=Symbol("_vtc"),Lm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},tx=xt({},Hg,Lm),nx=t=>(t.displayName="Transition",t.props=tx,t),Dm=nx((t,{slots:e})=>Ot(K0,ix(t),e)),Ui=(t,e=[])=>{Ve(t)?t.forEach(n=>n(...e)):t&&t(...e)},Fd=t=>t?Ve(t)?t.some(e=>e.length>1):t.length>1:!1;function ix(t){const e={};for(const y in t)y in Lm||(e[y]=t[y]);if(t.css===!1)return e;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:d=o,appearToClass:h=a,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:w=`${n}-leave-active`,leaveToClass:k=`${n}-leave-to`}=t,A=rx(r),F=A&&A[0],j=A&&A[1],{onBeforeEnter:U,onEnter:C,onEnterCancelled:x,onLeave:I,onLeaveCancelled:V,onBeforeAppear:S=U,onAppear:E=C,onAppearCancelled:R=x}=e,T=(y,u,g,f)=>{y._enterCancelled=f,Hi(y,u?h:a),Hi(y,u?d:o),g&&g()},v=(y,u)=>{y._isLeaving=!1,Hi(y,m),Hi(y,k),Hi(y,w),u&&u()},p=y=>(u,g)=>{const f=y?E:C,M=()=>T(u,y,g);Ui(f,[u,M]),Ud(()=>{Hi(u,y?c:s),Vn(u,y?h:a),Fd(f)||Hd(u,i,F,M)})};return xt(e,{onBeforeEnter(y){Ui(U,[y]),Vn(y,s),Vn(y,o)},onBeforeAppear(y){Ui(S,[y]),Vn(y,c),Vn(y,d)},onEnter:p(!1),onAppear:p(!0),onLeave(y,u){y._isLeaving=!0;const g=()=>v(y,u);Vn(y,m),y._enterCancelled?(Vn(y,w),Wd()):(Wd(),Vn(y,w)),Ud(()=>{y._isLeaving&&(Hi(y,m),Vn(y,k),Fd(I)||Hd(y,i,j,g))}),Ui(I,[y,g])},onEnterCancelled(y){T(y,!1,void 0,!0),Ui(x,[y])},onAppearCancelled(y){T(y,!0,void 0,!0),Ui(R,[y])},onLeaveCancelled(y){v(y),Ui(V,[y])}})}function rx(t){if(t==null)return null;if(st(t))return[Fl(t.enter),Fl(t.leave)];{const e=Fl(t);return[e,e]}}function Fl(t){return fg(t)}function Vn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[zs]||(t[zs]=new Set)).add(e)}function Hi(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[zs];n&&(n.delete(e),n.size||(t[zs]=void 0))}function Ud(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let sx=0;function Hd(t,e,n,i){const r=t._endId=++sx,s=()=>{r===t._endId&&i()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:c}=ox(t,e);if(!o)return i();const d=o+"end";let h=0;const m=()=>{t.removeEventListener(d,w),s()},w=k=>{k.target===t&&++h>=c&&m()};setTimeout(()=>{h<c&&m()},a+1),t.addEventListener(d,w)}function ox(t,e){const n=window.getComputedStyle(t),i=A=>(n[A]||"").split(", "),r=i(`${si}Delay`),s=i(`${si}Duration`),o=zd(r,s),a=i(`${us}Delay`),c=i(`${us}
19Duration`),d=zd(a,c);let h=null,m=0,w=0;e===si?o>0&&(h=si,m=o,w=s.length):e===us?d>0&&(h=us,m=d,w=c.length):(m=Math.max(o,d),h=m>0?o>d?si:us:null,w=h?h===si?s.length:c.length:0);const k=h===si&&/\b(transform|all)(,|$)/.test(i(`${si}Property`).toString());return{type:h,timeout:m,propCount:w,hasTransform:k}}function zd(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>$d(n)+$d(t[i])))}function $d(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Wd(){return document.body.offsetHeight}function ax(t,e,n){const i=t[zs];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Gd=Symbol("_vod"),lx=Symbol("_vsh"),cx=Symbol(""),hx=/(^|;)\s*display\s*:/;function ux(t,e,n){const i=t.style,r=ut(n);let s=!1;if(n&&!r){if(e)if(ut(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Xo(i,a,"")}else for(const o in e)n[o]==null&&Xo(i,o,"");for(const o in n)o==="display"&&(s=!0),Xo(i,o,n[o])}else if(r){if(e!==n){const o=i[cx];o&&(n+=";"+o),i.cssText=n,s=hx.test(n)}}else e&&t.removeAttribute("style");Gd in t&&(t[Gd]=s?i.display:"",t[lx]&&(i.display="none"))}const qd=/\s*!important$/;function Xo(t,e,n){if(Ve(n))n.forEach(i=>Xo(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=dx(t,e);qd.test(n)?t.setProperty(tr(i),n.replace(qd,""),"important"):t[i]=n}}const Kd=["Webkit","Moz","ms"],Ul={};function dx(t,e){const n=Ul[e];if(n)return n;let i=un(e);if(i!=="filter"&&i in t)return Ul[e]=i;i=za(i);for(let r=0;r<Kd.length;r++){const s=Kd[r]+i;if(s in t)return Ul[e]=s}return e}const Xd="http://www.w3.org/1999/xlink";function Yd(t,e,n,i,r,s=d0(e)){i&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Xd,e.slice(6,e.length)):t.setAttributeNS(Xd,e,n):n==null||s&&!pg(n)?t.removeAttribute(e):t.setAttribute(e,s?"":Xn(n)?String(n):n)}function Qd(t,e,n,i,r){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?Om(n):n);return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?t.getAttribute("value")||"":t.value,c=n==null?t.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in t))&&(t.value=c),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=pg(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(r||e)}function fx(t,e,n,i){t.addEventListener(e,n,i)}function px(t,e,n,i){t.removeEventListener(e,n,i)}const Jd=Symbol("_vei");function gx(t,e,n,i,r=null){const s=t[Jd]||(t[Jd]={}),o=s[e];if(i&&o)o.value=i;else{const[a,c]=mx(e);if(i){const d=s[e]=bx(i,r);fx(t,a,d,c)}else o&&(px(t,a,o,c),s[e]=void 0)}}const Zd=/(?:Once|Passive|Capture)$/;function mx(t){let e;if(Zd.test(t)){e={};let i;for(;i=t.match(Zd);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):tr(t.slice(2)),e]}let Hl=0;const yx=Promise.resolve(),_x=()=>Hl||(yx.then(()=>Hl=0),Hl=Date.now());function bx(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;bn(vx(i,n.value),e,5,[i])};return n.value=t,n.attached=_x(),n}function vx(t,e){if(Ve(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const ef=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,xx=(t,e,n,i,r,s)=>{const o=r==="svg";e==="class"?ax(t,i,o):e==="style"?ux(t,n,i):to(e)?_h(e)||gx(t,e,n,i,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wx(t,e,i,o))?(Qd(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Yd(t,e,i,o,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!ut(i))?Qd(t,un(e),i,s,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),Yd(t,e,i,o))};function wx(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&ef(e)&&je(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||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 ef(e)&&ut(n)?!1:e in t}const Nm=xt({patchProp:xx},ex);let Ps,tf=!1;function Ex(){return Ps||(Ps=Tv(Nm))}function Tx(){return Ps=tf?Ps:Av(Nm),tf=!0,Ps}const Ax=(...t)=>{const e=Ex().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=jm(i);if(!r)return;const s=e._component;!je(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Vm(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e},Sx=(...t)=>{const e=Tx().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=jm(i);if(r)return n(r,!0,Vm(r))},e};function Vm(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function jm(t){return ut(t)?document.querySelector(t):t}const Cx=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ix=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Px=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function kx(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){Rx(t);return}return e}function Rx(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function ba(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const i=n.toLowerCase();if(i==="true")return!0;
19if(i==="false")return!1;if(i==="undefined")return;if(i==="null")return null;if(i==="nan")return Number.NaN;if(i==="infinity")return Number.POSITIVE_INFINITY;if(i==="-infinity")return Number.NEGATIVE_INFINITY}if(!Px.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(Cx.test(t)||Ix.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,kx)}return JSON.parse(t)}catch(i){if(e.strict)throw i;return t}}const Mx=/#/g,Ox=/&/g,Lx=/\//g,Dx=/=/g,Hh=/\+/g,Nx=/%5e/gi,Vx=/%60/gi,jx=/%7c/gi,Bx=/%20/gi;function Fx(t){return encodeURI(""+t).replace(jx,"|")}function Ac(t){return Fx(typeof t=="string"?t:JSON.stringify(t)).replace(Hh,"%2B").replace(Bx,"+").replace(Mx,"%23").replace(Ox,"%26").replace(Vx,"`").replace(Nx,"^").replace(Lx,"%2F")}function zl(t){return Ac(t).replace(Dx,"%3D")}function va(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function Ux(t){return va(t.replace(Hh," "))}function Hx(t){return va(t.replace(Hh," "))}function zx(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const i=n.match(/([^=]+)=?(.*)/)||[];if(i.length<2)continue;const r=Ux(i[1]);if(r==="__proto__"||r==="constructor")continue;const s=Hx(i[2]||"");e[r]===void 0?e[r]=s:Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]}return e}function $x(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${zl(t)}=${Ac(n)}`).join("&"):`${zl(t)}=${Ac(e)}`:zl(t)}function Wx(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>$x(e,t[e])).filter(Boolean).join("&")}const Gx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,qx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Kx=/^([/\\]\s*){2,}[^/\\]/,Xx=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Yx=/\/$|\/\?|\/#/,Qx=/^\.?\//;function ir(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?Gx.test(t):qx.test(t)||(e.acceptRelative?Kx.test(t):!1)}function Jx(t){return!!t&&Xx.test(t)}function Sc(t="",e){return e?Yx.test(t):t.endsWith("/")}function zh(t="",e){if(!e)return(Sc(t)?t.slice(0,-1):t)||"/";if(!Sc(t,!0))return t||"/";let n=t,i="";const r=t.indexOf("#");r>=0&&(n=t.slice(0,r),i=t.slice(r));const[s,...o]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(o.length>0?`?${o.join("?")}`:"")+i}function Cc(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Sc(t,!0))return t||"/";let n=t,i="";const r=t.indexOf("#");if(r>=0&&(n=t.slice(0,r),i=t.slice(r),!n))return i;const[s,...o]=n.split("?");return s+"/"+(o.length>0?`?${o.join("?")}`:"")+i}function Zx(t=""){return t.startsWith("/")}function nf(t=""){return Zx(t)?t:"/"+t}function ew(t,e){if(Fm(e)||ir(t))return t;const n=zh(e);return t.startsWith(n)?t:$h(n,t)}function rf(t,e){if(Fm(e))return t;const n=zh(e);if(!t.startsWith(n))return t;const i=t.slice(n.length);return i[0]==="/"?i:"/"+i}function Bm(t,e){const n=iw(t),i={...zx(n.search),...e};return n.search=Wx(i),rw(n)}function Fm(t){return!t||t==="/"}function tw(t){return t&&t!=="/"}function $h(t,...e){let n=t||"";for(const i of e.filter(r=>tw(r)))if(n){const r=i.replace(Qx,"");n=Cc(n)+r}else n=i;return n}function Um(...t){var o,a,c,d;const e=/\/(?!\/)/,n=t.filter(Boolean),i=[];let r=0;for(const h of n)if(!(!h||h==="/")){for(const[m,w]of h.split(e).entries())if(!(!w||w===".")){if(w===".."){if(i.length===1&&ir(i[0]))continue;i.pop(),r--;continue}if(m===1&&((o=i[i.length-1])!=null&&o.endsWith(":/"))){i[i.length-1]+="/"+w;continue}i.push(w),r++}}let s=i.join("/");return r>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(c=n[0])!=null&&c.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*r)+s,(d=n[n.length-1])!=null&&d.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function nw(t,e,n={}){return n.trailingSlash||(t=Cc(t),e=Cc(e)),n.leadingSlash||(t=nf(t),e=nf(e)),n.encoding||(t=va(t),e=va(e)),t===e}const Hm=Symbol.for("ufo:protocolRelative");function iw(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,m,w=""]=n;return{protocol:m.toLowerCase(),pathname:w,href:m+w,auth:"",host:"",search:"",hash:""}}if(!ir(t,{acceptRelative:!0}))return sf(t);const[,i="",r,s=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];i==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:d,hash:h}=sf(a);return{protocol:i.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:o,pathname:c,search:d,hash:h,[Hm]:!i}}function sf(t=""){const[e="",n="",i=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:i}}function rw(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?""
19:"?")+t.search:"",i=t.hash||"",r=t.auth?t.auth+"@":"",s=t.host||"";return(t.protocol||t[Hm]?(t.protocol||"")+"//":"")+r+s+e+n+i}class sw extends Error{constructor(e,n){super(e,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function ow(t){var c,d,h,m,w;const e=((c=t.error)==null?void 0:c.message)||((d=t.error)==null?void 0:d.toString())||"",n=((h=t.request)==null?void 0:h.method)||((m=t.options)==null?void 0:m.method)||"GET",i=((w=t.request)==null?void 0:w.url)||String(t.request)||"/",r=`[${n}] ${JSON.stringify(i)}`,s=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${r}: ${s}${e?` ${e}`:""}`,a=new sw(o,t.error?{cause:t.error}:void 0);for(const k of["request","options","response"])Object.defineProperty(a,k,{get(){return t[k]}});for(const[k,A]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,k,{get(){return t.response&&t.response[A]}});return a}const aw=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function of(t="GET"){return aw.has(t.toUpperCase())}function lw(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const cw=new Set(["image/svg","application/xml","application/xhtml","application/html"]),hw=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function uw(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return hw.test(e)?"json":cw.has(e)||e.startsWith("text/")?"text":"blob"}function dw(t,e,n,i){const r=fw((e==null?void 0:e.headers)??(t==null?void 0:t.headers),n==null?void 0:n.headers,i);let s;return(n!=null&&n.query||n!=null&&n.params||e!=null&&e.params||e!=null&&e.query)&&(s={...n==null?void 0:n.params,...n==null?void 0:n.query,...e==null?void 0:e.params,...e==null?void 0:e.query}),{...n,...e,query:s,params:s,headers:r}}function fw(t,e,n){if(!e)return new n(t);const i=new n(e);if(t)for(const[r,s]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))i.set(r,s);return i}async function jo(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const pw=new Set([408,409,425,429,500,502,503,504]),gw=new Set([101,204,205,304]);function zm(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:i=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let h;typeof a.options.retry=="number"?h=a.options.retry:h=of(a.options.method)?0:1;const m=a.response&&a.response.status||500;if(h>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(m):pw.has(m))){const w=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return w>0&&await new Promise(k=>setTimeout(k,w)),s(a.request,{...a.options,retry:h-1})}}const d=ow(a);throw Error.captureStackTrace&&Error.captureStackTrace(d,s),d}const s=async function(c,d={}){const h={request:c,options:dw(c,d,t.defaults,n),response:void 0,error:void 0};h.options.method&&(h.options.method=h.options.method.toUpperCase()),h.options.onRequest&&await jo(h,h.options.onRequest),typeof h.request=="string"&&(h.options.baseURL&&(h.request=ew(h.request,h.options.baseURL)),h.options.query&&(h.request=Bm(h.request,h.options.query),delete h.options.query),"query"in h.options&&delete h.options.query,"params"in h.options&&delete h.options.params),h.options.body&&of(h.options.method)&&(lw(h.options.body)?(h.options.body=typeof h.options.body=="string"?h.options.body:JSON.stringify(h.options.body),h.options.headers=new n(h.options.headers||{}),h.options.headers.has("content-type")||h.options.headers.set("content-type","application/json"),h.options.headers.has("accept")||h.options.headers.set("accept","application/json")):("pipeTo"in h.options.body&&typeof h.options.body.pipeTo=="function"||typeof h.options.body.pipe=="function")&&("duplex"in h.options||(h.options.duplex="half")));let m;if(!h.options.signal&&h.options.timeout){const k=new i;m=setTimeout(()=>{const A=new Error("[TimeoutError]: The operation was aborted due to timeout");A.name="TimeoutError",A.code=23,k.abort(A)},h.options.timeout),h.options.signal=k.signal}try{h.response=await e(h.request,h.options)}catch(k){return h.error=k,h.options.onRequestError&&await jo(h,h.options.onRequestError),await r(h)}finally{m&&clearTimeout(m)}if((h.response.body||h.response._bodyInit)&&!gw.has(h.response.status)&&h.options.method!=="HEAD"){const k=(h.options.parseResponse?"json":h.options.responseType)||uw(h.response.headers.get("content-type")||"");switch(k){case"json":{const A=await h.response.text(),F=h.options.parseResponse||ba;h.response._data=F(A);break}case"stream":{h.response._data=h.response.body||h.response._bodyInit;break}default:h.response._data=await h.response[k]()}}return h.options.onResponse&&await jo(h,h.options.onResponse),!h.options.ignoreResponseError&&h.response.status>=400&&h.response.status<600?(h.options.onResponseError&&await jo(h,h.options.onResponseError),await r(h)):h.response},o=async function(c,d){return(await s(c,d))._data};return o.raw=s,o.native=(...a)=>e(...a),o.create=(a={},c={})=>zm({...t,...c,defaults:{...t.defaults,...c.defaults,...a}}),o}const xa=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),mw=xa.fetch?(...t)=>xa.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),yw=xa.Headers,_w=xa.AbortController,bw=zm({fetch:mw,Headers:yw,AbortController:_w}),vw=bw,xw=()=>{var t;return((t=window==null?void 0:window.__NUXT__)==null?void 0:t.config)||{}},wa=xw().app,ww=()=>wa.baseURL,Ew=()=>wa.buildAssetsDir,Wh=(...t)=>Um($m(),Ew(),...t),$m=(...t)=>{const e=wa.cdnURL||wa.baseURL;return t.length?Um(e,...t):e};globalThis.__buildAssetsURL=Wh,globalThis.__publicAssetsURL=$m;globalThis.$fetch||(globalThis.$fetch=vw.create({baseURL:ww()}));function Ic(t,e={},n){for(const i in t){const r=t[i],s=n?`${n}:${i}`:i;typeof r=="object"&&r!==null?Ic(r,e,s):typeof r=="function"&&(e[s]=r)}return e}const Tw={run:t=>t()},Aw=()=>Tw,Wm=typeof console.createTask<"u"?console.createTask:Aw;function Sw(t,e){const n=e.shift(),i=Wm(n);return t.reduce((r,s)=>r.then(()=>i.run(()=>s(...e))),Promise.resolve())}function Cw(t,e){const n=e.shift(),i=Wm(n);return Promise.all(t.map(r=>i.run(()=>r(...e))))}function $l(t,e){for(const n of[...t])n(e)}class Iw{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,i={}){if(!e||typeof n!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!i.allowDeprecated){let o=s.message;o||(o=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||
19(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let i,r=(...s)=>(typeof i=="function"&&i(),i=void 0,r=void 0,n(...s));return i=this.hook(e,r),i}removeHook(e,n){if(this._hooks[e]){const i=this._hooks[e].indexOf(n);i!==-1&&this._hooks[e].splice(i,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const i=this._hooks[e]||[];delete this._hooks[e];for(const r of i)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Ic(e),i=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of i.splice(0,i.length))r()}}removeHooks(e){const n=Ic(e);for(const i in n)this.removeHook(i,n[i])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(Sw,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(Cw,e,...n)}callHookWith(e,n,...i){const r=this._before||this._after?{name:n,args:i,context:{}}:void 0;this._before&&$l(this._before,r);const s=e(n in this._hooks?[...this._hooks[n]]:[],i);return s instanceof Promise?s.finally(()=>{this._after&&r&&$l(this._after,r)}):(this._after&&r&&$l(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Gm(){return new Iw}function Pw(t={}){let e,n=!1;const i=o=>{if(e&&e!==o)throw new Error("Context conflict")};let r;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?r=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>
19{if(r){const o=r.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=s();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>s(),set:(o,a)=>{a||i(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{i(o),e=o;try{return r?r.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const c=()=>{e=o},d=()=>e===o?c:void 0;Pc.add(d);try{const h=r?r.run(o,a):a();return n||(e=void 0),await h}finally{Pc.delete(d)}}}}function kw(t={}){const e={};return{get(n,i={}){return e[n]||(e[n]=Pw({...t,...i})),e[n]}}}const Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},af="__unctx__",Rw=Ea[af]||(Ea[af]=kw()),Mw=(t,e={})=>Rw.get(t,e),lf="__unctx_async_handlers__",Pc=Ea[lf]||(Ea[lf]=new Set);function Ir(t){const e=[];for(const r of Pc){const s=r();s&&e.push(s)}const n=()=>{for(const r of e)r()};let i=t();return i&&typeof i=="object"&&"catch"in i&&(i=i.catch(r=>{throw n(),r})),[i,n]}const Ow=!1,kc=!1,Lw=!1,MM={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Dw=null,Nw="#__nuxt",qm="nuxt-app",cf=36e5,Vw="vite:preloadError";function Km(t=qm){return Mw(t,{asyncContext:!1})}const jw="__nuxt_plugin";function Bw(t){var r;let e=0;const n={_id:t.id||qm||"nuxt-app",_scope:xh(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.15.2"},get vue(){return n.vueApp.version}},payload:zn({...((r=t.ssrContext)==null?void 0:r.payload)||{},data:zn({}),state:wn({}),once:new Set,_errors:zn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!wh()?n._scope.run(()=>hf(n,s)):hf(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:zn({}),_payloadRevivers:{},...t};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=Gm(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const a="$"+s;Bo(n,a,o),Bo(n.vueApp.config.globalProperties,a,o)},Bo(n.vueApp,"$nuxt",n),Bo(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Vw,o=>{n.callHook("app:chunkError",{error:o.payload}),(n.isHydrating||o.payload.message.includes("Unable to preload CSS"))&&o.preventDefault()}),window.useNuxtApp=window.useNuxtApp||ot;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const i=n.payload.config;return n.provide("config",i),n}function Fw(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function Uw(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const i in n)t.provide(i,n[i])}}async function Hw(t,e){const n=[],i=[],r=[],s=[];let o=0;async function a(c){var h;const d=((h=c.dependsOn)==null?void 0:h.filter(m=>e.some(w=>w._name===m)&&!n.includes(m)))??[];if(d.length>0)i.push([new Set(d),c]);else{const m=Uw(t,c).then(async()=>{c._name&&(n.push(c._name),await Promise.all(i.map(async([w,k])=>{w.has(c._name)&&(w.delete(c._name),w.size===0&&(o++,await a(k)))})))});c.parallel?r.push(m.catch(w=>s.push(w))):await m}}for(const c of e)Fw(t,c);for(const c of e)await a(c);if(await Promise.all(r),o)for(let c=0;c<o;c++)await Promise.all(r);if(s.length)throw s[0]}function St(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[jw]:!0,_name:e})}const zw=St;function hf(t,e,n){const i=()=>e();return Km(t._id).set(t),t.vueApp.runWithContext(i)}function $w(t){var n;let e;return Nh()&&(e=(n=so())==null?void 0:n.appContext.app.$nuxt),e=e||Km(t).tryUse(),e||null}function ot(t){const e=$w(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function ao(t){return ot().$config}function Bo(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function Ww(t,e){return{ctx:{table:t},matchAll:n=>Ym(n,t)}}function Xm(t){const e={};for(const n in t)e[n]=n==="dynamic"?new Map(Object.entries(t[n]).map(([i,r])=>[i,Xm(r)])):new Map(Object.entries(t[n]));return e}function Gw(t){return Ww(Xm(t))}
19function Ym(t,e,n){t.endsWith("/")&&(t=t.slice(0,-1)||"/");const i=[];for(const[s,o]of uf(e.wildcard))(t===s||t.startsWith(s+"/"))&&i.push(o);for(const[s,o]of uf(e.dynamic))if(t.startsWith(s+"/")){const a="/"+t.slice(s.length).split("/").splice(2).join("/");i.push(...Ym(a,o))}const r=e.static.get(t);return r&&i.push(r),i.filter(Boolean)}function uf(t){return[...t.entries()].sort((e,n)=>e[0].length-n[0].length)}function Wl(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Rc(t,e,n=".",i){if(!Wl(e))return Rc(t,{},n,i);const r=Object.assign({},e);for(const s in t){if(s==="__proto__"||s==="constructor")continue;const o=t[s];o!=null&&(i&&i(r,s,o,n)||(Array.isArray(o)&&Array.isArray(r[s])?r[s]=[...o,...r[s]]:Wl(o)&&Wl(r[s])?r[s]=Rc(o,r[s],(n?`${n}.`:"")+s.toString(),i):r[s]=o))}return r}function Gh(t){return(...e)=>e.reduce((n,i)=>Rc(n,i,"",t),{})}const Ja=Gh(),qw=Gh((t,e,n)=>{if(t[e]!==void 0&&typeof n=="function")return t[e]=n(t[e]),!0});function Kw(t,e){try{return e in t}catch{return!1}}class Mc extends Error{constructor(n,i={}){super(n,i);ri(this,"statusCode",500);ri(this,"fatal",!1);ri(this,"unhandled",!1);ri(this,"statusMessage");ri(this,"data");ri(this,"cause");i.cause&&!this.cause&&(this.cause=i.cause)}toJSON(){const n={message:this.message,statusCode:Lc(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=Qm(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}ri(Mc,"__h3_error__",!0);function Oc(t){if(typeof t=="string")return new Mc(t);if(Xw(t))return t;const e=new Mc(t.message??t.statusMessage??"",{cause:t.cause||t});if(Kw(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=Lc(t.statusCode,e.statusCode):t.status&&(e.statusCode=Lc(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;Qm(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function Xw(t){var e;return((e=t==null?void 0:t.constructor)==null?void 0:e.__h3_error__)===!0}const Yw=/[^\u0009\u0020-\u007E]/g;function Qm(t=""){return t.replace(Yw,"")}function Lc(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const Jm=Symbol("layout-meta"),lo=Symbol("route"),sn=()=>{var t;return(t=ot())==null?void 0:t.$router},qh=()=>Nh()?Wt(lo,ot()._route):ot()._route;const Qw=()=>{try{if(ot()._processingMiddleware)return!0}catch{return!1}return!1},OM=(t,e)=>{t||(t="/");const n=typeof t=="string"?t:"path"in t?Jw(t):sn().resolve(t).href;if(e!=null&&e.open){const{target:c="_blank",windowFeatures:d={}}=e.open,h=Object.entries(d).filter(([m,w])=>w!==void 0).map(([m,w])=>`${m.toLowerCase()}=${w}`).join(", ");return open(n,c,h),Promise.resolve()}const i=ir(n,{acceptRelative:!0}),r=(e==null?void 0:e.external)||i;if(r){if(!(e!=null&&e.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(n,window.location.href);if(c&&Jx(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const s=Qw();if(!r&&s)return e!=null&&e.replace?typeof t=="string"?{path:t,replace:!0}:{...t,replace:!0}:t;const o=sn(),a=ot();return r?(a._scope.stop(),e!=null&&e.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e!=null&&e.replace?o.replace(t):o.push(t)};function Jw(t){return Bm(t.path||"",t.query||{})+(t.hash||"")}const Zm="__nuxt_error",Za=()=>Dg(ot().payload,"error"),wr=t=>{const e=el(t);try{const n=ot(),i=Za();n.hooks.callHook("app:error",e),i.value=i.value||e}catch{throw e}return e},Zw=async(t={})=>{const e=ot(),n=Za();e.callHook("app:error:cleared",t),t.redirect&&await sn().replace(t.redirect),n.value=Dw},eE=t=>!!t&&typeof t=="object"&&Zm in t,el=t=>{const e=Oc(t);return Object.defineProperty(e,Zm,{value:!0,configurable:!1,writable:!1}),e};/*!
20 * pinia v2.3.1
21 * (c) 2025 Eduardo San Martin Morote
22 * @license MIT
23 */let ey;const co=t=>ey=t,ty=Symbol();function Dc(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ks;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ks||(ks={}));function tE(){const t=xh(!0),e=t.run(()=>nn({}));let n=[],i=[];const r=kh({install(s){co(r),r._a=s,s.provide(ty,r),s.config.globalProperties.$pinia=r,i.forEac
23h(o=>n.push(o)),i=[]},use(s){return this._a?n.push(s):i.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const ny=()=>{};function df(t,e,n,i=ny){t.push(e);const r=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),i())};return!n&&wh()&&p0(r),r}function pr(t,...e){t.slice().forEach(n=>{n(...e)})}const nE=t=>t(),ff=Symbol(),Gl=Symbol();function Nc(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],r=t[n];Dc(r)&&Dc(i)&&t.hasOwnProperty(n)&&!pt(i)&&!$n(i)?t[n]=Nc(r,i):t[n]=i}return t}const iE=Symbol();function rE(t){return!Dc(t)||!t.hasOwnProperty(iE)}const{assign:li}=Object;function sE(t){return!!(pt(t)&&t.effect)}function oE(t,e,n,i){const{state:r,actions:s,getters:o}=e,a=n.state.value[t];let c;function d(){a||(n.state.value[t]=r?r():{});const h=N0(n.state.value[t]);return li(h,s,Object.keys(o||{}).reduce((m,w)=>(m[w]=kh(Jt(()=>{co(n);const k=n._s.get(t);return o[w].call(k,k)})),m),{}))}return c=iy(t,d,e,n,i,!0),c}function iy(t,e,n={},i,r,s){let o;const a=li({actions:{}},n),c={deep:!0};let d,h,m=[],w=[],k;const A=i.state.value[t];!s&&!A&&(i.state.value[t]={}),nn({});let F;function j(R){let T;d=h=!1,typeof R=="function"?(R(i.state.value[t]),T={type:ks.patchFunction,storeId:t,events:k}):(Nc(i.state.value[t],R),T={type:ks.patchObject,payload:R,storeId:t,events:k});const v=F=Symbol();nr().then(()=>{F===v&&(d=!0)}),h=!0,pr(m,T,i.state.value[t])}const U=s?function(){const{state:T}=n,v=T?T():{};this.$patch(p=>{li(p,v)})}:ny;function C(){o.stop(),m=[],w=[],i._s.delete(t)}const x=(R,T="")=>{if(ff in R)return R[Gl]=T,R;const v=function(){co(i);const p=Array.from(arguments),y=[],u=[];function g(L){y.push(L)}function f(L){u.push(L)}pr(w,{args:p,name:v[Gl],store:V,after:g,onError:f});let M;try{M=R.apply(this&&this.$id===t?this:V,p)}catch(L){throw pr(u,L),L}return M instanceof Promise?M.then(L=>(pr(y,L),L)).catch(L=>(pr(u,L),Promise.reject(L))):(pr(y,M),M)};return v[ff]=!0,v[Gl]=T,v},I={_p:i,$id:t,$onAction:df.bind(null,w),$patch:j,$reset:U,$subscribe(R,T={}){const v=df(m,R,T.detached,()=>p()),p=o.run(()=>In(()=>i.state.value[t],y=>{(T.flush==="sync"?h:d)&&R({storeId:t,type:ks.direct,events:k},y)},li({},c,T)));return v},$dispose:C},V=wn(I);i._s.set(t,V);const E=(i._a&&i._a.runWithContext||nE)(()=>i._e.run(()=>(o=xh()).run(()=>e({action:x}))));for(const R in E){const T=E[R];if(pt(T)&&!sE(T)||$n(T))s||(A&&rE(T)&&(pt(T)?T.value=A[R]:Nc(T,A[R])),i.state.value[t][R]=T);else if(typeof T=="function"){const v=x(T,R);E[R]=v,a.actions[R]=T}}return li(V,E),li(Ke(V),E),Object.defineProperty(V,"$state",{get:()=>i.state.value[t],set:R=>{j(T=>{li(T,R)})}}),i._p.forEach(R=>{li(V,o.run(()=>R({store:V,app:i._a,pinia:i,options:a})))}),A&&s&&n.hydrate&&n.hydrate(V.$state,A),d=!0,h=!0,V}/*! #__NO_SIDE_EFFECTS__ */function LM(t,e,n){let i,r;const s=typeof e=="function";i=t,r=s?n:e;function o(a,c){const d=Nh();return a=a||(d?Wt(ty,null):null),a&&co(a),a=ey,a._s.has(i)||(s?iy(i,e,r,a):oE(i,r,a)),a._s.get(i)}return o.$id=i,o}function pf(t){const e=lE(t),n=new ArrayBuffer(e.length),i=new DataView(n);for(let r=0;r<n.byteLength;r++)i.setUint8(r,e.charCodeAt(r));return n}const aE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function lE(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,i=0;for(let r=0;r<t.length;r++)n<<=6,n|=aE.indexOf(t[r]),i+=6,i===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=i=0);return i===12?(n>>=4,e+=String.fromCharCode(n)):i===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const cE=-1,hE=-2,uE=-3,dE=-4,fE=-5,pE=-6;function gE(t,e){return mE(JSON.parse(t),e)}function mE(t,e){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,i=Array(n.length);function r(s,o=!1){if(s===cE)return;if(s===uE)return NaN;if(s===dE)return 1/0;if(s===fE)return-1/0;if(s===pE)return-0;if(o)throw new Error("Invalid input");if(s in i)return i[s];const a=n[s];if(!a||typeof a!="object")i[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const c=a[0],d=e==null?void 0:e[c];if(d)return i[s]=d(r(a[1]));switch(c){case"Date":i[s]=new Date(a[1]);break;case"Set":const h=new Set;i[s]=h;for(let k=1;k<a.length;k+=1)h.add(r(a[k]));break;case"Map":const m=new Map;i[s]=m;for(let k=1;k<a.length;k+=2)m.set(r(a[k]),r(a[k+1]));break;case"RegExp":i[s]=new RegExp(a[1],a[2]);break;case"Object":i[s]=Object(a[1]);break;case"BigInt":i[s]=BigInt(a[1]);break;case"null":const w=Object.create(null);i[s]=w;for(let k=1;k<a.length;k+=2)w[a[k]]=r(a[k+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const k=globalThis[c],A=a[1],F=pf(A),j=new k(F);i[s]=j;break}case"ArrayBuffer":{const k=a[1],A=pf(k);i[s]=A;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(a.length);i[s]=c;for(let d=0;d<a.length;d+=1){const h=a[d];h!==hE&&(c[d]=r(h))}}else{const c={};i[s]=c;for(const d in a){const h=a[d];c[d]=r(h)}}return i[s]}return r(0)}const yE=new Set(["title","titleTemplate","script","style","noscript"]),Yo=new Set(["base","meta","link","style","script","noscript"]),_E=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),bE=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),ry=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),vE=typeof window<"u";function Ta(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Vc(t){if(t._h)return t._h;
23if(t._d)return Ta(t._d);let e=`${t.tag}:${t.textContent||t.innerHTML||""}:`;for(const n in t.props)e+=`${n}:${String(t.props[n])},`;return Ta(e)}function xE(t,e){return t instanceof Promise?t.then(e):e(t)}function jc(t,e,n,i){const r=i||oy(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},t==="templateParams"||t==="titleTemplate");if(r instanceof Promise)return r.then(o=>jc(t,e,n,o));const s={tag:t,props:r};for(const o of ry){const a=s.props[o]!==void 0?s.props[o]:n[o];a!==void 0&&((!(o==="innerHTML"||o==="textContent"||o==="children")||yE.has(s.tag))&&(s[o==="children"?"innerHTML":o]=a),delete s.props[o])}return s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function wE(t,e){var i;const n=t==="class"?" ":";";return e&&typeof e=="object"&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,r])=>r).map(([r,s])=>t==="style"?`${r}:${s}`:r)),(i=String(Array.isArray(e)?e.join(n):e))==null?void 0:i.split(n).filter(r=>!!r.trim()).join(n)}function sy(t,e,n,i){for(let r=i;r<n.length;r+=1){const s=n[r];if(s==="class"||s==="style"){t[s]=wE(s,t[s]);continue}if(t[s]instanceof Promise)return t[s].then(o=>(t[s]=o,sy(t,e,n,r)));if(!e&&!ry.has(s)){const o=String(t[s]),a=s.startsWith("data-");o==="true"||o===""?t[s]=a?"true":!0:t[s]||(a&&o==="false"?t[s]="false":delete t[s])}}}function oy(t,e=!1){const n=sy(t,e,Object.keys(t),0);return n instanceof Promise?n.then(()=>t):t}const EE=10;function ay(t,e,n){for(let i=n;i<e.length;i+=1){const r=e[i];if(r instanceof Promise)return r.then(s=>(e[i]=s,ay(t,e,i)));Array.isArray(r)?t.push(...r):t.push(r)}}function TE(t){const e=[],n=t.resolvedInput;for(const r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;const s=n[r];
23if(!(s===void 0||!_E.has(r))){if(Array.isArray(s)){for(const o of s)e.push(jc(r,o,t));continue}e.push(jc(r,s,t))}}if(e.length===0)return[];const i=[];return xE(ay(i,e,0),()=>i.map((r,s)=>(r._e=t._i,t.mode&&(r._m=t.mode),r._p=(t._i<<EE)+s,r)))}const gf=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),mf={base:-10,title:10},yf={critical:-80,high:-10,low:20};function Aa(t){const e=t.tagPriority;if(typeof e=="number")return e;let n=100;return t.tag==="meta"?t.props["http-equiv"]==="content-security-policy"?n=-30:t.props.charset?n=-20:t.props.name==="viewport"&&(n=-15):t.tag==="link"&&t.props.rel==="preconnect"?n=20:t.tag in mf&&(n=mf[t.tag]),e&&e in yf?n+yf[e]:n}const AE=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],SE=["name","property","http-equiv"];function ly(t){const{props:e,tag:n}=t;if(bE.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(e.id)return`${n}:id:${e.id}`;for(const i of SE)if(e[i]!==void 0)return`${n}:${i}:${e[i]}`;return!1}const di="%separator";function CE(t,e,n=!1){var r;let i;if(e==="s"||e==="pageTitle")i=t.pageTitle;else if(e.includes(".")){const s=e.indexOf(".");i=(r=t[e.substring(0,s)])==null?void 0:r[e.substring(s+1)]}else i=t[e];if(i!==void 0)return n?(i||"").replace(/"/g,'\\"'):i||""}const IE=new RegExp(`${di}(?:\\s*${di})*`,"g");function Fo(t,e,n,i=!1){if(typeof t!="string"||!t.includes("%"))return t;let r=t;try{r=decodeURI(t)}catch{}const s=r.match(/%\w+(?:\.\w+)?/g);if(!s)return t;const o=t.includes(di);return t=t.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===di||!s.includes(a))return a;const c=CE(e,a.slice(1),i);return c!==void 0?c:a}).trim(),o&&(t.endsWith(di)&&(t=t.slice(0,-di.length)),t.startsWith(di)&&(t=t.slice(di.length)),t=t.replace(IE,n).trim()),t}function _f(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function cy(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const i={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",i),!!i.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async r=>{var m;const s=(await t.resolveTags()).map(w=>({tag:w,id:Yo.has(w.tag)?Vc(w):w.tag,shouldRender:!0}));let o=t._dom;if(!o){o={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const w=new Set;for(const k of["body","head"]){const A=(m=n[k])==null?void 0:m.children;for(const F of A){const j=F.tagName.toLowerCase();if(!Yo.has(j))continue;const U={tag:j,props:await oy(F.getAttributeNames().reduce((V,S)=>({...V,[S]:F.getAttribute(S)}),{})),innerHTML:F.innerHTML},C=ly(U);let x=C,I=1;for(;x&&w.has(x);)x=`${C}:${I++}`;x&&(U._d=x,w.add(x)),o.elMap[F.getAttribute("data-hid")||Vc(U)]=F}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function a(w,k,A){const F=`${w}:${k}`;o.sideEffects[F]=A,delete o.pendingSideEffects[F]}function c({id:w,$el:k,tag:A}){const F=A.tag.endsWith("Attrs");if(o.elMap[w]=k,F||(A.textContent&&A.textContent!==k.textContent&&(k.textContent=A.textContent),A.innerHTML&&A.innerHTML!==k.innerHTML&&(k.innerHTML=A.innerHTML),a(w,"el",()=>{var j;(j=o.elMap[w])==null||j.remove(),delete o.elMap[w]})),A._eventHandlers)for(const j in A._eventHandlers)Object.prototype.hasOwnProperty.call(A._eventHandlers,j)&&k.getAttribute(`data-${j}`)!==""&&((A.tag==="bodyAttrs"?n.defaultView:k).addEventListener(j.substring(2),A._eventHandlers[j].bind(k)),k.setAttribute(`data-${j}`,""));for(const j in A.props){if(!Object.prototype.hasOwnProperty.call(A.props,j))continue;const U=A.props[j],C=`attr:${j}`;if(j==="class"){if(!U)continue;for(const x of U.split(" "))F&&a(w,`${C}:${x}`,()=>k.classList.remove(x)),!k.classList.contains(x)&&k.classList.add(x)}else if(j==="style"){if(!U)continue;for(const x of U.split(";")){const I=x.indexOf(":"),V=x.substring(0,I).trim(),S=x.substring(I+1).trim();a(w,`${C}:${V}`,()=>{k.style.removeProperty(V)}),k.style.setProperty(V,S)}}else k.getAttribute(j)!==U&&k.setAttribute(j,U===!0?"":String(U)),F&&a(w,C,()=>k.removeAttribute(j))}}const d=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const w of s){const{tag:k,shouldRender:A,id:F}=w;if(A){if(k.tag==="title"){n.title=k.textContent;continue}w.$el=w.$el||o.elMap[F],w.$el?c(w):Yo.has(k.tag)&&d.push(w)}}for(const w of d){const k=w.tag.tagPosition||"head";w.$el=n.createElement(w.tag.tag),c(w),h[k]=h[k]||n.createDocumentFragment(),h[k].appendChild(w.$el)}
23for(const w of s)await t.hooks.callHook("dom:renderTag",w,n,a);h.head&&n.head.appendChild(h.head),h.bodyOpen&&n.body.insertBefore(h.bodyOpen,n.body.firstChild),h.bodyClose&&n.body.appendChild(h.bodyClose);for(const w in o.pendingSideEffects)o.pendingSideEffects[w]();t._dom=o,await t.hooks.callHook("dom:rendered",{renders:s}),r()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function PE(t,e={}){const n=e.delayFn||(i=>setTimeout(i,10));return t._domDebouncedUpdatePromise=t._domDebouncedUpdatePromise||new Promise(i=>n(()=>cy(t,e).then(()=>{delete t._domDebouncedUpdatePromise,i()})))}function kE(t){return e=>{var i,r;const n=((r=(i=e.resolvedOptions.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":s=>{PE(s,t)}}}}}const RE=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ME={hooks:{"tag:normalise":({tag:t})=>{t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.key&&(t.key=t.props.key,delete t.props.key);const e=ly(t);e&&!e.startsWith("meta:og:")&&!e.startsWith("meta:twitter:")&&delete t.key;const n=e||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":t=>{const e=Object.create(null);for(const i of t.tags){const r=(i.key?`${i.tag}:${i.key}`:i._d)||Vc(i),s=e[r];if(s){let a=i==null?void 0:i.tagDuplicateStrategy;if(!a&&RE.has(i.tag)&&(a="merge"),a==="merge"){const c=s.props;c.style&&i.props.style&&(c.style[c.style.length-1]!==";"&&(c.style+=";"),i.props.style=`${c.style} ${i.props.style}`),c.class&&i.props.class?i.props.class=`${c.class} ${i.props.class}`:c.class&&(i.props.class=c.class),e[r].props={...c,...i.props};continue}else if(i._e===s._e){s._duped=s._duped||[],i._d=`${s._d}:${s._duped.length+1}`,s._duped.push(i);continue}else if(Aa(i)>Aa(s))continue}if(!(i.innerHTML||i.textContent||Object.keys(i.props).length!==0)&&Yo.has(i.tag)){delete e[r];continue}e[r]=i}const n=[];for(const i in e){const r=e[i],s=r._duped;n.push(r),s&&(delete r._duped,n.push(...s))}t.tags=n,t.tags=t.tags.filter(i=>!(i.tag==="meta"&&(i.props.name||i.props.property)&&!i.props.content))}}},OE=new Set(["script","link","bodyAttrs"]),LE=t=>({hooks:{"tags:resolve":e=>{for(const n of e.tags){if(!OE.has(n.tag))continue;const i=n.props;for(const r in i){if(r[0]!=="o"||r[1]!=="n"||!Object.prototype.hasOwnProperty.call(i,r))continue;const s=i[r];typeof s=="function"&&(t.ssr&&gf.has(r)?i[r]=`this.dataset.${r}fired = true`:delete i[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=s)}t.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Ta(n.props.src||n.props.href))}},"dom:renderTag":({$el:e,tag:n})=>{var r,s;const i=e==null?void 0:e.dataset;if(i)for(const o in i){if(!o.endsWith("fired"))continue;const a=o.slice(0,-5);gf.has(a)&&((s=(r=n._eventHandlers)==null?void 0:r[a])==null||s.call(e,new Event(a.substring(2))))}}}}),DE=new Set(["link","style","script","noscript"]),NE={hooks:{"tag:normalise":({tag:t})=>{t.key&&DE.has(t.tag)&&(t.props["data-hid"]=t._h=Ta(t.key))}}},VE={mode:"server",hooks:{"tags:beforeResolve":t=>{const e={};let n=!1;for(const i of t.tags)i._m!=="server"||i.tag!=="titleTemplate"&&i.tag!=="templateParams"&&i.tag!=="title"||(e[i.tag]=i.tag==="title"||i.tag==="titleTemplate"?i.textContent:i.props,n=!0);n&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},jE={hooks:{"tags:resolve":t=>{var e;for(const n of t.tags)if(typeof n.tagPriority=="string")for(const{prefix:i,offset:r}of AE){if(!n.tagPriority.startsWith(i))continue;const s=n.tagPriority.substring(i.length),o=(e=t.tags.find(a=>a._d===s))==null?void 0:e._p;if(o!==void 0){n._p=o+r;break}}t.tags.sort((n,i)=>{const r=Aa(n),s=Aa(i);return r<s?-1:r>s?1:n._p-i._p})}}},BE={meta:"content",link:"href",htmlAttrs:"lang"},FE=["innerHTML","textContent"],UE=t=>({hooks:{"tags:resolve":e=>{var o;const{tags:n}=e;let i;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(i=e.tags.splice(a,1)[0].props,a-=1);const r=i||{},s=r.separator||"|";delete r.separator,r.pageTitle=Fo(r.pageTitle||((o=n.find(a=>a.tag==="title"))==null?void 0:o.textContent)||"",r,s);for(const a of n){if(a.processTemplateParams===!1)continue;const c=BE[a.tag];if(c&&typeof a.props[c]=="string")a.props[c]=Fo(a.props[c],r,s);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const d of FE)typeof a[d]=="string"&&(a[d]=Fo(a[d],r,s,a.tag==="script"&&a.props.type.endsWith("json")))}t._templateParams=r,t._separator=s},"tags:afterResolve":({tags:e})=>{let n;for(let i=0;i<e.length;i+=1){const r=e[i];r.tag==="title"&&r.processTemplateParams!==!1&&(n=r)}n!=null&&n.textContent&&(n.textContent=Fo(n.textContent,t._templateParams,t._separator))}}}),HE={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n,i;for(let r=0;r<e.length;r+=1){const s=e[r];s.tag==="title"?n=s:s.tag==="titleTemplate"&&(i=s)}if(i&&n){const r=_f(i.textContent,n.textContent);r!==null?n.textContent=r||n.textContent:t.tags.splice(t.tags.indexOf(n),1)}else if(i){const r=_f(i.textContent);r!==null&&(i.textContent=r,i.tag="title",i=void 0)}i&&t.tags.splice(t.tags.indexOf(i),1)}}},zE={hooks:{"tags:afterResolve":t=>{for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&(e.props.type==="application/ld+json"||e.props.type==="application/json")?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let hy;function $E(t={}){const e=WE(t);return e.use(kE()),hy=e}function bf(t,e){return!t||t==="server"&&e||t==="client"&&!e}function WE(t={}){const e=Gm();e.addHooks(t.hooks||{}),t.document=t.document||(vE?document:void 0);const n=!t.document,i=()=>{a.dirty=!0,e.callHook("entries:updated",a)};let r=0,s=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return s},use(c){const d=typeof c=="function"?c(a):c;(!d.key||!o.some(h=>h.key===d.key))&&(o.push(d),bf(d.mode,n)&&e.addHooks(d.hooks||{}))},push(c,d){d==null||delete d.head;const h={_i:r++,input:c,...d};return bf(h.mode,n)&&(s.push(h),i()),{dispose(){s=s.filter(m=>m._i!==h._i),i()},patch(m){for(const w of s)w._i===h._i&&(w.input=h.input=m);i()}}},async resolveTags(){const c={tags:[],entries:[...s]};await e.callHook("entries:resolve",c);for(const d of c.entries){const h=d.resolvedInput||d.input;if(d.resolvedInput=await(d.transform?d.transform(h):h),d.resolvedInput)for(const m of await TE(d)){const w={tag:m,entry:d,resolvedOptions:a.resolvedOptions};await e.callHook("tag:normalise",w),c.tags.push(w.tag)}}return await e.callHook("tags:beforeResolve",c),await e.callHook("tags:resolve",c),await e.callHook("tags:afterResolve",c),c.tags},ssr:n};return[ME,VE,LE,NE,jE,UE,HE,zE,...(t==null?void 0:t.plugins)||[]].forEac
23h(c=>a.use(c)),a.hooks.callHook("init",a),a}function GE(){return hy}const qE=Mm[0]==="3";function KE(t){return typeof t=="function"?t():nt(t)}function Sa(t){if(t instanceof Promise||t instanceof Date||t instanceof RegExp)return t;const e=KE(t);if(!t||!e)return e;if(Array.isArray(e))return e.map(n=>Sa(n));if(typeof e=="object"){const n={};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(i==="titleTemplate"||i[0]==="o"&&i[1]==="n"){n[i]=nt(e[i]);continue}n[i]=Sa(e[i])}return n}return e}const XE={hooks:{"entries:resolve":t=>{for(const e of t.entries)e.resolvedInput=Sa(e.input)}}},uy="usehead";function YE(t){return{install(n){qE&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(uy,t))}}.install}function QE(t={}){t.domDelayFn=t.domDelayFn||(n=>nr(()=>setTimeout(()=>n(),0)));const e=$E(t);return e.use(XE),e.install=YE(e),e}const Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fc="__unhead_injection_handler__";function JE(t){Bc[Fc]=t}function ZE(){return Fc in Bc?Bc[Fc]():Wt(uy)||GE()}function eT(t,e={}){const n=e.head||ZE();if(n)return n.ssr?n.push(t,e):tT(n,t,e)}function tT(t,e,n={}){const i=nn(!1),r=nn({});Pv(()=>{r.value=i.value?{}:Sa(e)});const s=t.push(r.value,n);return In(r,a=>{s.patch(a)}),so()&&(Xa(()=>{s.dispose()}),Kg(()=>{i.value=!0}),qg(()=>{i.value=!1})),s}const nT="modulepreload",iT=function(t,e){return new URL(t,e).href},vf={},Pe=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(n.map(d=>{if(d=iT(d,i),d in vf)return;vf[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(!!i)for(let A=o.length-1;A>=0;A--){const F=o[A];if(F.href===d&&(!h||F.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const k=document.createElement("link");if(k.rel=h?"stylesheet":nT,h||(k.as="script"),k.crossOrigin="",k.href=d,c&&k.setAttribute("nonce",c),document.head.appendChild(k),h)return new Promise((A,F)=>{k.addEventListener("load",A),k.addEventListener("error",()=>F(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};let Qo,Jo;function rT(){return Qo=$fetch(Wh(`builds/meta/${ao().app.buildId}.json`),{responseType:"json"}),Qo.then(t=>{Jo=Gw(t.matcher)}).catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),Qo}function tl(){return Qo||rT()}async function Kh(t){const e=typeof t=="string"?t:t.path;if(await tl(),!Jo)return console.error("[nuxt] Error creating app manifest matcher.",Jo),{};try{return Ja({},...Jo.matchAll(e).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function xf(t,e={}){const n=await oT(t,e),i=ot(),r=i._payloadCache=i._payloadCache||{};return n in r?r[n]||null:(r[n]=fy(t).then(s=>s?dy(n).then(o=>o||(delete r[n],null)):(r[n]=null,null)),r[n])}const sT="_payload.json";async function oT(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||ir(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const i=ao(),r=e.hash||(e.fresh?Date.now():i.app.buildId),s=i.app.cdnURL,o=s&&await fy(t)?s:i.app.baseURL;return $h(o,n.pathname,sT+(r?`?${r}`:""))}async function dy(t){const e=fetch(t).then(n=>n.text().then(py));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function fy(t=qh().path){const e=ot();return t=zh(t),(await tl()).prerendered.includes(t)?!0:e.runWithContext(async()=>{const i=await Kh({path:t});return!!i.prerender&&!i.redirect})}let zi=null;async function aT(){var i;if(zi)return zi;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await py(t.textContent||""),n=t.dataset.src?await dy(t.dataset.src):void 0;return zi={...e,...n,...window.__NUXT__},(i=zi.config)!=null&&i.public&&(zi.config.public=wn(zi.config.public)),zi}async function py(t){return await gE(t,ot()._payloadRevivers)}
23function gy(t,e){ot()._payloadRevivers[t]=e}const lT=zw(()=>{gy("skipHydrate",t=>{})}),my=[["NuxtError",t=>el(t)],["EmptyShallowRef",t=>Qi(t==="_"?void 0:t==="0n"?BigInt(0):ba(t))],["EmptyRef",t=>nn(t==="_"?void 0:t==="0n"?BigInt(0):ba(t))],["ShallowRef",t=>Qi(t)],["ShallowReactive",t=>zn(t)],["Ref",t=>nn(t)],["Reactive",t=>wn(t)]];my.push(["Island",({key:t,params:e,result:n})=>{const i=ot();return i.isHydrating||(i.payload.data[t]=i.payload.data[t]||$fetch(`/__nuxt_island/${t}.json`,{responseType:"json",...e?{params:e}:{}}).then(r=>(i.payload.data[t]=r,r))),{html:"",...n}}]);const cT=St({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[i,r]of my)gy(i,r);Object.assign(t.payload,([e,n]=Ir(()=>t.runWithContext(aT)),e=await e,n(),e)),window.__NUXT__=t.payload}}),hT=[],uT=St({name:"nuxt:head",enforce:"pre",setup(t){const e=QE({plugins:hT});JE(()=>ot().vueApp._context.provides.usehead),t.vueApp.use(e);{let n=!0;const i=async()=>{n=!1,await cy(e)};e.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||i()}),t.hooks.hook("app:error",i),t.hooks.hook("app:suspense:resolve",i)}}});/*!
24  * vue-router v4.5.0
25  * (c) 2024 Eduardo San Martin Morote
26  * @license MIT
27  */const mr=typeof document<"u";function yy(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dT(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&yy(t.default)}const Je=Object.assign;function ql(t,e){const n={};for(const i in e){const r=e[i];n[i]=vn(r)?r.map(t):t(r)}return n}const Rs=()=>{},vn=Array.isArray,_y=/#/g,fT=/&/g,pT=/\//g,gT=/=/g,mT=/\?/g,by=/\+/g,yT=/%5B/g,_T=/%5D/g,vy=/%5E/g,bT=/%60/g,xy=/%7B/g,vT=/%7C/g,wy=/%7D/g,xT=/%20/g;function Xh(t){return encodeURI(""+t).replace(vT,"|").replace(yT,"[").replace(_T,"]")}function wT(t){return Xh(t).replace(xy,"{").replace(wy,"}").replace(vy,"^")}function Uc(t){return Xh(t).replace(by,"%2B").replace(xT,"+").replace(_y,"%23").replace(fT,"%26").replace(bT,"`").replace(xy,"{").replace(wy,"}").replace(vy,"^")}function ET(t){return Uc(t).replace(gT,"%3D")}function TT(t){return Xh(t).replace(_y,"%23").replace(mT,"%3F")}function AT(t){return t==null?"":TT(t).replace(pT,"%2F")}function $s(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const ST=/\/$/,CT=t=>t.replace(ST,"");function Kl(t,e,n="/"){let i,r={},s="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(i=e.slice(0,c),s=e.slice(c+1,a>-1?a:e.length),r=t(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=RT(i??e,n),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:$s(o)}}function IT(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function wf(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function PT(t,e,n){const i=e.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Dr(e.matched[i],n.matched[r])&&Ey(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Dr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Ey(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!kT(t[n],e[n]))return!1;return!0}function kT(t,e){return vn(t)?Ef(t,e):vn(e)?Ef(e,t):t===e}function Ef(t,e){return vn(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function RT(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=n.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ws;(function(t){t.pop="pop",t.push="push"})(Ws||(Ws={}));var Ms;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ms||(Ms={}));function MT(t){if(!t)if(mr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),CT(t)}const OT=/^[^#]+#/;function LT(t,e){return t.replace(OT,"#")+e}function DT(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const nl=()=>({left:window.scrollX,top:window.scrollY});function NT(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=DT(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)}
vendor: 9,676 bytes, line 27
27function Tf(t,e){return(history.state?history.state.position-e:-1)+t}const Hc=new Map;function VT(t,e){Hc.set(t,e)}function jT(t){const e=Hc.get(t);return Hc.delete(t),e}let BT=()=>location.protocol+"//"+location.host;function Ty(t,e){const{pathname:n,search:i,hash:r}=e,s=t.indexOf("#");if(s>-1){let a=r.includes(t.slice(s))?t.slice(s).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),wf(c,"")}return wf(n,t)+i+r}function FT(t,e,n,i){let r=[],s=[],o=null;const a=({state:w})=>{const k=Ty(t,location),A=n.value,F=e.value;let j=0;if(w){if(n.value=k,e.value=w,o&&o===A){o=null;return}j=F?w.position-F.position:0}else i(k);r.forEach(U=>{U(n.value,A,{delta:j,type:Ws.pop,direction:j?j>0?Ms.forward:Ms.back:Ms.unknown})})};function c(){o=n.value}function d(w){r.push(w);const k=()=>{const A=r.indexOf(w);A>-1&&r.splice(A,1)};return s.push(k),k}function h(){const{history:w}=window;w.state&&w.replaceState(Je({},w.state,{scroll:nl()}),"")}function m(){for(const w of s)w();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:m}}function Af(t,e,n,i=!1,r=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:r?nl():null}}function UT(t){const{history:e,location:n}=window,i={value:Ty(t,n)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(c,d,h){const m=t.indexOf("#"),w=m>-1?(n.host&&document.querySelector("base")?t:t.slice(m))+c:BT()+t+c;try{e[h?"replaceState":"pushState"](d,"",w),r.value=d}catch(k){console.error(k),n[h?"replace":"assign"](w)}}function o(c,d){const h=Je({},e.state,Af(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});s(c,h,!0),i.value=c}function a(c,d){const h=Je({},r.value,e.state,{forward:c,scroll:nl()});s(h.current,h,!0);const m=Je({},Af(i.value,c,null),{position:h.position+1},d);s(c,m,!1),i.value=c}return{location:i,state:r,push:a,replace:o}}function HT(t){t=MT(t);const e=UT(t),n=FT(t,e.state,e.location,e.replace);function i(s,o=!0){o||n.pauseListeners(),history.go(s)}const r=Je({location:"",base:t,go:i,createHref:LT.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 zT(t){return typeof t=="string"||t&&typeof t=="object"}function Ay(t){return typeof t=="string"||typeof t=="symbol"}const Sy=Symbol("");var Sf;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Sf||(Sf={}));function Nr(t,e){return Je(new Error,{type:t,[Sy]:!0},e)}function jn(t,e){return t instanceof Error&&Sy in t&&(e==null||!!(t.type&e))}const Cf="[^/]+?",$T={sensitive:!1,strict:!1,start:!0,end:!0},WT=/[.+*?^${}()[\]/\\]/g;function GT(t,e){const n=Je({},$T,e),i=[];let r=n.start?"^":"";const s=[];for(const d of t){const h=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let m=0;m<d.length;m++){const w=d[m];let k=40+(n.sensitive?.25:0);if(w.type===0)m||(r+="/"),r+=w.value.replace(WT,"\\$&"),k+=40;else if(w.type===1){const{value:A,repeatable:F,optional:j,regexp:U}=w;s.push({name:A,repeatable:F,optional:j});const C=U||Cf;if(C!==Cf){k+=10;try{new RegExp(`(${C})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${A}" (${C}): `+I.message)}}let x=F?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;m||(x=j&&d.length<2?`(?:/${x})`:"/"+x),j&&(x+="?"),r+=x,k+=20,j&&(k+=-8),F&&(k+=-20),C===".*"&&(k+=-50)}h.push(k)}i.push(h)}if(n.strict&&n.end){const d=i.length-1;i[d][i[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function a(d){const h=d.match(o),m={};if(!h)return null;for(let w=1;w<h.length;w++){const k=h[w]||"",A=s[w-1];m[A.name]=k&&A.repeatable?k.split("/"):k}return m}function c(d){let h="",m=!1;for(const w of t){(!m||!h.endsWith("/"))&&(h+="/"),m=!1;for(const k of w)if(k.type===0)h+=k.value;else if(k.type===1){const{value:A,repeatable:F,optional:j}=k,U=A in d?d[A]:"";if(vn(U)&&!F)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const C=vn(U)?U.join("/"):U;if(!C)if(j)w.length<2&&(h.endsWith("/")?h=h.slice(0,-1):m=!0);else throw new Error(`Missing required param "${A}"`);h+=C}}return h||"/"}return{re:o,score:i,keys:s,parse:a,stringify:c}}function qT(t,e){let n=0;for(;n<t.length&&n<e.length;){const i=e[n]-t[n];if(i)return i;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 Cy(t,e){let n=0;const i=t.score,r=e.score;for(;n<i.length&&n<r.length;){const s=qT(i[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-i.length)===1){if(If(i))return 1;if(If(r))return-1}return r.length-i.length}function If(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const KT={type:0,value:""},XT=/[a-zA-Z0-9_]/;function YT(t){if(!t)return[[]];if(t==="/")return[[KT]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(k){throw new Error(`ERR (${n})/"${d}": ${k}`)}let n=0,i=n;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,c,d="",h="";function m(){d&&(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function w(){d+=c}for(;a<t.length;){if(c=t[a++],c==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:c==="/"?(d&&m(),o()):c===":"?(m(),n=1):w();break;case 4:w(),n=i;break;case 1:c==="("?n=2:XT.test(c)?w():(m(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+c:n=3:h+=c;break;case 3:m(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,h="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${d}"`),m(),o(),r}function QT(t,e,n){const i=GT(YT(t.path),n),r=Je(i,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function JT(t,e){const n=[],i=new Map;e=Mf({strict:!1,end:!0,sensitive:!1},e);function r(m){return i.get(m)}function s(m,w,k){const A=!k,F=kf(m);F.aliasOf=k&&k.record;const j=Mf(e,m),U=[F];if("alias"in m){const I=typeof m.alias=="string"?[m.alias]:m.alias;for(const V of I)U.push(kf(Je({},F,{components:k?k.record.components:F.components,path:V,aliasOf:k?k.record:F})))}let C,x;for(const I of U){const{path:V}=I;if(w&&V[0]!=="/"){const S=w.record.path,E=S[S.length-1]==="/"?"":"/";I.path=w.record.path+(V&&E+V)}if(C=QT(I,w,j),k?k.alias.push(C):(x=x||C,x!==C&&x.alias.push(C),A&&m.name&&!Rf(C)&&o(m.name)),Iy(C)&&c(C),F.children){const S=F.children;for(let E=0;E<S.length;E++)s(S[E],C,k&&k.children[E])}k=k||C}return x?()=>{o(x)}:Rs}function o(m){if(Ay(m)){const w=i.get(m);w&&(i.delete(m),n.splice(n.indexOf(w),1),w.children.forEach(o),w.alias.forEach(o))}else{const w=n.indexOf(m);w>-1&&(n.splice(w,1),m.record.name&&i.delete(m.record.name),m.children.forEach(o),m.alias.forEach(o))}}function a(){return n}function c(m){const w=tA(m,n);n.splice(w,0,m),m.record.name&&!Rf(m)&&i.set(m.record.name,m)}function d(m,w){let k,A={},F,j;if("name"in m&&m.name){if(k=i.get(m.name),!k)throw Nr(1,{location:m});j=k.record.name,A=Je(Pf(w.params,k.keys.filter(x=>!x.optional).concat(k.parent?k.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),m.params&&Pf(m.params,k.keys.map(x=>x.name))),F=k.stringify(A)}else if(m.path!=null)F=m.path,k=n.find(x=>x.re.test(F)),k&&(A=k.parse(F),j=k.record.name);else{if(k=w.name?i.get(w.name):n.find(x=>x.re.test(w.path)),!k)throw Nr(1,{location:m,currentLocation:w});j=k.record.name,A=Je({},w.params,m.params),F=k.stringify(A)}const U=[];let C=k;for(;C;)U.unshift(C.record),C=C.parent;return{name:j,path:F,params:A,matched:U,meta:eA(U)}}t.forEach(m=>s(m));function h(){n.length=0,i.clear()}return{addRoute:s,resolve:d,removeRoute:o,clearRoutes:h,getRoutes:a,getRecordMatcher:r}}function Pf(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function kf(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:ZT(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 ZT(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function Rf(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function eA(t){return t.reduce((e,n)=>Je(e,n.meta),{})}function Mf(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function tA(t,e){let n=0,i=e.length;for(;n!==i;){const s=n+i>>1;Cy(t,e[s])<0?i=s:n=s+1}const r=nA(t);return r&&(i=e.lastIndexOf(r,i-1)),i}function nA(t){let e=t;for(;e=e.parent;)if(Iy(e)&&Cy(t,e)===0)return e}function Iy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function iA(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(by," "),o=s.indexOf("="),a=$s(o<0?s:s.slice(0,o)),c=o<0?null:$s(s.slice(o+1));if(a in e){let d=e[a];vn(d)||(d=e[a]=[d]),d.push(c)}else e[a]=c}return e}function Of(t){let e="";for(let n in t){const i=t[n];if(n=ET(n),i==null){i!==void 0&&(e+=(e.length?"&":"")+n);continue}(vn(i)?i.map(s=>
vendor: 7,027 bytes, line 27
27s&&Uc(s)):[i&&Uc(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function rA(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=vn(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const sA=Symbol(""),Lf=Symbol(""),Yh=Symbol(""),Qh=Symbol(""),zc=Symbol("");function ds(){let t=[];function e(i){return t.push(i),()=>{const r=t.indexOf(i);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function fi(t,e,n,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const d=w=>{w===!1?c(Nr(4,{from:n,to:e})):w instanceof Error?c(w):zT(w)?c(Nr(2,{from:e,to:w})):(o&&i.enterCallbacks[r]===o&&typeof w=="function"&&o.push(w),a())},h=s(()=>t.call(i&&i.instances[r],e,n,d));let m=Promise.resolve(h);t.length<3&&(m=m.then(d)),m.catch(w=>c(w))})}function Xl(t,e,n,i,r=s=>s()){const s=[];for(const o of t)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(yy(c)){const h=(c.__vccOpts||c)[e];h&&s.push(fi(h,n,i,o,a,r))}else{let d=c();s.push(()=>d.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const m=dT(h)?h.default:h;o.mods[a]=h,o.components[a]=m;const k=(m.__vccOpts||m)[e];return k&&fi(k,n,i,o,a,r)()}))}}return s}function Df(t){const e=Wt(Yh),n=Wt(Qh),i=Jt(()=>{const c=nt(t.to);return e.resolve(c)}),r=Jt(()=>{const{matched:c}=i.value,{length:d}=c,h=c[d-1],m=n.matched;if(!h||!m.length)return-1;const w=m.findIndex(Dr.bind(null,h));if(w>-1)return w;const k=Nf(c[d-2]);return d>1&&Nf(h)===k&&m[m.length-1].path!==k?m.findIndex(Dr.bind(null,c[d-2])):w}),s=Jt(()=>r.value>-1&&hA(n.params,i.value.params)),o=Jt(()=>r.value>-1&&r.value===n.matched.length-1&&Ey(n.params,i.value.params));function a(c={}){if(cA(c)){const d=e[nt(t.replace)?"replace":"push"](nt(t.to)).catch(Rs);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:i,href:Jt(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function oA(t){return t.length===1?t[0]:t}const aA=Yn({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"}},useLink:Df,setup(t,{slots:e}){const n=wn(Df(t)),{options:i}=Wt(Yh),r=Jt(()=>({[Vf(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vf(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&oA(e.default(n));return t.custom?s:Ot("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),lA=aA;function cA(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 hA(t,e){for(const n in e){const i=e[n],r=t[n];if(typeof i=="string"){if(i!==r)return!1}else if(!vn(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Nf(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Vf=(t,e,n)=>t??e??n,uA=Yn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=Wt(zc),r=Jt(()=>t.route||i.value),s=Wt(Lf,0),o=Jt(()=>{let d=nt(s);const{matched:h}=r.value;let m;for(;(m=h[d])&&!m.components;)d++;return d}),a=Jt(()=>r.value.matched[o.value]);Xi(Lf,Jt(()=>o.value+1)),Xi(sA,a),Xi(zc,r);const c=nn();return In(()=>[c.value,a.value,t.name],([d,h,m],[w,k,A])=>{h&&(h.instances[m]=d,k&&k!==h&&d&&d===w&&(h.leaveGuards.size||(h.leaveGuards=k.leaveGuards),h.updateGuards.size||(h.updateGuards=k.updateGuards))),d&&h&&(!k||!Dr(h,k)||!w)&&(h.enterCallbacks[m]||[]).forEach(F=>F(d))},{flush:"post"}),()=>{const d=r.value,h=t.name,m=a.value,w=m&&m.components[h];if(!w)return jf(n.default,{Component:w,route:d});const k=m.props[h],A=k?k===!0?d.params:typeof k=="function"?k(d):k:null,j=Ot(w,Je({},A,e,{onVnodeUnmounted:U=>{U.component.isUnmounted&&(m.instances[h]=null)},ref:c}));return jf(n.default,{Component:j,route:d})||j}}});function jf(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Py=uA;function dA(t){const e=JT(t.routes,t),n=t.parseQuery||iA,i=t.stringifyQuery||Of,r=t.history,s=ds(),o=ds(),a=ds(),c=Qi(gn);let d=gn;mr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ql.bind(null,le=>""+le),m=ql.bind(null,AT),w=ql.bind(null,$s);function k(le,D){let O,W;return Ay(le)?(O=e.getRecordMatcher(le),W=D):W=le,e.addRoute(W,O)}function A(le){const D=e.getRecordMatcher(le);D&&e.removeRoute(D)}function F(){return e.getRoutes().map(le=>le.record)}function j(le){return!!e.getRecordMatcher(le)}function U(le,D){if(D=Je({},D||c.value),typeof le=="string"){const b=Kl(n,le,D.path),B=e.resolve({path:b.path},D),$=r.createHref(b.fullPath);return Je(b,B,{params:w(B.params),hash:$s(b.hash),redirectedFrom:void 0,href:$})}let O;if(le.path!=null)O=Je({},le,{path:Kl(n,le.path,D.path).path});else{const b=Je({},le.params);for(const B in b)b[B]==null&&delete b[B];O=Je({},le,{params:m(b)}),D.params=m(D.params)}const W=e.resolve(O,D),te=le.hash||"";W.params=h(w(W.params));const P=IT(i,Je({},le,{hash:wT(te),path:W.path})),_=r.createHref(P);return Je({fullPath:P,hash:te,query:i===Of?rA(le.query):le.query||{}},W,{redirectedFrom:void 0,href:_})}function C(le){return typeof le=="string"?Kl(n,le,c.value.path):Je({},le)}function x(le,D){if(d!==le)return Nr(8,{from:D,to:le})}function I(le){return E(le)}function V(le){return I(Je(C(le),{replace:!0}))}function S(le){const D=le.matched[le.matched.length-1];if(D&&D.redirect){const{redirect:O}=D;let W=typeof O=="function"?O(le):O;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=C(W):{path:W},W.params={}),Je({query:le.query,hash:le.hash,params:W.path!=null?{}:le.params},W)}}function E(le,D){const O=d=U(le),W=c.value,te=le.state,P=le.force,_=le.replace===!0,b=S(O);if(b)return E(Je(C(b),{state:typeof b=="object"?Je({},te,b.state):te,force:P,replace:_}),D||O);const B=O;B.redirectedFrom=D;let $;return!P&&PT(i,W,O)&&($=Nr(16,{to:B,from:W}),Q(W,W,!0,!1)),($?Promise.resolve($):v(B,W)).catch(X=>jn(X)?jn(X,2)?X:z(X):H(X,B,W)).then(X=>{if(X){if(jn(X,2))return E(Je({replace:_},C(X.to),{state:typeof X.to=="object"?Je({},te,X.to.state):te,force:P}),D||B)}else X=y(B,W,!0,_,te);return p(B,W,X),X})}function R(le,D){const O=x(le,D);return O?Promise.reject(O):Promise.resolve()}function T(le){const D=ne.values().next().value;return D&&typeof D.runWithContext=="function"?D.runWithContext(le):le()}function v(le,D){let O;const[W,te,P]=fA(le,D);O=Xl(W.reverse(),"beforeRouteLeave",le,D);for(const b of W)b.leaveGuards.forEach(B=>{O.push(fi(B,le,D))});const _=R.bind(null,le,D);
27return O.push(_),oe(O).then(()=>{O=[];for(const b of s.list())O.push(fi(b,le,D));return O.push(_),oe(O)}).then(()=>{O=Xl(te,"beforeRouteUpdate",le,D);for(const b of te)b.updateGuards.forEach(B=>{O.push(fi(B,le,D))});return O.push(_),oe(O)}).then(()=>{O=[];for(const b of P)if(b.beforeEnter)if(vn(b.beforeEnter))for(const B of b.beforeEnter)O.push(fi(B,le,D));else O.push(fi(b.beforeEnter,le,D));return O.push(_),oe(O)}).then(()=>(le.matched.forEach(b=>b.enterCallbacks={}),O=Xl(P,"beforeRouteEnter",le,D,T),O.push(_),oe(O))).then(()=>{O=[];for(const b of o.list())O.push(fi(b,le,D));return O.push(_),oe(O)}).catch(b=>jn(b,8)?b:Promise.reject(b))}function p(le,D,O){a.list().forEach(W=>T(()=>W(le,D,O)))}function y(le,D,O,W,te){const P=x(le,D);if(P)return P;const _=D===gn,b=mr?history.state:{};O&&(W||_?r.replace(le.fullPath,Je({scroll:_&&b&&b.scroll},te)):r.push(le.fullPath,te)),c.value=le,Q(le,D,O,_),z()}let u;function g(){u||(u=r.listen((le,D,O)=>{if(!se.listening)return;const W=U(le),te=S(W);if(te){E(Je(te,{replace:!0,force:!0}),W).catch(Rs);return}d=W;const P=c.value;mr&&VT(Tf(P.fullPath,O.delta),nl()),v(W,P).catch(_=>jn(_,12)?_:jn(_,2)?(E(Je(C(_.to),{force:!0}),W).then(b=>{jn(b,20)&&!O.delta&&O.type===Ws.pop&&r.go(-1,!1)}).catch(Rs),Promise.reject()):(O.delta&&r.go(-O.delta,!1),H(_,W,P))).then(_=>{_=_||y(W,P,!1),_&&(O.delta&&!jn(_,8)?r.go(-O.delta,!1):O.type===Ws.pop&&jn(_,20)&&r.go(-1,!1)),p(W,P,_)}).catch(Rs)}))}let f=ds(),M=ds(),L;function H(le,D,O){z(le);const W=M.list();return W.length?W.forEach(te=>te(le,D,O)):console.error(le),Promise.reject(le)}function q(){return L&&c.value!==gn?Promise.resolve():new Promise((le,D)=>{f.add([le,D])})}function z(le){return L||(L=!le,g(),f.list().forEach(([D,O])=>le?O(le):D()),f.reset()),le}function Q(le,D,O,W){const{scrollBehavior:te}=t;if(!mr||!te)return Promise.resolve();const P=!O&&jT(Tf(le.fullPath,0))||(W||!O)&&history.state&&history.state.scroll||null;return nr().then(()=>te(le,D,P)).then(_=>_&&NT(_)).catch(_=>H(_,le,D))}const ce=le=>r.go(le);let G;const ne=new Set,se={currentRoute:c,listening:!0,addRoute:k,removeRoute:A,clearRoutes:e.clearRoutes,hasRoute:j,getRoutes:F,resolve:U,options:t,push:I,replace:V,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:M.add,isReady:q,install(le){const D=this;le.component("RouterLink",lA),le.component("RouterView",Py),le.config.globalProperties.$router=D,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>nt(c)}),mr&&!G&&c.value===gn&&(G=!0,I(r.location).catch(te=>{}));const O={};for(const te in gn)Object.defineProperty(O,te,{get:()=>c.value[te],enumerable:!0});le.provide(Yh,D),le.provide(Qh,zn(O)),le.provide(zc,c);const W=le.unmount;ne.add(le),le.unmount=function(){ne.delete(le),ne.size<1&&(d=gn,u&&u(),u=null,c.value=gn,G=!1,L=!1),W()}}};function oe(le){return le.reduce((D,O)=>D.then(()=>T(O)),Promise.resolve())}return se}function fA(t,e){const n=[],i=[],r=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(t.matched.find(d=>Dr(d,a))?i.push(a):n.push(a));const c=t.matched[o];c&&(e.matched.find(d=>Dr(d,c))||r.push(c))}return[n,i,r]}function pA(t){return Wt(Qh)}const gA=/(:\w+)\([^)]+\)/g,mA=/(:\w+)[?+*]/g,yA=/:\w+/g,_A=(t,e)=>e.path.replace(gA,"$1").replace(mA,"$1").replace(yA,n=>{var i;return((i=t.params[n.slice(1)])==null?void 0:i.toString())||""}),$c=(t,e)=>{const n=t.route.matched.find(r=>{var s;return((s=r.components)==null?void 0:s.default)===t.Component.type}),i=e??(n==null?void 0:n.meta.key)??(n&&_A(t.route,n));return typeof i=="function"?i(t.route):i},bA=(t,e)=>({default:()=>t?Ot(tv,t===!0?{}:t,e):e});function Jh(t){return Array.isArray(t)?t:[t]}const Yl=[{name:"comingsoon",path:"/comingsoon",component:()=>Pe(()=>import("./BAR48DQH.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{name:"dashboard",path:"/dashboard",component:()=>Pe(()=>import("./B2KaMc3S.js"),__vite__mapDeps([6,1,2,3,4,5,7]),import.meta.url)},{name:"index",path:"/",component:()=>Pe(()=>import("./CUl5ymSE.js"),__vite__mapDeps([8,2,3,4,7,5,9]),import.meta.url)}],ky=(t,e,n)=>(e=e===!0?{}:e,{default:()=>{var i;return e?Ot(t,e,n):(i=n.default)==null?void 0:i.call(n)}}),vA=/(:\w+)\([^)]+\)/g,xA=/(:\w+)[?+*]/g,wA=/:\w+/g;function Bf(t){const e=(t==null?void 0:t.meta.key)??t.path.replace(vA,"$1").replace(xA,"$1").replace(wA,n=>{var i;return((i=t.params[n.slice(1)])==null?void 0:i.toString())||""});return typeof e=="function"?e(t):e}function EA(t,e){return t===e||e===gn?!1:Bf(t)!==Bf(e)?!0:!t.matched.every((i,r)=>{var s,o;return i.components&&i.components.default===((o=(s=e.matched[r])==null?void 0:s.components)==null?void 0:o.default)})}const TA={scrollBehavior(t,e,n){var d;const i=ot(),r=((d=sn().options)==null?void 0:d.scrollBehaviorType)??"auto";let s=n||void 0;const o=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!s&&e&&t&&o!==!1&&EA(t,e)&&(s={left:0,top:0}),t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:Ff(t.hash),behavior:r}:!1;const a=h=>!!(h.meta.pageTransition??kc),c=a(e)&&a(t)?"page:transition:finish":"page:finish";return new Promise(h=>{i.hooks.hookOnce(c,async()=>{await new Promise(m=>setTimeout(m,0)),t.hash&&(s={el:t.hash,top:Ff(t.hash),behavior:r}),h(s)})})}};function Ff(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}const AA={hashMode:!1,scrollBehaviorType:"auto"},an={...AA,...TA},SA=async t=>{var c;let e,n;if(!((c=t.meta)!=null&&c.validate))return;const i=ot(),r=sn(),s=([e,n]=Ir(()=>Promise.resolve(t.meta.validate(t))),e=await e,n(),e);if(s===!0)return;const o=el({statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}}),a=r.beforeResolve(d=>{if(a(),d===t){const h=r.afterEach(async()=>{h(),await i.runWithContext(()=>wr(o)),window==null||window.history.pushState({},"",t.fullPath)});return!1}})},CA=async t=>{let e,n;const i=([e,n]=Ir(()=>Kh({path:t.path})),e=await e,n(),e);if(i.redirect)return ir(i.redirect,{acceptRelative:!0})?(window.location.href=i.redirect,!1):i.redirect},IA=[SA,CA],Os={};function PA(t,e,n){const{pathname:i,search:r,hash:s}=e,o=t.indexOf("#");if(o>-1){const d=s.includes(t.slice(o))?t.slice(o).length:1;let h=s.slice(d);return h[0]!=="/"&&(h="/"+h),rf(h,"")}const a=rf(i,t),c=!n||nw(a,n,{trailingSlash:!0})?a:n;
27return c+(c.includes("?")?"":r)+s}const kA=St({name:"nuxt:router",enforce:"pre",async setup(t){var j;let e,n,i=ao().app.baseURL;const r=((j=an.history)==null?void 0:j.call(an,i))??HT(i),s=an.routes?([e,n]=Ir(()=>an.routes(Yl)),e=await e,n(),e??Yl):Yl;let o;const a=dA({...an,scrollBehavior:(U,C,x)=>{if(C===gn){o=x;return}if(an.scrollBehavior){if(a.options.scrollBehavior=an.scrollBehavior,"scrollRestoration"in window.history){const I=a.beforeEach(()=>{I(),window.history.scrollRestoration="manual"})}return an.scrollBehavior(U,gn,o||x)}},history:r,routes:s});an.routes&&an.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const c=Qi(a.currentRoute.value);a.afterEach((U,C)=>{c.value=C}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const d=PA(i,window.location,t.payload.path),h=Qi(a.currentRoute.value),m=()=>{h.value=a.currentRoute.value};t.hook("page:finish",m),a.afterEach((U,C)=>{var x,I,V,S;((I=(x=U.matched[0])==null?void 0:x.components)==null?void 0:I.default)===((S=(V=C.matched[0])==null?void 0:V.components)==null?void 0:S.default)&&m()});const w={};for(const U in h.value)Object.defineProperty(w,U,{get:()=>h.value[U],enumerable:!0});t._route=zn(w),t._middleware=t._middleware||{global:[],named:{}};const k=Za();a.afterEach(async(U,C,x)=>{delete t._processingMiddleware,!t.isHydrating&&k.value&&await t.runWithContext(Zw),x&&await t.callHook("page:loading:end")});try{[e,n]=Ir(()=>a.isReady()),await e,n()}catch(U){[e,n]=Ir(()=>t.runWithContext(()=>wr(U))),await e,n()}const A=d!==a.currentRoute.value.fullPath?a.resolve(d):a.currentRoute.value;m();const F=t.payload.state._layout;return a.beforeEach(async(U,C)=>{var x;await t.callHook("page:loading:start"),U.meta=wn(U.meta),t.isHydrating&&F&&!Ti(U.meta.layout)&&(U.meta.layout=F),t._processingMiddleware=!0;{const I=new Set([...IA,...t._middleware.global]);for(const V of U.matched){const S=V.meta.middleware;if(S)for(const E of Jh(S))I.add(E)}{const V=await t.runWithContext(()=>Kh({path:U.path}));if(V.appMiddleware)for(const S in V.appMiddleware)V.appMiddleware[S]?I.add(S):I.delete(S)}for(const V of I){const S=typeof V=="string"?t._middleware.named[V]||await((x=Os[V])==null?void 0:x.call(Os).then(R=>R.default||R)):V;if(!S)throw new Error(`Unknown route middleware: '${V}'.`);const E=await t.runWithContext(()=>S(U,C));if(!t.payload.serverRendered&&t.isHydrating&&(E===!1||E instanceof Error)){const R=E||Oc({statusCode:404,statusMessage:`Page Not Found: ${d}`});return await t.runWithContext(()=>wr(R)),!1}if(E!==!0&&(E||E===!1))return E}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),a.afterEach(async(U,C)=>{U.matched.length===0&&await t.runWithContext(()=>wr(Oc({statusCode:404,fatal:!1,statusMessage:`Page not found: ${U.fullPath}`,data:{path:U.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in A&&(A.name=void 0),await a.replace({...A,force:!0}),a.options.scrollBehavior=an.scrollBehavior}catch(U){await t.runWithContext(()=>wr(U))}}),{provide:{router:a}}}}),Uf=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),DM=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),Zh=t=>{const e=ot();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{Uf(()=>t())}):Uf(()=>t())},RA=St({name:"nuxt:payload",setup(t){sn().beforeResolve(async(e,n)=>{if(e.path===n.path)return;const i=await xf(e.path);i&&Object.assign(t.static.data,i.data)}),Zh(()=>{var e;t.hooks.hook("link:prefetch",async n=>{const{hostname:i}=new URL(n,window.location.href);i===window.location.hostname&&await xf(n)}),((e=navigator.connection)==null?void 0:e.effectiveType)!=="slow-2g"&&setTimeout(tl,1e3)})}}),MA=St(()=>{const t=sn();Zh(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),OA=St(t=>{let e;async function n(){const i=await tl();e&&clearTimeout(e),e=setTimeout(n,cf);try{const r=await $fetch(Wh("builds/latest.json")+`?${Date.now()}`);r.id!==i.id&&t.hooks.callHook("app:manifest:update",r)}catch{}}Zh(()=>{e=setTimeout(n,cf)})});function LA(t={}){const e=t.path||window.location.pathname;let n={};try{n=ba(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(n==null?void 0:n.path)!==e||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ot().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const DA=St({name:"nuxt:chunk-reload",setup(t){const e=sn(),n=ao(),i=new Set;e.beforeEach(()=>{i.clear()}),t.hook("app:chunkError",({error:s})=>{i.add(s)});function r(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:$h(n.app.baseURL,s.fullPath);LA({path:a,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(r)}),e.onError((s,o)=>{i.has(s)&&r(o)})}}),NA="$s";function VA(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;
27typeof t[0]!="string"&&t.unshift(e);const[n,i]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(i!==void 0&&typeof i!="function")throw new Error("[nuxt] [useState] init must be a function: "+i);const r=NA+n,s=ot(),o=Dg(s.payload.state,r);if(o.value===void 0&&i){const a=i();if(pt(a))return s.payload.state[r]=a,a;o.value=a}return o}const jA={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","lucide-lab","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:1500},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},Ry=qw(jA);function My(){const t=ot();return t._appConfig||(t._appConfig=wn(Ry)),t._appConfig}const BA=St({name:"pinia",setup(t){const e=tE();return t.vueApp.use(e),co(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}}),FA=pa(()=>Pe(()=>import("./D6uftHTk.js"),[],import.meta.url).then(t=>t.default||t.default||t)),UA=[["Icon",FA]],HA=St({name:"nuxt:global-components",setup(t){for(const[e,n]of UA)t.vueApp.component(e,n),t.vueApp.component("Lazy"+e,n)}}),gi={default:pa(()=>Pe(()=>import("./Bfq3lCWC.js"),__vite__mapDeps([10,4,2,3]),import.meta.url).then(t=>t.default||t))},zA=St({name:"nuxt:prefetch",setup(t){const e=sn();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{var r;const i=(r=n==null?void 0:n.meta)==null?void 0:r.layout;i&&typeof gi[i]=="function"&&await gi[i]()})}),t.hooks.hook("link:prefetch",n=>{if(ir(n))return;const i=e.resolve(n);if(!i)return;const r=i.meta.layout;let s=Jh(i.meta.middleware);s=s.filter(o=>typeof o=="string");for(const o of s)typeof Os[o]=="function"&&Os[o]();r&&typeof gi[r]=="function"&&gi[r]()})}}),$A=St(t=>{});function WA(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zo={exports:{}},GA=Zo.exports,Hf;function qA(){return Hf||(Hf=1,function(t){(function(e,n){t.exports?(n.default=n,t.exports=e&&e.document?n(e):n):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=n(e))})(typeof window<"u"?window:GA,function(e){var n={};function i(r,s,o,a){!r.hasOwnProperty(s)&&(r[s]=a.apply(null,o),e&&typeof CustomEvent=="function"&&e.dispatchEvent(new CustomEvent("HighchartsM
27oduleLoaded",{detail:{path:s,module:r[s]}})))}return i(n,"Core/Globals.js",[],function(){var r,s;return(s=r||(r={})).SVG_NS="http://www.w3.org/2000/svg",s.product="Highcharts",s.version="11.4.8",s.win=e!==void 0?e:{},s.doc=s.win.document,s.svg=s.doc&&s.doc.createElementNS&&!!s.doc.createElementNS(s.SVG_NS,"svg").createSVGRect,s.userAgent=s.win.navigator&&s.win.navigator.userAgent||"",s.isChrome=s.win.chrome,s.isFirefox=s.userAgent.indexOf("Firefox")!==-1,s.isMS=/(edge|msie|trident)/i.test(s.userAgent)&&!s.win.opera,s.isSafari=!s.isChrome&&s.userAgent.indexOf("Safari")!==-1,s.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(s.userAgent),s.isWebKit=s.userAgent.indexOf("AppleWebKit")!==-1,s.deg2rad=2*Math.PI/360,s.hasBidiBug=s.isFirefox&&4>parseInt(s.userAgent.split("Firefox/")[1],10),s.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],s.noop=function(){},s.supportsPassiveEvents=function(){let o=!1;if(!s.isMS){let a=Object.defineProperty({},"passive",{get:function(){o=!0}});s.win.addEventListener&&s.win.removeEventListener&&(s.win.addEventListener("testPassive",s.noop,a),s.win.removeEventListener("testPassive",s.noop,a))}return o}(),s.charts=[],s.composed=[],s.dateFormats={},s.seriesTypes={},s.symbolSizes={},s.chartCount=0,r}),i(n,"Core/Utilities.js",[n["Core/Globals.js"]],function(r){let s,{charts:o,doc:a,win:c}=r;function d(g,f,M,L){let H=f?"Highcharts error":"Highcharts warning";g===32&&(g=`${H}: Deprecated member`);let q=j(g),z=q?`${H} #${g}: www.highcharts.com/errors/${g}/`:g.toString();if(L!==void 0){let Q="";q&&(z+="?"),v(L,function(ce,G){Q+=`
28 - ${G}: ${ce}`,q&&(z+=encodeURI(G)+"="+encodeURI(ce))}),z+=Q}y(r,"displayError",{chart:M,code:g,message:z,params:L},function(){if(f)throw Error(z);c.console&&d.messages.indexOf(z)===-1&&console.warn(z)}),d.messages.push(z)}function h(g,f){return parseInt(g,f||10)}function m(g){return typeof g=="string"}function w(g){let f=Object.prototype.toString.call(g);return f==="[object Array]"||f==="[object Array Iterator]"}function k(g,f){return!!g&&typeof g=="object"&&(!f||!w(g))}function A(g){return k(g)&&typeof g.nodeType=="number"}function F(g){let f=g&&g.constructor;return!!(k(g,!0)&&!A(g)&&f&&f.name&&f.name!=="Object")}function j(g){return typeof g=="number"&&!isNaN(g)&&g<1/0&&g>-1/0}function U(g){return g!=null}function C(g,f,M){let L,H=m(f)&&!U(M),q=(z,Q)=>{U(z)?g.setAttribute(Q,z):H?(L=g.getAttribute(Q))||Q!=="class"||(L=g.getAttribute(Q+"Name")):g.removeAttribute(Q)};return m(f)?q(M,f):v(f,q),L}function x(g){return w(g)?g:[g]}function I(g,f){let M;for(M in g||(g={}),f)g[M]=f[M];return g}function V(){let g=arguments,f=g.length;for(let M=0;M<f;M++){let L=g[M];if(L!=null)return L}}function S(g,f){I(g.style,f)}function E(g){return Math.pow(10,Math.floor(Math.log(g)/Math.LN10))}function R(g,f){return g>1e14?g:parseFloat(g.toPrecision(f||14))}d.messages=[],Math.easeInOutSine=function(g){return-.5*(Math.cos(Math.PI*g)-1)};let T=Array.prototype.find?function(g,f){return g.find(f)}:function(g,f){let M,L=g.length;for(M=0;M<L;M++)if(f(g[M],M))return g[M]};function v(g,f,M){for(let L in g)Object.hasOwnProperty.call(g,L)&&f.call(M||g[L],g[L],L,g)}function p(g,f,M){function L(z,Q){let ce=g.removeEventListener;ce&&ce.call(g,z,Q,!1)}function H(z){let Q,ce;g.nodeName&&(f?(Q={})[f]=!0:Q=z,v(Q,function(G,ne){if(z[ne])for(ce=z[ne].length;ce--;)L(ne,z[ne][ce].fn)}))}let q=typeof g=="function"&&g.prototype||g;if(Object.hasOwnProperty.call(q,"hcEvents")){let z=q.hcEvents;if(f){let Q=z[f]||[];M?(z[f]=Q.filter(function(ce){return M!==ce.fn}),L(f,M)):(H(z),z[f]=[])}else H(z),delete q.hcEvents}}function y(g,f,M,L){if(M=M||{},a.createEvent&&(g.dispatchEvent||g.fireEvent&&g!==r)){let H=a.createEvent("Events");H.initEvent(f,!0,!0),M=I(H,M),g.dispatchEvent?g.dispatchEvent(M):g.fireEvent(f,M)}else if(g.hcEvents){M.target||I(M,{preventDefault:function(){M.defaultPrevented=!0},target:g,type:f});let H=[],q=g,z=!1;for(;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[f]&&(H.length&&(z=!0),H.unshift.apply(H,q.hcEvents[f])),q=Object.getPrototypeOf(q);z&&H.sort((Q,ce)=>Q.order-ce.order),H.forEach(Q=>{Q.fn.call(g,M)===!1&&M.preventDefault()})}L&&!M.defaultPrevented&&L.call(g,M)}
vendor: 4,970 bytes, line 28
28v({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(g,f){r[f]=function(M){return d(32,!1,void 0,{[`Highcharts.${f}`]:`use Array.${g}`}),Array.prototype[g].apply(M,[].slice.call(arguments,1))}});let u=function(){let g=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(s?"":g)+f++}}();return c.jQuery&&(c.jQuery.fn.highcharts=function(){let g=[].slice.call(arguments);if(this[0])return g[0]?(new r[m(g[0])?g.shift():"Chart"](this[0],g[0],g[1]),this):o[C(this[0],"data-highcharts-chart")]}),{addEvent:function(g,f,M,L={}){let H=typeof g=="function"&&g.prototype||g;Object.hasOwnProperty.call(H,"hcEvents")||(H.hcEvents={});let q=H.hcEvents;r.Point&&g instanceof r.Point&&g.series&&g.series.chart&&(g.series.chart.runTrackerClick=!0);let z=g.addEventListener;z&&z.call(g,f,M,!!r.supportsPassiveEvents&&{passive:L.passive===void 0?f.indexOf("touch")!==-1:L.passive,capture:!1}),q[f]||(q[f]=[]);let Q={fn:M,order:typeof L.order=="number"?L.order:1/0};return q[f].push(Q),q[f].sort((ce,G)=>ce.order-G.order),function(){p(g,f,M)}},arrayMax:function(g){let f=g.length,M=g[0];for(;f--;)g[f]>M&&(M=g[f]);return M},arrayMin:function(g){let f=g.length,M=g[0];for(;f--;)g[f]<M&&(M=g[f]);return M},attr:C,clamp:function(g,f,M){return g>f?g<M?g:M:f},clearTimeout:function(g){U(g)&&clearTimeout(g)},correctFloat:R,createElement:function(g,f,M,L,H){let q=a.createElement(g);return f&&I(q,f),H&&S(q,{padding:"0",border:"none",margin:"0"}),M&&S(q,M),L&&L.appendChild(q),q},crisp:(g,f=0,M)=>{let L=f%2/2,H=M?-1:1;return(Math.round(g*H-L)+L)*H},css:S,defined:U,destroyObjectProperties:function(g,f,M){v(g,function(L,H){L!==f&&(L!=null&&L.destroy)&&L.destroy(),(L!=null&&L.destroy||!M)&&delete g[H]})},diffObjects:function(g,f,M,L){let H={};return function q(z,Q,ce,G){let ne=M?Q:z;v(z,function(se,oe){if(!G&&L&&L.indexOf(oe)>-1&&Q[oe]){se=x(se),ce[oe]=[];for(let le=0;le<Math.max(se.length,Q[oe].length);le++)Q[oe][le]&&(se[le]===void 0?ce[oe][le]=Q[oe][le]:(ce[oe][le]={},q(se[le],Q[oe][le],ce[oe][le],G+1)))}else k(se,!0)&&!se.nodeType?(ce[oe]=w(se)?[]:{},q(se,Q[oe]||{},ce[oe],G+1),Object.keys(ce[oe]).length!==0||oe==="colorAxis"&&G===0||delete ce[oe]):(z[oe]!==Q[oe]||oe in z&&!(oe in Q))&&oe!=="__proto__"&&oe!=="constructor"&&(ce[oe]=ne[oe])})}(g,f,H,0),H},discardElement:function(g){g&&g.parentElement&&g.parentElement.removeChild(g)},erase:function(g,f){let M=g.length;for(;M--;)if(g[M]===f){g.splice(M,1);break}},error:d,extend:I,extendClass:function(g,f){let M=function(){};return M.prototype=new g,I(M.prototype,f),M},find:T,fireEvent:y,getClosestDistance:function(g,f){let M,L,H,q=!f;return g.forEach(z=>{if(z.length>1)for(H=z.length-1;H>0;H--)(L=z[H]-z[H-1])<0&&!q?(f==null||f(),f=void 0):L&&(M===void 0||L<M)&&(M=L)}),M},getMagnitude:E,getNestedProperty:function(g,f){let M=g.split(".");for(;M.length&&U(f);){let L=M.shift();if(L===void 0||L==="__proto__")return;if(L==="this"){let q;return k(f)&&(q=f["@this"]),q??f}let H=f[L];if(!U(H)||typeof H=="function"||typeof H.nodeType=="number"||H===c)return;f=H}return f},getStyle:function g(f,M,L){let H;if(M==="width"){let z=Math.min(f.offsetWidth,f.scrollWidth),Q=f.getBoundingClientRect&&f.getBoundingClientRect().width;return Q<z&&Q>=z-1&&(z=Math.floor(Q)),Math.max(0,z-(g(f,"padding-left",!0)||0)-(g(f,"padding-right",!0)||0))}if(M==="height")return Math.max(0,Math.min(f.offsetHeight,f.scrollHeight)-(g(f,"padding-top",!0)||0)-(g(f,"padding-bottom",!0)||0));let q=c.getComputedStyle(f,void 0);return q&&(H=q.getPropertyValue(M),V(L,M!=="opacity")&&(H=h(H))),H},inArray:function(g,f,M){return d(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),f.indexOf(g,M)},insertItem:function(g,f){let M,L=g.options.index,H=f.length;for(M=g.options.isInternal?H:0;M<H+1;M++)if(!f[M]||j(L)&&L<V(f[M].options.index,f[M]._i)||f[M].options.isInternal){f.splice(M,0,g);break}return M},isArray:w,isClass:F,isDOMElement:A,isFunction:function(g){return typeof g=="function"},isNumber:j,isObject:k,isString:m,keys:function(g){return d(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(g)},merge:function(){let g,f=arguments,M={},L=function(q,z){return typeof q!="object"&&(q={}),v(z,function(Q,ce){ce!=="__proto__"&&ce!=="constructor"&&(!k(Q,!0)||F(Q)||A(Q)?q[ce]=z[ce]:q[ce]=L(q[ce]||{},Q))}),q};f[0]===!0&&(M=f[1],f=Array.prototype.slice.call(f,2));let H=f.length;for(g=0;g<H;g++)M=L(M,f[g]);return M},normalizeTickInterval:function(g,f,M,L,H){let q,z=g;M=V(M,E(g));let Q=g/M;for(!f&&(f=H?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],L===!1&&(M===1?f=f.filter(function(ce){return ce%1==0}):M<=.1&&(f=[1/M]))),q=0;q<f.length&&(z=f[q],(!H||!(z*M>=g))&&(H||!(Q<=(f[q]+(f[q+1]||f[q]))/2)));q++);return R(z*M,-Math.round(Math.log(.001)/Math.LN10))},objectEach:v,offset:function(g){let f=a.documentElement,M=g.parentElement||g.parentNode?g.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:M.top+(c.pageYOffset||f.scrollTop)-(f.clientTop||0),left
28:M.left+(c.pageXOffset||f.scrollLeft)-(f.clientLeft||0),width:M.width,height:M.height}},pad:function(g,f,M){return Array((f||2)+1-String(g).replace("-","").length).join(M||"0")+g},pick:V,pInt:h,pushUnique:function(g,f){return 0>g.indexOf(f)&&!!g.push(f)},relativeLength:function(g,f,M){return/%$/.test(g)?f*parseFloat(g)/100+(M||0):parseFloat(g)},removeEvent:p,replaceNested:function(g,...f){let M,L;do for(L of(M=g,f))g=g.replace(L[0],L[1]);while(g!==M);return g},splat:x,stableSort:function(g,f){let M,L,H=g.length;for(L=0;L<H;L++)g[L].safeI=L;for(g.sort(function(q,z){return(M=f(q,z))===0?q.safeI-z.safeI:M}),L=0;L<H;L++)delete g[L].safeI},syncTimeout:function(g,f,M){return f>0?setTimeout(g,f,M):(g.call(0,M),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:u,useSerialIds:function(g){return s=V(g,s)},wrap:function(g,f,M){let L=g[f];g[f]=function(){let H=arguments,q=this;return M.apply(this,[function(){return L.apply(q,arguments.length?arguments:H)}].concat([].slice.call(arguments)))}}}}),i(n,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),i(n,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),i(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{win:o}=r,{defined:a,error:c,extend:d,isNumber:h,isObject:m,merge:w,objectEach:k,pad:A,pick:F,splat:j,timeUnits:U}=s,C=r.isSafari&&o.Intl&&o.Intl.DateTimeFormat.prototype.formatRange,x=r.isSafari&&o.Intl&&!o.Intl.DateTimeFormat.prototype.formatRange;class I{constructor(S){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=o.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(S)}get(S,E){if(this.variableTimezone||this.timezoneOffset){let R=E.getTime(),T=R-this.getTimezoneOffset(E);E.setTime(T);let v=E["getUTC"+S]();return E.setTime(R),v}return this.useUTC?E["getUTC"+S]():E["get"+S]()}set(S,E,R){if(this.variableTimezone||this.timezoneOffset){if(S==="Milliseconds"||S==="Seconds"||S==="Minutes"&&this.getTimezoneOffset(E)%36e5==0)return E["setUTC"+S](R);let T=this.getTimezoneOffset(E),v=E.getTime()-T;E.setTime(v),E["setUTC"+S](R);let p=this.getTimezoneOffset(E);return v=E.getTime()+p,E.setTime(v)}return this.useUTC||C&&S==="FullYear"?E["setUTC"+S](R):E["set"+S](R)}update(S={}){let E=F(S.useUTC,!0);this.options=S=w(!0,this.options,S),this.Date=S.Date||o.Date||Date,this.useUTC=E,this.timezoneOffset=E&&S.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=E&&!!(S.getTimezoneOffset||S.timezone)}makeTime(S,E,R,T,v,p){let y,u,g;return this.useUTC?(y=this.Date.UTC.apply(0,arguments),u=this.getTimezoneOffset(y),y+=u,u!==(g=this.getTimezoneOffset(y))?y+=g-u:u-36e5!==this.getTimezoneOffset(y-36e5)||x||(y-=36e5)):y=new this.Date(S,E,F(R,1),F(T,0),F(v,0),F(p,0)).getTime(),y}timezoneOffsetFunction(){let S=this,E=this.options,R=E.getTimezoneOffset;return this.useUTC?E.timezone?T=>{try{let v=`shortOffset,${E.timezone||""}`,[p,y,u,g,f=0]=(I.formatCache[v]=I.formatCache[v]||Intl.DateTimeFormat("en",{timeZone:E.timezone,timeZoneName:"shortOffset"})).format(T).split(/(GMT|:)/).map(Number),M=-(36e5*(u+f/60));if(h(M))return M}catch{c(34)}return 0}:this.useUTC&&R?T=>6e4*R(T.valueOf()):()=>6e4*(S.timezoneOffset||0):T=>6e4*new Date(T.toString()).getTimezoneOffset()}dateFormat(S,E,R){if(!a(E)||isNaN(E))return r.defaultOptions.lang&&r.defaultOptions.lang.invalidDate||"";S=F(S,"%Y-%m-%d %H:%M:%S");let T=this,v=new this.Date(E),p=this.get("Hours",v),y=this.get("Day",v),u=this.get("Date",v),g=this.get("Month",v),f=this.get("FullYear",v),M=r.defaultOptions.lang,L=M&&M.weekdays,H=M&&M.shortWeekdays;return k(d({a:H?H[y]:L[y].substr(0,3),A:L[y],d:A(u),e:A(u,2," "),w:y,b:M.shortMonths[g],B:M.months[g],m:A(g+1),o:g+1,y:f.toString().substr(2,2),Y:f,H:A(p),k:p,I:A(p%12||12),l:p%12||12,M:A(this.get("Minutes",v)),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:A(this.get("Seconds",v)),L:A(Math.floor(E%1e3),3)},r.dateFormats),function(q,z){for(;S.indexOf("%"+z)!==-1;)S=S.replace("%"+z,typeof q=="function"?q.call(T,E):q)}),R?S.substr(0,1).toUpperCase()+S.substr(1):S}resolveDTLFormat(S){return m(S,!0)?S:{main:(S=j(S))[0],from:S[1],to:S[2]}}getTimeTicks(S,E,R,T){let v,p,y,u,g=this,f=g.Date,M=[],L={},H=new f(E),q=S.unitRange,z=S.count||1;if(T=F(T,1),a(E)){g.set("Milliseconds",H,q>=U.second?0:z*Math.floor(g.get("Milliseconds",H)/z)),q>=U.second&&g.set("Seconds",H,q>=U.minute?0:z*Math.floor(g.get("Seconds",H)/z)),q>=U.minute&&g.set("Minutes",H,q>=U.hour?0:z*Math.floor(g.get("Minutes",H)/z)),q>=U.hour&&g.set("Hours",H,q>=U.day?0:z*Math.floor(g.get("Hours",H)/z)),q>=U.day&&g.set("Date",H,q>=U.month?1:Math.max(1,z*Math.floor(g.get("Date",H)/z))),q>=U.month&&(g.set("Month",H,q>=U.year?0:z*Math.floor(g.get("Month",H)/z)),p=g.get("FullYear",H)),q>=U.year&&(p-=p%z,g.set("FullYear",H,p)),q===U.week&&(u=g.get("Day",H),g.set("Date",H,g.get("Date",H)-u+T+(u<T?-7:0))),p=g.get("FullYear",H);let Q=g.get("Month",H),ce=g.get("Date",H),G=g.get("Hours",H);E=H.getTime(),(g.variableTimezone||!g.useUTC)&&a(R)&&(y=R-E>4*U.month||g.getTimezoneOffset(E)!==g.getTimezoneOffset(R));let ne=H.getTime();for(v=1;ne<R;)M.push(ne),q===U.year?ne=g.makeTime(p+v*z,0):q===U.month?ne=g.makeTime(p,Q+v*z):y&&(q===U.day||q===U.week)?ne=g.makeTime(p,Q,ce+v*z*(q===U.day?1:7)):y&&q===U.hour&&z>1?ne=g.makeTime(p,Q,ce,G+v*z):ne+=q*z,v++;M.push(ne),q<=U.hour&&M.length<1e4&&M.forEach(function(se){se%18e5==0&&g.dateFormat("%H%M%S%L",se)==="000000000"&&(L[se]="day")})}return M.info=d(S,{higherRanks:L,totalRange:q*z}),M}getDateFormat(S,E,R,T){let v=this.dateFormat("%m-%d %H:%M:%S.%L",E),p="01-01 00:00:00.000",y={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond",g=u;for(u in U){if(S===U.week&&+this.dateFormat("%w",E)===R&&v.substr(6)===p.substr(6)){u="week";break}if(U[u]>S){u=g;break}if(y[u]&&v.substr(y[u])!==p.substr(y[u]))break;u!=="week"&&(g=u)}return this.resolveDTLFormat(T[u]).main}}return I.formatCache={},I}),i(n,"Core/Defaults.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],function(r,s,o,a,c){let{isTouchDevice:d}=s,{fireEvent:h,merge:m}=c,w={colors:o.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
28ay","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:r,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:A=>Math.sqrt(1-Math.pow(A-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:d?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};w.chart.styledMode=!1;let k=new a(w.time);return{defaultOptions:w,defaultTime:k,getOptions:function(){return w},setOptions:function(A){return h(s,"setOptions",{options:A}),m(!0,w,A),(A.time||A.global)&&(s.time?s.time.update(m(w.global,w.time,A.global,A.time)):s.time=k),w}}}),i(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{isNumber:o,merge:a,pInt:c}=s;class d{static parse(m){return m?new d(m):d.None}constructor(m){let w,k,A,F;this.rgba=[NaN,NaN,NaN,NaN],this.input=m;let j=r.Color;if(j&&j!==d)return new j(m);if(typeof m=="object"&&m.stops!==void 0)this.stops=m.stops.map(U=>new d(U[1]));else if(typeof m=="string"){if(this.input=m=d.names[m.toLowerCase()]||m,m.charAt(0)==="#"){let U=m.length,C=parseInt(m.substr(1),16);U===7?k=[(16711680&C)>>16,(65280&C)>>8,255&C,1]:U===4&&(k=[(3840&C)>>4|(3840&C)>>8,(240&C)>>4|240&C,(15&C)<<4|15&C,1])}if(!k)for(A=d.parsers.length;A--&&!k;)(w=(F=d.parsers[A]).regex.exec(m))&&(k=F.parse(w))}k&&(this.rgba=k)}get(m){let w=this.input,k=this.rgba;if(typeof w=="object"&&this.stops!==void 0){let A=a(w);return A.stops=[].slice.call(A.stops),this.stops.forEach((F,j)=>{A.stops[j]=[A.stops[j][0],F.get(m)]}),A}return k&&o(k[0])?m!=="rgb"&&(m||k[3]!==1)?m==="a"?`${k[3]}`:"rgba("+k.join(",")+")":"rgb("+k[0]+","+k[1]+","+k[2]+")":w}brighten(m){let w=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(m)});else if(o(m)&&m!==0)for(let k=0;k<3;k++)w[k]+=c(255*m),w[k]<0&&(w[k]=0),w[k]>255&&(w[k]=255);return this}setOpacity(m){return this.rgba[3]=m,this}tweenTo(m,w){let k=this.rgba,A=m.rgba;if(!o(k[0])||!o(A[0]))return m.input||"none";let F=A[3]!==1||k[3]!==1;return(F?"rgba(":"rgb(")+Math.round(A[0]+(k[0]-A[0])*(1-w))+","+Math.round(A[1]+(k[1]-A[1])*(1-w))+","+Math.round(A[2]+(k[2]-A[2])*(1-w))+(F?","+(A[3]+(k[3]-A[3])*(1-w)):"")+")"}}return d.names={white:"#ffffff",black:"#000000"},d.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(h){return[c(h[1]),c(h[2]),c(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(h){return[c(h[1]),c(h[2]),c(h[3]),1]}}],d.None=new d(""),d}),i(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o){let{parse:a}=r,{win:c}=s,{isNumber:d,objectEach:h}=o;class m{constructor(k,A,F){this.pos=NaN,this.options=A,this.elem=k,this.prop=F}dSetter(){let k=this.paths,A=k&&k[0],F=k&&k[1],j=this.now||0,U=[];if(j!==1&&A&&F)if(A.length===F.length&&j<1)for(let C=0;C<F.length;C++){let x=A[C],I=F[C],V=[];for(let S=0;S<I.length;S++){let E=x[S],R=I[S];d(E)&&d(R)&&!(I[0]==="A"&&(S===4||S===5))?V[S]=E+j*(R-E):V[S]=R}U.push(V)}else U=F;else U=this.toD||[];this.elem.attr("d",U,void 0,!0)}update(){let k=this.elem,A=this.prop,F=this.now,j=this.options.step;this[A+"Setter"]?this[A+"Setter"]():k.attr?k.element&&k.attr(A,F,null,!0):k.style[A]=F+this.unit,j&&j.call(k,F,this)}run(k,A,F){let j=this,U=j.options,C=function(V){return!C.stopped&&j.step(V)},x=c.requestAnimationFrame||function(V){setTimeout(V,13)},I=function(){for(let V=0;V<m.timers.length;V++)m.timers[V]()||m.timers.splice(V--,1);m.timers.length&&x(I)};k!==A||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=k,this.end=A,this.unit=F,this.now=this.start,this.pos=0,C.elem=this.elem,C.prop=this.prop,C()&&m.timers.push(C)===1&&x(I)):(delete U.curAnim[this.prop],U.complete&&Object.keys(U.curAnim).length===0&&U.complete.call(this.elem))}step(k){let A,F,j=+new Date,U=this.options,C=this.elem,x=U.complete,I=U.duration,V=U.curAnim;return C.attr&&!C.element?A=!1:k||j>=I+this.startTime?(this.now=this.end,this.pos=1,this.update(),V[this.prop]=!0,F=!0,h(V,function(S){S!==!0&&(F=!1)}),F&&x&&x.call(C),A=!1):(this.pos=U.easing((j-this.startTime)/I),this.now=this.start+(this.end-this.start)*this.pos,this.update(),A=!0),A}initPath(k,A,F){let j=k.startX,U=k.endX,C=F.slice(),x=k.isArea,I=x?2:1,V=A&&F.length>A.length&&F.hasStackedCliffs,S,E,R,T,v=A&&A.slice();if(!v||V)return[C,C];function p(u,g){for(;u.length<E;){let f=u[0],M=g[E-u.length];if(M&&f[0]==="M"&&(M[0]==="C"?u[0]=["C",f[1],f[2],f[1],f[2],f[1],f[2]]:u[0]=["L",f[1],f[2]]),u.unshift(f),x){let L=u.pop();u.push(u[u.length-1],L)}}}function y(u){for(;u.length<E;){let g=u[Math.floor(u.length/I)-1].slice();if(g[0]==="C"&&(g[1]=g[5],g[2]=g[6]),x){let f=u[Math.floor(u.length/I)].slice();u.splice(u.length/2,0,g,f)}else u.push(g)}}if(j&&U&&U.length){for(R=0;R<j.length;R++){if(j[R]===U[0]){S=R;break}if(j[0]===U[U.length-j.length+R]){S=R,T=!0;break}if(j[j.length-1]===U[U.length-j.length+R]){S=j.length-R;break}}S===void 0&&(v=[])}return v.length&&d(S)&&(E=C.length+S*I,T?(p(v,C),y(C)):(p(C,v),y(v))),[v,C]}fillSetter(){m.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,a(this.start).tweenTo(a(this.end),this.pos),void 0,!0)}}return m.timers=[],m}),i(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],function(r,s){let{defined:o,getStyle:a,isArray:c,isNumber:d,isObject:h,merge:m,objectEach:w,pick:k}=s;function A(j){return h(j)?m({duration:500,defer:0},j):{duration:j?500:0,defer:0}}function F(j,U){let C=r.timers.length;for(;C--;)r.timers[C].elem!==j||U&&U!==r.timers[C].prop||(r.timers[C].stopped=!0)}return{animate:function(j,U,C){let x,I="",V,S,E;h(C)||(E=arguments,C={duration:E[2],easing:E[3],complete:E[4]}),d(C.duration)||(C.duration=400),C.easing=typeof C.easing=="function"?C.easing:Math[C.easing]||Math.easeInOutSine,C.curAnim=m(U),w(U,function(R,T){F(j,T),S=new r(j,C,T),V=void 0,T==="d"&&c(U.d)?(S.paths=S.initPath(j,j.pathArray,U.d),S.toD=U.d,x=0,V=1):j.attr?x=j.attr(T):(x=parseFloat(a(j,T))||0,T!=="opacity"&&(I="px")),V||(V=R),typeof V=="string"&&V.match("px")&&(V=V.replace(/px/g,"")),S.run(x,V,I)})},animObject:A,getDeferredAnimation:function(j,U,C){let x=A(U),I=C?[C]:j.series,V=0,S=0;return I.forEach(E=>{let R=A(E.options.animation);V=h(U)&&o(U.defer)?x.defer:Math.max(V,R.duration+R.defer),S=Math.min(x.duration,R.duration)}),j.renderer.forExport&&(V=0),{defer:Math.max(0,V-S),duration:Math.min(V,S)}},setAnimation:function(j,U){U.renderer.globalAnimation=k(j,U.options.chart.animation,!0)},stop:F}}),i(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{SVG_NS:o,win:a}=r,{attr:c,createElement:d,css:h,error:m,isFunction:w,isString:k,objectEach:A,splat:F}=s,{trustedTypes:j}=a,U=j&&w(j.createPolicy)&&j.createPolicy("highcharts",{createHTML:V=>V}),C=U?U.createHTML(""):"",x=function(){try{return!!new DOMParser().parseFromString(C,"text/html")}catch{return!1}}();class I{static filterUserAttributes(S){return A(S,(E,R)=>{let T=!0;I.allowedAttributes.indexOf(R)===-1&&(T=!1),["background","dynsrc","href","lowsrc","src"].indexOf(R)!==-1&&(T=k(E)&&I.allowedReferences.some(v=>E.indexOf(v)===0)),T||(m(33,!1,void 0,{"Invalid attribute in config":`${R}`}),delete S[R]),k(E)&&S[R]&&(S[R]=E.replace(/</g,"&lt;"))}),S}static parseStyle(S){return S.split(";").reduce((E,R)=>{let T=R.split(":").map(p=>p.trim()),v=T.shift();return v&&T.length&&(E[v.replace(/-([a-z])/g,p=>p[1].toUpperCase())]=T.join(":")),E},{})}static setElementHTML(S,E){S.innerHTML=I.emptyHTML,E&&new I(E).addToDOM(S)}constructor(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}addToDOM(S){return function E(R,T){let v;
28return F(R).forEach(function(p){let y,u=p.tagName,g=p.textContent?r.doc.createTextNode(p.textContent):void 0,f=I.bypassHTMLFiltering;if(u)if(u==="#text")y=g;else if(I.allowedTags.indexOf(u)!==-1||f){let M=u==="svg"?o:T.namespaceURI||o,L=r.doc.createElementNS(M,u),H=p.attributes||{};A(p,function(q,z){z!=="tagName"&&z!=="attributes"&&z!=="children"&&z!=="style"&&z!=="textContent"&&(H[z]=q)}),c(L,f?H:I.filterUserAttributes(H)),p.style&&h(L,p.style),g&&L.appendChild(g),E(p.children||[],L),y=L}else m(33,!1,void 0,{"Invalid tagName in config":u});y&&T.appendChild(y),v=y}),v}(this.nodes,S)}parseMarkup(S){let E,R=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),x)E=new DOMParser().parseFromString(U?U.createHTML(S):S,"text/html");else{let v=d("div");v.innerHTML=S,E={body:v}}let T=(v,p)=>{let y=v.nodeName.toLowerCase(),u={tagName:y};y==="#text"&&(u.textContent=v.textContent||"");let g=v.attributes;if(g){let f={};[].forEach.call(g,M=>{M.name==="data-style"?u.style=I.parseStyle(M.value):f[M.name]=M.value}),u.attributes=f}if(v.childNodes.length){let f=[];[].forEach.call(v.childNodes,M=>{T(M,f)}),f.length&&(u.children=f)}p.push(u)};return[].forEach.call(E.body.childNodes,v=>T(v,R)),R}}return I.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],I.allowedReferences=["https://","http://","mailto:","/","../","./","#"],I.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],I.emptyHTML=C,I.bypassHTMLFiltering=!1,I}),i(n,"Core/Templating.js",[n["Core/Defaults.js"],n["Core/Utilities.js"]],function(r,s){let{defaultOptions:o,defaultTime:a}=r,{extend:c,getNestedProperty:d,isArray:h,isNumber:m,isObject:w,pick:k,pInt:A}=s,F={add:(C,x)=>C+x,divide:(C,x)=>x!==0?C/x:"",eq:(C,x)=>C==x,each:function(C){let x=arguments[arguments.length-1];return!!h(C)&&C.map((I,V)=>j(x.body,c(w(I)?I:{"@this":I},{"@index":V,"@first":V===0,"@last":V===C.length-1}))).join("")},ge:(C,x)=>C>=x,gt:(C,x)=>C>x,if:C=>!!C,le:(C,x)=>C<=x,lt:(C,x)=>C<x,multiply:(C,x)=>C*x,ne:(C,x)=>C!=x,subtract:(C,x)=>C-x,unless:C=>!C};function j(C="",x,I){let V=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,S=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,E=[],R=/f$/,T=/\.(\d)/,v=o.lang,p=I&&I.time||a,y=I&&I.numberFormatter||U,u=(H="")=>{let q;return H==="true"||H!=="false"&&((q=Number(H)).toString()===H?q:d(H,x))},g,f,M=0,L;for(;(g=V.exec(C))!==null;){let H=S.exec(g[1]);H&&(g=H,L=!0),f&&f.isBlock||(f={ctx:x,expression:g[1],find:g[0],isBlock:g[1].charAt(0)==="#",start:g.index,startInner:g.index+g[0].length,length:g[0].length});let q=g[1].split(" ")[0].replace("#","");F[q]&&(f.isBlock&&q===f.fn&&M++,f.fn||(f.fn=q));let z=g[1]==="else";if(f.isBlock&&f.fn&&(g[1]===`/${f.fn}`||z))if(M)!z&&M--;else{let Q=f.startInner,ce=C.substr(Q,g.index-Q);f.body===void 0?(f.body=ce,f.startInner=g.index+g[0].length):f.elseBody=ce,f.find+=ce+g[0],z||(E.push(f),f=void 0)}else f.isBlock||E.push(f);if(H&&!(f!=null&&f.isBlock))break}
28return E.forEach(H=>{let q,z,{body:Q,elseBody:ce,expression:G,fn:ne}=H;if(ne){let se=[H],oe=G.split(" ");for(z=F[ne].length;z--;)se.unshift(u(oe[z+1]));q=F[ne].apply(x,se),H.isBlock&&typeof q=="boolean"&&(q=j(q?Q:ce,x,I))}else{let se=G.split(":");if(q=u(se.shift()||""),se.length&&typeof q=="number"){let oe=se.join(":");if(R.test(oe)){let le=parseInt((oe.match(T)||["","-1"])[1],10);q!==null&&(q=y(q,le,v.decimalPoint,oe.indexOf(",")>-1?v.thousandsSep:""))}else q=p.dateFormat(oe,q)}}C=C.replace(H.find,k(q,""))}),L?j(C,x,I):C}function U(C,x,I,V){let S,E;C=+C||0,x=+x;let R=o.lang,T=(C.toString().split(".")[1]||"").split("e")[0].length,v=C.toString().split("e"),p=x;x===-1?x=Math.min(T,20):m(x)?x&&v[1]&&v[1]<0&&((E=x+ +v[1])>=0?(v[0]=(+v[0]).toExponential(E).split("e")[0],x=E):(v[0]=v[0].split(".")[0]||0,C=x<20?(v[0]*Math.pow(10,v[1])).toFixed(x):0,v[1]=0)):x=2;let y=(Math.abs(v[1]?v[0]:C)+Math.pow(10,-Math.max(x,T)-1)).toFixed(x),u=String(A(y)),g=u.length>3?u.length%3:0;return I=k(I,R.decimalPoint),V=k(V,R.thousandsSep),S=(C<0?"-":"")+(g?u.substr(0,g)+V:""),0>+v[1]&&!p?S="0":S+=u.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+V),x?S+=I+y.slice(-x):+S==0&&(S="0"),v[1]&&+S!=0&&(S+="e"+v[1]),S}return{dateFormat:function(C,x,I){return a.dateFormat(C,x,I)},format:j,helpers:F,numberFormat:U}}),i(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],function(r){var s,o;let a;return(o=s||(s={})).rendererTypes={},o.getRendererType=function(c=a){return o.rendererTypes[c]||o.rendererTypes[a]},o.registerRendererType=function(c,d,h){o.rendererTypes[c]=d,(!a||h)&&(a=c,r.Renderer=d)},s}),i(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],function(r){var s;let{clamp:o,pick:a,pushUnique:c,stableSort:d}=r;return(s||(s={})).distribute=function h(m,w,k){let A=m,F=A.reducedLen||w,j=(u,g)=>u.target-g.target,U=[],C=m.length,x=[],I=U.push,V,S,E,R=!0,T,v,p=0,y;for(V=C;V--;)p+=m[V].size;if(p>F){for(d(m,(u,g)=>(g.rank||0)-(u.rank||0)),E=(y=m[0].rank===m[m.length-1].rank)?C/2:-1,S=y?E:C-1;E&&p>F;)T=m[V=Math.floor(S)],c(x,V)&&(p-=T.size),S+=E,y&&S>=m.length&&(E/=2,S=E);x.sort((u,g)=>g-u).forEach(u=>I.apply(U,m.splice(u,1)))}for(d(m,j),m=m.map(u=>({size:u.size,targets:[u.target],align:a(u.align,.5)}));R;){for(V=m.length;V--;)T=m[V],v=(Math.min.apply(0,T.targets)+Math.max.apply(0,T.targets))/2,T.pos=o(v-T.size*T.align,0,w-T.size);for(V=m.length,R=!1;V--;)V>0&&m[V-1].pos+m[V-1].size>m[V].pos&&(m[V-1].size+=m[V].size,m[V-1].targets=m[V-1].targets.concat(m[V].targets),m[V-1].al
vendor: 34,738 bytes, line 28
28ign=.5,m[V-1].pos+m[V-1].size>w&&(m[V-1].pos=w-m[V-1].size),m.splice(V,1),R=!0)}return I.apply(A,U),V=0,m.some(u=>{let g=0;return(u.targets||[]).some(()=>(A[V].pos=u.pos+g,k!==void 0&&Math.abs(A[V].pos-A[V].target)>k?(A.slice(0,V+1).forEach(f=>delete f.pos),A.reducedLen=(A.reducedLen||w)-.1*w,A.reducedLen>.1*w&&h(A,w,k),!0):(g+=A[V].size,V++,!1)))}),d(A,j),A},s}),i(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o,a){let{animate:c,animObject:d,stop:h}=r,{deg2rad:m,doc:w,svg:k,SVG_NS:A,win:F}=o,{addEvent:j,attr:U,createElement:C,crisp:x,css:I,defined:V,erase:S,extend:E,fireEvent:R,isArray:T,isFunction:v,isObject:p,isString:y,merge:u,objectEach:g,pick:f,pInt:M,pushUnique:L,replaceNested:H,syncTimeout:q,uniqueKey:z}=a;class Q{_defaultGetter(G){let ne=f(this[G+"Value"],this[G],this.element?this.element.getAttribute(G):null,0);return/^-?[\d\.]+$/.test(ne)&&(ne=parseFloat(ne)),ne}_defaultSetter(G,ne,se){se.setAttribute(ne,G)}add(G){let ne,se=this.renderer,oe=this.element;return G&&(this.parentGroup=G),this.textStr!==void 0&&this.element.nodeName==="text"&&se.buildText(this),this.added=!0,(!G||G.handleZ||this.zIndex)&&(ne=this.zIndexSetter()),ne||(G?G.element:se.box).appendChild(oe),this.onAdd&&this.onAdd(),this}addClass(G,ne){let se=ne?"":this.attr("class")||"";return(G=(G||"").split(/ /g).reduce(function(oe,le){return se.indexOf(le)===-1&&oe.push(le),oe},se?[se]:[]).join(" "))!==se&&this.attr("class",G),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(G,ne,se,oe=!0){let le,D,O,W,te={},P=this.renderer,_=P.alignedObjects,b=!!G;G?(this.alignOptions=G,this.alignByTranslate=ne,this.alignTo=se):(G=this.alignOptions||{},ne=this.alignByTranslate,se=this.alignTo);let B=!se||y(se)?se||"renderer":void 0;B&&(b&&L(_,this),se=void 0);let $=f(se,P[B],P),X=G.align,J=G.verticalAlign;return le=($.x||0)+(G.x||0),D=($.y||0)+(G.y||0),X==="right"?O=1:X==="center"&&(O=2),O&&(le+=(($.width||0)-(G.width||0))/O),te[ne?"translateX":"x"]=Math.round(le),J==="bottom"?W=1:J==="middle"&&(W=2),W&&(D+=(($.height||0)-(G.height||0))/W),te[ne?"translateY":"y"]=Math.round(D),oe&&(this[this.placed?"animate":"attr"](te),this.placed=!0),this.alignAttr=te,this}alignSetter(G){let ne={left:"start",center:"middle",right:"end"};ne[G]&&(this.alignValue=G,this.element.setAttribute("text-anchor",ne[G]))}animate(G,ne,se){let oe=d(f(ne,this.renderer.globalAnimation,!0)),le=oe.defer;return w.hidden&&(oe.duration=0),oe.duration!==0?(se&&(oe.complete=se),q(()=>{this.element&&c(this,G,oe)},le)):(this.attr(G,void 0,se||oe.complete),g(G,function(D,O){oe.step&&oe.step.call(this,D,{prop:O,pos:1,elem:this})},this)),this}applyTextOutline(G){let ne=this.element;G.indexOf("contrast")!==-1&&(G=G.replace(/contrast/g,this.renderer.getContrast(ne.style.fill)));let se=G.split(" "),oe=se[se.length-1],le=se[0];if(le&&le!=="none"&&o.svg){this.fakeTS=!0,le=le.replace(/(^[\d\.]+)(.*?)$/g,function(P,_,b){return 2*Number(_)+b}),this.removeTextOutline();let D=w.createElementNS(A,"tspan");U(D,{class:"highcharts-text-outline",fill:oe,stroke:oe,"stroke-width":le,"stroke-linejoin":"round"});let O=ne.querySelector("textPath")||ne;[].forEach.call(O.childNodes,P=>{let _=P.cloneNode(!0);_.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(b=>_.removeAttribute(b)),D.appendChild(_)});let W=0;[].forEach.call(O.querySelectorAll("text tspan"),P=>{W+=Number(P.getAttribute("dy"))});let te=w.createElementNS(A,"tspan");te.textContent="​",U(te,{x:Number(ne.getAttribute("x")),dy:-W}),D.appendChild(te),O.insertBefore(D,O.firstChild)}}attr(G,ne,se,oe){let{element:le}=this,D=Q.symbolCustomAttribs,O,W,te=this,P;return typeof G=="string"&&ne!==void 0&&(O=G,(G={})[O]=ne),typeof G=="string"?te=(this[G+"Getter"]||this._defaultGetter).call(this,G,le):(g(G,function(_,b){P=!1,oe||h(this,b),this.symbolName&&D.indexOf(b)!==-1&&(W||(this.symbolAttr(G),W=!0),P=!0),this.rotation&&(b==="x"||b==="y")&&(this.doTransform=!0),P||(this[b+"Setter"]||this._defaultSetter).call(this,_,b,le)},this),this.afterSetters()),se&&se.call(this),te}clip(G){if(G&&!G.clipPath){let ne=z()+"-",se=this.renderer.createElement("clipPath").attr({id:ne}).add(this.renderer.defs);E(G,{clipPath:se,id:ne,count:0}),G.add(se)}return this.attr("clip-path",G?`url(${this.renderer.url}#${G.id})`:"none")}crisp(G,ne){ne=Math.round(ne||G.strokeWidth||0);let se=G.x||this.x||0,oe=G.y||this.y||0,le=(G.width||this.width||0)+se,D=(G.height||this.height||0)+oe,O=x(se,ne),W=x(oe,ne);return E(G,{x:O,y:W,width:x(le,ne)-O,height:x(D,ne)-W}),V(G.strokeWidth)&&(G.strokeWidth=ne),G}complexColor(G,ne,se){let oe=this.renderer,le,D,O,W,te,P,_,b,B,$,X=[],J;R(this.renderer,"complexColor",{args:arguments},function(){if(G.radialGradient?D="radialGradient":G.linearGradient&&(D="linearGradient"),D){if(O=G[D],te=oe.gradients,P=G.stops,B=se.radialReference,T(O)&&(G[D]=O={x1:O[0],y1:O[1],x2:O[2],y2:O[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&B&&!V(O.gradientUnits)&&(W=O,O=u(O,oe.getRadialAttr(B,W),{gradientUnits:"userSpaceOnUse"})),g(O,function(re,ae){ae!=="id"&&X.push(ae,re)}),g(P,function(re){X.push(re)}),te[X=X.join(",")])$=te[X].attr("id");else{O.id=$=z();let re=te[X]=oe.createElement(D).attr(O).add(oe.defs);re.radAttr=W,re.stops=[],P.forEach(function(ae){ae[1].indexOf("rgba")===0?(_=(le=s.parse(ae[1])).get("rgb"),b=le.get("a")):(_=ae[1],b=1);let fe=oe.createElement("stop").attr({offset:ae[0],"stop-color":_,"stop-opacity":b}).add(re);re.stops.push(fe)})}J="url("+oe.url+"#"+$+")",se.setAttribute(ne,J),se.gradient=X,G.toString=function(){return J}}})}css(G){let ne=this.styles,se={},oe=this.element,le,D=!ne;if(ne&&g(G,function(O,W){ne&&ne[W]!==O&&(se[W]=O,D=!0)}),D){ne&&(G=E(ne,se)),G.width===null||G.width==="auto"?delete this.textWidth:oe.nodeName.toLowerCase()==="text"&&G.width&&(le=this.textWidth=M(G.width)),E(this.styles,G),le&&!k&&this.renderer.forExport&&delete G.width;let O=u(G);oe.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(W=>O&&delete O[W]),O.color&&(O.fill=O.color)),I(oe,O)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),G.textOutline&&this.applyTextOutline(G.textOutline)),this}dashstyleSetter(G){let ne,se=this["stroke-width"];if(se==="inherit"&&(se=1),G=G&&G.toLowerCase()){let oe=G.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(ne=oe.length;ne--;)oe[ne]=""+M(oe[ne])*f(se,NaN);G=oe.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",G)}}destroy(){var W;let G=this,ne=G.element||{},se=G.renderer,oe=ne.ownerSVGElement,le=ne.nodeName==="SPAN"&&G.parentGroup||void 0,D,O;if(ne.onclick=ne.onmouseout=ne.onmouseover=ne.onmousemove=ne.point=null,h(G),G.clipPath&&oe){let te=G.clipPath;[].forEach.call(oe.querySelectorAll("[clip-path],[CLIP-PATH]"),function(P){P.getAttribute("clip-path").indexOf(te.element.id)>-1&&P.removeAttribute("clip-path")}),G.clipPath=te.destroy()}if(G.connector=(W=G.connector)==null?void 0:W.destroy(),G.stops){for(O=0;O<G.stops.length;O++)G.stops[O].destroy();G.stops.length=0,G.stops=void 0}for(G.safeRemoveChild(ne);le&&le.div&&le.div.childNodes.length===0;)D=le.parentGroup,G.safeRemoveChild(le.div),delete le.div,le=D;G.alignOptions&&S(se.alignedObjects,G),g(G,function(te,P){G[P]&&G[P].parentGroup===G&&G[P].destroy&&G[P].destroy(),delete G[P]})}dSetter(G,ne,se){T(G)&&(typeof G[0]=="string"&&(G=this.renderer.pathToSegments(G)),this.pathArray=G,G=G.reduce((oe,le,D)=>le&&le.join?(D?oe+" ":"")+le.join(" "):(le||"").toString(),"")),/(NaN| {2}|^$)/.test(G)&&(G="M 0 0"),this[ne]!==G&&(se.setAttribute(ne,G),this[ne]=G)}fillSetter(G,ne,se){typeof G=="string"?se.setAttribute(ne,G):G&&this.complexColor(G,ne,se)}hrefSetter(G,ne,se){se.setAttributeNS("http://www.w3.org/1999/xlink",ne,G)}getBBox(G,ne){let se,oe,le,D,{alignValue:O,element:W,renderer:te,styles:P,textStr:_}=this,{cache:b,cacheKeys:B}=te,$=W.namespaceURI===this.SVG_NS,X=f(ne,this.rotation,0),J=te.styledMode?W&&Q.prototype.getStyle.call(W,"font-size"):P.fontSize;if(V(_)&&((D=_.toString()).indexOf("<")===-1&&(D=D.replace(/\d/g,"0")),D+=["",te.rootFontSize,J,X,this.textWidth,O,P.textOverflow,P.fontWeight].join(",")),D&&!G&&(se=b[D]),!se||se.polygon){if($||te.forExport){try{le=this.fakeTS&&function(ae){let fe=W.querySelector(".highcharts-text-outline");fe&&I(fe,{display:ae})},v(le)&&le("none"),se=W.getBBox?E({},W.getBBox()):{width:W.offsetWidth,height:W.offsetHeight,x:0,y:0},v(le)&&le("")}catch{}(!se||se.width<0)&&(se={x:0,y:0,width:0,height:0})}else se=this.htmlGetBBox();oe=se.height,$&&(se.height=oe={"11px,17":14,"13px,20":16}[`${J||""},${Math.round(oe)}`]||oe),X&&(se=this.getRotatedBox(se,X));let re={bBox:se};R(this,"afterGetBBox",re),se=re.bBox}if(D&&(_===""||se.height>0)){for(;B.length>250;)delete b[B.shift()];b[D]||B.push(D),b[D]=se}return se}getRotatedBox(G,ne){let{x:se,y:oe,width:le,height:D}=G,{alignValue:O,translateY:W,rotationOriginX:te=0,rotationOriginY:P=0}=this,_={right:1,center:.5}[O||0]||0,b=Number(this.element.getAttribute("y")||0)-(W?0:oe),B=ne*m,$=(ne-90)*m,X=Math.cos(B),J=Math.sin(B),re=le*X,ae=le*J,fe=Math.cos($),ue=Math.sin($),[[Z,Y],[ee,ie]]=[te,P].map(Le=>[Le-Le*X,Le*J]),de=se+_*(le-re)+Z+ie+b*fe,ge=de+re,pe=ge-D*fe,me=pe-re,ye=oe+b-_*ae-Y+ee+b*ue,_e=ye+ae,ve=_e-D*ue,we=ve-ae,Ce=Math.min(de,ge,pe,me),Ie=Math.min(ye,_e,ve,we),Te=Math.max(de,ge,pe,me)-Ce,Se=Math.max(ye,_e,ve,we)-Ie;return{x:Ce,y:Ie,width:Te,height:Se,polygon:[[de,ye],[ge,_e],[pe,ve],[me,we]]}}getStyle(G){return F.getComputedStyle(this.element||this,"").getPropertyValue(G)}hasClass(G){return(""+this.attr("class")).split(" ").indexOf(G)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(G,ne){this.onEvents={},this.opacity=1,this.SVG_NS=A,this.element=ne==="span"||ne==="body"?C(ne):w.createElementNS(this.SVG_NS,ne),this.renderer=G,this.styles={},R(this,"afterInit")}on(G,ne){let{onEvents:se}=this;return se[G]&&se[G](),se[G]=j(this.element,G,ne),this}opacitySetter(G,ne,se){let oe=Number(Number(G).toFixed(3));this.opacity=oe,se.setAttribute(ne,oe)}reAlign(){var G;(G=this.alignOptions)!=null&&G.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(G){return this.attr("class",(""+this.attr("class")).replace(y(G)?RegExp(`(^| )${G}( |$)`):G," ").replace(/ +/g," ").trim())}removeTextOutline(){let G=this.element.querySelector("tspan.highcharts-text-outline");G&&this.safeRemoveChild(G)}safeRemoveChild(G){let ne=G.parentNode;ne&&ne.removeChild(G)}setRadialReference(G){let ne=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=G,ne&&ne.radAttr&&ne.animate(this.renderer.getRadialAttr(G,ne.radAttr)),this}shadow(G){var le;let{renderer:ne}=this,se=u(((le=this.parentGroup)==null?void 0:le.rotation)===90?{offsetX:-1,offsetY:-1}:{},p(G)?G:{}),oe=ne.shadowDefinition(se);return this.attr({filter:G?`url(${ne.url}#${oe})`:"none"})}show(G=!0){return this.attr({visibility:G?"inherit":"visible"})}"stroke-widthSetter"(G,ne,se){this[ne]=G,se.setAttribute(ne,G)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let G=this.getStyle("stroke-width"),ne=0,se;return/px$/.test(G)?ne=M(G):G!==""&&(U(se=w.createElementNS(A,"rect"),{width:G,"stroke-width":0}),this.element.parentNode.appendChild(se),ne=se.getBBox().width,se.parentNode.removeChild(se)),ne}symbolAttr(G){let ne=this;Q.symbolCustomAttribs.forEach(function(se){ne[se]=f(G[se],ne[se])}),ne.attr({d:ne.renderer.symbols[ne.symbolName](ne.x,ne.y,ne.width,ne.height,ne)})}textSetter(G){G!==this.textStr&&(delete this.textPxLength,this.textStr=G,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(G){let ne=this.element,se=ne.getElementsByTagName("title")[0]||w.createElementNS(this.SVG_NS,"title");ne.insertBefore?ne.insertBefore(se,ne.firstChild):ne.appendChild(se),se.textContent=H(f(G,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let G=this.element;return G.parentNode.appendChild(G),this}translate(G,ne){return this.attr({translateX:G,translateY:ne})}updateTransform(G="transform"){var b;let{element:ne,matrix:se,rotation:oe=0,rotationOriginX:le,rotationOriginY:D,scaleX:O,scaleY:W,translateX:te=0,translateY:P=0}=this,_=["translate("+te+","+P+")"];V(se)&&_.push("matrix("+se.join(",")+")"),oe&&(_.push("rotate("+oe+" "+f(le,ne.getAttribute("x"),0)+" "+f(D,ne.getAttribute("y")||0)+")"),((b=this.text)==null?void 0:b.element.tagName)==="SPAN"&&this.text.attr({rotation:oe,rotationOriginX:(le||0)-this.padding,rotationOriginY:(D||0)-this.padding})),(V(O)||V(W))&&_.push("scale("+f(O,1)+" "+f(W,1)+")"),_.length&&!(this.text||this).textPath&&ne.setAttribute(G,_.join(" "))}visibilitySetter(G,ne,se){G==="inherit"?se.removeAttribute(ne):this[ne]!==G&&se.setAttribute(ne,G),this[ne]=G}xGetter(G){return this.element.nodeName==="circle"&&(G==="x"?G="cx":G==="y"&&(G="cy")),this._defaultGetter(G)}zIndexSetter(G,ne){let se=this.renderer,oe=this.parentGroup,le=(oe||se).element||se.box,D=this.element,O=le===se.box,W,te,P,_=!1,b,B=this.added,$;if(V(G)?(D.setAttribute("data-z-index",G),G=+G,this[ne]===G&&(B=!1)):V(this[ne])&&D.removeAttribute("data-z-index"),this[ne]=G,B){for((G=this.zIndex)&&oe&&(oe.handleZ=!0),$=(W=le.childNodes).length-1;$>=0&&!_;$--)b=!V(P=(te=W[$]).getAttribute("data-z-index")),te!==D&&(G<0&&b&&!O&&!$?(le.insertBefore(D,W[$]),_=!0):(M(P)<=G||b&&(!V(G)||G>=0))&&(le.insertBefore(D,W[$+1]),_=!0));_||(le.insertBefore(D,W[O?3:0]),_=!0)}return _}}return Q.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Q.prototype.strokeSetter=Q.prototype.fillSetter,Q.prototype.yGetter=Q.prototype.xGetter,Q.prototype.matrixSetter=Q.prototype.rotationOriginXSetter=Q.prototype.rotationOriginYSetter=Q.prototype.rotationSetter=Q.prototype.scaleXSetter=Q.prototype.scaleYSetter=Q.prototype.translateXSetter=Q.prototype.translateYSetter=Q.prototype.verticalAlignSetter=function(ce,G){this[G]=ce,this.doTransform=!0},Q}),i(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s){let{defined:o,extend:a,isNumber:c,merge:d,pick:h,removeEvent:m}=s;class w extends r{constructor(A,F,j,U,C,x,I,V,S,E){let R;super(A,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=F,this.x=j,this.y=U,this.anchorX=x,this.anchorY=I,this.baseline=S,this.className=E,this.addClass(E==="button"?"highcharts-no-tooltip":"highcharts-label"),E&&this.addClass("highcharts-"+E),this.text=A.text(void 0,0,0,V).attr({zIndex:1}),typeof C=="string"&&((R=/^url\((.*?)\)$/.test(C))||this.renderer.symbols[C])&&(this.symbolKey=C),this.bBox=w.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=A.styledMode||R,this.deferredAttr={},this.alignFactor=0}alignSetter(A){let F={left:0,center:.5,right:1}[A];F!==this.alignFactor&&(this.alignFactor=F,this.bBox&&c(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(A,F){this.anchorX=A,this.boxAttr(F,Math.round(A)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(A,F){this.anchorY=A,this.boxAttr(F,A-this.ySetting)}boxAttr(A,F){this.box?this.box.attr(A,F):this.deferredAttr[A]=F}css(A){if(A){let F={};A=d(A),w.textProps.forEach(j=>{A[j]!==void 0&&(F[j]=A[j],delete A[j])}),this.text.css(F),"fontSize"in F||"fontWeight"in F?this.updateTextPadding():("width"in F||"textOverflow"in F)&&this.updateBoxSize()}return r.prototype.css.call(this,A)}destroy(){m(this.element,"mouseenter"),m(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),r.prototype.destroy.call(this)}fillSetter(A,F){A&&(this.needsBox=!0),this.fill=A,this.boxAttr(F,A)}getBBox(A,F){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:j,height:U=0,translateX:C=0,translateY:x=0,width:I=0}=this,V=h(this.paddingLeft,j),S=F??(this.rotation||0),E={width:I,height:U,x:C+this.bBox.x-V,y:x+this.bBox.y-j+this.baselineOffset};return S&&(E=this.getRotatedBox(E,S)),E}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(A){this.heightSetting=A,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:h(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(A,F){c(A)?A!==this[F]&&(this[F]=A,this.updateTextPadding()):this[F]=void 0}rSetter(A,F){this.boxAttr(F,A)}strokeSetter(A,F){this.stroke=A,this.boxAttr(F,A)}"stroke-widthSetter"(A,F){A&&(this.needsBox=!0),this["stroke-width"]=A,this.boxAttr(F,A)}"text-alignSetter"(A){this.textAlign=A}textSetter(A){A!==void 0&&this.text.attr({text:A}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let A,F=this.text,j={},U=this.padding,C=this.bBox=(!c(this.widthSetting)||!c(this.heightSetting)||this.textAlign)&&o(F.textStr)?F.getBBox(void 0,0):w.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||C.height||0)+2*U;let x=this.renderer.fontMetrics(F);if(this.baselineOffset=U+Math.min((this.text.firstLineMetrics||x).b,C.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-x.h)/2),this.needsBox&&!F.textPath){if(!this.box){let I=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();I.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),I.add(this)}A=this.getCrispAdjust(),j.x=A,j.y=(this.baseline?-this.baselineOffset:0)+A,j.width=Math.round(this.width),j.height=Math.round(this.height),this.box.attr(a(j,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let A=this.text;if(!A.textPath){this.updateBoxSize();let F=this.baseline?0:this.baselineOffset,j=h(this.paddingLeft,this.padding);o(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(j+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(j!==A.x||F!==A.y)&&(A.attr("x",j),A.hasBoxWidthChanged&&(this.bBox=A.getBBox(!0)),F!==void 0&&A.attr("y",F)),A.x=j,A.y=F}}widthSetter(A){this.widthSetting=c(A)?A:void 0,this.doUpdate=!0}getPaddedWidth(){let A=this.padding,F=h(this.paddingLeft,A),j=h(this.paddingRight,A);return(this.widthSetting||this.bBox.width||0)+F+j}xSetter(A){this.x=A,this.alignFactor&&(A-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(A),this.attr("translateX",this.xSetting)}ySetter(A){this.ySetting=this.y=Math.round(A),this.attr("translateY",this.ySetting)}}return w.emptyBBox={width:0,height:0,x:0,y:0},w.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],w}),i(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],function(r){let{defined:s,isNumber:o,pick:a}=r;function c(m,w,k,A,F){let j=[];if(F){let U=F.start||0,C=a(F.r,k),x=a(F.r,A||k),I=2e-4/(F.borderRadius?1:Math.max(C,1)),V=Math.abs((F.end||0)-U-2*Math.PI)<I,S=(F.end||0)-(V?I:0),E=F.innerR,R=a(F.open,V),T=Math.cos(U),v=Math.sin(U),p=Math.cos(S),y=Math.sin(S),u=a(F.longArc,S-U-Math.PI<I?0:1),g=["A",C,x,0,u,a(F.clockwise,1),m+C*p,w+x*y];g.params={start:U,end:S,cx:m,cy:w},j.push(["M",m+C*T,w+x*v],g),s(E)&&((g=["A",E,E,0,u,s(F.clockwise)?1-F.clockwise:0,m+E*T,w+E*v]).params={start:S,end:U,cx:m,cy:w},j.push(R?["M",m+E*p,w+E*y]:["L",m+E*p,w+E*y],g)),R||j.push(["Z"])}return j}function d(m,w,k,A,F){return F&&F.r?h(m,w,k,A,F):[["M",m,w],["L",m+k,w],["L",m+k,w+A],["L",m,w+A],["Z"]]}function h(m,w,k,A,F){let j=(F==null?void 0:F.r)||0;return[["M",m+j,w],["L",m+k-j,w],["A",j,j,0,0,1,m+k,w+j],["L",m+k,w+A-j],["A",j,j,0,0,1,m+k-j,w+A],["L",m+j,w+A],["A",j,j,0,0,1,m,w+A-j],["L",m,w+j],["A",j,j,0,0,1,m+j,w],["Z"]]}return{arc:c,callout:function(m,w,k,A,F){let j=Math.min(F&&F.r||0,k,A),U=j+6,C=F&&F.anchorX,x=F&&F.anchorY||0,I=h(m,w,k,A,{r:j});if(!o(C)||C<k&&C>0&&x<A&&x>0)return I;if(m+C>k-U)if(x>w+U&&x<w+A-U)I.splice(3,1,["L",m+k,x-6],["L",m+k+6,x],["L",m+k,x+6],["L",m+k,w+A-j]);else if(C<k){let V=x<w+U,S=V?w:w+A;I.splice(V?2:5,0,["L",C,x],["L",m+k-j,S])}else I.splice(3,1,["L",m+k,A/2],["L",C,x],["L",m+k,A/2],["L",m+k,w+A-j]);else if(m+C<U)if(x>w+U&&x<w+A-U)I.splice(7,1,["L",m,x+6],["L",m-6,x],["L",m,x-6],["L",m,w+j]);else if(C>0){let V=x<w+U,S=V?w:w+A;I.splice(V?1:6,0,["L",C,x],["L",m+j,S])}else I.splice(7,1,["L",m,A/2],["L",C,x],["L",m,A/2],["L",m,w+j]);else x>A&&C<k-U?I.splice(5,1,["L",C+6,w+A],["L",C,w+A+6],["L",C-6,w+A],["L",m+j,w+A]):x<0&&C>U&&I.splice(1,1,["L",C-6,w],["L",C,w-6],["L",C+6,w],["L",k-j,w]);return I},circle:function(m,w,k,A){return c(m+k/2,w+A/2,k/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(m,w,k,A){return[["M",m+k/2,w],["L",m+k,w+A/2],["L",m+k/2,w+A],["L",m,w+A/2],["Z"]]},rect:d,roundedRect:h,square:d,triangle:function(m,w,k,A){return[["M",m+k/2,w],["L",m+k,w+A],["L",m,w+A],["Z"]]},"triangle-down":function(m,w,k,A){return[["M",m,w],["L",m+k,w],["L",m+k/2,w+A],["Z"]]}}}),i(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o){let{doc:a,SVG_NS:c,win:d}=s,{attr:h,extend:m,fireEvent:w,isString:k,objectEach:A,pick:F}=o;return class{constructor(j){let U=j.styles;this.renderer=j.renderer,this.svgElement=j,this.width=j.textWidth,this.textLineHeight=U&&U.lineHeight,this.textOutline=U&&U.textOutline,this.ellipsis=!!(U&&U.textOverflow==="ellipsis"),this.noWrap=!!(U&&U.whiteSpace==="nowrap")}buildSVG(){let j=this.svgElement,U=j.element,C=j.renderer,x=F(j.textStr,"").toString(),I=x.indexOf("<")!==-1,V=U.childNodes,S=!j.added&&C.box,E=[x,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,j.getStyle("font-size"),this.width].join(",");if(E!==j.textCache){j.textCache=E,delete j.actualWidth;for(let R=V.length;R--;)U.removeChild(V[R]);if(I||this.ellipsis||this.width||j.textPath||x.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(x))){if(x!==""){S&&S.appendChild(U);let R=new r(x);this.modifyTree(R.nodes),R.addToDOM(U),this.modifyDOM(),this.ellipsis&&(U.textContent||"").indexOf("…")!==-1&&j.attr("title",this.unescapeEntities(j.textStr||"",["&lt;","&gt;"])),S&&S.removeChild(U)}}else U.appendChild(a.createTextNode(this.unescapeEntities(x)));k(this.textOutline)&&j.applyTextOutline&&j.applyTextOutline(this.textOutline)}}modifyDOM(){let j,U=this.svgElement,C=h(U.element,"x");for(U.firstLineMetrics=void 0;(j=U.element.firstChild)&&/^[\s\u200B]*$/.test(j.textContent||" ");)U.element.removeChild(j);[].forEach.call(U.element.querySelectorAll("tspan.highcharts-br"),(S,E)=>{S.nextSibling&&S.previousSibling&&(E===0&&S.previousSibling.nodeType===1&&(U.firstLineMetrics=U.renderer.fontMetrics(S.previousSibling)),h(S,{dy:this.getLineHeight(S.nextSibling),x:C}))});let x=this.width||0;if(!x)return;let I=(S,E)=>{let R=S.textContent||"",T=R.replace(/([^\^])-/g,"$1- ").split(" "),v=!this.noWrap&&(T.length>1||U.element.childNodes.length>1),p=this.getLineHeight(E),y=0,u=U.actualWidth;if(this.ellipsis)R&&this.truncate(S,R,void 0,0,Math.max(0,x-.8*p),(g,f)=>g.substring(0,f)+"…");else if(v){let g=[],f=[];for(;E.firstChild&&E.firstChild!==S;)f.push(E.firstChild),E.removeChild(E.firstChild);for(;T.length;)T.length&&!this.noWrap&&y>0&&(g.push(S.textContent||""),S.textContent=T.join(" ").replace(/- /g,"-")),this.truncate(S,void 0,T,y===0&&u||0,x,(M,L)=>T.slice(0,L).join(" ").replace(/- /g,"-")),u=U.actualWidth,y++;f.forEach(M=>{E.insertBefore(M,S)}),g.forEach(M=>{E.insertBefore(a.createTextNode(M),S);let L=a.createElementNS(c,"tspan");L.textContent="​",h(L,{dy:p,x:C}),E.insertBefore(L,S)})}},V=S=>{[].slice.call(S.childNodes).forEach(E=>{E.nodeType===d.Node.TEXT_NODE?I(E,S):(E.className.baseVal.indexOf("highcharts-br")!==-1&&(U.actualWidth=0),V(E))})};V(U.element)}getLineHeight(j){let U=j.nodeType===d.Node.TEXT_NODE?j.parentElement:j;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(U||this.svgElement.element).h}modifyTree(j){let U=(C,x)=>{let{attributes:I={},children:V,style:S={},tagName:E}=C,R=this.renderer.styledMode;if(E==="b"||E==="strong"?R?I.class="highcharts-strong":S.fontWeight="bold":(E==="i"||E==="em")&&(R?I.class="highcharts-emphasized":S.fontStyle="italic"),S&&S.color&&(S.fill=S.color),E==="br"){I.class="highcharts-br",C.textContent="​";let T=j[x+1];T&&T.textContent&&(T.textContent=T.textContent.replace(/^ +/gm,""))}else E==="a"&&V&&V.some(T=>T.tagName==="#text")&&(C.children=[{children:V,tagName:"tspan"}]);E!=="#text"&&E!=="a"&&(C.tagName="tspan"),m(C,{attributes:I,style:S}),V&&V.filter(T=>T.tagName!=="#text").forEach(U)};j.forEach(U),w(this.svgElement,"afterModifyTree",{nodes:j})}truncate(j,U,C,x,I,V){let S,E,R=this.svgElement,{rotation:T}=R,v=[],p=C?1:0,y=(U||C||"").length,u=y,g=function(f,M){let L=M||f,H=j.parentNode;if(H&&v[L]===void 0&&H.getSubStringLength)try{v[L]=x+H.getSubStringLength(0,C?L+1:L)}catch{}return v[L]};if(R.rotation=0,x+(E=g(j.textContent.length))>I){for(;p<=y;)u=Math.ceil((p+y)/2),C&&(S=V(C,u)),E=g(u,S&&S.length-1),p===y?p=y+1:E>I?y=u-1:p=u;y===0?j.textContent="":U&&y===U.length-1||(j.textContent=S||V(U||C,u))}C&&C.splice(0,u),R.actualWidth=E,R.rotation=T}unescapeEntities(j,U){return A(this.renderer.escapes,function(C,x){U&&U.indexOf(C)!==-1||(j=j.toString().replace(RegExp(C,"g"),x))}),j}}}),i(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Defaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h,m,w,k){let A,{defaultOptions:F}=s,{charts:j,deg2rad:U,doc:C,isFirefox:x,isMS:I,isWebKit:V,noop:S,SVG_NS:E,symbolSizes:R,win:T}=a,{addEvent:v,attr:p,createElement:y,crisp:u,css:g,defined:f,destroyObjectProperties:M,extend:L,isArray:H,isNumber:q,isObject:z,isString:Q,merge:ce,pick:G,pInt:ne,replaceNested:se,uniqueKey:oe}=k;class le{constructor(O,W,te,P,_,b,B){let $,X,J=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),re=J.element;B||J.css(this.getStyle(P||{})),O.appendChild(re),p(O,"dir","ltr"),O.innerHTML.indexOf("xmlns")===-1&&p(re,"xmlns",this.SVG_NS),this.box=re,this.boxWrapper=J,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(C.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=b,this.forExport=_,this.styledMode=B,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=J.getStyle("font-size"),this.setSize(W,te,!1),x&&O.getBoundingClientRect&&(($=function(){g(O,{left:0,top:0}),X=O.getBoundingClientRect(),g(O,{left:Math.ceil(X.left)-X.left+"px",top:Math.ceil(X.top)-X.top+"px"})})(),this.unSubPixelFix=v(T,"resize",$))}definition(O){return new r([O]).addToDOM(this.defs.element)}getReferenceURL(){if((x||V)&&C.getElementsByTagName("base").length){if(!f(A)){let O=oe(),W=new r([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:O},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${O})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(C.body);g(W,{position:"fixed",top:0,left:0,zIndex:9e5});let te=C.elementFromPoint(6,6);A=(te&&te.id)==="hitme",C.body.removeChild(W)}if(A)return se(T.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(O){return this.style=L({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},O),this.style}setStyle(O){this.boxWrapper.css(this.getStyle(O))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let O=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),M(this.gradients||{}),this.gradients=null,this.defs=O.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(O){return new this.Element(this,O)}getRadialAttr(O,W){return{cx:O[0]-O[2]/2+(W.cx||0)*O[2],cy:O[1]-O[2]/2+(W.cy||0)*O[2],r:(W.r||0)*O[2]}}shadowDefinition(O){let W=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(O).map(P=>`${P}-${O[P]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),te=ce({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},O);return this.defs.element.querySelector(`#${W}`)||this.definition({tagName:"filter",attributes:{id:W,filterUnits:te.filterUnits},children:this.getShadowFilterContent(te)}),W}getShadowFilterContent(O){return[{tagName:"feDropShadow",attributes:{dx:O.offsetX,dy:O.offsetY,"flood-color":O.color,"flood-opacity":Math.min(5*O.opacity,1),stdDeviation:O.width/2}}]}buildText(O){new w(O).buildSVG()}getContrast(O){let W=o.parse(O).rgba.map(P=>{let _=P/255;return _<=.03928?_/12.92:Math.pow((_+.055)/1.055,2.4)}),te=.2126*W[0]+.7152*W[1]+.0722*W[2];return 1.05/(te+.05)>(te+.05)/.05?"#FFFFFF":"#000000"}button(O,W,te,P,_={},b,B,$,X,J){let re=this.label(O,W,te,X,void 0,void 0,J,void 0,"button"),ae=this.styledMode,fe=arguments,ue=0;_=ce(F.global.buttonTheme,_),ae&&(delete _.fill,delete _.stroke,delete _["stroke-width"]);let Z=_.states||{},Y=_.style||{};delete _.states,delete _.style;let ee=[r.filterUserAttributes(_)],ie=[Y];return ae||["hover","select","disabled"].forEach((de,ge)=>{ee.push(ce(ee[0],r.filterUserAttributes(fe[ge+5]||Z[de]||{}))),ie.push(ee[ge+1].style),delete ee[ge+1].style}),v(re.element,I?"mouseover":"mouseenter",function(){ue!==3&&re.setState(1)}),v(re.element,I?"mouseout":"mouseleave",function(){ue!==3&&re.setState(ue)}),re.setState=(de=0)=>{if(de!==1&&(re.state=ue=de),re.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][de]),!ae){re.attr(ee[de]);let ge=ie[de];z(ge)&&re.css(ge)}},re.attr(ee[0]),!ae&&(re.css(L({cursor:"default"},Y)),J&&re.text.css({pointerEvents:"none"})),re.on("touchstart",de=>de.stopPropagation()).on("click",function(de){ue!==3&&P.call(re,de)})}crispLine(O,W){let[te,P]=O;return f(te[1])&&te[1]===P[1]&&(te[1]=P[1]=u(te[1],W)),f(te[2])&&te[2]===P[2]&&(te[2]=P[2]=u(te[2],W)),O}path(O){let W=this.styledMode?{}:{fill:"none"};return H(O)?W.d=O:z(O)&&L(W,O),this.createElement("path").attr(W)}circle(O,W,te){let P=z(O)?O:O===void 0?{}:{x:O,y:W,r:te},_=this.createElement("circle");return _.xSetter=_.ySetter=function(b,B,$){$.setAttribute("c"+B,b)},_.attr(P)}arc(O,W,te,P,_,b){let B;z(O)?(W=(B=O).y,te=B.r,P=B.innerR,_=B.start,b=B.end,O=B.x):B={innerR:P,start:_,end:b};let $=this.symbol("arc",O,W,te,te,B);return $.r=te,$}rect(O,W,te,P,_,b){let B=z(O)?O:O===void 0?{}:{x:O,y:W,r:_,width:Math.max(te||0,0),height:Math.max(P||0,0)},$=this.createElement("rect");return this.styledMode||(b!==void 0&&(B["stroke-width"]=b,L(B,$.crisp(B))),B.fill="none"),$.rSetter=function(X,J,re){$.r=X,p(re,{rx:X,ry:X})},$.rGetter=function(){return $.r||0},$.attr(B)}roundedRect(O){return this.symbol("roundedRect").attr(O)}setSize(O,W,te){this.width=O,this.height=W,this.boxWrapper.animate({width:O,height:W},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:G(te,!0)?void 0:0}),this.alignElements()}g(O){let W=this.createElement("g");return O?W.attr({class:"highcharts-"+O}):W}image(O,W,te,P,_,b){let B={preserveAspectRatio:"none"};q(W)&&(B.x=W),q(te)&&(B.y=te),q(P)&&(B.width=P),q(_)&&(B.height=_);let $=this.createElement("image").attr(B),X=function(J){$.attr({href:O}),b.call($,J)};if(b){$.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let J=new T.Image;v(J,"load",X),J.src=O,J.complete&&X({})}else $.attr({href:O});return $}symbol(O,W,te,P,_,b){let B,$,X,J,re=this,ae=/^url\((.*?)\)$/,fe=ae.test(O),ue=!fe&&(this.symbols[O]?O:"circle"),Z=ue&&this.symbols[ue];if(Z)typeof W=="number"&&($=Z.call(this.symbols,W||0,te||0,P||0,_||0,b)),B=this.path($),re.styledMode||B.attr("fill","none"),L(B,{symbolName:ue||void 0,x:W,y:te,width:P,height:_}),b&&L(B,b);else if(fe){X=O.match(ae)[1];let Y=B=this.image(X);Y.imgwidth=G(b&&b.width,R[X]&&R[X].width),Y.imgheight=G(b&&b.height,R[X]&&R[X].height),J=ee=>ee.attr({width:ee.width,height:ee.height}),["width","height"].forEach(ee=>{Y[`${ee}Setter`]=function(ie,de){this[de]=ie;let{alignByTranslate:ge,element:pe,width:me,height:ye,imgwidth:_e,imgheight:ve}=this,we=de==="width"?_e:ve,Ce=1;b&&b.backgroundSize==="within"&&me&&ye&&_e&&ve?(Ce=Math.min(me/_e,ye/ve),p(pe,{width:Math.round(_e*Ce),height:Math.round(ve*Ce)})):pe&&we&&pe.setAttribute(de,we),!ge&&_e&&ve&&this.translate(((me||0)-_e*Ce)/2,((ye||0)-ve*Ce)/2)}}),f(W)&&Y.attr({x:W,y:te}),Y.isImg=!0,Y.symbolUrl=O,f(Y.imgwidth)&&f(Y.imgheight)?J(Y):(Y.attr({width:0,height:0}),y("img",{onload:function(){let ee=j[re.chartIndex];this.width===0&&(g(this,{position:"absolute",top:"-999em"}),C.body.appendChild(this)),R[X]={width:this.width,height:this.height},Y.imgwidth=this.width,Y.imgheight=this.height,Y.element&&J(Y),this.parentNode&&this.parentNode.removeChild(this),re.imgCount--,re.imgCount||!ee||ee.hasLoaded||ee.onload()},src:X}),this.imgCount++)}return B}clipRect(O,W,te,P){return this.rect(O,W,te,P,0)}text(O,W,te,P){let _={};if(P&&(this.allowHTML||!this.forExport))return this.html(O,W,te);_.x=Math.round(W||0),te&&(_.y=Math.round(te)),f(O)&&(_.text=O);let b=this.createElement("text").attr(_);return P&&(!this.forExport||this.allowHTML)||(b.xSetter=function(B,$,X){let J=X.getElementsByTagName("tspan"),re=X.getAttribute($);for(let ae=0,fe;ae<J.length;ae++)(fe=J[ae]).getAttribute($)===re&&fe.setAttribute($,B);X.setAttribute($,B)}),b}fontMetrics(O){let W=ne(d.prototype.getStyle.call(O,"font-size")||0),te=W<24?W+3:Math.round(1.2*W),P=Math.round(.8*te);return{h:te,b:P,f:W}}rotCorr(O,W,te){let P=O;return W&&te&&(P=Math.max(P*Math.cos(W*U),4)),{x:-O/3*Math.sin(W*U),y:P}}pathToSegments(O){let W=[],te=[],P={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let _=0;_<O.length;_++)Q(te[0])&&q(O[_])&&te.length===P[te[0].toUpperCase()]&&O.splice(_,0,te[0].replace("M","L").replace("m","l")),typeof O[_]=="string"&&(te.length&&W.push(te.slice(0)),te.length=0),te.push(O[_]);return W.push(te.slice(0)),W}label(O,W,te,P,_,b,B,$,X){return new h(this,O,W,te,P,_,b,B,$,X)}
28alignElements(){this.alignedObjects.forEach(O=>O.align())}}return L(le.prototype,{Element:d,SVG_NS:E,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:m,draw:S}),c.registerRendererType("svg",le,!0),le}),i(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,o,a){let{composed:c}=s,{attr:d,css:h,createElement:m,defined:w,extend:k,pInt:A,pushUnique:F}=a;function j(I,V,S){var R;let E=((R=this.div)==null?void 0:R.style)||S.style;o.prototype[`${V}Setter`].call(this,I,V,S),E&&(E[V]=I)}let U=(I,V)=>{var S;if(!I.div){let E=d(I.element,"class"),R=I.css,T=m("div",E?{className:E}:void 0,{position:"absolute",left:`${I.translateX||0}px`,top:`${I.translateY||0}px`,...I.styles,display:I.display,opacity:I.opacity,visibility:I.visibility},((S=I.parentGroup)==null?void 0:S.div)||V);I.classSetter=(v,p,y)=>{y.setAttribute("class",v),T.className=v},I.translateXSetter=I.translateYSetter=(v,p)=>{I[p]=v,T.style[p==="translateX"?"left":"top"]=`${v}px`,I.doTransform=!0},I.opacitySetter=I.visibilitySetter=j,I.css=v=>(R.call(I,v),v.cursor&&(T.style.cursor=v.cursor),v.pointerEvents&&(T.style.pointerEvents=v.pointerEvents),I),I.on=function(){return o.prototype.on.apply({element:T,onEvents:I.onEvents},arguments),I},I.div=T}return I.div};class C extends o{static compose(V){F(c,this.compose)&&(V.prototype.html=function(S,E,R){return new C(this,"span").attr({text:S,x:Math.round(E),y:Math.round(R)})})}constructor(V,S){super(V,S),this.css({position:"absolute",...V.styledMode?{}:{fontFamily:V.style.fontFamily,fontSize:V.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(V,S,E){this.xCorr=-V*E,this.yCorr=-S}css(V){let S,{element:E}=this,R=E.tagName==="SPAN"&&V&&"width"in V,T=R&&V.width;return R&&(delete V.width,this.textWidth=A(T)||void 0,S=!0),(V==null?void 0:V.textOverflow)==="ellipsis"&&(V.whiteSpace="nowrap",V.overflow="hidden"),k(this.styles,V),h(E,V),S&&this.updateTransform(),this}htmlGetBBox(){let{element:V}=this;return{x:V.offsetLeft,y:V.offsetTop,width:V.offsetWidth,height:V.offsetHeight}}updateTransform(){var q;if(!this.added){this.alignOnAdd=!0;return}let{element:V,renderer:S,rotation:E,rotationOriginX:R,rotationOriginY:T,styles:v,textAlign:p="left",textWidth:y,translateX:u=0,translateY:g=0,x:f=0,y:M=0}=this,L={left:0,center:.5,right:1}[p],H=v.whiteSpace;if(h(V,{marginLeft:`${u}px`,marginTop:`${g}px`}),V.tagName==="SPAN"){let z=[E,p,V.innerHTML,y,this.textAlign].join(","),Q=-(((q=this.parentGroup)==null?void 0:q.padding)*1)||0,ce,G=!1;if(y!==this.oldTextWidth){let D=this.textPxLength?this.textPxLength:(h(V,{width:"",whiteSpace:H||"nowrap"}),V.offsetWidth),O=y||0;(O>this.oldTextWidth||D>O)&&(/[ \-]/.test(V.textContent||V.innerText)||V.style.textOverflow==="ellipsis")&&(h(V,{width:D>O||E?y+"px":"auto",display:"block",whiteSpace:H||"normal"}),this.oldTextWidth=y,G=!0)}this.hasBoxWidthChanged=G,z!==this.cTT&&(ce=S.fontMetrics(V).b,w(E)&&(E!==(this.oldRotation||0)||p!==this.oldAlign)&&this.setSpanRotation(E,Q,Q),this.getSpanCorrection(!w(E)&&this.textPxLength||V.offsetWidth,ce,L));let{xCorr:ne=0,yCorr:se=0}=this,oe=(R??f)-ne-f-Q,le=(T??M)-se-M-Q;h(V,{left:`${f+ne}px`,top:`${M+se}px`,transformOrigin:`${oe}px ${le}px`}),this.cTT=z,this.oldRotation=E,this.oldAlign=p}}setSpanRotation(V,S,E){h(this.element,{transform:`rotate(${V}deg)`,transformOrigin:`${S}% ${E}px`})}add(V){let S,E=this.renderer.box.parentNode,R=[];if(this.parentGroup=V,V&&!(S=V.div)){let T=V;for(;T;)R.push(T),T=T.parentGroup;for(let v of R.reverse())S=U(v,E)}return(S||E).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(V){V!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,r.setElementHTML(this.element,V??""),this.textStr=V,this.doTransform=!0)}alignSetter(V){this.alignValue=this.textAlign=V,this.doTransform=!0}xSetter(V,S){this[S]=V,this.doTransform=!0}}let x=C.prototype;return x.visibilitySetter=x.opacitySetter=j,x.ySetter=x.rotationSetter=x.rotationOriginXSetter=x.rotationOriginYSetter=x.xSetter,C}),i(n,"Core/Axis/AxisDefaults.js",[],function(){var r,s;return(s=r||(r={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"
28%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},s.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:o}=this.axis.chart;return o(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},r}),i(n,"Core/Foundation.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:o,isFunction:a,objectEach:c,removeEvent:d}=r;return(s||(s={})).registerEventOptions=function(h,m){h.eventOptions=h.eventOptions||{},c(m.events,function(w,k){h.eventOptions[k]!==w&&(h.eventOptions[k]&&(d(h,k,h.eventOptions[k]),delete h.eventOptions[k]),a(w)&&(h.eventOptions[k]=w,o(h,k,w,{order:0})))})},s}),i(n,"Core/Axis/Tick.js",[n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o){let{deg2rad:a}=s,{clamp:c,correctFloat:d,defined:h,destroyObjectProperties:m,extend:w,fireEvent:k,isNumber:A,merge:F,objectEach:j,pick:U}=o;return class{constructor(C,x,I,V,S){this.isNew=!0,this.isNewLabel=!0,this.axis=C,this.pos=x,this.type=I||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,k(this,"init"),I||V||this.addLabel()}addLabel(){let C=this,x=C.axis,I=x.options,V=x.chart,S=x.categories,E=x.logarithmic,R=x.names,T=C.pos,v=U(C.options&&C.options.labels,I.labels),p=x.tickPositions,y=T===p[0],u=T===p[p.length-1],g=(!v.step||v.step===1)&&x.tickInterval===1,f=p.info,M=C.label,L,H,q,z=this.parameters.category||(S?U(S[T],R[T],T):T);E&&A(z)&&(z=d(E.lin2log(z))),x.dateTime&&(f?L=(H=V.time.resolveDTLFormat(I.dateTimeLabelFormats[!I.grid&&f.higherRanks[T]||f.unitName])).main:A(z)&&(L=x.dateTime.getXDateFormat(z,I.dateTimeLabelFormats||{}))),C.isFirst=y,C.isLast=u;let Q={axis:x,chart:V,dateTimeLabelFormat:L,isFirst:y,isLast:u,pos:T,tick:C,tickPositionInfo:f,value:z};k(this,"labelFormat",Q);let ce=se=>v.formatter?v.formatter.call(se,se):v.format?(se.text=x.defaultLabelFormatter.call(se),r.format(v.format,se,V)):x.defaultLabelFormatter.call(se),G=ce.call(Q,Q),ne=H&&H.list;ne?C.shortenLabel=function(){for(q=0;q<ne.length;q++)if(w(Q,{dateTimeLabelFormat:ne[q]}),M.attr({text:ce.call(Q,Q)}),M.getBBox().width<x.getSlotWidth(C)-2*(v.padding||0))return;M.attr({text:""})}:C.shortenLabel=void 0,g&&x._addedPlotLB&&C.moveLabel(G,v),h(M)||C.movedLabel?M&&M.textStr!==G&&!g&&(!M.textWidth||v.style.width||M.styles.width||M.css({width:null}),M.attr({text:G}),M.textPxLength=M.getBBox().width):(C.label=M=C.createLabel(G,v),C.rotation=0)}createLabel(C,x,I){let V=this.axis,S=V.chart,E=h(C)&&x.enabled?S.renderer.text(C,I==null?void 0:I.x,I==null?void 0:I.y,x.useHTML).add(V.labelGroup):void 0;return E&&(S.styledMode||E.css(F(x.style)),E.textPxLength=E.getBBox().width),E}destroy(){m(this,this.axis)}getPosition(C,x,I,V){let S=this.axis,E=S.chart,R=V&&E.oldChartHeight||E.chartHeight,T={x:C?d(S.translate(x+I,void 0,void 0,V)+S.transB):S.left+S.offset+(S.opposite?(V&&E.oldCh
vendor: 10,017 bytes, line 28
28artWidth||E.chartWidth)-S.right-S.left:0),y:C?R-S.bottom+S.offset-(S.opposite?S.height:0):d(R-S.translate(x+I,void 0,void 0,V)-S.transB)};return T.y=c(T.y,-1e9,1e9),k(this,"afterGetPosition",{pos:T}),T}getLabelPosition(C,x,I,V,S,E,R,T){let v,p,y=this.axis,u=y.transA,g=y.isLinked&&y.linkedParent?y.linkedParent.reversed:y.reversed,f=y.staggerLines,M=y.tickRotCorr||{x:0,y:0},L=V||y.reserveSpaceDefault?0:-y.labelOffset*(y.labelAlign==="center"?.5:1),H=S.distance,q={};return v=y.side===0?I.rotation?-H:-I.getBBox().height:y.side===2?M.y+H:Math.cos(I.rotation*a)*(M.y-I.getBBox(!1,0).height/2),h(S.y)&&(v=y.side===0&&y.horiz?S.y+v:S.y),C=C+U(S.x,[0,1,0,-1][y.side]*H)+L+M.x-(E&&V?E*u*(g?-1:1):0),x=x+v-(E&&!V?E*u*(g?1:-1):0),f&&(p=R/(T||1)%f,y.opposite&&(p=f-p-1),x+=p*(y.labelOffset/f)),q.x=C,q.y=Math.round(x),k(this,"afterGetLabelPosition",{pos:q,tickmarkOffset:E,index:R}),q}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(C,x,I,V,S=!1,E){return E.crispLine([["M",C,x],["L",C+(S?0:-I),x+(S?I:0)]],V)}handleOverflow(C){let x=this.axis,I=x.options.labels,V=C.x,S=x.chart.chartWidth,E=x.chart.spacing,R=U(x.labelLeft,Math.min(x.pos,E[3])),T=U(x.labelRight,Math.max(x.isRadial?0:x.pos+x.len,S-E[1])),v=this.label,p=this.rotation,y={left:0,center:.5,right:1}[x.labelAlign||v.attr("align")],u=v.getBBox().width,g=x.getSlotWidth(this),f={},M=g,L=1,H,q,z;p||I.overflow!=="justify"?p<0&&V-y*u<R?z=Math.round(V/Math.cos(p*a)-R):p>0&&V+y*u>T&&(z=Math.round((S-V)/Math.cos(p*a))):(H=V-y*u,q=V+(1-y)*u,H<R?M=C.x+M*(1-y)-R:q>T&&(M=T-C.x+M*y,L=-1),(M=Math.min(g,M))<g&&x.labelAlign==="center"&&(C.x+=L*(g-M-y*(g-Math.min(u,M)))),(u>M||x.autoRotation&&(v.styles||{}).width)&&(z=M)),z&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(z)+"px",(I.style||{}).textOverflow||(f.textOverflow="ellipsis"),v.css(f)))}moveLabel(C,x){let I=this,V=I.label,S=I.axis,E=!1,R;V&&V.textStr===C?(I.movedLabel=V,E=!0,delete I.label):j(S.ticks,function(T){E||T.isNew||T===I||!T.label||T.label.textStr!==C||(I.movedLabel=T.label,E=!0,T.labelPos=I.movedLabel.xy,delete T.label)}),!E&&(I.labelPos||V)&&(R=I.labelPos||V.xy,I.movedLabel=I.createLabel(C,x,R),I.movedLabel&&I.movedLabel.attr({opacity:0}))}render(C,x,I){let V=this.axis,S=V.horiz,E=this.pos,R=U(this.tickmarkOffset,V.tickmarkOffset),T=this.getPosition(S,E,R,x),v=T.x,p=T.y,y=V.pos,u=y+V.len,g=S?v:p;!V.chart.polar&&this.isNew&&(d(g)<y||g>u)&&(I=0);let f=U(I,this.label&&this.label.newOpacity,1);I=U(I,1),this.isActive=!0,this.renderGridLine(x,I),this.renderMark(T,I),this.renderLabel(T,x,f,C),this.isNew=!1,k(this,"afterRender")}renderGridLine(C,x){let I=this.axis,V=I.options,S={},E=this.pos,R=this.type,T=U(this.tickmarkOffset,I.tickmarkOffset),v=I.chart.renderer,p=this.gridLine,y,u=V.gridLineWidth,g=V.gridLineColor,f=V.gridLineDashStyle;this.type==="minor"&&(u=V.minorGridLineWidth,g=V.minorGridLineColor,f=V.minorGridLineDashStyle),p||(I.chart.styledMode||(S.stroke=g,S["stroke-width"]=u||0,S.dashstyle=f),R||(S.zIndex=1),C&&(x=0),this.gridLine=p=v.path().attr(S).addClass("highcharts-"+(R?R+"-":"")+"grid-line").add(I.gridGroup)),p&&(y=I.getPlotLinePath({value:E+T,lineWidth:p.strokeWidth(),force:"pass",old:C,acrossPanes:!1}))&&p[C||this.isNew?"attr":"animate"]({d:y,opacity:x})}renderMark(C,x){let I=this.axis,V=I.options,S=I.chart.renderer,E=this.type,R=I.tickSize(E?E+"Tick":"tick"),T=C.x,v=C.y,p=U(V[E!=="minor"?"tickWidth":"minorTickWidth"],!E&&I.isXAxis?1:0),y=V[E!=="minor"?"tickColor":"minorTickColor"],u=this.mark,g=!u;R&&(I.opposite&&(R[0]=-R[0]),u||(this.mark=u=S.path().addClass("highcharts-"+(E?E+"-":"")+"tick").add(I.axisGroup),I.chart.styledMode||u.attr({stroke:y,"stroke-width":p})),u[g?"attr":"animate"]({d:this.getMarkPath(T,v,R[0],u.strokeWidth(),I.horiz,S),opacity:x}))}renderLabel(C,x,I,V){let S=this.axis,E=S.horiz,R=S.options,T=this.label,v=R.labels,p=v.step,y=U(this.tickmarkOffset,S.tickmarkOffset),u=C.x,g=C.y,f=!0;T&&A(u)&&(T.xy=C=this.getLabelPosition(u,g,T,E,v,y,V,p),(!this.isFirst||this.isLast||R.showFirstLabel)&&(!this.isLast||this.isFirst||R.showLastLabel)?!E||v.step||v.rotation||x||I===0||this.handleOverflow(C):f=!1,p&&V%p&&(f=!1),f&&A(C.y)?(C.opacity=I,T[this.isNewLabel?"attr":"animate"](C).show(!0),this.isNewLabel=!1):(T.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let C=this.label,x=this.axis;C&&!this.isNew&&(C.animate({opacity:0},void 0,C.destroy),delete this.label),x.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),i(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h,m){let{animObject:w}=r,{xAxis:k,yAxis:A}=s,{defaultOptions:F}=a,{registerEventOptions:j}=c,{deg2rad:U}=d,{arrayMax:C,arrayMin:x,clamp:I,correctFloat:V,defined:S,destroyObjectProperties:E,erase:R,error:T,extend:v,fireEvent:p,getClosestDistance:y,insertItem:u,isArray:g,isNumber:f,isString:M,merge:L,normalizeTickInterval:H,objectEach:q,pick:z,relativeLength:Q,removeEvent:ce,splat:G,syncTimeout:ne}=m,se=(le,D)=>H(D,void 0,void 0,z(le.options.allowDecimals,D<.5||le.tickAmount!==void 0),!!le.tickAmount);v(F,{xAxis:k,yAxis:L(k,A)});class oe{constructor(D,O,W){this.init(D,O,W)}init(D,O,W=this.coll){let te=W==="xAxis",P=this.isZAxis||(D.inverted?!te:te);this.chart=D,this.horiz=P,this.isXAxis=te,this.coll=W,p(this,"init",{userOptions:O}),this.opposite=z(O.opposite,this.opposite),this.side=z(O.side,this.side,P?this.opposite?0:2:this.opposite?1:3),this.setOptions(O);let _=this.options,b=_.labels;this.type??(this.type=_.type||"linear"),this.uniqueNames??(this.uniqueNames=_.uniqueNames??!0),p(this,"afterSetType"),this.userOptions=O,this.minPixelPadding=0,this.reversed=z(_.reversed,this.reversed),this.visible=_.visible,this.zoomEnabled=_.zoomEnabled,this.hasNames=this.type==="category"||_.categories===!0,this.categories=g(_.categories)&&_.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=S(_.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=_.minRange||_.maxZoom,this.range=_.range,this.offset=_.offset||0,this.max=void 0,this.min=void 0;let B=z(_.crosshair,G(D.options.tooltip.crosshairs)[te?0:1]);this.crosshair=B===!0?{}:B,D.axes.indexOf(this)===-1&&(te?D.axes.splice(D.xAxis.length,0,this):D.axes.push(this),u(this,D[this.coll])),D.orderItems(this.coll),this.series=this.series||[],D.inverted&&!this.isZAxis&&te&&!S(this.reversed)&&(this.reversed=!0),this.labelRotation=f(b.rotation)?b.rotation:void 0,j(this,_),p(this,"afterInit")}setOptions(D){let O=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=L(O,F[this.coll],D),p(this,"afterSetOptions",{userOptions:D})}defaultLabelFormatter(){let D=this.axis,{numberFormatter:O}=this.chart,W=f(this.value)?this.value:NaN,te=D.chart.time,P=D.categories,_=this.dateTimeLabelFormat,b=F.lang,B=b.numericSymbols,$=b.numericSymbolMagnitude||1e3,X=D.logarithmic?Math.abs(W):D.tickInterval,J=B&&B.length,re,ae;if(P)ae=`${this.value}`;else if(_)ae=te.dateFormat(_,W);else if(J&&B&&X>=1e3)for(;J--&&ae===void 0;)X>=(re=Math.pow($,J+1))&&10*W%re==0&&B[J]!==null&&W!==0&&(ae=O(W/re,-1)+B[J]);return ae===void 0&&(ae=Math.abs(W)>=1e4?O(W,-1):O(W,-1,void 0,"")),ae}getSeriesExtremes(){let D,O=this;p(this,"getSeriesExtremes",null,function(){O.hasVisibleSeries=!1,O.dataMin=O.dataMax=O.threshold=void 0,O.softThreshold=!O.isXAxis,O.series.forEach(W=>{if(W.reserveSpace()){let te=W.options,P,_=te.threshold,b,B;if(O.hasVisibleSeries=!0,O.positiveValuesOnly&&0>=(_||0)&&(_=void 0),O.isXAxis)(P=W.xData)&&P.length&&(P=O.logarithmic?P.filter($=>$>0):P,b=(D=W.getXExtremes(P)).min,B=D.max,f(b)||b instanceof Date||(P=P.filter(f),b=(D=W.getXExtremes(P)).min,B=D.max),P.length&&(O.dataMin=Math.min(z(O.dataMin,b),b),O.dataMax=Math.max(z(O.dataMax,B),B)));else{let $=W.applyExtremes();f($.dataMin)&&(b=$.dataMin,O.dataMin=Math.min(z(O.dataMin,b),b)),f($.dataMax)&&(B=$.dataMax,O.dataMax=Math.max(z(O.dataMax,B),B)),S(_)&&(O.threshold=_),(!te.softThreshold||O.positiveValuesOnly)&&(O.softThreshold=!1)}}})}),p(this,"afterGetSeriesExtremes")}translate(D,O,W,te,P,_){var ue;let b=this.linkedParent||this,B=te&&b.old?b.old.min:b.min;if(!f(B))return NaN;let $=b.minPixelPadding,X=(b.isOrdinal||((ue=b.brokenAxis)==null?void 0:ue.hasBreaks)||b.logarithmic&&P)&&b.lin2val,J=1,re=0,ae=te&&b.old?b.old.transA:b.transA,fe=0;return ae||(ae=b.transA),W&&(J*=-1,re=b.len),b.reversed&&(J*=-1,re-=J*(b.sector||b.len)),O?(fe=(D=D*J+re-$)/ae+B,X&&(fe=b.lin2val(fe))):(X&&(D=b.val2lin(D)),fe=J*(D-B)*ae+re+J*$+(f(_)?ae*_:0),b.isRadial||(fe=V(fe))),fe}toPixels(D,O){return this.translate(D,!1,!this.horiz,void 0,!0)+(O?0:this.pos)}toValue(D,O){return this.translate(D-(O?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(D){let O=this,W=O.chart,te=O.left,P=O.top,_=D.old,b=D.value,B=D.lineWidth,$=_&&W.oldChartHeight||W.chartHeight,X=_&&W.oldChartWidth||W.chartWidth,J=O.transB,re=D.translatedValue,ae=D.force,fe,ue,Z,Y,ee;function ie(ge,pe,me){return ae!=="pass"&&(ge<pe||ge>me)&&(ae?ge=I(ge,pe,me):ee=!0),ge}let de={value:b,lineWidth:B,old:_,force:ae,acrossPanes:D.acrossPanes,translatedValue:re};return p(this,"getPlotLinePath",de,function(ge){fe=Z=(re=I(re=z(re,O.translate(b,void 0,void 0,_)),-1e9,1e9))+J,ue=Y=$-re-J,f(re)?O.horiz?(ue=P,Y=$-O.bottom+(O.options.isInternal?0:W.scrollablePixelsY||0),fe=Z=ie(fe,te,te+O.width)):(fe=te,Z=X-O.right+(W.scrollablePixelsX||0),ue=Y=ie(ue,P,P+O.height)):(ee=!0,ae=!1),ge.path=ee&&!ae?void 0:W.renderer.crispLine([["M",fe,ue],["L",Z,Y]],B||1)}),de.path}getLinearTickPositions(D,O,W){let te,P,_,b=V(Math.floor(O/D)*D),B=V(Math.ceil(W/D)*D),$=[];if(V(b+D)===b&&(_=20),this.single)return[O];for(te=b;
28te<=B&&($.push(te),(te=V(te+D,_))!==P);)P=te;return $}getMinorTickInterval(){let{minorTicks:D,minorTickInterval:O}=this.options;return D===!0?z(O,"auto"):D!==!1?O:void 0}getMinorTickPositions(){let D=this.options,O=this.tickPositions,W=this.minorTickInterval,te=this.pointRangePadding||0,P=(this.min||0)-te,_=(this.max||0)+te,b=_-P,B=[],$;if(b&&b/W<this.len/3){let X=this.logarithmic;if(X)this.paddedTicks.forEach(function(J,re,ae){re&&B.push.apply(B,X.getLogTickPositions(W,ae[re-1],ae[re],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")B=B.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(W),P,_,D.startOfWeek));else for($=P+(O[0]-P)%W;$<=_&&$!==B[0];$+=W)B.push($)}return B.length!==0&&this.trimTicks(B),B}adjustForMinRange(){let D=this.options,O=this.logarithmic,{max:W,min:te,minRange:P}=this,_,b,B,$;this.isXAxis&&P===void 0&&!O&&(P=S(D.min)||S(D.max)||S(D.floor)||S(D.ceiling)?null:Math.min(5*(y(this.series.map(X=>{var J;return(X.xIncrement?(J=X.xData)==null?void 0:J.slice(0,2):X.xData)||[]}))||0),this.dataMax-this.dataMin)),f(W)&&f(te)&&f(P)&&W-te<P&&(b=this.dataMax-this.dataMin>=P,_=(P-W+te)/2,B=[te-_,z(D.min,te-_)],b&&(B[2]=O?O.log2lin(this.dataMin):this.dataMin),$=[(te=C(B)
28)+P,z(D.max,te+P)],b&&($[2]=O?O.log2lin(this.dataMax):this.dataMax),(W=x($))-te<P&&(B[0]=W-P,B[1]=z(D.min,W-P),te=C(B))),this.minRange=P,this.min=te,this.max=W}getClosest(){let D,O;if(this.categories)O=1;else{let W=[];this.series.forEach(function(te){var _;let P=te.closestPointRange;((_=te.xData)==null?void 0:_.length)===1?W.push(te.xData[0]):!te.noSharedTooltip&&S(P)&&te.reserveSpace()&&(O=S(O)?Math.min(O,P):P)}),W.length&&(W.sort((te,P)=>te-P),D=y([W]))}return D&&O?Math.min(D,O):D||O}nameToX(D){let O=g(this.options.categories),W=O?this.categories:this.names,te=D.options.x,P;return D.series.requireSorting=!1,S(te)||(te=this.uniqueNames&&W?O?W.indexOf(D.name):z(W.keys[D.name],-1):D.series.autoIncrement()),te===-1?!O&&W&&(P=W.length):P=te,P!==void 0?(this.names[P]=D.name,this.names.keys[D.name]=P):D.x&&(P=D.x),P}updateNames(){let D=this,O=this.names;O.length>0&&(Object.keys(O.keys).forEach(function(W){delete O.keys[W]}),O.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(W=>{W.xIncrement=null,(!W.points||W.isDirtyData)&&(D.max=Math.max(D.max,W.xData.length-1),W.processData(),W.generatePoints()),W.data.forEach(function(te,P){let _;te!=null&&te.options&&te.name!==void 0&&(_=D.nameToX(te))!==void 0&&_!==te.x&&(te.x=_,W.xData[P]=_)})}))}setAxisTranslation(){let D=this,O=D.max-D.min,W=D.linkedParent,te=!!D.categories,P=D.isXAxis,_=D.axisPointRange||0,b,B=0,$=0,X,J=D.transA;(P||te||_)&&(b=D.getClosest(),W?(B=W.minPointOffset,$=W.pointRangePadding):D.series.forEach(function(re){let ae=te?1:P?z(re.options.pointRange,b,0):D.axisPointRange||0,fe=re.options.pointPlacement;if(_=Math.max(_,ae),!D.single||te){let ue=re.is("xrange")?!P:P;B=Math.max(B,ue&&M(fe)?0:ae/2),$=Math.max($,ue&&fe==="on"?0:ae)}}),X=D.ordinal&&D.ordinal.slope&&b?D.ordinal.slope/b:1,D.minPointOffset=B*=X,D.pointRangePadding=$*=X,D.pointRange=Math.min(_,D.single&&te?1:O),P&&b&&(D.closestPointRange=b)),D.translationSlope=D.transA=J=D.staticScale||D.len/(O+$||1),D.transB=D.horiz?D.left:D.bottom,D.minPixelPadding=J*B,p(this,"afterSetAxisTranslation")}minFromRange(){let{max:D,min:O}=this;return f(D)&&f(O)&&D-O||void 0}setTickInterval(D){var Te,Se,Le,Oe;let{categories:O,chart:W,dataMax:te,dataMin:P,dateTime:_,isXAxis:b,logarithmic:B,options:$,softThreshold:X}=this,J=f(this.threshold)?this.threshold:void 0,re=this.minRange||0,{ceiling:ae,floor:fe,linkedTo:ue,softMax:Z,softMin:Y}=$,ee=f(ue)&&((Te=W[this.coll])==null?void 0:Te[ue]),ie=$.tickPixelInterval,de=$.maxPadding,ge=$.minPadding,pe=0,me,ye=f($.tickInterval)&&$.tickInterval>=0?$.tickInterval:void 0,_e,ve,we,Ce;if(_||O||ee||this.getTickAmount(),we=z(this.userMin,$.min),Ce=z(this.userMax,$.max),ee?(this.linkedParent=ee,me=ee.getExtremes(),this.min=z(me.min,me.dataMin),this.max=z(me.max,me.dataMax),this.type!==ee.type&&T(11,!0,W)):(X&&S(J)&&f(te)&&f(P)&&(P>=J?(_e=J,ge=0):te<=J&&(ve=J,de=0)),this.min=z(we,_e,P),this.max=z(Ce,ve,te)),f(this.max)&&f(this.min)&&(B&&(this.positiveValuesOnly&&!D&&0>=Math.min(this.min,z(P,this.min))&&T(10,!0,W),this.min=V(B.log2lin(this.min),16),this.max=V(B.log2lin(this.max),16)),this.range&&f(P)&&(this.userMin=this.min=we=Math.max(P,this.minFromRange()||0),this.userMax=Ce=this.max,this.range=void 0)),p(this,"foundExtremes"),this.adjustForMinRange(),f(this.min)&&f(this.max)){if(!f(this.userMin)&&f(Y)&&Y<this.min&&(this.min=we=Y),!f(this.userMax)&&f(Z)&&Z>this.max&&(this.max=Ce=Z),O||this.axisPointRange||(Se=this.stacking)!=null&&Se.usePercentage||ee||!(pe=this.max-this.min)||(!S(we)&&ge&&(this.min-=pe*ge),S(Ce)||!de||(this.max+=pe*de)),!f(this.userMin)&&f(fe)&&(this.min=Math.max(this.min,fe)),!f(this.userMax)&&f(ae)&&(this.max=Math.min(this.max,ae)),X&&f(P)&&f(te)){let Ne=J||0;!S(we)&&this.min<Ne&&P>=Ne?this.min=$.minRange?Math.min(Ne,this.max-re):Ne:!S(Ce)&&this.max>Ne&&te<=Ne&&(this.max=$.minRange?Math.max(Ne,this.min+re):Ne)}!W.polar&&this.min>this.max&&(S($.min)?this.max=this.min:S($.max)&&(this.min=this.max)),pe=this.max-this.min}if(this.min!==this.max&&f(this.min)&&f(this.max)?ee&&!ye&&ie===ee.options.tickPixelInterval?this.tickInterval=ye=ee.tickInterval:this.tickInterval=z(ye,this.tickAmount?pe/Math.max(this.tickAmount-1,1):void 0,O?1:pe*ie/Math.max(this.len,ie)):this.tickInterval=1,b&&!D){let Ne=this.min!==((Le=this.old)==null?void 0:Le.min)||this.max!==((Oe=this.old)==null?void 0:Oe.max);
vendor: 4,543 bytes, line 28
28this.series.forEach(function(Xe){var $e;Xe.forceCrop=($e=Xe.forceCropping)==null?void 0:$e.call(Xe),Xe.processData(Ne)}),p(this,"postProcessData",{hasExtremesChanged:Ne})}this.setAxisTranslation(),p(this,"initialAxisTranslation"),this.pointRange&&!ye&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let Ie=z($.minTickInterval,_&&!this.series.some(Ne=>Ne.noSharedTooltip)?this.closestPointRange:0);!ye&&this.tickInterval<Ie&&(this.tickInterval=Ie),_||B||ye||(this.tickInterval=se(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var X,J;let D=this.options,O=D.tickPositions,W=D.tickPositioner,te=this.getMinorTickInterval(),P=!this.isPanning,_=P&&D.startOnTick,b=P&&D.endOnTick,B=[],$;if(this.tickmarkOffset=this.categories&&D.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&S(this.min)&&!this.tickAmount&&(this.min%1==0||D.allowDecimals!==!1),O)B=O.slice();else if(f(this.min)&&f(this.max)){if(!((X=this.ordinal)!=null&&X.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))B=[this.min,this.max],T(19,!1,this.chart);else if(this.dateTime)B=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,D.units),this.min,this.max,D.startOfWeek,(J=this.ordinal)==null?void 0:J.positions,this.closestPointRange,!0);else if(this.logarithmic)B=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let re=this.tickInterval,ae=re;for(;ae<=2*re&&(B=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&B.length>this.tickAmount);)this.tickInterval=se(this,ae*=1.1)}B.length>this.len&&(B=[B[0],B[B.length-1]])[0]===B[1]&&(B.length=1),W&&(this.tickPositions=B,($=W.apply(this,[this.min,this.max]))&&(B=$))}this.tickPositions=B,this.minorTickInterval=te==="auto"&&this.tickInterval?this.tickInterval/D.minorTicksPerMajor:te,this.paddedTicks=B.slice(0),this.trimTicks(B,_,b),!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&B.length<2&&!this.categories&&!this.series.some(re=>re.is("heatmap")&&re.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),O||$||this.adjustTickAmount()),p(this,"afterSetTickPositions")}trimTicks(D,O,W){let te=D[0],P=D[D.length-1],_=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(O&&te!==-1/0)this.min=te;else for(;this.min-_>D[0];)D.shift();if(W)this.max=P;else for(;this.max+_<D[D.length-1];)D.pop();D.length===0&&S(te)&&!this.options.tickPositions&&D.push((P+te)/2)}}alignToOthers(){let D,O=this,W=O.chart,te=[this],P=O.options,_=W.options.chart,b=this.coll==="yAxis"&&_.alignThresholds,B=[];if(O.thresholdAlignment=void 0,(_.alignTicks!==!1&&P.alignTicks||b)&&P.startOnTick!==!1&&P.endOnTick!==!1&&!O.logarithmic){let $=J=>{let{horiz:re,options:ae}=J;return[re?ae.left:ae.top,ae.width,ae.height,ae.pane].join(",")},X=$(this);W[this.coll].forEach(function(J){let{series:re}=J;re.length&&re.some(ae=>ae.visible)&&J!==O&&$(J)===X&&(D=!0,te.push(J))})}if(D&&b){te.forEach(X=>{let J=X.getThresholdAlignment(O);f(J)&&B.push(J)});let $=B.length>1?B.reduce((X,J)=>X+=J,0)/B.length:void 0;te.forEach(X=>{X.thresholdAlignment=$})}return D}getThresholdAlignment(D){if((!f(this.dataMin)||this!==D&&this.series.some(O=>O.isDirty||O.isDirtyData))&&this.getSeriesExtremes(),f(this.threshold)){let O=I((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(O=1-O),O}}getTickAmount(){let D=this.options,O=D.tickPixelInterval,W=D.tickAmount;S(D.tickInterval)||W||!(this.len<O)||this.isRadial||this.logarithmic||!D.startOnTick||!D.endOnTick||(W=2),!W&&this.alignToOthers()&&(W=Math.ceil(this.len/O)+1),W<4&&(this.finalTickAmt=W,W=5),this.tickAmount=W}adjustTickAmount(){let D=this,{finalTickAmt:O,max:W,min:te,options:P,tickPositions:_,tickAmount:b,thresholdAlignment:B}=D,$=_==null?void 0:_.length,X=z(D.threshold,D.softThreshold?0:null),J,re,ae=D.tickInterval,fe,ue=()=>_.push(V(_[_.length-1]+ae)),Z=()=>_.unshift(V(_[0]-ae));if(f(B)&&(fe=B<.5?Math.ceil(B*(b-1)):Math.floor(B*(b-1)),P.reversed&&(fe=b-1-fe)),D.hasData()&&f(te)&&f(W)){let Y=()=>{D.transA*=($-1)/(b-1),D.min=P.startOnTick?_[0]:Math.min(te,_[0]),D.max=P.endOnTick?_[_.length-1]:Math.max(W,_[_.length-1])};if(f(fe)&&f(D.threshold)){for(;_[fe]!==X||_.length!==b||_[0]>te||_[_.length-1]<W;){for(_.length=0,_.push(D.threshold);_.length<b;)_[fe]===void 0||_[fe]>D.threshold?Z():ue();if(ae>8*D.tickInterval)break;ae*=2}Y()}else if($<b){for(;_.length<b;
28)_.length%2||te===X?ue():Z();Y()}if(S(O)){for(re=J=_.length;re--;)(O===3&&re%2==1||O<=2&&re>0&&re<J-1)&&_.splice(re,1);D.finalTickAmt=void 0}}}setScale(){var _,b;let{coll:D,stacking:O}=this,W=!1,te=!1;this.series.forEach(B=>{W=W||B.isDirtyData||B.isDirty,te=te||B.xAxis&&B.xAxis.isDirty||!1}),this.setAxisSize();let P=this.len!==(this.old&&this.old.len);P||W||te||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(O&&D==="yAxis"&&O.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),O&&D==="xAxis"&&O.buildStacks(),this.isDirty||(this.isDirty=P||this.min!==((_=this.old)==null?void 0:_.min)||this.max!==((b=this.old)==null?void 0:b.max))):O&&O.cleanStacks(),W&&delete this.allExtremes,p(this,"afterSetScale")}setExtremes(D,O,W=!0,te,P){this.series.forEach(_=>{delete _.kdTree}),p(this,"setExtremes",P=v(P,{min:D,max:O}),_=>{this.userMin=_.min,this.userMax=_.max,this.eventArgs=_,W&&this.chart.redraw(te)})}setAxisSize(){let D=this.chart,O=this.options,W=O.offsets||[0,0,0,0],te=this.horiz,P=this.width=Math.round(Q(z(O.width,D.plotWidth-W[3]+W[1]),D.plotWidth)),_=this.height=Math.round(Q(z(O.height,D.plotHeight-W[0]+W[2]),D.plotHeight)),b=this.top=Math.round(Q(z(O.top,D.plotTop+W[0]),D.plotHeight,D.plotTop)),B=this.left=Math.round(Q(z(O.left,D.plotLeft+W[3]),D.plotWidth,D.plotLeft));this.bottom=D.chartHeight-_-b,this.right=D.chartWidth-P-B,this.len=Math.max(te?P:_,0),this.pos=te?B:b}getExtremes(){let D=this.logarithmic;return{min:D?V(D.lin2log(this.min)):this.min,max:D?V(D.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(D){let O=this.logarithmic,W=O?O.lin2log(this.min):this.min,te=O?O.lin2log(this.max):this.max;return D===null||D===-1/0?D=W:D===1/0?D=te:W>D?D=W:te<D&&(D=te),this.translate(D,0,1,0,1)}autoLabelAlign(D){let O=(z(D,0)-90*this.side+720)%360,W={align:"center"};return p(this,"autoLabelAlign",W,function(te){O>15&&O<165?te.align="right":O>195&&O<345&&(te.align="left")}),W.align}tickSize(D){let O=this.options,W=z(O[D==="tick"?"tickWidth":"minorTickWidth"],D==="tick"&&this.isXAxis&&!this.categories?1:0),te=O[D==="tick"?"tickLength":"minorTickLength"],P;W&&te&&(O[D+"Position"]==="inside"&&(te=-te),P=[te,W]);let _={tickSize:P};return p(this,"afterTickSize",_),_.tickSize}labelMetrics(){let D=this.chart.renderer,O=this.ticks,W=O[Object.keys(O)[0]]||{};return this.chart.renderer.fontMetrics(W.label||W.movedLabel||D.box)}unsquish(){let D=this.options.labels,O=D.padding||0,W=this.horiz,te=this.tickInterval,P=this.len/(((this.categories?1:0)+this.max-this.min)/te),_=D.rotation,b=V(.8*this.labelMetrics().h),B=Math.max(this.max-this.min,0),$=function(fe){let ue=(fe+2*O)/(P||1);return(ue=ue>1?Math.ceil(ue):1)*te>B&&fe!==1/0&&P!==1/0&&B&&(ue=Math.ceil(B/te)),V(ue*te)},X=te,J,re=Number.MAX_VALUE,ae;if(W){if(!D.staggerLines&&(f(_)?ae=[_]:P<D.autoRotationLimit&&(ae=D.autoRotation)),ae){let fe,ue;for(let Z of ae)(Z===_||Z&&Z>=-90&&Z<=90)&&(ue=(fe=$(Math.abs(b/Math.sin(U*Z))))+Math.abs(Z/360))<re&&(re=ue,J=Z,X=fe)}}else X=$(.75*b);return this.autoRotation=ae,this.labelRotation=z(J,f(_)?_:0),D.step?te:X}getSlotWidth(D){let O=this.chart,W=this.horiz,te=this.options.labels,P=Math.max(this.tickPositions.length-(this.categories?0:1),1),_=O.margin[3];if(D&&f(D.slotWidth))return D.slotWidth;if(W&&te.step<2)return te.rotation?0:(this.staggerLines||1)*this.len/P;if(!W){let b=te.style.width;if(b!==void 0)return parseInt(String(b),10);if(_)return _-O.spacing[3]}return .33*O.chartWidth}renderUnsquish(){let D=this.chart,O=D.renderer,W=this.tickPositions,te=this.ticks,P=this.options.labels,_=P.style,b=this.horiz,B=this.getSlotWidth(),$=Math.max(1,Math.round(B-(b?2*(P.padding||0):P.distance||0))),X={},J=this.labelMetrics(),re=_.textOverflow,ae,fe,ue=0,Z,Y;if(M(P.rotation)||(X.rotation=P.rotation||0),W.forEach(function(ee){let ie=te[ee];ie.movedLabel&&ie.replaceMovedLabel(),ie&&ie.label&&ie.label.textPxLength>ue&&(ue=ie.label.textPxLength)}),this.maxLabelLength=ue,this.autoRotation)ue>$&&ue>J.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(B&&(ae=$,!re))for(fe="clip",Y=W.length;!b&&Y--;)(Z=te[W[Y]].label)&&(Z.styles.textOverflow==="ellipsis"?Z.css({textOverflow:"clip"}):Z.textPxLength>
vendor: 15,393 bytes, line 28
28B&&Z.css({width:B+"px"}),Z.getBBox().height>this.len/W.length-(J.h-J.f)&&(Z.specificTextOverflow="ellipsis"));X.rotation&&(ae=ue>.5*D.chartHeight?.33*D.chartHeight:ue,re||(fe="ellipsis")),this.labelAlign=P.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(X.align=this.labelAlign),W.forEach(function(ee){let ie=te[ee],de=ie&&ie.label,ge=_.width,pe={};de&&(de.attr(X),ie.shortenLabel?ie.shortenLabel():ae&&!ge&&_.whiteSpace!=="nowrap"&&(ae<de.textPxLength||de.element.tagName==="SPAN")?(pe.width=ae+"px",re||(pe.textOverflow=de.specificTextOverflow||fe),de.css(pe)):!de.styles.width||pe.width||ge||de.css({width:null}),delete de.specificTextOverflow,ie.rotation=X.rotation)},this),this.tickRotCorr=O.rotCorr(J.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(D){return D.hasData()})||this.options.showEmpty&&S(this.min)&&S(this.max)}addTitle(D){let O,W=this.chart.renderer,te=this.horiz,P=this.opposite,_=this.options.title,b=this.chart.styledMode;this.axisTitle||((O=_.textAlign)||(O=(te?{low:"left",middle:"center",high:"right"}:{low:P?"right":"left",middle:"center",high:P?"left":"right"})[_.align]),this.axisTitle=W.text(_.text||"",0,0,_.useHTML).attr({zIndex:7,rotation:_.rotation||0,align:O}).addClass("highcharts-axis-title"),b||this.axisTitle.css(L(_.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),b||_.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[D?"show":"hide"](D)}generateTick(D){let O=this.ticks;O[D]?O[D].addLabel():O[D]=new h(this,D)}createGroups(){let{axisParent:D,chart:O,coll:W,options:te}=this,P=O.renderer,_=(b,B,$)=>P.g(b).attr({zIndex:$}).addClass(`highcharts-${W.toLowerCase()}${B} `+(this.isRadial?`highcharts-radial-axis${B} `:"")+(te.className||"")).add(D);this.axisGroup||(this.gridGroup=_("grid","-grid",te.gridZIndex),this.axisGroup=_("axis","",te.zIndex),this.labelGroup=_("axis-labels","-labels",te.labels.zIndex))}getOffset(){let D=this,{chart:O,horiz:W,options:te,side:P,ticks:_,tickPositions:b,coll:B}=D,$=O.inverted&&!D.isZAxis?[1,0,3,2][P]:P,X=D.hasData(),J=te.title,re=te.labels,ae=f(te.crossing),fe=O.axisOffset,ue=O.clipOffset,Z=[-1,1,1,-1][P],Y,ee=0,ie,de=0,ge=0,pe,me;if(D.showAxis=Y=X||te.showEmpty,D.staggerLines=D.horiz&&re.staggerLines||void 0,D.createGroups(),X||D.isLinked?(b.forEach(function(ye){D.generateTick(ye)}),D.renderUnsquish(),D.reserveSpaceDefault=P===0||P===2||{1:"left",3:"right"}[P]===D.labelAlign,z(re.reserveSpace,!ae&&null,D.labelAlign==="center"||null,D.reserveSpaceDefault)&&b.forEach(function(ye){ge=Math.max(_[ye].getLabelSize(),ge)}),D.staggerLines&&(ge*=D.staggerLines),D.labelOffset=ge*(D.opposite?-1:1)):q(_,function(ye,_e){ye.destroy(),delete _[_e]}),J!=null&&J.text&&J.enabled!==!1&&(D.addTitle(Y),Y&&!ae&&J.reserveSpace!==!1&&(D.titleOffset=ee=D.axisTitle.getBBox()[W?"height":"width"],de=S(ie=J.offset)?0:z(J.margin,W?5:10))),D.renderLine(),D.offset=Z*z(te.offset,fe[P]?fe[P]+(te.margin||0):0),D.tickRotCorr=D.tickRotCorr||{x:0,y:0},me=P===0?-D.labelMetrics().h:P===2?D.tickRotCorr.y:0,pe=Math.abs(ge)+de,ge&&(pe-=me,pe+=Z*(W?z(re.y,D.tickRotCorr.y+Z*re.distance):z(re.x,Z*re.distance))),D.axisTitleMargin=z(ie,pe),D.getMaxLabelDimensions&&(D.maxLabelDimensions=D.getMaxLabelDimensions(_,b)),B!=="colorAxis"&&ue){let ye=this.tickSize("tick");fe[P]=Math.max(fe[P],(D.axisTitleMargin||0)+ee+Z*D.offset,pe,b&&b.length&&ye?ye[0]+Z*D.offset:0);let _e=!D.axisLine||te.offset?0:D.axisLine.strokeWidth()/2;ue[$]=Math.max(ue[$],_e)}p(this,"afterGetOffset")}getLinePath(D){let O=this.chart,W=this.opposite,te=this.offset,P=this.horiz,_=this.left+(W?this.width:0)+te,b=O.chartHeight-this.bottom-(W?this.height:0)+te;return W&&(D*=-1),O.renderer.crispLine([["M",P?this.left:_,P?b:this.top],["L",P?O.chartWidth-this.right:_,P?b:O.chartHeight-this.bottom]],D)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(D){let O=this.horiz,W=this.left,te=this.top,P=this.len,_=this.options.title,b=O?W:te,B=this.opposite,$=this.offset,X=_.x,J=_.y,re=this.chart.renderer.fontMetrics(D),ae=D?Math.max(D.getBBox(!1,0).height-re.h-1,0):0,fe={low:b+(O?0:P),middle:b+P/2,high:b+(O?P:0)}[_.align],ue=(O?te+this.height:W)+(O?1:-1)*(B?-1:1)*(this.axisTitleMargin||0)+[-ae,ae,re.f,-ae][this.side],Z={x:O?fe+X:ue+(B?this.width:0)+$+X,y:O?ue+J-(B?this.height:0)+$:fe+J};return p(this,"afterGetTitlePosition",{titlePosition:Z}),Z}renderMinorTick(D,O){let W=this.minorTicks;W[D]||(W[D]=new h(this,D,"minor")),O&&W[D].isNew&&W[D].render(null,!0),W[D].render(null,!1,1)}renderTick(D,O,W){let te=this.isLinked,P=this.ticks;(!te||D>=this.min&&D<=this.max||this.grid&&this.grid.isColumn)&&(P[D]||(P[D]=new h(this,D)),W&&P[D].isNew&&P[D].render(O,!0,-1),P[D].render(O))}render(){let D,O,W=this,te=W.chart,P=W.logarithmic,_=te.renderer,b=W.options,B=W.isLinked,$=W.tickPositions,X=W.axisTitle,J=W.ticks,re=W.minorTicks,ae=W.alternateBands,fe=b.stackLabels,ue=b.alternateGridColor,Z=b.crossing,Y=W.tickmarkOffset,ee=W.axisLine,ie=W.showAxis,de=w(_.globalAnimation);if(W.labelEdge.length=0,W.overlap=!1,[J,re,ae].forEach(function(ge){q(ge,function(pe){pe.isActive=!1})}),f(Z)){let ge=this.isXAxis?te.yAxis[0]:te.xAxis[0],pe=[1,-1,-1,1][this.side];if(ge){let me=ge.toPixels(Z,!0);W.horiz&&(me=ge.len-me),W.offset=pe*me}}if(W.hasData()||B){let ge=W.chart.hasRendered&&W.old&&f(W.old.min);W.minorTickInterval&&!W.categories&&W.getMinorTickPositions().forEach(function(pe){W.renderMinorTick(pe,ge)}),$.length&&($.forEach(function(pe,me){W.renderTick(pe,me,ge)}),Y&&(W.min===0||W.single)&&(J[-1]||(J[-1]=new h(W,-1,null,!0)),J[-1].render(-1))),ue&&$.forEach(function(pe,me){O=$[me+1]!==void 0?$[me+1]+Y:W.max-Y,me%2==0&&pe<W.max&&O<=W.max+(te.polar?-Y:Y)&&(ae[pe]||(ae[pe]=new d.PlotLineOrBand(W,{})),D=pe+Y,ae[pe].options={from:P?P.lin2log(D):D,to:P?P.lin2log(O):O,color:ue,className:"highcharts-alternate-grid"},ae[pe].render(),ae[pe].isActive=!0)}),W._addedPlotLB||(W._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||[]).forEach(function(pe){W.addPlotBandOrLine(pe)}))}[J,re,ae].forEach(function(ge){let pe=[],me=de.duration;q(ge,function(ye,_e){ye.isActive||(ye.render(_e,!1,0),ye.isActive=!1,pe.push(_e))}),ne(function(){let ye=pe.length;for(;ye--;)ge[pe[ye]]&&!ge[pe[ye]].isActive&&(ge[pe[ye]].destroy(),delete ge[pe[ye]])},ge!==ae&&te.hasRendered&&me?me:0)}),ee&&(ee[ee.isPlaced?"animate":"attr"]({d:this.getLinePath(ee.strokeWidth())}),ee.isPlaced=!0,ee[ie?"show":"hide"](ie)),X&&ie&&(X[X.isNew?"attr":"animate"](W.getTitlePosition(X)),X.isNew=!1),fe&&fe.enabled&&W.stacking&&W.stacking.renderStackTotals(),W.old={len:W.len,max:W.max,min:W.min,transA:W.transA,userMax:W.userMax,userMin:W.userMin},W.isDirty=!1,p(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(D){D.render()})),this.series.forEach(function(D){D.isDirty=!0})}getKeepProps(){return this.keepProps||oe.keepProps}destroy(D){let O=this,W=O.plotLinesAndBands,te=this.eventOptions;if(p(this,"destroy",{keepEvents:D}),D||ce(O),[O.ticks,O.minorTicks,O.alternateBands].forEach(function(P){E(P)}),W){let P=W.length;for(;P--;)W[P].destroy()}for(let P in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(_){O[_]&&(O[_]=O[_].destroy())}),O.plotLinesAndBandsGroups)O.plotLinesAndBandsGroups[P]=O.plotLinesAndBandsGroups[P].destroy();q(O,function(P,_){O.getKeepProps().indexOf(_)===-1&&delete O[_]}),this.eventOptions=te}drawCrosshair(D,O){let W=this.crosshair,te=z(W&&W.snap,!0),P=this.chart,_,b,B,$=this.cross,X;if(p(this,"drawCrosshair",{e:D,point:O}),D||(D=this.cross&&this.cross.e),W&&(S(O)||!te)!==!1){if(te?S(O)&&(b=z(this.coll!=="colorAxis"?O.crosshairPos:null,this.isXAxis?O.plotX:this.len-O.plotY)):b=D&&(this.horiz?D.chartX-this.pos:this.len-D.chartY+this.pos),S(b)&&(X={value:O&&(this.isXAxis?O.x:z(O.stackY,O.y)),translatedValue:b},P.polar&&v(X,{isCrosshair:!0,chartX:D&&D.chartX,chartY:D&&D.chartY,point:O}),_=this.getPlotLinePath(X)||null),!S(_)){this.hideCrosshair();return}B=this.categories&&!this.isRadial,$||(this.cross=$=P.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(B?"category ":"thin ")+(W.className||"")).attr({zIndex:z(W.zIndex,2)}).add(),!P.styledMode&&($.attr({stroke:W.color||(B?o.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":z(W.width,1)}).css({"pointer-events":"none"}),W.dashStyle&&$.attr({dashstyle:W.dashStyle}))),$.show().attr({d:_}),B&&!W.width&&$.attr({"stroke-width":this.transA}),this.cross.e=D}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:D,point:O})}hideCrosshair(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")}update(D,O){let W=this.chart;D=L(this.userOptions,D),this.destroy(!0),this.init(W,D),W.isDirtyBox=!0,z(O,!0)&&W.redraw()}remove(D){let O=this.chart,W=this.coll,te=this.series,P=te.length;for(;P--;)te[P]&&te[P].remove(!1);R(O.axes,this),R(O[W]||[],this),O.orderItems(W),this.destroy(),O.isDirtyBox=!0,z(D,!0)&&O.redraw()}setTitle(D,O){this.update({title:D},O)}setCategories(D,O){this.update({categories:D},O)}}return oe.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],oe}),i(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:o,getMagnitude:a,normalizeTickInterval:c,timeUnits:d}=r;return function(h){function m(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function w(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new k(this))}h.compose=function(A){return A.keepProps.includes("dateTime")||(A.keepProps.push("dateTime"),A.prototype.getTimeTicks=m,o(A,"afterSetType",w)),A};class k{constructor(F){this.axis=F}normalizeTimeTickInterval(F,j){let U=j||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],C=U[U.length-1],x=d[C[0]],I=C[1],V;for(V=0;V<U.length&&(x=d[(C=U[V])[0]],I=C[1],!U[V+1]||!(F<=(x*I[I.length-1]+d[U[V+1][0]])/2));V++);x===d.year&&F<5*x&&(I=[1,2,5]);let S=c(F/x,I,C[0]==="year"?Math.max(a(F/x),1):1);return{unitRange:x,count:S,unitName:C[0]}}getXDateFormat(F,j){let{axis:U}=this,C=U.chart.time;return U.closestPointRange?C.getDateFormat(U.closestPointRange,F,U.options.startOfWeek,j)||C.resolveDTLFormat(j.year).main:C.resolveDTLFormat(j.day).main}}h.Additions=k}(s||(s={})),s}),i(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:o,normalizeTickInterval:a,pick:c}=r;return function(d){function h(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new w(this))}function m(){let k=this.logarithmic;k&&(this.lin2val=function(A){return k.lin2log(A)},this.val2lin=function(A){return k.log2lin(A)})}d.compose=function(k){return k.keepProps.includes("logarithmic")||(k.keepProps.push("logarithmic"),o(k,"afterSetType",h),o(k,"afterInit",m)),k};class w{constructor(A){this.axis=A}getLogTickPositions(A,F,j,U){let C=this.axis,x=C.len,I=C.options,V=[];if(U||(this.minorAutoInterval=void 0),A>=.5)A=Math.round(A),V=C.getLinearTickPositions(A,F,j);else if(A>=.08){let S,E,R,T,v,p,y,u=Math.floor(F);for(S=A>.3?[1,2,4]:A>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],E=u;E<j+1&&!y;E++)for(R=0,T=S.length;R<T&&!y;R++)(v=this.log2lin(this.lin2log(E)*S[R]))>F&&(!U||p<=j)&&p!==void 0&&V.push(p),p>j&&(y=!0),p=v}else{let S=this.lin2log(F),E=this.lin2log(j),R=U?C.getMinorTickInterval():I.tickInterval,T=I.tickPixelInterval/(U?5:1),v=U?x/C.tickPositions.length:x;A=a(A=c(R==="auto"?null:R,this.minorAutoInterval,(E-S)*T/(v||1))),V=C.getLinearTickPositions(A,S,E).map(this.log2lin),U||(this.minorAutoInterval=A/5)}return U||(C.tickInterval=A),V}lin2log(A){return Math.pow(10,A)}log2lin(A){return Math.log(A)/Math.LN10}}d.Additions=w}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{erase:o,extend:a,isNumber:c}=r;return function(d){let h;function m(C){return this.addPlotBandOrLine(C,"plotBands")}function w(C,x){let I=this.userOptions,V=new h(this,C);if(this.visible&&(V=V.render()),V){if(this._addedPlotLB||(this._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(S=>{this.addPlotBandOrLine(S)})),x){let S=I[x]||[];S.push(C),I[x]=S}this.plotLinesAndBands.push(V)}return V}function k(C){return this.addPlotBandOrLine(C,"plotLines")}function A(C,x,I){I=I||this.options;let V=this.getPlotLinePath({value:x,force:!0,acrossPanes:I.acrossPanes}),S=[],E=this.horiz,R=!c(this.min)||!c(this.max)||C<this.min&&x<this.min||C>this.max&&x>this.max,T=this.getPlotLinePath({value:C,force:!0,acrossPanes:I.acrossPanes}),v,p=1,y;if(T&&V)for(R&&(y=T.toString()===V.toString(),p=0),v=0;v<T.length;v+=2){let u=T[v],g=T[v+1],f=V[v],M=V[v+1];(u[0]==="M"||u[0]==="L")&&(g[0]==="M"||g[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(M[0]==="M"||M[0]==="L")&&(E&&f[1]===u[1]?(f[1]+=p,M[1]+=p):E||f[2]!==u[2]||(f[2]+=p,M[2]+=p),S.push(["M",u[1],u[2]],["L",g[1],g[2]],["L",M[1],M[2]],["L",f[1],f[2]],["Z"])),S.isFlat=y}return S}function F(C){this.removePlotBandOrLine(C)}function j(C){let x=this.plotLinesAndBands,I=this.options,V=this.userOptions;if(x){let S=x.length;for(;S--;)x[S].id===C&&x[S].destroy();[I.plotLines||[],V.plotLines||[],I.plotBands||[],V.plotBands||[]].forEach(function(E){for(S=E.length;S--;)(E[S]||{}).id===C&&o(E,E[S])})}}function U(C){this.removePlotBandOrLine(C)}d.compose=function(C,x){let I=x.prototype;return I.addPlotBand||(h=C,a(I,{addPlotBand:m,addPlotLine:k,addPlotBandOrLine:w,getPlotBandPath:A,removePlotBand:F,removePlotLine:U,removePlotBandOrLine:j})),x}}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],function(r,s){let{addEvent:o,arrayMax:a,arrayMin:c,defined:d,destroyObjectProperties:h,erase:m,fireEvent:w,merge:k,objectEach:A,pick:F}=s;class j{static compose(C,x){return o(C,"afterInit",function(){this.labelCollectors.push(()=>{var V;let I=[];for(let S of this.axes)for(let{label:E,options:R}of S.plotLinesAndBands)E&&!((V=R==null?void 0:R.label)!=null&&V.allowOverlap)&&I.push(E);return I})}),r.compose(j,x)}constructor(C,x){this.axis=C,this.options=x,this.id=x.id}render(){w(this,"render");let{axis:C,options:x}=this,{horiz:I,logarithmic:V}=C,{color:S,events:E,zIndex:R=0}=x,T={},v=C.chart.renderer,p=x.to,y=x.from,u=x.value,g=x.borderWidth,f=x.label,{label:M,svgElem:L}=this,H=[],q,z=d(y)&&d(p),Q=d(u),ce=!L,G={class:"highcharts-plot-"+(z?"band ":"line ")+(x.className||"")},ne=z?"bands":"lines";if(!C.chart.styledMode&&(Q?(G.stroke=S||"#999999",G["stroke-width"]=F(x.width,1),x.dashStyle&&(G.dashstyle=x.dashStyle)):z&&(G.fill=S||"#e6e9ff",g&&(G.stroke=x.borderColor,G["stroke-width"]=g))),T.zIndex=R,ne+="-"+R,(q=C.plotLinesAndBandsGroups[ne])||(C.plotLinesAndBandsGroups[ne]=q=v.g("plot-"+ne).attr(T).add()),L||(this.svgElem=L=v.path().attr(G).add(q)),d(u))H=C.getPlotLinePath({value:(V==null?void 0:V.log2lin(u))??u,lineWidth:L.strokeWidth(),acrossPanes:x.acrossPanes});else{if(!(d(y)&&d(p)))return;H=C.getPlotBandPath((V==null?void 0:V.log2lin(y))??y,(V==null?void 0:V.log2lin(p))??p,x)}return!this.eventsAdded&&E&&(A(E,(se,oe)=>
28{L==null||L.on(oe,le=>{E[oe].apply(this,[le])})}),this.eventsAdded=!0),(ce||!L.d)&&(H!=null&&H.length)?L.attr({d:H}):L&&(H?(L.show(),L.animate({d:H})):L.d&&(L.hide(),M&&(this.label=M=M.destroy()))),f&&(d(f.text)||d(f.formatter))&&(H!=null&&H.length)&&C.width>0&&C.height>0&&!H.isFlat?(f=k({align:I&&z?"center":void 0,x:I?!z&&4:10,verticalAlign:!I&&z?"middle":void 0,y:I?z?16:10:z?6:-4,rotation:I&&!z?90:0,...z?{inside:!0}:{}},f),this.renderLabel(f,H,z,R)):M&&M.hide(),this}renderLabel(C,x,I,V){var f;let S=this.axis,E=S.chart.renderer,R=C.inside,T=this.label;T||(this.label=T=E.text(this.getLabelText(C),0,0,C.useHTML).attr({align:C.textAlign||C.align,rotation:C.rotation,class:"highcharts-plot-"+(I?"band":"line")+"-label "+(C.className||""),zIndex:V}),S.chart.styledMode||T.css(k({fontSize:"0.8em",textOverflow:I&&!R?"":"ellipsis"},C.style)),T.add());let v=x.xBounds||[x[0][1],x[1][1],I?x[2][1]:x[0][1]],p=x.yBounds||[x[0][2],x[1][2],I?x[2][2]:x[0][2]],y=c(v),u=c(p),g=a(v)-y;T.align(C,!1,{x:y,y:u,width:g,height:a(p)-u}),(!T.alignValue||T.alignValue==="left"||d(R))&&T.css({width:(((f=C.style)==null?void 0:f.width)||(I&&R?g:T.rotation===90?S.height-(T.alignAttr.y-S.top):(C.clip?S.width:S.chart.chartWidth)-(T.alignAttr.x-S.left)))+"px"}),T.show(!0)}getLabelText(C){return d(C.formatter)?C.formatter.call(this):C.text}destroy(){m(this.axis.plotLinesAndBands,this),delete this.axis,h(this)}}return j}),i(n,"Core/Tooltip.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d){var h;let{animObject:m}=r,{format:w}=s,{composed:k,doc:A,isSafari:F}=o,{distribute:j}=a,{addEvent:U,clamp:C,css:x,discardElement:I,extend:V,fireEvent:S,isArray:E,isNumber:R,isString:T,merge:v,pick:p,pushUnique:y,splat:u,syncTimeout:g}=d;class f{constructor(L,H,q){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=L,this.init(L,H),this.pointer=q}bodyFormatter(L){return L.map(function(H){let q=H.series.tooltipOptions;return(q[(H.point.formatPrefix||"point")+"Formatter"]||H.point.tooltipFormatter).call(H.point,q[(H.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(L){this.chart.series.forEach(function(H){let q=H&&H.tt;q&&(!q.isActive||L?H.tt=q.destroy():q.isActive=!1)})}defaultFormatter(L){let H,q=this.points||u(this);return(H=(H=[L.tooltipFooterHeaderFormatter(q[0])]).concat(L.bodyFormatter(q))).push(L.tooltipFooterHeaderFormatter(q[0],!0)),H}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),I(this.container)),d.clearTimeout(this.hideTimer)}getAnchor(L,H){let q,{chart:z,pointer:Q}=this,ce=z.inverted,G=z.plotTop,ne=z.plotLeft;if((L=u(L))[0].series&&L[0].series.yAxis&&!L[0].series.yAxis.options.reversedStacks&&(L=L.slice().reverse()),this.followPointer&&H)H.chartX===void 0&&(H=Q.normalize(H)),q=[H.chartX-ne,H.chartY-G];else if(L[0].tooltipPos)q=L[0].tooltipPos;else{let se=0,oe=0;L.forEach(function(le){let D=le.pos(!0);D&&(se+=D[0],oe+=D[1])}),se/=L.length,oe/=L.length,this.shared&&L.length>1&&H&&(ce?se=H.chartX:oe=H.chartY),q=[se-ne,oe-G]}return q.map(Math.round)}getClassName(L,H,q){let z=this.options,Q=L.series,ce=Q.options;return[z.className,"highcharts-label",q&&"highcharts-tooltip-header",H?"highcharts-tooltip-box":"highcharts-tooltip",!q&&"highcharts-color-"+p(L.colorIndex,Q.colorIndex),ce&&ce.className].filter(T).join(" ")}getLabel({anchorX:L,anchorY:H}={anchorX:0,anchorY:0}){let q=this,z=this.chart.styledMode,Q=this.options,ce=this.split&&this.allowShared,G=this.container,ne=this.chart.renderer;if(this.label){let se=!this.label.hasClass("highcharts-label");(!ce&&se||ce&&!se)&&this.destroy()}if(!this.label){if(this.outside){let se=this.chart.options.chart.style,oe=c.getRendererType();this.container=G=o.doc.createElement("div"),G.className="highcharts-tooltip-container",x(G,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||
vendor: 2,399 bytes, line 28
280,(se&&se.zIndex||0)+3)}),this.renderer=ne=new oe(G,0,0,se,void 0,void 0,ne.styledMode)}if(ce?this.label=ne.g("tooltip"):(this.label=ne.label("",L,H,Q.shape,void 0,void 0,Q.useHTML,void 0,"tooltip").attr({padding:Q.padding,r:Q.borderRadius}),z||this.label.attr({fill:Q.backgroundColor,"stroke-width":Q.borderWidth||0}).css(Q.style).css({pointerEvents:Q.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),q.outside){let se=this.label;[se.xSetter,se.ySetter].forEach((oe,le)=>{se[le?"ySetter":"xSetter"]=D=>{oe.call(se,q.distance),se[le?"y":"x"]=D,G&&(G.style[le?"top":"left"]=`${D}px`)}})}this.label.attr({zIndex:8}).shadow(Q.shadow).add()}return G&&!G.parentElement&&o.doc.body.appendChild(G),this.label}getPlayingField(){let{body:L,documentElement:H}=A,{chart:q,distance:z,outside:Q}=this;return{width:Q?Math.max(L.scrollWidth,H.scrollWidth,L.offsetWidth,H.offsetWidth,H.clientWidth)-2*z:q.chartWidth,height:Q?Math.max(L.scrollHeight,H.scrollHeight,L.offsetHeight,H.offsetHeight,H.clientHeight):q.chartHeight}}getPosition(L,H,q){var de,ge;let{distance:z,chart:Q,outside:ce,pointer:G}=this,{inverted:ne,plotLeft:se,plotTop:oe,polar:le}=Q,{plotX:D=0,plotY:O=0}=q,W={},te=ne&&q.h||0,{height:P,width:_}=this.getPlayingField(),b=G.getChartPosition(),B=pe=>pe*b.scaleX,$=pe=>pe*b.scaleY,X=pe=>{let me=pe==="x";return[pe,me?_:P,me?L:H].concat(ce?[me?B(L):$(H),me?b.left-z+B(D+se):b.top-z+$(O+oe),0,me?_:P]:[me?L:H,me?D+se:O+oe,me?se:oe,me?se+Q.plotWidth:oe+Q.plotHeight])},J=X("y"),re=X("x"),ae,fe=!!q.negative;!le&&((ge=(de=Q.hoverSeries)==null?void 0:de.yAxis)!=null&&ge.reversed)&&(fe=!fe);let ue=!this.followPointer&&p(q.ttBelow,!le&&!ne===fe),Z=function(pe,me,ye,_e,ve,we,Ce){let Ie=ce?pe==="y"?$(z):B(z):z,Te=(ye-_e)/2,Se=_e<ve-z,Le=ve+z+_e<me,Oe=ve-Ie-ye+Te,Ne=ve+Ie-Te;if(ue&&Le)W[pe]=Ne;else if(!ue&&Se)W[pe]=Oe;else if(Se)W[pe]=Math.min(Ce-_e,Oe-te<0?Oe:Oe-te);else{if(!Le)return!1;W[pe]=Math.max(we,Ne+te+ye>me?Ne:Ne+te)}},Y=function(pe,me,ye,_e,ve){if(ve<z||ve>me-z)return!1;ve<ye/2?W[pe]=1:ve>me-_e/2?W[pe]=me-_e-2:W[pe]=ve-ye/2},ee=function(pe){[J,re]=[re,J],ae=pe},ie=()=>{Z.apply(0,J)!==!1?Y.apply(0,re)!==!1||ae||(ee(!0),ie()):ae?W.x=W.y=0:(ee(!0),ie())};return(ne&&!le||this.len>1)&&ee(),ie(),W}hide(L){let H=this;d.clearTimeout(this.hideTimer),L=p(L,this.options.hideDelay),this.isHidden||(this.hideTimer=g(function(){let q=H.getLabel();H.getLabel().animate({opacity:0}
28,{duration:L&&150,complete:()=>{q.hide(),H.container&&H.container.remove()}}),H.isHidden=!0},L))}init(L,H){this.chart=L,this.options=H,this.crosshairs=[],this.isHidden=!0,this.split=H.split&&!L.inverted&&!L.polar,this.shared=H.shared||this.split,this.outside=p(H.outside,!!(L.scrollablePixelsX||L.scrollablePixelsY))}shouldStickOnContact(L){return!!(!this.followPointer&&this.options.stickOnContact&&(!L||this.pointer.inClass(L.target,"highcharts-tooltip")))}move(L,H,q,z){let Q=this,ce=m(!Q.isHidden&&Q.options.animation),G=Q.followPointer||(Q.len||0)>1,ne={x:L,y:H};G||(ne.anchorX=q,ne.anchorY=z),ce.step=()=>Q.drawTracker(),Q.getLabel().animate(ne,ce)}refresh(L,H){let{chart:q,options:z,pointer:Q,shared:ce}=this,G=u(L),ne=G[0],se=[],oe=z.format,le=z.formatter||this.defaultFormatter,D=q.styledMode,O={},W=this.allowShared;if(!z.enabled||!ne.series)return;d.clearTimeout(this.hideTimer),this.allowShared=!(!E(L)&&L.series&&L.series.noSharedTooltip),W=W&&!this.allowShared,this.followPointer=!this.split&&ne.series.tooltipOptions.followPointer;let te=this.getAnchor(L,H),P=te[0],_=te[1];ce&&this.allowShared?(Q.applyInactiveState(G),G.forEach(function($){$.setState("hover"),se.push($.getLabelConfig())}),(O=ne.getLabelConfig()).points=se):O=ne.getLabelConfig(),this.len=se.length;let b=T(oe)?w(oe,O,q):le.call(O,this),B=ne.series;if(this.distance=p(B.tooltipOptions.distance,16),b===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(b,G);else{let $=P,X=_;if(H&&Q.isDirectTouch&&($=H.chartX-q.plotLeft,X=H.chartY-q.plotTop),q.polar||B.options.clip===!1||G.some(J=>Q.isDirectTouch||J.series.shouldShowTooltip($,X))){let J=this.getLabel(W&&this.tt||{});(!z.style.width||D)&&J.css({width:(this.outside?this.getPlayingField():q.spacingBox).width+"px"}),J.attr({class:this.getClassName(ne),text:b&&b.join?b.join(""):b}),this.outside&&J.attr({x:C(J.x||0,0,this.getPlayingField().width-(J.width||0))}),D||J.attr({stroke:z.borderColor||ne.color||B.color||"#666666"}),this.updatePosition({plotX:P,plotY:_,negative:ne.negative,ttBelow:ne.ttBelow,h:te[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}S(this,"refresh")}renderSplit(L,H){var me;let q=this,{chart:z,chart:{chartWidth:Q,chartHeight:ce,plotHeight:G,plotLeft:ne,plotTop:se,scrollablePixelsY:oe=0,scrollablePixelsX:le,styledMode:D},distance:O,options:W,options:{positioner:te},pointer:P}=q,{scrollLeft:_=0,scrollTop:b=0}=((me=z.scrollablePlotArea)==null?void 0:me.scrollingContainer)||{},B=q.outside&&typeof le!="number"?A.documentElement.getBoundingClientRect():{left:_,right:_+Q,top:b,bottom:b+ce},$=q.getLabel(),X=this.renderer||z.renderer,J=!!(z.xAxis[0]&&z.xAxis[0].opposite),{left:re,top:ae}=P.getChartPosition(),fe=se+b,ue=0,Z=G-oe;function Y(ye,_e,ve,we,Ce=!0){let Ie,Te;return ve?(Ie=J?0:Z,Te=C(ye-we/2,B.left,B.right-we-(q.outside?re:0))):(Ie=_e-fe,Te=C(Te=Ce?ye-we-O:ye+O,Ce?Te:B.left,B.right)),{x:Te,y:Ie}}T(L)&&(L=[!1,L]);let ee=L.slice(0,H.length+1).reduce(function(ye,_e,ve){if(_e!==!1&&_e!==""){let we=H[ve-1]||{isHeader:!0,plotX:H[0].plotX,plotY:G,series:{}},Ce=we.isHeader,Ie=Ce?q:we.series,Te=Ie.tt=function(Xe,$e,at){let dt=Xe,{isHeader:_t,series:dn}=$e;if(!dt){let Dt={padding:W.padding,r:W.borderRadius};D||(Dt.fill=W.backgroundColor,Dt["stroke-width"]=W.borderWidth??1),dt=X.label("",0,0,W[_t?"headerShape":"shape"],void 0,void 0,W.useHTML).addClass(q.getClassName($e,!0,_t)).attr(Dt).add($)}return dt.isActive=!0,dt.attr({text:at}),D||dt.css(W.style).attr({stroke:W.borderColor||$e.color||dn.color||"#333333"}),dt}(Ie.tt,we,_e.toString()),Se=Te.getBBox(),Le=Se.width+Te.strokeWidth();Ce&&(ue=Se.height,Z+=ue,J&&(fe-=ue));let{anchorX:Oe,anchorY:Ne}=function(Xe){let $e,at,{isHeader:dt,plotX:_t=0,plotY:dn=0,series:Dt}=Xe;if(dt)$e=Math.max(ne+_t,ne),at=se+G/2;else{let{xAxis:Jn,yAxis:Ye}=Dt;$e=Jn.pos+C(_t,-O,Jn.len+O),Dt.shouldShowTooltip(0,Ye.pos-se+dn,{ignoreX:!0})&&(at=Ye.pos+dn)}return{anchorX:$e=C($e,B.left-O,B.right+O),anchorY:at}}(we);if(typeof Ne=="number"){let Xe=Se.height+1,$e=te?te.call(q,Le,Xe,we):Y(Oe,Ne,Ce,Le);ye.push({align:te?0:void 0,anchorX:Oe,anchorY:Ne,boxWidth:Le,point:we,rank:p($e.rank,Ce?1:0),size:Xe,target:$e.y,tt:Te,x:$e.x})}else Te.isActive=!1}return ye},[]);!te&&ee.some(ye=>{let{outside:_e}=q,ve=(_e?re:0)+ye.anchorX;return ve<B.left&&ve+ye.boxWidth<B.right||ve<re-B.left+ye.boxWidth&&B.right-ve>ve})&&(ee=ee.map(ye=>{let{x:_e,y:ve}=Y(ye.anchorX,ye.anchorY,ye.point.isHeader,ye.boxWidth,!1);return V(ye,{target:ve,x:_e})})),q.cleanSplit(),j(ee,Z);let ie={left:re,right:re};ee.forEach(function(ye){let{x:_e,boxWidth:ve,isHeader:we}=ye;!we&&(q.outside&&re+_e<ie.left&&(ie.left=re+_e),!we&&q.outside&&ie.left+ve>ie.right&&(ie.right=re+_e))}),ee.forEach(function(ye){let{x:_e,anchorX:ve,anchorY:we,pos:Ce,point:{isHeader:Ie}}=ye,Te={visibility:Ce===void 0?"hidden":"inherit",x:_e,y:(Ce||0)+fe,anchorX:ve,anchorY:we};if(q.outside&&_e<ve){let Se=re-ie.left;Se>0&&(Ie||(Te.x=_e+Se,Te.anchorX=ve+Se),Ie&&(Te.x=(ie.right-ie.left)/2,Te.anchorX=ve+Se))}ye.tt.attr(Te)});let{container:de,outside:ge,renderer:pe}=q;if(ge&&de&&pe){let{width:ye,height:_e,x:ve,y:we}=$.getBBox();pe.setSize(ye+ve,_e+we,!1),de.style.left=ie.left+"px",de.style.top=ae+"px"}F&&$.attr({opacity:$.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let L=this.chart,H=this.label,q=this.shared?L.hoverPoints:L.hoverPoint;if(!H||!q)return;let z={x:0,y:0,width:0,height:0},Q=this.getAnchor(q),ce=H.getBBox();Q[0]+=L.plotLeft-(H.translateX||0),Q[1]+=L.plotTop-(H.translateY||0),z.x=Math.min(0,Q[0]),z.y=Math.min(0,Q[1]),z.width=Q[0]<0?Math.max(Math.abs(Q[0]),ce.width-Q[0]):Math.max(Math.abs(Q[0]),ce.width),z.height=Q[1]<0?Math.max(Math.abs(Q[1]),ce.height-Math.abs(Q[1])):Math.max(Math.abs(Q[1]),ce.height),this.tracker?this.tracker.attr(z):(this.tracker=H.renderer.rect(z).addClass("highcharts-tracker").add(H),L.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(L){return L.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(L,H){let q=L.series,z=q.tooltipOptions,Q=q.xAxis,ce=Q&&Q.dateTime,G={isFooter:H,labelConfig:L},ne=z.xDateFormat,se=z[H?"footerFormat":"headerFormat"];return S(this,"headerFormatter",G,function(oe){ce&&!ne&&R(L.key)&&(ne=ce.getXDateFormat(L.key,z.dateTimeLabelFormats)),ce&&ne&&(L.point&&L.point.tooltipDateKeys||["key"]).forEac
28h(function(le){se=se.replace("{point."+le+"}","{point."+le+":"+ne+"}")}),q.chart.styledMode&&(se=this.styledModeFormat(se)),oe.text=w(se,{point:L,series:q},this.chart)}),G.text}update(L){this.destroy(),this.init(this.chart,v(!0,this.options,L))}updatePosition(L){let{chart:H,container:q,distance:z,options:Q,pointer:ce,renderer:G}=this,{height:ne=0,width:se=0}=this.getLabel(),{left:oe,top:le,scaleX:D,scaleY:O}=ce.getChartPosition(),W=(Q.positioner||this.getPosition).call(this,se,ne,L),te=(L.plotX||0)+H.plotLeft,P=(L.plotY||0)+H.plotTop,_;G&&q&&(Q.positioner&&(W.x+=oe-z,W.y+=le-z),_=(Q.borderWidth||0)+2*z+2,G.setSize(se+_,ne+_,!1),(D!==1||O!==1)&&(x(q,{transform:`scale(${D}, ${O})`}),te*=D,P*=O),te+=oe-W.x,P+=le-W.y),this.move(Math.round(W.x),Math.round(W.y||0),te,P)}}return(h=f).compose=function(M){y(k,"Core.Tooltip")&&U(M,"afterInit",function(){let L=this.chart;L.options.tooltip&&(L.tooltip=new h(L,L.options.tooltip,this))})},f}),i(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,o,a,c){let{animObject:d}=s,{defaultOptions:h}=o,{format:m}=a,{addEvent:w,crisp:k,erase:A,extend:F,fireEvent:j,getNestedProperty:U,isArray:C,isFunction:x,isNumber:I,isObject:V,merge:S,pick:E,syncTimeout:R,removeEvent:T,uniqueKey:v}=c;class p{animateBeforeDestroy(){let u=this,g={x:u.startXPos,opacity:0},f=u.getGraphicalProps();f.singular.forEach(function(M){u[M]=u[M].animate(M==="dataLabel"?{x:u[M].startXPos,y:u[M].startYPos,opacity:0}:g)}),f.plural.forEach(function(M){u[M].forEach(function(L){L.element&&L.animate(F({x:u.startXPos},L.startYPos?{x:L.startXPos,y:L.startYPos}:{}))})})}applyOptions(u,g){let f=this.series,M=f.options.pointValKey||f.pointValKey;return F(this,u=p.prototype.optionsToObject.call(this,u)),this.options=this.options?F(this.options,u):u,u.group&&delete this.group,u.dataLabels&&delete this.dataLabels,M&&(this.y=p.prototype.getNestedProperty.call(this,M)),this.selected&&(this.state="select"),"name"in this&&g===void 0&&f.xAxis&&f.xAxis.hasNames&&(this.x=f.xAxis.nameToX(this)),this.x===void 0&&f?this.x=g??f.autoIncrement():I(u.x)&&f.options.relativeXValue&&(this.x=f.autoIncrement(u.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let u=this,g=u.series,f=g.chart,M=g.options.dataSorting,L=f.hoverPoints,H=d(u.series.chart.renderer.globalAnimation),q=()=>{for(let z in(u.graphic||u.graphics||u.dataLabel||u.dataLabels)&&(T(u),u.destroyElements()),u)delete u[z]};u.legendItem&&f.legend.destroyItem(u),L&&(u.setState(),A(L,u),L.length||(f.hoverPoints=null)),u===f.hoverPoint&&u.onMouseOut(),M&&M.enabled?(this.animateBeforeDestroy(),R(q,H.duration)):q(),f.pointCount--}this.destroyed=!0}destroyElements(u){let g=this,f=g.getGraphicalProps(u);f.singular.forEach(function(M){g[M]=g[M].destroy()}),f.plural.forEach(function(M){g[M].forEach(function(L){L&&L.element&&L.destroy()}),delete g[M]})}firePointEvent(u,g,f){let M=this,L=this.series.options;M.manageEvent(u),u==="click"&&L.allowPointSelect&&(f=function(H){!M.destroyed&&M.select&&M.select(null,H.ctrlKey||H.metaKey||H.shiftKey)}),j(M,u,g,f)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(u){let g,f,M=this,L=[],H={singular:[],plural:[]};for((u=u||{graphic:1,dataLabel:1}).graphic&&L.push("graphic","connector"),u.dataLabel&&L.push("dataLabel","dataLabelPath","dataLabelUpper"),f=L.length;f--;)M[g=L[f]]&&H.singular.push(g);return["graphic","dataLabel"].forEach(function(q){let z=q+"s";u[q]&&M[z]&&H.plural.push(z)}),H}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(u){return u?u.indexOf("custom.")===0?U(u,this.options):this[u]:void 0}getZone(){let u=this.series,g=u.zones,f=u.zoneAxis||"y",M,L=0;for(M=g[0];this[f]>=M.value;)M=g[++L];return this.nonZonedColor||(this.nonZonedColor=this.color),M&&M.color&&!this.options.color?this.color=M.color:this.color=this.nonZonedColor,M}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(u,g,f){this.formatPrefix="point",this.visible=!0,this.series=u,this.applyOptions(g,f),this.id??(this.id=v()),this.resolveColor(),u.chart.pointCount++,j(this,"afterInit")}isValid(){return(I(this.x)||this.x instanceof Date)&&I(this.y)}optionsToObject(u){let g=this.series,f=g.options.keys,M=f||g.pointArrayMap||["y"],L=M.length,H={},q,z=0,Q=0;if(I(u)||u===null)H[M[0]]=u;else if(C(u))for(!f&&u.length>L&&((q=typeof u[0])=="string"?H.name=u[0]:q==="number"&&(H.x=u[0]),z++);Q<L;)f&&u[z]===void 0||(M[Q].indexOf(".")>
vendor: 2,401 bytes, line 28
280?p.prototype.setNestedProperty(H,u[z],M[Q]):H[M[Q]]=u[z]),z++,Q++;else typeof u=="object"&&(H=u,u.dataLabels&&(g.hasDataLabels=()=>!0),u.marker&&(g._hasPointMarkers=!0));return H}pos(u,g=this.plotY){if(!this.destroyed){let{plotX:f,series:M}=this,{chart:L,xAxis:H,yAxis:q}=M,z=0,Q=0;if(I(f)&&I(g))return u&&(z=H?H.pos:L.plotLeft,Q=q?q.pos:L.plotTop),L.inverted&&H&&q?[q.len-g+Q,H.len-f+z]:[f+z,g+Q]}}resolveColor(){let u=this.series,g=u.chart.options.chart,f=u.chart.styledMode,M,L,H=g.colorCount,q;delete this.nonZonedColor,u.options.colorByPoint?(f||(M=(L=u.options.colors||u.chart.options.colors)[u.colorCounter],H=L.length),q=u.colorCounter,u.colorCounter++,u.colorCounter===H&&(u.colorCounter=0)):(f||(M=u.color),q=u.colorIndex),this.colorIndex=E(this.options.colorIndex,q),this.color=E(this.options.color,M)}setNestedProperty(u,g,f){return f.split(".").reduce(function(M,L,H,q){let z=q.length-1===H;return M[L]=z?g:V(M[L],!0)?M[L]:{},M[L]},u),u}shouldDraw(){return!this.isNull}tooltipFormatter(u){let g=this.series,f=g.tooltipOptions,M=E(f.valueDecimals,""),L=f.valuePrefix||"",H=f.valueSuffix||"";return g.chart.styledMode&&(u=g.chart.tooltip.styledModeFormat(u)),(g.pointArrayMap||["y"]).forEach(function(q){q="{point."+q,(L||H)&&(u=u.replace(RegExp(q+"}","g"),L+q+"}"+H)),u=u.replace(RegExp(q+"}","g"),q+":,."+M+"f}")}),m(u,{point:this,series:this.series},g.chart)}update(u,g,f,M){let L,H=this,q=H.series,z=H.graphic,Q=q.chart,ce=q.options;function G(){H.applyOptions(u);let ne=z&&H.hasMockGraphic,se=H.y===null?!ne:ne;z&&se&&(H.graphic=z.destroy(),delete H.hasMockGraphic),V(u,!0)&&(z&&z.element&&u&&u.marker&&u.marker.symbol!==void 0&&(H.graphic=z.destroy()),u!=null&&u.dataLabels&&H.dataLabel&&(H.dataLabel=H.dataLabel.destroy())),L=H.index,q.updateParallelArrays(H,L),ce.data[L]=V(ce.data[L],!0)||V(u,!0)?H.options:E(u,ce.data[L]),q.isDirty=q.isDirtyData=!0,!q.fixedBox&&q.hasCartesianSeries&&(Q.isDirtyBox=!0),ce.legendType==="point"&&(Q.isDirtyLegend=!0),g&&Q.redraw(f)}g=E(g,!0),M===!1?G():H.firePointEvent("update",{options:u},G)}remove(u,g){this.series.removePoint(this.series.data.indexOf(this),u,g)}select(u,g){let f=this,M=f.series,L=M.chart;u=E(u,!f.selected),this.selectedStaging=u,f.firePointEvent(u?"select":"unselect",{accumulate:g},function(){f.selected=f.options.selected=u,M.options.data[M.data.indexOf(f)]=f.options,f.setState(u&&"select"),g||L.getSelectedPoints().forEac
28h(function(H){let q=H.series;H.selected&&H!==f&&(H.selected=H.options.selected=!1,q.options.data[q.data.indexOf(H)]=H.options,H.setState(L.hoverPoints&&q.options.inactiveOtherPoints?"inactive":""),H.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(u){let{inverted:g,pointer:f}=this.series.chart;f&&(u=u?f.normalize(u):f.getChartCoordinatesFromPoint(this,g),f.runPointActions(u,this))}onMouseOut(){let u=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(u.hoverPoints||[]).forEach(function(g){g.setState()}),u.hoverPoints=u.hoverPoint=null}manageEvent(u){var M,L,H,q,z,Q;let g=S(this.series.options.point,this.options),f=(M=g.events)==null?void 0:M[u];x(f)&&(!((L=this.hcEvents)!=null&&L[u])||((q=(H=this.hcEvents)==null?void 0:H[u])==null?void 0:q.map(ce=>ce.fn).indexOf(f))===-1)?((z=this.importedUserEvent)==null||z.call(this),this.importedUserEvent=w(this,u,f)):this.importedUserEvent&&!f&&((Q=this.hcEvents)!=null&&Q[u])&&(T(this,u),delete this.hcEvents[u],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(u,g){var b;let f=this.series,M=this.state,L=f.options.states[u||"normal"]||{},H=h.plotOptions[f.type].marker&&f.options.marker,q=H&&H.enabled===!1,z=H&&H.states&&H.states[u||"normal"]||{},Q=z.enabled===!1,ce=this.marker||{},G=f.chart,ne=H&&f.markerAttribs,se=f.halo,oe,le,D,O=f.stateMarkerGraphic,W;if((u=u||"")===this.state&&!g||this.selected&&u!=="select"||L.enabled===!1||u&&(Q||q&&z.enabled===!1)||u&&ce.states&&ce.states[u]&&ce.states[u].enabled===!1)return;if(this.state=u,ne&&(oe=f.markerAttribs(this,u)),this.graphic&&!this.hasMockGraphic){if(M&&this.graphic.removeClass("highcharts-point-"+M),u&&this.graphic.addClass("highcharts-point-"+u),!G.styledMode){le=f.pointAttribs(this,u),D=E(G.o
28ptions.chart.animation,L.animation);let B=le.opacity;f.options.inactiveOtherPoints&&I(B)&&(this.dataLabels||[]).forEach(function($){$&&!$.hasClass("highcharts-data-label-hidden")&&($.animate({opacity:B},D),$.connector&&$.connector.animate({opacity:B},D))}),this.graphic.animate(le,D)}oe&&this.graphic.animate(oe,E(G.options.chart.animation,z.animation,H.animation)),O&&O.hide()}else u&&z&&(W=ce.symbol||f.symbol,O&&O.currentSymbol!==W&&(O=O.destroy()),oe&&(O?O[g?"animate":"attr"]({x:oe.x,y:oe.y}):W&&(f.stateMarkerGraphic=O=G.renderer.symbol(W,oe.x,oe.y,oe.width,oe.height).add(f.markerGroup),O.currentSymbol=W)),!G.styledMode&&O&&this.state!=="inactive"&&O.attr(f.pointAttribs(this,u))),O&&(O[u&&this.isInside?"show":"hide"](),O.element.point=this,O.addClass(this.getClassName(),!0));let te=L.halo,P=this.graphic||O,_=P&&P.visibility||"inherit";te&&te.size&&P&&_!=="hidden"&&!this.isCluster?(se||(f.halo=se=G.renderer.path().add(P.parentGroup)),se.show()[g?"animate":"attr"]({d:this.haloPath(te.size)}),se.attr({class:"highcharts-halo highcharts-color-"+E(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:_,zIndex:-1}),se.point=this,G.styledMode||se.attr(F({fill:this.color||f.color,"fill-opacity":te.opacity},r.filterUserAttributes(te.attributes||{})))):(b=se==null?void 0:se.point)!=null&&b.haloPath&&!se.point.destroyed&&se.animate({d:se.point.haloPath(0)},null,se.hide),j(this,"afterSetState",{state:u})}haloPath(u){let g=this.pos();return g?this.series.chart.renderer.symbols.circle(k(g[0],1)-u,g[1]-u,2*u,2*u):[]}}return p}),i(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o){var a;let{parse:c}=r,{charts:d,composed:h,isTouchDevice:m}=s,{addEvent:w,attr:k,css:A,extend:F,find:j,fireEvent:U,isNumber:C,isObject:x,objectEach:I,offset:V,pick:S,pushUnique:E,splat:R}=o;class T{applyInactiveState(p){let y=[],u;(p||[]).forEach(function(g){u=g.series,y.push(u),u.linkedParent&&y.push(u.linkedParent),u.linkedSeries&&(y=y.concat(u.linkedSeries)),u.navigatorSeries&&y.push(u.navigatorSeries)}),this.chart.series.forEach(function(g){y.indexOf(g)===-1?g.setState("inactive",!0):g.options.inactiveOtherPoints&&g.setAllPointsToState("inactive")})}destroy(){let p=this;this.eventsToUnbind.forEach(y=>y()),this.eventsToUnbind=[],!s.chartCount&&(T.unbindDocumentMouseUp&&T.unbindDocumentMouseUp.forEach(y=>y()),T.unbindDocumentTouchEnd&&(T.unbindDocumentTouchEnd=T.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),I(p,function(y,u){p[u]=void 0})}getSelectionMarkerAttrs(p,y){let u={args:{chartX:p,chartY:y},attrs:{},shapeType:"rect"};return U(this,"getSelectionMarkerAttrs",u,g=>{let f,{chart:M,zoomHor:L,zoomVert:H}=this,{mouseDownX:q=0,mouseDownY:z=0}=M,Q=g.attrs;Q.x=M.plotLeft,Q.y=M.plotTop,Q.width=L?1:M.plotWidth,Q.height=H?1:M.plotHeight,L&&(f=p-q,Q.width=Math.max(1,Math.abs(f)),Q.x=(f>0?0:f)+q),H&&(f=y-z,Q.height=Math.max(1,Math.abs(f)),Q.y=(f>0?0:f)+z)}),u}drag(p){let{chart:y}=this,{mouseDownX:u=0,mouseDownY:g=0}=y,{panning:f,panKey:M,selectionMarkerFill:L}=y.options.chart,H=y.plotLeft,q=y.plotTop,z=y.plotWidth,Q=y.plotHeight,ce=x(f)?f.enabled:f,G=M&&p[`${M}Key`],ne=p.chartX,se=p.chartY,oe,le=this.selectionMarker;if((!le||!le.touch)&&(ne<H?ne=H:ne>H+z&&(ne=H+z),se<q?se=q:se>q+Q&&(se=q+Q),this.hasDragged=Math.sqrt(Math.pow(u-ne,2)+Math.pow(g-se,2)),this.hasDragged>10)){oe=y.isInsidePlot(u-H,g-q,{visiblePlotOnly:!0});let{shapeType:D,attrs:O}=this.getSelectionMarkerAttrs(ne,se);(y.hasCartesianSeries||y.mapView)&&this.hasZoom&&oe&&!G&&!le&&(this.selectionMarker=le=y.renderer[D](),le.attr({class:"highcharts-selection-marker",zIndex:7}).add(),y.styledMode||le.attr({fill:L||c("#334eff").setOpacity(.25).get()})),le&&le.attr(O),oe&&!le&&ce&&y.pan(p,f)}}dragStart(p){let y=this.chart;y.mouseIsDown=p.type,y.cancelClick=!1,y.mouseDownX=p.chartX,y.mouseDownY=p.chartY}getSelectionBox(p){let y={args:{marker:p},result:p.getBBox()};return U(this,"getSelectionBox",y),y.result}drop(p){let y,{chart:u,selectionMarker:g}=this;for(let f of u.axes)f.isPanning&&(f.isPanning=!1,(f.options.startOnTick||f.options.endOnTick||f.series.some(M=>M.boosted))&&(f.forceRedraw=!0,f.setExtremes(f.userMin,f.userMax,!1),y=!0));if(y&&u.redraw(),g&&p){if(this.hasDragged){let f=this.getSelectionBox(g);u.transform({axes:u.axes.filter(M=>M.zoomEnabled&&(M.coll==="xAxis"&&this.zoomX||M.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:p,xAxis:[],yAxis:[],...f},from:f})}C(u.index)&&(this.selectionMarker=g.destroy())}u&&C(u.index)&&(A(u.container,{cursor:u._cursor}),u.cancelClick=this.hasDragged>10,u.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(p,y,u){let g;return p.forEach(function(f){let M=!(f.noSharedTooltip&&y)&&0>f.options.findNearestPointBy.indexOf("y"),L=f.searchPoint(u,M);x(L,!0)&&L.series&&(!x(g,!0)||function(H,q){var G,ne;let z=H.distX-q.distX,Q=H.dist-q.dist,ce=((G=q.series.group)==null?void 0:G.zIndex)-((ne=H.series.group)==null?void 0:ne.zIndex);return z!==0&&y?z:Q!==0?Q:ce!==0?ce:H.series.index>q.series.index?-1:1}(g,L)>0)&&(g=L)}),g}getChartCoordinatesFromPoint(p,y){let{xAxis:u,yAxis:g}=p.series,f=p.shapeArgs;if(u&&g){let M=p.clientX??p.plotX??0,L=p.plotY||0;return p.isNode&&f&&C(f.x)&&C(f.y)&&(M=f.x,L=f.y),y?{chartX:g.len+g.pos-L,chartY:u.len+u.pos-M}:{chartX:M+u.pos,chartY:L+g.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:p}=this.chart,y=V(p);this.chartPosition={left:y.left,top:y.top,scaleX:1,scaleY:1};let{offsetHeight:u,offsetWidth:g}=p;return g>2&&u>2&&(this.chartPosition.scaleX=y.width/g,this.chartPosition.scaleY=y.height/u),this.chartPosition}getCoordinates(p){let y={xAxis:[],yAxis:[]};for(let u of this.chart.axes)y[u.isXAxis?"xAxis":"yAxis"].push({axis:u,value:u.toValue(p[u.horiz?"chartX":"
28chartY"])});return y}getHoverData(p,y,u,g,f,M){let L=[],H=function(G){return G.visible&&!(!f&&G.directTouch)&&S(G.options.enableMouseTracking,!0)},q=y,z,Q={chartX:M?M.chartX:void 0,chartY:M?M.chartY:void 0,shared:f};U(this,"beforeGetHoverData",Q),z=q&&!q.stickyTracking?[q]:u.filter(G=>G.stickyTracking&&(Q.filter||H)(G));let ce=g&&p||!M?p:this.findNearestKDPoint(z,f,M);return q=ce&&ce.series,ce&&(f&&!q.noSharedTooltip?(z=u.filter(function(G){return Q.filter?Q.filter(G):H(G)&&!G.noSharedTooltip})).forEach(function(G){let ne=j(G.points,function(se){return se.x===ce.x&&!se.isNull});x(ne)&&(G.boosted&&G.boost&&(ne=G.boost.getPoint(ne)),L.push(ne))}):L.push(ce)),U(this,"afterGetHoverData",Q={hoverPoint:ce}),{hoverPoint:Q.hoverPoint,hoverSeries:q,hoverPoints:L}}getPointFromEvent(p){let y=p.target,u;for(;y&&!u;)u=y.point,y=y.parentNode;return u}onTrackerMouseOut(p){let y=this.chart,u=p.relatedTarget,g=y.hoverSeries;this.isDirectTouch=!1,!g||!u||g.stickyTracking||this.inClass(u,"highcharts-tooltip")||this.inClass(u,"highcharts-series-"+g.index)&&this.inClass(u,"highcharts-tracker")||g.onMouseOut()}inClass(p,y){let u=p,g;for(;u;){if(g=k(u,"class")){if(g.indexOf(y)!==-1)return!0;if(g.indexOf("highcharts-container")!==-1)return!1}u=u.parentElement}}constructor(p,y){var u;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=y,this.chart=p,this.runChartClick=!!((u=y.chart.events)!=null&&u.click),this.pinchDown=[],this.setDOMEvents(),U(this,"afterInit")}normalize(p,y){let u=p.touches,g=u?u.length?u.item(0):S(u.changedTouches,p.changedTouches)[0]:p;y||(y=this.getChartPosition());let f=g.pageX-y.left,M=g.pageY-y.top;return F(p,{chartX:Math.round(f/=y.scaleX),chartY:Math.round(M/=y.scaleY)})}onContainerClick(p){let y=this.chart,u=y.hoverPoint,g=this.normalize(p),f=y.plotLeft,M=y.plotTop;!y.cancelClick&&(u&&this.inClass(g.target,"highcharts-tracker")?(U(u.series,"click",F(g,{point:u})),y.hoverPoint&&u.firePointEvent("click",g)):(F(g,this.getCoordinates(g)),y.isInsidePlot(g.chartX-f,g.chartY-M,{visiblePlotOnly:!0})&&U(y,"click",g)))}onContainerMouseDown(p){var u;let y=(1&(p.buttons||p.button))==1;p=this.normalize(p),s.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||y)&&(this.zoomOption(p),y&&((u=p.preventDefault)==null||u.call(p)),this.dragStart(p))}onContainerMouseLeave(p){let{pointer:y}=d[S(T.hoverChartIndex,-1)]||{};p=this.normalize(p),this.onContainerMouseMove(p),y&&!this.inClass(p.relatedTarget,"highcharts-tooltip")&&(y.reset(),y.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(p){let y=this.chart,u=y.tooltip,g=this.normalize(p);this.setHoverChartIndex(p),(y.mouseIsDown==="mousedown"||this.touchSelect(g))&&this.drag(g),!y.openMenu&&(this.inClass(g.target,"highcharts-tracker")||y.isInsidePlot(g.chartX-y.plotLeft,g.chartY-y.plotTop,{visiblePlotOnly:!0}))&&!(u&&u.shouldStickOnContact(g))&&(this.inClass(g.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(g))}onDocumentTouchEnd(p){this.onDocumentMouseUp(p)}onContainerTouchMove(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)}onContainerTouchStart(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))}onDocumentMouseMove(p){let y=this.chart,u=y.tooltip,g=this.chartPosition,f=this.normalize(p,g);!g||y.isInsidePlot(f.chartX-y.plotLeft,f.chartY-y.plotTop,{visiblePlotOnly:!0})||u&&u.shouldStickOnContact(f)||f.target!==y.container.ownerDocument&&this.inClass(f.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(p){var y,u;(u=(y=d[S(T.hoverChartIndex,-1)])==null?void 0:y.pointer)==null||u.drop(p)}pinch(p){let y=this,{chart:u,hasZoom:g,lastTouches:f}=y,M=[].map.call(p.touches||[],Q=>y.normalize(Q)),L=M.length,H=L===1&&(y.inClass(p.target,"highcharts-tracker")&&u.runTrackerClick||y.runChartClick),q=u.tooltip,z=L===1&&S(q==null?void 0:q.options.followTouchMove,!0);L>1?y.initiated=!0:z&&(y.initiated=!1),g&&y.initiated&&!H&&p.cancelable!==!1&&p.preventDefault(),p.type==="touchstart"?(y.pinchDown=M,y.res=!0,u.mouseDownX=p.chartX):z?this.runPointActions(y.normalize(p)):f&&(U(u,"touchpan",{originalEvent:p,touches:M},()=>{let Q=ce=>{let G=ce[0],ne=ce[1]||G;return{x:G.chartX,y:G.chartY,width:ne.chartX-G.chartX,height:ne.chartY-G.chartY}};u.transform({axes:u.axes.filter(ce=>ce.zoomEnabled&&(this.zoomHor&&ce.horiz||this.zoomVert&&!ce.horiz)),to:Q(M),from:Q(f),trigger:p.type})}),y.res&&(y.res=!1,this.reset(!1,0))),y.lastTouches=M}reset(p,y){let u=this.chart,g=u.hoverSeries,f=u.hoverPoint,M=u.hoverPoints,L=u.tooltip,H=L&&L.shared?M:f;
28p&&H&&R(H).forEach(function(q){q.series.isCartesian&&q.plotX===void 0&&(p=!1)}),p?L&&H&&R(H).length&&(L.refresh(H),L.shared&&M?M.forEach(function(q){q.setState(q.state,!0),q.series.isCartesian&&(q.series.xAxis.crosshair&&q.series.xAxis.drawCrosshair(null,q),q.series.yAxis.crosshair&&q.series.yAxis.drawCrosshair(null,q))}):f&&(f.setState(f.state,!0),u.axes.forEach(function(q){q.crosshair&&f.series[q.coll]===q&&q.drawCrosshair(null,f)}))):(f&&f.onMouseOut(),M&&M.forEach(function(q){q.setState()}),g&&g.onMouseOut(),L&&L.hide(y),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),u.axes.forEach(function(q){q.hideCrosshair()}),u.hoverPoints=u.hoverPoint=void 0)}runPointActions(p,y,u){let g=this.chart,f=g.series,M=g.tooltip&&g.tooltip.options.enabled?g.tooltip:void 0,L=!!M&&M.shared,H=y||g.hoverPoint,q=H&&H.series||g.hoverSeries,z=(!p||p.type!=="touchmove")&&(!!y||q&&q.directTouch&&this.isDirectTouch),Q=this.getHoverData(H,q,f,z,L,p);H=Q.hoverPoint,q=Q.hoverSeries;let ce=Q.hoverPoints,G=q&&q.tooltipOptions.followPointer&&!q.tooltipOptions.split,ne=L&&q&&!q.noSharedTooltip;if(H&&(u||H!==g.hoverPoint||M&&M.isHidden)){if((g.hoverPoints||[]).forEach(function(se){ce.indexOf(se)===-1&&se.setState()}),g.hoverSeries!==q&&q.onMouseOver(),this.applyInactiveState(ce),(ce||[]).forEach(function(se){se.setState("hover")}),g.hoverPoint&&g.hoverPoint.firePointEvent("mouseOut"),!H.series)return;g.hoverPoints=ce,g.hoverPoint=H,H.firePointEvent("mouseOver",void 0,()=>{M&&H&&M.refresh(ne?ce:H,p)})}else if(G&&M&&!M.isHidden){let se=M.getAnchor([{}],p);g.isInsidePlot(se[0],se[1],{visiblePlotOnly:!0})&&M.updatePosition({plotX:se[0],plotY:se[1]})}this.unDocMouseMove||(this.unDocMouseMove=w(g.container.ownerDocument,"mousemove",se=>{var oe,le;return(le=(oe=d[T.hoverChartIndex??-1])==null?void 0:oe.pointer)==null?void 0:le.onDocumentMouseMove(se)}),this.eventsToUnbind.push(this.unDocMouseMove)),g.axes.forEach(function(se){let oe,le=S((se.crosshair||{}).snap,!0);!le||(oe=g.hoverPoint)&&oe.series[se.coll]===se||(oe=j(ce,D=>D.series&&D.series[se.coll]===se)),oe||!le?se.drawCrosshair(p,oe):se.hideCrosshair()})}setDOMEvents(){let p=this.chart.container,y=p.ownerDocument;p.onmousedown=this.onContainerMouseDown.bind(this),p.onmousemove=this.onContainerMouseMove.bind(this),p.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(w(p,"mouseenter",this.onContainerMouseEnter.bind(this)),w(p,"mouseleave",this.onContainerMouseLeave.bind(this))),T.unbindDocumentMouseUp||(T.unbindDocumentMouseUp=[]),T.unbindDocumentMouseUp.push(w(y,"mouseup",this.onDocumentMouseUp.bind(this)));let u=this.chart.renderTo.parentElement;for(;u&&u.tagName!=="BODY";)this.eventsToUnbind.push(w(u,"scroll",()=>{delete this.chartPosition})),u=u.parentElement;this.eventsToUnbind.push(w(p,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),w(p,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),T.unbindDocumentTouchEnd||(T.unbindDocumentTouchEnd=w(y,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),w(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var f,M;if(!m)return;let p=this.pointerCaptureEventsToUnbind,y=this.chart,u=y.container,g=S((f=y.options.tooltip)==null?void 0:f.followTouchMove,!0)&&y.series.some(L=>L.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&g?(p.push(w(u,"pointerdown",L=>{var H,q;(H=L.target)!=null&&H.hasPointerCapture(L.pointerId)&&((q=L.target)==null||q.releasePointerCapture(L.pointerId))}),w(u,"pointermove",L=>{var H,q;(q=(H=y.pointer)==null?void 0:H.getPointFromEvent(L))==null||q.onMouseOver(L)})),y.styledMode||A(u,{"touch-action":"none"}),u.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!g&&(p.forEach(L=>L()),p.length=0,y.styledMode||A(u,{"touch-action":S((M=y.options.chart.style)==null?void 0:M["touch-action"],"manipulation")}),u.className=u.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(p){var g;let y=this.chart,u=s.charts[S(T.hoverChartIndex,-1)];if(u&&u!==y){let f={relatedTarget:y.container};p&&!(p!=null&&p.relatedTarget)&&(p={...f,...p}),(g=u.pointer)==null||g.onContainerMouseLeave(p||f)}u&&u.mouseIsDown||(T.hoverChartIndex=y.index)}touch(p,y){let u,{chart:g,pinchDown:f=[]}=this;this.setHoverChartIndex(),(p=this.normalize(p)).touches.length===1?g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0})&&!g.openMenu?(y&&this.runPointActions(p),p.type==="touchmove"&&(u=!!f[0]&&Math.pow(f[0].chartX-p.chartX,2)+Math.pow(f[0].chartY-p.chartY,2)>=16),S(u,!0)&&this.pinch(p)):y&&this.reset():p.touches.length===2&&this.pinch(p)}touchSelect(p){return!!(this.chart.zooming.singleTouch&&p.touches&&p.touches.length===1)}zoomOption(p){let y=this.chart,u=y.inverted,g=y.zooming.type||"",f,M;/touch/.test(p.type)&&(g=S(y.zooming.pinchType,g)),this.zoomX=f=/x/.test(g),this.zoomY=M=/y/.test(g),this.zoomHor=f&&!u||M&&u,this.zoomVert=M&&!u||f&&u,this.hasZoom=f||M}}return(a=T).compose=function(v){E(h,"Core.Pointer")&&w(v,"beforeRender",function(){this.pointer=new a(this,this.options)})},T}),i(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],function(r){var s;let{extend:o,merge:a,pick:c}=r;return function(d){function h(m,w,k){var u,g;let A=this.legendItem=this.legendItem||{},{chart:F,options:j}
28=this,{baseline:U=0,symbolWidth:C,symbolHeight:x}=m,I=this.symbol||"circle",V=x/2,S=F.renderer,E=A.group,R=U-Math.round((((u=m.fontMetrics)==null?void 0:u.b)||x)*(k?.4:.3)),T={},v,p=j.marker,y=0;if(F.styledMode||(T["stroke-width"]=Math.min(j.lineWidth||0,24),j.dashStyle?T.dashstyle=j.dashStyle:j.linecap==="square"||(T["stroke-linecap"]="round")),A.line=S.path().addClass("highcharts-graph").attr(T).add(E),k&&(A.area=S.path().addClass("highcharts-area").add(E)),T["stroke-linecap"]&&(y=Math.min(A.line.strokeWidth(),C)/2),C){let f=[["M",y,R],["L",C-y,R]];A.line.attr({d:f}),(g=A.area)==null||g.attr({d:[...f,["L",C-y,U],["L",y,U]]})}if(p&&p.enabled!==!1&&C){let f=Math.min(c(p.radius,V),V);I.indexOf("url")===0&&(p=a(p,{width:x,height:x}),f=0),A.symbol=v=S.symbol(I,C/2-f,R-f,2*f,2*f,o({context:"legend"},p)).addClass("highcharts-point").add(E),v.isMarker=!0}}d.areaMarker=function(m,w){h.call(this,m,w,!0)},d.lineMarker=h,d.rectangle=function(m,w){let k=w.legendItem||{},A=m.options,F=m.symbolHeight,j=A.squareSymbol,U=j?F:m.symbolWidth;k.symbol=this.chart.renderer.rect(j?(m.symbolWidth-F)/2:0,m.baseline-F+1,U,F,c(m.options.symbolRadius,F/2)).addClass("highcharts-point").attr({zIndex:3}).add(k.group)}}(s||(s={})),s}),i(n,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:r}=this.series.chart;return typeof this.y!="number"?"":r(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),i(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,o,a){var c;let{defaultOptions:d}=s,{extend:h,extendClass:m,merge:w}=a;return function(k){function A(F,j){let U=d.plotOptions||{},C=j.defaultOptions,x=j.prototype;return x.type=F,x.pointClass||(x.pointClass=o),!k.seriesTypes[F]&&(C&&(U[F]=C),k.seriesTypes[F]=j,!0)}k.seriesTypes=r.seriesTypes,k.registerSeriesType=A,k.seriesType=function(F,j,U,C,x){let I=d.plotOptions||{};if(j=j||"",I[F]=w(I[j],U),delete k.seriesTypes[F],A(F,m(k.seriesTypes[j]||function(){},C)),k.seriesTypes[F].prototype.type=F,x){class V extends o{}h(V.prototype,x),k.seriesTypes[F].prototype.pointClass=V}return k.seriesTypes[F]}}(c||(c={})),c}),i(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h,m,w,k){let{animObject:A,setAnimation:F}=r,{defaultOptions:j}=s,{registerEventOptions:U}=o,{svg:C,win:x}=a,{seriesTypes:I}=m,{arrayMax:V,arrayMin:S,clamp:E,correctFloat:R,crisp:T,defined:v,destroyObjectProperties:p,diffObjects:y,erase:u,error:g,extend:f,find:M,fireEvent:L,getClosestDistance:H,getNestedProperty:q,insertItem:z,isArray:Q,isNumber:ce,isString:G,merge:ne,objectEach:se,pick:oe,removeEvent:le,splat:D,syncTimeout:O}=k;class W{constructor(){this.zoneAxis="y"}init(P,_){let b;L(this,"init",{options:_});let B=this,$=P.series;this.eventsToUnbind=[],B.chart=P,B.options=B.setOptions(_);let X=B.options,J=X.visible!==!1;B.linkedSeries=[],B.bindAxes(),f(B,{name:X.name,state:"",visible:J,selected:X.selected===!0}),U(this,X);let re=X.events;(re&&re.click||X.point&&X.point.events&&X.point.events.click||X.allowPointSelect)&&(P.runTrackerClick=!0),B.getColor(),B.getSymbol(),B.parallelArrays.forEach(function(ae){B[ae+"Data"]||(B[ae+"Data"]=[])}),B.isCartesian&&(P.hasCartesianSeries=!0),$.length&&(b=$[$.length-1]),B._i=oe(b&&b._i,-1)+1,B.opacity=B.options.opacity,P.orderItems("series",z(this,$)),X.dataSorting&&X.dataSorting.enabled?B.setDataSortingOptions():B.points||B.data||B.setData(X.data,!1),L(this,"afterInit")}is(P){return I[P]&&this instanceof I[P]}bindAxes(){let P,_=this,b=_.options,B=_.chart;
28L(this,"bindAxes",null,function(){(_.axisTypes||[]).forEach(function($){(B[$]||[]).forEach(function(X){P=X.options,(oe(b[$],0)===X.index||b[$]!==void 0&&b[$]===P.id)&&(z(_,X.series),_[$]=X,X.isDirty=!0)}),_[$]||_.optionalAxis===$||g(18,!0,B)})}),L(this,"afterBindAxes")}updateParallelArrays(P,_,b){let B=P.series,$=ce(_)?function(X){let J=X==="y"&&B.toYData?B.toYData(P):P[X];B[X+"Data"][_]=J}:function(X){Array.prototype[_].apply(B[X+"Data"],b)};B.parallelArrays.forEach($)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(P,_){let b=P.marker,B=_.marker||{};return b&&(B.enabled&&!b.enabled||B.symbol!==b.symbol||B.height!==b.height||B.width!==b.width)}autoIncrement(P){let _=this.options,b=_.pointIntervalUnit,B=_.relativeXValue,$=this.chart.time,X=this.xIncrement,J,re;return X=oe(X,_.pointStart,0),this.pointInterval=re=oe(this.pointInterval,_.pointInterval,1),B&&ce(P)&&(re*=P),b&&(J=new $.Date(X),b==="day"?$.set("Date",J,$.get("Date",J)+re):b==="month"?$.set("Month",J,$.get("Month",J)+re):b==="year"&&$.set("FullYear",J,$.get("FullYear",J)+re),re=J.getTime()-X),B&&ce(P)?X+re:(this.xIncrement=X+re,X)}setDataSortingOptions(){let P=this.options;f(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),v(P.pointRange)||(P.pointRange=1)}setOptions(P){var de,ge;let _,b=this.chart,B=b.options.plotOptions,$=b.userOptions||{},X=ne(P),J=b.styledMode,re={plotOptions:B,userOptions:X};L(this,"setOptions",re);let ae=re.plotOptions[this.type],fe=$.plotOptions||{},ue=fe.series||{},Z=j.plotOptions[this.type]||{},Y=fe[this.type]||{};this.userOptions=re.userOptions;let ee=ne(ae,B.series,Y,X);this.tooltipOptions=ne(j.tooltip,(de=j.plotOptions.series)==null?void 0:de.tooltip,Z==null?void 0:Z.tooltip,b.userOptions.tooltip,(ge=fe.series)==null?void 0:ge.tooltip,Y.tooltip,X.tooltip),this.stickyTracking=oe(X.stickyTracking,Y.stickyTracking,ue.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||ee.stickyTracking),ae.marker===null&&delete ee.marker,this.zoneAxis=ee.zoneAxis||"y";let ie=this.zones=(ee.zones||[]).map(pe=>({...pe}));return(ee.negativeColor||ee.negativeFillColor)&&!ee.zones&&(_={value:ee[this.zoneAxis+"Threshold"]||ee.threshold||0,className:"highcharts-negative"},J||(_.color=ee.negativeColor,_.fillColor=ee.negativeFillColor),ie.push(_)),ie.length&&v(ie[ie.length-1].value)&&ie.push(J?{}:{color:this.color,fillColor:this.fillColor}),L(this,"afterSetOptions",{options:ee}),ee}getName(){return oe(this.options.name,"Series "+(this.index+1))}getCyclic(P,_,b){let B,$,X=this.chart,J=`${P}Index`,re=`${P}Counter`,ae=(b==null?void 0:b.length)||X.options.chart.colorCount;!_&&(v($=oe(P==="color"?this.options.colorIndex:void 0,this[J]))?B=$:(X.series.length||(X[re]=0),B=X[re]%ae,X[re]+=1),b&&(_=b[B])),B!==void 0&&(this[J]=B),this[P]=_}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||j.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let P=this.options.marker;this.getCyclic("symbol",P.symbol,this.chart.options.symbols)}findPointIndex(P,_){let b,B,$,X=P.id,J=P.x,re=this.points,ae=this.options.dataSorting;if(X){let fe=this.chart.get(X);fe instanceof d&&(b=fe)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let fe=ue=>!ue.touched&&ue.index===P.index;if(ae&&ae.matchByName?fe=ue=>!ue.touched&&ue.name===P.name:this.options.relativeXValue&&(fe=ue=>!ue.touched&&ue.options.x===P.x),!(b=M(re,fe)))return}return b&&($=b&&b.index)!==void 0&&(B=!0),$===void 0&&ce(J)&&($=this.xData.indexOf(J,_)),$!==-1&&$!==void 0&&this.cropped&&($=$>=this.cropStart?$-this.cropStart:$),!B&&ce($)&&re[$]&&re[$].touched&&($=void 0),$}updateData(P,_){let b=this.options,B=b.dataSorting,$=this.points,X=[],J=this.requireSorting,re=P.length===$.length,ae,fe,ue,Z,Y=!0;if(this.xIncrement=null,P.forEach(function(ee,ie){let de,ge=v(ee)&&this.pointClass.prototype.optionsToObject.call({series:this},ee)||{},pe=ge.x;
28ge.id||ce(pe)?((de=this.findPointIndex(ge,Z))===-1||de===void 0?X.push(ee):$[de]&&ee!==b.data[de]?($[de].update(ee,!1,null,!1),$[de].touched=!0,J&&(Z=de+1)):$[de]&&($[de].touched=!0),(!re||ie!==de||B&&B.enabled||this.hasDerivedData)&&(ae=!0)):X.push(ee)},this),ae)for(fe=$.length;fe--;)(ue=$[fe])&&!ue.touched&&ue.remove&&ue.remove(!1,_);else!re||B&&B.enabled?Y=!1:(P.forEach(function(ee,ie){ee===$[ie].y||$[ie].destroyed||$[ie].update(ee,!1,null,!1)}),X.length=0);return $.forEach(function(ee){ee&&(ee.touched=!1)}),!!Y&&(X.forEach(function(ee){this.addPoint(ee,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=V(this.xData),this.autoIncrement()),!0)}setData(P,_=!0,b,B){var Ie;let $=this,X=$.points,J=X&&X.length||0,re=$.options,ae=$.chart,fe=re.dataSorting,ue=$.xAxis,Z=re.turboThreshold,Y=this.xData,ee=this.yData,ie=$.pointArrayMap,de=ie&&ie.length,ge=re.keys,pe,me,ye,_e=0,ve=1,we;ae.options.chart.allowMutatingData||(re.data&&delete $.options.data,$.userOptions.data&&delete $.userOptions.data,we=ne(!0,P));let Ce=(P=we||P||[]).length;if(fe&&fe.enabled&&(P=this.sortData(P)),ae.options.chart.allowMutatingData&&B!==!1&&Ce&&J&&!$.cropped&&!$.hasGroupedData&&$.visible&&!$.boosted&&(ye=this.updateData(P,b)),!ye){$.xIncrement=null,$.colorCounter=0,this.parallelArrays.forEach(function(Se){$[Se+"Data"].length=0});let Te=Z&&Ce>Z;if(Te){let Se=$.getFirstValidPoint(P),Le=$.getFirstValidPoint(P,Ce-1,-1),Oe=Ne=>!!(Q(Ne)&&(ge||ce(Ne[0])));if(ce(Se)&&ce(Le))for(pe=0;pe<Ce;pe++)Y[pe]=this.autoIncrement(),ee[pe]=P[pe];else if(Oe(Se)&&Oe(Le))if(de)if(Se.length===de)for(pe=0;pe<Ce;pe++)Y[pe]=this.autoIncrement(),ee[pe]=P[pe];else for(pe=0;pe<Ce;pe++)me=P[pe],Y[pe]=me[0],ee[pe]=me.slice(1,de+1);else if(ge&&(_e=ge.indexOf("x"),ve=ge.indexOf("y"),_e=_e>=0?_e:0,ve=ve>=0?ve:1),Se.length===1&&(ve=0),_e===ve)for(pe=0;pe<Ce;pe++)Y[pe]=this.autoIncrement(),ee[pe]=P[pe][ve];else for(pe=0;pe<Ce;pe++)me=P[pe],Y[pe]=me[_e],ee[pe]=me[ve];else Te=!1}if(!Te)for(pe=0;pe<Ce;pe++)me={series:$},$.pointClass.prototype.applyOptions.apply(me,[P[pe]]),$.updateParallelArrays(me,pe);for(ee&&G(ee[0])&&g(14,!0,ae),$.data=[],$.options.data=$.userOptions.data=P,pe=J;pe--;)(Ie=X[pe])==null||Ie.destroy();ue&&(ue.minRange=ue.userMinRange),$.isDirty=ae.isDirtyBox=!0,$.isDirtyData=!!X,b=!1}re.legendType==="point"&&(this.processData(),this.generatePoints()),_&&ae.redraw(b)}sortData(P){let _=this,b=_.options.dataSorting.sortKey||"y",B=function($,X){return v(X)&&$.pointClass.prototype.optionsToObject.call({series:$},X)||{}};return P.forEach(function($,X){P[X]=B(_,$),P[X].index=X},this),P.concat().sort(($,X)=>{let J=q(b,$),re=q(b,X);return re<J?-1:re>J?1:0}).forEach(function($,X){$.x=X},this),_.linkedSeries&&_.linkedSeries.forEach(function($){let X=$.options,J=X.data;X.dataSorting&&X.dataSorting.enabled||!J||(J.forEach(function(re,ae){J[ae]=B($,re),P[ae]&&(J[ae].x=P[ae].x,J[ae].index=ae)}),$.setData(J,!1))}),P}getProcessedData(P){let _=this,b=_.xAxis,B=_.options.cropThreshold,$=b==null?void 0:b.logarithmic,X=_.isCartesian,J,re,ae=0,fe,ue,Z,Y=_.xData,ee=_.yData,ie=!1,de=Y.length;b&&(ue=(fe=b.getExtremes()).min,Z=fe.max,ie=!!(b.categories&&!b.names.length)),X&&_.sorted&&!P&&(!B||de>B||_.forceCrop)&&(Y[de-1]<ue||Y[0]>Z?(Y=[],ee=[]):_.yData&&(Y[0]<ue||Y[de-1]>Z)&&(Y=(J=this.cropData(_.xData,_.yData,ue,Z)).xData,ee=J.yData,ae=J.start,re=!0));let ge=H([$?Y.map($.log2lin):Y],()=>_.requireSorting&&!ie&&g(15,!1,_.chart));return{xData:Y,yData:ee,cropped:re,cropStart:ae,closestPointRange:ge}}processData(P){let _=this.xAxis;if(this.isCartesian&&!this.isDirty&&!_.isDirty&&!this.yAxis.isDirty&&!P)return!1;let b=this.getProcessedData();this.cropped=b.cropped,this.cropStart=b.cropStart,this.processedXData=b.xData,this.processedYData=b.yData,this.closestPointRange=this.basePointRange=b.closestPointRange,L(this,"afterProcessData")}cropData(P,_,b,B){let $=P.length,X,J,re=0,ae=$;for(X=0;X<$;X++)if(P[X]>=b){re=Math.max(0,X-1);break}for(J=X;J<$;J++)if(P[J]>B){ae=J+1;break}return{xData:P.slice(re,ae),yData:_.slice(re,ae),start:re,end:ae}}generatePoints(){let P=this.options,_=this.processedData||P.data,b=this.processedXData,B=this.processedYData,$=this.pointClass,X=b.length,J=this.cropStart||0,re=this.hasGroupedData,ae=P.keys,fe=[],ue=P.dataGrouping&&P.dataGrouping.groupAll?J:0,Z,Y,ee,ie,de=this.data;if(!de&&!re){let ge=[];ge.length=_.length,de=this.data=ge}for(ae&&re&&(this.options.keys=!1),ie=0;ie<X;ie++)Y=J+ie,re?((ee=new $(this,[b[ie]].concat(D(B[ie])))).dataGroup=this.groupMap[ue
28+ie],ee.dataGroup.options&&(ee.options=ee.dataGroup.options,f(ee,ee.dataGroup.options),delete ee.dataLabels)):(ee=de[Y])||_[Y]===void 0||(de[Y]=ee=new $(this,_[Y],b[ie])),ee&&(ee.index=re?ue+ie:Y,fe[ie]=ee);if(this.options.keys=ae,de&&(X!==(Z=de.length)||re))for(ie=0;ie<Z;ie++)ie!==J||re||(ie+=X),de[ie]&&(de[ie].destroyElements(),de[ie].plotX=void 0);this.data=de,this.points=fe,L(this,"afterGeneratePoints")}getXExtremes(P){return{min:S(P),max:V(P)}}getExtremes(P,_){let b=this.xAxis,B=this.yAxis,$=[],X=this.requireSorting&&!this.is("column")?1:0,J=!!B&&B.positiveValuesOnly,re=_||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:ae,processedYData:fe}=this,ue,Z,Y,ee,ie,de,ge,pe=0,me=0,ye=0;if(this.cropped&&re){let Ce=this.getProcessedData(!0);ae=Ce.xData,fe=Ce.yData}let _e=(P=P||this.stackedYData||fe||[]).length,ve=ae||this.xData;for(b&&(pe=(ue=b.getExtremes()).min,me=ue.max),de=0;de<_e;de++)if(ee=ve[de],Z=(ce(ie=P[de])||Q(ie))&&((ce(ie)?ie>0:ie.length)||!J),Y=_||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(ve[de+X]||ee)>=pe&&(ve[de-X]||ee)<=me,Z&&Y)if(ge=ie.length)for(;ge--;)ce(ie[ge])&&($[ye++]=ie[ge]);else $[ye++]=ie;let we={activeYData:$,dataMin:S($),dataMax:V($)};return L(this,"afterGetExtremes",{dataExtremes:we}),we}applyExtremes(){let P=this.getExtremes();return this.dataMin=P.dataMin,this.dataMax=P.dataMax,P}getFirstValidPoint(P,_=0,b=1){let B=P.length,$=_;for(;$>=0&&$<B;){if(v(P[$]))return P[$];$+=b}}translate(){var me;this.processedXData||this.processData(),this.generatePoints();let P=this.options,_=P.stacking,b=this.xAxis,B=b.categories,$=this.enabledDataSorting,X=this.yAxis,J=this.points,re=J.length,ae=this.pointPlacementToXValue(),fe=!!ae,ue=P.threshold,Z=P.startFromThreshold?ue:0,Y,ee,ie,de,ge=Number.MAX_VALUE;function pe(ye){return E(ye,-1e9,1e9)}for(Y=0;Y<re;
28Y++){let ye,_e=J[Y],ve=_e.x,we,Ce,Ie=_e.y,Te=_e.low,Se=_&&((me=X.stacking)==null?void 0:me.stacks[(this.negStacks&&Ie<(Z?0:ue)?"-":"")+this.stackKey]);ee=b.translate(ve,!1,!1,!1,!0,ae),_e.plotX=ce(ee)?R(pe(ee)):void 0,_&&this.visible&&Se&&Se[ve]&&(de=this.getStackIndicator(de,ve,this.index),!_e.isNull&&de.key&&(Ce=(we=Se[ve]).points[de.key]),we&&Q(Ce)&&(Te=Ce[0],Ie=Ce[1],Te===Z&&de.key===Se[ve].base&&(Te=oe(ce(ue)?ue:X.min)),X.positiveValuesOnly&&v(Te)&&Te<=0&&(Te=void 0),_e.total=_e.stackTotal=oe(we.total),_e.percentage=v(_e.y)&&we.total?_e.y/we.total*100:void 0,_e.stackY=Ie,this.irregularWidths||we.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),_e.yBottom=v(Te)?pe(X.translate(Te,!1,!0,!1,!0)):void 0,this.dataModify&&(Ie=this.dataModify.modifyValue(Ie,Y)),ce(Ie)&&_e.plotX!==void 0&&(ye=ce(ye=X.translate(Ie,!1,!0,!1,!0))?pe(ye):void 0),_e.plotY=ye,_e.isInside=this.isPointInside(_e),_e.clientX=fe?R(b.translate(ve,!1,!1,!1,!0,ae)):ee,_e.negative=(_e.y||0)<(ue||0),_e.category=oe(B&&B[_e.x],_e.x),_e.isNull||_e.visible===!1||(ie!==void 0&&(ge=Math.min(ge,Math.abs(ee-ie))),ie=ee),_e.zone=this.zones.length?_e.getZone():void 0,!_e.graphic&&this.group&&$&&(_e.isNew=!0)}this.closestPointRangePx=ge,L(this,"afterTranslate")}getValidPoints(P,_,b){let B=this.chart;return(P||this.points||[]).filter(function($){let{plotX:X,plotY:J}=$;return!!((b||!$.isNull&&ce(J))&&(!_||B.isInsidePlot(X,J,{inverted:B.inverted})))&&$.visible!==!1})}getClipBox(){let{chart:P,xAxis:_,yAxis:b}=this,{x:B,y:$,width:X,height:J}=ne(P.clipBox);return _&&_.len!==P.plotSizeX&&(X=_.len),b&&b.len!==P.plotSizeY&&(J=b.len),P.inverted&&!this.invertible&&([X,J]=[J,X]),{x:B,y:$,width:X,height:J}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:P,group:_,markerGroup:b}=this,B=P.sharedClips,$=P.renderer,X=this.getClipBox(),J=this.getSharedClipKey(),re=B[J];re?re.animate(X):B[J]=re=$.clipRect(X),_&&_.clip(this.options.clip===!1?void 0:re),b&&b.clip()}animate(P){let{chart:_,group:b,markerGroup:B}=this,$=_.inverted,X=A(this.options.animation),J=[this.getSharedClipKey(),X.duration,X.easing,X.defer].join(","),re=_.sharedClips[J],ae=_.sharedClips[J+"m"];if(P&&b){let fe=this.getClipBox();if(re)re.attr("height",fe.height);else{fe.width=0,$&&(fe.x=_.plotHeight),re=_.renderer.clipRect(fe),_.sharedClips[J]=re;let ue={x:-99,y:-99,width:$?_.plotWidth+199:99,height:$?99:_.plotHeight+199};ae=_.renderer.clipRect(ue),_.sharedClips[J+"m"]=ae}b.clip(re),B==null||B.clip(ae)}else if(re&&!re.hasClass("highcharts-animating")){let fe=this.getClipBox(),ue=X.step;(B!=null&&B.element.childNodes.length||_.series.length>1)&&(X.step=function(Z,Y){ue&&ue.apply(Y,arguments),Y.prop==="width"&&(ae!=null&&ae.element)&&ae.attr($?"height":"width",Z+99)}),re.addClass("highcharts-animating").animate(fe,X)}}afterAnimate(){this.setClip(),se(this.chart.sharedClips,(P,_,b)=>{P&&!this.chart.container.querySelector(`[clip-path="url(#${P.id})"]`)&&(P.destroy(),delete b[_])}),this.finishedAnimating=!0,L(this,"afterAnimate")}drawPoints(P=this.points){let _,b,B,$,X,J,re,ae=this.chart,fe=ae.styledMode,{colorAxis:ue,options:Z}=this,Y=Z.marker,ee=this[this.specialGroup||"markerGroup"],ie=this.xAxis,de=oe(Y.enabled,!ie||!!ie.isRadial||null,this.closestPointRangePx>=Y.enabledThreshold*Y.radius);if(Y.enabled!==!1||this._hasPointMarkers)for(_=0;_<P.length;_++)if($=(B=(b=P[_]).graphic)?"animate":"attr",X=b.marker||{},J=!!b.marker,(de&&X.enabled===void 0||X.enabled)&&!b.isNull&&b.visible!==!1){let ge=oe(X.symbol,this.symbol,"rect");re=this.markerAttribs(b,b.selected&&"select"),this.enabledDataSorting&&(b.startXPos=ie.reversed?-(re.width||0):ie.width);let pe=b.isInside!==!1;if(!B&&pe&&((re.width||0)>0||b.hasImage)&&(b.graphic=B=ae.renderer.symbol(ge,re.x,re.y,re.width,re.height,J?X:Y).add(ee),this.enabledDataSorting&&ae.hasRendered&&(B.attr({x:b.startXPos}),$="animate")),B&&$==="animate"&&B[pe?"show":"hide"](pe).animate(re),B){let me=this.pointAttribs(b,fe||!b.selected?void 0:"select");fe?ue&&B.css({fill:me.fill}):B[$](me)}B&&B.addClass(b.getClassName(),!0)}else B&&(b.graphic=B.destroy())}markerAttribs(P,_){let b=this.options,B=b.marker,$=P.marker||{},X=$.symbol||B.symbol,J={},re,ae,fe=oe($.radius,B&&B.radius);_&&(re=B.states[_],fe=oe((ae=$.states&&$.states[_])&&ae.radius,re&&re.radius,fe&&fe+(re&&re.radiusPlus||0))),P.hasImage=X&&X.indexOf("url")===0,P.hasImage&&(fe=0);let ue=P.pos();return ce(fe)&&ue&&(b.crisp&&(ue[0]=T(ue[0],P.hasImage?0:X==="rect"?(B==null?void 0:B.lineWidth)||0:1)),J.x=ue[0]-fe,J.y=ue[1]-fe),fe&&(J.width=J.height=2*fe),J}pointAttribs(P,_){let b=this.options.marker,B=P&&P.options,$=B&&B.marker||{},X=B&&B.color,J=P&&P.color,re=P&&P.zone&&P.zone.color,ae,fe,ue=this.color,Z,Y,ee=oe($.lineWidth,b.lineWidth),ie=1;return ue=X||re||J||ue,Z=$.fillColor||b.fillColor||ue,Y=$.lineColor||b.lineColor||ue,_=_||"normal",ae=b.states[_]||{},ee=oe((fe=$.states&&$.states[_]||{}).lineWidth,ae.lineWidth,ee+oe(fe.lineWidthPlus,ae.lineWidthPlus,0)),Z=fe.fillColor||ae.fillColor||Z,{stroke:Y=fe.lineColor||ae.lineColor||Y,"stroke-width":ee,fill:Z,opacity:ie=oe(fe.opacity,ae.opacity,ie)}}
28destroy(P){let _,b,B,$=this,X=$.chart,J=/AppleWebKit\/533/.test(x.navigator.userAgent),re=$.data||[];for(L($,"destroy",{keepEventsForUpdate:P}),this.removeEvents(P),($.axisTypes||[]).forEach(function(ae){(B=$[ae])&&B.series&&(u(B.series,$),B.isDirty=B.forceRedraw=!0)}),$.legendItem&&$.chart.legend.destroyItem($),_=re.length;_--;)(b=re[_])&&b.destroy&&b.destroy();for(let ae of $.zones)p(ae,void 0,!0);k.clearTimeout($.animationTimeout),se($,function(ae,fe){ae instanceof w&&!ae.survive&&ae[J&&fe==="group"?"hide":"destroy"]()}),X.hoverSeries===$&&(X.hoverSeries=void 0),u(X.series,$),X.orderItems("series"),se($,function(ae,fe){P&&fe==="hcEvents"||delete $[fe]})}applyZones(){let{area:P,chart:_,graph:b,zones:B,points:$,xAxis:X,yAxis:J,zoneAxis:re}=this,{inverted:ae,renderer:fe}=_,ue=this[`${re}Axis`],{isXAxis:Z,len:Y=0}=ue||{},ee=((b==null?void 0:b.strokeWidth())||0)/2+1,ie=(de,ge=0,pe=0)=>{ae&&(pe=Y-pe);let{translated:me=0,lineClip:ye}=de,_e=pe-me;ye==null||ye.push(["L",ge,Math.abs(_e)<ee?pe-ee*(_e<=0?-1:1):me])};if(B.length&&(b||P)&&ue&&ce(ue.min)){let de=ue.getExtremes().max,ge=ye=>{ye.forEach((_e,ve)=>{(_e[0]==="M"||_e[0]==="L")&&(ye[ve]=[_e[0],Z?Y-_e[1]:_e[1],Z?_e[2]:Y-_e[2]])})};if(B.forEach(ye=>{ye.lineClip=[],ye.translated=E(ue.toPixels(oe(ye.value,de),!0)||0,0,Y)}),b&&!this.showLine&&b.hide(),P&&P.hide(),re==="y"&&$.length<X.len)for(let ye of $){let{plotX:_e,plotY:ve,zone:we}=ye,Ce=we&&B[B.indexOf(we)-1];we&&ie(we,_e,ve),Ce&&ie(Ce,_e,ve)}let pe=[],me=ue.toPixels(ue.getExtremes().min,!0);B.forEach(ye=>{var Xe,$e;let _e=ye.lineClip||[],ve=Math.round(ye.translated||0);X.reversed&&_e.reverse();let{clip:we,simpleClip:Ce}=ye,Ie=0,Te=0,Se=X.len,Le=J.len;Z?(Ie=ve,Se=me):(Te=ve,Le=me);let Oe=[["M",Ie,Te],["L",Se,Te],["L",Se,Le],["L",Ie,Le],["Z"]],Ne=[Oe[0],..._e,Oe[1],Oe[2],...pe,Oe[3],Oe[4]];pe=_e.reverse(),me=ve,ae&&(ge(Ne),P&&ge(Oe)),we?(we.animate({d:Ne}),Ce==null||Ce.animate({d:Oe})):(we=ye.clip=fe.path(Ne),P&&(Ce=ye.simpleClip=fe.path(Oe))),b&&((Xe=ye.graph)==null||Xe.clip(we)),P&&(($e=ye.area)==null||$e.clip(Ce))})}else this.visible&&(b&&b.show(),P&&P.show())}plotGroup(P,_,b,B,$){let X=this[P],J=!X,re={visibility:b,zIndex:B||.1};return v(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(re.opacity=this.opacity),X||(this[P]=X=this.chart.renderer.g().add($)),X.addClass("highcharts-"+_+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(v(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(X.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),X.attr(re)[J?"attr":"animate"](this.getPlotBox(_)),X}getPlotBox(P){let _=this.xAxis,b=this.yAxis,B=this.chart,$=B.inverted&&!B.polar&&_&&this.invertible&&P==="series";return B.inverted&&(_=b,b=this.xAxis),{translateX:_?_.left:B.plotLeft,translateY:b?b.top:B.plotTop,rotation:$?90:0,rotationOriginX:$?(_.len-b.len)/2:0,rotationOriginY:$?(_.len+b.len)/2:0,scaleX:$?-1:1,scaleY:1}}removeEvents(P){let{eventsToUnbind:_}=this;P||le(this),_.length&&(_.forEach(b=>{b()}),_.length=0)}render(){var fe,ue,Z,Y,ee;let P=this,{chart:_,options:b,hasRendered:B}=P,$=A(b.animation),X=P.visible?"inherit":"hidden",J=b.zIndex,re=_.seriesGroup,ae=P.finishedAnimating?0:$.duration;L(this,"render"),P.plotGroup("group","series",X,J,re),P.markerGroup=P.plotGroup("markerGroup","markers",X,J,re),b.clip!==!1&&P.setClip(),ae&&((fe=P.animate)==null||fe.call(P,!0)),P.drawGraph&&(P.drawGraph(),P.applyZones()),P.visible&&P.drawPoints(),(ue=P.drawDataLabels)==null||ue.call(P),(Z=P.redrawPoints)==null||Z.call(P),b.enableMouseTracking&&((Y=P.drawTracker)==null||Y.call(P)),ae&&((ee=P.animate)==null||ee.call(P)),B||(ae&&$.defer&&(ae+=$.defer),P.animationTimeout=O(()=>{P.afterAnimate()},ae||0)),P.isDirty=!1,P.hasRendered=!0,L(P,"afterRender")}redraw(){let P=this.isDirty||this.isDirtyData;this.translate(),this.render(),P&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(P,_){let{xAxis:b,yAxis:B}=this,$=this.chart.inverted;return this.searchKDTree({clientX:$?b.len-P.chartY+b.pos:P.chartX-b.pos,plotY:$?B.len-P.chartX+B.pos:P.chartY-B.pos},_,P)}buildKDTree(P){this.buildingKdTree=!0;let _=this,b=_.options.findNearestPointBy.indexOf("y")>-1?2:1;delete _.kdTree,O(function(){_.kdTree=function B($,X,J){let re,ae,fe=$==null?void 0:$.length;if(fe)return re=_.kdAxisArray[X%J],$.sort((ue,Z)=>(ue[re]||0)-(Z[re]||0)),{point:$[ae=Math.floor(fe/2)],left:B($.slice(0,ae),X+1,J),right:B($.slice(ae+1),X+1,J)}}(_.getValidPoints(void 0,!_.directTouch),b,b),_.buildingKdTree=!1},_.options.kdNow||(P==null?void 0:P.type)==="touchstart"?0:1)}searchKDTree(P,_,b){let B=this,[$,X]=this.kdAxisArray,J=_?"distX":"dist",re=(B.options.findNearestPointBy||"").indexOf("y")>-1?2:1,ae=!!B.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(b),this.kdTree)return function fe(ue,Z,Y,ee){var we;let ie=Z.point,de=B.kdAxisArray[Y%ee],ge,pe,me=ie;(function(Ce,Ie){var at;let Te=Ce[$],Se=Ie[$],Le=v(Te)&&v(Se)?Te-Se:null,Oe=Ce[X],Ne=Ie[X],Xe=v(Oe)&&v(Ne)?Oe-Ne:0,$e=ae&&((at=Ie.marker)==null?void 0:at.radius)||0;Ie.dist=Math.sqrt((Le&&Le*Le||0)+Xe*Xe)-$e,Ie.distX=v(Le)?Math.abs(Le)-$e:Number.MAX_VALUE})(ue,ie);let ye=(ue[de]||0)-(ie[de]||0)+(ae&&((we=ie.marker)==null?void 0:we.radius)||0),_e=ye<0?"left":"right",ve=ye<0?"right":"left";return Z[_e]&&(me=(ge=fe(ue,Z[_e],Y+1,ee))[J]<me[J]?ge:ie),Z[ve]&&Math.sqrt(ye*ye)<me[J]&&(me=(pe=fe(ue,Z[ve],Y+1,ee))[J]<me[J]?pe:me),me}(P,this.kdTree,re,re)}pointPlacementToXValue(){let{options:P,xAxis:_}=this,b=P.pointPlacement;return b==="between"&&(b=_.reversed?-.5:.5),ce(b)?b*(P.pointRange||_.pointRange):0}isPointInside(P){let{chart:_,xAxis:b,yAxis:B}=this,{plotX:$=-1,plotY:X=-1}=P;return X>=0&&X<=(B?B.len:_.plotHeight)&&$>=0&&$<=(b?b.len:_.plotWidth)}drawTracker(){var Z;let P=this,_=P.options,b=_.trackByArea,B=[].concat((b?P.areaPath:P.graphPath)||[]),$=P.chart,X=$.pointer,J=$.renderer,re=((Z=$.options.tooltip)==null?void 0:Z.snap)||0,ae=()=>{_.enableMouseTracking&&$.hoverSeries!==P&&P.onMouseOver()},fe="rgba(192,192,192,"+(C?1e-4:.002)+")",ue=P.tracker;ue?ue.attr({d:B}):P.graph&&(P.tracker=ue=J.path(B).attr({visibility:P.visible?"inherit":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(P.group),$.styledMode||ue.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:fe,fill:b?fe:"none","stroke-width":P.graph.strokeWidth()+(b?0:2*re)}
28),[P.tracker,P.markerGroup,P.dataLabelsGroup].forEach(Y=>{Y&&(Y.addClass("highcharts-tracker").on("mouseover",ae).on("mouseout",ee=>{X==null||X.onTrackerMouseOut(ee)}),_.cursor&&!$.styledMode&&Y.css({cursor:_.cursor}),Y.on("touchstart",ae))})),L(this,"afterDrawTracker")}addPoint(P,_,b,B,$){let X,J,re=this.options,ae=this.data,fe=this.chart,ue=this.xAxis,Z=ue&&ue.hasNames&&ue.names,Y=re.data,ee=this.xData;_=oe(_,!0);let ie={series:this};this.pointClass.prototype.applyOptions.apply(ie,[P]);let de=ie.x;if(J=ee.length,this.requireSorting&&de<ee[J-1])for(X=!0;J&&ee[J-1]>de;)J--;this.updateParallelArrays(ie,"splice",[J,0,0]),this.updateParallelArrays(ie,J),Z&&ie.name&&(Z[de]=ie.name),Y.splice(J,0,P),(X||this.processedData)&&(this.data.splice(J,0,null),this.processData()),re.legendType==="point"&&this.generatePoints(),b&&(ae[0]&&ae[0].remove?ae[0].remove(!1):(ae.shift(),this.updateParallelArrays(ie,"shift"),Y.shift())),$!==!1&&L(this,"addPoint",{point:ie}),this.isDirty=!0,this.isDirtyData=!0,_&&fe.redraw(B)}removePoint(P,_,b){let B=this,$=B.data,X=$[P],J=B.points,re=B.chart,ae=function(){J&&J.length===$.length&&J.splice(P,1),$.splice(P,1),B.options.data.splice(P,1),B.updateParallelArrays(X||{series:B},"splice",[P,1]),X&&X.destroy(),B.isDirty=!0,B.isDirtyData=!0,_&&re.redraw()};F(b,re),_=oe(_,!0),X?X.firePointEvent("remove",null,ae):ae()}remove(P,_,b,B){let $=this,X=$.chart;
28function J(){$.destroy(B),X.isDirtyLegend=X.isDirtyBox=!0,X.linkSeries(B),oe(P,!0)&&X.redraw(_)}b!==!1?L($,"remove",null,J):J()}update(P,_){var ge,pe,me;L(this,"update",{options:P=y(P,this.userOptions)});let b=this,B=b.chart,$=b.userOptions,X=b.initialType||b.type,J=B.options.plotOptions,re=I[X].prototype,ae=b.finishedAnimating&&{animation:!1},fe={},ue,Z,Y=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ee=P.type||$.type||B.options.chart.type,ie=!(this.hasDerivedData||ee&&ee!==this.type||P.pointStart!==void 0||P.pointInterval!==void 0||P.relativeXValue!==void 0||P.joinBy||P.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(ye=>b.hasOptionChanged(ye)));ee=ee||X,ie&&(Y.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),P.visible!==!1&&Y.push("area","graph"),b.parallelArrays.forEach(function(ye){Y.push(ye+"Data")}),P.data&&(P.dataSorting&&f(b.options.dataSorting,P.dataSorting),this.setData(P.data,!1))),P=ne($,{index:$.index===void 0?b.index:$.index,pointStart:((ge=J==null?void 0:J.series)==null?void 0:ge.pointStart)??$.pointStart??((pe=b.xData)==null?void 0:pe[0])},!ie&&{data:b.options.data},P,ae),ie&&P.data&&(P.data=b.options.data),(Y=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(Y)).forEach(function(ye){Y[ye]=b[ye],delete b[ye]});let de=!1;if(I[ee]){if(de=ee!==b.type,b.remove(!1,!1,!1,!0),de)if(B.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(b,I[ee].prototype);else{let ye=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(Z in re)b[Z]=void 0;f(b,I[ee].prototype),ye?b.hcEvents=ye:delete b.hcEvents}}else g(17,!0,B,{missingModuleFor:ee});if(Y.forEach(function(ye){b[ye]=Y[ye]}),b.init(B,P),ie&&this.points)for(let ye of((ue=b.options).visible===!1?(fe.graphic=1,fe.dataLabel=1):(this.hasMarkerChanged(ue,$)&&(fe.graphic=1),(me=b.hasDataLabels)!=null&&me.call(b)||(fe.dataLabel=1)),this.points))ye&&ye.series&&(ye.resolveColor(),Object.keys(fe).length&&ye.destroyElements(fe),ue.showInLegend===!1&&ye.legendItem&&B.legend.destroyItem(ye));b.initialType=X,B.linkSeries(),B.setSortedData(),de&&b.linkedSeries.length&&(b.isDirtyData=!0),L(this,"afterUpdate"),oe(_,!0)&&B.redraw(!!ie&&void 0)}setName(P){this.name=this.options.name=this.userOptions.name=P,this.chart.isDirtyLegend=!0}hasOptionChanged(P){var J,re;let _=this.chart,b=this.options[P],B=_.options.plotOptions,$=this.userOptions[P],X=oe((J=B==null?void 0:B[this.type])==null?void 0:J[P],(re=B==null?void 0:B.series)==null?void 0:re[P]);return $&&!v(X)?b!==$:b!==oe(X,b)}onMouseOver(){let P=this.chart,_=P.hoverSeries,b=P.pointer;b==null||b.setHoverChartIndex(),_&&_!==this&&_.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),P.hoverSeries=this}onMouseOut(){let P=this.options,_=this.chart,b=_.tooltip,B=_.hoverPoint;_.hoverSeries=null,B&&B.onMouseOut(),this&&P.events.mouseOut&&L(this,"mouseOut"),b&&!this.stickyTracking&&(!b.shared||this.noSharedTooltip)&&b.hide(),_.series.forEach(function($){$.setState("",!0)})}setState(P,_){let b=this,B=b.options,$=b.graph,X=B.inactiveOtherPoints,J=
28B.states,re=oe(J[P||"normal"]&&J[P||"normal"].animation,b.chart.options.chart.animation),ae=B.lineWidth,fe=B.opacity;if(P=P||"",b.state!==P&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(ue){ue&&(b.state&&ue.removeClass("highcharts-series-"+b.state),P&&ue.addClass("highcharts-series-"+P))}),b.state=P,!b.chart.styledMode)){if(J[P]&&J[P].enabled===!1)return;if(P&&(ae=J[P].lineWidth||ae+(J[P].lineWidthPlus||0),fe=oe(J[P].opacity,fe)),$&&!$.dashstyle&&ce(ae))for(let ue of[$,...this.zones.map(Z=>Z.graph)])ue==null||ue.animate({"stroke-width":ae},re);X||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(ue){ue&&ue.animate({opacity:fe},re)})}_&&X&&b.points&&b.setAllPointsToState(P||void 0)}setAllPointsToState(P){this.points.forEach(function(_){_.setState&&_.setState(P)})}setVisible(P,_){var re;let b=this,B=b.chart,$=B.options.chart.ignoreHiddenSeries,X=b.visible;b.visible=P=b.options.visible=b.userOptions.visible=P===void 0?!X:P;let J=P?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(ae=>{var fe;(fe=b[ae])==null||fe[J]()}),(B.hoverSeries===b||((re=B.hoverPoint)==null?void 0:re.series)===b)&&b.onMouseOut(),b.legendItem&&B.legend.colorizeItem(b,P),b.isDirty=!0,b.options.stacking&&B.series.forEach(ae=>{ae.options.stacking&&ae.visible&&(ae.isDirty=!0)}),b.linkedSeries.forEach(ae=>{ae.setVisible(P,!1)}),$&&(B.isDirtyBox=!0),L(b,J),_!==!1&&B.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(P){this.selected=P=this.options.selected=P===void 0?!this.selected:P,this.checkbox&&(this.checkbox.checked=P),L(this,P?"select":"unselect")}shouldShowTooltip(P,_,b={}){return b.series=this,b.visiblePlotOnly=!0,this.chart.isInsidePlot(P,_,b)}drawLegendSymbol(P,_){var b;(b=c[this.options.legendSymbol||"rectangle"])==null||b.call(this,P,_)}}return W.defaultOptions=h,W.types=m.seriesTypes,W.registerType=m.registerSeriesType,f(W.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:d,requireSorting:!0,sorted:!0}),m.series=W,W}),i(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h,m){var w;let{animObject:k,setAnimation:A}=r,{registerEventOptions:F}=s,{composed:j,marginNames:U}=o,{distribute:C}=d,{format:x}=h,{addEvent:I,createElement:V,css:S,defined:E,discardElement:R,find:T,fireEvent:v,isNumber:p,merge:y,pick:u,pushUnique:g,relativeLength:f,stableSort:M,syncTimeout:L}=m;class H{constructor(z,Q){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=z,this.setOptions(Q),Q.enabled&&(this.render(),F(this,Q),I(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),I(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(z){let Q=u(z.padding,8);this.options=z,this.chart.styledMode||(this.itemStyle=z.itemStyle,this.itemHiddenStyle=y(this.itemStyle,z.itemHiddenStyle)),this.itemMarginTop=z.itemMarginTop,this.itemMarginBottom=z.itemMarginBottom,this.padding=Q,this.initialItemY=Q-5,this.symbolWidth=u(z.symbolWidth,16),this.pages=[],this.proximate=z.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(z,Q){let ce=this.chart;this.setOptions(y(!0,this.options,z)),"events"in this.options&&F(this,this.options),this.destroy(),ce.isDirtyLegend=ce.isDirtyBox=!0,u(Q,!0)&&ce.redraw(),v(this,"afterUpdate",{redraw:Q})}colorizeItem(z,Q){let{area:ce,group:G,label:ne,line:se,symbol:oe}=z.legendItem||{};if(G==null||G[Q?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:le={}}=this,D=le.color,{fillColor:O,fillOpacity:W,lineColor:te,marker:P}=z.options,_=b=>(!Q&&(b.fill&&(b.fill=D),b.stroke&&(b.stroke=D)),b);ne==null||ne.css(y(Q?this.itemStyle:le)),se==null||se.attr(_({stroke:te||z.color})),oe&&oe.attr(_(P&&oe.isMarker?z.pointAttribs():{fill:z.color})),ce==null||ce.attr(_({fill:O||z.color,"fill-opacity":O?1:W??.75}))}v(this,"afterColorizeItem",{item:z,visible:Q})}
vendor: 17,400 bytes, line 28
28positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(z){let{group:Q,x:ce=0,y:G=0}=z.legendItem||{},ne=this.options,se=ne.symbolPadding,oe=!ne.rtl,le=z.checkbox;if(Q&&Q.element){let D={translateX:oe?ce:this.legendWidth-ce-2*se-4,translateY:G};Q[E(Q.translateY)?"animate":"attr"](D,void 0,()=>{v(this,"afterPositionItem",{item:z})})}le&&(le.x=ce,le.y=G)}destroyItem(z){let Q=z.checkbox,ce=z.legendItem||{};for(let G of["group","label","line","symbol"])ce[G]&&(ce[G]=ce[G].destroy());Q&&R(Q),z.legendItem=void 0}destroy(){for(let z of this.getAllItems())this.destroyItem(z);for(let z of["clipRect","up","down","pager","nav","box","title","group"])this[z]&&(this[z]=this[z].destroy());this.display=null}positionCheckboxes(){let z,Q=this.group&&this.group.alignAttr,ce=this.clipHeight||this.legendHeight,G=this.titleHeight;Q&&(z=Q.translateY,this.allItems.forEach(function(ne){let se,oe=ne.checkbox;oe&&(se=z+G+oe.y+(this.scrollOffset||0)+3,S(oe,{left:Q.translateX+ne.checkboxOffset+oe.x-20+"px",top:se+"px",display:this.proximate||se>z-6&&se<z+ce-6?"":"none"}))},this))}renderTitle(){let z=this.options,Q=this.padding,ce=z.title,G,ne=0;ce.text&&(this.title||(this.title=this.chart.renderer.label(ce.text,Q-3,Q-4,void 0,void 0,void 0,z.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(ce.style),this.title.add(this.group)),ce.width||this.title.css({width:this.maxLegendWidth+"px"}),ne=(G=this.title.getBBox()).height,this.offsetWidth=G.width,this.contentGroup.attr({translateY:ne})),this.titleHeight=ne}setText(z){let Q=this.options;z.legendItem.label.attr({text:Q.labelFormat?x(Q.labelFormat,z,this.chart):Q.labelFormatter.call(z)})}renderItem(z){let Q=z.legendItem=z.legendItem||{},ce=this.chart,G=ce.renderer,ne=this.options,se=ne.layout==="horizontal",oe=this.symbolWidth,le=ne.symbolPadding||0,D=this.itemStyle,O=this.itemHiddenStyle,W=se?u(ne.itemDistance,20):0,te=!ne.rtl,P=!z.series,_=!P&&z.series.drawLegendSymbol?z.series:z,b=_.options,B=!!this.createCheckboxForItem&&b&&b.showCheckbox,$=ne.useHTML,X=z.options.className,J=Q.label,re=oe+le+W+(B?20:0);!J&&(Q.group=G.g("legend-item").addClass("highcharts-"+_.type+"-series highcharts-color-"+z.colorIndex+(X?" "+X:"")+(P?" highcharts-series-"+z.index:"")).attr({zIndex:1}).add(this.scrollGroup),Q.label=J=G.text("",te?oe+le:-le,this.baseline||0,$),ce.styledMode||J.css(y(z.visible?D:O)),J.attr({align:te?"left":"right",zIndex:2}).add(Q.group),!this.baseline&&(this.fontMetrics=G.fontMetrics(J),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,J.attr("y",this.baseline),this.symbolHeight=u(ne.symbolHeight,this.fontMetrics.f),ne.squareSymbol&&(this.symbolWidth=u(ne.symbolWidth,Math.max(this.symbolHeight,16)),re=this.symbolWidth+le+W+(B?20:0),te&&J.attr("x",this.symbolWidth+le))),_.drawLegendSymbol(this,z),this.setItemEvents&&this.setItemEvents(z,J,$)),B&&!z.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(z),this.colorizeItem(z,z.visible),(ce.styledMode||!D.width)&&J.css({width:(ne.itemWidth||this.widthOption||ce.spacingBox.width)-re+"px"}),this.setText(z);let ae=J.getBBox(),fe=this.fontMetrics&&this.fontMetrics.h||0;z.itemWidth=z.checkboxOffset=ne.itemWidth||Q.labelWidth||ae.width+re,this.maxItemWidth=Math.max(this.maxItemWidth,z.itemWidth),this.totalItemWidth+=z.itemWidth,this.itemHeight=z.itemHeight=Math.round(Q.labelHeight||(ae.height>1.5*fe?ae.height:fe))}layoutItem(z){let Q=this.options,ce=this.padding,G=Q.layout==="horizontal",ne=z.itemHeight,se=this.itemMarginBottom,oe=this.itemMarginTop,le=G?u(Q.itemDistance,20):0,D=this.maxLegendWidth,O=Q.alignColumns&&this.totalItemWidth>D?this.maxItemWidth:z.itemWidth,W=z.legendItem||{};G&&this.itemX-ce+O>D&&(this.itemX=ce,this.lastLineHeight&&(this.itemY+=oe+this.lastLineHeight+se),this.lastLineHeight=0),this.lastItemY=oe+this.itemY+se,this.lastLineHeight=Math.max(ne,this.lastLineHeight),W.x=this.itemX,W.y=this.itemY,G?this.itemX+=O:(this.itemY+=oe+ne+se,this.lastLineHeight=ne),this.offsetWidth=this.widthOption||Math.max((G?this.itemX-ce-(z.checkbox?0:le):O)+ce,this.offsetWidth)}getAllItems(){let z=[];return this.chart.series.forEach(function(Q){let ce=Q&&Q.options;Q&&u(ce.showInLegend,!E(ce.linkedTo)&&void 0,!0)&&(z=z.concat((Q.legendItem||{}).labels||(ce.legendType==="point"?Q.data:Q)))}),v(this,"afterGetAllItems",{allItems:z}),z}getAlignment(){let z=this.options;return this.proximate?z.align.charAt(0)+"tv":z.floating?"":z.align.charAt(0)+z.verticalAlign.charAt(0)+z.layout.charAt(0)}adjustMargins(z,Q){let ce=this.chart,G=this.options,ne=this.getAlignment();ne&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(se,oe){se.test(ne)&&!E(z[oe])&&(ce[U[oe]]=Math.max(ce[U[oe]],ce.legend[(oe+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][oe]*G[oe%2?"x":"y"]+u(G.margin,12)+Q[oe]+(ce.titleOffset[oe]||0)))})}proximatePositions(){let z,Q=this.chart,ce=[],G=this.options.align==="left";for(let ne of(this.allItems.forEach(function(se){let oe,le,D=G,O,W;se.yAxis&&(se.xAxis.options.reversed&&(D=!D),se.points&&(oe=T(D?se.points:se.points.slice(0).reverse(),function(te){return p(te.plotY)})),le=this.itemMarginTop+se.legendItem.label.getBBox().height+this.itemMarginBottom,W=se.yAxis.top-Q.plotTop,O=se.visible?(oe?oe.plotY:se.yAxis.height)+(W-.3*le):W+se.yAxis.height,ce.push({target:O,size:le,item:se}))},this),C(ce,Q.plotHeight)))z=ne.item.legendItem||{},p(ne.pos)&&(z.y=Q.plotTop-Q.spacing[0]+ne.pos)}render(){let z=this.chart,Q=z.renderer,ce=this.options,G=this.padding,ne=this.getAllItems(),se,oe,le,D=this.group,O,W=this.box;this.itemX=G,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=f(ce.width,z.spacingBox.width-G),O=z.spacingBox.width-2*G-ce.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(O/=2),this.maxLegendWidth=this.widthOption||O,D||(this.group=D=Q.g("legend").addClass(ce.className||"").attr({zIndex:7}).add(),this.contentGroup=Q.g().attr({zIndex:1}).add(D),this.scrollGroup=Q.g().add(this.contentGroup)),this.renderTitle(),M(ne,(te,P)=>(te.options&&te.options.legendIndex||0)-(P.options&&P.options.legendIndex||0)),ce.reversed&&ne.reverse(),this.allItems=ne,this.display=se=!!ne.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,ne.forEach(this.renderItem,this),ne.forEach(this.layoutItem,this),oe=(this.widthOption||this.offsetWidth)+G,le=this.lastItemY+this.lastLineHeight+this.titleHeight,le=this.handleOverflow(le)+G,W||(this.box=W=Q.rect().addClass("highcharts-legend-box").attr({r:ce.borderRadius}).add(D)),z.styledMode||W.attr({stroke:ce.borderColor,"stroke-width":ce.borderWidth||0,fill:ce.backgroundColor||"none"}).shadow(ce.shadow),oe>0&&le>0&&W[W.placed?"animate":"attr"](W.crisp.call({},{x:0,y:0,width:oe,height:le},W.strokeWidth())),D[se?"show":"hide"](),z.styledMode&&D.getStyle("display")==="none"&&(oe=le=0),this.legendWidth=oe,this.legendHeight=le,se&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")}align(z=this.chart.spacingBox){let Q=this.chart,ce=this.options,G=z.y;/(lth|ct|rth)/.test(this.getAlignment())&&Q.titleOffset[0]>0?G+=Q.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Q.titleOffset[2]>0&&(G-=Q.titleOffset[2]),G!==z.y&&(z=y(z,{y:G})),Q.hasRendered||(this.group.placed=!1),this.group.align(y(ce,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":ce.verticalAlign}),!0,z)}handleOverflow(z){let Q=this,ce=this.chart,G=ce.renderer,ne=this.options,se=ne.y,oe=ne.verticalAlign==="top",le=this.padding,D=ne.maxHeight,O=ne.navigation,W=u(O.animation,!0),te=O.arrowSize||12,P=this.pages,_=this.allItems,b=function(ue){typeof ue=="number"?fe.attr({height:ue}):fe&&(Q.clipRect=fe.destroy(),Q.contentGroup.clip()),Q.contentGroup.div&&(Q.contentGroup.div.style.clip=ue?"rect("+le+"px,9999px,"+(le+ue)+"px,0)":"auto")},B=function(ue){return Q[ue]=G.circle(0,0,1.3*te).translate(te/2,te/2).add(ae),ce.styledMode||Q[ue].attr("fill","rgba(0,0,0,0.0001)"),Q[ue]},$,X,J,re=ce.spacingBox.height+(oe?-se:se)-le,ae=this.nav,fe=this.clipRect;return ne.layout!=="horizontal"||ne.verticalAlign==="middle"||ne.floating||(re/=2),D&&(re=Math.min(re,D)),P.length=0,z&&re>0&&z>re&&O.enabled!==!1?(this.clipHeight=$=Math.max(re-20-this.titleHeight-le,0),this.currentPage=u(this.currentPage,1),this.fullHeight=z,_.forEach((ue,Z)=>{let Y=(J=ue.legendItem||{}).y||0,ee=Math.round(J.label.getBBox().height),ie=P.length;(!ie||Y-P[ie-1]>$&&(X||Y)!==P[ie-1])&&(P.push(X||Y),ie++),J.pageIx=ie-1,X&&((_[Z-1].legendItem||{}).pageIx=ie-1),Z===_.length-1&&Y+ee-P[ie-1]>$&&Y>P[ie-1]&&(P.push(Y),J.pageIx=ie),Y!==X&&(X=Y)}),fe||(fe=Q.clipRect=G.clipRect(0,le-2,9999,0),Q.contentGroup.clip(fe)),b($),ae||(this.nav=ae=G.g().attr({zIndex:1}).add(this.group),this.up=G.symbol("triangle",0,0,te,te).add(ae),B("upTracker").on("click",function(){Q.scroll(-1,W)}),this.pager=G.text("",15,10).addClass("highcharts-legend-navigation"),!ce.styledMode&&O.style&&this.pager.css(O.style),this.pager.add(ae),this.down=G.symbol("triangle-down",0,0,te,te).add(ae),B("downTracker").on("click",function(){Q.scroll(1,W)})),Q.scroll(0),z=re):ae&&(b(),this.nav=ae.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),z}scroll(z,Q){let ce=this.chart,G=this.pages,ne=G.length,se=this.clipHeight,oe=this.options.navigation,le=this.pager,D=this.padding,O=this.currentPage+z;O>ne&&(O=ne),O>0&&(Q!==void 0&&A(Q,ce),this.nav.attr({translateX:D,translateY:se+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(W){W.attr({class:O===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),le.attr({text:O+"/"+ne}),[this.down,this.downTracker].forEach(function(W){W.attr({x:18+this.pager.getBBox().width,class:O===ne?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),ce.styledMode||(this.up.attr({fill:O===1?oe.inactiveColor:oe.activeColor}),this.upTracker.css({cursor:O===1?"default":"pointer"}),this.down.attr({fill:O===ne?oe.inactiveColor:oe.activeColor}),this.downTracker.css({cursor:O===ne?"default":"pointer"})),this.scrollOffset=-G[O-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=O,this.positionCheckboxes(),L(()=>{v(this,"afterScroll",{currentPage:O})},k(u(Q,ce.renderer.globalAnimation,!0)).duration))}setItemEvents(z,Q,ce){let G=this,ne=z.legendItem||{},se=G.chart.renderer.boxWrapper,oe=z instanceof c,le=z instanceof a,D="highcharts-legend-"+(oe?"point":"series")+"-active",O=G.chart.styledMode,W=ce?[Q,ne.symbol]:[ne.group],te=P=>{G.allItems.forEach(_=>{z!==_&&[_].concat(_.linkedSeries||[]).forEach(b=>{b.setState(P,!oe)})})};for(let P of W)P&&P.on("mouseover",function(){z.visible&&te("inactive"),z.setState("hover"),z.visible&&se.addClass(D),O||Q.css(G.options.itemHoverStyle)}).on("mouseout",function(){G.chart.styledMode||Q.css(y(z.visible?G.itemStyle:G.itemHiddenStyle)),te(""),se.removeClass(D),z.setState()}).on("click",function(_){let b=function(){z.setVisible&&z.setVisible(),te(z.visible?"inactive":"")};se.removeClass(D),v(G,"itemClick",{browserEvent:_,legendItem:z},b),oe?z.firePointEvent("legendItemClick",{browserEvent:_}):le&&v(z,"legendItemClick",{browserEvent:_})})}createCheckboxForItem(z){z.checkbox=V("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:z.selected,defaultChecked:z.selected},this.options.itemCheckboxStyle,this.chart.container),I(z.checkbox,"click",function(Q){let ce=Q.target;v(z.series||z,"checkboxClick",{checked:ce.checked,item:z},function(){z.select()})})}}return(w=H).compose=function(q){g(j,"Core.Legend")&&I(q,"beforeMargins",function(){this.legend=new w(this,this.options.legend)})},H}),i(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Axis/Tick.js"]],function(r,s,o,a,c,d,h,m,w,k,A,F,j,U){let{animate:C,animObject:x,setAnimation:I}=r,{defaultOptions:V,defaultTime:S}=o,{numberFormat:E}=a,{registerEventOptions:R}=c,{charts:T,doc:v,marginNames:p,svg:y,win:u}=d,{seriesTypes:g}=w,{addEvent:f,attr:M,createElement:L,css:H,defined:q,diffObjects:z,discardElement:Q,erase:ce,error:G,extend:ne,find:se,fireEvent:oe,getStyle:le,isArray:D,isNumber:O,isObject:W,isString:te,merge:P,objectEach:_,pick:b,pInt:B,relativeLength:$,removeEvent:X,splat:J,syncTimeout:re,uniqueKey:ae}=F;class fe{static chart(Z,Y,ee){return new fe(Z,Y,ee)}constructor(Z,Y,ee){this.sharedClips={};let ie=[...arguments];(te(Z)||Z.nodeName)&&(this.renderTo=ie.shift()),this.init(ie[0],ie[1])}setZoomOptions(){let Z=this.options.chart,Y=Z.zooming;this.zooming={...Y,type:b(Z.zoomType,Y.type),key:b(Z.zoomKey,Y.key),pinchType:b(Z.pinchType,Y.pinchType),singleTouch:b(Z.zoomBySingleTouch,Y.singleTouch,!1),resetButton:P(Y.resetButton,Z.resetZoomButton)}}init(Z,Y){oe(this,"init",{args:arguments},function(){let ee=P(V,Z),ie=ee.chart;this.userOptions=ne({},Z),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=Y,this.isResizing=0,this.options=ee,this.axes=[],this.series=[],this.time=Z.time&&Object.keys(Z.time).length?new A(Z.time):d.time,this.numberFormatter=ie.numberFormatter||E,this.styledMode=ie.styledMode,this.hasCartesianSeries=ie.showAxes,this.index=T.length,T.push(this),d.chartCount++,R(this,ie),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),oe(this,"afterInit"),this.firstRender()})}initSeries(Z){let Y=this.options.chart,ee=Z.type||Y.type,ie=g[ee];ie||G(17,!0,this,{missingModuleFor:ee});let de=new ie;return typeof de.init=="function"&&de.init(this,Z),de}setSortedData(){this.getSeriesOrderByLinks().forEach(function(Z){Z.points||Z.data||!Z.enabledDataSorting||Z.setData(Z.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(Z,Y){return Z.linkedSeries.length||Y.linkedSeries.length?Y.linkedSeries.length-Z.linkedSeries.length:0})}orderItems(Z,Y=0){let ee=this[Z],ie=this.options[Z]=J(this.options[Z]).slice(),de=this.userOptions[Z]=this.userOptions[Z]?J(this.userOptions[Z]).slice():[];if(this.hasRendered&&(ie.splice(Y),de.splice(Y)),ee)for(let ge=Y,pe=ee.length;ge<pe;++ge){let me=ee[ge];me&&(me.index=ge,me instanceof m&&(me.name=me.getName()),me.options.isInternal||(ie[ge]=me.options,de[ge]=me.userOptions))}}isInsidePlot(Z,Y,ee={}){var Se;let{inverted:ie,plotBox:de,plotLeft:ge,plotTop:pe,scrollablePlotBox:me}=this,{scrollLeft:ye=0,scrollTop:_e=0}=ee.visiblePlotOnly&&((Se=this.scrollablePlotArea)==null?void 0:Se.scrollingContainer)||{},ve=ee.series,we=ee.visiblePlotOnly&&me||de,Ce=ee.inverted?Y:Z,Ie=ee.inverted?Z:Y,Te={x:Ce,y:Ie,isInsidePlot:!0,options:ee};if(!ee.ignoreX){let Le=ve&&(ie&&!this.polar?ve.yAxis:ve.xAxis)||{pos:ge,len:1/0},Oe=ee.paneCoordinates?Le.pos+Ce:ge+Ce;Oe>=Math.max(ye+ge,Le.pos)&&Oe<=Math.min(ye+ge+we.width,Le.pos+Le.len)||(Te.isInsidePlot=!1)}if(!ee.ignoreY&&Te.isInsidePlot){let Le=!ie&&ee.axis&&!ee.axis.isXAxis&&ee.axis||ve&&(ie?ve.xAxis:ve.yAxis)||{pos:pe,len:1/0},Oe=ee.paneCoordinates?Le.pos+Ie:pe+Ie;Oe>=Math.max(_e+pe,Le.pos)&&Oe<=Math.min(_e+pe+we.height,Le.pos+Le.len)||(Te.isInsidePlot=!1)}return oe(this,"afterIsInsidePlot",Te),Te.isInsidePlot}redraw(Z){oe(this,"beforeRedraw");let Y=this.hasCartesianSeries?this.axes:this.colorAxis||[],ee=this.series,ie=this.pointer,de=this.legend,ge=this.userOptions.legend,pe=this.renderer,me=pe.isHidden(),ye=[],_e,ve,we,Ce=this.isDirtyBox,Ie=this.isDirtyLegend,Te;for(pe.rootFontSize=pe.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),I(!!this.hasRendered&&Z,this),me&&this.temporaryDisplay(),this.layOutTitles(!1),we=ee.length;we--;)if(((Te=ee[we]).options.stacking||Te.options.centerInCategory)&&(ve=!0,Te.isDirty)){_e=!0;break}if(_e)for(we=ee.length;we--;)(Te=ee[we]).options.stacking&&(Te.isDirty=!0);ee.forEach(function(Se){Se.isDirty&&(Se.options.legendType==="point"?(typeof Se.updateTotals=="function"&&Se.updateTotals(),Ie=!0):ge&&(ge.labelFormatter||ge.labelFormat)&&(Ie=!0)),Se.isDirtyData&&oe(Se,"updatedData")}),Ie&&de&&de.options.enabled&&(de.render(),this.isDirtyLegend=!1),ve&&this.getStacks(),Y.forEach(function(Se){Se.updateNames(),Se.setScale()}),this.getMargins(),Y.forEach(function(Se){Se.isDirty&&(Ce=!0)}),Y.forEach(function(Se){let Le=Se.min+","+Se.max;Se.extKey!==Le&&(Se.extKey=Le,ye.push(function(){oe(Se,"afterSetExtremes",ne(Se.eventArgs,Se.getExtremes())),delete Se.eventArgs})),(Ce||ve)&&Se.redraw()}),Ce&&this.drawChartBox(),oe(this,"predraw"),ee.forEach(function(Se){(Ce||Se.isDirty)&&Se.visible&&Se.redraw(),Se.isDirtyData=!1}),ie&&ie.reset(!0),pe.draw(),oe(this,"redraw"),oe(this,"render"),me&&this.temporaryDisplay(!0),ye.forEach(function(Se){Se.call()})}get(Z){let Y=this.series;function ee(de){return de.id===Z||de.options&&de.options.id===Z}let ie=se(this.axes,ee)||se(this.series,ee);for(let de=0;!ie&&de<Y.length;de++)ie=se(Y[de].points||[],ee);return ie}getAxes(){let Z=this.userOptions;for(let Y of(oe(this,"getAxes"),["xAxis","yAxis"]))for(let ee of Z[Y]=J(Z[Y]||{}))new s(this,ee,Y);oe(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((Z,Y)=>
28(Y.getPointsCollection().forEach(ee=>{b(ee.selectedStaging,ee.selected)&&Z.push(ee)}),Z),[])}getSelectedSeries(){return this.series.filter(function(Z){return Z.selected})}setTitle(Z,Y,ee){this.applyDescription("title",Z),this.applyDescription("subtitle",Y),this.applyDescription("caption",void 0),this.layOutTitles(ee)}applyDescription(Z,Y){let ee=this,ie=this.options[Z]=P(this.options[Z],Y),de=this[Z];de&&Y&&(this[Z]=de=de.destroy()),ie&&!de&&((de=this.renderer.text(ie.text,0,0,ie.useHTML).attr({align:ie.align,class:"highcharts-"+Z,zIndex:ie.zIndex||4}).add()).update=function(ge,pe){ee.applyDescription(Z,ge),ee.layOutTitles(pe)},this.styledMode||de.css(ne(Z==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},ie.style)),this[Z]=de)}layOutTitles(Z=!0){let Y=[0,0,0],ee=this.renderer,ie=this.spacingBox;["title","subtitle","caption"].forEach(function(ge){let pe=this[ge],me=this.options[ge],ye=me.verticalAlign||"top",_e=ge==="title"?ye==="top"?-3:0:ye==="top"?Y[0]+2:0;if(pe){pe.css({width:(me.width||ie.width+(me.widthAdjust||0))+"px"});let ve=ee.fontMetrics(pe).b,we=Math.round(pe.getBBox(me.useHTML).height);pe.align(ne({y:ye==="bottom"?ve:_e+ve,height:we},me),!1,"spacingBox"),me.floating||(ye==="top"?Y[0]=Math.ceil(Y[0]+we):ye==="bottom"&&(Y[2]=Math.ceil(Y[2]+we)))}},this),Y[0]&&(this.options.title.verticalAlign||"top")==="top"&&(Y[0]+=this.options.title.margin),Y[2]&&this.options.caption.verticalAlign==="bottom"&&(Y[2]+=this.options.caption.margin);let de=!this.titleOffset||this.titleOffset.join(",")!==Y.join(",");this.titleOffset=Y,oe(this,"afterLayOutTitles"),!this.isDirtyBox&&de&&(this.isDirtyBox=this.isDirtyLegend=de,this.hasRendered&&Z&&this.isDirtyBox&&this.redraw())}getContainerBox(){let Z=[].map.call(this.renderTo.children,ee=>{if(ee!==this.container){let ie=ee.style.display;return ee.style.display="none",[ee,ie]}}),Y={width:le(this.renderTo,"width",!0)||0,height:le(this.renderTo,"height",!0)||0};return Z.filter(Boolean).forEach(([ee,ie])=>{ee.style.display=ie}),Y}getChartSize(){var ge;let Z=this.options.chart,Y=Z.width,ee=Z.height,ie=this.getContainerBox(),de=ie.height>1&&!(!((ge=this.renderTo.parentElement)!=null&&ge.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,Y||ie.width||600),this.chartHeight=Math.max(0,$(ee,this.chartWidth)||(de?ie.height:400)),this.containerBox=ie}temporaryDisplay(Z){let Y=this.renderTo,ee;if(Z)for(;Y&&Y.style;)Y.hcOrigStyle&&(H(Y,Y.hcOrigStyle),delete Y.hcOrigStyle),Y.hcOrigDetached&&(v.body.removeChild(Y),Y.hcOrigDetached=!1),Y=Y.parentNode;else for(;Y&&Y.style&&(v.body.contains(Y)||Y.parentNode||(Y.hcOrigDetached=!0,v.body.appendChild(Y)),(le(Y,"display",!1)==="none"||Y.hcOricDetached)&&(Y.hcOrigStyle={display:Y.style.display,height:Y.style.height,overflow:Y.style.overflow},ee={display:"block",overflow:"hidden"},Y!==this.renderTo&&(ee.height=0),H(Y,ee),Y.offsetWidth||Y.style.setProperty("display","block","important")),(Y=Y.parentNode)!==v.body););}setClassName(Z){this.container.className="highcharts-container "+(Z||"")}getContainer(){var we;let Z=this.options,Y=Z.chart,ee="data-highcharts-chart",ie=ae(),de,ge=this.renderTo;ge||(this.renderTo=ge=Y.renderTo),te(ge)&&(this.renderTo=ge=v.getElementById(ge)),ge||G(13,!0,this);let pe=B(M(ge,ee));O(pe)&&T[pe]&&T[pe].hasRendered&&T[pe].destroy(),M(ge,ee,this.index),ge.innerHTML=j.emptyHTML,Y.skipClone||ge.offsetWidth||this.temporaryDisplay(),this.getChartSize();let me=this.chartHeight,ye=this.chartWidth;H(ge,{overflow:"hidden"}),this.styledMode||(de=ne({position:"relative",overflow:"hidden",width:ye+"px",height:me+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},Y.style||{}));let _e=L("div",{id:ie},de,ge);this.container=_e,this.getChartSize(),ye===this.chartWidth||(ye=this.chartWidth,this.styledMode||H(_e,{width:b((we=Y.style)==null?void 0:we.width,ye+"px")})),this.containerBox=this.getContainerBox(),this._cursor=_e.style.cursor;let ve=Y.renderer||!y?h.getRendererType(Y.renderer):k;if(this.renderer=new ve(_e,ye,me,void 0,Y.forExport,Z.exporting&&Z.exporting.allowHTML,this.styledMode),I(void 0,this),this.setClassName(Y.className),this.styledMode)for(let Ce in Z.defs)this.renderer.definition(Z.defs[Ce]);else this.renderer.setStyle(Y.style);this.renderer.chartIndex=this.index,oe(this,"afterGetContainer")}getMargins(Z){let{spacing:Y,margin:ee,titleOffset:ie}=this;this.resetMargins(),ie[0]&&!q(ee[0])&&(this.plotTop=Math.max(this.plotTop,ie[0]+Y[0])),ie[2]&&!q(ee[2])&&(this.marginBottom=Math.max(this.marginBottom,ie[2]+Y[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(ee,Y),oe(this,"getMargins"),Z||this.getAxisMargins()}getAxisMargins(){let Z=this,Y=Z.axisOffset=[0,0,0,0],ee=Z.colorAxis,ie=Z.margin,de=function(ge){ge.forEach(function(pe){pe.visible&&pe.getOffset()})};Z.hasCartesianSeries?de(Z.axes):ee&&ee.length&&de(ee),p.forEach(function(ge,pe){q(ie[pe])||(Z[ge]+=Y[pe])}),Z.setChartSize()}getOptions(){return z(this.userOptions,V)}reflow(Z){var de;let Y=this,ee=Y.containerBox,ie=Y.getContainerBox();(de=Y.pointer)==null||delete de.chartPosition,!Y.isPrinting&&!Y.isResizing&&ee&&ie.width&&((ie.width!==ee.width||ie.height!==ee.height)&&(F.clearTimeout(Y.reflowTimeout),Y.reflowTimeout=re(function(){Y.container&&Y.setSize(void 0,void 0,!1)},Z?100:0)),Y.containerBox=ie)}setReflow(){let Z=this,Y=ee=>{var ie;(ie=Z.options)!=null&&ie.chart.reflow&&Z.hasLoaded&&Z.reflow(ee)};if(typeof ResizeObserver=="function")new ResizeObserver(Y).observe(Z.renderTo);else{let ee=f(u,"resize",Y);f(this,"destroy",ee)}}setSize(Z,Y,ee){let ie=this,de=ie.renderer;ie.isResizing+=1,I(ee,ie);let ge=de.globalAnimation;ie.oldChartHeight=ie.chartHeight,ie.oldChartWidth=ie.chartWidth,Z!==void 0&&(ie.options.chart.width=Z),Y!==void 0&&(ie.options.chart.height=Y),ie.getChartSize();let{chartWidth:pe,chartHeight:me,scrollablePixelsX:ye=0,scrollablePixelsY:_e=0}=ie;(ie.isDirtyBox||pe!==ie.oldChartWidth||me!==ie.oldChartHeight)&&(ie.styledMode||(ge?C:H)(ie.container,{width:`${pe+ye}px`,height:`${me+_e}px`}
28,ge),ie.setChartSize(!0),de.setSize(pe,me,ge),ie.axes.forEach(function(ve){ve.isDirty=!0,ve.setScale()}),ie.isDirtyLegend=!0,ie.isDirtyBox=!0,ie.layOutTitles(),ie.getMargins(),ie.redraw(ge),ie.oldChartHeight=void 0,oe(ie,"resize"),setTimeout(()=>{ie&&oe(ie,"endResize")},x(ge).duration)),ie.isResizing-=1}setChartSize(Z){let Y,ee,ie,de,{chartHeight:ge,chartWidth:pe,inverted:me,spacing:ye,renderer:_e}=this,ve=this.clipOffset,we=Math[me?"floor":"round"];this.plotLeft=Y=Math.round(this.plotLeft),this.plotTop=ee=Math.round(this.plotTop),this.plotWidth=ie=Math.max(0,Math.round(pe-Y-this.marginRight)),this.plotHeight=de=Math.max(0,Math.round(ge-ee-this.marginBottom)),this.plotSizeX=me?de:ie,this.plotSizeY=me?ie:de,this.spacingBox=_e.spacingBox={x:ye[3],y:ye[0],width:pe-ye[3]-ye[1],height:ge-ye[0]-ye[2]},this.plotBox=_e.plotBox={x:Y,y:ee,width:ie,height:de},ve&&(this.clipBox={x:we(ve[3]),y:we(ve[0]),width:we(this.plotSizeX-ve[1]-ve[3]),height:we(this.plotSizeY-ve[0]-ve[2])}),Z||(this.axes.forEach(function(Ce){Ce.setAxisSize(),Ce.setAxisTranslation()}),_e.alignElements()),oe(this,"afterSetChartSize",{skipAxes:Z})}resetMargins(){oe(this,"resetMargins");let Z=this,Y=Z.options.chart,ee=Y.plotBorderWidth||0,ie=ee/2;["margin","spacing"].forEach(function(de){let ge=Y[de],pe=W(ge)?ge:[ge,ge,ge,ge];["Top","Right","Bottom","Left"].forEach(function(me,ye){Z[de][ye]=b(Y[de+me],pe[ye])})}),p.forEach(function(de,ge){Z[de]=b(Z.margin[ge],Z.spacing[ge])}),Z.axisOffset=[0,0,0,0],Z.clipOffset=[ie,ie,ie,ie],Z.plotBorderWidth=ee}drawChartBox(){let Z=this.options.chart,Y=this.renderer,ee=this.chartWidth,ie=this.chartHeight,de=this.styledMode,ge=this.plotBGImage,pe=Z.backgroundColor,me=Z.plotBackgroun
vendor: 9,982 bytes, line 28
28dColor,ye=Z.plotBackgroundImage,_e=this.plotLeft,ve=this.plotTop,we=this.plotWidth,Ce=this.plotHeight,Ie=this.plotBox,Te=this.clipRect,Se=this.clipBox,Le=this.chartBackground,Oe=this.plotBackground,Ne=this.plotBorder,Xe,$e,at,dt="animate";Le||(this.chartBackground=Le=Y.rect().addClass("highcharts-background").add(),dt="attr"),de?Xe=$e=Le.strokeWidth():($e=(Xe=Z.borderWidth||0)+(Z.shadow?8:0),at={fill:pe||"none"},(Xe||Le["stroke-width"])&&(at.stroke=Z.borderColor,at["stroke-width"]=Xe),Le.attr(at).shadow(Z.shadow)),Le[dt]({x:$e/2,y:$e/2,width:ee-$e-Xe%2,height:ie-$e-Xe%2,r:Z.borderRadius}),dt="animate",Oe||(dt="attr",this.plotBackground=Oe=Y.rect().addClass("highcharts-plot-background").add()),Oe[dt](Ie),!de&&(Oe.attr({fill:me||"none"}).shadow(Z.plotShadow),ye&&(ge?(ye!==ge.attr("href")&&ge.attr("href",ye),ge.animate(Ie)):this.plotBGImage=Y.image(ye,_e,ve,we,Ce).add())),Te?Te.animate({width:Se.width,height:Se.height}):this.clipRect=Y.clipRect(Se),dt="animate",Ne||(dt="attr",this.plotBorder=Ne=Y.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),de||Ne.attr({stroke:Z.plotBorderColor,"stroke-width":Z.plotBorderWidth||0,fill:"none"}),Ne[dt](Ne.crisp({x:_e,y:ve,width:we,height:Ce},-Ne.strokeWidth())),this.isDirtyBox=!1,oe(this,"afterDrawChartBox")}propFromSeries(){let Z,Y,ee,ie=this,de=ie.options.chart,ge=ie.options.series;["inverted","angular","polar"].forEach(function(pe){for(Y=g[de.type],ee=de[pe]||Y&&Y.prototype[pe],Z=ge&&ge.length;!ee&&Z--;)(Y=g[ge[Z].type])&&Y.prototype[pe]&&(ee=!0);ie[pe]=ee})}linkSeries(Z){let Y=this,ee=Y.series;ee.forEach(function(ie){ie.linkedSeries.length=0}),ee.forEach(function(ie){let{linkedTo:de}=ie.options;if(te(de)){let ge;(ge=de===":previous"?Y.series[ie.index-1]:Y.get(de))&&ge.linkedParent!==ie&&(ge.linkedSeries.push(ie),ie.linkedParent=ge,ge.enabledDataSorting&&ie.setDataSortingOptions(),ie.visible=b(ie.options.visible,ge.options.visible,ie.visible))}}),oe(this,"afterLinkSeries",{isUpdating:Z})}renderSeries(){this.series.forEach(function(Z){Z.translate(),Z.render()})}render(){var _e;let Z=this.axes,Y=this.colorAxis,ee=this.renderer,ie=this.options.chart.axisLayoutRuns||2,de=ve=>{ve.forEach(we=>{we.visible&&we.render()})},ge=0,pe=!0,me,ye=0;for(let ve of(this.setTitle(),oe(this,"beforeMargins"),(_e=this.getStacks)==null||_e.call(this),this.getMargins(!0),this.setChartSize(),Z)){let{options:we}=ve,{labels:Ce}=we;if(this.hasCartesianSeries&&ve.horiz&&ve.visible&&Ce.enabled&&ve.series.length&&ve.coll!=="colorAxis"&&!this.polar){ge=we.tickLength,ve.createGroups();let Ie=new U(ve,0,"",!0),Te=Ie.createLabel("x",Ce);if(Ie.destroy(),Te&&b(Ce.reserveSpace,!O(we.crossing))&&(ge=Te.getBBox().height+Ce.distance+Math.max(we.offset||0,0)),ge){Te==null||Te.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ge,0);(pe||me||ie>1)&&ye<ie;){let ve=this.plotWidth,we=this.plotHeight;for(let Ce of Z)ye===0?Ce.setScale():(Ce.horiz&&pe||!Ce.horiz&&me)&&Ce.setTickInterval(!0);ye===0?this.getAxisMargins():this.getMargins(),pe=ve/this.plotWidth>(ye?1:1.1),me=we/this.plotHeight>(ye?1:1.05),ye++}this.drawChartBox(),this.hasCartesianSeries?de(Z):Y&&Y.length&&de(Y),this.seriesGroup||(this.seriesGroup=ee.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(Z){let Y=this,ee=P(!0,this.options.credits,Z);ee.enabled&&!this.credits&&(this.credits=this.renderer.text(ee.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ee.href&&(u.location.href=ee.href)}).attr({align:ee.position.align,zIndex:8}),Y.styledMode||this.credits.css(ee.style),this.credits.add().align(ee.position),this.credits.update=function(ie){Y.credits=Y.credits.destroy(),Y.addCredits(ie)})}destroy(){let Z,Y=this,ee=Y.axes,ie=Y.series,de=Y.container,ge=de&&de.parentNode;for(oe(Y,"destroy"),Y.renderer.forExport?ce(T,Y):T[Y.index]=void 0,d.chartCount--,Y.renderTo.removeAttribute("data-highcharts-chart"),X(Y),Z=ee.length;Z--;)ee[Z]=ee[Z].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),Z=ie.length;Z--;)ie[Z]=ie[Z].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(pe){let me=Y[pe];me&&me.destroy&&(Y[pe]=me.destroy())}),de&&(de.innerHTML=j.emptyHTML,X(de),ge&&Q(de)),_(Y,function(pe,me){delete Y[me]})}firstRender(){var ie;let Z=this,Y=Z.options;Z.getContainer(),Z.resetMargins(),Z.setChartSize(),Z.propFromSeries(),Z.getAxes();let ee=D(Y.series)?Y.series:[];Y.series=[],ee.forEach(function(de){Z.initSeries(de)}),Z.linkSeries(),Z.setSortedData(),oe(Z,"beforeRender"),Z.render(),(ie=Z.pointer)==null||ie.getChartPosition(),Z.renderer.imgCount||Z.hasLoaded||Z.onload(),Z.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(Z){Z&&this.index!==void 0&&Z.apply(this,[this])},this),oe(this,"load"),oe(this,"render"),q(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:Z,title:Y}=this;!Z||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(Y&&Y.element.textContent||"").replace(/</g,"&lt;")}),Z.accessibility&&Z.accessibility.enabled===!1||G('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(Z,Y,ee){let ie,de=this;return Z&&(Y=b(Y,!0),oe(de,"addSeries",{options:Z},function(){ie=de.initSeries(Z),de.isDirtyLegend=!0,de.linkSeries(),ie.enabledDataSorting&&ie.setData(Z.data,!1),oe(de,"afterAddSeries",{series:ie}),Y&&de.redraw(ee)})),ie}addAxis(Z,Y,ee,ie){return this.createAxis(Y?"xAxis":"yAxis",{axis:Z,redraw:ee,animation:ie})}addColorAxis(Z,Y,ee){return this.createAxis("colorAxis",{axis:Z,redraw:Y,animation:ee})}createAxis(Z,Y){let ee=new s(this,Y.axis,Z);return b(Y.redraw,!0)&&this.redraw(Y.animation),ee}showLoading(Z){let Y=this,ee=Y.options,ie=ee.loading,de=function(){ge&&H(ge,{left:Y.plotLeft+"px",top:Y.plotTop+"px",width:Y.plotWidth+"px",height:Y.plotHeight+"px"})},ge=Y.loadingDiv,pe=Y.loadingSpan;ge||(Y.loadingDiv=ge=L("div",{className:"highcharts-loading highcharts-loading-hidden"},null,Y.container)),pe||(Y.loadingSpan=pe=L("span",{className:"highcharts-loading-inner"},null,ge),f(Y,"redraw",de)),ge.className="highcharts-loading",j.setElementHTML(pe,b(Z,ee.lang.loading,"")),Y.styledMode||(H(ge,ne(ie.style,{zIndex:10})),H(pe,ie.labelStyle),Y.loadingShown||(H(ge,{opacity:0,display:""}),C(ge,{opacity:ie.style.opacity||.5},{duration:ie.showDuration||0}))),Y.loadingShown=!0,de()}hideLoading(){let Z=this.options,Y=this.loadingDiv;Y&&(Y.className="highcharts-loading highcharts-loading-hidden",this.styledMode||C(Y,{opacity:0},{duration:Z.loading.hideDuration||100,complete:function(){H(Y,{display:"none"})}})),this.loadingShown=!1}update(Z,Y,ee,ie){let de,ge,pe,me=this,ye={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},_e=Z.isResponsiveOptions,ve=[];oe(me,"update",{options:Z}),_e||me.setResponsive(!1,!0),Z=z(Z,me.options),me.userOptions=P(me.userOptions,Z);let we=Z.chart;we&&(P(!0,me.options.chart,we),this.setZoomOptions(),"className"in we&&me.setClassName(we.className),("inverted"in we||"polar"in we||"type"in we)&&(me.propFromSeries(),de=!0),"alignTicks"in we&&(de=!0),"events"in we&&R(this,we),_(we,function(Te,Se){me.propsRequireUpdateSeries.indexOf("chart."+Se)!==-1&&(ge=!0),me.propsRequireDirtyBox.indexOf(Se)!==-1&&(me.isDirtyBox=!0),me.propsRequireReflow.indexOf(Se)===-1||(me.isDirtyBox=!0,_e||(pe=!0))}),!me.styledMode&&we.style&&me.renderer.setStyle(me.options.chart.style||{})),!me.styledMode&&Z.colors&&(this.options.colors=Z.colors),Z.time&&(this.time===S&&(this.time=new A(Z.time)),P(!0,me.options.time,Z.time)),_(Z,function(Te,Se){me[Se]&&typeof me[Se].update=="function"?me[Se].update(Te,!1):typeof me[ye[Se]]=="function"?me[ye[Se]](Te):Se!=="colors"&&me.collectionsWithUpdate.indexOf(Se)===-1&&P(!0,me.options[Se],Z[Se]),Se!=="chart"&&me.propsRequireUpdateSeries.indexOf(Se)!==-1&&(ge=!0)}),this.collectionsWithUpdate.forEach(function(Te){Z[Te]&&(J(Z[Te]).forEach(function(Se,Le){let Oe,Ne=q(Se.id);Ne&&(Oe=me.get(Se.id)),!Oe&&me[Te]&&(Oe=me[Te][b(Se.index,Le)])&&(Ne&&q(Oe.options.id)||Oe.options.isInternal)&&(Oe=void 0),Oe&&Oe.coll===Te&&(Oe.update(Se,!1),ee&&(Oe.touched=!0)),!Oe&&ee&&me.collectionsWithInit[Te]&&(me.collectionsWithInit[Te][0].apply(me,[Se].concat(me.collectionsWithInit[Te][1]||[]).concat([!1])).touched=!0)}),ee&&me[Te].forEach(function(Se){Se.touched||Se.options.isInternal?delete Se.touched:ve.push(Se)}))}),ve.forEach(function(Te){Te.chart&&Te.remove&&Te.remove(!1)}),de&&me.axes.forEach(function(Te){Te.update({},!1)}),ge&&me.getSeriesOrderByLinks().forEach(function(Te){Te.chart&&Te.update({},!1)},this);let Ce=we&&we.width,Ie=we&&(te(we.height)?$(we.height,Ce||me.chartWidth):we.height);pe||O(Ce)&&Ce!==me.chartWidth||O(Ie)&&Ie!==me.chartHeight?me.setSize(Ce,Ie,ie):b(Y,!0)&&me.redraw(ie),oe(me,"afterUpdate",{options:Z,redraw:Y,animation:ie})}setSubtitle(Z,Y){this.applyDescription("subtitle",Z),this.layOutTitles(Y)}setCaption(Z,Y){this.applyDescription("caption",Z),this.layOutTitles(Y)}showResetZoom(){let Z=this,Y=V.lang,ee=Z.zooming.resetButton,ie=ee.theme,de=ee.relativeTo==="chart"||ee.relativeTo==="spacingBox"?null:"plotBox";function ge(){Z.zoomOut()}oe(this,"beforeShowResetZoom",null,function(){Z.resetZoomButton=Z.renderer.button(Y.resetZoom,null,null,ge,ie).attr({align:ee.position.align,title:Y.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ee.position,!1,de)}),oe(this,"afterShowResetZoom")}zoomOut(){oe(this,"selection",{resetSelection:!0}
28,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(Z,Y){let ee=this,ie=typeof Y=="object"?Y:{enabled:Y,type:"x"},de=ie.type,ge=de&&ee[{x:"xAxis",xy:"axes",y:"yAxis"}[de]].filter(me=>me.options.panningEnabled&&!me.options.isInternal),pe=ee.options.chart;pe!=null&&pe.panning&&(pe.panning=ie),oe(this,"pan",{originalEvent:Z},()=>{ee.transform({axes:ge,event:Z,to:{x:Z.chartX-(ee.mouseDownX||0),y:Z.chartY-(ee.mouseDownY||0)},trigger:"pan"}),H(ee.container,{cursor:"move"})})}transform(Z){var Ce;let{axes:Y=this.axes,event:ee,from:ie={},reset:de,selection:ge,to:pe={},trigger:me}=Z,{inverted:ye}=this,_e=!1,ve,we;for(let Ie of((Ce=this.hoverPoints)==null||Ce.forEach(Te=>Te.setState()),Y)){let{horiz:Te,len:Se,minPointOffset:Le=0,options:Oe,reversed:Ne}=Ie,Xe=Te?"width":"height",$e=Te?"x":"y",at=b(pe[Xe],Ie.len),dt=b(ie[Xe],Ie.len),_t=10>Math.abs(at)?1:at/dt,dn=(ie[$e]||0)+dt/2-Ie.pos,Dt=dn-((pe[$e]??Ie.pos)+at/2-Ie.pos)/_t,Jn=Ne&&!ye||!Ne&&ye?-1:1;if(!de&&(dn<0||dn>Ie.len))continue;let Ye=Ie.toValue(Dt,!0)+(ge||Ie.isOrdinal?0:Le*Jn),Nt=Ie.toValue(Dt+Se/_t,!0)-(ge||Ie.isOrdinal?0:Le*Jn||0),Gt=Ie.allExtremes;if(Ye>Nt&&([Ye,Nt]=[Nt,Ye]),_t===1&&!de&&Ie.coll==="yAxis"&&!Gt){for(let lr of Ie.series){let ti=lr.getExtremes(lr.getProcessedData(!0).yData,!0);Gt??(Gt={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),O(ti.dataMin)&&O(ti.dataMax)&&(Gt.dataMin=Math.min(ti.dataMin,Gt.dataMin),Gt.dataMax=Math.max(ti.dataMax,Gt.dataMax))}Ie.allExtremes=Gt}let{dataMin:Oi,dataMax:bl,min:mo,max:On}=ne(Ie.getExtremes(),Gt||{}),yo=Oi??Oe.min,_o=bl??Oe.max,Zn=Nt-Ye,ts=Ie.categories?0:Math.min(Zn,_o-yo),Li=yo-ts*(q(Oe.min)?0:Oe.minPadding),ei=_o+ts*(q(Oe.max)?0:Oe.maxPadding),fn=Ie.allowZoomOutside||_t===1||me!=="zoom"&&_t>1,Di=Math.min(Oe.min??Li,Li,fn?mo:Li),Ni=Math.max(Oe.max??ei,ei,fn?On:ei);(!Ie.isOrdinal||Ie.options.overscroll||_t!==1||de)&&(Ye<Di&&(Ye=Di,_t>=1&&(Nt=Ye+Zn)),Nt>Ni&&(Nt=Ni,_t>=1&&(Ye=Nt-Zn)),(de||Ie.series.length&&(Ye!==mo||Nt!==On)&&Ye>=Di&&Nt<=Ni)&&(ge?ge[Ie.coll].push({axis:Ie,min:Ye,max:Nt}):(Ie.isPanning=me!=="zoom",Ie.isPanning&&(we=!0),Ie.setExtremes(de?void 0:Ye,de?void 0:Nt,!1,!1,{move:Dt,trigger:me,scale:_t}),!de&&(Ye>Di||Nt<Ni)&&me!=="mousewheel"&&(ve=!0)),_e=!0),ee&&(this[Te?"mouseDownX":"mouseDownY"]=ee[Te?"chartX":"chartY"]))}return _e&&(ge?oe(this,"selection",ge,()=>{delete Z.selection,Z.trigger="zoom",this.transform(Z)}):(!ve||we||this.resetZoomButton?!ve&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(me==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),_e}}return ne(fe.prototype,{callbacks:[],collectionsWithInit:{xAxis:[fe.prototype.addAxis,[!0]],yAxis:[fe.prototype.addAxis,[!1]],series:[fe.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
28dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),fe}),i(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,o,a){let{stop:c}=r,{composed:d}=s,{addEvent:h,createElement:m,css:w,defined:k,merge:A,pushUnique:F}=a;function j(){let x=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!x&&(this.scrollablePlotArea=x=new C(this)),x==null||x.applyFixed()}function U(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class C{static compose(I,V,S){F(d,this.compose)&&(h(I,"afterInit",U),h(V,"afterSetChartSize",E=>this.afterSetSize(E.target,E)),h(V,"render",j),h(S,"show",U))}static afterSetSize(I,V){let S,E,R,{minWidth:T,minHeight:v}=I.options.chart.scrollablePlotArea||{},{clipBox:p,plotBox:y,inverted:u,renderer:g}=I;if(!g.forExport&&(T?(I.scrollablePixelsX=S=Math.max(0,T-I.chartWidth),S&&(I.scrollablePlotBox=A(I.plotBox),y.width=I.plotWidth+=S,p[u?"height":"width"]+=S,R=!0)):v&&(I.scrollablePixelsY=E=Math.max(0,v-I.chartHeight),k(E)&&(I.scrollablePlotBox=A(I.plotBox),y.height=I.plotHeight+=E,p[u?"width":"height"]+=E,R=!1)),k(R)&&!V.skipAxes))for(let f of I.axes)f.horiz===R&&(f.setAxisSize(),f.setAxisTranslation())}constructor(I){var M;let V,S=I.options.chart,E=o.getRendererType(),R=S.scrollablePlotArea||{},T=this.moveFixedElements.bind(this),v={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};I.scrollablePixelsX&&(v.overflowX="auto"),I.scrollablePixelsY&&(v.overflowY="auto"),this.chart=I;let p=this.parentDiv=m("div",{className:"highcharts-scrolling-parent"},{position:"relative"},I.renderTo),y=this.scrollingContainer=m("div",{className:"highcharts-scrolling"},v,p),u=this.innerContainer=m("div",{className:"highcharts-inner-container"},void 0,y),g=this.fixedDiv=m("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((M=S.style)==null?void 0:M.zIndex)||0)+2,top:0},void 0,!0),f=this.fixedRenderer=new E(g,I.chartWidth,I.chartHeight,S.style);this.mask=f.path().attr({fill:S.backgroundColor||"#fff","fill-opacity":R.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),y.parentNode.insertBefore(g,y),w(I.renderTo,{overflow:"visible"}),h(I,"afterShowResetZoom",T),h(I,"afterApplyDrilldown",T),h(I,"afterLayOutTitles",T),h(y,"scroll",()=>{let{pointer:L,hoverPoint:H}=I;L&&(delete L.chartPosition,H&&(V=H),L.runPointActions(void 0,V,!0))}),u.appendChild(I.container)}applyFixed(){var O;let{chart:I,fixedRenderer:V,isDirty:S,scrollingContainer:E}=this,{axisOffset:R,chartWidth:T,chartHeight:v,container:p,plotHeight:y,plotLeft:u,plotTop:g,plotWidth:f,scrollablePixelsX:M=0,scrollablePixelsY:L=0}=I,{scrollPositionX:H=0,scrollPositionY:q=0}=I.options.chart.scrollablePlotArea||{},z=T+M,Q=v+L;V.setSize(T,v),(S??!0)&&(this.isDirty=!1,this.moveFixedElements()),c(I.container),w(p,{width:`${z}px`,height:`${Q}px`}),I.renderer.boxWrapper.attr({width:z,height:Q,viewBox:[0,0,z,Q].join(" ")}),(O=I.chartBackground)==null||O.attr({width:z,height:Q}),w(E,{width:`${T}px`,height:`${v}px`}),k(S)||(E.scrollLeft=M*H,E.scrollTop=L*q);let ce=g-R[0]-1,G=u-R[3]-1,ne=g+y+R[2]+1,se=u+f+R[1]+1,oe=u+f-M,le=g+y-L,D=[["M",0,0]];M?D=[["M",0,ce],["L",u-1,ce],["L",u-1,ne],["L",0,ne],["Z"],["M",oe,ce],["L",T,ce],["L",T,ne],["L",oe,ne],["Z"]]:L&&(D=[["M",G,0],["L",G,g-1],["L",se,g-1],["L",se,0],["Z"],["M",G,le],["L",G,v],["L",se,v],["L",se,le],["Z"]]),I.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:D})}moveFixedElements(){let I,{container:V,inverted:S,scrollablePixelsX:E,scrollablePixelsY:R}=this.chart,T=this.fixedRenderer,v=C.fixedSelectors;for(let p of(E&&!S?I=".highcharts-yaxis":E&&S||R&&!S?I=".highcharts-xaxis":R&&S&&(I=".highcharts-yaxis"),I&&v.push(`${I}:not(.highcharts-radial-axis)`,`${I}-labels:not(.highcharts-radial-axis-labels)`),v))[].forEach.call(V.querySelectorAll(p),y=>{(y.namespaceURI===T.SVG_NS?T.box:T.box.parentNode).appendChild(y),y.style.pointerEvents="auto"})}}return C.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],C}),i(n,"Core/Axis/Stacking/StackItem.js",[n["Core/Templating.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{format:a}=r,{series:c}=s,{destroyObjectProperties:d,fireEvent:h,isNumber:m,pick:w}=o;return class{constructor(k,A,F,j,U){let C=k.chart.inverted,x=k.reversed;this.axis=k;let I=this.isNegative=!!F!=!!x;this.options=A=A||{},this.x=j,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=U,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:A.align||(C?I?"left":"right":"center"),verticalAlign:A.verticalAlign||(C?"middle":I?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(C?I?"right":"left":"center")}destroy(){d(this,this.axis)}render(k){let A=this.axis.chart,F=this.options,j=F.format,U=j?a(j,this,A):F.formatter.call(this);if(this.label)this.label.attr({text:U,visibility:"hidden"});else{this.label=A.renderer.label(U,null,void 0,F.shape,void 0,void 0,F.useHTML,!1,"stack-labels");let C={r:F.borderRadius||0,text:U,padding:w(F.padding,5),visibility:"hidden"};A.styledMode||(C.fill=F.backgroundColor,C.stroke=F.borderColor,C["stroke-width"]=F.borderWidth,this.label.css(F.style||{})),this.label.attr(C),this.label.added||this.label.add(k)}
28this.label.labelrank=A.plotSizeY,h(this,"afterRender")}setOffset(k,A,F,j,U,C){let{alignOptions:x,axis:I,label:V,options:S,textAlign:E}=this,R=I.chart,T=this.getStackBox({xOffset:k,width:A,boxBottom:F,boxTop:j,defaultX:U,xAxis:C}),{verticalAlign:v}=x;if(V&&T){let p=V.getBBox(void 0,0),y=V.padding,u=w(S.overflow,"justify")==="justify",g;x.x=S.x||0,x.y=S.y||0;let{x:f,y:M}=this.adjustStackPosition({labelBox:p,verticalAlign:v,textAlign:E});T.x-=f,T.y-=M,V.align(x,!1,T),(g=R.isInsidePlot(V.alignAttr.x+x.x+f,V.alignAttr.y+x.y+M))||(u=!1),u&&c.prototype.justifyDataLabel.call(I,V,x,V.alignAttr,p,T),V.attr({x:V.alignAttr.x,y:V.alignAttr.y,rotation:S.rotation,rotationOriginX:p.width*{left:0,center:.5,right:1}[S.textAlign||"center"],rotationOriginY:p.height/2}),w(!u&&S.crop,!0)&&(g=m(V.x)&&m(V.y)&&R.isInsidePlot(V.x-y+(V.width||0),V.y)&&R.isInsidePlot(V.x+y,V.y)),V[g?"show":"hide"]()}h(this,"afterSetOffset",{xOffset:k,width:A})}adjustStackPosition({labelBox:k,verticalAlign:A,textAlign:F}){let j={bottom:0,middle:1,top:2,right:1,center:0,left:-1},U=j[A],C=j[F];return{x:k.width/2+k.width/2*C,y:k.height/2*U}}getStackBox(k){let A=this.axis,F=A.chart,{boxTop:j,defaultX:U,xOffset:C,width:x,boxBottom:I}=k,V=A.stacking.usePercentage?100:w(j,this.total,0),S=A.toPixels(V),E=k.xAxis||F.xAxis[0],R=w(U,E.translate(this.x))+C,T=Math.abs(S-A.toPixels(I||m(A.min)&&A.logarithmic&&A.logarithmic.lin2log(A.min)||0)),v=F.inverted,p=this.isNegative;return v?{x:(p?S:S-T)-F.plotLeft,y:E.height-R-x+E.top-F.plotTop,width:T,height:x}:{x:R+E.transB-F.plotLeft,y:(p?S-T:S)-F.plotTop,width:x,height:T}}}}),i(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(r,s,o,a,c){var d;let{getDeferredAnimation:h}=r,{series:{prototype:m}}=o,{addEvent:w,correctFloat:k,defined:A,destroyObjectProperties:F,fireEvent:j,isArray:U,isNumber:C,objectEach:x,pick:I}=c;function V(){let g=this.inverted;this.axes.forEach(f=>{f.stacking&&f.stacking.stacks&&f.hasVisibleSeries&&(f.stacking.oldStacks=f.stacking.stacks)}),this.series.forEach(f=>{let M=f.xAxis&&f.xAxis.options||{};f.options.stacking&&f.reserveSpace()&&(f.stackKey=[f.type,I(f.options.stack,""),g?M.top:M.left,g?M.height:M.width].join(","))})}function S(){var f;let g=this.stacking;if(g){let M=g.stacks;x(M,(L,H)=>{F(L),delete M[H]}),(f=g.stackTotalGroup)==null||f.destroy()}}function E(){this.stacking||(this.stacking=new u(this))}function R(g,f,M,L){return!A(g)||g.x!==f||L&&g.stackKey!==L?g={x:f,index:0,key:L,stackKey:L}:g.index++,g.key=[M,f,g.index].join(","),g}function T(){let g,f=this,M=f.yAxis,L=f.stackKey||"",H=M.stacking.stacks,q=f.processedXData,z=f.options.stacking,Q=f[z+"Stacker"];Q&&[L,"-"+L].forEach(ce=>{var le;let G=q.length,ne,se,oe;for(;G--;)ne=q[G],g=f.getStackIndicator(g,ne,f.index,ce),se=(le=H[ce])==null?void 0:le[ne],(oe=se==null?void 0:se.points[g.key||""])&&Q.call(f,oe,se,G)})}function v(g,f,M){let L=f.total?100/f.total:0;g[0]=k(g[0]*L),g[1]=k(g[1]*L),this.stackedYData[M]=g[1]}function p(g){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?m.setStackedPoints.call(this,g,"group"):g.stacking.resetStacks())}function y(g,f){var ae,fe;let M,L,H,q,z,Q,ce,G,ne,se=f||this.options.stacking;if(!se||!this.reserveSpace()||({group:"xAxis"}[se]||"yAxis")!==g.coll)return;let oe=this.processedXData,le=this.processedYData,D=[],O=le.length,W=this.options,te=W.threshold||0,P=W.startFromThreshold?te:0,_=W.stack,b=f?`${this.type},${se}`:this.stackKey||"",B="-"+b,$=this.negStacks,X=g.stacking,J=X.stacks,re=X.oldStacks;for(X.stacksTouched+=1,ce=0;ce<O;ce++){G=oe[ce],ne=le[ce],Q=(M=this.getStackIndicator(M,G,this.index)).key||"",J[z=(L=$&&ne<(P?0:te))?B:b]||(J[z]={}),J[z][G]||((ae=re[z])!=null&&ae[G]?(J[z][G]=re[z][G],J[z][G].total=null):J[z][G]=new a(g,g.options.stackLabels,!!L,G,_)),H=J[z][G],ne!==null?(H.points[Q]=H.points[this.index]=[I(H.cumulative,P)],A(H.cumulative)||(H.base=Q),H.touched=X.stacksTouched,M.index>
280&&this.singleStacks===!1&&(H.points[Q][0]=H.points[this.index+","+G+",0"][0])):(delete H.points[Q],delete H.points[this.index]);let ue=H.total||0;se==="percent"?(q=L?b:B,ue=$&&((fe=J[q])!=null&&fe[G])?(q=J[q][G]).total=Math.max(q.total||0,ue)+Math.abs(ne)||0:k(ue+(Math.abs(ne)||0))):se==="group"?(U(ne)&&(ne=ne[0]),ne!==null&&ue++):ue=k(ue+(ne||0)),se==="group"?H.cumulative=(ue||1)-1:H.cumulative=k(I(H.cumulative,P)+(ne||0)),H.total=ue,ne!==null&&(H.points[Q].push(H.cumulative),D[ce]=H.cumulative,H.hasValidPoints=!0)}se==="percent"&&(X.usePercentage=!0),se!=="group"&&(this.stackedYData=D),X.oldStacks={}}class u{constructor(f){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=f}buildStacks(){let f,M,L=this.axis,H=L.series,q=L.coll==="xAxis",z=L.options.reversedStacks,Q=H.length;for(this.resetStacks(),this.usePercentage=!1,M=Q;M--;)f=H[z?M:Q-M-1],q&&f.setGroupedPoints(L),f.setStackedPoints(L);if(!q)for(M=0;M<Q;M++)H[M].modifyStacks();j(L,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,x(this.stacks,f=>{x(f,M=>{M.cumulative=M.total})}))}resetStacks(){x(this.stacks,f=>{x(f,(M,L)=>{C(M.touched)&&M.touched<this.stacksTouched?(M.destroy(),delete f[L]):(M.total=null,M.cumulative=null)})})}renderStackTotals(){var Q;let f=this.axis,M=f.chart,L=M.renderer,H=this.stacks,q=h(M,((Q=f.options.stackLabels)==null?void 0:Q.animation)||!1),z=this.stackTotalGroup=this.stackTotalGroup||L.g("stack-labels").attr({zIndex:6,opacity:0}).add();z.translate(M.plotLeft,M.plotTop),x(H,ce=>{x(ce,G=>{G.render(z)})}),z.animate({opacity:1},q)}}return(d||(d={})).compose=function(g,f,M){let L=f.prototype,H=M.prototype;L.getStacks||(w(g,"init",E),w(g,"destroy",S),L.getStacks=V,H.getStackIndicator=R,H.modifyStacks=T,H.percentStacker=v,H.setGroupedPoints=p,H.setStackedPoints=y)},d}),i(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{defined:a,merge:c,isObject:d}=o;class h extends r{drawGraph(){let w=this.options,k=(this.gappedPath||this.getGraphPath).call(this),A=this.chart.styledMode;[this,...this.zones].forEach((F,j)=>{let U,C=F.graph,x=C?"animate":"attr",I=F.dashStyle||w.dashStyle;C?(C.endX=this.preventGraphAnimation?null:k.xMap,C.animate({d:k})):k.length&&(F.graph=C=this.chart.renderer.path(k).addClass("highcharts-graph"+(j?` highcharts-zone-graph-${j-1} `:" ")+(j&&F.className||"")).attr({zIndex:1}).add(this.group)),C&&!A&&(U={stroke:!j&&w.lineColor||F.color||this.color||"#cccccc","stroke-width":w.lineWidth||0,fill:this.fillGraph&&this.color||"none"},I?U.dashstyle=I:w.linecap!=="square"&&(U["stroke-linecap"]=U["stroke-linejoin"]="round"),C[x](U).shadow(j<2&&w.shadow&&c({filterUnits:"userSpaceOnUse"},d(w.shadow)?w.shadow:{}))),C&&(C.startX=k.xMap,C.isArea=k.isArea)})}getGraphPath(w,k,A){let F=this,j=F.options,U=[],C=[],x,I=j.step,V=(w=w||F.points).reversed;return V&&w.reverse(),(I={right:1,center:2}[I]||I&&3)&&V&&(I=4-I),(w=this.getValidPoints(w,!1,!(j.connectNulls&&!k&&!A))).forEach(function(S,E){let R,T=S.plotX,v=S.plotY,p=w[E-1],y=S.isNull||typeof v!="number";(S.leftCliff||p&&p.rightCliff)&&!A&&(x=!0),y&&!a(k)&&E>0?x=!j.connectNulls:y&&!k?x=!0:(E===0||x?R=[["M",S.plotX,S.plotY]]:F.getPointSpline?R=[F.getPointSpline(w,S,E)]:I?(R=I===1?[["L",p.plotX,v]]:I===2?[["L",(p.plotX+T)/2,p.plotY],["L",(p.plotX+T)/2,v]]:[["L",T,p.plotY]]).push(["L",T,v]):R=[["L",T,v]],C.push(S.x),I&&(C.push(S.x),I===2&&C.push(S.x)),U.push.apply(U,R),x=!1)}),U.xMap=C,F.graphPath=U,U}}return h.defaultOptions=c(r.defaultOptions,{legendSymbol:"lineMarker"}),s.registerSeriesType("line",h),h}),i(n,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),i(n,"Series/Area/AreaSeries.js",[n["Series/Area/AreaSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{seriesTypes:{line:a}}=s,{extend:c,merge:d,objectEach:h,pick:m}=o;class w extends a{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:A,options:F}=this;[this,...this.zones].forEach((j,U)=>{let C={},x=j.fillColor||F.fillColor,I=j.area,V=I?"animate":"attr";I?(I.endX=this.preventGraphAnimation?null:A.xMap,I.animate({d:A})):(C.zIndex=0,(I=j.area=this.chart.renderer.path(A).addClass("highcharts-area"+(U?` highcharts-zone-area-${U-1} `:" ")+(U&&j.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(C.fill=x||j.color||this.color,C["fill-opacity"]=x?1:F.fillOpacity??.75,I.css({pointerEvents:this.stickyTracking?"none":"auto"})),I[V](C),I.startX=A.xMap,I.shiftUnit=F.step?2:1})}getGraphPath(A){let F,j,U,C=a.prototype.getGraphPath,x=this.options,I=x.stacking,V=this.yAxis,S=[],E=[],R=this.index,T=V.stacking.stacks[this.stackKey],v=x.threshold,p=Math.round(V.getThreshold(x.threshold)),y=m(x.connectNulls,I==="percent"),u=function(q,z,Q){let ce=A[q],G=I&&T[ce.x].points[R],ne=ce[Q+"Null"]||0,se=ce[Q+"Cliff"]||0,oe,le,D=!0;se||ne?(oe=(ne?G[0]:G[1])+se,le=G[0]+se,D=!!ne):!I&&A[z]&&A[z].isNull&&(oe=le=v),oe!==void 0&&(E.push({plotX:F,plotY:oe===null?p:V.getThreshold(oe),isNull:D,isCl
vendor: 8,874 bytes, line 28
28iff:!0}),S.push({plotX:F,plotY:le===null?p:V.getThreshold(le),doCurve:!1}))};A=A||this.points,I&&(A=this.getStackPoints(A));for(let q=0,z=A.length;q<z;++q)I||(A[q].leftCliff=A[q].rightCliff=A[q].leftNull=A[q].rightNull=void 0),j=A[q].isNull,F=m(A[q].rectPlotX,A[q].plotX),U=I?m(A[q].yBottom,p):p,j&&!y||(y||u(q,q-1,"left"),j&&!I&&y||(E.push(A[q]),S.push({x:q,plotX:F,plotY:U})),y||u(q,q+1,"right"));let g=C.call(this,E,!0,!0);S.reversed=!0;let f=C.call(this,S,!0,!0),M=f[0];M&&M[0]==="M"&&(f[0]=["L",M[1],M[2]]);let L=g.concat(f);L.length&&L.push(["Z"]);let H=C.call(this,E,!1,y);return this.chart.series.length>1&&I&&E.some(q=>q.isCliff)&&(L.hasStackedCliffs=H.hasStackedCliffs=!0),L.xMap=g.xMap,this.areaPath=L,H}getStackPoints(A){let F=this,j=[],U=[],C=this.xAxis,x=this.yAxis,I=x.stacking.stacks[this.stackKey],V={},S=x.series,E=S.length,R=x.options.reversedStacks?1:-1,T=S.indexOf(F);if(A=A||this.points,this.options.stacking){for(let p=0;p<A.length;p++)A[p].leftNull=A[p].rightNull=void 0,V[A[p].x]=A[p];h(I,function(p,y){p.total!==null&&U.push(y)}),U.sort(function(p,y){return p-y});let v=S.map(p=>p.visible);U.forEach(function(p,y){let u=0,g,f;if(V[p]&&!V[p].isNull)j.push(V[p]),[-1,1].forEach(function(M){let L=M===1?"rightNull":"leftNull",H=I[U[y+M]],q=0;if(H){let z=T;for(;z>=0&&z<E;){let Q=S[z].index;!(g=H.points[Q])&&(Q===F.index?V[p][L]=!0:v[z]&&(f=I[p].points[Q])&&(q-=f[1]-f[0])),z+=R}}V[p][M===1?"rightCliff":"leftCliff"]=q});else{let M=T;for(;M>=0&&M<E;){let L=S[M].index;if(g=I[p].points[L]){u=g[1];break}M+=R}u=m(u,0),u=x.translate(u,0,1,0,1),j.push({isNull:!0,plotX:C.translate(p,0,0,0,1),x:p,plotY:u,yBottom:u})}})}return j}}return w.defaultOptions=d(a.defaultOptions,r),c(w.prototype,{singleStacks:!1}),s.registerSeriesType("area",w),w}),i(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s){let{line:o}=r.seriesTypes,{merge:a,pick:c}=s;class d extends o{getPointSpline(m,w,k){let A,F,j,U,C=w.plotX||0,x=w.plotY||0,I=m[k-1],V=m[k+1];function S(R){return R&&!R.isNull&&R.doCurve!==!1&&!w.isCliff}if(S(I)&&S(V)){let R=I.plotX||0,T=I.plotY||0,v=V.plotX||0,p=V.plotY||0,y=0;A=(1.5*C+R)/2.5,F=(1.5*x+T)/2.5,j=(1.5*C+v)/2.5,U=(1.5*x+p)/2.5,j!==A&&(y=(U-F)*(j-C)/(j-A)+x-U),F+=y,U+=y,F>T&&F>x?(F=Math.max(T,x),U=2*x-F):F<T&&F<x&&(F=Math.min(T,x),U=2*x-F),U>p&&U>x?(U=Math.max(p,x),F=2*x-U):U<p&&U<x&&(U=Math.min(p,x),F=2*x-U),w.rightContX=j,w.rightContY=U,w.controlPoints={low:[A,F],high:[j,U]}}let E=["C",c(I.rightContX,I.plotX,0),c(I.rightContY,I.plotY,0),c(A,C,0),c(F,x,0),C,x];return I.rightContX=I.rightContY=void 0,E}}return d.defaultOptions=a(o.defaultOptions),r.registerSeriesType("spline",d),d}),i(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{area:a,area:{prototype:c}}=s.seriesTypes,{extend:d,merge:h}=o;class m extends r{}return m.defaultOptions=h(r.defaultOptions,a.defaultOptions),d(m.prototype,{getGraphPath:c.getGraphPath,getStackPoints:c.getStackPoints,drawGraph:c.drawGraph}),s.registerSeriesType("areaspline",m),m}),i(n,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),i(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Series/Column/ColumnSeriesDefaults.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h){let{animObject:m}=r,{parse:w}=s,{noop:k}=a,{clamp:A,crisp:F,defined:j,extend:U,fireEvent:C,isArray:x,isNumber:I,merge:V,pick:S,objectEach:E}=h;class R extends c{animate(v){let p,y,u=this,g=this.yAxis,f=g.pos,M=g.reversed,L=u.options,{clipOffset:H,inverted:q}=this.chart,z={},Q=q?"translateX":"translateY";v&&H?(z.scaleY=.001,y=A(g.toPixels(L.threshold),f,f+g.len),q?(y+=M?-Math.floor(H[0]):Math.ceil(H[2]),z.translateX=y-g.len):(y+=M?Math.ceil(H[0]):-Math.floor(H[2]),z.translateY=y),u.clipBox&&u.setClip(),u.group.attr(z)):(p=Number(u.group.attr(Q)),u.group.animate({scaleY:1},U(m(u.options.animation),{step:function(ce,G){u.group&&(z[Q]=p+G.pos*(f-p),u.group.attr(z))}})))}init(v,p){super.init.apply(this,arguments);let y=this;(v=y.chart).hasRendered&&v.series.forEach(function(u){u.type===y.type&&(u.isDirty=!0)})}getColumnMetrics(){var ne,se;let v=this,p=v.options,y=v.xAxis,u=v.yAxis,g=y.options.reversedStacks,f=y.reversed&&!g||!y.reversed&&g,M={},L,H=0;p.grouping===!1?H=1:v.chart.series.forEach(function(oe){let le,D=oe.yAxis,O=oe.options;oe.type===v.type&&oe.reserveSpace()&&u.len===D.len&&u.pos===D.pos&&(O.stacking&&O.stacking!=="group"?(M[L=oe.stackKey]===void 0&&(M[L]=H++),le=M[L]):O.grouping!==!1&&(le=H++),oe.columnIndex=le)});let q=Math.min(Math.abs(y.transA)*(!((ne=y.brokenAxis)!=null&&ne.hasBreaks)&&((se=y.ordinal)==null?void 0:se.slope)||p.pointRange||y.closestPointRange||y.tickInterval||1),y.len),z=q*p.groupPadding,Q=(q-2*z)/(H||1),ce=Math.min(p.maxPointWidth||y.len,S(p.pointWidth,Q*(1-2*p.pointPadding))),G=(v.columnIndex||0)+(f?1:0);return v.columnMetrics={width:ce,offset:(Q-ce)/2+(z+G*Q-q/2)*(f?-1:1),paddedWidth:Q,columnCount:H},v.columnMetrics}crispCol(v,p,y,u){let g=this.borderWidth,f=this.chart.inverted;return u=F(p+u,g,f)-(p=F(p,g,f)),this.options.crisp&&(y=F(v+y,g)-(v=F(v,g))),{x:v,y:p,width:y,height:u}}adjustForMissingColumns(v,p,y,u){var g;if(!y.isNull&&u.columnCount>1){let f=this.xAxis.series.filter(q=>q.visible).map(q=>q.index),M=0,L=0;E((g=this.xAxis.stacking)==null?void 0:g.stacks,q=>{if(typeof y.x=="number"){let z=q[y.x.toString()];if(z&&x(z.points[this.index])){let Q=Object.keys(z.points).filter(ce=>!ce.match(",")&&z.points[ce]&&z.points[ce].length>1).map(parseFloat).filter(ce=>f.indexOf(ce)!==-1).sort((ce,G)=>G-ce);M=Q.indexOf(this.index),L=Q.length}}}),M=this.xAxis.reversed?L-1-M:M;let H=(L-1)*u.paddedWidth+p;v=(y.plotX||0)+H/2-p-M*u.paddedWidth}return v}translate(){let v=this,p=v.chart,y=v.options,u=v.dense=v.closestPointRange*v.xAxis.transA<2,g=v.borderWidth=S(y.borderWidth,u?0:1),f=v.xAxis,M=v.yAxis,L=y.threshold,H=S(y.minPointLength,5),q=v.getColumnMetrics(),z=q.width,Q=v.pointXOffset=q.offset,ce=v.dataMin,G=v.dataMax,ne=v.translatedThreshold=M.getThreshold(L),se=v.barW=Math.max(z,1+2*g);y.pointPadding&&(se=Math.ceil(se)),c.prototype.translate.apply(v),v.points.forEach(function(oe){let le=S(oe.yBottom,ne),D=999+Math.abs(le),O=oe.plotX||0,W=A(oe.plotY,-D,M.len+D),te,P=Math.min(W,le),_=Math.max(W,le)-P,b=z,B=O+Q,$=se;H&&Math.abs(_)<H&&(_=H,te=!M.reversed&&!oe.negative||M.reversed&&oe.negative,I(L)&&I(G)&&oe.y===L&&G<=L&&(M.min||0)<L&&(ce!==G||(M.max||0)<=L)&&(te=!te,oe.negative=!oe.negative),P=Math.abs(P-ne)>H?le-H:ne-(te?H:0)),j(oe.options.pointWidth)&&(B-=Math.round(((b=$=Math.ceil(oe.options.pointWidth))-z)/2)),y.centerInCategory&&!y.stacking&&(B=v.adjustForMissingColumns(B,b,oe,q)),oe.barX=B,oe.pointWidth=b,oe.tooltipPos=p.inverted?[A(M.len+M.pos-p.plotLeft-W,M.pos-p.plotLeft,M.len+M.pos-p.plotLeft),f.len+f.pos-p.plotTop-B-$/2,_]:[f.left-p.plotLeft+B+$/2,A(W+M.pos-p.plotTop,M.pos-p.plotTop,M.len+M.pos-p.plotTop),_],oe.shapeType=v.pointClass.prototype.shapeType||"roundedRect",oe.shapeArgs=v.crispCol(B,oe.isNull?ne:P,$,oe.isNull?0:_)}),C(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(v,p){let y=this.options,u=this.pointAttrToOptions||{},g=u.stroke||"borderColor",f=u["stroke-width"]||"borderWidth",M,L,H,q=v&&v.color||this.color,z=v&&v[g]||y[g]||q,Q=v&&v.options.dashStyle||y.dashStyle,ce=v&&v[f]||y[f]||this[f]||0,G=S(v&&v.opacity,y.opacity,1);v&&this.zones.length&&(L=v.getZone(),q=v.options.color||L&&(L.color||v.nonZonedColor)||this.color,L&&(z=L.borderColor||z,Q=L.dashStyle||Q,ce=L.borderWidth||ce)),p&&v&&(H=(M=V(y.states[p],v.options.states&&v.options.states[p]||{})).brightness,q=M.color||H!==void 0&&w(q).brighten(M.brightness).get()||q,z=M[g]||z,ce=M[f]||ce,Q=M.dashStyle||Q,G=S(M.opacity,G));let ne={fill:q,stroke:z,"stroke-width":ce,opacity:G};return Q&&(ne.dashstyle=Q),ne}drawPoints(v=this.points){let p,y=this,u=this.chart,g=y.options,f=u.renderer,M=g.animationLimit||250;v.forEach(function(L){let H=L.plotY,q=L.graphic,z=!!q,Q=q&&u.pointCount<M?"animate":"attr";I(H)&&L.y!==null?(p=L.shapeArgs,q&&L.hasNewShapeType()&&(q=q.destroy()),y.enabledDataSorting&&(L.startXPos=y.xAxis.reversed?-(p&&p.width||0):y.xAxis.width),!q&&(L.graphic=q=f[L.shapeType](p).add(L.group||y.group),q&&y.enabledDataSorting&&u.hasRendered&&u.pointCount<M&&(q.attr({x:L.startXPos}
28),z=!0,Q="animate")),q&&z&&q[Q](V(p)),u.styledMode||q[Q](y.pointAttribs(L,L.selected&&"select")).shadow(L.allowShadow!==!1&&g.shadow),q&&(q.addClass(L.getClassName(),!0),q.attr({visibility:L.visible?"inherit":"hidden"}))):q&&(L.graphic=q.destroy())})}drawTracker(v=this.points){let p,y=this,u=y.chart,g=u.pointer,f=function(M){let L=g==null?void 0:g.getPointFromEvent(M);g&&L&&y.options.enableMouseTracking&&(g.isDirectTouch=!0,L.onMouseOver(M))};v.forEach(function(M){p=x(M.dataLabels)?M.dataLabels:M.dataLabel?[M.dataLabel]:[],M.graphic&&(M.graphic.element.point=M),p.forEach(function(L){(L.div||L.element).point=M})}),y._hasTracking||(y.trackerGroups.forEach(function(M){y[M]&&(y[M].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(L){g==null||g.onTrackerMouseOut(L)}).on("touchstart",f),!u.styledMode&&y.options.cursor&&y[M].css({cursor:y.options.cursor}))}),y._hasTracking=!0),C(this,"afterDrawTracker")}remove(){let v=this,p=v.chart;p.hasRendered&&p.series.forEach(function(y){y.type===v.type&&(y.isDirty=!0)}),c.prototype.remove.apply(v,arguments)}}return R.defaultOptions=V(c.defaultOptions,o),U(R.prototype,{directTouch:!0,getSymbol:k,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),d.registerSeriesType("column",R),R}),i(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,o){var a;let{getDeferredAnimation:c}=r,{format:d}=s,{defined:h,extend:m,fireEvent:w,isArray:k,isString:A,merge:F,objectEach:j,pick:U,pInt:C,splat:x}=o;return function(I){function V(){return y(this).some(g=>g==null?void 0:g.enabled)}function S(g,f,M,L,H){var W;let{chart:q,enabledDataSorting:z}=this,Q=this.isCartesian&&q.inverted,ce=g.plotX,G=g.plotY,ne=M.rotation||0,se=h(ce)&&h(G)&&q.isInsidePlot(ce,Math.round(G),{inverted:Q,paneCoordinates:!0,series:this}),oe=ne===0&&U(M.overflow,z?"none":"justify")==="justify",le=this.visible&&g.visible!==!1&&h(ce)&&(g.series.forceDL||z&&!oe||se||U(M.inside,!!this.options.stacking)&&L&&q.isInsidePlot(ce,Q?L.x+1:L.y+L.height-1,{inverted:Q,paneCoordinates:!0,series:this})),D=g.pos();if(le&&D){var O;let te=f.getBBox(),P=f.getBBox(void 0,0),_={right:1,center:.5}[M.align||0]||0,b={bottom:1,middle:.5}[M.verticalAlign||0]||0;if(L=m({x:D[0],y:Math.round(D[1]),width:0,height:0},L||{}),M.alignTo==="plotEdges"&&this.isCartesian&&(L[Q?"x":"y"]=0,L[Q?"width":"height"]=((W=this.yAxis)==null?void 0:W.len)||0),m(M,{width:te.width,height:te.height}),O=L,z&&this.xAxis&&!oe&&this.setDataLabelStartPos(g,f,H,se,O),f.align(F(M,{width:P.width,height:P.height}),!1,L,!1),f.alignAttr.x+=_*(P.width-te.width),f.alignAttr.y+=b*(P.height-te.height),f[f.placed?"animate":"attr"]({x:f.alignAttr.x+(te.width-P.width)/2,y:f.alignAttr.y+(te.height-P.height)/2,rotationOriginX:(f.width||0)/2,rotationOriginY:(f.height||0)/2}),oe&&L.height>=0)this.justifyDataLabel(f,M,f.alignAttr,te,L,H);else if(U(M.crop,!0)){let{x:B,y:$}=f.alignAttr;le=q.isInsidePlot(B,$,{paneCoordinates:!0,series:this})&&q.isInsidePlot(B+te.width-1,$+te.height-1,{paneCoordinates:!0,series:this})}M.shape&&!ne&&f[H?"attr":"animate"]({anchorX:D[0],anchorY:D[1]})}H&&z&&(f.placed=!1),le||z&&!oe?(f.show(),f.placed=!0):(f.hide(),f.placed=!1)}function E(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function R(g){let f=this.hasRendered||0,M=this.initDataLabelsGroup().attr({opacity:+f});return!f&&M&&(this.visible&&M.show(),this.options.animation?M.animate({opacity:1},g):M.attr({opacity:1})),M}function T(g){var le;let f;g=g||this.points;let M=this,L=M.chart,H=M.options,q=L.renderer,{backgroundColor:z,plotBackgroun
28dColor:Q}=L.options.chart,ce=q.getContrast(A(Q)&&Q||A(z)&&z||"#000000"),G=y(M),{animation:ne,defer:se}=G[0],oe=se?c(L,ne,M):{defer:0,duration:0};w(this,"drawDataLabels"),(le=M.hasDataLabels)!=null&&le.call(M)&&(f=this.initDataLabels(oe),g.forEach(D=>{var te,P;let O=D.dataLabels||[];x(p(G,D.dlOptions||((te=D.options)==null?void 0:te.dataLabels))).forEach((_,b)=>{let B=_.enabled&&(D.visible||D.dataLabelOnHidden)&&(!D.isNull||D.dataLabelOnNull)&&function(ge,pe){let me=pe.filter;if(me){let ye=me.operator,_e=ge[me.property],ve=me.value;return ye===">"&&_e>ve||ye==="<"&&_e<ve||ye===">="&&_e>=ve||ye==="<="&&_e<=ve||ye==="=="&&_e==ve||ye==="==="&&_e===ve||ye==="!="&&_e!=ve||ye==="!=="&&_e!==ve}return!0}(D,_),{backgroundColor:$,borderColor:X,distance:J,style:re={}}=_,ae,fe,ue,Z,Y={},ee=O[b],ie=!ee,de;B&&(fe=U(_[D.formatPrefix+"Format"],_.format),ae=D.getLabelConfig(),ue=h(fe)?d(fe,ae,L):(_[D.formatPrefix+"Formatter"]||_.formatter).call(ae,_),Z=_.rotation,!L.styledMode&&(re.color=U(_.color,re.color,A(M.color)?M.color:void 0,"#000000"),re.color==="contrast"?($!=="none"&&(de=$),D.contrastColor=q.getContrast(de!=="auto"&&de||D.color||M.color),re.color=de||!h(J)&&_.inside||0>C(J||0)||H.stacking?D.contrastColor:ce):delete D.contrastColor,H.cursor&&(re.cursor=H.cursor)),Y={r:_.borderRadius||0,rotation:Z,padding:_.padding,zIndex:1},L.styledMode||(Y.fill=$==="auto"?D.color:$,Y.stroke=X==="auto"?D.color:X,Y["stroke-width"]=_.borderWidth),j(Y,(ge,pe)=>{ge===void 0&&delete Y[pe]})),!ee||B&&h(ue)&&!!ee.div==!!_.useHTML&&(ee.rotation&&_.rotation||ee.rotation===_.rotation)||(ee=void 0,ie=!0),B&&h(ue)&&(ee?Y.text=ue:(ee=q.label(ue,0,0,_.shape,void 0,void 0,_.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+D.colorIndex+" "+(_.className||"")+(_.useHTML?" highcharts-tracker":"")),ee&&(ee.options=_,ee.attr(Y),L.styledMode?re.width&&ee.css({width:re.width,textOverflow:re.textOverflow}):ee.css(re).shadow(_.shadow),w(ee,"beforeAddingDataLabel",{labelOptions:_,point:D}),ee.added||ee.add(f),M.alignDataLabel(D,ee,_,void 0,ie),ee.isActive=!0,O[b]&&O[b]!==ee&&O[b].destroy(),O[b]=ee))});let W=O.length;for(;W--;)O[W]&&O[W].isActive?O[W].isActive=!1:((P=O[W])==null||P.destroy(),O.splice(W,1));D.dataLabel=O[0],D.dataLabels=O})),w(this,"afterDrawDataLabels")}function v(g,f,M,L,H,q){let z=this.chart,Q=f.align,ce=f.verticalAlign,G=g.box?0:g.padding||0,ne=z.inverted?this.yAxis:this.xAxis,se=ne?ne.left-z.plotLeft:0,oe=z.inverted?this.xAxis:this.yAxis,le=oe?oe.top-z.plotTop:0,{x:D=0,y:O=0}=f,W,te;return(W=(M.x||0)+G+se)<0&&(Q==="right"&&D>=0?(f.align="left",f.inside=!0):D-=W,te=!0),(W=(M.x||0)+L.width-G+se)>z.plotWidth&&(Q==="left"&&D<=0?(f.align="right",f.inside=!0):D+=z.plotWidth-W,te=!0),(W=M.y+G+le)<0&&(ce==="bottom"&&O>=0?(f.verticalAlign="top",f.inside=!0):O-=W,te=!0),(W=(M.y||0)+L.height-G+le)>z.plotHeight&&(ce==="top"&&O<=0?(f.verticalAlign="bottom",f.inside=!0):O+=z.plotHeight-W,te=!0),te&&(f.x=D,f.y=O,g.placed=!q,g.align(f,void 0,H)),te}function p(g,f){let M=[],L;if(k(g)&&!k(f))M=g.map(function(H){return F(H,f)});else if(k(f)&&!k(g))M=f.map(function(H){return F(g,H)});else if(k(g)||k(f)){if(k(g)&&k(f))for(L=Math.max(g.length,f.length);L--;)M[L]=F(g[L],f[L])}else M=F(g,f);return M}function y(g){var M,L;let f=g.chart.options.plotOptions;return x(p(p((M=f==null?void 0:f.series)==null?void 0:M.dataLabels,(L=f==null?void 0:f[g.type])==null?void 0:L.dataLabels),g.options.dataLabels))}function u(g,f,M,L,H){let q=this.chart,z=q.inverted,Q=this.xAxis,ce=Q.reversed,G=((z?f.height:f.width)||0)/2,ne=g.pointWidth,se=ne?ne/2:0;f.startXPos=z?H.x:ce?-G-se:Q.width-G+se,f.startYPos=z?ce?this.yAxis.height-G+se:-G-se:H.y,L?f.visibility==="hidden"&&(f.show(),f.attr({opacity:0}).animate({opacity:1})):f.attr({opacity:1}).animate({opacity:0}
28,void 0,f.hide),q.hasRendered&&(M&&f.attr({x:f.startXPos,y:f.startYPos}),f.placed=!0)}I.compose=function(g){let f=g.prototype;f.initDataLabels||(f.initDataLabels=R,f.initDataLabelsGroup=E,f.alignDataLabel=S,f.drawDataLabels=T,f.justifyDataLabel=v,f.setDataLabelStartPos=u,f.hasDataLabels=V)}}(a||(a={})),a}),i(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o,a){var c;let{composed:d}=s,{series:h}=o,{merge:m,pick:w,pushUnique:k}=a;return function(A){function F(j,U,C,x,I){let V=this.chart.inverted,S=j.series,E=(S.xAxis?S.xAxis.len:this.chart.plotSizeX)||0,R=(S.yAxis?S.yAxis.len:this.chart.plotSizeY)||0,T=j.dlBox||j.shapeArgs,v=w(j.below,j.plotY>w(this.translatedThreshold,R)),p=w(C.inside,!!this.options.stacking);if(T){if(x=m(T),!(C.overflow==="allow"&&C.crop===!1)){x.y<0&&(x.height+=x.y,x.y=0);let y=x.y+x.height-R;y>0&&y<x.height-1&&(x.height-=y)}V&&(x={x:R-x.y-x.height,y:E-x.x-x.width,width:x.height,height:x.width}),p||(V?(x.x+=v?0:x.width,x.width=0):(x.y+=v?x.height:0,x.height=0))}C.align=w(C.align,!V||p?"center":v?"right":"left"),C.verticalAlign=w(C.verticalAlign,V||p?"middle":v?"top":"bottom"),h.prototype.alignDataLabel.call(this,j,U,C,x,I),C.inside&&j.contrastColor&&U.css({color:j.contrastColor})}A.compose=function(j){r.compose(h),k(d,"ColumnDataLabel")&&(j.prototype.alignDataLabel=F)}}(c||(c={})),c}),i(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{extend:a,merge:c}=o;class d extends r{}return d.defaultOptions=c(r.defaultOptions,{}),a(d.prototype,{inverted:!0}),s.registerSeriesType("bar",d),d}),i(n,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),i(n,"Series/Scatter/ScatterSeries.js",[n["Series/Scatter/ScatterSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o){let{column:a,line:c}=s.seriesTypes,{addEvent:d,extend:h,merge:m}=o;class w extends c{applyJitter(){let A=this,F=this.options.jitter,j=this.points.length;F&&this.points.forEach(function(U,C){["x","y"].forEach(function(x,I){if(F[x]&&!U.isNull){let V=`plot${x.toUpperCase()}`,S=A[`${x}Axis`],E=F[x]*S.transA;if(S&&!S.logarithmic){let R=Math.max(0,(U[V]||0)-E),T=Math.min(S.len,(U[V]||0)+E);U[V]=R+(T-R)*function(v){let p=1e4*Math.sin(v);return p-Math.floor(p)}(C+I*j),x==="x"&&(U.clientX=U.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return w.defaultOptions=m(c.defaultOptions,r),h(w.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),d(w,"afterTranslate",function(){this.applyJitter()}),s.registerSeriesType("scatter",w),w}),i(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,o){var a,c;let{deg2rad:d}=r,{fireEvent:h,isNumber:m,pick:w,relativeLength:k}=o;return(c=a||(a={})).getCenter=function(){let A=this.options,F=this.chart,j=2*(A.slicedOffset||0),U=F.plotWidth-2*j,C=F.plotHeight-2*j,x=A.center,I=Math.min(U,C),V=A.thickness,S,E=A.size,R=A.innerSize||0,T,v;typeof E=="string"&&(E=parseFloat(E)),typeof R=="string"&&(R=parseFloat(R));let p=[w(x[0],"50%"),w(x[1],"50%"),w(E&&E<0?void 0:A.size,"100%"),w(R&&R<0?void 0:A.innerSize||0,"0%")];for(!F.angular||this instanceof s||(p[3]=0),T=0;T<4;++T)v=p[T],S=T<2||T===2&&/%$/.test(v),p[T]=k(v,[U,C,I,p[2]][T])+(S?j:0);return p[3]>p[2]&&(p[3]=p[2]),m(V)&&2*V<p[2]&&V>0&&(p[3]=p[2]-2*V),h(this,"afterGetCenter",{positions:p}),p},c.getStartAndEndRadians=function(A,F){let j=m(A)?A:0,U=m(F)&&F>j&&F-j<360?F:j+360;return{start:d*(j+-90),end:d*(U+-90)}},a}),i(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,o){let{setAnimation:a}=r,{addEvent:c,defined:d,extend:h,isNumber:m,pick:w,relativeLength:k}=o;class A extends s{getConnectorPath(j){let U=j.dataLabelPosition,C=j.options||{},x=C.connectorShape,I=this.connectorShapes[x]||x;return U&&I.call(this,{...U.computed,alignment:U.alignment},U.connectorPosition,C)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(j){let U=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(U.x,U.y,U.r+j,U.r+j,{innerR:U.r-1,start:U.start,end:U.end,borderRadius:U.borderRadius})}constructor(j,U,C){super(j,U,C),this.half=0,this.name??(this.name="Slice");let x=I=>{this.slice(I.type==="select")};c(this,"select",x),c(this,"unselect",x)}isValid(){return m(this.y)&&this.y>=0}setVisible(j,U=!0){j!==this.visible&&this.update({visible:j??!this.visible},U,void 0,!1)}slice(j,U,C){let x=this.series;a(C,x.chart),U=w(U,!0),this.sliced=this.options.sliced=j=d(j)?j:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return h(A.prototype,{connectorShapes:{fixedOffset:function(F,j,U){let C=j.breakAt,x=j.touchingSliceAt,I=U.softConnector?["C",F.x+(F.alignment==="left"?-5:5),F.y,2*C.x-x.x,2*C.y-x.y,C.x,C.y]:["L",C.x,C.y];return[["M",F.x,F.y],I,["L",x.x,x.y]]},straight:function(F,j){let U=j.touchingSliceAt;return[["M",F.x,F.y],["L",U.x,U.y]]},crookedLine:function(F,j,U){let{breakAt:C,touchingSliceAt:x}=j,{series:I}=this,[V,S,E]=I.center,R=E/2,{plotLeft:T,plotWidth:v}=I.chart,p=F.alignment==="left",{x:y,y:u}=F,g=C.x;if(U.crookDistance){let M=k(U.crookDistance,1);g=p?V+R+(v+T-V-R)*(1-M):T+(V-R)*M}else g=V+(S-u)*Math.tan((this.angle||0)-Math.PI/2);let f=[["M",y,u]];return(p?g<=y&&g>=C.x:g>=y&&g<=C.x)&&f.push(["L",g,u]),f.push(["L",C.x,C.y],["L",x.x,x.y]),f}}}),A}),i(n,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,
vendor: 4,211 bytes, line 28
28null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),i(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Series/Pie/PiePoint.js"],n["Series/Pie/PieSeriesDefaults.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(r,s,o,a,c,d,h,m,w){let{getStartAndEndRadians:k}=r,{noop:A}=o,{clamp:F,extend:j,fireEvent:U,merge:C,pick:x}=w;class I extends d{animate(S){let E=this,R=E.points,T=E.startAngleRad;S||R.forEach(function(v){let p=v.graphic,y=v.shapeArgs;p&&y&&(p.attr({r:x(v.startR,E.center&&E.center[3]/2),start:T,end:T}),p.animate({r:y.r,start:y.start,end:y.end},E.options.animation))})}drawEmpty(){let S,E,R=this.startAngleRad,T=this.endAngleRad,v=this.options;this.total===0&&this.center?(S=this.center[0],E=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(S,E,this.center[1]/2,0,R,T).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:m.arc(S,E,this.center[2]/2,0,{start:R,end:T,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":v.borderWidth,fill:v.fillColor||"none",stroke:v.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let S=this.chart.renderer;this.points.forEach(function(E){E.graphic&&E.hasNewShapeType()&&(E.graphic=E.graphic.destroy()),E.graphic||(E.graphic=S[E.shapeType](E.shapeArgs).add(E.series.group),E.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(S,E,R,T){let v=this.center,p=this.radii?this.radii[R.index]||0:v[2]/2,y=T.dataLabelPosition,u=(y==null?void 0:y.distance)||0,g=Math.asin(F((S-v[1])/(p+u),-1,1));return v[0]+Math.cos(g)*(p+u)*(E?-1:1)+(u>0?(E?-1:1)*(T.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let S,E,R,T,v=this,p=v.chart;this.drawEmpty(),v.group&&!p.styledMode&&v.group.shadow(v.options.shadow),v.points.forEach(function(y){let u={};E=y.graphic,!y.isNull&&E?(T=y.shapeArgs,S=y.getTranslate(),p.styledMode||(R=v.pointAttribs(y,y.selected&&"select")),y.delayedRendering?(E.setRadialReference(v.center).attr(T).attr(S),p.styledMode||E.attr(R).attr({"stroke-linejoin":"round"}),y.delayedRendering=!1):(E.setRadialReference(v.center),p.styledMode||C(!0,u,R),C(!0,u,T,S),E.animate(u)),E.attr({visibility:y.visible?"inherit":"hidden"}),E.addClass(y.getClassName(),!0)):E&&(y.graphic=E.destroy())})}sortByAngle(S,E){S.sort(function(R,T){return R.angle!==void 0&&(T.angle-R.angle)*E})}translate(S){U(this,"translate"),this.generatePoints();let E=this.options,R=E.slicedOffset,T=k(E.startAngle,E.endAngle),v=this.startAngleRad=T.start,p=(this.endAngleRad=T.end)-v,y=this.points,u=E.ignoreHiddenPoint,g=y.length,f,M,L,H,q,z,Q,ce=0;for(S||(this.center=S=this.getCenter()),z=0;z<g;z++){Q=y[z],f=v+ce*p,Q.isValid()&&(!u||Q.visible)&&(ce+=Q.percentage/100),M=v+ce*p;let G={x:S[0],y:S[1],r:S[2]/2,innerR:S[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*M)/1e3};Q.shapeType="arc",Q.shapeArgs=G,(L=(M+f)/2)>1.5*Math.PI?L-=2*Math.PI:L<-Math.PI/2&&(L+=2*Math.PI),Q.slicedTranslation={translateX:Math.round(Math.cos(L)*R),translateY:Math.round(Math.sin(L)*R)},H=Math.cos(L)*S[2]/2,q=Math.sin(L)*S[2]/2,Q.tooltipPos=[S[0]+.7*H,S[1]+.7*q],Q.half=L<-Math.PI/2||L>Math.PI/2?1:0,Q.angle=L}U(this,"afterTranslate")}updateTotals(){let S=this.points,E=S.length,R=this.options.ignoreHiddenPoint,T,v,p=0;for(T=0;T<E;T++)(v=S[T]).isValid()&&(!R||v.visible)&&(p+=v.y);for(T=0,this.total=p;T<E;T++)(v=S[T]).percentage=p>0&&(v.visible||!R)?v.y/p*100:0,v.total=p}}return I.defaultOptions=C(d.defaultOptions,c),j(I.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:s.prototype.drawTracker,getCenter:r.getCenter,getSymbol:A,invert
28ible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:s.prototype.pointAttribs,pointClass:a,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]}),h.registerSeriesType("pie",I),I}),i(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,o,a,c){var d;let{composed:h,noop:m}=s,{distribute:w}=o,{series:k}=a,{arrayMax:A,clamp:F,defined:j,pick:U,pushUnique:C,relativeLength:x}=c;return function(I){let V={radialDistributionY:function(v,p){var y;return(((y=p.dataLabelPosition)==null?void 0:y.top)||0)+v.distributeBox.pos},radialDistributionX:function(v,p,y,u,g){let f=g.dataLabelPosition;return v.getX(y<((f==null?void 0:f.top)||0)+2||y>((f==null?void 0:f.bottom)||0)-2?u:y,p.half,p,g)},justify:function(v,p,y,u){var g;return u[0]+(v.half?-1:1)*(y+(((g=p.dataLabelPosition)==null?void 0:g.distance)||0))},alignToPlotEdges:function(v,p,y,u){let g=v.getBBox().width;return p?g+u:y-g-u},alignToConnectors:function(v,p,y,u){let g=0,f;return v.forEach(function(M){(f=M.dataLabel.getBBox().width)>g&&(g=f)}),p?g+u:y-g-u}};function S(v,p){let{center:y,options:u}=this,g=y[2]/2,f=v.angle||0,M=Math.cos(f),L=Math.sin(f),H=y[0]+M*g,q=y[1]+L*g,z=Math.min((u.slicedOffset||0)+(u.borderWidth||0),p/5);
vendor: 4,632 bytes, line 28
28return{natural:{x:H+M*p,y:q+L*p},computed:{},alignment:p<0?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:H+M*z,y:q+L*z},touchingSliceAt:{x:H,y:q}},distance:p}}function E(){var le;let v=this,p=v.points,y=v.chart,u=y.plotWidth,g=y.plotHeight,f=y.plotLeft,M=Math.round(y.chartWidth/3),L=v.center,H=L[2]/2,q=L[1],z=[[],[]],Q=[0,0,0,0],ce=v.dataLabelPositioners,G,ne,se,oe=0;v.visible&&((le=v.hasDataLabels)!=null&&le.call(v))&&(p.forEach(D=>{(D.dataLabels||[]).forEach(O=>{O.shortened&&(O.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),O.shortened=!1)})}),k.prototype.drawDataLabels.apply(v),p.forEach(D=>{(D.dataLabels||[]).forEach((O,W)=>{var b;let te=L[2]/2,P=O.options,_=x((P==null?void 0:P.distance)||0,te);W===0&&z[D.half].push(D),!j((b=P==null?void 0:P.style)==null?void 0:b.width)&&O.getBBox().width>M&&(O.css({width:Math.round(.7*M)+"px"}),O.shortened=!0),O.dataLabelPosition=this.getDataLabelPosition(D,_),oe=Math.max(oe,_)})}),z.forEach((D,O)=>{let W=D.length,te=[],P,_,b=0,B;W&&(v.sortByAngle(D,O-.5),oe>0&&(P=Math.max(0,q-H-oe),_=Math.min(q+H+oe,y.plotHeight),D.forEach($=>{($.dataLabels||[]).forEach(X=>{var re;let J=X.dataLabelPosition;J&&J.distance>0&&(J.top=Math.max(0,q-H-J.distance),J.bottom=Math.min(q+H+J.distance,y.plotHeight),b=X.getBBox().height||21,X.lineHeight=y.renderer.fontMetrics(X.text||X).h+2*X.padding,$.distributeBox={target:(((re=X.dataLabelPosition)==null?void 0:re.natural.y)||0)-J.top+X.lineHeight/2,size:b,rank:$.y},te.push($.distributeBox))})}),w(te,B=_+b-P,B/5)),D.forEach($=>{($.dataLabels||[]).forEach(X=>{let J=X.options||{},re=$.distributeBox,ae=X.dataLabelPosition,fe=(ae==null?void 0:ae.natural.y)||0,ue=J.connectorPadding||0,Z=X.lineHeight||21,Y=(Z-X.getBBox().height)/2,ee=0,ie=fe,de="inherit";if(ae){if(j(re)&&ae.distance>0&&(re.pos===void 0?de="hidden":(se=re.size,ie=ce.radialDistributionY($,X))),J.justify)ee=ce.justify($,X,H,L);else switch(J.alignTo){case"connectors":ee=ce.alignToConnectors(D,O,u,f);break;case"plotEdges":ee=ce.alignToPlotEdges(X,O,u,f);break;default:ee=ce.radialDistributionX(v,$,ie-Y,fe,X)}if(ae.attribs={visibility:de,align:ae.alignment},ae.posAttribs={x:ee+(J.x||0)+({left:ue,right:-ue}[ae.alignment]||0),y:ie+(J.y||0)-Z/2},ae.computed.x=ee,ae.computed.y=ie-Y,U(J.crop,!0)){let ge;ee-(ne=X.getBBox().width)<ue&&O===1?(ge=Math.round(ne-ee+ue),Q[3]=Math.max(ge,Q[3])):ee+ne>u-ue&&O===0&&(ge=Math.round(ee+ne-u+ue),Q[1]=Math.max(ge,Q[1])),ie-se/2<0?Q[0]=Math.max(Math.round(-ie+se/2),Q[0]):ie+se/2>g&&(Q[2]=Math.max(Math.round(ie+se/2-g),Q[2])),ae.sideOverflow=ge}}})}))}),(A(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(D=>{(D.dataLabels||[]).forEach(O=>{var _;let{connectorColor:W,connectorWidth:te=1}=O.options||{},P=O.dataLabelPosition;if(te){let b;G=O.connector,P&&P.distance>0?(b=!G,G||(O.connector=G=y.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+D.colorIndex+(D.className?" "+D.className:"")).add(v.dataLabelsGroup)),y.styledMode||G.attr({"stroke-width":te,stroke:W||D.color||"#666666"}),G[b?"attr":"animate"]({d:D.getConnectorPath(O)}),G.attr({visibility:(_=P.attribs)==null?void 0:_.visibility})):G&&(O.connector=G.destroy())}})})))}function R(){this.points.forEach(v=>{(v.dataLabels||[]).forEach(p=>{var u;let y=p.dataLabelPosition;y?(y.sideOverflow&&(p.css({width:Math.max(p.getBBox().width-y.sideOverflow,0)+"px",textOverflow:(((u=p.options)==null?void 0:u.style)||{}).textOverflow||"ellipsis"}),p.shortened=!0),p.attr(y.attribs),p[p.moved?"animate":"attr"](y.posAttribs),p.moved=!0):p&&p.attr({y:-9999})}),delete v.distributeBox},this)}function T(v){let p=this.center,y=this.options,u=y.center,g=y.minSize||80,f=g,M=y.size!==null;return!M&&(u[0]!==null?f=Math.max(p[2]-Math.max(v[1],v[3]),g):(f=Math.max(p[2]-v[1]-v[3],g),p[0]+=(v[3]-v[1])/2),u[1]!==null?f=F(f,g,p[2]-Math.max(v[0],v[2])):(f=F(f,g,p[2]-v[0]-v[2]),p[1]+=(v[0]-v[2])/2),f<p[2]?(p[2]=f,p[3]=Math.min(y.thickness?Math.max(0,f-2*y.thickness):Math.max(0,x(y.innerSize||0,f)),f),this.translate(p),this.drawDataLabels&&this.drawDataLabels()):M=!0),M}I.compose=function(v){if(r.compose(k),C(h,"PieDataLabel")){let p=v.prototype;p.dataLabelPositioners=V,p.alignDataLabel=m,p.drawDataLabels=E,p.getDataLabelPosition=S,p.placeDataLabels=R,p.verifyDataLabelOverflow=T}}}(d||(d={})),d}),i(n,"Core/Geometry/GeometryUtilities.js",[],function(){var r,s;return(s=r||(r={})).getCenterOfPoints=function(o){let a=o.reduce((c,d)=>(c.x+=d.x,c.y+=d.y,c),{x:0,y:0});return{x:a.x/o.length,y:a.y/o.length}},s.getDistanceBetweenPoints=function(o,a){return Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}
28,s.getAngleBetweenPoints=function(o,a){return Math.atan2(a.x-o.x,a.y-o.y)},s.pointInPolygon=function({x:o,y:a},c){let d=c.length,h,m,w=!1;for(h=0,m=d-1;h<d;m=h++){let[k,A]=c[h],[F,j]=c[m];A>a!=j>a&&o<(F-k)*(a-A)/(j-A)+k&&(w=!w)}return w},r}),i(n,"Extensions/OverlappingDataLabels.js",[n["Core/Geometry/GeometryUtilities.js"],n["Core/Utilities.js"]],function(r,s){let{pointInPolygon:o}=r,{addEvent:a,fireEvent:c,objectEach:d,pick:h}=s;function m(A){let F=A.length,j=(R,T)=>!(T.x>=R.x+R.width||T.x+T.width<=R.x||T.y>=R.y+R.height||T.y+T.height<=R.y),U=(R,T)=>{for(let v of R)if(o({x:v[0],y:v[1]},T))return!0;return!1},C,x,I,V,S,E=!1;for(let R=0;R<F;R++)(C=A[R])&&(C.oldOpacity=C.opacity,C.newOpacity=1,C.absoluteBox=function(T){var v,p;if(T&&(!T.alignAttr||T.placed)){let y=T.box?0:T.padding||0,u=T.alignAttr||{x:T.attr("x"),y:T.attr("y")},g=T.getBBox();return T.width=g.width,T.height=g.height,{x:u.x+(((v=T.parentGroup)==null?void 0:v.translateX)||0)+y,y:u.y+(((p=T.parentGroup)==null?void 0:p.translateY)||0)+y,width:(T.width||0)-2*y,height:(T.height||0)-2*y,polygon:g==null?void 0:g.polygon}}}(C));A.sort((R,T)=>(T.labelrank||0)-(R.labelrank||0));for(let R=0;R<F;++R){V=(x=A[R])&&x.absoluteBox;let T=V==null?void 0:V.polygon;for(let v=R+1;v<F;++v){S=(I=A[v])&&I.absoluteBox;let p=!1;if(V&&S&&x!==I&&x.newOpacity!==0&&I.newOpacity!==0&&x.visibility!=="hidden"&&I.visibility!=="hidden"){let y=S.polygon;if(T&&y&&T!==y?U(T,y)&&(p=!0):j(V,S)&&(p=!0),p){let u=x.labelrank<I.labelrank?x:I,g=u.text;u.newOpacity=0,g!=null&&g.element.querySelector("textPath")&&g.hide()}}}}for(let R of A)w(R,this)&&(E=!0);E&&c(this,"afterHideAllOverlappingLabels")}function w(A,F){let j,U,C=!1;return A&&(U=A.newOpacity,A.oldOpacity!==U&&(A.hasClass("highcharts-data-label")?(A[U?"removeClass":"addClass"]("highcharts-data-label-hidden"),j=function(){F.styledMode||A.css({pointerEvents:U?"auto":"none"})},C=!0,A[A.isOld?"animate":"attr"]({opacity:U},void 0,j),c(F,"afterHideOverlappingLabel")):A.attr({opacity:U})),A.isOld=!0),C}function k(){var j;let A=this,F=[];for(let U of A.labelCollectors||[])F=F.concat(U());for(let U of A.yAxis||[])U.stacking&&U.options.stackLabels&&!U.options.stackLabels.allowOverlap&&d(U.stacking.stacks,C=>{d(C,x=>{x.label&&F.push(x.label)})});for(let U of A.series||[])if(U.visible&&((j=U.hasDataLabels)!=null&&j.call(U))){let C=x=>{for(let I of x)I.visible&&(I.dataLabels||[]).forEach(V=>{var E;let S=V.options||{};V.labelrank=h(S.labelrank,I.labelrank,(E=I.shapeArgs)==null?void 0:E.height),S.allowOverlap??Number(S.distance)>0?(V.oldOpacity=V.opacity,V.newOpacity=1,w(V,A)):F.push(V)})};C(U.nodes||[]),C(U.points)}this.hideOverlappingLabels(F)}return{compose:function(A){let F=A.prototype;F.hideOverlappingLabels||(F.hideOverlappingLabels=m,a(A,"render",k))}}}
vendor: 3,980 bytes, line 28
28),i(n,"Extensions/BorderRadius.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,o){let{defaultOptions:a}=r,{noop:c}=s,{addEvent:d,extend:h,isObject:m,merge:w,relativeLength:k}=o,A={radius:0,scope:"stack",where:void 0},F=c,j=c;function U(S,E,R,T,v={}){let p=F(S,E,R,T,v),{innerR:y=0,r:u=R,start:g=0,end:f=0}=v;if(v.open||!v.borderRadius)return p;let M=f-g,L=Math.sin(M/2),H=Math.max(Math.min(k(v.borderRadius||0,u-y),(u-y)/2,u*L/(1+L)),0),q=Math.min(H,M/Math.PI*2*y),z=p.length-1;for(;z--;)(function(Q,ce,G){let ne,se,oe,le=Q[ce],D=Q[ce+1];if(D[0]==="Z"&&(D=Q[0]),(le[0]==="M"||le[0]==="L")&&D[0]==="A"?(ne=le,se=D,oe=!0):le[0]==="A"&&(D[0]==="M"||D[0]==="L")&&(ne=D,se=le),ne&&se&&se.params){let O=se[1],W=se[5],te=se.params,{start:P,end:_,cx:b,cy:B}=te,$=W?O-G:O+G,X=$?Math.asin(G/$):0,J=W?X:-X,re=Math.cos(X)*$;oe?(te.start=P+J,ne[1]=b+re*Math.cos(P),ne[2]=B+re*Math.sin(P),Q.splice(ce+1,0,["A",G,G,0,0,1,b+O*Math.cos(te.start),B+O*Math.sin(te.start)])):(te.end=_-J,se[6]=b+O*Math.cos(te.end),se[7]=B+O*Math.sin(te.end),Q.splice(ce+1,0,["A",G,G,0,0,1,b+re*Math.cos(_),B+re*Math.sin(_)])),se[4]=Math.abs(te.end-te.start)<Math.PI?0:1}})(p,z,z>1?q:H);return p}function C(){var S,E;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:R,yAxis:T}=this,v=R.stacking==="percent",p=(E=(S=a.plotOptions)==null?void 0:S[this.type])==null?void 0:E.borderRadius,y=x(R.borderRadius,m(p)?p:{}),u=T.options.reversed;for(let g of this.points){let{shapeArgs:f}=g;if(g.shapeType==="roundedRect"&&f){let{width:M=0,height:L=0,y:H=0}=f,q=H,z=L;if(y.scope==="stack"&&g.stackTotal){let ne=T.translate(v?100:g.stackTotal,!1,!0,!1,!0),se=T.translate(R.threshold||0,!1,!0,!1,!0),oe=this.crispCol(0,Math.min(ne,se),0,Math.abs(ne-se));q=oe.y,z=oe.height}let Q=(g.negative?-1:1)*(u?-1:1)==-1,ce=y.where;!ce&&this.is("waterfall")&&Math.abs((g.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(ce="all"),ce||(ce="end");let G=Math.min(k(y.radius,M),M/2,ce==="all"?L/2:1/0)||0;ce==="end"&&(Q&&(q-=G),z+=G),h(f,{brBoxHeight:z,brBoxY:q,r:G})}}}}function x(S,E){return m(S)||(S={radius:S||0}),w(A,E,S)}function I(){let S=x(this.options.borderRadius);for(let E of this.points){let R=E.shapeArgs;R&&(R.borderRadius=k(S.radius,(R.r||0)-(R.innerR||0)))}}function V(S,E,R,T,v={}){let p=j(S,E,R,T,v),{r:y=0,brBoxHeight:u=T,brBoxY:g=E}=v,f=E-g,M=g+u-(E+T),L=f-y>-.1?0:y,H=M-y>-.1?0:y,q=Math.max(L&&f,0),z=Math.max(H&&M,0),Q=[S+L,E],ce=[S+R-L,E],G=[S+R,E+L],ne=[S+R,E+T-H],se=[S+R-H,E+T],oe=[S+H,E+T],le=[S,E+T-H],D=[S,E+L],O=(W,te)=>Math.sqrt(Math.pow(W,2)-Math.pow(te,2));if(q){let W=O(L,L-q);Q[0]-=W,ce[0]+=W,G[1]=D[1]=E+L-q}if(T<L-q){let W=O(L,L-q-T);G[0]=ne[0]=S+R-L+W,se[0]=Math.min(G[0],se[0]),oe[0]=Math.max(ne[0],oe[0]),le[0]=D[0]=S+L-W,G[1]=D[1]=E+T}if(z){let W=O(H,H-z);se[0]+=W,oe[0]-=W,ne[1]=le[1]=E+T-H+z}if(T<H-z){let W=O(H,H-z-T);G[0]=ne[0]=S+R-H+W,ce[0]=Math.min(G[0],ce[0]),Q[0]=Math.max(ne[0],Q[0]),le[0]=D[0]=S+H-W,ne[1]=le[1]=E}return p.length=0,p.push(["M",...Q],["L",...ce],["A",L,L,0,0,1,...G],["L",...ne],["A",H,H,0,0,1,...se],["L",...oe],["A",H,H,0,0,1,...le],["L",...D],["A",L,L,0,0,1,...Q],["Z"]),p}return{compose:function(S,E,R){let T=S.types.pie;if(!E.symbolCustomAttribs.includes("borderRadius")){let v=R.prototype.symbols;d(S,"afterColumnTranslate",C,{order:9}),d(T,"afterTranslate",I),E.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),F=v.arc,j=v.roundedRect,v.arc=U,v.roundedRect=V}},optionsToObject:x}}),i(n,"Core/Responsive.js",[n["Core/Utilities.js"]],function(r){var s;let{diffObjects:o,extend:a,find:c,merge:d,pick:h,uniqueKey:m}=r;return function(w){function k(F,j){let U=F.condition;(U.callback||function(){return this.chartWidth<=h(U.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=h(U.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=h(U.minWidth,0)&&this.chartHeight>=h(U.minHeight,0)}).call(this)&&j.push(F._id)}function A(F,j){let U=this.options.responsive,C=this.currentResponsive,x=[],I;
28!j&&U&&U.rules&&U.rules.forEach(E=>{E._id===void 0&&(E._id=m()),this.matchResponsiveRule(E,x)},this);let V=d(...x.map(E=>c((U||{}).rules||[],R=>R._id===E)).map(E=>E&&E.chartOptions));V.isResponsiveOptions=!0,x=x.toString()||void 0;let S=C&&C.ruleIds;x===S||(C&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(C.undoOptions,F,!0),this.updatingResponsive=!1),x?((I=o(V,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:V,undoOptions:I},this.updatingResponsive||this.update(V,F,!0)):this.currentResponsive=void 0)}w.compose=function(F){let j=F.prototype;return j.matchResponsiveRule||a(j,{matchResponsiveRule:k,setResponsive:A}),F}}(s||(s={})),s}),i(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/Defaults.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Templating.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/Legend/Legend.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Chart/Chart.js"],n["Extensions/ScrollablePlotArea.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Extensions/OverlappingDataLabels.js"],n["Extensions/
28BorderRadius.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],function(r,s,o,a,c,d,h,m,w,k,A,F,j,U,C,x,I,V,S,E,R,T,v,p,y,u,g,f,M,L,H,q,z,Q,ce,G){return r.AST=d,r.Axis=j,r.Chart=v,r.Color=ce,r.DataLabel=H,r.Fx=a,r.HTMLElement=F,r.Legend=R,r.LegendSymbol=T,r.OverlappingDataLabels=r.OverlappingDataLabels||q,r.PlotLineOrBand=x,r.Point=S,r.Pointer=E,r.RendererRegistry=m,r.Series=g,r.SeriesRegistry=f,r.StackItem=u,r.SVGElement=k,r.SVGRenderer=A,r.Templating=h,r.Tick=I,r.Time=G,r.Tooltip=V,r.animate=c.animate,r.animObject=c.animObject,r.chart=v.chart,r.color=ce.parse,r.dateFormat=h.dateFormat,r.defaultOptions=o.defaultOptions,r.distribute=w.distribute,r.format=h.format,r.getDeferredAnimation=c.getDeferredAnimation,r.getOptions=o.getOptions,r.numberFormat=h.numberFormat,r.seriesType=f.seriesType,r.setAnimation=c.setAnimation,r.setOptions=o.setOptions,r.stop=c.stop,r.time=o.defaultTime,r.timers=a.timers,z.compose(r.Series,r.SVGElement,r.SVGRenderer),M.compose(r.Series.types.column),H.compose(r.Series),U.compose(r.Axis),F.compose(r.SVGRenderer),R.compose(r.Chart),C.compose(r.Axis),q.compose(r.Chart),L.compose(r.Series.types.pie),x.compose(r.Chart,r.Axis),E.compose(r.Chart),Q.compose(r.Chart),p.compose(r.Axis,r.Chart,r.Series),y.compose(r.Axis,r.Chart,r.Series),V.compose(r.Pointer),s.extend(r,s),r}),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]})}(Zo)),Zo.exports}var KA=qA();const XA=WA(KA),YA={accessibility:()=>Pe(()=>import("./D7jF3cdA.js").then(t=>t.a),[],import.meta.url),"annotations-advanced":()=>Pe(()=>import("./CvTW0yj6.js").then(t=>t.a),[],import.meta.url),annotations:()=>Pe(()=>import("./BY048CRp.js").then(t=>t.a),[],import.meta.url),"arc-diagram":()=>Pe(()=>import("./Cbi900L7.js").then(t=>t.a),[],import.meta.url),"arrow-symbols":()=>Pe(()=>import("./DsPWNka4.js").then(t=>t.a),[],import.meta.url),"boost-canvas":()=>Pe(()=>import("./RU-c50i6.js").then(t=>t.b),[],import.meta.url),boost:()=>Pe(()=>import("./DbESFOzG.js").then(t=>t.b),[],import.meta.url),"broken-axis":()=>Pe(()=>import("./Dfs9mK3E.js").then(t=>t.b),[],import.meta.url),bullet:()=>Pe(()=>import("./DxVFSPVo.js").then(t=>t.b),[],import.meta.url),coloraxis:()=>Pe(()=>import("./lzFuSLDp.js").then(t=>t.c),[],import.meta.url),"current-date-indicator":()=>Pe(()=>import("./B08tLHbw.js").then(t=>t.c),[],import.meta.url),cylinder:()=>Pe(()=>import("./B0u_wl0R.js").then(t=>t.c),[],import.meta.url),"data-tools":()=>Pe(()=>import("./BlB6-xY7.js").then(t=>t.d),[],import.meta.url),data:()=>Pe(()=>import("./CMmN5xXA.js").then(t=>t.d),[],import.meta.url),datagrouping:()=>Pe(()=>import("./BrwJHqNW.js").then(t=>t.d),[],import.meta.url),debugger:()=>Pe(()=>import("./Nhd9IArX.js").then(t=>t._),[],import.meta.url),"dependency-wheel":()=>Pe(()=>import("./CX0S_vCa.js").then(t=>t.d),[],import.meta.url),dotplot:()=>Pe(()=>import("./Dtr9OJ0E.js").then(t=>t.d),[],import.meta.url),"drag-panes":()=>Pe(()=>import("./CMQM0gJ4.js").then(t=>t.d),[],import.meta.url),"draggable-points":()=>Pe(()=>import("./D3bikcC9.js").then(t=>t.d),[],import.meta.url),drilldown:()=>Pe(()=>import("./Dzz3-Pee.js").then(t=>t.d),[],import.meta.url),dumbbell:()=>Pe(()=>import("./DFS2es8N.js").then(t=>t.d),[],import.meta.url),"export-data":()=>Pe(()=>import("./CQH80dV7.js").then(t=>t.e),[],import.meta.url),exporting:()=>Pe(()=>import("./DX5v_Wgb.js").then(t=>t.e),[],import.meta.url),flowmap:()=>Pe(()=>import("./B4jo8o6x.js").then(t=>t.f),[],import.meta.url),"full-screen":()=>Pe(()=>import("./KMeWkCfr.js").then(t=>t.f),[],import.meta.url),funnel:()=>Pe(()=>import("./Dlvc_MD6.js").then(t=>t.f),[],import.meta.url),funnel3d:()=>Pe(()=>import("./BK1t5pkA.js").then(t=>t.f),[],import.meta.url),gantt:()=>Pe(()=>import("./Ce-6nhob.js").then(t=>t.g),[],import.meta.url),geoheatmap:()=>Pe(()=>import("./DDYjWC3F.js").then(t=>t.g),[],import.meta.url),"grid-axis":()=>Pe(()=>import("./CImEX9oU.js").then(t=>t.g),[],import.meta.url),heatmap:()=>Pe(()=>import("./B5Lp8fCF.js").then(t=>t.h),[],import.meta.url),heikinashi:()=>Pe(()=>import("./DEbssd-N.js").then(t=>t.h),[],import.meta.url),"histogram-bellcurve":()=>Pe(()=>import("./Bspek36S.js").then(t=>t.h),[],import.meta.url),hollowcandlestick:()=>Pe(()=>import("./CJ67OGaV.js").then(t=>t.h),[],import.meta.url),"item-series":()=>Pe(()=>import("./CzjNmxt7.js").then(t=>t.i),[],import.meta.url),lollipop:()=>Pe(()=>import("./DPpoB0A0.js").then(t=>t.l),[],import.meta.url),map:()=>Pe(()=>import("./IRI61UnI.js").then(t=>t.m),[],import.meta.url),"marker-clusters":()=>Pe(()=>import("./JApWnj8_.js").then(t=>t.m),[],import.meta.url),"mouse-wheel-zoom":()=>Pe(()=>import("./DpTpiTjX.js").then(t=>t.m),[],import.meta.url),navigator:()=>Pe(()=>import("./DVFqo2EU.js").then(t=>t.n),[],import.meta.url),networkgraph:()=>Pe(()=>import("./BKk_uGn1.js").then(t=>t.n),[],import.meta.url),"no-data-to-display":()=>Pe(()=>import("./CM1zbkm-.js").then(t=>t.n),[],import.meta.url),"offline-exporting":()=>Pe(()=>import("./BqnNekma.js").then(t=>t.o),[],import.meta.url),organization:()=>Pe(()=>import("./68ren6R1.js").then(t=>t.o),[],import.meta.url),"overlapping-datalabels":()=>Pe(()=>import("./C6m8jcTX.js").then(t=>t.o),[],import.meta.url),"parallel-coordinates":()=>Pe(()=>
28import("./WI_u8q03.js").then(t=>t.p),[],import.meta.url),pareto:()=>Pe(()=>import("./CyFTmUQG.js").then(t=>t.p),[],import.meta.url),pathfinder:()=>Pe(()=>import("./BoSTzVCw.js").then(t=>t.p),[],import.meta.url),"pattern-fill":()=>Pe(()=>import("./BjYhYJRY.js").then(t=>t.p),[],import.meta.url),pictorial:()=>Pe(()=>import("./5r0pLwHn.js").then(t=>t.p),[],import.meta.url),"price-indicator":()=>Pe(()=>import("./CgmfL-aY.js").then(t=>t.p),[],import.meta.url),pyramid3d:()=>Pe(()=>import("./3rbuKtmy.js").then(t=>t.p),[],import.meta.url),sankey:()=>Pe(()=>import("./Dt3DobjB.js").then(t=>t.s),[],import.meta.url),"series-label":()=>Pe(()=>import("./CkNoMXmd.js").then(t=>t.s),[],import.meta.url),"series-on-point":()=>Pe(()=>import("./aKAIO43L.js").then(t=>t.s),[],import.meta.url),"solid-gauge":()=>Pe(()=>import("./B9u9zuPC.js").then(t=>t.s),[],import.meta.url),sonification:()=>Pe(()=>import("./DJpUqCh6.js").then(t=>t.s),[],import.meta.url),"static-scale":()=>Pe(()=>import("./BSVqBm9g.js").then(t=>t.s),[],import.meta.url),"stock-tools":()=>Pe(()=>import("./Dvo6bMJJ.js").then(t=>t.s),[],import.meta.url),stock:()=>Pe(()=>import("./Cl5UdZDm.js").then(t=>t.s),[],import.meta.url),streamgraph:()=>Pe(()=>import("./K0gviay5.js").then(t=>t.s),[],import.meta.url),sunburst:()=>Pe(()=>import("./CsHQUuTy.js").then(t=>t.s),[],import.meta.url),textpath:()=>Pe(()=>import("./DWXL7w5b.js").then(t=>t.t),[],import.meta.url),tiledwebmap:()=>Pe(()=>import("./DcdfiV_b.js").then(t=>t.t),[],import.meta.url),tilemap:()=>Pe(()=>import("./DtE3WnoV.js").then(t=>t.t),[],import.meta.url),timeline:()=>Pe(()=>import("./Cuvu3TU3.js").then(t=>t.t),[],import.meta.url),treegraph:()=>Pe(()=>import("./CW5jOSQY.js").then(t=>t.t),[],import.meta.url),treegrid:()=>Pe(()=>import("./Bd5K5OJC.js").then(t=>t.t),[],import.meta.url),treemap:()=>Pe(()=>import("./D1ZPhPyn.js").then(t=>t.t),[],import.meta.url),"variable-pie":()=>Pe(()=>import("./BApW7s5i.js").then(t=>t.v),[],import.meta.url),variwide:()=>Pe(()=>import("./Ck4ap4px.js").then(t=>t.v),[],import.meta.url),vector:()=>Pe(()=>import("./CkaRlXS9.js").then(t=>t.v),[],import.meta.url),venn:()=>Pe(()=>import("./BMaV_R6n.js").then(t=>t.v),[],import.meta.url),windbarb:()=>Pe(()=>import("./jrwRnkCO.js").then(t=>t.w),[],import.meta.url),wordcloud:()=>Pe(()=>import("./C7pyI6cc.js").then(t=>t.w),[],import.meta.url),xrange:()=>Pe(()=>import("./Br5JjMgu.js").then(t=>t.x),[],import.meta.url)},zf={mapChart:["map"],stockChart:["stock"]};let Wc;function QA(t){Wc={},t.forEach(e=>{Wc[e]=n=>({type:Object,default:()=>n[e]||{}})})}const Ql=Object.freeze({async stock({HC:t}){const e=(await Pe(async()=>{const{default:i}=await import("./CMmN5xXA.js").then(r=>r.d);return{default:i}},[],import.meta.url)).default,n=(await Pe(async()=>{const{default:i}=await import("./BGAvkc6x.js").then(r=>r.i);return{default:i}},[],import.meta.url)).default;e(t),n(t)},async map({mapName:t="myMapName",mapData:e,HC:n}){if(!e){console.error("[nuxt-highcharts] No mapData provided");return}typeof e=="string"&&(e=await(await fetch(e)).json()),n.maps[t]={...e}}});function JA(t="chart",e={}){const n={options:{type:Object,default:()=>e.chartOptions||{}},redraw:{type:Boolean,default:!0},oneToOne:{type:Boolean,default:!0},animation:{type:Object,default:()=>({})},highcharts:{default:()=>XA},exporting:{type:Boolean,default:e.exporting!==void 0?e.exporting:!1},update:{type:Array,default:()=>["options"]},setOptions:{type:Object,default:()=>e.setOptions},modules:{type:Array,default:()=>[]},more:{type:Boolean,default:!1}};Object.entries(Wc).forEach(([r,s])=>{n[r]===void 0&&Ql[r]&&(n[r]=s(e))});const i="chart"+Date.now();return{render:()=>Ot("div",{ref:e.ref||i}),props:n,computed:{optsCopy(){return{...this.options}}},methods:{constructChart(r){const s=r[t];this.chart=s(this.$refs[e.ref||i],this.optsCopy,o=>{this.$emit("chartLoaded",o)})},"options.caption"(r){this.chart.setCaption(r)},"options.series"(r){r&&this.chart.series.forEach((s,o)=>{s.update(r[o],this.redraw)})},"options.subtitle"(r){this.chart.setSubtitle(r)},"options.title"(r){this.chart.setTitle(r)},"options.yAxis"(r){r&&(Array.isArray(r)?this.chart.yAxis.forEach((s,o)=>{s.update(r[o],this.redraw)}):this.chart.yAxis[0].update(r,this.redraw))},"options.xAxis"(r){r&&(Array.isArray(r)?this.chart.xAxis.forEach((s,o)=>{s.update(r[o],this.redraw)}):this.chart.xAxis[0].update(r,this.redraw))},updateAll(r){this.chart.update(r,this.redraw,this.oneToOne,this.animation)}
28,updateWatchers(){this.unwatch.forEach(r=>r()),this.unwatch=[],this.update.forEach(r=>{const s=this[r]||this.updateAll;r==="options"?this.unwatch.push(this.$watch(r,this.updateAll,{deep:!0})):s&&typeof s=="function"&&this.unwatch.push(this.$watch(r,s,{deep:!0}))})}},async mounted(){const r=this.highcharts;if(this.setOptions&&r.setOptions(this.setOptions),this.more){const{default:a}=await Pe(async()=>{const{default:c}=await import("./BicOxmDV.js").then(d=>d.h);return{default:c}},[],import.meta.url);a(r)}const s=this.modules;zf[t]&&s.unshift(...zf[t]);const o=s.map(async a=>{const{default:c}=await YA[a]();if(await c(r),r[a+"Chart"]&&(t=a+"Chart"),Ql[a]){const d={...this[a],HC:r};await Ql[a](d)}});await Promise.all(o),this.chart||this.constructChart(r),this.unwatch=[],this.updateWatchers(),this.$watch("update",this.updateWatchers)},beforeUnmount(){this.chart&&this.chart.destroy()}}}const ZA=St(t=>{const{pluginOptions:e,hcMods:n}=t.$config.public.nuxtHighcharts;QA(n);const i={chartTypes:["Spline","AreaSpline","Line","Scatter","Column","Area"],components:[{name:"highchart",variant:"chart"},{name:"highstock",variant:"stockChart"},{name:"highmap",variant:"mapChart"}]};i.components.forEach(({name:s,variant:o})=>{t.vueApp.component(s,JA(o,e))});function r(s){return Object.freeze({})}Object.entries(i).forEach(([s,o])=>{Object.defineProperty(r,s,{writable:!1,value:Object.freeze(o)})}),t.provide("highcharts",r)}),eS=Symbol("nuxt-ui.slideover"),tS=St(t=>{const e=Qi({component:"div",props:{}});t.vueApp.provide(eS,e)}),nS=Symbol("nuxt-ui.modal"),iS=St(t=>{const e=Qi({component:"div",props:{}});t.vueApp.provide(nS,e)}),eu="-",rS=t=>{const e=oS(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const a=o.split(eu);return a[0]===""&&a.length!==1&&a.shift(),Oy(a,e)||sS(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&i[o]?[...c,...i[o]]:c}}},Oy=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),r=i?Oy(t.slice(1),i):void 0;if(r)return r;if(e.validators.length===0)return;const s=t.join(eu);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},$f=/^\[(.+)\]$/,sS=t=>{if($f.test(t)){const e=$f.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},oS=t=>{const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};return lS(Object.entries(t.classGroups),n).forEach(([s,o])=>{Gc(o,i,s,e)}),i},Gc=(t,e,n,i)=>{t.forEach(r=>{if(typeof r=="string"){const s=r===""?e:Wf(e,r);s.classGroupId=n;return}if(typeof r=="function"){if(aS(r)){Gc(r(i),e,n,i);return}e.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,o])=>{Gc(o,Wf(e,s),n,i)})})},Wf=(t,e)=>{let n=t;return e.split(eu).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},aS=t=>t.isThemeGetter,lS=(t,e)=>e?t.map(([n,i])=>{const r=i.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,r]}):t,cS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const r=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,i=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return r(s,o),o},set(s,o){n.has(s)?n.set(s,o):r(s,o)}}},Ly="!",hS=t=>{const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,r=e[0],s=e.length,o=a=>{const c=[];let d=0,h=0,m;for(let j=0;j<a.length;j++){let U=a[j];if(d===0){if(U===r&&(i||a.slice(j,j+s)===e)){c.push(a.slice(h,j)),h=j+s;continue}if(U==="/"){m=j;continue}}U==="["?d++:U==="]"&&d--}const w=c.length===0?a:a.substring(h),k=w.startsWith(Ly),A=k?w.substring(1):w,F=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:k,baseClassName:A,maybePostfixModifierPosition:F}};return n?a=>n({className:a,parseClassName:o}):o},uS=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e},dS=t=>({cache:cS(t.cacheSize),parseClassName:hS(t),...rS(t)}),fS=/\s+/,pS=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=e,s=[],o=t.trim().split(fS);let a="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:k}=n(d);let A=!!k,F=i(A?w.substring(0,k):w);if(!F){if(!A){a=d+(a.length>0?" "+a:a);continue}if(F=i(w),!F){a=d+(a.length>0?" "+a:a);continue}A=!1}const j=uS(h).join(":"),U=m?j+Ly:j,C=U+F;if(s.includes(C))continue;s.push(C);
vendor: 4,528 bytes, line 28
28const x=r(F,A);for(let I=0;I<x.length;++I){const V=x[I];s.push(U+V)}a=d+(a.length>0?" "+a:a)}return a};function gS(){let t=0,e,n,i="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Dy(e))&&(i&&(i+=" "),i+=n);return i}const Dy=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=Dy(t[i]))&&(n&&(n+=" "),n+=e);return n};function Gf(t,...e){let n,i,r,s=o;function o(c){const d=e.reduce((h,m)=>m(h),t());return n=dS(d),i=n.cache.get,r=n.cache.set,s=a,a(c)}function a(c){const d=i(c);if(d)return d;const h=pS(c,n);return r(c,h),h}return function(){return s(gS.apply(null,arguments))}}const ct=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Ny=/^\[(?:([a-z-]+):)?(.+)\]$/i,mS=/^\d+\/\d+$/,yS=new Set(["px","full","screen"]),_S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bn=t=>Pr(t)||yS.has(t)||mS.test(t),oi=t=>qr(t,"length",kS),Pr=t=>!!t&&!Number.isNaN(Number(t)),Jl=t=>qr(t,"number",Pr),fs=t=>!!t&&Number.isInteger(Number(t)),ES=t=>t.endsWith("%")&&Pr(t.slice(0,-1)),He=t=>Ny.test(t),ai=t=>_S.test(t),TS=new Set(["length","size","percentage"]),AS=t=>qr(t,TS,Vy),SS=t=>qr(t,"position",Vy),CS=new Set(["image","url"]),IS=t=>qr(t,CS,MS),PS=t=>qr(t,"",RS),ps=()=>!0,qr=(t,e,n)=>{const i=Ny.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1},kS=t=>bS.test(t)&&!vS.test(t),Vy=()=>!1,RS=t=>xS.test(t),MS=t=>wS.test(t),qf=()=>{const t=ct("colors"),e=ct("spacing"),n=ct("blur"),i=ct("brightness"),r=ct("borderColor"),s=ct("borderRadius"),o=ct("borderSpacing"),a=ct("borderWidth"),c=ct("contrast"),d=ct("grayscale"),h=ct("hueRotate"),m=ct("invert"),w=ct("gap"),k=ct("gradientColorStops"),A=ct("gradientColorStopPositions"),F=ct("inset"),j=ct("margin"),U=ct("opacity"),C=ct("padding"),x=ct("saturate"),I=ct("scale"),V=ct("sepia"),S=ct("skew"),E=ct("space"),R=ct("translate"),T=()=>["auto","contain","none"],v=()=>["auto","hidden","clip","visible","scroll"],p=()=>["auto",He,e],y=()=>[He,e],u=()=>["",Bn,oi],g=()=>["auto",Pr,He],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",He],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[Pr,He];return{cacheSize:500,separator:":",theme:{colors:[ps],spacing:[Bn,oi],blur:["none","",ai,He],brightness:Q(),borderColor:[t],borderRadius:["none","","full",ai,He],borderSpacing:y(),borderWidth:u(),contrast:Q(),grayscale:q(),hueRotate:Q(),invert:q(),gap:y(),gradientColorStops:[t],gradientColorStopPositions:[ES,oi],inset:p(),margin:p(),opacity:Q(),padding:y(),saturate:Q(),scale:Q(),sepia:q(),skew:Q(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",He]}],container:["container"],columns:[{columns:[ai]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...f(),He]}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[F]}],"inset-x":[{"inset-x":[F]}],"inset-y":[{"inset-y":[F]}],start:[{start:[F]}],end:[{end:[F]}],top:[{top:[F]}
vendor: 4,767 bytes, line 28
28],right:[{right:[F]}],bottom:[{bottom:[F]}],left:[{left:[F]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fs,He]}],basis:[{basis:p()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",He]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",fs,He]}],"grid-cols":[{"grid-cols":[ps]}],"col-start-end":[{col:["auto",{span:["full",fs,He]},He]}],"col-start":[{"col-start":g()}],"col-end":[{"col-end":g()}],"grid-rows":[{"grid-rows":[ps]}],"row-start-end":[{row:["auto",{span:[fs,He]},He]}],"row-start":[{"row-start":g()}],"row-end":[{"row-end":g()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",He]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",He]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",He,e]}],"min-w":[{"min-w":[He,e,"min","max","fit"]}],"max-w":[{"max-w":[He,e,"none","full","min","max","fit","prose",{screen:[ai]},ai]}],h:[{h:[He,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[He,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[He,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[He,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ai,oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jl]}],"font-family":[{font:[ps]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",He]}],"line-clamp":[{"line-clamp":["none",Pr,Jl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bn,He]}],"list-image":[{"list-image":["none",He]}],"list-style-type":[{list:["none","disc","decimal",He]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[U]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bn,oi]}],"underline-offset":[{"underline-offset":["auto",Bn,He]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",He]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",He]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[U]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),SS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",AS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},IS]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[A]}
28],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[U]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[U]}
vendor: 4,467 bytes, line 28
28],"divide-style":[{divide:M()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Bn,He]}],"outline-w":[{outline:[Bn,oi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:u()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[U]}],"ring-offset-w":[{"ring-offset":[Bn,oi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ai,PS]}],"shadow-color":[{shadow:[ps]}],opacity:[{opacity:[U]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ai,He]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[x]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[U]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",He]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",He]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",He]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[fs,He]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",He]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",He]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",He]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Bn,oi,Jl]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
28none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},OS=(t,{cacheSize:e,prefix:n,separator:i,experimentalParseClassName:r,extend:s={},override:o={}})=>{bs(t,"cacheSize",e),bs(t,"prefix",n),bs(t,"separator",i),bs(t,"experimentalParseClassName",r);for(const a in o)LS(t[a],o[a]);for(const a in s)DS(t[a],s[a]);return t},bs=(t,e,n)=>{n!==void 0&&(t[e]=n)},LS=(t,e)=>{if(e)for(const n in e)bs(t,n,e[n])},DS=(t,e)=>{if(e)for(const n in e){const i=e[n];i!==void 0&&(t[n]=(t[n]||[]).concat(i))}},NS=(t,...e)=>typeof t=="function"?Gf(qf,t,...e):Gf(()=>OS(qf(),t),...e);function NM(t,e){const n={...t};for(const i of e)delete n[i];return n}function Kf(t,e,n){typeof e=="string"&&(e=e.split(".").map(r=>{const s=Number(r);return Number.isNaN(s)?r:s}));let i=t;for(const r of e){if(i==null)return n;i=i[r]}return i!==void 0?i:n}var ag;const VS=NS(Ja({extend:{classGroups:{icons:[t=>t.startsWith("i-")]}}},(ag=Ry.ui)==null?void 0:ag.tailwindMerge)),jS=Gh((t,e,n,i)=>{if(i==="default"||i.startsWith("default.")||i==="popper"||i.startsWith("popper.")||i.endsWith("avatar")&&e==="size"||i.endsWith("chip")&&e==="size"||i.endsWith("badge")&&e==="size"||e==="color"||e==="variant")return!1;if(typeof t[e]=="string"&&typeof n=="string"&&t[e]&&n)return t[e]=VS(t[e],n),!0});function VM(t,...e){return t==="override"?Ja({},...e):jS({},...e)}const jy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Xf(t){return jy.test(t)?BS(t):t}function BS(t){const e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(i,r,s,o){return r+r+s+s+o+o});const n=jy.exec(t);return n?`${Number.parseInt(n[1],16)} ${Number.parseInt(n[2],16)} ${Number.parseInt(n[3],16)}`:null}function jM(t){const e=Number.parseFloat(t);return Number.isNaN(e)?t:e}const FS="inherit",US="currentColor",HS="transparent",zS="#000",$S="#fff",WS={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},GS={50:"rgb(var(--color-gray-50) / <alpha-value>)",100:"rgb(var(--color-gray-100) / <alpha-value>)",200:"rgb(var(--color-gray-200) / <alpha-value>)",300:"rgb(var(--color-gray-300) / <alpha-value>)",400:"rgb(var(--color-gray-400) / <alpha-value>)",500:"rgb(var(--color-gray-500) / <alpha-value>)",600:"rgb(var(--color-gray-600) / <alpha-value>)",700:"rgb(var(--color-gray-700) / <alpha-value>)",800:"rgb(var(--color-gray-800) / <alpha-value>)",900:"rgb(var(--color-gray-900) / <alpha-value>)",950:"rgb(var(--color-gray-950) / <alpha-value>)"},qS={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},KS={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},XS={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},YS={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},QS={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},JS={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ZS={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},eC={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},tC={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},nC={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},iC={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},rC={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sC={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},oC={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},aC={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},lC={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},cC={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},hC={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},uC={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},dC={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},fC={50:"rgb(var(--color-primary-50) / <alpha-value>)",100:"rgb(var(--color-primary-100) / <alpha-value>)",200:"rgb(var(--color-primary-200) / <alpha-value>)",300:"rgb(var(--color-primary-300) / <alpha-value>)",400:"rgb(var(--color-primary-400) / <alpha-value>)",500:"rgb(var(--color-primary-500) / <alpha-value>)",600:"rgb(var(--color-primary-600) / <alpha-value>)",700:"rgb(var(--color-primary-700) / <alpha-value>)",800:"rgb(var(--color-primary-800) / <alpha-value>)",900:"rgb(var(--color-primary-900) / <alpha-value>)",950:"rgb(var(--color-primary-950) / <alpha-value>)",DEFAULT:"rgb(var(--color-primary-DEFAULT) / <alpha-value>)"},pC={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Uo={inherit:FS,current:US,transparent:HS,black:zS,white:$S,slate:WS,gray:GS,zinc:qS,neutral:KS,stone:XS,red:YS,orange:QS,amber:JS,yellow:ZS,lime:eC,green:tC,emerald:nC,teal:iC,cyan:rC,sky:sC,blue:oC,indigo:aC,violet:lC,purple:cC,fuchsia:hC,pink:uC,rose:dC,primary:fC,cool:pC},gC=St(()=>{const t=My(),e=ot(),n=Jt(()=>{const r=Kf(Uo,t.ui.primary),s=Kf(Uo,t.ui.gray);return r||console.warn(`[@nuxt/ui] Primary color '${t.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${t.ui.gray}' not found in Tailwind config`),`:root {
29${Object.entries(r||Uo.green).map(([o,a])=>`--color-primary-${o}: ${Xf(a)};`).join(`
30`)}
31--color-primary-DEFAULT: var(--color-primary-500);
32
33${Object.entries(s||Uo.cool).map(([o,a])=>`--color-gray-${o}: ${Xf(a)};`).join(`
34`)}
35}
36
37.dark {
38  --color-primary-DEFAULT: var(--color-primary-400);
39}
40`}),i={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(e.isHydrating&&!e.payload.serverRendered){const r=document.createElement("style");r.innerHTML=n.value,r.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(r),i.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}eT(i)}),mC="__NUXT_COLOR_MODE__",Zl="nuxt-color-mode",yC="localStorage",Fn=window[m
40C]||{},_C=St(t=>{const e=VA("color-mode",()=>wn({preference:Fn.preference,value:Fn.value,unknown:!1,forced:!1})).value;sn().afterEach(s=>{const o=s.meta.colorMode;o&&o!=="system"?(e.value=o,e.forced=!0):(o==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?Fn.getColorScheme():e.preference)});let n;function i(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!e.forced&&e.preference==="system"&&(e.value=Fn.getColorScheme())}))}function r(s,o){var a,c;switch(s){case"cookie":window.document.cookie=Zl+"="+o;break;case"sessionStorage":(a=window.sessionStorage)==null||a.setItem(Zl,o);break;case"localStorage":default:(c=window.localStorage)==null||c.setItem(Zl,o)}}In(()=>e.preference,s=>{e.forced||(s==="system"?(e.value=Fn.getColorScheme(),i()):e.value=s,r(yC,s))},{immediate:!0}),In(()=>e.value,(s,o)=>{Fn.removeColorScheme(o),Fn.addColorScheme(s)}),e.preference==="system"&&i(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=Fn.preference,e.value=Fn.value,e.unknown=!1)}),t.provide("colorMode",e)}),By=/^[a-z0-9]+(-[a-z0-9]+)*$/,ho=(t,e,n,i="")=>{const r=t.split(":");if(t.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),c=r.pop(),d={provider:r.length>0?r[0]:i,prefix:c,name:a};return e&&!ea(d)?null:d}const s=r[0],o=s.split("-");if(o.length>1){const a={provider:i,prefix:o.shift(),name:o.join("-")};return e&&!ea(a)?null:a}if(n&&i===""){const a={provider:i,prefix:"",name:s};return e&&!ea(a,n)?null:a}return null},ea=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1,Fy=Object.freeze({left:0,top:0,width:16,height:16}),Ca=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Kr=Object.freeze({...Fy,...Ca}),qc=Object.freeze({...Kr,body:"",hidden:!1});function bC(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function Yf(t,e){const n=bC(t,e);for(const i in qc)i in Ca?i in t&&!(i in n)&&(n[i]=Ca[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function vC(t,e){const n=t.icons,i=t.aliases||Object.create(null),r=Object.create(null);function s(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=i[o]&&i[o].parent,c=a&&s(a);c&&(r[o]=[a].concat(c))}return r[o]}return Object.keys(n).concat(Object.keys(i)).forEach(s),r}function xC(t,e,n){const i=t.icons,r=t.aliases||Object.create(null);let s={};function o(a){s=Yf(i[a]||r[a],s)}return o(e),n.forEach(o),Yf(t,s)}function Uy(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(r=>{e(r,null),n.push(r)});const i=vC(t);for(const r in i){const s=i[r];s&&(e(r,xC(t,r,s)),n.push(r))}return n}const wC={provider:"",aliases:{},not_found:{},...Fy};function ec(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Hy(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ec(t,wC))return null;const n=e.icons;for(const r in n){const s=n[r];if(!r||typeof s.body!="string"||!ec(s,qc))return null}const i=e.aliases||Object.create(null);for(const r in i){const s=i[r],o=s.parent;if(!r||typeof o!="string"||!n[o]&&!i[o]||!ec(s,qc))return null}return e}const Qf=Object.create(null);function EC(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Zi(t,e){const n=Qf[t]||(Qf[t]=Object.create(null));return n[e]||(n[e]=EC(t,e))}function zy(t,e){return Hy(e)?Uy(e,(n,i)=>{i?t.icons[n]=i:t.missing.add(n)}):[]}function TC(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let Gs=!1;function $y(t){return typeof t=="boolean"&&(Gs=t),Gs}function tu(t){const e=typeof t=="string"?ho(t,!0,Gs):t;if(e){const n=Zi(e.provider,e.prefix),i=e.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function AC(t,e){const n=ho(t,!0,Gs);if(!n)return!1;const i=Zi(n.provider,n.prefix);return e?TC(i,n.name,e):(i.missing.add(n.name),!0)}function SC(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Gs&&!e&&!t.prefix){let r=!1;return Hy(t)&&(t.prefix="",Uy(t,(s,o)=>{AC(s,o)&&(r=!0)})),r}const n=t.prefix;if(!ea({provider:e,prefix:n,name:"a"}))return!1;const i=Zi(e,n);return!!zy(i,t)}function BM(t){const e=tu(t);return e&&{...Kr,...e}}const Wy=Object.freeze({width:null,height:null}),Gy=Object.freeze({...Wy,...Ca}),CC=/(-?[0-9.]*[0-9]+[0-9.]*)/g,IC=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jf(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const i=t.split(CC);if(i===null||!i.length)return t;const r=[];let s=i.shift(),o=IC.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?r.push(s):r.push(Math.ceil(a*e*n)/n)}else r.push(s);if(s=i.shift(),s===void 0)return r.join("");o=!o}}function PC(t,e="defs"){let n="";const i=t.indexOf("<"+e);for(;i>=0;){const r=t.indexOf(">",i),s=t.indexOf("</"+e);if(r===-1||s===-1)break;const o=t.indexOf(">",s);if(o===-1)break;n+=t.slice(r+1,s).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:n,content:t}}function kC(t,e){return t?"<defs>"+t+"</defs>"+e:e}function RC(t,e,n){const i=PC(t);return kC(i.defs,e+i.content+n)}const MC=t=>t==="unset"||t==="undefined"||t==="none";function OC(t,e){const n={...Kr,...t},i={...Gy,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;
40[n,i].forEach(F=>{const j=[],U=F.hFlip,C=F.vFlip;let x=F.rotate;U?C?x+=2:(j.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),j.push("scale(-1 1)"),r.top=r.left=0):C&&(j.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),j.push("scale(1 -1)"),r.top=r.left=0);let I;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:I=r.height/2+r.top,j.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:j.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:I=r.width/2+r.left,j.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}x%2===1&&(r.left!==r.top&&(I=r.left,r.left=r.top,r.top=I),r.width!==r.height&&(I=r.width,r.width=r.height,r.height=I)),j.length&&(s=RC(s,'<g transform="'+j.join(" ")+'">',"</g>"))});const o=i.width,a=i.height,c=r.width,d=r.height;let h,m;o===null?(m=a===null?"1em":a==="auto"?d:a,h=Jf(m,c/d)):(h=o==="auto"?c:o,m=a===null?Jf(h,d/c):a==="auto"?d:a);const w={},k=(F,j)=>{MC(j)||(w[F]=j.toString())};k("width",h),k("height",m);const A=[r.left,r.top,c,d];return w.viewBox=A.join(" "),{attributes:w,viewBox:A,body:s}}const LC=/\sid="(\S+)"/g,DC="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let NC=0;function VC(t,e=DC){const n=[];let i;for(;i=LC.exec(t);)n.push(i[1]);if(!n.length)return t;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof e=="function"?e(s):e+(NC++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}const Kc=Object.create(null);function qy(t,e){Kc[t]=e}function Xc(t){return Kc[t]||Kc[""]}function nu(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const il=Object.create(null),gs=["https://api.simplesvg.com","https://api.unisvg.com"],ta=[];for(;gs.length>0;)gs.length===1||Math.random()>.5?ta.push(gs.shift()):ta.push(gs.pop());il[""]=nu({resources:["https://api.iconify.design"].concat(ta)});function Ky(t,e){const n=nu(e);return n===null?!1:(il[t]=n,!0)}function rl(t){return il[t]}function jC(){return Object.keys(il)}const BC=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let Ia=BC();function FC(t){Ia=t}function UC(){return Ia}function HC(t,e){const n=rl(t);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let r=0;n.resources.forEach(o=>{r=Math.max(r,o.length)});const s=e+".json?icons=";i=n.maxURL-r-n.path.length-s.length}return i}function zC(t){return t===404}const $C=(t,e,n)=>{const i=[],r=HC(t,e),s="icons";let o={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,d)=>{a+=c.length+1,a>=r&&d>0&&(i.push(o),o={type:s,provider:t,prefix:e,icons:[]},a=c.length),o.icons.push(c)}),i.push(o),i};function WC(t){if(typeof t=="string"){const e=rl(t);if(e)return e.path}return"/"}const GC=(t,e,n)=>{if(!Ia){n("abort",424);return}let i=WC(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});i+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;i+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;Ia(t+i).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(zC(o)?"abort":"next",o)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},qC={prepare:$C,send:GC};function KC(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let i={provider:"",prefix:"",name:""};return t.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;const s=r.provider,o=r.prefix,a=r.name,c=n[s]||(n[s]=Object.create(null)),d=c[o]||(c[o]=Zi(s,o));let h;a in d.icons?h=e.loaded:o===""||d.missing.has(a)?h=e.missing:h=e.pending;const m={provider:s,prefix:o,name:a};h.push(m)}),e}function Xy(t,e){t.forEach(n=>{const i=n.loaderCallbacks;
40i&&(n.loaderCallbacks=i.filter(r=>r.id!==e))})}function XC(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const i=t.provider,r=t.prefix;e.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==r)return!0;const d=c.name;if(t.icons[d])o.loaded.push({provider:i,prefix:r,name:d});else if(t.missing.has(d))o.missing.push({provider:i,prefix:r,name:d});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||Xy([t],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let YC=0;function QC(t,e,n){const i=YC++,r=Xy.bind(null,n,i);if(!e.pending.length)return r;const s={id:i,icons:e,callback:t,abort:r};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),r}function JC(t,e=!0,n=!1){const i=[];return t.forEach(r=>{const s=typeof r=="string"?ho(r,e,n):r;s&&i.push(s)}),i}var ZC={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function eI(t,e,n,i){const r=t.resources.length,s=t.random?Math.floor(Math.random()*r):t.index;let o;if(t.random){let S=t.resources.slice(0);for(o=[];S.length>1;){const E=Math.floor(Math.random()*S.length);o.push(S[E]),S=S.slice(0,E).concat(S.slice(E+1))}o=o.concat(S)}else o=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",d=0,h,m=null,w=[],k=[];typeof i=="function"&&k.push(i);function A(){m&&(clearTimeout(m),m=null)}function F(){c==="pending"&&(c="aborted"),A(),w.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),w=[]}function j(S,E){E&&(k=[]),typeof S=="function"&&k.push(S)}function U(){return{startTime:a,payload:e,status:c,queriesSent:d,queriesPending:w.length,subscribe:j,abort:F}}function C(){c="failed",k.forEach(S=>{S(void 0,h)})}function x(){w.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),w=[]}function I(S,E,R){const T=E!=="success";switch(w=w.filter(v=>v!==S),c){case"pending":break;case"failed":if(T||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){h=R,C();return}if(T){h=R,w.length||(o.length?V():C());return}if(A(),x(),!t.random){const v=t.resources.indexOf(S.resource);v!==-1&&v!==t.index&&(t.index=v)}c="completed",k.forEach(v=>{v(R)})}function V(){if(c!=="pending")return;A();const S=o.shift();if(S===void 0){if(w.length){m=setTimeout(()=>{A(),c==="pending"&&(x(),C())},t.timeout);return}C();return}const E={status:"pending",resource:S,callback:(R,T)=>{I(E,R,T)}};w.push(E),d++,m=setTimeout(V,t.rotate),n(S,e,E.callback)}return setTimeout(V),U}function Yy(t){const e={...ZC,...t};let n=[];function i(){n=n.filter(a=>a().status==="pending")}function r(a,c,d){const h=eI(e,a,c,(m,w)=>{i(),d&&d(m,w)});return n.push(h),h}function s(a){return n.find(c=>a(c))||null}return{query:r,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:i}}function Zf(){}const tc=Object.create(null);function tI(t){if(!tc[t]){const e=rl(t);if(!e)return;const n=Yy(e),i={config:e,redundancy:n};tc[t]=i}return tc[t]}function Qy(t,e,n){let i,r;if(typeof t=="string"){const s=Xc(t);if(!s)return n(void 0,424),Zf;r=s.send;const o=tI(t);o&&(i=o.redundancy)}else{const s=nu(t);if(s){i=Yy(s);const o=t.resources?t.resources[0]:"",a=Xc(o);a&&(r=a.send)}}return!i||!r?(n(void 0,424),Zf):i.query(e,r,n)().abort}function ep(){}function nI(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,XC(t)}))}function iI(t){const e=[],n=[];return t.forEach(i=>{(i.match(By)?e:n).push(i)}),{valid:e,invalid:n}}function ms(t,e,n){function i(){const r=t.pendingIcons;e.forEach(s=>{r&&r.delete(s),t.icons[s]||t.missing.add(s)})}if(n&&typeof n=="object")try{if(!zy(t,n).length){i();return}}catch(r){console.error(r)}i(),nI(t)}function tp(t,e){t instanceof Promise?t.then(n=>{e(n)}).catch(()=>{e(null)}):e(t)}function rI(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:i}=t,r=t.iconsToLoad;if(delete t.iconsToLoad,!r||!r.length)return;const s=t.loadIcon;if(t.loadIcons&&(r.length>1||!s)){tp(t.loadIcons(r,i,n),h=>{ms(t,r,h)});return}if(s){r.forEach(h=>{const m=s(h,i,n);tp(m,w=>{const k=w?{prefix:i,icons:{[h]:w}}:null;ms(t,[h],k)})});return}const{valid:o,invalid:a}=iI(r);if(a.length&&ms(t,a,null),!o.length)return;const c=i.match(By)?Xc(n):null;if(!c){ms(t,o,null);return}
40c.prepare(n,i,o).forEach(h=>{Qy(n,h,m=>{ms(t,h.icons,m)})})}))}const Jy=(t,e)=>{const n=JC(t,!0,$y()),i=KC(n);if(!i.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(i.loaded,i.missing,i.pending,ep)}),()=>{c=!1}}const r=Object.create(null),s=[];let o,a;return i.pending.forEach(c=>{const{provider:d,prefix:h}=c;if(h===a&&d===o)return;o=d,a=h,s.push(Zi(d,h));const m=r[d]||(r[d]=Object.create(null));m[h]||(m[h]=[])}),i.pending.forEach(c=>{const{provider:d,prefix:h,name:m}=c,w=Zi(d,h),k=w.pendingIcons||(w.pendingIcons=new Set);k.has(m)||(k.add(m),r[d][h].push(m))}),s.forEach(c=>{const d=r[c.provider][c.prefix];d.length&&rI(c,d)}),e?QC(e,i,s):ep},FM=t=>new Promise((e,n)=>{const i=typeof t=="string"?ho(t,!0):t;if(!i){n(t);return}Jy([i||t],r=>{if(r.length&&i){const s=tu(i);if(s){e({...Kr,...s});return}}n(t)})});function sI(t,e,n){Zi("",e).loadIcons=t}function oI(t,e){const n={...t};for(const i in e){const r=e[i],s=typeof r;i in Wy?(r===null||r&&(s==="string"||s==="number"))&&(n[i]=r):s===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const aI=/[\s,]+/;function lI(t,e){e.split(aI).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function cI(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(t);return isNaN(r)?0:i(r)}else if(n!==t){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?i(s):0)}}return e}function hI(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)n+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function uI(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function dI(t){return"data:image/svg+xml,"+uI(t)}function fI(t){return'url("'+dI(t)+'")'}const np={...Gy,inline:!1},pI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},gI={display:"inline-block"},Yc={backgroundColor:"currentColor"},Zy={backgroundColor:"transparent"},ip={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},rp={webkitMask:Yc,mask:Yc,background:Zy};for(const t in rp){const e=rp[t];for(const n in ip)e[t+n]=ip[n]}const na={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";na[t+"-flip"]=e,na[t.slice(0,1)+"-flip"]=e,na[t+"Flip"]=e});function sp(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const op=(t,e)=>{const n=oI(np,e),i={...pI},r=e.mode||"svg",s={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let F in e){const j=e[F];if(j!==void 0)switch(F){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[F]=j===!0||j==="true"||j===1;break;case"flip":typeof j=="string"&&lI(n,j);break;case"color":s.color=j;break;case"rotate":typeof j=="string"?n[F]=cI(j):typeof j=="number"&&(n[F]=j);break;case"ariaHidden":case"aria-hidden":j!==!0&&j!=="true"&&delete i["aria-hidden"];break;default:{const U=na[F];U?(j===!0||j==="true"||j===1)&&(n[U]=!0):np[F]===void 0&&(i[F]=j)}}}const c=OC(t,n),d=c.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){i.style={...s,...a},Object.assign(i,d);let F=0,j=e.id;return typeof j=="string"&&(j=j.replace(/-/g,"_")),i.innerHTML=VC(c.body,j?()=>j+"ID"+F++:"iconifyVue"),Ot("svg",i)}const{body:h,width:m,height:w}=t,k=r==="mask"||(r==="bg"?!1:h.indexOf("currentColor")!==-1),A=hI(h,{...d,width:m+"",height:w+""});return i.style={...s,"--svg":fI(A),width:sp(d.width),height:sp(d.height),...gI,...k?Yc:Zy,...a},Ot("span",i)};$y(!0);qy("",qC);if(typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!SC(i))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const i="IconifyProviders["+n+"] is invali
40d.";try{const r=e[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Ky(n,r)||console.error(i)}catch{console.error(i)}}}}const mI={...Kr,body:""},UM=Yn({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=ho(t,!1,!0))===null)return this.abortLoading(),null;let r=tu(i);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:Jy([i],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t)),n){r=Object.assign({},r);const o=n(r.body,i.name,i.prefix,i.provider);typeof o=="string"&&(r.body=o)}const s=["iconify"];return i.prefix!==""&&s.push("iconify--"+i.prefix),i.provider!==""&&s.push("iconify--"+i.provider),{data:r,classes:s}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad,t.customise):null;if(!e)return op(mI,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),op({...Kr,...e.data},n)}}),yI={getAPIConfig:rl,setAPIModule:qy,sendAPIQuery:Qy,setFetch:FC,getFetch:UC,listAPIProviders:jC},_I=St({name:"@nuxt/icon",setup(){var r,s;const t=ao(),e=My().icon;yI.setFetch($fetch.native);const n=[];if(e.provider==="server"){const o=((s=(r=t.app)==null?void 0:r.baseURL)==null?void 0:s.replace(/\/$/,""))??"";n.push(o+(e.localApiEndpoint||"/api/_nuxt_icon")),(e.fallbackToApi===!0||e.fallbackToApi==="client-only")&&n.push(e.iconifyApiEndpoint)}else n.push(e.iconifyApiEndpoint);async function i(o,a){try{const c=await $fetch(n[0]+"/"+a+".json",{query:{icons:o.join(",")}});if(!c||c.prefix!==a||!c.icons)throw new Error("Invalid data"+JSON.stringify(c));return c}catch(c){return console.error("Failed to load custom icons",c),null}}Ky("",{resources:n});for(const o of e.customCollections||[])o&&sI(i,o)}});var ap={};/**
41 * @license
42 * Copyright 2017 Google LLC
43 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
45 * you may not use this file except in compliance with the License.
46 * You may obtain a copy of the License at
47 *
48 *   http://www.apache.org/licenses/LICENSE-2.0
49 *
50 * Unless required by applicable law or agreed to in writing, software
51 * distributed under the License is distributed on an "AS IS" BASIS,
52 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53 * See the License for the specific language governing permissions and
54 * limitations under the License.
55 */const e_=function(t){const e=[];let n=0;for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=r&63|128):(r&64512)===55296&&i+1<t.length&&(t.charCodeAt(i+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++i)&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},bI=function(t){const e=[];let n=0,i=0;for(;n<t.length;){const r=t[n++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){const s=t[n++];e[i++]=String.fromCharCode((r&31)<<6|s&63)}else if(r>239&&r<365){const s=t[n++],o=t[n++],a=t[n++],c=((r&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;e[i++]=String.fromCharCode(55296+(c>>10)),e[i++]=String.fromCharCode(56320+(c&1023))}else{const s=t[n++],o=t[n++];e[i++]=String.fromCharCode((r&15)<<12|(s&63)<<6|o&63)}}return e.join("")},t_={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_,i=[];for(let r=0;r<t.length;r+=3){const s=t[r],o=r+1<t.length,a=o?t[r+1]:0,c=r+2<t.length,d=c?t[r+2]:0,h=s>>2,m=(s&3)<<4|a>>4;let w=(a&15)<<2|d>>6,k=d&63;c||(k=64,o||(w=64)),i.push(n[h],n[m],n[w],n[k])}return i.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(e_(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):bI(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r<t.length;){const s=n[t.charAt(r++)],a=r<t.length?n[t.charAt(r)]:0;++r;
55const d=r<t.length?n[t.charAt(r)]:64;++r;const m=r<t.length?n[t.charAt(r)]:64;if(++r,s==null||a==null||d==null||m==null)throw new vI;const w=s<<2|a>>4;if(i.push(w),d!==64){const k=a<<4&240|d>>2;if(i.push(k),m!==64){const A=d<<6&192|m;i.push(A)}}}return i},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 vI extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const xI=function(t){const e=e_(t);return t_.encodeByteArray(e,!0)},Pa=function(t){return xI(t).replace(/\./g,"")},wI=function(t){try{return t_.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
56 * @license
57 * Copyright 2022 Google LLC
58 *
59 * Licensed under the Apache License, Version 2.0 (the "License");
60 * you may not use this file except in compliance with the License.
61 * You may obtain a copy of the License at
62 *
63 *   http://www.apache.org/licenses/LICENSE-2.0
64 *
65 * Unless required by applicable law or agreed to in writing, software
66 * distributed under the License is distributed on an "AS IS" BASIS,
67 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68 * See the License for the specific language governing permissions and
69 * limitations under the License.
70 */function EI(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
71 * @license
72 * Copyright 2022 Google LLC
73 *
74 * Licensed under the Apache License, Version 2.0 (the "License");
75 * you may not use this file except in compliance with the License.
76 * You may obtain a copy of the License at
77 *
78 *   http://www.apache.org/licenses/LICENSE-2.0
79 *
80 * Unless required by applicable law or agreed to in writing, software
81 * distributed under the License is distributed on an "AS IS" BASIS,
82 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83 * See the License for the specific language governing permissions and
84 * limitations under the License.
85 */const TI=()=>EI().__FIREBASE_DEFAULTS__,AI=()=>{if(typeof process>"u"||typeof ap>"u")return;const t=ap.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},SI=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&wI(t[1]);return e&&JSON.parse(e)},iu=()=>{try{return TI()||AI()||SI()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},CI=t=>{var e,n;return(n=(e=iu())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},II=t=>{const e=CI(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 i=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),i]:[e.substring(0,n),i]},n_=()=>{var t;return(t=iu())===null||t===void 0?void 0:t.config};/**
86 * @license
87 * Copyright 2017 Google LLC
88 *
89 * Licensed under the Apache License, Version 2.0 (the "License");
90 * you may not use this file except in compliance with the License.
91 * You may obtain a copy of the License at
92 *
93 *   http://www.apache.org/licenses/LICENSE-2.0
94 *
95 * Unless required by applicable law or agreed to in writing, software
96 * distributed under the License is distributed on an "AS IS" BASIS,
97 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98 * See the License for the specific language governing permissions and
99 * limitations under the License.
100 */class PI{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,i)=>{n?this.reject(n):this.resolve(i),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,i))}}}/**
101 * @license
102 * Copyright 2021 Google LLC
103 *
104 * Licensed under the Apache License, Version 2.0 (the "License");
105 * you may not use this file except in compliance with the License.
106 * You may obtain a copy of the License at
107 *
108 *   http://www.apache.org/licenses/LICENSE-2.0
109 *
110 * Unless required by applicable law or agreed to in writing, software
111 * distributed under the License is distributed on an "AS IS" BASIS,
112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113 * See the License for the specific language governing permissions and
114 * limitations under the License.
115 */function kI(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"},i=e||"demo-project",r=t.iat||0,s=t.sub||t.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${i}`,aud:i,iat:r,exp:r+3600,auth_time:r,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},t);return[Pa(JSON.stringify(n)),Pa(JSON.stringify(o)),""].join(".")}/**
116 * @license
117 * Copyright 2017 Google LLC
118 *
119 * Licensed under the Apache License, Version 2.0 (the "License");
120 * you may not use this file except in compliance with the License.
121 * You may obtain a copy of the License at
122 *
123 *   http://www.apache.org/licenses/LICENSE-2.0
124 *
125 * Unless required by applicable law or agreed to in writing, software
126 * distributed under the License is distributed on an "AS IS" BASIS,
127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128 * See the License for the specific language governing permissions and
129 * limitations under the License.
130 */function RI(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function MI(){var t;const e=(t=iu())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(globalThis.process)==="[object process]"}catch{return!1}}function OI(){return!MI()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function LI(){try{return typeof indexedDB=="object"}catch{return!1}}function DI(){return new Promise((t,e)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var s;e(((s=r.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){e(n)}})}/**
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 */const NI="FirebaseError";class Xr extends Error{constructor(e,n,i){super(n),this.code=e,this.customData=i,this.name=NI,Object.setPrototypeOf(this,Xr.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,i_.prototype.create)}}class i_{constructor(e,n,i){this.service=e,this.serviceName=n,this.errors=i}create(e,...n){const i=n[0]||{},r=`${this.service}/${e}`,s=this.errors[e],o=s?VI(s,i):"Error",a=`${this.serviceName}: ${o} (${r}).`;return new Xr(r,a,i)}}function VI(t,e){return t.replace(jI,(n,i)=>{const r=e[i];return r!=null?String(r):`<${i}?>`})}const jI=/\{\$([^}]+)}/g;function Qc(t,e){if(t===e)return!0;const n=Object.keys(t),i=Object.keys(e);for(const r of n){if(!i.includes(r))return!1;const s=t[r],o=e[r];if(lp(s)&&lp(o)){if(!Qc(s,o))return!1}else if(s!==o)return!1}for(const r of i)if(!n.includes(r))return!1;return!0}function lp(t){return t!==null&&typeof t=="object"}/**
146 * @license
147 * Copyright 2021 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 */function Vr(t){return t&&t._delegate?t._delegate:t}class qs{constructor(e,n,i){this.name=e,this.instanceFactory=n,this.type=i,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}}/**
161 * @license
162 * Copyright 2019 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 */const Wi="[DEFAULT]";/**
176 * @license
177 * Copyright 2019 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 */class BI{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 i=new PI;if(this.instancesDeferred.set(n,i),this.isInitialized(n)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:n});r&&i.resolve(r)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const i=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),r=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(s){if(r)return null;throw s}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(UI(e))try{this.getOrInitializeService({instanceIdentifier:Wi})}catch{}for(const[n,i]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:r});i.resolve(s)}catch{}}}}clearInstance(e=Wi){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=Wi){return this.instances.has(e)}getOptions(e=Wi){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const[s,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(s);i===a&&o.resolve(r)}return r}onInit(e,n){var i;const r=this.normalizeInstanceIdentifier(n),s=(i=this.onInitCallbacks.get(r))!==null&&i!==void 0?i:new Set;s.add(e),this.onInitCallbacks.set(r,s);const o=this.instances.get(r);return o&&e(o,r),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const i=this.onInitCallbacks.get(n);if(i)for(const r of i)try{r(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:F
190I(e),options:n}),this.instances.set(e,i),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(i,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch{}return i||null}normalizeInstanceIdentifier(e=Wi){return this.component?this.component.multipleInstances?e:Wi:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function FI(t){return t===Wi?void 0:t}function UI(t){return t.instantiationMode==="EAGER"}/**
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 */class HI{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 BI(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
206 * @license
207 * Copyright 2017 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 */var qe;(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"})(qe||(qe={}));const zI={debug:qe.DEBUG,verbose:qe.VERBOSE,info:qe.INFO,warn:qe.WARN,error:qe.ERROR,silent:qe.SILENT},$I=qe.INFO,WI={[qe.DEBUG]:"log",[qe.VERBOSE]:"log",[qe.INFO]:"info",[qe.WARN]:"warn",[qe.ERROR]:"error"},GI=(t,e,...n)=>{if(e<t.logLevel)return;const i=new Date().toISOString(),r=WI[e];if(r)console[r](`[${i}]  ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class r_{constructor(e){this.name=e,this._logLevel=$I,this._logHandler=GI,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in qe))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?zI[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,qe.DEBUG,...e),this._logHandler(this,qe.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,qe.VERBOSE,...e),this._logHandler(this,qe.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,qe.INFO,...e),this._logHandler(this,qe.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,qe.WARN,...e),this._logHandler(this,qe.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,qe.ERROR,...e),this._logHandler(this,qe.ERROR,...e)}}const qI=(t,e)=>e.some(n=>t instanceof n);let cp,hp;function KI(){return cp||(cp=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}
vendor: 4,248 bytes, lines 220-245
220function XI(){return hp||(hp=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const s_=new WeakMap,Jc=new WeakMap,o_=new WeakMap,nc=new WeakMap,ru=new WeakMap;function YI(t){const e=new Promise((n,i)=>{const r=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(bi(t.result)),r()},o=()=>{i(t.error),r()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&s_.set(n,t)}).catch(()=>{}),ru.set(e,t),e}function QI(t){if(Jc.has(t))return;const e=new Promise((n,i)=>{const r=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),r()},o=()=>{i(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});Jc.set(t,e)}let Zc={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Jc.get(t);if(e==="objectStoreNames")return t.objectStoreNames||o_.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return bi(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 JI(t){Zc=t(Zc)}function ZI(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const i=t.call(ic(this),e,...n);return o_.set(i,e.sort?e.sort():[e]),bi(i)}:XI().includes(t)?function(...e){return t.apply(ic(this),e),bi(s_.get(this))}:function(...e){return bi(t.apply(ic(this),e))}}function eP(t){return typeof t=="function"?ZI(t):(t instanceof IDBTransaction&&QI(t),qI(t,KI())?new Proxy(t,Zc):t)}function bi(t){if(t instanceof IDBRequest)return YI(t);if(nc.has(t))return nc.get(t);const e=eP(t);return e!==t&&(nc.set(t,e),ru.set(e,t)),e}const ic=t=>ru.get(t);function tP(t,e,{blocked:n,upgrade:i,blocking:r,terminated:s}={}){const o=indexedDB.open(t,e),a=bi(o);return i&&o.addEventListener("upgradeneeded",c=>{i(bi(o.result),c.oldVersion,c.newVersion,bi(o.transaction),c)}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{s&&c.addEventListener("close",()=>s()),r&&c.addEventListener("versionchange",d=>r(d.oldVersion,d.newVersion,d))}).catch(()=>{}),a}const nP=["get","getKey","getAll","getAllKeys","count"],iP=["put","add","delete","clear"],rc=new Map;function up(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(rc.get(e))return rc.get(e);const n=e.replace(/FromIndex$/,""),i=e!==n,r=iP.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(r||nP.includes(n)))return;const s=async function(o,...a){const c=this.transaction(o,r?"readwrite":"readonly");let d=c.store;return i&&(d=d.index(a.shift())),(await Promise.all([d[n](...a),r&&c.done]))[0]};return rc.set(e,s),s}JI(t=>({...t,get:(e,n,i)=>up(e,n)||t.get(e,n,i),has:(e,n)=>!!up(e,n)||t.has(e,n)}));/**
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 rP{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(sP(n)){const i=n.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(n=>n).join(" ")}}function sP(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const eh="@firebase/app",dp="0.10.18";/**
236 * @license
237 * Copyright 2019 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, softw
245are
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 */const Gn=new r_("@firebase/app"),oP="@firebase/app-compat",aP="@firebase/analytics-compat",lP="@firebase/analytics",cP="@firebase/app-check-compat",hP="@firebase/app-check",uP="@firebase/auth",dP="@firebase/auth-compat",fP="@firebase/database",pP="@firebase/data-connect",gP="@firebase/database-compat",mP="@firebase/functions",yP="@firebase/functions-compat",_P="@firebase/installations",bP="@firebase/installations-compat",vP="@firebase/messaging",xP="@firebase/messaging-compat",wP="@firebase/performance",EP="@firebase/performance-compat",TP="@firebase/remote-config",AP="@firebase/remote-config-compat",SP="@firebase/storage",CP="@firebase/storage-compat",IP="@firebase/firestore",PP="@firebase/vertexai",kP="@firebase/firestore-compat",RP="firebase",MP="11.2.0";/**
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 */const th="[DEFAULT]",OP={[eh]:"fire-core",[oP]:"fire-core-compat",[lP]:"fire-analytics",[aP]:"fire-analytics-compat",[hP]:"fire-app-check",[cP]:"fire-app-check-compat",[uP]:"fire-auth",[dP]:"fire-auth-compat",[fP]:"fire-rtdb",[pP]:"fire-data-connect",[gP]:"fire-rtdb-compat",[mP]:"fire-fn",[yP]:"fire-fn-compat",[_P]:"fire-iid",[bP]:"fire-iid-compat",[vP]:"fire-fcm",[xP]:"fire-fcm-compat",[wP]:"fire-perf",[EP]:"fire-perf-compat",[TP]:"fire-rc",[AP]:"fire-rc-compat",[SP]:"fire-g
265cs",[CP]:"fire-gcs-compat",[IP]:"fire-fst",[kP]:"fire-fst-compat",[PP]:"fire-vertex","fire-js":"fire-js",[RP]:"fire-js-all"};/**
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 ka=new Map,LP=new Map,nh=new Map;function fp(t,e){try{t.container.addComponent(e)}catch(n){Gn.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Ra(t){const e=t.name;if(nh.has(e))return Gn.debug(`There were multiple attempts to register component ${e}.`),!1;nh.set(e,t);for(const n of ka.values())fp(n,t);for(const n of LP.values())fp(n,t);return!0}function DP(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
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 NP={"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
295d-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."},vi=new i_("app","Firebase",NP);/**
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 */class VP{constructor(e,n,i){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new qs("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 vi.create("app-deleted",{appName:this._name})}}/**
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 jP=MP;function a_(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const i=Object.assign({name:th,automaticDataCollectionEnabled:!1},e),r=i.name;if(typeof r!="string"||!r)throw vi.create("bad-app-name",{appName:String(r)});if(n||(n=n_()),!n)throw vi.create("no-options");const s=ka.get(r);if(s){if(Qc(n,s.options)&&Qc(i,s.config))return s;throw vi.create("duplicate-app",{appName:r})}const o=new HI(r);for(const c of nh.values())o.addComponent(c);const a=new VP(n,i,o);return ka.set(r,a),a}function BP(t=th){const e=ka.get(t);if(!e&&t===th&&n_())return a_();if(!e)throw vi.create("no-app",{appName:t});return e}function kr(t,e,n){var i;let r=(i=OP[t])!==null&&i!==void 0?i:t;n&&(r+=`-${n}`);const s=r.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${r}" with version "${e}":`];s&&a.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Gn.warn(a.join(" "));return}Ra(new qs(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}/**
326 * @license
327 * Copyright 2021 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, softw
335are
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 */const FP="firebase-heartbeat-database",UP=1,Ks="firebase-heartbeat-store";let sc=null;function l_(){return sc||(sc=tP(FP,UP,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Ks)}catch(n){console.warn(n)}}}}).catch(t=>{throw vi.create("idb-open",{originalErrorMessage:t.message})})),sc}async function HP(t){try{const n=(await l_()).transaction(Ks),i=await n.objectStore(Ks).get(c_(t));return await n.done,i}catch(e){if(e instanceof Xr)Gn.warn(e.message);else{const n=vi.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Gn.warn(n.message)}}}async function pp(t,e){try{const i=(await l_()).transaction(Ks,"readwrite");await i.objectStore(Ks).put(e,c_(t)),await i.done}catch(n){if(n instanceof Xr)Gn.warn(n.message);else{const i=vi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Gn.warn(i.message)}}}function c_(t){return`${t.name}!${t.options.appId}`}/**
341 * @license
342 * Copyright 2021 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 zP=1024,$P=30*24*60*60*1e3;class WP{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new qP(n),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){var e,n;try{const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=gp();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=>o.date===s)?void 0:(this._heartbeatsCache.heartbeats.push({date:s,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{const a=new Date(o.date).valueOf();return Date.now()-a<=$P}),this._storage.overwrite(this._heartbeatsCache))}catch(i){Gn.warn(i)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=gp(),{heartbeatsToSend:i,unsentEntries:r}=GP(this._heartbeatsCache.heartbeats),s=Pa(JSON.stringify({version:2,heartbeats:i}));return this._heartbeatsCache.lastSentHeartbeatDate=n,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return Gn.warn(n),""}}}function gp(){return new Date().toISOString().substring(0,10)}function GP(t,e=zP){const n=[];let i=t.slice();for(const r of t){const s=n.find(o=>o.agent===r.agent);if(s){if(s.dates.push(r.date),mp(n)>e){s.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),mp(n)>e){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class qP{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return LI()?DI().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await HP(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return pp(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return pp(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}function mp(t){return Pa(JSON.stringify({version:2,heartbeats:t})).length}/**
356 * @license
357 * Copyright 2019 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, software
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 */function KP(t){Ra(new qs("platform-logger",e=>new rP(e),"PRIVATE")),Ra(new qs("heartbeat",e=>new WP(e),"PRIVATE")),kr(eh,dp,t),kr(eh,dp,"esm2017"),kr("fire-js","")}KP("");var XP="firebase",YP="11.2.0";/**
371 * @license
372 * Copyright 2020 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 */kr(XP,YP,"app");var yp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
386Copyright The Closure Library Authors.
387SPDX-License-Identifier: Apache-2.0
388*/var xi,h_;(function(){var t;/** @license
389
390 Copyright The Closure Library Authors.
391 SPDX-License-Identifier: Apache-2.0
392*/function e(E,R){function T(){}T.prototype=R.prototype,E.D=R.prototype,E.prototype=new T,E.prototype.constructor=E,E.C=function(v,p,y){for(var u=Array(arguments.length-2),g=2;g<arguments.length;g++)u[g-2]=arguments[g];return R.prototype[p].apply(v,u)}}function n(){this.blockSize=-1}function i(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(i,n),i.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(E,R,T){T||(T=0);var v=Array(16);if(typeof R=="string")for(var p=0;16>p;++p)v[p]=R.charCodeAt(T++)|R.charCodeAt(T++)<<8|R.charCodeAt(T++)<<16|R.charCodeAt(T++)<<24;else for(p=0;16>p;++p)v[p]=R[T++]|R[T++]<<8|R[T++]<<16|R[T++]<<24;R=E.g[0],T=E.g[1],p=E.g[2];var y=E.g[3],u=R+(y^T&(p^y))+v[0]+3614090360&4294967295;R=T+(u<<7&4294967295|u>>>25),u=y+(p^R&(T^p))+v[1]+3905402710&4294967295,y=R+(u<<12&4294967295|u>>>20),u=p+(T^y&(R^T))+v[2]+606105819&4294967295,p=y+(u<<17&4294967295|u>>>15),u=T+(R^p&(y^R))+v[3]+3250441966&4294967295,T=p+(u<<22&4294967295|u>>>10),u=R+(y^T&(p^y))+v[4]+4118548399&4294967295,R=T+(u<<7&4294967295|u>>>25),u=y+(p^R&(T^p))+v[5]+1200080426&4294967295,y=R+(u<<12&4294967295|u>>>20),u=p+(T^y&(R^T))+v[6]+2821735955&4294967295,p=y+(u<<17&4294967295|u>>>15),u=T+(R^p&(y^R))+v[7]+4249261313&4294967295,T=p+(u<<22&4294967295|u>>>10),u=R+(y^T&(p^y))+v[8]+1770035416&4294967295,R=T+(u<<7&4294967295|u>>>25),u=y+(p^R&(T^p))+v[9]+2336552879&4294967295,y=R+(u<<12&4294967295|u>>>20),u=p+(T^y&(R^T))+v[10]+4294925233&4294967295,p=y+(u<<17&4294967295|u>>>15),u=T+(R^p&(y^R))+v[11]+2304563134&4294967295,T=p+(u<<22&4294967295|u>>>10),u=R+(y^T&(p^y))+v[12]+1804603682&4294967295,R=T+(u<<7&4294967295|u>>>25),u=y+(p^R&(T^p))+v[13]+4254626195&4294967295,y=R+(u<<12&4294967295|u>>>20),u=p+(T^y&(R^T))+v[14]+2792965006&4294967295,p=y+(u<<17&4294967295|u>>>15),u=T+(R^p&(y^R))+v[15]+1236535329&4294967295,T=p+(u<<22&4294967295|u>>>10),u=R+(p^y&(T^p))+v[1]+4129170786&4294967295,R=T+(u<<5&4294967295|u>>>27),u=y+(T^p&(R^T))+v[6]+3225465664&4294967295,y=R+(u<<9&4294967295|u>>>23),u=p+(R^T&(y^R))+v[11]+643717713&4294967295,p=y+(u<<14&4294967295|u>>>18),u=T+(y^R&(p^y))+v[0]+3921069994&4294967295,T=p+(u<<20&4294967295|u>>>12),u=R+(p^y&(T^p))+v[5]+3593408605&4294967295,R=T+(u<<5&4294967295|u>>>27),u=y+(T^p&(R^T))+v[10]+38016083&4294967295,y=R+(u<<9&4294967295|u>>>23),u=p+(R^T&(y^R))+v[15]+3634488961&4294967295,p=y+(u<<14&4294967295|u>>>18),u=T+(y^R&(p^y))+v[4]+3889429448&4294967295,T=p+(u<<20&4294967295|u>>>12),u=R+(p^y&(T^p))+v[9]+568446438&4294967295,R=T+(u<<5&4294967295|u>>>27),u=y+(T^p&(R^T))+v[14]+3275163606&4294967295,y=R+(u<<9&4294967295|u>>>23),u=p+(R^T&(y^R))+v[3]+4107603335&4294967295,p=y+(u<<14&4294967295|u>>>18),u=T+(y^R&(p^y))+v[8]+1163531501&4294967295,T=p+(u<<20&4294967295|u>>>12),u=R+(p^y&(T^p))+v[13]+2850285829&4294967295,R=T+(u<<5&4294967295|u>>>27),u=y+(T^p&(R^T))+v[2]+4243563512&4294967295,y=R+(u<<9&4294967295|u>>>23),u=p+(R^T&(y^R))+v[7]+1735328473&4294967295,p=y+(u<<14&4294967295|u>>>18),u=T+(y^R&(p^y))+v[12]+2368359562&4294967295,T=p+(u<<20&4294967295|u>>>12),u=R+(T^p^y)+v[5]+4294588738&4294967295,R=T+(u<<4&4294967295|u>>>28),u=y+(R^T^p)+v[8]+2272392833&4294967295,y=R+(u<<11&4294967295|u>>>21),u=p+(y^R^T)+v[11]+1839030562&4294967295,p=y+(u<<16&4294967295|u>>>16),u=T+(p^y^R)+v[14]+4259657740&4294967295,T=p+(u<<23&4294967295|u>>>9),u=R+(T^p^y)+v[1]+2763975236&4294967295,R=T+(u<<4&4294967295|u>>>28),u=y+(R^T^p)+v[4]+1272893353&4294967295,y=R+(u<<11&4294967295|u>>>21),u=p+(y^R^T)+v[7]+4139469664&4294967295,p=y+(u<<16&4294967295|u>>>16),u=T+(p^y^R)+v[10]+3200236656&4294967295,T=p+(u<<23&4294967295|u>>>9),u=R+(T^p^y)+v[13]+681279174&4294967295,R=T+(u<<4&4294967295|u>>>28),u=y+(R^T^p)+v[0]+3936430074&4294967295,y=R+(u<<11&4294967295|u>>>21),u=p+(y^R^T)+v[3]+3572445317&4294967295,p=y+(u<<16&4294967295|u>>>16),u=T+(p^y^R)+v[6]+76029189&4294967295,T=p+(u<<23&4294967295|u>>>9),u=R+(T^p^y)+v[9]+3654602809&4294967295,R=T+(u<<4&4294967295|u>>>28),u=y+(R^T^p)+v[12]+3873151461&4294967295,y=R+(u<<11&4294967295|u>>>21),u=p+(y^R^T)+v[15]+530742520&4294967295,p=y+(u<<16&4294967295|u>>>16),u=T+(p^y^R)+v[2]+3299628645&4294967295,T=p+(u<<23&4294967295|u>>>9),u=R+(p^(T|~y))+v[0]+4096336452&4294967295,R=T+(u<<6&4294967295|u>>>26),u=y+(T^(R|~p))+v[7]+1126891415&4294967295,y=R+(u<<10&4294967295|u>>>22),u=p+(R^(y|~T))+v[14]+2878612391&4294967295,p=y+(u<<15&4294967295|u>>>17),u=T+(y^(p|~R))+v[5]+4237533241&4294967295,T=p+(u<<21&4294967295|u>>>11),u=R+(p^(T|~y))+v[12]+1700485571&4294967295,R=T+(u<<6&4294967295|u>>>26),u=y+(T^(R|~p))+v[3]+2399980690&4294967295,y=R+(u<<10&4294967295|u>>>22),u=p+(R^(y|~T))+v[10]+4293915773&4294967295,p=y+(u<<15&4294967295|u>>>17),u=T+(y^(p|~R))+v[1]+2240044497&4294967295,T=p+(u<<21&4294967295|u>>>11),u=R+(p^(T|~y))+v[8]+1873313359&4294967295,R=T+(u<<6&4294967295|u>>>26),u=y+(T^(R|~p))+v[15]+4264355552&4294967295,y=R+(u<<10&4294967295|u>>>22),u=p+(R^(y|~T))+v[6]+2734768916&4294967295,p=y+(u<<15&4294967295|u>>>17),u=T+(y^(p|~R))+v[13]+1309151649&4294967295,T=p+(u<<21&4294967295|u>>>11),u=R+(p^(T|~y))+v[4]+4149444226&4294967295,R=T+(u<<6&4294967295|u>>>26),u=y+(T^(R|~p))+v[11]+3174756917&4294967295,y=R+(u<<10&4294967295|u>>>22),u=p+(R^(y|~T))+v[2]+718787259&4294967295,p=y+(u<<15&4294967295|u>>>17),u=T+(y^(p|~R))+v[9]+3951481745&4294967295,E.g[0]=E.g[0]+R&4294967295,E.g[1]=E.g[1]+(p+(u<<21&4294967295|u>>>11))&4294967295,E.g[2]=E.g[2]+p&4294967295,E.g[3]=E.g[3]+y&4294967295}i.prototype.u=function(E,R){R===void 0&&(R=E.length);for(var T=R-this.blockSize,v=this.B,p=this.h,y=0;y<R;){if(p==0)for(;y<=T;)r(this,E,y),y+=this.blockSize;if(typeof E=="string"){for(;y<R;)if(v[p++]=E.charCodeAt(y++),p==this.blockSize){r(this,v),p=0;break}}else for(;y<R;)if(v[p++]=E[y++],p==this.blockSize){r(this,v),p=0;break}}this.h=p,this.o+=R},i.prototype.v=function(){var E=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);E[0]=128;for(var R=1;R<E.length-8;++R)E[R]=0;var T=8*this.o;for(R=E.length-8;R<E.length;++R)E[R]=T&255,T/=256;for(this.u(E),E=Array(16),R=T=0;4>R;++R)for(var v=0;32>v;v+=8)E[T++]=this.g[R]>>>v&255;return E};function s(E,R){var T=a;return Object.prototype.hasOwnProperty.call(T,E)?T[E]:T[E]=R(E)}function o(E,R){this.h=R;for(var T=[],v=!0,p=E.length-1;0<=p;p--){var y=E[p]|0;v&&y==R||(T[p]=y,v=!1)}this.g=T}var a={};function c(E){return-128<=E&&128>E?s(E,function(R){return new o([R|0],0>R?-1:0)}):new o([E|0],0>E?-1:0)}function d(E){if(isNaN(E)||!isFinite(E))return m;if(0>E)return j(d(-E));for(var R=[],T=1,v=0;E>=T;v++)R[v]=E/T|0,T*=4294967296;return new o(R,0)}function h(E,R){if(E.length==0)throw Error("number format error: empty string");if(R=R||10,2>R||36<R)throw Error("radix out of range: "+R);if(E.charAt(0)=="-")return j(h(E.substring(1),R));if(0<=E.indexOf("-"))throw Error('number format error: interior "-" character');for(var T=d(Math.pow(R,8)),v=m,p=0;p<E.length;p+=8){var y=Math.min(8,E.length-p),u=parseInt(E.substring(p,p+y),R);8>y?(y=d(Math.pow(R,y)),v=v.j(y).add(d(u))):(v=v.j(T),v=v.add(d(u)))}return v}var m=c(0),w=c(1),k=c(16777216);
vendor: 45,752 bytes, lines 392-411
392t=o.prototype,t.m=function(){if(F(this))return-j(this).m();for(var E=0,R=1,T=0;T<this.g.length;T++){var v=this.i(T);E+=(0<=v?v:4294967296+v)*R,R*=4294967296}return E},t.toString=function(E){if(E=E||10,2>E||36<E)throw Error("radix out of range: "+E);if(A(this))return"0";if(F(this))return"-"+j(this).toString(E);for(var R=d(Math.pow(E,6)),T=this,v="";;){var p=I(T,R).g;T=U(T,p.j(R));var y=((0<T.g.length?T.g[0]:T.h)>>>0).toString(E);if(T=p,A(T))return y+v;for(;6>y.length;)y="0"+y;v=y+v}},t.i=function(E){return 0>E?0:E<this.g.length?this.g[E]:this.h};function A(E){if(E.h!=0)return!1;for(var R=0;R<E.g.length;R++)if(E.g[R]!=0)return!1;return!0}function F(E){return E.h==-1}t.l=function(E){return E=U(this,E),F(E)?-1:A(E)?0:1};function j(E){for(var R=E.g.length,T=[],v=0;v<R;v++)T[v]=~E.g[v];return new o(T,~E.h).add(w)}t.abs=function(){return F(this)?j(this):this},t.add=function(E){for(var R=Math.max(this.g.length,E.g.length),T=[],v=0,p=0;p<=R;p++){var y=v+(this.i(p)&65535)+(E.i(p)&65535),u=(y>>>16)+(this.i(p)>>>16)+(E.i(p)>>>16);v=u>>>16,y&=65535,u&=65535,T[p]=u<<16|y}return new o(T,T[T.length-1]&-2147483648?-1:0)};function U(E,R){return E.add(j(R))}t.j=function(E){if(A(this)||A(E))return m;if(F(this))return F(E)?j(this).j(j(E)):j(j(this).j(E));if(F(E))return j(this.j(j(E)));if(0>this.l(k)&&0>E.l(k))return d(this.m()*E.m());for(var R=this.g.length+E.g.length,T=[],v=0;v<2*R;v++)T[v]=0;for(v=0;v<this.g.length;v++)for(var p=0;p<E.g.length;p++){var y=this.i(v)>>>16,u=this.i(v)&65535,g=E.i(p)>>>16,f=E.i(p)&65535;T[2*v+2*p]+=u*f,C(T,2*v+2*p),T[2*v+2*p+1]+=y*f,C(T,2*v+2*p+1),T[2*v+2*p+1]+=u*g,C(T,2*v+2*p+1),T[2*v+2*p+2]+=y*g,C(T,2*v+2*p+2)}for(v=0;v<R;v++)T[v]=T[2*v+1]<<16|T[2*v];for(v=R;v<2*R;v++)T[v]=0;return new o(T,0)};function C(E,R){for(;(E[R]&65535)!=E[R];)E[R+1]+=E[R]>>>16,E[R]&=65535,R++}function x(E,R){this.g=E,this.h=R}function I(E,R){if(A(R))throw Error("division by zero");if(A(E))return new x(m,m);if(F(E))return R=I(j(E),R),new x(j(R.g),j(R.h));if(F(R))return R=I(E,j(R)),new x(j(R.g),R.h);if(30<E.g.length){if(F(E)||F(R))throw Error("slowDivide_ only works with positive integers.");for(var T=w,v=R;0>=v.l(E);)T=V(T),v=V(v);var p=S(T,1),y=S(v,1);for(v=S(v,2),T=S(T,2);!A(v);){var u=y.add(v);0>=u.l(E)&&(p=p.add(T),y=u),v=S(v,1),T=S(T,1)}return R=U(E,p.j(R)),new x(p,R)}for(p=m;0<=E.l(R);){for(T=Math.max(1,Math.floor(E.m()/R.m())),v=Math.ceil(Math.log(T)/Math.LN2),v=48>=v?1:Math.pow(2,v-48),y=d(T),u=y.j(R);F(u)||0<u.l(E);)T-=v,y=d(T),u=y.j(R);A(y)&&(y=w),p=p.add(y),E=U(E,u)}return new x(p,E)}t.A=function(E){return I(this,E).h},t.and=function(E){for(var R=Math.max(this.g.length,E.g.length),T=[],v=0;v<R;v++)T[v]=this.i(v)&E.i(v);return new o(T,this.h&E.h)},t.or=function(E){for(var R=Math.max(this.g.length,E.g.length),T=[],v=0;v<R;v++)T[v]=this.i(v)|E.i(v);return new o(T,this.h|E.h)},t.xor=function(E){for(var R=Math.max(this.g.length,E.g.length),T=[],v=0;v<R;v++)T[v]=this.i(v)^E.i(v);return new o(T,this.h^E.h)};function V(E){for(var R=E.g.length+1,T=[],v=0;v<R;v++)T[v]=E.i(v)<<1|E.i(v-1)>>>31;return new o(T,E.h)}function S(E,R){var T=R>>5;R%=32;for(var v=E.g.length-T,p=[],y=0;y<v;y++)p[y]=0<R?E.i(y+T)>>>R|E.i(y+T+1)<<32-R:E.i(y+T);return new o(p,E.h)}i.prototype.digest=i.prototype.v,i.prototype.reset=i.prototype.s,i.prototype.update=i.prototype.u,h_=i,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=d,o.fromString=h,xi=o}).apply(typeof yp<"u"?yp:typeof self<"u"?self:typeof window<"u"?window:{});var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
393Copyright The Closure Library Authors.
394SPDX-License-Identifier: Apache-2.0
395*/var u_,vs,d_,ia,ih,f_,p_,g_;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(l,N,K){return l==Array.prototype||l==Object.prototype||(l[N]=K.value),l};function n(l){l=[typeof globalThis=="object"&&globalThis,l,typeof window=="object"&&window,typeof self=="object"&&self,typeof Ho=="object"&&Ho];for(var N=0;N<l.length;++N){var K=l[N];if(K&&K.Math==Math)return K}throw Error("Cannot find global object")}var i=n(this);function r(l,N){if(N)e:{var K=i;l=l.split(".");for(var he=0;he<l.length-1;he++){var be=l[he];if(!(be in K))break e;K=K[be]}l=l[l.length-1],he=K[l],N=N(he),N!=he&&N!=null&&e(K,l,{configurable:!0,writable:!0,value:N})}}function s(l,N){l instanceof String&&(l+="");var K=0,he=!1,be={next:function(){if(!he&&K<l.length){var xe=K++;return{value:N(xe,l[xe]),done:!1}}return he=!0,{done:!0,value:void 0}}};return be[Symbol.iterator]=function(){return be},be}r("Array.prototype.values",function(l){return l||function(){return s(this,function(N,K){return K})}});/** @license
396
397 Copyright The Closure Library Authors.
398 SPDX-License-Identifier: Apache-2.0
399*/var o=o||{},a=this||self;function c(l){var N=typeof l;return N=N!="object"?N:l?Array.isArray(l)?"array":N:"null",N=="array"||N=="object"&&typeof l.length=="number"}function d(l){var N=typeof l;return N=="object"&&l!=null||N=="function"}function h(l,N,K){return l.call.apply(l.bind,arguments)}function m(l,N,K){if(!l)throw Error();if(2<arguments.length){var he=Array.prototype.slice.call(arguments,2);return function(){var be=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(be,he),l.apply(N,be)}}return function(){return l.apply(N,arguments)}}function w(l,N,K){return w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?h:m,w.apply(null,arguments)}function k(l,N){var K=Array.prototype.slice.call(arguments,1);return function(){var he=K.slice();return he.push.apply(he,arguments),l.apply(this,he)}}function A(l,N){function K(){}K.prototype=N.prototype,l.aa=N.prototype,l.prototype=new K,l.prototype.constructor=l,l.Qb=function(he,be,xe){for(var ke=Array(arguments.length-2),tt=2;tt<arguments.length;tt++)ke[tt-2]=arguments[tt];return N.prototype[be].apply(he,ke)}}function F(l){const N=l.length;if(0<N){const K=Array(N);for(let he=0;he<N;he++)K[he]=l[he];return K}return[]}function j(l,N){for(let K=1;K<arguments.length;K++){const he=arguments[K];if(c(he)){const be=l.length||0,xe=he.length||0;l.length=be+xe;for(let ke=0;ke<xe;ke++)l[be+ke]=he[ke]}else l.push(he)}}class U{constructor(N,K){this.i=N,this.j=K,this.h=0,this.g=null}get(){let N;return 0<this.h?(this.h--,N=this.g,this.g=N.next,N.next=null):N=this.i(),N}}function C(l){return/^[\s\xa0]*$/.test(l)}function x(){var l=a.navigator;return l&&(l=l.userAgent)?l:""}function I(l){return I[" "](l),l}I[" "]=function(){};var V=x().indexOf("Gecko")!=-1&&!(x().toLowerCase().indexOf("webkit")!=-1&&x().indexOf("Edge")==-1)&&!(x().indexOf("Trident")!=-1||x().indexOf("MSIE")!=-1)&&x().indexOf("Edge")==-1;function S(l,N,K){for(const he in l)N.call(K,l[he],he,l)}function E(l,N){for(const K in l)N.call(void 0,l[K],K,l)}function R(l){const N={};for(const K in l)N[K]=l[K];return N}const T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function v(l,N){let K,he;for(let be=1;be<arguments.length;be++){he=arguments[be];for(K in he)l[K]=he[K];for(let xe=0;xe<T.length;xe++)K=T[xe],Object.prototype.hasOwnProperty.call(he,K)&&(l[K]=he[K])}}function p(l){var N=1;l=l.split(":");const K=[];for(;0<N&&l.length;)K.push(l.shift()),N--;return l.length&&K.push(l.join(":")),K}function y(l){a.setTimeout(()=>{throw l},0)}function u(){var l=q;let N=null;return l.g&&(N=l.g,l.g=l.g.next,l.g||(l.h=null),N.next=null),N}class g{constructor(){this.h=this.g=null}add(N,K){const he=f.get();he.set(N,K),this.h?this.h.next=he:this.g=he,this.h=he}}var f=new U(()=>new M,l=>l.reset());class M{constructor(){this.next=this.g=this.h=null}set(N,K){this.h=N,this.g=K,this.next=null}reset(){this.next=this.g=this.h=null}}let L,H=!1,q=new g,z=()=>{const l=a.Promise.resolve(void 0);L=()=>{l.then(Q)}};var Q=()=>{for(var l;l=u();){try{l.h.call(l.g)}catch(K){y(K)}var N=f;N.j(l),100>N.h&&(N.h++,l.next=N.g,N.g=l)}H=!1};function ce(){this.s=this.s,this.C=this.C}ce.prototype.s=!1,ce.prototype.ma=function(){this.s||(this.s=!0,this.N())},ce.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function G(l,N){this.type=l,this.g=this.target=N,this.defaultPrevented=!1}G.prototype.h=function(){this.defaultPrevented=!0};var ne=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var l=!1,N=Object.defineProperty({},"passive",{get:function(){l=!0}});try{const K=()=>{};a.addEventListener("test",K,N),a.removeEventListener("test",K,N)}catch{}return l}();function se(l,N){if(G.call(this,l?l.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,l){var K=this.type=l.type,he=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;if(this.target=l.target||l.srcElement,this.g=N,N=l.relatedTarget){if(V){e:{try{I(N.nodeName);var be=!0;break e}catch{}be=!1}be||(N=null)}}else K=="mouseover"?N=l.fromElement:K=="mouseout"&&(N=l.toElement);this.relatedTarget=N,he?(this.clientX=he.clientX!==void 0?he.clientX:he.pageX,this.clientY=he.clientY!==void 0?he.clientY:he.pageY,this.screenX=he.screenX||0,this.screenY=he.screenY||0):(this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY=l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0),this.button=l.button,this.key=l.key||"",this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.pointerId=l.pointerId||0,this.pointerType=typeof l.pointerType=="string"?l.pointerType:oe[l.pointerType]||"",this.state=l.state,this.i=l,l.defaultPrevented&&se.aa.h.call(this)}}A(se,G);var oe={2:"touch",3:"pen",4:"mouse"};se.prototype.h=function(){se.aa.h.call(this);var l=this.i;l.preventDefault?l.preventDefault():l.returnValue=!1};var le="closure_listenable_"+(1e6*Math.random()|0),D=0;function O(l,N,K,he,be){this.listener=l,this.proxy=null,this.src=N,this.type=K,this.capture=!!he,this.ha=be,this.key=++D,this.da=this.fa=!1}function W(l){l.da=!0,l.listener=null,l.proxy=null,l.src=null,l.ha=null}function te(l){this.src=l,this.g={},this.h=0}te.prototype.add=function(l,N,K,he,be){var xe=l.toString();l=this.g[xe],l||(l=this.g[xe]=[],this.h++);var ke=_(l,N,he,be);return-1<ke?(N=l[ke],K||(N.fa=!1)):(N=new O(N,this.src,xe,!!he,be),N.fa=K,l.push(N)),N};function P(l,N){var K=N.type;if(K in l.g){var he=l.g[K],be=Array.prototype.indexOf.call(he,N,void 0),xe;(xe=0<=be)&&Array.prototype.splice.call(he,be,1),xe&&(W(N),l.g[K].length==0&&(delete l.g[K],l.h--))}}function _(l,N,K,he){for(var be=0;be<l.length;++be){var xe=l[be];if(!xe.da&&xe.listener==N&&xe.capture==!!K&&xe.ha==he)return be}return-1}var b="closure_lm_"+(1e6*Math.random()|0),B={};function $(l,N,K,he,be){if(Array.isArray(N)){for(var xe=0;xe<N.length;xe++)$(l,N[xe],K,he,be);return null}return K=ee(K),l&&l[le]?l.K(N,K,d(he)?!!he.capture:!1,be):X(l,N,K,!1,he,be)}function X(l,N,K,he,be,xe){if(!N)throw Error("Invalid event type");var ke=d(be)?!!be.capture:!!be,tt=Z(l);if(tt||(l[b]=tt=new te(l)),K=tt.add(N,K,he,ke,xe),K.proxy)return K;if(he=J(),K.proxy=he,he.src=l,he.listener=K,l.addEventListener)ne||(be=ke),be===void 0&&(be=!1),l.addEventListener(N.toString(),he,be);else if(l.attachEvent)l.attachEvent(fe(N.toString()),he);else if(l.addListener&&l.removeListener)l.addListener(he);else throw Error("addEventListener and attachEvent are unavailable.");return K}function J(){function l(K){return N.call(l.src,l.listener,K)}const N=ue;return l}function re(l,N,K,he,be){if(Array.isArray(N))for(var xe=0;xe<N.length;xe++)re(l,N[xe],K,he,be);else he=d(he)?!!he.capture:!!he,K=ee(K),l&&l[le]?(l=l.i,N=String(N).toString(),N in l.g&&(xe=l.g[N],K=_(xe,K,he,be),-1<K&&(W(xe[K]),Array.prototype.splice.call(xe,K,1),xe.length==0&&(delete l.g[N],l.h--)))):l&&(l=Z(l))&&(N=l.g[N.toString()],l=-1,N&&(l=_(N,K,he,be)),(K=-1<l?N[l]:null)&&ae(K))}function ae(l){if(typeof l!="number"&&l&&!l.da){var N=l.src;if(N&&N[le])P(N.i,l);else{var K=l.type,he=l.proxy;N.removeEventListener?N.removeEventListener(K,he,l.capture):N.detachEvent?N.detachEvent(fe(K),he):N.addListener&&N.removeListener&&N.removeListener(he),(K=Z(N))?(P(K,l),K.h==0&&(K.src=null,N[b]=null)):W(l)}}}function fe(l){return l in B?B[l]:B[l]="on"+l}function ue(l,N){if(l.da)l=!0;else{N=new se(N,this);var K=l.listener,he=l.ha||l.src;l.fa&&ae(l),l=K.call(he,N)}return l}function Z(l){return l=l[b],l instanceof te?l:null}var Y="__closure_events_fn_"+(1e9*Math.random()>>>0);function ee(l){return typeof l=="function"?l:(l[Y]||(l[Y]=function(N){return l.handleEvent(N)}),l[Y])}function ie(){ce.call(this),this.i=new te(this),this.M=this,this.F=null}A(ie,ce),ie.prototype[le]=!0,ie.prototype.removeEventListener=function(l,N,K,he){re(this,l,N,K,he)};function de(l,N){var K,he=l.F;if(he)for(K=[];he;he=he.F)K.push(he);if(l=l.M,he=N.type||N,typeof N=="string")N=new G(N,l);else if(N instanceof G)N.target=N.target||l;else{var be=N;N=new G(he,l),v(N,be)}if(be=!0,K)for(var xe=K.length-1;0<=xe;xe--){var ke=N.g=K[xe];be=ge(ke,he,!0,N)&&be}if(ke=N.g=l,be=ge(ke,he,!0,N)&&be,be=ge(ke,he,!1,N)&&be,K)for(xe=0;xe<K.length;xe++)ke=N.g=K[xe],be=ge(ke,he,!1,N)&&be}ie.prototype.N=function(){if(ie.aa.N.call(this),this.i){var l=this.i,N;for(N in l.g){for(var K=l.g[N],he=0;he<K.length;he++)W(K[he]);delete l.g[N],l.h--}}this.F=null},ie.prototype.K=function(l,N,K,he){return this.i.add(String(l),N,!1,K,he)},ie.prototype.L=function(l,N,K,he){return this.i.add(String(l),N,!0,K,he)};function ge(l,N,K,he){if(N=l.i.g[String(N)],!N)return!0;N=N.concat();for(var be=!0,xe=0;xe<N.length;++xe){var ke=N[xe];if(ke&&!ke.da&&ke.capture==K){var tt=ke.listener,It=ke.ha||ke.src;ke.fa&&P(l.i,ke),be=tt.call(It,he)!==!1&&be}}return be&&!he.defaultPrevented}function pe(l,N,K){if(typeof l=="function")K&&(l=w(l,K));else if(l&&typeof l.handleEvent=="function")l=w(l.handleEvent,l);else throw Error("Invalid listener argument");return 2147483647<Number(N)?-1:a.setTimeout(l,N||0)}function me(l){l.g=pe(()=>{l.g=null,l.i&&(l.i=!1,me(l))},l.l);const N=l.h;l.h=null,l.m.apply(null,N)}class ye extends ce{constructor(N,K){super(),this.m=N,this.l=K,this.h=null,this.i=!1,this.g=null}j(N){this.h=arguments,this.g?this.i=!0:me(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function _e(l){ce.call(this),this.h=l,this.g={}}A(_e,ce);var ve=[];function we(l){S(l.g,function(N,K){this.g.hasOwnProperty(K)&&ae(N)},l),l.g={}}_e.prototype.N=function(){_e.aa.N.call(this),we(this)},_e.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Ce=a.JSON.stringify,Ie=a.JSON.parse,Te=class{stringify(l){return a.JSON.stringify(l,void 0)}parse(l){return a.JSON.parse(l,void 0)}};function Se(){}Se.prototype.h=null;function Le(l){return l.h||(l.h=l.i())}function Oe(){}var Ne={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Xe(){G.call(this,"d")}A(Xe,G);function $e(){G.call(this,"c")}A($e,G);var at={},dt=null;function _t(){return dt=dt||new ie}at.La="serverreachability";function dn(l){G.call(this,at.La,l)}A(dn,G);function Dt(l){const N=_t();de(N,new dn(N))}at.STAT_EVENT="statevent";function Jn(l,N){G.call(this,at.STAT_EVENT,l),this.stat=N}A(Jn,G);function Ye(l){const N=_t();de(N,new Jn(N,l))}at.Ma="timingevent";function Nt(l,N){G.call(this,at.Ma,l),this.size=N}A(Nt,G);function Gt(l,N){if(typeof l!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){l()},N)}function Oi(){this.g=!0}Oi.prototype.xa=function(){this.g=!1};function bl(l,N,K,he,be,xe){l.info(function(){if(l.g)if(xe)for(var ke="",tt=xe.split("&"),It=0;It<tt.length;It++){var Qe=tt[It].split("=");if(1<Qe.length){var Vt=Qe[0];Qe=Qe[1];var jt=Vt.split("_");ke=2<=jt.length&&jt[1]=="type"?ke+(Vt+"="+Qe+"&"):ke+(Vt+"=redacted&")}}else ke=null;else ke=xe;return"XMLHTTP REQ ("+he+") [attempt "+be+"]: "+N+`
400`+K+`
401`+ke})}function mo(l,N,K,he,be,xe,ke){l.info(function(){return"XMLHTTP RESP ("+he+") [ attempt "+be+"]: "+N+`
402`+K+`
403`+xe+" "+ke})}function On(l,N,K,he){l.info(function(){return"XMLHTTP TEXT ("+N+"): "+_o(l,K)+(he?" "+he:"")})}function yo(l,N){l.info(function(){return"TIMEOUT: "+N})}Oi.prototype.info=function(){};function _o(l,N){if(!l.g)return N;if(!N)return null;try{var K=JSON.parse(N);if(K){for(l=0;l<K.length;l++)if(Array.isArray(K[l])){var he=K[l];if(!(2>he.length)){var be=he[1];if(Array.isArray(be)&&!(1>be.length)){var xe=be[0];if(xe!="noop"&&xe!="stop"&&xe!="close")for(var ke=1;ke<be.length;ke++)be[ke]=""}}}}return Ce(K)}catch{return N}}var Zn={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},ts={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},Li;function ei(){}A(ei,Se),ei.prototype.g=function(){return new XMLHttpRequest},ei.prototype.i=function(){return{}},Li=new ei;function fn(l,N,K,he){this.j=l,this.i=N,this.l=K,this.R=he||1,this.U=new _e(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 Di}function Di(){this.i=null,this.g="",this.h=!1}var Ni={},lr={};function ti(l,N,K){l.L=1,l.v=wo(Ln(N)),l.m=K,l.P=!0,ju(l,null)}function ju(l,N){l.F=Date.now(),bo(l),l.A=Ln(l.v);var K=l.A,he=l.R;Array.isArray(he)||(he=[String(he)]),Ju(K.i,"t",he),l.C=0,K=l.j.J,l.h=new Di,l.g=md(l.j,K?N:null,!l.m),0<l.O&&(l.M=new ye(w(l.Y,l,l.g),l.O)),N=l.U,K=l.g,he=l.ca;var be="readystatechange";Array.isArray(be)||(be&&(ve[0]=be.toString()),be=ve);for(var xe=0;xe<be.length;xe++){var ke=$(K,be[xe],he||N.handleEvent,!1,N.h||N);if(!ke)break;N.g[ke.key]=ke}N=l.H?R(l.H):{},l.m?(l.u||(l.u="POST"),N["Content-Type"]="application/x-www-form-urlencoded",l.g.ea(l.A,l.u,l.m,N)):(l.u="GET",l.g.ea(l.A,l.u,null,N)),Dt(),bl(l.i,l.u,l.A,l.l,l.R,l.m)}fn.prototype.ca=function(l){l=l.target;const N=this.M;N&&Dn(l)==3?N.j():this.Y(l)},fn.prototype.Y=function(l){try{if(l==this.g)e:{const jt=Dn(this.g);var N=this.g.Ba();const ur=this.g.Z();if(!(3>jt)&&(jt!=3||this.g&&(this.h.h||this.g.oa()||sd(this.g)))){this.J||jt!=4||N==7||(N==8||0>=ur?Dt(3):Dt(2)),vl(this);var K=this.g.Z();this.X=K;t:if(Bu(this)){var he=sd(this.g);l="";var be=he.length,xe=Dn(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Vi(this),ns(this);var ke="";break t}this.h.i=new a.TextDecoder}for(N=0;N<be;N++)this.h.h=!0,l+=this.h.i.decode(he[N],{stream:!(xe&&N==be-1)});he.length=0,this.h.g+=l,this.C=0,ke=this.h.g}else ke=this.g.oa();if(this.o=K==200,mo(this.i,this.u,this.A,this.l,this.R,jt,K),this.o){if(this.T&&!this.K){t:{if(this.g){var tt,It=this.g;if((tt=It.g?It.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(tt)){var Qe=tt;break t}}Qe=null}if(K=Qe)On(this.i,this.l,K,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,xl(this,K);else{this.o=!1,this.s=3,Ye(12),Vi(this),ns(this);break e}}if(this.P){K=!0;let pn;for(;!this.J&&this.C<ke.length;)if(pn=Mb(this,ke),pn==lr){jt==4&&(this.s=4,Ye(14),K=!1),On(this.i,this.l,null,"[Incomplete Response]");break}else if(pn==Ni){this.s=4,Ye(15),On(this.i,this.l,ke,"[Invalid Chunk]"),K=!1;break}else On(this.i,this.l,pn,null),xl(this,pn);if(Bu(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),jt!=4||ke.length!=0||this.h.h||(this.s=1,Ye(16),K=!1),this.o=this.o&&K,!K)On(this.i,this.l,ke,"[Invalid Chunked Response]"),Vi(this),ns(this);else if(0<ke.length&&!this.W){this.W=!0;var Vt=this.j;Vt.g==this&&Vt.ba&&!Vt.M&&(Vt.j.info("Great, no buffering proxy detected. Bytes received: "+ke.length),Cl(Vt),Vt.M=!0,Ye(11))}}else On(this.i,this.l,ke,null),xl(this,ke);jt==4&&Vi(this),this.o&&!this.J&&(jt==4?dd(this.j,this):(this.o=!1,bo(this)))}else Xb(this.g),K==400&&0<ke.indexOf("Unknown SID")?(this.s=3,Ye(12)):(this.s=0,Ye(13)),Vi(this),ns(this)}}}catch{}finally{}};function Bu(l){return l.g?l.u=="GET"&&l.L!=2&&l.j.Ca:!1}function Mb(l,N){var K=l.C,he=N.indexOf(`
404`,K);return he==-1?lr:(K=Number(N.substring(K,he)),isNaN(K)?Ni:(he+=1,he+K>N.length?lr:(N=N.slice(he,he+K),l.C=he+K,N)))}fn.prototype.cancel=function(){this.J=!0,Vi(this)};function bo(l){l.S=Date.now()+l.I,Fu(l,l.I)}function Fu(l,N){if(l.B!=null)throw Error("WatchDog timer not null");l.B=Gt(w(l.ba,l),N)}function vl(l){l.B&&(a.clearTimeout(l.B),l.B=null)}fn.prototype.ba=function(){this.B=null;const l=Date.now();0<=l-this.S?(yo(this.i,this.A),this.L!=2&&(Dt(),Ye(17)),Vi(this),this.s=2,ns(this)):Fu(this,this.S-l)};function ns(l){l.j.G==0||l.J||dd(l.j,l)}function Vi(l){vl(l);var N=l.M;N&&typeof N.ma=="function"&&N.ma(),l.M=null,we(l.U),l.g&&(N=l.g,l.g=null,N.abort(),N.ma())}function xl(l,N){try{var K=l.j;if(K.G!=0&&(K.g==l||wl(K.h,l))){if(!l.K&&wl(K.h,l)&&K.G==3){try{var he=K.Da.g.parse(N)}catch{he=null}if(Array.isArray(he)&&he.length==3){var be=he;if(be[0]==0){e:if(!K.u){if(K.g)if(K.g.F+3e3<l.F)Io(K),So(K);else break e;Sl(K),Ye(18)}}else K.za=be[1],0<K.za-K.T&&37500>be[2]&&K.F&&K.v==0&&!K.C&&(K.C=Gt(w(K.Za,K),6e3));if(1>=zu(K.h)&&K.ca){try{K.ca()}catch{}K.ca=void 0}}else Bi(K,11)}else if((l.K||K.g==l)&&Io(K),!C(N))for(be=K.Da.g.parse(N),N=0;N<be.length;N++){let Qe=be[N];if(K.T=Qe[0],Qe=Qe[1],K.G==2)if(Qe[0]=="c"){K.K=Qe[1],K.ia=Qe[2];const Vt=Qe[3];Vt!=null&&(K.la=Vt,K.j.info("VER="+K.la));const jt=Qe[4];jt!=null&&(K.Aa=jt,K.j.info("SVER="+K.Aa));const ur=Qe[5];ur!=null&&typeof ur=="number"&&0<ur&&(he=1.5*ur,K.L=he,K.j.info("backChannelRequestTimeoutMs_="+he)),he=K;const pn=l.g;if(pn){const ko=pn.g?pn.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(ko){var xe=he.h;xe.g||ko.indexOf("spdy")==-1&&ko.indexOf("quic")==-1&&ko.indexOf("h2")==-1||(xe.j=xe.l,xe.g=new Set,xe.h&&(El(xe,xe.h),xe.h=null))}if(he.D){const Il=pn.g?pn.g.getResponseHeader("X-HTTP-Session-Id"):null;Il&&(he.ya=Il,lt(he.I,he.D,Il))}}K.G=3,K.l&&K.l.ua(),K.ba&&(K.R=Date.now()-l.F,K.j.info("Handshake RTT: "+K.R+"ms")),he=K;var ke=l;if(he.qa=gd(he,he.J?he.ia:null,he.W),ke.K){$u(he.h,ke);var tt=ke,It=he.L;It&&(tt.I=It),tt.B&&(vl(tt),bo(tt)),he.g=ke}else hd(he);0<K.i.length&&Co(K)}else Qe[0]!="stop"&&Qe[0]!="close"||Bi(K,7);else K.G==3&&(Qe[0]=="stop"||Qe[0]=="close"?Qe[0]=="stop"?Bi(K,7):Al(K):Qe[0]!="noop"&&K.l&&K.l.ta(Qe),K.v=0)}}Dt(4)}catch{}}var Ob=class{constructor(l,N){this.g=l,this.map=N}};function Uu(l){this.l=l||10,a.PerformanceNavigationTiming?(l=a.performance.getEntriesByType("navigation"),l=0<l.length&&(l[0].nextHopProtocol=="hq"||l[0].nextHopProtocol=="h2")):l=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=l?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Hu(l){return l.h?!0:l.g?l.g.size>=l.j:!1}function zu(l){return l.h?1:l.g?l.g.size:0}function wl(l,N){return l.h?l.h==N:l.g?l.g.has(N):!1}function El(l,N){l.g?l.g.add(N):l.h=N}function $u(l,N){l.h&&l.h==N?l.h=null:l.g&&l.g.has(N)&&l.g.delete(N)}Uu.prototype.cancel=function(){if(this.i=Wu(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const l of this.g.values())l.cancel();this.g.clear()}};function Wu(l){if(l.h!=null)return l.i.concat(l.h.D);if(l.g!=null&&l.g.size!==0){let N=l.i;for(const K of l.g.values())N=N.concat(K.D);return N}return F(l.i)}function Lb(l){if(l.V&&typeof l.V=="function")return l.V();if(typeof Map<"u"&&l instanceof Map||typeof Set<"u"&&l instanceof Set)return Array.from(l.values());if(typeof l=="string")return l.split("");if(c(l)){for(var N=[],K=l.length,he=0;he<K;he++)N.push(l[he]);return N}N=[],K=0;for(he in l)N[K++]=l[he];return N}function Db(l){if(l.na&&typeof l.na=="function")return l.na();if(!l.V||typeof l.V!="function"){if(typeof Map<"u"&&l instanceof Map)return Array.from(l.keys());if(!(typeof Set<"u"&&l instanceof Set)){if(c(l)||typeof l=="string"){var N=[];l=l.length;for(var K=0;K<l;K++)N.push(K);return N}N=[],K=0;for(const he in l)N[K++]=he;return N}}}function Gu(l,N){if(l.forEach&&typeof l.forEach=="function")l.forEach(N,void 0);else if(c(l)||typeof l=="string")Array.prototype.forEach.call(l,N,void 0);else for(var K=Db(l),he=Lb(l),be=he.length,xe=0;xe<be;xe++)N.call(void 0,he[xe],K&&K[xe],l)}var qu=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Nb(l,N){if(l){l=l.split("&");for(var K=0;K<l.length;K++){var he=l[K].indexOf("="),be=null;if(0<=he){var xe=l[K].substring(0,he);be=l[K].substring(he+1)}else xe=l[K];N(xe,be?decodeURIComponent(be.replace(/\+/g," ")):"")}}}function ji(l){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,l instanceof ji){this.h=l.h,vo(this,l.j),this.o=l.o,this.g=l.g,xo(this,l.s),this.l=l.l;var N=l.i,K=new ss;K.i=N.i,N.g&&(K.g=new Map(N.g),K.h=N.h),Ku(this,K),this.m=l.m}else l&&(N=String(l).match(qu))?(this.h=!1,vo(this,N[1]||"",!0),this.o=is(N[2]||""),this.g=is(N[3]||"",!0),xo(this,N[4]),this.l=is(N[5]||"",!0),Ku(this,N[6]||"",!0),this.m=is(N[7]||"")):(this.h=!1,this.i=new ss(null,this.h))}ji.prototype.toString=function(){var l=[],N=this.j;N&&l.push(rs(N,Xu,!0),":");var K=this.g;return(K||N=="file")&&(l.push("//"),(N=this.o)&&l.push(rs(N,Xu,!0),"@"),l.push(encodeURIComponent(String(K)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K=this.s,K!=null&&l.push(":",String(K))),(K=this.l)&&(this.g&&K.charAt(0)!="/"&&l.push("/"),l.push(rs(K,K.charAt(0)=="/"?Bb:jb,!0))),(K=this.i.toString())&&l.push("?",K),(K=this.m)&&l.push("#",rs(K,Ub)),l.join("")};function Ln(l){return new ji(l)}function vo(l,N,K){l.j=K?is(N,!0):N,l.j&&(l.j=l.j.replace(/:$/,""))}function xo(l,N){if(N){if(N=Number(N),isNaN(N)||0>N)throw Error("Bad port number "+N);l.s=N}else l.s=null}function Ku(l,N,K){N instanceof ss?(l.i=N,Hb(l.i,l.h)):(K||(N=rs(N,Fb)),l.i=new ss(N,l.h))}function lt(l,N,K){l.i.set(N,K)}function wo(l){return lt(l,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),l}function is(l,N){return l?N?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""}function rs(l,N,K){return typeof l=="string"?(l=encodeURI(l).replace(N,Vb),K&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null}function Vb(l){return l=l.charCodeAt(0),"%"+(l>>4&15).toString(16)+(l&15).toString(16)}var Xu=/[#\/\?@]/g,jb=/[#\?:]/g,Bb=/[#\?]/g,Fb=/[#\?@]/g,Ub=/#/g;function ss(l,N){this.h=this.g=null,this.i=l||null,this.j=!!N}function ni(l){l.g||(l.g=new Map,l.h=0,l.i&&Nb(l.i,function(N,K){l.add(decodeURIComponent(N.replace(/\+/g," ")),K)}))}t=ss.prototype,t.add=function(l,N){ni(this),this.i=null,l=cr(this,l);var K=this.g.get(l);return K||this.g.set(l,K=[]),K.push(N),this.h+=1,this};function Yu(l,N){ni(l),N=cr(l,N),l.g.has(N)&&(l.i=null,l.h-=l.g.get(N).length,l.g.delete(N))}function Qu(l,N){return ni(l),N=cr(l,N),l.g.has(N)}t.forEach=function(l,N){ni(this),this.g.forEach(function(K,he){K.forEach(function(be){l.call(N,be,he,this)},this)},this)},t.na=function(){ni(this);const l=Array.from(this.g.values()),N=Array.from(this.g.keys()),K=[];for(let he=0;he<N.length;he++){const be=l[he];for(let xe=0;xe<be.length;xe++)K.push(N[he])}return K},t.V=function(l){ni(this);let N=[];if(typeof l=="string")Qu(this,l)&&(N=N.concat(this.g.get(cr(this,l))));else{l=Array.from(this.g.values());for(let K=0;K<l.length;K++)N=N.concat(l[K])}return N},t.set=function(l,N){return ni(this),this.i=null,l=cr(this,l),Qu(this,l)&&(this.h-=this.g.get(l).length),this.g.set(l,[N]),this.h+=1,this},t.get=function(l,N){return l?(l=this.V(l),0<l.length?String(l[0]):N):N};function Ju(l,N,K){Yu(l,N),0<K.length&&(l.i=null,l.g.set(cr(l,N),F(K)),l.h+=K.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const l=[],N=Array.from(this.g.keys());for(var K=0;K<N.length;K++){var he=N[K];const xe=encodeURIComponent(String(he)),ke=this.V(he);for(he=0;he<ke.length;he++){var be=xe;ke[he]!==""&&(be+="="+encodeURIComponent(String(ke[he]))),l.push(be)}}return this.i=l.join("&")};function cr(l,N){return N=String(N),l.j&&(N=N.toLowerCase()),N}function Hb(l,N){N&&!l.j&&(ni(l),l.i=null,l.g.forEach(function(K,he){var be=he.toLowerCase();he!=be&&(Yu(this,he),Ju(this,be,K))},l)),l.j=N}function zb(l,N){const K=new Oi;if(a.Image){const he=new Image;he.onload=k(ii,K,"TestLoadImage: loaded",!0,N,he),he.onerror=k(ii,K,"TestLoadImage: error",!1,N,he),he.onabort=k(ii,K,"TestLoadImage: abort",!1,N,he),he.ontimeout=k(ii,K,"TestLoadImage: timeout",!1,N,he),a.setTimeout(function(){he.ontimeout&&he.ontimeout()},1e4),he.src=l}else N(!1)}function $b(l,N){const K=new Oi,he=new AbortController,be=setTimeout(()=>{he.abort(),ii(K,"TestPingServer: timeout",!1,N)},1e4);fetch(l,{signal:he.signal}).then(xe=>{clearTimeout(be),xe.ok?ii(K,"TestPingServer: ok",!0,N):ii(K,"TestPingServer: server error",!1,N)}).catch(()=>{clearTimeout(be),ii(K,"TestPingServer: error",!1,N)})}function ii(l,N,K,he,be){try{be&&(be.onload=null,be.onerror=null,be.onabort=null,be.ontimeout=null),he(K)}catch{}}function Wb(){this.g=new Te}function Gb(l,N,K){const he=K||"";try{Gu(l,function(be,xe){let ke=be;d(be)&&(ke=Ce(be)),N.push(he+xe+"="+encodeURIComponent(ke))})}catch(be){throw N.push(he+"type="+encodeURIComponent("_badmap")),be}}function Eo(l){this.l=l.Ub||null,this.j=l.eb||!1}A(Eo,Se),Eo.prototype.g=function(){return new To(this.l,this.j)},Eo.prototype.i=function(l){return function(){return l}}({});function To(l,N){ie.call(this),this.D=l,this.o=N,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}A(To,ie),t=To.prototype,t.open=function(l,N){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=l,this.A=N,this.readyState=1,as(this)},t.send=function(l){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const N={headers:this.u,method:this.B,credentials:this.m,cache:void 0};l&&(N.body=l),(this.D||a).fetch(new Request(this.A,N)).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,os(this)),this.readyState=0},t.Sa=function(l){if(this.g&&(this.l=l,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=l.headers,this.readyState=2,as(this)),this.g&&(this.readyState=3,as(this),this.g)))if(this.responseType==="arraybuffer")l.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in l){if(this.j=l.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;Zu(this)}else l.text().then(this.Ra.bind(this),this.ga.bind(this))};function Zu(l){l.j.read().then(l.Pa.bind(l)).catch(l.ga.bind(l))}t.Pa=function(l){if(this.g){if(this.o&&l.value)this.response.push(l.value);else if(!this.o){var N=l.value?l.value:new Uint8Array(0);(N=this.v.decode(N,{stream:!l.done}))&&(this.response=this.responseText+=N)}l.done?os(this):as(this),this.readyState==3&&Zu(this)}},t.Ra=function(l){this.g&&(this.response=this.responseText=l,os(this))},t.Qa=function(l){this.g&&(this.response=l,os(this))},t.ga=function(){this.g&&os(this)};function os(l){l.readyState=4,l.l=null,l.j=null,l.v=null,as(l)}t.setRequestHeader=function(l,N){this.u.append(l,N)},t.getResponseHeader=function(l){return this.h&&this.h.get(l.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const l=[],N=this.h.entries();for(var K=N.next();!K.done;)K=K.value,l.push(K[0]+": "+K[1]),K=N.next();return l.join(`\r
405`)};function as(l){l.onreadystatechange&&l.onreadystatechange.call(l)}Object.defineProperty(To.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(l){this.m=l?"include":"same-origin"}});function ed(l){let N="";return S(l,function(K,he){N+=he,N+=":",N+=K,N+=`\r
406`}),N}function Tl(l,N,K){e:{for(he in K){var he=!1;break e}he=!0}he||(K=ed(K),typeof l=="string"?K!=null&&encodeURIComponent(String(K)):lt(l,N,K))}function mt(l){ie.call(this),this.headers=new Map,this.o=l||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}A(mt,ie);var qb=/^https?$/i,Kb=["POST","PUT"];t=mt.prototype,t.Ha=function(l){this.J=l},t.ea=function(l,N,K,he){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+l);N=N?N.toUpperCase():"GET",this.D=l,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Li.g(),this.v=this.o?Le(this.o):Le(Li),this.g.onreadystatechange=w(this.Ea,this);try{this.B=!0,this.g.open(N,String(l),!0),this.B=!1}catch(xe){td(this,xe);return}if(l=K||"",K=new Map(this.headers),he)if(Object.getPrototypeOf(he)===Object.prototype)for(var be in he)K.set(be,he[be]);else if(typeof he.keys=="function"&&typeof he.get=="function")for(const xe of he.keys())K.set(xe,he.get(xe));else throw Error("Unknown input type for opt_headers: "+String(he));he=Array.from(K.keys()).find(xe=>xe.toLowerCase()=="content-type"),be=a.FormData&&l instanceof a.FormData,!(0<=Array.prototype.indexOf.call(Kb,N,void 0))||he||be||K.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[xe,ke]of K)this.g.setRequestHeader(xe,ke);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{rd(this),this.u=!0,this.g.send(l),this.u=!1}catch(xe){td(this,xe)}};function td(l,N){l.h=!1,l.g&&(l.j=!0,l.g.abort(),l.j=!1),l.l=N,l.m=5,nd(l),Ao(l)}function nd(l){l.A||(l.A=!0,de(l,"complete"),de(l,"error"))}t.abort=function(l){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=l||7,de(this,"complete"),de(this,"abort"),Ao(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Ao(this,!0)),mt.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?id(this):this.bb())},t.bb=function(){id(this)};function id(l){if(l.h&&typeof o<"u"&&(!l.v[1]||Dn(l)!=4||l.Z()!=2)){if(l.u&&Dn(l)==4)pe(l.Ea,0,l);else if(de(l,"readystatechange"),Dn(l)==4){l.h=!1;try{const ke=l.Z();e:switch(ke){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var N=!0;break e;default:N=!1}var K;if(!(K=N)){var he;if(he=ke===0){var be=String(l.D).match(qu)[1]||null;!be&&a.self&&a.self.location&&(be=a.self.location.protocol.slice(0,-1)),he=!qb.test(be?be.toLowerCase():"")}K=he}if(K)de(l,"complete"),de(l,"success");else{l.m=6;try{var xe=2<Dn(l)?l.g.statusText:""}catch{xe=""}l.l=xe+" ["+l.Z()+"]",nd(l)}}finally{Ao(l)}}}}function Ao(l,N){if(l.g){rd(l);const K=l.g,he=l.v[0]?()=>{}:null;l.g=null,l.v=null,N||de(l,"ready");try{K.onreadystatechange=he}catch{}}}function rd(l){l.I&&(a.clearTimeout(l.I),l.I=null)}t.isActive=function(){return!!this.g};function Dn(l){return l.g?l.g.readyState:0}t.Z=function(){try{return 2<Dn(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(l){if(this.g){var N=this.g.responseText;return l&&N.indexOf(l)==0&&(N=N.substring(l.length)),Ie(N)}};function sd(l){try{if(!l.g)return null;if("response"in l.g)return l.g.response;switch(l.H){case"":case"text":return l.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in l.g)return l.g.mozResponseArrayBuffer}return null}catch{return null}}function Xb(l){const N={};l=(l.g&&2<=Dn(l)&&l.g.getAllResponseHeaders()||"").split(`\r
407`);for(let he=0;he<l.length;he++){if(C(l[he]))continue;var K=p(l[he]);const be=K[0];if(K=K[1],typeof K!="string")continue;K=K.trim();const xe=N[be]||[];N[be]=xe,xe.push(K)}E(N,function(he){return he.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function ls(l,N,K){return K&&K.internalChannelParams&&K.internalChannelParams[l]||N}function od(l){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=ls("failFast",!1,l),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=ls("baseRetryDelayMs",5e3,l),this.cb=ls("retryDelaySeedMs",1e4,l),this.Wa=ls("forwardChannelMaxRetries",2,l),this.wa=ls("forwardChannelRequestTimeoutMs",2e4,l),this.pa=l&&l.xmlHttpFactory||void 0,this.Xa=l&&l.Tb||void 0,this.Ca=l&&l.useFetchStreams||!1,this.L=void 0,this.J=l&&l.supportsCrossDomainXhr||!1,this.K="",this.h=new Uu(l&&l.concurrentRequestLimit),this.Da=new Wb,this.P=l&&l.fastHandshake||!1,this.O=l&&l.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=l&&l.Rb||!1,l&&l.xa&&this.j.xa(),l&&l.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&l&&l.detectBufferingProxy||!1,this.ja=void 0,l&&l.longPollingTimeout&&0<l.longPollingTimeout&&(this.ja=l.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=od.prototype,t.la=8,t.G=1,t.connect=function(l,N,K,he){Ye(0),this.W=l,this.H=N||{},K&&he!==void 0&&(this.H.OSID=K,this.H.OAID=he),this.F=this.X,this.I=gd(this,null,this.W),Co(this)};function Al(l){if(ad(l),l.G==3){var N=l.U++,K=Ln(l.I);if(lt(K,"SID",l.K),lt(K,"RID",N),lt(K,"TYPE","terminate"),cs(l,K),N=new fn(l,l.j,N),N.L=2,N.v=wo(Ln(K)),K=!1,a.navigator&&a.navigator.sendBeacon)try{K=a.navigator.sendBeacon(N.v.toString(),"")}catch{}!K&&a.Image&&(new Image().src=N.v,K=!0),K||(N.g=md(N.j,null),N.g.ea(N.v)),N.F=Date.now(),bo(N)}pd(l)}function So(l){l.g&&(Cl(l),l.g.cancel(),l.g=null)}function ad(l){So(l),l.u&&(a.clearTimeout(l.u),l.u=null),Io(l),l.h.cancel(),l.s&&(typeof l.s=="number"&&a.clearTimeout(l.s),l.s=null)}function Co(l){if(!Hu(l.h)&&!l.s){l.s=!0;var N=l.Ga;L||z(),H||(L(),H=!0),q.add(N,l),l.B=0}}function Yb(l,N){return zu(l.h)>=l.h.j-(l.s?1:0)?!1:l.s?(l.i=N.D.concat(l.i),!0):l.G==1||l.G==2||l.B>=(l.Va?0:l.Wa)?!1:(l.s=Gt(w(l.Ga,l,N),fd(l,l.B)),l.B++,!0)}t.Ga=function(l){if(this.s)if(this.s=null,this.G==1){if(!l){this.U=Math.floor(1e5*Math.random()),l=this.U++;const be=new fn(this,this.j,l);let xe=this.o;if(this.S&&(xe?(xe=R(xe),v(xe,this.S)):xe=this.S),this.m!==null||this.O||(be.H=xe,xe=null),this.P)e:{for(var N=0,K=0;K<this.i.length;K++){t:{var he=this.i[K];if("__data__"in he.map&&(he=he.map.__data__,typeof he=="string")){he=he.length;break t}he=void 0}if(he===void 0)break;if(N+=he,4096<N){N=K;break e}if(N===4096||K===this.i.length-1){N=K+1;break e}}N=1e3}else N=1e3;N=cd(this,be,N),K=Ln(this.I),lt(K,"RID",l),lt(K,"CVER",22),this.D&&lt(K,"X-HTTP-Session-Id",this.D),cs(this,K),xe&&(this.O?N="headers="+encodeURIComponent(String(ed(xe)))+"&"+N:this.m&&Tl(K,this.m,xe)),El(this.h,be),this.Ua&&lt(K,"TYPE","init"),this.P?(lt(K,"$req",N),lt(K,"SID","null"),be.T=!0,ti(be,K,null)):ti(be,K,N),this.G=2}}else this.G==3&&(l?ld(this,l):this.i.length==0||Hu(this.h)||ld(this))};function ld(l,N){var K;N?K=N.l:K=l.U++;const he=Ln(l.I);lt(he,"SID",l.K),lt(he,"RID",K),lt(he,"AID",l.T),cs(l,he),l.m&&l.o&&Tl(he,l.m,l.o),K=new fn(l,l.j,K,l.B+1),l.m===null&&(K.H=l.o),N&&(l.i=N.D.concat(l.i)),N=cd(l,K,1e3),K.I=Math.round(.5*l.wa)+Math.round(.5*l.wa*Math.random()),El(l.h,K),ti(K,he,N)}function cs(l,N){l.H&&S(l.H,function(K,he){lt(N,he,K)}),l.l&&Gu({},function(K,he){lt(N,he,K)})}function cd(l,N,K){K=Math.min(l.i.length,K);var he=l.l?w(l.l.Na,l.l,l):null;e:{var be=l.i;let xe=-1;for(;;){const ke=["count="+K];xe==-1?0<K?(xe=be[0].g,ke.push("ofs="+xe)):xe=0:ke.push("ofs="+xe);let tt=!0;for(let It=0;It<K;It++){let Qe=be[It].g;const Vt=be[It].map;if(Qe-=xe,0>Qe)xe=Math.max(0,be[It].g-100),tt=!1;else try{Gb(Vt,ke,"req"+Qe+"_")}catch{he&&he(Vt)}}if(tt){he=ke.join("&");break e}}}return l=l.i.splice(0,K),N.D=l,he}function hd(l){if(!l.g&&!l.u){l.Y=1;var N=l.Fa;L||z(),H||(L(),H=!0),q.add(N,l),l.v=0}}function Sl(l){return l.g||l.u||3<=l.v?!1:(l.Y++,l.u=Gt(w(l.Fa,l),fd(l,l.v)),l.v++,!0)}t.Fa=function(){if(this.u=null,ud(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var l=2*this.R;this.j.info("BP detection timer enabled: "+l),this.A=Gt(w(this.ab,this),l)}},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,Ye(10),So(this),ud(this))};function Cl(l){l.A!=null&&(a.clearTimeout(l.A),l.A=null)}function ud(l){l.g=new fn(l,l.j,"rpc",l.Y),l.m===null&&(l.g.H=l.o),l.g.O=0;var N=Ln(l.qa);lt(N,"RID","rpc"),lt(N,"SID",l.K),lt(N,"AID",l.T),lt(N,"CI",l.F?"0":"1"),!l.F&&l.ja&&lt(N,"TO",l.ja),lt(N,"TYPE","xmlhttp"),cs(l,N),l.m&&l.o&&Tl(N,l.m,l.o),l.L&&(l.g.I=l.L);var K=l.g;l=l.ia,K.L=1,K.v=wo(Ln(N)),K.m=null,K.P=!0,ju(K,l)}t.Za=function(){this.C!=null&&(this.C=null,So(this),Sl(this),Ye(19))};function Io(l){l.C!=null&&(a.clearTimeout(l.C),l.C=null)}function dd(l,N){var K=null;if(l.g==N){Io(l),Cl(l),l.g=null;var he=2}else if(wl(l.h,N))K=N.D,$u(l.h,N),he=1;else return;if(l.G!=0){if(N.o)if(he==1){K=N.m?N.m.length:0,N=Date.now()-N.F;var be=l.B;he=_t(),de(he,new Nt(he,K)),Co(l)}else hd(l);else if(be=N.s,be==3||be==0&&0<N.X||!(he==1&&Yb(l,N)||he==2&&Sl(l)))switch(K&&0<K.length&&(N=l.h,N.i=N.i.concat(K)),be){case 1:Bi(l,5);break;case 4:Bi(l,10);break;case 3:Bi(l,6);break;default:Bi(l,2)}}}function fd(l,N){let K=l.Ta+Math.floor(Math.random()*l.cb);return l.isActive()||(K*=2),K*N}function Bi(l,N){if(l.j.info("Error code "+N),N==2){var K=w(l.fb,l),he=l.Xa;const be=!he;he=new ji(he||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||vo(he,"https"),wo(he),be?zb(he.toString(),K):$b(he.toString(),K)}else Ye(2);l.G=0,l.l&&l.l.sa(N),pd(l),ad(l)}t.fb=function(l){l?(this.j.info("Successfully pinged google.com"),Ye(2)):(this.j.info("Failed to ping google.com"),Ye(1))};function pd(l){if(l.G=0,l.ka=[],l.l){const N=Wu(l.h);(N.length!=0||l.i.length!=0)&&(j(l.ka,N),j(l.ka,l.i),l.h.i.length=0,F(l.i),l.i.length=0),l.l.ra()}}function gd(l,N,K){var he=K instanceof ji?Ln(K):new ji(K);if(he.g!="")N&&(he.g=N+"."+he.g),xo(he,he.s);else{var be=a.location;he=be.protocol,N=N?N+"."+be.hostname:be.hostname,be=+be.port;var xe=new ji(null);he&&vo(xe,he),N&&(xe.g=N),be&&xo(xe,be),K&&(xe.l=K),he=xe}return K=l.D,N=l.ya,K&&N&&lt(he,K,N),lt(he,"VER",l.la),cs(l,he),he}function md(l,N,K){if(N&&!l.J)throw Error("Can't create secondary domain capable XhrIo object.");return N=l.Ca&&!l.pa?new mt(new Eo({eb:K})):new mt(l.pa),N.Ha(l.J),N}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function yd(){}t=yd.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function Po(){}Po.prototype.g=function(l,N){return new en(l,N)};function en(l,N){ie.call(this),this.g=new od(N),this.l=l,this.h=N&&N.messageUrlParams||null,l=N&&N.messageHeaders||null,N&&N.clientProtocolHeaderRequired&&(l?l["X-Client-Protocol"]="webchannel":l={"X-Client-Protocol":"webchannel"}),this.g.o=l,l=N&&N.initMessageHeaders||null,N&&N.messageContentType&&(l?l["X-WebChannel-Content-Type"]=N.messageContentType:l={"X-WebChannel-Content-Type":N.messageContentType}),N&&N.va&&(l?l["X-WebChannel-Client-Profile"]=N.va:l={"X-WebChannel-Client-Profile":N.va}),this.g.S=l,(l=N&&N.Sb)&&!C(l)&&(this.g.m=l),this.v=N&&N.supportsCrossDomainXhr||!1,this.u=N&&N.sendRawJson||!1,(N=N&&N.httpSessionIdParam)&&!C(N)&&(this.g.D=N,l=this.h,l!==null&&N in l&&(l=this.h,N in l&&delete l[N])),this.j=new hr(this)}A(en,ie),en.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},en.prototype.close=function(){Al(this.g)},en.prototype.o=function(l){var N=this.g;if(typeof l=="string"){var K={};K.__data__=l,l=K}else this.u&&(K={},K.__data__=Ce(l),l=K);N.i.push(new Ob(N.Ya++,l)),N.G==3&&Co(N)},en.prototype.N=function(){this.g.l=null,delete this.j,Al(this.g),delete this.g,en.aa.N.call(this)};function _d(l){Xe.call(this),l.__headers__&&(this.headers=l.__headers__,this.statusCode=l.__status__,delete l.__headers__,delete l.__status__);var N=l.__sm__;if(N){e:{for(const K in N){l=K;break e}l=void 0}(this.i=l)&&(l=this.i,N=N!==null&&l in N?N[l]:void 0),this.data=N}else this.data=l}A(_d,Xe);function bd(){$e.call(this),this.status=1}A(bd,$e);function hr(l){this.g=l}A(hr,yd),hr.prototype.ua=function(){de(this.g,"a")},hr.prototype.ta=function(l){de(this.g,new _d(l))},hr.prototype.sa=function(l){de(this.g,new bd)},hr.prototype.ra=function(){de(this.g,"b")},Po.prototype.createWebChannel=Po.prototype.g,en.prototype.send=en.prototype.o,en.prototype.open=en.prototype.m,en.prototype.close=en.prototype.close,g_=function(){return new Po},p_=function(){return _t()},f_=at,ih={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},Zn.NO_ERROR=0,Zn.TIMEOUT=8,Zn.HTTP_ERROR=6,ia=Zn,ts.COMPLETE="complete",d_=ts,Oe.EventType=Ne,Ne.OPEN="a",Ne.CLOSE="b",Ne.ERROR="c",Ne.MESSAGE="d",ie.prototype.listen=ie.prototype.K,vs=Oe,mt.prototype.listenOnce=mt.prototype.L,mt.prototype.getLastError=mt.prototype.Ka,mt.prototype.getLastErrorCode=mt.prototype.Ba,mt.prototype.getStatus=mt.prototype.Z,mt.prototype.getResponseJson=mt.prototype.Oa,mt.prototype.getResponseText=mt.prototype.oa,mt.prototype.send=mt.prototype.ea,mt.prototype.setWithCredentials=mt.prototype.Ha,u_=mt}).apply(typeof Ho<"u"?Ho:typeof self<"u"?self:typeof window<"u"?window:{});const _p="@firebase/firestore";/**
408 * @license
409 * Copyright 2017 Google LLC
410 *
411 * Licensed under the Apache License, Version 2.0 (the "License");
412 * you may not use this file except in compliance with the License.
413 * You may obtain a copy of the License at
414 *
415 *   http://www.apache.org/licenses/LICENSE-2.0
416 *
417 * Unless required by applicable law or agreed to in writing, software
418 * distributed under the License is distributed on an "AS IS" BASIS,
419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
420 * See the License for the specific language governing permissions and
421 * limitations under the License.
422 */class Ft{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}}Ft.UNAUTHENTICATED=new Ft(null),Ft.GOOGLE_CREDENTIALS=new Ft("google-credentials-uid"),Ft.FIRST_PARTY=new Ft("first-party-uid"),Ft.MOCK_USER=new Ft("mock-user");/**
423 * @license
424 * Copyright 2017 Google LLC
425 *
426 * Licensed under the Apache License, Version 2.0 (the "License");
427 * you may not use this file except in compliance with the License.
428 * You may obtain a copy of the License at
429 *
430 *   http://www.apache.org/licenses/LICENSE-2.0
431 *
432 * Unless required by applicable law or agreed to in writing, software
433 * distributed under the License is distributed on an "AS IS" BASIS,
434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
435 * See the License for the specific language governing permissions and
436 * limitations under the License.
437 */let Yr="11.2.0";/**
438 * @license
439 * Copyright 2017 Google LLC
440 *
441 * Licensed under the Apache License, Version 2.0 (the "License");
442 * you may not use this file except in compliance with the License.
443 * You may obtain a copy of the License at
444 *
445 *   http://www.apache.org/licenses/LICENSE-2.0
446 *
447 * Unless required by applicable law or agreed to in writing, software
448 * distributed under the License is distributed on an "AS IS" BASIS,
449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
450 * See the License for the specific language governing permissions and
451 * limitations under the License.
452 */const er=new r_("@firebase/firestore");function yr(){return er.logLevel}function Re(t,...e){if(er.logLevel<=qe.DEBUG){const n=e.map(su);er.debug(`Firestore (${Yr}): ${t}`,...n)}}function qn(t,...e){if(er.logLevel<=qe.ERROR){const n=e.map(su);er.error(`Firestore (${Yr}): ${t}`,...n)}}function jr(t,...e){if(er.logLevel<=qe.WARN){const n=e.map(su);er.warn(`Firestore (${Yr}): ${t}`,...n)}}function su(t){if(typeof t=="string")return t;try{/**
453* @license
454* Copyright 2020 Google LLC
455*
456* Licensed under the Apache License, Version 2.0 (the "License");
457* you may not use this file except in compliance with the License.
458* You may obtain a copy of the License at
459*
460*   http://www.apache.org/licenses/LICENSE-2.0
461*
462* Unless required by applicable law or agreed to in writing, software
463* distributed under the License is distributed on an "AS IS" BASIS,
464* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
465* See the License for the specific language governing permissions and
466* limitations under the License.
467*/return function(n){return JSON.stringify(n)}(t)}catch{return t}}/**
468 * @license
469 * Copyright 2017 Google LLC
470 *
471 * Licensed under the Apache License, Version 2.0 (the "License");
472 * you may not use this file except in compliance with the License.
473 * You may obtain a copy of the License at
474 *
475 *   http://www.apache.org/licenses/LICENSE-2.0
476 *
477 * Unless required by applicable law or agreed to in writing, software
478 * distributed under the License is distributed on an "AS IS" BASIS,
479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
480 * See the License for the specific language governing permissions and
481 * limitations under the License.
482 */function Be(t="Unexpected state"){const e=`FIRESTORE (${Yr}) INTERNAL ASSERTION FAILED: `+t;throw qn(e),new Error(e)}function et(t,e){t||Be()}function Ue(t,e){return t}/**
483 * @license
484 * Copyright 2017 Google LLC
485 *
486 * Licensed under the Apache License, Version 2.0 (the "License");
487 * you may not use this file except in compliance with the License.
488 * You may obtain a copy of the License at
489 *
490 *   http://www.apache.org/licenses/LICENSE-2.0
491 *
492 * Unless required by applicable law or agreed to in writing, softw
492are
493 * distributed under the License is distributed on an "AS IS" BASIS,
494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
495 * See the License for the specific language governing permissions and
496 * limitations under the License.
497 */const Ae={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 Me extends Xr{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/**
498 * @license
499 * Copyright 2017 Google LLC
500 *
501 * Licensed under the Apache License, Version 2.0 (the "License");
502 * you may not use this file except in compliance with the License.
503 * You may obtain a copy of the License at
504 *
505 *   http://www.apache.org/licenses/LICENSE-2.0
506 *
507 * Unless required by applicable law or agreed to in writing, software
508 * distributed under the License is distributed on an "AS IS" BASIS,
509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
510 * See the License for the specific language governing permissions and
511 * limitations under the License.
512 */class wi{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/**
513 * @license
514 * Copyright 2017 Google LLC
515 *
516 * Licensed under the Apache License, Version 2.0 (the "License");
517 * you may not use this file except in compliance with the License.
518 * You may obtain a copy of the License at
519 *
520 *   http://www.apache.org/licenses/LICENSE-2.0
521 *
522 * Unless required by applicable law or agreed to in writing, software
523 * distributed under the License is distributed on an "AS IS" BASIS,
524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
525 * See the License for the specific language governing permissions and
526 * limitations under the License.
527 */class m_{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class QP{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(Ft.UNAUTHENTICATED))}shutdown(){}}class JP{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 ZP{constructor(e){this.t=e,this.currentUser=Ft.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){et(this.o===void 0);let i=this.i;const r=c=>this.i!==i?(i=this.i,n(c)):Promise.resolve();let s=new wi;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new wi,e.enqueueRetryable(()=>r(this.currentUser))};const o=()=>{const c=s;e.enqueueRetryable(async()=>{await c.promise,await r(this.currentUser)})},a=c=>{Re("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit(c=>a(c)),setTimeout(()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?a(c):(Re("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new wi)}},0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(i=>this.i!==e?(Re("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):i?(et(typeof i.accessToken=="string"),new m_(i.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 et(e===null||typeof e=="string"),new Ft(e)}}class ek{constructor(e,n,i){this.l=e,this.h=n,this.P=i,this.type="FirstParty",this.user=Ft.FIRST_PARTY,this.T=new Map}I(){return this.P?this.P():null}get headers(){this.T.set("X-Goog-AuthUser",this.l);const e=this.I();return e&&this.T.set("Authorization",e),this.h&&this.T.set("X-Goog-Iam-Authorization-Token",this.h),this.T}}class tk{constructor(e,n,i){this.l=e,this.h=n,this.P=i}getToken(){return Promise.resolve(new ek(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(Ft.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class nk{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 ik{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){et(this.o===void 0);const i=s=>{s.error!=null&&Re("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const o=s.token!==this.R;return this.R=s.token,Re("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>i(s))};const r=s=>{Re("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit(s=>r(s)),setTimeout(()=>{if(!this.appCheck){const s=this.A.getImmediate({optional:!0});s?r(s):Re("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(et(typeof n.token=="string"),this.R=n.token,new nk(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/**
528 * @license
529 * Copyright 2020 Google LLC
530 *
531 * Licensed under the Apache License, Version 2.0 (the "License");
532 * you may not use this file except in compliance with the License.
533 * You may obtain a copy of the License at
534 *
535 *   http://www.apache.org/licenses/LICENSE-2.0
536 *
537 * Unless required by applicable law or agreed to in writing, software
538 * distributed under the License is distributed on an "AS IS" BASIS,
539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
540 * See the License for the specific language governing permissions and
541 * limitations under the License.
542 */function rk(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 i=0;i<t;i++)n[i]=Math.floor(256*Math.random());return n}/**
543 * @license
544 * Copyright 2017 Google LLC
545 *
546 * Licensed under the Apache License, Version 2.0 (the "License");
547 * you may not use this file except in compliance with the License.
548 * You may obtain a copy of the License at
549 *
550 *   http://www.apache.org/licenses/LICENSE-2.0
551 *
552 * Unless required by applicable law or agreed to in writing, software
553 * distributed under the License is distributed on an "AS IS" BASIS,
554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
555 * See the License for the specific language governing permissions and
556 * limitations under the License.
557 */class y_{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let i="";for(;i.length<20;){const r=rk(40);for(let s=0;s<r.length;++s)i.length<20&&r[s]<n&&(i+=e.charAt(r[s]%e.length))}return i}}function We(t,e){return t<e?-1:t>e?1:0}function Br(t,e,n){return t.length===e.length&&t.every((i,r)=>n(i,e[r]))}/**
558 * @license
559 * Copyright 2017 Google LLC
560 *
561 * Licensed under the Apache License, Version 2.0 (the "License");
562 * you may not use this file except in compliance with the License.
563 * You may obtain a copy of the License at
564 *
565 *   http://www.apache.org/licenses/LICENSE-2.0
566 *
567 * Unless required by applicable law or agreed to in writing, software
568 * distributed under the License is distributed on an "AS IS" BASIS,
569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
570 * See the License for the specific language governing permissions and
571 * limitations under the License.
572 */class Tt{static now(){return Tt.fromMillis(Date.now())}static fromDate(e){return Tt.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),i=Math.floor(1e6*(e-1e3*n));return new Tt(n,i)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new Me(Ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Me(Ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new Me(Ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Me(Ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?We(this.nanoseconds,e.nanoseconds):We(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{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/**
573 * @license
574 * Copyright 2017 Google LLC
575 *
576 * Licensed under the Apache License, Version 2.0 (the "License");
577 * you may not use this file except in compliance with the License.
578 * You may obtain a copy of the License at
579 *
580 *   http://www.apache.org/licenses/LICENSE-2.0
581 *
582 * Unless required by applicable law or agreed to in writing, software
583 * distributed under the License is distributed on an "AS IS" BASIS,
584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
585 * See the License for the specific language governing permissions and
586 * limitations under the License.
587 */class Fe{static fromTimestamp(e){return new Fe(e)}static min(){return new Fe(new Tt(0,0))}static max(){return new Fe(new Tt(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}}/**
588 * @license
589 * Copyright 2017 Google LLC
590 *
591 * Licensed under the Apache License, Version 2.0 (the "License");
592 * you may not use this file except in compliance with the License.
593 * You may obtain a copy of the License at
594 *
595 *   http://www.apache.org/licenses/LICENSE-2.0
596 *
597 * Unless required by applicable law or agreed to in writing, software
598 * distributed under the License is distributed on an "AS IS" BASIS,
599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
600 * See the License for the specific language governing permissions and
601 * limitations under the License.
602 */class An{constructor(e,n,i){n===void 0?n=0:n>e.length&&Be(),i===void 0?i=e.length-n:i>e.length-n&&Be(),this.segments=e,this.offset=n,this.len=i}get length(){return this.len}isEqual(e){return An.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof An?e.forEach(i=>{n.push(i)}):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,i=this.limit();n<i;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const i=Math.min(e.length,n.length);for(let r=0;r<i;r++){const s=An.compareSegments(e.get(r),n.get(r));if(s!==0)return s}return Math.sign(e.length-n.length)}static compareSegments(e,n){const i=An.isNumericId(e),r=An.isNumericId(n);return i&&!r?-1:!i&&r?1:i&&r?An.extractNumericId(e).compare(An.extractNumericId(n)):e<n?-1:e>n?1:0}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return xi.fromString(e.substring(4,e.length-2))}}class ht extends An{construct(e,n,i){return new ht(e,n,i)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const i of e){if(i.indexOf("//")>=0)throw new Me(Ae.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);n.push(...i.split("/").filter(r=>r.length>0))}return new ht(n)}static emptyPath(){return new ht([])}}const sk=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Rt extends An{construct(e,n,i){return new Rt(e,n,i)}static isValidIdentifier(e){return sk.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Rt.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new Rt(["__name__"])}static fromServerFormat(e){const n=[];let i="",r=0;const s=()=>
602{if(i.length===0)throw new Me(Ae.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(i),i=""};let o=!1;for(;r<e.length;){const a=e[r];if(a==="\\"){if(r+1===e.length)throw new Me(Ae.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[r+1];if(c!=="\\"&&c!=="."&&c!=="`")throw new Me(Ae.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);i+=c,r+=2}else a==="`"?(o=!o,r++):a!=="."||o?(i+=a,r++):(s(),r++)}if(s(),o)throw new Me(Ae.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Rt(n)}static emptyPath(){return new Rt([])}}/**
603 * @license
604 * Copyright 2017 Google LLC
605 *
606 * Licensed under the Apache License, Version 2.0 (the "License");
607 * you may not use this file except in compliance with the License.
608 * You may obtain a copy of the License at
609 *
610 *   http://www.apache.org/licenses/LICENSE-2.0
611 *
612 * Unless required by applicable law or agreed to in writing, software
613 * distributed under the License is distributed on an "AS IS" BASIS,
614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
615 * See the License for the specific language governing permissions and
616 * limitations under the License.
617 */class De{constructor(e){this.path=e}static fromPath(e){return new De(ht.fromString(e))}static fromName(e){return new De(ht.fromString(e).popFirst(5))}static empty(){return new De(ht.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&&ht.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return ht.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new De(new ht(e.slice()))}}function ok(t,e){const n=t.toTimestamp().seconds,i=t.toTimestamp().nanoseconds+1,r=Fe.fromTimestamp(i===1e9?new Tt(n+1,0):new Tt(n,i));return new Ai(r,De.empty(),e)}function ak(t){return new Ai(t.readTime,t.key,-1)}class Ai{constructor(e,n,i){this.readTime=e,this.documentKey=n,this.largestBatchId=i}static min(){return new Ai(Fe.min(),De.empty(),-1)}static max(){return new Ai(Fe.max(),De.empty(),-1)}}function lk(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=De.comparator(t.documentKey,e.documentKey),n!==0?n:We(t.largestBatchId,e.largestBatchId))}/**
618 * @license
619 * Copyright 2020 Google LLC
620 *
621 * Licensed under the Apache License, Version 2.0 (the "License");
622 * you may not use this file except in compliance with the License.
623 * You may obtain a copy of the License at
624 *
625 *   http://www.apache.org/licenses/LICENSE-2.0
626 *
627 * Unless required by applicable law or agreed to in writing, software
628 * distributed under the License is distributed on an "AS IS" BASIS,
629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
630 * See the License for the specific language governing permissions and
631 * limitations under the License.
632 */const ck="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class hk{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/**
633 * @license
634 * Copyright 2017 Google LLC
635 *
636 * Licensed under the Apache License, Version 2.0 (the "License");
637 * you may not use this file except in compliance with the License.
638 * You may obtain a copy of the License at
639 *
640 *   http://www.apache.org/licenses/LICENSE-2.0
641 *
642 * Unless required by applicable law or agreed to in writing, software
643 * distributed under the License is distributed on an "AS IS" BASIS,
644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
645 * See the License for the specific language governing permissions and
646 * limitations under the License.
647 */async function Qr(t){if(t.code!==Ae.FAILED_PRECONDITION||t.message!==ck)throw t;Re("LocalStore","Unexpectedly lost primary lease")}/**
648 * @license
649 * Copyright 2017 Google LLC
650 *
651 * Licensed under the Apache License, Version 2.0 (the "License");
652 * you may not use this file except in compliance with the License.
653 * You may obtain a copy of the License at
654 *
655 *   http://www.apache.org/licenses/LICENSE-2.0
656 *
657 * Unless required by applicable law or agreed to in writing, software
658 * distributed under the License is distributed on an "AS IS" BASIS,
659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
660 * See the License for the specific language governing permissions and
661 * limitations under the License.
662 */class Ee{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&&Be(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new Ee((i,r)=>{this.nextCallback=s=>{this.wrapSuccess(e,s).next(i,r)},this.catchCallback=s=>{this.wrapFailure(n,s).next(i,r)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof Ee?n:Ee.resolve(n)}catch(n){return Ee.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):Ee.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):Ee.reject(n)}static resolve(e){return new Ee((n,i)=>{n(e)})}static reject(e){return new Ee((n,i)=>{i(e)})}static waitFor(e){return new Ee((n,i)=>{let r=0,s=0,o=!1;e.forEach(a=>{++r,a.next(()=>{++s,o&&s===r&&n()},c=>i(c))}),o=!0,s===r&&n()})}static or(e){let n=Ee.resolve(!1);for(const i of e)n=n.next(r=>r?Ee.resolve(r):i());return n}static forEach(e,n){const i=[];return e.forEach((r,s)=>{i.push(n.call(this,r,s))}),this.waitFor(i)}static mapArray(e,n){return new Ee((i,r)=>{const s=e.length,o=new Array(s);let a=0;for(let c=0;c<s;c++){const d=c;n(e[d]).next(h=>{o[d]=h,++a,a===s&&i(o)},h=>r(h))}})}static doWhile(e,n){return new Ee((i,r)=>{const s=()=>{e()===!0?n().next(()=>{s()},r):i()};s()})}}function uk(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Jr(t){return t.name==="IndexedDbTransactionError"}/**
663 * @license
664 * Copyright 2018 Google LLC
665 *
666 * Licensed under the Apache License, Version 2.0 (the "License");
667 * you may not use this file except in compliance with the License.
668 * You may obtain a copy of the License at
669 *
670 *   http://www.apache.org/licenses/LICENSE-2.0
671 *
672 * Unless required by applicable law or agreed to in writing, software
673 * distributed under the License is distributed on an "AS IS" BASIS,
674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
675 * See the License for the specific language governing permissions and
676 * limitations under the License.
677 */class sl{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=i=>this.ie(i),this.se=i=>n.writeSequenceNumber(i))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}sl.oe=-1;function ol(t){return t==null}function Ma(t){return t===0&&1/t==-1/0}function dk(t){return typeof t=="number"&&Number.isInteger(t)&&!Ma(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/**
678 * @license
679 * Copyright 2017 Google LLC
680 *
681 * Licensed under the Apache License, Version 2.0 (the "License");
682 * you may not use this file except in compliance with the License.
683 * You may obtain a copy of the License at
684 *
685 *   http://www.apache.org/licenses/LICENSE-2.0
686 *
687 * Unless required by applicable law or agreed to in writing, software
688 * distributed under the License is distributed on an "AS IS" BASIS,
689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
690 * See the License for the specific language governing permissions and
691 * limitations under the License.
692 */function fk(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=bp(e)),e=pk(t.get(n),e);return bp(e)}function pk(t,e){let n=e;const i=t.length;for(let r=0;r<i;r++){const s=t.charAt(r);switch(s){case"\0":n+="��";break;case"�":n+="��";break;default:n+=s}}return n}function bp(t){return t+"��"}/**
693 * @license
694 * Copyright 2017 Google LLC
695 *
696 * Licensed under the Apache License, Version 2.0 (the "License");
697 * you may not use this file except in compliance with the License.
698 * You may obtain a copy of the License at
699 *
700 *   http://www.apache.org/licenses/LICENSE-2.0
701 *
702 * Unless required by applicable law or agreed to in writing, software
703 * distributed under the License is distributed on an "AS IS" BASIS,
704 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
705 * See the License for the specific language governing permissions and
706 * limitations under the License.
707 */function vp(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function rr(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function __(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/**
708 * @license
709 * Copyright 2017 Google LLC
710 *
711 * Licensed under the Apache License, Version 2.0 (the "License");
712 * you may not use this file except in compliance with the License.
713 * You may obtain a copy of the License at
714 *
715 *   http://www.apache.org/licenses/LICENSE-2.0
716 *
717 * Unless required by applicable law or agreed to in writing, software
718 * distributed under the License is distributed on an "AS IS" BASIS,
719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
720 * See the License for the specific language governing permissions and
721 * limitations under the License.
722 */class gt{constructor(e,n){this.comparator=e,this.root=n||kt.EMPTY}insert(e,n){return new gt(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,kt.BLACK,null,null))}remove(e){return new gt(this.comparator,this.root.remove(e,this.comparator).copy(null,null,kt.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const i=this.comparator(e,n.key);if(i===0)return n.value;i<0?n=n.left:i>0&&(n=n.right)}return null}indexOf(e){let n=0,i=this.root;for(;!i.isEmpty();){const r=this.comparator(e,i.key);if(r===0)return n+i.left.size;r<0?i=i.left:(n+=i.left.size+1,i=i.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,i)=>(e(n,i),!1))}toString(){const e=[];return this.inorderTraversal((n,i)=>(e.push(`${n}:${i}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new zo(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new zo(this.root,e,this.comparator,!1)}getReverseIterator(){return new zo(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new zo(this.root,e,this.comparator,!0)}}class zo{constructor(e,n,i,r){this.isReverse=r,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=n?i(e.key,n):1,n&&r&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(s===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 kt{constructor(e,n,i,r,s){this.key=e,this.value=n,this.color=i??kt.RED,this.left=r??kt.EMPTY,this.right=s??kt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,i,r,s){return new kt(e??this.key,n??this.value,i??this.color,r??this.left,s??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,i){let r=this;const s=i(e,r.key);return r=s<0?r.copy(null,null,null,r.left.insert(e,n,i),null):s===0?r.copy(null,n,null,null,null):r.copy(null,null,null,null,r.right.insert(e,n,i)
vendor: 4,352 bytes, lines 722-737
722),r.fixUp()}removeMin(){if(this.left.isEmpty())return kt.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 i,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 kt.EMPTY;i=r.right.min(),r=r.copy(i.key,i.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,kt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,kt.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()||this.right.isRed())throw Be();const e=this.left.check();if(e!==this.right.check())throw Be();return e+(this.isRed()?0:1)}}kt.EMPTY=null,kt.RED=!0,kt.BLACK=!1;kt.EMPTY=new class{constructor(){this.size=0}get key(){throw Be()}get value(){throw Be()}get color(){throw Be()}get left(){throw Be()}get right(){throw Be()}copy(e,n,i,r,s){return this}insert(e,n,i){return new kt(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}};/**
723 * @license
724 * Copyright 2017 Google LLC
725 *
726 * Licensed under the Apache License, Version 2.0 (the "License");
727 * you may not use this file except in compliance with the License.
728 * You may obtain a copy of the License at
729 *
730 *   http://www.apache.org/licenses/LICENSE-2.0
731 *
732 * Unless required by applicable law or agreed to in writing, software
733 * distributed under the License is distributed on an "AS IS" BASIS,
734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
735 * See the License for the specific language governing permissions and
736 * limitations under the License.
737 */class At{constructor(e){this.comparator=e,this.data=new gt(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,i)=>(e(n),!1))}forEachInRange(e,n){const i=this.data.getIteratorFrom(e[0]);for(;i.hasNext();){const r=i.getNext();if(this.comparator(r.key,e[1])>=0)return;n(r.key)}}forEachWhile(e,n){let i;for(i=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();i.hasNext();)if(!e(i.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new xp(this.data.getIterator())}getIteratorFrom(e){return new xp(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(i=>{n=n.add(i)}),n}isEqual(e){if(!(e instanceof At)||this.size!==e.size)return!1;const n=this.data.getIterator(),i=e.data.getIterator();for(;n.hasNext();){const r=n.getNext().key,s=i.getNext().key;if(this.comparator(r,s)!==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 At(this.comparator);return n.data=e,n}}
737class xp{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/**
738 * @license
739 * Copyright 2020 Google LLC
740 *
741 * Licensed under the Apache License, Version 2.0 (the "License");
742 * you may not use this file except in compliance with the License.
743 * You may obtain a copy of the License at
744 *
745 *   http://www.apache.org/licenses/LICENSE-2.0
746 *
747 * Unless required by applicable law or agreed to in writing, software
748 * distributed under the License is distributed on an "AS IS" BASIS,
749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
750 * See the License for the specific language governing permissions and
751 * limitations under the License.
752 */class yn{constructor(e){this.fields=e,e.sort(Rt.comparator)}static empty(){return new yn([])}unionWith(e){let n=new At(Rt.comparator);for(const i of this.fields)n=n.add(i);for(const i of e)n=n.add(i);return new yn(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Br(this.fields,e.fields,(n,i)=>n.isEqual(i))}}/**
753 * @license
754 * Copyright 2023 Google LLC
755 *
756 * Licensed under the Apache License, Version 2.0 (the "License");
757 * you may not use this file except in compliance with the License.
758 * You may obtain a copy of the License at
759 *
760 *   http://www.apache.org/licenses/LICENSE-2.0
761 *
762 * Unless required by applicable law or agreed to in writing, software
763 * distributed under the License is distributed on an "AS IS" BASIS,
764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
765 * See the License for the specific language governing permissions and
766 * limitations under the License.
767 */class b_ extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/**
768 * @license
769 * Copyright 2020 Google LLC
770 *
771 * Licensed under the Apache License, Version 2.0 (the "License");
772 * you may not use this file except in compliance with the License.
773 * You may obtain a copy of the License at
774 *
775 *   http://www.apache.org/licenses/LICENSE-2.0
776 *
777 * Unless required by applicable law or agreed to in writing, software
778 * distributed under the License is distributed on an "AS IS" BASIS,
779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
780 * See the License for the specific language governing permissions and
781 * limitations under the License.
782 */class Lt{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(r){try{return atob(r)}catch(s){throw typeof DOMException<"u"&&s instanceof DOMException?new b_("Invalid base64 string: "+s):s}}(e);return new Lt(n)}static fromUint8Array(e){const n=function(r){let s="";for(let o=0;o<r.length;++o)s+=String.fromCharCode(r[o]);return s}(e);return new Lt(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 i=new Uint8Array(n.length);for(let r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return We(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Lt.EMPTY_BYTE_STRING=new Lt("");const gk=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Si(t){if(et(!!t),typeof t=="string"){let e=0;const n=gk.exec(t);if(et(!!n),n[1]){let r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}const i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:yt(t.seconds),nanos:yt(t.nanos)}}function yt(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function Ci(t){return typeof t=="string"?Lt.fromBase64String(t):Lt.fromUint8Array(t)}/**
783 * @license
784 * Copyright 2020 Google LLC
785 *
786 * Licensed under the Apache License, Version 2.0 (the "License");
787 * you may not use this file except in compliance with the License.
788 * You may obtain a copy of the License at
789 *
790 *   http://www.apache.org/licenses/LICENSE-2.0
791 *
792 * Unless required by applicable law or agreed to in writing, softw
792are
793 * distributed under the License is distributed on an "AS IS" BASIS,
794 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
795 * See the License for the specific language governing permissions and
796 * limitations under the License.
797 */function ou(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="server_timestamp"}function al(t){const e=t.mapValue.fields.__previous_value__;return ou(e)?al(e):e}function Xs(t){const e=Si(t.mapValue.fields.__local_write_time__.timestampValue);return new Tt(e.seconds,e.nanos)}/**
798 * @license
799 * Copyright 2017 Google LLC
800 *
801 * Licensed under the Apache License, Version 2.0 (the "License");
802 * you may not use this file except in compliance with the License.
803 * You may obtain a copy of the License at
804 *
805 *   http://www.apache.org/licenses/LICENSE-2.0
806 *
807 * Unless required by applicable law or agreed to in writing, software
808 * distributed under the License is distributed on an "AS IS" BASIS,
809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
810 * See the License for the specific language governing permissions and
811 * limitations under the License.
812 */class mk{constructor(e,n,i,r,s,o,a,c,d){this.databaseId=e,this.appId=n,this.persistenceKey=i,this.host=r,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=c,this.useFetchStreams=d}}class Ys{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new Ys("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(e){return e instanceof Ys&&e.projectId===this.projectId&&e.database===this.database}}/**
813 * @license
814 * Copyright 2020 Google LLC
815 *
816 * Licensed under the Apache License, Version 2.0 (the "License");
817 * you may not use this file except in compliance with the License.
818 * You may obtain a copy of the License at
819 *
820 *   http://www.apache.org/licenses/LICENSE-2.0
821 *
822 * Unless required by applicable law or agreed to in writing, software
823 * distributed under the License is distributed on an "AS IS" BASIS,
824 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
825 * See the License for the specific language governing permissions and
826 * limitations under the License.
827 */const $o={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function Ii(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?ou(t)?4:_k(t)?9007199254740991:yk(t)?10:11:Be()}function Mn(t,e){if(t===e)return!0;const n=Ii(t);if(n!==Ii(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Xs(t).isEqual(Xs(e));case 3:return function(r,s){if(typeof r.timestampValue=="string"&&typeof s.timestampValue=="string"&&r.timestampValue.length===s.timestampValue.length)return r.timestampValue===s.timestampValue;const o=Si(r.timestampValue),a=Si(s.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(r,s){return Ci(r.bytesValue).isEqual(Ci(s.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(r,s){return yt(r.geoPointValue.latitude)===yt(s.geoPointValue.latitude)&&yt(r.geoPointValue.longitude)===yt(s.geoPointValue.longitude)}(t,e);case 2:return function(r,s){if("integerValue"in r&&"integerValue"in s)return yt(r.integerValue)===yt(s.integerValue);if("doubleValue"in r&&"doubleValue"in s){const o=yt(r.doubleValue),a=yt(s.doubleValue);return o===a?Ma(o)===Ma(a):isNaN(o)&&isNaN(a)}return!1}(t,e);case 9:return Br(t.arrayValue.values||[],e.arrayValue.values||[],Mn);case 10:case 11:return function(r,s){const o=r.mapValue.fields||{},a=s.mapValue.fields||{};if(vp(o)!==vp(a))return!1;for(const c in o)if(o.hasOwnProperty(c)&&(a[c]===void 0||!Mn(o[c],a[c])))return!1;return!0}(t,e);default:return Be()}}function Qs(t,e){return(t.values||[]).find(n=>Mn(n,e))!==void 0}function Fr(t,e){if(t===e)return 0;const n=Ii(t),i=Ii(e);if(n!==i)return We(n,i);switch(n){case 0:case 9007199254740991:return 0;case 1:return We(t.booleanValue,e.booleanValue);case 2:return function(s,o){const a=yt(s.integerValue||s.doubleValue),c=yt(o.integerValue||o.doubleValue);return a<c?-1:a>c?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1}(t,e);case 3:return wp(t.timestampValue,e.timestampValue);case 4:return wp(Xs(t),Xs(e));case 5:return We(t.stringValue,e.stringValue);case 6:return function(s,o){const a=Ci(s),c=Ci(o);return a.compareTo(c)}(t.bytesValue,e.bytesValue);case 7:return function(s,o){const a=s.split("/"),c=o.split("/");for(let d=0;d<a.length&&d<c.length;d++){const h=We(a[d],c[d]);if(h!==0)return h}return We(a.length,c.length)}(t.referenceValue,e.referenceValue);case 8:return function(s,o){const a=We(yt(s.latitude),yt(o.latitude));return a!==0?a:We(yt(s.longitude),yt(o.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return Ep(t.arrayValue,e.arrayValue);case 10:return function(s,o){var a,c,d,h;const m=s.fields||{},w=o.fields||{},k=(a=m.value)===null||a===void 0?void 0:a.arrayValue,A=(c=w.value)===null||c===void 0?void 0:c.arrayValue,F=We(((d=k==null?void 0:k.values)===null||d===void 0?void 0:d.length)||0,((h=A==null?void 0:A.values)===null||h===void 0?void 0:h.length)||0);return F!==0?F:Ep(k,A)}(t.mapValue,e.mapValue);case 11:return function(s,o){if(s===$o.mapValue&&o===$o.mapValue)return 0;if(s===$o.mapValue)return 1;if(o===$o.mapValue)return-1;const a=s.fields||{},c=Object.keys(a),d=o.fields||{},h=Object.keys(d);c.sort(),h.sort();for(let m=0;m<c.length&&m<h.length;++m){const w=We(c[m],h[m]);if(w!==0)return w;const k=Fr(a[c[m]],d[h[m]]);if(k!==0)return k}return We(c.length,h.length)}(t.mapValue,e.mapValue);default:throw Be()}}function wp(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return We(t,e);const n=Si(t),i=Si(e),r=We(n.seconds,i.seconds);return r!==0?r:We(n.nanos,i.nanos)}function Ep(t,e){const n=t.values||[],i=e.values||[];for(let r=0;r<n.length&&r<i.length;++r){const s=Fr(n[r],i[r]);if(s)return s}return We(n.length,i.length)}function Ur(t){return rh(t)}function rh(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 i=Si(n);return`time(${i.seconds},${i.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return Ci(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return De.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let i="[",r=!0;for(const s of n.values||[])r?r=!1:i+=",",i+=rh(s);return i+"]"}(t.arrayValue):"mapValue"in t?function(n){const i=Object.keys(n.fields||{}).sort();let r="{",s=!0;for(const o of i)s?s=!1:r+=",",r+=`${o}:${rh(n.fields[o])}`;return r+"}"}(t.mapValue):Be()}function ra(t){switch(Ii(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=al(t);return e?16+ra(e):16;case 5:return 2*t.stringValue.length;case 6:return Ci(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return function(i){return(i.values||[]).reduce((r,s)=>r+ra(s),0)}(t.arrayValue);case 10:case 11:return function(i){let r=0;
827return rr(i.fields,(s,o)=>{r+=s.length+ra(o)}),r}(t.mapValue);default:throw Be()}}function Tp(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function sh(t){return!!t&&"integerValue"in t}function au(t){return!!t&&"arrayValue"in t}function Ap(t){return!!t&&"nullValue"in t}function Sp(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function sa(t){return!!t&&"mapValue"in t}function yk(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="__vector__"}function Ls(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return rr(t.mapValue.fields,(n,i)=>e.mapValue.fields[n]=Ls(i)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=Ls(t.arrayValue.values[n]);return e}return Object.assign({},t)}function _k(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/**
828 * @license
829 * Copyright 2017 Google LLC
830 *
831 * Licensed under the Apache License, Version 2.0 (the "License");
832 * you may not use this file except in compliance with the License.
833 * You may obtain a copy of the License at
834 *
835 *   http://www.apache.org/licenses/LICENSE-2.0
836 *
837 * Unless required by applicable law or agreed to in writing, software
838 * distributed under the License is distributed on an "AS IS" BASIS,
839 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
840 * See the License for the specific language governing permissions and
841 * limitations under the License.
842 */class cn{constructor(e){this.value=e}static empty(){return new cn({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let i=0;i<e.length-1;++i)if(n=(n.mapValue.fields||{})[e.get(i)],!sa(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=Ls(n)}setAll(e){let n=Rt.emptyPath(),i={},r=[];e.forEach((o,a)=>{if(!n.isImmediateParentOf(a)){const c=this.getFieldsMap(n);this.applyChanges(c,i,r),i={},r=[],n=a.popLast()}o?i[a.lastSegment()]=Ls(o):r.push(a.lastSegment())});const s=this.getFieldsMap(n);this.applyChanges(s,i,r)}delete(e){const n=this.field(e.popLast());sa(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return Mn(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let i=0;i<e.length;++i){let r=n.mapValue.fields[e.get(i)];sa(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},n.mapValue.fields[e.get(i)]=r),n=r}return n.mapValue.fields}applyChanges(e,n,i){rr(n,(r,s)=>e[r]=s);for(const r of i)delete e[r]}clone(){return new cn(Ls(this.value))}}function v_(t){const e=[];return rr(t.fields,(n,i)=>{const r=new Rt([n]);if(sa(i)){const s=v_(i.mapValue).fields;
vendor: 4,180 bytes, lines 842-882
842if(s.length===0)e.push(r);else for(const o of s)e.push(r.child(o))}else e.push(r)}),new yn(e)}/**
843 * @license
844 * Copyright 2017 Google LLC
845 *
846 * Licensed under the Apache License, Version 2.0 (the "License");
847 * you may not use this file except in compliance with the License.
848 * You may obtain a copy of the License at
849 *
850 *   http://www.apache.org/licenses/LICENSE-2.0
851 *
852 * Unless required by applicable law or agreed to in writing, software
853 * distributed under the License is distributed on an "AS IS" BASIS,
854 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
855 * See the License for the specific language governing permissions and
856 * limitations under the License.
857 */class $t{constructor(e,n,i,r,s,o,a){this.key=e,this.documentType=n,this.version=i,this.readTime=r,this.createTime=s,this.data=o,this.documentState=a}static newInvalidDocument(e){return new $t(e,0,Fe.min(),Fe.min(),Fe.min(),cn.empty(),0)}static newFoundDocument(e,n,i,r){return new $t(e,1,n,Fe.min(),i,r,0)}static newNoDocument(e,n){return new $t(e,2,n,Fe.min(),Fe.min(),cn.empty(),0)}static newUnknownDocument(e,n){return new $t(e,3,n,Fe.min(),Fe.min(),cn.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(Fe.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=cn.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=cn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Fe.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 $t&&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 $t(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}})`}}/**
858 * @license
859 * Copyright 2022 Google LLC
860 *
861 * Licensed under the Apache License, Version 2.0 (the "License");
862 * you may not use this file except in compliance with the License.
863 * You may obtain a copy of the License at
864 *
865 *   http://www.apache.org/licenses/LICENSE-2.0
866 *
867 * Unless required by applicable law or agreed to in writing, software
868 * distributed under the License is distributed on an "AS IS" BASIS,
869 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
870 * See the License for the specific language governing permissions and
871 * limitations under the License.
872 */class Oa{constructor(e,n){this.position=e,this.inclusive=n}}function Cp(t,e,n){let i=0;for(let r=0;r<t.position.length;r++){const s=e[r],o=t.position[r];if(s.field.isKeyField()?i=De.comparator(De.fromName(o.referenceValue),n.key):i=Fr(o,n.data.field(s.field)),s.dir==="desc"&&(i*=-1),i!==0)break}return i}function Ip(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(!Mn(t.position[n],e.position[n]))return!1;return!0}/**
873 * @license
874 * Copyright 2022 Google LLC
875 *
876 * Licensed under the Apache License, Version 2.0 (the "License");
877 * you may not use this file except in compliance with the License.
878 * You may obtain a copy of the License at
879 *
880 *   http://www.apache.org/licenses/LICENSE-2.0
881 *
882 * Unless required by applicable law or agreed to in writing, softw
882are
883 * distributed under the License is distributed on an "AS IS" BASIS,
884 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
885 * See the License for the specific language governing permissions and
886 * limitations under the License.
887 */class Js{constructor(e,n="asc"){this.field=e,this.dir=n}}function bk(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/**
888 * @license
889 * Copyright 2022 Google LLC
890 *
891 * Licensed under the Apache License, Version 2.0 (the "License");
892 * you may not use this file except in compliance with the License.
893 * You may obtain a copy of the License at
894 *
895 *   http://www.apache.org/licenses/LICENSE-2.0
896 *
897 * Unless required by applicable law or agreed to in writing, software
898 * distributed under the License is distributed on an "AS IS" BASIS,
899 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
900 * See the License for the specific language governing permissions and
901 * limitations under the License.
902 */class x_{}class vt extends x_{constructor(e,n,i){super(),this.field=e,this.op=n,this.value=i}static create(e,n,i){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,i):new xk(e,n,i):n==="array-contains"?new Tk(e,i):n==="in"?new Ak(e,i):n==="not-in"?new Sk(e,i):n==="array-contains-any"?new Ck(e,i):new vt(e,n,i)}static createKeyFieldInFilter(e,n,i){return n==="in"?new wk(e,i):new Ek(e,i)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(Fr(n,this.value)):n!==null&&Ii(this.value)===Ii(n)&&this.matchesComparison(Fr(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 Be()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class xn extends x_{constructor(e,n){super(),this.filters=e,this.op=n,this.ae=null}static create(e,n){return new xn(e,n)}matches(e){return w_(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ae!==null||(this.ae=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function w_(t){return t.op==="and"}function E_(t){return vk(t)&&w_(t)}function vk(t){for(const e of t.filters)if(e instanceof xn)return!1;return!0}function oh(t){if(t instanceof vt)return t.field.canonicalString()+t.op.toString()+Ur(t.value);if(E_(t))return t.filters.map(e=>oh(e)).join(",");{const e=t.filters.map(n=>oh(n)).join(",");return`${t.op}(${e})`}}function T_(t,e){return t instanceof vt?function(i,r){return r instanceof vt&&i.op===r.op&&i.field.isEqual(r.field)&&Mn(i.value,r.value)}(t,e):t instanceof xn?function(i,r){return r instanceof xn&&i.op===r.op&&i.filters.length===r.filters.length?i.filters.reduce((s,o,a)=>s&&T_(o,r.filters[a]),!0):!1}(t,e):void Be()}function A_(t){return t instanceof vt?function(n){return`${n.field.canonicalString()} ${n.op} ${Ur(n.value)}`}(t):t instanceof xn?function(n){return n.op.toString()+" {"+n.getFilters().map(A_).join(" ,")+"}"}(t):"Filter"}class xk extends vt{constructor(e,n,i){super(e,n,i),this.key=De.fromName(i.referenceValue)}matches(e){const n=De.comparator(e.key,this.key);return this.matchesComparison(n)}}class wk extends vt{constructor(e,n){super(e,"in",n),this.keys=S_("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class Ek extends vt{constructor(e,n){super(e,"not-in",n),this.keys=S_("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function S_(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(i=>De.fromName(i.referenceValue))}class Tk extends vt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return au(n)&&Qs(n.arrayValue,this.value)}}class Ak extends vt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Qs(this.value.arrayValue,n)}}class Sk extends vt{constructor(e,n){super(e,"not-in",n)}matches(e){if(Qs(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!Qs(this.value.arrayValue,n)}}class Ck extends vt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!au(n)||!n.arrayValue.values)&&n.arrayValue.values.some(i=>Qs(this.value.arrayValue,i))}}/**
903 * @license
904 * Copyright 2019 Google LLC
905 *
906 * Licensed under the Apache License, Version 2.0 (the "License");
907 * you may not use this file except in compliance with the License.
908 * You may obtain a copy of the License at
909 *
910 *   http://www.apache.org/licenses/LICENSE-2.0
911 *
912 * Unless required by applicable law or agreed to in writing, software
913 * distributed under the License is distributed on an "AS IS" BASIS,
914 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
915 * See the License for the specific language governing permissions and
916 * limitations under the License.
917 */class Ik{constructor(e,n=null,i=[],r=[],s=null,o=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=i,this.filters=r,this.limit=s,this.startAt=o,this.endAt=a,this.ue=null}}function Pp(t,e=null,n=[],i=[],r=null,s=null,o=null){return new Ik(t,e,n,i,r,s,o)}function lu(t){const e=Ue(t);if(e.ue===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(i=>oh(i)).join(","),n+="|ob:",n+=e.orderBy.map(i=>function(s){return s.field.canonicalString()+s.dir}(i)).join(","),ol(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(i=>Ur(i)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(i=>Ur(i)).join(",")),e.ue=n}return e.ue}function cu(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(!bk(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(!T_(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!Ip(t.startAt,e.startAt)&&Ip(t.endAt,e.endAt)}function ah(t){return De.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/**
918 * @license
919 * Copyright 2017 Google LLC
920 *
921 * Licensed under the Apache License, Version 2.0 (the "License");
922 * you may not use this file except in compliance with the License.
923 * You may obtain a copy of the License at
924 *
925 *   http://www.apache.org/licenses/LICENSE-2.0
926 *
927 * Unless required by applicable law or agreed to in writing, software
928 * distributed under the License is distributed on an "AS IS" BASIS,
929 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
930 * See the License for the specific language governing permissions and
931 * limitations under the License.
932 */class Zr{constructor(e,n=null,i=[],r=[],s=null,o="F",a=null,c=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=i,this.filters=r,this.limit=s,this.limitType=o,this.startAt=a,this.endAt=c,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function Pk(t,e,n,i,r,s,o,a){return new Zr(t,e,n,i,r,s,o,a)}function C_(t){return new Zr(t)}function kp(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 I_(t){return t.collectionGroup!==null}function Ds(t){const e=Ue(t);if(e.ce===null){e.ce=[];const n=new Set;for(const s of e.explicitOrderBy)e.ce.push(s),n.add(s.field.canonicalString());const i=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let a=new At(Rt.comparator);return o.filters.forEach(c=>{c.getFlattenedFilters().forEach(d=>{d.isInequality()&&(a=a.add(d.field))})}),a})(e).forEach(s=>{n.has(s.canonicalString())||s.isKeyField()||e.ce.push(new Js(s,i))}),n.has(Rt.keyField().canonicalString())||e.ce.push(new Js(Rt.keyField(),i))}return e.ce}function Pn(t){const e=Ue(t);return e.le||(e.le=kk(e,Ds(t))),e.le}function kk(t,e){if(t.limitType==="F")return Pp(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(r=>{const s=r.dir==="desc"?"asc":"desc";return new Js(r.field,s)});const n=t.endAt?new Oa(t.endAt.position,t.endAt.inclusive):null,i=t.startAt?new Oa(t.startAt.position,t.startAt.inclusive):null;return Pp(t.path,t.collectionGroup,e,t.filters,t.limit,n,i)}}function lh(t,e){const n=t.filters.concat([e]);return new Zr(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function La(t,e,n){return new Zr(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function ll(t,e){return cu(Pn(t),Pn(e))&&t.limitType===e.limitType}function P_(t){return`${lu(Pn(t))}|lt:${t.limitType}`}function _r(t){return`Query(target=${function(n){let i=n.path.canonicalString();return n.collectionGroup!==null&&(i+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(i+=`, filters: [${n.filters.map(r=>A_(r)).join(", ")}]`),ol(n.limit)||(i+=", limit: "+n.limit),n.orderBy.length>0&&(i+=`, orderBy: [${n.orderBy.map(r=>function(o){return`${o.field.canonicalString()} (${o.dir})`}(r)).join(", ")}]`),n.startAt&&(i+=", startAt: ",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(r=>Ur(r)).join(",")),n.endAt&&(i+=", endAt: ",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(r=>Ur(r)).join(",")),`Target(${i})`}(Pn(t))}; limitType=${t.limitType})`}function cl(t,e){return e.isFoundDocument()&&function(i,r){const s=r.key.path;return i.collectionGroup!==null?r.key.hasCollectionId(i.collectionGroup)&&i.path.isPrefixOf(s):De.isDocumentKey(i.path)?i.path.isEqual(s):i.path.isImmediateParentOf(s)}(t,e)&&function(i,r){for(const s of Ds(i))if(!s.field.isKeyField()&&r.data.field(s.field)===null)return!1;return!0}(t,e)&&function(i,r){for(const s of i.filters)if(!s.matches(r))return!1;return!0}(t,e)&&function(i,r){return!(i.startAt&&!function(o,a,c){const d=Cp(o,a,c);return o.inclusive?d<=0:d<0}(i.startAt,Ds(i),r)||i.endAt&&!function(o,a,c){const d=Cp(o,a,c);return o.inclusive?d>=0:d>0}(i.endAt,Ds(i),r))}(t,e)}function Rk(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function k_(t){return(e,n)=>{let i=!1;for(const r of Ds(t)){const s=Mk(r,e,n);if(s!==0)return s;
932i=i||r.field.isKeyField()}return 0}}function Mk(t,e,n){const i=t.field.isKeyField()?De.comparator(e.key,n.key):function(s,o,a){const c=o.data.field(s),d=a.data.field(s);return c!==null&&d!==null?Fr(c,d):Be()}(t.field,e,n);switch(t.dir){case"asc":return i;case"desc":return-1*i;default:return Be()}}/**
933 * @license
934 * Copyright 2017 Google LLC
935 *
936 * Licensed under the Apache License, Version 2.0 (the "License");
937 * you may not use this file except in compliance with the License.
938 * You may obtain a copy of the License at
939 *
940 *   http://www.apache.org/licenses/LICENSE-2.0
941 *
942 * Unless required by applicable law or agreed to in writing, software
943 * distributed under the License is distributed on an "AS IS" BASIS,
944 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
945 * See the License for the specific language governing permissions and
946 * limitations under the License.
947 */class sr{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),i=this.inner[n];if(i!==void 0){for(const[r,s]of i)if(this.equalsFn(r,e))return s}}has(e){return this.get(e)!==void 0}set(e,n){const i=this.mapKeyFn(e),r=this.inner[i];if(r===void 0)return this.inner[i]=[[e,n]],void this.innerSize++;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return void(r[s]=[e,n]);r.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),i=this.inner[n];if(i===void 0)return!1;for(let r=0;r<i.length;r++)if(this.equalsFn(i[r][0],e))return i.length===1?delete this.inner[n]:i.splice(r,1),this.innerSize--,!0;return!1}forEach(e){rr(this.inner,(n,i)=>{for(const[r,s]of i)e(r,s)})}isEmpty(){return __(this.inner)}size(){return this.innerSize}}/**
948 * @license
949 * Copyright 2017 Google LLC
950 *
951 * Licensed under the Apache License, Version 2.0 (the "License");
952 * you may not use this file except in compliance with the License.
953 * You may obtain a copy of the License at
954 *
955 *   http://www.apache.org/licenses/LICENSE-2.0
956 *
957 * Unless required by applicable law or agreed to in writing, software
958 * distributed under the License is distributed on an "AS IS" BASIS,
959 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
960 * See the License for the specific language governing permissions and
961 * limitations under the License.
962 */const Ok=new gt(De.comparator);function Kn(){return Ok}const R_=new gt(De.comparator);function xs(...t){let e=R_;for(const n of t)e=e.insert(n.key,n);return e}function M_(t){let e=R_;return t.forEach((n,i)=>e=e.insert(n,i.overlayedDocument)),e}function Gi(){return Ns()}function O_(){return Ns()}function Ns(){return new sr(t=>t.toString(),(t,e)=>t.isEqual(e))}const Lk=new gt(De.comparator),Dk=new At(De.comparator);function ze(...t){let e=Dk;for(const n of t)e=e.add(n);return e}const Nk=new At(We);function Vk(){return Nk}/**
963 * @license
964 * Copyright 2020 Google LLC
965 *
966 * Licensed under the Apache License, Version 2.0 (the "License");
967 * you may not use this file except in compliance with the License.
968 * You may obtain a copy of the License at
969 *
970 *   http://www.apache.org/licenses/LICENSE-2.0
971 *
972 * Unless required by applicable law or agreed to in writing, software
973 * distributed under the License is distributed on an "AS IS" BASIS,
974 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
975 * See the License for the specific language governing permissions and
976 * limitations under the License.
977 */function hu(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:Ma(e)?"-0":e}}function L_(t){return{integerValue:""+t}}function jk(t,e){return dk(e)?L_(e):hu(t,e)}/**
978 * @license
979 * Copyright 2018 Google LLC
980 *
981 * Licensed under the Apache License, Version 2.0 (the "License");
982 * you may not use this file except in compliance with the License.
983 * You may obtain a copy of the License at
984 *
985 *   http://www.apache.org/licenses/LICENSE-2.0
986 *
987 * Unless required by applicable law or agreed to in writing, software
988 * distributed under the License is distributed on an "AS IS" BASIS,
989 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
990 * See the License for the specific language governing permissions and
991 * limitations under the License.
992 */class hl{constructor(){this._=void 0}}function Bk(t,e,n){return t instanceof Da?function(r,s){const o={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return s&&ou(s)&&(s=al(s)),s&&(o.fields.__previous_value__=s),{mapValue:o}}(n,e):t instanceof Zs?N_(t,e):t instanceof eo?V_(t,e):function(r,s){const o=D_(r,s),a=Rp(o)+Rp(r.Pe);return sh(o)&&sh(r.Pe)?L_(a):hu(r.serializer,a)}(t,e)}function Fk(t,e,n){return t instanceof Zs?N_(t,e):t instanceof eo?V_(t,e):n}function D_(t,e){return t instanceof Na?function(i){return sh(i)||function(s){return!!s&&"doubleValue"in s}(i)}(e)?e:{integerValue:0}:null}class Da extends hl{}class Zs extends hl{constructor(e){super(),this.elements=e}}function N_(t,e){const n=j_(e);for(const i of t.elements)n.some(r=>Mn(r,i))||n.push(i);return{arrayValue:{values:n}}}class eo extends hl{constructor(e){super(),this.elements=e}}function V_(t,e){let n=j_(e);for(const i of t.elements)n=n.filter(r=>!Mn(r,i));return{arrayValue:{values:n}}}
992class Na extends hl{constructor(e,n){super(),this.serializer=e,this.Pe=n}}function Rp(t){return yt(t.integerValue||t.doubleValue)}function j_(t){return au(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function Uk(t,e){return t.field.isEqual(e.field)&&function(i,r){return i instanceof Zs&&r instanceof Zs||i instanceof eo&&r instanceof eo?Br(i.elements,r.elements,Mn):i instanceof Na&&r instanceof Na?Mn(i.Pe,r.Pe):i instanceof Da&&r instanceof Da}(t.transform,e.transform)}class Hk{constructor(e,n){this.version=e,this.transformResults=n}}class kn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new kn}static exists(e){return new kn(void 0,e)}static updateTime(e){return new kn(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 oa(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class ul{}function B_(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new U_(t.key,kn.none()):new uo(t.key,t.data,kn.none());{const n=t.data,i=cn.empty();let r=new At(Rt.comparator);for(let s of e.fields)if(!r.has(s)){let o=n.field(s);o===null&&s.length>1&&(s=s.popLast(),o=n.field(s)),o===null?i.delete(s):i.set(s,o),r=r.add(s)}return new or(t.key,i,new yn(r.toArray()),kn.none())}}function zk(t,e,n){t instanceof uo?function(r,s,o){const a=r.value.clone(),c=Op(r.fieldTransforms,s,o.transformResults);a.setAll(c),s.convertToFoundDocument(o.version,a).setHasCommittedMutations()}(t,e,n):t instanceof or?function(r,s,o){if(!oa(r.precondition,s))return void s.convertToUnknownDocument(o.version);const a=Op(r.fieldTransforms,s,o.transformResults),c=s.data;c.setAll(F_(r)),c.setAll(a),s.convertToFoundDocument(o.version,c).setHasCommittedMutations()}(t,e,n):function(r,s,o){s.convertToNoDocument(o.version).setHasCommittedMutations()}(0,e,n)}function Vs(t,e,n,i){return t instanceof uo?function(s,o,a,c){if(!oa(s.precondition,o))return a;const d=s.value.clone(),h=Lp(s.fieldTransforms,c,o);return d.setAll(h),o.convertToFoundDocument(o.version,d).setHasLocalMutations(),null}(t,e,n,i):t instanceof or?function(s,o,a,c){if(!oa(s.precondition,o))return a;const d=Lp(s.fieldTransforms,c,o),h=o.data;return h.setAll(F_(s)),h.setAll(d),o.convertToFoundDocument(o.version,h).setHasLocalMutations(),a===null?null:a.unionWith(s.fieldMask.fields).unionWith(s.fieldTransforms.map(m=>m.field))}(t,e,n,i):function(s,o,a){return oa(s.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a}(t,e,n)}function $k(t,e){let n=null;for(const i of t.fieldTransforms){const r=e.data.field(i.field),s=D_(i.transform,r||null);s!=null&&(n===null&&(n=cn.empty()),n.set(i.field,s))}return n||null}function Mp(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(i,r){return i===void 0&&r===void 0||!(!i||!r)&&Br(i,r,(s,o)=>Uk(s,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 uo extends ul{constructor(e,n,i,r=[]){super(),this.key=e,this.value=n,this.precondition=i,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class or extends ul{constructor(e,n,i,r,s=[]){super(),this.key=e,this.data=n,this.fieldMask=i,this.precondition=r,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function F_(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const i=t.data.field(n);e.set(n,i)}}),e}function Op(t,e,n){const i=new Map;et(t.length===n.length);for(let r=0;r<n.length;r++){const s=t[r],o=s.transform,a=e.data.field(s.field);i.set(s.field,Fk(o,a,n[r]))}return i}function Lp(t,e,n){const i=new Map;for(const r of t){const s=r.transform,o=n.data.field(r.field);i.set(r.field,Bk(s,o,e))}return i}class U_ extends ul{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Wk extends ul{constructor(e,n){super(),this.key=e,this.prec
992ondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/**
993 * @license
994 * Copyright 2017 Google LLC
995 *
996 * Licensed under the Apache License, Version 2.0 (the "License");
997 * you may not use this file except in compliance with the License.
998 * You may obtain a copy of the License at
999 *
1000 *   http://www.apache.org/licenses/LICENSE-2.0
1001 *
1002 * Unless required by applicable law or agreed to in writing, software
1003 * distributed under the License is distributed on an "AS IS" BASIS,
1004 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1005 * See the License for the specific language governing permissions and
1006 * limitations under the License.
1007 */class Gk{constructor(e,n,i,r){this.batchId=e,this.localWriteTime=n,this.baseMutations=i,this.mutations=r}applyToRemoteDocument(e,n){const i=n.mutationResults;for(let r=0;r<this.mutations.length;r++){const s=this.mutations[r];s.key.isEqual(e.key)&&zk(s,e,i[r])}}applyToLocalView(e,n){for(const i of this.baseMutations)i.key.isEqual(e.key)&&(n=Vs(i,e,n,this.localWriteTime));for(const i of this.mutations)i.key.isEqual(e.key)&&(n=Vs(i,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const i=O_();return this.mutations.forEach(r=>{const s=e.get(r.key),o=s.overlayedDocument;let a=this.applyToLocalView(o,s.mutatedFields);a=n.has(r.key)?null:a;const c=B_(o,a);c!==null&&i.set(r.key,c),o.isValidDocument()||o.convertToNoDocument(Fe.min())}),i}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),ze())}isEqual(e){return this.batchId===e.batchId&&Br(this.mutations,e.mutations,(n,i)=>Mp(n,i))&&Br(this.baseMutations,e.baseMutations,(n,i)=>Mp(n,i))}}class uu{constructor(e,n,i,r){this.batch=e,this.commitVersion=n,this.mutationResults=i,this.docVersions=r}static from(e,n,i){et(e.mutations.length===i.length);let r=function(){return Lk}();const s=e.mutations;for(let o=0;o<s.length;o++)r=r.insert(s[o].key,i[o].version);return new uu(e,n,i,r)}}/**
1008 * @license
1009 * Copyright 2022 Google LLC
1010 *
1011 * Licensed under the Apache License, Version 2.0 (the "License");
1012 * you may not use this file except in compliance with the License.
1013 * You may obtain a copy of the License at
1014 *
1015 *   http://www.apache.org/licenses/LICENSE-2.0
1016 *
1017 * Unless required by applicable law or agreed to in writing, software
1018 * distributed under the License is distributed on an "AS IS" BASIS,
1019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1020 * See the License for the specific language governing permissions and
1021 * limitations under the License.
1022 */class qk{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{
1023      largestBatchId: ${this.largestBatchId},
1024      mutation: ${this.mutation.toString()}
1025    }`}}/**
1026 * @license
1027 * Copyright 2017 Google LLC
1028 *
1029 * Licensed under the Apache License, Version 2.0 (the "License");
1030 * you may not use this file except in compliance with the License.
1031 * You may obtain a copy of the License at
1032 *
1033 *   http://www.apache.org/licenses/LICENSE-2.0
1034 *
1035 * Unless required by applicable law or agreed to in writing, software
1036 * distributed under the License is distributed on an "AS IS" BASIS,
1037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1038 * See the License for the specific language governing permissions and
1039 * limitations under the License.
1040 */class Kk{constructor(e,n){this.count=e,this.unchangedNames=n}}/**
1041 * @license
1042 * Copyright 2017 Google LLC
1043 *
1044 * Licensed under the Apache License, Version 2.0 (the "License");
1045 * you may not use this file except in compliance with the License.
1046 * You may obtain a copy of the License at
1047 *
1048 *   http://www.apache.org/licenses/LICENSE-2.0
1049 *
1050 * Unless required by applicable law or agreed to in writing, software
1051 * distributed under the License is distributed on an "AS IS" BASIS,
1052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1053 * See the License for the specific language governing permissions and
1054 * limitations under the License.
1055 */var bt,Ge;function Xk(t){switch(t){default:return Be();case Ae.CANCELLED:case Ae.UNKNOWN:case Ae.DEADLINE_EXCEEDED:case Ae.RESOURCE_EXHAUSTED:case Ae.INTERNAL:case Ae.UNAVAILABLE:case Ae.UNAUTHENTICATED:return!1;case Ae.INVALID_ARGUMENT:case Ae.NOT_FOUND:case Ae.ALREADY_EXISTS:case Ae.PERMISSION_DENIED:case Ae.FAILED_PRECONDITION:case Ae.ABORTED:case Ae.OUT_OF_RANGE:case Ae.UNIMPLEMENT
1055ED:case Ae.DATA_LOSS:return!0}}function H_(t){if(t===void 0)return qn("GRPC error has no .code"),Ae.UNKNOWN;switch(t){case bt.OK:return Ae.OK;case bt.CANCELLED:return Ae.CANCELLED;case bt.UNKNOWN:return Ae.UNKNOWN;case bt.DEADLINE_EXCEEDED:return Ae.DEADLINE_EXCEEDED;case bt.RESOURCE_EXHAUSTED:return Ae.RESOURCE_EXHAUSTED;case bt.INTERNAL:return Ae.INTERNAL;case bt.UNAVAILABLE:return Ae.UNAVAILABLE;case bt.UNAUTHENTICATED:return Ae.UNAUTHENTICATED;case bt.INVALID_ARGUMENT:return Ae.INVALID_ARGUMENT;case bt.NOT_FOUND:return Ae.NOT_FOUND;case bt.ALREADY_EXISTS:return Ae.ALREADY_EXISTS;case bt.PERMISSION_DENIED:return Ae.PERMISSION_DENIED;case bt.FAILED_PRECONDITION:return Ae.FAILED_PRECONDITION;case bt.ABORTED:return Ae.ABORTED;case bt.OUT_OF_RANGE:return Ae.OUT_OF_RANGE;case bt.UNIMPLEMENTED:return Ae.UNIMPLEMENTED;case bt.DATA_LOSS:return Ae.DATA_LOSS;default:return Be()}}(Ge=bt||(bt={}))[Ge.OK=0]="OK",Ge[Ge.CANCELLED=1]="CANCELLED",Ge[Ge.UNKNOWN=2]="UNKNOWN",Ge[Ge.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ge[Ge.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ge[Ge.NOT_FOUND=5]="NOT_FOUND",Ge[Ge.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ge[Ge.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ge[Ge.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ge[Ge.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ge[Ge.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ge[Ge.ABORTED=10]="ABORTED",Ge[Ge.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ge[Ge.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ge[Ge.INTERNAL=13]="INTERNAL",Ge[Ge.UNAVAILABLE=14]="UNAVAILABLE",Ge[Ge.DATA_LOSS=15]="DATA_LOSS";/**
1056 * @license
1057 * Copyright 2023 Google LLC
1058 *
1059 * Licensed under the Apache License, Version 2.0 (the "License");
1060 * you may not use this file except in compliance with the License.
1061 * You may obtain a copy of the License at
1062 *
1063 *   http://www.apache.org/licenses/LICENSE-2.0
1064 *
1065 * Unless required by applicable law or agreed to in writing, software
1066 * distributed under the License is distributed on an "AS IS" BASIS,
1067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1068 * See the License for the specific language governing permissions and
1069 * limitations under the License.
1070 */function Yk(){return new TextEncoder}/**
1071 * @license
1072 * Copyright 2022 Google LLC
1073 *
1074 * Licensed under the Apache License, Version 2.0 (the "License");
1075 * you may not use this file except in compliance with the License.
1076 * You may obtain a copy of the License at
1077 *
1078 *   http://www.apache.org/licenses/LICENSE-2.0
1079 *
1080 * Unless required by applicable law or agreed to in writing, software
1081 * distributed under the License is distributed on an "AS IS" BASIS,
1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1083 * See the License for the specific language governing permissions and
1084 * limitations under the License.
1085 */const Qk=new xi([4294967295,4294967295],0);function Dp(t){const e=Yk().encode(t),n=new h_;return n.update(e),new Uint8Array(n.digest())}function Np(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),i=e.getUint32(4,!0),r=e.getUint32(8,!0),s=e.getUint32(12,!0);return[new xi([n,i],0),new xi([r,s],0)]}class du{constructor(e,n,i){if(this.bitmap=e,this.padding=n,this.hashCount=i,n<0||n>=8)throw new ws(`Invalid padding: ${n}`);if(i<0)throw new ws(`Invalid hash count: ${i}`);if(e.length>0&&this.hashCount===0)throw new ws(`Invalid hash count: ${i}`);if(e.length===0&&n!==0)throw new ws(`Invalid padding when bitmap length is 0: ${n}`);this.Te=8*e.length-n,this.Ie=xi.fromNumber(this.Te)}de(e,n,i){let r=e.add(n.multiply(xi.fromNumber(i)));return r.compare(Qk)===1&&(r=new xi([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Ie).toNumber()}Ee(e){return(this.bitmap[Math.floor(e/8)]&1<<e%8)!=0}mightContain(e){if(this.Te===0)return!1;const n=Dp(e),[i,r]=Np(n);for(let s=0;s<this.hashCount;s++){const o=this.de(i,r,s);if(!this.Ee(o))return!1}return!0}static create(e,n,i){const r=e%8==0?0:8-e%8,s=new Uint8Array(Math.ceil(e/8)),o=new du(s,r,n);return i.forEach(a=>o.insert(a)),o}insert(e){if(this.Te===0)return;const n=Dp(e),[i,r]=Np(n);for(let s=0;s<this.hashCount;s++){const o=this.de(i,r,s);this.Ae(o)}}Ae(e){const n=Math.floor(e/8),i=e%8;this.bitmap[n]|=1<<i}}
1085class ws extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/**
1086 * @license
1087 * Copyright 2017 Google LLC
1088 *
1089 * Licensed under the Apache License, Version 2.0 (the "License");
1090 * you may not use this file except in compliance with the License.
1091 * You may obtain a copy of the License at
1092 *
1093 *   http://www.apache.org/licenses/LICENSE-2.0
1094 *
1095 * Unless required by applicable law or agreed to in writing, software
1096 * distributed under the License is distributed on an "AS IS" BASIS,
1097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1098 * See the License for the specific language governing permissions and
1099 * limitations under the License.
1100 */class dl{constructor(e,n,i,r,s){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=i,this.documentUpdates=r,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,n,i){const r=new Map;return r.set(e,fo.createSynthesizedTargetChangeForCurrentChange(e,n,i)),new dl(Fe.min(),r,new gt(We),Kn(),ze())}}class fo{constructor(e,n,i,r,s){this.resumeToken=e,this.current=n,this.addedDocuments=i,this.modifiedDocuments=r,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,n,i){return new fo(i,n,ze(),ze(),ze())}}/**
1101 * @license
1102 * Copyright 2017 Google LLC
1103 *
1104 * Licensed under the Apache License, Version 2.0 (the "License");
1105 * you may not use this file except in compliance with the License.
1106 * You may obtain a copy of the License at
1107 *
1108 *   http://www.apache.org/licenses/LICENSE-2.0
1109 *
1110 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1113 * See the License for the specific language governing permissions and
1114 * limitations under the License.
1115 */class aa{constructor(e,n,i,r){this.Re=e,this.removedTargetIds=n,this.key=i,this.Ve=r}}class z_{constructor(e,n){this.targetId=e,this.me=n}}class $_{constructor(e,n,i=Lt.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=n,this.resumeToken=i,this.cause=r}}class Vp{constructor(){this.fe=0,this.ge=jp(),this.pe=Lt.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return this.fe!==0}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}ve(){let e=ze(),n=ze(),i=ze();return this.ge.forEach((r,s)=>{switch(s){case 0:e=e.add(r);break;case 2:n=n.add(r);break;case 1:i=i.add(r);break;default:Be()}}),new fo(this.pe,this.ye,e,n,i)}Ce(){this.we=!1,this.ge=jp()}Fe(e,n){this.we=!0,this.ge=this.ge.insert(e,n)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,et(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class Jk{constructor(e){this.Be=e,this.Le=new Map,this.ke=Kn(),this.qe=Wo(),this.Qe=Wo(),this.Ke=new gt(We)}$e(e){for(const n of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.Ue(n,e.Ve):this.We(n,e.key,e.Ve);for(const n of e.removedTargetIds)this.We(n,e.key,e.Ve)}Ge(e){this.forEachTarget(e,n=>{const i=this.ze(n);switch(e.state){case 0:this.je(n)&&i.De(e.resumeToken);break;case 1:i.Oe(),i.Se||i.Ce(),i.De(e.resumeToken);break;case 2:i.Oe(),i.Se||this.removeTarget(n);break;case 3:this.je(n)&&(i.Ne(),i.De(e.resumeToken));break;case 4:this.je(n)&&(this.He(n),i.De(e.resumeToken));break;default:Be()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Le.forEach((i,r)=>{this.je(r)&&n(r)})}Je(e){const n=e.targetId,i=e.me.count,r=this.Ye(n);if(r){const s=r.target;if(ah(s))if(i===0){const o=new De(s.path);this.We(n,o,$t.newNoDocument(o,Fe.min()))}else et(i===1);else{const o=this.Ze(n);if(o!==i){const a=this.Xe(e),c=a?this.et(a,e,o):1;if(c!==0){this.He(n);const d=c===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(n,d)}}}}}Xe(e){const n=e.me.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:i="",padding:r=0},hashCount:s=0}=n;let o,a;try{o=Ci(i).toUint8Array()}catch(c){if(c instanceof b_)return jr("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}
1115try{a=new du(o,r,s)}catch(c){return jr(c instanceof ws?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return a.Te===0?null:a}et(e,n,i){return n.me.count===i-this.rt(e,n.targetId)?0:2}rt(e,n){const i=this.Be.getRemoteKeysForTarget(n);let r=0;return i.forEach(s=>{const o=this.Be.nt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${s.path.canonicalString()}`;e.mightContain(a)||(this.We(n,s,null),r++)}),r}it(e){const n=new Map;this.Le.forEach((s,o)=>{const a=this.Ye(o);if(a){if(s.current&&ah(a.target)){const c=new De(a.target.path);this.st(c).has(o)||this.ot(o,c)||this.We(o,c,$t.newNoDocument(c,e))}s.be&&(n.set(o,s.ve()),s.Ce())}});let i=ze();this.Qe.forEach((s,o)=>{let a=!0;o.forEachWhile(c=>{const d=this.Ye(c);return!d||d.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(i=i.add(s))}),this.ke.forEach((s,o)=>o.setReadTime(e));const r=new dl(e,n,this.Ke,this.ke,i);return this.ke=Kn(),this.qe=Wo(),this.Qe=Wo(),this.Ke=new gt(We),r}Ue(e,n){if(!this.je(e))return;const i=this.ot(e,n.key)?2:0;this.ze(e).Fe(n.key,i),this.ke=this.ke.insert(n.key,n),this.qe=this.qe.insert(n.key,this.st(n.key).add(e)),this.Qe=this.Qe.insert(n.key,this._t(n.key).add(e))}We(e,n,i){if(!this.je(e))return;const r=this.ze(e);this.ot(e,n)?r.Fe(n,1):r.Me(n),this.Qe=this.Qe.insert(n,this._t(n).delete(e)),this.Qe=this.Qe.insert(n,this._t(n).add(e)),i&&(this.ke=this.ke.insert(n,i))}removeTarget(e){this.Le.delete(e)}Ze(e){const n=this.ze(e).ve();return this.Be.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}xe(e){this.ze(e).xe()}ze(e){let n=this.Le.get(e);return n||(n=new Vp,this.Le.set(e,n)),n}_t(e){let n=this.Qe.get(e);return n||(n=new At(We),this.Qe=this.Qe.insert(e,n)),n}st(e){let n=this.qe.get(e);return n||(n=new At(We),this.qe=this.qe.insert(e,n)),n}je(e){const n=this.Ye(e)!==null;return n||Re("WatchChangeAggregator","Detected inactive target",e),n}Ye(e){const n=this.Le.get(e);return n&&n.Se?null:this.Be.ut(e)}He(e){this.Le.set(e,new Vp),this.Be.getRemoteKeysForTarget(e).forEach(n=>{this.We(e,n,null)})}ot(e,n){return this.Be.getRemoteKeysForTarget(e).has(n)}}function Wo(){return new gt(De.comparator)}function jp(){return new gt(De.comparator)}const Zk={asc:"ASCENDING",desc:"DESCENDING"},e1={"<":"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"},t1={and:"AND",or:"OR"};class n1{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function ch(t,e){return t.useProto3Json||ol(e)?e:{value:e}}function Va(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 W_(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function i1(t,e){return Va(t,e.toTimestamp())}function Rn(t){return et(!!t),Fe.fromTimestamp(function(n){const i=Si(n);return new Tt(i.seconds,i.nanos)}(t))}function fu(t,e){return hh(t,e).canonicalString()}function hh(t,e){const n=function(r){return new ht(["projects",r.projectId,"databases",r.database])}(t).child("documents");return e===void 0?n:n.child(e)}function G_(t){const e=ht.fromString(t);return et(Q_(e)),e}function uh(t,e){return fu(t.databaseId,e.path)}function oc(t,e){const n=G_(e);if(n.get(1)!==t.databaseId.projectId)throw new Me(Ae.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 Me(Ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new De(K_(n))}function q_(t,e){return fu(t.databaseId,e)}function r1(t){const e=G_(t);return e.length===4?ht.emptyPath():K_(e)}function dh(t){return new ht(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function K_(t){return et(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function Bp(t,e,n){return{name:uh(t,e),fields:n.value.mapValue.fields}}function s1(t,e){let n;if("targetChange"in e){e.targetChange;const i=function(d){return d==="NO_CHANGE"?0:d==="ADD"?1:d==="REMOVE"?2:d==="CURRENT"?3:d==="RESET"?4:Be()}(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],s=function(d,h){return d.useProto3Json?(et(h===void 0||typeof h=="string"),Lt.fromBase64String(h||"")):(et(h===void 0||h instanceof Buffer||h instanceof Uint8Array),Lt.fromUint8Array(h||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(d){const h=d.code===void 0?Ae.UNKNOWN:H_(d.code);return new Me(h,d.message||"")}(o);n=new $_(i,r,s,a||null)}else if("documentChange"in e){e.documentChange;const i=e.documentChange;i.document,i.document.name,i.document.updateTime;const r=oc(t,i.document.name),s=Rn(i.document.updateTime),o=i.document.createTime?Rn(i.document.createTime):Fe.min(),a=new cn({mapValue:{fields:i.document.fields}}),c=$t.newFoundDocument(r,s,o,a),d=i.targetIds||[],h=i.removedTargetIds||[];n=new aa(d,h,c.key,c)}else if("documentDelete"in e){e.documentDelete;const i=e.documentDelete;i.document;const r=oc(t,i.document),s=i.readTime?Rn(i.readTime):Fe.min(),o=$t.newNoDocument(r,s),a=i.removedTargetIds||[];n=new aa([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const i=e.documentRemove;i.document;const r=oc(t,i.document),s=i.removedTargetIds||[];n=new aa([],s,r,null)}else{if(!("filter"in e))return Be();{e.filter;const i=e.filter;i.targetId;const{count:r=0,unchangedNames:s}=i,o=new Kk(r,s),a=i.targetId;n=new z_(a,o)}}return n}function o1(t,e){let n;if(e instanceof uo)n={update:Bp(t,e.key,e.value)};else if(e instanceof U_)n={delete:uh(t,e.key)};else if(e instanceof or)n={update:Bp(t,e.key,e.data),updateMask:g1(e.fieldMask)};else{if(!(e instanceof Wk))return Be();n={verify:uh(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(i=>function(s,o){const a=o.transform;if(a instanceof Da)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Zs)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof eo)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof Na)return{fieldPath:o.field.canonicalString(),increment:a.Pe};throw Be()}(0,i))),e.precondition.isNone||(n.currentDocument=function(r,s){return s.updateTime!==void 0?{updateTime:i1(r,s.updateTime)}:s.exists!==void 0?{exists:s.exists}:Be()}(t,e.precondition)),n}function a1(t,e){return t&&t.length>0?(et(e!==void 0),t.map(n=>function(r,s){let o=r.updateTime?Rn(r.updateTime):Rn(s);return o.isEqual(Fe.min())&&(o=Rn(s)),new Hk(o,r.transformResults||[])}(n,e))):[]}function l1(t,e){return{documents:[q_(t,e.path)]}}function c1(t,e){const n={structuredQuery:{}},i=e.path;let r;e.collectionGroup!==null?(r=i,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(r=i.popLast(),n.structuredQuery.from=[{collectionId:i.lastSegment()}]),n.parent=q_(t,r);const s=function(d){if(d.length!==0)return Y_(xn.create(d,"and"))}(e.filters);s&&(n.structuredQuery.where=s);const o=function(d){if(d.length!==0)return d.map(h=>function(w){return{field:br(w.field),direction:d1(w.dir)}}(h))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);const a=ch(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=function(d){return{before:d.inclusive,values:d.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(d){return{before:!d.inclusive,values:d.position}}(e.endAt)),{ct:n,parent:r}}function h1(t){let e=r1(t.parent);const n=t.structuredQuery,i=n.from?n.from.length:0;let r=null;if(i>0){et(i===1);const h=n.from[0];h.allDescendants?r=h.collectionId:e=e.child(h.collectionId)}let s=[];n.where&&(s=function(m){const w=X_(m);return w instanceof xn&&E_(w)?w.getFilters():[w]}(n.where));let o=[];n.orderBy&&(o=function(m){return m.map(w=>function(A){return new Js(vr(A.field),function(j){switch(j){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(A.direction))}(w))}(n.orderBy));let a=null;n.limit&&(a=function(m){let w;return w=typeof m=="object"?m.value:m,ol(w)?null:w}(n.limit));let c=null;n.startAt&&(c=function(m){const w=!!m.before,k=m.values||[];return new Oa(k,w)}(n.startAt));let d=null;return n.endAt&&(d=function(m){const w=!m.before,k=m.values||[];return new Oa(k,w)}(n.endAt)),Pk(e,r,o,s,a,"F",c,d)}function u1(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 Be()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function X_(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const i=vr(n.unaryFilter.field);return vt.create(i,"==",{doubleValue:NaN});case"IS_NULL":const r=vr(n.unaryFilter.field);return vt.create(r,"==",{nullValue:"NULL_VALUE"});
1115case"IS_NOT_NAN":const s=vr(n.unaryFilter.field);return vt.create(s,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=vr(n.unaryFilter.field);return vt.create(o,"!=",{nullValue:"NULL_VALUE"});default:return Be()}}(t):t.fieldFilter!==void 0?function(n){return vt.create(vr(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";default:return Be()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return xn.create(n.compositeFilter.filters.map(i=>X_(i)),function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return Be()}}(n.compositeFilter.op))}(t):Be()}function d1(t){return Zk[t]}function f1(t){return e1[t]}function p1(t){return t1[t]}function br(t){return{fieldPath:t.canonicalString()}}function vr(t){return Rt.fromServerFormat(t.fieldPath)}function Y_(t){return t instanceof vt?function(n){if(n.op==="=="){if(Sp(n.value))return{unaryFilter:{field:br(n.field),op:"IS_NAN"}};if(Ap(n.value))return{unaryFilter:{field:br(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(Sp(n.value))return{unaryFilter:{field:br(n.field),op:"IS_NOT_NAN"}};if(Ap(n.value))return{unaryFilter:{field:br(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:br(n.field),op:f1(n.op),value:n.value}}}(t):t instanceof xn?function(n){const i=n.getFilters().map(r=>Y_(r));return i.length===1?i[0]:{compositeFilter:{op:p1(n.op),filters:i}}}(t):Be()}function g1(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function Q_(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/**
1116 * @license
1117 * Copyright 2017 Google LLC
1118 *
1119 * Licensed under the Apache License, Version 2.0 (the "License");
1120 * you may not use this file except in compliance with the License.
1121 * You may obtain a copy of the License at
1122 *
1123 *   http://www.apache.org/licenses/LICENSE-2.0
1124 *
1125 * Unless required by applicable law or agreed to in writing, software
1126 * distributed under the License is distributed on an "AS IS" BASIS,
1127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1128 * See the License for the specific language governing permissions and
1129 * limitations under the License.
1130 */class mi{constructor(e,n,i,r,s=Fe.min(),o=Fe.min(),a=Lt.EMPTY_BYTE_STRING,c=null){this.target=e,this.targetId=n,this.purpose=i,this.sequenceNumber=r,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(e){return new mi(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new mi(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new mi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new mi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/**
1131 * @license
1132 * Copyright 2017 Google LLC
1133 *
1134 * Licensed under the Apache License, Version 2.0 (the "License");
1135 * you may not use this file except in compliance with the License.
1136 * You may obtain a copy of the License at
1137 *
1138 *   http://www.apache.org/licenses/LICENSE-2.0
1139 *
1140 * Unless required by applicable law or agreed to in writing, software
1141 * distributed under the License is distributed on an "AS IS" BASIS,
1142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1143 * See the License for the specific language governing permissions and
1144 * limitations under the License.
1145 */class m1{constructor(e){this.ht=e}}function y1(t){const e=h1({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?La(e,e.limit,"L"):e}/**
1146 * @license
1147 * Copyright 2019 Google LLC
1148 *
1149 * Licensed under the Apache License, Version 2.0 (the "License");
1150 * you may not use this file except in compliance with the License.
1151 * You may obtain a copy of the License at
1152 *
1153 *   http://www.apache.org/licenses/LICENSE-2.0
1154 *
1155 * Unless required by applicable law or agreed to in writing, software
1156 * distributed under the License is distributed on an "AS IS" BASIS,
1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1158 * See the License for the specific language governing permissions and
1159 * limitations under the License.
1160 */class _1{constructor(){this.ln=new b1}addToCollectionParentIndex(e,n){return this.ln.add(n),Ee.resolve()}getCollectionParents(e,n){return Ee.resolve(this.ln.getEntries(n))}addFieldIndex(e,n){return Ee.resolve()}deleteFieldIndex(e,n){return Ee.resolve()}deleteAllFieldIndexes(e){return Ee.resolve()}createTargetIndexes(e,n){return Ee.resolve()}getDocumentsMatchingTarget(e,n){return Ee.resolve(null)}getIndexType(e,n){return Ee.resolve(0)}getFieldIndexes(e,n){return Ee.resolve([])}getNextCollectionGroupToUpdate(e){return Ee.resolve(null)}getMinOffset(e,n){return Ee.resolve(Ai.min())}getMinOffsetFromCollectionGroup(e,n){return Ee.resolve(Ai.min())}updateCollectionGroup(e,n,i){return Ee.resolve()}updateIndexEntries(e,n){return Ee.resolve()}}class b1{constructor(){this.index={}}add(e){const n=e.lastSegment(),i=e.popLast(),r=this.index[n]||new At(ht.comparator),s=!r.has(i);return this.index[n]=r.add(i),s}has(e){const n=e.lastSegment(),i=e.popLast(),r=this.index[n];return r&&r.has(i)}getEntries(e){return(this.index[e]||new At(ht.comparator)).toArray()}}/**
1161 * @license
1162 * Copyright 2018 Google LLC
1163 *
1164 * Licensed under the Apache License, Version 2.0 (the "License");
1165 * you may not use this file except in compliance with the License.
1166 * You may obtain a copy of the License at
1167 *
1168 *   http://www.apache.org/licenses/LICENSE-2.0
1169 *
1170 * Unless required by applicable law or agreed to in writing, software
1171 * distributed under the License is distributed on an "AS IS" BASIS,
1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1173 * See the License for the specific language governing permissions and
1174 * limitations under the License.
1175 */const Fp={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class Qt{static withCacheSize(e){return new Qt(e,Qt.DEFAULT_COLLECTION_PERCENTILE,Qt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,i){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=i}}/**
1176 * @license
1177 * Copyright 2017 Google LLC
1178 *
1179 * Licensed under the Apache License, Version 2.0 (the "License");
1180 * you may not use this file except in compliance with the License.
1181 * You may obtain a copy of the License at
1182 *
1183 *   http://www.apache.org/licenses/LICENSE-2.0
1184 *
1185 * Unless required by applicable law or agreed to in writing, software
1186 * distributed under the License is distributed on an "AS IS" BASIS,
1187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1188 * See the License for the specific language governing permissions and
1189 * limitations under the License.
1190 */Qt.DEFAULT_COLLECTION_PERCENTILE=10,Qt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Qt.DEFAULT=new Qt(41943040,Qt.DEFAULT_COLLECTION_PERCENTILE,Qt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Qt.DISABLED=new Qt(-1,0,0);/**
1191 * @license
1192 * Copyright 2017 Google LLC
1193 *
1194 * Licensed under the Apache License, Version 2.0 (the "License");
1195 * you may not use this file except in compliance with the License.
1196 * You may obtain a copy of the License at
1197 *
1198 *   http://www.apache.org/licenses/LICENSE-2.0
1199 *
1200 * Unless required by applicable law or agreed to in writing, software
1201 * distributed under the License is distributed on an "AS IS" BASIS,
1202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1203 * See the License for the specific language governing permissions and
1204 * limitations under the License.
1205 */class Hr{constructor(e){this.kn=e}next(){return this.kn+=2,this.kn}static qn(){return new Hr(0)}static Qn(){return new Hr(-1)}}/**
1206 * @license
1207 * Copyright 2020 Google LLC
1208 *
1209 * Licensed under the Apache License, Version 2.0 (the "License");
1210 * you may not use this file except in compliance with the License.
1211 * You may obtain a copy of the License at
1212 *
1213 *   http://www.apache.org/licenses/LICENSE-2.0
1214 *
1215 * Unless required by applicable law or agreed to in writing, software
1216 * distributed under the License is distributed on an "AS IS" BASIS,
1217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1218 * See the License for the specific language governing permissions and
1219 * limitations under the License.
1220 */function Up([t,e],[n,i]){const r=We(t,n);return r===0?We(e,i):r}class v1{constructor(e){this.Gn=e,this.buffer=new At(Up),this.zn=0}jn(){return++this.zn}Hn(e){const n=[e,this.jn()];if(this.buffer.size<this.Gn)this.buffer=this.buffer.add(n);else{const i=this.buffer.last();Up(n,i)<0&&(this.buffer=this.buffer.delete(i).add(n))}}get maxValue(){return this.buffer.last()[0]}}class x1{constructor(e,n,i){this.garbageCollector=e,this.asyncQueue=n,this.localStore=i,this.Jn=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Yn(6e4)}stop(){this.Jn&&(this.Jn.cancel(),this.Jn=null)}get started(){return this.Jn!==null}Yn(e){Re("LruGarbageCollector",`Garbage collection scheduled in ${e}ms`),this.Jn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Jn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Jr(n)?Re("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",n):await Qr(n)}await this.Yn(3e5)})}}class w1{constructor(e,n){this.Zn=e,this.params=n}calculateTargetCount(e,n){return this.Zn.Xn(e).next(i=>Math.floor(n/100*i))}nthSequenceNumber(e,n){if(n===0)return Ee.resolve(sl.oe);const i=new v1(n);return this.Zn.forEachTarget(e,r=>i.Hn(r.sequenceNumber)).next(()=>this.Zn.er(e,r=>i.Hn(r))).next(()=>i.maxValue)}removeTargets(e,n,i){return this.Zn.removeTargets(e,n,i)}removeOrphanedDocuments(e,n){return this.Zn.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(Re("LruGarbageCollector","Garbage collection skipped; disabled"),Ee.resolve(Fp)):this.getCacheSize(e).next(i=>i<this.params.cacheSizeCollectionThreshold?(Re("LruGarbageCollector",`Garbage collection skipped; Cache size ${i} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Fp):this.tr(e,n))}getCacheSize(e){return this.Zn.getCacheSize(e)}tr(e,n){let i,r,s,o,a,c,d;const h=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(m=>(m>this.params.maximumSequenceNumbersToCollect?(Re("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${m}`),r=this.params.maximumSequenceNumbersToCollect):r=m,o=Date.now(),this.nthSequenceNumber(e,r))).next(m=>(i=m,a=Date.now(),this.removeTargets(e,i,n))).next(m=>(s=m,c=Date.now(),this.removeOrphanedDocuments(e,i))).next(m=>(d=Date.now(),yr()<=qe.DEBUG&&Re("LruGarbageCollector",`LRU Garbage Collection
1221	Counted targets in ${o-h}ms
1222	Determined least recently used ${r} in `+(a-o)+`ms
1223	Removed ${s} targets in `+(c-a)+`ms
1224	Removed ${m} documents in `+(d-c)+`ms
1225Total Duration: ${d-h}ms`),Ee.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:s,documentsRemoved:m})))}}function E1(t,e){return new w1(t,e)}/**
1226 * @license
1227 * Copyright 2017 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 T1{constructor(){this.changes=new sr(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,$t.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const i=this.changes.get(n);return i!==void 0?Ee.resolve(i):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
vendor: 9,262 bytes, lines 1240-1319
1240assertNotApplied(){}}/**
1241 * @license
1242 * Copyright 2017 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 *//**
1256 * @license
1257 * Copyright 2022 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 */class A1{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/**
1271 * @license
1272 * Copyright 2017 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 */class S1{constructor(e,n,i,r){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=i,this.indexManager=r}getDocument(e,n){let i=null;return this.documentOverlayCache.getOverlay(e,n).next(r=>(i=r,this.remoteDocumentCache.getEntry(e,n))).next(r=>(i!==null&&Vs(i.mutation,r,yn.empty(),Tt.now()),r))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(i=>this.getLocalViewOfDocuments(e,i,ze()).next(()=>i))}getLocalViewOfDocuments(e,n,i=ze()){const r=Gi();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,i).next(s=>{let o=xs();return s.forEach((a,c)=>{o=o.insert(a,c.overlayedDocument)}),o}))}getOverlayedDocuments(e,n){const i=Gi();return this.populateOverlays(e,i,n).next(()=>this.computeViews(e,n,i,ze()))}populateOverlays(e,n,i){const r=[];return i.forEach(s=>{n.has(s)||r.push(s)}),this.documentOverlayCache.getOverlays(e,r).next(s=>{s.forEach((o,a)=>{n.set(o,a)})})}computeViews(e,n,i,r){let s=Kn();const o=Ns(),a=function(){return Ns()}();return n.forEach((c,d)=>{const h=i.get(d.key);r.has(d.key)&&(h===void 0||h.mutation instanceof or)?s=s.insert(d.key,d):h!==void 0?(o.set(d.key,h.mutation.getFieldMask()),Vs(h.mutation,d,h.mutation.getFieldMask(),Tt.now())):o.set(d.key,yn.empty())}),this.recalculateAndSaveOverlays(e,s).next(c=>(c.forEach((d,h)=>o.set(d,h)),n.forEach((d,h)=>{var m;return a.set(d,new A1(h,(m=o.get(d))!==null&&m!==void 0?m:null))}),a))}recalculateAndSaveOverlays(e,n){const i=Ns();let r=new gt((o,a)=>o-a),s=ze();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(o=>{for(const a of o)a.keys().forEach(c=>{const d=n.get(c);if(d===null)return;let h=i.get(c)||yn.empty();h=a.applyToLocalView(d,h),i.set(c,h);const m=(r.get(a.batchId)||ze()).add(c);r=r.insert(a.batchId,m)})}).next(()=>{const o=[],a=r.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),d=c.key,h=c.value,m=O_();h.forEach(w=>{if(!s.has(w)){const k=B_(n.get(w),i.get(w));k!==null&&m.set(w,k),s=s.add(w)}}),o.push(this.documentOverlayCache.saveOverlays(e,d,m))}return Ee.waitFor(o)}).next(()=>i)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(i=>this.recalculateAndSaveOverlays(e,i))}getDocumentsMatchingQuery(e,n,i,r){return function(o){return De.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):I_(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,i,r):this.getDocumentsMatchingCollectionQuery(e,n,i,r)}getNextDocuments(e,n,i,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,i,r).next(s=>{const o=r-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,i.largestBatchId,r-s.size):Ee.resolve(Gi());let a=-1,c=s;return o.next(d=>Ee.forEach(d,(h,m)=>(a<m.largestBatchId&&(a=m.largestBatchId),s.get(h)?Ee.resolve():this.remoteDocumentCache.getEntry(e,h).next(w=>{c=c.insert(h,w)}))).next(()=>this.populateOverlays(e,d,s)).next(()=>this.computeViews(e,c,d,ze())).next(h=>({batchId:a,changes:M_(h)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new De(n)).next(i=>{let r=xs();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(e,n,i,r){const s=n.collectionGroup;let o=xs();return this.indexManager.getCollectionParents(e,s).next(a=>Ee.forEach(a,c=>{const d=function(m,w){return new Zr(w,null,m.explicitOrderBy.slice(),m.filters.slice(),m.limit,m.limitType,m.startAt,m.endAt)}(n,c.child(s));return this.getDocumentsMatchingCollectionQuery(e,d,i,r).next(h=>{h.forEach((m,w)=>{o=o.insert(m,w)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,n,i,r){let s;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,i.largestBatchId).next(o=>(s=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,i,s,r))).next(o=>{s.forEach((c,d)=>{const h=d.getKey();o.get(h)===null&&(o=o.insert(h,$t.newInvalidDocument(h)))});let a=xs();return o.forEach((c,d)=>{const h=s.get(c);h!==void 0&&Vs(h.mutation,d,yn.empty(),Tt.now()),cl(n,d)&&(a=a.insert(c,d))}),a})}}/**
1286 * @license
1287 * Copyright 2020 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 */class C1{constructor(e){this.serializer=e,this.Tr=new Map,this.Ir=new Map}getBundleMetadata(e,n){return Ee.resolve(this.Tr.get(n))}saveBundleMetadata(e,n){return this.Tr.set(n.id,function(r){return{id:r.id,version:r.version,createTime:Rn(r.createTime)}}(n)),Ee.resolve()}getNamedQuery(e,n){return Ee.resolve(this.Ir.get(n))}saveNamedQuery(e,n){return this.Ir.set(n.name,function(r){return{name:r.name,query:y1(r.bundledQuery),readTime:Rn(r.readTime)}}(n)),Ee.resolve()}}/**
1301 * @license
1302 * Copyright 2022 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 I1{constructor(){this.overlays=new gt(De.comparator),this.dr=new Map}getOverlay(e,n){return Ee.resolve(this.overlays.get(n))}getOverlays(e,n){const i=Gi();return Ee.forEach(n,r=>this.getOverlay(e,r).next(s=>{s!==null&&i.set(r,s)})).next(()=>i)}saveOverlays(e,n,i){return i.forEach((r,s)=>{this.Tt(e,n,s)}),Ee.resolve()}removeOverlaysForBatchId(e,n,i){const r=this.dr.get(i);return r!==void 0&&(r.forEach(s=>this.overlays=this.overlays.remove(s)),this.dr.delete(i)),Ee.resolve()}getOverlaysForCollection(e,n,i){const r=Gi(),s=n.length+1,o=new De(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const c=a.getNext().value,d=c.getKey();if(!n.isPrefixOf(d.path))break;d.path.length===s&&c.largestBatchId>i&&r.set(c.getKey(),c)}return Ee.resolve(r)}getOverlaysForCollectionGroup(e,n,i,r){let s=new gt((d,h)=>d-h);const o=this.overlays.getIterator();for(;o.hasNext();){const d=o.getNext().value;if(d.getKey().getCollectionGroup()===n&&d.largestBatchId>i){let h=s.get(d.largestBatchId);h===null&&(h=Gi(),s=s.insert(d.largestBatchId,h)),h.set(d.getKey(),d)}}const a=Gi(),c=s.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach((d,h)=>a.set(d,h)),!(a.size()>=r)););return Ee.resolve(a)}Tt(e,n,i){const r=this.overlays.get(i.key);if(r!==null){const o=this.dr.get(r.largestBatchId).delete(i.key);this.dr.set(r.largestBatchId,o)}this.overlays=this.overlays.insert(i.key,new qk(n,i));let s=this.dr.get(n);s===void 0&&(s=ze(),this.dr.set(n,s)),this.dr.set(n,s.add(i.key))}}/**
1316 * @license
1317 * Copyright 2024 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 P1{constructor(){this.sessionToken=Lt.EMPTY_BYTE_STRING}getSessionToken(e){return Ee.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,Ee.resolve()}}/**
1331 * @license
1332 * Copyright 2017 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 */class pu{constructor(){this.Er=new At(Ct.Ar),this.Rr=new At(Ct.Vr)}isEmpty(){return this.Er.isEmpty()}addReference(e,n){const i=new Ct(e,n);this.Er=this.Er.add(i),this.Rr=this.Rr.add(i)}mr(e,n){e.forEach(i=>this.addReference(i,n))}removeReference(e,n){this.gr(new Ct(e,n))}pr(e,n){e.forEach(i=>this.removeReference(i,n))}yr(e){const n=new De(new ht([])),i=new Ct(n,e),r=new Ct(n,e+1),s=[];return this.Rr.forEachInRange([i,r],o=>{this.gr(o),s.push(o.key)}),s}wr(){this.Er.forEach(e=>this.gr(e))}gr(e){this.Er=this.Er.delete(e),this.Rr=this.Rr.delete(e)}Sr(e){const n=new De(new ht([])),i=new Ct(n,e),r=new Ct(n,e+1);let s=ze();return this.Rr.forEachInRange([i,r],o=>{s=s.add(o.key)}),s}containsKey(e){const n=new Ct(e,0),i=this.Er.firstAfterOrEqual(n);return i!==null&&e.isEqual(i.key)}}class Ct{constructor(e,n){this.key=e,this.br=n}static Ar(e,n){return De.comparator(e.key,n.key)||We(e.br,n.br)}static Vr(e,n){return We(e.br,n.br)||De.comparator(e.key,n.key)}}/**
1346 * @license
1347 * Copyright 2017 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 */class k1{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Dr=1,this.vr=new At(Ct.Ar)}checkEmpty(e){return Ee.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,i,r){const s=this.Dr;this.Dr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new Gk(s,n,i,r);this.mutationQueue.push(o);for(const a of r)this.vr=this.vr.add(new Ct(a.key,s)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return Ee.resolve(o)}lookupMutationBatch(e,n){return Ee.resolve(this.Cr(n))}getNextMutationBatchAfterBatchId(e,n){const i=n+1,r=this.Fr(i),s=r<0?0:r;return Ee.resolve(this.mutationQueue.length>s?this.mutationQueue[s]:null)}getHighestUnacknowledgedBatchId(){return Ee.resolve(this.mutationQueue.length===0?-1:this.Dr-1)}getAllMutationBatches(e){return Ee.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const i=new Ct(n,0),r=new Ct(n,Number.POSITIVE_INFINITY),s=[];return this.vr.forEachInRange([i,r],o=>{const a=this.Cr(o.br);s.push(a)}),Ee.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,n){let i=new At(We);return n.forEach(r=>{const s=new Ct(r,0),o=new Ct(r,Number.POSITIVE_INFINITY);this.vr.forEachInRange([s,o],a=>{i=i.add(a.br)})}),Ee.resolve(this.Mr(i))}getAllMutationBatchesAffectingQuery(e,n){const i=n.path,r=i.length+1;let s=i;De.isDocumentKey(s)||(s=s.child(""));const o=new Ct(new De(s),0);let a=new At(We);return this.vr.forEachWhile(c=>{const d=c.key.path;return!!i.isPrefixOf(d)&&(d.length===r&&(a=a.add(c.br)),!0)},o),Ee.resolve(this.Mr(a))}Mr(e){const n=[];return e.forEach(i=>
1360{const r=this.Cr(i);r!==null&&n.push(r)}),n}removeMutationBatch(e,n){et(this.Or(n.batchId,"removed")===0),this.mutationQueue.shift();let i=this.vr;return Ee.forEach(n.mutations,r=>{const s=new Ct(r.key,n.batchId);return i=i.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.vr=i})}Bn(e){}containsKey(e,n){const i=new Ct(n,0),r=this.vr.firstAfterOrEqual(i);return Ee.resolve(n.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,Ee.resolve()}Or(e,n){return this.Fr(e)}Fr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Cr(e){const n=this.Fr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/**
1361 * @license
1362 * Copyright 2017 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 */class R1{constructor(e){this.Nr=e,this.docs=function(){return new gt(De.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const i=n.key,r=this.docs.get(i),s=r?r.size:0,o=this.Nr(n);return this.docs=this.docs.insert(i,{document:n.mutableCopy(),size:o}),this.size+=o-s,this.indexManager.addToCollectionParentIndex(e,i.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 i=this.docs.get(n);return Ee.resolve(i?i.document.mutableCopy():$t.newInvalidDocument(n))}getEntries(e,n){let i=Kn();return n.forEach(r=>{const s=this.docs.get(r);i=i.insert(r,s?s.document.mutableCopy():$t.newInvalidDocument(r))}),Ee.resolve(i)}getDocumentsMatchingQuery(e,n,i,r){let s=Kn();const o=n.path,a=new De(o.child("__id-9223372036854775808__")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:d,value:{document:h}}=c.getNext();if(!o.isPrefixOf(d.path))break;d.path.length>o.length+1||lk(ak(h),i)<=0||(r.has(h.key)||cl(n,h))&&(s=s.insert(h.key,h.mutableCopy()))}return Ee.resolve(s)}getAllFromCollectionGroup(e,n,i,r){Be()}Br(e,n){return Ee.forEach(this.docs,i=>n(i))}newChangeBuffer(e){return new M1(this)}getSize(e){return Ee.resolve(this.size)}}class M1 extends T1{constructor(e){super(),this.hr=e}applyChanges(e){const n=[];
vendor: 2,332 bytes, lines 1375-1390
1375return this.changes.forEach((i,r)=>{r.isValidDocument()?n.push(this.hr.addEntry(e,r)):this.hr.removeEntry(i)}),Ee.waitFor(n)}getFromCache(e,n){return this.hr.getEntry(e,n)}getAllFromCache(e,n){return this.hr.getEntries(e,n)}}/**
1376 * @license
1377 * Copyright 2017 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 */class O1{constructor(e){this.persistence=e,this.Lr=new sr(n=>lu(n),cu),this.lastRemoteSnapshotVersion=Fe.min(),this.highestTargetId=0,this.kr=0,this.qr=new pu,this.targetCount=0,this.Qr=Hr.qn()}forEachTarget(e,n){return this.Lr.forEach((i,r)=>n(r)),Ee.resolve()}getLastRemoteSnapshotVersion(e){return Ee.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Ee.resolve(this.kr)}allocateTargetId(e){return this.highestTargetId=this.Qr.next(),Ee.resolve(this.highestTargetId)}setTargetsMetadata(e,n,i){return i&&(this.lastRemoteSnapshotVersion=i),n>this.kr&&(this.kr=n),Ee.resolve()}Un(e){this.Lr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Qr=new Hr(n),this.highestTargetId=n),e.sequenceNumber>this.kr&&(this.kr=e.sequenceNumber)}addTargetData(e,n){return this.Un(n),this.targetCount+=1,Ee.resolve()}updateTargetData(e,n){return this.Un(n),Ee.resolve()}removeTargetData(e,n){return this.Lr.delete(n.target),this.qr.yr(n.targetId),this.targetCount-=1,Ee.resolve()}removeTargets(e,n,i){let r=0;const s=[];return this.Lr.forEach((o,a)=>{a.sequenceNumber<=n&&i.get(a.targetId)===null&&(this.Lr.delete(o),s.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)}),Ee.waitFor(s).next(()=>r)}getTargetCount(e){return Ee.resolve(this.targetCount)}getTargetData(e,n){const i=this.Lr.get(n)||null;return Ee.resolve(i)}addMatchingKeys(e,n,i){return this.qr.mr(n,i),Ee.resolve()}removeMatchingKeys(e,n,i){this.qr.pr(n,i);const r=this.persistence.referenceDelegate,s=[];
1390return r&&n.forEach(o=>{s.push(r.markPotentiallyOrphaned(e,o))}),Ee.waitFor(s)}removeMatchingKeysForTargetId(e,n){return this.qr.yr(n),Ee.resolve()}getMatchingKeysForTargetId(e,n){const i=this.qr.Sr(n);return Ee.resolve(i)}containsKey(e,n){return Ee.resolve(this.qr.containsKey(n))}}/**
1391 * @license
1392 * Copyright 2017 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 */class J_{constructor(e,n){this.Kr={},this.overlays={},this.$r=new sl(0),this.Ur=!1,this.Ur=!0,this.Wr=new P1,this.referenceDelegate=e(this),this.Gr=new O1(this),this.indexManager=new _1,this.remoteDocumentCache=function(r){return new R1(r)}(i=>
vendor: 4,236 bytes, lines 1405-1415
1405this.referenceDelegate.zr(i)),this.serializer=new m1(n),this.jr=new C1(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Ur=!1,Promise.resolve()}get started(){return this.Ur}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new I1,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let i=this.Kr[e.toKey()];return i||(i=new k1(n,this.referenceDelegate),this.Kr[e.toKey()]=i),i}getGlobalsCache(){return this.Wr}getTargetCache(){return this.Gr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.jr}runTransaction(e,n,i){Re("MemoryPersistence","Starting transaction:",e);const r=new L1(this.$r.next());return this.referenceDelegate.Hr(),i(r).next(s=>this.referenceDelegate.Jr(r).next(()=>s)).toPromise().then(s=>(r.raiseOnCommittedEvent(),s))}Yr(e,n){return Ee.or(Object.values(this.Kr).map(i=>()=>i.containsKey(e,n)))}}class L1 extends hk{constructor(e){super(),this.currentSequenceNumber=e}}class gu{constructor(e){this.persistence=e,this.Zr=new pu,this.Xr=null}static ei(e){return new gu(e)}get ti(){if(this.Xr)return this.Xr;throw Be()}addReference(e,n,i){return this.Zr.addReference(i,n),this.ti.delete(i.toString()),Ee.resolve()}removeReference(e,n,i){return this.Zr.removeReference(i,n),this.ti.add(i.toString()),Ee.resolve()}markPotentiallyOrphaned(e,n){return this.ti.add(n.toString()),Ee.resolve()}removeTarget(e,n){this.Zr.yr(n.targetId).forEach(r=>this.ti.add(r.toString()));const i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(e,n.targetId).next(r=>{r.forEach(s=>this.ti.add(s.toString()))}).next(()=>i.removeTargetData(e,n))}Hr(){this.Xr=new Set}Jr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ee.forEach(this.ti,i=>{const r=De.fromPath(i);return this.ni(e,r).next(s=>{s||n.removeEntry(r,Fe.min())})}).next(()=>(this.Xr=null,n.apply(e)))}updateLimboDocument(e,n){return this.ni(e,n).next(i=>{i?this.ti.delete(n.toString()):this.ti.add(n.toString())})}zr(e){return 0}ni(e,n){return Ee.or([()=>Ee.resolve(this.Zr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Yr(e,n)])}}class ja{constructor(e,n){this.persistence=e,this.ri=new sr(i=>fk(i.path),(i,r)=>i.isEqual(r)),this.garbageCollector=E1(this,n)}static ei(e,n){return new ja(e,n)}Hr(){}Jr(e){return Ee.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}Xn(e){const n=this.nr(e);return this.persistence.getTargetCache().getTargetCount(e).next(i=>n.next(r=>i+r))}nr(e){let n=0;return this.er(e,i=>{n++}).next(()=>n)}er(e,n){return Ee.forEach(this.ri,(i,r)=>this.ir(e,i,r).next(s=>s?Ee.resolve():n(r)))}removeTargets(e,n,i){return this.persistence.getTargetCache().removeTargets(e,n,i)}removeOrphanedDocuments(e,n){let i=0;const r=this.persistence.getRemoteDocumentCache(),s=r.newChangeBuffer();return r.Br(e,o=>this.ir(e,o,n).next(a=>{a||(i++,s.removeEntry(o,Fe.min()))})).next(()=>s.apply(e)).next(()=>i)}markPotentiallyOrphaned(e,n){return this.ri.set(n,e.currentSequenceNumber),Ee.resolve()}removeTarget(e,n){const i=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,i)}addReference(e,n,i){return this.ri.set(i,e.currentSequenceNumber),Ee.resolve()}removeReference(e,n,i){return this.ri.set(i,e.currentSequenceNumber),Ee.resolve()}updateLimboDocument(e,n){return this.ri.set(n,e.currentSequenceNumber),Ee.resolve()}zr(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=ra(e.data.value)),n}ir(e,n,i){return Ee.or([()=>this.persistence.Yr(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const r=this.ri.get(n);return Ee.resolve(r!==void 0&&r>i)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/**
1406 * @license
1407 * Copyright 2017 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, softw
1415are
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 */class mu{constructor(e,n,i,r){this.targetId=e,this.fromCache=n,this.Wi=i,this.Gi=r}static zi(e,n){let i=ze(),r=ze();for(const s of n.docChanges)switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:r=r.add(s.doc.key)}return new mu(e,n.fromCache,i,r)}}/**
1421 * @license
1422 * Copyright 2023 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 */class D1{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/**
1436 * @license
1437 * Copyright 2019 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 */class N1{constructor(){this.ji=!1,this.Hi=!1,this.Ji=100,this.Yi=function(){return OI()?8:uk(RI())>0?6:4}()}initialize(e,n){this.Zi=e,this.indexManager=n,this.ji=!0}getDocumentsMatchingQuery(e,n,i,r){const s={result:null};return this.Xi(e,n).next(o=>{s.result=o}).next(()=>{if(!s.result)return this.es(e,n,r,i).next(o=>{s.result=o})}).next(()=>{if(s.result)return;const o=new D1;return this.ts(e,n,o).next(a=>{if(s.result=a,this.Hi)return this.ns(e,n,o,a.size)})}).next(()=>s.result)}ns(e,n,i,r){return i.documentReadCount<this.Ji?(yr()<=qe.DEBUG&&Re("QueryEngine","SDK will not create cache indexes for query:",_r(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Ji,"documents"),Ee.resolve()):(yr()<=qe.DEBUG&&Re("QueryEngine","Query:",_r(n),"scans",i.documentReadCount,"local documents and returns",r,"documents as results."),i.documentReadCount>this.Yi*r?(yr()<=qe.DEBUG&&Re("QueryEngine","The SDK decides to create cache indexes for query:",_r(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Pn(n))):Ee.resolve())}Xi(e,n){if(kp(n))return Ee.resolve(null);let i=Pn(n);return this.indexManager.getIndexType(e,i).next(r=>r===0?null:(n.limit!==null&&r===1&&(n=La(n,null,"F"),i=Pn(n)),this.indexManager.getDocumentsMatchingTarget(e,i).next(s=>{const o=ze(...s);return this.Zi.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,i).next(c=>{const d=this.rs(n,a);return this.ss(n,d,o,c.readTime)?this.Xi(e,La(n,null,"F")):this.os(e,d,n,c)}))})))}es(e,n,i,r){return kp(n)||r.isEqual(Fe.min())?Ee.resolve(null):this.Zi.getDocuments(e,i).next(s=>{const o=this.rs(n,s);return this.ss(n,o,i,r)?Ee.resolve(null):(yr()<=qe.DEBUG&&Re("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),_r(n)),this.os(e,o,n,ok(r,-1)).next(a=>a))})}rs(e,n){let i=new At(k_(e));return n.forEach((r,s)=>{cl(e,s)&&(i=i.add(s))}),i}ss(e,n,i,r){if(e.limit===null)return!1;if(i.size!==n.size)return!0;const s=e.limitType==="F"?n.last():n.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(r)>0)}ts(e,n,i){return yr()<=qe.DEBUG&&Re("QueryEngine","Using full collection scan to execute query:",_r(n)),this.Zi.getDocumentsMatchingQuery(e,n,Ai.min(),i)}os(e,n,i,r){return this.Zi.getDocumentsMatchingQuery(e,i,r).next(s=>(n.forEach(o=>{s=s.insert(o.key,o)}),s))}}/**
1451 * @license
1452 * Copyright 2020 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, software
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 */class V1{constructor(e,n,i,r){this.persistence=e,this._s=n,this.serializer=r,this.us=new gt(We),this.cs=new sr(s=>lu(s),cu),this.ls=new Map,this.hs=e.getRemoteDocumentCache(),this.Gr=e.getTargetCache(),this.jr=e.getBundleCache(),this.Ps(i)}Ps(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new S1(this.hs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.hs.setIndexManager(this.indexManager),this._s.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.us))}}function j1(t,e,n,i){return new V1(t,e,n,i)}async function Z_(t,e){const n=Ue(t);return await n.persistence.runTransaction("Handle user change","readonly",i=>{let r;
1465return n.mutationQueue.getAllMutationBatches(i).next(s=>(r=s,n.Ps(e),n.mutationQueue.getAllMutationBatches(i))).next(s=>{const o=[],a=[];let c=ze();for(const d of r){o.push(d.batchId);for(const h of d.mutations)c=c.add(h.key)}for(const d of s){a.push(d.batchId);for(const h of d.mutations)c=c.add(h.key)}return n.localDocuments.getDocuments(i,c).next(d=>({Ts:d,removedBatchIds:o,addedBatchIds:a}))})})}function B1(t,e){const n=Ue(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",i=>{const r=e.batch.keys(),s=n.hs.newChangeBuffer({trackRemovals:!0});return function(a,c,d,h){const m=d.batch,w=m.keys();let k=Ee.resolve();return w.forEach(A=>{k=k.next(()=>h.getEntry(c,A)).next(F=>{const j=d.docVersions.get(A);et(j!==null),F.version.compareTo(j)<0&&(m.applyToRemoteDocument(F,d),F.isValidDocument()&&(F.setReadTime(d.commitVersion),h.addEntry(F)))})}),k.next(()=>a.mutationQueue.removeMutationBatch(c,m))}(n,i,e,s).next(()=>s.apply(i)).next(()=>n.mutationQueue.performConsistencyCheck(i)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(i,r,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(i,function(a){let c=ze();for(let d=0;d<a.mutationResults.length;++d)a.mutationResults[d].transformResults.length>0&&(c=c.add(a.batch.mutations[d].key));return c}(e))).next(()=>n.localDocuments.getDocuments(i,r))})}function eb(t){const e=Ue(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Gr.getLastRemoteSnapshotVersion(n))}function F1(t,e){const n=Ue(t),i=e.snapshotVersion;let r=n.us;return n.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=n.hs.newChangeBuffer({trackRemovals:!0});r=n.us;const a=[];
vendor: 4,430 bytes, lines 1465-1469
1465e.targetChanges.forEach((h,m)=>{const w=r.get(m);if(!w)return;a.push(n.Gr.removeMatchingKeys(s,h.removedDocuments,m).next(()=>n.Gr.addMatchingKeys(s,h.addedDocuments,m)));let k=w.withSequenceNumber(s.currentSequenceNumber);e.targetMismatches.get(m)!==null?k=k.withResumeToken(Lt.EMPTY_BYTE_STRING,Fe.min()).withLastLimboFreeSnapshotVersion(Fe.min()):h.resumeToken.approximateByteSize()>0&&(k=k.withResumeToken(h.resumeToken,i)),r=r.insert(m,k),function(F,j,U){return F.resumeToken.approximateByteSize()===0||j.snapshotVersion.toMicroseconds()-F.snapshotVersion.toMicroseconds()>=3e8?!0:U.addedDocuments.size+U.modifiedDocuments.size+U.removedDocuments.size>0}(w,k,h)&&a.push(n.Gr.updateTargetData(s,k))});let c=Kn(),d=ze();if(e.documentUpdates.forEach(h=>{e.resolvedLimboDocuments.has(h)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(s,h))}),a.push(U1(s,o,e.documentUpdates).next(h=>{c=h.Is,d=h.ds})),!i.isEqual(Fe.min())){const h=n.Gr.getLastRemoteSnapshotVersion(s).next(m=>n.Gr.setTargetsMetadata(s,s.currentSequenceNumber,i));a.push(h)}return Ee.waitFor(a).next(()=>o.apply(s)).next(()=>n.localDocuments.getLocalViewOfDocuments(s,c,d)).next(()=>c)}).then(s=>(n.us=r,s))}function U1(t,e,n){let i=ze(),r=ze();return n.forEach(s=>i=i.add(s)),e.getEntries(t,i).next(s=>{let o=Kn();return n.forEach((a,c)=>{const d=s.get(a);c.isFoundDocument()!==d.isFoundDocument()&&(r=r.add(a)),c.isNoDocument()&&c.version.isEqual(Fe.min())?(e.removeEntry(a,c.readTime),o=o.insert(a,c)):!d.isValidDocument()||c.version.compareTo(d.version)>0||c.version.compareTo(d.version)===0&&d.hasPendingWrites?(e.addEntry(c),o=o.insert(a,c)):Re("LocalStore","Ignoring outdated watch update for ",a,". Current version:",d.version," Watch version:",c.version)}),{Is:o,ds:r}})}function H1(t,e){const n=Ue(t);return n.persistence.runTransaction("Get next mutation batch","readonly",i=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(i,e)))}function z1(t,e){const n=Ue(t);return n.persistence.runTransaction("Allocate target","readwrite",i=>{let r;return n.Gr.getTargetData(i,e).next(s=>s?(r=s,Ee.resolve(r)):n.Gr.allocateTargetId(i).next(o=>(r=new mi(e,o,"TargetPurposeListen",i.currentSequenceNumber),n.Gr.addTargetData(i,r).next(()=>r))))}).then(i=>{const r=n.us.get(i.targetId);return(r===null||i.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.us=n.us.insert(i.targetId,i),n.cs.set(e,i.targetId)),i})}async function fh(t,e,n){const i=Ue(t),r=i.us.get(e),s=n?"readwrite":"readwrite-primary";try{n||await i.persistence.runTransaction("Release target",s,o=>i.persistence.referenceDelegate.removeTarget(o,r))}catch(o){if(!Jr(o))throw o;Re("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}i.us=i.us.remove(e),i.cs.delete(r.target)}function Hp(t,e,n){const i=Ue(t);let r=Fe.min(),s=ze();return i.persistence.runTransaction("Execute query","readwrite",o=>function(c,d,h){const m=Ue(c),w=m.cs.get(h);return w!==void 0?Ee.resolve(m.us.get(w)):m.Gr.getTargetData(d,h)}(i,o,Pn(e)).next(a=>{if(a)return r=a.lastLimboFreeSnapshotVersion,i.Gr.getMatchingKeysForTargetId(o,a.targetId).next(c=>{s=c})}).next(()=>i._s.getDocumentsMatchingQuery(o,e,n?r:Fe.min(),n?s:ze())).next(a=>($1(i,Rk(e),a),{documents:a,Es:s})))}function $1(t,e,n){let i=t.ls.get(e)||Fe.min();n.forEach((r,s)=>{s.readTime.compareTo(i)>0&&(i=s.readTime)}),t.ls.set(e,i)}class zp{constructor(){this.activeTargetIds=Vk()}ps(e){this.activeTargetIds=this.activeTargetIds.add(e)}ys(e){this.activeTargetIds=this.activeTargetIds.delete(e)}gs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class W1{constructor(){this._o=new zp,this.ao={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,i){}addLocalQueryTarget(e,n=!0){return n&&this._o.ps(e),this.ao[e]||"not-current"}updateQueryState(e,n,i){this.ao[e]=n}removeLocalQueryTarget(e){this._o.ys(e)}isLocalQueryTarget(e){return this._o.activeTargetIds.has(e)}clearQueryState(e){delete this.ao[e]}getAllActiveQueryTargets(){return this._o.activeTargetIds}isActiveQueryTarget(e){return this._o.activeTargetIds.has(e)}start(){return this._o=new zp,Promise.resolve()}handleUserChange(e,n,i){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/**
1466 * @license
1467 * Copyright 2019 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 */class G1{uo(e){}shutdown(){}}/**
1481 * @license
1482 * Copyright 2019 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 $p{constructor(){this.co=()=>this.lo(),this.ho=()=>this.Po(),this.To=[],this.Io()}uo(e){this.To.push(e)}shutdown(){window.removeEventListener("online",this.co),window.removeEventListener("offline",this.ho)}Io(){window.addEventListener("online",this.co),window.addEventListener("offline",this.ho)}lo(){Re("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.To)e(0)}Po(){Re("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.To)e(1)}static p(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/**
1496 * @license
1497 * Copyright 2023 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 */let Go=null;function ac(){return Go===null?Go=function(){return 268435456+Math.round(2147483648*Math.random())}():Go++,"0x"+Go.toString(16)}/**
1511 * @license
1512 * Copyright 2020 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 q1={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};/**
1526 * @license
1527 * Copyright 2017 Google LLC
1528 *
1529 * Licensed under the Apache License, Version 2.0 (the "License");
1530 * you may not use this file except in compliance with the License.
1531 * You may obtain a copy of the License at
1532 *
1533 *   http://www.apache.org/licenses/LICENSE-2.0
1534 *
1535 * Unless required by applicable law or agreed to in writing, software
1536 * distributed under the License is distributed on an "AS IS" BASIS,
1537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1538 * See the License for the specific language governing permissions and
1539 * limitations under the License.
1540 */class K1{constructor(e){this.Eo=e.Eo,this.Ao=e.Ao}Ro(e){this.Vo=e}mo(e){this.fo=e}po(e){this.yo=e}onMessage(e){this.wo=e}close(){this.Ao()}send(e){this.Eo(e)}So(){this.Vo()}bo(){this.fo()}Do(e){this.yo(e)}vo(e){this.wo(e)}}/**
1541 * @license
1542 * Copyright 2017 Google LLC
1543 *
1544 * Licensed under the Apache License, Version 2.0 (the "License");
1545 * you may not use this file except in compliance with the License.
1546 * You may obtain a copy of the License at
1547 *
1548 *   http://www.apache.org/licenses/LICENSE-2.0
1549 *
1550 * Unless required by applicable law or agreed to in writing, software
1551 * distributed under the License is distributed on an "AS IS" BASIS,
1552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1553 * See the License for the specific language governing permissions and
1554 * limitations under the License.
1555 */const Bt="WebChannelConnection";class X1 extends class{get Co(){return!1}constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const i=n.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.Fo=i+"://"+n.host,this.Mo=`projects/${r}/databases/${s}`,this.xo=this.databaseId.database==="(default)"?`project_id=${r}`:`project_id=${r}&database_id=${s}`}Oo(n,i,r,s,o){const a=ac(),c=this.No(n,i.toUriEncodedString());Re("RestConnection",`Sending RPC '${n}' ${a}:`,c,r);const d={"google-cloud-resource-prefix":this.Mo,"x-goog-request-params":this.xo};return this.Bo(d,s,o),this.Lo(n,c,d,r).then(h=>(Re("RestConnection",`Received RPC '${n}' ${a}: `,h),h),h=>{throw jr("RestConnection",`RPC '${n}' ${a} failed with error: `,h,"url: ",c,"request:",r),h})}ko(n,i,r,s,o,a){return this.Oo(n,i,r,s,o)}Bo(n,i,r){n["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Yr}(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),i&&i.headers.forEach((s,o)=>n[o]=s),r&&r.headers.forEach((s,o)=>n[o]=s)}No(n,i){const r=q1[n];return`${this.Fo}/v1/${i}:${r}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Lo(e,n,i,r){const s=ac();return new Promise((o,a)=>{const c=new u_;c.setWithCredentials(!0),c.listenOnce(d_.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case ia.NO_ERROR:const h=c.getResponseJson();Re(Bt,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(h)),o(h);break;case ia.TIMEOUT:Re(Bt,`RPC '${e}' ${s} timed out`),a(new Me(Ae.DEADLINE_EXCEEDED,"Request time out"));break;case ia.HTTP_ERROR:const m=c.getStatus();if(Re(Bt,`RPC '${e}' ${s} failed with status:`,m,"response text:",c.getResponseText()),m>0){let w=c.getResponseJson();Array.isArray(w)&&(w=w[0]);const k=w==null?void 0:w.error;if(k&&k.status&&k.message){const A=function(j){const U=j.toLowerCase().replace(/_/g,"-");return Object.values(Ae).indexOf(U)>=0?U:Ae.UNKNOWN}(k.status);a(new Me(A,k.message))}else a(new Me(Ae.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new Me(Ae.UNAVAILABLE,"Connection failed."));break;default:Be()}}finally{Re(Bt,`RPC '${e}' ${s} completed.`)}});const d=JSON.stringify(r);Re(Bt,`RPC '${e}' ${s} sending request:`,r),c.send(n,"POST",d,i,15)})}qo(e,n,i){const r=ac(),s=[this.Fo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=g_(),a=p_(),c={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},d=this.longPollingOptions.timeoutSeconds;d!==void 0&&(c.longPollingTimeout=Math.round(1e3*d)),this.useFetchStreams&&(c.useFetchStreams=!0),this.Bo(c.initMessageHeaders,n,i),c.encodeInitMessageHeaders=!0;const h=s.join("");Re(Bt,`Creating RPC '${e}' stream ${r}: ${h}`,c);const m=o.createWebChannel(h,c);let w=!1,k=!1;const A=new K1({Eo:j=>{k?Re(Bt,`Not sending because RPC '${e}' stream ${r} is closed:`,j):(w||(Re(Bt,`Opening RPC '${e}' stream ${r} transport.`),m.open(),w=!0),Re(Bt,`RPC '${e}' stream ${r} sending:`,j),m.send(j))},Ao:()=>m.close()}),F=(j,U,C)=>{j.listen(U,x=>{try{C(x)}catch(I){setTimeout(()=>{throw I},0)}})};return F(m,vs.EventType.OPEN,()=>{k||(Re(Bt,`RPC '${e}' stream ${r} transport opened.`),A.So())}),F(m,vs.EventType.CLOSE,()=>{k||(k=!0,Re(Bt,`RPC '${e}' stream ${r} transport closed`),A.Do())}
1555),F(m,vs.EventType.ERROR,j=>{k||(k=!0,jr(Bt,`RPC '${e}' stream ${r} transport errored:`,j),A.Do(new Me(Ae.UNAVAILABLE,"The operation could not be completed")))}),F(m,vs.EventType.MESSAGE,j=>{var U;if(!k){const C=j.data[0];et(!!C);const x=C,I=(x==null?void 0:x.error)||((U=x[0])===null||U===void 0?void 0:U.error);if(I){Re(Bt,`RPC '${e}' stream ${r} received error:`,I);const V=I.status;let S=function(T){const v=bt[T];if(v!==void 0)return H_(v)}(V),E=I.message;S===void 0&&(S=Ae.INTERNAL,E="Unknown error status: "+V+" with message "+I.message),k=!0,A.Do(new Me(S,E)),m.close()}else Re(Bt,`RPC '${e}' stream ${r} received:`,C),A.vo(C)}}),F(a,f_.STAT_EVENT,j=>{j.stat===ih.PROXY?Re(Bt,`RPC '${e}' stream ${r} detected buffering proxy`):j.stat===ih.NOPROXY&&Re(Bt,`RPC '${e}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{A.bo()},0),A}}function lc(){return typeof document<"u"?document:null}/**
1556 * @license
1557 * Copyright 2020 Google LLC
1558 *
1559 * Licensed under the Apache License, Version 2.0 (the "License");
1560 * you may not use this file except in compliance with the License.
1561 * You may obtain a copy of the License at
1562 *
1563 *   http://www.apache.org/licenses/LICENSE-2.0
1564 *
1565 * Unless required by applicable law or agreed to in writing, software
1566 * distributed under the License is distributed on an "AS IS" BASIS,
1567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1568 * See the License for the specific language governing permissions and
1569 * limitations under the License.
1570 */function fl(t){return new n1(t,!0)}/**
1571 * @license
1572 * Copyright 2017 Google LLC
1573 *
1574 * Licensed under the Apache License, Version 2.0 (the "License");
1575 * you may not use this file except in compliance with the License.
1576 * You may obtain a copy of the License at
1577 *
1578 *   http://www.apache.org/licenses/LICENSE-2.0
1579 *
1580 * Unless required by applicable law or agreed to in writing, software
1581 * distributed under the License is distributed on an "AS IS" BASIS,
1582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1583 * See the License for the specific language governing permissions and
1584 * limitations under the License.
1585 */class tb{constructor(e,n,i=1e3,r=1.5,s=6e4){this.li=e,this.timerId=n,this.Qo=i,this.Ko=r,this.$o=s,this.Uo=0,this.Wo=null,this.Go=Date.now(),this.reset()}reset(){this.Uo=0}zo(){this.Uo=this.$o}jo(e){this.cancel();const n=Math.floor(this.Uo+this.Ho()),i=Math.max(0,Date.now()-this.Go),r=Math.max(0,n-i);r>0&&Re("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.Uo} ms, delay with jitter: ${n} ms, last attempt: ${i} ms ago)`),this.Wo=this.li.enqueueAfterDelay(this.timerId,r,()=>(this.Go=Date.now(),e())),this.Uo*=this.Ko,this.Uo<this.Qo&&(this.Uo=this.Qo),this.Uo>this.$o&&(this.Uo=this.$o)}Jo(){this.Wo!==null&&(this.Wo.skipDelay(),this.Wo=null)}cancel(){this.Wo!==null&&(this.Wo.cancel(),this.Wo=null)}Ho(){return(Math.random()-.5)*this.Uo}}/**
1586 * @license
1587 * Copyright 2017 Google LLC
1588 *
1589 * Licensed under the Apache License, Version 2.0 (the "License");
1590 * you may not use this file except in compliance with the License.
1591 * You may obtain a copy of the License at
1592 *
1593 *   http://www.apache.org/licenses/LICENSE-2.0
1594 *
1595 * Unless required by applicable law or agreed to in writing, software
1596 * distributed under the License is distributed on an "AS IS" BASIS,
1597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1598 * See the License for the specific language governing permissions and
1599 * limitations under the License.
1600 */class nb{constructor(e,n,i,r,s,o,a,c){this.li=e,this.Yo=i,this.Zo=r,this.connection=s,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.Xo=0,this.e_=null,this.t_=null,this.stream=null,this.n_=0,this.r_=new tb(e,n)}i_(){return this.state===1||this.state===5||this.s_()}s_(){return this.state===2||this.state===3}start(){this.n_=0,this.state!==4?this.auth():this.o_()}async stop(){this.i_()&&await this.close(0)}__(){this.state=0,this.r_.reset()}a_(){this.s_()&&this.e_===null&&(this.e_=this.li.enqueueAfterDelay(this.Yo,6e4,()=>this.u_()))}c_(e){this.l_(),this.stream.send(e)}async u_(){if(this.s_())return this.close(0)}l_(){this.e_&&(this.e_.cancel(),this.e_=null)}h_(){this.t_&&(this.t_.cancel(),this.t_=null)}async close(e,n){this.l_(),this.h_(),this.r_.cancel(),this.Xo++,e!==4?this.r_.reset():n&&n.code===Ae.RESOURCE_EXHAUSTED?(qn(n.toString()),qn("Using maximum backoff delay to prevent overloading the backend."),this.r_.zo()):n&&n.code===Ae.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.P_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.po(n)}P_(){}auth(){this.state=1;const e=this.T_(this.Xo),n=this.Xo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([i,r])=>{this.Xo===n&&this.I_(i,r)},i=>{e(()=>{const r=new Me(Ae.UNKNOWN,"Fetching auth token failed: "+i.message);return this.d_(r)})})}I_(e,n){const i=this.T_(this.Xo);this.stream=this.E_(e,n),this.stream.Ro(()=>{i(()=>this.listener.Ro())}),this.stream.mo(()=>{i(()=>(this.state=2,this.t_=this.li.enqueueAfterDelay(this.Zo,1e4,()=>(this.s_()&&(this.state=3),Promise.resolve())),this.listener.mo()))}),this.stream.po(r=>{i(()=>this.d_(r))}),this.stream.onMessage(r=>{i(()=>++this.n_==1?this.A_(r):this.onNext(r))})}o_(){this.state=5,this.r_.jo(async()=>{this.state=0,this.start()})}d_(e){return Re("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}T_(e){return n=>{this.li.enqueueAndForget(()=>this.Xo===e?n():(Re("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Y1 extends nb{constructor(e,n,i,r,s,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,i,r,o),this.serializer
1600=s}E_(e,n){return this.connection.qo("Listen",e,n)}A_(e){return this.onNext(e)}onNext(e){this.r_.reset();const n=s1(this.serializer,e),i=function(s){if(!("targetChange"in s))return Fe.min();const o=s.targetChange;return o.targetIds&&o.targetIds.length?Fe.min():o.readTime?Rn(o.readTime):Fe.min()}(e);return this.listener.R_(n,i)}V_(e){const n={};n.database=dh(this.serializer),n.addTarget=function(s,o){let a;const c=o.target;if(a=ah(c)?{documents:l1(s,c)}:{query:c1(s,c).ct},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=W_(s,o.resumeToken);const d=ch(s,o.expectedCount);d!==null&&(a.expectedCount=d)}else if(o.snapshotVersion.compareTo(Fe.min())>0){a.readTime=Va(s,o.snapshotVersion.toTimestamp());const d=ch(s,o.expectedCount);d!==null&&(a.expectedCount=d)}return a}(this.serializer,e);const i=u1(this.serializer,e);i&&(n.labels=i),this.c_(n)}m_(e){const n={};n.database=dh(this.serializer),n.removeTarget=e,this.c_(n)}}class Q1 extends nb{constructor(e,n,i,r,s,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,i,r,o),this.serializer=s}get f_(){return this.n_>0}start(){this.lastStreamToken=void 0,super.start()}P_(){this.f_&&this.g_([])}E_(e,n){return this.connection.qo("Write",e,n)}A_(e){return et(!!e.streamToken),this.lastStreamToken=e.streamToken,et(!e.writeResults||e.writeResults.length===0),this.listener.p_()}onNext(e){et(!!e.streamToken),this.lastStreamToken=e.streamToken,this.r_.reset();const n=a1(e.writeResults,e.commitTime),i=Rn(e.commitTime);return this.listener.y_(i,n)}w_(){const e={};e.database=dh(this.serializer),this.c_(e)}g_(e){const n={streamToken:this.lastStreamToken,writes:e.map(i=>o1(this.serializer,i))};this.c_(n)}}/**
1601 * @license
1602 * Copyright 2017 Google LLC
1603 *
1604 * Licensed under the Apache License, Version 2.0 (the "License");
1605 * you may not use this file except in compliance with the License.
1606 * You may obtain a copy of the License at
1607 *
1608 *   http://www.apache.org/licenses/LICENSE-2.0
1609 *
1610 * Unless required by applicable law or agreed to in writing, software
1611 * distributed under the License is distributed on an "AS IS" BASIS,
1612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613 * See the License for the specific language governing permissions and
1614 * limitations under the License.
1615 */class J1 extends class{}{constructor(e,n,i,r){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=i,this.serializer=r,this.S_=!1}b_(){if(this.S_)throw new Me(Ae.FAILED_PRECONDITION,"The client has already been terminated.")}Oo(e,n,i,r){return this.b_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.connection.Oo(e,hh(n,i),r,s,o)).catch(s=>{throw s.name==="FirebaseError"?(s.code===Ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Me(Ae.UNKNOWN,s.toString())})}ko(e,n,i,r,s){return this.b_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,a])=>this.connection.ko(e,hh(n,i),r,o,a,s)).catch(o=>{throw o.name==="FirebaseError"?(o.code===Ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Me(Ae.UNKNOWN,o.toString())})}terminate(){this.S_=!0,this.connection.terminate()}}class Z1{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.D_=0,this.v_=null,this.C_=!0}F_(){this.D_===0&&(this.M_("Unknown"),this.v_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.v_=null,this.x_("Backend didn't respond within 10 seconds."),this.M_("Offline"),Promise.resolve())))}O_(e){this.state==="Online"?this.M_("Unknown"):(this.D_++,this.D_>=1&&(this.N_(),this.x_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.M_("Offline")))}set(e){this.N_(),this.D_=0,e==="Online"&&(this.C_=!1),this.M_(e)}M_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}x_(e){const n=`Could not reach Cloud Firestore backend. ${e}
1616This 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.C_?(qn(n),this.C_=!1):Re("OnlineStateTracker",n)}N_(){this.v_!==null&&(this.v_.cancel(),this.v_=null)}}/**
1617 * @license
1618 * Copyright 2017 Google LLC
1619 *
1620 * Licensed under the Apache License, Version 2.0 (the "License");
1621 * you may not use this file except in compliance with the License.
1622 * You may obtain a copy of the License at
1623 *
1624 *   http://www.apache.org/licenses/LICENSE-2.0
1625 *
1626 * Unless required by applicable law or agreed to in writing, software
1627 * distributed under the License is distributed on an "AS IS" BASIS,
1628 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1629 * See the License for the specific language governing permissions and
1630 * limitations under the License.
1631 */class eR{constructor(e,n,i,r,s){this.localStore=e,this.datastore=n,this.asyncQueue=i,this.remoteSyncer={},this.B_=[],this.L_=new Map,this.k_=new Set,this.q_=[],this.Q_=s,this.Q_.uo(o=>{i.enqueueAndForget(async()=>{ar(this)&&(Re("RemoteStore","Restarting streams for network reachability change."),await async function(c){const d=Ue(c);d.k_.add(4),await po(d),d.K_.set("Unknown"),d.k_.delete(4),await pl(d)}(this))})}),this.K_=new Z1(i,r)}}async function pl(t){if(ar(t))for(const e of t.q_)await e(!0)}async function po(t){for(const e of t.q_)await e(!1)}function ib(t,e){const n=Ue(t);n.L_.has(e.targetId)||(n.L_.set(e.targetId,e),vu(n)?bu(n):es(n).s_()&&_u(n,e))}function yu(t,e){const n=Ue(t),i=es(n);n.L_.delete(e),i.s_()&&rb(n,e),n.L_.size===0&&(i.s_()?i.a_():ar(n)&&n.K_.set("Unknown"))}function _u(t,e){if(t.U_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Fe.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}es(t).V_(e)}function rb(t,e){t.U_.xe(e),es(t).m_(e)}function bu(t){t.U_=new Jk({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ut:e=>t.L_.get(e)||null,nt:()=>t.datastore.serializer.databaseId}),es(t).start(),t.K_.F_()}function vu(t){return ar(t)&&!es(t).i_()&&t.L_.size>0}function ar(t){return Ue(t).k_.size===0}function sb(t){t.U_=void 0}async function tR(t){t.K_.set("Online")}async function nR(t){t.L_.forEach((e,n)=>{_u(t,e)})}async function iR(t,e){sb(t),vu(t)?(t.K_.O_(e),bu(t)):t.K_.set("Unknown")}async function rR(t,e,n){if(t.K_.set("Online"),e instanceof $_&&e.state===2&&e.cause)try{await async function(r,s){const o=s.cause;for(const a of s.targetIds)r.L_.has(a)&&(await r.remoteSyncer.rejectListen(a,o),r.L_.delete(a),r.U_.removeTarget(a))}(t,e)}catch(i){Re("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),await Ba(t,i)}else if(e instanceof aa?t.U_.$e(e):e instanceof z_?t.U_.Je(e):t.U_.Ge(e),!n.isEqual(Fe.min()))try{const i=await eb(t.localStore);n.compareTo(i)>=0&&await function(s,o){const a=s.U_.it(o);
1631return a.targetChanges.forEach((c,d)=>{if(c.resumeToken.approximateByteSize()>0){const h=s.L_.get(d);h&&s.L_.set(d,h.withResumeToken(c.resumeToken,o))}}),a.targetMismatches.forEach((c,d)=>{const h=s.L_.get(c);if(!h)return;s.L_.set(c,h.withResumeToken(Lt.EMPTY_BYTE_STRING,h.snapshotVersion)),rb(s,c);const m=new mi(h.target,c,d,h.sequenceNumber);_u(s,m)}),s.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(i){Re("RemoteStore","Failed to raise snapshot:",i),await Ba(t,i)}}async function Ba(t,e,n){if(!Jr(e))throw e;t.k_.add(1),await po(t),t.K_.set("Offline"),n||(n=()=>eb(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{Re("RemoteStore","Retrying IndexedDB access"),await n(),t.k_.delete(1),await pl(t)})}function ob(t,e){return e().catch(n=>Ba(t,n,e))}async function gl(t){const e=Ue(t),n=Pi(e);let i=e.B_.length>0?e.B_[e.B_.length-1].batchId:-1;for(;sR(e);)try{const r=await H1(e.localStore,i);if(r===null){e.B_.length===0&&n.a_();break}i=r.batchId,oR(e,r)}catch(r){await Ba(e,r)}ab(e)&&lb(e)}function sR(t){return ar(t)&&t.B_.length<10}function oR(t,e){t.B_.push(e);const n=Pi(t);n.s_()&&n.f_&&n.g_(e.mutations)}function ab(t){return ar(t)&&!Pi(t).i_()&&t.B_.length>0}function lb(t){Pi(t).start()}async function aR(t){Pi(t).w_()}async function lR(t){const e=Pi(t);for(const n of t.B_)e.g_(n.mutations)}async function cR(t,e,n){const i=t.B_.shift(),r=uu.from(i,e,n);await ob(t,()=>t.remoteSyncer.applySuccessfulWrite(r)),await gl(t)}async function hR(t,e){e&&Pi(t).f_&&await async function(i,r){if(function(o){return Xk(o)&&o!==Ae.ABORTED}(r.code)){const s=i.B_.shift();Pi(i).__(),await ob(i,()=>i.remoteSyncer.rejectFailedWrite(s.batchId,r)),await gl(i)}}(t,e),ab(t)&&lb(t)}async function Wp(t,e){const n=Ue(t);n.asyncQueue.verifyOperationInProgress(),Re("RemoteStore","RemoteStore received new credentials");const i=ar(n);n.k_.add(3),await po(n),i&&n.K_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.k_.delete(3),await pl(n)}async function uR(t,e){const n=Ue(t);e?(n.k_.delete(2),await pl(n)):e||(n.k_.add(2),await po(n),n.K_.set("Unknown"))}function es(t){return t.W_||(t.W_=function(n,i,r){const s=Ue(n);return s.b_(),new Y1(i,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,r)}(t.datastore,t.asyncQueue,{Ro:tR.bind(null,t),mo:nR.bind(null,t),po:iR.bind(null,t),R_:rR.bind(null,t)}),t.q_.push(async e=>{e?(t.W_.__(),vu(t)?bu(t):t.K_.set("Unknown")):(await t.W_.stop(),sb(t))})),t.W_}function Pi(t){return t.G_||(t.G_=function(n,i,r){const s=Ue(n);return s.b_(),new Q1(i,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,r)}(t.datastore,t.asyncQueue,{Ro:()=>Promise.resolve(),mo:aR.bind(null,t),po:hR.bind(null,t),p_:lR.bind(null,t),y_:cR.bind(null,t)}),t.q_.push(async e=>{e?(t.G_.__(),await gl(t)):(await t.G_.stop(),t.B_.length>0&&(Re("RemoteStore",`Stopping write stream with ${t.B_.length} pending writes`),t.B_=[]))})),t.G_}/**
1632 * @license
1633 * Copyright 2017 Google LLC
1634 *
1635 * Licensed under the Apache License, Version 2.0 (the "License");
1636 * you may not use this file except in compliance with the License.
1637 * You may obtain a copy of the License at
1638 *
1639 *   http://www.apache.org/licenses/LICENSE-2.0
1640 *
1641 * Unless required by applicable law or agreed to in writing, software
1642 * distributed under the License is distributed on an "AS IS" BASIS,
1643 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1644 * See the License for the specific language governing permissions and
1645 * limitations under the License.
1646 */class xu{constructor(e,n,i,r,s){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=i,this.op=r,this.removalCallback=s,this.deferred=new wi,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,i,r,s){const o=Date.now()+i,a=new xu(e,n,o,r,s);return a.start(i),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new Me(Ae.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function wu(t,e){if(qn("AsyncQueue",`${e}: ${t}`),Jr(t))return new Me(Ae.UNAVAILABLE,`${e}: ${t}`);throw t}/**
1647 * @license
1648 * Copyright 2017 Google LLC
1649 *
1650 * Licensed under the Apache License, Version 2.0 (the "License");
1651 * you may not use this file except in compliance with the License.
1652 * You may obtain a copy of the License at
1653 *
1654 *   http://www.apache.org/licenses/LICENSE-2.0
1655 *
1656 * Unless required by applicable law or agreed to in writing, software
1657 * distributed under the License is distributed on an "AS IS" BASIS,
1658 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1659 * See the License for the specific language governing permissions and
1660 * limitations under the License.
1661 */class Rr{static emptySet(e){return new Rr(e.comparator)}constructor(e){this.comparator=e?(n,i)=>e(n,i)||De.comparator(n.key,i.key):(n,i)=>De.comparator(n.key,i.key),this.keyedMap=xs(),this.sortedSet=new gt(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,i)=>(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 Rr)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),i=e.sortedSet.getIterator();for(;n.hasNext();){const r=n.getNext().key,s=i.getNext().key;if(!r.isEqual(s))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),e.length===0?"DocumentSet ()":`DocumentSet (
1662  `+e.join(`  
1663`)+`
1664)`}copy(e,n){const i=new Rr;return i.comparator=this.comparator,i.keyedMap=e,i.sortedSet=n,i}}/**
1665 * @license
1666 * Copyright 2017 Google LLC
1667 *
1668 * Licensed under the Apache License, Version 2.0 (the "License");
1669 * you may not use this file except in compliance with the License.
1670 * You may obtain a copy of the License at
1671 *
1672 *   http://www.apache.org/licenses/LICENSE-2.0
1673 *
1674 * Unless required by applicable law or agreed to in writing, software
1675 * distributed under the License is distributed on an "AS IS" BASIS,
1676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1677 * See the License for the specific language governing permissions and
1678 * limitations under the License.
1679 */class Gp{constructor(){this.z_=new gt(De.comparator)}track(e){const n=e.doc.key,i=this.z_.get(n);i?e.type!==0&&i.type===3?this.z_=this.z_.insert(n,e):e.type===3&&i.type!==1?this.z_=this.z_.insert(n,{type:i.type,doc:e.doc}):e.type===2&&i.type===2?this.z_=this.z_.insert(n,{type:2,doc:e.doc}):e.type===2&&i.type===0?this.z_=this.z_.insert(n,{type:0,doc:e.doc}):e.type===1&&i.type===0?this.z_=this.z_.remove(n):e.type===1&&i.type===2?this.z_=this.z_.insert(n,{type:1,doc:i.doc}):e.type===0&&i.type===1?this.z_=this.z_.insert(n,{type:2,doc:e.doc}):Be():this.z_=this.z_.insert(n,e)}j_(){const e=[];return this.z_.inorderTraversal((n,i)=>{e.push(i)}),e}}class zr{constructor(e,n,i,r,s,o,a,c,d){this.query=e,this.docs=n,this.oldDocs=i,this.docChanges=r,this.mutatedKeys=s,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=d}static fromInitialDocuments(e,n,i,r,s){const o=[];return n.forEach(a=>{o.push({type:0,doc:a})}),new zr(e,n,Rr.emptySet(n),o,i,r,!0,!1,s)}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)&&ll(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,i=e.docChanges;if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++)if(n[r].type!==i[r].type||!n[r].doc.isEqual(i[r].doc))return!1;return!0}}/**
1680 * @license
1681 * Copyright 2017 Google LLC
1682 *
1683 * Licensed under the Apache License, Version 2.0 (the "License");
1684 * you may not use this file except in compliance with the License.
1685 * You may obtain a copy of the License at
1686 *
1687 *   http://www.apache.org/licenses/LICENSE-2.0
1688 *
1689 * Unless required by applicable law or agreed to in writing, softw
1689are
1690 * distributed under the License is distributed on an "AS IS" BASIS,
1691 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1692 * See the License for the specific language governing permissions and
1693 * limitations under the License.
1694 */class dR{constructor(){this.H_=void 0,this.J_=[]}Y_(){return this.J_.some(e=>e.Z_())}}class fR{constructor(){this.queries=qp(),this.onlineState="Unknown",this.X_=new Set}terminate(){(function(n,i){const r=Ue(n),s=r.queries;r.queries=qp(),s.forEach((o,a)=>{for(const c of a.J_)c.onError(i)})})(this,new Me(Ae.ABORTED,"Firestore shutting down"))}}function qp(){return new sr(t=>P_(t),ll)}async function pR(t,e){const n=Ue(t);let i=3;const r=e.query;let s=n.queries.get(r);s?!s.Y_()&&e.Z_()&&(i=2):(s=new dR,i=e.Z_()?0:1);try{switch(i){case 0:s.H_=await n.onListen(r,!0);break;case 1:s.H_=await n.onListen(r,!1);break;case 2:await n.onFirstRemoteStoreListen(r)}}catch(o){const a=wu(o,`Initialization of query '${_r(e.query)}' failed`);return void e.onError(a)}n.queries.set(r,s),s.J_.push(e),e.ea(n.onlineState),s.H_&&e.ta(s.H_)&&Eu(n)}async function gR(t,e){const n=Ue(t),i=e.query;let r=3;const s=n.queries.get(i);if(s){const o=s.J_.indexOf(e);o>=0&&(s.J_.splice(o,1),s.J_.length===0?r=e.Z_()?0:1:!s.Y_()&&e.Z_()&&(r=2))}switch(r){case 0:return n.queries.delete(i),n.onUnlisten(i,!0);case 1:return n.queries.delete(i),n.onUnlisten(i,!1);case 2:return n.onLastRemoteStoreUnlisten(i);default:return}}function mR(t,e){const n=Ue(t);let i=!1;for(const r of e){const s=r.query,o=n.queries.get(s);if(o){for(const a of o.J_)a.ta(r)&&(i=!0);o.H_=r}}i&&Eu(n)}function yR(t,e,n){const i=Ue(t),r=i.queries.get(e);if(r)for(const s of r.J_)s.onError(n);i.queries.delete(e)}function Eu(t){t.X_.forEach(e=>{e.next()})}var ph,Kp;(Kp=ph||(ph={})).na="default",Kp.Cache="cache";class _R{constructor(e,n,i){this.query=e,this.ra=n,this.ia=!1,this.sa=null,this.onlineState="Unknown",this.options=i||{}}ta(e){if(!this.options.includeMetadataChanges){const i=[];for(const r of e.docChanges)r.type!==3&&i.push(r);e=new zr(e.query,e.docs,e.oldDocs,i,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.ia?this.oa(e)&&(this.ra.next(e),n=!0):this._a(e,this.onlineState)&&(this.aa(e),n=!0),this.sa=e,n}onError(e){this.ra.error(e)}ea(e){this.onlineState=e;let n=!1;return this.sa&&!this.ia&&this._a(this.sa,e)&&(this.aa(this.sa),n=!0),n}_a(e,n){if(!e.fromCache||!this.Z_())return!0;const i=n!=="Offline";return(!this.options.ua||!i)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}oa(e){if(e.docChanges.length>0)return!0;const n=this.sa&&this.sa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}aa(e){e=zr.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ia=!0,this.ra.next(e)}Z_(){return this.options.source!==ph.Cache}}/**
1695 * @license
1696 * Copyright 2017 Google LLC
1697 *
1698 * Licensed under the Apache License, Version 2.0 (the "License");
1699 * you may not use this file except in compliance with the License.
1700 * You may obtain a copy of the License at
1701 *
1702 *   http://www.apache.org/licenses/LICENSE-2.0
1703 *
1704 * Unless required by applicable law or agreed to in writing, software
1705 * distributed under the License is distributed on an "AS IS" BASIS,
1706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1707 * See the License for the specific language governing permissions and
1708 * limitations under the License.
1709 */class cb{constructor(e){this.key=e}}class hb{constructor(e){this.key=e}}class bR{constructor(e,n){this.query=e,this.Ea=n,this.Aa=null,this.hasCachedResults=!1,this.current=!1,this.Ra=ze(),this.mutatedKeys=ze(),this.Va=k_(e),this.ma=new Rr(this.Va)}get fa(){return this.Ea}ga(e,n){const i=n?n.pa:new Gp,r=n?n.ma:this.ma;let s=n?n.mutatedKeys:this.mutatedKeys,o=r,a=!1;const c=this.query.limitType==="F"&&r.size===this.query.limit?r.last():null,d=this.query.limitType==="L"&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((h,m)=>{const w=r.get(h),k=cl(this.query,m)?m:null,A=!!w&&this.mutatedKeys.has(w.key),F=!!k&&(k.hasLocalMutations||this.mutatedKeys.has(k.key)&&k.hasCommittedMutations);let j=!1;w&&k?w.data.isEqual(k.data)?A!==F&&(i.track({type:3,doc:k}),j=!0):this.ya(w,k)||(i.track({type:2,doc:k}),j=!0,(c&&this.Va(k,c)>0||d&&this.Va(k,d)<0)&&(a=!0)):!w&&k?(i.track({type:0,doc:k}),j=!0):w&&!k&&(i.track({type:1,doc:w}),j=!0,(c||d)&&(a=!0)),j&&(k?(o=o.add(k),s=F?s.add(h):s.delete(h)):(o=o.delete(h),s=s.delete(h)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const h=this.query.limitType==="F"?o.last():o.first();o=o.delete(h.key),s=s.delete(h.key),i.track({type:1,doc:h})}return{ma:o,pa:i,ss:a,mutatedKeys:s}}ya(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}
1709applyChanges(e,n,i,r){const s=this.ma;this.ma=e.ma,this.mutatedKeys=e.mutatedKeys;const o=e.pa.j_();o.sort((h,m)=>function(k,A){const F=j=>{switch(j){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Be()}};return F(k)-F(A)}(h.type,m.type)||this.Va(h.doc,m.doc)),this.wa(i),r=r!=null&&r;const a=n&&!r?this.Sa():[],c=this.Ra.size===0&&this.current&&!r?1:0,d=c!==this.Aa;return this.Aa=c,o.length!==0||d?{snapshot:new zr(this.query,e.ma,s,o,e.mutatedKeys,c===0,d,!1,!!i&&i.resumeToken.approximateByteSize()>0),ba:a}:{ba:a}}ea(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({ma:this.ma,pa:new Gp,mutatedKeys:this.mutatedKeys,ss:!1},!1)):{ba:[]}}Da(e){return!this.Ea.has(e)&&!!this.ma.has(e)&&!this.ma.get(e).hasLocalMutations}wa(e){e&&(e.addedDocuments.forEach(n=>this.Ea=this.Ea.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.Ea=this.Ea.delete(n)),this.current=e.current)}Sa(){if(!this.current)return[];const e=this.Ra;this.Ra=ze(),this.ma.forEach(i=>{this.Da(i.key)&&(this.Ra=this.Ra.add(i.key))});const n=[];return e.forEach(i=>{this.Ra.has(i)||n.push(new hb(i))}),this.Ra.forEach(i=>{e.has(i)||n.push(new cb(i))}),n}va(e){this.Ea=e.Es,this.Ra=ze();const n=this.ga(e.documents);return this.applyChanges(n,!0)}Ca(){return zr.fromInitialDocuments(this.query,this.ma,this.mutatedKeys,this.Aa===0,this.hasCachedResults)}}class vR{constructor(e,n,i){this.query=e,this.targetId=n,this.view=i}}class xR{constructor(e){this.key=e,this.Fa=!1}}class wR{constructor(e,n,i,r,s,o){this.localStore=e,this.remoteStore=n,this.eventManager=i,this.sharedClientState=r,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.Ma={},this.xa=new sr(a=>P_(a),ll),this.Oa=new Map,this.Na=new Set,this.Ba=new gt(De.comparator),this.La=new Map,this.ka=new pu,this.qa={},this.Qa=new Map,this.Ka=Hr.Qn(),this.onlineState="Unknown",this.$a=void 0}get isPrimaryClient(){return this.$a===!0}}async function ER(t,e,n=!0){const i=mb(t);let r;const s=i.xa.get(e);return s?(i.sharedClientState.addLocalQueryTarget(s.targetId),r=s.view.Ca()):r=await ub(i,e,n,!0),r}async function TR(t,e){const n=mb(t);await ub(n,e,!0,!1)}async function ub(t,e,n,i){const r=await z1(t.localStore,Pn(e)),s=r.targetId,o=t.sharedClientState.addLocalQueryTarget(s,n);let a;return i&&(a=await AR(t,e,s,o==="current",r.resumeToken)),t.isPrimaryClient&&n&&ib(t.remoteStore,r),a}async function AR(t,e,n,i,r){t.Ua=(m,w,k)=>async function(F,j,U,C){let x=j.view.ga(U);x.ss&&(x=await Hp(F.localStore,j.query,!1).then(({documents:E})=>j.view.ga(E,x)));const I=C&&C.targetChanges.get(j.targetId),V=C&&C.targetMismatches.get(j.targetId)!=null,S=j.view.applyChanges(x,F.isPrimaryClient,I,V);return Yp(F,j.targetId,S.ba),S.snapshot}(t,m,w,k);const s=await Hp(t.localStore,e,!0),o=new bR(e,s.Es),a=o.ga(s.documents),c=fo.createSynthesizedTargetChangeForCurrentChange(n,i&&t.onlineState!=="Offline",r),d=o.applyChanges(a,t.isPrimaryClient,c);Yp(t,n,d.ba);const h=new vR(e,n,o);return t.xa.set(e,h),t.Oa.has(n)?t.Oa.get(n).push(e):t.Oa.set(n,[e]),d.snapshot}async function SR(t,e,n){const i=Ue(t),r=i.xa.get(e),s=i.Oa.get(r.targetId);if(s.length>1)return i.Oa.set(r.targetId,s.filter(o=>!ll(o,e))),void i.xa.delete(e);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(r.targetId),i.sharedClientState.isActiveQueryTarget(r.targetId)||await fh(i.localStore,r.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(r.targetId),n&&yu(i.remoteStore,r.targetId),gh(i,r.targetId)}).catch(Qr)):(gh(i,r.targetId),await fh(i.localStore,r.targetId,!0))}async function CR(t,e){const n=Ue(t),i=n.xa.get(e),r=n.Oa.get(i.targetId);n.isPrimaryClient&&r.length===1&&(n.sharedClientState.removeLocalQueryTarget(i.targetId),yu(n.remoteStore,i.targetId))}async function IR(t,e,n){const i=DR(t);try{const r=await function(o,a){const c=Ue(o),d=Tt.now(),h=a.reduce((k,A)=>k.add(A.key),ze());let m,w;return c.persistence.runTransaction("Locally write mutations","readwrite",k=>{let A=Kn(),F=ze();return c.hs.getEntries(k,h).next(j=>{A=j,A.forEach((U,C)=>{C.isValidDocument()||(F=F.add(U))})}).next(()=>c.localDocuments.getOverlayedDocuments(k,A)).next(j=>{m=j;const U=[];for(const C of a){const x=$k(C,m.get(C.key).overlayedDocument);x!=null&&U.push(new or(C.key,x,v_(x.value.mapValue),kn.exists(!0)))}
1709return c.mutationQueue.addMutationBatch(k,d,U,a)}).next(j=>{w=j;const U=j.applyToLocalDocumentSet(m,F);return c.documentOverlayCache.saveOverlays(k,j.batchId,U)})}).then(()=>({batchId:w.batchId,changes:M_(m)}))}(i.localStore,e);i.sharedClientState.addPendingMutation(r.batchId),function(o,a,c){let d=o.qa[o.currentUser.toKey()];d||(d=new gt(We)),d=d.insert(a,c),o.qa[o.currentUser.toKey()]=d}(i,r.batchId,n),await go(i,r.changes),await gl(i.remoteStore)}catch(r){const s=wu(r,"Failed to persist write");n.reject(s)}}async function db(t,e){const n=Ue(t);try{const i=await F1(n.localStore,e);e.targetChanges.forEach((r,s)=>{const o=n.La.get(s);o&&(et(r.addedDocuments.size+r.modifiedDocuments.size+r.removedDocuments.size<=1),r.addedDocuments.size>0?o.Fa=!0:r.modifiedDocuments.size>0?et(o.Fa):r.removedDocuments.size>0&&(et(o.Fa),o.Fa=!1))}),await go(n,i,e)}catch(i){await Qr(i)}}function Xp(t,e,n){const i=Ue(t);if(i.isPrimaryClient&&n===0||!i.isPrimaryClient&&n===1){const r=[];i.xa.forEach((s,o)=>{const a=o.view.ea(e);a.snapshot&&r.push(a.snapshot)}),function(o,a){const c=Ue(o);c.onlineState=a;let d=!1;c.queries.forEach((h,m)=>{for(const w of m.J_)w.ea(a)&&(d=!0)}),d&&Eu(c)}(i.eventManager,e),r.length&&i.Ma.R_(r),i.onlineState=e,i.isPrimaryClient&&i.sharedClientState.setOnlineState(e)}}async function PR(t,e,n){const i=Ue(t);i.sharedClientState.updateQueryState(e,"rejected",n);const r=i.La.get(e),s=r&&r.key;if(s){let o=new gt(De.comparator);o=o.insert(s,$t.newNoDocument(s,Fe.min()));const a=ze().add(s),c=new dl(Fe.min(),new Map,new gt(We),o,a);await db(i,c),i.Ba=i.Ba.remove(s),i.La.delete(e),Tu(i)}else await fh(i.localStore,e,!1).then(()=>gh(i,e,n)).catch(Qr)}async function kR(t,e){const n=Ue(t),i=e.batch.batchId;try{const r=await B1(n.localStore,e);pb(n,i,null),fb(n,i),n.sharedClientState.updateMutationState(i,"acknowledged"),await go(n,r)}catch(r){await Qr(r)}}async function RR(t,e,n){const i=Ue(t);try{const r=await function(o,a){const c=Ue(o);return c.persistence.runTransaction("Reject batch","readwrite-primary",d=>{let h;return c.mutationQueue.lookupMutationBatch(d,a).next(m=>
1709(et(m!==null),h=m.keys(),c.mutationQueue.removeMutationBatch(d,m))).next(()=>c.mutationQueue.performConsistencyCheck(d)).next(()=>c.documentOverlayCache.removeOverlaysForBatchId(d,h,a)).next(()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(d,h)).next(()=>c.localDocuments.getDocuments(d,h))})}(i.localStore,e);pb(i,e,n),fb(i,e),i.sharedClientState.updateMutationState(e,"rejected",n),await go(i,r)}catch(r){await Qr(r)}}function fb(t,e){(t.Qa.get(e)||[]).forEach(n=>{n.resolve()}),t.Qa.delete(e)}function pb(t,e,n){const i=Ue(t);let r=i.qa[i.currentUser.toKey()];if(r){const s=r.get(e);s&&(n?s.reject(n):s.resolve(),r=r.remove(e)),i.qa[i.currentUser.toKey()]=r}}function gh(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const i of t.Oa.get(e))t.xa.delete(i),n&&t.Ma.Wa(i,n);t.Oa.delete(e),t.isPrimaryClient&&t.ka.yr(e).forEach(i=>{t.ka.containsKey(i)||gb(t,i)})}function gb(t,e){t.Na.delete(e.path.canonicalString());const n=t.Ba.get(e);n!==null&&(yu(t.remoteStore,n),t.Ba=t.Ba.remove(e),t.La.delete(n),Tu(t))}function Yp(t,e,n){for(const i of n)i instanceof cb?(t.ka.addReference(i.key,e),MR(t,i)):i instanceof hb?(Re("SyncEngine","Document no longer in limbo: "+i.key),t.ka.removeReference(i.key,e),t.ka.containsKey(i.key)||gb(t,i.key)):Be()}function MR(t,e){const n=e.key,i=n.path.canonicalString();t.Ba.get(n)||t.Na.has(i)||(Re("SyncEngine","New document in limbo: "+n),t.Na.add(i),Tu(t))}function Tu(t){for(;t.Na.size>0&&t.Ba.size<t.maxConcurrentLimboResolutions;){const e=t.Na.values().next().value;t.Na.delete(e);const n=new De(ht.fromString(e)),i=t.Ka.next();t.La.set(i,new xR(n)),t.Ba=t.Ba.insert(n,i),ib(t.remoteStore,new mi(Pn(C_(n.path)),i,"TargetPurposeLimboResolution",sl.oe))}}async function go(t,e,n){const i=Ue(t),r=[],s=[],o=[];i.xa.isEmpty()||(i.xa.forEach((a,c)=>{o.push(i.Ua(c,e,n).then(d=>{var h;if((d||n)&&i.isPrimaryClient){const m=d?!d.fromCache:(h=n==null?void 0:n.targetChanges.get(c.targetId))===null||h===void 0?void 0:h.current;i.sharedClientState.updateQueryState(c.targetId,m?"current":"not-current")}if(d){r.push(d);const m=mu.zi(c.targetId,d);s.push(m)}}))}),await Promise.all(o),i.Ma.R_(r),await async function(c,d){const h=Ue(c);try{await h.persistence.runTransaction("notifyLocalViewChanges","readwrite",m=>Ee.forEach(d,w=>Ee.forEach(w.Wi,k=>h.persistence.referenceDelegate.addReference(m,w.targetId,k)).next(()=>Ee.forEach(w.Gi,k=>h.persistence.referenceDelegate.removeReference(m,w.targetId,k)))))}catch(m){if(!Jr(m))throw m;Re("LocalStore","Failed to update sequence numbers: "+m)}for(const m of d){const w=m.targetId;if(!m.fromCache){const k=h.us.get(w),A=k.snapshotVersion,F=k.withLastLimboFreeSnapshotVersion(A);h.us=h.us.insert(w,F)}}}(i.localStore,s))}async function OR(t,e){const n=Ue(t);if(!n.currentUser.isEqual(e)){Re("SyncEngine","User change. New user:",e.toKey());const i=await Z_(n.localStore,e);
1709n.currentUser=e,function(s,o){s.Qa.forEach(a=>{a.forEach(c=>{c.reject(new Me(Ae.CANCELLED,o))})}),s.Qa.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,i.removedBatchIds,i.addedBatchIds),await go(n,i.Ts)}}function LR(t,e){const n=Ue(t),i=n.La.get(e);if(i&&i.Fa)return ze().add(i.key);{let r=ze();const s=n.Oa.get(e);if(!s)return r;for(const o of s){const a=n.xa.get(o);r=r.unionWith(a.view.fa)}return r}}function mb(t){const e=Ue(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=db.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=LR.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=PR.bind(null,e),e.Ma.R_=mR.bind(null,e.eventManager),e.Ma.Wa=yR.bind(null,e.eventManager),e}function DR(t){const e=Ue(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=kR.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=RR.bind(null,e),e}class Fa{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=fl(e.databaseInfo.databaseId),this.sharedClientState=this.za(e),this.persistence=this.ja(e),await this.persistence.start(),this.localStore=this.Ha(e),this.gcScheduler=this.Ja(e,this.localStore),this.indexBackfillerScheduler=this.Ya(e,this.localStore)}Ja(e,n){return null}Ya(e,n){return null}Ha(e){return j1(this.persistence,new N1,e.initialUser,this.serializer)}ja(e){return new J_(gu.ei,this.serializer)}za(e){return new W1}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}Fa.provider={build:()=>new Fa};class NR extends Fa{constructor(e){super(),this.cacheSizeBytes=e}Ja(e,n){et(this.persistence.referenceDelegate instanceof ja);const i=this.persistence.referenceDelegate.garbageCollector;return new x1(i,e.asyncQueue,n)}ja(e){const n=this.cacheSizeBytes!==void 0?Qt.withCacheSize(this.cacheSizeBytes):Qt.DEFAULT;return new J_(i=>ja.ei(i,n),this.serializer)}}class mh{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=i=>Xp(this.syncEngine,i,1),this.remoteStore.remoteSyncer.handleCredentialChange=OR.bind(null,this.syncEngine),await uR(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new fR}()}createDatastore(e){const n=fl(e.databaseInfo.databaseId),i=function(s){return new X1(s)}(e.databaseInfo);return function(s,o,a,c){return new J1(s,o,a,c)}(e.authCredentials,e.appCheckCredentials,i,n)}createRemoteStore(e){return function(i,r,s,o,a){return new eR(i,r,s,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>Xp(this.syncEngine,n,0),function(){return $p.p()?new $p:new G1}())}createSyncEngine(e,n){return function(r,s,o,a,c,d,h){const m=new wR(r,s,o,a,c,d);return h&&(m.$a=!0),m}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await async function(r){const s=Ue(r);Re("RemoteStore","RemoteStore shutting down."),s.k_.add(5),await po(s),s.Q_.shutdown(),s.K_.set("Unknown")}(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}mh.provider={build:()=>new mh};/**
1710 * @license
1711 * Copyright 2020 Google LLC
1712 *
1713 * Licensed under the Apache License, Version 2.0 (the "License");
1714 * you may not use this file except in compliance with the License.
1715 * You may obtain a copy of the License at
1716 *
1717 *   http://www.apache.org/licenses/LICENSE-2.0
1718 *
1719 * Unless required by applicable law or agreed to in writing, software
1720 * distributed under the License is distributed on an "AS IS" BASIS,
1721 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1722 * See the License for the specific language governing permissions and
1723 * limitations under the License.
1724 *//**
1725 * @license
1726 * Copyright 2017 Google LLC
1727 *
1728 * Licensed under the Apache License, Version 2.0 (the "License");
1729 * you may not use this file except in compliance with the License.
1730 * You may obtain a copy of the License at
1731 *
1732 *   http://www.apache.org/licenses/LICENSE-2.0
1733 *
1734 * Unless required by applicable law or agreed to in writing, software
1735 * distributed under the License is distributed on an "AS IS" BASIS,
1736 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1737 * See the License for the specific language governing permissions and
1738 * limitations under the License.
1739 */class VR{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Xa(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Xa(this.observer.error,e):qn("Uncaught Error in snapshot listener:",e.toString()))}eu(){this.muted=!0}Xa(e,n){setTimeout(()=>{this.muted||e(n)},0)}}/**
1740 * @license
1741 * Copyright 2017 Google LLC
1742 *
1743 * Licensed under the Apache License, Version 2.0 (the "License");
1744 * you may not use this file except in compliance with the License.
1745 * You may obtain a copy of the License at
1746 *
1747 *   http://www.apache.org/licenses/LICENSE-2.0
1748 *
1749 * Unless required by applicable law or agreed to in writing, software
1750 * distributed under the License is distributed on an "AS IS" BASIS,
1751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1752 * See the License for the specific language governing permissions and
1753 * limitations under the License.
1754 */class jR{constructor(e,n,i,r,s){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=i,this.databaseInfo=r,this.user=Ft.UNAUTHENTICATED,this.clientId=y_.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=s,this.authCredentials.start(i,async o=>{Re("FirestoreClient","Received user=",o.uid),await this.authCredentialListener(o),this.user=o}),this.appCheckCredentials.start(i,o=>(Re("FirestoreClient","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 wi;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 i=wu(n,"Failed to shutdown persistence");e.reject(i)}}),e.promise}}async function cc(t,e){t.asyncQueue.verifyOperationInProgress(),Re("FirestoreClient","Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let i=n.initialUser;t.setCredentialChangeListener(async r=>{i.isEqual(r)||(await Z_(e.localStore,r),i=r)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function Qp(t,e){t.asyncQueue.verifyOperationInProgress();const n=await BR(t);Re("FirestoreClient","Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener(i=>Wp(e.remoteStore,i)),t.setAppCheckTokenChangeListener((i,r)=>Wp(e.remoteStore,r)),t._onlineComponents=e}async function BR(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){Re("FirestoreClient","Using user provided OfflineComponentProvider");try{await cc(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!function(r){return r.name==="FirebaseError"?r.code===Ae.FAILED_PRECONDITION||r.code===Ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&r instanceof DOMException)||r.code===22||r.code===20||r.code===11}(n))throw n;jr("Error using user provided cache. Falling back to memory cache: "+n),await cc(t,new Fa)}}else Re("FirestoreClient","Using default OfflineComponentProvider"),await cc(t,new NR(void 0));return t._offlineComponents}async function yb(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(Re("FirestoreClient","Using user provided OnlineComponentProvider"),await Qp(t,t._uninitializedComponentsProvider._online)):(Re("FirestoreClient","Using default OnlineComponentProvider"),await Qp(t,new mh))),t._onlineComponents}
1754function FR(t){return yb(t).then(e=>e.syncEngine)}async function UR(t){const e=await yb(t),n=e.eventManager;return n.onListen=ER.bind(null,e.syncEngine),n.onUnlisten=SR.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=TR.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=CR.bind(null,e.syncEngine),n}function HR(t,e,n={}){const i=new wi;return t.asyncQueue.enqueueAndForget(async()=>function(s,o,a,c,d){const h=new VR({next:w=>{h.eu(),o.enqueueAndForget(()=>gR(s,m)),w.fromCache&&c.source==="server"?d.reject(new Me(Ae.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.)')):d.resolve(w)},error:w=>d.reject(w)}),m=new _R(a,h,{includeMetadataChanges:!0,ua:!0});return pR(s,m)}(await UR(t),t.asyncQueue,e,n,i)),i.promise}/**
1755 * @license
1756 * Copyright 2023 Google LLC
1757 *
1758 * Licensed under the Apache License, Version 2.0 (the "License");
1759 * you may not use this file except in compliance with the License.
1760 * You may obtain a copy of the License at
1761 *
1762 *   http://www.apache.org/licenses/LICENSE-2.0
1763 *
1764 * Unless required by applicable law or agreed to in writing, software
1765 * distributed under the License is distributed on an "AS IS" BASIS,
1766 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1767 * See the License for the specific language governing permissions and
1768 * limitations under the License.
1769 */function _b(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/**
1770 * @license
1771 * Copyright 2020 Google LLC
1772 *
1773 * Licensed under the Apache License, Version 2.0 (the "License");
1774 * you may not use this file except in compliance with the License.
1775 * You may obtain a copy of the License at
1776 *
1777 *   http://www.apache.org/licenses/LICENSE-2.0
1778 *
1779 * Unless required by applicable law or agreed to in writing, software
1780 * distributed under the License is distributed on an "AS IS" BASIS,
1781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1782 * See the License for the specific language governing permissions and
1783 * limitations under the License.
1784 */const Jp=new Map;/**
1785 * @license
1786 * Copyright 2017 Google LLC
1787 *
1788 * Licensed under the Apache License, Version 2.0 (the "License");
1789 * you may not use this file except in compliance with the License.
1790 * You may obtain a copy of the License at
1791 *
1792 *   http://www.apache.org/licenses/LICENSE-2.0
1793 *
1794 * Unless required by applicable law or agreed to in writing, software
1795 * distributed under the License is distributed on an "AS IS" BASIS,
1796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1797 * See the License for the specific language governing permissions and
1798 * limitations under the License.
1799 */function bb(t,e,n){if(!n)throw new Me(Ae.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function zR(t,e,n,i){if(e===!0&&i===!0)throw new Me(Ae.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function Zp(t){if(!De.isDocumentKey(t))throw new Me(Ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function eg(t){if(De.isDocumentKey(t))throw new Me(Ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function ml(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(i){return i.constructor?i.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":Be()}function $r(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Me(Ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=ml(t);throw new Me(Ae.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/**
1800 * @license
1801 * Copyright 2020 Google LLC
1802 *
1803 * Licensed under the Apache License, Version 2.0 (the "License");
1804 * you may not use this file except in compliance with the License.
1805 * You may obtain a copy of the License at
1806 *
1807 *   http://www.apache.org/licenses/LICENSE-2.0
1808 *
1809 * Unless required by applicable law or agreed to in writing, software
1810 * distributed under the License is distributed on an "AS IS" BASIS,
1811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1812 * See the License for the specific language governing permissions and
1813 * limitations under the License.
1814 */class tg{constructor(e){var n,i;if(e.host===void 0){if(e.ssl!==void 0)throw new Me(Ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new Me(Ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}zR("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=_b((i=e.experimentalLongPollingOptions)!==null&&i!==void 0?i:{}),function(s){if(s.timeoutSeconds!==void 0){if(isNaN(s.timeoutSeconds))throw new Me(Ae.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (must not be NaN)`);if(s.timeoutSeconds<5)throw new Me(Ae.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (minimum allowed value is 5)`);if(s.timeoutSeconds>30)throw new Me(Ae.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(i,r){return i.timeoutSeconds===r.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class yl{constructor(e,n,i,r){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=i,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new tg({}),this._settingsFrozen=!1,this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Me(Ae.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 Me(Ae.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 tg(e),e.credentials!==void 0&&(this._authCredentials=function(i){if(!i)return new QP;switch(i.type){case"firstParty":return new tk(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new Me(Ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_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 i=Jp.get(n);i&&(Re("ComponentProvider","Removing Datastore"),Jp.delete(n),i.terminate())}(this),Promise.resolve()}}function $R(t,e,n,i={}){var r;const s=(t=$r(t,yl))._getSettings(),o=`${e}:${n}`;if(s.host!=="firestore.googleapis.com"&&s.host!==o&&jr("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},s),{host:o,ssl:!1})),i.mockUserToken){let a,c;if(typeof i.mockUserToken=="string")a=i.mockUserToken,c=Ft.MOCK_USER;else{a=kI(i.mockUserToken,(r=t._app)===null||r===void 0?void 0:r.options.projectId);const d=i.mockUserToken.sub||i.mockUserToken.user_id;if(!d)throw new Me(Ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");c=new Ft(d)}t._authCredentials=new JP(new m_(a,c))}}/**
1815 * @license
1816 * Copyright 2020 Google LLC
1817 *
1818 * Licensed under the Apache License, Version 2.0 (the "License");
1819 * you may not use this file except in compliance with the License.
1820 * You may obtain a copy of the License at
1821 *
1822 *   http://www.apache.org/licenses/LICENSE-2.0
1823 *
1824 * Unless required by applicable law or agreed to in writing, software
1825 * distributed under the License is distributed on an "AS IS" BASIS,
1826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1827 * See the License for the specific language governing permissions and
1828 * limitations under the License.
1829 */class Mi{constructor(e,n,i){this.converter=n,this._query=i,this.type="query",this.firestore=e}withConverter(e){return new Mi(this.firestore,e,this._query)}}class rn{constructor(e,n,i){this.converter=n,this._key=i,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 Ei(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new rn(this.firestore,e,this._key)}}class Ei extends Mi{constructor(e,n,i){super(e,n,C_(i)),this._path=i,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 rn(this.firestore,null,new De(e))}withConverter(e){return new Ei(this.firestore,e,this._path)}}function WM(t,e,...n){if(t=Vr(t),bb("collection","path",e),t instanceof yl){const i=ht.fromString(e,...n);return eg(i),new Ei(t,null,i)}{if(!(t instanceof rn||t instanceof Ei))throw new Me(Ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(ht.fromString(e,...n));return eg(i),new Ei(t.firestore,null,i)}}function WR(t,e,...n){if(t=Vr(t),arguments.length===1&&(e=y_.newId()),bb("doc","path",e),t instanceof yl){const i=ht.fromString(e,...n);return Zp(i),new rn(t,null,new De(i))}{if(!(t instanceof rn||t instanceof Ei))throw new Me(Ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(ht.fromString(e,...n));return Zp(i),new rn(t.firestore,t instanceof Ei?t.converter:null,new De(i))}}/**
1830 * @license
1831 * Copyright 2020 Google LLC
1832 *
1833 * Licensed under the Apache License, Version 2.0 (the "License");
1834 * you may not use this file except in compliance with the License.
1835 * You may obtain a copy of the License at
1836 *
1837 *   http://www.apache.org/licenses/LICENSE-2.0
1838 *
1839 * Unless required by applicable law or agreed to in writing, software
1840 * distributed under the License is distributed on an "AS IS" BASIS,
1841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1842 * See the License for the specific language governing permissions and
1843 * limitations under the License.
1844 */class ng{constructor(e=Promise.resolve()){this.Iu=[],this.du=!1,this.Eu=[],this.Au=null,this.Ru=!1,this.Vu=!1,this.mu=[],this.r_=new tb(this,"async_queue_retry"),this.fu=()=>{const i=lc();i&&Re("AsyncQueue","Visibility state changed to "+i.visibilityState),this.r_.Jo()},this.gu=e;const n=lc();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.fu)}get isShuttingDown(){return this.du}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.pu(),this.yu(e)}enterRestrictedMode(e){if(!this.du){this.du=!0,this.Vu=e||!1;const n=lc();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.fu)}}enqueue(e){if(this.pu(),this.du)return new Promise(()=>{});const n=new wi;return this.yu(()=>this.du&&this.Vu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Iu.push(e),this.wu()))}async wu(){if(this.Iu.length!==0){try{await this.Iu[0](),this.Iu.shift(),this.r_.reset()}catch(e){if(!Jr(e))throw e;Re("AsyncQueue","Operation failed with retryable error: "+e)}this.Iu.length>0&&this.r_.jo(()=>this.wu())}}yu(e){const n=this.gu.then(()=>(this.Ru=!0,e().catch(i=>{this.Au=i,this.Ru=!1;const r=function(o){let a=o.message||"";return o.stack&&(a=o.stack.includes(o.message)?o.stack:o.message+`
1845`+o.stack),a}(i);throw qn("INTERNAL UNHANDLED ERROR: ",r),i}).then(i=>(this.Ru=!1,i))));return this.gu=n,n}enqueueAfterDelay(e,n,i){this.pu(),this.mu.indexOf(e)>-1&&(n=0);const r=xu.createAndSchedule(this,e,n,i,s=>this.Su(s));return this.Eu.push(r),r}pu(){this.Au&&Be()}verifyOperationInProgress(){}async bu(){let e;do e=this.gu,await e;while(e!==this.gu)}Du(e){for(const n of this.Eu)if(n.timerId===e)return!0;return!1}vu(e){return this.bu().then(()=>{this.Eu.sort((n,i)=>n.targetTimeMs-i.targetTimeMs);for(const n of this.Eu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.bu()})}Cu(e){this.mu.push(e)}Su(e){const n=this.Eu.indexOf(e);this.Eu.splice(n,1)}}class _l extends yl{constructor(e,n,i,r){super(e,n,i,r),this.type="firestore",this._queue=new ng,this._persistenceKey=(r==null?void 0:r.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new ng(e),this._firestoreClient=void 0,await e}}}function GR(t,e){const n=typeof t=="object"?t:BP(),i=typeof t=="string"?t:"(default)",r=DP(n,"firestore").getImmediate({identifier:i});if(!r._initialized){const s=II("firestore");s&&$R(r,...s)}return r}function vb(t){if(t._terminated)throw new Me(Ae.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||qR(t),t._firestoreClient}function qR(t){var e,n,i;const r=t._freezeSettings(),s=function(a,c,d,h){return new mk(a,c,d,h.host,h.ssl,h.experimentalForceLongPolling,h.experimentalAutoDetectLongPolling,_b(h.experimentalLongPollingOptions),h.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,r);t._componentsProvider||!((n=r.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((i=r.localCache)===null||i===void 0)&&i._onlineComponentProvider)&&(t._componentsProvider={_offline:r.localCache._offlineComponentProvider,_online:r.localCache._onlineComponentProvider}),t._firestoreClient=new jR(t._authCredentials,t._appCheckCredentials,t._queue,s,t._componentsProvider&&function(a){const c=a==null?void 0:a._online.build();return{_offline:a==null?void 0:a._offline.build(c),_online:c}}(t._componentsProvider))}/**
1846 * @license
1847 * Copyright 2020 Google LLC
1848 *
1849 * Licensed under the Apache License, Version 2.0 (the "License");
1850 * you may not use this file except in compliance with the License.
1851 * You may obtain a copy of the License at
1852 *
1853 *   http://www.apache.org/licenses/LICENSE-2.0
1854 *
1855 * Unless required by applicable law or agreed to in writing, software
1856 * distributed under the License is distributed on an "AS IS" BASIS,
1857 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1858 * See the License for the specific language governing permissions and
1859 * limitations under the License.
1860 */class Wr{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Wr(Lt.fromBase64String(e))}catch(n){throw new Me(Ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new Wr(Lt.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)}}/**
1861 * @license
1862 * Copyright 2020 Google LLC
1863 *
1864 * Licensed under the Apache License, Version 2.0 (the "License");
1865 * you may not use this file except in compliance with the License.
1866 * You may obtain a copy of the License at
1867 *
1868 *   http://www.apache.org/licenses/LICENSE-2.0
1869 *
1870 * Unless required by applicable law or agreed to in writing, software
1871 * distributed under the License is distributed on an "AS IS" BASIS,
1872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1873 * See the License for the specific language governing permissions and
1874 * limitations under the License.
1875 */class Au{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new Me(Ae.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Rt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/**
1876 * @license
1877 * Copyright 2020 Google LLC
1878 *
1879 * Licensed under the Apache License, Version 2.0 (the "License");
1880 * you may not use this file except in compliance with the License.
1881 * You may obtain a copy of the License at
1882 *
1883 *   http://www.apache.org/licenses/LICENSE-2.0
1884 *
1885 * Unless required by applicable law or agreed to in writing, software
1886 * distributed under the License is distributed on an "AS IS" BASIS,
1887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1888 * See the License for the specific language governing permissions and
1889 * limitations under the License.
1890 */class xb{constructor(e){this._methodName=e}}/**
1891 * @license
1892 * Copyright 2017 Google LLC
1893 *
1894 * Licensed under the Apache License, Version 2.0 (the "License");
1895 * you may not use this file except in compliance with the License.
1896 * You may obtain a copy of the License at
1897 *
1898 *   http://www.apache.org/licenses/LICENSE-2.0
1899 *
1900 * Unless required by applicable law or agreed to in writing, software
1901 * distributed under the License is distributed on an "AS IS" BASIS,
1902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1903 * See the License for the specific language governing permissions and
1904 * limitations under the License.
1905 */class Su{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new Me(Ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new Me(Ae.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}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return We(this._lat,e._lat)||We(this._long,e._long)}}/**
1906 * @license
1907 * Copyright 2024 Google LLC
1908 *
1909 * Licensed under the Apache License, Version 2.0 (the "License");
1910 * you may not use this file except in compliance with the License.
1911 * You may obtain a copy of the License at
1912 *
1913 *   http://www.apache.org/licenses/LICENSE-2.0
1914 *
1915 * Unless required by applicable law or agreed to in writing, software
1916 * distributed under the License is distributed on an "AS IS" BASIS,
1917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1918 * See the License for the specific language governing permissions and
1919 * limitations under the License.
1920 */class Cu{constructor(e){this._values=(e||[]).map(n=>n)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(i,r){if(i.length!==r.length)return!1;for(let s=0;s<i.length;++s)if(i[s]!==r[s])return!1;return!0}(this._values,e._values)}}/**
1921 * @license
1922 * Copyright 2017 Google LLC
1923 *
1924 * Licensed under the Apache License, Version 2.0 (the "License");
1925 * you may not use this file except in compliance with the License.
1926 * You may obtain a copy of the License at
1927 *
1928 *   http://www.apache.org/licenses/LICENSE-2.0
1929 *
1930 * Unless required by applicable law or agreed to in writing, software
1931 * distributed under the License is distributed on an "AS IS" BASIS,
1932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1933 * See the License for the specific language governing permissions and
1934 * limitations under the License.
1935 */const KR=/^__.*__$/;class XR{constructor(e,n,i){this.data=e,this.fieldMask=n,this.fieldTransforms=i}toMutation(e,n){return this.fieldMask!==null?new or(e,this.data,this.fieldMask,n,this.fieldTransforms):new uo(e,this.data,n,this.fieldTransforms)}}function wb(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Be()}}class Iu{constructor(e,n,i,r,s,o){this.settings=e,this.databaseId=n,this.serializer=i,this.ignoreUndefinedProperties=r,s===void 0&&this.Fu(),this.fieldTransforms=s||[],this.fieldMask=o||[]}get path(){return this.settings.path}get Mu(){return this.settings.Mu}xu(e){return new Iu(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Ou(e){var n;const i=(n=this.path)===null||n===void 0?void 0:n.child(e),r=this.xu({path:i,Nu:!1});return r.Bu(e),r}Lu(e){var n;const i=(n=this.path)===null||n===void 0?void 0:n.child(e),r=this.xu({path:i,Nu:!1});return r.Fu(),r}ku(e){return this.xu({path:void 0,Nu:!0})}qu(e){return Ua(e,this.settings.methodName,this.settings.Qu||!1,this.path,this.settings.Ku)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}Fu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Bu(this.path.get(e))}Bu(e){if(e.length===0)throw this.qu("Document fields must not be empty");if(wb(this.Mu)&&KR.test(e))throw this.qu('Document fields cannot begin and end with "__"')}}class YR{constructor(e,n,i){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=i||fl(e)}$u(e,n,i,r=!1){return new Iu({Mu:e,methodName:n,Ku:i,path:Rt.emptyPath(),Nu:!1,Qu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Pu(t){const e=t._freezeSettings(),n=fl(t._databaseId);return new YR(t._databaseId,!!e.ignoreUndefinedProperties,n)}function Eb(t,e,n,i,r,s={}){const o=t.$u(s.merge||s.mergeFields?2:0,e,n,r);Sb("Data must be an object, but it was:",o,i);const a=Tb(i,o);let c,d;if(s.merge)c=new yn(o.fieldMask),d=o.fieldTransforms;else if(s.mergeFields){const h=[];for(const m of s.mergeFields){const w=JR(e,m,n);if(!o.contains(w))throw new Me(Ae.INVALID_ARGUMENT,`Field '${w}' is specified in your field mask but missing from your input data.`);eM(h,w)||h.push(w)}c=new yn(h),d=o.fieldTransforms.filter(m=>c.covers(m.field))}else c=null,d=o.fieldTransforms;return new XR(new cn(a),c,d)}function QR(t,e,n,i=!1){return ku(n,t.$u(i?4:3,e))}function ku(t,e){if(Ab(t=Vr(t)))return Sb("Unsupported field value:",e,t),Tb(t,e);if(t instanceof xb)return function(i,r){if(!wb(r.Mu))throw r.qu(`${i._methodName}() can only be used with update() and set()`);if(!r.path)throw r.qu(`${i._methodName}() is not currently supported inside arrays`);const s=i._toFieldTransform(r);s&&r.fieldTransforms.push(s)}(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.Nu&&e.Mu!==4)throw e.qu("Nested arrays are not supported");return function(i,r){const s=[];let o=0;for(const a of i){let c=ku(a,r.ku(o));c==null&&(c={nullValue:"NULL_VALUE"}),s.push(c),o++}return{arrayValue:{values:s}}}(t,e)}return function(i,r){if((i=Vr(i))===null)return{nullValue:"NULL_VALUE"};if(typeof i=="number")return jk(r.serializer,i);if(typeof i=="boolean")return{booleanValue:i};if(typeof i=="string")return{stringValue:i};if(i instanceof Date){const s=Tt.fromDate(i);return{timestampValue:Va(r.serializer,s)}}if(i instanceof Tt){const s=new Tt(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:Va(r.serializer,s)}}if(i instanceof Su)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof Wr)return{bytesValue:W_(r.serializer,i._byteString)};if(i instanceof rn){const s=r.databaseId,o=i.firestore._databaseId;if(!o.isEqual(s))throw r.qu(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${s.projectId}/${s.database}`);return{referenceValue:fu(i.firestore._databaseId||r.databaseId,i._key.path)}}if(i instanceof Cu)return function(o,a){return{mapValue:{fields:{__type__:{stringValue:"__vector__"},value:{arrayValue:{values:o.toArray().map(c=>{if(typeof c!="number")throw a.qu("VectorValues must only contain numeric values.");return hu(a.serializer,c)})}}}}}}(i,r);throw r.qu(`Unsupported field value: ${ml(i)}`)}(t,e)}function Tb(t,e){const n={};return __(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):rr(t,(i,r)=>{const s=ku(r,e.Ou(i));s!=null&&(n[i]=s)}),{mapValue:{fields:n}}}function Ab(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Tt||t instanceof Su||t instanceof Wr||t instanceof rn||t instanceof xb||t instanceof Cu)}function Sb(t,e,n){if(!Ab(n)||!function(r){return typeof r=="object"&&r!==null&&(Object.getPrototypeOf(r)===Object.prototype||Ob
1935ject.getPrototypeOf(r)===null)}(n)){const i=ml(n);throw i==="an object"?e.qu(t+" a custom object"):e.qu(t+" "+i)}}function JR(t,e,n){if((e=Vr(e))instanceof Au)return e._internalPath;if(typeof e=="string")return Cb(t,e);throw Ua("Field path arguments must be of type string or ",t,!1,void 0,n)}const ZR=new RegExp("[~\\*/\\[\\]]");function Cb(t,e,n){if(e.search(ZR)>=0)throw Ua(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Au(...e.split("."))._internalPath}catch{throw Ua(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Ua(t,e,n,i,r){const s=i&&!i.isEmpty(),o=r!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(s||o)&&(c+=" (found",s&&(c+=` in field ${i}`),o&&(c+=` in document ${r}`),c+=")"),new Me(Ae.INVALID_ARGUMENT,a+t+c)}function eM(t,e){return t.some(n=>n.isEqual(e))}/**
1936 * @license
1937 * Copyright 2020 Google LLC
1938 *
1939 * Licensed under the Apache License, Version 2.0 (the "License");
1940 * you may not use this file except in compliance with the License.
1941 * You may obtain a copy of the License at
1942 *
1943 *   http://www.apache.org/licenses/LICENSE-2.0
1944 *
1945 * Unless required by applicable law or agreed to in writing, software
1946 * distributed under the License is distributed on an "AS IS" BASIS,
1947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1948 * See the License for the specific language governing permissions and
1949 * limitations under the License.
1950 */class Ib{constructor(e,n,i,r,s){this._firestore=e,this._userDataWriter=n,this._key=i,this._document=r,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new rn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new tM(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(Ru("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class tM extends Ib{data(){return super.data()}}function Ru(t,e){return typeof e=="string"?Cb(t,e):e instanceof Au?e._internalPath:e._delegate._internalPath}/**
1951 * @license
1952 * Copyright 2020 Google LLC
1953 *
1954 * Licensed under the Apache License, Version 2.0 (the "License");
1955 * you may not use this file except in compliance with the License.
1956 * You may obtain a copy of the License at
1957 *
1958 *   http://www.apache.org/licenses/LICENSE-2.0
1959 *
1960 * Unless required by applicable law or agreed to in writing, software
1961 * distributed under the License is distributed on an "AS IS" BASIS,
1962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1963 * See the License for the specific language governing permissions and
1964 * limitations under the License.
1965 */function nM(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new Me(Ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Mu{}class Ou extends Mu{}function GM(t,e,...n){let i=[];e instanceof Mu&&i.push(e),i=i.concat(n),function(s){const o=s.filter(c=>c instanceof Du).length,a=s.filter(c=>c instanceof Lu).length;if(o>1||o>0&&a>0)throw new Me(Ae.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(...)))`.")}(i);for(const r of i)t=r._apply(t);return t}class Lu extends Ou{constructor(e,n,i){super(),this._field=e,this._op=n,this._value=i,this.type="where"}static _create(e,n,i){return new Lu(e,n,i)}_apply(e){const n=this._parse(e);return Pb(e._query,n),new Mi(e.firestore,e.converter,lh(e._query,n))}_parse(e){const n=Pu(e.firestore);return function(s,o,a,c,d,h,m){let w;if(d.isKeyField()){if(h==="array-contains"||h==="array-contains-any")throw new Me(Ae.INVALID_ARGUMENT,`Invalid Query. You can't perform '${h}' queries on documentId().`);if(h==="in"||h==="not-in"){rg(m,h);const k=[];for(const A of m)k.push(ig(c,s,A));w={arrayValue:{values:k}}}else w=ig(c,s,m)}else h!=="in"&&h!=="not-in"&&h!=="array-contains-any"||rg(m,h),w=QR(a,o,m,h==="in"||h==="not-in");return vt.create(d,h,w)}(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}class Du extends Mu{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Du(e,n)}_parse(e){const n=this._queryConstraints.map(i=>i._parse(e)).filter(i=>i.getFilters().length>0);return n.length===1?n[0]:xn.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:(function(r,s){let o=r;const a=s.getFlattenedFilters();
1965for(const c of a)Pb(o,c),o=lh(o,c)}(e._query,n),new Mi(e.firestore,e.converter,lh(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class Nu extends Ou{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new Nu(e,n)}_apply(e){const n=function(r,s,o){if(r.startAt!==null)throw new Me(Ae.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(r.endAt!==null)throw new Me(Ae.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new Js(s,o)}(e._query,this._field,this._direction);return new Mi(e.firestore,e.converter,function(r,s){const o=r.explicitOrderBy.concat([s]);return new Zr(r.path,r.collectionGroup,o,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)}(e._query,n))}}function qM(t,e="asc"){const n=e,i=Ru("orderBy",t);return Nu._create(i,n)}class Vu extends Ou{constructor(e,n,i){super(),this.type=e,this._limit=n,this._limitType=i}static _create(e,n,i){return new Vu(e,n,i)}_apply(e){return new Mi(e.firestore,e.converter,La(e._query,this._limit,this._limitType))}}function KM(t){return Vu._create("limit",t,"F")}function ig(t,e,n){if(typeof(n=Vr(n))=="string"){if(n==="")throw new Me(Ae.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!I_(e)&&n.indexOf("/")!==-1)throw new Me(Ae.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const i=e.path.child(ht.fromString(n));if(!De.isDocumentKey(i))throw new Me(Ae.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${i}' is not because it has an odd number of segments (${i.length}).`);return Tp(t,new De(i))}if(n instanceof rn)return Tp(t,n._key);throw new Me(Ae.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${ml(n)}.`)}function rg(t,e){if(!Array.isArray(t)||t.length===0)throw new Me(Ae.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function Pb(t,e){const n=function(r,s){for(const o of r)for(const a of o.getFlattenedFilters())if(s.indexOf(a.op)>=0)return a.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 Me(Ae.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new Me(Ae.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class iM{convertValue(e,n="none"){switch(Ii(e)){case 0:return null;case 1:return e.booleanValue;case 2:return yt(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(Ci(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 Be()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const i={};return rr(e,(r,s)=>{i[r]=this.convertValue(s,n)}),i}convertVectorValue(e){var n,i,r;const s=(r=(i=(n=e.fields)===null||n===void 0?void 0:n.value.arrayValue)===null||i===void 0?void 0:i.values)===null||r===void 0?void 0:r.map(o=>yt(o.doubleValue));return new Cu(s)}convertGeoPoint(e){return new Su(yt(e.latitude),yt(e.longitude))}convertArray(e,n){return(e.values||[]).map(i=>this.convertValue(i,n))}convertServerTimestamp(e,n){switch(n){case"previous":const i=al(e);return i==null?null:this.convertValue(i,n);case"estimate":return this.convertTimestamp(Xs(e));default:return null}}convertTimestamp(e){const n=Si(e);return new Tt(n.seconds,n.nanos)}convertDocumentKey(e,n){const i=ht.fromString(e);et(Q_(i));const r=new Ys(i.get(1),i.get(3)),s=new De(i.popFirst(5));return r.isEqual(n)||qn(`Document ${s} 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.`),s}}/**
1966 * @license
1967 * Copyright 2020 Google LLC
1968 *
1969 * Licensed under the Apache License, Version 2.0 (the "License");
1970 * you may not use this file except in compliance with the License.
1971 * You may obtain a copy of the License at
1972 *
1973 *   http://www.apache.org/licenses/LICENSE-2.0
1974 *
1975 * Unless required by applicable law or agreed to in writing, software
1976 * distributed under the License is distributed on an "AS IS" BASIS,
1977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1978 * See the License for the specific language governing permissions and
1979 * limitations under the License.
1980 */function kb(t,e,n){let i;return i=t?t.toFirestore(e):e,i}/**
1981 * @license
1982 * Copyright 2020 Google LLC
1983 *
1984 * Licensed under the Apache License, Version 2.0 (the "License");
1985 * you may not use this file except in compliance with the License.
1986 * You may obtain a copy of the License at
1987 *
1988 *   http://www.apache.org/licenses/LICENSE-2.0
1989 *
1990 * Unless required by applicable law or agreed to in writing, software
1991 * distributed under the License is distributed on an "AS IS" BASIS,
1992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1993 * See the License for the specific language governing permissions and
1994 * limitations under the License.
1995 */class qo{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class rM extends Ib{constructor(e,n,i,r,s,o){super(e,n,i,r,o),this._firestore=e,this._firestoreImpl=e,this.metadata=s}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new la(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 i=this._document.data.field(Ru("DocumentSnapshot.get",e));if(i!==null)return this._userDataWriter.convertValue(i,n.serverTimestamps)}}}class la extends rM{data(e={}){return super.data(e)}}class sM{constructor(e,n,i,r){this._firestore=e,this._userDataWriter=n,this._snapshot=r,this.metadata=new qo(r.hasPendingWrites,r.fromCache),this.query=i}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(i=>{e.call(n,new la(this._firestore,this._userDataWriter,i.key,i,new qo(this._snapshot.mutatedKeys.has(i.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new Me(Ae.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,s){if(r._snapshot.oldDocs.isEmpty()){let o=0;return r._snapshot.docChanges.map(a=>{const c=new la(r._firestore,r._userDataWriter,a.doc.key,a.doc,new qo(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter);return a.doc,{type:"added",doc:c,oldIndex:-1,newIndex:o++}})}{let o=r._snapshot.oldDocs;return r._snapshot.docChanges.filter(a=>s||a.type!==3).map(a=>{const c=new la(r._firestore,r._userDataWriter,a.doc.key,a.doc,new qo(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter);let d=-1,h=-1;return a.type!==0&&(d=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),a.type!==1&&(o=o.add(a.doc),h=o.indexOf(a.doc.key)),{type:oM(a.type),doc:c,oldIndex:d,newIndex:h}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function oM(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Be()}}class aM extends iM{constructor(e){super(),this.firestore=e}convertBytes(e){return new Wr(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new rn(this.firestore,null,n)}}function XM(t){t=$r(t,Mi);const e=$r(t.firestore,_l),n=vb(e),i=new aM(e);return nM(t._query),HR(n,t._query).then(r=>new sM(e,i,t,r))}function YM(t,e,n){t=$r(t,rn);const i=$r(t.firestore,_l),r=kb(t.converter,e);return Rb(i,[Eb(Pu(i),"setDoc",t._key,r,t.converter!==null,n).toMutation(t._key,kn.none())])}function QM(t,e){const n=$r(t.firestore,_l),i=WR(t),r=kb(t.converter,e);return Rb(n,[Eb(Pu(t.firestore),"addDoc",i._key,r,t.converter!==null,{}).toMutation(i._key,kn.exists(!1))]).then(()=>i)}function Rb(t,e){return function(i,r){const s=new wi;return i.asyncQueue.enqueueAndForget(async()=>IR(await FR(i),r,s)),s.promise}(vb(t),e)}(function(e,n=!0){(function(r){Yr=r})(jP),Ra(new qs("firestore",(i,{instanceIdentifier:r,options:s})=>{const o=i.getProvider("app").getImmediate(),a=new _l(new ZP(i.getProvider("auth-internal")),new ik(i.getProvider("app-check-internal")),function(d,h){if(!Object.prototype.hasOwnProperty.apply(d.options,["projectId"]))throw new Me(Ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ys(d.options.projectId,h)}(o,r),o);return s=Object.assign({useFetchStreams:n},s),a._setSettings(s),a},"PUBLIC").setMultipleInstances(!0)),kr(_p,"4.7.6",e),kr(_p,"4.7.6","esm2017")})();const lM=St(()=>{const e=a_({apiKey:"AIzaSyCUqUokzqnw1kH0KD-4LM63c8TFuONujSY",authDomain:"macro-tracker-b0197.firebaseapp.com",projectId:"macro-tracker-b0197",storageBucket:"macro-tracker-b0197.firebasestorage.app",messagingSenderId:"345300203616",appId:"1:345300203616:web:8a669ad2bf83d4488e2b05"}),n=GR(e);return{provide:{firebaseApp:e,db:n}}}),cM=[lT,cT,uT,kA,RA,MA,OA,DA,BA,HA,zA,$A,ZA,tS,iS,gC,_C,_I,lM],hM=Yn({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,n=t.route,i={};for(const r in t.route)Object.defineProperty(i,r,{get:()=>e===t.renderKey?t.route[r]:n[r],enumerable:!0});return Xi(lo,zn(i)),()=>Ot(t.vnode,{ref:t.vnodeRef})}}),uM=Yn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:n,expose:i}){const r=ot(),s=nn(),o=Wt(lo,null);let a;i({pageRef:s});const c=Wt(Jm,null);let d;const h=r.deferHydration();if(r.isHydrating){const w=r.hooks.hookOnce("app:error",h);sn().beforeEach(w)}t.pageKey&&In(()=>t.pageKey,(w,k)=>{w!==k&&r.callHook("page:loading:start")});let m=!1;return()=>Ot(Py,{name:t.name,route:t.route,...e},{default:w=>{const k=fM(o,w.route,w.Component),A=o&&o.matched.length===w.route.matched.length;if(!w.Component){if(d&&!A)return d;h();return}if(d&&c&&!c.isCurrent(w.route))return d;if(k&&o&&(!c||c!=null&&c.isCurrent(o)))return A?d:null;const F=$c(w,t.pageKey);!r.isHydrating&&!pM(o,w.route,w.Component)&&a===F&&(r.callHook("page:loading:end"),m=!0),a=F;const j=!!(t.transition??w.route.meta.pageTransition??kc),U=j&&dM([t.transition,w.route.meta.pageTransition,kc,{onAfterLeave:()=>{r.callHook("page:transition:finish",w.Component)}}
1995].filter(Boolean)),C=t.keepalive??w.route.meta.keepalive??Lw;return d=ky(Dm,j&&U,bA(C,Ot(Bh,{suspensible:!0,onPending:()=>r.callHook("page:start",w.Component),onResolve:()=>{nr(()=>r.callHook("page:finish",w.Component).then(()=>{if(!m)return r.callHook("page:loading:end");m=!1}).finally(h))}},{default:()=>{const x=Ot(hM,{key:F||void 0,vnode:n.default?Ot(zt,void 0,n.default(w)):w.Component,route:w.route,renderKey:F||void 0,trackRootNodes:j,vnodeRef:s});return C&&(x.type.name=w.Component.type.name||w.Component.type.__name||"RouteProvider"),x}}))).default(),d}})}});function dM(t){const e=t.map(n=>({...n,onAfterLeave:n.onAfterLeave?Jh(n.onAfterLeave):void 0}));return Ja(...e)}function fM(t,e,n){if(!t)return!1;const i=e.matched.findIndex(r=>{var s;return((s=r.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!i||i===-1?!1:e.matched.slice(0,i).some((r,s)=>{var o,a,c;return((o=r.components)==null?void 0:o.default)!==((c=(a=t.matched[s])==null?void 0:a.components)==null?void 0:c.default)})||n&&$c({route:e,Component:n})!==$c({route:t,Component:n})}function pM(t,e,n){return t?e.matched.findIndex(r=>{var s;return((s=r.components)==null?void 0:s.default)===(n==null?void 0:n.type)})<e.matched.length-1:!1}const gM=Yn({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Ot(gi[t.name],t.layoutProps,e.slots)}}),mM=Yn({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(t,e){const n=ot(),i=Wt(lo),r=i===qh()?pA():i,s=Jt(()=>{let c=nt(t.name)??r.meta.layout??"default";return c&&!(c in gi)&&t.fallback&&(c=nt(t.fallback)),c}),o=nn();e.expose({layoutRef:o});const a=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",a);sn().beforeEach(c)}return()=>{const c=s.value&&s.value in gi,d=r.meta.layoutTransition??Ow;return ky(Dm,c&&d,{default:()=>Ot(Bh,{suspensible:!0,onResolve:()=>{nr(a)}},{default:()=>Ot(yM,{layoutProps:Im(e.attrs,{ref:o}),key:s.value||void 0,name:s.value,shouldProvide:!t.name,hasTransition:!!d},e.slots)})}).default()}}}),yM=Yn({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const n=t.name;return t.shouldProvide&&Xi(Jm,{isCurrent:i=>n===(i.meta.layout??"default")}),()=>{var i,r;return!n||typeof n=="string"&&!(n in gi)?(r=(i=e.slots).default)==null?void 0:r.call(i):Ot(gM,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}}),_M=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},bM={};function vM(t,e){const n=uM,i=mM;return ln(),Sn(i,null,{default:Mh(()=>[ft(n)]),_:1})}const xM=_M(bM,[["render",vM]]),wM={__name:"nuxt-error-page",props:{error:Object},setup(t){const n=t.error;n.stack&&n.stack.split(`
1996`).splice(1).map(m=>({text:m.replace("webpack:/","").replace(".vue",".js").trim(),internal:m.includes("node_modules")&&!m.includes(".cache")||m.includes("internal")||m.includes("new Promise")})).map(m=>`<span class="stack${m.internal?" internal":""}">${m.text}</span>`).join(`
1997`);const i=Number(n.statusCode||500),r=i===404,s=n.statusMessage??(r?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,h=r?pa(()=>Pe(()=>import("./BZg5CmVV.js"),__vite__mapDeps([11,4,12]),import.meta.url)):pa(()=>Pe(()=>import("./CrpXGUdp.js"),__vite__mapDeps([13,14]),import.meta.url));return(m,w)=>(ln(),Sn(nt(h),h0(Sm({statusCode:nt(i),statusMessage:nt(s),description:nt(o),stack:nt(a)})),null,16))}},EM={key:0},sg={__name:"nuxt-root",setup(t){const e=()=>null,n=ot(),i=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",i);sn().beforeEach(c)}const r=!1;Xi(lo,qh()),n.hooks.callHookWith(c=>c.map(d=>d()),"vue:setup");const s=Za(),o=!1;Jg((c,d,h)=>{if(n.hooks.callHook("vue:error",c,d,h).catch(m=>console.error("[nuxt] Error in `vue:error` hook",m)),eE(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>wr(c)),!1});const a=!1;return(c,d)=>(ln(),Sn(Bh,{onResolve:nt(i)},{default:Mh(()=>[nt(o)?(ln(),zv("div",EM)):nt(s)?(ln(),Sn(nt(wM),{key:1,error:nt(s)}
1997,null,8,["error"])):nt(a)?(ln(),Sn(nt(e),{key:2,context:nt(a)},null,8,["context"])):nt(r)?(ln(),Sn(lv(nt(r)),{key:3})):(ln(),Sn(nt(xM),{key:4}))]),_:1},8,["onResolve"]))}};let og;{let t;og=async function(){var o,a;if(t)return t;const i=!!(((o=window.__NUXT__)==null?void 0:o.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Sx(sg):Ax(sg),r=Bw({vueApp:i});async function s(c){await r.callHook("app:error",c),r.payload.error=r.payload.error||el(c)}i.config.errorHandler=s,r.hook("app:suspense:resolve",()=>{i.config.errorHandler===s&&(i.config.errorHandler=void 0)});try{await Hw(r,cM)}catch(c){s(c)}try{await r.hooks.callHook("app:created",i),await r.hooks.callHook("app:beforeMount",i),i.mount(Nw),await r.hooks.callHook("app:mounted",i),await nr()}catch(c){s(c)}return i},t=og().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{wh as $,Qg as A,In as B,Ke as C,nr as D,Ph as E,zt as F,Jt as G,Sn as H,Wt as I,VM as J,Ry as K,Dg as L,Ja as M,VS as N,gS as O,Im as P,IM as Q,Ga as R,RM as S,Tt as T,jM as U,AM as V,wn as W,so as X,$m as Y,lv as Z,_M as _,Am as a,p0 as a0,pt as a1,kM as a2,h0 as a3,Sm as a4,PM as a5,My as a6,Kf as a7,NM as a8,Xi as a9,lo as aa,sn as ab,Zh as ac,Uf as ad,Xa as ae,DM as af,SM as ag,zx as ah,MM as ai,ir as aj,Jw as ak,$h as al,OM as am,ao as an,Cc as ao,zh as ap,BM as aq,FM as ar,AC as as,UM as at,WA as au,ft as b,zv as c,Cm as d,nt as e,LM as f,ot as g,QM as h,WM as i,WR as j,qM as k,KM as l,XM as m,Lh as n,ln as o,CM as p,GM as q,nn as r,YM as s,f0 as t,eT as u,Yn as v,Mh as w,Qi as x,Ot as y,Mm as z};

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