From 8aa696fdc5a5461da350e1d6751c9835ebfab238 Mon Sep 17 00:00:00 2001 From: nougatbyte Date: Sat, 6 Jul 2024 23:43:33 +0000 Subject: [PATCH] Update generated static files --- 200.html | 8 +- 404.html | 8 +- _nuxt/-VvI6Lr7.js | 284 +++++ _nuxt/-cMAfuNF.js | 1 + _nuxt/743RfUEt.js | 1 + _nuxt/BHGrsRTQ.js | 1 + _nuxt/BgZFLVLL.js | 1 + _nuxt/BryFE1hL.js | 1 + _nuxt/BwUqDjZt.js | 1 + _nuxt/BydJhqeL.js | 1 + _nuxt/C7NLEnku.js | 1 + _nuxt/CBLhoS0v.js | 1 + _nuxt/CCOuFFzJ.js | 1012 +++++++++++++++++ _nuxt/CJ7Tzvjl.js | 1 + _nuxt/CRmmW6t3.js | 1 + _nuxt/CW8F4qk3.js | 1 + _nuxt/CXnKksxJ.js | 1 + _nuxt/CdgrpXGU.js | 1 + _nuxt/CgtgCwE6.js | 1 + _nuxt/ContTC5u.js | 1 + _nuxt/CpVlVgCe.js | 1 + _nuxt/CrOhsFVu.js | 1 + _nuxt/CufEZoaj.js | 1 + _nuxt/D7KViyyH.js | 1 + _nuxt/DBf96Ybk.js | 1 + _nuxt/DHLmNBeA.js | 1 + _nuxt/DLX79Nml.js | 1 + _nuxt/DM_9Tk0X.js | 13 + _nuxt/DS0W2dGG.js | 1 + _nuxt/Dfnfu-Af.js | 1 + _nuxt/DiQtFf9u.js | 1 + _nuxt/DodWYXGC.js | 1 + _nuxt/Dp0yv6TN.js | 1 + _nuxt/DvMxV5Ax.js | 1 + _nuxt/Dy845a-Y.js | 322 ++++++ _nuxt/FoGmEwba.js | 1 + _nuxt/Ne0eQPea.js | 1 + _nuxt/Qrx5wsVu.js | 1 + _nuxt/TjYH8LVs.js | 1 + _nuxt/VHr5Aleq.js | 1 + _nuxt/blE9-5sg.js | 22 + _nuxt/builds/latest.json | 2 +- .../82b60f10-43b9-48c2-abd3-3a700155b368.json | 1 + _nuxt/l9yxdLf0.js | 1 + _nuxt/mCWCszvA.js | 1 + _nuxt/n5OR3jin.js | 1 + _nuxt/o-u2tkmG.js | 1 + _nuxt/y4qwzziu.js | 1 + about/index.html | 8 +- commit.txt | 2 +- contacts/index.html | 8 +- index.html | 8 +- inventories/index.html | 8 +- inventories/new/index.html | 8 +- items/index.html | 8 +- items/new/index.html | 8 +- login/index.html | 8 +- profile/index.html | 8 +- routes/index.html | 8 +- settings/index.html | 8 +- sw.js | 2 +- tools/gpxstudio/index.html | 8 +- tools/index.html | 8 +- tools/plantnet/index.html | 8 +- trips/index.html | 8 +- 65 files changed, 1764 insertions(+), 71 deletions(-) create mode 100644 _nuxt/-VvI6Lr7.js create mode 100644 _nuxt/-cMAfuNF.js create mode 100644 _nuxt/743RfUEt.js create mode 100644 _nuxt/BHGrsRTQ.js create mode 100644 _nuxt/BgZFLVLL.js create mode 100644 _nuxt/BryFE1hL.js create mode 100644 _nuxt/BwUqDjZt.js create mode 100644 _nuxt/BydJhqeL.js create mode 100644 _nuxt/C7NLEnku.js create mode 100644 _nuxt/CBLhoS0v.js create mode 100644 _nuxt/CCOuFFzJ.js create mode 100644 _nuxt/CJ7Tzvjl.js create mode 100644 _nuxt/CRmmW6t3.js create mode 100644 _nuxt/CW8F4qk3.js create mode 100644 _nuxt/CXnKksxJ.js create mode 100644 _nuxt/CdgrpXGU.js create mode 100644 _nuxt/CgtgCwE6.js create mode 100644 _nuxt/ContTC5u.js create mode 100644 _nuxt/CpVlVgCe.js create mode 100644 _nuxt/CrOhsFVu.js create mode 100644 _nuxt/CufEZoaj.js create mode 100644 _nuxt/D7KViyyH.js create mode 100644 _nuxt/DBf96Ybk.js create mode 100644 _nuxt/DHLmNBeA.js create mode 100644 _nuxt/DLX79Nml.js create mode 100644 _nuxt/DM_9Tk0X.js create mode 100644 _nuxt/DS0W2dGG.js create mode 100644 _nuxt/Dfnfu-Af.js create mode 100644 _nuxt/DiQtFf9u.js create mode 100644 _nuxt/DodWYXGC.js create mode 100644 _nuxt/Dp0yv6TN.js create mode 100644 _nuxt/DvMxV5Ax.js create mode 100644 _nuxt/Dy845a-Y.js create mode 100644 _nuxt/FoGmEwba.js create mode 100644 _nuxt/Ne0eQPea.js create mode 100644 _nuxt/Qrx5wsVu.js create mode 100644 _nuxt/TjYH8LVs.js create mode 100644 _nuxt/VHr5Aleq.js create mode 100644 _nuxt/blE9-5sg.js create mode 100644 _nuxt/builds/meta/82b60f10-43b9-48c2-abd3-3a700155b368.json create mode 100644 _nuxt/l9yxdLf0.js create mode 100644 _nuxt/mCWCszvA.js create mode 100644 _nuxt/n5OR3jin.js create mode 100644 _nuxt/o-u2tkmG.js create mode 100644 _nuxt/y4qwzziu.js diff --git a/200.html b/200.html index 2061efa..b7e33f6 100644 --- a/200.html +++ b/200.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
i.map(i=>__vite__fileDeps[i]); +/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function sc(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const He={},Zr=[],Kt=()=>{},_5=()=>!1,hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ic=e=>e.startsWith("onUpdate:"),Ge=Object.assign,oc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S5=Object.prototype.hasOwnProperty,_e=(e,t)=>S5.call(e,t),re=Array.isArray,Xr=e=>gi(e)==="[object Map]",_1=e=>gi(e)==="[object Set]",C5=e=>gi(e)==="[object RegExp]",oe=e=>typeof e=="function",Ne=e=>typeof e=="string",Pr=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",ac=e=>(Ve(e)||oe(e))&&oe(e.then)&&oe(e.catch),S1=Object.prototype.toString,gi=e=>S1.call(e),k5=e=>gi(e).slice(8,-1),C1=e=>gi(e)==="[object Object]",lc=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qr=sc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Io=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E5=/-(\w)/g,en=Io(e=>e.replace(E5,(t,n)=>n?n.toUpperCase():"")),x5=/\B([A-Z])/g,ms=Io(e=>e.replace(x5,"-$1").toLowerCase()),vs=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),ua=Io(e=>e?`on${vs(e)}`:""),Zn=(e,t)=>!Object.is(e,t),Ms=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},T5=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E1=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Su;const x1=()=>Su||(Su=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mi(e){if(re(e)){const t={};for(let n=0;n{if(n){const r=n.split(L5);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function kr(e){let t="";if(Ne(e))t=e;else if(re(e))for(let n=0;nNe(e)?e:e==null?"":re(e)||Ve(e)&&(e.toString===S1||!oe(e.toString))?JSON.stringify(e,A1,2):String(e),A1=(e,t)=>t&&t.__v_isRef?A1(e,t.value):Xr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[da(r,i)+" =>"]=s,n),{})}:_1(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>da(n))}:Pr(t)?da(t):Ve(t)&&!re(t)&&!C1(t)?String(t):t,da=(e,t="")=>{var n;return Pr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let jt;class L1{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!t&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=jt;try{return jt=this,t()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),er()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Yn,n=pr;try{return Yn=!0,pr=this,this._runnings++,Cu(this),this.fn()}finally{ku(this),this._runnings--,pr=n,Yn=t}}stop(){this.active&&(Cu(this),ku(this),this.onStop&&this.onStop(),this.active=!1)}}function H5(e){return e.value}function Cu(e){e._trackId++,e._depsLength=0}function ku(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ao=new WeakMap,yr=Symbol(""),Xa=Symbol("");function wt(e,t,n){if(Yn&&pr){let r=ao.get(e);r||ao.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=M1(()=>r.delete(n))),R1(pr,s)}}function Cn(e,t,n,r,s,i){const o=ao.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&re(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||!Pr(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":re(e)?lc(n)&&a.push(o.get("length")):(a.push(o.get(yr)),Xr(e)&&a.push(o.get(Xa)));break;case"delete":re(e)||(a.push(o.get(yr)),Xr(e)&&a.push(o.get(Xa)));break;case"set":Xr(e)&&a.push(o.get(yr));break}uc();for(const l of a)l&&I1(l,4);dc()}function D5(e,t){const n=ao.get(e);return n&&n.get(t)}const j5=sc("__proto__,__v_isRef,__isVue"),$1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pr)),Eu=N5();function N5(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ae(this);for(let i=0,o=this.length;i{e[t]=function(...n){Qn(),uc();const r=ae(this)[t].apply(this,n);return dc(),er(),r}}),e}function B5(e){Pr(e)||(e=String(e));const t=ae(this);return wt(t,"has",e),t.hasOwnProperty(e)}class V1{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?eg:N1:i?j1:D1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=re(t);if(!s){if(o&&_e(Eu,n))return Reflect.get(Eu,n,r);if(n==="hasOwnProperty")return B5}const a=Reflect.get(t,n,r);return(Pr(n)?$1.has(n):j5(n))||(s||wt(t,"get",n),i)?a:Pe(a)?o&&lc(n)?a:a.value:Ve(a)?s?ys(a):Be(a):a}}class H1 extends V1{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=ss(i);if(!lo(r)&&!ss(r)&&(i=ae(i),r=ae(r)),!re(t)&&Pe(i)&&!Pe(r))return l?!1:(i.value=r,!0)}const o=re(t)&&lc(n)?Number(n)e,$o=e=>Reflect.getPrototypeOf(e);function Li(e,t,n=!1,r=!1){e=e.__v_raw;const s=ae(e),i=ae(t);n||(Zn(t,i)&&wt(s,"get",t),wt(s,"get",i));const{has:o}=$o(s),a=r?fc:n?vc:Ys;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Pi(e,t=!1){const n=this.__v_raw,r=ae(n),s=ae(e);return t||(Zn(e,s)&&wt(r,"has",e),wt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Oi(e,t=!1){return e=e.__v_raw,!t&&wt(ae(e),"iterate",yr),Reflect.get(e,"size",e)}function xu(e){e=ae(e);const t=ae(this);return $o(t).has.call(t,e)||(t.add(e),Cn(t,"add",e,e)),this}function Tu(e,t){t=ae(t);const n=ae(this),{has:r,get:s}=$o(n);let i=r.call(n,e);i||(e=ae(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Zn(t,o)&&Cn(n,"set",e,t):Cn(n,"add",e,t),this}function Au(e){const t=ae(this),{has:n,get:r}=$o(t);let s=n.call(t,e);s||(e=ae(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&Cn(t,"delete",e,void 0),i}function Lu(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&Cn(e,"clear",void 0,void 0),n}function Ri(e,t){return function(r,s){const i=this,o=i.__v_raw,a=ae(o),l=t?fc:e?vc:Ys;return!e&&wt(a,"iterate",yr),o.forEach((u,c)=>r.call(s,l(u),l(c),i))}}function Ii(e,t,n){return function(...r){const s=this.__v_raw,i=ae(s),o=Xr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?fc:t?vc:Ys;return!t&&wt(i,"iterate",l?Xa:yr),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Mn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function G5(){const e={get(i){return Li(this,i)},get size(){return Oi(this)},has:Pi,add:xu,set:Tu,delete:Au,clear:Lu,forEach:Ri(!1,!1)},t={get(i){return Li(this,i,!1,!0)},get size(){return Oi(this)},has:Pi,add:xu,set:Tu,delete:Au,clear:Lu,forEach:Ri(!1,!0)},n={get(i){return Li(this,i,!0)},get size(){return Oi(this,!0)},has(i){return Pi.call(this,i,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Ri(!0,!1)},r={get(i){return Li(this,i,!0,!0)},get size(){return Oi(this,!0)},has(i){return Pi.call(this,i,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Ri(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ii(i,!1,!1),n[i]=Ii(i,!0,!1),t[i]=Ii(i,!1,!0),r[i]=Ii(i,!0,!0)}),[e,n,t,r]}const[q5,K5,Y5,J5]=G5();function hc(e,t){const n=t?e?J5:Y5:e?K5:q5;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(_e(n,s)&&s in r?n:r,s,i)}const Z5={get:hc(!1,!1)},X5={get:hc(!1,!0)},Q5={get:hc(!0,!1)};const D1=new WeakMap,j1=new WeakMap,N1=new WeakMap,eg=new WeakMap;function tg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ng(e){return e.__v_skip||!Object.isExtensible(e)?0:tg(k5(e))}function Be(e){return ss(e)?e:gc(e,!1,U5,Z5,D1)}function vi(e){return gc(e,!1,W5,X5,j1)}function ys(e){return gc(e,!0,z5,Q5,N1)}function gc(e,t,n,r,s){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=ng(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function br(e){return ss(e)?br(e.__v_raw):!!(e&&e.__v_isReactive)}function ss(e){return!!(e&&e.__v_isReadonly)}function lo(e){return!!(e&&e.__v_isShallow)}function B1(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function mc(e){return Object.isExtensible(e)&&k1(e,"__v_skip",!0),e}const Ys=e=>Ve(e)?Be(e):e,vc=e=>Ve(e)?ys(e):e;class F1{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cc(()=>t(this._value),()=>$s(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&Zn(t._value,t._value=t.effect.run())&&$s(t,4),pc(t),t.effect._dirtyLevel>=2&&$s(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function rg(e,t,n=!1){let r,s;const i=oe(e);return i?(r=e,s=Kt):(r=e.get,s=e.set),new F1(r,s,i||!s,n)}function pc(e){var t;Yn&&pr&&(e=ae(e),R1(pr,(t=e.dep)!=null?t:e.dep=M1(()=>e.dep=void 0,e instanceof F1?e:void 0)))}function $s(e,t=4,n){e=ae(e);const r=e.dep;r&&I1(r,t)}function Pe(e){return!!(e&&e.__v_isRef===!0)}function N(e){return U1(e,!1)}function le(e){return U1(e,!0)}function U1(e,t){return Pe(e)?e:new sg(e,t)}class sg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:Ys(t)}get value(){return pc(this),this._value}set value(t){const n=this.__v_isShallow||lo(t)||ss(t);t=n?t:ae(t),Zn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ys(t),$s(this,4))}}function Z(e){return Pe(e)?e.value:e}const ig={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Pe(s)&&!Pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function z1(e){return br(e)?e:new Proxy(e,ig)}class og{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>pc(this),()=>$s(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function ag(e){return new og(e)}function pi(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=W1(e,n);return t}class lg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return D5(ae(this._object),this._key)}}class cg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ie(e,t,n){return Pe(e)?e:oe(e)?new cg(e):Ve(e)&&arguments.length>1?W1(e,t,n):N(e)}function W1(e,t,n){const r=e[t];return Pe(r)?r:new lg(e,t,n)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Jn(e,t,n,r){try{return r?e(...r):e()}catch(s){bs(s,t,n)}}function Zt(e,t,n,r){if(oe(e)){const s=Jn(e,t,n,r);return s&&ac(s)&&s.catch(i=>{bs(i,t,n)}),s}if(re(e)){const s=[];for(let i=0;i>>1,s=dt[r],i=Zs(s);imn&&dt.splice(t,1)}function el(e){re(e)?es.push(...e):(!Bn||!Bn.includes(e,e.allowRecurse?gr+1:gr))&&es.push(e),q1()}function Pu(e,t,n=Js?mn+1:0){for(;nZs(n)-Zs(r));if(es.length=0,Bn){Bn.push(...t);return}for(Bn=t,gr=0;gre.id==null?1/0:e.id,hg=(e,t)=>{const n=Zs(e)-Zs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function K1(e){Qa=!1,Js=!0,dt.sort(hg);try{for(mn=0;mnNe(h)?h.trim():h)),d&&(s=n.map(T5))}let a,l=r[a=ua(t)]||r[a=ua(en(t))];!l&&i&&(l=r[a=ua(ms(t))]),l&&Zt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(u,e,6,s)}}function Y1(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!oe(e)){const l=u=>{const c=Y1(u,t,!0);c&&(a=!0,Ge(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ve(e)&&r.set(e,null),null):(re(i)?i.forEach(l=>o[l]=null):Ge(o,i),Ve(e)&&r.set(e,o),o)}function Ho(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,ms(t))||_e(e,t))}let Ke=null,Do=null;function uo(e){const t=Ke;return Ke=e,Do=e&&e.type.__scopeId||null,t}function mg(e){Do=e}function vg(){Do=null}function Ie(e,t=Ke,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Gu(-1);const i=uo(t);let o;try{o=e(...s)}finally{uo(i),r._d&&Gu(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function fa(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,p=uo(e);let S,y;try{if(n.shapeFlag&4){const _=s||r,x=_;S=qt(u.call(x,_,c,d,h,f,m)),y=a}else{const _=t;S=qt(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),y=t.props?a:yg(a)}}catch(_){js.length=0,bs(_,e,1),S=b(st)}let v=S;if(y&&g!==!1){const _=Object.keys(y),{shapeFlag:x}=v;_.length&&x&7&&(i&&_.some(ic)&&(y=bg(y,i)),v=xn(v,y,!1,!0))}return n.dirs&&(v=xn(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),S=v,uo(p),S}function pg(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||hi(n))&&((t||(t={}))[n]=e[n]);return t},bg=(e,t)=>{const n={};for(const r in e)(!ic(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wg(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ou(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;let tl=0;const Sg={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,u){if(e==null)Cg(t,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}kg(e,t,n,r,s,o,a,l,u)}},hydrate:Eg,create:Cc,normalize:xg},Sc=Sg;function Xs(e,t){const n=e.props&&e.props[t];oe(n)&&n()}function Cg(e,t,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=Cc(e,s,r,t,d,n,i,o,a,l);u(null,f.pendingBranch=e.ssContent,d,null,r,f,i,o),f.deps>0?(Xs(e,"onPending"),Xs(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),ts(f,e.ssFallback)):f.resolve(!1,!0)}function kg(e,t,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:p,isHydrating:S}=d;if(g)d.pendingBranch=f,cn(f,g)?(l(g,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():p&&(S||(l(m,h,n,r,s,null,i,o,a),ts(d,h)))):(d.pendingId=tl++,S?(d.isHydrating=!1,d.activeBranch=g):u(g,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),p?(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(m,h,n,r,s,null,i,o,a),ts(d,h))):m&&cn(f,m)?(l(m,f,n,r,s,d,i,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(m&&cn(f,m))l(m,f,n,r,s,d,i,o,a),ts(d,f);else if(Xs(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=tl++,l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:y,pendingId:v}=d;y>0?setTimeout(()=>{d.pendingId===v&&d.fallback(h)},y):y===0&&d.fallback(h)}}function Cc(e,t,n,r,s,i,o,a,l,u,c=!1){const{p:d,m:f,um:h,n:m,o:{parentNode:g,remove:p}}=u;let S;const y=Tg(e);y&&t&&t.pendingBranch&&(S=t.pendingId,t.deps++);const v=e.props?E1(e.props.timeout):void 0,_=i,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:tl++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,C=!1){const{vnode:A,activeBranch:P,pendingBranch:O,pendingId:I,effects:L,parentComponent:$,container:z}=x;let Q=!1;x.isHydrating?x.isHydrating=!1:E||(Q=P&&O.transition&&O.transition.mode==="out-in",Q&&(P.transition.afterLeave=()=>{I===x.pendingId&&(f(O,z,i===_?m(P):i,0),el(L))}),P&&(g(P.el)!==x.hiddenContainer&&(i=m(P)),h(P,$,x,!0)),Q||f(O,z,i,0)),ts(x,O),x.pendingBranch=null,x.isInFallback=!1;let H=x.parent,X=!1;for(;H;){if(H.pendingBranch){H.effects.push(...L),X=!0;break}H=H.parent}!X&&!Q&&el(L),x.effects=[],y&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),Xs(A,"onResolve")},fallback(E){if(!x.pendingBranch)return;const{vnode:C,activeBranch:A,parentComponent:P,container:O,namespace:I}=x;Xs(C,"onFallback");const L=m(A),$=()=>{x.isInFallback&&(d(null,E,O,L,P,null,I,a,l),ts(x,E))},z=E.transition&&E.transition.mode==="out-in";z&&(A.transition.afterLeave=$),x.isInFallback=!0,h(A,P,null,!0),z||$()},move(E,C,A){x.activeBranch&&f(x.activeBranch,E,C,A),x.container=E},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(E,C){const A=!!x.pendingBranch;A&&x.deps++;const P=E.vnode.el;E.asyncDep.catch(O=>{bs(O,E,0)}).then(O=>{if(E.isUnmounted||x.isUnmounted||x.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:I}=E;cl(E,O,!1),P&&(I.el=P);const L=!P&&E.subTree.el;C(E,I,g(P||E.subTree.el),P?null:m(E.subTree),x,o,l),L&&p(L),bc(E,I.el),A&&--x.deps===0&&x.resolve()})},unmount(E,C){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,E,C),x.pendingBranch&&h(x.pendingBranch,n,E,C)}};return x}function Eg(e,t,n,r,s,i,o,a,l){const u=t.suspense=Cc(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function xg(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Iu(r?n.default:n),e.ssFallback=r?Iu(n.fallback):b(st)}function Iu(e){let t;if(oe(e)){const n=os&&e._c;n&&(e._d=!1,ce()),e=e(),n&&(e._d=!0,t=Yt,Ch())}return re(e)&&(e=pg(e)),e=qt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Q1(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):el(e)}function ts(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,bc(r,s))}function Tg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ag=Symbol.for("v-scx"),Lg=()=>Se(Ag);function nn(e,t){return kc(e,null,t)}const Mi={};function se(e,t,n){return kc(e,t,n)}function kc(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:o,onTrigger:a}=He){if(t&&i){const E=t;t=(...C)=>{E(...C),x()}}const l=Je,u=E=>r===!0?E:vr(E,r===!1?1:void 0);let c,d=!1,f=!1;if(Pe(e)?(c=()=>e.value,d=lo(e)):br(e)?(c=()=>u(e),d=!0):re(e)?(f=!0,d=e.some(E=>br(E)||lo(E)),c=()=>e.map(E=>{if(Pe(E))return E.value;if(br(E))return u(E);if(oe(E))return Jn(E,l,2)})):oe(e)?t?c=()=>Jn(e,l,2):c=()=>(h&&h(),Zt(e,l,3,[m])):c=Kt,t&&r){const E=c;c=()=>vr(E())}let h,m=E=>{h=v.onStop=()=>{Jn(E,l,4),h=v.onStop=void 0}},g;if(bi)if(m=Kt,t?n&&Zt(t,l,3,[c(),f?[]:void 0,m]):c(),s==="sync"){const E=Lg();g=E.__watcherHandles||(E.__watcherHandles=[])}else return Kt;let p=f?new Array(e.length).fill(Mi):Mi;const S=()=>{if(!(!v.active||!v.dirty))if(t){const E=v.run();(r||d||(f?E.some((C,A)=>Zn(C,p[A])):Zn(E,p)))&&(h&&h(),Zt(t,l,3,[E,p===Mi?void 0:f&&p[0]===Mi?[]:p,m]),p=E)}else v.run()};S.allowRecurse=!!t;let y;s==="sync"?y=S:s==="post"?y=()=>rt(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),y=()=>Vo(S));const v=new cc(c,Kt,y),_=Mo(),x=()=>{v.stop(),_&&oc(_.effects,v)};return t?n?S():p=v.run():s==="post"?rt(v.run.bind(v),l&&l.suspense):v.run(),g&&g.push(x),x}function Pg(e,t,n){const r=this.proxy,s=Ne(e)?e.includes(".")?eh(r,e):()=>r[e]:e.bind(r,r);let i;oe(t)?i=t:(i=t.handler,n=t);const o=Ar(this),a=kc(s,i.bind(r),n);return o(),a}function eh(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{vr(r,t,n)});else if(C1(e))for(const r in e)vr(e[r],t,n);return e}function Er(e,t){if(Ke===null)return e;const n=Fo(Ke)||Ke.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),it(()=>{e.isUnmounting=!0}),e}const Wt=[Function,Array],nh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wt,onEnter:Wt,onAfterEnter:Wt,onEnterCancelled:Wt,onBeforeLeave:Wt,onLeave:Wt,onAfterLeave:Wt,onLeaveCancelled:Wt,onBeforeAppear:Wt,onAppear:Wt,onAfterAppear:Wt,onAppearCancelled:Wt},Og={name:"BaseTransition",props:nh,setup(e,{slots:t}){const n=Or(),r=th();return()=>{const s=t.default&&Ec(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const f of s)if(f.type!==st){i=f;break}}const o=ae(e),{mode:a}=o;if(r.isLeaving)return ha(i);const l=Mu(i);if(!l)return ha(i);const u=Qs(l,o,r,n);is(l,u);const c=n.subTree,d=c&&Mu(c);if(d&&d.type!==st&&!cn(l,d)){const f=Qs(d,o,r,n);if(is(d,f),a==="out-in"&&l.type!==st)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ha(i);a==="in-out"&&l.type!==st&&(f.delayLeave=(h,m,g)=>{const p=rh(r,d);p[String(d.key)]=d,h[Fn]=()=>{m(),h[Fn]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}},Rg=Og;function rh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Qs(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:p,onAfterAppear:S,onAppearCancelled:y}=t,v=String(e.key),_=rh(n,e),x=(A,P)=>{A&&Zt(A,r,9,P)},E=(A,P)=>{const O=P[1];x(A,P),re(A)?A.every(I=>I.length<=1)&&O():A.length<=1&&O()},C={mode:i,persisted:o,beforeEnter(A){let P=a;if(!n.isMounted)if(s)P=g||a;else return;A[Fn]&&A[Fn](!0);const O=_[v];O&&cn(e,O)&&O.el[Fn]&&O.el[Fn](),x(P,[A])},enter(A){let P=l,O=u,I=c;if(!n.isMounted)if(s)P=p||l,O=S||u,I=y||c;else return;let L=!1;const $=A[$i]=z=>{L||(L=!0,z?x(I,[A]):x(O,[A]),C.delayedLeave&&C.delayedLeave(),A[$i]=void 0)};P?E(P,[A,$]):$()},leave(A,P){const O=String(e.key);if(A[$i]&&A[$i](!0),n.isUnmounting)return P();x(d,[A]);let I=!1;const L=A[Fn]=$=>{I||(I=!0,P(),$?x(m,[A]):x(h,[A]),A[Fn]=void 0,_[O]===e&&delete _[O])};_[O]=e,f?E(f,[A,L]):L()},clone(A){return Qs(A,t,n,r)}};return C}function ha(e){if(yi(e))return e=xn(e),e.children=null,e}function Mu(e){if(!yi(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&oe(n.default))return n.default()}}function is(e,t){e.shapeFlag&6&&e.component?is(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ec(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function $u(e){oe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=e;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let h;return l||(h=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((g,p)=>{a(m,()=>g(d()),()=>p(m),c+1)});throw m}).then(m=>h!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return ht({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const h=Je;if(u)return()=>ga(u,h);const m=y=>{l=null,bs(y,h,13,!r)};if(o&&h.suspense||bi)return f().then(y=>()=>ga(y,h)).catch(y=>(m(y),()=>r?b(r,{error:y}):null));const g=N(!1),p=N(),S=N(!!s);return s&&setTimeout(()=>{S.value=!1},s),i!=null&&setTimeout(()=>{if(!g.value&&!p.value){const y=new Error(`Async component timed out after ${i}ms.`);m(y),p.value=y}},i),f().then(()=>{g.value=!0,h.parent&&yi(h.parent.vnode)&&(h.parent.effect.dirty=!0,Vo(h.parent.update))}).catch(y=>{m(y),p.value=y}),()=>{if(g.value&&u)return ga(u,h);if(p.value&&r)return b(r,{error:p.value});if(n&&!S.value)return b(n)}}})}function ga(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=b(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const yi=e=>e.type.__isKeepAlive,Ig={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Or(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,f=d("div");r.activate=(y,v,_,x,E)=>{const C=y.component;u(y,v,_,0,a),l(C.vnode,y,v,_,C,a,x,y.slotScopeIds,E),rt(()=>{C.isDeactivated=!1,C.a&&Ms(C.a);const A=y.props&&y.props.onVnodeMounted;A&&yt(A,C.parent,y)},a)},r.deactivate=y=>{const v=y.component;u(y,f,null,1,a),rt(()=>{v.da&&Ms(v.da);const _=y.props&&y.props.onVnodeUnmounted;_&&yt(_,v.parent,y),v.isDeactivated=!0},a)};function h(y){ma(y),c(y,n,a,!0)}function m(y){s.forEach((v,_)=>{const x=ul(v.type);x&&(!y||!y(x))&&g(_)})}function g(y){const v=s.get(y);!o||!cn(v,o)?h(v):o&&ma(o),s.delete(y),i.delete(y)}se(()=>[e.include,e.exclude],([y,v])=>{y&&m(_=>Ps(y,_)),v&&m(_=>!Ps(v,_))},{flush:"post",deep:!0});let p=null;const S=()=>{p!=null&&s.set(p,va(n.subTree))};return rn(S),Bo(S),it(()=>{s.forEach(y=>{const{subTree:v,suspense:_}=n,x=va(v);if(y.type===x.type&&y.key===x.key){ma(x);const E=x.component.da;E&&rt(E,_);return}h(y)})}),()=>{if(p=null,!t.default)return null;const y=t.default(),v=y[0];if(y.length>1)return o=null,y;if(!Tr(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let _=va(v);const x=_.type,E=ul(wr(_)?_.type.__asyncResolved||{}:x),{include:C,exclude:A,max:P}=e;if(C&&(!E||!Ps(C,E))||A&&E&&Ps(A,E))return o=_,v;const O=_.key==null?x:_.key,I=s.get(O);return _.el&&(_=xn(_),v.shapeFlag&128&&(v.ssContent=_)),p=O,I?(_.el=I.el,_.component=I.component,_.transition&&is(_,_.transition),_.shapeFlag|=512,i.delete(O),i.add(O)):(i.add(O),P&&i.size>parseInt(P,10)&&g(i.values().next().value)),_.shapeFlag|=256,o=_,X1(v.type)?v:_}}},Mg=Ig;function Ps(e,t){return re(e)?e.some(n=>Ps(n,t)):Ne(e)?e.split(",").includes(t):C5(e)?e.test(t):!1}function xc(e,t){sh(e,"a",t)}function Tc(e,t){sh(e,"da",t)}function sh(e,t,n=Je){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(No(t,r,n),n){let s=n.parent;for(;s&&s.parent;)yi(s.parent.vnode)&&$g(r,t,n,s),s=s.parent}}function $g(e,t,n,r){const s=No(t,e,r,!0);oh(()=>{oc(r[t],s)},n)}function ma(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function va(e){return e.shapeFlag&128?e.ssContent:e}function No(e,t,n=Je,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Qn();const a=Ar(n),l=Zt(t,n,e,o);return a(),er(),l});return r?s.unshift(i):s.push(i),i}}const Tn=e=>(t,n=Je)=>(!bi||e==="sp")&&No(e,(...r)=>t(...r),n),ih=Tn("bm"),rn=Tn("m"),Vg=Tn("bu"),Bo=Tn("u"),it=Tn("bum"),oh=Tn("um"),Hg=Tn("sp"),Dg=Tn("rtg"),jg=Tn("rtc");function ah(e,t=Je){No("ec",e,t)}function ei(e,t,n,r){let s;const i=n;if(re(e)||Ne(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;aTr(t)?!(t.type===st||t.type===ve&&!lh(t.children)):!0)?e:null}const nl=e=>e?Ah(e)?Fo(e)||e.proxy:nl(e.parent):null,Vs=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>Ac(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Vo(e.update)}),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>Pg.bind(e)}),ya=(e,t)=>e!==He&&!e.__isScriptSetup&&_e(e,t),Ng={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ya(r,t))return o[t]=1,r[t];if(s!==He&&_e(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&_e(u,t))return o[t]=3,i[t];if(n!==He&&_e(n,t))return o[t]=4,n[t];rl&&(o[t]=0)}}const c=Vs[t];let d,f;if(c)return t==="$attrs"&&wt(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==He&&_e(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,_e(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ya(s,t)?(s[t]=n,!0):r!==He&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==He&&_e(e,o)||ya(t,o)||(a=i[0])&&_e(a,o)||_e(r,o)||_e(Vs,o)||_e(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vu(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function RS(e){const t=Or();let n=e();return ll(),ac(n)&&(n=n.catch(r=>{throw Ar(t),r})),[n,()=>Ar(t)]}let rl=!0;function Bg(e){const t=Ac(e),n=e.proxy,r=e.ctx;rl=!1,t.beforeCreate&&Hu(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:g,deactivated:p,beforeDestroy:S,beforeUnmount:y,destroyed:v,unmounted:_,render:x,renderTracked:E,renderTriggered:C,errorCaptured:A,serverPrefetch:P,expose:O,inheritAttrs:I,components:L,directives:$,filters:z}=t;if(u&&Fg(u,r,null),o)for(const X in o){const F=o[X];oe(F)&&(r[X]=F.bind(n))}if(s){const X=s.call(n,n);Ve(X)&&(e.data=Be(X))}if(rl=!0,i)for(const X in i){const F=i[X],Oe=oe(F)?F.bind(n,n):oe(F.get)?F.get.bind(n,n):Kt,he=!oe(F)&&oe(F.set)?F.set.bind(n):Kt,Ee=T({get:Oe,set:he});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ge=>Ee.value=ge})}if(a)for(const X in a)ch(a[X],r,n,X);if(l){const X=oe(l)?l.call(n):l;Reflect.ownKeys(X).forEach(F=>{Ye(F,X[F])})}c&&Hu(c,e,"c");function H(X,F){re(F)?F.forEach(Oe=>X(Oe.bind(n))):F&&X(F.bind(n))}if(H(ih,d),H(rn,f),H(Vg,h),H(Bo,m),H(xc,g),H(Tc,p),H(ah,A),H(jg,E),H(Dg,C),H(it,y),H(oh,_),H(Hg,P),re(O))if(O.length){const X=e.exposed||(e.exposed={});O.forEach(F=>{Object.defineProperty(X,F,{get:()=>n[F],set:Oe=>n[F]=Oe})})}else e.exposed||(e.exposed={});x&&e.render===Kt&&(e.render=x),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),$&&(e.directives=$)}function Fg(e,t,n=Kt){re(e)&&(e=sl(e));for(const r in e){const s=e[r];let i;Ve(s)?"default"in s?i=Se(s.from||r,s.default,!0):i=Se(s.from||r):i=Se(s),Pe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Hu(e,t,n){Zt(re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ch(e,t,n,r){const s=r.includes(".")?eh(n,r):()=>n[r];if(Ne(e)){const i=t[e];oe(i)&&se(s,i)}else if(oe(e))se(s,e.bind(n));else if(Ve(e))if(re(e))e.forEach(i=>ch(i,t,n,r));else{const i=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(i)&&se(s,i,e)}}function Ac(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>fo(l,u,o,!0)),fo(l,t,o)),Ve(t)&&i.set(t,l),l}function fo(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&fo(e,i,n,!0),s&&s.forEach(o=>fo(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ug[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ug={data:Du,props:ju,emits:ju,methods:Os,computed:Os,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:Os,directives:Os,watch:Wg,provide:Du,inject:zg};function Du(e,t){return t?e?function(){return Ge(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function zg(e,t){return Os(sl(e),sl(t))}function sl(e){if(re(e)){const t={};for(let n=0;n1)return n&&oe(t)?t.call(r&&r.proxy):t}}function Lc(){return!!(Je||Ke||ns)}const dh={},fh=()=>Object.create(dh),hh=e=>Object.getPrototypeOf(e)===dh;function Kg(e,t,n,r=!1){const s={},i=fh();e.propsDefaults=Object.create(null),gh(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:vi(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Yg(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ae(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=mh(d,t,!0);Ge(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ve(e)&&r.set(e,Zr),Zr;if(re(i))for(let c=0;c-1,h[1]=g<0||m-1||_e(h,"default"))&&a.push(d)}}}const u=[o,a];return Ve(e)&&r.set(e,u),u}function Nu(e){return e[0]!=="$"&&!Qr(e)}function Bu(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Fu(e,t){return Bu(e)===Bu(t)}function Uu(e,t){return re(t)?t.findIndex(n=>Fu(n,e)):oe(t)&&Fu(t,e)?0:-1}const vh=e=>e[0]==="_"||e==="$stable",Pc=e=>re(e)?e.map(qt):[qt(e)],Jg=(e,t,n)=>{if(t._n)return t;const r=Ie((...s)=>Pc(t(...s)),n);return r._c=!1,r},ph=(e,t,n)=>{const r=e._ctx;for(const s in e){if(vh(s))continue;const i=e[s];if(oe(i))t[s]=Jg(s,i,r);else if(i!=null){const o=Pc(i);t[s]=()=>o}}},yh=(e,t)=>{const n=Pc(t);e.slots.default=()=>n},Zg=(e,t)=>{const n=e.slots=fh();if(e.vnode.shapeFlag&32){const r=t._;r?(Ge(n,t),k1(n,"_",r,!0)):ph(t,n)}else t&&yh(e,t)},Xg=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=He;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ge(s,t),!n&&a===1&&delete s._):(i=!t.$stable,ph(t,s)),o=t}else t&&(yh(e,t),o={default:1});if(i)for(const a in s)!vh(a)&&o[a]==null&&delete s[a]};function ho(e,t,n,r,s=!1){if(re(e)){e.forEach((f,h)=>ho(f,t&&(re(t)?t[h]:t),n,r,s));return}if(wr(r)&&!s)return;const i=r.shapeFlag&4?Fo(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===He?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Ne(u)?(c[u]=null,_e(d,u)&&(d[u]=null)):Pe(u)&&(u.value=null)),oe(l))Jn(l,a,12,[o,c]);else{const f=Ne(l),h=Pe(l);if(f||h){const m=()=>{if(e.f){const g=f?_e(d,l)?d[l]:c[l]:l.value;s?re(g)&&oc(g,i):re(g)?g.includes(i)||g.push(i):f?(c[l]=[i],_e(d,l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,_e(d,l)&&(d[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,rt(m,n)):m()}}}let $n=!1;const Qg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",em=e=>e.namespaceURI.includes("MathML"),Vi=e=>{if(Qg(e))return"svg";if(em(e))return"mathml"},Hi=e=>e.nodeType===8;function tm(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(v,_)=>{if(!_.hasChildNodes()){n(null,v,_),co(),_._vnode=v;return}$n=!1,d(_.firstChild,v,null,null,null),co(),_._vnode=v,$n&&console.error("Hydration completed but contains mismatches.")},d=(v,_,x,E,C,A=!1)=>{A=A||!!_.dynamicChildren;const P=Hi(v)&&v.data==="[",O=()=>g(v,_,x,E,C,P),{type:I,ref:L,shapeFlag:$,patchFlag:z}=_;let Q=v.nodeType;_.el=v,z===-2&&(A=!1,_.dynamicChildren=null);let H=null;switch(I){case xr:Q!==3?_.children===""?(l(_.el=s(""),o(v),v),H=v):H=O():(v.data!==_.children&&($n=!0,v.data=_.children),H=i(v));break;case st:y(v)?(H=i(v),S(_.el=v.content.firstChild,v,x)):Q!==8||P?H=O():H=i(v);break;case Ds:if(P&&(v=i(v),Q=v.nodeType),Q===1||Q===3){H=v;const X=!_.children.length;for(let F=0;F<_.staticCount;F++)X&&(_.children+=H.nodeType===1?H.outerHTML:H.data),F===_.staticCount-1&&(_.anchor=H),H=i(H);return P?i(H):H}else O();break;case ve:P?H=m(v,_,x,E,C,A):H=O();break;default:if($&1)(Q!==1||_.type.toLowerCase()!==v.tagName.toLowerCase())&&!y(v)?H=O():H=f(v,_,x,E,C,A);else if($&6){_.slotScopeIds=C;const X=o(v);if(P?H=p(v):Hi(v)&&v.data==="teleport start"?H=p(v,v.data,"teleport end"):H=i(v),t(_,X,null,x,E,Vi(X),A),wr(_)){let F;P?(F=b(ve),F.anchor=H?H.previousSibling:X.lastChild):F=v.nodeType===3?Ns(""):b("div"),F.el=v,_.component.subTree=F}}else $&64?Q!==8?H=O():H=_.type.hydrate(v,_,x,E,C,A,e,h):$&128&&(H=_.type.hydrate(v,_,x,E,Vi(o(v)),C,A,e,d))}return L!=null&&ho(L,null,E,_),H},f=(v,_,x,E,C,A)=>{A=A||!!_.dynamicChildren;const{type:P,props:O,patchFlag:I,shapeFlag:L,dirs:$,transition:z}=_,Q=P==="input"||P==="option";if(Q||I!==-1){$&&gn(_,null,x,"created");let H=!1;if(y(v)){H=wh(E,z)&&x&&x.vnode.props&&x.vnode.props.appear;const F=v.content.firstChild;H&&z.beforeEnter(F),S(F,v,x),_.el=v=F}if(L&16&&!(O&&(O.innerHTML||O.textContent))){let F=h(v.firstChild,_,v,x,E,C,A);for(;F;){$n=!0;const Oe=F;F=F.nextSibling,a(Oe)}}else L&8&&v.textContent!==_.children&&($n=!0,v.textContent=_.children);if(O)if(Q||!A||I&48)for(const F in O)(Q&&(F.endsWith("value")||F==="indeterminate")||hi(F)&&!Qr(F)||F[0]===".")&&r(v,F,null,O[F],void 0,void 0,x);else O.onClick&&r(v,"onClick",null,O.onClick,void 0,void 0,x);let X;(X=O&&O.onVnodeBeforeMount)&&yt(X,x,_),$&&gn(_,null,x,"beforeMount"),((X=O&&O.onVnodeMounted)||$||H)&&Q1(()=>{X&&yt(X,x,_),H&&z.enter(v),$&&gn(_,null,x,"mounted")},E)}return v.nextSibling},h=(v,_,x,E,C,A,P)=>{P=P||!!_.dynamicChildren;const O=_.children,I=O.length;for(let L=0;L{const{slotScopeIds:P}=_;P&&(C=C?C.concat(P):P);const O=o(v),I=h(i(v),_,O,x,E,C,A);return I&&Hi(I)&&I.data==="]"?i(_.anchor=I):($n=!0,l(_.anchor=u("]"),O,I),I)},g=(v,_,x,E,C,A)=>{if($n=!0,_.el=null,A){const I=p(v);for(;;){const L=i(v);if(L&&L!==I)a(L);else break}}const P=i(v),O=o(v);return a(v),n(null,_,O,P,x,E,Vi(O),C),P},p=(v,_="[",x="]")=>{let E=0;for(;v;)if(v=i(v),v&&Hi(v)&&(v.data===_&&E++,v.data===x)){if(E===0)return i(v);E--}return v},S=(v,_,x)=>{const E=_.parentNode;E&&E.replaceChild(v,_);let C=x;for(;C;)C.vnode.el===_&&(C.vnode.el=C.subTree.el=v),C=C.parent},y=v=>v.nodeType===1&&v.tagName.toLowerCase()==="template";return[c,d]}const rt=Q1;function nm(e){return bh(e)}function rm(e){return bh(e,tm)}function bh(e,t){const n=x1();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Kt,insertStaticContent:m}=e,g=(w,k,R,D=null,V=null,U=null,K=void 0,B=null,G=!!k.dynamicChildren)=>{if(w===k)return;w&&!cn(w,k)&&(D=M(w),ge(w,V,U,!0),w=null),k.patchFlag===-2&&(G=!1,k.dynamicChildren=null);const{type:j,ref:J,shapeFlag:ne}=k;switch(j){case xr:p(w,k,R,D);break;case st:S(w,k,R,D);break;case Ds:w==null&&y(k,R,D,K);break;case ve:L(w,k,R,D,V,U,K,B,G);break;default:ne&1?x(w,k,R,D,V,U,K,B,G):ne&6?$(w,k,R,D,V,U,K,B,G):(ne&64||ne&128)&&j.process(w,k,R,D,V,U,K,B,G,ee)}J!=null&&V&&ho(J,w&&w.ref,U,k||w,!k)},p=(w,k,R,D)=>{if(w==null)r(k.el=a(k.children),R,D);else{const V=k.el=w.el;k.children!==w.children&&u(V,k.children)}},S=(w,k,R,D)=>{w==null?r(k.el=l(k.children||""),R,D):k.el=w.el},y=(w,k,R,D)=>{[w.el,w.anchor]=m(w.children,k,R,D,w.el,w.anchor)},v=({el:w,anchor:k},R,D)=>{let V;for(;w&&w!==k;)V=f(w),r(w,R,D),w=V;r(k,R,D)},_=({el:w,anchor:k})=>{let R;for(;w&&w!==k;)R=f(w),s(w),w=R;s(k)},x=(w,k,R,D,V,U,K,B,G)=>{k.type==="svg"?K="svg":k.type==="math"&&(K="mathml"),w==null?E(k,R,D,V,U,K,B,G):P(w,k,V,U,K,B,G)},E=(w,k,R,D,V,U,K,B)=>{let G,j;const{props:J,shapeFlag:ne,transition:te,dirs:de}=w;if(G=w.el=o(w.type,U,J&&J.is,J),ne&8?c(G,w.children):ne&16&&A(w.children,G,null,D,V,ba(w,U),K,B),de&&gn(w,null,D,"created"),C(G,w,w.scopeId,K,D),J){for(const Re in J)Re!=="value"&&!Qr(Re)&&i(G,Re,null,J[Re],U,w.children,D,V,Ce);"value"in J&&i(G,"value",null,J.value,U),(j=J.onVnodeBeforeMount)&&yt(j,D,w)}de&&gn(w,null,D,"beforeMount");const pe=wh(V,te);pe&&te.beforeEnter(G),r(G,k,R),((j=J&&J.onVnodeMounted)||pe||de)&&rt(()=>{j&&yt(j,D,w),pe&&te.enter(G),de&&gn(w,null,D,"mounted")},V)},C=(w,k,R,D,V)=>{if(R&&h(w,R),D)for(let U=0;U{for(let j=G;j{const B=k.el=w.el;let{patchFlag:G,dynamicChildren:j,dirs:J}=k;G|=w.patchFlag&16;const ne=w.props||He,te=k.props||He;let de;if(R&&ir(R,!1),(de=te.onVnodeBeforeUpdate)&&yt(de,R,k,w),J&&gn(k,w,R,"beforeUpdate"),R&&ir(R,!0),j?O(w.dynamicChildren,j,B,R,D,ba(k,V),U):K||F(w,k,B,null,R,D,ba(k,V),U,!1),G>0){if(G&16)I(B,k,ne,te,R,D,V);else if(G&2&&ne.class!==te.class&&i(B,"class",null,te.class,V),G&4&&i(B,"style",ne.style,te.style,V),G&8){const pe=k.dynamicProps;for(let Re=0;Re{de&&yt(de,R,k,w),J&&gn(k,w,R,"updated")},D)},O=(w,k,R,D,V,U,K)=>{for(let B=0;B{if(R!==D){if(R!==He)for(const B in R)!Qr(B)&&!(B in D)&&i(w,B,R[B],null,K,k.children,V,U,Ce);for(const B in D){if(Qr(B))continue;const G=D[B],j=R[B];G!==j&&B!=="value"&&i(w,B,j,G,K,k.children,V,U,Ce)}"value"in D&&i(w,"value",R.value,D.value,K)}},L=(w,k,R,D,V,U,K,B,G)=>{const j=k.el=w?w.el:a(""),J=k.anchor=w?w.anchor:a("");let{patchFlag:ne,dynamicChildren:te,slotScopeIds:de}=k;de&&(B=B?B.concat(de):de),w==null?(r(j,R,D),r(J,R,D),A(k.children||[],R,J,V,U,K,B,G)):ne>0&&ne&64&&te&&w.dynamicChildren?(O(w.dynamicChildren,te,R,V,U,K,B),(k.key!=null||V&&k===V.subTree)&&Oc(w,k,!0)):F(w,k,R,J,V,U,K,B,G)},$=(w,k,R,D,V,U,K,B,G)=>{k.slotScopeIds=B,w==null?k.shapeFlag&512?V.ctx.activate(k,R,D,K,G):z(k,R,D,V,U,K,G):Q(w,k,G)},z=(w,k,R,D,V,U,K)=>{const B=w.component=fm(w,D,V);if(yi(w)&&(B.ctx.renderer=ee),hm(B),B.asyncDep){if(V&&V.registerDep(B,H),!w.el){const G=B.subTree=b(st);S(null,G,k,R)}}else H(B,w,k,R,V,U,K)},Q=(w,k,R)=>{const D=k.component=w.component;if(wg(w,k,R))if(D.asyncDep&&!D.asyncResolved){X(D,k,R);return}else D.next=k,fg(D.update),D.effect.dirty=!0,D.update();else k.el=w.el,D.vnode=k},H=(w,k,R,D,V,U,K)=>{const B=()=>{if(w.isMounted){let{next:J,bu:ne,u:te,parent:de,vnode:pe}=w;{const Dr=_h(w);if(Dr){J&&(J.el=pe.el,X(w,J,K)),Dr.asyncDep.then(()=>{w.isUnmounted||B()});return}}let Re=J,je;ir(w,!1),J?(J.el=pe.el,X(w,J,K)):J=pe,ne&&Ms(ne),(je=J.props&&J.props.onVnodeBeforeUpdate)&&yt(je,de,J,pe),ir(w,!0);const Xe=fa(w),sn=w.subTree;w.subTree=Xe,g(sn,Xe,d(sn.el),M(sn),w,V,U),J.el=Xe.el,Re===null&&bc(w,Xe.el),te&&rt(te,V),(je=J.props&&J.props.onVnodeUpdated)&&rt(()=>yt(je,de,J,pe),V)}else{let J;const{el:ne,props:te}=k,{bm:de,m:pe,parent:Re}=w,je=wr(k);if(ir(w,!1),de&&Ms(de),!je&&(J=te&&te.onVnodeBeforeMount)&&yt(J,Re,k),ir(w,!0),ne&&De){const Xe=()=>{w.subTree=fa(w),De(ne,w.subTree,w,V,null)};je?k.type.__asyncLoader().then(()=>!w.isUnmounted&&Xe()):Xe()}else{const Xe=w.subTree=fa(w);g(null,Xe,R,D,w,V,U),k.el=Xe.el}if(pe&&rt(pe,V),!je&&(J=te&&te.onVnodeMounted)){const Xe=k;rt(()=>yt(J,Re,Xe),V)}(k.shapeFlag&256||Re&&wr(Re.vnode)&&Re.vnode.shapeFlag&256)&&w.a&&rt(w.a,V),w.isMounted=!0,k=R=D=null}},G=w.effect=new cc(B,Kt,()=>Vo(j),w.scope),j=w.update=()=>{G.dirty&&G.run()};j.id=w.uid,ir(w,!0),j()},X=(w,k,R)=>{k.component=w;const D=w.vnode.props;w.vnode=k,w.next=null,Yg(w,k.props,D,R),Xg(w,k.children,R),Qn(),Pu(w),er()},F=(w,k,R,D,V,U,K,B,G=!1)=>{const j=w&&w.children,J=w?w.shapeFlag:0,ne=k.children,{patchFlag:te,shapeFlag:de}=k;if(te>0){if(te&128){he(j,ne,R,D,V,U,K,B,G);return}else if(te&256){Oe(j,ne,R,D,V,U,K,B,G);return}}de&8?(J&16&&Ce(j,V,U),ne!==j&&c(R,ne)):J&16?de&16?he(j,ne,R,D,V,U,K,B,G):Ce(j,V,U,!0):(J&8&&c(R,""),de&16&&A(ne,R,D,V,U,K,B,G))},Oe=(w,k,R,D,V,U,K,B,G)=>{w=w||Zr,k=k||Zr;const j=w.length,J=k.length,ne=Math.min(j,J);let te;for(te=0;teJ?Ce(w,V,U,!0,!1,ne):A(k,R,D,V,U,K,B,G,ne)},he=(w,k,R,D,V,U,K,B,G)=>{let j=0;const J=k.length;let ne=w.length-1,te=J-1;for(;j<=ne&&j<=te;){const de=w[j],pe=k[j]=G?Un(k[j]):qt(k[j]);if(cn(de,pe))g(de,pe,R,null,V,U,K,B,G);else break;j++}for(;j<=ne&&j<=te;){const de=w[ne],pe=k[te]=G?Un(k[te]):qt(k[te]);if(cn(de,pe))g(de,pe,R,null,V,U,K,B,G);else break;ne--,te--}if(j>ne){if(j<=te){const de=te+1,pe=dete)for(;j<=ne;)ge(w[j],V,U,!0),j++;else{const de=j,pe=j,Re=new Map;for(j=pe;j<=te;j++){const _t=k[j]=G?Un(k[j]):qt(k[j]);_t.key!=null&&Re.set(_t.key,j)}let je,Xe=0;const sn=te-pe+1;let Dr=!1,bu=0;const Cs=new Array(sn);for(j=0;j=sn){ge(_t,V,U,!0);continue}let fn;if(_t.key!=null)fn=Re.get(_t.key);else for(je=pe;je<=te;je++)if(Cs[je-pe]===0&&cn(_t,k[je])){fn=je;break}fn===void 0?ge(_t,V,U,!0):(Cs[fn-pe]=j+1,fn>=bu?bu=fn:Dr=!0,g(_t,k[fn],R,null,V,U,K,B,G),Xe++)}const wu=Dr?sm(Cs):Zr;for(je=wu.length-1,j=sn-1;j>=0;j--){const _t=pe+j,fn=k[_t],_u=_t+1{const{el:U,type:K,transition:B,children:G,shapeFlag:j}=w;if(j&6){Ee(w.component.subTree,k,R,D);return}if(j&128){w.suspense.move(k,R,D);return}if(j&64){K.move(w,k,R,ee);return}if(K===ve){r(U,k,R);for(let ne=0;neB.enter(U),V);else{const{leave:ne,delayLeave:te,afterLeave:de}=B,pe=()=>r(U,k,R),Re=()=>{ne(U,()=>{pe(),de&&de()})};te?te(U,pe,Re):Re()}else r(U,k,R)},ge=(w,k,R,D=!1,V=!1)=>{const{type:U,props:K,ref:B,children:G,dynamicChildren:j,shapeFlag:J,patchFlag:ne,dirs:te}=w;if(B!=null&&ho(B,null,R,w,!0),J&256){k.ctx.deactivate(w);return}const de=J&1&&te,pe=!wr(w);let Re;if(pe&&(Re=K&&K.onVnodeBeforeUnmount)&&yt(Re,k,w),J&6)we(w.component,R,D);else{if(J&128){w.suspense.unmount(R,D);return}de&&gn(w,null,k,"beforeUnmount"),J&64?w.type.remove(w,k,R,V,ee,D):j&&(U!==ve||ne>0&&ne&64)?Ce(j,k,R,!1,!0):(U===ve&&ne&384||!V&&J&16)&&Ce(G,k,R),D&&ct(w)}(pe&&(Re=K&&K.onVnodeUnmounted)||de)&&rt(()=>{Re&&yt(Re,k,w),de&&gn(w,null,k,"unmounted")},R)},ct=w=>{const{type:k,el:R,anchor:D,transition:V}=w;if(k===ve){tt(R,D);return}if(k===Ds){_(w);return}const U=()=>{s(R),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(w.shapeFlag&1&&V&&!V.persisted){const{leave:K,delayLeave:B}=V,G=()=>K(R,U);B?B(w.el,U,G):G()}else U()},tt=(w,k)=>{let R;for(;w!==k;)R=f(w),s(w),w=R;s(k)},we=(w,k,R)=>{const{bum:D,scope:V,update:U,subTree:K,um:B}=w;D&&Ms(D),V.stop(),U&&(U.active=!1,ge(K,w,k,R)),B&&rt(B,k),rt(()=>{w.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},Ce=(w,k,R,D=!1,V=!1,U=0)=>{for(let K=U;Kw.shapeFlag&6?M(w.component.subTree):w.shapeFlag&128?w.suspense.next():f(w.anchor||w.el);let W=!1;const q=(w,k,R)=>{w==null?k._vnode&&ge(k._vnode,null,null,!0):g(k._vnode||null,w,k,null,null,null,R),W||(W=!0,Pu(),co(),W=!1),k._vnode=w},ee={p:g,um:ge,m:Ee,r:ct,mt:z,mc:A,pc:F,pbc:O,n:M,o:e};let Te,De;return t&&([Te,De]=t(ee)),{render:q,hydrate:Te,createApp:qg(q,Te)}}function ba({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ir({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Oc(e,t,n=!1){const r=e.children,s=t.children;if(re(r)&&re(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function _h(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_h(t)}const im=e=>e.__isTeleport,Hs=e=>e&&(e.disabled||e.disabled===""),zu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ol=(e,t)=>{const n=e&&e.to;return Ne(n)?t?t(n):null:n},om={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:g,createComment:p}}=u,S=Hs(t.props);let{shapeFlag:y,children:v,dynamicChildren:_}=t;if(e==null){const x=t.el=g(""),E=t.anchor=g("");h(x,n,r),h(E,n,r);const C=t.target=ol(t.props,m),A=t.targetAnchor=g("");C&&(h(A,C),o==="svg"||zu(C)?o="svg":(o==="mathml"||Wu(C))&&(o="mathml"));const P=(O,I)=>{y&16&&c(v,O,I,s,i,o,a,l)};S?P(n,E):C&&P(C,A)}else{t.el=e.el;const x=t.anchor=e.anchor,E=t.target=e.target,C=t.targetAnchor=e.targetAnchor,A=Hs(e.props),P=A?n:E,O=A?x:C;if(o==="svg"||zu(E)?o="svg":(o==="mathml"||Wu(E))&&(o="mathml"),_?(f(e.dynamicChildren,_,P,s,i,o,a),Oc(e,t,!0)):l||d(e,t,P,O,s,i,o,a,!1),S)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Di(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ol(t.props,m);I&&Di(t,I,null,u,0)}else A&&Di(t,E,C,u,1)}Sh(t)},remove(e,t,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&i(c),o&&i(u),a&16){const h=o||!Hs(f);for(let m=0;m0?Yt||Zr:null,Ch(),os>0&&Yt&&Yt.push(e),e}function Qe(e,t,n,r,s,i){return kh(tn(e,t,n,r,s,i,!0))}function Me(e,t,n,r,s){return kh(b(e,t,n,r,s,!0))}function Tr(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Eh=({key:e})=>e??null,Xi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||Pe(e)||oe(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function tn(e,t=null,n=null,r=0,s=null,i=e===ve?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Eh(t),ref:t&&Xi(t),scopeId:Do,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?(Rc(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ne(n)?8:16),os>0&&!o&&Yt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Yt.push(l),l}const b=cm;function cm(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===J1)&&(e=st),Tr(e)){const a=xn(e,t,!0);return n&&Rc(a,n),os>0&&!i&&Yt&&(a.shapeFlag&6?Yt[Yt.indexOf(e)]=a:Yt.push(a)),a.patchFlag|=-2,a}if(pm(e)&&(e=e.__vccOpts),t){t=xh(t);let{class:a,style:l}=t;a&&!Ne(a)&&(t.class=kr(a)),Ve(l)&&(B1(l)&&!re(l)&&(l=Ge({},l)),t.style=mi(l))}const o=Ne(e)?1:X1(e)?128:im(e)?64:Ve(e)?4:oe(e)?2:0;return tn(e,t,n,r,s,o,i,!0)}function xh(e){return e?B1(e)||hh(e)?Ge({},e):e:null}function xn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?xe(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Eh(u),ref:t&&t.ref?n&&i?re(i)?i.concat(Xi(t)):[i,Xi(t)]:Xi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&(c.transition=l.clone(c)),c}function Ns(e=" ",t=0){return b(xr,null,e,t)}function Th(e,t){const n=b(Ds,null,e);return n.staticCount=t,n}function bt(e="",t=!1){return t?(ce(),Me(st,null,e)):b(st,null,e)}function qt(e){return e==null||typeof e=="boolean"?b(st):re(e)?b(ve,null,e.slice()):typeof e=="object"?Un(e):b(xr,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function Rc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Rc(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!hh(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ke},n=32):(t=String(t),r&64?(n=16,t=[Ns(t)]):n=8);e.children=t,e.shapeFlag|=n}function xe(...e){const t={};for(let n=0;nJe||Ke;let go,al;{const e=x1(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};go=t("__VUE_INSTANCE_SETTERS__",n=>Je=n),al=t("__VUE_SSR_SETTERS__",n=>bi=n)}const Ar=e=>{const t=Je;return go(e),e.scope.on(),()=>{e.scope.off(),go(t)}},ll=()=>{Je&&Je.scope.off(),go(null)};function Ah(e){return e.vnode.shapeFlag&4}let bi=!1;function hm(e,t=!1){t&&al(t);const{props:n,children:r}=e.vnode,s=Ah(e);Kg(e,n,s,t),Zg(e,r);const i=s?gm(e,t):void 0;return t&&al(!1),i}function gm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ng);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?vm(e):null,i=Ar(e);Qn();const o=Jn(r,e,0,[e.props,s]);if(er(),i(),ac(o)){if(o.then(ll,ll),t)return o.then(a=>{cl(e,a,t)}).catch(a=>{bs(a,e,0)});e.asyncDep=o}else cl(e,o,t)}else Lh(e,t)}function cl(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.setupState=z1(t)),Lh(e,n)}let qu;function Lh(e,t,n){const r=e.type;if(!e.render){if(!t&&qu&&!r.render){const s=r.template||Ac(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ge(Ge({isCustomElement:i,delimiters:a},o),l);r.render=qu(s,u)}}e.render=r.render||Kt}{const s=Ar(e);Qn();try{Bg(e)}finally{er(),s()}}}const mm={get(e,t){return wt(e,"get",""),e[t]}};function vm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,mm),slots:e.slots,emit:e.emit,expose:t}}function Fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(z1(mc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vs)return Vs[n](e)},has(t,n){return n in t||n in Vs}}))}function ul(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function pm(e){return oe(e)&&"__vccOpts"in e}const T=(e,t)=>rg(e,t,bi);function vt(e,t,n){const r=arguments.length;return r===2?Ve(t)&&!re(t)?Tr(t)?b(e,null,[t]):b(e,t):b(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tr(n)&&(n=[n]),b(e,t,n))}const Ph="3.4.27";/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const ym="http://www.w3.org/2000/svg",bm="http://www.w3.org/1998/Math/MathML",zn=typeof document<"u"?document:null,Ku=zn&&zn.createElement("template"),wm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?zn.createElementNS(ym,e):t==="mathml"?zn.createElementNS(bm,e):zn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zn.createTextNode(e),createComment:e=>zn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ku.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=Ku.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vn="transition",ks="animation",as=Symbol("_vtc"),un=(e,{slots:t})=>vt(Rg,Rh(e),t);un.displayName="Transition";const Oh={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},_m=un.props=Ge({},nh,Oh),or=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yu=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function Rh(e){const t={};for(const L in e)L in Oh||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=Sm(s),g=m&&m[0],p=m&&m[1],{onBeforeEnter:S,onEnter:y,onEnterCancelled:v,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=S,onAppear:C=y,onAppearCancelled:A=v}=t,P=(L,$,z)=>{Dn(L,$?c:a),Dn(L,$?u:o),z&&z()},O=(L,$)=>{L._isLeaving=!1,Dn(L,d),Dn(L,h),Dn(L,f),$&&$()},I=L=>($,z)=>{const Q=L?C:y,H=()=>P($,L,z);or(Q,[$,H]),Ju(()=>{Dn($,L?l:i),bn($,L?c:a),Yu(Q)||Zu($,r,g,H)})};return Ge(t,{onBeforeEnter(L){or(S,[L]),bn(L,i),bn(L,o)},onBeforeAppear(L){or(E,[L]),bn(L,l),bn(L,u)},onEnter:I(!1),onAppear:I(!0),onLeave(L,$){L._isLeaving=!0;const z=()=>O(L,$);bn(L,d),bn(L,f),Mh(),Ju(()=>{L._isLeaving&&(Dn(L,d),bn(L,h),Yu(_)||Zu(L,r,p,z))}),or(_,[L,z])},onEnterCancelled(L){P(L,!1),or(v,[L])},onAppearCancelled(L){P(L,!0),or(A,[L])},onLeaveCancelled(L){O(L),or(x,[L])}})}function Sm(e){if(e==null)return null;if(Ve(e))return[wa(e.enter),wa(e.leave)];{const t=wa(e);return[t,t]}}function wa(e){return E1(e)}function bn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[as]||(e[as]=new Set)).add(t)}function Dn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[as];n&&(n.delete(t),n.size||(e[as]=void 0))}function Ju(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cm=0;function Zu(e,t,n,r){const s=e._endId=++Cm,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Ih(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[m]||"").split(", "),s=r(`${Vn}Delay`),i=r(`${Vn}Duration`),o=Xu(s,i),a=r(`${ks}Delay`),l=r(`${ks}Duration`),u=Xu(a,l);let c=null,d=0,f=0;t===Vn?o>0&&(c=Vn,d=o,f=i.length):t===ks?u>0&&(c=ks,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?Vn:ks:null,f=c?c===Vn?i.length:l.length:0);const h=c===Vn&&/\b(transform|all)(,|$)/.test(r(`${Vn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Xu(e,t){for(;e.lengthQu(n)+Qu(e[r])))}function Qu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Mh(){return document.body.offsetHeight}function km(e,t,n){const r=e[as];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mo=Symbol("_vod"),$h=Symbol("_vsh"),Ic={beforeMount(e,{value:t},{transition:n}){e[mo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Es(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Es(e,!0),r.enter(e)):r.leave(e,()=>{Es(e,!1)}):Es(e,t))},beforeUnmount(e,{value:t}){Es(e,t)}};function Es(e,t){e.style.display=t?e[mo]:"none",e[$h]=!t}const Em=Symbol(""),xm=/(^|;)\s*display\s*:/;function Tm(e,t,n){const r=e.style,s=Ne(n);let i=!1;if(n&&!s){if(t)if(Ne(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Qi(r,a,"")}else for(const o in t)n[o]==null&&Qi(r,o,"");for(const o in n)o==="display"&&(i=!0),Qi(r,o,n[o])}else if(s){if(t!==n){const o=r[Em];o&&(n+=";"+o),r.cssText=n,i=xm.test(n)}}else t&&e.removeAttribute("style");mo in e&&(e[mo]=i?r.display:"",e[$h]&&(r.display="none"))}const ed=/\s*!important$/;function Qi(e,t,n){if(re(n))n.forEach(r=>Qi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Am(e,t);ed.test(n)?e.setProperty(ms(r),n.replace(ed,""),"important"):e[r]=n}}const td=["Webkit","Moz","ms"],_a={};function Am(e,t){const n=_a[t];if(n)return n;let r=en(t);if(r!=="filter"&&r in e)return _a[t]=r;r=vs(r);for(let s=0;sSa||($m.then(()=>Sa=0),Sa=Date.now());function Hm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zt(Dm(r,n.value),t,5,[r])};return n.value=e,n.attached=Vm(),n}function Dm(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const id=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jm=(e,t,n,r,s,i,o,a,l)=>{const u=s==="svg";t==="class"?km(e,r,u):t==="style"?Tm(e,n,r):hi(t)?ic(t)||Im(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nm(e,t,r,u))?Pm(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Lm(e,t,r,u))};function Nm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&id(t)&&oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return id(t)&&Ne(n)?!1:t in e}const Vh=new WeakMap,Hh=new WeakMap,vo=Symbol("_moveCb"),od=Symbol("_enterCb"),Dh={name:"TransitionGroup",props:Ge({},_m,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Or(),r=th();let s,i;return Bo(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Wm(s[0].el,n.vnode.el,o))return;s.forEach(Fm),s.forEach(Um);const a=s.filter(zm);Mh(),a.forEach(l=>{const u=l.el,c=u.style;bn(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[vo]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[vo]=null,Dn(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=ae(e),a=Rh(o);let l=o.tag||ve;if(s=[],i)for(let u=0;udelete e.mode;Dh.props;const Uo=Dh;function Fm(e){const t=e.el;t[vo]&&t[vo](),t[od]&&t[od]()}function Um(e){Hh.set(e,e.el.getBoundingClientRect())}function zm(e){const t=Vh.get(e),n=Hh.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function Wm(e,t,n){const r=e.cloneNode(),s=e[as];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Ih(r);return i.removeChild(r),o}const Gm=["ctrl","shift","alt","meta"],qm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gm.some(n=>e[`${n}Key`]&&!t.includes(n))},IS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{Nh().render(...e)},Ym=(...e)=>{const t=Nh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Fh(r);if(!s)return;const i=t._component;!oe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,Bh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Jm=(...e)=>{const t=Km().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Fh(r);if(s)return n(s,!0,Bh(s))},t};function Bh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fh(e){return Ne(e)?document.querySelector(e):e}const Zm=/"(?:_|\\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*:/,Xm=/"(?: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*:/,Qm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ev(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){tv(e);return}return t}function tv(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ti(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Qm.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zm.test(e)||Xm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ev)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const nv=/#/g,rv=/&/g,sv=/\//g,iv=/=/g,Mc=/\+/g,ov=/%5e/gi,av=/%60/gi,lv=/%7c/gi,cv=/%20/gi;function uv(e){return encodeURI(""+e).replace(lv,"|")}function dl(e){return uv(typeof e=="string"?e:JSON.stringify(e)).replace(Mc,"%2B").replace(cv,"+").replace(nv,"%23").replace(rv,"%26").replace(av,"`").replace(ov,"^").replace(sv,"%2F")}function Ca(e){return dl(e).replace(iv,"%3D")}function po(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function dv(e){return po(e.replace(Mc," "))}function fv(e){return po(e.replace(Mc," "))}function hv(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=dv(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=fv(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function gv(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ca(e)}=${dl(n)}`).join("&"):`${Ca(e)}=${dl(t)}`:Ca(e)}function mv(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gv(t,e[t])).filter(Boolean).join("&")}const vv=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,pv=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,yv=/^([/\\]\s*){2,}[^/\\]/,bv=/^[\s\0]*(blob|data|javascript|vbscript):$/i,wv=/\/$|\/\?|\/#/,_v=/^\.?\//;function Rr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?vv.test(e):pv.test(e)||(t.acceptRelative?yv.test(e):!1)}function Sv(e){return!!e&&bv.test(e)}function fl(e="",t){return t?wv.test(e):e.endsWith("/")}function $c(e="",t){if(!t)return(fl(e)?e.slice(0,-1):e)||"/";if(!fl(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function hl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(fl(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function Cv(e=""){return e.startsWith("/")}function ld(e=""){return Cv(e)?e:"/"+e}function kv(e,t){if(zh(t)||Rr(e))return e;const n=$c(t);return e.startsWith(n)?e:Vc(n,e)}function cd(e,t){if(zh(t))return e;const n=$c(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Uh(e,t){const n=zo(e),r={...hv(n.search),...t};return n.search=mv(r),Tv(n)}function zh(e){return!e||e==="/"}function Ev(e){return e&&e!=="/"}function Vc(e,...t){let n=e||"";for(const r of t.filter(s=>Ev(s)))if(n){const s=r.replace(_v,"");n=hl(n)+s}else n=r;return n}function Wh(...e){var o,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const c of n)if(!(!c||c==="/")){for(const[d,f]of c.split(t).entries())if(!(!f||f===".")){if(f===".."){if(r.length===1&&Rr(r[0]))continue;r.pop(),s--;continue}if(d===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+f;continue}r.push(f),s++}}let i=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(l=n[0])!=null&&l.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(u=n[n.length-1])!=null&&u.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function xv(e,t,n={}){return n.trailingSlash||(e=hl(e),t=hl(t)),n.leadingSlash||(e=ld(e),t=ld(t)),n.encoding||(e=po(e),t=po(t)),e===t}const Gh=Symbol.for("ufo:protocolRelative");function zo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Rr(e,{acceptRelative:!0}))return t?zo(t+e):ud(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=ud(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[Gh]:!r}}function ud(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Tv(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Gh]?(e.protocol||"")+"//":"")+s+i+t+n+r}class Av extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Lv(e){var l,u,c,d,f;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((d=e.options)==null?void 0:d.method)||"GET",r=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"",o=`${s}: ${i}${t?` ${t}`:""}`,a=new Av(o,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,m]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[m]}});return a}const Pv=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function dd(e="GET"){return Pv.has(e.toUpperCase())}function Ov(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Rv=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Iv=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Mv(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Iv.test(t)?"json":Rv.has(t)||t.startsWith("text/")?"text":"blob"}function $v(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,i)}return r}const Vv=new Set([408,409,425,429,500,502,503,504]),Hv=new Set([101,204,205,304]);function qh(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=dd(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):Vv.has(d))){const f=a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),i(a.request,{...a.options,retry:c-1})}}const u=Lv(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){var h;const c={request:l,options:$v(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=kv(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Uh(c.request,{...c.options.params,...c.options.query}))),c.options.body&&dd(c.options.method)&&(Ov(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let d;if(!c.options.signal&&c.options.timeout){const m=new r;d=setTimeout(()=>m.abort(),c.options.timeout),c.options.signal=m.signal}try{c.response=await t(c.request,c.options)}catch(m){return c.error=m,c.options.onRequestError&&await c.options.onRequestError(c),await s(c)}finally{d&&clearTimeout(d)}if(c.response.body&&!Hv.has(c.response.status)&&c.options.method!=="HEAD"){const m=(c.options.parseResponse?"json":c.options.responseType)||Mv(c.response.headers.get("content-type")||"");switch(m){case"json":{const g=await c.response.text(),p=c.options.parseResponse||ti;c.response._data=p(g);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[m]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={})=>qh({...e,defaults:{...e.defaults,...a}}),o}const Hc=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")}(),Dv=Hc.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),jv=Hc.Headers,Nv=Hc.AbortController,Bv=qh({fetch:Dv,Headers:jv,AbortController:Nv}),Fv=Bv,Uv=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},yo=Uv().app,zv=()=>yo.baseURL,Wv=()=>yo.buildAssetsDir,Dc=(...e)=>Wh(Kh(),Wv(),...e),Kh=(...e)=>{const t=yo.cdnURL||yo.baseURL;return e.length?Wh(t,...e):t};globalThis.__buildAssetsURL=Dc,globalThis.__publicAssetsURL=Kh;globalThis.$fetch||(globalThis.$fetch=Fv.create({baseURL:zv()}));function gl(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?gl(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const Gv={run:e=>e()},qv=()=>Gv,Yh=typeof console.createTask<"u"?console.createTask:qv;function Kv(e,t){const n=t.shift(),r=Yh(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function Yv(e,t){const n=t.shift(),r=Yh(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function ka(e,t){for(const n of[...e])n(t)}class Jv{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=gl(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=gl(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Kv,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Yv,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ka(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&ka(this._after,s)}):(this._after&&s&&ka(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Jh(){return new Jv}function Zv(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&t===void 0){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;ml.add(u);try{const c=s?s.run(o,a):a();return n||(t=void 0),await c}finally{ml.delete(u)}}}}function Xv(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zv({...e,...r})),t[n],t[n]}}}const bo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},fd="__unctx__",Qv=bo[fd]||(bo[fd]=Xv()),ep=(e,t={})=>Qv.get(e,t),hd="__unctx_async_handlers__",ml=bo[hd]||(bo[hd]=new Set);function kn(e){const t=[];for(const s of ml){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Zh=ep("nuxt-app",{asyncContext:!1}),tp="__nuxt_plugin";function np(e){let t=0;const n={_scope:ps(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Be({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>n._scope.run(()=>ip(n,s)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Jh(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;ji(n,o,i),ji(n.vueApp.config.globalProperties,o,i)},ji(n.vueApp,"$nuxt",n),ji(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||Ue;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}async function rp(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function sp(e,t){const n=[],r=[],s=[],i=[];let o=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(d=>t.some(f=>f._name===d)&&!n.includes(d)))??[];if(u.length>0)r.push([new Set(u),l]);else{const d=rp(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(h)))})))});l.parallel?s.push(d.catch(f=>i.push(f))):await d}}for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l{}),e,{[tp]:!0,_name:t})}function ip(e,t,n){const r=()=>t();return Zh.set(e),e.vueApp.runWithContext(r)}function op(){var t;let e;return Lc()&&(e=(t=Or())==null?void 0:t.appContext.app.$nuxt),e=e||Zh.tryUse(),e||null}function Ue(){const e=op();if(!e)throw new Error("[nuxt] instance unavailable");return e}function Wo(e){return Ue().$config}function ji(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Ni=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function ap(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},s=(t||{}).decode||up;let i=0;for(;i{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!pd(s)&&(c=fp),e.excludeKeys&&(u=u.filter(f=>!e.excludeKeys(f)),c=c.filter(f=>!e.excludeKeys(f))),r("object:"+(u.length+c.length)+":");const d=f=>{this.dispatch(f),r(":"),e.excludeValues||this.dispatch(s[f]),r(",")};for(const f of u)d(f);for(const f of c)d(f)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=new Map,a=s.map(l=>{const u=Xh(e);u.dispatch(l);for(const[c,d]of u.getContext())o.set(c,d);return u.toString()});return n=o,a.sort(),this.array(a,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),pd(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported +Use "options.replacer" or "options.ignoreUnknown" +`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const Qh="[native code] }",hp=Qh.length;function pd(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-hp)===Qh}function gp(e,t,n={}){return e===t||vd(e,n)===vd(t,n)}function mp(e,t){return{ctx:{table:e},matchAll:n=>t2(n,e)}}function e2(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,e2(s)])):new Map(Object.entries(e[n]));return t}function vp(e){return mp(e2(e))}function t2(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,o]of yd(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(o);for(const[i,o]of yd(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...t2(a,o))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function yd(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Ea(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function vl(e,t,n=".",r){if(!Ea(t))return vl(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ea(o)&&Ea(s[i])?s[i]=vl(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function n2(e){return(...t)=>t.reduce((n,r)=>vl(n,r,"",e),{})}const r2=n2(),pp=n2((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function yp(e,t){try{return t in e}catch{return!1}}var bp=Object.defineProperty,wp=(e,t,n)=>t in e?bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dr=(e,t,n)=>(wp(e,typeof t!="symbol"?t+"":t,n),n);class pl extends Error{constructor(t,n={}){super(t,n),dr(this,"statusCode",500),dr(this,"fatal",!1),dr(this,"unhandled",!1),dr(this,"statusMessage"),dr(this,"data"),dr(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:bl(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=s2(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}dr(pl,"__h3_error__",!0);function yl(e){if(typeof e=="string")return new pl(e);if(_p(e))return e;const t=new pl(e.message??e.statusMessage??"",{cause:e.cause||e});if(yp(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=bl(e.statusCode,t.statusCode):e.status&&(t.statusCode=bl(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;s2(t.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 e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function _p(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Sp=/[^\u0009\u0020-\u007E]/g;function s2(e=""){return e.replace(Sp,"")}function bl(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Cp=Symbol("layout-meta"),_r=Symbol("route"),pn=()=>{var e;return(e=Ue())==null?void 0:e.$router},Go=()=>Lc()?Se(_r,Ue()._route):Ue()._route;const kp=()=>{try{if(Ue()._processingMiddleware)return!0}catch{return!1}return!1},wo=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Uh(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,d])=>d!==void 0).map(([c,d])=>`${c.toLowerCase()}=${d}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||Rr(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=zo(n).protocol;if(a&&Sv(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const s=kp();if(!r&&s)return e;const i=pn(),o=Ue();return r?(o._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},i2="__nuxt_error",qo=()=>ie(Ue().payload,"error"),Yr=e=>{const t=Ko(e);try{const n=Ue(),r=qo();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Ep=async(e={})=>{const t=Ue(),n=qo();t.callHook("app:error:cleared",e),e.redirect&&await pn().replace(e.redirect),n.value=null},xp=e=>!!e&&typeof e=="object"&&i2 in e,Ko=e=>{const t=yl(e);return Object.defineProperty(t,i2,{value:!0,configurable:!1,writable:!1}),t},Tp=-1,Ap=-2,Lp=-3,Pp=-4,Op=-5,Rp=-6;function Ip(e,t){return Mp(JSON.parse(e),t)}function Mp(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===Tp)return;if(i===Lp)return NaN;if(i===Pp)return 1/0;if(i===Op)return-1/0;if(i===Rp)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[i]=u(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function bd(e){return e._h||jc(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function a2(e,t){const{props:n,tag:r}=e;if(Dp.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return`${r}:${i}:${o}`}return!1}function wd(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function l2(e,t){const n=[],r=t.resolveKeyData||(i=>i.key),s=t.resolveValueData||(i=>i.value);for(const[i,o]of Object.entries(e))n.push(...(Array.isArray(o)?o:[o]).map(a=>{const l={key:i,value:a},u=s(l);return typeof u=="object"?l2(u,t):Array.isArray(u)?u:{[typeof t.key=="function"?t.key(l):t.key]:r(l),[typeof t.value=="function"?t.value(l):t.value]:u}}).flat());return n}function c2(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=c2(r,t)),t.resolve){const s=t.resolve({key:n,value:r});if(typeof s<"u")return s}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const gt=e=>({keyValue:e,metaKey:"property"}),xa=e=>({keyValue:e}),Nc={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${_n(e)}=${t}`}}},articleExpirationTime:gt("article:expiration_time"),articleModifiedTime:gt("article:modified_time"),articlePublishedTime:gt("article:published_time"),bookReleaseDate:gt("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${_n(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:gt("fb:app_id"),msapplicationConfig:xa("msapplication-Config"),msapplicationTileColor:xa("msapplication-TileColor"),msapplicationTileImage:xa("msapplication-TileImage"),ogAudioSecureUrl:gt("og:audio:secure_url"),ogAudioUrl:gt("og:audio"),ogImageSecureUrl:gt("og:image:secure_url"),ogImageUrl:gt("og:image"),ogSiteName:gt("og:site_name"),ogVideoSecureUrl:gt("og:video:secure_url"),ogVideoUrl:gt("og:video"),profileFirstName:gt("profile:first_name"),profileLastName:gt("profile:last_name"),profileUsername:gt("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${_n(e)}`:`${_n(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},u2=["og","book","article","profile"];function d2(e){var n;const t=_n(e).split(":")[0];return u2.includes(t)?"property":((n=Nc[e])==null?void 0:n.metaKey)||"name"}function Np(e){var t;return((t=Nc[e])==null?void 0:t.keyValue)||_n(e)}function _n(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return u2.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function wl(e){if(Array.isArray(e))return e.map(n=>wl(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[_n(n)]=wl(r);return t}function Bp(e,t){const n=Nc[t];return t==="refresh"?`${e.seconds};url=${e.url}`:c2(wl(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:s}){if(r===null)return"";if(typeof r=="boolean")return`${s}`},...n==null?void 0:n.unpack})}const f2=["og:image","og:video","og:audio","twitter:image"];function h2(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function _d(e,t){const n=h2(t),r=_n(e),s=d2(r);if(f2.includes(r)){const i={};return Object.entries(n).forEach(([o,a])=>{i[`${e}${o==="url"?"":`${o.charAt(0).toUpperCase()}${o.slice(1)}`}`]=a}),Bc(i).sort((o,a)=>{var l,u;return(((l=o[s])==null?void 0:l.length)||0)-(((u=a[s])==null?void 0:u.length)||0)})}return[{[s]:r,...n}]}function Bc(e){const t=[],n={};Object.entries(e).forEach(([s,i])=>{if(!Array.isArray(i)){if(typeof i=="object"&&i){if(f2.includes(_n(s))){t.push(..._d(s,i));return}n[s]=h2(i)}else n[s]=i;return}i.forEach(o=>{t.push(...typeof o=="string"?Bc({[s]:o}):_d(s,o))})});const r=l2(n,{key({key:s}){return d2(s)},value({key:s}){return s==="charset"?"charset":"content"},resolveKeyData({key:s}){return Np(s)},resolveValueData({value:s,key:i}){return s===null?"_null":typeof s=="object"?Bp(s,i):typeof s=="number"?s.toString():s}});return[...t,...r].map(s=>(s.content==="_null"&&(s.content=null),s))}async function Fp(e,t,n){const r={tag:e,props:await g2(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return o2.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(s)||Vp.includes(r.tag))&&(r[s==="children"?"innerHTML":s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function Up(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,i])=>e==="style"?`${s}:${i}`:s)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(s=>s.trim()).filter(Boolean).join(n)}async function g2(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Up(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!o2.includes(n)){const r=String(e[n]),s=n.startsWith("data-");r==="true"||r===""?e[n]=s?"true":!0:e[n]||(s&&r==="false"?e[n]="false":delete e[n])}}return e}const zp=10;async function Wp(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Hp.includes(n)).forEach(([n,r])=>{const s=$p(r);t.push(...s.map(i=>Fp(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[u]||void 0,t):a=t[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=e;try{s=decodeURI(e)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(Hn)&&(e.endsWith(Hn)&&(e=e.slice(0,-Hn.length).trim()),e.startsWith(Hn)&&(e=e.slice(Hn.length).trim()),e=e.replace(new RegExp(`\\${Hn}\\s*\\${Hn}`,"g"),Hn),e=to(e,{separator:n},n)),e}async function m2(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await e.resolveTags()).map(d=>({tag:d,id:eo.includes(d.tag)?bd(d):d.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const d of["body","head"]){const f=(c=n[d])==null?void 0:c.children,h=[];for(const m of[...f].filter(g=>eo.includes(g.tagName.toLowerCase()))){const g={tag:m.tagName.toLowerCase(),props:await g2(m.getAttributeNames().reduce((y,v)=>({...y,[v]:m.getAttribute(v)}),{})),innerHTML:m.innerHTML};let p=1,S=a2(g);for(;S&&h.find(y=>y._d===S);)S=`${S}:${p++}`;g._d=S||void 0,h.push(g),i.elMap[m.getAttribute("data-hid")||bd(g)]=m}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(d,f,h){const m=`${d}:${f}`;i.sideEffects[m]=h,delete i.pendingSideEffects[m]}function a({id:d,$el:f,tag:h}){const m=h.tag.endsWith("Attrs");i.elMap[d]=f,m||(["textContent","innerHTML"].forEach(g=>{h[g]&&h[g]!==f[g]&&(f[g]=h[g])}),o(d,"el",()=>{var g;(g=i.elMap[d])==null||g.remove(),delete i.elMap[d]}));for(const[g,p]of Object.entries(h._eventHandlers||{}))f.getAttribute(`data-${g}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:f).addEventListener(g.replace("on",""),p.bind(f)),f.setAttribute(`data-${g}`,""));Object.entries(h.props).forEach(([g,p])=>{const S=`attr:${g}`;if(g==="class")for(const y of(p||"").split(" ").filter(Boolean))m&&o(d,`${S}:${y}`,()=>f.classList.remove(y)),!f.classList.contains(y)&&f.classList.add(y);else if(g==="style")for(const y of(p||"").split(";").filter(Boolean)){const[v,..._]=y.split(":").map(x=>x.trim());o(d,`${S}:${y}:${v}`,()=>{f.style.removeProperty(v)}),f.style.setProperty(v,_.join(":"))}else f.getAttribute(g)!==p&&f.setAttribute(g,p===!0?"":String(p)),m&&o(d,S,()=>f.removeAttribute(g))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const d of s){const{tag:f,shouldRender:h,id:m}=d;if(h){if(f.tag==="title"){n.title=f.textContent;continue}d.$el=d.$el||i.elMap[m],d.$el?a(d):eo.includes(f.tag)&&l.push(d)}}for(const d of l){const f=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),a(d),u[f]=u[f]||n.createDocumentFragment(),u[f].appendChild(d.$el)}for(const d of s)await e.hooks.callHook("dom:renderTag",d,n,o);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(i.pendingSideEffects).forEach(d=>d()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:s})}async function qp(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await m2(e,t),delete e._domUpdatePromise,r()}))}function Kp(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){qp(i,e)}}}}}const Yp=["templateParams","htmlAttrs","bodyAttrs"],Jp={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=a2(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Yp.includes(r.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[s].props={...l,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(_o(r)>_o(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(eo.includes(r.tag)&&o===0){delete t[s];return}t[s]=r});const n=[];Object.values(t).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Zp={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Xp=["script","link","bodyAttrs"],Qp=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Xp.includes(r.tag)))Object.entries(n.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"&&(e.ssr&&kd.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=s)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||jc(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,s;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(o=>kd.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(s=(r=n._eventHandlers)==null?void 0:r[o])==null||s.call(t,new Event(o.replace("on","")))}}}}),ey=["link","style","script","noscript"],ty={hooks:{"tag:normalise":({tag:e})=>{e.key&&ey.includes(e.tag)&&(e.props["data-hid"]=e._h=jc(e.key))}}},ny={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of Gp)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>_o(n)-_o(r))}}},ry={meta:"content",link:"href",htmlAttrs:"lang"},sy=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,s=n.findIndex(l=>l.tag==="templateParams"),i=s!==-1?n[s].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=to(i.pageTitle||r||"",i,o);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=ry[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=to(l.props[u],i,o):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=to(l[c],i,o))})}e._templateParams=i,e._separator=o,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),iy={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(s=>s.tag==="titleTemplate");const r=t.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=wd(t[n].textContent,t[r].textContent);s!==null?t[r].textContent=s||t[r].textContent:delete t[r]}else if(n!==-1){const s=wd(t[n].textContent);s!==null&&(t[n].textContent=s,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},oy={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!o.some(c=>c.key===u.key))&&(o.push(u),Ed(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:s++,input:l,...u};return Ed(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(d=>d._i!==c._i),t.callHook("entries:updated",a),r()},patch(d){i=i.map(f=>(f._i===c._i&&(f.input=c.input=d),f)),r()}}},async resolveTags(){const l={tags:[],entries:[...i]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const d of await Wp(u)){const f={tag:d,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Jp,Zp,Qp,ty,ny,sy,iy,oy,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function cy(){return v2}const uy=Ph.startsWith("3");function dy(e){return typeof e=="function"?e():Z(e)}function So(e,t=""){if(e instanceof Promise)return e;const n=dy(e);return!e||!n?n:Array.isArray(n)?n.map(r=>So(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,Z(s)]:[r,So(s,r)])):n}const fy={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=So(t.input)}}},p2="usehead";function hy(e){return{install(n){uy&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(p2,e))}}.install}function gy(e={}){e.domDelayFn=e.domDelayFn||(n=>qe(()=>setTimeout(()=>n(),0)));const t=ay(e);return t.use(fy),t.install=hy(t),t}const _l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sl="__unhead_injection_handler__";function my(e){_l[Sl]=e}function vy(){if(Sl in _l)return _l[Sl]();const e=Se(p2);return e||cy()}function Fc(e,t={}){const n=t.head||vy();if(n)return n.ssr?n.push(e,t):py(n,e,t)}function py(e,t,n={}){const r=N(!1),s=N({});nn(()=>{s.value=r.value?{}:So(t)});const i=e.push(s.value,n);return se(s,a=>{i.patch(a)}),Or()&&(it(()=>{i.dispose()}),Tc(()=>{r.value=!0}),xc(()=>{r.value=!1})),i}function yy(e,t){const{title:n,titleTemplate:r,...s}=e;return Fc({title:n,titleTemplate:r,_flatMeta:s},{...t,transform(i){const o=Bc({...i._flatMeta});return delete i._flatMeta,{...i,meta:o}}})}function hn(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=hn(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:hn(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=hn(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=hn(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(hn(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(hn(i),hn(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(hn(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const by={nuxt:{buildId:"82b60f10-43b9-48c2-abd3-3a700155b368"}},wy=pp(by);function y2(){const e=Ue();return e._appConfig||(e._appConfig=Be(wy)),e._appConfig}const Cl={name:"slide-y",mode:"out-in"},_y=!1,$S={componentName:"NuxtLink"},Sy="#__nuxt";let no,b2;function Cy(){var t;const e=(t=y2().nuxt)==null?void 0:t.buildId;return no=$fetch(Dc(`builds/meta/${e}.json`)),no.then(n=>{b2=vp(n.matcher)}),no}function Yo(){return no||Cy()}async function Uc(e){return await Yo(),r2({},...b2.matchAll(e).reverse())}function xd(e,t={}){const n=Ey(e,t),r=Ue(),s=r._payloadCache=r._payloadCache||{};return n in s||(s[n]=xy(e).then(i=>i?w2(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const ky="_payload.json";function Ey(e,t={}){var s;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Rr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(s=y2().nuxt)==null?void 0:s.buildId);return Vc(Wo().app.baseURL,n.pathname,ky+(r?`?${r}`:""))}async function w2(e){const t=fetch(e).then(n=>n.text().then(_2));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function xy(e=Go().path){if(e=$c(e),(await Yo()).prerendered.includes(e))return!0;const n=await Uc(e);return!!n.prerender&&!n.redirect}let Bi=null;async function Ty(){if(Bi)return Bi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await _2(e.textContent||""),n=e.dataset.src?await w2(e.dataset.src):void 0;return Bi={...t,...n,...window.__NUXT__},Bi}async function _2(e){return await Ip(e,Ue()._payloadRevivers)}function Ay(e,t){Ue()._payloadRevivers[e]=t}const Td={NuxtError:e=>Ko(e),EmptyShallowRef:e=>le(e==="_"?void 0:e==="0n"?BigInt(0):ti(e)),EmptyRef:e=>N(e==="_"?void 0:e==="0n"?BigInt(0):ti(e)),ShallowRef:e=>le(e),ShallowReactive:e=>vi(e),Ref:e=>N(e),Reactive:e=>Be(e)},Ly=ot({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Td)Ay(r,Td[r]);Object.assign(e.payload,([t,n]=kn(()=>e.runWithContext(Ty)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Py={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},Oy={component:e=>vt(N2,{...e,class:"mdi"})},Fe=typeof window<"u",zc=Fe&&"IntersectionObserver"in window,Ry=Fe&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Ad(e,t,n){Iy(e,t),t.set(e,n)}function Iy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function My(e,t,n){return e.set(S2(e,t),n),n}function ar(e,t){return e.get(S2(e,t))}function S2(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function C2(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;sJo(e[r],t[r]))}function kl(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),C2(e,t.split("."),n))}function wn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return kl(e,t,n);if(Array.isArray(t))return C2(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function k2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function El(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ni(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const Ld=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),VS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Ta(e,t){return t.every(n=>e.hasOwnProperty(n))}function $y(e,t){const n={},r=new Set(Object.keys(e));for(const s of t)r.has(s)&&(n[s]=e[s]);return n}function Pd(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:s[i]=e[i];return[r,s]}function wi(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function HS(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const E2=/^on[^a-z]/,x2=e=>E2.test(e),Vy=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Hy=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function DS(e){return e.isComposing&&Hy.includes(e.key)}function jS(e){const[t,n]=Pd(e,[E2]),r=wi(t,Vy),[s,i]=Pd(n,["class","style","id",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function Dy(e){return e==null?[]:Array.isArray(e)?e:[e]}function NS(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;oe(...i),Z(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function Lr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function BS(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function Od(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Rd(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function jy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(El(i)&&El(o)){r[s]=ft(i,o,n);continue}if(Array.isArray(i)&&Array.isArray(o)&&n){r[s]=n(i,o);continue}r[s]=o}return r}function T2(e){return e.map(t=>t.type===ve?T2(t.children):t).flat()}function Sr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Sr.cache.has(e))return Sr.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Sr.cache.set(e,t),t}Sr.cache=new Map;function Fs(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Fs(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>Fs(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Fs(e,t.component.subTree).flat(1)}return[]}var Fi=new WeakMap,jr=new WeakMap;class Ny{constructor(t){Ad(this,Fi,[]),Ad(this,jr,0),this.size=t}push(t){ar(Fi,this)[ar(jr,this)]=t,My(jr,this,(ar(jr,this)+1)%this.size)}values(){return ar(Fi,this).slice(ar(jr,this)).concat(ar(Fi,this).slice(0,ar(jr,this)))}}function Wc(e){const t=Be({}),n=T(e);return nn(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),pi(t)}function Co(e,t){return e.includes(t)}function A2(e){return e[2].toLowerCase()+e.slice(3)}const Id=()=>[Function,Array];function Md(e,t){return t="on"+vs(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function US(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function L2(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s=0);return r}function Eo(e,t){var r,s,i,o;const n=ko(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=L2(n,t);a?a.focus():Eo(e,t==="next"?"first":"last")}}function zS(e){return e==null||typeof e=="string"&&e.trim()===""}function WS(){}function By(e,t){if(!(Fe&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Fy(e){return e.some(t=>Tr(t)?t.type===st?!1:t.type!==ve||Fy(t.children):!0)?e:null}function Uy(e,t){if(!Fe||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function $d(e,t){const n=le();return nn(()=>{n.value=e()},{flush:"sync",...t}),ys(n)}function zy(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,l=s.bottom;return n>=i&&n<=a&&r>=o&&r<=l}const P2=["top","bottom"],Wy=["start","end","left","right"];function xl(e,t){let[n,r]=e.split(" ");return r||(r=Co(P2,n)?"start":Co(Wy,n)?"top":"center"),{side:Tl(n,t),align:Tl(r,t)}}function Tl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Aa(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function La(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Vd(e){return{side:e.align,align:e.side}}function Hd(e){return Co(P2,e.side)?"y":"x"}class Cr{constructor(t){let{x:n,y:r,width:s,height:i}=t;this.x=n,this.y=r,this.width=s,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Dd(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function O2(e){return Array.isArray(e)?new Cr({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function R2(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,l;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=+s[0],o=+s[5],a=+s[12],l=+s[13];else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=+s[0],o=+s[3],a=+s[4],l=+s[5];else return new Cr(t);const u=n.transformOrigin,c=t.x-a-(1-i)*parseFloat(u),d=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new Cr({x:c,y:d,width:f,height:h})}else return new Cr(t)}function Rs(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const ro=new WeakMap;function Gy(e,t){Object.keys(t).forEach(n=>{if(x2(n)){const r=A2(n),s=ro.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),ro.has(e)||ro.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function qy(e,t){Object.keys(t).forEach(n=>{if(x2(n)){const r=A2(n),s=ro.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Nr=2.4,jd=.2126729,Nd=.7151522,Bd=.072175,Ky=.55,Yy=.58,Jy=.57,Zy=.62,Ui=.03,Fd=1.45,Xy=5e-4,Qy=1.25,e3=1.25,Ud=.078,zd=12.82051282051282,zi=.06,Wd=.001;function Gd(e,t){const n=(e.r/255)**Nr,r=(e.g/255)**Nr,s=(e.b/255)**Nr,i=(t.r/255)**Nr,o=(t.g/255)**Nr,a=(t.b/255)**Nr;let l=n*jd+r*Nd+s*Bd,u=i*jd+o*Nd+a*Bd;if(l<=Ui&&(l+=(Ui-l)**Fd),u<=Ui&&(u+=(Ui-u)**Fd),Math.abs(u-l)l){const d=(u**Ky-l**Yy)*Qy;c=d-Wd?0:d>-Ud?d-d*zd*zi:d+zi}return c*100}function GS(e){}function t3(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const xo=.20689655172413793,n3=e=>e>xo**3?Math.cbrt(e):e/(3*xo**2)+4/29,r3=e=>e>xo?e**3:3*xo**2*(e-4/29);function I2(e){const t=n3,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function M2(e){const t=r3,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const s3=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],i3=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,o3=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a3=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function $2(e){const t=Array(3),n=i3,r=s3;for(let s=0;s<3;++s)t[s]=Math.round(Lr(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Gc(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=a3,o=o3;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function Al(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function l3(e){return Al(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const qd=/^(?(?:rgb|hsl)a?)\((?.+)\)/,c3={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>Kd({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>Kd({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>ri({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>ri({h:e,s:t,v:n,a:r})};function vn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&qd.test(e)){const{groups:t}=e.match(qd),{fn:n,values:r}=t,s=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return c3[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),d3(t)}else if(typeof e=="object"){if(Ta(e,["r","g","b"]))return e;if(Ta(e,["h","s","l"]))return ri(V2(e));if(Ta(e,["h","s","v"]))return ri(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function ri(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const l=(a+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function Kd(e){return ri(V2(e))}function V2(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Wi(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function u3(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Wi(t),Wi(n),Wi(r),s!==void 0?Wi(Math.round(s*255)):""].join("")}`}function d3(e){e=f3(e);let[t,n,r,s]=jy(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function f3(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Od(Od(e,6),8,"F")),e}function h3(e,t){const n=I2(Gc(e));return n[0]=n[0]+t*10,$2(M2(n))}function g3(e,t){const n=I2(Gc(e));return n[0]=n[0]-t*10,$2(M2(n))}function m3(e){const t=vn(e);return Gc(t)[1]}function H2(e){const t=Math.abs(Gd(vn(0),vn(e)));return Math.abs(Gd(vn(16777215),vn(e)))>Math.min(t,50)?"#fff":"#000"}function Y(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const ke=Y({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),ls=Symbol.for("vuetify:defaults");function v3(e){return N(e)}function qc(){const e=Se(ls);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Ir(e,t){const n=qc(),r=N(e),s=T(()=>{if(Z(t==null?void 0:t.disabled))return n.value;const o=Z(t==null?void 0:t.scoped),a=Z(t==null?void 0:t.reset),l=Z(t==null?void 0:t.root);if(r.value==null&&!(o||a||l))return n.value;let u=ft(r.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ft(ft(u,{prev:u}),u[l])),u}return u.prev?ft(u.prev,u):u});return Ye(ls,s),s}function p3(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Sr(t)])<"u"}function y3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qc();const r=Ze("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=T(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var d,f,h,m;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(d=s.value)==null?void 0:d[u],c].filter(g=>g!=null):typeof u=="string"&&!p3(r.vnode,u)?((f=s.value)==null?void 0:f[u])??((m=(h=n.value)==null?void 0:h.global)==null?void 0:m[u])??c:c}}),o=le();nn(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=C3(ls,r);Ye(ls,T(()=>o.value?ft((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:a}}function ws(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Y(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return $y(r,t)},e.props._as=String,e.setup=function(r,s){const i=qc();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=y3(r,r._as??e.name,i),l=e._setup(o,s);return a(),l}}return e}function fe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?ws:ht)(t)}function qS(e,t){return t.props=e,t}function Zo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return fe()({name:n??vs(en(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ke()},setup(r,s){let{slots:i}=s;return()=>{var o;return vt(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function D2(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Ll="cubic-bezier(0.4, 0, 0.2, 1)",b3="cubic-bezier(0.0, 0, 0.2, 1)",w3="cubic-bezier(0.4, 0, 1, 1)";function Ze(e,t){const n=Or();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function tr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Ze(e).type;return Sr((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let j2=0,so=new WeakMap;function Mr(){const e=Ze("getUid");if(so.has(e))return so.get(e);{const t=j2++;return so.set(e,t),t}}Mr.reset=()=>{j2=0,so=new WeakMap};function _3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?S3(e):Kc(e))return e;e=e.parentElement}return document.scrollingElement}function To(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Kc(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Kc(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function S3(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function C3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ze("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}function k3(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ye(e){const t=Ze("useRender");t.render=e}const et=[String,Function,Object,Array],Pl=Symbol.for("vuetify:icons"),Xo=Y({icon:{type:et},tag:{type:String,required:!0}},"icon"),Yd=fe()({name:"VComponentIcon",props:Xo(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return b(e.tag,null,{default:()=>{var s;return[e.icon?b(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),Yc=ws({name:"VSvgIcon",inheritAttrs:!1,props:Xo(),setup(e,t){let{attrs:n}=t;return()=>b(e.tag,xe(n,{style:null}),{default:()=>[b("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?b("path",{d:r[0],"fill-opacity":r[1]},null):b("path",{d:r},null)):b("path",{d:e.icon},null)])]})}});ws({name:"VLigatureIcon",props:Xo(),setup(e){return()=>b(e.tag,null,{default:()=>[e.icon]})}});const N2=ws({name:"VClassIcon",props:Xo(),setup(e){return()=>b(e.tag,{class:e.icon},null)}});function E3(){return{svg:{component:Yc},class:{component:N2}}}function x3(e){const t=E3(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=Oy),ft({defaultSet:n,sets:t,aliases:{...Py,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const T3=e=>{const t=Se(Pl);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:T(()=>{var l;const r=Z(e);if(!r)return{component:Yd};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(l=t.aliases)==null?void 0:l[s.slice(1)])),Array.isArray(s))return{component:Yc,icon:s};if(typeof s!="string")return{component:Yd,icon:s};const i=Object.keys(t.sets).find(u=>typeof s=="string"&&s.startsWith(`${u}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},A3={collapse:"svg:M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",complete:"svg:M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"svg:M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"svg:M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"svg:M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"svg:M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"svg:M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"svg:M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"svg:M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"svg:M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"svg:M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sortAsc:"svg:M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",sortDesc:"svg:M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",expand:"svg:M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"svg:M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"svg:M7,10L12,15L17,10H7Z",dropdown:"svg:M7,10L12,15L17,10H7Z",radioOn:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"svg:M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"svg:M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"svg:M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"svg:M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"svg:M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"svg:M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"svg:M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"svg:M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"svg:M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"svg:M19,13H5V11H19V13Z",calendar:"svg:M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",treeviewCollapse:"svg:M7,10L12,15L17,10H7Z",treeviewExpand:"svg:M10,17L15,12L10,7V17Z",eyeDropper:"svg:M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"},L3={component:Yc};function P3(){return{defaultSet:"mdi",aliases:A3,sets:{mdi:L3}}}function O3(e){{const t=P3();if((t==null?void 0:t.defaultSet)==="custom")return;e.icons=t}}const R3=ot({name:"vuetify:icons:plugin",order:-25,parallel:!0,setup(e){e.hook("vuetify:configuration",({vuetifyOptions:t})=>{O3(t)})}}),I3=[],M3=ot({name:"nuxt:head",enforce:"pre",setup(e){const t=gy({plugins:I3});my(()=>Ue().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await m2(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const qr=typeof document<"u";function $3(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Le=Object.assign;function Pa(e,t){const n={};for(const r in t){const s=t[r];n[r]=dn(s)?s.map(e):e(s)}return n}const Us=()=>{},dn=Array.isArray,B2=/#/g,V3=/&/g,H3=/\//g,D3=/=/g,j3=/\?/g,F2=/\+/g,N3=/%5B/g,B3=/%5D/g,U2=/%5E/g,F3=/%60/g,z2=/%7B/g,U3=/%7C/g,W2=/%7D/g,z3=/%20/g;function Jc(e){return encodeURI(""+e).replace(U3,"|").replace(N3,"[").replace(B3,"]")}function W3(e){return Jc(e).replace(z2,"{").replace(W2,"}").replace(U2,"^")}function Ol(e){return Jc(e).replace(F2,"%2B").replace(z3,"+").replace(B2,"%23").replace(V3,"%26").replace(F3,"`").replace(z2,"{").replace(W2,"}").replace(U2,"^")}function G3(e){return Ol(e).replace(D3,"%3D")}function q3(e){return Jc(e).replace(B2,"%23").replace(j3,"%3F")}function K3(e){return e==null?"":q3(e).replace(H3,"%2F")}function si(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Y3=/\/$/,J3=e=>e.replace(Y3,"");function Oa(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=e4(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:si(o)}}function Z3(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jd(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function X3(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&cs(t.matched[r],n.matched[s])&&G2(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function cs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function G2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q3(e[n],t[n]))return!1;return!0}function Q3(e,t){return dn(e)?Zd(e,t):dn(t)?Zd(t,e):e===t}function Zd(e,t){return dn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function e4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}var ii;(function(e){e.pop="pop",e.push="push"})(ii||(ii={}));var zs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zs||(zs={}));function t4(e){if(!e)if(qr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),J3(e)}const n4=/^[^#]+#/;function r4(e,t){return e.replace(n4,"#")+t}function s4(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Qo=()=>({left:window.scrollX,top:window.scrollY});function i4(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=s4(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Xd(e,t){return(history.state?history.state.position-t:-1)+e}const Rl=new Map;function o4(e,t){Rl.set(e,t)}function a4(e){const t=Rl.get(e);return Rl.delete(e),t}let l4=()=>location.protocol+"//"+location.host;function q2(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Jd(l,"")}return Jd(n,e)+r+s}function c4(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=q2(e,location),m=n.value,g=t.value;let p=0;if(f){if(n.value=h,t.value=f,o&&o===m){o=null;return}p=g?f.position-g.position:0}else r(h);s.forEach(S=>{S(n.value,m,{delta:p,type:ii.pop,direction:p?p>0?zs.forward:zs.back:zs.unknown})})};function l(){o=n.value}function u(f){s.push(f);const h=()=>{const m=s.indexOf(f);m>-1&&s.splice(m,1)};return i.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(Le({},f.state,{scroll:Qo()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Qd(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Qo():null}}function u4(e){const{history:t,location:n}=window,r={value:q2(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:l4()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){const c=Le({},t.state,Qd(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=Le({},s.value,t.state,{forward:l,scroll:Qo()});i(c.current,c,!0);const d=Le({},Qd(r.value,l,null),{position:c.position+1},u);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function K2(e){e=t4(e);const t=u4(e),n=c4(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Le({location:"",base:e,go:r,createHref:r4.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function d4(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),K2(e)}function f4(e){return typeof e=="string"||e&&typeof e=="object"}function Y2(e){return typeof e=="string"||typeof e=="symbol"}const an={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},J2=Symbol("");var ef;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ef||(ef={}));function us(e,t){return Le(new Error,{type:e,[J2]:!0},t)}function yn(e,t){return e instanceof Error&&J2 in e&&(t==null||!!(e.type&t))}const tf="[^/]+?",h4={sensitive:!1,strict:!1,start:!0,end:!0},g4=/[.+*?^${}()[\]/\\]/g;function m4(e,t){const n=Le({},h4,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function p4(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const y4={type:0,value:""},b4=/[a-zA-Z0-9_]/;function w4(e){if(!e)return[[]];if(e==="/")return[[y4]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a{o(y)}:Us}function o(c){if(Y2(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!Z2(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!sf(c)&&r.set(c.record.name,c)}function u(c,d){let f,h={},m,g;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw us(1,{location:c});g=f.record.name,h=Le(rf(d.params,f.keys.filter(y=>!y.optional).concat(f.parent?f.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&rf(c.params,f.keys.map(y=>y.name))),m=f.stringify(h)}else if(c.path!=null)m=c.path,f=n.find(y=>y.re.test(m)),f&&(h=f.parse(m),g=f.record.name);else{if(f=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!f)throw us(1,{location:c,currentLocation:d});g=f.record.name,h=Le({},d.params,c.params),m=f.stringify(h)}const p=[];let S=f;for(;S;)p.unshift(S.record),S=S.parent;return{name:g,path:m,params:h,matched:p,meta:E4(p)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function rf(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function C4(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:k4(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function k4(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function sf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function E4(e){return e.reduce((t,n)=>Le(t,n.meta),{})}function of(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Z2(e,t){return t.children.some(n=>n===e||Z2(e,n))}function x4(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Ol(i)):[r&&Ol(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function T4(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=dn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const A4=Symbol(""),lf=Symbol(""),Zc=Symbol(""),X2=Symbol(""),Il=Symbol("");function xs(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wn(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l(us(4,{from:n,to:t})):f instanceof Error?l(f):f4(f)?l(us(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Ra(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(L4(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Wn(c,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const d=$3(c)?c.default:c;o.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Wn(h,n,r,o,a,s)()}))}}return i}function L4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cf(e){const t=Se(Zc),n=Se(X2),r=T(()=>{const l=Z(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(cs.bind(null,c));if(f>-1)return f;const h=uf(l[u-2]);return u>1&&uf(c)===h&&d[d.length-1].path!==h?d.findIndex(cs.bind(null,l[u-2])):f}),i=T(()=>s.value>-1&&I4(n.params,r.value.params)),o=T(()=>s.value>-1&&s.value===n.matched.length-1&&G2(n.params,r.value.params));function a(l={}){return R4(l)?t[Z(e.replace)?"replace":"push"](Z(e.to)).catch(Us):Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const P4=ht({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:cf,setup(e,{slots:t}){const n=Be(cf(e)),{options:r}=Se(Zc),s=T(()=>({[df(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[df(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:vt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),O4=P4;function R4(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function I4(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!dn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function uf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const df=(e,t,n)=>e??t??n,M4=ht({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Se(Il),s=T(()=>e.route||r.value),i=Se(lf,0),o=T(()=>{let u=Z(i);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=T(()=>s.value.matched[o.value]);Ye(lf,T(()=>o.value+1)),Ye(A4,a),Ye(Il,s);const l=N();return se(()=>[l.value,a.value,e.name],([u,c,d],[f,h,m])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!cs(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return ff(n.default,{Component:f,route:u});const h=d.props[c],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,p=vt(f,Le({},m,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return ff(n.default,{Component:p,route:u})||p}}});function ff(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Q2=M4;function $4(e){const t=S4(e.routes,e),n=e.parseQuery||x4,r=e.stringifyQuery||af,s=e.history,i=xs(),o=xs(),a=xs(),l=le(an);let u=an;qr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Pa.bind(null,M=>""+M),d=Pa.bind(null,K3),f=Pa.bind(null,si);function h(M,W){let q,ee;return Y2(M)?(q=t.getRecordMatcher(M),ee=W):ee=M,t.addRoute(ee,q)}function m(M){const W=t.getRecordMatcher(M);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(M=>M.record)}function p(M){return!!t.getRecordMatcher(M)}function S(M,W){if(W=Le({},W||l.value),typeof M=="string"){const k=Oa(n,M,W.path),R=t.resolve({path:k.path},W),D=s.createHref(k.fullPath);return Le(k,R,{params:f(R.params),hash:si(k.hash),redirectedFrom:void 0,href:D})}let q;if(M.path!=null)q=Le({},M,{path:Oa(n,M.path,W.path).path});else{const k=Le({},M.params);for(const R in k)k[R]==null&&delete k[R];q=Le({},M,{params:d(k)}),W.params=d(W.params)}const ee=t.resolve(q,W),Te=M.hash||"";ee.params=c(f(ee.params));const De=Z3(r,Le({},M,{hash:W3(Te),path:ee.path})),w=s.createHref(De);return Le({fullPath:De,hash:Te,query:r===af?T4(M.query):M.query||{}},ee,{redirectedFrom:void 0,href:w})}function y(M){return typeof M=="string"?Oa(n,M,l.value.path):Le({},M)}function v(M,W){if(u!==M)return us(8,{from:W,to:M})}function _(M){return C(M)}function x(M){return _(Le(y(M),{replace:!0}))}function E(M){const W=M.matched[M.matched.length-1];if(W&&W.redirect){const{redirect:q}=W;let ee=typeof q=="function"?q(M):q;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=y(ee):{path:ee},ee.params={}),Le({query:M.query,hash:M.hash,params:ee.path!=null?{}:M.params},ee)}}function C(M,W){const q=u=S(M),ee=l.value,Te=M.state,De=M.force,w=M.replace===!0,k=E(q);if(k)return C(Le(y(k),{state:typeof k=="object"?Le({},Te,k.state):Te,force:De,replace:w}),W||q);const R=q;R.redirectedFrom=W;let D;return!De&&X3(r,ee,q)&&(D=us(16,{to:R,from:ee}),Ee(ee,ee,!0,!1)),(D?Promise.resolve(D):O(R,ee)).catch(V=>yn(V)?yn(V,2)?V:he(V):F(V,R,ee)).then(V=>{if(V){if(yn(V,2))return C(Le({replace:w},y(V.to),{state:typeof V.to=="object"?Le({},Te,V.to.state):Te,force:De}),W||R)}else V=L(R,ee,!0,w,Te);return I(R,ee,V),V})}function A(M,W){const q=v(M,W);return q?Promise.reject(q):Promise.resolve()}function P(M){const W=tt.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(M):M()}function O(M,W){let q;const[ee,Te,De]=V4(M,W);q=Ra(ee.reverse(),"beforeRouteLeave",M,W);for(const k of ee)k.leaveGuards.forEach(R=>{q.push(Wn(R,M,W))});const w=A.bind(null,M,W);return q.push(w),Ce(q).then(()=>{q=[];for(const k of i.list())q.push(Wn(k,M,W));return q.push(w),Ce(q)}).then(()=>{q=Ra(Te,"beforeRouteUpdate",M,W);for(const k of Te)k.updateGuards.forEach(R=>{q.push(Wn(R,M,W))});return q.push(w),Ce(q)}).then(()=>{q=[];for(const k of De)if(k.beforeEnter)if(dn(k.beforeEnter))for(const R of k.beforeEnter)q.push(Wn(R,M,W));else q.push(Wn(k.beforeEnter,M,W));return q.push(w),Ce(q)}).then(()=>(M.matched.forEach(k=>k.enterCallbacks={}),q=Ra(De,"beforeRouteEnter",M,W,P),q.push(w),Ce(q))).then(()=>{q=[];for(const k of o.list())q.push(Wn(k,M,W));return q.push(w),Ce(q)}).catch(k=>yn(k,8)?k:Promise.reject(k))}function I(M,W,q){a.list().forEach(ee=>P(()=>ee(M,W,q)))}function L(M,W,q,ee,Te){const De=v(M,W);if(De)return De;const w=W===an,k=qr?history.state:{};q&&(ee||w?s.replace(M.fullPath,Le({scroll:w&&k&&k.scroll},Te)):s.push(M.fullPath,Te)),l.value=M,Ee(M,W,q,w),he()}let $;function z(){$||($=s.listen((M,W,q)=>{if(!we.listening)return;const ee=S(M),Te=E(ee);if(Te){C(Le(Te,{replace:!0}),ee).catch(Us);return}u=ee;const De=l.value;qr&&o4(Xd(De.fullPath,q.delta),Qo()),O(ee,De).catch(w=>yn(w,12)?w:yn(w,2)?(C(w.to,ee).then(k=>{yn(k,20)&&!q.delta&&q.type===ii.pop&&s.go(-1,!1)}).catch(Us),Promise.reject()):(q.delta&&s.go(-q.delta,!1),F(w,ee,De))).then(w=>{w=w||L(ee,De,!1),w&&(q.delta&&!yn(w,8)?s.go(-q.delta,!1):q.type===ii.pop&&yn(w,20)&&s.go(-1,!1)),I(ee,De,w)}).catch(Us)}))}let Q=xs(),H=xs(),X;function F(M,W,q){he(M);const ee=H.list();return ee.length?ee.forEach(Te=>Te(M,W,q)):console.error(M),Promise.reject(M)}function Oe(){return X&&l.value!==an?Promise.resolve():new Promise((M,W)=>{Q.add([M,W])})}function he(M){return X||(X=!M,z(),Q.list().forEach(([W,q])=>M?q(M):W()),Q.reset()),M}function Ee(M,W,q,ee){const{scrollBehavior:Te}=e;if(!qr||!Te)return Promise.resolve();const De=!q&&a4(Xd(M.fullPath,0))||(ee||!q)&&history.state&&history.state.scroll||null;return qe().then(()=>Te(M,W,De)).then(w=>w&&i4(w)).catch(w=>F(w,M,W))}const ge=M=>s.go(M);let ct;const tt=new Set,we={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,hasRoute:p,getRoutes:g,resolve:S,options:e,push:_,replace:x,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:H.add,isReady:Oe,install(M){const W=this;M.component("RouterLink",O4),M.component("RouterView",Q2),M.config.globalProperties.$router=W,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(l)}),qr&&!ct&&l.value===an&&(ct=!0,_(s.location).catch(Te=>{}));const q={};for(const Te in an)Object.defineProperty(q,Te,{get:()=>l.value[Te],enumerable:!0});M.provide(Zc,W),M.provide(X2,vi(q)),M.provide(Il,l);const ee=M.unmount;tt.add(M),M.unmount=function(){tt.delete(M),tt.size<1&&(u=an,$&&$(),$=null,l.value=an,ct=!1,X=!1),ee()}}};function Ce(M){return M.reduce((W,q)=>W.then(()=>P(q)),Promise.resolve())}return we}function V4(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;ocs(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>cs(u,l))||s.push(l))}return[n,r,s]}const H4=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ml=(e,t)=>{const n=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&H4(e.route,n));return typeof r=="function"?r(e.route):r},D4=(e,t)=>({default:()=>e?vt(Mg,e===!0?{}:e,t):t});function Xc(e){return Array.isArray(e)?e:[e]}const j4="modulepreload",N4=function(e,t){return e[0]==="."?new URL(e,t).href:e},hf={},B4=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(l=>{if(l=N4(l,r),l in hf)return;hf[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const m=i[h];if(m.href===l&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":j4,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return s.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},Ae=(...e)=>B4(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),St={icon:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",title:"About",drawerIndex:15,bottom:!0},Ct={icon:"M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",title:"Contacts",drawerIndex:6,group:4},kt={icon:"M5 9.15V7C5 5.9 5.9 5 7 5H17C18.1 5 19 5.9 19 7V9.16C17.84 9.57 17 10.67 17 11.97V14H7V11.96C7 10.67 6.16 9.56 5 9.15M20 10C18.9 10 18 10.9 18 12V15H6V12C6 10.9 5.11 10 4 10S2 10.9 2 12V17C2 18.1 2.9 19 4 19V21H6V19H18V21H20V19C21.1 19 22 18.1 22 17V12C22 10.9 21.1 10 20 10Z",title:"Dashboard",drawerIndex:1,group:1},Et={title:"Inventory"},xt={icon:"M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z",title:"Inventories",drawerIndex:5,group:3},Tt={title:"Inventory"},At={title:"Item"},Lt={icon:"M12,2L22,8C22,12 20,14 16,15L13,10L9,6L12,2M4.11,19.84L2.12,18.33L9.19,9L11,10.81L4.11,19.84Z",title:"Items",drawerIndex:4,group:3},Ia=null,Ma=null,$a=null,Pt={title:"Route"},Ot={icon:"M11,12H3.5L6,9.5L3.5,7H11V3L12,2L13,3V7H18L20.5,9.5L18,12H13V20A2,2 0 0,1 15,22H9A2,2 0 0,1 11,20V12Z",title:"Routes",drawerIndex:3,group:2},Va=null,Rt={title:"gpx.studio",icon:"M12,2C15.31,2 18,4.66 18,7.95C18,12.41 12,19 12,19C12,19 6,12.41 6,7.95C6,4.66 8.69,2 12,2M12,6A2,2 0 0,0 10,8A2,2 0 0,0 12,10A2,2 0 0,0 14,8A2,2 0 0,0 12,6M20,19C20,21.21 16.42,23 12,23C7.58,23 4,21.21 4,19C4,17.71 5.22,16.56 7.11,15.83L7.75,16.74C6.67,17.19 6,17.81 6,18.5C6,19.88 8.69,21 12,21C15.31,21 18,19.88 18,18.5C18,17.81 17.33,17.19 16.25,16.74L16.89,15.83C18.78,16.56 20,17.71 20,19Z",drawerIndex:2},It={title:"Pl@ntNet",icon:"M2,22V20C2,20 7,18 12,18C17,18 22,20 22,20V22H2M11.3,9.1C10.1,5.2 4,6.1 4,6.1C4,6.1 4.2,13.9 9.9,12.7C9.5,9.8 8,9 8,9C10.8,9 11,12.4 11,12.4V17C11.3,17 11.7,17 12,17C12.3,17 12.7,17 13,17V12.8C13,12.8 13,8.9 16,7.9C16,7.9 14,10.9 14,12.9C21,13.6 21,4 21,4C21,4 12.1,3 11.3,9.1Z",drawerIndex:1},Mt={title:"Tools",icon:"M21.71 20.29L20.29 21.71A1 1 0 0 1 18.88 21.71L7 9.85A3.81 3.81 0 0 1 6 10A4 4 0 0 1 2.22 4.7L4.76 7.24L5.29 6.71L6.71 5.29L7.24 4.76L4.7 2.22A4 4 0 0 1 10 6A3.81 3.81 0 0 1 9.85 7L21.71 18.88A1 1 0 0 1 21.71 20.29M2.29 18.88A1 1 0 0 0 2.29 20.29L3.71 21.71A1 1 0 0 0 5.12 21.71L10.59 16.25L7.76 13.42M20 2L16 4V6L13.83 8.17L15.83 10.17L18 8H20L22 4Z",drawerIndex:6,breadcrumb:"disabled",bottom:!0},$t={title:"Trip"},Vt={icon:"M14.12,10H19V8.2H15.38L13.38,4.87C13.08,4.37 12.54,4.03 11.92,4.03C11.74,4.03 11.58,4.06 11.42,4.11L6,5.8V11H7.8V7.33L9.91,6.67L6,22H7.8L10.67,13.89L13,17V22H14.8V15.59L12.31,11.05L13.04,8.18M14,3.8C15,3.8 15.8,3 15.8,2C15.8,1 15,0.2 14,0.2C13,0.2 12.2,1 12.2,2C12.2,3 13,3.8 14,3.8Z",title:"Trips",drawerIndex:2,group:2},gf=[{name:(St==null?void 0:St.name)??"about",path:(St==null?void 0:St.path)??"/about",meta:St||{},alias:(St==null?void 0:St.alias)||[],redirect:St==null?void 0:St.redirect,component:()=>Ae(()=>import("./Dy845a-Y.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)},{name:(Ct==null?void 0:Ct.name)??"contacts",path:(Ct==null?void 0:Ct.path)??"/contacts",meta:Ct||{},alias:(Ct==null?void 0:Ct.alias)||[],redirect:Ct==null?void 0:Ct.redirect,component:()=>Ae(()=>import("./Qrx5wsVu.js"),__vite__mapDeps([4,1]),import.meta.url).then(e=>e.default||e)},{name:(kt==null?void 0:kt.name)??"index",path:(kt==null?void 0:kt.path)??"/",meta:kt||{},alias:(kt==null?void 0:kt.alias)||[],redirect:kt==null?void 0:kt.redirect,component:()=>Ae(()=>import("./DodWYXGC.js"),__vite__mapDeps([5,6,7,1]),import.meta.url).then(e=>e.default||e)},{name:(Et==null?void 0:Et.name)??"inventories-id",path:(Et==null?void 0:Et.path)??"/inventories/:id()",meta:Et||{},alias:(Et==null?void 0:Et.alias)||[],redirect:Et==null?void 0:Et.redirect,component:()=>Ae(()=>import("./o-u2tkmG.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,6,7,23,24,25,1,2,26,27]),import.meta.url).then(e=>e.default||e)},{name:(xt==null?void 0:xt.name)??"inventories",path:(xt==null?void 0:xt.path)??"/inventories",meta:xt||{},alias:(xt==null?void 0:xt.alias)||[],redirect:xt==null?void 0:xt.redirect,component:()=>Ae(()=>import("./BryFE1hL.js"),__vite__mapDeps([28,29,2,30,12,13,31,32,33,11,14,25,34,1]),import.meta.url).then(e=>e.default||e)},{name:(Tt==null?void 0:Tt.name)??"inventories-new",path:(Tt==null?void 0:Tt.path)??"/inventories/new",meta:Tt||{},alias:(Tt==null?void 0:Tt.alias)||[],redirect:Tt==null?void 0:Tt.redirect,component:()=>Ae(()=>import("./BydJhqeL.js"),__vite__mapDeps([35,9,10,11,12,13,14,15,16,17,18,19,20,21,22,6,7,23,24,25,1,2,26,27]),import.meta.url).then(e=>e.default||e)},{name:(At==null?void 0:At.name)??"items-id",path:(At==null?void 0:At.path)??"/items/:id()",meta:At||{},alias:(At==null?void 0:At.alias)||[],redirect:At==null?void 0:At.redirect,component:()=>Ae(()=>import("./y4qwzziu.js"),__vite__mapDeps([36,37,32,33,16,17,18,19,38,12,13,39,1,2,15,20,21,22,23,26,40]),import.meta.url).then(e=>e.default||e)},{name:(Lt==null?void 0:Lt.name)??"items",path:(Lt==null?void 0:Lt.path)??"/items",meta:Lt||{},alias:(Lt==null?void 0:Lt.alias)||[],redirect:Lt==null?void 0:Lt.redirect,component:()=>Ae(()=>import("./Dp0yv6TN.js"),__vite__mapDeps([41,11,12,13,14,10,15,16,17,18,19,20,21,22,6,7,23,24,1,42,43,44]),import.meta.url).then(e=>e.default||e)},{name:"items-new",path:"/items/new",meta:{},alias:[],redirect:Ia==null?void 0:Ia.redirect,component:()=>Ae(()=>import("./D7KViyyH.js"),__vite__mapDeps([45,37,32,33,16,17,18,19,38,12,13,39,1,2,15,20,21,22,23,26,40]),import.meta.url).then(e=>e.default||e)},{name:"login",path:"/login",meta:{},alias:[],redirect:Ma==null?void 0:Ma.redirect,component:()=>Ae(()=>import("./Ne0eQPea.js"),__vite__mapDeps([46,26,17,18,16,19,1]),import.meta.url).then(e=>e.default||e)},{name:"profile",path:"/profile",meta:{},alias:[],redirect:$a==null?void 0:$a.redirect,component:()=>Ae(()=>import("./CW8F4qk3.js"),__vite__mapDeps([47,2,16,17,18,19,1,26]),import.meta.url).then(e=>e.default||e)},{name:(Pt==null?void 0:Pt.name)??"routes-id",path:(Pt==null?void 0:Pt.path)??"/routes/:id()",meta:Pt||{},alias:(Pt==null?void 0:Pt.alias)||[],redirect:Pt==null?void 0:Pt.redirect,component:()=>Ae(()=>import("./DM_9Tk0X.js"),__vite__mapDeps([48,33,49,1,42,43,50]),import.meta.url).then(e=>e.default||e)},{name:(Ot==null?void 0:Ot.name)??"routes",path:(Ot==null?void 0:Ot.path)??"/routes",meta:Ot||{},alias:(Ot==null?void 0:Ot.alias)||[],redirect:Ot==null?void 0:Ot.redirect,component:()=>Ae(()=>import("./CdgrpXGU.js"),__vite__mapDeps([51,29,2,30,12,13,31,32,33,11,14,25,34,16,17,18,19,38,39,26,1]),import.meta.url).then(e=>e.default||e)},{name:"settings",path:"/settings",meta:{},alias:[],redirect:Va==null?void 0:Va.redirect,component:()=>Ae(()=>import("./DiQtFf9u.js"),__vite__mapDeps([52,53,17,18,20,21,54,1]),import.meta.url).then(e=>e.default||e)},{name:(Mt==null?void 0:Mt.name)??"tools",path:(Mt==null?void 0:Mt.path)??"/tools",meta:Mt||{},alias:(Mt==null?void 0:Mt.alias)||[],redirect:Mt==null?void 0:Mt.redirect,component:()=>Ae(()=>import("./CgtgCwE6.js"),[],import.meta.url).then(e=>e.default||e),children:[{name:(Rt==null?void 0:Rt.name)??"tools-gpxstudio",path:(Rt==null?void 0:Rt.path)??"gpxstudio",meta:Rt||{},alias:(Rt==null?void 0:Rt.alias)||[],redirect:Rt==null?void 0:Rt.redirect,component:()=>Ae(()=>import("./ContTC5u.js"),__vite__mapDeps([55,56,53,17,18,20,21,54,1,57]),import.meta.url).then(e=>e.default||e)},{name:(It==null?void 0:It.name)??"tools-plantnet",path:(It==null?void 0:It.path)??"plantnet",meta:It||{},alias:(It==null?void 0:It.alias)||[],redirect:It==null?void 0:It.redirect,component:()=>Ae(()=>import("./CCOuFFzJ.js"),__vite__mapDeps([58,56,53,17,18,20,21,54,1,59]),import.meta.url).then(e=>e.default||e)}]},{name:($t==null?void 0:$t.name)??"trips-id",path:($t==null?void 0:$t.path)??"/trips/:id()",meta:$t||{},alias:($t==null?void 0:$t.alias)||[],redirect:$t==null?void 0:$t.redirect,component:()=>Ae(()=>import("./C7NLEnku.js"),__vite__mapDeps([60,15,16,17,18,19,20,21,12,13,22,2,26,1,61]),import.meta.url).then(e=>e.default||e)},{name:(Vt==null?void 0:Vt.name)??"trips",path:(Vt==null?void 0:Vt.path)??"/trips",meta:Vt||{},alias:(Vt==null?void 0:Vt.alias)||[],redirect:Vt==null?void 0:Vt.redirect,component:()=>Ae(()=>import("./DHLmNBeA.js"),__vite__mapDeps([62,30,2,12,13,31,1]),import.meta.url).then(e=>e.default||e)}],F4=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?vt(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function mf(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function U4(e,t){return e===t||t===an?!1:mf(e)!==mf(t)?!0:!e.matched.every((r,s)=>{var i,o;return r.components&&r.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const z4={scrollBehavior(e,t,n){var u;const r=Ue(),s=((u=pn().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&U4(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:vf(e.hash),behavior:s}:!1;const a=c=>!!(c.meta.pageTransition??Cl),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(d=>setTimeout(d,0)),e.hash&&(i={el:e.hash,top:vf(e.hash),behavior:s}),c(i)})})}};function vf(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const W4={hashMode:!1,scrollBehaviorType:"auto"},Ht={...W4,...z4},G4=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ue(),s=pn();if(([t,n]=kn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const o=Ko({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(u=>{if(a(),u===e){const c=s.afterEach(async()=>{c(),await r.runWithContext(()=>Yr(o)),window.history.pushState({},"",e.fullPath)});return!1}})},q4="$s";function Qc(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=q4+n,i=Ue(),o=ie(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(Pe(a))return i.payload.state[s]=a,a;o.value=a}return o}const Jt=()=>{var e;return(e=Ue().$supabase)==null?void 0:e.client},ds=()=>{const e=Jt(),t=Qc("supabase_session",()=>null);return e==null||e.auth.getSession().then(({data:{session:n}})=>{n?JSON.stringify(t.value)!==JSON.stringify(n)&&(t.value=n):t.value=null}),t},K4=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let e0;const _i=e=>e0=e,t0=Symbol();function $l(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ws;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ws||(Ws={}));function Y4(){const e=ps(!0),t=e.run(()=>N({}));let n=[],r=[];const s=mc({install(i){_i(s),s._a=i,i.provide(t0,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!K4?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const n0=()=>{};function pf(e,t,n,r=n0){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Mo()&&pt(s),s}function Br(e,...t){e.slice().forEach(n=>{n(...t)})}const J4=e=>e();function Vl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];$l(s)&&$l(r)&&e.hasOwnProperty(n)&&!Pe(r)&&!br(r)?e[n]=Vl(s,r):e[n]=r}return e}const Z4=Symbol();function X4(e){return!$l(e)||!e.hasOwnProperty(Z4)}const{assign:jn}=Object;function Q4(e){return!!(Pe(e)&&e.effect)}function e7(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=pi(n.state.value[e]);return jn(c,i,Object.keys(o||{}).reduce((d,f)=>(d[f]=mc(T(()=>{_i(n);const h=n._s.get(e);return o[f].call(h,h)})),d),{}))}return l=r0(e,u,t,n,r,!0),l}function r0(e,t,n={},r,s,i){let o;const a=jn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const m=r.state.value[e];!i&&!m&&(r.state.value[e]={}),N({});let g;function p(A){let P;u=c=!1,typeof A=="function"?(A(r.state.value[e]),P={type:Ws.patchFunction,storeId:e,events:h}):(Vl(r.state.value[e],A),P={type:Ws.patchObject,payload:A,storeId:e,events:h});const O=g=Symbol();qe().then(()=>{g===O&&(u=!0)}),c=!0,Br(d,P,r.state.value[e])}const S=i?function(){const{state:P}=n,O=P?P():{};this.$patch(I=>{jn(I,O)})}:n0;function y(){o.stop(),d=[],f=[],r._s.delete(e)}function v(A,P){return function(){_i(r);const O=Array.from(arguments),I=[],L=[];function $(H){I.push(H)}function z(H){L.push(H)}Br(f,{args:O,name:A,store:x,after:$,onError:z});let Q;try{Q=P.apply(this&&this.$id===e?this:x,O)}catch(H){throw Br(L,H),H}return Q instanceof Promise?Q.then(H=>(Br(I,H),H)).catch(H=>(Br(L,H),Promise.reject(H))):(Br(I,Q),Q)}}const _={_p:r,$id:e,$onAction:pf.bind(null,f),$patch:p,$reset:S,$subscribe(A,P={}){const O=pf(d,A,P.detached,()=>I()),I=o.run(()=>se(()=>r.state.value[e],L=>{(P.flush==="sync"?c:u)&&A({storeId:e,type:Ws.direct,events:h},L)},jn({},l,P)));return O},$dispose:y},x=Be(_);r._s.set(e,x);const C=(r._a&&r._a.runWithContext||J4)(()=>r._e.run(()=>(o=ps()).run(t)));for(const A in C){const P=C[A];if(Pe(P)&&!Q4(P)||br(P))i||(m&&X4(P)&&(Pe(P)?P.value=m[A]:Vl(P,m[A])),r.state.value[e][A]=P);else if(typeof P=="function"){const O=v(A,P);C[A]=O,a.actions[A]=P}}return jn(x,C),jn(ae(x),C),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:A=>{p(P=>{jn(P,A)})}}),r._p.forEach(A=>{jn(x,o.run(()=>A({store:x,app:r._a,pinia:r,options:a})))}),m&&i&&n.hydrate&&n.hydrate(x.$state,m),u=!0,c=!0,x}function s0(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=Lc();return a=a||(u?Se(t0,null):null),a&&_i(a),a=e0,a._s.has(r)||(i?r0(r,t,s,a):e7(r,s,a)),a._s.get(r)}return o.$id=r,o}let Gi;const t7=new Uint8Array(16);function n7(){if(!Gi&&(Gi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gi(t7)}const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function r7(e,t=0){return nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]}const s7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),yf={randomUUID:s7};function i0(e,t,n){if(yf.randomUUID&&!t&&!e)return yf.randomUUID();e=e||{};const r=e.random||(e.rng||n7)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,r7(r)}const o0=s0("notifications",{state:()=>({entities:[]}),actions:{add(e){e.id=i0(),this.entities.push(e),setTimeout(()=>{this.remove(e.id)},5e3)},remove(e){this.entities=this.entities.filter(t=>t.id!==e)}}}),Sn=(e,t)=>{o0().add({id:i0(),text:t,type:e})};function i7(e){return e.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`)}function o7(e){return e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}function bf(e){return Object.keys(e).reduce((t,n)=>(t[i7(n)]=e[n],t),{})}function a0(e){return Object.keys(e).reduce((t,n)=>(t[o7(n)]=e[n],t),{})}function a7(e){return e.map(a0)}function An(e,t={},n={},r={},s={},i=!1,o=[]){return s0(e,{state:()=>({entities:N([]),...r}),getters:{byId:a=>l=>a.entities.find(u=>u.id===l),...s},actions:{async fetch(){const a=Jt();try{let l=a.from(e).select("*");t.preFetch&&(l=t.preFetch(l)),i&&(l=l.single());const{data:u,error:c}=await l;if(c)throw c;i?u&&(this.entities=a0(u)):u&&(this.entities=a7(u)),t.postFetch&&(this.entities=t.postFetch(this.entities,null))}catch(l){Sn("error",l.message),console.error(`An error occurred while fetching ${e}:`,l.message)}finally{}},async create(a){const l=Jt();try{const u=bf(a);o.forEach(h=>{delete u[h]});let c=l.from(e).insert(u);t.preCreate&&(c=t.preCreate(c,u));const{data:d,error:f}=await c.select();if(f)throw f;return d&&this.entities.push(d[0]),t.postCreate&&t.postCreate(d[0],null),d[0]}catch(u){Sn("error",u.message),console.error(`An error occurred while creating ${e}:`,u.message),t.postCreate&&t.postCreate(null,u)}finally{}},async update(a){const l=Jt();try{const u=bf(a);o.forEach(h=>{delete u[h]});let c=l.from(e).update(u).match({id:u.id});t.preUpdate&&(c=t.preUpdate(c,u));const{data:d,error:f}=await c;if(f)throw f;if(d){const h=this.entities.findIndex(m=>m.id===a.id);h!==-1&&(this.entities[h]=a),t.postUpdate&&t.postUpdate(a,null)}}catch(u){Sn("error",u.message),console.error(`An error occurred while updating ${e}:`,u.message),t.postUpdate&&t.postUpdate(null,u)}finally{}},async delete(a){const l=Jt();try{let u=l.from(e).delete().match({id:a});t.preDelete&&(u=t.preDelete(u));const{data:c,error:d}=await u;debugger;if(d)throw d;this.entities=this.entities.filter(f=>f.id!==a),console.log(this.entities.length),t.postDelete&&t.postDelete(a,null)}catch(u){Sn("error",u.message),console.error(`An error occurred while deleting ${e}:`,u.message),t.postDelete&&t.postDelete(null,u)}finally{}},...n}})}const l7={async fetchMe(){if(!ds().value)return;const e=Jt();try{let t=e.from("users_meta").select("*");const{data:n,error:r}=await e.from("users_meta").select().eq("user_id",ds().value.user.id).single();if(r)throw r;n&&(this.user=n)}catch(t){Sn("error",t.message),console.error("An error occurred while fetching users_meta:",t.message)}finally{}},async signIn(e,t){const n=Jt();try{const{data:r,error:s}=await n.auth.signInWithPassword({email:e,password:t});if(s)throw s;this.supabaseUser=r.user,await this.fetchMe(),wo("/")}catch(r){Sn("error",r.message),console.error("An error occurred while signing in:",r.message)}finally{}},async signOut(){await Jt().auth.signOut(),this.supabaseUser=null,this.user=null,wo("/login")}},c7={supabaseUser:N(null),user:N(null)},u7={loggedIn:()=>!!ds().value},eu=An("users_meta",{},l7,c7,u7),d7=e=>{if(eu().loggedIn){if(e.path=="/login")return wo("/",{replace:!0})}else if(e.path!="/login")return wo("/login")},f7=async e=>{let t,n;const r=([t,n]=kn(()=>Uc(e.path)),t=await t,n(),t);if(r.redirect)return Rr(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},h7=[G4,d7,f7],Gs={cors:()=>Ae(()=>import("./DqULCzxt.js"),[],import.meta.url)};function g7(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),cd(c,"")}const a=cd(r,e),l=!n||xv(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const m7=ot({name:"nuxt:router",enforce:"pre",async setup(e){var p,S;let t,n,r=Wo().app.baseURL;Ht.hashMode&&!r.includes("#")&&(r+="#");const s=((p=Ht.history)==null?void 0:p.call(Ht,r))??(Ht.hashMode?d4(r):K2(r)),i=((S=Ht.routes)==null?void 0:S.call(Ht,gf))??gf;let o;const a=$4({...Ht,scrollBehavior:(y,v,_)=>{if(v===an){o=_;return}if(Ht.scrollBehavior){if(a.options.scrollBehavior=Ht.scrollBehavior,"scrollRestoration"in window.history){const x=a.beforeEach(()=>{x(),window.history.scrollRestoration="manual"})}return Ht.scrollBehavior(y,an,o||_)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=le(a.currentRoute.value);a.afterEach((y,v)=>{l.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=g7(r,window.location,e.payload.path),c=le(a.currentRoute.value),d=()=>{c.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((y,v)=>{var _,x,E,C;((x=(_=y.matched[0])==null?void 0:_.components)==null?void 0:x.default)===((C=(E=v.matched[0])==null?void 0:E.components)==null?void 0:C.default)&&d()});const f={};for(const y in c.value)Object.defineProperty(f,y,{get:()=>c.value[y]});e._route=vi(f),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=kn(()=>a.isReady()),await t,n()}catch(y){[t,n]=kn(()=>e.runWithContext(()=>Yr(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;d();const m=e.payload.state._layout;a.beforeEach(async(y,v)=>{var _;await e.callHook("page:loading:start"),y.meta=Be(y.meta),e.isHydrating&&m&&!ss(y.meta.layout)&&(y.meta.layout=m),e._processingMiddleware=!0;{const x=new Set([...h7,...e._middleware.global]);for(const E of y.matched){const C=E.meta.middleware;if(C)for(const A of Xc(C))x.add(A)}{const E=await e.runWithContext(()=>Uc(y.path));if(E.appMiddleware)for(const C in E.appMiddleware)E.appMiddleware[C]?x.add(C):x.delete(C)}for(const E of x){const C=typeof E=="string"?e._middleware.named[E]||await((_=Gs[E])==null?void 0:_.call(Gs).then(P=>P.default||P)):E;if(!C)throw new Error(`Unknown route middleware: '${E}'.`);const A=await e.runWithContext(()=>C(y,v));if(!e.payload.serverRendered&&e.isHydrating&&(A===!1||A instanceof Error)){const P=A||yl({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>Yr(P)),!1}if(A!==!0&&(A||A===!1))return A}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const g=qo();return a.afterEach(async(y,v,_)=>{delete e._processingMiddleware,!e.isHydrating&&g.value&&await e.runWithContext(Ep),_&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>Yr(yl({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=Ht.scrollBehavior}catch(y){await e.runWithContext(()=>Yr(y))}}),{provide:{router:a}}}}),v7={path:"/",watch:!0,decode:e=>ti(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},p7=void 0;function qi(e,t){var l;const n={...v7,...t},r=wf(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=hn(i?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),a=s&&!i?w7(o,s,n.watch&&n.watch!=="shallow"):N(o);{let u=null;try{!p7&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=()=>{n.readonly||gp(a.value,r[e])||(b7(e,a.value,n),r[e]=hn(a.value),u==null||u.postMessage({value:n.encode(a.value)}))},d=h=>{var g;const m=h.refresh?(g=wf(n))==null?void 0:g[e]:n.decode(h.value);f=!0,r[e]=a.value=m,qe(()=>{f=!1})};let f=!1;Mo()&&pt(()=>{f=!0,c(),u==null||u.close()}),u&&(u.onmessage=({data:h})=>d(h)),n.watch?se(a,()=>{f||c()},{deep:n.watch!=="shallow"}):c()}return a}function wf(e={}){return ap(document.cookie,e)}function y7(e,t,n={}){return t==null?gd(e,t,{...n,maxAge:-1}):gd(e,t,n)}function b7(e,t,n={}){document.cookie=y7(e,t,n)}const _f=2147483647;function w7(e,t,n){let r,s,i=0;const o=n?N(e):{value:e};return Mo()&&pt(()=>{s==null||s(),clearTimeout(r)}),ag((a,l)=>{n&&(s=se(o,l));function u(){clearTimeout(r);const c=t-i,d=c<_f?c:_f;r=setTimeout(()=>{if(i+=d,i{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ae(()=>Promise.resolve().then(()=>Si),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class tu extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class S7 extends tu{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class C7 extends tu{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class k7 extends tu{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Hl;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Hl||(Hl={}));var E7=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class x7{constructor(t,{headers:n={},customFetch:r,region:s=Hl.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=_7(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return E7(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let u;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=o):typeof o=="string"?(a["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(a["Content-Type"]="application/json",u=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(m=>{throw new S7(m)}),d=c.headers.get("x-relay-error");if(d&&d==="true")throw new C7(c);if(!c.ok)throw new k7(c);let f=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="text/event-stream"?h=c:f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(s){return{data:null,error:s}}})}}var T7=function(){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")},fs=T7();const A7=fs.fetch,nu=fs.fetch.bind(fs),l0=fs.Headers,L7=fs.Request,P7=fs.Response,Si=Object.freeze(Object.defineProperty({__proto__:null,Headers:l0,Request:L7,Response:P7,default:nu,fetch:A7},Symbol.toStringTag,{value:"Module"}));class O7 extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}class R7{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=nu:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let u=null,c=null,d=null,f=i.status,h=i.statusText;if(i.ok){if(this.method!=="HEAD"){const S=await i.text();S===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=S:c=JSON.parse(S))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),p=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&p&&p.length>1&&(d=parseInt(p[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,d=null,f=406,h="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const g=await i.text();try{u=JSON.parse(g),Array.isArray(u)&&i.status===404&&(c=[],u=null,f=200,h="OK")}catch{i.status===404&&g===""?(f=204,h="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,h="OK"),u&&this.shouldThrowOnError)throw new O7(u)}return{error:u,data:c,count:d,status:f,statusText:h}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}}class I7 extends R7{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Kr extends I7{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}}class M7{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),new Kr({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),r||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Kr({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Kr({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new Kr({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Kr({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const $7="1.15.2",V7={"X-Client-Info":`postgrest-js/${$7}`};class ru{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},V7),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new M7(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new ru(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){let o;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(o=r?"HEAD":"GET",Object.entries(n).filter(([c,d])=>d!==void 0).map(([c,d])=>[c,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([c,d])=>{a.searchParams.append(c,d)})):(o="POST",l=n);const u=Object.assign({},this.headers);return i&&(u.Prefer=`count=${i}`),new Kr({method:o,url:a,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}}const H7="2.9.5",D7={"X-Client-Info":`realtime-js/${H7}`},j7="1.0.0",c0=1e4,N7=1e3;var rs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(rs||(rs={}));var Dt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Dt||(Dt={}));var ln;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ln||(ln={}));var Dl;(function(e){e.websocket="websocket"})(Dl||(Dl={}));var mr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(mr||(mr={}));class u0{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class B7{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class Ha{constructor(t,n,r={},s=c0){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Sf;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Sf||(Sf={}));class qs{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=qs.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=qs.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=qs.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const d=i[u];if(d){const f=c.map(p=>p.presence_ref),h=d.map(p=>p.presence_ref),m=c.filter(p=>h.indexOf(p.presence_ref)<0),g=d.filter(p=>f.indexOf(p.presence_ref)<0);m.length>0&&(a[u]=m),g.length>0&&(l[u]=g)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[a].unshift(...f)}r(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var $e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})($e||($e={}));const Cf=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=F7(o,e,t,s),i),{})},F7=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?d0(i,o):jl(o)},d0=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return G7(t,n)}switch(e){case $e.bool:return U7(t);case $e.float4:case $e.float8:case $e.int2:case $e.int4:case $e.int8:case $e.numeric:case $e.oid:return z7(t);case $e.json:case $e.jsonb:return W7(t);case $e.timestamp:return q7(t);case $e.abstime:case $e.date:case $e.daterange:case $e.int4range:case $e.int8range:case $e.money:case $e.reltime:case $e.text:case $e.time:case $e.timestamptz:case $e.timetz:case $e.tsrange:case $e.tstzrange:return jl(t);default:return jl(t)}},jl=e=>e,U7=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},z7=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},W7=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},G7=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>d0(t,a))}return e},q7=e=>typeof e=="string"?e.replace(" ","T"):e;var kf;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(kf||(kf={}));var Ef;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(Ef||(Ef={}));var xf;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(xf||(xf={}));class su{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Dt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},n.config),this.timeout=this.socket.timeout,this.joinPush=new Ha(this,ln.join,this.params,this.timeout),this.rejoinTimer=new u0(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Dt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Dt.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Dt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Dt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ln.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new qs(this),this.broadcastEndpointURL=this._broadcastEndpointURL()}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o}}=this.params;this._onError(u=>t&&t("CHANNEL_ERROR",u)),this._onClose(()=>t&&t("CLOSED"));const a={},l={broadcast:i,presence:o,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(u=>u.filter))!==null&&s!==void 0?s:[]};this.socket.accessToken&&(a.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},a)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:u})=>{var c;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),u===void 0){t&&t("SUBSCRIBED");return}else{const d=this.bindings.postgres_changes,f=(c=d==null?void 0:d.length)!==null&&c!==void 0?c:0,h=[];for(let m=0;m{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,a={method:"POST",headers:{apikey:(r=this.socket.apiKey)!==null&&r!==void 0?r:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o}]})};try{return(await this._fetchWithTimeout(this.broadcastEndpointURL,a,(s=n.timeout)!==null&&s!==void 0?s:this.timeout)).ok?"ok":"error"}catch(l){return l.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Dt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ln.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const s=new Ha(this,ln.leave,{},t);s.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}_broadcastEndpointURL(){let t=this.socket.endPoint;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ha(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=ln;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var m,g,p;return((m=h.filter)===null||m===void 0?void 0:m.event)==="*"||((p=(g=h.filter)===null||g===void 0?void 0:g.event)===null||p===void 0?void 0:p.toLocaleLowerCase())===o}).map(h=>h.callback(f,r)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var m,g,p,S,y,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,x=(m=h.filter)===null||m===void 0?void 0:m.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((p=n.data)===null||p===void 0?void 0:p.type.toLocaleLowerCase()))}else{const _=(y=(S=h==null?void 0:h.filter)===null||S===void 0?void 0:S.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return _==="*"||_===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof f=="object"&&"ids"in f){const m=f.data,{schema:g,table:p,commit_timestamp:S,type:y,errors:v}=m;f=Object.assign(Object.assign({},{schema:g,table:p,commit_timestamp:S,eventType:y,new:{},old:{},errors:v}),this._getPayloadRecords(m))}h.callback(f,r)})}_isClosed(){return this.state===Dt.closed}_isJoined(){return this.state===Dt.joined}_isJoining(){return this.state===Dt.joining}_isLeaving(){return this.state===Dt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&su.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ln.close,{},t)}_onError(t){this._on(ln.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Dt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Cf(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Cf(t.columns,t.old_record)),n}}const K7=()=>{},Y7=typeof WebSocket<"u";class J7{constructor(t,n){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.headers=D7,this.params={},this.timeout=c0,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=K7,this.conn=null,this.sendBuffer=[],this.serializer=new B7,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=i=>{let o;return i?o=i:typeof fetch>"u"?o=(...a)=>Ae(()=>Promise.resolve().then(()=>Si),void 0,import.meta.url).then(({default:l})=>l(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${t}/${Dl.websocket}`,n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;s&&(this.accessToken=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(i,o)=>o(JSON.stringify(i)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new u0(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(Y7){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new Z7(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),Ae(()=>import("./DHQGxp4k.js").then(t=>t.b),__vite__mapDeps([63,49]),import.meta.url).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case rs.connecting:return mr.Connecting;case rs.open:return mr.Open;case rs.closing:return mr.Closing;default:return mr.Closed}}isConnected(){return this.connectionState()===mr.Open}channel(t,n={config:{}}){const r=new su(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(ln.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:j7}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:i,ref:o}=n;(o&&o===this.pendingHeartbeatRef||s===(i==null?void 0:i.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${r} ${s} ${o&&"("+o+")"||""}`,i),this.channels.filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,i,o)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(ln.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(N7,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class Z7{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=rs.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class iu extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ut(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class X7 extends iu{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Tf extends iu{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var Q7=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const f0=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ae(()=>Promise.resolve().then(()=>Si),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},e6=()=>Q7(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Ae(()=>Promise.resolve().then(()=>Si),void 0,import.meta.url)).Response:Response});var _s=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Da=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),t6=(e,t)=>_s(void 0,void 0,void 0,function*(){const n=yield e6();e instanceof n?e.json().then(r=>{t(new X7(Da(r),e.status||500))}).catch(r=>{t(new Tf(Da(r),r))}):t(new Tf(Da(e),e))}),n6=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};function ea(e,t,n,r,s,i){return _s(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,n6(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>t6(l,a))})})}function Nl(e,t,n,r){return _s(this,void 0,void 0,function*(){return ea(e,"GET",t,n,r)})}function Gn(e,t,n,r,s){return _s(this,void 0,void 0,function*(){return ea(e,"POST",t,r,s,n)})}function r6(e,t,n,r,s){return _s(this,void 0,void 0,function*(){return ea(e,"PUT",t,r,s,n)})}function h0(e,t,n,r,s){return _s(this,void 0,void 0,function*(){return ea(e,"DELETE",t,r,s,n)})}var Gt=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const s6={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Af={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class i6{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=f0(s)}uploadOrUpdate(t,n,r,s){return Gt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Af),s),a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl)):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType);const l=this._removeEmptyFolders(n),u=this._getFinalPath(l),c=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{})),d=yield c.json();return c.ok?{data:{path:l,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(i){if(ut(i))return{data:null,error:i};throw i}})}upload(t,n,r){return Gt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return Gt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Af.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:c}),f=yield d.json();return d.ok?{data:{path:i,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(ut(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return Gt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const r=yield Gn(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:this.headers}),s=new URL(this.url+r.url),i=s.searchParams.get("token");if(!i)throw new iu("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:i},error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}update(t,n,r){return Gt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n){return Gt(this,void 0,void 0,function*(){try{return{data:yield Gn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}copy(t,n){return Gt(this,void 0,void 0,function*(){try{return{data:{path:(yield Gn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers})).Key},error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}createSignedUrl(t,n,r){return Gt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield Gn(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return Gt(this,void 0,void 0,function*(){try{const s=yield Gn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}download(t,n){return Gt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Nl(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ut(a))return{data:null,error:a};throw a}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return Gt(this,void 0,void 0,function*(){try{return{data:yield h0(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}list(t,n,r){return Gt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},s6),n),{prefix:t||""});return{data:yield Gn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const o6="2.5.5",a6={"X-Client-Info":`storage-js/${o6}`};var Fr=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class l6{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},a6),n),this.fetch=f0(r)}listBuckets(){return Fr(this,void 0,void 0,function*(){try{return{data:yield Nl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(ut(t))return{data:null,error:t};throw t}})}getBucket(t){return Fr(this,void 0,void 0,function*(){try{return{data:yield Nl(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Fr(this,void 0,void 0,function*(){try{return{data:yield Gn(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Fr(this,void 0,void 0,function*(){try{return{data:yield r6(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Fr(this,void 0,void 0,function*(){try{return{data:yield Gn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Fr(this,void 0,void 0,function*(){try{return{data:yield h0(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}}class c6 extends l6{constructor(t,n={},r){super(t,n,r)}from(t){return new i6(this.url,this.headers,t,this.fetch)}}const u6="2.43.0";let Is="";typeof Deno<"u"?Is="deno":typeof document<"u"?Is="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Is="react-native":Is="node";const d6={"X-Client-Info":`supabase-js-${Is}/${u6}`},f6={headers:d6},h6={schema:"public"},g6={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},m6={};var v6=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const p6=e=>{let t;return e?t=e:typeof fetch>"u"?t=nu:t=fetch,(...n)=>t(...n)},y6=()=>typeof Headers>"u"?l0:Headers,b6=(e,t,n)=>{const r=p6(n),s=y6();return(i,o)=>v6(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};function w6(e){return e.replace(/\/$/,"")}function _6(e,t){const{db:n,auth:r,realtime:s,global:i}=e,{db:o,auth:a,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},o),n),auth:Object.assign(Object.assign({},a),r),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},u),i)}}const g0="2.64.1",S6="http://localhost:9999",C6="supabase.auth.token",k6={"X-Client-Info":`gotrue-js/${g0}`},Lf=10,Bl="X-Supabase-Api-Version",m0={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function E6(e){return Math.round(Date.now()/1e3)+e}function x6(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const on=()=>typeof document<"u",lr={tested:!1,writable:!1},Ks=()=>{if(!on())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(lr.tested)return lr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),lr.tested=!0,lr.writable=!0}catch{lr.tested=!0,lr.writable=!1}return lr.writable};function ja(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const v0=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ae(()=>Promise.resolve().then(()=>Si),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},T6=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",p0=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ki=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Na=async(e,t)=>{await e.removeItem(t)};function A6(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,s,i,o,a,l,u,c=0;for(e=e.replace("-","+").replace("_","/");c>4,s=(a&15)<<4|l>>2,i=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&s!=0&&(n=n+String.fromCharCode(s)),u!=64&&i!=0&&(n=n+String.fromCharCode(i));return n}class ta{constructor(){this.promise=new ta.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ta.promiseConstructor=Promise;function Pf(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(A6(r))}async function L6(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function P6(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function O6(e){return("0"+e.toString(16)).substr(-2)}function R6(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,O6).join("")}async function I6(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}function M6(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function $6(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await I6(e);return M6(n)}async function Ur(e,t,n=!1){const r=R6();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await p0(e,`${t}-code-verifier`,s);const i=await $6(r);return[i,r===i?"plain":"s256"]}const V6=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function H6(e){const t=e.headers.get(Bl);if(!t||!t.match(V6))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class ou extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function me(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class D6 extends ou{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function j6(e){return me(e)&&e.name==="AuthApiError"}class y0 extends ou{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class $r extends ou{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class cr extends $r{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class Ba extends $r{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Yi extends $r{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Ji extends $r{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Of extends $r{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Fl extends $r{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Fa(e){return me(e)&&e.name==="AuthRetryableFetchError"}class Rf extends $r{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var N6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);se.msg||e.message||e.error_description||e.error||JSON.stringify(e),B6=[502,503,504];async function If(e){var t;if(!T6(e))throw new Fl(fr(e),0);if(B6.includes(e.status))throw new Fl(fr(e),e.status);let n;try{n=await e.json()}catch(i){throw new y0(fr(i),i)}let r;const s=H6(e);if(s&&s.getTime()>=m0["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Rf(fr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[])}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Rf(fr(n),e.status,n.weak_password.reasons);throw new D6(fr(n),e.status||500,r)}const F6=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function be(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Bl]||(i[Bl]=m0["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await U6(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function U6(e,t,n,r,s,i){const o=F6(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Fl(fr(l),0)}if(a.ok||await If(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await If(l)}}function Nn(e){var t;let n=null;q6(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=E6(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Mf(e){const t=Nn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function qn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function z6(e){return{data:e,error:null}}function W6(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=N6(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function G6(e){return e}function q6(e){return e.access_token&&e.refresh_token&&e.expires_in}var K6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s0&&(h.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),p=JSON.parse(m.split(";")[1].split("=")[1]);u[`${p}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(me(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await be(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:qn})}catch(n){if(me(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await be(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:qn})}catch(r){if(me(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await be(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:qn})}catch(r){if(me(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await be(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(me(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await be(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(me(n))return{data:null,error:n};throw n}}}const J6={getItem:e=>Ks()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Ks()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Ks()&&globalThis.localStorage.removeItem(e)}};function $f(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function Z6(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const zr={debug:!!(globalThis&&Ks()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class b0 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class X6 extends b0{}async function Q6(e,t,n){zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),zr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new X6(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(zr.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}Z6();const e8={url:S6,storageKey:C6,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:k6,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Ts=30*1e3,Vf=3;async function Hf(e,t,n){return await n()}class oi{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=oi.nextInstanceID,oi.nextInstanceID+=1,this.instanceID>0&&on()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},e8),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new Y6({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=v0(s.fetch),this.lock=s.lock||Hf,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:on()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Q6:this.lock=Hf,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?s.storage?this.storage=s.storage:Ks()?this.storage=J6:(this.memoryStorage={},this.storage=$f(this.memoryStorage)):(this.memoryStorage={},this.storage=$f(this.memoryStorage)),on()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${g0}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=on()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:r}=await this._getSessionFromURL(t);if(r)return this._debug("#_initialize()","error detecting session from URL",r),(r==null?void 0:r.message)==="Identity is already linked"||(r==null?void 0:r.message)==="Identity is already linked to another user"?{error:r}:(await this._removeSession(),{error:r});const{session:s,redirectType:i}=n;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return me(t)?{error:t}:{error:new y0("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{await this._removeSession();const i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Nn}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(me(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,r,s;try{await this._removeSession();let i;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,m=null;this.flowType==="pkce"&&([h,m]=await Ur(this.storage,this.storageKey)),i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:m},xform:Nn})}else if("phone"in t){const{phone:c,password:d,options:f}=t;i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Nn})}else throw new Yi("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(me(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Mf})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Mf})}else throw new Yi("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ba}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(me(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await Ki(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/"),{data:i,error:o}=await be(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Nn});return await Na(this.storage,`${this.storageKey}-code-verifier`),o?{data:{user:null,session:null,redirectType:null},error:o}:!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Ba}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Nn}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ba}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(me(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if(await this._removeSession(),"email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Ur(this.storage,this.storageKey));const{error:d}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Yi("You must provide either an email or phone number.")}catch(a){if(me(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Nn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(me(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{await this._removeSession();let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Ur(this.storage,this.storageKey)),await be(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:z6})}catch(i){if(me(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new cr;const{error:s}=await be(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(me(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await be(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await be(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Yi("You must provide either an email or phone number and a type")}catch(n){if(me(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ki(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r)return this.storage.isServer&&(t=new Proxy(t,{get(a,l,u){return l==="user"&&console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),Reflect.get(a,l,u)}})),{data:{session:t},error:null};const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:qn}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new cr}:await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:qn})})}catch(n){if(me(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new cr;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ur(this.storage,this.storageKey));const{data:u,error:c}=await be(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:qn});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(me(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return Pf(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new cr;const n=Date.now()/1e3;let r=n,s=!0,i=null;const o=Pf(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(me(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new cr;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(me(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!on())throw new Ji("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new Ji("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new Of("Not a valid PKCE flow url.");const n=ja(window.location.href);if(t){if(!n.code)throw new Of("No code detected.");const{data:y,error:v}=await this._exchangeCodeForSession(n.code);if(v)throw v;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:y.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new Ji(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=n;if(!i||!a||!o||!u)throw new Ji("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=Ts&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const m=f-d;c-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,c):c-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",m,f,c);const{data:g,error:p}=await this._getUser(i);if(p)throw p;const S={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:f,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:S,redirectType:n.type},error:null}}catch(n){if(me(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=ja(window.location.href);return!!(on()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=ja(window.location.href),n=await Ki(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(j6(a)&&(a.status===404||a.status===401)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Na(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=x6(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Ur(this.storage,this.storageKey,!0));try{return await be(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(me(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(me(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:d,error:f}=i;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await be(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return on()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(me(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await be(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(me(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await P6(async s=>(s>0&&await L6(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await be(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Nn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Fa(i)&&Date.now()+o-r{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;athis._autoRefreshTokenTick(),Ts);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Ts);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ts}ms, refresh threshold is ${Vf} ticks`),s<=Vf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof b0)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!on()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Ur(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await be(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(me(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const{data:a,error:l}=await be(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(!((s=a==null?void 0:a.totp)===null||s===void 0)&&s.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(n){if(me(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(me(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await be(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(me(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified");return{data:{all:r,totp:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const o=this._decodeJWT(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}}oi.nextInstanceID=0;const t8=oi;class n8 extends t8{constructor(t){super(t)}}var r8=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class s8{constructor(t,n,r){var s,i,o,a,l,u,c,d;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const f=w6(t);this.realtimeUrl=`${f}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${f}/auth/v1`,this.storageUrl=`${f}/storage/v1`,this.functionsUrl=`${f}/functions/v1`;const h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,m={db:h6,realtime:m6,auth:Object.assign(Object.assign({},g6),{storageKey:h}),global:f6},g=_6(r??{},m);this.storageKey=(i=(s=g.auth)===null||s===void 0?void 0:s.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=(o=g.global)===null||o===void 0?void 0:o.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((l=g.auth)!==null&&l!==void 0?l:{},this.headers,(u=g.global)===null||u===void 0?void 0:u.fetch),this.fetch=b6(n,this._getAccessToken.bind(this),(c=g.global)===null||c===void 0?void 0:c.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},g.realtime)),this.rest=new ru(`${f}/rest/v1`,{headers:this.headers,schema:(d=g.db)===null||d===void 0?void 0:d.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new x7(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new c6(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return r8(this,void 0,void 0,function*(){const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:i,flowType:o,debug:a},l,u){var c;const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new n8({url:this.authUrl,headers:Object.assign(Object.assign({},d),l),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:o,debug:a,fetch:u,hasCustomAuthorizationHeader:(c="Authorization"in this.headers)!==null&&c!==void 0?c:!1})}_initRealtimeClient(t){return new J7(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.realtime.setAuth(r??null),this.changedAccessToken=r):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const i8=(e,t,n)=>new s8(e,t,n),o8=ot({name:"supabase",enforce:"pre",async setup(){let e,t;const n=ds(),r=Wo().public.supabase,{url:s,key:i,cookieName:o,cookieOptions:a,clientOptions:l}=r,u=i8(s,i,l),c=qi(`${o}-access-token`,a),d=qi(`${o}-refresh-token`,a),f=qi(`${o}-provider-token`,a),h=qi(`${o}-provider-refresh-token`,a);return u.auth.onAuthStateChange((m,g)=>{g?JSON.stringify(n)!==JSON.stringify(g)&&(n.value=g):n.value=null,(m==="SIGNED_IN"||m==="TOKEN_REFRESHED")&&(c.value=g==null?void 0:g.access_token,d.value=g==null?void 0:g.refresh_token,g.provider_token&&(f.value=g.provider_token),g.provider_refresh_token&&(h.value=g.provider_refresh_token)),m==="SIGNED_OUT"&&(c.value=null,d.value=null,f.value=null,h.value=null)}),[e,t]=kn(()=>u.auth.getSession()),await e,t(),{provide:{supabase:{client:u}}}}}),Df=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),KS=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),w0=e=>{const t=Ue();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Df(e)}):Df(e)},a8=ot({name:"nuxt:payload",setup(e){pn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await xd(t.path);r&&Object.assign(e.static.data,r.data)}),w0(()=>{var t;e.hooks.hook("link:prefetch",async n=>{zo(n).protocol||await xd(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Yo,1e3)})}}),l8=ot(e=>{let t;async function n(){const r=await Yo();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const s=await $fetch(Dc("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}w0(()=>{t=setTimeout(n,1e3*60*60)})});function c8(e={}){const t=e.path||window.location.pathname;let n={};try{n=ti(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.value=!0}),Ye(u8,!0),s=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const i=t.fallback||t.placeholder;if(i)return i();const o=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return Qe(a,n,o)}}}),f8=ot(e=>{const t=Y4();return e.vueApp.use(t),_i(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),h8=ot({name:"nuxt:global-components"}),Zi={},g8=ot({name:"nuxt:prefetch",setup(e){const t=pn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof Zi[r]=="function"&&await Zi[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Rr(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=Xc(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Gs[o]=="function"&&Gs[o]();s&&typeof Zi[s]=="function"&&Zi[s]()})}}),m8={favicon:{},transparent:{},maskable:{},apple:{},appleSplashScreen:{}},v8=ot(()=>{const e={};return As(e,"transparent"),As(e,"maskable"),As(e,"favicon"),As(e,"apple"),As(e,"appleSplashScreen"),{provide:{pwaIcons:e}}});function As(e,t){e[t]=Object.values(m8[t]??{}).reduce((n,r)=>{const s={...r,asImage:{src:r.url,key:`${t}-${r.name}`}};return r.width&&r.height&&(s.asImage.width=r.width,s.asImage.height=r.height),n[r.name]=s,n},{})}function p8(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:i,onRegisterError:o}=e;let a,l,u;const c=async(f=!0)=>{await l,await(u==null?void 0:u())};async function d(){if("serviceWorker"in navigator){if(a=await Ae(()=>import("./D5gOYdM7.js"),[],import.meta.url).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{o==null||o(f)}),!a)return;u=async()=>{await(a==null?void 0:a.messageSkipWaiting())};{let f=!1;const h=()=>{f=!0,a==null||a.addEventListener("controlling",m=>{m.isUpdate&&window.location.reload()}),n==null||n()};a.addEventListener("installed",m=>{typeof m.isUpdate>"u"?typeof m.isExternal<"u"?m.isExternal?h():!f&&(r==null||r()):m.isExternal?window.location.reload():!f&&(r==null||r()):m.isUpdate||r==null||r()}),a.addEventListener("waiting",h),a.addEventListener("externalwaiting",h)}a.register({immediate:t}).then(f=>{i?i("/sw.js",f):s==null||s(f)}).catch(f=>{o==null||o(f)})}}return l=d(),c}function y8(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:i,onRegisterError:o}=e,a=N(!1),l=N(!1);return{updateServiceWorker:p8({immediate:t,onNeedRefresh(){a.value=!0,n==null||n()},onOfflineReady(){l.value=!0,r==null||r()},onRegistered:s,onRegisteredSW:i,onRegisterError:o}),offlineReady:l,needRefresh:a}}const b8="standalone",w8=void 0,_8=ot(()=>{const e=N(!1),t=N(!1),n=N(!1),r=N(!0),s=navigator.userAgent,i=s.match(/iPhone|iPad|iPod/),o=`${b8}`,a=window.matchMedia(`(display-mode: ${o})`).matches,l=N(!!(a||i&&!s.match(/Safari/))),u=N(l.value);window.matchMedia(`(display-mode: ${o})`).addEventListener("change",y=>{!u.value&&y.matches&&(u.value=!0)});let c;const d=()=>c,{offlineReady:f,needRefresh:h,updateServiceWorker:m}=y8({immediate:!0,onRegisterError(){e.value=!0},onRegisteredSW(y,v){c=v}}),g=async()=>{f.value=!1,h.value=!1};let p=()=>Promise.resolve(),S=()=>{};if(!r.value){let y;const v=_=>{_.preventDefault(),y=_,n.value=!0};window.addEventListener("beforeinstallprompt",v),window.addEventListener("appinstalled",()=>{y=void 0,n.value=!1}),S=()=>{y=void 0,n.value=!1,window.removeEventListener("beforeinstallprompt",v),r.value=!0,localStorage.setItem(w8,"true")},p=async()=>{if(!n.value||!y){n.value=!1;return}n.value=!1,await qe(),y.prompt(),await y.userChoice}}return{provide:{pwa:Be({isInstalled:l,isPWAInstalled:u,showInstallPrompt:n,cancelInstall:S,install:p,swActivated:t,registrationError:e,offlineReady:f,needRefresh:h,updateServiceWorker:m,cancelPrompt:g,getSWRegistration:d})}}}),S8=ot(()=>({provide:Be({ssrClientHints:{firstRequest:!1,prefersColorSchemeAvailable:!1,prefersReducedMotionAvailable:!1,viewportHeightAvailable:!1,viewportWidthAvailable:!1}})})),C8=ot({name:"nuxt:chunk-reload",setup(e){const t=pn(),n=Wo(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:Vc(n.app.baseURL,i.fullPath);c8({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var k8=Object.defineProperty,jf=Object.getOwnPropertySymbols,E8=Object.prototype.hasOwnProperty,x8=Object.prototype.propertyIsEnumerable,Nf=(e,t,n)=>t in e?k8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bf=(e,t)=>{for(var n in t||(t={}))E8.call(t,n)&&Nf(e,n,t[n]);if(jf)for(var n of jf(t))x8.call(t,n)&&Nf(e,n,t[n]);return e},T8=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const A8=ht({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:t}){const n=N(0),r=N("100%"),s=N("100%"),i=N(0),o=N(!1),a=N(!1),l=N(0),u=N(0),c=N(0),d=N(0),f=N(!1),h=N(!1),m=N(0),g=N(null),p=N("200px"),S=N(!1),y=N(null),v=N(null),_=async()=>{await x(),i.value++},x=async()=>{e.vertical&&(o.value=!0),setInterval(()=>{if(r.value="0%",s.value="0%",y.value!==null&&v.value!==null&&y.value&&v.value)if(e.vertical&&"clientHeight"in y.value&&"clientHeight"in v.value){d.value=y.value.clientHeight,c.value=v.value.clientHeight;const H=Math.ceil(c.value/d.value);return n.value=isFinite(H)?H:0,o.value=!1,n.value}else if(!e.vertical&&"clientWidth"in y.value&&"clientWidth"in v.value){if(u.value=y.value.clientWidth,l.value=v.value.clientWidth,e.animateOnOverflowOnly)return u.value{e.clone&&_()}),se(l,async()=>{(e.clone||e.animateOnOverflowOnly)&&_()}),se(()=>e.pause,(H,X)=>{H!==X&&t(H?"onResume":"onPause")});const E=()=>{e.pauseOnHover&&(t("onPause"),f.value=!0)},C=()=>{e.pauseOnHover&&(t("onResume"),f.value=!1)},A=()=>{e.pauseOnClick&&(t("onPause"),h.value=!0)},P=()=>{e.pauseOnClick&&(t("onResume"),h.value=!1)},O=T(()=>e.pause||e.vertical&&o.value||e.animateOnOverflowOnly&&a.value?"paused":"running"),I=T(()=>e.pauseOnHover&&(f.value||h.value)||!e.pauseOnHover&&O.value==="paused"?"paused":"running"),L=T(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&O.value==="paused"?"paused":"running"),$=T(()=>{const H={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${I.value}`,"--pauseOnClick":`${L.value}`,"--pauseAnimation":`${O.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${p.value}`,"--min-width":`${r.value}`,"--min-height":`${s.value}`},X={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(X["--orientation"]="scrollY"),Bf(Bf({},H),X)}),z=T(()=>!!e.gradient),Q=async()=>{e.vertical?(s.value="100%",r.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(s.value="auto",e.animateOnOverflowOnly?r.value="auto":r.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),p.value=e.gradientWidth):e.gradientLength&&(p.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await x(),_()),S.value=!0};return rn(async()=>{Q(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(t("onComplete"),clearInterval(g.value)),t("onLoopComplete")},e.duration*1e3)}),it(()=>{clearInterval(g.value)}),{ready:S,contentWidth:u,containerWidth:l,contentHeight:d,containerHeight:c,loopCounter:m,loopInterval:g,mouseOverMarquee:f,mouseDownMarquee:h,minWidth:r,minHeight:s,animateOnOverflowPause:a,marqueeContent:y,marqueeOverlayContainer:v,componentKey:i,showGradient:z,cloneAmount:n,ForcesUpdate:_,checkForClone:x,setupMarquee:Q,getCurrentStyle:$,hoverStarted:E,hoverEnded:C,mouseDown:A,mouseUp:P}}}),L8={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},P8={class:"marquee",ref:"marqueeContent"},O8={key:1,"aria-hidden":!0,class:"marquee"};function R8(e,t,n,r,s,i){return e.ready?(ce(),Qe("div",{class:kr(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:mi(e.getCurrentStyle),key:e.componentKey,onMouseenter:t[0]||(t[0]=(...o)=>e.hoverStarted&&e.hoverStarted(...o)),onMouseleave:t[1]||(t[1]=(...o)=>e.hoverEnded&&e.hoverEnded(...o)),onMousedown:t[2]||(t[2]=(...o)=>e.mouseDown&&e.mouseDown(...o)),onMouseup:t[3]||(t[3]=(...o)=>e.mouseUp&&e.mouseUp(...o))},[tn("div",L8,null,512),e.showGradient?(ce(),Qe("div",{key:0,"aria-hidden":!0,class:kr(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):bt("",!0),tn("div",P8,[pa(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(ce(),Qe("div",O8,[pa(e.$slots,"default")])):bt("",!0),(ce(!0),Qe(ve,null,ei(e.cloneAmount,o=>(ce(),Qe("div",{"aria-hidden":!0,class:"marquee cloned",key:o},[pa(e.$slots,"default")]))),128))],38)):bt("",!0)}var I8=T8(A8,[["render",R8]]),M8={install(e,t){var n;const r=(n=t==null?void 0:t.name)!=null?n:"Vue3Marquee";e.component(r,I8)}};const $8=ot(e=>{e.vueApp.use(M8,{name:"Vue3Marquee"})}),V8=` + + + + + + + + + + + + + +`,H8=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`,D8=` + + + + + + + + + + + + + + + + + + + + + +`,j8='010110010011010110010011010110010011010110010011',N8=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`,B8='',F8=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`,U8='',z8='',W8='';function G8(e){return e.split(/(\\|\/)/g).pop().replace(/\.[^/.]+$/,"")}const q8=Object.fromEntries(Object.entries(Object.assign({"/assets/icons/couch-loading.svg":V8,"/assets/icons/inventory.svg":H8,"/assets/icons/nustar.svg":D8,"/assets/icons/osm.svg":j8,"/assets/icons/route.svg":N8,"/assets/icons/supabase.svg":B8,"/assets/icons/trip.svg":F8,"/assets/icons/vite.svg":U8,"/assets/icons/vue.svg":z8,"/assets/icons/vuetify.svg":W8})).map(([e,t])=>[G8(e),t])),K8={component:e=>vt(e.tag,{innerHTML:q8[e.icon]})},Y8=ot(e=>{e.hook("vuetify:configuration",({vuetifyOptions:t})=>{t.icons.sets.custom=K8;const n="#4CAF50";t.theme={themes:{dark:{colors:{primary:n}},light:{colors:{primary:n}}}},t.display={mobileBreakpoint:992}})}),nr=Y({border:[Boolean,Number,String]},"border");function rr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{borderClasses:T(()=>{const r=Pe(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))s.push(`border-${i}`);return s})}}const J8=[null,"default","comfortable","compact"],Ln=Y({density:{type:String,default:"default",validator:e=>J8.includes(e)}},"density");function sr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{densityClasses:T(()=>`${t}--density-${e.density}`)}}const Pn=Y({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function On(e){return{elevationClasses:T(()=>{const n=Pe(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Ft=Y({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Ut(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{roundedClasses:T(()=>{const r=Pe(e)?e.value:e.rounded,s=Pe(e)?e.value:e.tile,i=[];if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);else(s||r===!1)&&i.push("rounded-0");return i})}}const We=Y({tag:{type:String,default:"div"}},"tag"),ai=Symbol.for("vuetify:theme"),at=Y({theme:String},"theme");function Ff(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function Z8(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ff();const t=Ff();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=ft(a,o)}return ft(t,{...e,themes:n})}function X8(e){const t=Z8(e),n=N(t.defaultTheme),r=N(t.themes),s=T(()=>{const c={};for(const[d,f]of Object.entries(r.value)){const h=c[d]={...f,colors:{...f.colors}};if(t.variations)for(const m of t.variations.colors){const g=h.colors[m];if(g)for(const p of["lighten","darken"]){const S=p==="lighten"?h3:g3;for(const y of k2(t.variations[p],1))h.colors[`${m}-${p}-${y}`]=u3(S(vn(g),y))}}for(const m of Object.keys(h.colors)){if(/^on-[a-z]/.test(m)||h.colors[`on-${m}`])continue;const g=`on-${m}`,p=vn(h.colors[m]);h.colors[g]=H2(p)}}return c}),i=T(()=>s.value[n.value]),o=T(()=>{var m;const c=[];(m=i.value)!=null&&m.dark&&ur(c,":root",["color-scheme: dark"]),ur(c,":root",Uf(i.value));for(const[g,p]of Object.entries(s.value))ur(c,`.v-theme--${g}`,[`color-scheme: ${p.dark?"dark":"normal"}`,...Uf(p)]);const d=[],f=[],h=new Set(Object.values(s.value).flatMap(g=>Object.keys(g.colors)));for(const g of h)/^on-[a-z]/.test(g)?ur(f,`.${g}`,[`color: rgb(var(--v-theme-${g})) !important`]):(ur(d,`.bg-${g}`,[`--v-theme-overlay-multiplier: var(--v-theme-${g}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${g})) !important`,`color: rgb(var(--v-theme-on-${g})) !important`]),ur(f,`.text-${g}`,[`color: rgb(var(--v-theme-${g})) !important`]),ur(f,`.border-${g}`,[`--v-border-color: var(--v-theme-${g})`]));return c.push(...d,...f),c.map((g,p)=>p===0?g:` ${g}`).join("")});function a(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const d=c._context.provides.usehead;if(d)if(d.push){const f=d.push(a);Fe&&se(o,()=>{f.patch(a)})}else Fe?(d.addHeadObjs(T(a)),nn(()=>d.updateDOM())):d.addHeadObjs(a());else{let h=function(){if(typeof document<"u"&&!f){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",t.cspNonce&&m.setAttribute("nonce",t.cspNonce),f=m,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=Fe?document.getElementById("vuetify-theme-stylesheet"):null;Fe?se(o,h,{immediate:!0}):h()}}const u=T(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:i,computedThemes:s,themeClasses:u,styles:o,global:{name:n,current:i}}}function lt(e){Ze("provideTheme");const t=Se(ai,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=T(()=>e.theme??t.name.value),r=T(()=>t.themes.value[n.value]),s=T(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,current:r,themeClasses:s};return Ye(ai,i),i}function Q8(){Ze("useTheme");const e=Se(ai,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ur(e,t,n){e.push(`${t} { +`,...n.map(r=>` ${r}; +`),`} +`)}function Uf(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,i]of Object.entries(e.colors)){const o=vn(i);r.push(`--v-theme-${s}: ${o.r},${o.g},${o.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${m3(i)>.18?t:n}`)}for(const[s,i]of Object.entries(e.variables)){const o=typeof i=="string"&&i.startsWith("#")?vn(i):void 0,a=o?`${o.r}, ${o.g}, ${o.b}`:void 0;r.push(`--v-${s}: ${a??i}`)}return r}function au(e){return Wc(()=>{const t=[],n={};if(e.value.background)if(Al(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&l3(e.value.background)){const r=vn(e.value.background);if(r.a==null||r.a===1){const s=H2(r);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Al(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Xn(e,t){const n=T(()=>({text:Pe(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=au(n);return{textColorClasses:r,textColorStyles:s}}function Xt(e,t){const n=T(()=>({background:Pe(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=au(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const e9=["elevated","flat","tonal","outlined","text","plain"];function Ci(e,t){return b(ve,null,[e&&b("span",{key:"overlay",class:`${t}__overlay`},null),b("span",{key:"underlay",class:`${t}__underlay`},null)])}const Vr=Y({color:String,variant:{type:String,default:"elevated",validator:e=>e9.includes(e)}},"variant");function ki(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();const n=T(()=>{const{variant:i}=Z(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=au(T(()=>{const{variant:i,color:o}=Z(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const _0=Y({baseColor:String,divided:Boolean,...nr(),...ke(),...Ln(),...Pn(),...Ft(),...We(),...at(),...Vr()},"VBtnGroup"),zf=fe()({name:"VBtnGroup",props:_0(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{densityClasses:s}=sr(e),{borderClasses:i}=rr(e),{elevationClasses:o}=On(e),{roundedClasses:a}=Ut(e);Ir({VBtn:{height:"auto",baseColor:ie(e,"baseColor"),color:ie(e,"color"),density:ie(e,"density"),flat:!0,variant:ie(e,"variant")}}),ye(()=>b(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class],style:e.style},n))}});function En(e,t){let n;function r(){n=ps(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}se(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),pt(()=>{n==null||n.stop()})}function Bt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const i=Ze("useProxiedModel"),o=N(e[t]!==void 0?e[t]:n),a=Sr(t),u=T(a!==t?()=>{var d,f,h,m;return e[t],!!(((d=i.vnode.props)!=null&&d.hasOwnProperty(t)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(m=i.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var d,f;return e[t],!!((d=i.vnode.props)!=null&&d.hasOwnProperty(t)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});En(()=>!u.value,()=>{se(()=>e[t],d=>{o.value=d})});const c=T({get(){const d=e[t];return r(u.value?d:o.value)},set(d){const f=s(d),h=ae(u.value?e[t]:o.value);h===f||r(h)===d||(o.value=f,i==null||i.emit(`update:${t}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const t9=Y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),n9=Y({value:null,disabled:Boolean,selectedClass:String},"group-item");function r9(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Ze("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Mr();Ye(Symbol.for(`${t.description}:id`),s);const i=Se(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=ie(e,"value"),a=T(()=>!!(i.disabled.value||e.disabled));i.register({id:s,value:o,disabled:a},r),it(()=>{i.unregister(s)});const l=T(()=>i.isSelected(s)),u=T(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return se(l,c=>{r.emit("group:selected",{value:c})},{flush:"sync"}),{id:s,isSelected:l,toggle:()=>i.select(s,!l.value),select:c=>i.select(s,c),selectedClass:u,value:o,disabled:a,group:i}}function s9(e,t){let n=!1;const r=Be([]),s=Bt(e,"modelValue",[],f=>f==null?[]:S0(r,Dy(f)),f=>{const h=o9(r,f);return e.multiple?h:h[0]}),i=Ze("useGroup");function o(f,h){const m=f,g=Symbol.for(`${t.description}:id`),S=Fs(g,i==null?void 0:i.vnode).indexOf(h);Z(m.value)==null&&(m.value=S,m.useIndexAsValue=!0),S>-1?r.splice(S,0,m):r.push(m)}function a(f){if(n)return;l();const h=r.findIndex(m=>m.id===f);r.splice(h,1)}function l(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}rn(()=>{l()}),it(()=>{n=!0}),Bo(()=>{for(let f=0;fg.id===f);if(!(h&&(m!=null&&m.disabled)))if(e.multiple){const g=s.value.slice(),p=g.findIndex(y=>y===f),S=~p;if(h=h??!S,S&&e.mandatory&&g.length<=1||!S&&e.max!=null&&g.length+1>e.max)return;p<0&&h?g.push(f):p>=0&&!h&&g.splice(p,1),s.value=g}else{const g=s.value.includes(f);if(e.mandatory&&g)return;s.value=h??!g?[f]:[]}}function c(f){if(e.multiple,s.value.length){const h=s.value[0],m=r.findIndex(S=>S.id===h);let g=(m+f)%r.length,p=r[g];for(;p.disabled&&g!==m;)g=(g+f)%r.length,p=r[g];if(p.disabled)return;s.value=[r[g].id]}else{const h=r.find(m=>!m.disabled);h&&(s.value=[h.id])}}const d={register:o,unregister:a,selected:s,select:u,disabled:ie(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:f=>s.value.includes(f),selectedClass:T(()=>e.selectedClass),items:T(()=>r),getItemIndex:f=>i9(r,f)};return Ye(t,d),d}function i9(e,t){const n=S0(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function S0(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>Jo(r,o.value)),i=e[r];(s==null?void 0:s.value)!=null?n.push(s.id):i!=null&&n.push(i.id)}),n}function o9(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!=null?i.value:s)}}),n}const C0=Symbol.for("vuetify:v-btn-toggle"),a9=Y({..._0(),...t9()},"VBtnToggle");fe()({name:"VBtnToggle",props:a9(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=s9(e,C0);return ye(()=>{const l=zf.filterProps(e);return b(zf,xe({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}});const l9=Y({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ze=fe(!1)({name:"VDefaultsProvider",props:l9(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=pi(e);return Ir(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),c9=["x-small","small","default","large","x-large"],Ei=Y({size:{type:[String,Number],default:"default"}},"size");function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return Wc(()=>{let n,r;return Co(c9,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:ue(e.size),height:ue(e.size)}),{sizeClasses:n,sizeStyles:r}})}const u9=Y({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:et,...ke(),...Ei(),...We({tag:"i"}),...at()},"VIcon"),Qt=fe()({name:"VIcon",props:u9(),setup(e,t){let{attrs:n,slots:r}=t;const s=N(),{themeClasses:i}=lt(e),{iconData:o}=T3(T(()=>s.value||e.icon)),{sizeClasses:a}=na(e),{textColorClasses:l,textColorStyles:u}=Xn(ie(e,"color"));return ye(()=>{var f,h;const c=(f=r.default)==null?void 0:f.call(r);c&&(s.value=(h=T2(c).filter(m=>m.type===xr&&m.children&&typeof m.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return b(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:ue(e.size),height:ue(e.size),width:ue(e.size)},u.value,e.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function k0(e,t){const n=N(),r=le(!1);if(zc){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);it(()=>{s.disconnect()}),se(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}function lu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=N(),r=N();if(Fe){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});it(()=>{s.disconnect()}),se(n,(i,o)=>{o&&(s.unobserve(ni(o)),r.value=void 0),i&&s.observe(ni(i))},{flush:"post"})}return{resizeRef:n,contentRect:ys(r)}}const d9=Y({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ke(),...Ei(),...We({tag:"div"}),...at()},"VProgressCircular"),f9=fe()({name:"VProgressCircular",props:d9(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=N(),{themeClasses:o}=lt(e),{sizeClasses:a,sizeStyles:l}=na(e),{textColorClasses:u,textColorStyles:c}=Xn(ie(e,"color")),{textColorClasses:d,textColorStyles:f}=Xn(ie(e,"bgColor")),{intersectionRef:h,isIntersecting:m}=k0(),{resizeRef:g,contentRect:p}=lu(),S=T(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=T(()=>Number(e.width)),v=T(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),_=T(()=>r/(1-y.value/v.value)*2),x=T(()=>y.value/v.value*_.value),E=T(()=>ue((100-S.value)/100*s));return nn(()=>{h.value=i.value,g.value=i.value}),ye(()=>b(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,a.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:S.value},{default:()=>[b("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[b("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),b("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":s,"stroke-dashoffset":E.value},null)]),n.default&&b("div",{class:"v-progress-circular__content"},[n.default({value:S.value})])]})),{}}}),Rn=Y({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function In(e){return{dimensionStyles:T(()=>({height:ue(e.height),maxHeight:ue(e.maxHeight),maxWidth:ue(e.maxWidth),minHeight:ue(e.minHeight),minWidth:ue(e.minWidth),width:ue(e.width)}))}}const Ul={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Wf="$vuetify.",Gf=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),E0=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function Ua(e,t,n){const r=Bt(e,t,e[t]??n.value);return r.value=e[t]??n.value,se(n,s=>{e[t]==null&&(r.value=n.value)}),r}function T0(e){return t=>{const n=Ua(t,"locale",e.current),r=Ua(t,"fallback",e.fallback),s=Ua(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,t:E0(n,r,s),n:x0(n,r),provide:T0({current:n,fallback:r,messages:s})}}}function h9(e){const t=le((e==null?void 0:e.locale)??"en"),n=le((e==null?void 0:e.fallback)??"en"),r=N({en:Ul,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:E0(t,n,r),n:x0(t,n),provide:T0({current:t,fallback:n,messages:r})}}const Ao=Symbol.for("vuetify:locale");function g9(e){return e.name!=null}function m9(e){const t=e!=null&&e.adapter&&g9(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:h9(e),n=y9(t,e);return{...t,...n}}function v9(){const e=Se(Ao);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function p9(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function y9(e,t){const n=N((t==null?void 0:t.rtl)??p9()),r=T(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:T(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Hr(){const e=Se(Ao);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const qf={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},ra=Y({location:String},"location");function sa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Hr();return{locationStyles:T(()=>{if(!e.location)return{};const{side:i,align:o}=xl(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[qf[i]]=`calc(100% - ${a(i)}px)`:l[i]=0),o!=="center"?t?l[qf[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const b9=Y({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ke(),...ra({location:"top"}),...Ft(),...We(),...at()},"VProgressLinear"),w9=fe()({name:"VProgressLinear",props:b9(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Bt(e,"modelValue"),{isRtl:s,rtlClasses:i}=Hr(),{themeClasses:o}=lt(e),{locationStyles:a}=sa(e),{textColorClasses:l,textColorStyles:u}=Xn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:d}=Xt(T(()=>e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Xt(T(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:g}=Xt(e,"color"),{roundedClasses:p}=Ut(e),{intersectionRef:S,isIntersecting:y}=k0(),v=T(()=>parseFloat(e.max)),_=T(()=>parseFloat(e.height)),x=T(()=>Lr(parseFloat(e.bufferValue)/v.value*100,0,100)),E=T(()=>Lr(parseFloat(r.value)/v.value*100,0,100)),C=T(()=>s.value!==e.reverse),A=T(()=>e.indeterminate?"fade-transition":"slide-x-transition");function P(O){if(!S.value)return;const{left:I,right:L,width:$}=S.value.getBoundingClientRect(),z=C.value?$-O.clientX+(L-$):O.clientX-I;r.value=Math.round(z/$*v.value)}return ye(()=>b(e.tag,{ref:S,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ue(_.value):0,"--v-progress-linear-height":ue(_.value),...e.absolute?a.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:E.value,onClick:e.clickable&&P},{default:()=>[e.stream&&b("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[C.value?"left":"right"]:ue(-_.value),borderTop:`${ue(_.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ue(_.value/4)})`,width:ue(100-x.value,"%"),"--v-progress-linear-stream-to":ue(_.value*(C.value?1:-1))}},null),b("div",{class:["v-progress-linear__background",c.value],style:[d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),b("div",{class:["v-progress-linear__buffer",f.value],style:[h.value,{opacity:parseFloat(e.bufferOpacity),width:ue(x.value,"%")}]},null),b(un,{name:A.value},{default:()=>[e.indeterminate?b("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(O=>b("div",{key:O,class:["v-progress-linear__indeterminate",O,m.value],style:g.value},null))]):b("div",{class:["v-progress-linear__determinate",m.value],style:[g.value,{width:ue(E.value,"%")}]},null)]}),n.default&&b("div",{class:"v-progress-linear__content"},[n.default({value:E.value,buffer:x.value})])]})),{}}}),A0=Y({loading:[Boolean,String]},"loader");function L0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{loaderClasses:T(()=>({[`${t}--loading`]:e.loading}))}}function _9(e,t){var r;let{slots:n}=t;return b("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||b(w9,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const S9=["static","relative","fixed","absolute","sticky"],cu=Y({position:{type:String,validator:e=>S9.includes(e)}},"position");function uu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{positionClasses:T(()=>e.position?`${t}--${e.position}`:void 0)}}function C9(){const e=Ze("useRoute");return T(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function P0(){var e,t;return(t=(e=Ze("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function ia(e,t){var u,c;const n=Z1("RouterLink"),r=T(()=>!!(e.href||e.to)),s=T(()=>(r==null?void 0:r.value)||Md(t,"click")||Md(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:r,isClickable:s,href:ie(e,"href")};const i=T(()=>({...e,to:ie(()=>e.to||"")})),o=n.useLink(i.value),a=T(()=>e.to?o:void 0),l=C9();return{isLink:r,isClickable:s,route:(u=a.value)==null?void 0:u.route,navigate:(c=a.value)==null?void 0:c.navigate,isActive:T(()=>{var d,f,h;return a.value?e.exact?l.value?((h=a.value.isExactActive)==null?void 0:h.value)&&Jo(a.value.route.value.query,l.value.query):((f=a.value.isExactActive)==null?void 0:f.value)??!1:((d=a.value.isActive)==null?void 0:d.value)??!1:!1}),href:T(()=>{var d;return e.to?(d=a.value)==null?void 0:d.route.value.href:e.href})}}const oa=Y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let za=!1;function k9(e,t){let n=!1,r,s;Fe&&(qe(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,a,l)=>{za?n?t(l):l():setTimeout(()=>n?t(l):l()),za=!0}),s=e==null?void 0:e.afterEach(()=>{za=!1})}),pt(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function E9(e,t){se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&qe(()=>{t(!0)})},{immediate:!0})}const zl=Symbol("rippleStop"),x9=80;function Kf(e,t){e.style.transform=t,e.style.webkitTransform=t}function Wl(e){return e.constructor.name==="TouchEvent"}function O0(e){return e.constructor.name==="KeyboardEvent"}const T9=function(e,t){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!O0(e)){const f=t.getBoundingClientRect(),h=Wl(e)?e.touches[e.touches.length-1]:e;r=h.clientX-f.left,s=h.clientY-f.top}let i=0,o=.3;(d=t._ripple)!=null&&d.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?a:`${r-i}px`,c=n.center?l:`${s-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:a,centerY:l}},Lo={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:l,centerX:u,centerY:c}=T9(e,t,n),d=`${i*2}px`;s.className="v-ripple__animation",s.style.width=d,s.style.height=d,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Kf(s,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Kf(s,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function R0(e){return typeof e>"u"||!!e}function li(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[zl])){if(e[zl]=!0,Wl(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||O0(e),n._ripple.class&&(t.class=n._ripple.class),Wl(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Lo.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},x9)}else Lo.show(e,n,t)}}function Yf(e){e[zl]=!0}function Nt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Nt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Lo.hide(t)}}function I0(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ci=!1;function M0(e){!ci&&(e.keyCode===Ld.enter||e.keyCode===Ld.space)&&(ci=!0,li(e))}function $0(e){ci=!1,Nt(e)}function V0(e){ci&&(ci=!1,Nt(e))}function H0(e,t,n){const{value:r,modifiers:s}=t,i=R0(r);if(i||Lo.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle,El(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(s.stop){e.addEventListener("touchstart",Yf,{passive:!0}),e.addEventListener("mousedown",Yf);return}e.addEventListener("touchstart",li,{passive:!0}),e.addEventListener("touchend",Nt,{passive:!0}),e.addEventListener("touchmove",I0,{passive:!0}),e.addEventListener("touchcancel",Nt),e.addEventListener("mousedown",li),e.addEventListener("mouseup",Nt),e.addEventListener("mouseleave",Nt),e.addEventListener("keydown",M0),e.addEventListener("keyup",$0),e.addEventListener("blur",V0),e.addEventListener("dragstart",Nt,{passive:!0})}else!i&&n&&D0(e)}function D0(e){e.removeEventListener("mousedown",li),e.removeEventListener("touchstart",li),e.removeEventListener("touchend",Nt),e.removeEventListener("touchmove",I0),e.removeEventListener("touchcancel",Nt),e.removeEventListener("mouseup",Nt),e.removeEventListener("mouseleave",Nt),e.removeEventListener("keydown",M0),e.removeEventListener("keyup",$0),e.removeEventListener("dragstart",Nt),e.removeEventListener("blur",V0)}function A9(e,t){H0(e,t,!1)}function L9(e){delete e._ripple,D0(e)}function P9(e,t){if(t.value===t.oldValue)return;const n=R0(t.oldValue);H0(e,t,n)}const du={mounted:A9,unmounted:L9,updated:P9},j0=Y({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:C0},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:et,appendIcon:et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...nr(),...ke(),...Ln(),...Rn(),...Pn(),...n9(),...A0(),...ra(),...cu(),...Ft(),...oa(),...Ei(),...We({tag:"button"}),...at(),...Vr({variant:"elevated"})},"VBtn"),hs=fe()({name:"VBtn",props:j0(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{borderClasses:i}=rr(e),{densityClasses:o}=sr(e),{dimensionStyles:a}=In(e),{elevationClasses:l}=On(e),{loaderClasses:u}=L0(e),{locationStyles:c}=sa(e),{positionClasses:d}=uu(e),{roundedClasses:f}=Ut(e),{sizeClasses:h,sizeStyles:m}=na(e),g=r9(e,e.symbol,!1),p=ia(e,n),S=T(()=>{var O;return e.active!==void 0?e.active:p.isLink.value?(O=p.isActive)==null?void 0:O.value:g==null?void 0:g.isSelected.value}),y=T(()=>{var I,L;return{color:(g==null?void 0:g.isSelected.value)&&(!p.isLink.value||((I=p.isActive)==null?void 0:I.value))||!g||((L=p.isActive)==null?void 0:L.value)?e.color??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:v,colorStyles:_,variantClasses:x}=ki(y),E=T(()=>(g==null?void 0:g.disabled.value)||e.disabled),C=T(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),A=T(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function P(O){var I;E.value||p.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||((I=p.navigate)==null||I.call(p,O),g==null||g.toggle())}return E9(p,g==null?void 0:g.select),ye(()=>{const O=p.isLink.value?"a":e.tag,I=!!(e.prependIcon||r.prepend),L=!!(e.appendIcon||r.append),$=!!(e.icon&&e.icon!==!0);return Er(b(O,{type:O==="a"?void 0:"button",class:["v-btn",g==null?void 0:g.selectedClass.value,{"v-btn--active":S.value,"v-btn--block":e.block,"v-btn--disabled":E.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},s.value,i.value,v.value,o.value,l.value,u.value,d.value,f.value,h.value,x.value,e.class],style:[_.value,a.value,c.value,m.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:E.value||void 0,href:p.href.value,tabindex:e.loading||e.readonly?-1:void 0,onClick:P,value:A.value},{default:()=>{var z;return[Ci(!0,"v-btn"),!e.icon&&I&&b("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):b(Qt,{key:"prepend-icon",icon:e.prependIcon},null)]),b("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&$?b(Qt,{key:"content-icon",icon:e.icon},null):b(ze,{key:"content-defaults",disabled:!$,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var Q;return[((Q=r.default)==null?void 0:Q.call(r))??e.text]}})]),!e.icon&&L&&b("span",{key:"append",class:"v-btn__append"},[r.append?b(ze,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):b(Qt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&b("span",{key:"loader",class:"v-btn__loader"},[((z=r.loader)==null?void 0:z.call(r))??b(f9,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[du,!E.value&&!!e.ripple,"",{center:!!e.icon}]])}),{group:g}}});function O9(e){return{aspectStyles:T(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const N0=Y({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...ke(),...Rn()},"VResponsive"),Jf=fe()({name:"VResponsive",props:N0(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=O9(e),{dimensionStyles:s}=In(e);return ye(()=>{var i;return b("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[b("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&b("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),B0=Y({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Jr=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Uo:un,...l}=typeof r=="object"?r:{};return vt(a,xe(typeof r=="string"?{name:s?"":r}:l,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:i}).filter(u=>{let[c,d]=u;return d!==void 0})),o),n)};function R9(e,t){if(!zc)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var d;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(d=e._observe)==null?void 0:d[t.instance.$.uid];if(!u)return;const c=a.some(f=>f.isIntersecting);s&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&s(c,a,l),c&&n.once?F0(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function F0(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const I9={mounted:R9,unmounted:F0},M9=Y({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...N0(),...ke(),...Ft(),...B0()},"VImg"),Ss=fe()({name:"VImg",directives:{intersect:I9},props:M9(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=Xt(ie(e,"color")),{roundedClasses:o}=Ut(e),a=Ze("VImg"),l=le(""),u=N(),c=le(e.eager?"loading":"idle"),d=le(),f=le(),h=T(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),m=T(()=>h.value.aspect||d.value/f.value||0);se(()=>e.src,()=>{g(c.value!=="idle")}),se(m,(L,$)=>{!L&&$&&u.value&&_(u.value)}),ih(()=>g());function g(L){if(!(e.eager&&L)&&!(zc&&!L&&!e.eager)){if(c.value="loading",h.value.lazySrc){const $=new Image;$.src=h.value.lazySrc,_($,null)}h.value.src&&qe(()=>{var $;n("loadstart",(($=u.value)==null?void 0:$.currentSrc)||h.value.src),setTimeout(()=>{var z;if(!a.isUnmounted)if((z=u.value)!=null&&z.complete){if(u.value.naturalWidth||S(),c.value==="error")return;m.value||_(u.value,null),c.value==="loading"&&p()}else m.value||_(u.value),y()})})}}function p(){var L;a.isUnmounted||(y(),_(u.value),c.value="loaded",n("load",((L=u.value)==null?void 0:L.currentSrc)||h.value.src))}function S(){var L;a.isUnmounted||(c.value="error",n("error",((L=u.value)==null?void 0:L.currentSrc)||h.value.src))}function y(){const L=u.value;L&&(l.value=L.currentSrc||L.src)}let v=-1;it(()=>{clearTimeout(v)});function _(L){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const z=()=>{if(clearTimeout(v),a.isUnmounted)return;const{naturalHeight:Q,naturalWidth:H}=L;Q||H?(d.value=H,f.value=Q):!L.complete&&c.value==="loading"&&$!=null?v=window.setTimeout(z,$):(L.currentSrc.endsWith(".svg")||L.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};z()}const x=T(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),E=()=>{var z;if(!h.value.src||c.value==="idle")return null;const L=b("img",{class:["v-img__img",x.value],style:{objectPosition:e.position},src:h.value.src,srcset:h.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:p,onError:S},null),$=(z=r.sources)==null?void 0:z.call(r);return b(Jr,{transition:e.transition,appear:!0},{default:()=>[Er($?b("picture",{class:"v-img__picture"},[$,L]):L,[[Ic,c.value==="loaded"]])]})},C=()=>b(Jr,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&b("img",{class:["v-img__img","v-img__img--preload",x.value],style:{objectPosition:e.position},src:h.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),A=()=>r.placeholder?b(Jr,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&b("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,P=()=>r.error?b(Jr,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&b("div",{class:"v-img__error"},[r.error()])]}):null,O=()=>e.gradient?b("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,I=le(!1);{const L=se(m,$=>{$&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.value=!0})}),L())})}return ye(()=>{const L=Jf.filterProps(e);return Er(b(Jf,xe({class:["v-img",{"v-img--booting":!I.value},s.value,o.value,e.class],style:[{width:ue(e.width==="auto"?d.value:e.width)},i.value,e.style]},L,{aspectRatio:m.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>b(ve,null,[b(E,null,null),b(C,null,null),b(O,null,null),b(A,null,null),b(P,null,null)]),default:r.default}),[[jo("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),YS=["sm","md","lg","xl","xxl"],Gl=Symbol.for("vuetify:display"),Zf={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},$9=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zf;return ft(Zf,e)};function Xf(e){return Fe&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Qf(e){return Fe&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function e1(e){const t=Fe&&!e?window.navigator.userAgent:"ssr";function n(m){return!!t.match(m)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:Ry,ssr:t==="ssr"}}function V9(e,t){const{thresholds:n,mobileBreakpoint:r}=$9(e),s=le(Qf(t)),i=le(e1(t)),o=Be({}),a=le(Xf(t));function l(){s.value=Qf(),a.value=Xf()}function u(){l(),i.value=e1()}return nn(()=>{const c=a.value=n.xxl,p=c?"xs":d?"sm":f?"md":h?"lg":m?"xl":"xxl",S=typeof r=="number"?r:n[r],y=a.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();const n=Se(Gl);if(!n)throw new Error("Could not find Vuetify display injection");const r=T(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const i=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const D9=Y({actionText:String,bgColor:String,color:String,icon:et,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...ke(),...Rn(),...Ei({size:void 0}),...at()},"VEmptyState"),j9=fe()({name:"VEmptyState",props:D9(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:s}=lt(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Xt(ie(e,"bgColor")),{dimensionStyles:a}=In(e),{displayClasses:l}=aa();function u(c){n("click:action",c)}return ye(()=>{var p,S,y;const c=!!(r.actions||e.actionText),d=!!(r.headline||e.headline),f=!!(r.title||e.title),h=!!(r.text||e.text),m=!!(r.media||e.image||e.icon),g=e.size||(e.image?200:96);return b("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},s.value,i.value,l.value,e.class],style:[o.value,a.value,e.style]},[m&&b("div",{key:"media",class:"v-empty-state__media"},[r.media?b(ze,{key:"media-defaults",defaults:{VImg:{src:e.image,height:g},VIcon:{size:g,icon:e.icon}}},{default:()=>[r.media()]}):b(ve,null,[e.image?b(Ss,{key:"image",src:e.image,height:g},null):e.icon?b(Qt,{key:"icon",color:e.color,size:g,icon:e.icon},null):void 0])]),d&&b("div",{key:"headline",class:"v-empty-state__headline"},[((p=r.headline)==null?void 0:p.call(r))??e.headline]),f&&b("div",{key:"title",class:"v-empty-state__title"},[((S=r.title)==null?void 0:S.call(r))??e.title]),h&&b("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:ue(e.textWidth)}},[((y=r.text)==null?void 0:y.call(r))??e.text]),r.default&&b("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&b("div",{key:"actions",class:"v-empty-state__actions"},[b(ze,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color,text:e.actionText}}},{default:()=>{var v;return[((v=r.actions)==null?void 0:v.call(r,{props:{onClick:u}}))??b(hs,{onClick:u},null)]}})])])}),{}}}),t1={badge:"徽章",open:"Open",close:"关闭",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"没有符合条件的结果",loadingText:"加载中……"},dataTable:{itemsPerPageText:"每页数目:",ariaLabel:{sortDescending:":降序排列。",sortAscending:":升序排列。",sortNone:":未排序。",activateNone:"点击以移除排序。",activateDescending:"点击以降序排列。",activateAscending:"点击以升序排列。"},sortBy:"排序方式"},dataFooter:{itemsPerPageText:"每页数目:",itemsPerPageAll:"全部",nextPage:"下一页",prevPage:"上一页",firstPage:"首页",lastPage:"尾页",pageText:"{0}-{1} 共 {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"没有数据",carousel:{prev:"上一张",next:"下一张",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"还有 {0} 项",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} 个文件",counterSize:"{0} 个文件(共 {1})"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"分页导航",next:"下一页",previous:"上一页",page:"转到页面 {0}",currentPage:"当前页 {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},n1=!1;function N9(){const e={blueprint:{defaults:{VAppBar:{flat:!0},VAutocomplete:{variant:"filled"},VBanner:{color:"primary"},VBottomSheet:{contentClass:"rounded-t-xl overflow-hidden"},VBtn:{color:"primary",rounded:"xl"},VBtnGroup:{rounded:"xl",VBtn:{rounded:null}},VCard:{rounded:"lg"},VCheckbox:{color:"secondary",inset:!0},VChip:{rounded:"sm"},VCombobox:{variant:"filled"},VNavigationDrawer:{},VSelect:{variant:"filled"},VSlider:{color:"primary"},VTabs:{color:"primary"},VTextarea:{variant:"filled"},VTextField:{variant:"filled"},VToolbar:{VBtn:{color:null}}},theme:{themes:{light:{colors:{primary:"#6750a4",secondary:"#b4b0bb",tertiary:"#7d5260",error:"#b3261e",surface:"#fffbfe"}}}}},locale:{locale:"en",fallback:"de"},defaults:{VSwitch:{color:"primary"},VDataTable:{fixedHeader:!0,hover:!0},VCard:{flat:!0,border:!0},VBtn:{color:""},VNavigationDrawer:{VList:{nav:!0,VListItem:{rounded:"xl"}}},VChip:{rounded:"lg"},VSelect:{color:"primary"},VTextarea:{color:"primary"},VTextField:{color:"primary"},VCheckbox:{color:"primary"},VCheckboxBtn:{color:"primary"},VProgressLinear:{color:"primary"}},display:{mobileBreakpoint:"sm"},theme:{defaultTheme:"dark",themes:{light:{colors:{}},dark:{colors:{}}}}};return e.components={VEmptyState:j9},e.locale=e.locale||{},e.locale.messages=e.locale.messages||{},"zhHans"in e.locale.messages&&ql(e.locale.messages.zhHans,t1),e.locale.messages.zhHans=t1,"en"in e.locale.messages&&ql(e.locale.messages.en,Ul),e.locale.messages.en=Ul,e}function ql(e,t){for(const n in e)typeof e[n]=="object"?(typeof t[n]!="object"&&(t[n]={}),ql(e[n],t[n])):t[n]=e[n]}const ui={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function B9(e,t){const n=[];let r=[];const s=U0(e),i=z0(e),o=(s.getDay()-ui[t.slice(-2).toUpperCase()]+7)%7,a=(i.getDay()-ui[t.slice(-2).toUpperCase()]+7)%7;for(let l=0;l0&&n.push(r),n}function F9(e,t){const n=new Date(e);for(;n.getDay()!==(ui[t.slice(-2).toUpperCase()]??0);)n.setDate(n.getDate()-1);return n}function U9(e,t){const n=new Date(e),r=((ui[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function U0(e){return new Date(e.getFullYear(),e.getMonth(),1)}function z0(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function z9(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const W9=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function W0(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(W9.test(e))return z9(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const r1=new Date(2e3,0,2);function G9(e){const t=ui[e.slice(-2).toUpperCase()];return k2(7).map(n=>{const r=new Date(r1);return r.setDate(r1.getDate()+t+n),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function q9(e,t,n,r){const s=W0(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function K9(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Rd(String(n.getMonth()+1),2,"0"),i=Rd(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function Y9(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function J9(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Z9(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function X9(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Q9(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function eb(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function tb(e){return e.getFullYear()}function nb(e){return e.getMonth()}function rb(e){return e.getDate()}function sb(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function ib(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function ob(e){return e.getHours()}function ab(e){return e.getMinutes()}function lb(e){return new Date(e.getFullYear(),0,1)}function cb(e){return new Date(e.getFullYear(),11,31)}function ub(e,t){return Po(e,t[0])&&hb(e,t[1])}function db(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Po(e,t){return e.getTime()>t.getTime()}function fb(e,t){return Po(Kl(e),Kl(t))}function hb(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}const G0=Symbol.for("vuetify:goto");function q0(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function Ab(e){return fu(e)??(document.scrollingElement||document.body)}function fu(e){return typeof e=="string"?document.querySelector(e):ni(e)}function Wa(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=fu(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function Lb(e,t){return{rtl:t.isRtl,options:ft(q0(),e)}}async function o1(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=ft((r==null?void 0:r.options)??q0(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:fu(e))??0,l=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:Ab(i.container),u=typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!u)throw new TypeError(`Easing function "${i.easing}" not found.`);let c;if(typeof a=="number")c=Wa(a,n,o);else if(c=Wa(a,n,o)-Wa(l,n,o),i.layout){const m=window.getComputedStyle(a).getPropertyValue("--v-layout-top");m&&(c-=parseInt(m,10))}c+=i.offset,c=Pb(l,c,!!o,!!n);const d=l[s]??0;if(c===d)return Promise.resolve(c);const f=performance.now();return new Promise(h=>requestAnimationFrame(function m(g){const S=(g-f)/i.duration,y=Math.floor(d+(c-d)*u(Lr(S,0,1)));if(l[s]=y,S>=1&&Math.abs(y-l[s])<10)return h(c);if(S>2)return h(l[s]);requestAnimationFrame(m)}))}function JS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Se(G0),{isRtl:n}=Hr();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:T(()=>t.rtl.value||n.value)};async function s(i,o){return o1(i,ft(e,o),!1,r)}return s.horizontal=async(i,o)=>o1(i,ft(e,o),!0,r),s}function Pb(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(s-o),u=0):(l=0,u=s-o):(l=0,u=i+-a),Math.max(Math.min(t,u),l)}const Oo=Symbol.for("vuetify:layout"),K0=Symbol.for("vuetify:layout-item"),a1=1e3,Ob=Y({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),hu=Y({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Rb(){const e=Se(Oo);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:qe(),getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function gu(e){const t=Se(Oo);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Mr()}`,r=Ze("useLayoutItem");Ye(K0,{id:n});const s=le(!1);Tc(()=>s.value=!0),xc(()=>s.value=!1);const i=qe(),{layoutItemStyles:o,layoutItemScrimStyles:a}=t.register(r,{...e,active:T(()=>s.value?!1:e.active.value),id:n});return it(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:a,layoutIsReady:i}}const Ib=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),l=n.get(o),u=r.get(o);if(!a||!l||!u)continue;const c={...s,[a.value]:parseInt(s[a.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),s=c}return i};function Mb(e){const t=Se(Oo,null),n=T(()=>t?t.rootZIndex.value-100:a1),r=N([]),s=Be(new Map),i=Be(new Map),o=Be(new Map),a=Be(new Map),l=Be(new Map),{resizeRef:u,contentRect:c}=lu(),d=$d(()=>{const x=[...new Set([...o.values()].map(C=>C.value))].sort((C,A)=>C-A),E=[];for(const C of x){const A=r.value.filter(P=>{var O;return((O=o.get(P))==null?void 0:O.value)===C});E.push(...A)}return Ib(E,s,i,a)}),f=T(()=>!Array.from(l.values()).some(x=>x.value)),h=T(()=>d.value[d.value.length-1].layer),m=T(()=>({"--v-layout-left":ue(h.value.left),"--v-layout-right":ue(h.value.right),"--v-layout-top":ue(h.value.top),"--v-layout-bottom":ue(h.value.bottom),...f.value?void 0:{transition:"none"}})),g=$d(()=>d.value.slice(1).map((x,E)=>{let{id:C}=x;const{layer:A}=d.value[E],P=i.get(C),O=s.get(C);return{id:C,...A,size:Number(P.value),position:O.value}})),p=x=>g.value.find(E=>E.id===x),S=Ze("createLayout"),y=qe();Ye(Oo,{register:(x,E)=>{let{id:C,order:A,position:P,layoutSize:O,elementSize:I,active:L,disableTransitions:$,absolute:z}=E;o.set(C,A),s.set(C,P),i.set(C,O),a.set(C,L),$&&l.set(C,$);const H=Fs(K0,S==null?void 0:S.vnode).indexOf(x);H>-1?r.value.splice(H,0,C):r.value.push(C);const X=T(()=>g.value.findIndex(Ee=>Ee.id===C)),F=T(()=>n.value+d.value.length*2-X.value*2),Oe=T(()=>{const Ee=P.value==="left"||P.value==="right",ge=P.value==="right",ct=P.value==="bottom",tt=I.value??O.value,we=tt===0?"%":"px",Ce={[P.value]:0,zIndex:F.value,transform:`translate${Ee?"X":"Y"}(${(L.value?0:-(tt===0?100:tt))*(ge||ct?-1:1)}${we})`,position:z.value||n.value!==a1?"absolute":"fixed",...f.value?void 0:{transition:"none"}};if(X.value<0)throw new Error(`Layout item "${C}" is missing`);const M=g.value[X.value];if(!M)throw new Error(`[Vuetify] Could not find layout item "${C}"`);return{...Ce,height:Ee?`calc(100% - ${M.top}px - ${M.bottom}px)`:I.value?`${I.value}px`:void 0,left:ge?void 0:`${M.left}px`,right:ge?`${M.right}px`:void 0,top:P.value!=="bottom"?`${M.top}px`:void 0,bottom:P.value!=="top"?`${M.bottom}px`:void 0,width:Ee?I.value?`${I.value}px`:void 0:`calc(100% - ${M.left}px - ${M.right}px)`}}),he=T(()=>({zIndex:F.value-1}));return{layoutItemStyles:Oe,layoutItemScrimStyles:he,zIndex:F}},unregister:x=>{o.delete(x),s.delete(x),i.delete(x),a.delete(x),l.delete(x),r.value=r.value.filter(E=>E!==x)},mainRect:h,mainStyles:m,getLayoutItem:p,items:g,layoutRect:c,rootZIndex:n,layoutIsReady:y});const v=T(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=T(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:p,items:g,layoutRect:c,layoutIsReady:y,layoutRef:u}}function Y0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ft(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=v3(r.defaults),l=V9(r.display,r.ssr),u=X8(r.theme),c=x3(r.icons),d=m9(r.locale),f=xb(r.date,d),h=Lb(r.goTo,d);return{install:g=>{for(const p in o)g.directive(p,o[p]);for(const p in i)g.component(p,i[p]);for(const p in s)g.component(p,ws({...s[p],name:p,aliasName:s[p].name}));if(u.install(g),g.provide(ls,a),g.provide(Gl,l),g.provide(ai,u),g.provide(Pl,c),g.provide(Ao,d),g.provide(Eb,f.options),g.provide(i1,f.instance),g.provide(G0,h),Fe&&r.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=g;g.mount=function(){const S=p(...arguments);return qe(()=>l.update()),g.mount=p,S}}Mr.reset(),g.mixin({computed:{$vuetify(){return Be({defaults:Wr.call(this,ls),display:Wr.call(this,Gl),theme:Wr.call(this,ai),icons:Wr.call(this,Pl),locale:Wr.call(this,Ao),date:Wr.call(this,i1)})}}})},defaults:a,display:l,theme:u,icons:c,locale:d,date:f,goTo:h}}const $b="3.6.0";Y0.version=$b;function Wr(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Vb=ot({name:"vuetify:nuxt:client:plugin",order:25,dependsOn:["vuetify:icons:plugin"],parallel:!0,async setup(e){let t,n;const r=N9();[t,n]=kn(()=>e.hooks.callHook("vuetify:configuration",{isDev:n1,vuetifyOptions:r})),await t,n(),[t,n]=kn(()=>e.hooks.callHook("vuetify:before-create",{isDev:n1,vuetifyOptions:r})),await t,n();const s=Y0(r);e.vueApp.use(s),e.provide("vuetify",s),[t,n]=kn(()=>e.hooks.callHook("vuetify:ready",s)),await t,n()}}),Hb=[Ly,R3,M3,m7,o8,a8,l8,f8,h8,g8,v8,_8,S8,C8,$8,Y8,Vb],J0=fe()({name:"VCardActions",props:ke(),setup(e,t){let{slots:n}=t;return Ir({VBtn:{slim:!0,variant:"text"}}),ye(()=>{var r;return b("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Db=Y({opacity:[Number,String],...ke(),...We()},"VCardSubtitle"),jb=fe()({name:"VCardSubtitle",props:Db(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),Nb=Zo("v-card-title"),Bb=Y({start:Boolean,end:Boolean,icon:et,image:String,text:String,...ke(),...Ln(),...Ft(),...Ei(),...We(),...at(),...Vr({variant:"flat"})},"VAvatar"),di=fe()({name:"VAvatar",props:Bb(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{colorClasses:s,colorStyles:i,variantClasses:o}=ki(e),{densityClasses:a}=sr(e),{roundedClasses:l}=Ut(e),{sizeClasses:u,sizeStyles:c}=na(e);return ye(()=>b(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,a.value,l.value,u.value,o.value,e.class],style:[i.value,c.value,e.style]},{default:()=>[n.default?b(ze,{key:"content-defaults",defaults:{VImg:{cover:!0,image:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?b(Ss,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?b(Qt,{key:"icon",icon:e.icon},null):e.text,Ci(!1,"v-avatar")]})),{}}}),Fb=Y({appendAvatar:String,appendIcon:et,prependAvatar:String,prependIcon:et,subtitle:[String,Number],title:[String,Number],...ke(),...Ln()},"VCardItem"),Ub=fe()({name:"VCardItem",props:Fb(),setup(e,t){let{slots:n}=t;return ye(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return b("div",{class:["v-card-item",e.class],style:e.style},[s&&b("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?b(ze,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):b(ve,null,[e.prependAvatar&&b(di,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&b(Qt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),b("div",{class:"v-card-item__content"},[a&&b(Nb,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&b(jb,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&b("div",{key:"append",class:"v-card-item__append"},[n.append?b(ze,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):b(ve,null,[e.appendIcon&&b(Qt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&b(di,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),zb=Y({opacity:[Number,String],...ke(),...We()},"VCardText"),Z0=fe()({name:"VCardText",props:zb(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),Wb=Y({appendAvatar:String,appendIcon:et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...nr(),...ke(),...Ln(),...Rn(),...Pn(),...A0(),...ra(),...cu(),...Ft(),...oa(),...We(),...at(),...Vr({variant:"elevated"})},"VCard"),Gb=fe()({name:"VCard",directives:{Ripple:du},props:Wb(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{borderClasses:i}=rr(e),{colorClasses:o,colorStyles:a,variantClasses:l}=ki(e),{densityClasses:u}=sr(e),{dimensionStyles:c}=In(e),{elevationClasses:d}=On(e),{loaderClasses:f}=L0(e),{locationStyles:h}=sa(e),{positionClasses:m}=uu(e),{roundedClasses:g}=Ut(e),p=ia(e,n),S=T(()=>e.link!==!1&&p.isLink.value),y=T(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return ye(()=>{const v=S.value?"a":e.tag,_=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),E=_||x,C=!!(r.append||e.appendAvatar||e.appendIcon),A=!!(r.prepend||e.prependAvatar||e.prependIcon),P=!!(r.image||e.image),O=E||A||C,I=!!(r.text||e.text!=null);return Er(b(v,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},s.value,i.value,o.value,u.value,d.value,f.value,m.value,g.value,l.value,e.class],style:[a.value,c.value,h.value,e.style],href:p.href.value,onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var L;return[P&&b("div",{key:"image",class:"v-card__image"},[r.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):b(Ss,{key:"image-img",cover:!0,src:e.image},null)]),b(_9,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),O&&b(Ub,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),I&&b(Z0,{key:"text"},{default:()=>{var $;return[(($=r.text)==null?void 0:$.call(r))??e.text]}}),(L=r.default)==null?void 0:L.call(r),r.actions&&b(J0,null,{default:r.actions}),Ci(y.value,"v-card")]}}),[[jo("ripple"),y.value&&e.ripple]])}),{}}}),qb=Y({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function zt(e,t,n){return fe()({name:e,props:qb({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=r.group?Uo:un;return vt(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function X0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return fe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Uo:un;return()=>vt(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function Q0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=en(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const Kb=Y({target:[Object,Array]},"v-dialog-transition"),e5=fe()({name:"VDialogTransition",props:Kb(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),s.style.visibility="";const{x:o,y:a,sx:l,sy:u,speed:c}=c1(e.target,s),d=Rs(s,[{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:b3});(f=l1(s))==null||f.forEach(h=>{Rs(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:Ll})}),d.finished.then(()=>i())},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var f;await new Promise(h=>requestAnimationFrame(h));const{x:o,y:a,sx:l,sy:u,speed:c}=c1(e.target,s);Rs(s,[{},{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:w3}).finished.then(()=>i()),(f=l1(s))==null||f.forEach(h=>{Rs(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:Ll})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?b(un,xe({name:"dialog-transition"},r,{css:!1}),n):b(un,{name:"dialog-transition"},n)}});function l1(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function c1(e,t){const n=O2(e),r=R2(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(S=>parseFloat(S)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,f=Math.max(1,c,d),h=c/f||0,m=d/f||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(s+r.left),y:u-(i+r.top),sx:h,sy:m,speed:p}}zt("fab-transition","center center","out-in");zt("dialog-bottom-transition");zt("dialog-top-transition");const ZS=zt("fade-transition"),XS=zt("scale-transition");zt("scroll-x-transition");zt("scroll-x-reverse-transition");zt("scroll-y-transition");zt("scroll-y-reverse-transition");zt("slide-x-transition");zt("slide-x-reverse-transition");const QS=zt("slide-y-transition");zt("slide-y-reverse-transition");const t5=X0("expand-transition",Q0()),eC=X0("expand-x-transition",Q0("",!0));function Ga(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Yb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function u1(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return Ga({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Ga({x:s,y:i},t)}return Ga({x:t.width/2,y:t.height/2},t)}const n5={static:Xb,connected:ew},Jb=Y({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in n5},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Zb(e,t){const n=N({}),r=N();Fe&&En(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,a;se(()=>e.locationStrategy,i),pt(()=>{window.removeEventListener("resize",s),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(a=n5[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation});function s(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function Xb(){}function Qb(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=R2(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function ew(e,t,n){(Array.isArray(e.target.value)||k3(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=Wc(()=>{const m=xl(t.location,e.isRtl.value),g=t.origin==="overlap"?m:t.origin==="auto"?Aa(m):xl(t.origin,e.isRtl.value);return m.side===g.side&&m.align===La(g).align?{preferredAnchor:Vd(m),preferredOrigin:Vd(g)}:{preferredAnchor:m,preferredOrigin:g}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>T(()=>{const g=parseFloat(t[m]);return isNaN(g)?1/0:g})),c=T(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const m=t.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});se([e.target,e.contentEl],(m,g)=>{let[p,S]=m,[y,v]=g;y&&!Array.isArray(y)&&f.unobserve(y),p&&!Array.isArray(p)&&f.observe(p),v&&f.unobserve(v),S&&f.observe(S)},{immediate:!0}),pt(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;const m=O2(e.target.value),g=Qb(e.contentEl.value,e.isRtl.value),p=To(e.contentEl.value),S=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((I,L)=>{const $=L.getBoundingClientRect(),z=new Cr({x:L===document.documentElement?0:$.x,y:L===document.documentElement?0:$.y,width:L.clientWidth,height:L.clientHeight});return I?new Cr({x:Math.max(I.left,z.left),y:Math.max(I.top,z.top),width:Math.min(I.right,z.right)-Math.max(I.left,z.left),height:Math.min(I.bottom,z.bottom)-Math.max(I.top,z.top)}):z},void 0);y.x+=S,y.y+=S,y.width-=S*2,y.height-=S*2;let v={anchor:s.value,origin:i.value};function _(I){const L=new Cr(g),$=u1(I.anchor,m),z=u1(I.origin,L);let{x:Q,y:H}=Yb($,z);switch(I.anchor.side){case"top":H-=c.value[0];break;case"bottom":H+=c.value[0];break;case"left":Q-=c.value[0];break;case"right":Q+=c.value[0];break}switch(I.anchor.align){case"top":H-=c.value[1];break;case"bottom":H+=c.value[1];break;case"left":Q-=c.value[1];break;case"right":Q+=c.value[1];break}return L.x+=Q,L.y+=H,L.width=Math.min(L.width,l.value),L.height=Math.min(L.height,u.value),{overflows:Dd(L,y),x:Q,y:H}}let x=0,E=0;const C={x:0,y:0},A={x:!1,y:!1};let P=-1;for(;!(P++>10);){const{x:I,y:L,overflows:$}=_(v);x+=I,E+=L,g.x+=I,g.y+=L;{const z=Hd(v.anchor),Q=$.x.before||$.x.after,H=$.y.before||$.y.after;let X=!1;if(["x","y"].forEach(F=>{if(F==="x"&&Q&&!A.x||F==="y"&&H&&!A.y){const Oe={anchor:{...v.anchor},origin:{...v.origin}},he=F==="x"?z==="y"?La:Aa:z==="y"?Aa:La;Oe.anchor=he(Oe.anchor),Oe.origin=he(Oe.origin);const{overflows:Ee}=_(Oe);(Ee[F].before<=$[F].before&&Ee[F].after<=$[F].after||Ee[F].before+Ee[F].after<($[F].before+$[F].after)/2)&&(v=Oe,X=A[F]=!0)}}),X)continue}$.x.before&&(x+=$.x.before,g.x+=$.x.before),$.x.after&&(x-=$.x.after,g.x-=$.x.after),$.y.before&&(E+=$.y.before,g.y+=$.y.before),$.y.after&&(E-=$.y.after,g.y-=$.y.after);{const z=Dd(g,y);C.x=y.width-z.x.before-z.x.after,C.y=y.height-z.y.before-z.y.after,x+=z.x.before,g.x+=z.x.before,E+=z.y.before,g.y+=z.y.before}break}const O=Hd(v.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:ue(qa(E)),left:e.isRtl.value?void 0:ue(qa(x)),right:e.isRtl.value?ue(qa(-x)):void 0,minWidth:ue(O==="y"?Math.min(o.value,m.width):o.value),maxWidth:ue(d1(Lr(C.x,o.value===1/0?0:o.value,l.value))),maxHeight:ue(d1(Lr(C.y,a.value===1/0?0:a.value,u.value)))}),{available:C,contentBox:g}}return se(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>h()),qe(()=>{const m=h();if(!m)return;const{available:g,contentBox:p}=m;p.height>g.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function qa(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function d1(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Yl=!0;const Ro=[];function tw(e){!Yl||Ro.length?(Ro.push(e),Jl()):(Yl=!1,e(),Jl())}let f1=-1;function Jl(){cancelAnimationFrame(f1),f1=requestAnimationFrame(()=>{const e=Ro.shift();e&&e(),Ro.length?Jl():Yl=!0})}const io={none:null,close:sw,block:iw,reposition:ow},nw=Y({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in io}},"VOverlay-scroll-strategies");function rw(e,t){if(!Fe)return;let n;nn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=ps(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=io[e.scrollStrategy])==null||r.call(io,t,e,n)}))}),pt(()=>{n==null||n.stop()})}function sw(e){function t(n){e.isActive.value=!1}r5(e.targetEl.value??e.contentEl.value,t)}function iw(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([...To(e.targetEl.value,t.contained?n:void 0),...To(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,i=(a=>Kc(a)&&a)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",ue(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ue(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ue(s)),a.classList.add("v-overlay-scroll-blocked")}),pt(()=>{r.forEach((a,l)=>{const u=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-u,a.scrollTop=-c,a.style.scrollBehavior=d}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function ow(e,t,n){let r=!1,s=-1,i=-1;function o(a){tw(()=>{var c,d;const l=performance.now();(d=(c=e.updateLocation).value)==null||d.call(c,a),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{r5(e.targetEl.value??e.contentEl.value,a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),pt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function r5(e,t){const n=[document,...To(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),pt(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Zl=Symbol.for("vuetify:v-menu"),s5=Y({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function i5(e,t){let n=()=>{};function r(o){n==null||n();const a=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=Uy(a,()=>{t==null||t(o),l(o)})})}function s(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const aw=Y({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...s5()},"VOverlay-activator");function lw(e,t){let{isActive:n,isTop:r}=t;const s=Ze("useActivator"),i=N();let o=!1,a=!1,l=!0;const u=T(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),c=T(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:d,runCloseDelay:f}=i5(e,C=>{C===(e.openOnHover&&o||u.value&&a)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(l=!0),n.value=C)}),h=N(),m={onClick:C=>{C.stopPropagation(),i.value=C.currentTarget||C.target,n.value||(h.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{var A;(A=C.sourceCapabilities)!=null&&A.firesTouchEvents||(o=!0,i.value=C.currentTarget||C.target,d())},onMouseleave:C=>{o=!1,f()},onFocus:C=>{By(C.target,":focus-visible")!==!1&&(a=!0,C.stopPropagation(),i.value=C.currentTarget||C.target,d())},onBlur:C=>{a=!1,C.stopPropagation(),f()}},g=T(()=>{const C={};return c.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),u.value&&(C.onFocus=m.onFocus,C.onBlur=m.onBlur),C}),p=T(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{o=!0,d()},C.onMouseleave=()=>{o=!1,f()}),u.value&&(C.onFocusin=()=>{a=!0,d()},C.onFocusout=()=>{a=!1,f()}),e.closeOnContentClick){const A=Se(Zl,null);C.onClick=()=>{n.value=!1,A==null||A.closeParents()}}return C}),S=T(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(o=!0,l=!1,d())},C.onMouseleave=()=>{o=!1,f()}),C});se(r,C=>{C&&(e.openOnHover&&!o&&(!u.value||!a)||u.value&&!a&&(!e.openOnHover||!o))&&(n.value=!1)}),se(n,C=>{C||setTimeout(()=>{h.value=void 0})},{flush:"post"});const y=N();nn(()=>{y.value&&qe(()=>{i.value=ni(y.value)})});const v=N(),_=T(()=>e.target==="cursor"&&h.value?h.value:v.value?ni(v.value):o5(e.target,s)||i.value),x=T(()=>Array.isArray(_.value)?void 0:_.value);let E;return se(()=>!!e.activator,C=>{C&&Fe?(E=ps(),E.run(()=>{cw(e,s,{activatorEl:i,activatorEvents:g})})):E&&E.stop()},{flush:"post",immediate:!0}),pt(()=>{E==null||E.stop()}),{activatorEl:i,activatorRef:y,target:_,targetEl:x,targetRef:v,activatorEvents:g,contentEvents:p,scrimEvents:S}}function cw(e,t,n){let{activatorEl:r,activatorEvents:s}=n;se(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&qe(()=>i())},{immediate:!0}),se(()=>e.activatorProps,()=>{i()}),pt(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Gy(l,xe(s.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&qy(l,xe(s.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=o5(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function o5(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function uw(){if(!Fe)return le(!1);const{ssr:e}=aa();if(e){const t=le(!1);return rn(()=>{t.value=!0}),t}else return le(!0)}const dw=Y({eager:Boolean},"lazy");function fw(e,t){const n=le(!1),r=T(()=>n.value||e.eager||t.value);se(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function xi(){const t=Ze("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const h1=Symbol.for("vuetify:stack"),Ls=Be([]);function hw(e,t,n){const r=Ze("useStack"),s=!n,i=Se(h1,void 0),o=Be({activeChildren:new Set});Ye(h1,o);const a=le(+t.value);En(e,()=>{var d;const c=(d=Ls.at(-1))==null?void 0:d[1];a.value=c?c+10:+t.value,s&&Ls.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),pt(()=>{if(s){const f=ae(Ls).findIndex(h=>h[0]===r.uid);Ls.splice(f,1)}i==null||i.activeChildren.delete(r.uid)})});const l=le(!0);s&&nn(()=>{var d;const c=((d=Ls.at(-1))==null?void 0:d[0])===r.uid;setTimeout(()=>l.value=c)});const u=T(()=>!o.activeChildren.size);return{globalTop:ys(l),localTop:u,stackStyles:T(()=>({zIndex:a.value}))}}function gw(e){return{teleportTarget:T(()=>{const n=e.value;if(n===!0||!Fe)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=r.querySelector(":scope > .v-overlay-container");return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function mw(){return!0}function a5(e,t,n){if(!e||l5(e,n)===!1)return!1;const r=D2(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function l5(e,t){return(typeof t.value=="object"&&t.value.closeConditional||mw)(e)}function vw(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&a5(e,t,n)&&setTimeout(()=>{l5(e,n)&&r&&r(e)},0)}function g1(e,t){const n=D2(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const pw={mounted(e,t){const n=s=>vw(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=a5(s,e,t)};g1(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(g1(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function yw(e){const{modelValue:t,color:n,...r}=e;return b(un,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&b("div",xe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const la=Y({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...aw(),...ke(),...Rn(),...dw(),...Jb(),...nw(),...at(),...B0()},"VOverlay"),gs=fe()({name:"VOverlay",directives:{ClickOutside:pw},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...la()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=Bt(e,"modelValue"),o=T({get:()=>i.value,set:we=>{we&&e.disabled||(i.value=we)}}),{teleportTarget:a}=gw(T(()=>e.attach||e.contained)),{themeClasses:l}=lt(e),{rtlClasses:u,isRtl:c}=Hr(),{hasContent:d,onAfterLeave:f}=fw(e,o),h=Xt(T(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:m,localTop:g,stackStyles:p}=hw(o,ie(e,"zIndex"),e._disableGlobalStack),{activatorEl:S,activatorRef:y,target:v,targetEl:_,targetRef:x,activatorEvents:E,contentEvents:C,scrimEvents:A}=lw(e,{isActive:o,isTop:g}),{dimensionStyles:P}=In(e),O=uw(),{scopeId:I}=xi();se(()=>e.disabled,we=>{we&&(o.value=!1)});const L=N(),$=N(),z=N(),{contentStyles:Q,updateLocation:H}=Zb(e,{isRtl:c,contentEl:z,target:v,isActive:o});rw(e,{root:L,contentEl:z,targetEl:_,isActive:o,updateLocation:H});function X(we){s("click:outside",we),e.persistent?ge():o.value=!1}function F(we){return o.value&&m.value&&(!e.scrim||we.target===$.value)}Fe&&se(o,we=>{we?window.addEventListener("keydown",Oe):window.removeEventListener("keydown",Oe)},{immediate:!0}),it(()=>{Fe&&window.removeEventListener("keydown",Oe)});function Oe(we){var Ce,M;we.key==="Escape"&&m.value&&(e.persistent?ge():(o.value=!1,(Ce=z.value)!=null&&Ce.contains(document.activeElement)&&((M=S.value)==null||M.focus())))}const he=P0();En(()=>e.closeOnBack,()=>{k9(he,we=>{m.value&&o.value?(we(!1),e.persistent?ge():o.value=!1):we()})});const Ee=N();se(()=>o.value&&(e.absolute||e.contained)&&a.value==null,we=>{if(we){const Ce=_3(L.value);Ce&&Ce!==document.scrollingElement&&(Ee.value=Ce.scrollTop)}});function ge(){e.noClickAnimation||z.value&&Rs(z.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Ll})}function ct(){s("afterEnter")}function tt(){f(),s("afterLeave")}return ye(()=>{var we;return b(ve,null,[(we=n.activator)==null?void 0:we.call(n,{isActive:o.value,targetRef:x,props:xe({ref:y},E.value,e.activatorProps)}),O.value&&d.value&&b(lm,{disabled:!a.value,to:a.value},{default:()=>[b("div",xe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":o.value,"v-overlay--contained":e.contained},l.value,u.value,e.class],style:[p.value,{"--v-overlay-opacity":e.opacity,top:ue(Ee.value)},e.style],ref:L},I,r),[b(yw,xe({color:h,modelValue:o.value&&!!e.scrim,ref:$},A.value),null),b(Jr,{appear:!0,persisted:!0,transition:e.transition,target:v.value,onAfterEnter:ct,onAfterLeave:tt},{default:()=>{var Ce;return[Er(b("div",xe({ref:z,class:["v-overlay__content",e.contentClass],style:[P.value,Q.value]},C.value,e.contentProps),[(Ce=n.default)==null?void 0:Ce.call(n,{isActive:o})]),[[Ic,o.value],[jo("click-outside"),{handler:X,closeConditional:F,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:$,target:v,animateClick:ge,contentEl:z,globalTop:m,localTop:g,updateLocation:H}}}),Ka=Symbol("Forwarded refs");function Ya(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function mu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Bt(e,"modelValue"),{scopeId:i}=xi(),o=N();function a(c){var h,m;const d=c.relatedTarget,f=c.target;if(d!==f&&((h=o.value)!=null&&h.contentEl)&&((m=o.value)!=null&&m.globalTop)&&![document,o.value.contentEl].includes(f)&&!o.value.contentEl.contains(f)){const g=ko(o.value.contentEl);if(!g.length)return;const p=g[0],S=g[g.length-1];d===p?S.focus():p.focus()}}Fe&&se(()=>s.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",a):document.removeEventListener("focusin",a)},{immediate:!0});function l(){var c;(c=o.value)!=null&&c.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return se(s,async c=>{var d;c||(await qe(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),ye(()=>{const c=gs.filterProps(e),d=xe({"aria-haspopup":"dialog","aria-expanded":String(s.value)},e.activatorProps),f=xe({tabindex:-1},e.contentProps);return b(gs,xe({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,"aria-modal":"true",activatorProps:d,contentProps:f,role:"dialog",onAfterEnter:l,onAfterLeave:u},i),{activator:r.activator,default:function(){for(var h=arguments.length,m=new Array(h),g=0;g{var p;return[(p=r.default)==null?void 0:p.call(r,...m)]}})}})}),mu({},o)}}),_w=ht({__name:"UpdateDialog",setup(e){const t=N(!1),n=N(""),r=()=>{localStorage.setItem("commitSHA",n.value),location.reload()};async function s(){const i=await fetch("/commit.txt?_t="+Date.now());n.value=await i.text();const o=localStorage.getItem("commitSHA");if(o==null){localStorage.setItem("commitSHA",n.value);return}o!==n.value&&(console.log("New version available"),console.table({latestCommit:o,commitSHA:n.value}),t.value=!0)}return rn(()=>{s()}),(i,o)=>(ce(),Me(ww,{modelValue:Z(t),"onUpdate:modelValue":o[2]||(o[2]=a=>Pe(t)?t.value=a:null),"max-width":"290"},{default:Ie(()=>[b(Gb,null,{default:Ie(()=>[b(Z0,null,{default:Ie(()=>[Ns(" There is an update available! ")]),_:1}),b(J0,null,{default:Ie(()=>[b(hs,{onClick:o[0]||(o[0]=a=>t.value=!1)},{default:Ie(()=>[Ns("Cancel")]),_:1}),b(hs,{onClick:o[1]||(o[1]=a=>r())},{default:Ie(()=>[Ns("Update")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),m1={pwaInDevEnvironment:!1,webManifest:{href:"/manifest.webmanifest",useCredentials:!1,linkTag:''}},Sw=ht({async setup(){if(m1){const e=N({link:[]});Fc(e);const{webManifest:t}=m1;if(t){const{href:n,useCredentials:r}=t;r?e.value.link.push({rel:"manifest",href:n,crossorigin:"use-credentials"}):e.value.link.push({rel:"manifest",href:n})}}return()=>null}}),Xl=Symbol.for("vuetify:list");function c5(){const e=Se(Xl,{hasPrepend:le(!1),updateHasPrepend:()=>null}),t={hasPrepend:le(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Ye(Xl,t),e}function u5(){return Se(Xl,null)}const vu=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=ae(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;for(const o of n||[])i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},d5=e=>{const t=vu(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=ae(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;return r!=null&&r.length&&(o=t.in(r.slice(0,1),s,i)),o},out:(r,s,i)=>t.out(r,s,i)}},Cw=e=>{const t=vu(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},kw=e=>{const t=d5(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},Ew={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},f5={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},xw={open:f5.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},pu=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=ae(r),e&&!s){const o=Array.from(i.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:s});return i},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},h5=e=>{const t=pu(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=ae(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),s,i)),o},out:(r,s,i)=>t.out(r,s,i)}},Tw=e=>{const t=pu(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},Aw=e=>{const t=h5(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},Lw=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a}=n;r=ae(r);const l=new Map(i),u=[r];for(;u.length;){const d=u.shift();i.set(d,s?"on":"off"),o.has(d)&&u.push(...o.get(d))}let c=a.get(r);for(;c;){const d=o.get(c),f=d.every(m=>i.get(m)==="on"),h=d.every(m=>!i.has(m)||i.get(m)==="off");i.set(c,f?"on":h?"off":"indeterminate"),c=a.get(c)}return e&&!s&&Array.from(i.entries()).reduce((f,h)=>{let[m,g]=h;return g==="on"&&f.push(m),f},[]).length===0?l:i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:s});return i},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},fi=Symbol.for("vuetify:nested"),g5={id:le(),root:{register:()=>null,unregister:()=>null,parents:N(new Map),children:N(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:N(!1),selectable:N(!1),opened:N(new Set),activated:N(new Set),selected:N(new Map),selectedValues:N([])}},Pw=Y({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function],selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,activated:Array,selected:Array,mandatory:Boolean},"nested"),Ow=e=>{let t=!1;const n=N(new Map),r=N(new Map),s=Bt(e,"opened",e.opened,h=>new Set(h),h=>[...h.values()]),i=T(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;switch(e.activeStrategy){case"leaf":return Cw(e.mandatory);case"single-leaf":return kw(e.mandatory);case"independent":return vu(e.mandatory);case"single-independent":default:return d5(e.mandatory)}}),o=T(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return Aw(e.mandatory);case"leaf":return Tw(e.mandatory);case"independent":return pu(e.mandatory);case"single-independent":return h5(e.mandatory);case"classic":default:return Lw(e.mandatory)}}),a=T(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return xw;case"single":return Ew;case"multiple":default:return f5}}),l=Bt(e,"activated",e.activated,h=>i.value.in(h,n.value,r.value),h=>i.value.out(h,n.value,r.value)),u=Bt(e,"selected",e.selected,h=>o.value.in(h,n.value,r.value),h=>o.value.out(h,n.value,r.value));it(()=>{t=!0});function c(h){const m=[];let g=h;for(;g!=null;)m.unshift(g),g=r.value.get(g);return m}const d=Ze("nested"),f={id:le(),root:{opened:s,activatable:ie(e,"activatable"),selectable:ie(e,"selectable"),activated:l,selected:u,selectedValues:T(()=>{const h=[];for(const[m,g]of u.value.entries())g==="on"&&h.push(m);return h}),register:(h,m,g)=>{m&&h!==m&&r.value.set(h,m),g&&n.value.set(h,[]),m!=null&&n.value.set(m,[...n.value.get(m)||[],h])},unregister:h=>{if(t)return;n.value.delete(h);const m=r.value.get(h);if(m){const g=n.value.get(m)??[];n.value.set(m,g.filter(p=>p!==h))}r.value.delete(h),s.value.delete(h)},open:(h,m,g)=>{d.emit("click:open",{id:h,value:m,path:c(h),event:g});const p=a.value.open({id:h,value:m,opened:new Set(s.value),children:n.value,parents:r.value,event:g});p&&(s.value=p)},openOnSelect:(h,m,g)=>{const p=a.value.select({id:h,value:m,selected:new Map(u.value),opened:new Set(s.value),children:n.value,parents:r.value,event:g});p&&(s.value=p)},select:(h,m,g)=>{d.emit("click:select",{id:h,value:m,path:c(h),event:g});const p=o.value.select({id:h,value:m,selected:new Map(u.value),children:n.value,parents:r.value,event:g});p&&(u.value=p),f.root.openOnSelect(h,m,g)},activate:(h,m,g)=>{if(!e.activatable)return f.root.select(h,!0,g);d.emit("click:activate",{id:h,value:m,path:c(h),event:g});const p=i.value.activate({id:h,value:m,activated:new Set(l.value),children:n.value,parents:r.value,event:g});p&&(l.value=p)},children:n,parents:r}};return Ye(fi,f),f.root},m5=(e,t)=>{const n=Se(fi,g5),r=Symbol(Mr()),s=T(()=>e.value!==void 0?e.value:r),i={...n,id:s,open:(o,a)=>n.root.open(s.value,o,a),openOnSelect:(o,a)=>n.root.openOnSelect(s.value,o,a),isOpen:T(()=>n.root.opened.value.has(s.value)),parent:T(()=>n.root.parents.value.get(s.value)),activate:(o,a)=>n.root.activate(s.value,o,a),isActivated:T(()=>n.root.activated.value.has(ae(s.value))),select:(o,a)=>n.root.select(s.value,o,a),isSelected:T(()=>n.root.selected.value.get(ae(s.value))==="on"),isIndeterminate:T(()=>n.root.selected.value.get(s.value)==="indeterminate"),isLeaf:T(()=>!n.root.children.value.get(s.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(s.value,n.id.value,t),it(()=>{!n.isGroupActivator&&n.root.unregister(s.value)}),t&&Ye(fi,i),i},Rw=()=>{const e=Se(fi,g5);Ye(fi,{...e,isGroupActivator:!0})};function ca(){const e=le(!1);return rn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:T(()=>e.value?void 0:{transition:"none !important"}),isBooted:ys(e)}}const Iw=ws({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Rw(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),Mw=Y({activeColor:String,baseColor:String,color:String,collapseIcon:{type:et,default:"$collapse"},expandIcon:{type:et,default:"$expand"},prependIcon:et,appendIcon:et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ke(),...We()},"VListGroup"),Ql=fe()({name:"VListGroup",props:Mw(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=m5(ie(e,"value"),!0),o=T(()=>`v-list-group--id-${String(i.value)}`),a=u5(),{isBooted:l}=ca();function u(h){s(!r.value,h)}const c=T(()=>({onClick:u,class:"v-list-group__header",id:o.value})),d=T(()=>r.value?e.collapseIcon:e.expandIcon),f=T(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return ye(()=>b(e.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&b(ze,{defaults:f.value},{default:()=>[b(Iw,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),b(Jr,{transition:{component:t5},disabled:!l.value},{default:()=>{var h;return[Er(b("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(h=n.default)==null?void 0:h.call(n)]),[[Ic,r.value]])]}})]})),{isOpen:r}}}),$w=Y({opacity:[Number,String],...ke(),...We()},"VListItemSubtitle"),Vw=fe()({name:"VListItemSubtitle",props:$w(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),Hw=Zo("v-list-item-title"),Dw=Y({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:et,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Id(),onClickOnce:Id(),...nr(),...ke(),...Ln(),...Rn(),...Pn(),...Ft(),...oa(),...We(),...at(),...Vr({variant:"text"})},"VListItem"),Kn=fe()({name:"VListItem",directives:{Ripple:du},props:Dw(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=ia(e,n),o=T(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:l,select:u,isSelected:c,isIndeterminate:d,isGroupActivator:f,root:h,parent:m,openOnSelect:g}=m5(o,!1),p=u5(),S=T(()=>{var he;return e.active!==!1&&(e.active||((he=i.isActive)==null?void 0:he.value)||(h.activatable.value?l.value:c.value))}),y=T(()=>e.link!==!1&&i.isLink.value),v=T(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||!!p&&(h.selectable.value||h.activatable.value||e.value!=null))),_=T(()=>e.rounded||e.nav),x=T(()=>e.color??e.activeColor),E=T(()=>({color:S.value?x.value??e.baseColor:e.baseColor,variant:e.variant}));se(()=>{var he;return(he=i.isActive)==null?void 0:he.value},he=>{he&&m.value!=null&&h.open(m.value,!0),he&&g(he)},{immediate:!0});const{themeClasses:C}=lt(e),{borderClasses:A}=rr(e),{colorClasses:P,colorStyles:O,variantClasses:I}=ki(E),{densityClasses:L}=sr(e),{dimensionStyles:$}=In(e),{elevationClasses:z}=On(e),{roundedClasses:Q}=Ut(_),H=T(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),X=T(()=>({isActive:S.value,select:u,isSelected:c.value,isIndeterminate:d.value}));function F(he){var Ee;s("click",he),!(f||!v.value)&&((Ee=i.navigate)==null||Ee.call(i,he),h.activatable.value?a(!l.value,he):(h.selectable.value||e.value!=null)&&u(!c.value,he))}function Oe(he){(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),F(he))}return ye(()=>{const he=y.value?"a":e.tag,Ee=r.title||e.title!=null,ge=r.subtitle||e.subtitle!=null,ct=!!(e.appendAvatar||e.appendIcon),tt=!!(ct||r.append),we=!!(e.prependAvatar||e.prependIcon),Ce=!!(we||r.prepend);return p==null||p.updateHasPrepend(Ce),e.activeColor&&t3("active-color",["color","base-color"]),Er(b(he,{class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":e.disabled,"v-list-item--link":v.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!Ce&&(p==null?void 0:p.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&S.value},C.value,A.value,P.value,L.value,z.value,H.value,Q.value,I.value,e.class],style:[O.value,$.value,e.style],href:i.href.value,tabindex:v.value?p?-2:0:void 0,onClick:F,onKeydown:v.value&&!y.value&&Oe},{default:()=>{var M;return[Ci(v.value||S.value,"v-list-item"),Ce&&b("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!we,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var W;return[(W=r.prepend)==null?void 0:W.call(r,X.value)]}}):b(ve,null,[e.prependAvatar&&b(di,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&b(Qt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),b("div",{class:"v-list-item__spacer"},null)]),b("div",{class:"v-list-item__content","data-no-activator":""},[Ee&&b(Hw,{key:"title"},{default:()=>{var W;return[((W=r.title)==null?void 0:W.call(r,{title:e.title}))??e.title]}}),ge&&b(Vw,{key:"subtitle"},{default:()=>{var W;return[((W=r.subtitle)==null?void 0:W.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(M=r.default)==null?void 0:M.call(r,X.value)]),tt&&b("div",{key:"append",class:"v-list-item__append"},[r.append?b(ze,{key:"append-defaults",disabled:!ct,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var W;return[(W=r.append)==null?void 0:W.call(r,X.value)]}}):b(ve,null,[e.appendIcon&&b(Qt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&b(di,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),b("div",{class:"v-list-item__spacer"},null)])]}}),[[jo("ripple"),v.value&&e.ripple]])}),{isGroupActivator:f,isSelected:c,list:p,select:u}}}),jw=Y({color:String,inset:Boolean,sticky:Boolean,title:String,...ke(),...We()},"VListSubheader"),Nw=fe()({name:"VListSubheader",props:jw(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=Xn(ie(e,"color"));return ye(()=>{const i=!!(n.default||e.title);return b(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:s},e.style]},{default:()=>{var o;return[i&&b("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),Bw=Y({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ke(),...at()},"VDivider"),oo=fe()({name:"VDivider",props:Bw(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{textColorClasses:i,textColorStyles:o}=Xn(ie(e,"color")),a=T(()=>{const l={};return e.length&&(l[e.vertical?"maxHeight":"maxWidth"]=ue(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=ue(e.thickness)),l});return ye(()=>{const l=b("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class],style:[a.value,o.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?b("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,b("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),Fw=Y({items:Array,returnObject:Boolean},"VListChildren"),v5=fe()({name:"VListChildren",props:Fw(),setup(e,t){let{slots:n}=t;return c5(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var f,h;let{children:o,props:a,type:l,raw:u}=i;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??b(oo,a,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??b(Nw,a,null);const c={subtitle:n.subtitle?m=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...m,item:u})}:void 0,prepend:n.prepend?m=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...m,item:u})}:void 0,append:n.append?m=>{var g;return(g=n.append)==null?void 0:g.call(n,{...m,item:u})}:void 0,title:n.title?m=>{var g;return(g=n.title)==null?void 0:g.call(n,{...m,item:u})}:void 0},d=Ql.filterProps(a);return o?b(Ql,xe({value:a==null?void 0:a.value},d),{activator:m=>{let{props:g}=m;const p={...a,...g,value:e.returnObject?u:a.value};return n.header?n.header({props:p}):b(Kn,p,c)},default:()=>b(v5,{items:o},n)}):n.item?n.item({props:a}):b(Kn,xe(a,{value:e.returnObject?u:a.value}),c)}))}}}),Uw=Y({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Jo}},"list-items");function ec(e,t){const n=wn(t,e.itemTitle,t),r=wn(t,e.itemValue,n),s=wn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?wi(t,["children"]):t:void 0:wn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(s)?p5(e,s):void 0,raw:t}}function p5(e,t){const n=[];for(const r of t)n.push(ec(e,r));return n}function tC(e){const t=T(()=>p5(e,e.items)),n=T(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?ec(e,o):t.value.find(a=>e.valueComparator(o,a.value))||ec(e,o))}function s(i){return e.returnObject?i.map(o=>{let{raw:a}=o;return a}):i.map(o=>{let{value:a}=o;return a})}return{items:t,transformIn:r,transformOut:s}}function zw(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Ww(e,t){const n=wn(t,e.itemType,"item"),r=zw(t)?t:wn(t,e.itemTitle),s=wn(t,e.itemValue,void 0),i=wn(t,e.itemChildren),o=e.itemProps===!0?wi(t,["children"]):wn(t,e.itemProps),a={title:r,value:s,...o};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&i?y5(e,i):void 0,raw:t}}function y5(e,t){const n=[];for(const r of t)n.push(Ww(e,r));return n}function Gw(e){return{items:T(()=>y5(e,e.items))}}const qw=Y({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...Pw({selectStrategy:"single-leaf",openStrategy:"list"}),...nr(),...ke(),...Ln(),...Rn(),...Pn(),itemType:{type:String,default:"type"},...Uw(),...Ft(),...We(),...at(),...Vr({variant:"text"})},"VList"),tc=fe()({name:"VList",props:qw(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Gw(e),{themeClasses:s}=lt(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Xt(ie(e,"bgColor")),{borderClasses:a}=rr(e),{densityClasses:l}=sr(e),{dimensionStyles:u}=In(e),{elevationClasses:c}=On(e),{roundedClasses:d}=Ut(e),{children:f,open:h,parents:m,select:g}=Ow(e),p=T(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=ie(e,"activeColor"),y=ie(e,"baseColor"),v=ie(e,"color");c5(),Ir({VListGroup:{activeColor:S,baseColor:y,color:v,expandIcon:ie(e,"expandIcon"),collapseIcon:ie(e,"collapseIcon")},VListItem:{activeClass:ie(e,"activeClass"),activeColor:S,baseColor:y,color:v,density:ie(e,"density"),disabled:ie(e,"disabled"),lines:ie(e,"lines"),nav:ie(e,"nav"),slim:ie(e,"slim"),variant:ie(e,"variant")}});const _=le(!1),x=N();function E(L){_.value=!0}function C(L){_.value=!1}function A(L){var $;!_.value&&!(L.relatedTarget&&(($=x.value)!=null&&$.contains(L.relatedTarget)))&&I()}function P(L){const $=L.target;if(!(!x.value||["INPUT","TEXTAREA"].includes($.tagName))){if(L.key==="ArrowDown")I("next");else if(L.key==="ArrowUp")I("prev");else if(L.key==="Home")I("first");else if(L.key==="End")I("last");else return;L.preventDefault()}}function O(L){_.value=!0}function I(L){if(x.value)return Eo(x.value,L)}return ye(()=>b(e.tag,{ref:x,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,l.value,c.value,p.value,d.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:E,onFocusout:C,onFocus:A,onKeydown:P,onMousedown:O},{default:()=>[b(v5,{items:r.value,returnObject:e.returnObject},n)]})),{open:h,select:g,focus:I,children:f,parents:m}}}),b5=ht({__name:"AppDrawerItem",props:{level:{default:0},item:{}},setup(e){const t=T(()=>{var o;return(o=e.item.children)==null?void 0:o.filter(a=>{var l;return(l=a.meta)==null?void 0:l.icon}).sort((a,l)=>{var u,c;return(((u=a.meta)==null?void 0:u.drawerIndex)??99)-(((c=l.meta)==null?void 0:c.drawerIndex)??98)})}),n=T(()=>{var o;return((o=t.value)==null?void 0:o.length)||0}),r=T(()=>!e.item.children||n.value<=1),s=ie(()=>{var o;return(o=e.item.meta)==null?void 0:o.title}),i=ie(()=>{var o;return(o=e.item.meta)==null?void 0:o.icon});return(o,a)=>{var u;const l=b5;return Z(r)&&Z(i)?(ce(),Me(Kn,{key:0,to:{name:o.item.name||((u=Z(t))==null?void 0:u[0].name)},"prepend-icon":Z(i),"active-class":"text-primary",title:Z(s)},null,8,["to","prepend-icon","title"])):Z(i)?(ce(),Me(Ql,{key:1,"prepend-icon":Z(i),color:"primary"},{activator:Ie(({props:c})=>[b(Kn,xe({title:Z(s)},c),null,16,["title"])]),default:Ie(()=>[(ce(!0),Qe(ve,null,ei(Z(t),c=>(ce(),Me(l,{key:c.name,item:c,level:o.level+1},null,8,["item","level"]))),128))]),_:1},8,["prepend-icon"])):bt("",!0)}}}),Ti=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Kw={},Ai=e=>(mg("data-v-f251bb1f"),e=e(),vg(),e),Yw={version:"1.0",viewBox:"0 0 4000.000000 4000.000000"},Jw=Th('',1),Zw={key:0,id:"no-logo"},Xw=Ai(()=>tn("path",{d:"m 2555,887.1 c -482,2.5 -949.8,4.7 -1246.5,5.9 -285.4,1.2 -261.3,0.5 -301,8.1 -103.1,19.6 -165.1,60 -208,135.4 -14.1,24.8 -24.7,48.5 -49.4,111.5 -16.1,40.8 -26.5,65.5 -38.1,90.1 -34.9,74.1 -76.4,134.3 -133.4,193.6 l -9.8,10.3 6.3,2.7 c 43.9,18.6 90.8,54.1 127,96 96.1,111.3 153.7,299.9 161.9,530.3 0.6,16.2 1,35.6 0.8,43 l -0.2,13.5 567.9,0.6 c 312.4,0.3 821.1,0.7 1130.4,0.8 l 562.4,0.1 -0.7,-33.8 c -0.4,-18.5 -1.1,-46.3 -1.5,-61.7 -3.5,-121.8 15.1,-217.5 59.9,-308 31,-62.9 70.5,-116.3 126.6,-171.5 33.7,-33.2 67.6,-61.3 108.4,-90 5.8,-4.1 10.7,-7.5 10.9,-7.6 0.2,-0.2 -5.3,-6.3 -12.2,-13.6 -36.9,-39.1 -61.8,-74.9 -84.7,-121.3 -18.8,-38.3 -30,-68.5 -53.9,-146 -23,-74.9 -34.7,-105 -52.9,-137 -41.1,-72.2 -109.2,-116.8 -212.3,-138.9 -37.8,-8.1 -88.1,-14.8 -109.3,-14.5 -5.5,0.1 -162.4,1 -348.6,2 z",id:"path1",class:"loading"},null,-1)),Qw=Ai(()=>tn("path",{d:"m 455,1535.6 c -25.4,3.2 -47.1,9.4 -65.5,18.7 -22.4,11.2 -48.1,27.9 -70.1,45.4 -13.5,10.8 -40.5,37.6 -50.6,50.3 -18.4,23.1 -34.6,52.1 -42.7,76.7 -16.8,50.6 -14.3,105.7 7.4,161.8 15.6,40.6 38.8,79.4 72.4,121.5 19.4,24.3 28.5,34.4 54.2,60.6 l 17.9,18.1 -2.1,7.4 c -4.2,15.2 -16.9,67.1 -21.3,86.9 -16.6,75.7 -32.3,139.3598 -32.3,209.5 V 2533 c 0,118.6394 45.2,203.8 105.1,265.7 51.1,52.9 119.2,84.9 193.8,91.3 17,1.5 2731.5,1.5 2750.3,0 105.2,-8.1 182.1,-46.7 236.1,-118.6 41.7,-55.5 67.7,-130.6 77.8,-224.9 3.3,-30.5 4,-47.8 4,-90 0,-65.5 -4.8,-123.9 -16,-194.4 -9,-56.5 -24.7,-129.6 -37.7,-174.6 -1.9,-6.6 -3.7,-12.8 -3.9,-13.8 -0.2,-1.5 1.9,-2.8 10.6,-6.7 21.4,-9.6 37.8,-21.1 56.1,-39.5 22.9,-22.8 41.1,-50 55.6,-83 35.1,-80.1 39.2,-175.4 10.8,-251.2 -30.8,-82.3 -94.8,-135.3 -184.8,-153.2 -36.5,-7.3 -78.2,-7.3 -112,0 -32.8,7.1 -62.5,20.5 -90.5,40.8 -12.8,9.2 -36.2,31.2 -47.5,44.5 -50.7,60.1 -88.2,148.9 -111,263.3 -17,84.8 -25.1,172.4 -25.1,270.5 v 40.8 h -29.2 c -16.1,0 -266,-1.1 -555.3,-2.5 -555.8,-2.6 -1316.3,-6 -1614,-7.1 l -178.1,-0.7 -1.7,-35.1 c -10.6,-213.5 -47.4,-373 -110.4,-478.6 -46,-77 -106.8,-124.2 -177.7,-138 -21.7,-4.2 -51.1,-5.2 -72.6,-2.4 z",id:"path3",class:"loading"},null,-1)),e_=Ai(()=>tn("path",{d:"m 769,3026.7 v 48.8 l 3.3,1.9 c 36.7,21 73.2,33.3 117.7,39.3 19.1,2.6 71.1,2.5 92,-0.1 31.8,-3.9 66.9,-11.6 96,-21.1 15.8,-5.2 39.7,-14.3 47.3,-18.1 l 4.7,-2.4 V 3026.5 2978 H 949.5 769 Z",id:"path4"},null,-1)),t_=Ai(()=>tn("path",{d:"m 2885,3015.8 c 0,17 0.3,37.1 0.7,44.7 l 0.6,13.8 10.1,4.7 c 81.8,38.3 162.3,50.6 240.6,36.9 38,-6.6 78.2,-21.6 107.8,-40.2 l 8.2,-5.2 v -42.7 -42.8 h -184 -184 z",id:"path5"},null,-1)),n_=[Xw,Qw,e_,t_],r_=Ai(()=>tn("filter",{id:"blur"},[tn("feGaussianBlur",{stdDeviation:"40"})],-1));function s_(e,t){return ce(),Qe("svg",Yw,[Jw,e.loading||e.routeLoading?(ce(),Qe("g",Zw,n_)):bt("",!0),r_])}const i_=Ti(Kw,[["render",s_],["__scopeId","data-v-f251bb1f"]]),yu=Zo("v-spacer","div","VSpacer");function o_(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const s=le(!1),i=le(0),o=T(()=>{const u=typeof s.value=="boolean"?"top":s.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,s.value?{[u]:ue(i.value)}:{top:r.value.top}]});rn(()=>{se(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),it(()=>{window.removeEventListener("scroll",l)});let a=0;function l(){const u=a>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),f=window.scrollY-Math.max(0,i.value-d),h=c.height+Math.max(i.value,d)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=v1(t),s=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(s-r)*Math.abs(s),n===e.length-1&&(t*=.5)}return v1(t)*1e3}function c_(){const e={};function t(s){Array.from(s.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new Ny(l_))).push([s.timeStamp,i])})}function n(s){Array.from(s.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(s){var u;const i=(u=e[s])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${s}`);const o=i[0],a=[],l=[];for(const c of i){if(o[0]-c[0]>a_)break;a.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:p1(a),y:p1(l),get direction(){const{x:c,y:d}=this,[f,h]=[Math.abs(c),Math.abs(d)];return f>h&&c>=0?"right":f>h&&c<=0?"left":h>f&&d>=0?"down":h>f&&d<=0?"up":u_()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function u_(){throw new Error}function d_(e){let{el:t,isActive:n,isTemporary:r,width:s,touchless:i,position:o}=e;rn(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),it(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const a=T(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=c_();let d=!1;const f=le(!1),h=le(0),m=le(0);let g;function p(E,C){return(o.value==="left"?E:o.value==="right"?document.documentElement.clientWidth-E:o.value==="top"?E:o.value==="bottom"?document.documentElement.clientHeight-E:Gr())-(C?s.value:0)}function S(E){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const A=o.value==="left"?(E-m.value)/s.value:o.value==="right"?(document.documentElement.clientWidth-E-m.value)/s.value:o.value==="top"?(E-m.value)/s.value:o.value==="bottom"?(document.documentElement.clientHeight-E-m.value)/s.value:Gr();return C?Math.max(0,Math.min(1,A)):A}function y(E){if(i.value)return;const C=E.changedTouches[0].clientX,A=E.changedTouches[0].clientY,P=25,O=o.value==="left"?Cdocument.documentElement.clientWidth-P:o.value==="top"?Adocument.documentElement.clientHeight-P:Gr(),I=n.value&&(o.value==="left"?Cdocument.documentElement.clientWidth-s.value:o.value==="top"?Adocument.documentElement.clientHeight-s.value:Gr());(O||I||n.value&&r.value)&&(g=[C,A],m.value=p(a.value?C:A,n.value),h.value=S(a.value?C:A),d=m.value>-20&&m.value<80,u(E),l(E))}function v(E){const C=E.changedTouches[0].clientX,A=E.changedTouches[0].clientY;if(d){if(!E.cancelable){d=!1;return}const O=Math.abs(C-g[0]),I=Math.abs(A-g[1]);(a.value?O>I&&O>3:I>O&&I>3)?(f.value=!0,d=!1):(a.value?I:O)>3&&(d=!1)}if(!f.value)return;E.preventDefault(),l(E);const P=S(a.value?C:A,!1);h.value=Math.max(0,Math.min(1,P)),P>1?m.value=p(a.value?C:A,!0):P<0&&(m.value=p(a.value?C:A,!1))}function _(E){if(d=!1,!f.value)return;l(E),f.value=!1;const C=c(E.changedTouches[0].identifier),A=Math.abs(C.x),P=Math.abs(C.y);(a.value?A>P&&A>400:P>A&&P>3)?n.value=C.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||Gr()):n.value=h.value>.5}const x=T(()=>f.value?{transform:o.value==="left"?`translateX(calc(-100% + ${h.value*s.value}px))`:o.value==="right"?`translateX(calc(100% - ${h.value*s.value}px))`:o.value==="top"?`translateY(calc(-100% + ${h.value*s.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${h.value*s.value}px))`:Gr(),transition:"none"}:void 0);return En(f,()=>{var A,P;const E=((A=t.value)==null?void 0:A.style.transform)??null,C=((P=t.value)==null?void 0:P.style.transition)??null;nn(()=>{var O,I,L,$;(I=t.value)==null||I.style.setProperty("transform",((O=x.value)==null?void 0:O.transform)||"none"),($=t.value)==null||$.style.setProperty("transition",((L=x.value)==null?void 0:L.transition)||null)}),pt(()=>{var O,I;(O=t.value)==null||O.style.setProperty("transform",E),(I=t.value)==null||I.style.setProperty("transition",C)})}),{isDragging:f,dragProgress:h,dragStyles:x}}function Gr(){throw new Error}const f_=["start","end","left","right","top","bottom"],h_=Y({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>f_.includes(e)},sticky:Boolean,...nr(),...ke(),...s5(),...H9(),...Pn(),...hu(),...Ft(),...We({tag:"nav"}),...at()},"VNavigationDrawer"),g_=fe()({name:"VNavigationDrawer",props:h_(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{isRtl:i}=Hr(),{themeClasses:o}=lt(e),{borderClasses:a}=rr(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Xt(ie(e,"color")),{elevationClasses:c}=On(e),{displayClasses:d,mobile:f}=aa(e),{roundedClasses:h}=Ut(e),m=P0(),g=Bt(e,"modelValue",null,ge=>!!ge),{ssrBootStyles:p}=ca(),{scopeId:S}=xi(),y=N(),v=le(!1),{runOpenDelay:_,runCloseDelay:x}=i5(e,ge=>{v.value=ge}),E=T(()=>e.rail&&e.expandOnHover&&v.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),C=T(()=>Tl(e.location,i.value)),A=T(()=>e.persistent),P=T(()=>!e.permanent&&(f.value||e.temporary)),O=T(()=>e.sticky&&!P.value&&C.value!=="bottom");En(()=>e.expandOnHover&&e.rail!=null,()=>{se(v,ge=>r("update:rail",!ge))}),En(()=>!e.disableResizeWatcher,()=>{se(P,ge=>!e.permanent&&qe(()=>g.value=!ge))}),En(()=>!e.disableRouteWatcher&&!!m,()=>{se(m.currentRoute,()=>P.value&&(g.value=!1))}),se(()=>e.permanent,ge=>{ge&&(g.value=!0)}),e.modelValue==null&&!P.value&&(g.value=e.permanent||!f.value);const{isDragging:I,dragProgress:L}=d_({el:y,isActive:g,isTemporary:P,width:E,touchless:ie(e,"touchless"),position:C}),$=T(()=>{const ge=P.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):E.value;return I.value?ge*L.value:ge}),z=T(()=>["top","bottom"].includes(e.location)?0:E.value),{layoutItemStyles:Q,layoutItemScrimStyles:H,layoutIsReady:X}=gu({id:e.name,order:T(()=>parseInt(e.order,10)),position:C,layoutSize:$,elementSize:z,active:T(()=>g.value||I.value),disableTransitions:T(()=>I.value),absolute:T(()=>e.absolute||O.value&&typeof F.value!="string")}),{isStuck:F,stickyStyles:Oe}=o_({rootEl:y,isSticky:O,layoutItemStyles:Q}),he=Xt(T(()=>typeof e.scrim=="string"?e.scrim:null)),Ee=T(()=>({...I.value?{opacity:L.value*.2,transition:"none"}:void 0,...H.value}));return Ir({VList:{bgColor:"transparent"}}),ye(()=>{const ge=s.image||e.image;return b(ve,null,[b(e.tag,xe({ref:y,onMouseenter:_,onMouseleave:x,class:["v-navigation-drawer",`v-navigation-drawer--${C.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":P.value,"v-navigation-drawer--persistent":A.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":O.value},o.value,l.value,a.value,d.value,c.value,h.value,e.class],style:[u.value,Q.value,p.value,Oe.value,e.style,["top","bottom"].includes(C.value)?{height:"auto"}:{}]},S,n),{default:()=>{var ct,tt,we;return[ge&&b("div",{key:"image",class:"v-navigation-drawer__img"},[s.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},s.image):b(Ss,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),s.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[(ct=s.prepend)==null?void 0:ct.call(s)]),b("div",{class:"v-navigation-drawer__content"},[(tt=s.default)==null?void 0:tt.call(s)]),s.append&&b("div",{class:"v-navigation-drawer__append"},[(we=s.append)==null?void 0:we.call(s)])]}}),b(un,{name:"fade-transition"},{default:()=>[P.value&&(I.value||g.value)&&!!e.scrim&&b("div",xe({class:["v-navigation-drawer__scrim",he.backgroundColorClasses.value],style:[Ee.value,he.backgroundColorStyles.value],onClick:()=>{A.value||(g.value=!1)}},S),null)]})])}),X.then(()=>({isStuck:F}))}}),m_=ht({__name:"AppDrawer",setup(e){const t=pn(),n=Qc("drawer",()=>!0);eu();const{mobile:r,lgAndUp:s,width:i}=aa(),o=T({get(){return n.value||!r.value},set(d){n.value=d}}),a=T(()=>!n.value&&!r.value),l=t.getRoutes().filter(d=>d.path.lastIndexOf("/")===0);l.sort((d,f)=>{var h,m;return(((h=d.meta)==null?void 0:h.drawerIndex)??99)-(((m=f.meta)==null?void 0:m.drawerIndex)??98)});const u=l.filter(d=>{var f,h;return!((f=d.meta)!=null&&f.hideInNav)&&!((h=d.meta)!=null&&h.bottom)}),c=l.filter(d=>{var f,h;return!((f=d.meta)!=null&&f.hideInNav)&&((h=d.meta)==null?void 0:h.bottom)});return n.value=s.value&&i.value!==1280,(d,f)=>{const h=b5,m=i_;return ce(),Me(g_,{modelValue:Z(o),"onUpdate:modelValue":f[0]||(f[0]=g=>Pe(o)?o.value=g:null),"expand-on-hover":Z(a),rail:Z(a)},{append:Ie(()=>[b(tc,{nav:"",density:"compact",class:"pb-0"},{default:Ie(()=>[(ce(!0),Qe(ve,null,ei(Z(c),(g,p)=>{var S,y;return ce(),Qe(ve,{key:g.name},[p===0||((S=g.meta)==null?void 0:S.group)!==((y=Z(c)[p-1].meta)==null?void 0:y.group)?(ce(),Qe(ve,{key:0},[p!==0?(ce(),Me(oo,{key:0})):bt("",!0)],64)):bt("",!0),b(h,{item:g},null,8,["item"])],64)}),128)),b(oo),b(m)]),_:1})]),default:Ie(()=>[b(tc,{nav:"",density:"compact"},{default:Ie(()=>[(ce(!0),Qe(ve,null,ei(Z(u),(g,p)=>{var S,y;return ce(),Qe(ve,{key:g.name},[p===0||((S=g.meta)==null?void 0:S.group)!==((y=Z(u)[p-1].meta)==null?void 0:y.group)?(ce(),Qe(ve,{key:0},[p!==0&&p!==Z(u).length-1?(ce(),Me(oo,{key:0,class:"mt-3 mb-3"})):bt("",!0)],64)):bt("",!0),b(h,{item:g},null,8,["item"])],64)}),128))]),_:1}),b(yu)]),_:1},8,["modelValue","expand-on-hover","rail"])}}}),v_=An("categories"),p_=An("contacts"),y_={bulkDelete:async(e,t)=>{const n=Jt();try{const{error:r}=await n.from("inventory_items").delete().eq("inventory_id",e).in("item_id",t);if(r)throw r}catch(r){Sn("error",r.message),console.error(r)}}},b_={byInventoryId:e=>t=>e.entities.filter(n=>n.inventory_id===t)},nc=An("inventory_items",{},y_,{},b_),w_={preFetch:e=>Jt().from("inventories").select(` + *, + items ( + id, + name, + weight, + amount, + category:categories ( + id, + name, + icon, + color + ) + ) + `)},__={async updateWithItems(e,t){try{await this.update(e)}catch(a){Sn("error",a.message),console.error(a)}const n=nc(),r=await this.byId(e.id).items,s=t.filter(a=>!r.some(l=>l.id===a.id)),i=r.filter(a=>!t.some(l=>l.id===a.id));await Promise.all(s.map(a=>n.create({inventory_id:e.id,item_id:a.id})));const o=i.map(a=>a.id);await n.bulkDelete(e.id,o)},async createWithItems(e,t){let n=null;try{if(n=await this.create(e),n){const r=nc();await Promise.all(t.map(s=>r.create({inventory_id:n.id,item_id:s.id})))}}catch(r){Sn("error",r.message),console.error(r)}}},S_={totalWeightById:e=>t=>{const n=e.entities.find(r=>r.id===t);return n?n.items.reduce((r,s)=>r+s.weight*s.amount,0):0}},C_=An("inventories",w_,__,{},S_),k_={preFetch:async e=>Jt().from("items").select(` + *, + category(id, name, icon, color), + inventories(name) + `)},E_={byInventoryId:e=>t=>{const r=nc().byInventoryId(t);return r.length?r.map(s=>(void 0).items.find(i=>i.id===s.item_id)):[]}},x_=["inventories"],T_=An("items",k_,{},{},E_,!1,x_),A_={myRoutes:()=>rc().entities.filter(t=>t.userId===ds().value.user.id),otherRoutes:()=>rc().entities.filter(t=>t.userId!==ds().value.user.id)},rc=An("routes",{},{},{},A_),L_=An("settings",{},{},{},{},!0),P_={preFetch:e=>Jt().from("trips").select(` + *, + users_meta:user_id ( + name + ), + trips_users_attendees ( + user_id, + users_meta ( + name + ) + ), + routes!planning_route (distance) +`),postFetch:e=>(e.forEach(t=>{t.start=new Date(t.start).toISOString(),t.end=new Date(t.end).toISOString()}),e)},O_={byDateUpcoming:e=>{const t=new Date;return e.entities.filter(r=>new Date(r.start)>t)},byDatePast:e=>{const t=new Date;return e.entities.filter(r=>new Date(r.end)({categories:v_(),contacts:p_(),inventories:C_(),items:T_(),routes:rc(),settings:L_(),trips:I_(),users:eu()}),M_=Y({id:String,...wi(la({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:e5}}),["absolute"])},"VMenu"),$_=fe()({name:"VMenu",props:M_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Bt(e,"modelValue"),{scopeId:s}=xi(),i=Mr(),o=T(()=>e.id||`v-menu-${i}`),a=N(),l=Se(Zl,null),u=le(0);Ye(Zl,{register(){++u.value},unregister(){--u.value},closeParents(g){setTimeout(()=>{!u.value&&(g==null||g&&!zy(g,a.value.contentEl))&&(r.value=!1,l==null||l.closeParents())},40)}});async function c(g){var y,v,_;const p=g.relatedTarget,S=g.target;await qe(),r.value&&p!==S&&((y=a.value)!=null&&y.contentEl)&&((v=a.value)!=null&&v.globalTop)&&![document,a.value.contentEl].includes(S)&&!a.value.contentEl.contains(S)&&((_=ko(a.value.contentEl)[0])==null||_.focus())}se(r,g=>{g?(l==null||l.register(),document.addEventListener("focusin",c,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",c))});function d(g){l==null||l.closeParents(g)}function f(g){var p,S,y;e.disabled||(g.key==="Tab"||g.key==="Enter"&&!e.closeOnContentClick?(g.key==="Enter"&&g.preventDefault(),L2(ko((p=a.value)==null?void 0:p.contentEl,!1),g.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(r.value=!1,(y=(S=a.value)==null?void 0:S.activatorEl)==null||y.focus())):["Enter"," "].includes(g.key)&&e.closeOnContentClick&&(r.value=!1,l==null||l.closeParents()))}function h(g){var S;if(e.disabled)return;const p=(S=a.value)==null?void 0:S.contentEl;p&&r.value?g.key==="ArrowDown"?(g.preventDefault(),Eo(p,"next")):g.key==="ArrowUp"&&(g.preventDefault(),Eo(p,"prev")):["ArrowDown","ArrowUp"].includes(g.key)&&(r.value=!0,g.preventDefault(),setTimeout(()=>setTimeout(()=>h(g))))}const m=T(()=>xe({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":o.value,onKeydown:h},e.activatorProps));return ye(()=>{const g=gs.filterProps(e);return b(gs,xe({ref:a,id:o.value,class:["v-menu",e.class],style:e.style},g,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:m.value,"onClick:outside":d,onKeydown:f},s),{activator:n.activator,default:function(){for(var p=arguments.length,S=new Array(p),y=0;y{var v;return[(v=n.default)==null?void 0:v.call(n,...S)]}})}})}),mu({id:o,ΨopenChildren:u},a)}}),V_=Y({id:String,text:String,...wi(la({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),H_=fe()({name:"VTooltip",props:V_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Bt(e,"modelValue"),{scopeId:s}=xi(),i=Mr(),o=T(()=>e.id||`v-tooltip-${i}`),a=N(),l=T(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=T(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=T(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),d=T(()=>xe({"aria-describedby":o.value},e.activatorProps));return ye(()=>{const f=gs.filterProps(e);return b(gs,xe({ref:a,class:["v-tooltip",e.class],style:e.style,id:o.value},f,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},s),{activator:n.activator,default:function(){var p;for(var h=arguments.length,m=new Array(h),g=0;g{t.value=r.user,n.value=r.loggedIn});const s=async function(){await r.signOut()};return(i,o)=>(ce(),Me($_,{location:"bottom"},{activator:Ie(({props:a})=>[b(H_,{location:"bottom"},{activator:Ie(({props:l})=>[b(hs,xe({icon:"",large:""},xe(a,l),{class:"ml-1"}),{default:Ie(()=>[Z(n)?(ce(),Me(di,{key:1,color:"primary",size:"36"},{default:Ie(()=>[Z(t)?(ce(),Me(Ss,{key:0,src:`https://github.com/${Z(t).name}.png`},null,8,["src"])):bt("",!0)]),_:1})):(ce(),Me(Qt,{key:0,icon:"M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",size:"36"}))]),_:2},1040)]),default:Ie(()=>[tn("span",null,$5(Z(n)?Z(t)&&Z(t).name:"User"),1)]),_:2},1024)]),default:Ie(()=>[b(tc,null,{default:Ie(()=>[Z(n)?(ce(),Me(Kn,{key:0,active:(i._.provides[_r]||i.$route).path==="/profile",title:"Profile","prepend-icon":"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",to:""},null,8,["active"])):bt("",!0),Z(n)?(ce(),Me(Kn,{key:1,active:(i._.provides[_r]||i.$route).path==="/settings",title:"Settings","prepend-icon":"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",to:"/settings"},null,8,["active"])):bt("",!0),Z(n)?(ce(),Me(Kn,{key:2,active:(i._.provides[_r]||i.$route).path==="/settings",title:"Logout","prepend-icon":"M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",onClick:s},null,8,["active"])):bt("",!0),Z(n)?bt("",!0):(ce(),Me(Kn,{key:3,title:"Login","prepend-icon":"M11 7L9.6 8.4L12.2 11H2V13H12.2L9.6 15.6L11 17L16 12L11 7M20 19H12V21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3H12V5H20V19Z",to:"/login"}))]),_:1})]),_:1}))}}),j_=Y({text:String,...ke(),...We()},"VToolbarTitle"),N_=fe()({name:"VToolbarTitle",props:j_(),setup(e,t){let{slots:n}=t;return ye(()=>{const r=!!(n.default||n.text||e.text);return b(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var s;return[r&&b("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(s=n.default)==null?void 0:s.call(n)])]}})}),{}}}),B_=[null,"prominent","default","comfortable","compact"],w5=Y({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>B_.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...nr(),...ke(),...Pn(),...Ft(),...We({tag:"header"}),...at()},"VToolbar"),y1=fe()({name:"VToolbar",props:w5(),setup(e,t){var h;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=Xt(ie(e,"color")),{borderClasses:i}=rr(e),{elevationClasses:o}=On(e),{roundedClasses:a}=Ut(e),{themeClasses:l}=lt(e),{rtlClasses:u}=Hr(),c=le(!!(e.extended||(h=n.extension)!=null&&h.call(n))),d=T(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),f=T(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Ir({VBtn:{variant:"text"}}),ye(()=>{var S;const m=!!(e.title||n.title),g=!!(n.image||e.image),p=(S=n.extension)==null?void 0:S.call(n);return c.value=!!(e.extended||p),b(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,a.value,l.value,u.value,e.class],style:[s.value,e.style]},{default:()=>[g&&b("div",{key:"image",class:"v-toolbar__image"},[n.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):b(Ss,{key:"image-img",cover:!0,src:e.image},null)]),b(ze,{defaults:{VTabs:{height:ue(d.value)}}},{default:()=>{var y,v,_;return[b("div",{class:"v-toolbar__content",style:{height:ue(d.value)}},[n.prepend&&b("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),m&&b(N_,{key:"title",text:e.title},{text:n.title}),(v=n.default)==null?void 0:v.call(n),n.append&&b("div",{class:"v-toolbar__append"},[(_=n.append)==null?void 0:_.call(n)])])]}}),b(ze,{defaults:{VTabs:{height:ue(f.value)}}},{default:()=>[b(t5,null,{default:()=>[c.value&&b("div",{class:"v-toolbar__extension",style:{height:ue(f.value)}},[p])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),F_=Y({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function U_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0;const s=N(null),i=le(0),o=le(0),a=le(0),l=le(!1),u=le(!1),c=T(()=>Number(e.scrollThreshold)),d=T(()=>Lr((c.value-i.value)/c.value||0)),f=()=>{const h=s.value;!h||n&&!n.value||(r=i.value,i.value="window"in h?h.pageYOffset:h.scrollTop,u.value=i.value{o.value=o.value||i.value}),se(l,()=>{o.value=0}),rn(()=>{se(()=>e.scrollTarget,h=>{var g;const m=h?document.querySelector(h):window;m&&m!==s.value&&((g=s.value)==null||g.removeEventListener("scroll",f),s.value=m,s.value.addEventListener("scroll",f,{passive:!0}))},{immediate:!0})}),it(()=>{var h;(h=s.value)==null||h.removeEventListener("scroll",f)}),n&&se(n,f,{immediate:!0}),{scrollThreshold:c,currentScroll:i,currentThreshold:a,isScrollActive:l,scrollRatio:d,isScrollingUp:u,savedScroll:o}}const z_=Y({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...w5(),...hu(),...F_(),height:{type:[Number,String],default:64}},"VAppBar"),W_=fe()({name:"VAppBar",props:z_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=N(),s=Bt(e,"modelValue"),i=T(()=>{var _;const v=new Set(((_=e.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),o=T(()=>{const v=i.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!s.value}),{currentScroll:a,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=U_(e,{canScroll:o}),d=T(()=>i.value.hide||i.value.fullyHide),f=T(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),h=T(()=>e.flat||i.value.fullyHide&&!s.value||i.value.elevate&&(i.value.inverted?a.value>0:a.value===0)),m=T(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),g=T(()=>{var x,E;const v=Number(((x=r.value)==null?void 0:x.contentHeight)??e.height),_=Number(((E=r.value)==null?void 0:E.extensionHeight)??0);return d.value?a.value!!e.scrollBehavior),()=>{nn(()=>{d.value?i.value.inverted?s.value=a.value>l.value:s.value=u.value||a.valueparseInt(e.order,10)),position:ie(e,"location"),layoutSize:g,elementSize:le(void 0),active:s,absolute:ie(e,"absolute")});return ye(()=>{const v=y1.filterProps(e);return b(y1,xe({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...S.value,"--v-toolbar-image-opacity":m.value,height:void 0,...p.value},e.style]},v,{collapse:f.value,flat:h.value}),n)}),y}}),G_=Y({...j0({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),q_=fe()({name:"VAppBarNavIcon",props:G_(),setup(e,t){let{slots:n}=t;return ye(()=>b(hs,xe(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),K_=Y({divider:[Number,String],...ke()},"VBreadcrumbsDivider"),Y_=fe()({name:"VBreadcrumbsDivider",props:K_(),setup(e,t){let{slots:n}=t;return ye(()=>{var r;return b("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),J_=Y({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...ke(),...oa(),...We({tag:"li"})},"VBreadcrumbsItem"),Z_=fe()({name:"VBreadcrumbsItem",props:J_(),setup(e,t){let{slots:n,attrs:r}=t;const s=ia(e,r),i=T(()=>{var u;return e.active||((u=s.isActive)==null?void 0:u.value)}),o=T(()=>i.value?e.activeColor:e.color),{textColorClasses:a,textColorStyles:l}=Xn(o);return ye(()=>b(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},a.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[s.isLink.value?b("a",{class:"v-breadcrumbs-item--link",href:s.href.value,"aria-current":i.value?"page":void 0,onClick:s.navigate},[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),X_=Y({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:et,items:{type:Array,default:()=>[]},...ke(),...Ln(),...Ft(),...We({tag:"ul"})},"VBreadcrumbs"),Q_=fe()({name:"VBreadcrumbs",props:X_(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=Xt(ie(e,"bgColor")),{densityClasses:i}=sr(e),{roundedClasses:o}=Ut(e);Ir({VBreadcrumbsDivider:{divider:ie(e,"divider")},VBreadcrumbsItem:{activeClass:ie(e,"activeClass"),activeColor:ie(e,"activeColor"),color:ie(e,"color"),disabled:ie(e,"disabled")}});const a=T(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return ye(()=>{const l=!!(n.prepend||e.icon);return b(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[s.value,e.style]},{default:()=>{var u;return[l&&b("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?b(ze,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):b(Qt,{key:"prepend-icon",start:!0,icon:e.icon},null)]),a.value.map((c,d,f)=>{var g;let{item:h,raw:m}=c;return b(ve,null,[((g=n.item)==null?void 0:g.call(n,{item:h,index:d}))??b(Z_,xe({key:d,disabled:d>=f.length-1},typeof h=="string"?{title:h}:h),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:h,index:d})}:void 0}),d{var p;return(p=n.divider)==null?void 0:p.call(n,{item:m,index:d})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}}),eS=tn("div",{id:"app-bar"},null,-1),tS=ht({__name:"AppBar",setup(e){const t=Qc("drawer"),n=Go(),r=T(()=>n.matched.filter(s=>{var i;return s.meta&&s.meta.title&&((i=s.meta)==null?void 0:i.breadcrumb)!=="hidden"}).map(s=>{var i;return{title:s.meta.title,disabled:((i=s.meta)==null?void 0:i.breadcrumb)==="disabled"||s.path===n.path||!1,to:s.path}}));return(s,i)=>{const o=D_,a=d8;return ce(),Me(W_,{flat:""},{default:Ie(()=>[b(q_,{onClick:i[0]||(i[0]=l=>t.value=!Z(t))}),b(Q_,{items:Z(r)},null,8,["items"]),b(yu),eS,b(a,null,{default:Ie(()=>[b(o)]),_:1})]),_:1})}}}),nS=Zo("v-alert-title"),rS=["success","info","warning","error"],sS=Y({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:et,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>rS.includes(e)},...ke(),...Ln(),...Rn(),...Pn(),...ra(),...cu(),...Ft(),...We(),...at(),...Vr({variant:"flat"})},"VAlert"),iS=fe()({name:"VAlert",props:sS(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Bt(e,"modelValue"),i=T(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=T(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:a}=lt(e),{colorClasses:l,colorStyles:u,variantClasses:c}=ki(o),{densityClasses:d}=sr(e),{dimensionStyles:f}=In(e),{elevationClasses:h}=On(e),{locationStyles:m}=sa(e),{positionClasses:g}=uu(e),{roundedClasses:p}=Ut(e),{textColorClasses:S,textColorStyles:y}=Xn(ie(e,"borderColor")),{t:v}=v9(),_=T(()=>({"aria-label":v(e.closeLabel),onClick(x){s.value=!1,n("click:close",x)}}));return()=>{const x=!!(r.prepend||i.value),E=!!(r.title||e.title),C=!!(r.close||e.closable);return s.value&&b(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},a.value,l.value,d.value,h.value,g.value,p.value,c.value,e.class],style:[u.value,f.value,m.value,e.style],role:"alert"},{default:()=>{var A,P;return[Ci(!1,"v-alert"),e.border&&b("div",{key:"border",class:["v-alert__border",S.value],style:y.value},null),x&&b("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):b(Qt,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),b("div",{class:"v-alert__content"},[E&&b(nS,{key:"title"},{default:()=>{var O;return[((O=r.title)==null?void 0:O.call(r))??e.title]}}),((A=r.text)==null?void 0:A.call(r))??e.text,(P=r.default)==null?void 0:P.call(r)]),r.append&&b("div",{key:"append",class:"v-alert__append"},[r.append()]),C&&b("div",{key:"close",class:"v-alert__close"},[r.close?b(ze,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var O;return[(O=r.close)==null?void 0:O.call(r,{props:_.value})]}}):b(hs,xe({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),oS={class:"notification-wrapper"},aS=ht({__name:"notification-area",setup(e){const t=o0(),{entities:n}=pi(t);return(r,s)=>(ce(),Qe("div",oS,[b(Uo,{name:"list",tag:"div"},{default:Ie(()=>[(ce(!0),Qe(ve,null,ei(Z(n),i=>(ce(),Me(iS,{key:i.id,text:i.text,type:i.type,onClick:o=>Z(t).remove(i.id)},null,8,["text","type","onClick"]))),128))]),_:1})]))}}),lS=Ti(aS,[["__scopeId","data-v-0b961b91"]]),cS=ht({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return Ye(_r,vi(r)),()=>vt(e.vnode,{ref:e.vnodeRef})}}),uS=ht({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(e,{attrs:t,expose:n}){const r=Ue(),s=N(),i=Se(_r,null);let o;n({pageRef:s});const a=Se(Cp,null);let l;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);pn().beforeEach(c)}return e.pageKey&&se(()=>e.pageKey,(c,d)=>{c!==d&&r.callHook("page:loading:start")}),()=>vt(Q2,{name:e.name,route:e.route,...t},{default:c=>{const d=fS(i,c.route,c.Component),f=i&&i.matched.length===c.route.matched.length;if(!c.Component){if(l&&!f)return l;u();return}if(l&&a&&!a.isCurrent(c.route))return l;if(d&&i&&(!a||a!=null&&a.isCurrent(i)))return f?l:null;const h=Ml(c,e.pageKey);!r.isHydrating&&!hS(i,c.route,c.Component)&&o===h&&r.callHook("page:loading:end"),o=h;const m=!!(e.transition??c.route.meta.pageTransition??Cl),g=m&&dS([e.transition,c.route.meta.pageTransition,Cl,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),p=e.keepalive??c.route.meta.keepalive??_y;return l=F4(un,m&&g,D4(p,vt(Sc,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{qe(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const S=vt(cS,{key:h||void 0,vnode:c.Component,route:c.route,renderKey:h||void 0,trackRootNodes:m,vnodeRef:s});return p&&(S.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),S}}))).default(),l}})}});function dS(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Xc(n.onAfterLeave):void 0}));return r2(...t)}function fS(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&Ml({route:t,Component:n})!==Ml({route:e,Component:n})}function hS(e,t,n){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)})XS
SM
MD
LG
XL
XXL
',6),vS=[mS],pS={__name:"BreakpointDebugger",setup(e){return(t,n)=>(ce(),Qe("div",gS,vS))}},yS=Ti(pS,[["__scopeId","data-v-d516005f"]]),bS=Y({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...nr(),...ke(),...Pn(),...hu(),...Ft(),...We({tag:"footer"}),...at()},"VFooter"),wS=fe()({name:"VFooter",props:bS(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{backgroundColorClasses:s,backgroundColorStyles:i}=Xt(ie(e,"color")),{borderClasses:o}=rr(e),{elevationClasses:a}=On(e),{roundedClasses:l}=Ut(e),u=le(32),{resizeRef:c}=lu(m=>{m.length&&(u.value=m[0].target.clientHeight)}),d=T(()=>e.height==="auto"?u.value:parseInt(e.height,10)),{layoutItemStyles:f,layoutIsReady:h}=gu({id:e.name,order:T(()=>parseInt(e.order,10)),position:T(()=>"bottom"),layoutSize:d,elementSize:T(()=>e.height==="auto"?void 0:d.value),active:T(()=>e.app),absolute:ie(e,"absolute")});return ye(()=>b(e.tag,{ref:c,class:["v-footer",r.value,s.value,o.value,a.value,l.value,e.class],style:[i.value,e.app?f.value:{height:ue(e.height)},e.style]},n)),e.app?h:{}}}),_S={};function SS(e,t){const n=yS;return ce(),Me(wS,{app:""},{default:Ie(()=>[b(yu),b(ze,{defaults:{VBtn:{variant:"text",size:"x-small"}}},{default:Ie(()=>[b(n)]),_:1})]),_:1})}const CS=Ti(_S,[["render",SS]]),kS=Y({...ke(),...Ob({fullHeight:!0}),...at()},"VApp"),ES=fe()({name:"VApp",props:kS(),setup(e,t){let{slots:n}=t;const r=lt(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=Mb(e),{rtlClasses:l}=Hr();return ye(()=>b("div",{ref:a,class:["v-application",r.themeClasses.value,s.value,l.value,e.class],style:[e.style]},[b("div",{class:"v-application__wrap"},[b(Sc,null,{default:()=>{var u;return[b(ve,null,[(u=n.default)==null?void 0:u.call(n)])]}})])])),{getLayoutItem:i,items:o,theme:r}}}),xS=Y({scrollable:Boolean,...ke(),...Rn(),...We({tag:"main"})},"VMain"),TS=fe()({name:"VMain",props:xS(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=In(e),{mainStyles:s,layoutIsReady:i}=Rb(),{ssrBootStyles:o}=ca();return ye(()=>b(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,o.value,r.value,e.style]},{default:()=>{var a,l;return[e.scrollable?b("div",{class:"v-main__scroller"},[(a=n.default)==null?void 0:a.call(n)]):(l=n.default)==null?void 0:l.call(n)]}})),i}}),AS=ht({__name:"app",setup(e){const t=Q8(),n=Go(),r=T(()=>{var d,f;return((d=n.meta)==null?void 0:d.title)||((f=n.matched[0].meta)==null?void 0:f.title)||""});Fc({title:r,titleTemplate:d=>d?`${d} | couchsurvivors`:"couchsurvivors",htmlAttrs:{lang:"en"},link:[{rel:"icon",href:"/favicon.ico"}]}),yy({viewport:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",description:"couch survivors - adventures start at home"});const s=N(!0),i=hr().users,o=hr().contacts,a=hr().settings,l=hr().items,u=hr().inventories,c=hr().categories;return i.$subscribe((d,f)=>{i.loggedIn?(s.value=!0,a.fetch(),l.fetch(),u.fetch(),c.fetch(),o.fetch()):s.value=!1}),t.global.name.value=a.entities.lightMode?"light":"dark",a.$subscribe((d,f)=>{t.global.name.value=f.entities.lightMode?"light":"dark"}),(d,f)=>{const h=_w,m=Sw,g=m_,p=tS,S=lS,y=uS,v=CS;return ce(),Me(ES,null,{default:Ie(()=>[b(h),b(m),b(g),b(p,{class:kr(Z(s)?"":"invisible")},null,8,["class"]),b(TS,null,{default:Ie(()=>[b(S),b(y)]),_:1}),b(v)]),_:1})}}}),LS=Ti(AS,[["__scopeId","data-v-c31ac0f7"]]),PS={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(` +`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`${d.text}`).join(` +`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,c=s?$u(()=>Ae(()=>import("./DLX79Nml.js"),__vite__mapDeps([64,65]),import.meta.url).then(d=>d.default||d)):$u(()=>Ae(()=>import("./DvMxV5Ax.js"),__vite__mapDeps([66,67]),import.meta.url).then(d=>d.default||d));return(d,f)=>(ce(),Me(Z(c),R5(xh({statusCode:Z(r),statusMessage:Z(i),description:Z(o),stack:Z(a)})),null,16))}},b1={__name:"nuxt-root",setup(e){const t=()=>null,n=Ue(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);pn().beforeEach(a)}const s=!1;Ye(_r,Go()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=qo();ah((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),xp(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Yr(a)),!1});const o=!1;return(a,l)=>(ce(),Me(Sc,{onResolve:Z(r)},{default:Ie(()=>[Z(i)?(ce(),Me(Z(PS),{key:0,error:Z(i)},null,8,["error"])):Z(o)?(ce(),Me(Z(t),{key:1,context:Z(o)},null,8,["context"])):Z(s)?(ce(),Me(Z1(Z(s)),{key:2})):(ce(),Me(Z(LS),{key:3}))]),_:1},8,["onResolve"]))}};let w1;{let e;w1=async function(){var o,a;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Jm(b1):Ym(b1),s=np({vueApp:r});async function i(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||Ko(l)}r.config.errorHandler=i;try{await sp(s,Hb)}catch(l){i(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Sy),await s.hooks.callHook("app:mounted",r),await qe()}catch(l){i(l)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=w1().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Ut as $,b as A,Ie as B,Ns as C,mg as D,vg as E,Y as F,ke as G,dw as H,fe as I,Se as J,fw as K,ye as L,Er as M,Ic as N,et as O,Xt as P,jo as Q,du as R,Qt as S,Pn as T,n9 as U,t5 as V,Ft as W,We as X,r9 as Y,On as Z,Ti as _,w0 as a,L0 as a$,Ye as a0,xe as a1,t9 as a2,at as a3,s9 as a4,lt as a5,Ir as a6,ie as a7,Me as a8,Nb as a9,ww as aA,J0 as aB,x2 as aC,Vg as aD,nr as aE,Ln as aF,Ei as aG,Vr as aH,Bt as aI,v9 as aJ,Hr as aK,aa as aL,lu as aM,k2 as aN,VS as aO,nn as aP,Ze as aQ,Lr as aR,qS as aS,ue as aT,vs as aU,GS as aV,Jo as aW,Dy as aX,zS as aY,H9 as aZ,A0 as a_,Z0 as aa,Gb as ab,tc as ac,ei as ad,ve as ae,Z as af,Pe as ag,Kn as ah,Hw as ai,hs as aj,bt as ak,hr as al,C_ as am,RS as an,Go as ao,le as ap,Ph as aq,oh as ar,se as as,ae as at,qe as au,B1 as av,kr as aw,T_ as ax,pi as ay,I8 as az,Df as b,$y as b$,_9 as b0,kl as b1,Id as b2,IS as b3,wn as b4,oo as b5,sr as b6,wi as b7,B0 as b8,tC as b9,rc as bA,f9 as bB,j0 as bC,hu as bD,En as bE,gu as bF,eu as bG,Jf as bH,pa as bI,jS as bJ,FS as bK,US as bL,uS as bM,Mr as bN,I_ as bO,pt as bP,NS as bQ,Rn as bR,In as bS,_3 as bT,Uw as bU,e5 as bV,By as bW,QS as bX,R2 as bY,Rs as bZ,eC as b_,Xn as ba,ec as bb,Fe as bc,$_ as bd,di as be,Fy as bf,ze as bg,WS as bh,mu as bi,DS as bj,BS as bk,XS as bl,v_ as bm,Ss as bn,i0 as bo,Ae as bp,mc as bq,MS as br,Be as bs,L_ as bt,ih as bu,o0 as bv,d8 as bw,Jt as bx,M_ as by,Jr as bz,T as c,Ll as c0,I9 as c1,xn as c2,tr as c3,HS as c4,JS as c5,ZS as c6,ko as c7,oa as c8,rr as c9,ki as ca,na as cb,ia as cc,Ci as cd,YS as ce,ht as d,it as e,KS as f,vt as g,Rr as h,OS as i,Vc as j,hv as k,Wo as l,Ue as m,$S as n,rn as o,zo as p,wo as q,N as r,$c as s,Fc as t,pn as u,ce as v,hl as w,Qe as x,tn as y,$5 as z}; diff --git a/_nuxt/-cMAfuNF.js b/_nuxt/-cMAfuNF.js new file mode 100644 index 0000000..4880a1f --- /dev/null +++ b/_nuxt/-cMAfuNF.js @@ -0,0 +1 @@ +import{F as y,b7 as h,bC as V,bD as g,b8 as P,I as B,aI as F,ap as I,r as u,aM as S,c as a,bE as R,L as w,aj as r,A as n,bz as x,M as z,N as k,a1 as M,bF as p,a7 as L,aP as T}from"./-VvI6Lr7.js";const C=y({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,location:{type:String,default:"bottom end"},offset:Boolean,modelValue:{type:Boolean,default:!0},...h(V({active:!0}),["location"]),...g(),...P({transition:"fab-transition"})},"VFab"),E=B()({name:"VFab",props:C(),emits:{"update:modelValue":e=>!0},setup(e,f){let{slots:c}=f;const d=F(e,"modelValue"),s=I(56),l=u(),{resizeRef:v}=S(t=>{t.length&&(s.value=t[0].target.clientHeight)}),o=a(()=>e.app||e.absolute),i=a(()=>o.value?e.location.split(" ").shift():!1),b=a(()=>o.value?e.location.split(" ")[1]??"end":!1);R(()=>e.app,()=>{const t=p({id:e.name,order:a(()=>parseInt(e.order,10)),position:i,layoutSize:a(()=>e.layout?s.value+24:0),elementSize:a(()=>s.value+24),active:a(()=>e.app&&d.value),absolute:L(e,"absolute")});T(()=>{l.value=t.layoutItemStyles.value})});const m=u();return w(()=>{const t=r.filterProps(e);return n("div",{ref:m,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${i.value}`]:o.value,[`v-fab--${b.value}`]:o.value},e.class],style:[e.app?{...l.value}:{height:"inherit",width:void 0},e.style]},[n("div",{class:"v-fab__container"},[n(x,{appear:e.appear,transition:e.transition},{default:()=>[z(n(r,M({ref:v},t,{active:void 0,location:void 0}),c),[[k,e.active]])]})])])}),{}}});export{E as V}; diff --git a/_nuxt/743RfUEt.js b/_nuxt/743RfUEt.js new file mode 100644 index 0000000..731c2b7 --- /dev/null +++ b/_nuxt/743RfUEt.js @@ -0,0 +1 @@ +import{_ as y,v as l,a8 as m,B as t,A as s,S as r,C as n,z as o,y as c,x as u,ak as f,ae as p,ad as h,af as k,q as v,D,E as S}from"./-VvI6Lr7.js";import{a as A,V as g}from"./CRmmW6t3.js";import{a as w,V as H}from"./FoGmEwba.js";const I={methods:{formatDate(e){const i=new Date(e);return new Intl.DateTimeFormat("en-US",{dateStyle:"long"}).format(i)}}},b={mixins:[I],props:{entity:Object({})}},M=e=>(D("data-v-f7b36365"),e=e(),S(),e),x=M(()=>c("br",null,null,-1)),B={key:0},T=M(()=>c("br",null,null,-1)),L={key:1};function N(e,i,a,Z,E,F){return l(),m(g,{class:"link",onClick:i[0]||(i[0]=d=>("navigateTo"in e?e.navigateTo:k(v))(`/trips/${a.entity.id}/`))},{default:t(()=>[s(A,{cols:"2",class:"d-none d-sm-flex"},{default:t(()=>[s(r,{class:"placeholder-icon h-100 w-100"},{default:t(()=>[n("custom:trip")]),_:1})]),_:1}),s(A,{cols:"12",sm:"10"},{default:t(()=>{var d,V;return[n(o(a.entity.name)+" ",1),x,s(r,null,{default:t(()=>[n("M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z")]),_:1}),c("span",null,o(e.formatDate(a.entity.start)),1),n(" - "),a.entity.end?(l(),u("span",B,o(e.formatDate(a.entity.end)),1)):f("",!0),T,(V=(d=a.entity)==null?void 0:d.routes)!=null&&V.distance?(l(),u("span",L,[s(r,null,{default:t(()=>[n("M6.5,8.11C5.61,8.11 4.89,7.39 4.89,6.5A1.61,1.61 0 0,1 6.5,4.89C7.39,4.89 8.11,5.61 8.11,6.5V6.5A1.61,1.61 0 0,1 6.5,8.11M6.5,2C4,2 2,4 2,6.5C2,9.87 6.5,14.86 6.5,14.86C6.5,14.86 11,9.87 11,6.5C11,4 9,2 6.5,2M17.5,8.11A1.61,1.61 0 0,1 15.89,6.5C15.89,5.61 16.61,4.89 17.5,4.89C18.39,4.89 19.11,5.61 19.11,6.5A1.61,1.61 0 0,1 17.5,8.11M17.5,2C15,2 13,4 13,6.5C13,9.87 17.5,14.86 17.5,14.86C17.5,14.86 22,9.87 22,6.5C22,4 20,2 17.5,2M17.5,16C16.23,16 15.1,16.8 14.68,18H9.32C8.77,16.44 7.05,15.62 5.5,16.17C3.93,16.72 3.11,18.44 3.66,20C4.22,21.56 5.93,22.38 7.5,21.83C8.35,21.53 9,20.85 9.32,20H14.69C15.24,21.56 16.96,22.38 18.5,21.83C20.08,21.28 20.9,19.56 20.35,18C19.92,16.8 18.78,16 17.5,16V16M17.5,20.5A1.5,1.5 0 0,1 16,19A1.5,1.5 0 0,1 17.5,17.5A1.5,1.5 0 0,1 19,19A1.5,1.5 0 0,1 17.5,20.5Z")]),_:1}),n(" "+o(a.entity.routes.distance/1e3)+" km ",1)])):f("",!0),s(w,null,{default:t(()=>[s(r,null,{default:t(()=>[n("M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z")]),_:1}),s(H,{"prepend-icon":"M22,2C22,2 14.36,1.63 8.34,9.88C3.72,16.21 2,22 2,22L3.94,21C5.38,18.5 6.13,17.47 7.54,16C10.07,16.74 12.71,16.65 15,14C13,13.44 11.4,13.57 9.04,13.81C11.69,12 13.5,11.6 16,12L17,10C15.2,9.66 14,9.63 12.22,10.04C14.19,8.65 15.56,7.87 18,8L19.21,6.07C17.65,5.96 16.71,6.13 14.92,6.57C16.53,5.11 18,4.45 20.14,4.32C20.14,4.32 21.19,2.43 22,2Z"},{default:t(()=>{var C;return[n(o((C=a.entity.usersMeta)==null?void 0:C.name),1)]}),_:1}),(l(!0),u(p,null,h(a.entity.tripsUsersAttendees,C=>(l(),m(H,{key:C.user_id},{default:t(()=>{var _;return[n(o((_=C.users_meta)==null?void 0:_.name),1)]}),_:2},1024))),128))]),_:1})]}),_:1})]),_:1})}const z=y(b,[["render",N],["__scopeId","data-v-f7b36365"]]);export{z as _}; diff --git a/_nuxt/BHGrsRTQ.js b/_nuxt/BHGrsRTQ.js new file mode 100644 index 0000000..4ab3328 --- /dev/null +++ b/_nuxt/BHGrsRTQ.js @@ -0,0 +1 @@ +import{_ as p}from"./CBLhoS0v.js";import{d as u,bt as h,c as f,an as x,as as y,v as t,a8 as _,B as S,af as s,x as l,ak as o,bI as v,y as m}from"./-VvI6Lr7.js";import{V as b}from"./n5OR3jin.js";const k={key:0,class:"text-center mb-5"},w=m("h2",null,"External services are disabled",-1),g=m("p",null,"You can enable them now, but be aware that they may collect data about you.",-1),B=[w,g],C={key:2},$=u({__name:"ExternalServiceWrapper",async setup(V){let n,r;const c=h(),e=f(()=>c.entities.externalServices);return[n,r]=x(()=>c.fetch()),await n,r(),y(e,(a,i)=>{console.log("externalServices changed from",i,"to",a)}),(a,i)=>{const d=p;return t(),_(b,null,{default:S(()=>[s(e)?o("",!0):(t(),l("div",k,B)),s(e)?o("",!0):(t(),_(d,{key:1,showSection:"privacy"})),s(e)?(t(),l("div",C,[v(a.$slots,"default")])):o("",!0)]),_:3})}}});export{$ as _}; diff --git a/_nuxt/BgZFLVLL.js b/_nuxt/BgZFLVLL.js new file mode 100644 index 0000000..3d0a554 --- /dev/null +++ b/_nuxt/BgZFLVLL.js @@ -0,0 +1 @@ +import{_ as qe}from"./CpVlVgCe.js";import{u as We}from"./CXnKksxJ.js";import{F as Ve,b7 as Xe,b8 as Je,I as ye,aJ as Ye,r as E,ap as ie,aI as xe,c as m,b9 as Ge,ba as Ke,as as ce,bb as ve,bc as Qe,L as ke,A as l,ae as fe,bd as el,a1 as oe,ac as ll,ah as Te,be as tl,S as He,bf as al,bg as nl,C as ee,bh as ul,bi as ol,bj as il,au as Ie,aX as sl,W as rl,T as dl,bk as Pe,aK as _e,a7 as q,aN as cl,a0 as vl,aR as $e,G as Ze,R as ml,J as je,Z as fl,aT as se,M as Re,Q as bl,bl as Vl,N as gl,aO as hl,$ as pl,P as De,d as Cl,ax as yl,bm as kl,an as Sl,o as wl,v as Ne,a8 as Ee,B as x,af as I,aw as Al,ag as Be,ak as xl,bn as Hl,y as _l,aj as me,aA as Ml,ab as Fl,aa as Ll,aB as Tl,bo as Il,q as ze}from"./-VvI6Lr7.js";import{m as Pl,V as be}from"./TjYH8LVs.js";import{V as Ue}from"./mCWCszvA.js";import{V as Rl}from"./n5OR3jin.js";import{V as Ce,a as ue}from"./CRmmW6t3.js";import{m as Dl,u as Nl,b as El,a as Bl}from"./CufEZoaj.js";import{m as zl,u as Ul}from"./DBf96Ybk.js";import{u as Ol,m as Kl,a as $l,b as Zl,V as Oe,c as jl}from"./l9yxdLf0.js";import{V as ql}from"./FoGmEwba.js";import{V as Wl}from"./BwUqDjZt.js";function Xl(e,a,c){if(a==null)return e;if(Array.isArray(a))throw new Error("Multiple matches is not implemented");return typeof a=="number"&&~a?l(fe,null,[l("span",{class:"v-combobox__unmask"},[e.substr(0,a)]),l("span",{class:"v-combobox__mask"},[e.substr(a,c)]),l("span",{class:"v-combobox__unmask"},[e.substr(a+c)])]):e}const Jl=Ve({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...zl({filterKeys:["title"]}),...Dl({hideNoData:!0,returnObject:!0}),...Xe(Pl({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Je({transition:!1})},"VCombobox"),Yl=ye()({name:"VCombobox",props:Jl(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,a){var ge;let{emit:c,slots:o}=a;const{t:p}=Ye(),h=E(),k=ie(!1),u=ie(!0),w=ie(!1),P=E(),D=E(),_=xe(e,"menu"),f=m({get:()=>_.value,set:t=>{var v;_.value&&!t&&((v=P.value)!=null&&v.ΨopenChildren)||(_.value=t)}}),b=ie(-1);let N=!1;const B=m(()=>{var t;return(t=h.value)==null?void 0:t.color}),K=m(()=>f.value?e.closeText:e.openText),{items:j,transformIn:$,transformOut:z}=Ge(e),{textColorClasses:M,textColorStyles:i}=Ke(B),n=xe(e,"modelValue",[],t=>$(sl(t)),t=>{const v=z(t);return e.multiple?v:v[0]??null}),s=Ol(),F=m(()=>!!(e.chips||o.chip)),C=m(()=>F.value||!!o.selection),L=ie(!e.multiple&&!C.value?((ge=n.value[0])==null?void 0:ge.title)??"":""),V=m({get:()=>L.value,set:t=>{var v;if(L.value=t??"",!e.multiple&&!C.value&&(n.value=[ve(e,t)]),t&&e.multiple&&((v=e.delimiters)!=null&&v.length)){const y=t.split(new RegExp(`(?:${e.delimiters.join("|")})+`));y.length>1&&(y.forEach(d=>{d=d.trim(),d&&g(ve(e,d))}),L.value="")}t||(b.value=-1),u.value=!t}}),A=m(()=>typeof e.counterValue=="function"?e.counterValue(n.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?n.value.length:V.value.length);ce(L,t=>{N?Ie(()=>N=!1):k.value&&!f.value&&(f.value=!0),c("update:search",t)}),ce(n,t=>{var v;!e.multiple&&!C.value&&(L.value=((v=t[0])==null?void 0:v.title)??"")});const{filteredItems:U,getMatches:W}=Ul(e,j,()=>u.value?"":V.value),H=m(()=>e.hideSelected?U.value.filter(t=>!n.value.some(v=>v.value===t.value)):U.value),Y=m(()=>n.value.map(t=>t.value)),J=m(()=>{var v;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&V.value===((v=H.value[0])==null?void 0:v.title))&&H.value.length>0&&!u.value&&!w.value}),G=m(()=>e.hideNoData&&!H.value.length||e.readonly||(s==null?void 0:s.isReadonly.value)),le=E(),{onListScroll:R,onListKeydown:T}=Nl(le,h);function Q(t){N=!0,e.openOnClear&&(f.value=!0)}function te(){G.value||(f.value=!0)}function re(t){G.value||(k.value&&(t.preventDefault(),t.stopPropagation()),f.value=!f.value)}function de(t){var d;if(il(t)||e.readonly||s!=null&&s.isReadonly.value)return;const v=h.value.selectionStart,y=n.value.length;if((b.value>-1||["Enter","ArrowDown","ArrowUp"].includes(t.key))&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(f.value=!0),["Escape"].includes(t.key)&&(f.value=!1),["Enter","Escape","Tab"].includes(t.key)&&(J.value&&["Enter","Tab"].includes(t.key)&&g(U.value[0]),u.value=!0),t.key==="ArrowDown"&&J.value&&((d=le.value)==null||d.focus("next")),t.key==="Enter"&&V.value&&(g(ve(e,V.value)),C.value&&(L.value="")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&C.value&&n.value.length>0&&!V.value)return g(n.value[0],!1);if(~b.value){const S=b.value;g(n.value[b.value],!1),b.value=S>=y-1?y-2:S}else t.key==="Backspace"&&!V.value&&(b.value=y-1)}if(e.multiple){if(t.key==="ArrowLeft"){if(b.value<0&&v>0)return;const S=b.value>-1?b.value-1:y-1;n.value[S]?b.value=S:(b.value=-1,h.value.setSelectionRange(V.value.length,V.value.length))}if(t.key==="ArrowRight"){if(b.value<0)return;const S=b.value+1;n.value[S]?b.value=S:(b.value=-1,h.value.setSelectionRange(0,0))}}}function r(){var t;k.value&&(u.value=!0,(t=h.value)==null||t.focus())}function g(t){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!t||t.props.disabled))if(e.multiple){const y=n.value.findIndex(S=>e.valueComparator(S.value,t.value)),d=v??!~y;if(~y){const S=d?[...n.value,t]:[...n.value];S.splice(y,1),n.value=S}else d&&(n.value=[...n.value,t]);e.clearOnSelect&&(V.value="")}else{const y=v!==!1;n.value=y?[t]:[],L.value=y&&!C.value?t.title:"",Ie(()=>{f.value=!1,u.value=!0})}}function Se(t){k.value=!0,setTimeout(()=>{w.value=!0})}function we(t){w.value=!1}function Ae(t){(t==null||t===""&&!e.multiple&&!C.value)&&(n.value=[])}return ce(k,(t,v)=>{if(!(t||t===v)){if(b.value=-1,f.value=!1,J.value&&!w.value&&!n.value.some(y=>{let{value:d}=y;return d===H.value[0].value})){g(H.value[0]);return}if(V.value){if(e.multiple){g(ve(e,V.value));return}if(!C.value)return;n.value.some(y=>{let{title:d}=y;return d===V.value})?L.value="":g(ve(e,V.value))}}}),ce(f,()=>{if(!e.hideSelected&&f.value&&n.value.length){const t=H.value.findIndex(v=>n.value.some(y=>e.valueComparator(y.value,v.value)));Qe&&window.requestAnimationFrame(()=>{var v;t>=0&&((v=D.value)==null||v.scrollToIndex(t))})}}),ce(()=>e.items,(t,v)=>{f.value||k.value&&!v.length&&t.length&&(f.value=!0)}),ke(()=>{const t=!!(!e.hideNoData||H.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),v=n.value.length>0,y=be.filterProps(e);return l(be,oe({ref:h},y,{modelValue:V.value,"onUpdate:modelValue":[d=>V.value=d,Ae],focused:k.value,"onUpdate:focused":d=>k.value=d,validationValue:n.externalValue,counterValue:A.value,dirty:v,class:["v-combobox",{"v-combobox--active-menu":f.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!C.value,"v-combobox--selecting-index":b.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:v?void 0:e.placeholder,"onClick:clear":Q,"onMousedown:control":te,onKeydown:de}),{...o,default:()=>l(fe,null,[l(el,oe({ref:P,modelValue:f.value,"onUpdate:modelValue":d=>f.value=d,activator:"parent",contentClass:"v-combobox__content",disabled:G.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:r},e.menuProps),{default:()=>[t&&l(ll,oe({ref:le,selected:Y.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:d=>d.preventDefault(),onKeydown:T,onFocusin:Se,onFocusout:we,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var d,S,X;return[(d=o["prepend-item"])==null?void 0:d.call(o),!H.value.length&&!e.hideNoData&&(((S=o["no-data"])==null?void 0:S.call(o))??l(Te,{title:p(e.noDataText)},null)),l(El,{ref:D,renderless:!0,items:H.value},{default:ae=>{var Le;let{item:O,index:ne,itemRef:Z}=ae;const Fe=oe(O.props,{ref:Z,key:ne,active:J.value&&ne===0?!0:void 0,onClick:()=>g(O,null)});return((Le=o.item)==null?void 0:Le.call(o,{item:O,index:ne,props:Fe}))??l(Te,oe(Fe,{role:"option"}),{prepend:he=>{let{isSelected:pe}=he;return l(fe,null,[e.multiple&&!e.hideSelected?l(Bl,{key:O.value,modelValue:pe,ripple:!1,tabindex:"-1"},null):void 0,O.props.prependAvatar&&l(tl,{image:O.props.prependAvatar},null),O.props.prependIcon&&l(He,{icon:O.props.prependIcon},null)])},title:()=>{var he,pe;return u.value?O.title:Xl(O.title,(he=W(O))==null?void 0:he.title,((pe=V.value)==null?void 0:pe.length)??0)}})}}),(X=o["append-item"])==null?void 0:X.call(o)]}})]}),n.value.map((d,S)=>{function X(Z){Z.stopPropagation(),Z.preventDefault(),g(d,!1)}const ae={"onClick:close":X,onKeydown(Z){Z.key!=="Enter"&&Z.key!==" "||(Z.preventDefault(),Z.stopPropagation(),X(Z))},onMousedown(Z){Z.preventDefault(),Z.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},O=F.value?!!o.chip:!!o.selection,ne=O?al(F.value?o.chip({item:d,index:S,props:ae}):o.selection({item:d,index:S})):void 0;if(!(O&&!ne))return l("div",{key:d.value,class:["v-combobox__selection",S===b.value&&["v-combobox__selection--selected",M.value]],style:S===b.value?i.value:{}},[F.value?o.chip?l(nl,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:d.title}}},{default:()=>[ne]}):l(ql,oe({key:"chip",closable:e.closableChips,size:"small",text:d.title,disabled:d.props.disabled},ae),null):ne??l("span",{class:"v-combobox__selection-text"},[d.title,e.multiple&&Stypeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...rl(),...dl({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),lt=e=>{const a=m(()=>parseFloat(e.min)),c=m(()=>parseFloat(e.max)),o=m(()=>+e.step>0?parseFloat(e.step):0),p=m(()=>Math.max(Pe(o.value),Pe(a.value)));function h(k){if(k=parseFloat(k),o.value<=0)return k;const u=$e(k,a.value,c.value),w=a.value%o.value,P=Math.round((u-w)/o.value)*o.value+w;return parseFloat(Math.min(P,c.value).toFixed(p.value))}return{min:a,max:c,step:o,decimals:p,roundValue:h}},tt=e=>{let{props:a,steps:c,onSliderStart:o,onSliderMove:p,onSliderEnd:h,getActiveThumb:k}=e;const{isRtl:u}=_e(),w=q(a,"reverse"),P=m(()=>a.direction==="vertical"),D=m(()=>P.value!==w.value),{min:_,max:f,step:b,decimals:N,roundValue:B}=c,K=m(()=>parseInt(a.thumbSize,10)),j=m(()=>parseInt(a.tickSize,10)),$=m(()=>parseInt(a.trackSize,10)),z=m(()=>(f.value-_.value)/b.value),M=q(a,"disabled"),i=m(()=>a.error||a.disabled?void 0:a.thumbColor??a.color),n=m(()=>a.error||a.disabled?void 0:a.trackColor??a.color),s=m(()=>a.error||a.disabled?void 0:a.trackFillColor??a.color),F=ie(!1),C=ie(0),L=E(),V=E();function A(r){var d;const g=a.direction==="vertical",Se=g?"top":"left",we=g?"height":"width",Ae=g?"clientY":"clientX",{[Se]:ge,[we]:t}=(d=L.value)==null?void 0:d.$el.getBoundingClientRect(),v=Ql(r,Ae);let y=Math.min(Math.max((v-ge-C.value)/t,0),1)||0;return(g?D.value:D.value!==u.value)&&(y=1-y),B(_.value+y*(f.value-_.value))}const U=r=>{h({value:A(r)}),F.value=!1,C.value=0},W=r=>{V.value=k(r),V.value&&(V.value.focus(),F.value=!0,V.value.contains(r.target)?C.value=Gl(r,V.value,a.direction):(C.value=0,p({value:A(r)})),o({value:A(r)}))},H={passive:!0,capture:!0};function Y(r){p({value:A(r)})}function J(r){r.stopPropagation(),r.preventDefault(),U(r),window.removeEventListener("mousemove",Y,H),window.removeEventListener("mouseup",J)}function G(r){var g;U(r),window.removeEventListener("touchmove",Y,H),(g=r.target)==null||g.removeEventListener("touchend",G)}function le(r){var g;W(r),window.addEventListener("touchmove",Y,H),(g=r.target)==null||g.addEventListener("touchend",G,{passive:!1})}function R(r){r.preventDefault(),W(r),window.addEventListener("mousemove",Y,H),window.addEventListener("mouseup",J,{passive:!1})}const T=r=>{const g=(r-_.value)/(f.value-_.value)*100;return $e(isNaN(g)?0:g,0,100)},Q=q(a,"showTicks"),te=m(()=>Q.value?a.ticks?Array.isArray(a.ticks)?a.ticks.map(r=>({value:r,position:T(r),label:r.toString()})):Object.keys(a.ticks).map(r=>({value:parseFloat(r),position:T(parseFloat(r)),label:a.ticks[r]})):z.value!==1/0?cl(z.value+1).map(r=>{const g=_.value+r*b.value;return{value:g,position:T(g)}}):[]:[]),re=m(()=>te.value.some(r=>{let{label:g}=r;return!!g})),de={activeThumbRef:V,color:q(a,"color"),decimals:N,disabled:M,direction:q(a,"direction"),elevation:q(a,"elevation"),hasLabels:re,isReversed:w,indexFromEnd:D,min:_,max:f,mousePressed:F,numTicks:z,onSliderMousedown:R,onSliderTouchstart:le,parsedTicks:te,parseMouseMove:A,position:T,readonly:q(a,"readonly"),rounded:q(a,"rounded"),roundValue:B,showTicks:Q,startOffset:C,step:b,thumbSize:K,thumbColor:i,thumbLabel:q(a,"thumbLabel"),ticks:q(a,"ticks"),tickSize:j,trackColor:n,trackContainerRef:L,trackFillColor:s,trackSize:$,vertical:P};return vl(Me,de),de},at=Ve({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...Ze()},"VSliderThumb"),nt=ye()({name:"VSliderThumb",directives:{Ripple:ml},props:at(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:c,emit:o}=a;const p=je(Me),{isRtl:h,rtlClasses:k}=_e();if(!p)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:u,step:w,disabled:P,thumbSize:D,thumbLabel:_,direction:f,isReversed:b,vertical:N,readonly:B,elevation:K,mousePressed:j,decimals:$,indexFromEnd:z}=p,M=m(()=>P.value?void 0:K.value),{elevationClasses:i}=fl(M),{textColorClasses:n,textColorStyles:s}=Ke(u),{pageup:F,pagedown:C,end:L,home:V,left:A,right:U,down:W,up:H}=hl,Y=[F,C,L,V,A,U,W,H],J=m(()=>w.value?[1,2,3]:[1,5,10]);function G(R,T){if(!Y.includes(R.key))return;R.preventDefault();const Q=w.value||.1,te=(e.max-e.min)/Q;if([A,U,W,H].includes(R.key)){const de=(N.value?[h.value?A:U,b.value?W:H]:z.value!==h.value?[A,H]:[U,H]).includes(R.key)?1:-1,r=R.shiftKey?2:R.ctrlKey?1:0;T=T+de*Q*J.value[r]}else if(R.key===V)T=e.min;else if(R.key===L)T=e.max;else{const re=R.key===C?1:-1;T=T-re*Q*(te>100?te/10:10)}return Math.max(e.min,Math.min(e.max,T))}function le(R){const T=G(R,e.modelValue);T!=null&&o("update:modelValue",T)}return ke(()=>{const R=se(z.value?100-e.position:e.position,"%");return l("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,k.value],style:[{"--v-slider-thumb-position":R,"--v-slider-thumb-size":se(D.value)},e.style],role:"slider",tabindex:P.value?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!B.value,"aria-orientation":f.value,onKeydown:B.value?void 0:le},[l("div",{class:["v-slider-thumb__surface",n.value,i.value],style:{...s.value}},null),Re(l("div",{class:["v-slider-thumb__ripple",n.value],style:s.value},null),[[bl("ripple"),e.ripple,null,{circle:!0,center:!0}]]),l(Vl,{origin:"bottom center"},{default:()=>{var T;return[Re(l("div",{class:"v-slider-thumb__label-container"},[l("div",{class:["v-slider-thumb__label"]},[l("div",null,[((T=c["thumb-label"])==null?void 0:T.call(c,{modelValue:e.modelValue}))??e.modelValue.toFixed(w.value?$.value:1)])])]),[[gl,_.value&&e.focused||_.value==="always"]])]}})])}),{}}}),ut=Ve({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Ze()},"VSliderTrack"),ot=ye()({name:"VSliderTrack",props:ut(),emits:{},setup(e,a){let{slots:c}=a;const o=je(Me);if(!o)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:p,parsedTicks:h,rounded:k,showTicks:u,tickSize:w,trackColor:P,trackFillColor:D,trackSize:_,vertical:f,min:b,max:N,indexFromEnd:B}=o,{roundedClasses:K}=pl(k),{backgroundColorClasses:j,backgroundColorStyles:$}=De(D),{backgroundColorClasses:z,backgroundColorStyles:M}=De(P),i=m(()=>`inset-${f.value?"block":"inline"}-${B.value?"end":"start"}`),n=m(()=>f.value?"height":"width"),s=m(()=>({[i.value]:"0%",[n.value]:"100%"})),F=m(()=>e.stop-e.start),C=m(()=>({[i.value]:se(e.start,"%"),[n.value]:se(F.value,"%")})),L=m(()=>u.value?(f.value?h.value.slice().reverse():h.value).map((A,U)=>{var H;const W=A.value!==b.value&&A.value!==N.value?se(A.position,"%"):void 0;return l("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=e.start&&A.position<=e.stop,"v-slider-track__tick--first":A.value===b.value,"v-slider-track__tick--last":A.value===N.value}],style:{[i.value]:W}},[(A.label||c["tick-label"])&&l("div",{class:"v-slider-track__tick-label"},[((H=c["tick-label"])==null?void 0:H.call(c,{tick:A,index:U}))??A.label])])}):[]);return ke(()=>l("div",{class:["v-slider-track",K.value,e.class],style:[{"--v-slider-track-size":se(_.value),"--v-slider-tick-size":se(w.value)},e.style]},[l("div",{class:["v-slider-track__background",z.value,{"v-slider-track__background--opacity":!!p.value||!D.value}],style:{...s.value,...M.value}},null),l("div",{class:["v-slider-track__fill",j.value],style:{...C.value,...$.value}},null),u.value&&l("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":u.value==="always"}]},[L.value])])),{}}}),it=Ve({...Kl(),...et(),...$l(),modelValue:{type:[Number,String],default:0}},"VSlider"),st=ye()({name:"VSlider",props:it(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,a){let{slots:c,emit:o}=a;const p=E(),{rtlClasses:h}=_e(),k=lt(e),u=xe(e,"modelValue",void 0,n=>k.roundValue(n??k.min.value)),{min:w,max:P,mousePressed:D,roundValue:_,onSliderMousedown:f,onSliderTouchstart:b,trackContainerRef:N,position:B,hasLabels:K,readonly:j}=tt({props:e,steps:k,onSliderStart:()=>{o("start",u.value)},onSliderEnd:n=>{let{value:s}=n;const F=_(s);u.value=F,o("end",F)},onSliderMove:n=>{let{value:s}=n;return u.value=_(s)},getActiveThumb:()=>{var n;return(n=p.value)==null?void 0:n.$el}}),{isFocused:$,focus:z,blur:M}=Zl(e),i=m(()=>B(u.value));return ke(()=>{const n=Oe.filterProps(e),s=!!(e.label||c.label||c.prepend);return l(Oe,oe({class:["v-slider",{"v-slider--has-labels":!!c["tick-label"]||K.value,"v-slider--focused":$.value,"v-slider--pressed":D.value,"v-slider--disabled":e.disabled},h.value,e.class],style:e.style},n,{focused:$.value}),{...c,prepend:s?F=>{var C,L;return l(fe,null,[((C=c.label)==null?void 0:C.call(c,F))??(e.label?l(jl,{id:F.id.value,class:"v-slider__label",text:e.label},null):void 0),(L=c.prepend)==null?void 0:L.call(c,F)])}:void 0,default:F=>{let{id:C,messagesId:L}=F;return l("div",{class:"v-slider__container",onMousedown:j.value?void 0:f,onTouchstartPassive:j.value?void 0:b},[l("input",{id:C.value,name:e.name||C.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value},null),l(ot,{ref:N,start:0,stop:i.value},{"tick-label":c["tick-label"]}),l(nt,{ref:p,"aria-describedby":L.value,focused:$.value,min:w.value,max:P.value,modelValue:u.value,"onUpdate:modelValue":V=>u.value=V,position:i.value,elevation:e.elevation,onFocus:z,onBlur:M,ripple:e.ripple},{"thumb-label":c["thumb-label"]})])}})}),{}}}),yt=Cl({__name:"form",props:{item:{type:Object,default:()=>({name:"",weight:1,amount:1,image:null})}},emits:["close-dialog"],async setup(e){let a,c;const o=E(null);E("");const p=E(!1),h=E(null),u=E({...e.item}),w=E(null),P=yl(),D=kl(),_=q(D,"entities");[a,c]=Sl(()=>D.fetch()),await a,c();const f=E("M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z"),b=E(1);m(()=>u.value.weight>=1e3?(u.value.weight/1e3).toFixed(2):u.value.weight.toFixed(2));const N=M=>{switch(f.value=M>=1e3?"M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5M6,11V19H8V16.5L9,17.5V19H11V17L9,15L11,13V11H9V12.5L8,13.5V11H6M15,11C13.89,11 13,11.89 13,13V17C13,18.11 13.89,19 15,19H18V14H16V17H15V13H18V11H15Z":"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z",f.value){case"M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5M6,11V19H8V16.5L9,17.5V19H11V17L9,15L11,13V11H9V12.5L8,13.5V11H6M15,11C13.89,11 13,11.89 13,13V17C13,18.11 13.89,19 15,19H18V14H16V17H15V13H18V11H15Z":b.value=.1;break;case"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z":b.value=1;break}},B=()=>{o.value.click()},K=M=>{const i=M.target.files[0];if(i){const n=new FileReader;n.onload=s=>{h.value=s.target.result},n.readAsDataURL(i)}else h.value=null},j=async()=>{try{if(u.value.category=u.value.category.id,w.value){const M=await We("images",Il(),w.value);u.value.image=M.path}if(u.value.id)await P.update(u.value);else{const M={...u.value};await P.create(M)}ze("/items")}catch(M){console.error("An error occurred while saving the item:",M)}};async function $(){p.value=!0}async function z(){await P.delete(u.value.id),ze("/items")}return ce(()=>u.value.weight,N),wl(()=>{N(u.value.weight)}),(M,i)=>{const n=qe;return Ne(),Ee(Wl,null,{default:x(()=>[l(be,{modelValue:I(u).name,"onUpdate:modelValue":i[0]||(i[0]=s=>I(u).name=s),label:"Name"},null,8,["modelValue"]),l(Ue,{class:Al(I(u).image?"d-none":""),modelValue:I(u).image,"onUpdate:modelValue":i[1]||(i[1]=s=>I(u).image=s),label:"New Image",accept:"image/*","show-size":"","prepend-icon":"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",clearable:"",onChange:K},null,8,["class","modelValue"]),l(Ue,{class:"d-none",ref_key:"fileInput",ref:o,modelValue:I(w),"onUpdate:modelValue":i[2]||(i[2]=s=>Be(w)?w.value=s:null),label:"Change Image",accept:"image/*","show-size":"","prepend-icon":"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",clearable:"",onChange:K},null,8,["modelValue"]),l(Rl,null,{default:x(()=>[I(h)?xl("",!0):(Ne(),Ee(n,{key:0,onClick:B,"image-path":I(u).image},null,8,["image-path"])),l(Hl,{"v-if":I(h),src:I(h),onClick:B},null,8,["v-if","src"])]),_:1}),l(Ce,null,{default:x(()=>[l(ue,null,{default:x(()=>[l(Yl,{modelValue:I(u).category,"onUpdate:modelValue":i[3]||(i[3]=s=>I(u).category=s),items:I(_),label:"Category","item-title":"name","item-value":"id"},{"prepend-inner":x(()=>[l(He,null,{default:x(()=>[ee("M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z")]),_:1})]),_:1},8,["modelValue","items"])]),_:1})]),_:1}),l(Ce,null,{default:x(()=>[l(ue,{cols:"12"},{default:x(()=>[l(be,{"prepend-inner-icon":"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z",modelValue:I(u).weight,"onUpdate:modelValue":i[4]||(i[4]=s=>I(u).weight=s),label:"Weight",type:"number",step:"0.1",min:"0.1"},null,8,["modelValue"])]),_:1})]),_:1}),l(Ce,null,{default:x(()=>[l(ue,{cols:"10"},{default:x(()=>[l(st,{modelValue:I(u).amount,"onUpdate:modelValue":i[5]||(i[5]=s=>I(u).amount=s),label:"Amount",min:"1",max:"50",step:"1"},null,8,["modelValue"])]),_:1}),l(ue,{cols:"2"},{default:x(()=>[_l("span",null,[l(be,{modelValue:I(u).amount,"onUpdate:modelValue":i[6]||(i[6]=s=>I(u).amount=s),"append-inner-icon":"M9,7L11,12L9,17H11L12,14.5L13,17H15L13,12L15,7H13L12,9.5L11,7H9Z"},null,8,["modelValue"])])]),_:1})]),_:1}),l(Ce,{justify:"end"},{default:x(()=>[l(ue,{cols:"auto"},{default:x(()=>[l(me,{onClick:i[7]||(i[7]=s=>$())},{default:x(()=>[ee("Delete")]),_:1})]),_:1}),l(ue,{cols:"auto"},{default:x(()=>[l(me,{onClick:i[8]||(i[8]=s=>M.$router.back())},{default:x(()=>[ee("Cancel")]),_:1})]),_:1}),l(ue,{cols:"auto"},{default:x(()=>[l(me,{onClick:i[9]||(i[9]=s=>j())},{default:x(()=>[ee("Save")]),_:1})]),_:1})]),_:1}),l(Ml,{modelValue:I(p),"onUpdate:modelValue":i[12]||(i[12]=s=>Be(p)?p.value=s:null),"max-width":"290"},{default:x(()=>[l(Fl,null,{default:x(()=>[l(Ll,null,{default:x(()=>[ee("Are you sure you want to delete this item?")]),_:1}),l(Tl,null,{default:x(()=>[l(me,{onClick:i[10]||(i[10]=s=>p.value=!1)},{default:x(()=>[ee("Cancel")]),_:1}),l(me,{onClick:i[11]||(i[11]=s=>z())},{default:x(()=>[ee("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}});export{yt as _}; diff --git a/_nuxt/BryFE1hL.js b/_nuxt/BryFE1hL.js new file mode 100644 index 0000000..aac8960 --- /dev/null +++ b/_nuxt/BryFE1hL.js @@ -0,0 +1 @@ +import{V as n,_ as s}from"./CrOhsFVu.js";import{d as r,v as m,a8 as p,B as a,A as e,y as l,aj as c,af as V,q as _}from"./-VvI6Lr7.js";import{V as d}from"./n5OR3jin.js";import"./CRmmW6t3.js";import"./743RfUEt.js";import"./FoGmEwba.js";import"./CpVlVgCe.js";import"./CXnKksxJ.js";import"./CJ7Tzvjl.js";import"./BFbS1nff.js";const f={class:"ma-4"},L=r({__name:"index",setup(u){return(t,o)=>{const i=s;return m(),p(d,null,{default:a(()=>[e(i,{"entity-type":"inventories"}),e(n,{"model-value":"",position:"bottom",class:"text-end",size:"88"},{default:a(()=>[l("div",f,[e(c,{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",size:"large",color:"primary",elevation:"8",onClick:o[0]||(o[0]=v=>("navigateTo"in t?t.navigateTo:V(_))("/inventories/new"))})])]),_:1})]),_:1})}}});export{L as default}; diff --git a/_nuxt/BwUqDjZt.js b/_nuxt/BwUqDjZt.js new file mode 100644 index 0000000..c4deed7 --- /dev/null +++ b/_nuxt/BwUqDjZt.js @@ -0,0 +1 @@ +import{F as p,G as b,I as v,r as F,L as V,A as y,bi as h}from"./-VvI6Lr7.js";import{d as R,e as P}from"./l9yxdLf0.js";const k=p({...b(),...R()},"VForm"),S=v()({name:"VForm",props:k(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:n,emit:f}=i;const r=P(o),s=F();function l(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),f("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=s.value)==null||m.submit())}),a.preventDefault()}return V(()=>{var t;return y("form",{ref:s,class:["v-form",o.class],style:o.style,novalidate:!0,onReset:l,onSubmit:u},[(t=n.default)==null?void 0:t.call(n,r)])}),h(r,s)}});export{S as V}; diff --git a/_nuxt/BydJhqeL.js b/_nuxt/BydJhqeL.js new file mode 100644 index 0000000..fd6ce65 --- /dev/null +++ b/_nuxt/BydJhqeL.js @@ -0,0 +1 @@ +import{_ as a}from"./blE9-5sg.js";import{am as s,an as i,ao as m,a8 as p,B as _,v as c,A as u,af as f}from"./-VvI6Lr7.js";import{V as l}from"./n5OR3jin.js";import"./DS0W2dGG.js";import"./CJ7Tzvjl.js";import"./FoGmEwba.js";import"./CufEZoaj.js";import"./TjYH8LVs.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";import"./Dfnfu-Af.js";import"./DBf96Ybk.js";import"./BFbS1nff.js";import"./CRmmW6t3.js";import"./BwUqDjZt.js";const j={__name:"new",async setup(v){let t,o;const r=s();[t,o]=i(()=>r.fetch()),await t,o();const e=r.byId(m().params.id);return(y,d)=>{const n=a;return c(),p(l,null,{default:_(()=>[u(n,{inventory:f(e)},null,8,["inventory"])]),_:1})}}};export{j as default}; diff --git a/_nuxt/C7NLEnku.js b/_nuxt/C7NLEnku.js new file mode 100644 index 0000000..93634dc --- /dev/null +++ b/_nuxt/C7NLEnku.js @@ -0,0 +1 @@ +import{d as b,bA as T,ay as $,v as f,a8 as V,af as n,r as k,bO as x,c as A,B as l,A as e,ak as D,aj as p,C as i,aA as I,ag as U,ab as B,aa as F,aB as N,q as g,an as j,ao as O,_ as P}from"./-VvI6Lr7.js";import{V as q}from"./CufEZoaj.js";import{V as v}from"./TjYH8LVs.js";import{V as C,a as s}from"./CRmmW6t3.js";import{V as E}from"./BwUqDjZt.js";import{V as z}from"./n5OR3jin.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";import"./FoGmEwba.js";const G=b({__name:"route-selector",props:{label:{}},setup(c){const r=T(),{entities:u}=$(r);return r.fetch(),(a,d)=>(f(),V(q,{label:a.label,items:n(u),"item-title":"name","item-value":"id",clearable:""},null,8,["label","items"]))}}),H=b({__name:"form",props:{trip:{type:Object,default:()=>({name:"",start:"",end:"",planningRoute:null,recordedRoute:null})}},setup(c){const r=c,u=k(!1),a=k({...r.trip}),d=x(),y=A(()=>new Date(a.value.start){try{if(a.value.id)await d.update(a.value);else{const m={...a.value};await d.create(m)}g("/trips")}catch(m){console.error("An error occurred while saving the item:",m)}};async function _(){u.value=!0}async function S(){await d.delete(a.value.id),g("/items")}return(m,t)=>{const R=G;return f(),V(E,null,{default:l(()=>[e(v,{modelValue:n(a).name,"onUpdate:modelValue":t[0]||(t[0]=o=>n(a).name=o),label:"Name"},null,8,["modelValue"]),e(C,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(v,{modelValue:n(a).start,"onUpdate:modelValue":t[1]||(t[1]=o=>n(a).start=o),label:"Start",type:"datetime-local"},null,8,["modelValue"])]),_:1}),e(s,{cols:"6"},{default:l(()=>[e(v,{modelValue:n(a).end,"onUpdate:modelValue":t[2]||(t[2]=o=>n(a).end=o),label:"End",type:"datetime-local"},null,8,["modelValue"])]),_:1})]),_:1}),e(C,null,{default:l(()=>[e(s,null,{default:l(()=>[e(R,{label:"Planned route",modelValue:n(a).planningRoute,"onUpdate:modelValue":t[3]||(t[3]=o=>n(a).planningRoute=o)},null,8,["modelValue"])]),_:1}),n(y)?(f(),V(s,{key:0},{default:l(()=>[e(R,{label:"Recorded route",modelValue:n(a).recordedRoute,"onUpdate:modelValue":t[4]||(t[4]=o=>n(a).recordedRoute=o)},null,8,["modelValue"])]),_:1})):D("",!0)]),_:1}),e(C,{justify:"end"},{default:l(()=>[e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[5]||(t[5]=o=>_())},{default:l(()=>[i("Delete")]),_:1})]),_:1}),e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[6]||(t[6]=o=>m.$router.back())},{default:l(()=>[i("Cancel")]),_:1})]),_:1}),e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[7]||(t[7]=o=>w())},{default:l(()=>[i("Save")]),_:1})]),_:1})]),_:1}),e(I,{modelValue:n(u),"onUpdate:modelValue":t[10]||(t[10]=o=>U(u)?u.value=o:null),"max-width":"290"},{default:l(()=>[e(B,null,{default:l(()=>[e(F,null,{default:l(()=>[i("Are you sure you want to delete this item?")]),_:1}),e(N,null,{default:l(()=>[e(p,{onClick:t[8]||(t[8]=o=>u.value=!1)},{default:l(()=>[i("Cancel")]),_:1}),e(p,{onClick:t[9]||(t[9]=o=>S())},{default:l(()=>[i("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),J=b({__name:"[id]",async setup(c){let r,u;const a=x();[r,u]=j(()=>a.fetch()),await r,u();const d=a.byId(O().params.id);return(y,w)=>{const _=H;return f(),V(z,null,{default:l(()=>[e(_,{trip:n(d)},null,8,["trip"])]),_:1})}}}),ee=P(J,[["__scopeId","data-v-83349e6f"]]);export{ee as default}; diff --git a/_nuxt/CBLhoS0v.js b/_nuxt/CBLhoS0v.js new file mode 100644 index 0000000..9c78836 --- /dev/null +++ b/_nuxt/CBLhoS0v.js @@ -0,0 +1 @@ +import{F as Q,I as W,aI as w,a$ as X,r as Y,c as p,bN as e1,L as t1,bJ as a1,A as a,a1 as x,ae as F,bg as l1,bl as n1,S as o1,b0 as s1,bB as i1,d as u1,bt as r1,ay as d1,an as C1,v as r,x as c1,a8 as d,B as C,a9 as P,C as _,aa as B,af as n,ak as c,ab as I}from"./-VvI6Lr7.js";import{a as V1,b as m1,V as U}from"./l9yxdLf0.js";import{m as f1,V as Z}from"./VHr5Aleq.js";const v1=Q({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...V1(),...f1()},"VSwitch"),M=W()({name:"VSwitch",inheritAttrs:!1,props:v1(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,m){let{attrs:f,slots:l}=m;const t=w(e,"indeterminate"),o=w(e,"modelValue"),{loaderClasses:H}=X(e),{isFocused:s,focus:i,blur:N}=m1(e),y=Y(),T=p(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),z=e1(),D=p(()=>e.id||`switch-${z}`);function R(){t.value&&(t.value=!1)}function G(v){var L,g;v.stopPropagation(),v.preventDefault(),(g=(L=y.value)==null?void 0:L.input)==null||g.click()}return t1(()=>{const[v,L]=a1(f),g=U.filterProps(e),O=Z.filterProps(e);return a(U,x({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":t.value},H.value,e.class]},v,g,{modelValue:o.value,"onUpdate:modelValue":A=>o.value=A,id:D.value,focused:s.value,style:e.style}),{...l,default:A=>{let{id:$,messagesId:E,isDisabled:J,isReadonly:j,isValid:S}=A;const h={model:o,isValid:S};return a(Z,x({ref:y},O,{modelValue:o.value,"onUpdate:modelValue":[V=>o.value=V,R],id:$.value,"aria-describedby":E.value,type:"checkbox","aria-checked":t.value?"mixed":void 0,disabled:J.value,readonly:j.value,onFocus:i,onBlur:N},L),{...l,default:V=>{let{backgroundColorClasses:k,backgroundColorStyles:u}=V;return a("div",{class:["v-switch__track",...k.value],style:u.value,onClick:G},[l["track-true"]&&a("div",{key:"prepend",class:"v-switch__track-true"},[l["track-true"](h)]),l["track-false"]&&a("div",{key:"append",class:"v-switch__track-false"},[l["track-false"](h)])])},input:V=>{let{inputNode:k,icon:u,backgroundColorClasses:q,backgroundColorStyles:K}=V;return a(F,null,[k,a("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":u||e.loading},e.inset?void 0:q.value],style:e.inset?void 0:K.value},[l.thumb?a(l1,{defaults:{VIcon:{icon:u,size:"x-small"}}},{default:()=>[l.thumb({...h,icon:u})]}):a(n1,null,{default:()=>[e.loading?a(s1,{name:"v-switch",active:!0,color:S.value===!1?void 0:T.value},{default:b=>l.loader?l.loader(b):a(i1,{active:b.isActive,color:b.color,indeterminate:!0,size:"16",width:"2"},null)}):u&&a(o1,{key:String(u),icon:u,size:"x-small"},null)]})])])}})}})}),{}}}),A1=u1({__name:"AppSettings",props:{showSection:{type:String,default:"all"}},async setup(e){let m,f;const l=r1(),{entities:t}=d1(l);[m,f]=C1(()=>l.fetch()),await m,f();const o=()=>{l.update(t.value)};return(H,s)=>(r(),c1(F,null,[e.showSection==="all"||e.showSection==="general"?(r(),d(I,{key:0,class:"mb-3"},{default:C(()=>[a(P,null,{default:C(()=>[_("General")]),_:1}),a(B,null,{default:C(()=>[n(t)?(r(),d(M,{key:0,modelValue:n(t).lightMode,"onUpdate:modelValue":s[0]||(s[0]=i=>n(t).lightMode=i),label:"Light mode",inset:"","false-icon":"M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z","true-icon":"M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",onChange:o},null,8,["modelValue"])):c("",!0),n(t)?(r(),d(M,{key:1,modelValue:n(t).metricOrImperial,"onUpdate:modelValue":s[1]||(s[1]=i=>n(t).metricOrImperial=i),label:"Metric or imperial units",inset:"","false-icon":"M17.9,17.39C17.64,16.59 16.89,16 16,16H15V13A1,1 0 0,0 14,12H8V10H10A1,1 0 0,0 11,9V7H13A2,2 0 0,0 15,5V4.59C17.93,5.77 20,8.64 20,12C20,14.08 19.2,15.97 17.9,17.39M11,19.93C7.05,19.44 4,16.08 4,12C4,11.38 4.08,10.78 4.21,10.21L9,15V16A2,2 0 0,0 11,18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","true-icon":"M11.36,2C11.15,2 10.87,2.12 10.57,2.32C10,2.7 8.85,3.9 8.4,5.1C8.06,6 8.05,6.82 8.19,7.43C7.63,7.53 7.22,7.71 7.06,7.78C6.55,8 5.47,8.96 5.37,10.45C5.34,10.97 5.41,11.5 5.57,12C4.91,12.19 4.53,12.43 4.5,12.44C4.18,12.56 3.65,12.93 3.5,13.13C3.15,13.53 2.92,14 2.79,14.5C2.5,15.59 2.6,16.83 3.13,17.83C3.42,18.39 3.82,19 4.26,19.43C5.7,20.91 8.18,21.47 10.14,21.79C12.53,22.19 15.03,22.05 17.26,21.13C20.61,19.74 21.5,17.5 21.64,16.89C21.93,15.5 21.57,14.19 21.42,13.87C21.2,13.41 20.84,12.94 20.25,12.64C19.85,12.39 19.5,12.26 19.24,12.2C19.5,11.25 19.13,10.5 18.62,9.94C17.85,9.12 17.06,9 17.06,9V9C17.32,8.5 17.42,7.9 17.28,7.32C17.12,6.61 16.73,6.16 16.22,5.86C15.7,5.55 15.06,5.4 14.4,5.28C14.08,5.22 12.75,5.03 12.2,4.27C11.75,3.65 11.74,2.53 11.62,2.2C11.57,2.07 11.5,2 11.36,2M16,9.61C16.07,9.61 16.13,9.62 16.19,9.62C17.62,9.78 18.64,11.16 18.47,12.69C18.3,14.22 17,15.34 15.57,15.18V15.18C14.14,15 13.12,13.65 13.29,12.11C13.45,10.66 14.64,9.56 16,9.61M8.62,9.61C9.95,9.65 11.06,10.78 11.16,12.21C11.28,13.75 10.21,15.08 8.78,15.19H8.77C7.34,15.3 6.08,14.14 5.96,12.6V12.6C5.85,11.06 6.92,9.73 8.35,9.62V9.62C8.44,9.61 8.53,9.61 8.62,9.61M8.64,11.31C8.6,11.31 8.57,11.31 8.53,11.32C7.97,11.39 7.57,11.9 7.64,12.45C7.7,13 8.21,13.39 8.77,13.32C9.33,13.25 9.73,12.74 9.67,12.19C9.61,11.67 9.15,11.3 8.64,11.31M15.94,11.33C15.42,11.35 15,11.75 14.96,12.28C14.92,12.83 15.35,13.31 15.91,13.34C16.5,13.38 16.96,12.95 17,12.4C17.04,11.84 16.61,11.36 16.05,11.33C16,11.33 16,11.33 15.94,11.33M8.71,16.15C9,16.14 9.26,16.23 9.5,16.28C10.68,16.5 11.7,16.53 12.19,16.53C12.68,16.53 13.69,16.5 14.86,16.28C15.27,16.2 15.74,16.03 16.11,16.28C16.59,16.6 16.24,17.75 15.5,18.53C15.04,19 13.97,19.91 12.19,19.91C10.41,19.91 9.33,19 8.88,18.53C8.14,17.75 7.79,16.6 8.26,16.28C8.4,16.19 8.55,16.15 8.71,16.15Z",onChange:o},null,8,["modelValue"])):c("",!0)]),_:1})]),_:1})):c("",!0),e.showSection==="all"||e.showSection==="privacy"?(r(),d(I,{key:1,class:"mb-3"},{default:C(()=>[a(P,null,{default:C(()=>[_("Privacy")]),_:1}),a(B,null,{default:C(()=>[n(t)?(r(),d(M,{key:0,modelValue:n(t).externalServices,"onUpdate:modelValue":s[2]||(s[2]=i=>n(t).externalServices=i),label:"Allow external services",inset:"","false-icon":"M12,12H19C18.47,16.11 15.72,19.78 12,20.92V12H5V6.3L12,3.19M12,1L3,5V11C3,16.55 6.84,21.73 12,23C17.16,21.73 21,16.55 21,11V5L12,1Z","true-icon":"M12,12H19C18.47,16.11 15.72,19.78 12,20.92V12H5V6.3L12,3.19M12,1L3,5V11C3,16.55 6.84,21.73 12,23C17.16,21.73 21,16.55 21,11V5L12,1Z",onChange:o},null,8,["modelValue"])):c("",!0),n(t)?(r(),d(M,{key:1,modelValue:n(t).gps,"onUpdate:modelValue":s[3]||(s[3]=i=>n(t).gps=i),label:"Allow GPS positioning",inset:"","false-icon":"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M3.05,13H1V11H3.05C3.5,6.83 6.83,3.5 11,3.05V1H13V3.05C17.17,3.5 20.5,6.83 20.95,11H23V13H20.95C20.5,17.17 17.17,20.5 13,20.95V23H11V20.95C6.83,20.5 3.5,17.17 3.05,13M12,5A7,7 0 0,0 5,12A7,7 0 0,0 12,19A7,7 0 0,0 19,12A7,7 0 0,0 12,5Z","true-icon":"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M3.05,13H1V11H3.05C3.5,6.83 6.83,3.5 11,3.05V1H13V3.05C17.17,3.5 20.5,6.83 20.95,11H23V13H20.95C20.5,17.17 17.17,20.5 13,20.95V23H11V20.95C6.83,20.5 3.5,17.17 3.05,13M12,5A7,7 0 0,0 5,12A7,7 0 0,0 12,19A7,7 0 0,0 19,12A7,7 0 0,0 12,5Z",onChange:o},null,8,["modelValue"])):c("",!0)]),_:1})]),_:1})):c("",!0)],64))}});export{A1 as _}; diff --git a/_nuxt/CCOuFFzJ.js b/_nuxt/CCOuFFzJ.js new file mode 100644 index 0000000..ea09529 --- /dev/null +++ b/_nuxt/CCOuFFzJ.js @@ -0,0 +1,1012 @@ +import{_ as It}from"./BHGrsRTQ.js";import{d as Bt,i as Vt,v as Ot,a8 as Dt,B as dt,A as ht,_ as Ft}from"./-VvI6Lr7.js";import{V as jt}from"./n5OR3jin.js";import"./CBLhoS0v.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";function h(r,t,e,i){var s=arguments.length,o=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,t,e,i);else for(var c=r.length-1;c>=0;c--)(n=r[c])&&(o=(s<3?n(o):s>3?n(t,e,o):n(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const F=window,ot=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),pt=new WeakMap;let kt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==at)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ot&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=pt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&pt.set(e,t))}return t}toString(){return this.cssText}};const v=r=>new kt(typeof r=="string"?r:r+"",void 0,at),A=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new kt(e,r,at)},zt=(r,t)=>{ot?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=F.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},ut=ot?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(r):r;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Y;const j=window,mt=j.trustedTypes,Jt=mt?mt.emptyScript:"",ft=j.reactiveElementPolyfillSupport,st={toAttribute(r,t){switch(t){case Boolean:r=r?Jt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},St=(r,t)=>t!==r&&(t==t||r==r),K={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:St},rt="finalized";let L=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=K){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||K}static finalize(){if(this.hasOwnProperty(rt))return!1;this[rt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(ut(s))}else t!==void 0&&e.push(ut(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return zt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=K){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:st).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:st;this._$El=o,this[o]=c.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||St)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};L[rt]=!0,L.elementProperties=new Map,L.elementStyles=[],L.shadowRootOptions={mode:"open"},ft==null||ft({ReactiveElement:L}),((Y=j.reactiveElementVersions)!==null&&Y!==void 0?Y:j.reactiveElementVersions=[]).push("1.6.3");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Q;const z=window,P=z.trustedTypes,gt=P?P.createPolicy("lit-html",{createHTML:r=>r}):void 0,nt="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,Nt="?"+E,Wt=`<${Nt}>`,S=document,R=()=>S.createComment(""),I=r=>r===null||typeof r!="object"&&typeof r!="function",Lt=Array.isArray,qt=r=>Lt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",X=`[ +\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,xt=/>/g,C=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,bt=/"/g,Pt=/^(?:script|style|textarea|title)$/i,Gt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),l=Gt(1),U=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),yt=new WeakMap,k=S.createTreeWalker(S,129,null,!1);function Ut(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}const Yt=(r,t)=>{const e=r.length-1,i=[];let s,o=t===2?"":"",n=T;for(let c=0;c"?(n=s??T,m=-1):u[1]===void 0?m=-2:(m=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?bt:$t):n===bt||n===$t?n=C:n===vt||n===xt?n=T:(n=C,s=void 0);const y=n===C&&r[c+1].startsWith("/>")?" ":"";o+=n===T?a+Wt:m>=0?(i.push(d),a.slice(0,m)+nt+a.slice(m)+E+y):a+E+(m===-2?(i.push(void 0),c):y)}return[Ut(r,o+(r[e]||"")+(t===2?"":"")),i]};class B{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const c=t.length-1,a=this.parts,[d,u]=Yt(t,e);if(this.el=B.createElement(d,i),k.currentNode=this.el.content,e===2){const m=this.el.content,g=m.firstChild;g.remove(),m.append(...g.childNodes)}for(;(s=k.nextNode())!==null&&a.length0){s.textContent=P?P.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=M(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const c=t;let a,d;for(t=o[0],a=0;a{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=o._$litPart$;if(n===void 0){const c=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new V(t.insertBefore(R(),c),c,void 0,e??{})}return n._$AI(r),n};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var tt,et;let x=class extends L{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=se(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}};x.finalized=!0,x._$litElement$=!0,(tt=globalThis.litElementHydrateSupport)===null||tt===void 0||tt.call(globalThis,{LitElement:x});const wt=globalThis.litElementPolyfillSupport;wt==null||wt({LitElement:x});((et=globalThis.litElementVersions)!==null&&et!==void 0?et:globalThis.litElementVersions=[]).push("3.3.3");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const re=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},ne=(r,t,e)=>{t.constructor.createProperty(e,r)};function p(r){return(t,e)=>e!==void 0?ne(r,t,e):re(r,t)}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var it;((it=window.HTMLSlotElement)===null||it===void 0?void 0:it.prototype.assignedElements)!=null;function Mt(r,t,e){const i=Array.from(r);let s;if(t==="")return s=i.filter(n=>n.kind==="file"),e?s:[s[0]];const o=t.toLowerCase().split(",").map(n=>n.split("/").map(c=>c.trim())).filter(n=>n.length===2);return s=s=i.filter(n=>{if(n.kind!=="file")return!1;const[c,a]=n.type.toLowerCase().split("/").map(d=>d.trim());for(const[d,u]of o)if(c===d&&(u==="*"||a===u))return!0;return!1}),e===!1&&(s=[s[0]]),s}function At(r,t,e){const i=[];return Mt(r.items,t,e).forEach(s=>{const o=s.getAsFile();o!==null&&i.push(o)}),i}class J extends Event{constructor(t,e){var i,s;super(t,e),(i=this)instanceof(s=J)||Object.setPrototypeOf(i,s.prototype),this._files=e.files,this._action=e.action}get action(){return this._action}get files(){return this._files}}class oe extends HTMLElement{constructor(){super(),this._dragEnterCount=0,this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this._onDrop=this._onDrop.bind(this),this._onPaste=this._onPaste.bind(this),this.addEventListener("dragover",t=>t.preventDefault()),this.addEventListener("drop",this._onDrop),this.addEventListener("dragenter",this._onDragEnter),this.addEventListener("dragend",()=>this._reset()),this.addEventListener("dragleave",this._onDragLeave),this.addEventListener("paste",this._onPaste)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get multiple(){return this.getAttribute("multiple")}set multiple(t){this.setAttribute("multiple",t||"")}_onDragEnter(t){if(this._dragEnterCount+=1,this._dragEnterCount>1)return;if(t.dataTransfer===null)return void this.classList.add("drop-invalid");const e=Mt(t.dataTransfer.items,this.accept,this.multiple!==null);this.classList.add(!t.dataTransfer||!t.dataTransfer.items.length||e[0]!==void 0?"drop-valid":"drop-invalid")}_onDragLeave(){this._dragEnterCount-=1,this._dragEnterCount===0&&this._reset()}_onDrop(t){if(t.preventDefault(),t.dataTransfer===null)return;this._reset();const e=At(t.dataTransfer,this.accept,this.multiple!==null);e!==void 0&&this.dispatchEvent(new J("filedrop",{action:"drop",files:e}))}_onPaste(t){if(!t.clipboardData)return;const e=At(t.clipboardData,this.accept,this.multiple!==void 0);e!==void 0&&this.dispatchEvent(new J("filedrop",{action:"paste",files:e}))}_reset(){this._dragEnterCount=0,this.classList.remove("drop-valid"),this.classList.remove("drop-invalid")}}customElements.define("file-drop",oe);const ae=l` + + + + +`,le=l` + + + + +`,ce=l` + + + + + + + + + + + + + +`;class lt extends x{constructor(){super(...arguments),this.darkMode=!1}connectedCallback(){super.connectedCallback();const t=this.getRootNode().host.parentNode.getRootNode().host.classList,e=t.contains("prefer-dark"),i=t.contains("prefer-light");this.darkMode=e||!i&&window.matchMedia("(prefers-color-scheme: dark)").matches}render(){return l` ${this.darkMode?le:ae}`}}lt.styles=A` + a { + width: 100px; + height: 27px; + border-radius: 4px; + overflow: hidden; + display: block; + transition: all 0.15s ease-in-out; + } + + a:hover { + filter: brightness(80%); + } + `;h([p({type:Boolean})],lt.prototype,"darkMode",void 0);window.customElements.define("plantnet-brand",lt);const Et=["image/jpg","image/jpeg","image/png"];class q extends x{constructor(){super(...arguments),this.inlineMode=!1,this.plantnetBrand=!1}__onFileDrop(t){t.files.length&&this._dispatchFiles(t.files)}__onFileUpload(t){if(t.target instanceof HTMLInputElement&&t.target.files){const e=Array.from(t.target.files).filter(i=>Et.includes(i.type));e.length&&this._dispatchFiles(e)}}_dispatchFiles(t){const e={files:t},i=new CustomEvent("imagepick",{detail:e,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(i)}render(){const t=`${Et.join(", ")}, .png, .jpg, .jpeg, .JPG, .JPEG`,e=this.inlineMode?"inline":"",i=this.inlineMode?l` + + `:l`Choose an image or drag it here.`;return l` + + + + + ${this.plantnetBrand?l``:""} + `}}q.styles=A` + file-drop label { + display: block; + padding: 25px; + border-radius: 4px; + outline: 2px dashed var(--ai-taxonomist-outline); + outline-offset: -2px; + transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + background-color: var(--ai-taxonomist-background); + } + + file-drop span { + margin-left: 4px; + } + file-drop.inline label { + width: 70px; + height: 70px; + } + + file-drop.drop-valid label, + label:hover { + outline-offset: -15px; + background-color: var(--ai-taxonomist-background-hover); + } + + file-drop.drop-invalid label { + background-color: red; + } + + plantnet-brand { + margin-top: 6px; + display: flex; + justify-content: flex-end; + } + `;h([p({type:Boolean})],q.prototype,"inlineMode",void 0);h([p({type:Boolean})],q.prototype,"plantnetBrand",void 0);window.customElements.define("image-picker",q);class G extends x{constructor(){super(...arguments),this.images=[],this.canAddImages=!0}__onImagePick(t){const{files:e}=t.detail,i={files:e},s=new CustomEvent("addimage",{detail:i,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(s)}__onImageRemove(t){return()=>{const i={index:this.images.findIndex(o=>o.name===t.name)},s=new CustomEvent("removeimage",{detail:i,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(s)}}render(){const t=this.canAddImages?l` `:null;return l` +
+
+

Original image(s)

+
+ ${this.images.map(e=>l` +
+ + + + +
+ `)} + ${t} +
+
+ `}}G.styles=A` + .container { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + } + + .col { + flex: 1 0 0; + max-width: 100%; + box-sizing: border-box; + flex-basis: 0; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + + .blankSpaceLeft { + flex-basis: 16.66666667%; + max-width: 16.66666667%; + } + + p { + padding: 0.2rem 1rem 0.2rem 0.2rem; + } + + .images { + display: flex; + flex-wrap: wrap; + flex: 1; + } + + .imgContainer { + width: 120px; + height: 120px; + position: relative; + border-radius: 4px; + overflow: hidden; + margin-right: 6px; + margin-bottom: 6px; + z-index: 10; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + transform-origin: top right; + } + .imgContainer:hover { + cursor: pointer; + transform: scale(3); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); + z-index: 11; + } + .imgContainer img { + object-position: center; + object-fit: cover; + height: 120px; + width: 120px; + } + .imgRemove { + background: transparent; + position: absolute; + top: 0; + right: 0; + border: none; + -webkit-appearance: none; + padding: 0; + cursor: pointer; + } + .imgRemove svg { + filter: drop-shadow(2px 2px 3px rgba(83, 85, 89, 0.7)); + transition: all 0.15s ease-in-out; + } + .imgRemove:hover svg { + filter: drop-shadow(2px 2px 3px rgba(83, 85, 89, 0.7)) brightness(80%); + } + + @media only screen and (max-width: 48em) { + p { + flex-basis: 100%; + max-width: 100%; + } + + .blankSpaceLeft { + flex-basis: 0; + max-width: 0; + } + } + `;h([p({attribute:!1})],G.prototype,"images",void 0);h([p({type:Boolean})],G.prototype,"canAddImages",void 0);window.customElements.define("image-selected",G);const Ht=(r,t=0)=>{const e=10**t;return Math.round(r*e)/e};class Tt extends x{render(){return l`
+
+
+
+
+
`}}Tt.styles=A` + :host { + } + .loader { + display: inline-block; + position: relative; + width: 80px; + height: 80px; + animation: fadeIn 2s; + } + .loader div { + position: absolute; + top: 33px; + width: 13px; + height: 13px; + border-radius: 50%; + background: var(--ai-taxonomist-accent-color); + animation-timing-function: cubic-bezier(0, 1, 1, 0); + } + .loader div:nth-child(1) { + left: 8px; + animation: loader1 0.6s infinite; + } + .loader div:nth-child(2) { + left: 8px; + animation: loader2 0.6s infinite; + } + .loader div:nth-child(3) { + left: 32px; + animation: loader2 0.6s infinite; + } + .loader div:nth-child(4) { + left: 56px; + animation: loader3 0.6s infinite; + } + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + @keyframes loader1 { + 0% { + transform: scale(0); + opacity: 0; + } + 100% { + transform: scale(1); + opacity: 1; + } + } + @keyframes loader3 { + 0% { + transform: scale(1); + opacity: 1; + } + 100% { + transform: scale(0); + opacity: 0; + } + } + @keyframes loader2 { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(24px, 0); + } + } + `;window.customElements.define("ai-loader",Tt);const de=r=>r.split("/")[2].replace("www.","");class H extends x{constructor(){super(...arguments),this.results={results:[]},this.error=null,this.loading=!1,this.plantnetBrand=!1}onAttachmentClick(t){return e=>{e.preventDefault();const i=t;this.dispatchEvent(new CustomEvent("aiTaxonomistAttachmentsClick",{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}}render(){const t=document.getElementById("aitaxonomist-attachments-template"),e=this.loading?l` `:null,i=this.error?l`

${this.error}

`:null,s=8,o=this.results.results.length>s?l`

${this.results.results.length-s} more results not displayed

`:null;return l` +
+
+

Results

+ ${this.plantnetBrand?l` `:""} +
+ ${e} ${i} ${this.results.overallScore?l`

${this.results.overallScore}

`:""} +
    + ${this.results.results.slice(0,s).map(n=>l` +
  • +
    +
    ${Ht(n.score*100)}%
    +
    +
    + ${n.taxonName?l`

    + ${n.formatTaxonName?n.taxonName:l` ${n.taxonName}`} ${n.author} +

    `:""} +

    ${n.commonNames[0]}

    + ${n.additionalText?l`

    ${n.additionalText}

    `:""} + ${t?l`
    + ${t.content.cloneNode(!0)} +
    `:""} +
    +
    + ${n.family?l`${n.family}`:""} + ${n.gbifUrl?l`${ce} + + + + `:null} + ${n.url?l`${de(n.url)} + + + `:null} +
    +
    + ${n.images.map(c=>l` + + ${c.alt} + `)} +
    +
  • + `)} +
+ ${o} +
+ `}}H.styles=A` + .container { + display: flex; + flex-direction: column; + animation: fadeIn 0.5s ease-in-out; + } + + .separatorContainer { + display: flex; + align-items: center; + } + + plantnet-brand { + margin-top: -4px; + } + + .title { + flex: 1; + font-weight: normal; + display: block; + overflow: hidden; + white-space: nowrap; + margin-top: 12px; + } + + .title > span { + position: relative; + display: inline-block; + margin-left: calc(16.6667% + 0.2rem); + } + + .title > span:before, + .title > span:after { + content: ''; + position: absolute; + top: 50%; + width: 9999px; + height: 1.5px; + background: var(--ai-taxonomist-separator-border-color); + } + + .title > span:before { + right: 100%; + margin-right: 10px; + } + + .title > span:after { + left: 100%; + margin-left: 10px; + } + + ai-loader { + margin-left: calc(16.6667%); + } + + ul { + list-style: none; + padding: 0; + margin: 0; + flex: 1; + display: flex; + flex-direction: column; + } + + .result { + box-sizing: border-box; + display: flex; + flex: 1 1 auto; + flex-direction: row; + flex-wrap: wrap; + margin-right: -0.5rem; + margin-left: -0.5rem; + opacity: 0; + transform: translateY(-20px); + animation: animateIn 0.3s forwards; + animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); + transition: border-color 0.3s; + border-radius: 4px; + border-left: 5px solid transparent; + } + + .result:hover { + border-color: var(--ai-taxonomist-accent-color); + z-index: 10; + } + + .result:nth-child(1) { + animation-delay: 0.05s; + } + .result:nth-child(2) { + animation-delay: 0.1s; + } + .result:nth-child(3) { + animation-delay: 0.15s; + } + .result:nth-child(4) { + animation-delay: 0.2s; + } + .result:nth-child(5) { + animation-delay: 0.25s; + } + .result:nth-child(6) { + animation-delay: 0.3s; + } + .result:nth-child(7) { + animation-delay: 0.35s; + } + .result:nth-child(8) { + animation-delay: 0.4s; + } + .result:nth-child(9) { + animation-delay: 0.45s; + } + + .col { + flex: 1 0 0; + max-width: 100%; + box-sizing: border-box; + flex-basis: 0; + } + + .col-text { + padding-top: 1.6rem; + } + + .score { + padding-right: 0.5rem; + padding-left: 0.2rem; + flex-basis: 16.66666667%; + max-width: 16.66666667%; + margin-top: 5px; + } + + .score div { + border-radius: 30px; + border: 1.5px solid var(--ai-taxonomist-separator-border-color); + padding: 0.5rem; + text-align: center; + max-width: 4rem; + } + + .species { + flex-basis: 25%; + max-width: 25%; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + .species p { + margin: 0; + } + + .speciesName { + color: var(--ai-taxonomist-accent-color); + font-style: italic; + } + .speciesName span { + font-style: normal; + } + + .family { + flex-basis: 16.66666667%; + max-width: 16.66666667%; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + + .family span.familyName { + text-align: left; + font-style: italic; + background-color: var(--ai-taxonomist-separator-border-color); + border-radius: 4px; + padding: 0.2rem 0.35rem; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + display: block; + } + + .gbif, + .url { + display: flex; + align-items: center; + width: 50px; + border-radius: 4px; + padding: 0 0.35rem; + margin-top: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + gap: 2px; + transition: all 0.15s ease-in-out; + text-decoration: none; + } + + .url { + width: 100%; + } + + .url span { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + color: var(--ai-taxonomist-accent-color); + } + + .gbif:hover, + .url:hover { + filter: brightness(80%); + } + + .gbif:hover { + filter: brightness(80%); + } + + .imgContainer { + flex-basis: 41.66666667%; + max-width: 41.66666667%; + padding-left: 1.2rem; + display: inline-flex; + justify-content: flex-start; + gap: 6px; + margin-bottom: 6px; + } + + .imgLink { + display: flex; + z-index: 9; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + transform-origin: center; + border-radius: 4px; + overflow: hidden; + height: 100px; + width: 100px; + } + .imgLink:hover { + cursor: pointer; + transform: scale(3); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); + z-index: 10; + } + + .imgContainer img { + object-position: center; + object-fit: cover; + aspect-ratio: 1; + background: var(--ai-taxonomist-background); + color: transparent; + } + + @media only screen and (max-width: 48em) { + .col-text { + padding-top: 0; + } + + .score { + flex-basis: 18%; + max-width: 18%; + } + + .species { + flex-basis: 52%; + max-width: 52%; + } + + .family { + flex-basis: 30%; + max-width: 30%; + text-align: end; + } + .family span { + display: inline-block; + } + .family .gbif { + margin-left: auto; + } + + .imgContainer { + flex-basis: 100%; + max-width: 100%; + justify-content: flex-start; + margin-top: 12px; + margin-bottom: 24px; + } + } + + @media only screen and (max-width: 38em) { + .score { + flex-basis: 25%; + max-width: 25%; + } + + .species { + flex-basis: 75%; + max-width: 75%; + } + .family { + flex-basis: 100%; + max-width: 100%; + text-align: start; + margin-left: 25%; + margin-top: 12px; + } + .family .gbif { + margin-left: 0; + } + } + + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + + @keyframes animateIn { + from { + opacity: 0; + transform: translateY(-20px); + } + to { + opacity: 1; + transform: translateY(0); + } + } + `;h([p({attribute:!1})],H.prototype,"results",void 0);h([p({type:Boolean})],H.prototype,"error",void 0);h([p({type:Boolean})],H.prototype,"loading",void 0);h([p({type:Boolean})],H.prototype,"plantnetBrand",void 0);window.customElements.define("taxon-results",H);class Zt extends x{__press(t){t.preventDefault(),this.dispatchEvent(new CustomEvent("press",t))}render(){return l` + + `}}Zt.styles=A` + :host { + } + + button { + display: flex; + align-items: center; + appearance: none; + border: none; + border-radius: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 0.5rem 0.7rem; + font-size: 1.1rem; + cursor: pointer; + color: inherit; + transition: all 0.15s ease-in-out; + margin-top: 2rem; + margin-left: calc(16.6667% + 0.2rem); + animation: fadeIn 0.5s; + } + + button:hover { + filter: brightness(80%); + } + + button svg { + fill: var(--ai-taxonomist-text-color); + margin-right: 0.2rem; + } + + @media only screen and (max-width: 48em) { + button { + margin-left: 0; + } + } + + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + `;window.customElements.define("ai-button-reset",Zt);const he=async r=>{const t=await fetch(`${r}/taxa`);return t.status===200?{species:(await t.json()).sort((i,s)=>i.name.localeCompare(s.name)),error:null}:{species:[],error:`Failed to load species list: ${t.statusText}`}};class N extends x{constructor(){super(...arguments),this.apiUrl=null,this.species=[],this.displayedSpecies=[],this.filter=null,this.error=null}connectedCallback(){super.connectedCallback(),(async()=>{if(this.apiUrl){const{species:t,error:e}=await he(this.apiUrl);this.displayedSpecies=t,this.species=t,this.error=e}})()}__onSearch(t){var e,i;const s=["name","family","authorship","genus","vernacularName"];if(this.filter=(((e=t==null?void 0:t.currentTarget)===null||e===void 0?void 0:e.value)||"").trim(),!((i=this.filter)===null||i===void 0)&&i.length){const o=this.filter.toLowerCase();this.displayedSpecies=this.species.filter(n=>{for(const c of s)if(n[c].trim().toLowerCase().includes(o))return!0;return!1})}}render(){return this.error?l`

${this.error||"Unknown error"}

`:!this.displayedSpecies.length&&!this.filter?l` `:l`

+ ${this.species.length} species${this.species.length!==this.displayedSpecies.length?l` (${this.displayedSpecies.length} displayed)`:l`.`} +

+ + `}}N.styles=A` + ai-loader { + display: flex; + justify-content: center; + } + + input { + border: none; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 10px 12px; + margin: 12px 0; + color: var(--ai-taxonomist-text-color); + width: 100%; + box-sizing: border-box; + border-radius: 4px; + } + + ul { + list-style: none; + padding: 0; + margin: 0; + flex: 1; + display: flex; + flex-direction: column; + } + + a { + margin-top: 12px; + color: var(--ai-taxonomist-accent-color); + margin: 12px 0; + display: block; + border-left: 0 solid transparent; + text-decoration: none; + transition: all 0.3s; + border-radius: 4px; + } + + a:hover { + filter: brightness(80%); + padding-left: 0.5rem; + border-left: 5px solid var(--ai-taxonomist-accent-color); + border-color: var(--ai-taxonomist-accent-color); + z-index: 10; + } + + .result .bottom { + margin: 0; + display: flex; + align-items: center; + color: var(--ai-taxonomist-text-color); + } + .speciesName { + margin: 0; + font-style: italic; + } + .speciesName span { + font-style: normal; + } + .family { + text-align: left; + font-style: italic; + background-color: var(--ai-taxonomist-separator-border-color); + color: var(--ai-taxonomist-text-color); + border-radius: 4px; + margin-right: 12px; + padding: 0.2rem 0.35rem; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + display: block; + } + `;h([p({type:String})],N.prototype,"apiUrl",void 0);h([p({attribute:!1})],N.prototype,"species",void 0);h([p({attribute:!1})],N.prototype,"displayedSpecies",void 0);h([p({attribute:!1})],N.prototype,"filter",void 0);h([p({attribute:!1})],N.prototype,"error",void 0);window.customElements.define("species-list",N);class O extends x{constructor(){super(...arguments),this.doiUrl=null,this.apiUrl=null,this.displaySpecies=!1}__toggleSpeciesList(){this.displaySpecies=!this.displaySpecies}render(){return this.doiUrl?this.displaySpecies?l` + Close species list + + `:l`Species listThis identification engine has been trained on the GBIF Occurrence Download: ${this.doiUrl}`:null}}O.styles=A` + a { + margin-top: 12px; + transition: all 0.15s ease-in-out; + color: var(--ai-taxonomist-accent-color); + font-size: 0.9rem; + margin: 12px 0; + display: block; + text-decoration: none; + } + + a:hover { + filter: brightness(80%); + } + `;h([p({type:String})],O.prototype,"doiUrl",void 0);h([p({type:String})],O.prototype,"apiUrl",void 0);h([p({type:Boolean})],O.prototype,"displaySpecies",void 0);window.customElements.define("ai-footer",O);var w;(function(r){r.PLANTNET="pn",r.C4C="c4c",r.CARPESO="carp"})(w||(w={}));const ct=()=>(navigator.language||navigator.userLanguage).substring(0,2),pe=(r,t,e)=>{const i=new FormData;for(let o=0;o{const i=new FormData;i.append("info","true");for(let o=0;o{const i=new FormData;for(let o=0;o{const t=await r.json();return"error"in t?t.message:{results:t.results.map(e=>({score:e.score,taxonName:e.species.scientificNameWithoutAuthor,author:e.species.scientificNameAuthorship,family:e.species.family.scientificName,commonNames:e.species.commonNames,gbifUrl:e.gbif?`https://www.gbif.org/species/${e.gbif.id}`:null,images:e.images.map(i=>({url:i.url.m,alt:`${i.citation} - ${i.date.string}`})).slice(0,3),formatTaxonName:!0}))}},ge=async r=>{const t=await r.json();return"status"in t&&t.status==="error"?t.status:{results:t.results.map(i=>({score:i.score,taxonName:i.name,author:i.authorship,family:i.family,commonNames:[i.vernacularName],gbifUrl:`https://www.gbif.org/species/${i.gbif_id}`,images:i.images.map(s=>({url:s.url,alt:`${s.publisher?`${s.publisher} - `:""}${s.rightsHolder} - ${s.license}`})).slice(0,3),formatTaxonName:!0}))}},ve=async(r,t)=>{const e=await r.json();if("status"in e&&e.status==="error")return e.status;const{results:i}=e,s=t.replace("classify","");return{overallScore:`Valeur nutritive estimée : ${Ht(i.nutrition,2)} ufl/kg MS`,results:i.details.map(o=>({score:o.score,taxonName:o.name,author:o.authorship,family:null,gbifUrl:null,url:o.url?o.url:void 0,commonNames:[o.vernacularName],additionalText:o.nutrition?`Nutrition : ${o.nutrition} ufl/kg MS`:void 0,images:o.images.map(n=>({url:`${s}/${n.url}`,alt:`${o.name} ${s}/${n.url}`})).slice(0,3),formatTaxonName:!0}))}},xe=(r,t,e,i)=>{switch(i){default:case w.PLANTNET:return pe(r,t,e);case w.C4C:return ue(r,t,e);case w.CARPESO:return me(r,t,e)}},$e=async(r,t,e,i)=>{const[s,o]=xe(r,t,e,i);try{const n=await fetch(o.toString(),{method:"POST",body:s});if(!n.ok)return`Error: ${n.statusText}`;switch(i){default:case w.PLANTNET:return fe(n);case w.C4C:return ge(n);case w.CARPESO:return ve(n,t)}}catch(n){return`Error: ${n.message}`}},be=async(r,t)=>{if(t!==w.C4C)return null;try{const e=await fetch(`${r}/status`);return e.status===200?`https://doi.org/${(await e.json()).gbif_doi}`:null}catch{return null}};var $;(function(r){r[r.Idle=0]="Idle",r[r.Loading=1]="Loading",r[r.Loaded=2]="Loaded",r[r.Error=3]="Error"})($||($={}));const Ct={state:$.Idle,error:null,results:{results:[]}},Z={text:"#535559",border:"#ccc",outline:"#92b0b3",background:"#eee",backgroundHover:"#ddd"},_={text:"#ccc",border:"#666",outline:"#888",background:"#666",backgroundHover:"#999"};class b extends x{constructor(){super(...arguments),this.imageFiles=[],this.apiUrl="https://my-api.plantnet.org/v2/identify/all",this.apiKey=null,this.maxImages=5,this.removePlantNetBranding=!1,this.isPlantNetBranded=!1,this.backendFormat=w.PLANTNET,this.identify={...Ct},this.doiUrl=null}connectedCallback(){super.connectedCallback(),!this.removePlantNetBranding&&(this.apiUrl.includes("https://my-api.plantnet.org")||this.apiUrl.includes("https://c4c.inria.fr"))&&(this.isPlantNetBranded=!0),(async()=>this.doiUrl=await be(this.apiUrl,this.backendFormat))()}__addImages(t){const{files:e}=t.detail;e&&(this.imageFiles=[...this.imageFiles,...Array.from(e)].slice(0,this.maxImages),this.runIdentify())}__removeImage(t){const{index:e}=t.detail;e>=0&&e${this.getInnerContent()}
`}async runIdentify(){if(this.identify.state===$.Loading)return;this.identify.error=null,this.identify.state=$.Loading,this.dispatchEvent(new CustomEvent("aiTaxonomistNewIdentification",{bubbles:!0,composed:!0,cancelable:!0}));const t=await $e(this.imageFiles,this.apiUrl,this.apiKey,this.backendFormat);typeof t=="string"?(this.identify.state=$.Error,this.identify.error=t):(this.identify.state=$.Loaded,this.identify.results=t),this.requestUpdate()}getInnerContent(){switch(this.identify.state){default:case $.Idle:return l` + + + `;case $.Loading:case $.Error:case $.Loaded:return l` + + + New identification + + `}}reset(){this.identify={...Ct},this.imageFiles=[],this.requestUpdate()}}b.styles=A` + :host { + display: block; + --ai-taxonomist-text-color: ${v(Z.text)}; + --ai-taxonomist-separator-border-color: ${v(Z.border)}; + --ai-taxonomist-accent-color: #8eb533; + --ai-taxonomist-outline: ${v(Z.outline)}; + --ai-taxonomist-background: ${v(Z.background)}; + --ai-taxonomist-background-hover: ${v(Z.backgroundHover)}; + color: var(--ai-taxonomist-text-color); + font-size: 1.1rem; + } + :host(.prefer-dark) { + --ai-taxonomist-text-color: ${v(_.text)}; + --ai-taxonomist-separator-border-color: ${v(_.border)}; + --ai-taxonomist-outline: ${v(_.outline)}; + --ai-taxonomist-background: ${v(_.background)}; + --ai-taxonomist-background-hover: ${v(_.backgroundHover)}; + } + + .innerContainer { + max-width: 850px; + margin: auto; + } + + button { + display: flex; + align-items: center; + appearance: none; + border: none; + border-radius: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 0.5rem 0.7rem; + font-size: 1.1rem; + cursor: pointer; + color: inherit; + transition: all 0.15s ease-in-out; + margin-top: 2rem; + margin-left: calc(16.6667% + 0.2rem); + } + + @media (prefers-color-scheme: dark) { + :host(:not(.prefer-light)) { + --ai-taxonomist-text-color: ${v(_.text)}; + --ai-taxonomist-separator-border-color: ${v(_.border)}; + --ai-taxonomist-outline: ${v(_.outline)}; + --ai-taxonomist-background: ${v(_.background)}; + --ai-taxonomist-background-hover: ${v(_.backgroundHover)}; + } + } + + @media only screen and (max-width: 48em) { + button { + margin-left: 0; + } + } + `;h([p({type:Array})],b.prototype,"imageFiles",void 0);h([p({type:String})],b.prototype,"apiUrl",void 0);h([p({type:String})],b.prototype,"apiKey",void 0);h([p({type:Number})],b.prototype,"maxImages",void 0);h([p({type:Boolean})],b.prototype,"removePlantNetBranding",void 0);h([p({type:Boolean})],b.prototype,"isPlantNetBranded",void 0);h([p({type:String})],b.prototype,"backendFormat",void 0);h([p({attribute:!1})],b.prototype,"identify",void 0);h([p({attribute:!1})],b.prototype,"doiUrl",void 0);window.customElements.define("ai-taxonomist",b);const ye=Bt({__name:"plantnet",setup(r){return(t,e)=>{const i=Vt("ai-taxonomist"),s=It;return Ot(),Dt(jt,null,{default:dt(()=>[ht(s,null,{default:dt(()=>[ht(i,{apiKey:"2b1010E0O444tp1V0xwK6WC4"})]),_:1})]),_:1})}}}),Pe=Ft(ye,[["__scopeId","data-v-1b57d0ff"]]);export{Pe as default}; diff --git a/_nuxt/CJ7Tzvjl.js b/_nuxt/CJ7Tzvjl.js new file mode 100644 index 0000000..645d331 --- /dev/null +++ b/_nuxt/CJ7Tzvjl.js @@ -0,0 +1 @@ +import{_ as A,aL as m,r as C,as as L,o as M,v as t,a8 as H,B as i,af as a,S as p,C as v,z as V,ak as s,x as u,bI as g,aw as f,c as y}from"./-VvI6Lr7.js";import{V as h}from"./FoGmEwba.js";var w="M12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M17,14L12,9L7,14H17Z",x="M12,2L22,8C22,12 20,14 16,15L13,10L9,6L12,2M4.11,19.84L2.12,18.33L9.19,9L11,10.81L4.11,19.84Z",_="M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z",d="M16,20H8V6H16M16.67,4H15V2H9V4H7.33A1.33,1.33 0 0,0 6,5.33V20.67C6,21.4 6.6,22 7.33,22H16.67A1.33,1.33 0 0,0 18,20.67V5.33C18,4.6 17.4,4 16.67,4Z",Z="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",k="M10,3L8,5V7H5C3.85,7 3.12,8 3,9L2,19C1.88,20 2.54,21 4,21H20C21.46,21 22.12,20 22,19L21,9C20.88,8 20.06,7 19,7H16V5L14,3H10M10,5H14V7H10V5M11,10H13V13H16V15H13V18H11V15H8V13H11V10Z",B="M14.6 9L18 3.1L19.7 4.1L16.9 9H14.6M14 10H3V12H5V19C5 20.1 5.9 21 7 21H17C18.1 21 19 20.1 19 19V12H21V10H14Z",b="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",N="M16,21H8A1,1 0 0,1 7,20V12.07L5.7,13.07C5.31,13.46 4.68,13.46 4.29,13.07L1.46,10.29C1.07,9.9 1.07,9.27 1.46,8.88L7.34,3H9C9,4.1 10.34,5 12,5C13.66,5 15,4.1 15,3H16.66L22.54,8.88C22.93,9.27 22.93,9.9 22.54,10.29L19.71,13.12C19.32,13.5 18.69,13.5 18.3,13.12L17,12.12V20A1,1 0 0,1 16,21",S="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z",z="M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z";function l(e){switch(e){case"water":return S;case"battery-outline":return d;case"medical-bag":return k;case"home":return Z;case"size-m":return b;case"pot-mix":return B;case"axe":return x;case"bag-personal":return _;case"tshirt-crew":return N;case"weight":return z;case"arrow-up-drop-circle-outline":return w;default:return d}}const D={key:1},I={key:2},O={__name:"chip",props:{category:Object,renderNames:{type:Boolean,default:!0}},setup(e){const n=e,{xs:c}=m(),r=C(n.renderNames&&!c.value);return L(()=>c.value,o=>{r.value=n.renderNames&&!o}),M(()=>{}),(o,P)=>e.category?(t(),H(h,{key:0,"prepend-icon":a(r)?a(l)(e.category.icon):!1,color:e.category.color,label:"",class:f(`category-weight ${a(r),""}`)},{default:i(()=>[a(r)?s("",!0):(t(),H(p,{key:0},{default:i(()=>[v(V(a(l)(e.category.icon)),1)]),_:1})),a(r)?(t(),u("span",D,V(e.category.name),1)):s("",!0),a(r)?(t(),u("span",I,"   ")):s("",!0),g(o.$slots,"default",{},void 0,!0)]),_:3},8,["prepend-icon","color","class"])):s("",!0)}},$=A(O,[["__scopeId","data-v-9a157dfb"]]),j=()=>{const{width:e}=m();return{xsAndDown:y(()=>e.value<600)}};export{$ as _,l as g,j as u}; diff --git a/_nuxt/CRmmW6t3.js b/_nuxt/CRmmW6t3.js new file mode 100644 index 0000000..f4b132e --- /dev/null +++ b/_nuxt/CRmmW6t3.js @@ -0,0 +1 @@ +import{ce as i,aU as u,F as C,G as S,X as b,I as k,c as N,g as j}from"./-VvI6Lr7.js";const V=i.reduce((e,a)=>(e[a]={type:[Boolean,String,Number],default:!1},e),{}),v=i.reduce((e,a)=>{const t="offset"+u(a);return e[t]={type:[String,Number],default:null},e},{}),L=i.reduce((e,a)=>{const t="order"+u(a);return e[t]={type:[String,Number],default:null},e},{}),y={col:Object.keys(V),offset:Object.keys(v),order:Object.keys(L)};function O(e,a,t){let s=e;if(!(t==null||t===!1)){if(a){const n=a.replace(e,"");s+=`-${n}`}return e==="col"&&(s="v-"+s),e==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const I=["auto","start","end","center","baseline","stretch"],U=C({cols:{type:[Boolean,String,Number],default:!1},...V,offset:{type:[String,Number],default:null},...v,order:{type:[String,Number],default:null},...L,alignSelf:{type:String,default:null,validator:e=>I.includes(e)},...S(),...b()},"VCol"),x=k()({name:"VCol",props:U(),setup(e,a){let{slots:t}=a;const s=N(()=>{const n=[];let l;for(l in y)y[l].forEach(o=>{const c=e[o],g=O(l,o,c);g&&n.push(g)});const r=n.some(o=>o.startsWith("v-col-"));return n.push({"v-col":!r||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),n});return()=>{var n;return j(e.tag,{class:[s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}}),f=["start","end","center"],$=["space-between","space-around","space-evenly"];function d(e,a){return i.reduce((t,s)=>{const n=e+u(s);return t[n]=a(),t},{})}const _=[...f,"baseline","stretch"],h=e=>_.includes(e),w=d("align",()=>({type:String,default:null,validator:h})),R=[...f,...$],P=e=>R.includes(e),E=d("justify",()=>({type:String,default:null,validator:P})),T=[...f,...$,"stretch"],A=e=>T.includes(e),G=d("alignContent",()=>({type:String,default:null,validator:A})),m={align:Object.keys(w),justify:Object.keys(E),alignContent:Object.keys(G)},B={align:"align",justify:"justify",alignContent:"align-content"};function F(e,a,t){let s=B[e];if(t!=null){if(a){const n=a.replace(e,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const M=C({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:h},...w,justify:{type:String,default:null,validator:P},...E,alignContent:{type:String,default:null,validator:A},...G,...S(),...b()},"VRow"),z=k()({name:"VRow",props:M(),setup(e,a){let{slots:t}=a;const s=N(()=>{const n=[];let l;for(l in m)m[l].forEach(r=>{const o=e[r],c=F(l,r,o);c&&n.push(c)});return n.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),n});return()=>{var n;return j(e.tag,{class:["v-row",s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}});export{z as V,x as a}; diff --git a/_nuxt/CW8F4qk3.js b/_nuxt/CW8F4qk3.js new file mode 100644 index 0000000..50aa933 --- /dev/null +++ b/_nuxt/CW8F4qk3.js @@ -0,0 +1 @@ +import{d as i,al as V,r as f,an as _,i as c,v as u,a8 as d,B as t,y as g,z as C,af as a,A as l,ak as x}from"./-VvI6Lr7.js";import{V as y,a as k}from"./CRmmW6t3.js";import{V as w}from"./TjYH8LVs.js";import{V as B}from"./n5OR3jin.js";import{V as F}from"./BwUqDjZt.js";import"./l9yxdLf0.js";const z=i({__name:"index",async setup(I){let s,n;const m=V().users,e=f(m.me);[s,n]=_(()=>m.fetch()),await s,n();debugger;return(N,o)=>{const p=c("FormInputImageUploadVue");return u(),d(F,null,{default:t(()=>[g("pre",null,C(a(e)),1),l(B,null,{default:t(()=>[a(e)?(u(),d(y,{key:0},{default:t(()=>[l(k,{cols:"12"},{default:t(()=>[l(w,{modelValue:a(e).name,"onUpdate:modelValue":o[0]||(o[0]=r=>a(e).name=r),label:"Name",required:""},null,8,["modelValue"]),l(p,{modelValue:a(e).image,"onUpdate:modelValue":o[1]||(o[1]=r=>a(e).image=r)},null,8,["modelValue"])]),_:1})]),_:1})):x("",!0)]),_:1})]),_:1})}}});export{z as default}; diff --git a/_nuxt/CXnKksxJ.js b/_nuxt/CXnKksxJ.js new file mode 100644 index 0000000..42c6b0c --- /dev/null +++ b/_nuxt/CXnKksxJ.js @@ -0,0 +1 @@ +import{bx as s}from"./-VvI6Lr7.js";async function c(a,e){if(!e)return"";const t=s();try{const{data:r,error:o}=await t.storage.from(a).createSignedUrl(e,60);return r.signedUrl}catch(r){console.error("An error occurred while fetching signed URL:",r.message)}}async function u(a,e){const t=await c(a,e);return await(await fetch(t)).text()}async function l(a,e,t){const r=s(),{data:o,error:n}=await r.storage.from(a).upload(e,t);return n&&console.error("An error occurred while uploading file:",n.message),o}export{c as a,u as g,l as u}; diff --git a/_nuxt/CdgrpXGU.js b/_nuxt/CdgrpXGU.js new file mode 100644 index 0000000..d3dfaf0 --- /dev/null +++ b/_nuxt/CdgrpXGU.js @@ -0,0 +1 @@ +import{V as L,_ as A}from"./CrOhsFVu.js";import{d as w,r as F,bA as R,v as H,a8 as x,B as t,A as e,aj as c,C as m,bo as S,bG as $,an as C,a9 as g,af as f,ab as V,y as k,aa as B,ag as U,aA as N}from"./-VvI6Lr7.js";import{u as T}from"./CXnKksxJ.js";import{V as j}from"./TjYH8LVs.js";import{V as h}from"./mCWCszvA.js";import{V as z,a as y}from"./CRmmW6t3.js";import{V as D}from"./BwUqDjZt.js";import{V as G}from"./n5OR3jin.js";import"./743RfUEt.js";import"./FoGmEwba.js";import"./CpVlVgCe.js";import"./CJ7Tzvjl.js";import"./BFbS1nff.js";import"./l9yxdLf0.js";const I=w({__name:"form",props:{route:{type:Object,default:()=>({name:"",originalFile:null})}},emits:["close-dialog"],setup(_,{emit:i}){const s=_,n=i,o=F({...s.route}),u=R(),d=async()=>{try{if(o.value.originalFile){const r=await T("routes",S(),o.value.originalFile);if(s.route.id)await u.update(newRoute);else{const l={name:o.value.name,originalFile:r.path};await u.create(l)}n("close-dialog")}}catch(r){console.error("An error occurred while saving the route:",r)}};return(r,l)=>(H(),x(D,null,{default:t(()=>[e(j,{modelValue:o.value.name,"onUpdate:modelValue":l[0]||(l[0]=a=>o.value.name=a),label:"Name"},null,8,["modelValue"]),e(h,{modelValue:o.value.originalFile,"onUpdate:modelValue":l[1]||(l[1]=a=>o.value.originalFile=a),label:"File"},null,8,["modelValue"]),e(z,{justify:"end"},{default:t(()=>[e(y,{cols:"auto"},{default:t(()=>[e(c,{onClick:l[2]||(l[2]=a=>r.$emit("close-dialog"))},{default:t(()=>[m("Cancel")]),_:1})]),_:1}),e(y,{cols:"auto"},{default:t(()=>[e(c,{onClick:d},{default:t(()=>[m("Save")]),_:1})]),_:1})]),_:1})]),_:1}))}}),M={class:"ma-4"},ae=w({__name:"index",async setup(_){let i,s;const n=F(!1),o=R(),u=$();[i,s]=C(()=>u.fetch()),await i,s(),[i,s]=C(()=>o.fetch()),await i,s();const d=o.myRoutes,r=o.otherRoutes;return(l,a)=>{const v=A,b=I;return H(),x(G,null,{default:t(()=>[e(V,{class:"mb-5"},{default:t(()=>[e(g,null,{default:t(()=>[m("Your routes")]),_:1}),e(v,{entities:f(d),"entity-type":"routes"},null,8,["entities"])]),_:1}),e(V,null,{default:t(()=>[e(g,null,{default:t(()=>[m("Contacts routes")]),_:1}),e(v,{entities:f(r),"entity-type":"routes"},null,8,["entities"])]),_:1}),e(L,{"model-value":"",position:"bottom",class:"text-end",size:"88"},{default:t(()=>[k("div",M,[e(c,{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",size:"large",color:"primary",elevation:"8",onClick:a[0]||(a[0]=p=>n.value=!0)})])]),_:1}),e(N,{modelValue:f(n),"onUpdate:modelValue":a[2]||(a[2]=p=>U(n)?n.value=p:null),"max-width":"600"},{default:t(()=>[e(V,{"prepend-icon":"M11,12H3.5L6,9.5L3.5,7H11V3L12,2L13,3V7H18L20.5,9.5L18,12H13V20A2,2 0 0,1 15,22H9A2,2 0 0,1 11,20V12Z",title:"Create new route"},{default:t(()=>[e(B,null,{default:t(()=>[e(b,{onCloseDialog:a[1]||(a[1]=p=>n.value=!1)})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}});export{ae as default}; diff --git a/_nuxt/CgtgCwE6.js b/_nuxt/CgtgCwE6.js new file mode 100644 index 0000000..babe801 --- /dev/null +++ b/_nuxt/CgtgCwE6.js @@ -0,0 +1 @@ +import{d as e,v as t,a8 as n,bM as _}from"./-VvI6Lr7.js";const r=e({__name:"tools",setup(a){return(c,s)=>{const o=_;return t(),n(o)}}});export{r as default}; diff --git a/_nuxt/ContTC5u.js b/_nuxt/ContTC5u.js new file mode 100644 index 0000000..0ff193b --- /dev/null +++ b/_nuxt/ContTC5u.js @@ -0,0 +1 @@ +import{_ as n}from"./BHGrsRTQ.js";import{d as p,r as c,v as a,a8 as r,B as i,y as o,af as l,bB as m,ak as d,_ as u}from"./-VvI6Lr7.js";import"./CBLhoS0v.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";import"./n5OR3jin.js";const _=p({__name:"gpxstudio",setup(f){const e=c(!1);return(x,t)=>{const s=n;return a(),r(s,null,{default:i(()=>[o("div",null,[l(e)?d("",!0):(a(),r(m,{key:0,class:"absolute-center",color:"primary",indeterminate:""})),o("iframe",{src:"https://gpx.studio/",onLoad:t[0]||(t[0]=v=>e.value=!0)},null,32)])]),_:1})}}}),b=u(_,[["__scopeId","data-v-a10a6dc6"]]);export{b as default}; diff --git a/_nuxt/CpVlVgCe.js b/_nuxt/CpVlVgCe.js new file mode 100644 index 0000000..7ef65da --- /dev/null +++ b/_nuxt/CpVlVgCe.js @@ -0,0 +1 @@ +import{a as c}from"./CXnKksxJ.js";import{d as m,r as f,o as u,v as g,a8 as l,af as t,bn as p}from"./-VvI6Lr7.js";const v=m({__name:"supabase-image",props:{imagePath:String},setup(n){const a=f(""),e=n;async function s(r){return await c("images",r)}async function i(){e.imagePath&&(a.value=await s(e.imagePath))}return u(()=>{e.imagePath&&i()}),(r,o)=>(g(),l(p,{"v-if":t(a),src:t(a)},null,8,["v-if","src"]))}});export{v as _}; diff --git a/_nuxt/CrOhsFVu.js b/_nuxt/CrOhsFVu.js new file mode 100644 index 0000000..3683619 --- /dev/null +++ b/_nuxt/CrOhsFVu.js @@ -0,0 +1 @@ +import{_ as k,v as a,a8 as r,B as n,A as s,S as v,C as m,z as d,af as c,q as I,D as A,E as H,y as V,o as P,bH as M,bn as j,x as C,ak as p,c as L,ae as O,ad as z,d as q,r as U,al as J,an as K,ah as w,ai as Q,ac as W,F as X,G as Y,bD as ee,I as te,bF as ne,a7 as T,L as ae}from"./-VvI6Lr7.js";import{a as f,V as $}from"./CRmmW6t3.js";import{_ as se}from"./743RfUEt.js";import{_ as oe}from"./CpVlVgCe.js";import{_ as N,u as ie}from"./CJ7Tzvjl.js";import{g as re,f as S}from"./BFbS1nff.js";const le={props:{entity:Object({})}},R=e=>(A("data-v-4dcc2ae3"),e=e(),H(),e),ue=R(()=>V("br",null,null,-1)),ce=R(()=>V("br",null,null,-1));function me(e,l,t,i,_,o){return a(),r($,{class:"link",onClick:l[0]||(l[0]=y=>("navigateTo"in e?e.navigateTo:c(I))(`/routes/${t.entity.id}/`))},{default:n(()=>[s(f,{cols:"3",sm:"2"},{default:n(()=>[s(v,{class:"placeholder-icon h-100 w-100"},{default:n(()=>[m("custom:route")]),_:1})]),_:1}),s(f,{cols:"9",sm:"10"},{default:n(()=>[m(d(t.entity.name)+" ",1),ue,m(" "+d(t.entity.distance/1e3)+"km ",1),ce,m(" REGION ")]),_:1})]),_:1})}const de=k(le,[["render",me],["__scopeId","data-v-4dcc2ae3"]]),b=e=>(A("data-v-059415f9"),e=e(),H(),e),ye={key:0},_e=b(()=>V("br",null,null,-1)),pe=b(()=>V("br",null,null,-1)),fe=b(()=>V("br",null,null,-1)),Ve={key:1},ge={__name:"teaser",props:{entity:Object},setup(e){const l=t=>t?t.map(i=>i.name).join(", "):"";return P(()=>{}),(t,i)=>{const _=oe,o=N;return a(),r($,{class:"link",onClick:i[0]||(i[0]=y=>("navigateTo"in t?t.navigateTo:c(I))(`/items/${e.entity.id}/`))},{default:n(()=>[s(f,{cols:"3"},{default:n(()=>[s(M,{"aspect-ratio":"16 / 9","max-height":"150"},{default:n(()=>[e.entity.image?(a(),r(_,{key:0,"image-path":e.entity.image},null,8,["image-path"])):(a(),r(j,{key:1,src:`https://picsum.photos/640/400?a=${Math.random()}`},null,8,["src"]))]),_:1})]),_:1}),s(f,{cols:"9"},{default:n(()=>[V("span",null,d(e.entity.name),1),e.entity.amount>1?(a(),C("span",ye," x"+d(e.entity.amount),1)):p("",!0),_e,s(v,null,{default:n(()=>[m("M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z")]),_:1}),m(" "+d(e.entity.weight*e.entity.amount)+" ",1),pe,s(o,{category:e.entity.category},null,8,["category"]),fe,s(v,null,{default:n(()=>[m("M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z")]),_:1}),e.entity&&e.entity.inventories?(a(),C("span",Ve," In inventories: "+d(l(e.entity.inventories)),1)):p("",!0)]),_:1})]),_:1})}}},he=k(ge,[["__scopeId","data-v-059415f9"]]),B=e=>(A("data-v-0753c091"),e=e(),H(),e),ve=B(()=>V("br",null,null,-1)),Te=B(()=>V("br",null,null,-1)),Ce={key:0},ke={__name:"teaser",props:{entity:Object},setup(e){const{xsAndDown:l}=ie(),t=e,i=L(()=>Object.fromEntries(Object.entries(re(t.entity.items)).sort(([,o],[,y])=>y.weight-o.weight))),_=L(()=>t.entity.items?t.entity.items.reduce((o,y)=>o+y.weight*y.amount,0):0);return(o,y)=>{const u=N;return a(),r($,{class:"link",onClick:y[0]||(y[0]=h=>("navigateTo"in o?o.navigateTo:c(I))(`/inventories/${e.entity.id}/`))},{default:n(()=>[s(f,{cols:"3",sm:"2"},{default:n(()=>[s(v,{class:"placeholder-icon h-100 w-100"},{default:n(()=>[m("custom:inventory")]),_:1})]),_:1}),s(f,{cols:"9",sm:"10"},{default:n(()=>[m(d(e.entity.name)+" ",1),ve,s(v,{icon:"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z"}),m(" "+d(c(S)(c(_),!0))+" ",1),Te,(a(!0),C(O,null,z(Object.keys(c(i)),h=>(a(),r(u,{"render-names":!1,category:c(i)[h],key:h},{default:n(()=>[c(l)?p("",!0):(a(),C("span",Ce," "+d(c(i)[h].name),1)),m(" "+d(c(S)(c(i)[h].weight)),1)]),_:2},1032,["category"]))),128))]),_:1})]),_:1})}}},Ie=k(ke,[["__scopeId","data-v-0753c091"]]),$e={__name:"friend-teaser",props:{entity:Object},setup(e){return(l,t)=>d(e.entity.userId_2)}},Le=k($e,[["__scopeId","data-v-c457af4a"]]),Ae={props:{entity:Object({}),entityType:String}};function He(e,l,t,i,_,o){return a(),r($,{class:"link",onClick:l[0]||(l[0]=y=>("navigateTo"in e?e.navigateTo:c(I))(`/${t.entityType}/${t.entity.id}/`))},{default:n(()=>[s(f,{cols:"3"},{default:n(()=>[s(M,{"aspect-ratio":"16 / 9","max-height":"150"},{default:n(()=>[s(j,{cover:"",src:"https://cdn.vuetifyjs.com/images/cards/desert.jpg"},{default:n(()=>[t.entity.enriched?(a(),r(v,{key:0},{default:n(()=>[m("M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z")]),_:1})):p("",!0)]),_:1})]),_:1})]),_:1}),s(f,{cols:"9"},{default:n(()=>[m(d(t.entity.name),1)]),_:1})]),_:1})}const be=k(Ae,[["render",He],["__scopeId","data-v-1d789906"]]),Re=q({__name:"list",props:{entityType:{},entities:{}},async setup(e){let l,t;const i=e;let _=null,o=U([]);const y=J();return i.entities?o.value=i.entities:(_=y[i.entityType],[l,t]=K(()=>_.fetch()),await l,t(),o.value=_.entities),(u,h)=>{const D=de,F=se,E=he,G=Ie,Z=Le,x=be;return a(),r(W,null,{default:n(()=>[(a(!0),C(O,null,z(c(o),g=>(a(),r(w,{key:g.id},{default:n(()=>[u.entityType=="routes"?(a(),r(D,{key:0,entity:g},null,8,["entity"])):p("",!0),u.entityType=="trips"?(a(),r(F,{key:1,entity:g},null,8,["entity"])):p("",!0),u.entityType=="items"?(a(),r(E,{key:2,entity:g},null,8,["entity"])):p("",!0),u.entityType=="inventories"?(a(),r(G,{key:3,entity:g},null,8,["entity"])):p("",!0),u.entityType=="friends"?(a(),r(Z,{key:4,entity:g},null,8,["entity"])):p("",!0),u.entityType!="items"&&u.entityType!="routes"&&u.entityType!="trips"&&u.entityType!="inventories"&&u.entityType!="friends"?(a(),r(x,{key:5,entity:g,"entity-type":u.entityType},null,8,["entity","entity-type"])):p("",!0)]),_:2},1024))),128)),c(o).length==0?(a(),r(w,{key:0},{default:n(()=>[s(Q,null,{default:n(()=>[m("No "+d(u.entityType)+" found",1)]),_:1})]),_:1})):p("",!0)]),_:1})}}}),we=X({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Y(),...ee()},"VLayoutItem"),Be=te()({name:"VLayoutItem",props:we(),setup(e,l){let{slots:t}=l;const{layoutItemStyles:i,layoutIsReady:_}=ne({id:e.name,order:L(()=>parseInt(e.order,10)),position:T(e,"position"),elementSize:T(e,"size"),layoutSize:T(e,"size"),active:T(e,"modelValue"),absolute:T(e,"absolute")});return ae(()=>{var o;return s("div",{class:["v-layout-item",e.class],style:[i.value,e.style]},[(o=t.default)==null?void 0:o.call(t)])}),_}});export{Be as V,Re as _}; diff --git a/_nuxt/CufEZoaj.js b/_nuxt/CufEZoaj.js new file mode 100644 index 0000000..fee8b69 --- /dev/null +++ b/_nuxt/CufEZoaj.js @@ -0,0 +1 @@ +import{m as Se,V as ie}from"./TjYH8LVs.js";import{F as N,O as he,I as Z,aI as Y,c as R,L as ee,b7 as pe,A as v,a1 as L,G as ge,aM as ye,as as E,ae as z,aL as Pe,ap as _,aP as ce,r as K,bP as Ve,aR as ae,bQ as Ie,au as be,bc as ue,bR as xe,aQ as Ce,bS as Te,a7 as Re,bE as Ae,aT as J,o as De,bT as Be,bU as Fe,b8 as Oe,bV as Le,aJ as _e,b9 as Me,bd as Ee,ac as He,ah as de,be as Ue,S as fe,bf as qe,bg as Ke,C as Ne,bi as $e,aX as ze,bW as ve}from"./-VvI6Lr7.js";import{u as We}from"./l9yxdLf0.js";import{m as je,V as me}from"./VHr5Aleq.js";import{V as Qe}from"./FoGmEwba.js";const Xe=N({indeterminate:Boolean,indeterminateIcon:{type:he,default:"$checkboxIndeterminate"},...je({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Ge=Z()({name:"VCheckboxBtn",props:Xe(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,c){let{slots:n}=c;const r=Y(e,"indeterminate"),u=Y(e,"modelValue");function d(a){r.value&&(r.value=!1)}const g=R(()=>r.value?e.indeterminateIcon:e.falseIcon),o=R(()=>r.value?e.indeterminateIcon:e.trueIcon);return ee(()=>{const a=pe(me.filterProps(e),["modelValue"]);return v(me,L(a,{modelValue:u.value,"onUpdate:modelValue":[y=>u.value=y,d],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:g.value,trueIcon:o.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}}),Je=N({renderless:Boolean,...ge()},"VVirtualScrollItem"),Ye=Z()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Je(),emits:{"update:height":e=>!0},setup(e,c){let{attrs:n,emit:r,slots:u}=c;const{resizeRef:d,contentRect:g}=ye(void 0,"border");E(()=>{var o;return(o=g.value)==null?void 0:o.height},o=>{o!=null&&r("update:height",o)}),ee(()=>{var o,a;return e.renderless?v(z,null,[(o=u.default)==null?void 0:o.call(u,{itemRef:d})]):v("div",L({ref:d,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(a=u.default)==null?void 0:a.call(u)])})}}),Ze=-1,et=1,oe=100,tt=N({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function lt(e,c){const n=Pe(),r=_(0);ce(()=>{r.value=parseFloat(e.itemHeight||0)});const u=_(0),d=_(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),g=_(0),o=_(0),a=K(),y=K();let B=0;const{resizeRef:F,contentRect:i}=ye();ce(()=>{F.value=a.value});const k=R(()=>{var t;return a.value===document.documentElement?n.height.value:((t=i.value)==null?void 0:t.height)||parseInt(e.height)||0}),w=R(()=>!!(a.value&&y.value&&k.value&&r.value));let C=Array.from({length:c.value.length}),m=Array.from({length:c.value.length});const T=_(0);let A=-1;function W(t){return C[t]||r.value}const D=Ie(()=>{const t=performance.now();m[0]=0;const s=c.value.length;for(let V=1;V<=s-1;V++)m[V]=(m[V-1]||0)+W(V-1);T.value=Math.max(T.value,performance.now()-t)},T),j=E(w,t=>{t&&(j(),B=y.value.offsetTop,D.immediate(),O(),~A&&be(()=>{ue&&window.requestAnimationFrame(()=>{G(A),A=-1})}))});Ve(()=>{D.clear()});function te(t,s){const V=C[t],p=r.value;r.value=p?Math.min(r.value,s):s,(V!==s||p!==r.value)&&(C[t]=s,D())}function S(t){return t=ae(t,0,c.value.length-1),m[t]||0}function Q(t){return nt(m,t)}let H=0,M=0,$=0;E(k,(t,s)=>{s&&(O(),t{M=0,O()}))});function le(){if(!a.value||!y.value)return;const t=a.value.scrollTop,s=performance.now();s-$>500?(M=Math.sign(t-H),B=y.value.offsetTop):M=t-H,H=t,$=s,O()}function U(){!a.value||!y.value||(M=0,$=0,O())}let X=-1;function O(){cancelAnimationFrame(X),X=requestAnimationFrame(ne)}function ne(){if(!a.value||!k.value)return;const t=H-B,s=Math.sign(M),V=Math.max(0,t-oe),p=ae(Q(V),0,c.value.length),f=t+k.value+oe,b=ae(Q(f)+1,p+1,c.value.length);if((s!==Ze||pd.value)){const h=S(u.value)-S(p),P=S(b)-S(d.value);Math.max(h,P)>oe?(u.value=p,d.value=b):(p<=0&&(u.value=p),b>=c.value.length&&(d.value=b))}g.value=S(u.value),o.value=S(c.value.length)-S(d.value)}function G(t){const s=S(t);!a.value||t&&!s?A=t:a.value.scrollTop=s}const l=R(()=>c.value.slice(u.value,d.value).map((t,s)=>({raw:t,index:s+u.value})));return E(c,()=>{C=Array.from({length:c.value.length}),m=Array.from({length:c.value.length}),D.immediate(),O()},{deep:!0}),{containerRef:a,markerRef:y,computedItems:l,paddingTop:g,paddingBottom:o,scrollToIndex:G,handleScroll:le,handleScrollend:U,handleItemResize:te}}function nt(e,c){let n=e.length-1,r=0,u=0,d=null,g=-1;if(e[n]>1,d=e[u],d>c)n=u-1;else if(d[]},renderless:Boolean,...tt(),...ge(),...xe()},"VVirtualScroll"),ot=Z()({name:"VVirtualScroll",props:at(),setup(e,c){let{slots:n}=c;const r=Ce("VVirtualScroll"),{dimensionStyles:u}=Te(e),{containerRef:d,markerRef:g,handleScroll:o,handleScrollend:a,handleItemResize:y,scrollToIndex:B,paddingTop:F,paddingBottom:i,computedItems:k}=lt(e,Re(e,"items"));return Ae(()=>e.renderless,()=>{function w(){var T,A;const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[m]("scroll",o,{passive:!0}),document[m]("scrollend",a)):((T=d.value)==null||T[m]("scroll",o,{passive:!0}),(A=d.value)==null||A[m]("scrollend",a))}De(()=>{d.value=Be(r.vnode.el,!0),w(!0)}),Ve(w)}),ee(()=>{const w=k.value.map(C=>v(Ye,{key:C.index,renderless:e.renderless,"onUpdate:height":m=>y(C.index,m)},{default:m=>{var T;return(T=n.default)==null?void 0:T.call(n,{item:C.raw,index:C.index,...m})}}));return e.renderless?v(z,null,[v("div",{ref:g,class:"v-virtual-scroll__spacer",style:{paddingTop:J(F.value)}},null),w,v("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:J(i.value)}},null)]):v("div",{ref:d,class:["v-virtual-scroll",e.class],onScrollPassive:o,onScrollend:a,style:[u.value,e.style]},[v("div",{ref:g,class:"v-virtual-scroll__container",style:{paddingTop:J(F.value),paddingBottom:J(i.value)}},[w])])}),{scrollToIndex:B}}});function ut(e,c){const n=_(!1);let r;function u(o){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function d(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(n.value){const a=E(n,()=>{a(),o()})}else o()})}async function g(o){var B,F;if(o.key==="Tab"&&((B=c.value)==null||B.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const a=(F=e.value)==null?void 0:F.$el;if(!a)return;(o.key==="Home"||o.key==="End")&&a.scrollTo({top:o.key==="Home"?0:a.scrollHeight,behavior:"smooth"}),await d();const y=a.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const i=a.getBoundingClientRect().top;for(const k of y)if(k.getBoundingClientRect().top>=i){k.focus();break}}else{const i=a.getBoundingClientRect().bottom;for(const k of[...y].reverse())if(k.getBoundingClientRect().bottom<=i){k.focus();break}}}return{onListScroll:u,onListKeydown:g}}const st=N({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:he,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Fe({itemChildren:!1})},"Select"),rt=N({...st(),...pe(Se({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Oe({transition:{component:Le}})},"VSelect"),mt=Z()({name:"VSelect",props:rt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,c){let{slots:n}=c;const{t:r}=_e(),u=K(),d=K(),g=K(),o=Y(e,"menu"),a=R({get:()=>o.value,set:l=>{var t;o.value&&!l&&((t=d.value)!=null&&t.ΨopenChildren)||(o.value=l)}}),{items:y,transformIn:B,transformOut:F}=Me(e),i=Y(e,"modelValue",[],l=>B(l===null?[null]:ze(l)),l=>{const t=F(l);return e.multiple?t:t[0]??null}),k=R(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:i.value.length),w=We(),C=R(()=>i.value.map(l=>l.value)),m=_(!1),T=R(()=>a.value?e.closeText:e.openText);let A="",W;const D=R(()=>e.hideSelected?y.value.filter(l=>!i.value.some(t=>t===l)):y.value),j=R(()=>e.hideNoData&&!D.value.length||e.readonly||(w==null?void 0:w.isReadonly.value)),te=R(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),S=K(),{onListScroll:Q,onListKeydown:H}=ut(S,u);function M(l){e.openOnClear&&(a.value=!0)}function $(){j.value||(a.value=!a.value)}function le(l){var f,b;if(!l.key||e.readonly||w!=null&&w.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(a.value=!0),["Escape","Tab"].includes(l.key)&&(a.value=!1),l.key==="Home"?(f=S.value)==null||f.focus("first"):l.key==="End"&&((b=S.value)==null||b.focus("last"));const t=1e3;function s(h){const P=h.key.length===1,I=!h.ctrlKey&&!h.metaKey&&!h.altKey;return P&&I}if(e.multiple||!s(l))return;const V=performance.now();V-W>t&&(A=""),A+=l.key.toLowerCase(),W=V;const p=y.value.find(h=>h.title.toLowerCase().startsWith(A));if(p!==void 0){i.value=[p];const h=D.value.indexOf(p);ue&&window.requestAnimationFrame(()=>{var P;h>=0&&((P=g.value)==null||P.scrollToIndex(h))})}}function U(l){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const s=i.value.findIndex(p=>e.valueComparator(p.value,l.value)),V=t??!~s;if(~s){const p=V?[...i.value,l]:[...i.value];p.splice(s,1),i.value=p}else V&&(i.value=[...i.value,l])}else{const s=t!==!1;i.value=s?[l]:[],be(()=>{a.value=!1})}}function X(l){var t;(t=S.value)!=null&&t.$el.contains(l.relatedTarget)||(a.value=!1)}function O(){var l;m.value&&((l=u.value)==null||l.focus())}function ne(l){m.value=!0}function G(l){if(l==null)i.value=[];else if(ve(u.value,":autofill")||ve(u.value,":-webkit-autofill")){const t=y.value.find(s=>s.title===l);t&&U(t)}else u.value&&(u.value.value="")}return E(a,()=>{if(!e.hideSelected&&a.value&&i.value.length){const l=D.value.findIndex(t=>i.value.some(s=>e.valueComparator(s.value,t.value)));ue&&window.requestAnimationFrame(()=>{var t;l>=0&&((t=g.value)==null||t.scrollToIndex(l))})}}),E(()=>e.items,(l,t)=>{a.value||m.value&&!t.length&&l.length&&(a.value=!0)}),ee(()=>{const l=!!(e.chips||n.chip),t=!!(!e.hideNoData||D.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),s=i.value.length>0,V=ie.filterProps(e),p=s||!m.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return v(ie,L({ref:u},V,{modelValue:i.value.map(f=>f.props.value).join(", "),"onUpdate:modelValue":G,focused:m.value,"onUpdate:focused":f=>m.value=f,validationValue:i.externalValue,counterValue:k.value,dirty:s,class:["v-select",{"v-select--active-menu":a.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":i.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:p,"onClick:clear":M,"onMousedown:control":$,onBlur:X,onKeydown:le,"aria-label":r(T.value),title:r(T.value)}),{...n,default:()=>v(z,null,[v(Ee,L({ref:d,modelValue:a.value,"onUpdate:modelValue":f=>a.value=f,activator:"parent",contentClass:"v-select__content",disabled:j.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:O},te.value),{default:()=>[t&&v(He,L({ref:S,selected:C.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:f=>f.preventDefault(),onKeydown:H,onFocusin:ne,onScrollPassive:Q,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var f,b,h;return[(f=n["prepend-item"])==null?void 0:f.call(n),!D.value.length&&!e.hideNoData&&(((b=n["no-data"])==null?void 0:b.call(n))??v(de,{title:r(e.noDataText)},null)),v(ot,{ref:g,renderless:!0,items:D.value},{default:P=>{var re;let{item:I,index:q,itemRef:x}=P;const se=L(I.props,{ref:x,key:q,onClick:()=>U(I,null)});return((re=n.item)==null?void 0:re.call(n,{item:I,index:q,props:se}))??v(de,L(se,{role:"option"}),{prepend:ke=>{let{isSelected:we}=ke;return v(z,null,[e.multiple&&!e.hideSelected?v(Ge,{key:I.value,modelValue:we,ripple:!1,tabindex:"-1"},null):void 0,I.props.prependAvatar&&v(Ue,{image:I.props.prependAvatar},null),I.props.prependIcon&&v(fe,{icon:I.props.prependIcon},null)])}})}}),(h=n["append-item"])==null?void 0:h.call(n)]}})]}),i.value.map((f,b)=>{function h(x){x.stopPropagation(),x.preventDefault(),U(f,!1)}const P={"onClick:close":h,onKeydown(x){x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),x.stopPropagation(),h(x))},onMousedown(x){x.preventDefault(),x.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},I=l?!!n.chip:!!n.selection,q=I?qe(l?n.chip({item:f,index:b,props:P}):n.selection({item:f,index:b})):void 0;if(!(I&&!q))return v("div",{key:f.value,class:"v-select__selection"},[l?n.chip?v(Ke,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:f.title}}},{default:()=>[q]}):v(Qe,L({key:"chip",closable:e.closableChips,size:"small",text:f.title,disabled:f.props.disabled},P),null):q??v("span",{class:"v-select__selection-text"},[f.title,e.multiple&&b[p(o)]),_:1})}const I=r(n,[["render",c]]);export{I as default}; diff --git a/_nuxt/DBf96Ybk.js b/_nuxt/DBf96Ybk.js new file mode 100644 index 0000000..37c77d1 --- /dev/null +++ b/_nuxt/DBf96Ybk.js @@ -0,0 +1 @@ +import{F as L,r as v,c as j,af as F,aP as w,aX as I,b4 as O}from"./-VvI6Lr7.js";const S=(t,c,e)=>t==null||c==null?-1:t.toString().toLocaleLowerCase().indexOf(c.toString().toLocaleLowerCase()),_=L({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function x(t,c,e){var g;const f=[],s=(e==null?void 0:e.default)??S,m=e!=null&&e.filterKeys?I(e.filterKeys):!1,i=Object.keys((e==null?void 0:e.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let r=0;rf!=null&&f.transform?F(c).map(r=>[r,f.transform(r)]):F(c));w(()=>{const r=typeof e=="function"?e():F(e),a=typeof r!="string"&&typeof r!="number"?"":String(r),M=x(i.value,a,{customKeyFilter:{...t.customKeyFilter,...F(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),y=F(c),u=[],l=new Map;M.forEach(d=>{let{index:h,matches:K}=d;const n=y[h];u.push(n),l.set(n.value,K)}),s.value=u,m.value=l});function g(r){return m.value.get(r.value)}return{filteredItems:s,filteredMatches:m,getMatches:g}}export{_ as m,A as u}; diff --git a/_nuxt/DHLmNBeA.js b/_nuxt/DHLmNBeA.js new file mode 100644 index 0000000..e64a449 --- /dev/null +++ b/_nuxt/DHLmNBeA.js @@ -0,0 +1 @@ +import{_ as T}from"./743RfUEt.js";import{al as k,an as C,v as a,a8 as o,B as t,af as i,x as h,ae as x,ad as w,ah as u,A as e,C as c,aj as v,q as B,ac as L,ai as b,d as N,a9 as y,ab as V}from"./-VvI6Lr7.js";import{V as P,a as g}from"./CRmmW6t3.js";import{V as U}from"./n5OR3jin.js";import"./FoGmEwba.js";const $={__name:"list-upcoming",async setup(f){let r,l;const s=k().trips;[r,l]=C(()=>s.fetch()),await r,l();const n=s.byDateUpcoming;return(p,m)=>{const d=T;return a(),o(L,null,{default:t(()=>[i(n).length?(a(!0),h(x,{key:0},w(i(n),_=>(a(),o(u,{key:_.id},{default:t(()=>[e(d,{entity:_},null,8,["entity"])]),_:2},1024))),128)):(a(),o(u,{key:1},{default:t(()=>[e(P,null,{default:t(()=>[e(g,{cols:"6"},{default:t(()=>[c(" No upcoming trips 😢 ")]),_:1}),e(g,{cols:"6",class:"text-right"},{default:t(()=>[e(v,{onClick:m[0]||(m[0]=_=>("navigateTo"in p?p.navigateTo:i(B))("/trips/new"))},{default:t(()=>[c("Create one!")]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})}}},A={__name:"list-past",async setup(f){let r,l;const s=k().trips;[r,l]=C(()=>s.fetch()),await r,l();const n=s.byDatePast;return(p,m)=>{const d=T;return a(),o(L,null,{default:t(()=>[i(n).length?(a(!0),h(x,{key:0},w(i(n),_=>(a(),o(u,{key:_.id},{default:t(()=>[e(d,{entity:_},null,8,["entity"])]),_:2},1024))),128)):(a(),o(u,{key:1},{default:t(()=>[e(b,null,{default:t(()=>[c("No past trips 😔")]),_:1})]),_:1}))]),_:1})}}},F=N({__name:"index",setup(f){return(r,l)=>{const s=$,n=A;return a(),o(U,null,{default:t(()=>[e(V,{class:"mb-5"},{default:t(()=>[e(y,null,{default:t(()=>[c("Upcoming trips")]),_:1}),e(s)]),_:1}),e(V,null,{default:t(()=>[e(y,null,{default:t(()=>[c("Past trips")]),_:1}),e(n)]),_:1})]),_:1})}}});export{F as default}; diff --git a/_nuxt/DLX79Nml.js b/_nuxt/DLX79Nml.js new file mode 100644 index 0000000..15b9b51 --- /dev/null +++ b/_nuxt/DLX79Nml.js @@ -0,0 +1 @@ +import{u as P,d as A,c as y,h as N,r as C,o as B,a as j,b as I,e as E,f as L,g as S,i as T,j as U,p as V,k as D,n as H,l as F,m as q,q as O,w as $,s as M,_ as G,t as Q,v as W,x as J,y as m,z as k,A as K,B as X,C as Y,D as Z,E as ee}from"./-VvI6Lr7.js";async function z(t,a=P()){const{path:i,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(i)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>z(t,a));a._routePreloaded.add(i);const s=e.map(u=>{var n;return(n=u.components)==null?void 0:n.default}).filter(u=>typeof u=="function");for(const u of s){const n=Promise.resolve(u()).catch(()=>{}).finally(()=>r.splice(r.indexOf(n)));r.push(n)}await Promise.all(r)}const te=(...t)=>t.find(a=>a!==void 0);function ae(t){const a=t.componentName||"NuxtLink";function i(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return w(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:w(s,t.trailingSlash)}}return A({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:r}){const s=P(),u=F(),n=y(()=>{const o=e.to||e.href||"";return i(o,s.resolve)}),d=y(()=>typeof n.value=="string"&&N(n.value,{acceptRelative:!0})),g=y(()=>e.target&&e.target!=="_self"),b=y(()=>e.external||g.value?!0:typeof n.value=="object"?!1:n.value===""||d.value),_=C(!1),h=C(null),R=o=>{var f;h.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!oe()){const f=q();let p,l=null;B(()=>{const x=re();j(()=>{p=I(()=>{var c;(c=h==null?void 0:h.value)!=null&&c.tagName&&(l=x.observe(h.value,async()=>{l==null||l(),l=null;const v=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",v).catch(()=>{}),!b.value&&z(n.value,s).catch(()=>{})]),_.value=!0}))})})}),E(()=>{p&&L(p),l==null||l(),l=null})}return()=>{var l,x;if(!b.value){const c={ref:R,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(_.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),S(T("RouterLink"),c,r.default)}const o=typeof n.value=="object"?((l=s.resolve(n.value))==null?void 0:l.href)??null:n.value&&!e.external&&!d.value?i(U(u.app.baseURL,n.value),s.resolve):n.value||null,f=e.target||null,p=te(e.noRel?"":e.rel,t.externalRelAttribute,d.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!r.default)return null;const c=()=>O(o,{replace:e.replace,external:e.external});return r.default({href:o,navigate:c,get route(){if(!o)return;const v=V(o);return{path:v.pathname,fullPath:v.pathname,get query(){return D(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:p,target:f,isExternal:b.value,isActive:!1,isExactActive:!1})}return S("a",{ref:h,href:o,rel:p,target:f},(x=r.default)==null?void 0:x.call(r))}}})}const ne=ae(H);function w(t,a){const i=a==="append"?$:M;return N(t)&&!t.startsWith("http")?t:i(t,!0)}function re(){const t=q();if(t._observer)return t._observer;let a=null;const i=new Map,e=(s,u)=>(a||(a=new IntersectionObserver(n=>{for(const d of n){const g=i.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&g&&g()}})),i.set(s,u),a.observe(s),()=>{i.delete(s),a.unobserve(s),i.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function oe(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const se=t=>(Z("data-v-71447f4e"),t=t(),ee(),t),ie={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},le=se(()=>m("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ue={class:"max-w-520px text-center z-20"},ce=["textContent"],de=["textContent"],fe={class:"w-full flex items-center justify-center"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return Q({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(i,e)=>{const r=ne;return W(),J("div",ie,[le,m("div",ue,[m("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:k(t.statusCode)},null,8,ce),m("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:k(t.description)},null,8,de),m("div",fe,[K(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:X(()=>[Y(k(t.backHome),1)]),_:1})])])])}}},ve=G(he,[["__scopeId","data-v-71447f4e"]]);export{ve as default}; diff --git a/_nuxt/DM_9Tk0X.js b/_nuxt/DM_9Tk0X.js new file mode 100644 index 0000000..deffcef --- /dev/null +++ b/_nuxt/DM_9Tk0X.js @@ -0,0 +1,13 @@ +import{d as Ft,r as q,J as Jt,o as At,bp as wt,bq as de,au as Dt,g as fe,as as lo,ar as Vi,br as rr,bs as ar,a0 as Rt,c as Kt,e as wo,bt as hr,a7 as ur,bu as lr,v as ue,a8 as le,B as Lt,af as st,A as lt,ak as ii,bv as cr,bw as dr,bx as fr,F as _r,G as pr,by as mr,I as gr,aI as vr,L as yr,bd as co,bg as Lr,bz as wr,a1 as Po,bA as Pr,an as xr,ao as br,y as fo,aj as Fi,bB as Cr,ab as Tr,aa as Mr,C as Hi,aB as Sr,ag as kr,aA as Or,q as zr,_ as Er}from"./-VvI6Lr7.js";import{g as Br}from"./CXnKksxJ.js";import{c as xo,g as Ar}from"./Cpj98o6Y.js";import{V as Zr}from"./n5OR3jin.js";import{V as Ir}from"./-cMAfuNF.js";function Nr(d,f){for(var l=0;lm[x]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}const _o=(d,f)=>{for(const l of Object.keys(f))d.on(l,f[l])},Rr=d=>{for(const f of Object.keys(d)){const l=d[f];l&&qt(l.cancel)&&l.cancel()}},Dr=d=>!d||typeof d.charAt!="function"?d:d.charAt(0).toUpperCase()+d.slice(1),qt=d=>typeof d=="function",Yt=(d,f,l)=>{for(const m in l){const x="set"+Dr(m);d[x]?lo(()=>l[m],(s,r)=>{d[x](s,r)}):f[x]&&lo(()=>l[m],s=>{f[x](s)})}},xt=(d,f,l={})=>{const m={...l};for(const x in d){const s=f[x],r=d[x];s&&(s&&s.custom===!0||r!==void 0&&(m[x]=r))}return m},_e=d=>{const f={},l={};for(const m in d)if(m.startsWith("on")&&!m.startsWith("onUpdate")&&m!=="onReady"){const x=m.slice(2).toLocaleLowerCase();f[x]=d[m]}else l[m]=d[m];return{listeners:f,attrs:l}},Fr=async d=>{const f=await Promise.all([wt(()=>import("./D4k_ikNW.js"),[],import.meta.url),wt(()=>import("./C2eJqgqv.js"),[],import.meta.url),wt(()=>import("./DU6CIJ0p.js"),[],import.meta.url)]);delete d.Default.prototype._getIconUrl,d.Default.mergeOptions({iconRetinaUrl:f[0].default,iconUrl:f[1].default,shadowUrl:f[2].default})},ti=d=>{const f=q((...m)=>console.warn(`Method ${d} has been invoked without being replaced`)),l=(...m)=>f.value(...m);return l.wrapped=f,Rt(d,l),l},ei=(d,f)=>d.wrapped.value=f,Bt=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,Pt=d=>{const f=Jt(d);if(f===void 0)throw new Error(`Attempt to inject ${d.description} before it was provided.`);return f},Xt=Symbol("useGlobalLeaflet"),Qt=Symbol("addLayer"),ni=Symbol("removeLayer"),bo=Symbol("registerControl"),Hr=Symbol("registerLayerControl"),Gr=Symbol("canSetParentHtml"),jr=Symbol("setParentHtml"),Vr=Symbol("setIcon"),Ur=Symbol("bindPopup"),Wr=Symbol("bindTooltip"),qr=Symbol("unbindPopup"),Kr=Symbol("unbindTooltip"),Ae={options:{type:Object,default:()=>({}),custom:!0}},oi=d=>({options:d.options,methods:{}}),pe={...Ae,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Ui=(d,f,l)=>{const m=Pt(Qt),x=Pt(ni),{options:s,methods:r}=oi(d),h=xt(d,pe,s),u=()=>m({leafletObject:f.value}),p=()=>x({leafletObject:f.value}),g={...r,setAttribution(_){p(),f.value.options.attribution=_,d.visible&&u()},setName(){p(),d.visible&&u()},setLayerType(){p(),d.visible&&u()},setVisible(_){f.value&&(_?u():p())},bindPopup(_){if(!f.value||!qt(f.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}f.value.bindPopup(_)},bindTooltip(_){if(!f.value||!qt(f.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}f.value.bindTooltip(_)},unbindTooltip(){f.value&&(qt(f.value.closeTooltip)&&f.value.closeTooltip(),qt(f.value.unbindTooltip)&&f.value.unbindTooltip())},unbindPopup(){f.value&&(qt(f.value.closePopup)&&f.value.closePopup(),qt(f.value.unbindPopup)&&f.value.unbindPopup())},updateVisibleProp(_){l.emit("update:visible",_)}};return Rt(Ur,g.bindPopup),Rt(Wr,g.bindTooltip),Rt(qr,g.unbindPopup),Rt(Kr,g.unbindTooltip),Vi(()=>{g.unbindPopup(),g.unbindTooltip(),p()}),{options:h,methods:g}},Co=(d,f)=>{if(d&&f.default)return fe("div",{style:{display:"none"}},f.default())},To={...pe,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},$r=(d,f,l)=>{const{options:m,methods:x}=Ui(d,f,l);return{options:xt(d,To,m),methods:x}},Wi={...To,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Jr=(d,f,l)=>{const{options:m,methods:x}=$r(d,f,l),s=xt(d,Wi,m),r=Pt(ni),h={...x,setStroke(u){f.value.setStyle({stroke:u})},setColor(u){f.value.setStyle({color:u})},setWeight(u){f.value.setStyle({weight:u})},setOpacity(u){f.value.setStyle({opacity:u})},setLineCap(u){f.value.setStyle({lineCap:u})},setLineJoin(u){f.value.setStyle({lineJoin:u})},setDashArray(u){f.value.setStyle({dashArray:u})},setDashOffset(u){f.value.setStyle({dashOffset:u})},setFill(u){f.value.setStyle({fill:u})},setFillColor(u){f.value.setStyle({fillColor:u})},setFillOpacity(u){f.value.setStyle({fillOpacity:u})},setFillRule(u){f.value.setStyle({fillRule:u})},setClassName(u){f.value.setStyle({className:u})}};return wo(()=>{r({leafletObject:f.value})}),{options:s,methods:h}},qi={...Wi,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}},Yr=(d,f,l)=>{const{options:m,methods:x}=Jr(d,f,l),s=xt(d,qi,m),r={...x,setRadius(h){f.value.setRadius(h)},setLatLng(h){f.value.setLatLng(h)}};return{options:s,methods:r}};({...qi});const po=Ft({name:"LCircleMarker",props:qi,setup(d,f){const l=q(),m=q(!1),x=Jt(Xt),s=Pt(Qt),{options:r,methods:h}=Yr(d,l,f);return At(async()=>{const{circleMarker:u}=x?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url);l.value=de(u(d.latLng,r));const{listeners:p}=_e(f.attrs);l.value.on(p),Yt(h,l.value,d),s({...d,...h,leafletObject:l.value}),m.value=!0,Dt(()=>f.emit("ready",l.value))}),{ready:m,leafletObject:l}},render(){return Co(this.ready,this.$slots)}}),me={...Ae,position:{type:String}},Xr=(d,f)=>{const{options:l,methods:m}=oi(d),x=xt(d,me,l),s={...m,setPosition(r){f.value&&f.value.setPosition(r)}};return Vi(()=>{f.value&&f.value.remove()}),{options:x,methods:s}},Qr=d=>d.default?fe("div",{ref:"root"},d.default()):null;Ft({name:"LControl",props:{...me,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(d,f){const l=q(),m=q(),x=Jt(Xt),s=Pt(bo),{options:r,methods:h}=Xr(d,l);return At(async()=>{const{Control:u,DomEvent:p}=x?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url),g=u.extend({onAdd(){return m.value}});l.value=de(new g(r)),Yt(h,l.value,d),s({leafletObject:l.value}),d.disableClickPropagation&&m.value&&p.disableClickPropagation(m.value),d.disableScrollPropagation&&m.value&&p.disableScrollPropagation(m.value),Dt(()=>f.emit("ready",l.value))}),{root:m,leafletObject:l}},render(){return Qr(this.$slots)}});({...me});({...me});({...me});({...me});const Ki={...pe},ta=(d,f,l)=>{const{options:m,methods:x}=Ui(d,f,l),s=xt(d,Ki,m),r={...x,addLayer(h){f.value.addLayer(h.leafletObject)},removeLayer(h){f.value.removeLayer(h.leafletObject)}};return Rt(Qt,r.addLayer),Rt(ni,r.removeLayer),{options:s,methods:r}};({...Ki});const Mo={...Ki,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},ea=(d,f,l)=>{const{options:m,methods:x}=ta(d,f,l),s=xt(d,Mo,m);Object.prototype.hasOwnProperty.call(d,"optionsStyle")&&(s.style=d.optionsStyle);const r={...x,setGeojson(h){f.value.clearLayers(),f.value.addData(h)},setOptionsStyle(h){f.value.setStyle(h)},getGeoJSONData(){return f.value.toGeoJSON()},getBounds(){return f.value.getBounds()}};return{options:s,methods:r}},ia=Ft({props:Mo,setup(d,f){const l=q(),m=q(!1),x=Jt(Xt),s=Pt(Qt),{methods:r,options:h}=ea(d,l,f);return At(async()=>{const{geoJSON:u}=x?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url);l.value=de(u(d.geojson,h));const{listeners:p}=_e(f.attrs);l.value.on(p),Yt(r,l.value,d),s({...d,...r,leafletObject:l.value}),m.value=!0,Dt(()=>f.emit("ready",l.value))}),{ready:m,leafletObject:l}},render(){return Co(this.ready,this.$slots)}}),$i={...pe,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},So=(d,f,l)=>{const{options:m,methods:x}=Ui(d,f,l),s=xt(d,$i,m),r={...x,setTileComponent(){var h;(h=f.value)==null||h.redraw()}};return Vi(()=>{f.value.off()}),{options:s,methods:r}},na=(d,f,l,m)=>d.extend({initialize(x){this.tileComponents={},this.on("tileunload",this._unloadTile),l.setOptions(this,x)},createTile(x){const s=this._tileCoordsToKey(x);this.tileComponents[s]=f.create("div");const r=fe({setup:m,props:["coords"]},{coords:x});return rr(r,this.tileComponents[s]),this.tileComponents[s]},_unloadTile(x){const s=this._tileCoordsToKey(x.coords);this.tileComponents[s]&&(this.tileComponents[s].innerHTML="",this.tileComponents[s]=void 0)}});Ft({props:{...$i,childRender:{type:Function,required:!0}},setup(d,f){const l=q(),m=q(null),x=q(!1),s=Jt(Xt),r=Pt(Qt),{options:h,methods:u}=So(d,l,f);return At(async()=>{const{GridLayer:p,DomUtil:g,Util:_}=s?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url),P=na(p,g,_,d.childRender);l.value=de(new P(h));const{listeners:y}=_e(f.attrs);l.value.on(y),Yt(u,l.value,d),r({...d,...u,leafletObject:l.value}),x.value=!0,Dt(()=>f.emit("ready",l.value))}),{root:m,ready:x,leafletObject:l}},render(){return this.ready?fe("div",{style:{display:"none"},ref:"root"}):null}});const mo={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}};Ft({name:"LIcon",props:{...mo,...Ae},setup(d,f){const l=q(),m=Jt(Xt),x=Pt(Gr),s=Pt(jr),r=Pt(Vr);let h,u,p,g,_;const P=(N,S,A)=>{const R=N&&N.innerHTML;if(!S){A&&_&&x()&&s(R);return}const{listeners:it}=_e(f.attrs);_&&u(_,it);const{options:V}=oi(d),F=xt(d,mo,V);R&&(F.html=R),_=F.html?p(F):g(F),h(_,it),r(_)},y=()=>{Dt(()=>P(l.value,!0,!1))},T=()=>{Dt(()=>P(l.value,!1,!0))},C={setIconUrl:y,setIconRetinaUrl:y,setIconSize:y,setIconAnchor:y,setPopupAnchor:y,setTooltipAnchor:y,setShadowUrl:y,setShadowRetinaUrl:y,setShadowAnchor:y,setBgPos:y,setClassName:y,setHtml:y};return At(async()=>{const{DomEvent:N,divIcon:S,icon:A}=m?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url);h=N.on,u=N.off,p=S,g=A,Yt(C,{},d),new MutationObserver(T).observe(l.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),y()}),{root:l}},render(){const d=this.$slots.default?this.$slots.default():void 0;return fe("div",{ref:"root"},d)}});({...pe});function oa(d,f,l){var m,x,s;f===void 0&&(f=50),l===void 0&&(l={});var r=(m=l.isImmediate)!=null&&m,h=(x=l.callback)!=null&&x,u=l.maxWait,p=Date.now(),g=[];function _(){if(u!==void 0){var y=Date.now()-p;if(y+f>=u)return u-y}return f}var P=function(){var y=[].slice.call(arguments),T=this;return new Promise(function(C,N){var S=r&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,p=Date.now(),!r){var R=d.apply(T,y);h&&h(R),g.forEach(function(it){return(0,it.resolve)(R)}),g=[]}},_()),S){var A=d.apply(T,y);return h&&h(A),C(A)}g.push({resolve:C,reject:N})})};return P.cancel=function(y){s!==void 0&&clearTimeout(s),g.forEach(function(T){return(0,T.reject)(y)}),g=[]},P}const go={...Ae,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},sa=Ft({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:go,setup(d,f){const l=q(),m=ar({ready:!1,layersToAdd:[],layersInControl:[]}),{options:x}=oi(d),s=xt(d,go,x),{listeners:r,attrs:h}=_e(f.attrs),u=ti(Qt),p=ti(ni),g=ti(bo),_=ti(Hr);Rt(Xt,d.useGlobalLeaflet);const P=Kt(()=>{const S={};return d.noBlockingAnimations&&(S.animate=!1),S}),y=Kt(()=>{const S=P.value;return d.padding&&(S.padding=d.padding),d.paddingTopLeft&&(S.paddingTopLeft=d.paddingTopLeft),d.paddingBottomRight&&(S.paddingBottomRight=d.paddingBottomRight),S}),T={moveend:oa(S=>{m.leafletRef&&(f.emit("update:zoom",m.leafletRef.getZoom()),f.emit("update:center",m.leafletRef.getCenter()),f.emit("update:bounds",m.leafletRef.getBounds()))}),overlayadd(S){const A=m.layersInControl.find(R=>R.name===S.name);A&&A.updateVisibleProp(!0)},overlayremove(S){const A=m.layersInControl.find(R=>R.name===S.name);A&&A.updateVisibleProp(!1)}};At(async()=>{d.useGlobalLeaflet&&(Bt.L=Bt.L||await wt(()=>Promise.resolve().then(()=>La),void 0,import.meta.url));const{map:S,CRS:A,Icon:R,latLngBounds:it,latLng:V,stamp:F}=d.useGlobalLeaflet?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url);try{s.beforeMapMount&&await s.beforeMapMount()}catch(Z){console.error(`The following error occurred running the provided beforeMapMount hook ${Z.message}`)}await Fr(R);const Ht=typeof s.crs=="string"?A[s.crs]:s.crs;s.crs=Ht||A.EPSG3857;const rt={addLayer(Z){Z.layerType!==void 0&&(m.layerControl===void 0?m.layersToAdd.push(Z):m.layersInControl.find(U=>F(U.leafletObject)===F(Z.leafletObject))||(m.layerControl.addLayer(Z),m.layersInControl.push(Z))),Z.visible!==!1&&m.leafletRef.addLayer(Z.leafletObject)},removeLayer(Z){Z.layerType!==void 0&&(m.layerControl===void 0?m.layersToAdd=m.layersToAdd.filter(U=>U.name!==Z.name):(m.layerControl.removeLayer(Z.leafletObject),m.layersInControl=m.layersInControl.filter(U=>F(U.leafletObject)!==F(Z.leafletObject)))),m.leafletRef.removeLayer(Z.leafletObject)},registerLayerControl(Z){m.layerControl=Z,m.layersToAdd.forEach(U=>{m.layerControl.addLayer(U)}),m.layersToAdd=[],g(Z)},registerControl(Z){m.leafletRef.addControl(Z.leafletObject)},setZoom(Z){const U=m.leafletRef.getZoom();Z!==U&&m.leafletRef.setZoom(Z,P.value)},setCrs(Z){const U=m.leafletRef.getBounds();m.leafletRef.options.crs=Z,m.leafletRef.fitBounds(U,{animate:!1,padding:[0,0]})},fitBounds(Z){m.leafletRef.fitBounds(Z,y.value)},setBounds(Z){if(!Z)return;const U=it(Z);U.isValid()&&!(m.lastSetBounds||m.leafletRef.getBounds()).equals(U,0)&&(m.lastSetBounds=U,m.leafletRef.fitBounds(U))},setCenter(Z){if(Z==null)return;const U=V(Z),$=m.lastSetCenter||m.leafletRef.getCenter();($.lat!==U.lat||$.lng!==U.lng)&&(m.lastSetCenter=U,m.leafletRef.panTo(U,P.value))}};ei(u,rt.addLayer),ei(p,rt.removeLayer),ei(g,rt.registerControl),ei(_,rt.registerLayerControl),m.leafletRef=de(S(l.value,s)),Yt(rt,m.leafletRef,d),_o(m.leafletRef,T),_o(m.leafletRef,r),m.ready=!0,Dt(()=>f.emit("ready",m.leafletRef))}),wo(()=>{Rr(T),m.leafletRef&&(m.leafletRef.off(),m.leafletRef.remove())});const C=Kt(()=>m.leafletRef),N=Kt(()=>m.ready);return{root:l,ready:N,leafletObject:C,attrs:h}},render({attrs:d}){return d.style||(d.style={}),d.style.width||(d.style.width="100%"),d.style.height||(d.style.height="100%"),fe("div",{...d,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}});({...pe});const ra={...Wi,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},vo={...ra},ko={...Ae,content:{type:String,default:null}};({...ko});({...vo,latLngs:{...vo.latLngs}});const Ji={...$i,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:d=>typeof d=="string"?!0:Array.isArray(d)?d.every(f=>typeof f=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},aa=(d,f,l)=>{const{options:m,methods:x}=So(d,f,l),s=xt(d,Ji,m),r={...x};return{options:s,methods:r}},ha=Ft({props:Ji,setup(d,f){const l=q(),m=Jt(Xt),x=Pt(Qt),{options:s,methods:r}=aa(d,l,f);return At(async()=>{const{tileLayer:h}=m?Bt.L:await wt(()=>import("./HdBnhJze.js"),[],import.meta.url);l.value=de(h(d.url,s));const{listeners:u}=_e(f.attrs);l.value.on(u),Yt(r,l.value,d),x({...d,...r,leafletObject:l.value}),Dt(()=>f.emit("ready",l.value))}),{leafletObject:l}},render(){return null}});({...ko});({...Ji});function ce(d,f){return Array.from(d.getElementsByTagName(f))}function ge(d){return d==null||d.normalize(),d&&d.textContent||""}function $t(d,f,l){const m=d.getElementsByTagName(f),x=m.length?m[0]:null;return x&&l&&l(x),x}function ua(d,f,l){const m={};if(!d)return m;const x=d.getElementsByTagName(f),s=x.length?x[0]:null;return s&&l?l(s,m):m}function Oo(d,f,l){const m=ge($t(d,f));return m&&l?l(m)||{}:{}}function yo(d,f,l){const m=parseFloat(ge($t(d,f)));if(!isNaN(m))return m&&l?l(m)||{}:{}}function la(d,f,l){const m=parseFloat(ge($t(d,f)));if(!isNaN(m))return l&&l(m),m}function Gi(d,f){const l={};for(const m of f)Oo(d,m,x=>{l[m]=x});return l}function ca(d){return(d==null?void 0:d.nodeType)===1}function zo(d){return ua(d,"line",f=>Object.assign({},Oo(f,"color",m=>({stroke:`#${m}`})),yo(f,"opacity",m=>({"stroke-opacity":m})),yo(f,"width",m=>({"stroke-width":m*96/25.4}))))}function Eo(d){let f=[];if(d===null)return f;for(const l of Array.from(d.childNodes)){if(!ca(l))continue;const m=da(l.nodeName);if(m==="gpxtpx:TrackPointExtension")f=f.concat(Eo(l));else{const x=ge(l);f.push([m,fa(x)])}}return f}function da(d){return["heart","gpxtpx:hr","hr"].includes(d)?"heart":d}function fa(d){const f=parseFloat(d);return isNaN(f)?d:f}function Bo(d){const f=[parseFloat(d.getAttribute("lon")||""),parseFloat(d.getAttribute("lat")||"")];if(isNaN(f[0])||isNaN(f[1]))return null;la(d,"ele",m=>{f.push(m)});const l=$t(d,"time");return{coordinates:f,time:l?ge(l):null,extendedValues:Eo($t(d,"extensions"))}}function Yi(d){var x;const f=Gi(d,["name","cmt","desc","type","time","keywords"]),l=Array.from(d.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*"));for(const s of l)((x=s.parentNode)==null?void 0:x.parentNode)===d&&(f[s.tagName.replace(":","_")]=ge(s));const m=ce(d,"link");return m.length&&(f.links=m.map(s=>Object.assign({href:s.getAttribute("href")},Gi(s,["text","type"])))),f}function Ao(d,f){const l=ce(d,f),m=[],x=[],s={};for(let r=0;r1,r=Object.assign({_gpxType:"trk"},Yi(d),zo($t(d,"extensions")),m.length?{coordinateProperties:{times:s?m:m[0]}}:{});for(const h of x){l.push(h.line),r.coordinateProperties||(r.coordinateProperties={});const u=r.coordinateProperties,p=Object.entries(h.extendedValues);for(let g=0;gnew Array(y.line.length).fill(null))),u[_][g]=P):u[_]=P}}return{type:"Feature",properties:r,geometry:s?{type:"MultiLineString",coordinates:l}:{type:"LineString",coordinates:l[0]}}}function ma(d){const f=Object.assign(Yi(d),Gi(d,["sym"])),l=Bo(d);return l?{type:"Feature",properties:f,geometry:{type:"Point",coordinates:l.coordinates}}:null}function*ga(d){for(const f of ce(d,"trk")){const l=pa(f);l&&(yield l)}for(const f of ce(d,"rte")){const l=_a(f);l&&(yield l)}for(const f of ce(d,"wpt")){const l=ma(f);l&&(yield l)}}function va(d){return{type:"FeatureCollection",features:Array.from(ga(d))}}var ji={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(d,f){(function(l,m){m(f)})(xo,function(l){var m="1.9.4";function x(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=R(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new E(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new E(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Xi(this.x),this.y=Xi(this.y),this},distanceTo:function(t){t=z(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+P(this.x)+", "+P(this.y)+")"}};function z(t,e,i){return t instanceof E?t:R(t)?new E(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new E(t.x,t.y):new E(t,e,i)}function J(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=ct(t);var e=this.min,i=this.max,n=t.min,o=t.max,a=o.x>=e.x&&n.x<=i.x,c=o.y>=e.y&&n.y<=i.y;return a&&c},overlaps:function(t){t=ct(t);var e=this.min,i=this.max,n=t.min,o=t.max,a=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=Q(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>=e.lat&&n.lat<=i.lat,c=o.lng>=e.lng&&n.lng<=i.lng;return a&&c},overlaps:function(t){t=Q(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>e.lat&&n.late.lng&&n.lng1,$o=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",_,e),window.removeEventListener("testPassiveEventSupport",_,e)}catch{}return t}(),Jo=function(){return!!document.createElement("canvas").getContext}(),fi=!!(document.createElementNS&&tn("svg").createSVGRect),Yo=!!fi&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Xo=!fi&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),Qo=navigator.platform.indexOf("Mac")===0,ts=navigator.platform.indexOf("Linux")===0;function bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var k={ie:Ze,ielt9:No,edge:nn,webkit:li,android:on,android23:sn,androidStock:Do,opera:ci,chrome:rn,gecko:an,safari:Fo,phantom:hn,opera12:un,win:Ho,ie3d:ln,webkit3d:di,gecko3d:cn,any3d:Go,mobile:we,mobileWebkit:jo,mobileWebkit3d:Vo,msPointer:dn,pointer:fn,touch:Uo,touchNative:_n,mobileOpera:Wo,mobileGecko:qo,retina:Ko,passiveEvents:$o,canvas:Jo,svg:fi,vml:Xo,inlineSvg:Yo,mac:Qo,linux:ts},pn=k.msPointer?"MSPointerDown":"pointerdown",mn=k.msPointer?"MSPointerMove":"pointermove",gn=k.msPointer?"MSPointerUp":"pointerup",vn=k.msPointer?"MSPointerCancel":"pointercancel",_i={touchstart:pn,touchmove:mn,touchend:gn,touchcancel:vn},yn={touchstart:rs,touchmove:Ie,touchend:Ie,touchcancel:Ie},te={},Ln=!1;function es(t,e,i){return e==="touchstart"&&ss(),yn[e]?(i=yn[e].bind(this,i),t.addEventListener(_i[e],i,!1),i):(console.warn("wrong event specified:",e),_)}function is(t,e,i){if(!_i[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(_i[e],i,!1)}function ns(t){te[t.pointerId]=t}function os(t){te[t.pointerId]&&(te[t.pointerId]=t)}function wn(t){delete te[t.pointerId]}function ss(){Ln||(document.addEventListener(pn,ns,!0),document.addEventListener(mn,os,!0),document.addEventListener(gn,wn,!0),document.addEventListener(vn,wn,!0),Ln=!0)}function Ie(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in te)e.touches.push(te[i]);e.changedTouches=[e],t(e)}}function rs(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&ot(e),Ie(t,e)}function as(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var hs=200;function us(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(a){if(a.detail!==1){n=a.detail;return}if(!(a.pointerType==="mouse"||a.sourceCapabilities&&!a.sourceCapabilities.firesTouchEvents)){var c=Tn(a);if(!(c.some(function(w){return w instanceof HTMLLabelElement&&w.attributes.for})&&!c.some(function(w){return w instanceof HTMLInputElement||w instanceof HTMLSelectElement}))){var v=Date.now();v-i<=hs?(n++,n===2&&e(as(a))):n=1,i=v}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function ls(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var pi=De(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Pe=De(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Pn=Pe==="webkitTransition"||Pe==="OTransition"?Pe+"End":"transitionend";function xn(t){return typeof t=="string"?document.getElementById(t):t}function xe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function j(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function Y(t){var e=t.parentNode;e&&e.removeChild(t)}function Ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ee(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ie(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function mi(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Re(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function I(t,e){if(t.classList!==void 0)for(var i=T(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function Sn(t){return k.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/fs:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Si(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var _s={__proto__:null,on:B,off:K,stopPropagation:Vt,disableScrollPropagation:Mi,disableClickPropagation:Me,preventDefault:ot,stop:Ut,getPropagationPath:Tn,getMousePosition:Mn,getWheelDelta:Sn,isExternalTarget:Si,addListener:B,removeListener:K},kn=ye.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=jt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,Q(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=z(e.paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),a=this.project(t),c=this.getPixelBounds(),v=ct([c.min.add(i),c.max.subtract(n)]),w=v.getSize();if(!v.contains(a)){this._enforcingBounds=!0;var b=a.subtract(v.getCenter()),M=v.extend(a).getSize().subtract(w);o.x+=b.x<0?-M.x:M.x,o.y+=b.y<0?-M.y:M.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=x({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),a=n.subtract(o);return!a.x&&!a.y?this:(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=x({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new W(e,i),o=n.toBounds(t.coords.accuracy*2),a=this._locateOptions;if(a.setView){var c=this.getBoundsZoom(o);this.setView(n,a.maxZoom?Math.min(c,a.maxZoom):c)}var v={latlng:n,bounds:o,timestamp:t.timestamp};for(var w in t.coords)typeof t.coords[w]=="number"&&(v[w]=t.coords[w]);this.fire("locationfound",v)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Y(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)Y(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=j("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new dt(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=Q(t),i=z(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),a=this.getMaxZoom(),c=t.getNorthWest(),v=t.getSouthEast(),w=this.getSize().subtract(i),b=ct(this.project(v,n),this.project(c,n)).getSize(),M=k.any3d?this.options.zoomSnap:1,O=w.x/b.x,D=w.y/b.y,ut=e?Math.max(O,D):Math.min(O,D);return n=this.getScaleZoom(ut,n),M&&(n=Math.round(n/(M/100))*(M/100),n=e?Math.ceil(n/M)*M:Math.floor(n/M)*M),Math.max(o,Math.min(a,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new J(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(H(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Q(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Mn(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=xn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");B(e,"scroll",this._onScroll,this),this._containerId=u(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&k.any3d,I(t,"leaflet-container"+(k.touch?" leaflet-touch":"")+(k.retina?" leaflet-retina":"")+(k.ielt9?" leaflet-oldie":"")+(k.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=xe(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),tt(this._mapPane,new E(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(I(t.markerPane,"leaflet-zoom-hide"),I(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){tt(this._mapPane,new E(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){tt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[u(this._container)]=this;var e=t?K:B;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),k.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",a=t.target||t.srcElement,c=!1;a;){if(n=this._targets[u(a)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){c=!0;break}if(n&&n.listens(e,!0)&&(o&&!Si(a,t)||(i.push(n),o))||a===this._container)break;a=a.parentNode}return!i.length&&!c&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&Pi(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=x({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var a=[],c=0;c0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=k.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){X(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=j("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=pi,n=this._proxy.style[i];Gt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Y(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Gt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:($(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,I(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&X(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ps(t,e){return new G(t,e)}var vt=_t.extend({options:{position:"topright"},initialize:function(t){C(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return I(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Y(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Se=function(t){return new vt(t)};G.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=j("div",e+"control-container",this._container);function n(o,a){var c=e+o+" "+e+a;t[o+a]=j("div",c,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Y(this._controlCorners[t]);Y(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var On=vt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(u(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+u(this),i),this._layerControlInputs.push(n),n.layerId=u(t.layer),B(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var a=document.createElement("span");e.appendChild(a),a.appendChild(n),a.appendChild(o);var c=t.overlay?this._overlaysList:this._baseLayersList;return c.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var a=t.length-1;a>=0;a--)e=t[a],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(a=0;a=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,B(t,"click",ot),this.expand();var e=this;setTimeout(function(){K(t,"click",ot),e._preventClick=!1})}}),ms=function(t,e,i){return new On(t,e,i)},ki=vt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=j("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var a=j("a",i,n);return a.innerHTML=t,a.href="#",a.title=e,a.setAttribute("role","button"),a.setAttribute("aria-label",e),Me(a),B(a,"click",Ut),B(a,"click",o,this),B(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";X(this._zoomInButton,e),X(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(I(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(I(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});G.mergeOptions({zoomControl:!0}),G.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ki,this.addControl(this.zoomControl))});var gs=function(t){return new ki(t)},zn=vt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=j("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=j("div",e,i)),t.imperial&&(this._iScale=j("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),vs=function(t){return new zn(t)},ys='',Oi=vt.extend({options:{position:"bottomright",prefix:''+(k.inlineSvg?ys+" ":"")+"Leaflet"},initialize:function(t){C(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=j("div","leaflet-control-attribution"),Me(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});G.mergeOptions({attributionControl:!0}),G.addInitHook(function(){this.options.attributionControl&&new Oi().addTo(this)});var Ls=function(t){return new Oi(t)};vt.Layers=On,vt.Zoom=ki,vt.Scale=zn,vt.Attribution=Oi,Se.layers=ms,Se.zoom=gs,Se.scale=vs,Se.attribution=Ls;var Tt=_t.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Tt.addTo=function(t,e){return t.addHandler(e,this),this};var ws={Events:ht},En=k.touch?"touchstart mousedown":"mousedown",It=ye.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){C(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(B(this._dragStartTarget,En,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(It._dragging===this&&this.finishDrag(!0),K(this._dragStartTarget,En,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!mi(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){It._dragging===this&&this.finishDrag();return}if(!(It._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(It._dragging=this,this._preventOutline&&Pi(this._element),yi(),be(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=bn(this._element);this._startPoint=new E(e.clientX,e.clientY),this._startPos=jt(this._element),this._parentScale=xi(i);var n=t.type==="mousedown";B(document,n?"mousemove":"touchmove",this._onMove,this),B(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new E(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)a&&(c=v,a=w);a>i&&(e[c]=1,Ei(t,e,i,n,c),Ei(t,e,i,c,o))}function Cs(t,e){for(var i=[t[0]],n=1,o=0,a=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Ts(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function ke(t,e,i,n){var o=e.x,a=e.y,c=i.x-o,v=i.y-a,w=c*c+v*v,b;return w>0&&(b=((t.x-o)*c+(t.y-a)*v)/w,b>1?(o=i.x,a=i.y):b>0&&(o+=c*b,a+=v*b)),c=t.x-o,v=t.y-a,n?c*c+v*v:new E(o,a)}function mt(t){return!R(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Dn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mt(t)}function Fn(t,e){var i,n,o,a,c,v,w,b;if(!t||t.length===0)throw new Error("latlngs not passed");mt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var M=H([0,0]),O=Q(t),D=O.getNorthWest().distanceTo(O.getSouthWest())*O.getNorthEast().distanceTo(O.getNorthWest());D<1700&&(M=zi(t));var ut=t.length,nt=[];for(i=0;in){w=(a-n)/o,b=[v.x-w*(v.x-c.x),v.y-w*(v.y-c.y)];break}var ft=e.unproject(z(b));return H([ft.lat+M.lat,ft.lng+M.lng])}var Ms={__proto__:null,simplify:Zn,pointToSegmentDistance:In,closestPointOnSegment:xs,clipSegment:Rn,_getEdgeIntersection:Ge,_getBitCode:Wt,_sqClosestPointOnSegment:ke,isFlat:mt,_flat:Dn,polylineCenter:Fn},Bi={project:function(t){return new E(t.lng,t.lat)},unproject:function(t){return new W(t.y,t.x)},bounds:new J([-180,-90],[180,90])},Ai={R:6378137,R_MINOR:6356752314245179e-9,bounds:new J([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,a=Math.sqrt(1-o*o),c=a*Math.sin(n),v=Math.tan(Math.PI/4-n/2)/Math.pow((1-c)/(1+c),a/2);return n=-i*Math.log(Math.max(v,1e-10)),new E(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),a=Math.exp(-t.y/i),c=Math.PI/2-2*Math.atan(a),v=0,w=.1,b;v<15&&Math.abs(w)>1e-7;v++)b=o*Math.sin(c),b=Math.pow((1-b)/(1+b),o/2),w=Math.PI/2-2*Math.atan(a*b)-c,c+=w;return new W(c*e,t.x*e/i)}},Ss={__proto__:null,LonLat:Bi,Mercator:Ai,SphericalMercator:ri},ks=x({},Zt,{code:"EPSG:3395",projection:Ai,transformation:function(){var t=.5/(Math.PI*Ai.R);return Le(t,.5,-t,.5)}()}),Hn=x({},Zt,{code:"EPSG:4326",projection:Bi,transformation:Le(1/180,1,-1/180,.5)}),Os=x({},St,{projection:Bi,transformation:Le(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});St.Earth=Zt,St.EPSG3395=ks,St.EPSG3857=hi,St.EPSG900913=Io,St.EPSG4326=Hn,St.Simple=Os;var yt=ye.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[u(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[u(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});G.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=u(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=u(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return u(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?R(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof W&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Ot.prototype._setLatLngs.call(this,t),mt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new E(e,e);if(t=new J(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,a;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||Ot.prototype._containsPoint.call(this,t,!0)}});function Rs(t,e){return new se(t,e)}var zt=kt.extend({initialize:function(t,e){C(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=R(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function re(t,e){return t.feature?x({},t.feature,{geometry:e}):Ke(e)}function Ke(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ri={toGeoJSON:function(t){return re(this,{type:"Point",coordinates:Ni(this.getLatLng(),t)})}};je.include(Ri),Zi.include(Ri),Ve.include(Ri),Ot.include({toGeoJSON:function(t){var e=!mt(this._latlngs),i=qe(this._latlngs,e?1:0,!1,t);return re(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),se.include({toGeoJSON:function(t){var e=!mt(this._latlngs),i=e&&!mt(this._latlngs[0]),n=qe(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),re(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),ne.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),re(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var a=o.toGeoJSON(t);if(i)n.push(a.geometry);else{var c=Ke(a);c.type==="FeatureCollection"?n.push.apply(n,c.features):n.push(c)}}}),i?re(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function Vn(t,e){return new zt(t,e)}var Ds=Vn,$e=yt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=Q(e),C(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(I(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Y(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ee(this._image),this},bringToBack:function(){return this._map&&ie(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Q(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:j("img");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=_,e.onmousemove=_,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Gt(this._image,i,e)},_reset:function(){var t=this._image,e=new J(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();tt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){pt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Fs=function(t,e,i){return new $e(t,e,i)},Un=$e.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:j("video");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=_,e.onmousemove=_,e.onloadeddata=r(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}R(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;ao?(e.height=o+"px",I(t,a)):X(t,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();tt(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(xe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new E(this._containerLeft,-i-this._containerBottom);o._add(jt(this._container));var a=t.layerPointToContainerPoint(o),c=z(this.options.autoPanPadding),v=z(this.options.autoPanPaddingTopLeft||c),w=z(this.options.autoPanPaddingBottomRight||c),b=t.getSize(),M=0,O=0;a.x+n+w.x>b.x&&(M=a.x+n-b.x+w.x),a.x-M-v.x<0&&(M=a.x-v.x),a.y+i+w.y>b.y&&(O=a.y+i-b.y+w.y),a.y-O-v.y<0&&(O=a.y-v.y),(M||O)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([M,O]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),js=function(t,e){return new Je(t,e)};G.mergeOptions({closePopupOnClick:!0}),G.include({openPopup:function(t,e,i){return this._initOverlay(Je,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),yt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Je,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof kt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ut(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Nt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Ye=Mt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Mt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Mt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Mt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=j("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,a=n.latLngToContainerPoint(n.getCenter()),c=n.layerPointToContainerPoint(t),v=this.options.direction,w=o.offsetWidth,b=o.offsetHeight,M=z(this.options.offset),O=this._getAnchor();v==="top"?(e=w/2,i=b):v==="bottom"?(e=w/2,i=0):v==="center"?(e=w/2,i=b/2):v==="right"?(e=0,i=b/2):v==="left"?(e=w,i=b/2):c.xthis.options.maxZoom||in?this._retainParent(o,a,c,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var a=2*e;a<2*e+2;a++){var c=new E(o,a);c.z=i+1;var v=this._tileCoordsToKey(c),w=this._tiles[v];if(w&&w.active){w.retain=!0;continue}else w&&w.loaded&&(w.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var O=o.min.y;O<=o.max.y;O++)for(var D=o.min.x;D<=o.max.x;D++){var ut=new E(D,O);if(ut.z=this._tileZoom,!!this._isValidTile(ut)){var nt=this._tiles[this._tileCoordsToKey(ut)];nt?nt.current=!0:c.push(ut)}}if(c.sort(function(ft,he){return ft.distanceTo(a)-he.distanceTo(a)}),c.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var gt=document.createDocumentFragment();for(D=0;Di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return Q(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),a=e.unproject(n,t.z),c=e.unproject(o,t.z);return[a,c]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new dt(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new E(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(Y(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){I(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=_,t.onmousemove=_,k.ielt9&&this.options.opacity<1&&pt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&$(r(this._tileReady,this,t,null,o)),tt(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(pt(i.el,0),at(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(I(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),k.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new E(this._wrapX?g(t.x,this._wrapX):t.x,this._wrapY?g(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new J(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ws(t){return new ze(t)}var ae=ze.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=C(this,e),e.detectRetina&&k.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return B(i,"load",r(this._tileOnLoad,this,e,i)),B(i,"error",r(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:k.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return A(this._url,x(e,this.options))},_tileOnLoad:function(t,e){k.ielt9?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=_,e.onerror=_,!e.complete)){e.src=V;var i=this._tiles[t].coords;Y(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",V),ze.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===V))return ze.prototype._tileReady.call(this,t,e,i)}});function Kn(t,e){return new ae(t,e)}var $n=ae.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=x({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=C(this,e);var o=e.detectRetina&&k.retina?2:1,a=this.getTileSize();i.width=a.x*o,i.height=a.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ae.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=ct(i.project(e[0]),i.project(e[1])),o=n.min,a=n.max,c=(this._wmsVersion>=1.3&&this._crs===Hn?[o.y,o.x,a.y,a.x]:[o.x,o.y,a.x,a.y]).join(","),v=ae.prototype.getTileUrl.call(this,t);return v+N(this.wmsParams,v,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+c},setParams:function(t,e){return x(this.wmsParams,t),e||this.redraw(),this}});function qs(t,e){return new $n(t,e)}ae.WMS=$n,Kn.wms=qs;var Et=yt.extend({options:{padding:.1},initialize:function(t){C(this,t),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),I(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));k.any3d?Gt(this._container,a,i):tt(this._container,a)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new J(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Jn=Et.extend({options:{tolerance:0},getEvents:function(){var t=Et.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Et.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");B(t,"mousemove",this._onMouseMove,this),B(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),B(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,Y(this._container),K(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=k.retina?2:1;tt(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",k.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Et.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[u(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[u(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ks={_initContainer:function(){this._container=j("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Et.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ee("shape");I(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ee("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[u(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;Y(e),t.removeInteractiveTarget(e),delete this._layers[u(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Ee("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=R(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Ee("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ee(t._container)},_bringToBack:function(t){ie(t._container)}},Xe=k.vml?Ee:tn,Be=Et.extend({_initContainer:function(){this._container=Xe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Y(this._container),K(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),tt(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Xe("path");t.options.className&&I(e,t.options.className),t.options.interactive&&I(e,"leaflet-interactive"),this._updateStyle(t),this._layers[u(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Y(t._path),t.removeInteractiveTarget(t._path),delete this._layers[u(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,en(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",a=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,a)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ee(t._path)},_bringToBack:function(t){ie(t._path)}});k.vml&&Be.include(Ks);function Xn(t){return k.svg||k.vml?new Be(t):null}G.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Yn(t)||Xn(t)}});var Qn=se.extend({initialize:function(t,e){se.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Q(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $s(t,e){return new Qn(t,e)}Be.create=Xe,Be.pointsToPath=en,zt.geometryToLayer=Ue,zt.coordsToLatLng=Ii,zt.coordsToLatLngs=We,zt.latLngToCoords=Ni,zt.latLngsToCoords=qe,zt.getFeature=re,zt.asFeature=Ke,G.mergeOptions({boxZoom:!0});var to=Tt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){B(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){K(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Y(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),be(),yi(),this._startPoint=this._map.mouseEventToContainerPoint(t),B(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=j("div","leaflet-zoom-box",this._container),I(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new J(this._point,this._startPoint),i=e.getSize();tt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(Y(this._box),X(this._container,"leaflet-crosshair")),Ce(),Li(),K(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new dt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});G.addInitHook("addHandler","boxZoom",to),G.mergeOptions({doubleClickZoom:!0});var eo=Tt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});G.addInitHook("addHandler","doubleClickZoom",eo),G.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var io=Tt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new It(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}I(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){X(this._map._container,"leaflet-grab"),X(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Q(this._map.options.maxBounds);this._offsetLimit=ct(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,a=(n+e+i)%t-e-i,c=Math.abs(o+i)0?a:-a))-e;this._delta=0,this._startTime=null,c&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+c):t.setZoomAround(this._lastMousePos,e+c))}});G.addInitHook("addHandler","scrollWheelZoom",oo);var Js=600;G.mergeOptions({tapHold:k.touchNative&&k.safari&&k.mobile,tapTolerance:15});var so=Tt.extend({addHooks:function(){B(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){K(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new E(e.clientX,e.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(B(document,"touchend",ot),B(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Js),B(document,"touchend touchcancel contextmenu",this._cancel,this),B(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){K(document,"touchend",ot),K(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),K(document,"touchend touchcancel contextmenu",this._cancel,this),K(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new E(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});G.addInitHook("addHandler","tapHold",so),G.mergeOptions({touchZoom:k.touch,bounceAtZoomLimits:!0});var ro=Tt.extend({addHooks:function(){I(this._map._container,"leaflet-touch-zoom"),B(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){X(this._map._container,"leaflet-touch-zoom"),K(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),B(document,"touchmove",this._onTouchMove,this),B(document,"touchend touchcancel",this._onTouchEnd,this),ot(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&a.x===0&&a.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var c=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(c,this,!0),ot(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),K(document,"touchmove",this._onTouchMove,this),K(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});G.addInitHook("addHandler","touchZoom",ro),G.BoxZoom=to,G.DoubleClickZoom=eo,G.Drag=io,G.Keyboard=no,G.ScrollWheelZoom=oo,G.TapHold=so,G.TouchZoom=ro,l.Bounds=J,l.Browser=k,l.CRS=St,l.Canvas=Jn,l.Circle=Zi,l.CircleMarker=Ve,l.Class=_t,l.Control=vt,l.DivIcon=qn,l.DivOverlay=Mt,l.DomEvent=_s,l.DomUtil=ds,l.Draggable=It,l.Evented=ye,l.FeatureGroup=kt,l.GeoJSON=zt,l.GridLayer=ze,l.Handler=Tt,l.Icon=oe,l.ImageOverlay=$e,l.LatLng=W,l.LatLngBounds=dt,l.Layer=yt,l.LayerGroup=ne,l.LineUtil=Ms,l.Map=G,l.Marker=je,l.Mixin=ws,l.Path=Nt,l.Point=E,l.PolyUtil=Ps,l.Polygon=se,l.Polyline=Ot,l.Popup=Je,l.PosAnimation=kn,l.Projection=Ss,l.Rectangle=Qn,l.Renderer=Et,l.SVG=Be,l.SVGOverlay=Wn,l.TileLayer=ae,l.Tooltip=Ye,l.Transformation=ai,l.Util=ve,l.VideoOverlay=Un,l.bind=r,l.bounds=ct,l.canvas=Yn,l.circle=Is,l.circleMarker=Zs,l.control=Se,l.divIcon=Us,l.extend=x,l.featureGroup=Es,l.geoJSON=Vn,l.geoJson=Ds,l.gridLayer=Ws,l.icon=Bs,l.imageOverlay=Fs,l.latLng=H,l.latLngBounds=Q,l.layerGroup=zs,l.map=ps,l.marker=As,l.point=z,l.polygon=Rs,l.polyline=Ns,l.popup=js,l.rectangle=$s,l.setOptions=C,l.stamp=u,l.svg=Xn,l.svgOverlay=Gs,l.tileLayer=Kn,l.tooltip=Vs,l.transformation=Le,l.version=m,l.videoOverlay=Hs;var Ys=window.L;l.noConflict=function(){return window.L=Ys,this},window.L=l})})(ji,ji.exports);var Zo=ji.exports;const ya=Ar(Zo),La=Nr({__proto__:null,default:ya},[Zo]);var Lo={exports:{}};(function(d,f){(function(l,m){m(f)})(xo,function(l){var m=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(s){L.Util.setOptions(this,s),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var r=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,r?this._withAnimation:this._noAnimation),this._markerCluster=r?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(s){if(s instanceof L.LayerGroup)return this.addLayers([s]);if(!s.getLatLng)return this._nonPointGroup.addLayer(s),this.fire("layeradd",{layer:s}),this;if(!this._map)return this._needsClustering.push(s),this.fire("layeradd",{layer:s}),this;if(this.hasLayer(s))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(s,this._maxZoom),this.fire("layeradd",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var r=s,h=this._zoom;if(s.__parent)for(;r.__parent._zoom>=h;)r=r.__parent;return this._currentShownBounds.contains(r.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,r):this._animationAddLayerNonAnimated(s,r)),this},removeLayer:function(s){return s instanceof L.LayerGroup?this.removeLayers([s]):s.getLatLng?this._map?s.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(s)),this._removeLayer(s,!0),this.fire("layerremove",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),s.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(s)&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,s)&&this.hasLayer(s)&&this._needsRemoving.push({layer:s,latlng:s._latlng}),this.fire("layerremove",{layer:s}),this):(this._nonPointGroup.removeLayer(s),this.fire("layerremove",{layer:s}),this)},addLayers:function(s,r){if(!L.Util.isArray(s))return this.addLayer(s);var h=this._featureGroup,u=this._nonPointGroup,p=this.options.chunkedLoading,g=this.options.chunkInterval,_=this.options.chunkProgress,P=s.length,y=0,T=!0,C;if(this._map){var N=new Date().getTime(),S=L.bind(function(){var R=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();yg)break}if(C=s[y],C instanceof L.LayerGroup){T&&(s=s.slice(),T=!1),this._extractNonGroupLayers(C,s),P=s.length;continue}if(!C.getLatLng){u.addLayer(C),r||this.fire("layeradd",{layer:C});continue}if(!this.hasLayer(C)&&(this._addLayer(C,this._maxZoom),r||this.fire("layeradd",{layer:C}),C.__parent&&C.__parent.getChildCount()===2)){var V=C.__parent.getAllChildMarkers(),F=V[0]===C?V[1]:V[0];h.removeLayer(F)}}_&&_(y,P,new Date().getTime()-N),y===P?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(S,this.options.chunkDelay)},this);S()}else for(var A=this._needsClustering;y=0;r--)s.extend(this._needsClustering[r].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,r){var h=this._needsClustering.slice(),u=this._needsRemoving,p,g,_;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(h),g=h.length-1;g>=0;g--){for(p=!0,_=u.length-1;_>=0;_--)if(u[_].layer===h[g]){p=!1;break}p&&s.call(r,h[g])}this._nonPointGroup.eachLayer(s,r)},getLayers:function(){var s=[];return this.eachLayer(function(r){s.push(r)}),s},getLayer:function(s){var r=null;return s=parseInt(s,10),this.eachLayer(function(h){L.stamp(h)===s&&(r=h)}),r},hasLayer:function(s){if(!s)return!1;var r,h=this._needsClustering;for(r=h.length-1;r>=0;r--)if(h[r]===s)return!0;for(h=this._needsRemoving,r=h.length-1;r>=0;r--)if(h[r].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,r){var h=this._map;typeof r!="function"&&(r=function(){});var u=function(){(h.hasLayer(s)||h.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",u,this),this.off("animationend",u,this),h.hasLayer(s)?r():s.__parent._icon&&(this.once("spiderfied",r,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?r():s.__parent._zoom=0;h--)if(s[h]===r)return s.splice(h,1),!0},_removeFromGridUnclustered:function(s,r){for(var h=this._map,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());r>=p&&u[r].removeObject(s,h.project(s.getLatLng(),r));r--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var r=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),r&&s.target.openPopup()}},_moveChild:function(s,r,h){s._latlng=r,this.removeLayer(s),s._latlng=h,this.addLayer(s)},_childMarkerDragEnd:function(s){var r=s.target.__dragStart;delete s.target.__dragStart,r&&this._moveChild(s.target,r,s.target._latlng)},_removeLayer:function(s,r,h){var u=this._gridClusters,p=this._gridUnclustered,g=this._featureGroup,_=this._map,P=Math.floor(this._map.getMinZoom());r&&this._removeFromGridUnclustered(s,this._maxZoom);var y=s.__parent,T=y._markers,C;for(this._arraySplice(T,s);y&&(y._childCount--,y._boundsNeedUpdate=!0,!(y._zoom"+r+"
",className:"marker-cluster"+h,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,r=this.options.spiderfyOnMaxZoom,h=this.options.showCoverageOnHover,u=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(r||u||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),h&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var r=s.layer,h=r;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;h._childClusters.length===1;)h=h._childClusters[0];h._zoom===this._maxZoom&&h._childCount===r._childCount&&this.options.spiderfyOnMaxZoom?r.spiderfy():this.options.zoomToBoundsOnClick&&r.zoomToBounds(),this.options.spiderfyOnEveryZoom&&r.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var r=this._map;this._inZoomAnimation||(this._shownPolygon&&r.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),r.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,r=this.options.showCoverageOnHover,h=this.options.zoomToBoundsOnClick,u=this.options.spiderfyOnEveryZoom,p=this._map;(s||h||u)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),r&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var s=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),s),this._currentShownBounds=s}},_generateInitialClusters:function(){var s=Math.ceil(this._map.getMaxZoom()),r=Math.floor(this._map.getMinZoom()),h=this.options.maxClusterRadius,u=h;typeof h!="function"&&(u=function(){return h}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var p=s;p>=r;p--)this._gridClusters[p]=new L.DistanceGrid(u(p)),this._gridUnclustered[p]=new L.DistanceGrid(u(p));this._topClusterLevel=new this._markerCluster(this,r-1)},_addLayer:function(s,r){var h=this._gridClusters,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),g,_;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);r>=p;r--){g=this._map.project(s.getLatLng(),r);var P=h[r].getNearObject(g);if(P){P._addChild(s),s.__parent=P;return}if(P=u[r].getNearObject(g),P){var y=P.__parent;y&&this._removeLayer(P,!1);var T=new this._markerCluster(this,r,P,s);h[r].addObject(T,this._map.project(T._cLatLng,r)),P.__parent=T,s.__parent=T;var C=T;for(_=r-1;_>y._zoom;_--)C=new this._markerCluster(this,_,C),h[_].addObject(C,this._map.project(P.getLatLng(),_));y._addChild(C),this._removeFromGridUnclustered(P,r);return}u[r].addObject(s,g)}this._topClusterLevel._addChild(s),s.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(s){s instanceof L.MarkerCluster&&s._iconNeedsUpdate&&s._updateIcon()})},_enqueue:function(s){this._queue.push(s),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var s=0;ss?(this._animationStart(),this._animationZoomOut(this._zoom,s)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(s){var r=this._maxLat;return r!==void 0&&(s.getNorth()>=r&&(s._northEast.lat=1/0),s.getSouth()<=-r&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,r){if(r===s)this._featureGroup.addLayer(s);else if(r._childCount===2){r._addToMap();var h=r.getAllChildMarkers();this._featureGroup.removeLayer(h[0]),this._featureGroup.removeLayer(h[1])}else r._updateIcon()},_extractNonGroupLayers:function(s,r){var h=s.getLayers(),u=0,p;for(r=r||[];u=0;g--)T=y[g],h.contains(T._latlng)||u.removeLayer(T)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(h,r),u.eachLayer(function(_){!(_ instanceof L.MarkerCluster)&&_._icon&&_.clusterShow()}),this._topClusterLevel._recursively(h,s,r,function(_){_._recursivelyRestoreChildPositions(r)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(h,s,p,function(_){u.removeLayer(_),_.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,r){this._animationZoomOutSingle(this._topClusterLevel,s-1,r),this._topClusterLevel._recursivelyAddChildrenToMap(null,r,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,r){var h=this,u=this._featureGroup;u.addLayer(s),r!==s&&(r._childCount>2?(r._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(r.getLatLng())),s.clusterHide(),this._enqueue(function(){u.removeLayer(s),s.clusterShow(),h._animationEnd()})):(this._forceLayout(),h._animationStart(),h._animationZoomOutSingle(r,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,r,h){var u=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(u,p,r+1,h);var g=this;this._forceLayout(),s._recursivelyBecomeVisible(u,h),this._enqueue(function(){if(s._childCount===1){var _=s._markers[0];this._ignoreMove=!0,_.setLatLng(_.getLatLng()),this._ignoreMove=!1,_.clusterShow&&_.clusterShow()}else s._recursively(u,h,p,function(P){P._recursivelyRemoveChildrenFromMap(u,p,r+1)});g._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(s){return new L.MarkerClusterGroup(s)};var x=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,r,h,u){L.Marker.prototype.initialize.call(this,h?h._cLatLng||h.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=r,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,h&&this._addChild(h),u&&this._addChild(u)},getAllChildMarkers:function(s,r){s=s||[];for(var h=this._childClusters.length-1;h>=0;h--)this._childClusters[h].getAllChildMarkers(s,r);for(var u=this._markers.length-1;u>=0;u--)r&&this._markers[u].__dragStart||s.push(this._markers[u]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var r=this._childClusters.slice(),h=this._group._map,u=h.getBoundsZoom(this._bounds),p=this._zoom+1,g=h.getZoom(),_;r.length>0&&u>p;){p++;var P=[];for(_=0;_p?this._group._map.setView(this._latlng,p):u<=g?this._group._map.setView(this._latlng,g+1):this._group._map.fitBounds(this._bounds,s)},getBounds:function(){var s=new L.LatLngBounds;return s.extend(this._bounds),s},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(s,r){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(r||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(r||this._markers.push(s),this._childCount++),this.__parent&&this.__parent._addChild(s,!0)},_setClusterCenter:function(s){this._cLatLng||(this._cLatLng=s._cLatLng||s._latlng)},_resetBounds:function(){var s=this._bounds;s._southWest&&(s._southWest.lat=1/0,s._southWest.lng=1/0),s._northEast&&(s._northEast.lat=-1/0,s._northEast.lng=-1/0)},_recalculateBounds:function(){var s=this._markers,r=this._childClusters,h=0,u=0,p=this._childCount,g,_,P,y;if(p!==0){for(this._resetBounds(),g=0;g=0;g--)_=p[g],_._icon&&(_._setPos(r),_.clusterHide())},function(u){var p=u._childClusters,g,_;for(g=p.length-1;g>=0;g--)_=p[g],_._icon&&(_._setPos(r),_.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,r,h,u){this._recursively(s,u,r,function(p){p._recursivelyAnimateChildrenIn(s,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),h),p._isSingleParent()&&h-1===u?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(s,r,h)):p.clusterHide(),p._addToMap()})},_recursivelyBecomeVisible:function(s,r){this._recursively(s,this._group._map.getMinZoom(),r,null,function(h){h.clusterShow()})},_recursivelyAddChildrenToMap:function(s,r,h){this._recursively(h,this._group._map.getMinZoom()-1,r,function(u){if(r!==u._zoom)for(var p=u._markers.length-1;p>=0;p--){var g=u._markers[p];h.contains(g._latlng)&&(s&&(g._backupLatlng=g.getLatLng(),g.setLatLng(s),g.clusterHide&&g.clusterHide()),u._group._featureGroup.addLayer(g))}},function(u){u._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var r=this._markers.length-1;r>=0;r--){var h=this._markers[r];h._backupLatlng&&(h.setLatLng(h._backupLatlng),delete h._backupLatlng)}if(s-1===this._zoom)for(var u=this._childClusters.length-1;u>=0;u--)this._childClusters[u]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(s)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(s,r,h,u){var p,g;this._recursively(s,r-1,h-1,function(_){for(g=_._markers.length-1;g>=0;g--)p=_._markers[g],(!u||!u.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(_){for(g=_._childClusters.length-1;g>=0;g--)p=_._childClusters[g],(!u||!u.contains(p._latlng))&&(_._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},_recursively:function(s,r,h,u,p){var g=this._childClusters,_=this._zoom,P,y;if(r<=_&&(u&&u(this),p&&_===h&&p(this)),_=0;P--)y=g[P],y._boundsNeedUpdate&&y._recalculateBounds(),s.intersects(y._bounds)&&y._recursively(s,r,h,u,p)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var s=this.options.opacity;return this.setOpacity(0),this.options.opacity=s,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(s){this._cellSize=s,this._sqCellSize=s*s,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(s,r){var h=this._getCoord(r.x),u=this._getCoord(r.y),p=this._grid,g=p[u]=p[u]||{},_=g[h]=g[h]||[],P=L.Util.stamp(s);this._objectPoint[P]=r,_.push(s)},updateObject:function(s,r){this.removeObject(s),this.addObject(s,r)},removeObject:function(s,r){var h=this._getCoord(r.x),u=this._getCoord(r.y),p=this._grid,g=p[u]=p[u]||{},_=g[h]=g[h]||[],P,y;for(delete this._objectPoint[L.Util.stamp(s)],P=0,y=_.length;P=0;g--){if(_=r[g],P=this.getDistant(_,s),P>0)p.push(_);else continue;P>h&&(h=P,u=_)}return{maxPoint:u,newPoints:p}},buildConvexHull:function(s,r){var h=[],u=this.findMostDistantPointFromBaseLine(s,r);return u.maxPoint?(h=h.concat(this.buildConvexHull([s[0],u.maxPoint],u.newPoints)),h=h.concat(this.buildConvexHull([u.maxPoint,s[1]],u.newPoints)),h):[s[0]]},getConvexHull:function(s){var r=!1,h=!1,u=!1,p=!1,g=null,_=null,P=null,y=null,T=null,C=null,N;for(N=s.length-1;N>=0;N--){var S=s[N];(r===!1||S.lat>r)&&(g=S,r=S.lat),(h===!1||S.latu)&&(P=S,u=S.lng),(p===!1||S.lng=0;u--)h=s[u].getLatLng(),r.push(h);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var s=this.getAllChildMarkers(null,!0),r=this._group,h=r._map,u=h.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(s.length,u):s.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(s.length,u):(u.y+=10,p=this._generatePointsCircle(s.length,u)),this._animationSpiderfy(s,p)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,r){var h=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),u=h/this._2PI,p=this._2PI/s,g=[],_,P;for(u=Math.max(u,35),g.length=s,_=0;_=0;y--)y=0;g--)p=u[g],h.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(r.removeLayer(p._spiderLeg),delete p._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:u}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,r){var h=this._group,u=h._map,p=h._featureGroup,g=this._group.options.spiderLegPolylineOptions,_,P,y,T;for(h._ignoreMove=!0,_=0;_=0;N--)V=p.layerPointToLatLng(r[N]),S=s[N],S._preSpiderfyLatlng=S._latlng,S.setLatLng(V),S.clusterShow&&S.clusterShow(),y&&(A=S._spiderLeg,R=A._path,R.style.strokeDashoffset=0,A.setStyle({opacity:C}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout(function(){u._animationEnd(),u.fire("spiderfied",{cluster:h,markers:s})},200)},_animationUnspiderfy:function(s){var r=this,h=this._group,u=h._map,p=h._featureGroup,g=s?u._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):u.latLngToLayerPoint(this._latlng),_=this.getAllChildMarkers(null,!0),P=L.Path.SVG,y,T,C,N,S,A;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),T=_.length-1;T>=0;T--)y=_[T],y._preSpiderfyLatlng&&(y.closePopup(),y.setLatLng(y._preSpiderfyLatlng),delete y._preSpiderfyLatlng,A=!0,y._setPos&&(y._setPos(g),A=!1),y.clusterHide&&(y.clusterHide(),A=!1),A&&p.removeLayer(y),P&&(C=y._spiderLeg,N=C._path,S=N.getTotalLength()+.1,N.style.strokeDashoffset=S,C.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var R=0;for(T=_.length-1;T>=0;T--)y=_[T],y._spiderLeg&&R++;for(T=_.length-1;T>=0;T--)y=_[T],y._spiderLeg&&(y.clusterShow&&y.clusterShow(),y.setZIndexOffset&&y.setZIndexOffset(0),R>1&&p.removeLayer(y),u.removeLayer(y._spiderLeg),delete y._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:r,markers:_})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(s){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(s))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(s){this._spiderfied&&this._spiderfied.unspiderfy(s)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(s){s._spiderLeg&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow(),s.setZIndexOffset&&s.setZIndexOffset(0),this._map.removeLayer(s._spiderLeg),delete s._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(s){return s?s instanceof L.MarkerClusterGroup?s=s._topClusterLevel.getAllChildMarkers():s instanceof L.LayerGroup?s=s._layers:s instanceof L.MarkerCluster?s=s.getAllChildMarkers():s instanceof L.Marker&&(s=[s]):s=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(s),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(s),this},_flagParentsIconsNeedUpdate:function(s){var r,h;for(r in s)for(h=s[r].__parent;h;)h._iconNeedsUpdate=!0,h=h.__parent},_refreshSingleMarkerModeMarkers:function(s){var r,h;for(r in s)h=s[r],this.hasLayer(h)&&h.setIcon(this._overrideMarkerIcon(h))}}),L.Marker.include({refreshIconOptions:function(s,r){var h=this.options.icon;return L.setOptions(h,s),this.setIcon(h),r&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),l.MarkerClusterGroup=m,l.MarkerCluster=x,Object.defineProperty(l,"__esModule",{value:!0})})})(Lo,Lo.exports);const wa={__name:"map",props:{routeId:String,gpxPath:String},emits:["ready"],setup(d,{emit:f}){const l=d,m=f,x=q(null),s=q([0,0]),r=q(null),h=q(!1),u=q(null);q(null);const p=q(0),g=q(null),_=q(null);q(null);const P=hr();ur(P.entities);const y=q(null);q(null),At(async()=>{(async()=>{const F=await Br("routes",l.gpxPath);u.value=va(new DOMParser().parseFromString(F,"text/xml")),h.value=!0})()});const T={};async function C(){const V=fr(),{data:F,error:Ht}=await V.from("overlays").select("*").eq("route_id",l.routeId),rt={},Z={};F.forEach($=>{rt[$.type]||(rt[$.type]={}),rt[$.name]=JSON.parse($.data),Z[$.name]=!1});var U=new window.L.markerClusterGroup(T);Object.entries(rt).forEach(([$,at])=>{at.features&&at.features.forEach(ve=>{const _t=new L.Marker([ve.geometry.coordinates[1],ve.geometry.coordinates[0]],{icon:it($)});_t.bindPopup(` + + ${Object.entries(ve.properties.tags).map(([si,ht])=>` + + + + + `).join("")} +
${si}: ${ht}
+ `),U.addLayer(_t)})}),y.value.addLayer(U)}function N(){y.value=x.value.leafletObject,C(),S(),A(),m("ready")}function S(){const V=L.geoJSON(u.value).getBounds(),F=[[V._northEast.lat+.05,V._northEast.lng],[V._southWest.lat,V._southWest.lng]];r.value=F,p.value=y.value.getBoundsZoom(F)}async function A(){if(await P.fetch(),!navigator.geolocation){cr().add({type:"error",text:"Geolocation is not supported by your browser"});return}}const R=Kt(()=>{const V=y.value.getZoom();return _.value*3/V});function it(V){if(!V)return null;let F="/marker/information.svg";switch(V){case"spring":case"fountain":case"water_tap":case"water_well":case"drinking water":F="/marker/water-pump.svg";break;case"shelter":case"alpine_hut":case"wilderness_hut":case"camp site":case"cabin":F="/marker/cabin-a-frame.svg";break;case"firepit":case"fireplace":case"bbq":case"campfire":F="/marker/campfire.svg";break;case"waste_basket":case"waste_disposal":F="/marker/trash-can.svg";break;case"toilet":F="/marker/toilet.svg";break;case"recycling":F="/marker/recycle.svg";break;case"vending_machine":F="/marker/store-24-hour.svg";break;case"bench":F="/marker/bench.svg";break;case"viewpoint":case"information":case"picnic_site":case"hiking_route":case"climbing_area":F="/marker/information.svg";break}if(typeof L.icon!="function")throw new Error("L.icon is not a function");return L.icon({iconUrl:F,iconSize:[25,25],iconAnchor:[12,25]})}return lr(async()=>{}),At(()=>{}),(V,F)=>{const Ht=ia,rt=ha,Z=sa,U=dr;return ue(),le(U,null,{default:Lt(()=>[st(h)?(ue(),le(Z,{key:0,ref_key:"map",ref:x,class:"map",zoom:12,"use-global-leaflet":!0,center:st(s),bounds:st(r),onReady:N,"max-zoom":"18"},{default:Lt(()=>[lt(Ht,{geojson:st(u)},null,8,["geojson"]),st(g)?(ue(),le(st(po),{key:0,"lat-lng":st(g),radius:4,fill:!0,fillColor:"green"},null,8,["lat-lng"])):ii("",!0),st(g)?(ue(),le(st(po),{key:1,"lat-lng":st(g),radius:st(R)},null,8,["lat-lng","radius"])):ii("",!0),lt(rt,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap",attribution:'© OpenStreetMap contributors'})]),_:1},8,["center","bounds"])):ii("",!0)]),_:1})}}},Pa=_r({...pr(),...mr({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),xa=gr()({name:"VSpeedDial",props:Pa(),emits:{"update:modelValue":d=>!0},setup(d,f){let{slots:l}=f;const m=vr(d,"modelValue"),x=q(),s=Kt(()=>{const[h,u="center"]=d.location.split(" ");return`${h} ${u}`}),r=Kt(()=>({[`v-speed-dial__content--${s.value.replace(" ","-")}`]:!0}));return yr(()=>{const h=co.filterProps(d);return lt(co,Po(h,{modelValue:m.value,"onUpdate:modelValue":u=>m.value=u,class:d.class,style:d.style,contentClass:["v-speed-dial__content",r.value],location:s.value,ref:x,transition:"fade-transition"}),{...l,default:u=>lt(Lr,{defaults:{VBtn:{size:"small"}}},{default:()=>[lt(wr,{appear:!0,group:!0,transition:d.transition},{default:()=>{var p;return[(p=l.default)==null?void 0:p.call(l,u)]}})]})})}),{}}}),ba={class:"actions-menu-wrapper"},Ca=Ft({__name:"[id]",async setup(d){let f,l;const m=q(!1),x=q(!1),s=Pr();[f,l]=xr(()=>s.fetch()),await f,l();const r=s.byId(br().params.id);async function h(){debugger;await s.delete(r.id),zr("/routes")}function u(){}return(p,g)=>{const _=wa;return ue(),le(Zr,{fluid:"",class:"position-relative"},{default:Lt(()=>[fo("div",ba,[lt(st(xa),{location:"bottom center",transition:"fade-transition",id:"debug"},{activator:Lt(({props:P})=>[lt(st(Ir),Po(P,{size:"large",icon:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}),null,16)]),default:Lt(()=>[lt(Fi,{key:"1",icon:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",onClick:g[0]||(g[0]=P=>x.value=!0)})]),_:1})]),st(m)?ii("",!0):(ue(),le(Cr,{key:0,class:"absolute-center",color:"primary",indeterminate:""})),fo("div",{id:"mapcontainer",ref:"mapcontainer",onClick:g[2]||(g[2]=P=>void 0)},[lt(_,{id:"map","route-id":st(r).id,"gpx-path":st(r).originalFile,onReady:g[1]||(g[1]=P=>m.value=!0)},null,8,["route-id","gpx-path"])],512),lt(Or,{modelValue:st(x),"onUpdate:modelValue":g[5]||(g[5]=P=>kr(x)?x.value=P:null),"max-width":"290"},{default:Lt(()=>[lt(Tr,null,{default:Lt(()=>[lt(Mr,null,{default:Lt(()=>[Hi("Are you sure you want to delete this item?")]),_:1}),lt(Sr,null,{default:Lt(()=>[lt(Fi,{onClick:g[3]||(g[3]=P=>x.value=!1)},{default:Lt(()=>[Hi("Cancel")]),_:1}),lt(Fi,{onClick:g[4]||(g[4]=P=>h())},{default:Lt(()=>[Hi("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),za=Er(Ca,[["__scopeId","data-v-4265c245"]]);export{za as default}; diff --git a/_nuxt/DS0W2dGG.js b/_nuxt/DS0W2dGG.js new file mode 100644 index 0000000..2c2a587 --- /dev/null +++ b/_nuxt/DS0W2dGG.js @@ -0,0 +1 @@ +import{g as bt}from"./CJ7Tzvjl.js";import{aC as ht,_ as yt,c as I,o as pt,v as Pe,a8 as xt,B as Pt,af as Y,x as St,ak as wt,y as kt,z as Ae,aw as It,r as E,aD as Vt,F,O as q,aE as _t,G as Dt,aF as Tt,T as Ct,W as Ft,aG as Bt,X as At,a3 as $t,aH as Lt,I as W,aI as G,aJ as Z,aK as Rt,a5 as Ot,aL as ne,ap as Nt,a6 as ce,aM as Et,aN as ee,a7 as _,L as U,A as i,aj as M,a1 as C,aO as Se,au as we,aP as $e,a0 as X,aQ as Le,as as Re,J,aR as oe,aS as Mt,aT as L,aU as Gt,aV as Ht,aW as Oe,at as H,aX as ie,aY as te,aZ as ve,a_ as Wt,a$ as jt,P as zt,b0 as qt,ae as K,S as ke,b1 as Ne,C as Ie,b2 as de,b3 as Ve,b4 as ae,b5 as Kt}from"./-VvI6Lr7.js";import{V as Ee}from"./FoGmEwba.js";import{V as Me,a as ge}from"./CufEZoaj.js";import{m as Ut,V as _e}from"./Dfnfu-Af.js";import{m as Xt,u as Jt}from"./DBf96Ybk.js";function De(e,l,a){return Object.keys(e).filter(t=>ht(t)&&t.endsWith(l)).reduce((t,n)=>(t[n.slice(0,-l.length)]=r=>e[n](r,a(r)),t),{})}function Qt(e){const t=Math.min(e,1e3)/1e3,n=Math.round(t*255),r=Math.round((1-t)*255);return`rgb(${n}, ${r}, 0)`}const Yt={key:0},Zt={__name:"WeightChip",props:{weight:Number,xsAndDown:Boolean,renderIcon:{type:Boolean,default:!0}},setup(e){const l=e,a=I(()=>l.renderIcon&&!l.xsAndDown);return pt(()=>{a.value=l.renderIcon&&!l.xsAndDown}),(t,n)=>(Pe(),xt(Ee,{"prepend-icon":Y(a)?("getIcon"in t?t.getIcon:Y(bt))("weight"):null,color:("weightColor"in t?t.weightColor:Y(Qt))(e.weight),class:It(`weight ${Y(a),""} ${e.xsAndDown?"mobile":""}`)},{default:Pt(()=>[Y(a)?(Pe(),St("span",Yt,"   ")):wt("",!0),kt("span",null,Ae(e.weight)+"g ",1)]),_:1},8,["prepend-icon","color","class"]))}},qa=yt(Zt,[["__scopeId","data-v-adef31a6"]]);function ea(){const e=E([]);Vt(()=>e.value=[]);function l(a,t){e.value[t]=a}return{refs:e,updateRef:l}}const ta=F({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:q,default:"$first"},prevIcon:{type:q,default:"$prev"},nextIcon:{type:q,default:"$next"},lastIcon:{type:q,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,..._t(),...Dt(),...Tt(),...Ct(),...Ft(),...Bt(),...At({tag:"nav"}),...$t(),...Lt({variant:"text"})},"VPagination"),Te=W()({name:"VPagination",props:ta(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:a,emit:t}=l;const n=G(e,"modelValue"),{t:r,n:u}=Z(),{isRtl:s}=Rt(),{themeClasses:f}=Ot(e),{width:d}=ne(),m=Nt(-1);ce(void 0,{scoped:!0});const{resizeRef:p}=Et(b=>{if(!b.length)return;const{target:c,contentRect:S}=b[0],w=c.querySelector(".v-pagination__list > *");if(!w)return;const V=S.width,T=w.offsetWidth+parseFloat(getComputedStyle(w).marginRight)*2;m.value=x(V,T)}),v=I(()=>parseInt(e.length,10)),y=I(()=>parseInt(e.start,10)),h=I(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):m.value>=0?m.value:x(d.value,58));function x(b,c){const S=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((b-c*S)/c).toFixed(2)))}const o=I(()=>{if(v.value<=0||isNaN(v.value)||v.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[n.value];if(v.value<=h.value)return ee(v.value,y.value);const b=h.value%2===0,c=b?h.value/2:Math.floor(h.value/2),S=b?c:c+1,w=v.value-c;if(S-n.value>=0)return[...ee(Math.max(1,h.value-1),y.value),e.ellipsis,v.value];if(n.value-w>=(b?1:0)){const V=h.value-1,T=v.value-V+y.value;return[y.value,e.ellipsis,...ee(V,T)]}else{const V=Math.max(1,h.value-3),T=V===1?n.value:n.value-Math.ceil(V/2)+y.value;return[y.value,e.ellipsis,...ee(V,T),e.ellipsis,v.value]}});function P(b,c,S){b.preventDefault(),n.value=c,S&&t(S,c)}const{refs:g,updateRef:D}=ea();ce({VPaginationBtn:{color:_(e,"color"),border:_(e,"border"),density:_(e,"density"),size:_(e,"size"),variant:_(e,"variant"),rounded:_(e,"rounded"),elevation:_(e,"elevation")}});const B=I(()=>o.value.map((b,c)=>{const S=w=>D(w,c);if(typeof b=="string")return{isActive:!1,key:`ellipsis-${c}`,page:b,props:{ref:S,ellipsis:!0,icon:!0,disabled:!0}};{const w=b===n.value;return{isActive:w,key:b,page:u(b),props:{ref:S,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:w?e.activeColor:e.color,"aria-current":w,"aria-label":r(w?e.currentPageAriaLabel:e.pageAriaLabel,b),onClick:V=>P(V,b)}}}})),k=I(()=>{const b=!!e.disabled||n.value<=y.value,c=!!e.disabled||n.value>=y.value+v.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:S=>P(S,y.value,"first"),disabled:b,"aria-label":r(e.firstAriaLabel),"aria-disabled":b}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:S=>P(S,n.value-1,"prev"),disabled:b,"aria-label":r(e.previousAriaLabel),"aria-disabled":b},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:S=>P(S,n.value+1,"next"),disabled:c,"aria-label":r(e.nextAriaLabel),"aria-disabled":c},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:S=>P(S,y.value+v.value-1,"last"),disabled:c,"aria-label":r(e.lastAriaLabel),"aria-disabled":c}:void 0}});function $(){var c;const b=n.value-y.value;(c=g.value[b])==null||c.$el.focus()}function R(b){b.key===Se.left&&!e.disabled&&n.value>+e.start?(n.value=n.value-1,we($)):b.key===Se.right&&!e.disabled&&n.valuei(e.tag,{ref:p,class:["v-pagination",f.value,e.class],style:e.style,role:"navigation","aria-label":r(e.ariaLabel),onKeydown:R,"data-test":"v-pagination-root"},{default:()=>[i("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&i("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(k.value.first):i(M,C({_as:"VPaginationBtn"},k.value.first),null)]),i("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(k.value.prev):i(M,C({_as:"VPaginationBtn"},k.value.prev),null)]),B.value.map((b,c)=>i("li",{key:b.key,class:["v-pagination__item",{"v-pagination__item--is-active":b.isActive}],"data-test":"v-pagination-item"},[a.item?a.item(b):i(M,C({_as:"VPaginationBtn"},b.props),{default:()=>[b.page]})])),i("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(k.value.next):i(M,C({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&i("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(k.value.last):i(M,C({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),aa=F({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Ge=Symbol.for("vuetify:data-table-pagination");function la(e){const l=G(e,"page",void 0,t=>+(t??1)),a=G(e,"itemsPerPage",void 0,t=>+(t??10));return{page:l,itemsPerPage:a}}function na(e){const{page:l,itemsPerPage:a,itemsLength:t}=e,n=I(()=>a.value===-1?0:a.value*(l.value-1)),r=I(()=>a.value===-1?t.value:Math.min(t.value,n.value+a.value)),u=I(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));$e(()=>{l.value>u.value&&(l.value=u.value)});function s(v){a.value=v,l.value=1}function f(){l.value=oe(l.value+1,1,u.value)}function d(){l.value=oe(l.value-1,1,u.value)}function m(v){l.value=oe(v,1,u.value)}const p={page:l,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:u,itemsLength:t,nextPage:f,prevPage:d,setPage:m,setItemsPerPage:s};return X(Ge,p),p}function ra(){const e=J(Ge);if(!e)throw new Error("Missing pagination!");return e}function sa(e){const l=Le("usePaginatedItems"),{items:a,startIndex:t,stopIndex:n,itemsPerPage:r}=e,u=I(()=>r.value<=0?a.value:a.value.slice(t.value,n.value));return Re(u,s=>{l.emit("update:currentItems",s)}),{paginatedItems:u}}const He=F({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ce=W()({name:"VDataTableFooter",props:He(),setup(e,l){let{slots:a}=l;const{t}=Z(),{page:n,pageCount:r,startIndex:u,stopIndex:s,itemsLength:f,itemsPerPage:d,setItemsPerPage:m}=ra(),p=I(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:isNaN(Number(v.title))?t(v.title):v.title}));return U(()=>{var y;const v=Te.filterProps(e);return i("div",{class:"v-data-table-footer"},[(y=a.prepend)==null?void 0:y.call(a),i("div",{class:"v-data-table-footer__items-per-page"},[i("span",null,[t(e.itemsPerPageText)]),i(Me,{items:p.value,modelValue:d.value,"onUpdate:modelValue":h=>m(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),i("div",{class:"v-data-table-footer__info"},[i("div",null,[t(e.pageText,f.value?u.value+1:0,s.value,f.value)])]),i("div",{class:"v-data-table-footer__pagination"},[i(Te,C({modelValue:n.value,"onUpdate:modelValue":h=>n.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:r.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},v),null)])])}),{}}}),le=Mt({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:a}=l;const t=e.tag??"td";return i(t,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:L(e.height),width:L(e.width),maxWidth:L(e.maxWidth),left:L(e.fixedOffset||null)}},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a)]}})}),ua=F({headers:Array},"DataTable-header"),We=Symbol.for("vuetify:data-table-headers"),je={title:"",sortable:!1},oa={...je,width:48};function ia(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let n=!1;for(let r=0;rt){l.splice(r,0,{element:a,priority:t}),n=!0;break}n||l.push({element:a,priority:t})},size:()=>l.length,count:()=>{let a=0;if(!l.length)return 0;const t=Math.floor(l[0].priority);for(let n=0;nl.shift()}}function fe(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const a of e.children)fe(a,l);return l}function ze(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&l.add(a.key),a.children&&ze(a.children,l);return l}function da(e){if(e.key){if(e.key==="data-table-group")return je;if(["data-table-expand","data-table-select"].includes(e.key))return oa}}function me(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(a=>me(a,l+1))):l}function ca(e){let l=!1;function a(r){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r)if(u&&(r.fixed=!0),r.fixed)if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s],!0);else l?isNaN(+r.width)&&Ht(`Multiple fixed columns should have a static width (key: ${r.key})`):r.lastFixed=!0,l=!0;else if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s]);else l=!1}for(let r=e.length-1;r>=0;r--)a(e[r]);function t(r){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return u;if(r.children){r.fixedOffset=u;for(const s of r.children)u=t(s,u)}else r.fixed&&(r.fixedOffset=u,u+=parseFloat(r.width||"0")||0);return u}let n=0;for(const r of e)n=t(r,n)}function fa(e,l){const a=[];let t=0;const n=ia(e);for(;n.size()>0;){let u=n.count();const s=[];let f=1;for(;u>0;){const{element:d,priority:m}=n.dequeue(),p=l-t-me(d);if(s.push({...d,rowspan:p??1,colspan:d.children?fe(d).length:1}),d.children)for(const v of d.children){const y=m%1+f/Math.pow(10,t+2);n.enqueue(v,t+p+y)}f+=1,u-=1}t+=1,a.push(s)}return{columns:e.map(u=>fe(u)).flat(),headers:a}}function qe(e){const l=[];for(const a of e){const t={...da(a),...a},n=t.key??(typeof t.value=="string"?t.value:null),r=t.value??n??null,u={...t,key:n,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?qe(t.children):void 0};l.push(u)}return l}function va(e,l){const a=E([]),t=E([]),n=E({}),r=E({}),u=E({});$e(()=>{var x,o,P;const d=(e.headers||Object.keys(e.items[0]??{}).map(g=>({key:g,title:Gt(g)}))).slice(),m=ze(d);(x=l==null?void 0:l.groupBy)!=null&&x.value.length&&!m.has("data-table-group")&&d.unshift({key:"data-table-group",title:"Group"}),(o=l==null?void 0:l.showSelect)!=null&&o.value&&!m.has("data-table-select")&&d.unshift({key:"data-table-select"}),(P=l==null?void 0:l.showExpand)!=null&&P.value&&!m.has("data-table-expand")&&d.push({key:"data-table-expand"});const p=qe(d);ca(p);const v=Math.max(...p.map(g=>me(g)))+1,y=fa(p,v);a.value=y.headers,t.value=y.columns;const h=y.headers.flat(1);for(const g of h)g.key&&(g.sortable&&(g.sort&&(n.value[g.key]=g.sort),g.sortRaw&&(r.value[g.key]=g.sortRaw)),g.filter&&(u.value[g.key]=g.filter))});const s={headers:a,columns:t,sortFunctions:n,sortRawFunctions:r,filterFunctions:u};return X(We,s),s}function re(){const e=J(We);if(!e)throw new Error("Missing headers!");return e}const ga={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:l,value:a}=e;return new Set(a?[H((t=l[0])==null?void 0:t.value)]:[])},selectAll:e=>{let{selected:l}=e;return l}},Ke={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(H(n.value)):t.delete(H(n.value));return t},selectAll:e=>{let{value:l,currentPage:a,selected:t}=e;return Ke.select({items:a,value:l,selected:t})}},Ue={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(H(n.value)):t.delete(H(n.value));return t},selectAll:e=>{let{value:l,allItems:a,selected:t}=e;return Ue.select({items:a,value:l,selected:t})}},ma=F({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:Oe}},"DataTable-select"),Xe=Symbol.for("vuetify:data-table-selection");function ba(e,l){let{allItems:a,currentPage:t}=l;const n=G(e,"modelValue",e.modelValue,o=>new Set(ie(o).map(P=>{var g;return((g=a.value.find(D=>e.valueComparator(P,D.value)))==null?void 0:g.value)??P})),o=>[...o.values()]),r=I(()=>a.value.filter(o=>o.selectable)),u=I(()=>t.value.filter(o=>o.selectable)),s=I(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return ga;case"all":return Ue;case"page":default:return Ke}});function f(o){return ie(o).every(P=>n.value.has(H(P.value)))}function d(o){return ie(o).some(P=>n.value.has(H(P.value)))}function m(o,P){const g=s.value.select({items:o,value:P,selected:new Set(n.value)});n.value=g}function p(o){const P=_(o);m([P.value],!f([P.value]))}function v(o){const P=s.value.selectAll({value:o,allItems:r.value,currentPage:u.value,selected:new Set(n.value)});n.value=P}const y=I(()=>n.value.size>0),h=I(()=>{const o=s.value.allSelected({allItems:r.value,currentPage:u.value});return!!o.length&&f(o)}),x={toggleSelect:p,select:m,selectAll:v,isSelected:f,isSomeSelected:d,someSelected:y,allSelected:h,showSelectAll:s.value.showSelectAll};return X(Xe,x),x}function se(){const e=J(Xe);if(!e)throw new Error("Missing selection!");return e}const ha=F({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Je=Symbol.for("vuetify:data-table-sort");function ya(e){const l=G(e,"sortBy"),a=_(e,"mustSort"),t=_(e,"multiSort");return{sortBy:l,mustSort:a,multiSort:t}}function pa(e){const{sortBy:l,mustSort:a,multiSort:t,page:n}=e,r=f=>{if(f.key==null)return;let d=l.value.map(p=>({...p}))??[];const m=d.find(p=>p.key===f.key);m?m.order==="desc"?a.value?m.order="asc":d=d.filter(p=>p.key!==f.key):m.order="desc":t.value?d=[...d,{key:f.key,order:"asc"}]:d=[{key:f.key,order:"asc"}],l.value=d,n&&(n.value=1)};function u(f){return!!l.value.find(d=>d.key===f.key)}const s={sortBy:l,toggleSort:r,isSorted:u};return X(Je,s),s}function Qe(){const e=J(Je);if(!e)throw new Error("Missing sort!");return e}function xa(e,l,a,t){const n=Z();return{sortedItems:I(()=>{var u,s;return a.value.length?Pa(l.value,a.value,n.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(u=t==null?void 0:t.sortFunctions)==null?void 0:u.value},sortRawFunctions:(s=t==null?void 0:t.sortRawFunctions)==null?void 0:s.value}):l.value})}}function Pa(e,l,a,t){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(u=>[u,t!=null&&t.transform?t.transform(u):u]).sort((u,s)=>{var f,d;for(let m=0;mg!=null?g.toString().toLocaleLowerCase():g),h!==x)return te(h)&&te(x)?0:te(h)?-1:te(x)?1:!isNaN(h)&&!isNaN(x)?Number(h)-Number(x):n.compare(h,x)}}return 0}).map(u=>{let[s]=u;return s})}const Ye=F({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:q,default:"$sortAsc"},sortDescIcon:{type:q,default:"$sortDesc"},headerProps:{type:Object},...ve(),...Wt()},"VDataTableHeaders"),Fe=W()({name:"VDataTableHeaders",props:Ye(),setup(e,l){let{slots:a}=l;const{t}=Z(),{toggleSort:n,sortBy:r,isSorted:u}=Qe(),{someSelected:s,allSelected:f,selectAll:d,showSelectAll:m}=se(),{columns:p,headers:v}=re(),{loaderClasses:y}=jt(e);function h(b,c){if(!(!e.sticky&&!b.fixed))return{position:"sticky",left:b.fixed?L(b.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${c})`:void 0}}function x(b){const c=r.value.find(S=>S.key===b.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:o,backgroundColorStyles:P}=zt(e,"color"),{displayClasses:g,mobile:D}=ne(e),B=I(()=>({headers:v.value,columns:p.value,toggleSort:n,isSorted:u,sortBy:r.value,someSelected:s.value,allSelected:f.value,selectAll:d,getSortIcon:x})),k=I(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},g.value,y.value]),$=b=>{let{column:c,x:S,y:w}=b;const V=c.key==="data-table-select"||c.key==="data-table-expand",T=C(e.headerProps??{},c.headerProps??{});return i(le,C({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable,"v-data-table__th--sorted":u(c),"v-data-table__th--fixed":c.fixed},...k.value],style:{width:L(c.width),minWidth:L(c.minWidth),maxWidth:L(c.maxWidth),...h(c,w)},colspan:c.colspan,rowspan:c.rowspan,onClick:c.sortable?()=>n(c):void 0,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,noPadding:V},T),{default:()=>{var z;const O=`header.${c.key}`,j={column:c,selectAll:d,isSorted:u,toggleSort:n,sortBy:r.value,someSelected:s.value,allSelected:f.value,getSortIcon:x};return a[O]?a[O](j):c.key==="data-table-select"?((z=a["header.data-table-select"])==null?void 0:z.call(a,j))??(m&&i(ge,{modelValue:f.value,indeterminate:s.value&&!f.value,"onUpdate:modelValue":d},null)):i("div",{class:"v-data-table-header__content"},[i("span",null,[c.title]),c.sortable&&i(ke,{key:"icon",class:"v-data-table-header__sort-icon",icon:x(c)},null),e.multiSort&&u(c)&&i("div",{key:"badge",class:["v-data-table-header__sort-badge",...o.value],style:P.value},[r.value.findIndex(ue=>ue.key===c.key)+1])])}})},R=()=>{const b=C(e.headerProps??{}??{}),c=I(()=>p.value.filter(w=>w==null?void 0:w.sortable)),S=I(()=>f.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff");return i(le,C({tag:"th",class:[...k.value],colspan:v.value.length+1},b),{default:()=>[i("div",{class:"v-data-table-header__content"},[i(Me,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:c.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:S.value,"onClick:append":()=>d(!f.value)},{...a,chip:w=>{var V;return i(Ee,{onClick:(V=w.item.raw)!=null&&V.sortable?()=>n(w.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[w.item.title,i(ke,{class:["v-data-table__td-sort-icon",u(w.item.raw)&&"v-data-table__td-sort-icon-active"],icon:x(w.item.raw),size:"small"},null)]})}})])]})};U(()=>D.value?i("tr",null,[i(R,null,null)]):i(K,null,[a.headers?a.headers(B.value):v.value.map((b,c)=>i("tr",null,[b.map((S,w)=>i($,{column:S,x:w,y:c},null))])),e.loading&&i("tr",{class:"v-data-table-progress"},[i("th",{colspan:p.value.length},[i(qt,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Sa=F({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ze=Symbol.for("vuetify:data-table-group");function wa(e){return{groupBy:G(e,"groupBy")}}function ka(e){const{groupBy:l,sortBy:a}=e,t=E(new Set),n=I(()=>l.value.map(d=>({...d,order:d.order??!1})).concat(a.value));function r(d){return t.value.has(d.id)}function u(d){const m=new Set(t.value);r(d)?m.delete(d.id):m.add(d.id),t.value=m}function s(d){function m(p){const v=[];for(const y of p.items)"type"in y&&y.type==="group"?v.push(...m(y)):v.push(y);return v}return m({type:"group",items:d,id:"dummy",key:"dummy",value:"dummy",depth:0})}const f={sortByWithGroups:n,toggleGroup:u,opened:t,groupBy:l,extractRows:s,isGroupOpen:r};return X(Ze,f),f}function et(){const e=J(Ze);if(!e)throw new Error("Missing group!");return e}function Ia(e,l){if(!e.length)return[];const a=new Map;for(const t of e){const n=Ne(t.raw,l);a.has(n)||a.set(n,[]),a.get(n).push(t)}return a}function tt(e,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=Ia(e,l[0]),r=[],u=l.slice(1);return n.forEach((s,f)=>{const d=l[0],m=`${t}_${d}_${f}`;r.push({depth:a,id:m,key:d,value:f,items:u.length?tt(s,u,a+1,m):s,type:"group"})}),r}function at(e,l){const a=[];for(const t of e)"type"in t&&t.type==="group"?(t.value!=null&&a.push(t),(l.has(t.id)||t.value==null)&&a.push(...at(t.items,l))):a.push(t);return a}function Va(e,l,a){return{flatItems:I(()=>{if(!l.value.length)return e.value;const n=tt(e.value,l.value.map(r=>r.key));return at(n,a.value)})}}const _a=F({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),Da=W()({name:"VDataTableGroupHeaderRow",props:_a(),setup(e,l){let{slots:a}=l;const{isGroupOpen:t,toggleGroup:n,extractRows:r}=et(),{isSelected:u,isSomeSelected:s,select:f}=se(),{columns:d}=re(),m=I(()=>r([e.item]));return()=>i("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(p=>{var v,y;if(p.key==="data-table-group"){const h=t(e.item)?"$expand":"$next",x=()=>n(e.item);return((v=a["data-table-group"])==null?void 0:v.call(a,{item:e.item,count:m.value.length,props:{icon:h,onClick:x}}))??i(le,{class:"v-data-table-group-header-row__column"},{default:()=>[i(M,{size:"small",variant:"text",icon:h,onClick:x},null),i("span",null,[e.item.value]),i("span",null,[Ie("("),m.value.length,Ie(")")])]})}if(p.key==="data-table-select"){const h=u(m.value),x=s(m.value)&&!h,o=P=>f(m.value,P);return((y=a["data-table-select"])==null?void 0:y.call(a,{props:{modelValue:h,indeterminate:x,"onUpdate:modelValue":o}}))??i("td",null,[i(ge,{modelValue:h,indeterminate:x,"onUpdate:modelValue":o},null)])}return i("td",null,null)})])}}),Ta=F({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),lt=Symbol.for("vuetify:datatable:expanded");function Ca(e){const l=_(e,"expandOnClick"),a=G(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function t(s,f){const d=new Set(a.value);f?d.add(s.value):d.delete(s.value),a.value=d}function n(s){return a.value.has(s.value)}function r(s){t(s,!n(s))}const u={expand:t,expanded:a,expandOnClick:l,isExpanded:n,toggleExpand:r};return X(lt,u),u}function nt(){const e=J(lt);if(!e)throw new Error("foo");return e}const Fa=F({index:Number,item:Object,cellProps:[Object,Function],onClick:de(),onContextmenu:de(),onDblclick:de(),...ve()},"VDataTableRow"),Ba=W()({name:"VDataTableRow",props:Fa(),setup(e,l){let{slots:a}=l;const{displayClasses:t,mobile:n}=ne(e,"v-data-table__tr"),{isSelected:r,toggleSelect:u,someSelected:s,allSelected:f,selectAll:d}=se(),{isExpanded:m,toggleExpand:p}=nt(),{toggleSort:v,sortBy:y,isSorted:h}=Qe(),{columns:x}=re();U(()=>i("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&x.value.map((o,P)=>{const g=e.item,D=`item.${o.key}`,B=`header.${o.key}`,k={index:e.index,item:g.raw,internalItem:g,value:Ne(g.columns,o.key),column:o,isSelected:r,toggleSelect:u,isExpanded:m,toggleExpand:p},$={column:o,selectAll:d,isSorted:h,toggleSort:v,sortBy:y.value,someSelected:s.value,allSelected:f.value,getSortIcon:()=>""},R=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:o}):e.cellProps,b=typeof o.cellProps=="function"?o.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):o.cellProps;return i(le,C({align:o.align,class:{"v-data-table__td--expanded-row":o.key==="data-table-expand","v-data-table__td--select-row":o.key==="data-table-select"},fixed:o.fixed,fixedOffset:o.fixedOffset,lastFixed:o.lastFixed,maxWidth:n.value?void 0:o.maxWidth,noPadding:o.key==="data-table-select"||o.key==="data-table-expand",nowrap:o.nowrap,width:n.value?void 0:o.width},R,b),{default:()=>{var S,w,V,T,O;if(a[D]&&!n.value)return(S=a[D])==null?void 0:S.call(a,k);if(o.key==="data-table-select")return((w=a["item.data-table-select"])==null?void 0:w.call(a,k))??i(ge,{disabled:!g.selectable,modelValue:r([g]),onClick:Ve(()=>u(g),["stop"])},null);if(o.key==="data-table-expand")return((V=a["item.data-table-expand"])==null?void 0:V.call(a,k))??i(M,{icon:m(g)?"$collapse":"$expand",size:"small",variant:"text",onClick:Ve(()=>p(g),["stop"])},null);const c=Ae(k.value);return n.value?i(K,null,[i("div",{class:"v-data-table__td-title"},[((T=a[B])==null?void 0:T.call(a,$))??o.title]),i("div",{class:"v-data-table__td-value"},[((O=a[D])==null?void 0:O.call(a,k))??c])]):c}})})]))}}),rt=F({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...ve()},"VDataTableRows"),Be=W()({name:"VDataTableRows",inheritAttrs:!1,props:rt(),setup(e,l){let{attrs:a,slots:t}=l;const{columns:n}=re(),{expandOnClick:r,toggleExpand:u,isExpanded:s}=nt(),{isSelected:f,toggleSelect:d}=se(),{toggleGroup:m,isGroupOpen:p}=et(),{t:v}=Z(),{mobile:y}=ne(e);return U(()=>{var h,x;return e.loading&&(!e.items.length||t.loading)?i("tr",{class:"v-data-table-rows-loading",key:"loading"},[i("td",{colspan:n.value.length},[((h=t.loading)==null?void 0:h.call(t))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?i("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[i("td",{colspan:n.value.length},[((x=t["no-data"])==null?void 0:x.call(t))??v(e.noDataText)])]):i(K,null,[e.items.map((o,P)=>{var B;if(o.type==="group"){const k={index:P,item:o,columns:n.value,isExpanded:s,toggleExpand:u,isSelected:f,toggleSelect:d,toggleGroup:m,isGroupOpen:p};return t["group-header"]?t["group-header"](k):i(Da,C({key:`group-header_${o.id}`,item:o},De(a,":group-header",()=>k)),t)}const g={index:P,item:o.raw,internalItem:o,columns:n.value,isExpanded:s,toggleExpand:u,isSelected:f,toggleSelect:d},D={...g,props:C({key:`item_${o.key??o.index}`,onClick:r.value?()=>{u(o)}:void 0,index:P,item:o,cellProps:e.cellProps,mobile:y.value},De(a,":row",()=>g),typeof e.rowProps=="function"?e.rowProps({item:g.item,index:g.index,internalItem:g.internalItem}):e.rowProps)};return i(K,{key:D.props.key},[t.item?t.item(D):i(Ba,D.props,t),s(o)&&((B=t["expanded-row"])==null?void 0:B.call(t,g))])})])}),{}}}),Aa=F({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function $a(e,l,a,t){const n=e.returnObject?l:ae(l,e.itemValue),r=ae(l,e.itemSelectable,!0),u=t.reduce((s,f)=>(f.key!=null&&(s[f.key]=ae(l,f.value)),s),{});return{type:"item",key:e.returnObject?ae(l,e.itemValue):n,index:a,value:n,selectable:r,columns:u,raw:l}}function La(e,l,a){return l.map((t,n)=>$a(e,t,n,a))}function Ra(e,l){return{items:I(()=>La(e,e.items,l.value))}}function Oa(e){let{page:l,itemsPerPage:a,sortBy:t,groupBy:n,search:r}=e;const u=Le("VDataTable"),s=I(()=>({page:l.value,itemsPerPage:a.value,sortBy:t.value,groupBy:n.value,search:r.value}));let f=null;Re(s,()=>{Oe(f,s.value)||(f&&f.search!==s.value.search&&(l.value=1),u.emit("update:options",s.value),f=s.value)},{deep:!0,immediate:!0})}const Na=F({...rt(),width:[String,Number],search:String,...Ta(),...Sa(),...ua(),...Aa(),...ma(),...ha(),...Ye(),...Ut()},"DataTable"),Ea=F({...aa(),...Na(),...Xt(),...He()},"VDataTable"),Ka=W()({name:"VDataTable",props:Ea(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=wa(e),{sortBy:r,multiSort:u,mustSort:s}=ya(e),{page:f,itemsPerPage:d}=la(e),{columns:m,headers:p,sortFunctions:v,sortRawFunctions:y,filterFunctions:h}=va(e,{groupBy:n,showSelect:_(e,"showSelect"),showExpand:_(e,"showExpand")}),{items:x}=Ra(e,m),o=_(e,"search"),{filteredItems:P}=Jt(e,x,o,{transform:N=>N.columns,customKeyFilter:h}),{toggleSort:g}=pa({sortBy:r,multiSort:u,mustSort:s,page:f}),{sortByWithGroups:D,opened:B,extractRows:k,isGroupOpen:$,toggleGroup:R}=ka({groupBy:n,sortBy:r}),{sortedItems:b}=xa(e,P,D,{transform:N=>N.columns,sortFunctions:v,sortRawFunctions:y}),{flatItems:c}=Va(b,n,B),S=I(()=>c.value.length),{startIndex:w,stopIndex:V,pageCount:T,setItemsPerPage:O}=na({page:f,itemsPerPage:d,itemsLength:S}),{paginatedItems:j}=sa({items:c,startIndex:w,stopIndex:V,itemsPerPage:d}),z=I(()=>k(j.value)),{isSelected:ue,select:st,selectAll:ut,toggleSelect:ot,someSelected:it,allSelected:dt}=ba(e,{allItems:x,currentPage:z}),{isExpanded:ct,toggleExpand:ft}=Ca(e);Oa({page:f,itemsPerPage:d,sortBy:r,groupBy:n,search:o}),ce({VDataTableRows:{hideNoData:_(e,"hideNoData"),noDataText:_(e,"noDataText"),loading:_(e,"loading"),loadingText:_(e,"loadingText")}});const A=I(()=>({page:f.value,itemsPerPage:d.value,sortBy:r.value,pageCount:T.value,toggleSort:g,setItemsPerPage:O,someSelected:it.value,allSelected:dt.value,isSelected:ue,select:st,selectAll:ut,toggleSelect:ot,isExpanded:ct,toggleExpand:ft,isGroupOpen:$,toggleGroup:R,items:z.value.map(N=>N.raw),internalItems:z.value,groupedItems:j.value,columns:m.value,headers:p.value}));return U(()=>{const N=Ce.filterProps(e),vt=Fe.filterProps(e),gt=Be.filterProps(e),mt=_e.filterProps(e);return i(_e,C({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},mt),{top:()=>{var Q;return(Q=t.top)==null?void 0:Q.call(t,A.value)},default:()=>{var Q,be,he,ye,pe,xe;return t.default?t.default(A.value):i(K,null,[(Q=t.colgroup)==null?void 0:Q.call(t,A.value),i("thead",null,[i(Fe,vt,t)]),(be=t.thead)==null?void 0:be.call(t,A.value),i("tbody",null,[(he=t["body.prepend"])==null?void 0:he.call(t,A.value),t.body?t.body(A.value):i(Be,C(a,gt,{items:j.value}),t),(ye=t["body.append"])==null?void 0:ye.call(t,A.value)]),(pe=t.tbody)==null?void 0:pe.call(t,A.value),(xe=t.tfoot)==null?void 0:xe.call(t,A.value)])},bottom:()=>t.bottom?t.bottom(A.value):i(K,null,[i(Kt,null,null),i(Ce,N,{prepend:t["footer.prepend"]})])})}),{}}});export{Ka as V,qa as _}; diff --git a/_nuxt/Dfnfu-Af.js b/_nuxt/Dfnfu-Af.js new file mode 100644 index 0000000..70c08e7 --- /dev/null +++ b/_nuxt/Dfnfu-Af.js @@ -0,0 +1 @@ +import{F as h,G as m,aF as b,X as d,a3 as v,I as f,a5 as c,b6 as u,L as g,A as t,aT as T}from"./-VvI6Lr7.js";const x=h({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...m(),...b(),...d(),...v()},"VTable"),k=f()({name:"VTable",props:x(),setup(a,r){let{slots:e,emit:y}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:T(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{k as V,x as m}; diff --git a/_nuxt/DiQtFf9u.js b/_nuxt/DiQtFf9u.js new file mode 100644 index 0000000..5e2e844 --- /dev/null +++ b/_nuxt/DiQtFf9u.js @@ -0,0 +1 @@ +import{_ as a}from"./CBLhoS0v.js";import{d as n,bt as r,ay as _,an as c,v as i,a8 as p,B as m,A as f}from"./-VvI6Lr7.js";import{V as l}from"./n5OR3jin.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";const y=n({__name:"settings",async setup(u){let t,e;const s=r();return _(s),[t,e]=c(()=>s.fetch()),await t,e(),(d,g)=>{const o=a;return i(),p(l,null,{default:m(()=>[f(o)]),_:1})}}});export{y as default}; diff --git a/_nuxt/DodWYXGC.js b/_nuxt/DodWYXGC.js new file mode 100644 index 0000000..6984578 --- /dev/null +++ b/_nuxt/DodWYXGC.js @@ -0,0 +1 @@ +import{d as r,v as c,a8 as _,B as l,A as e,a9 as o,C as a,aa as d,ab as s,y as t,z as n}from"./-VvI6Lr7.js";import{V as m}from"./Dfnfu-Af.js";import{V as f}from"./n5OR3jin.js";const h=t("td",null,"Total distance hiked:",-1),T=t("td",null,"Total elevation climbed:",-1),p=t("td",null,"Total distance hiked:",-1),V=t("td",null,"Total elevation climbed:",-1),C=t("td",null,"Total item count:",-1),k=t("td",null,"Total items weight:",-1),v=t("td",null,"Favourite Inventory:",-1),u=100,i=1e3,b=100,x=100,y="Tent",F=r({__name:"index",setup(g){return(B,I)=>(c(),_(f,null,{default:l(()=>[e(s,null,{default:l(()=>[e(o,null,{default:l(()=>[a("Friends")]),_:1}),e(d)]),_:1}),e(s,null,{default:l(()=>[e(o,null,{default:l(()=>[a("Summary")]),_:1}),e(d,null,{default:l(()=>[e(m,null,{default:l(()=>[t("tbody",null,[t("tr",null,[h,t("td",null,n(u)+" km")]),t("tr",null,[T,t("td",null,n(i)+" m")]),t("tr",null,[p,t("td",null,n(u)+" km")]),t("tr",null,[V,t("td",null,n(i)+" m")]),t("tr",null,[C,t("td",null,n(b))]),t("tr",null,[k,t("td",null,n(x)+" kg")]),t("tr",null,[v,t("td",null,n(y))])])]),_:1}),a(" Total Items Category distribution: ")]),_:1})]),_:1})]),_:1}))}});export{F as default}; diff --git a/_nuxt/Dp0yv6TN.js b/_nuxt/Dp0yv6TN.js new file mode 100644 index 0000000..199d741 --- /dev/null +++ b/_nuxt/Dp0yv6TN.js @@ -0,0 +1 @@ +import{u as I,_ as B}from"./CJ7Tzvjl.js";import{V as D,_ as N}from"./DS0W2dGG.js";import{d as k,ax as Z,a7 as j,an as q,r as z,i as E,v as i,a8 as V,B as e,A as o,af as a,ag as F,y as C,C as p,z as b,ak as _,x as f,aw as y,S as g,aj as A,q as h,ab as W,D as R,E as U,_ as w}from"./-VvI6Lr7.js";import{V as G}from"./TjYH8LVs.js";import{V as J}from"./n5OR3jin.js";import{V as K}from"./-cMAfuNF.js";import"./FoGmEwba.js";import"./CufEZoaj.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";import"./Dfnfu-Af.js";import"./DBf96Ybk.js";const O=l=>(R("data-v-97041028"),l=l(),U(),l),P={key:0,class:"fix-overflow"},Q={key:0},X={key:0},Y=O(()=>C("span",null," Edit ",-1)),ee=k({__name:"list",async setup(l){let r,c;const u=Z(),v=j(u);[r,c]=q(()=>u.fetch()),await r,c();const{xsAndDown:m}=I(),x=[{title:"Name",value:"name",sortable:!0,filterable:!0},{title:"Category",value:"category",sortable:!0,filterable:!0},{title:"Weight",value:"weight",sortable:!0,filterable:!0},{title:"",value:"edit",align:"end",sortable:!1,filterable:!1}],d=z(""),L={weight:(n,s)=>n-s,category:(n,s)=>n.name.localeCompare(s.name),amount:(n,s)=>n-s},H={};return(n,s)=>{const M=E("Vue3Marquee"),S=B,T=N;return i(),V(W,null,{text:e(()=>[o(G,{modelValue:a(d),"onUpdate:modelValue":s[0]||(s[0]=t=>F(d)?d.value=t:null),label:"Search","prepend-inner-icon":"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",variant:"outlined","hide-details":"","single-line":""},null,8,["modelValue"])]),default:e(()=>[o(D,{id:"items-table",items:a(v).entities,headers:x,"items-per-page":"50",search:a(d),"custom-key-sort":L,"custom-filter":H,"mobile-breakpoint":"0"},{"item.name":e(({item:t})=>[C("div",null,[t.name.length>18?(i(),V(M,{key:0,"animate-on-overflow-only":"true"},{default:e(()=>[p(b(t.name)+"  ",1)]),_:2},1024)):_("",!0)]),t.name.length<=18?(i(),f("span",P,b(t.name),1)):_("",!0)]),"header.category":e(()=>[C("div",{class:y(`d-flex ${a(m)?"justify-center align-center":""}`)},[o(g,null,{default:e(()=>[p("M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z")]),_:1}),a(m)?_("",!0):(i(),f("span",Q,"  Category "))],2)]),"header.weight":e(()=>[C("div",{class:y(`d-flex ${a(m)?"justify-center align-center":""}`)},[o(g,null,{default:e(()=>[p("M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z")]),_:1}),a(m)?_("",!0):(i(),f("span",X,"  Weight "))],2)]),"item.category":e(({item:t})=>[o(S,{category:t.category},null,8,["category"])]),"item.edit":e(({item:t})=>[o(A,{block:"",class:"d-block d-sm-none",onClick:$=>("navigateTo"in n?n.navigateTo:a(h))(`/items/${t.id}`)},{default:e(()=>[o(g,null,{default:e(()=>[p("M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z")]),_:1})]),_:2},1032,["onClick"]),o(A,{block:"",class:"d-none d-sm-block",onClick:$=>("navigateTo"in n?n.navigateTo:a(h))(`/items/${t.id}`)},{default:e(()=>[Y]),_:2},1032,["onClick"])]),"item.weight":e(({item:t})=>[o(T,{weight:t.weight,xsAndDown:a(m)},null,8,["weight","xsAndDown"])]),_:1},8,["items","search"])]),_:1})}}}),te=w(ee,[["__scopeId","data-v-97041028"]]),ae=k({__name:"index",setup(l){return(r,c)=>{const u=te;return i(),V(J,{class:"px-0"},{default:e(()=>[o(a(K),{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",class:"pa-5",onClick:c[0]||(c[0]=v=>("navigateTo"in r?r.navigateTo:a(h))("/items/new"))}),o(u)]),_:1})}}}),Ce=w(ae,[["__scopeId","data-v-7309b5b6"]]);export{Ce as default}; diff --git a/_nuxt/DvMxV5Ax.js b/_nuxt/DvMxV5Ax.js new file mode 100644 index 0000000..5a20015 --- /dev/null +++ b/_nuxt/DvMxV5Ax.js @@ -0,0 +1 @@ +import{_ as a,t as o,v as s,x as i,y as e,z as r,D as u,E as l}from"./-VvI6Lr7.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(x,m)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; diff --git a/_nuxt/Dy845a-Y.js b/_nuxt/Dy845a-Y.js new file mode 100644 index 0000000..b5fdb56 --- /dev/null +++ b/_nuxt/Dy845a-Y.js @@ -0,0 +1,322 @@ +import{F as O,G as Y,H as z,I as L,J as U,K as J,L as R,A as t,M as _,N as $,V as Q,O as W,R as ee,P as B,c as T,Q as te,S as I,T as oe,U as ie,W as ne,X as ae,Y as se,Z as re,$ as le,a0 as ce,a1 as P,a2 as de,a3 as ue,a4 as he,a5 as pe,a6 as fe,a7 as l,d as me,r as Te,i as be,v as m,a8 as E,B as i,a9 as N,C as u,aa as Ie,ab as S,ac as ye,x as D,ad as V,ae as M,af as ge,ag as Ee,ah as Oe,z as b,ai as Le,y as v,aj as F,ak as w}from"./-VvI6Lr7.js";import{V as Re}from"./n5OR3jin.js";import{V as Ae,a as C}from"./CRmmW6t3.js";const G=O({...Y(),...z()},"VExpansionPanelText"),H=L()({name:"VExpansionPanelText",props:G(),setup(e,c){let{slots:n}=c;const o=U(y);if(!o)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:h,onAfterLeave:r}=J(e,o.isSelected);return R(()=>t(Q,{onAfterLeave:r},{default:()=>{var s;return[_(t("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&h.value&&t("div",{class:"v-expansion-panel-text__wrapper"},[(s=n.default)==null?void 0:s.call(n)])]),[[$,o.isSelected.value]])]}})),{}}}),j=O({color:String,expandIcon:{type:W,default:"$expand"},collapseIcon:{type:W,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Y()},"VExpansionPanelTitle"),k=L()({name:"VExpansionPanelTitle",directives:{Ripple:ee},props:j(),setup(e,c){let{slots:n}=c;const o=U(y);if(!o)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:h,backgroundColorStyles:r}=B(e,"color"),s=T(()=>({collapseIcon:e.collapseIcon,disabled:o.disabled.value,expanded:o.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return R(()=>{var p;return _(t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":o.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},h.value,e.class],style:[r.value,e.style],type:"button",tabindex:o.disabled.value?-1:void 0,disabled:o.disabled.value,"aria-expanded":o.isSelected.value,onClick:e.readonly?void 0:o.toggle},[t("span",{class:"v-expansion-panel-title__overlay"},null),(p=n.default)==null?void 0:p.call(n,s.value),!e.hideActions&&t("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(s.value):t(I,{icon:o.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[te("ripple"),e.ripple]])}),{}}}),Z=O({title:String,text:String,bgColor:String,...oe(),...ie(),...ne(),...ae(),...j(),...G()},"VExpansionPanel"),Ne=L()({name:"VExpansionPanel",props:Z(),emits:{"group:selected":e=>!0},setup(e,c){let{slots:n}=c;const o=se(e,y),{backgroundColorClasses:h,backgroundColorStyles:r}=B(e,"bgColor"),{elevationClasses:s}=re(e),{roundedClasses:p}=le(e),a=T(()=>(o==null?void 0:o.disabled.value)||e.disabled),g=T(()=>o.group.items.value.reduce((f,d,A)=>(o.group.selected.value.includes(d.id)&&f.push(A),f),[])),K=T(()=>{const f=o.group.items.value.findIndex(d=>d.id===o.id);return!o.isSelected.value&&g.value.some(d=>d-f===1)}),X=T(()=>{const f=o.group.items.value.findIndex(d=>d.id===o.id);return!o.isSelected.value&&g.value.some(d=>d-f===-1)});return ce(y,o),R(()=>{const f=!!(n.text||e.text),d=!!(n.title||e.title),A=k.filterProps(e),q=H.filterProps(e);return t(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":o.isSelected.value,"v-expansion-panel--before-active":K.value,"v-expansion-panel--after-active":X.value,"v-expansion-panel--disabled":a.value},p.value,h.value,e.class],style:[r.value,e.style]},{default:()=>{var x;return[t("div",{class:["v-expansion-panel__shadow",...s.value]},null),d&&t(k,P({key:"title"},A),{default:()=>[n.title?n.title():e.title]}),f&&t(H,P({key:"text"},q),{default:()=>[n.text?n.text():e.text]}),(x=n.default)==null?void 0:x.call(n)]}})}),{}}}),y=Symbol.for("vuetify:v-expansion-panel"),Se=["default","accordion","inset","popout"],ve=O({flat:Boolean,...de(),...Z(),...ue(),variant:{type:String,default:"default",validator:e=>Se.includes(e)}},"VExpansionPanels"),we=L()({name:"VExpansionPanels",props:ve(),emits:{"update:modelValue":e=>!0},setup(e,c){let{slots:n}=c;he(e,y);const{themeClasses:o}=pe(e),h=T(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return fe({VExpansionPanel:{bgColor:l(e,"bgColor"),collapseIcon:l(e,"collapseIcon"),color:l(e,"color"),eager:l(e,"eager"),elevation:l(e,"elevation"),expandIcon:l(e,"expandIcon"),focusable:l(e,"focusable"),hideActions:l(e,"hideActions"),readonly:l(e,"readonly"),ripple:l(e,"ripple"),rounded:l(e,"rounded"),static:l(e,"static")}}),R(()=>t(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},o.value,h.value,e.class],style:e.style},n)),{}}}),Ce={class:"ml-2"},He={class:"d-flex justify-center"},Pe=me({__name:"about",setup(e){const c=Te([]),n=[{title:"nougatbyte",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"https://github.com/nougatbyte"},{title:"casraw",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"#"},{title:"pye",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"#"}],o=[{title:"Vite",icon:"custom:vite",link:"https://vitejs.dev/",supportLink:"",licence:`MIT License + +Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.`},{title:"Vuetify",icon:"custom:vuetify",link:"https://vuetifyjs.com",supportLink:"https://vuetifyjs.com/en/introduction/sponsors-and-backers/#preamble",licence:`The MIT License (MIT) + +Copyright (c) 2016-2023 John Jeremy Leider + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the +Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +`},{title:"Vue",icon:"custom:vue",link:"https://vuejs.org/",supportLink:"https://vuejs.org/sponsor/",licence:`The MIT License (MIT) + +Copyright (c) 2013-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.`},{title:"Supabase",icon:"custom:supabase",link:"https://supabase.com/",supportLink:"https://supabase.com/pricing",licence:` Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2024 Supabase + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License.`},{title:"Pl@ntNet",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://plantnet.org",supportLink:"https://plantnet.org/donations/",licence:`MIT License + +Copyright (c) 2022 Cos4Cloud & Pl@ntNet + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.`},{title:"gpx.studio",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://gpx.studio/about.html",supportLink:"https://ko-fi.com/gpxstudio",licence:`Copyright 2019 Vianney Coppé + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.`},{title:"OpenStreetMap",icon:"custom:osm",link:"https://openstreetmap.org",supportLink:"https://donate.openstreetmap.org/",licence:""},{title:"Material Design Icons",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://pictogrammers.com/library/mdi/",supportLink:"",licence:`Pictogrammers Free License +-------------------------- + +Last Updated: February 1st, 2023 + +This package is released as free, open-source, and GPL friendly by +the [Pictogrammers](https://pictogrammers.com/). You may use it +for commercial projects, open-source projects, or anything really. + +# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) +Some of the icons are redistributed under the Apache 2.0 license. All other +icons are either redistributed under their respective licenses or are +distributed under the Apache 2.0 license. + +# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) +All web and desktop fonts are distributed under the Apache 2.0 license. Web +and desktop fonts contain some icons that are redistributed under the Apache +2.0 license. All other icons are either redistributed under their respective +licenses or are distributed under the Apache 2.0 license. + +# Code: MIT (https://opensource.org/licenses/MIT) +The MIT license applies to all non-font and non-icon files.`},{title:"Icons by Cahya Kurniawan",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://dribbble.com/sikeystudio?ref=svgrepo.com",supportLink:"",licence:`Vectors and icons by Cahya Kurniawan +[https://dribbble.com/sikeystudio?ref=svgrepo.com] in CC Attribution License +via SVG Repo +[https://www.svgrepo.com/]`}];function h(r){for(let s=r.length-1;s>0;s--){const p=Math.floor(Math.random()*(s+1));[r[s],r[p]]=[r[p],r[s]]}}return h(n),h(o),(r,s)=>{const p=be("v-list-item-icon");return m(),E(Re,null,{default:i(()=>[t(S,{class:"mb-2"},{default:i(()=>[t(N,null,{default:i(()=>[u("About")]),_:1}),t(Ie,null,{default:i(()=>[u(" This app is a work in progress and is not yet ready for production use. It is a personal project and is not affiliated with any organization. The app is open source and the code can be found on GitHub. Any feedback or suggestions are welcome. This is just AI generated text. I will update this later. ")]),_:1})]),_:1}),t(S,{class:"mb-2"},{default:i(()=>[t(N,null,{default:i(()=>[t(I,{color:"primary"},{default:i(()=>[u("M5 9.15V7C5 5.9 5.9 5 7 5H17C18.1 5 19 5.9 19 7V9.16C17.84 9.57 17 10.67 17 11.97V14H7V11.96C7 10.67 6.16 9.56 5 9.15M20 10C18.9 10 18 10.9 18 12V15H6V12C6 10.9 5.11 10 4 10S2 10.9 2 12V17C2 18.1 2.9 19 4 19V21H6V19H18V21H20V19C21.1 19 22 18.1 22 17V12C22 10.9 21.1 10 20 10Z")]),_:1}),u(" Main contributors")]),_:1}),t(ye,null,{default:i(()=>[(m(),D(M,null,V(n,a=>t(Oe,{key:a.title,link:"",target:"_blank",href:a.link},{prepend:i(()=>[t(p,{class:"pr-3"},{default:i(()=>[t(I,null,{default:i(()=>[u(b(a.icon),1)]),_:2},1024)]),_:2},1024)]),default:i(()=>[t(Le,null,{default:i(()=>[u(b(a.title),1)]),_:2},1024)]),_:2},1032,["href"])),64))]),_:1})]),_:1}),t(S,null,{default:i(()=>[t(N,null,{default:i(()=>[t(I,{color:"primary"},{default:i(()=>[u("M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z")]),_:1}),u(" Made possible by")]),_:1}),t(we,{variant:"inset",modelValue:ge(c),"onUpdate:modelValue":s[0]||(s[0]=a=>Ee(c)?c.value=a:null)},{default:i(()=>[(m(),D(M,null,V(o,(a,g)=>t(Ne,{key:g},{default:i(()=>[t(k,{"expand-icon":"M7,10L12,15L17,10H7Z"},{default:i(()=>[t(I,null,{default:i(()=>[u(b(a.icon),1)]),_:2},1024),v("span",Ce,b(a.title),1)]),_:2},1024),t(H,null,{default:i(()=>[t(Ae,{class:"my-2"},{default:i(()=>[a.link?(m(),E(C,{key:0,class:"text-center"},{default:i(()=>[t(F,{color:"primary","prepend-icon":"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",href:a.link,target:"_blank",rel:"noopener noreferrer"},{default:i(()=>[u("Website")]),_:2},1032,["href"])]),_:2},1024)):w("",!0),a.supportLink?(m(),E(C,{key:1,class:"text-center"},{default:i(()=>[a.supportLink?(m(),E(F,{key:0,color:"primary","prepend-icon":"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",href:a.supportLink,target:"_blank",rel:"noopener noreferrer"},{default:i(()=>[u("Donate")]),_:2},1032,["href"])):w("",!0)]),_:2},1024)):w("",!0),t(C,{cols:"12"},{default:i(()=>[v("div",He,[v("pre",null,b(a.licence),1)])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})}}});export{Pe as default}; diff --git a/_nuxt/FoGmEwba.js b/_nuxt/FoGmEwba.js new file mode 100644 index 0000000..f9d7d4b --- /dev/null +++ b/_nuxt/FoGmEwba.js @@ -0,0 +1 @@ +import{F as Q,O as G,G as X,aZ as be,X as Z,a2 as ue,I as j,aK as Se,aL as Ce,a4 as re,ap as F,c as k,aM as ee,c5 as Ie,bc as le,as as xe,L as de,A as i,c6 as ae,S as _,c7 as Ve,aW as Pe,a3 as ve,aH as fe,a5 as pe,a6 as ze,a7 as D,a1 as he,b2 as te,aE as Ae,aF as _e,T as Ee,U as Re,W as we,c8 as Te,aG as Fe,R as Ge,aJ as Oe,c9 as Be,ca as Me,b6 as We,Z as De,$ as Le,cb as He,aI as $e,Y as Ke,cc as qe,M as ne,Q as Ne,cd as Ue,b_ as Qe,bg as L,N as Xe,ae as se,be as ie}from"./-VvI6Lr7.js";function Ze(e){let{selectedElement:n,containerElement:t,isRtl:u,isHorizontal:o}=e;const y=O(o,t),c=ye(o,u,t),g=O(o,n),v=ge(o,n),m=g*.4;return c>v?v-m:c+ytypeof e=="boolean"||["always","desktop","mobile"].includes(e)},...X(),...be(),...Z(),...ue({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ce=j()({name:"VSlideGroup",props:ke(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;const{isRtl:u}=Se(),{displayClasses:o,mobile:y}=Ce(e),c=re(e,e.symbol),g=F(!1),v=F(0),m=F(0),I=F(0),d=k(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:E}=ee(),{resizeRef:p,contentRect:V}=ee(),s=Ie(),b=k(()=>({container:f.value,duration:200,easing:"easeOutQuart"})),H=k(()=>c.selected.value.length?c.items.value.findIndex(l=>l.id===c.selected.value[0]):-1),S=k(()=>c.selected.value.length?c.items.value.findIndex(l=>l.id===c.selected.value[c.selected.value.length-1]):-1);if(le){let l=-1;xe(()=>[c.selected.value,E.value,V.value,d.value],()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{if(E.value&&V.value){const a=d.value?"width":"height";m.value=E.value[a],I.value=V.value[a],g.value=m.value+1=0&&p.value){const a=p.value.children[S.value];R(a,e.centerActive)}})})}const P=F(!1);function R(l,a){let r=0;a?r=je({containerElement:f.value,isHorizontal:d.value,selectedElement:l}):r=Ze({containerElement:f.value,isHorizontal:d.value,isRtl:u.value,selectedElement:l}),B(r)}function B(l){if(!le||!f.value)return;const a=O(d.value,f.value),r=ye(d.value,u.value,f.value);if(!(oe(d.value,f.value)<=a||Math.abs(l-r)<16)){if(d.value&&u.value&&f.value){const{scrollWidth:W,offsetWidth:U}=f.value;l=W-U-l}d.value?s.horizontal(l,b.value):s(l,b.value)}}function h(l){const{scrollTop:a,scrollLeft:r}=l.target;v.value=d.value?r:a}function x(l){if(P.value=!0,!(!g.value||!p.value)){for(const a of l.composedPath())for(const r of p.value.children)if(r===a){R(r);return}}}function $(l){P.value=!1}let w=!1;function M(l){var a;!w&&!P.value&&!(l.relatedTarget&&((a=p.value)!=null&&a.contains(l.relatedTarget)))&&C(),w=!1}function T(){w=!0}function K(l){if(!p.value)return;function a(r){l.preventDefault(),C(r)}d.value?l.key==="ArrowRight"?a(u.value?"prev":"next"):l.key==="ArrowLeft"&&a(u.value?"next":"prev"):l.key==="ArrowDown"?a("next"):l.key==="ArrowUp"&&a("prev"),l.key==="Home"?a("first"):l.key==="End"&&a("last")}function C(l){var r,A;if(!p.value)return;let a;if(!l)a=Ve(p.value)[0];else if(l==="next"){if(a=(r=p.value.querySelector(":focus"))==null?void 0:r.nextElementSibling,!a)return C("first")}else if(l==="prev"){if(a=(A=p.value.querySelector(":focus"))==null?void 0:A.previousElementSibling,!a)return C("last")}else l==="first"?a=p.value.firstElementChild:l==="last"&&(a=p.value.lastElementChild);a&&a.focus({preventScroll:!0})}function z(l){const a=d.value&&u.value?-1:1,r=(l==="prev"?-a:a)*m.value;let A=v.value+r;if(d.value&&u.value&&f.value){const{scrollWidth:W,offsetWidth:U}=f.value;A+=W-U}B(A)}const q=k(()=>({next:c.next,prev:c.prev,select:c.select,isSelected:c.isSelected})),N=k(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!y.value;case!0:return g.value||Math.abs(v.value)>0;case"mobile":return y.value||g.value||Math.abs(v.value)>0;default:return!y.value&&(g.value||Math.abs(v.value)>0)}}),J=k(()=>Math.abs(v.value)>1),Y=k(()=>{if(!f.value)return!1;const l=oe(d.value,f.value),a=Je(d.value,f.value);return l-a-Math.abs(v.value)>1});return de(()=>i(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":N.value,"v-slide-group--is-overflowing":g.value},o.value,e.class],style:e.style,tabindex:P.value||c.selected.value.length?-1:0,onFocus:M},{default:()=>{var l,a,r;return[N.value&&i("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!J.value}],onMousedown:T,onClick:()=>J.value&&z("prev")},[((l=t.prev)==null?void 0:l.call(t,q.value))??i(ae,null,{default:()=>[i(_,{icon:u.value?e.nextIcon:e.prevIcon},null)]})]),i("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:h},[i("div",{ref:p,class:"v-slide-group__content",onFocusin:x,onFocusout:$,onKeydown:K},[(a=t.default)==null?void 0:a.call(t,q.value)])]),N.value&&i("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Y.value}],onMousedown:T,onClick:()=>Y.value&&z("next")},[((r=t.next)==null?void 0:r.call(t,q.value))??i(ae,null,{default:()=>[i(_,{icon:u.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:c.selected,scrollTo:z,scrollOffset:v,focus:C}}}),me=Symbol.for("vuetify:v-chip-group"),el=Q({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Pe},...ke(),...X(),...ue({selectedClass:"v-chip--selected"}),...Z(),...ve(),...fe({variant:"tonal"})},"VChipGroup"),tl=j()({name:"VChipGroup",props:el(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;const{themeClasses:u}=pe(e),{isSelected:o,select:y,next:c,prev:g,selected:v}=re(e,me);return ze({VChip:{color:D(e,"color"),disabled:D(e,"disabled"),filter:D(e,"filter"),variant:D(e,"variant")}}),de(()=>{const m=ce.filterProps(e);return i(ce,he(m,{class:["v-chip-group",{"v-chip-group--column":e.column},u.value,e.class],style:e.style}),{default:()=>{var I;return[(I=t.default)==null?void 0:I.call(t,{isSelected:o,select:y,next:c,prev:g,selected:v.value})]}})}),{}}}),ll=Q({activeClass:String,appendAvatar:String,appendIcon:G,closable:Boolean,closeIcon:{type:G,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:G,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:te(),onClickOnce:te(),...Ae(),...X(),..._e(),...Ee(),...Re(),...we(),...Te(),...Fe(),...Z({tag:"span"}),...ve(),...fe({variant:"tonal"})},"VChip"),nl=j()({name:"VChip",directives:{Ripple:Ge},props:ll(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,n){let{attrs:t,emit:u,slots:o}=n;const{t:y}=Oe(),{borderClasses:c}=Be(e),{colorClasses:g,colorStyles:v,variantClasses:m}=Me(e),{densityClasses:I}=We(e),{elevationClasses:d}=De(e),{roundedClasses:f}=Le(e),{sizeClasses:E}=He(e),{themeClasses:p}=pe(e),V=$e(e,"modelValue"),s=Ke(e,me,!1),b=qe(e,t),H=k(()=>e.link!==!1&&b.isLink.value),S=k(()=>!e.disabled&&e.link!==!1&&(!!s||e.link||b.isClickable.value)),P=k(()=>({"aria-label":y(e.closeLabel),onClick(h){h.preventDefault(),h.stopPropagation(),V.value=!1,u("click:close",h)}}));function R(h){var x;u("click",h),S.value&&((x=b.navigate)==null||x.call(b,h),s==null||s.toggle())}function B(h){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),R(h))}return()=>{const h=b.isLink.value?"a":e.tag,x=!!(e.appendIcon||e.appendAvatar),$=!!(x||o.append),w=!!(o.close||e.closable),M=!!(o.filter||e.filter)&&s,T=!!(e.prependIcon||e.prependAvatar),K=!!(T||o.prepend),C=!s||s.isSelected.value;return V.value&&ne(i(h,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":S.value,"v-chip--filter":M,"v-chip--pill":e.pill},p.value,c.value,C?g.value:void 0,I.value,d.value,f.value,E.value,m.value,s==null?void 0:s.selectedClass.value,e.class],style:[C?v.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:b.href.value,tabindex:S.value?0:void 0,onClick:R,onKeydown:S.value&&!H.value&&B},{default:()=>{var z;return[Ue(S.value,"v-chip"),M&&i(Qe,{key:"filter"},{default:()=>[ne(i("div",{class:"v-chip__filter"},[o.filter?i(L,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},o.filter):i(_,{key:"filter-icon",icon:e.filterIcon},null)]),[[Xe,s.isSelected.value]])]}),K&&i("div",{key:"prepend",class:"v-chip__prepend"},[o.prepend?i(L,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},o.prepend):i(se,null,[e.prependIcon&&i(_,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&i(ie,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),i("div",{class:"v-chip__content","data-no-activator":""},[((z=o.default)==null?void 0:z.call(o,{isSelected:s==null?void 0:s.isSelected.value,selectedClass:s==null?void 0:s.selectedClass.value,select:s==null?void 0:s.select,toggle:s==null?void 0:s.toggle,value:s==null?void 0:s.value.value,disabled:e.disabled}))??e.text]),$&&i("div",{key:"append",class:"v-chip__append"},[o.append?i(L,{key:"append-defaults",disabled:!x,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},o.append):i(se,null,[e.appendIcon&&i(_,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&i(ie,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),w&&i("button",he({key:"close",class:"v-chip__close",type:"button"},P.value),[o.close?i(L,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},o.close):i(_,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Ne("ripple"),S.value&&e.ripple,null]])}}});export{nl as V,tl as a}; diff --git a/_nuxt/Ne0eQPea.js b/_nuxt/Ne0eQPea.js new file mode 100644 index 0000000..5f9f415 --- /dev/null +++ b/_nuxt/Ne0eQPea.js @@ -0,0 +1 @@ +import{d as V,r as u,v as C,a8 as _,B as l,A as e,a9 as b,C as i,aa as g,b3 as d,af as m,ag as f,aj as v,ab as w,al as x}from"./-VvI6Lr7.js";import{V as c}from"./BwUqDjZt.js";import{V as p}from"./TjYH8LVs.js";import{V as B}from"./n5OR3jin.js";import"./l9yxdLf0.js";const L=V({__name:"login",setup(S){const o=u(""),t=u("");async function r(){const s=x().users;await s.signIn(o.value,t.value),console.log(s.user)}return(s,a)=>(C(),_(B,null,{default:l(()=>[e(w,null,{default:l(()=>[e(b,null,{default:l(()=>[i("Login")]),_:1}),e(g,null,{default:l(()=>[e(c,{onSubmit:a[2]||(a[2]=d(()=>{},["prevent"]))},{default:l(()=>[e(p,{modelValue:m(o),"onUpdate:modelValue":a[0]||(a[0]=n=>f(o)?o.value=n:null),label:"Email",required:"",onSubmit:d(r,["prevent"])},null,8,["modelValue"]),e(p,{modelValue:m(t),"onUpdate:modelValue":a[1]||(a[1]=n=>f(t)?t.value=n:null),label:"Password",required:"",type:"password"},null,8,["modelValue"]),e(v,{type:"submit",onClick:r},{default:l(()=>[i("Login")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{L as default}; diff --git a/_nuxt/Qrx5wsVu.js b/_nuxt/Qrx5wsVu.js new file mode 100644 index 0000000..e52af3d --- /dev/null +++ b/_nuxt/Qrx5wsVu.js @@ -0,0 +1 @@ +import{d as l,al as u,r as m,i as f,v as e,a8 as n,B as t,x as p,ae as d,ad as x,af as V,ah as C,A as s,ai as h,C as L,z as k,ac as v}from"./-VvI6Lr7.js";import{V as B}from"./n5OR3jin.js";const S=l({__name:"list",setup(_){const a=u().contacts,o=m(a.entities);return a.fetch(),(r,g)=>{const i=f("v-list-item-content");return e(),n(v,null,{default:t(()=>[(e(!0),p(d,null,x(V(o),c=>(e(),n(C,{key:c.id},{default:t(()=>[s(i,null,{default:t(()=>[s(h,null,{default:t(()=>[L(k(c.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})}}}),N=l({__name:"index",setup(_){return(a,o)=>{const r=S;return e(),n(B,null,{default:t(()=>[s(r)]),_:1})}}});export{N as default}; diff --git a/_nuxt/TjYH8LVs.js b/_nuxt/TjYH8LVs.js new file mode 100644 index 0000000..e694c3a --- /dev/null +++ b/_nuxt/TjYH8LVs.js @@ -0,0 +1 @@ +import{F as O,G as Q,b8 as re,bX as de,I as U,c as r,L as K,A as l,M as Z,N as le,bz as ce,O as G,b2 as J,a_ as fe,W as ve,a3 as me,a5 as be,a$ as ye,$ as ge,aK as xe,bN as Ce,r as L,P as ke,a7 as Ve,ba as he,as as _e,bY as Ie,aT as Pe,bZ as Fe,b0 as Se,b_ as Be,bg as we,ae as M,a1 as N,aC as Te,b$ as Le,c0 as Re,c1 as $e,aI as Ae,bJ as De,Q as Ee,c2 as Me,bi as Ne,au as p,bL as Oe}from"./-VvI6Lr7.js";import{c as Ue,m as Ke,b as te,f as We,a as je,V as ee}from"./l9yxdLf0.js";const ze=O({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Q(),...re({transition:{component:de}})},"VCounter"),Xe=U()({name:"VCounter",functional:!0,props:ze(),setup(e,b){let{slots:i}=b;const P=r(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return K(()=>l(ce,{transition:e.transition},{default:()=>[Z(l("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[i.default?i.default({counter:P.value,max:e.max,value:e.value}):P.value]),[[le,e.active]])]})),{}}}),Ye=O({floating:Boolean,...Q()},"VFieldLabel"),E=U()({name:"VFieldLabel",props:Ye(),setup(e,b){let{slots:i}=b;return K(()=>l(Ue,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},i)),{}}}),qe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ae=O({appendInnerIcon:G,bgColor:String,clearable:Boolean,clearIcon:{type:G,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:G,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>qe.includes(e)},"onClick:clear":J(),"onClick:appendInner":J(),"onClick:prependInner":J(),...Q(),...fe(),...ve(),...me()},"VField"),ne=U()({name:"VField",inheritAttrs:!1,props:{id:String,...Ke(),...ae()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,b){let{attrs:i,emit:P,slots:t}=b;const{themeClasses:y}=be(e),{loaderClasses:C}=ye(e),{focusClasses:W,isFocused:R,focus:F,blur:S}=te(e),{InputIcon:B}=We(e),{roundedClasses:j}=ge(e),{rtlClasses:$}=xe(),k=r(()=>e.dirty||e.active),f=r(()=>!e.singleLine&&!!(e.label||t.label)),z=Ce(),s=r(()=>e.id||`input-${z}`),X=r(()=>`${s.value}-messages`),A=L(),w=L(),D=L(),a=r(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:d,backgroundColorStyles:c}=ke(Ve(e,"bgColor")),{textColorClasses:v,textColorStyles:Y}=he(r(()=>e.error||e.disabled?void 0:k.value&&R.value?e.color:e.baseColor));_e(k,n=>{if(f.value){const o=A.value.$el,m=w.value.$el;requestAnimationFrame(()=>{const g=Ie(o),u=m.getBoundingClientRect(),T=u.x-g.x,h=u.y-g.y-(g.height/2-u.height/2),_=u.width/.75,I=Math.abs(_-g.width)>1?{maxWidth:Pe(_)}:void 0,ie=getComputedStyle(o),H=getComputedStyle(m),oe=parseFloat(ie.transitionDuration)*1e3||150,se=parseFloat(H.getPropertyValue("--v-field-label-scale")),ue=H.getPropertyValue("color");o.style.visibility="visible",m.style.visibility="hidden",Fe(o,{transform:`translate(${T}px, ${h}px) scale(${se})`,color:ue,...I},{duration:oe,easing:Re,direction:n?"normal":"reverse"}).finished.then(()=>{o.style.removeProperty("visibility"),m.style.removeProperty("visibility")})})}},{flush:"post"});const V=r(()=>({isActive:k,isFocused:R,controlRef:D,blur:S,focus:F}));function q(n){n.target!==document.activeElement&&n.preventDefault()}function x(n){var o;n.key!=="Enter"&&n.key!==" "||(n.preventDefault(),n.stopPropagation(),(o=e["onClick:clear"])==null||o.call(e,new MouseEvent("click")))}return K(()=>{var T,h,_;const n=e.variant==="outlined",o=!!(t["prepend-inner"]||e.prependInnerIcon),m=!!(e.clearable||t.clear),g=!!(t["append-inner"]||e.appendInnerIcon||m),u=()=>t.label?t.label({...V.value,label:e.label,props:{for:s.value}}):e.label;return l("div",N({class:["v-field",{"v-field--active":k.value,"v-field--appended":g,"v-field--center-affix":e.centerAffix??!a.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":o,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!u(),[`v-field--variant-${e.variant}`]:!0},y.value,d.value,W.value,C.value,j.value,$.value,e.class],style:[c.value,e.style],onClick:q},i),[l("div",{class:"v-field__overlay"},null),l(Se,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:t.loader}),o&&l("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&l(B,{key:"prepend-icon",name:"prependInner"},null),(T=t["prepend-inner"])==null?void 0:T.call(t,V.value)]),l("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&f.value&&l(E,{key:"floating-label",ref:w,class:[v.value],floating:!0,for:s.value,style:Y.value},{default:()=>[u()]}),l(E,{ref:A,for:s.value},{default:()=>[u()]}),(h=t.default)==null?void 0:h.call(t,{...V.value,props:{id:s.value,class:"v-field__input","aria-describedby":X.value},focus:F,blur:S})]),m&&l(Be,{key:"clear"},{default:()=>[Z(l("div",{class:"v-field__clearable",onMousedown:I=>{I.preventDefault(),I.stopPropagation()}},[l(we,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[t.clear?t.clear({...V.value,props:{onKeydown:x,onFocus:F,onBlur:S,onClick:e["onClick:clear"]}}):l(B,{name:"clear",onKeydown:x,onFocus:F,onBlur:S},null)]})]),[[le,e.dirty]])]}),g&&l("div",{key:"append",class:"v-field__append-inner"},[(_=t["append-inner"])==null?void 0:_.call(t,V.value),e.appendInnerIcon&&l(B,{key:"append-icon",name:"appendInner"},null)]),l("div",{class:["v-field__outline",v.value],style:Y.value},[n&&l(M,null,[l("div",{class:"v-field__outline__start"},null),f.value&&l("div",{class:"v-field__outline__notch"},[l(E,{ref:w,floating:!0,for:s.value},{default:()=>[u()]})]),l("div",{class:"v-field__outline__end"},null)]),a.value&&f.value&&l(E,{ref:w,floating:!0,for:s.value},{default:()=>[u()]})])])}),{controlRef:D}}});function Ge(e){const b=Object.keys(ne.props).filter(i=>!Te(i)&&i!=="class"&&i!=="style");return Le(e,b)}const Je=["color","file","time","date","datetime-local","week","month"],Qe=O({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...je(),...ae()},"VTextField"),pe=U()({name:"VTextField",directives:{Intersect:$e},inheritAttrs:!1,props:Qe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,b){let{attrs:i,emit:P,slots:t}=b;const y=Ae(e,"modelValue"),{isFocused:C,focus:W,blur:R}=te(e),F=r(()=>typeof e.counterValue=="function"?e.counterValue(y.value):typeof e.counterValue=="number"?e.counterValue:(y.value??"").toString().length),S=r(()=>{if(i.maxlength)return i.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),B=r(()=>["plain","underlined"].includes(e.variant));function j(a,d){var c,v;!e.autofocus||!a||(v=(c=d[0].target)==null?void 0:c.focus)==null||v.call(c)}const $=L(),k=L(),f=L(),z=r(()=>Je.includes(e.type)||e.persistentPlaceholder||C.value||e.active);function s(){var a;f.value!==document.activeElement&&((a=f.value)==null||a.focus()),C.value||W()}function X(a){P("mousedown:control",a),a.target!==f.value&&(s(),a.preventDefault())}function A(a){s(),P("click:control",a)}function w(a){a.stopPropagation(),s(),p(()=>{y.value=null,Oe(e["onClick:clear"],a)})}function D(a){var c;const d=a.target;if(y.value=d.value,(c=e.modelModifiers)!=null&&c.trim&&["text","search","password","tel","url"].includes(e.type)){const v=[d.selectionStart,d.selectionEnd];p(()=>{d.selectionStart=v[0],d.selectionEnd=v[1]})}}return K(()=>{const a=!!(t.counter||e.counter!==!1&&e.counter!=null),d=!!(a||t.details),[c,v]=De(i),{modelValue:Y,...V}=ee.filterProps(e),q=Ge(e);return l(ee,N({ref:$,modelValue:y.value,"onUpdate:modelValue":x=>y.value=x,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":B.value},e.class],style:e.style},c,V,{centerAffix:!B.value,focused:C.value}),{...t,default:x=>{let{id:n,isDisabled:o,isDirty:m,isReadonly:g,isValid:u}=x;return l(ne,N({ref:k,onMousedown:X,onClick:A,"onClick:clear":w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},q,{id:n.value,active:z.value||m.value,dirty:m.value||e.dirty,disabled:o.value,focused:C.value,error:u.value===!1}),{...t,default:T=>{let{props:{class:h,..._}}=T;const I=Z(l("input",N({ref:f,value:y.value,onInput:D,autofocus:e.autofocus,readonly:g.value,disabled:o.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:s,onBlur:R},_,v),null),[[Ee("intersect"),{handler:j},null,{once:!0}]]);return l(M,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[l("span",{class:"v-text-field__prefix__text"},[e.prefix])]),t.default?l("div",{class:h,"data-no-activator":""},[t.default(),I]):Me(I,{class:h}),e.suffix&&l("span",{class:"v-text-field__suffix"},[l("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:d?x=>{var n;return l(M,null,[(n=t.details)==null?void 0:n.call(t,x),a&&l(M,null,[l("span",null,null),l(Xe,{active:e.persistentCounter||C.value,value:F.value,max:S.value,disabled:e.disabled},t.counter)])])}:void 0})}),Ne({},$,k,f)}});export{pe as V,ae as a,ne as b,Xe as c,Ge as f,Qe as m}; diff --git a/_nuxt/VHr5Aleq.js b/_nuxt/VHr5Aleq.js new file mode 100644 index 0000000..df3bec7 --- /dev/null +++ b/_nuxt/VHr5Aleq.js @@ -0,0 +1 @@ +import{F as h,O as w,aW as $,G as R,aF as q,a3 as H,I as U,aI as _,bN as L,c as o,a0 as Q,bP as X,a6 as z,a7 as u,L as M,A as d,R as K,ap as D,r as Y,bJ as Z,a1 as T,M as p,Q as ee,ae as le,S as ae,J as te,b6 as ne,aX as I,ba as oe,P as ue,bW as ie,au as re}from"./-VvI6Lr7.js";import{c as ce}from"./l9yxdLf0.js";const N=Symbol.for("vuetify:selection-control-group"),j=h({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:w,trueIcon:w,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:$},...R(),...q(),...H()},"SelectionControlGroup"),se=h({...j({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");U()({name:"VSelectionControlGroup",props:se(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:v}=i;const l=_(e,"modelValue"),t=L(),y=o(()=>e.id||`v-selection-control-group-${t}`),c=o(()=>e.name||y.value),a=new Set;return Q(N,{modelValue:l,forceUpdate:()=>{a.forEach(n=>n())},onForceUpdate:n=>{a.add(n),X(()=>{a.delete(n)})}}),z({[e.defaultsTarget]:{color:u(e,"color"),disabled:u(e,"disabled"),density:u(e,"density"),error:u(e,"error"),inline:u(e,"inline"),modelValue:l,multiple:o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),name:c,falseIcon:u(e,"falseIcon"),trueIcon:u(e,"trueIcon"),readonly:u(e,"readonly"),ripple:u(e,"ripple"),type:u(e,"type"),valueComparator:u(e,"valueComparator")}}),M(()=>{var n;return d("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(n=v.default)==null?void 0:n.call(v)])}),{}}});const de=h({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...R(),...j()},"VSelectionControl");function ve(e){const i=te(N,void 0),{densityClasses:v}=ne(e),l=_(e,"modelValue"),t=o(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),y=o(()=>e.falseValue!==void 0?e.falseValue:!1),c=o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),a=o({get(){const f=i?i.modelValue.value:l.value;return c.value?I(f).some(r=>e.valueComparator(r,t.value)):e.valueComparator(f,t.value)},set(f){if(e.readonly)return;const r=f?t.value:y.value;let m=r;c.value&&(m=f?[...I(l.value),r]:I(l.value).filter(b=>!e.valueComparator(b,t.value))),i?i.modelValue.value=m:l.value=m}}),{textColorClasses:n,textColorStyles:C}=oe(o(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor})),{backgroundColorClasses:V,backgroundColorStyles:S}=ue(o(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor)),k=o(()=>a.value?e.trueIcon:e.falseIcon);return{group:i,densityClasses:v,trueValue:t,falseValue:y,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,icon:k}}const ye=U()({name:"VSelectionControl",directives:{Ripple:K},inheritAttrs:!1,props:de(),emits:{"update:modelValue":e=>!0},setup(e,i){let{attrs:v,slots:l}=i;const{group:t,densityClasses:y,icon:c,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,trueValue:k}=ve(e),f=L(),r=D(!1),m=D(!1),b=Y(),g=o(()=>e.id||`input-${f}`),F=o(()=>!e.disabled&&!e.readonly);t==null||t.onForceUpdate(()=>{b.value&&(b.value.checked=a.value)});function P(s){F.value&&(r.value=!0,ie(s.target,":focus-visible")!==!1&&(m.value=!0))}function A(){r.value=!1,m.value=!1}function E(s){s.stopPropagation()}function J(s){F.value&&(e.readonly&&t&&re(()=>t.forceUpdate()),a.value=s.target.checked)}return M(()=>{var B,G;const s=l.label?l.label({label:e.label,props:{for:g.value}}):e.label,[O,W]=Z(v),x=d("input",T({ref:b,checked:a.value,disabled:!!e.disabled,id:g.value,onBlur:A,onFocus:P,onInput:J,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:k.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},W),null);return d("div",T({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":r.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},y.value,e.class]},O,{style:e.style}),[d("div",{class:["v-selection-control__wrapper",n.value],style:C.value},[(B=l.default)==null?void 0:B.call(l,{backgroundColorClasses:V,backgroundColorStyles:S}),p(d("div",{class:["v-selection-control__input"]},[((G=l.input)==null?void 0:G.call(l,{model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,inputNode:x,icon:c.value,props:{onFocus:P,onBlur:A,id:g.value}}))??d(le,null,[c.value&&d(ae,{key:"icon",icon:c.value},null),x])]),[[ee("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),s&&d(ce,{for:g.value,onClick:E},{default:()=>[s]})])}),{isFocused:r,input:b}}});export{ye as V,de as m}; diff --git a/_nuxt/blE9-5sg.js b/_nuxt/blE9-5sg.js new file mode 100644 index 0000000..bce3bac --- /dev/null +++ b/_nuxt/blE9-5sg.js @@ -0,0 +1,22 @@ +var En=Object.defineProperty;var Ln=(i,t,e)=>t in i?En(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var w=(i,t,e)=>(Ln(i,typeof t!="symbol"?t+"":t,e),e);import{V as zn,_ as Fn}from"./DS0W2dGG.js";import{_ as Bs,u as jn}from"./CJ7Tzvjl.js";import{d as Ye,ap as Ns,g as li,aq as Vn,r as et,o as Hs,ar as Wn,as as Ee,at as ci,au as Bn,av as $s,c as Ae,i as Nn,v as ot,x as kt,y as ct,A as D,B as O,ae as hi,ad as Hn,af as P,a8 as di,C as Q,z as Xt,aw as Kt,S as ui,am as $n,ax as Yn,ay as Un,an as Xn,ab as qe,ag as Ge,az as Kn,ak as Rt,aj as It,aA as qn,aa as Ti,aB as Gn,q as Ei,D as Zn,E as Qn,_ as Jn}from"./-VvI6Lr7.js";import{f as Ys,g as to}from"./BFbS1nff.js";import{V as Li}from"./TjYH8LVs.js";import{V as eo}from"./n5OR3jin.js";import{V as zi,a as ue}from"./CRmmW6t3.js";import{V as io}from"./BwUqDjZt.js";/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function le(i){return i+.5|0}const ft=(i,t,e)=>Math.max(Math.min(i,e),t);function qt(i){return ft(le(i*2.55),0,255)}function pt(i){return ft(le(i*255),0,255)}function lt(i){return ft(le(i/2.55)/100,0,1)}function Fi(i){return ft(le(i*100),0,100)}const Z={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},fi=[..."0123456789ABCDEF"],so=i=>fi[i&15],no=i=>fi[(i&240)>>4]+fi[i&15],fe=i=>(i&240)>>4===(i&15),oo=i=>fe(i.r)&&fe(i.g)&&fe(i.b)&&fe(i.a);function ro(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&Z[i[1]]*17,g:255&Z[i[2]]*17,b:255&Z[i[3]]*17,a:t===5?Z[i[4]]*17:255}:(t===7||t===9)&&(e={r:Z[i[1]]<<4|Z[i[2]],g:Z[i[3]]<<4|Z[i[4]],b:Z[i[5]]<<4|Z[i[6]],a:t===9?Z[i[7]]<<4|Z[i[8]]:255})),e}const ao=(i,t)=>i<255?t(i):"";function lo(i){var t=oo(i)?so:no;return i?"#"+t(i.r)+t(i.g)+t(i.b)+ao(i.a,t):void 0}const co=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Us(i,t,e){const s=t*Math.min(e,1-e),n=(o,r=(o+i/30)%12)=>e-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function ho(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function uo(i,t,e){const s=Us(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function fo(i,t,e,s,n){return i===n?(t-e)/s+(t.5?h/(2-o-r):h/(o+r),l=fo(e,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function vi(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(pt)}function wi(i,t,e){return vi(Us,i,t,e)}function go(i,t,e){return vi(uo,i,t,e)}function po(i,t,e){return vi(ho,i,t,e)}function Xs(i){return(i%360+360)%360}function mo(i){const t=co.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?qt(+t[5]):pt(+t[5]));const n=Xs(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=go(n,o,r):t[1]==="hsv"?s=po(n,o,r):s=wi(n,o,r),{r:s[0],g:s[1],b:s[2],a:e}}function _o(i,t){var e=yi(i);e[0]=Xs(e[0]+t),e=wi(e),i.r=e[0],i.g=e[1],i.b=e[2]}function bo(i){if(!i)return;const t=yi(i),e=t[0],s=Fi(t[1]),n=Fi(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${lt(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const ji={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vi={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function xo(){const i={},t=Object.keys(Vi),e=Object.keys(ji);let s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return i}let ge;function yo(i){ge||(ge=xo(),ge.transparent=[0,0,0,0]);const t=ge[i.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const vo=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wo(i){const t=vo.exec(i);let e=255,s,n,o;if(t){if(t[7]!==s){const r=+t[7];e=t[8]?qt(r):ft(r*255,0,255)}return s=+t[1],n=+t[3],o=+t[5],s=255&(t[2]?qt(s):ft(s,0,255)),n=255&(t[4]?qt(n):ft(n,0,255)),o=255&(t[6]?qt(o):ft(o,0,255)),{r:s,g:n,b:o,a:e}}}function Mo(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${lt(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}const Ze=i=>i<=.0031308?i*12.92:Math.pow(i,1/2.4)*1.055-.055,Tt=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function ko(i,t,e){const s=Tt(lt(i.r)),n=Tt(lt(i.g)),o=Tt(lt(i.b));return{r:pt(Ze(s+e*(Tt(lt(t.r))-s))),g:pt(Ze(n+e*(Tt(lt(t.g))-n))),b:pt(Ze(o+e*(Tt(lt(t.b))-o))),a:i.a+e*(t.a-i.a)}}function pe(i,t,e){if(i){let s=yi(i);s[t]=Math.max(0,Math.min(s[t]+s[t]*e,t===0?360:1)),s=wi(s),i.r=s[0],i.g=s[1],i.b=s[2]}}function Ks(i,t){return i&&Object.assign(t||{},i)}function Wi(i){var t={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(t={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(t.a=pt(i[3]))):(t=Ks(i,{r:0,g:0,b:0,a:1}),t.a=pt(t.a)),t}function So(i){return i.charAt(0)==="r"?wo(i):mo(i)}class ne{constructor(t){if(t instanceof ne)return t;const e=typeof t;let s;e==="object"?s=Wi(t):e==="string"&&(s=ro(t)||yo(t)||So(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Ks(this._rgb);return t&&(t.a=lt(t.a)),t}set rgb(t){this._rgb=Wi(t)}rgbString(){return this._valid?Mo(this._rgb):void 0}hexString(){return this._valid?lo(this._rgb):void 0}hslString(){return this._valid?bo(this._rgb):void 0}mix(t,e){if(t){const s=this.rgb,n=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(t,e){return t&&(this._rgb=ko(this._rgb,t._rgb,e)),this}clone(){return new ne(this.rgb)}alpha(t){return this._rgb.a=pt(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=le(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return pe(this._rgb,2,t),this}darken(t){return pe(this._rgb,2,-t),this}saturate(t){return pe(this._rgb,1,t),this}desaturate(t){return pe(this._rgb,1,-t),this}rotate(t){return _o(this._rgb,t),this}}/*! + * Chart.js v4.4.3 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */const Oo=(()=>{let i=0;return()=>i++})();function H(i){return i===null||typeof i>"u"}function U(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function C(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function dt(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function st(i,t){return dt(i)?i:t}function L(i,t){return typeof i>"u"?t:i}const Co=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100:+i/t,qs=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function E(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function Y(i,t,e,s){let n,o,r;if(U(i))for(o=i.length,n=0;ni,x:i=>i.x,y:i=>i.y};function Po(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Ro(i){const t=Po(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function oe(i,t){return(Ni[t]||(Ni[t]=Ro(t)))(i)}function Mi(i){return i.charAt(0).toUpperCase()+i.slice(1)}const ze=i=>typeof i<"u",mt=i=>typeof i=="function",Hi=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Io(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const $=Math.PI,B=2*$,Fe=Number.POSITIVE_INFINITY,To=$/180,N=$/2,xt=$/4,$i=$*2/3,Yi=Math.log10,Ui=Math.sign;function Eo(i){const t=[],e=Math.sqrt(i);let s;for(s=1;sn-o).pop(),t}function je(i){return!isNaN(parseFloat(i))&&isFinite(i)}function St(i){return i*($/180)}function Lo(i){return i*(180/$)}function Zs(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*$&&(o+=B),{angle:o,distance:n}}function yt(i){return(i%B+B)%B}function Ve(i,t,e,s){const n=yt(i),o=yt(t),r=yt(e),a=yt(o-n),l=yt(r-n),c=yt(n-o),h=yt(n-r);return n===o||n===r||s&&o===r||a>l&&c=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function ki(i,t,e){e=e||(r=>i[r]1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const pi=(i,t,e,s)=>ki(i,e,s?n=>{const o=i[n][t];return oi[n][t]ki(i,e,s=>i[s][t]>=e);function jo(i,t,e){let s=0,n=i.length;for(;ss&&i[n-1]>e;)n--;return s>0||n{const s="_onData"+Mi(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return i._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Xi(i,t){const e=i._chartjs;if(!e)return;const s=e.listeners,n=s.indexOf(t);n!==-1&&s.splice(n,1),!(s.length>0)&&(Qs.forEach(o=>{delete i[o]}),delete i._chartjs)}function Wo(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const Js=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function tn(i,t){let e=[],s=!1;return function(...n){e=n,s||(s=!0,Js.call(window,()=>{s=!1,i.apply(t,e)}))}}function Bo(i,t){let e;return function(...s){return t?(clearTimeout(e),e=setTimeout(i,t,s)):i.apply(this,s),t}}const No=i=>i==="start"?"left":i==="end"?"right":"center",Ki=(i,t,e)=>i==="start"?t:i==="end"?e:(t+e)/2,me=i=>i===0||i===1,qi=(i,t,e)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-t)*B/e)),Gi=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*B/e)+1,Jt={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*N)+1,easeOutSine:i=>Math.sin(i*N),easeInOutSine:i=>-.5*(Math.cos($*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>me(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>me(i)?i:qi(i,.075,.3),easeOutElastic:i=>me(i)?i:Gi(i,.075,.3),easeInOutElastic(i){return me(i)?i:i<.5?.5*qi(i*2,.1125,.45):.5+.5*Gi(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let t=1.70158;return(i/=.5)<1?.5*(i*i*(((t*=1.525)+1)*i-t)):.5*((i-=2)*i*(((t*=1.525)+1)*i+t)+2)},easeInBounce:i=>1-Jt.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?Jt.easeInBounce(i*2)*.5:Jt.easeOutBounce(i*2-1)*.5+.5};function en(i){if(i&&typeof i=="object"){const t=i.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Zi(i){return en(i)?i:new ne(i)}function Qe(i){return en(i)?i:new ne(i).saturate(.5).darken(.1).hexString()}const Ho=["x","y","borderWidth","radius","tension"],$o=["color","borderColor","backgroundColor"];function Yo(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),i.set("animations",{colors:{type:"color",properties:$o},numbers:{type:"number",properties:Ho}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Uo(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Qi=new Map;function Xo(i,t){t=t||{};const e=i+JSON.stringify(t);let s=Qi.get(e);return s||(s=new Intl.NumberFormat(i,t),Qi.set(e,s)),s}function sn(i,t,e){return Xo(t,e).format(i)}const nn={values(i){return U(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,o=i;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=Ko(i,e)}const r=Yi(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),sn(i,s,l)},logarithmic(i,t,e){if(i===0)return"0";const s=e[t].significand||i/Math.pow(10,Math.floor(Yi(i)));return[1,2,3,5,10,15].includes(s)||t>.8*e.length?nn.numeric.call(this,i,t,e):""}};function Ko(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var qo={formatters:nn};function Go(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ct=Object.create(null),mi=Object.create(null);function te(i,t){if(!t)return i;const e=t.split(".");for(let s=0,n=e.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>Qe(n.backgroundColor),this.hoverBorderColor=(s,n)=>Qe(n.borderColor),this.hoverColor=(s,n)=>Qe(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Je(this,t,e)}get(t){return te(this,t)}describe(t,e){return Je(mi,t,e)}override(t,e){return Je(Ct,t,e)}route(t,e,s,n){const o=te(this,t),r=te(this,s),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[n];return C(l)?Object.assign({},c,l):L(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var V=new Zo({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Yo,Uo,Go]);function Qo(i){return!i||H(i.size)||H(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function Ji(i,t,e,s,n){let o=t[n];return o||(o=t[n]=i.measureText(n).width,e.push(n)),o>s&&(s=o),s}function vt(i,t,e){const s=i.currentDevicePixelRatio,n=e!==0?Math.max(e/2,.5):0;return Math.round((t-n)*s)/s+n}function ts(i,t){!t&&!i||(t=t||i.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,i.width,i.height),t.restore())}function Jo(i,t,e,s){tr(i,t,e,s)}function tr(i,t,e,s,n){let o,r,a,l,c,h,d,u;const f=t.pointStyle,m=t.rotation,p=t.radius;let g=(m||0)*To;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){i.save(),i.translate(e,s),i.rotate(g),i.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),i.restore();return}if(!(isNaN(p)||p<=0)){switch(i.beginPath(),f){default:i.arc(e,s,p,0,B),i.closePath();break;case"triangle":h=p,i.moveTo(e+Math.sin(g)*h,s-Math.cos(g)*p),g+=$i,i.lineTo(e+Math.sin(g)*h,s-Math.cos(g)*p),g+=$i,i.lineTo(e+Math.sin(g)*h,s-Math.cos(g)*p),i.closePath();break;case"rectRounded":c=p*.516,l=p-c,r=Math.cos(g+xt)*l,d=Math.cos(g+xt)*l,a=Math.sin(g+xt)*l,u=Math.sin(g+xt)*l,i.arc(e-d,s-a,c,g-$,g-N),i.arc(e+u,s-r,c,g-N,g),i.arc(e+d,s+a,c,g,g+N),i.arc(e-u,s+r,c,g+N,g+$),i.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,h=l,i.rect(e-h,s-l,2*h,2*l);break}g+=xt;case"rectRot":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+u,s-r),i.lineTo(e+d,s+a),i.lineTo(e-u,s+r),i.closePath();break;case"crossRot":g+=xt;case"cross":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"star":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r),g+=xt,d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"line":r=Math.cos(g)*p,a=Math.sin(g)*p,i.moveTo(e-r,s-a),i.lineTo(e+r,s+a);break;case"dash":i.moveTo(e,s),i.lineTo(e+Math.cos(g)*p,s+Math.sin(g)*p);break;case!1:i.closePath();break}i.fill(),t.borderWidth>0&&i.stroke()}}function Si(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.xt.top-e&&i.y0&&o.strokeColor!=="";let l,c;for(i.save(),i.font=n.string,er(i,o),l=0;l+i||0;function Oi(i,t){const e={},s=C(t),n=s?Object.keys(t):t,o=C(i)?s?r=>L(i[r],i[t[r]]):r=>i[r]:()=>i;for(const r of n)e[r]=lr(o(r));return e}function an(i){return Oi(i,{top:"y",right:"x",bottom:"y",left:"x"})}function cr(i){return Oi(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(i){const t=an(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function We(i,t){i=i||{},t=t||V.font;let e=L(i.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let s=L(i.style,t.style);s&&!(""+s).match(rr)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:L(i.family,t.family),lineHeight:ar(L(i.lineHeight,t.lineHeight),e),size:e,style:s,weight:L(i.weight,t.weight),string:""};return n.string=Qo(n),n}function T(i,t,e,s){let n,o,r;for(n=0,o=i.length;ne&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function ce(i,t){return Object.assign(Object.create(i),t)}function Ci(i,t=[""],e,s,n=()=>i[0]){const o=e||i;typeof s>"u"&&(s=dn("_fallback",i));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Ci([a,...i],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete i[0][l],!0},get(a,l){return cn(a,l,()=>br(l,t,i,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(a,l){return ss(a).includes(l)},ownKeys(a){return ss(a)},set(a,l,c){const h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function jt(i,t,e,s){const n={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:ln(i,s),setContext:o=>jt(i,o,e,s),override:o=>jt(i.override(o),t,e,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete i[r],!0},get(o,r,a){return cn(o,r,()=>ur(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(i,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,r)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(o,r){return Reflect.has(i,r)},ownKeys(){return Reflect.ownKeys(i)},set(o,r,a){return i[r]=a,delete o[r],!0}})}function ln(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:s=t.indexable,_allKeys:n=t.allKeys}=i;return{allKeys:n,scriptable:e,indexable:s,isScriptable:mt(e)?e:()=>e,isIndexable:mt(s)?s:()=>s}}const dr=(i,t)=>i?i+Mi(t):t,Di=(i,t)=>C(t)&&i!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function cn(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t)||t==="constructor")return i[t];const s=e();return i[t]=s,s}function ur(i,t,e){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=i;let a=s[t];return mt(a)&&r.isScriptable(t)&&(a=fr(t,a,i,e)),U(a)&&a.length&&(a=gr(t,a,i,r.isIndexable)),Di(t,a)&&(a=jt(a,n,o&&o[t],r)),a}function fr(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_stack:a}=e;if(a.has(i))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+i);a.add(i);let l=t(o,r||s);return a.delete(i),Di(i,l)&&(l=Ai(n._scopes,n,i,l)),l}function gr(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&s(i))return t[o.index%t.length];if(C(t[0])){const l=t,c=n._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=Ai(c,n,i,h);t.push(jt(d,o,r&&r[i],a))}}return t}function hn(i,t,e){return mt(i)?i(t,e):i}const pr=(i,t)=>i===!0?t:typeof i=="string"?oe(t,i):void 0;function mr(i,t,e,s,n){for(const o of t){const r=pr(e,o);if(r){i.add(r);const a=hn(r._fallback,e,n);if(typeof a<"u"&&a!==e&&a!==s)return a}else if(r===!1&&typeof s<"u"&&e!==s)return null}return!1}function Ai(i,t,e,s){const n=t._rootScopes,o=hn(t._fallback,e,s),r=[...i,...n],a=new Set;a.add(s);let l=is(a,r,e,o||e,s);return l===null||typeof o<"u"&&o!==e&&(l=is(a,r,o,l,s),l===null)?!1:Ci(Array.from(a),[""],n,o,()=>_r(t,e,s))}function is(i,t,e,s,n){for(;e;)e=mr(i,t,e,s,n);return e}function _r(i,t,e){const s=i._getTarget();t in s||(s[t]={});const n=s[t];return U(n)&&C(e)?e:n||{}}function br(i,t,e,s){let n;for(const o of t)if(n=dn(dr(o,i),e),typeof n<"u")return Di(i,n)?Ai(e,s,i,n):n}function dn(i,t){for(const e of t){if(!e)continue;const s=e[i];if(typeof s<"u")return s}}function ss(i){let t=i._keys;return t||(t=i._keys=xr(i._scopes)),t}function xr(i){const t=new Set;for(const e of i)for(const s of Object.keys(e).filter(n=>!n.startsWith("_")))t.add(s);return Array.from(t)}function Pi(){return typeof window<"u"&&typeof document<"u"}function Ri(i){let t=i.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Be(i,t,e){let s;return typeof i=="string"?(s=parseInt(i,10),i.indexOf("%")!==-1&&(s=s/100*t.parentNode[e])):s=i,s}const Ue=i=>i.ownerDocument.defaultView.getComputedStyle(i,null);function yr(i,t){return Ue(i).getPropertyValue(t)}const vr=["top","right","bottom","left"];function Ot(i,t,e){const s={};e=e?"-"+e:"";for(let n=0;n<4;n++){const o=vr[n];s[o]=parseFloat(i[t+"-"+o+e])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const wr=(i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot);function Mr(i,t){const e=i.touches,s=e&&e.length?e[0]:i,{offsetX:n,offsetY:o}=s;let r=!1,a,l;if(wr(n,o,i.target))a=n,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Mt(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:s}=t,n=Ue(e),o=n.boxSizing==="border-box",r=Ot(n,"padding"),a=Ot(n,"border","width"),{x:l,y:c,box:h}=Mr(i,e),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:m}=t;return o&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/f*e.width/s),y:Math.round((c-u)/m*e.height/s)}}function kr(i,t,e){let s,n;if(t===void 0||e===void 0){const o=i&&Ri(i);if(!o)t=i.clientWidth,e=i.clientHeight;else{const r=o.getBoundingClientRect(),a=Ue(o),l=Ot(a,"border","width"),c=Ot(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,s=Be(a.maxWidth,o,"clientWidth"),n=Be(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:s||Fe,maxHeight:n||Fe}}const _e=i=>Math.round(i*10)/10;function Sr(i,t,e,s){const n=Ue(i),o=Ot(n,"margin"),r=Be(n.maxWidth,i,"clientWidth")||Fe,a=Be(n.maxHeight,i,"clientHeight")||Fe,l=kr(i,t,e);let{width:c,height:h}=l;if(n.boxSizing==="content-box"){const u=Ot(n,"border","width"),f=Ot(n,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=_e(Math.min(c,r,l.maxWidth)),h=_e(Math.min(h,a,l.maxHeight)),c&&!h&&(h=_e(c/2)),(t!==void 0||e!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=_e(Math.floor(h*s))),{width:c,height:h}}function ns(i,t,e){const s=t||1,n=Math.floor(i.height*s),o=Math.floor(i.width*s);i.height=Math.floor(i.height),i.width=Math.floor(i.width);const r=i.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${i.height}px`,r.style.width=`${i.width}px`),i.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(i.currentDevicePixelRatio=s,r.height=n,r.width=o,i.ctx.setTransform(s,0,0,s,0,0),!0):!1}const Or=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};Pi()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return i}();function os(i,t){const e=yr(i,t),s=e&&e.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}/*! + * Chart.js v4.4.3 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */class Cr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Js.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var at=new Cr;const rs="transparent",Dr={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=Zi(i||rs),n=s.valid&&Zi(t||rs);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class Ar{constructor(t,e,s,n){const o=e[s];n=T([t.to,n,o,t.from]);const r=T([t.from,o,n]);this._active=!0,this._fn=t.fn||Dr[t.type||typeof r],this._easing=Jt[t.easing]||Jt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=T([t.to,e,n,t.from]),this._from=T([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n{const o=t[n];if(!C(o))return;const r={};for(const a of e)r[a]=o[a];(U(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=Ir(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&Rr(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=s.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new Ar(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return at.add(this._chart,s),!0}}function Rr(i,t){const e=[],s=Object.keys(t);for(let n=0;n0||!e&&o<0)return n.index}return null}function ds(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=zr(o,r,s),d=t.length;let u;for(let f=0;fe[s].axis===t).shift()}function Vr(i,t){return ce(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Wr(i,t,e){return ce(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Bt(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const ei=i=>i==="reset"||i==="none",us=(i,t)=>t?i:Object.assign({},i),Br=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:un(e,!0),values:null};class ee{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=cs(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Bt(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,u,f,m)=>d==="x"?u:d==="r"?m:f,o=e.xAxisID=L(s.xAxisID,ti(t,"x")),r=e.yAxisID=L(s.yAxisID,ti(t,"y")),a=e.rAxisID=L(s.rAxisID,ti(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Xi(this._data,this),t._stacked&&Bt(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(C(e)){const n=this._cachedMeta;this._data=Lr(e,n)}else if(s!==e){if(s){Xi(s,this);const n=this._cachedMeta;Bt(n),n._parsed=[]}e&&Object.isExtensible(e)&&Vo(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=cs(e.vScale,e),e.stack!==s.stack&&(n=!0,Bt(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&ds(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,u;if(this._parsing===!1)s._parsed=n,s._sorted=!0,u=n;else{U(n[t])?u=this.parseArrayData(s,n,t,e):C(n[t])?u=this.parseObjectData(s,n,t,e):u=this.parsePrimitiveData(s,n,t,e);const f=()=>d[a]===null||c&&d[a]p||d=0;--u)if(!m()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,r;for(n=0,o=e.length;n=0&&tthis.getContext(s,n,e),p=c.resolveNamedOptions(u,f,m,d);return p.$shared&&(p.$shared=l,o[r]=Object.freeze(us(p,l))),p}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,s,e))}const c=new Pr(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ei(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:r}}updateElement(t,e,s,n){ei(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!ei(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;aVe(y,a,l,!0)?1:Math.max(S,S*e,k,k*e),m=(y,S,k)=>Ve(y,a,l,!0)?-1:Math.min(S,S*e,k,k*e),p=f(0,c,d),g=f(N,h,u),_=m($,c,d),b=m($+N,h,u);s=(p-_)/2,n=(g-b)/2,o=-(p+_)/2,r=-(g+b)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}class Gt extends ee{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=s;else{let o=l=>+s[l];if(C(s[t])){const{key:l="value"}=this._parsing;o=c=>+oe(s[c],l)}let r,a;for(r=t,a=t+e;r0&&!isNaN(t)?B*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],o=sn(e._parsed[t],s.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const s=this.chart;let n,o,r,a,l;if(!t){for(n=0,o=s.data.datasets.length;nt!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),w(Gt,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:s,color:n}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,s){s.chart.toggleDataVisibility(e.index),s.chart.update()}}}});function wt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ii{constructor(t){w(this,"options");this.options=t||{}}static override(t){Object.assign(Ii.prototype,t)}init(){}formats(){return wt()}parse(){return wt()}format(){return wt()}add(){return wt()}diff(){return wt()}startOf(){return wt()}endOf(){return wt()}}var Hr={_date:Ii};function $r(i,t,e,s){const{controller:n,data:o,_sorted:r}=i,a=n._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?Fo:pi;if(s){if(n._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,e-h),u=l(o,t,e+h);return{lo:d.lo,hi:u.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function he(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a{l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),s&&!a?[]:o}var Kr={evaluateInteractionItems:he,modes:{index(i,t,e,s){const n=Mt(t,i),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?ii(i,n,o,s,r):si(i,n,o,!1,s,r),l=[];return a.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(i,t,e,s){const n=Mt(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?ii(i,n,o,s,r):si(i,n,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let h=0;he.pos===t)}function gs(i,t){return i.filter(e=>fn.indexOf(e.pos)===-1&&e.box.axis===t)}function Ht(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function qr(i){const t=[];let e,s,n,o,r,a;for(e=0,s=(i||[]).length;ec.box.fullSize),!0),s=Ht(Nt(t,"left"),!0),n=Ht(Nt(t,"right")),o=Ht(Nt(t,"top"),!0),r=Ht(Nt(t,"bottom")),a=gs(t,"x"),l=gs(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Nt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function ps(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function gn(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function Jr(i,t,e,s){const{pos:n,box:o}=e,r=i.maxPadding;if(!C(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&gn(r,o.getPadding());const a=Math.max(0,t.outerWidth-ps(r,i,"left","right")),l=Math.max(0,t.outerHeight-ps(r,i,"top","bottom")),c=a!==i.w,h=l!==i.h;return i.w=a,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function ta(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function ea(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return s(i?["left","right"]:["top","bottom"])}function Zt(i,t,e,s){const n=[];let o,r,a,l,c,h;for(o=0,r=i.length,c=0;o{typeof p.beforeLayout=="function"&&p.beforeLayout()});const h=l.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);gn(u,Ft(s));const f=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=Zr(l.concat(c),d);Zt(a.fullSize,f,d,m),Zt(l,f,d,m),Zt(c,f,d,m)&&Zt(l,f,d,m),ta(f),ms(a.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,ms(a.rightAndBottom,f,d,m),i.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Y(a.chartArea,p=>{const g=p.box;Object.assign(g,i.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class pn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class ia extends pn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Pe="$chartjs",sa={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},_s=i=>i===null||i==="";function na(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[Pe]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",_s(n)){const o=os(i,"width");o!==void 0&&(i.width=o)}if(_s(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=os(i,"height");o!==void 0&&(i.height=o)}return i}const mn=Or?{passive:!0}:!1;function oa(i,t,e){i&&i.addEventListener(t,e,mn)}function ra(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,mn)}function aa(i,t){const e=sa[i.type]||i.type,{x:s,y:n}=Mt(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ne(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function la(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ne(a.addedNodes,s),r=r&&!Ne(a.removedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function ca(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Ne(a.removedNodes,s),r=r&&!Ne(a.addedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const re=new Map;let bs=0;function _n(){const i=window.devicePixelRatio;i!==bs&&(bs=i,re.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function ha(i,t){re.size||window.addEventListener("resize",_n),re.set(i,t)}function da(i){re.delete(i),re.size||window.removeEventListener("resize",_n)}function ua(i,t,e){const s=i.canvas,n=s&&Ri(s);if(!n)return;const o=tn((a,l)=>{const c=n.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),ha(i,o),r}function ni(i,t,e){e&&e.disconnect(),t==="resize"&&da(i)}function fa(i,t,e){const s=i.canvas,n=tn(o=>{i.ctx!==null&&e(aa(o,i))},i);return oa(s,t,n),n}class ga extends pn{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(na(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[Pe])return!1;const s=e[Pe].initial;["height","width"].forEach(o=>{const r=s[o];H(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[Pe],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:la,detach:ca,resize:ua}[e]||fa;n[e]=r(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:ni,detach:ni,resize:ni}[e]||ra)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Sr(t,e,s,n)}isAttached(t){const e=t&&Ri(t);return!!(e&&e.isConnected)}}function pa(i){return!Pi()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?ia:ga}class Dt{constructor(){w(this,"x");w(this,"y");w(this,"active",!1);w(this,"options");w(this,"$animations")}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return je(this.x)&&je(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}w(Dt,"defaults",{}),w(Dt,"defaultRoutes");function ma(i,t){const e=i.options.ticks,s=_a(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?xa(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return ya(t,c,o,r/n),c;const h=ba(o,t,n);if(r>0){let d,u;const f=r>1?Math.round((l-a)/(r-1)):null;for(ye(t,c,h,H(f)?0:a-f,a),d=0,u=r-1;dn)return l}return Math.max(n,1)}function xa(i){const t=[];let e,s;for(e=0,s=i.length;ei==="left"?"right":i==="right"?"left":i,xs=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,ys=(i,t)=>Math.min(t||i,i);function vs(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;or+a)))return l}function ka(i,t){Y(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;os?s:e,s=n&&e>s?e:s,{min:st(e,st(s,e)),max:st(s,st(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){E(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=hr(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=it(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:f/(s-1),d+6>a&&(a=f/(s-(t.offset?.5:1)),l=this.maxHeight-$t(t.grid)-e.padding-ws(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=Lo(Math.min(Math.asin(it((h.highest.height+6)/a,-1,1)),Math.asin(it(l/c,-1,1))-Math.asin(it(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){E(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){E(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ws(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=$t(o)+l):(t.height=this.maxHeight,t.width=$t(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=s.padding*2,m=St(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(a){const _=s.mirror?0:g*d.width+p*u.height;t.height=Math.min(this.maxHeight,t.height+_+f)}else{const _=s.mirror?0:p*d.width+g*u.height;t.width=Math.min(this.maxWidth,t.width+_+f)}this._calculatePadding(c,h,g,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*t.width,f=s*e.height):(u=s*t.height,f=n*e.width):o==="start"?f=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,f=e.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){E(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e({width:r[F]||0,height:a[F]||0});return{first:z(0),last:z(e-1),widest:z(v),highest:z(x),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return zo(this._alignToPixels?vt(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*n?a/s:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=$t(o),f=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,_=function(I){return vt(s,I,p)};let b,y,S,k,v,x,z,F,R,M,W,G;if(r==="top")b=_(this.bottom),x=this.bottom-u,F=b-g,M=_(t.top)+g,G=t.bottom;else if(r==="bottom")b=_(this.top),M=t.top,G=_(t.bottom)-g,x=b+g,F=this.top+u;else if(r==="left")b=_(this.right),v=this.right-u,z=b-g,R=_(t.left)+g,W=t.right;else if(r==="right")b=_(this.left),R=t.left,W=_(t.right)-g,v=b+g,z=this.left+u;else if(e==="x"){if(r==="center")b=_((t.top+t.bottom)/2+.5);else if(C(r)){const I=Object.keys(r)[0],j=r[I];b=_(this.chart.scales[I].getPixelForValue(j))}M=t.top,G=t.bottom,x=b+g,F=x+u}else if(e==="y"){if(r==="center")b=_((t.left+t.right)/2);else if(C(r)){const I=Object.keys(r)[0],j=r[I];b=_(this.chart.scales[I].getPixelForValue(j))}v=b-g,z=v-u,R=t.left,W=t.right}const J=L(n.ticks.maxTicksLimit,d),A=Math.max(1,Math.ceil(d/J));for(y=0;y0&&(bt-=_t/2);break}de={left:bt,top:Wt,width:_t+Pt.width,height:Vt+Pt.height,color:A.backdropColor}}g.push({label:S,font:F,textOffset:W,options:{rotation:p,color:j,strokeColor:tt,strokeWidth:X,textAlign:At,textBaseline:G,translation:[k,v],backdrop:de}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-St(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");V.route(o,n,l,a)})}function Ra(i){return"id"in i&&"defaults"in i}class Ia{constructor(){this.controllers=new ve(ee,"datasets",!0),this.elements=new ve(Dt,"elements"),this.plugins=new ve(Object,"plugins"),this.scales=new ve(Xe,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):Y(n,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,s){const n=Mi(t);E(s["before"+n],[],s),e[t](s),E(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;eo.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function Ea(i){const t={},e=[],s=Object.keys(nt.plugins.items);for(let o=0;o1&&Ms(i[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function ks(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function Ba(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return ks(i,"x",e[0])||ks(i,"y",e[0])}return{}}function Na(i,t){const e=Ct[i.type]||{scales:{}},s=t.scales||{},n=_i(i.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!C(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=bi(r,a,Ba(r,i),V.scales[a.type]),c=Va(l,n),h=e.scales||{};o[r]=Qt(Object.create(null),[{axis:l},a,h[l],h[c]])}),i.data.datasets.forEach(r=>{const a=r.type||i.type,l=r.indexAxis||_i(a,t),h=(Ct[a]||{}).scales||{};Object.keys(h).forEach(d=>{const u=ja(d,l),f=r[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),Qt(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Qt(a,[V.scales[a.type],V.scale])}),o}function bn(i){const t=i.options||(i.options={});t.plugins=L(t.plugins,{}),t.scales=Na(i,t)}function xn(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function Ha(i){return i=i||{},i.data=xn(i.data),bn(i),i}const Ss=new Map,yn=new Set;function we(i,t){let e=Ss.get(i);return e||(e=t(),Ss.set(i,e),yn.add(e)),e}const Yt=(i,t,e)=>{const s=oe(t,e);s!==void 0&&i.add(s)};class $a{constructor(t){this._config=Ha(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=xn(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),bn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return we(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return we(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return we(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return we(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,r=this._cachedScopes(t,s),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Yt(l,t,d))),h.forEach(d=>Yt(l,n,d)),h.forEach(d=>Yt(l,Ct[o]||{},d)),h.forEach(d=>Yt(l,V,d)),h.forEach(d=>Yt(l,mi,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),yn.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ct[e]||{},V.datasets[e]||{},{type:e},V,mi]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Os(this._resolverCache,t,n);let l=r;if(Ua(r,e)){o.$shared=!1,s=mt(s)?s():s;const c=this.createResolver(t,s,a);l=jt(r,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=Os(this._resolverCache,t,s);return C(e)?jt(o,e,void 0,n):o}}function Os(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Ci(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const Ya=i=>C(i)&&Object.getOwnPropertyNames(i).some(t=>mt(i[t]));function Ua(i,t){const{isScriptable:e,isIndexable:s}=ln(i);for(const n of t){const o=e(n),r=s(n),a=(r||o)&&i[n];if(o&&(mt(a)||Ya(a))||r&&U(a))return!0}return!1}var Xa="4.4.3";const Ka=["top","bottom","left","right","chartArea"];function Cs(i,t){return i==="top"||i==="bottom"||Ka.indexOf(i)===-1&&t==="x"}function Ds(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function As(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),E(e&&e.onComplete,[i],t)}function qa(i){const t=i.chart,e=t.options.animation;E(e&&e.onProgress,[i],t)}function vn(i){return Pi()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const Re={},Ps=i=>{const t=vn(i);return Object.values(Re).filter(e=>e.canvas===t).pop()};function Ga(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const r=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=r)}}}function Za(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}function Me(i,t,e){return i.options.clip?i[e]:t[e]}function Qa(i,t){const{xScale:e,yScale:s}=i;return e&&s?{left:Me(e,t,"left"),right:Me(e,t,"right"),top:Me(s,t,"top"),bottom:Me(s,t,"bottom")}:t}var ut;let ae=(ut=class{static register(...t){nt.add(...t),Rs()}static unregister(...t){nt.remove(...t),Rs()}constructor(t,e){const s=this.config=new $a(e),n=vn(t),o=Ps(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||pa(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Oo(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ta,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Bo(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],Re[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}at.listen(this,"complete",As),at.listen(this,"progress",qa),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return H(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return nt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ns(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return at.stop(this),this}resize(t,e){at.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ns(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),E(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Y(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=bi(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),Y(o,r=>{const a=r.options,l=a.id,c=bi(l,a),h=L(a.type,r.dtype);(a.position===void 0||Cs(a.position,c)!==Cs(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const u=nt.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Y(n,(r,a)=>{r||delete s[a]}),Y(s,r=>{xe.configure(this,r,r.options),xe.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;ne.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ds("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Y(this.scales,t=>{xe.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Hi(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const r=s==="_removeElements"?-o:o;Ga(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;xe.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],Y(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,n=!s.disabled,o=Qa(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(n&&on(e,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),n&&rn(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Si(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=Kr.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=ce(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);ze(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),at.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Y(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){Y(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Y(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Bi(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=s?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,s,r),l=Io(t),c=Za(t,this._lastEvent,s,l);s&&(this._lastEvent=null,E(o.onHover,[t,a,this],this),l&&E(o.onClick,[t,a,this],this));const h=!Bi(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}},w(ut,"defaults",V),w(ut,"instances",Re),w(ut,"overrides",Ct),w(ut,"registry",nt),w(ut,"version",Xa),w(ut,"getChart",Ps),ut);function Rs(){return Y(ae.instances,i=>i._plugins.invalidate())}function Ja(i,t,e){const{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;i.beginPath(),i.arc(o,r,a,s-c,e+c),l>n?(c=n/l,i.arc(o,r,l,e+c,s-c,!0)):i.arc(o,r,n,e+N,s-N),i.closePath(),i.clip()}function tl(i){return Oi(i,["outerStart","outerEnd","innerStart","innerEnd"])}function el(i,t,e,s){const n=tl(i.options.borderRadius),o=(e-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(e-Math.min(o,l))*s/2;return it(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:it(n.innerStart,0,r),innerEnd:it(n.innerEnd,0,r)}}function Et(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function He(i,t,e,s,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+s+e-c,0),u=h>0?h+s+e+c:0;let f=0;const m=n-l;if(s){const A=h>0?h-s:0,I=d>0?d-s:0,j=(A+I)/2,tt=j!==0?m*j/(j+s):m;f=(m-tt)/2}const p=Math.max(.001,m*d-e/$)/d,g=(m-p)/2,_=l+g+f,b=n-g-f,{outerStart:y,outerEnd:S,innerStart:k,innerEnd:v}=el(t,u,d,b-_),x=d-y,z=d-S,F=_+y/x,R=b-S/z,M=u+k,W=u+v,G=_+k/M,J=b-v/W;if(i.beginPath(),o){const A=(F+R)/2;if(i.arc(r,a,d,F,A),i.arc(r,a,d,A,R),S>0){const X=Et(z,R,r,a);i.arc(X.x,X.y,S,R,b+N)}const I=Et(W,b,r,a);if(i.lineTo(I.x,I.y),v>0){const X=Et(W,J,r,a);i.arc(X.x,X.y,v,b+N,J+Math.PI)}const j=(b-v/u+(_+k/u))/2;if(i.arc(r,a,u,b-v/u,j,!0),i.arc(r,a,u,j,_+k/u,!0),k>0){const X=Et(M,G,r,a);i.arc(X.x,X.y,k,G+Math.PI,_-N)}const tt=Et(x,_,r,a);if(i.lineTo(tt.x,tt.y),y>0){const X=Et(x,F,r,a);i.arc(X.x,X.y,y,_-N,F)}}else{i.moveTo(r,a);const A=Math.cos(F)*d+r,I=Math.sin(F)*d+a;i.lineTo(A,I);const j=Math.cos(R)*d+r,tt=Math.sin(R)*d+a;i.lineTo(j,tt)}i.closePath()}function il(i,t,e,s,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){He(i,t,e,s,l,n);for(let c=0;c=B||Ve(r,l,c),g=gi(a,h+f,d+f);return p&&g}getCenterPoint(e){const{x:s,y:n,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:h}=this.options,d=(o+r)/2,u=(a+l+h+c)/2;return{x:s+Math.cos(d)*u,y:n+Math.sin(d)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:s,circumference:n}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=n>B?Math.floor(n/B):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min($,n||0)),h=o*c;e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,il(e,this,h,r,a),sl(e,this,h,r,a),e.restore()}}w(zt,"id","arc"),w(zt,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),w(zt,"defaultRoutes",{backgroundColor:"backgroundColor"}),w(zt,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Is(i,t,e,s){const n=i.options,{[e]:o}=i.getProps([e],s);return Math.abs(t-o)=q.indexOf(e);o--){const r=q[o];if(Ke[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return q[e?q.indexOf(e):0]}function hl(i){for(let t=q.indexOf(i)+1,e=q.length;t=t?e[s]:e[n];i[o]=!0}}function dl(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function Fs(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=it(e,0,r),s=it(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||Ls(o.minUnit,e,s,this._getLabelCapacity(e)),a=L(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=je(l)||l===!0,h={};let d=e,u,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,f=0;u+p)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,r=e||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.ticks.callback;if(r)return E(r,[t,e,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],u=s[e],f=c&&d&&u&&u.major;return this._adapter.format(t,n||(f?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=pi(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=pi(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class js extends $e{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ke(e,this.min),this._tableRange=ke(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;rn-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(ke(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return ke(this._table,s*this._tableRange+this._minPos,!0)}}w(js,"id","timeseries"),w(js,"defaults",$e.defaults);const Mn={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},ul={ariaLabel:{type:String},ariaDescribedby:{type:String}},fl={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Mn,...ul},gl=Vn[0]==="2"?(i,t)=>Object.assign(i,{attrs:t}):(i,t)=>Object.assign(i,t);function Lt(i){return $s(i)?ci(i):i}function pl(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;return $s(t)?new Proxy(i,{}):i}function ml(i,t){const e=i.options;e&&t&&Object.assign(e,t)}function kn(i,t){i.labels=t}function Sn(i,t,e){const s=[];i.datasets=t.map(n=>{const o=i.datasets.find(r=>r[e]===n[e]);return!o||!n.data||s.includes(o)?{...n}:(s.push(o),Object.assign(o,n),o)})}function _l(i,t){const e={labels:[],datasets:[]};return kn(e,i.labels),Sn(e,i.datasets,t),e}const bl=Ye({props:fl,setup(i,t){let{expose:e,slots:s}=t;const n=et(null),o=Ns(null);e({chart:o});const r=()=>{if(!n.value)return;const{type:c,data:h,options:d,plugins:u,datasetIdKey:f}=i,m=_l(h,f),p=pl(m,h);o.value=new ae(n.value,{type:c,data:p,options:{...d},plugins:u})},a=()=>{const c=ci(o.value);c&&(i.destroyDelay>0?setTimeout(()=>{c.destroy(),o.value=null},i.destroyDelay):(c.destroy(),o.value=null))},l=c=>{c.update(i.updateMode)};return Hs(r),Wn(a),Ee([()=>i.options,()=>i.data],(c,h)=>{let[d,u]=c,[f,m]=h;const p=ci(o.value);if(!p)return;let g=!1;if(d){const _=Lt(d),b=Lt(f);_&&_!==b&&(ml(p,_),g=!0)}if(u){const _=Lt(u.labels),b=Lt(m.labels),y=Lt(u.datasets),S=Lt(m.datasets);_!==b&&(kn(p.config.data,_),g=!0),y&&y!==S&&(Sn(p.config.data,y,i.datasetIdKey),g=!0)}g&&Bn(()=>{l(p)})},{deep:!0}),()=>li("canvas",{role:"img",ariaLabel:i.ariaLabel,ariaDescribedby:i.ariaDescribedby,ref:n},[li("p",{},[s.default?s.default():""])])}});function xl(i,t){return ae.register(t),Ye({props:Mn,setup(e,s){let{expose:n}=s;const o=Ns(null),r=a=>{o.value=a==null?void 0:a.chart};return n({chart:o}),()=>li(bl,gl({ref:r},{type:i,...e}))}})}const yl=xl("doughnut",Gt);/*! + * chartjs-plugin-datalabels v2.2.0 + * https://chartjs-plugin-datalabels.netlify.app + * (c) 2017-2022 chartjs-plugin-datalabels contributors + * Released under the MIT license + */var Vs=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),ie={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(` +`)):Array.isArray(e)?i.push.apply(i,e):H(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var s=[].concat(t),n=s.length,o=i.font,r=0,a;for(i.font=e.string,a=0;ae.right&&(s|=Cn),te.bottom&&(s|=Dn),s}function Ml(i,t){for(var e=i.x0,s=i.y0,n=i.x1,o=i.y1,r=Se(e,s,t),a=Se(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&An?(c=e+(n-e)*(t.top-s)/(o-s),h=t.top):l&Dn?(c=e+(n-e)*(t.bottom-s)/(o-s),h=t.bottom):l&Cn?(h=s+(o-s)*(t.right-e)/(n-e),c=t.right):l&On&&(h=s+(o-s)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,s=h,r=Se(e,s,t)):(n=c,o=h,a=Se(n,o,t));return{x0:e,x1:n,y0:s,y1:o}}function Oe(i,t){var e=t.anchor,s=i,n,o;return t.clamp&&(s=Ml(s,t.area)),e==="start"?(n=s.x0,o=s.y0):e==="end"?(n=s.x1,o=s.y1):(n=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),vl(n,o,i.vx,i.vy,t.align)}var Ce={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,s=Math.cos(e),n=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return Oe({x0:i.x+s*o,y0:i.y+n*o,x1:i.x+s*r,y1:i.y+n*r,vx:s,vy:n},t)},point:function(i,t){var e=ai(i,t.origin),s=e.x*i.options.radius,n=e.y*i.options.radius;return Oe({x0:i.x-s,y0:i.y-n,x1:i.x+s,y1:i.y+n,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=ai(i,t.origin),s=i.x,n=i.y,o=0,r=0;return i.horizontal?(s=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(n=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),Oe({x0:s,y0:n+r,x1:s+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=ai(i,t.origin);return Oe({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},ht=ie.rasterize;function kl(i){var t=i.borderWidth||0,e=i.padding,s=i.size.height,n=i.size.width,o=-n/2,r=-s/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:s+e.height+t*2},text:{x:o,y:r,w:n,h:s}}}function Sl(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var s=e.getBasePixel();return i.horizontal?{x:s,y:null}:{x:null,y:s}}function Ol(i){return i instanceof zt?Ce.arc:i instanceof Ie?Ce.point:i instanceof Te?Ce.bar:Ce.fallback}function Cl(i,t,e,s,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,s/2),l=t+a,c=e+a,h=t+s-a,d=e+n-a;i.moveTo(t,c),ls.x+s.w+e*2||i.y>s.y+s.h+e*2)},intersects:function(i){var t=this._points(),e=i._points(),s=[De(t[0],t[1]),De(t[0],t[3])],n,o,r;for(this._rotation!==i._rotation&&s.push(De(e[0],e[1]),De(e[0],e[3])),n=0;n=0;--e)for(n=i[e].$layout,s=e-1;s>=0&&n._visible;--s)o=i[s].$layout,o._visible&&n._box.intersects(o._box)&&t(n,o);return i}function Ll(i){var t,e,s,n,o,r,a;for(t=0,e=i.length;tl.getProps([c],!0)[c]}),o=s.geometry(),r=In(a,s.model(),o),n._box.update(r,o,s.rotation()));return El(i,function(l,c){var h=l._hidable,d=c._hidable;h&&d||d?c._visible=!1:h&&(l._visible=!1)})}var se={prepare:function(i){var t=[],e,s,n,o,r;for(e=0,n=i.length;e=0;--e)if(s=i[e].$layout,s&&s._visible&&s._box.contains(t))return i[e];return null},draw:function(i,t){var e,s,n,o,r,a;for(e=0,s=t.length;e{const r=Object.keys(t.data),a=r.map(c=>t.data[c].weight),l=r.map(c=>t.data[c].color);return{labels:r,datasets:[{label:"My First Dataset",data:a,backgroundColor:l,hoverOffset:4}]}}),n=et({responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!0,color:"#fff",backgroundColor:"#404040",formatter:function(r,a){return a.chart.data.labels[a.dataIndex]}}}});Ae(()=>{let r=0;if(!t.data)return r;for(const a in t.data)r+=t.data[a].weight;return r});const o=Ae(()=>t.data?Object.fromEntries(Object.entries(t.data).sort(([,r],[,a])=>a.weight-r.weight)):{});return Ee(()=>t.data,(r,a)=>{if(a)for(const l in r)try{if(a[l]&&a[l].weight!==r[l].weight){const c=l.toLowerCase();e.value=`animate-${c}`,setTimeout(()=>{e.value=""},1e3)}}catch(c){console.log("error",c)}},{deep:!0}),(r,a)=>{const l=Bs,c=Nn("Vue3Marquee");return ot(),kt(hi,null,[ct("div",Hl,[ct("div",$l,[D(c,{"pause-on-hover":"true","animate-on-overflow-only":!0,clone:!0,class:Kt(`d-flex justify-center ${P(e)}`)},{default:O(()=>[(ot(!0),kt(hi,null,Hn(Object.keys(P(o)),h=>(ot(),di(l,{key:h,id:`category-chip-${h.toLowerCase()}`,category:P(o)[h]},{default:O(()=>[Q(Xt(P(Ys)(i.data[h].weight)),1)]),_:2},1032,["id","category"]))),128))]),_:1},8,["class"])])]),ct("div",Yl,[D(ui,{id:"chart-icon"},{default:O(()=>[Q("M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z")]),_:1}),D(P(yl),{id:"chart",options:P(n),data:P(s)},null,8,["options","data"])])],64)}}}),Xl=i=>(Zn("data-v-1843661d"),i=i(),Qn(),i),Kl=Xl(()=>ct("h3",null,"Items",-1)),ql={key:0,class:"fix-overflow"},Gl={key:1},Zl={key:0},Ql={key:0},Jl={class:"chart-toggle-wrapper"},tc=Ye({__name:"form",props:{inventory:{type:Object,default:()=>({name:""})}},emits:["close-dialog"],async setup(i){let t,e;et(!1);const s=et(!1),n=et(!1),o=et({}),r=et("");et(!0);const a=i,{xsAndDown:l}=jn(),c=[{title:"Name",value:"name",sortable:!0},{title:"Weight",value:"weight",sortable:!0},{title:"Category",value:"category",sortable:!0}],h=et({...a.inventory}),d=et([]),u=$n(),f=Yn(),{entities:m}=Un(f);[t,e]=Xn(()=>f.fetch()),await t,e(),Ee(()=>d.value,v=>{h.value.items=v.map(x=>m.value.find(z=>z.id===x))}),Ee(()=>h.value,v=>{o.value=to(v.items)},{deep:!0});const p=Ae(()=>h.value.items?h.value.items.reduce((v,x)=>v+x.weight*x.amount,0):0),g=()=>{n.value=!n.value},_={weight:(v,x)=>v-x,category:(v,x)=>v.name.localeCompare(x.name),amount:(v,x)=>v-x},b={category:(v,x)=>v.name.toLowerCase().includes(x.toLowerCase())},y=async()=>{try{const{items:v,...x}=h.value;h.value.id?await u.updateWithItems(x,v):await u.createWithItems(x,v),Ei("/inventories")}catch(v){console.error("An error occurred while saving the item:",v)}};async function S(){await u.delete(h.value.id),Ei("/inventories")}async function k(){s.value=!0}return Hs(()=>{h.value.id&&(d.value=h.value.items.map(v=>v.id))}),(v,x)=>{const z=Fn,F=Bs,R=Ul;return ot(),kt(hi,null,[D(io,null,{default:O(()=>[D(Li,{modelValue:P(h).name,"onUpdate:modelValue":x[0]||(x[0]=M=>P(h).name=M),label:"Name"},null,8,["modelValue"]),D(eo,{class:"px-0"},{default:O(()=>[D(zi,null,{default:O(()=>[D(ue,{cols:"12",class:"px-0"},{default:O(()=>[D(qe,null,{title:O(()=>[Kl]),text:O(()=>[D(Li,{modelValue:P(r),"onUpdate:modelValue":x[1]||(x[1]=M=>Ge(r)?r.value=M:null),label:"Search","prepend-inner-icon":"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",variant:"outlined","hide-details":"","single-line":""},null,8,["modelValue"])]),default:O(()=>[D(zn,{id:"items-table",modelValue:P(d),"onUpdate:modelValue":x[2]||(x[2]=M=>Ge(d)?d.value=M:null),items:P(m),"item-value":"id",headers:c,"show-select":"","custom-key-sort":_,search:P(r),"item-selectable":"true","custom-key-filter":b,"mobile-breakpoint":"0"},{"item.name":O(({item:M})=>[ct("div",null,[M.name.length>18?(ot(),di(P(Kn),{key:0,"animate-on-overflow-only":"true"},{default:O(()=>[Q(Xt(M.name)+"  ",1)]),_:2},1024)):Rt("",!0)]),M.name.length<=18?(ot(),kt("span",ql,Xt(M.name),1)):Rt("",!0),M.amount>1?(ot(),kt("span",Gl," (x"+Xt(M.amount)+") ",1)):Rt("",!0)]),"header.weight":O(()=>[ct("div",{class:Kt(`d-flex ${P(l)?"justify-center align-center":""}`)},[D(ui,null,{default:O(()=>[Q("M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z")]),_:1}),P(l)?Rt("",!0):(ot(),kt("span",Zl,"  Weight ")),Q(" "+Xt(P(Ys)(P(p),!0)),1)],2)]),"header.category":O(()=>[ct("div",{class:Kt(`d-flex ${P(l)?"justify-center align-center":""}`)},[D(ui,null,{default:O(()=>[Q("M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z")]),_:1}),P(l)?Rt("",!0):(ot(),kt("span",Ql,"  Category "))],2)]),"item.weight":O(({item:M})=>[D(z,{weight:M.weight*M.amount,xsAndDown:P(l)},null,8,["weight","xsAndDown"])]),"item.category":O(({value:M})=>[D(F,{"render-names":!P(l),category:M},null,8,["render-names","category"])]),_:1},8,["modelValue","items","search"])]),_:1})]),_:1})]),_:1})]),_:1}),D(zi,{class:"mt-1",justify:"end"},{default:O(()=>[P(h).id?(ot(),di(ue,{key:0,cols:"auto"},{default:O(()=>[D(It,{onClick:x[3]||(x[3]=M=>k())},{default:O(()=>[Q("Delete")]),_:1})]),_:1})):Rt("",!0),D(ue,{cols:"auto"},{default:O(()=>[D(It,{onClick:x[4]||(x[4]=M=>v.$router.back())},{default:O(()=>[Q("Cancel")]),_:1})]),_:1}),D(ue,{cols:"auto"},{default:O(()=>[D(It,{onClick:x[5]||(x[5]=M=>y())},{default:O(()=>[Q("Save")]),_:1})]),_:1})]),_:1}),D(qn,{modelValue:P(s),"onUpdate:modelValue":x[8]||(x[8]=M=>Ge(s)?s.value=M:null),"max-width":"290"},{default:O(()=>[D(qe,null,{default:O(()=>[D(Ti,null,{default:O(()=>[Q("Are you sure you want to delete this item?")]),_:1}),D(Gn,null,{default:O(()=>[D(It,{onClick:x[6]||(x[6]=M=>s.value=!1)},{default:O(()=>[Q("Cancel")]),_:1}),D(It,{onClick:x[7]||(x[7]=M=>S())},{default:O(()=>[Q("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),ct("div",{class:Kt(`chart-overlay ${P(n)?"show":""}`)},[ct("div",Jl,[D(It,{icon:"M12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M17,14L12,9L7,14H17Z",size:"x-large",rounded:"m",elevation:"",class:Kt(`chart-toggle ${P(n)?"rotated":""}`),onClick:x[9]||(x[9]=M=>g())},null,8,["class"])]),D(qe,null,{default:O(()=>[D(Ti,null,{default:O(()=>[D(R,{class:"pt-5 inventories-chart",data:P(o),colors:v.categoryColors},null,8,["data","colors"])]),_:1})]),_:1})],2)],64)}}}),dc=Jn(tc,[["__scopeId","data-v-1843661d"]]);export{dc as _}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index a1b1fac..3d0170c 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"4752cce3-6eea-4a39-ae9f-034a12cfe4bd","timestamp":1720308671718} \ No newline at end of file +{"id":"82b60f10-43b9-48c2-abd3-3a700155b368","timestamp":1720309398632} \ No newline at end of file diff --git a/_nuxt/builds/meta/82b60f10-43b9-48c2-abd3-3a700155b368.json b/_nuxt/builds/meta/82b60f10-43b9-48c2-abd3-3a700155b368.json new file mode 100644 index 0000000..df1fa97 --- /dev/null +++ b/_nuxt/builds/meta/82b60f10-43b9-48c2-abd3-3a700155b368.json @@ -0,0 +1 @@ +{"id":"82b60f10-43b9-48c2-abd3-3a700155b368","timestamp":1720309398632,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/_nuxt/l9yxdLf0.js b/_nuxt/l9yxdLf0.js new file mode 100644 index 0000000..c7a654e --- /dev/null +++ b/_nuxt/l9yxdLf0.js @@ -0,0 +1 @@ +import{F as I,b2 as D,G as z,a3 as W,I as _,L as E,A as m,aJ as Y,S as Z,b8 as ee,bX as ae,c as v,aX as A,ba as ne,bz as te,c3 as X,aI as O,ap as F,r as R,as as $,a0 as se,bq as le,a7 as ie,J as ue,bN as j,aQ as re,af as oe,bu as de,e as ce,o as ve,bE as H,au as fe,O as J,aF as ge,c4 as me,bR as ye,b6 as he,bS as be,a5 as pe,aK as Ve}from"./-VvI6Lr7.js";const ke=I({text:String,onClick:D(),...z(),...W()},"VLabel"),Ae=_()({name:"VLabel",props:ke(),setup(e,d){let{slots:r}=d;return E(()=>{var n;return m("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(n=r.default)==null?void 0:n.call(r)])}),{}}});function Ie(e){const{t:d}=Y();function r(n){let{name:o}=n;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],l=e[`onClick:${o}`],g=l&&a?d(`$vuetify.input.${a}`,e.label??""):void 0;return m(Z,{icon:e[`${o}Icon`],"aria-label":g,onClick:l},null)}return{InputIcon:r}}const Me=I({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...z(),...ee({transition:{component:ae,leaveAbsolute:!0,group:!0}})},"VMessages"),Se=_()({name:"VMessages",props:Me(),setup(e,d){let{slots:r}=d;const n=v(()=>A(e.messages)),{textColorClasses:o,textColorStyles:a}=ne(v(()=>e.color));return E(()=>m(te,{transition:e.transition,tag:"div",class:["v-messages",o.value,e.class],style:[a.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&n.value.map((l,g)=>m("div",{class:"v-messages__message",key:`${g}-${n.value}`},[r.message?r.message({message:l}):l]))]})),{}}}),Ce=I({focused:Boolean,"onUpdate:focused":D()},"focus");function De(e){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:X();const r=O(e,"focused"),n=v(()=>({[`${d}--focused`]:r.value}));function o(){r.value=!0}function a(){r.value=!1}return{focusClasses:n,isFocused:r,focus:o,blur:a}}const q=Symbol.for("vuetify:form"),Fe=I({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Re(e){const d=O(e,"modelValue"),r=v(()=>e.disabled),n=v(()=>e.readonly),o=F(!1),a=R([]),l=R([]);async function g(){const i=[];let s=!0;l.value=[],o.value=!0;for(const c of a.value){const t=await c.validate();if(t.length>0&&(s=!1,i.push({id:c.id,errorMessages:t})),!s&&e.fastFail)break}return l.value=i,o.value=!1,{valid:s,errors:l.value}}function k(){a.value.forEach(i=>i.reset())}function p(){a.value.forEach(i=>i.resetValidation())}return $(a,()=>{let i=0,s=0;const c=[];for(const t of a.value)t.isValid===!1?(s++,c.push({id:t.id,errorMessages:t.errorMessages})):t.isValid===!0&&i++;l.value=c,d.value=s>0?!1:i===a.value.length?!0:null},{deep:!0,flush:"post"}),se(q,{register:i=>{let{id:s,vm:c,validate:t,reset:h,resetValidation:M}=i;a.value.some(S=>S.id===s),a.value.push({id:s,validate:t,reset:h,resetValidation:M,vm:le(c),isValid:null,errorMessages:[]})},unregister:i=>{a.value=a.value.filter(s=>s.id!==i)},update:(i,s,c)=>{const t=a.value.find(h=>h.id===i);t&&(t.isValid=s,t.errorMessages=c)},isDisabled:r,isReadonly:n,isValidating:o,isValid:d,items:a,validateOn:ie(e,"validateOn")}),{errors:l,isDisabled:r,isReadonly:n,isValidating:o,isValid:d,items:a,validate:g,reset:k,resetValidation:p}}function Be(){return ue(q,null)}const Pe=I({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Ce()},"validation");function xe(e){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:X(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j();const n=O(e,"modelValue"),o=v(()=>e.validationValue===void 0?n.value:e.validationValue),a=Be(),l=R([]),g=F(!0),k=v(()=>!!(A(n.value===""?null:n.value).length||A(o.value===""?null:o.value).length)),p=v(()=>!!(e.disabled??(a==null?void 0:a.isDisabled.value))),i=v(()=>!!(e.readonly??(a==null?void 0:a.isReadonly.value))),s=v(()=>{var u;return(u=e.errorMessages)!=null&&u.length?A(e.errorMessages).concat(l.value).slice(0,Math.max(0,+e.maxErrors)):l.value}),c=v(()=>{let u=(e.validateOn??(a==null?void 0:a.validateOn.value))||"input";u==="lazy"&&(u="input lazy");const f=new Set((u==null?void 0:u.split(" "))??[]);return{blur:f.has("blur")||f.has("input"),input:f.has("input"),submit:f.has("submit"),lazy:f.has("lazy")}}),t=v(()=>{var u;return e.error||(u=e.errorMessages)!=null&&u.length?!1:e.rules.length?g.value?l.value.length||c.value.lazy?null:!0:!l.value.length:!0}),h=F(!1),M=v(()=>({[`${d}--error`]:t.value===!1,[`${d}--dirty`]:k.value,[`${d}--disabled`]:p.value,[`${d}--readonly`]:i.value})),S=re("validation"),V=v(()=>e.name??oe(r));de(()=>{a==null||a.register({id:V.value,vm:S,validate:y,reset:C,resetValidation:B})}),ce(()=>{a==null||a.unregister(V.value)}),ve(async()=>{c.value.lazy||await y(!0),a==null||a.update(V.value,t.value,s.value)}),H(()=>c.value.input,()=>{$(o,()=>{if(o.value!=null)y();else if(e.focused){const u=$(()=>e.focused,f=>{f||y(),u()})}})}),H(()=>c.value.blur,()=>{$(()=>e.focused,u=>{u||y()})}),$([t,s],()=>{a==null||a.update(V.value,t.value,s.value)});async function C(){n.value=null,await fe(),await B()}async function B(){g.value=!0,c.value.lazy?l.value=[]:await y(!0)}async function y(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const f=[];h.value=!0;for(const P of e.rules){if(f.length>=+(e.maxErrors??1))break;const b=await(typeof P=="function"?P:()=>P)(o.value);if(b!==!0){if(b!==!1&&typeof b!="string"){console.warn(`${b} is not a valid value. Rule functions must return boolean true or a string.`);continue}f.push(b||"")}}return l.value=f,h.value=!1,g.value=u,l.value}return{errorMessages:s,isDirty:k,isDisabled:p,isReadonly:i,isPristine:g,isValid:t,isValidating:h,reset:C,resetValidation:B,validate:y,validationClasses:M}}const $e=I({id:String,appendIcon:J,centerAffix:{type:Boolean,default:!0},prependIcon:J,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":D(),"onClick:append":D(),...z(),...ge(),...me(ye(),["maxWidth","minWidth","width"]),...W(),...Pe()},"VInput"),ze=_()({name:"VInput",props:{...$e()},emits:{"update:modelValue":e=>!0},setup(e,d){let{attrs:r,slots:n,emit:o}=d;const{densityClasses:a}=he(e),{dimensionStyles:l}=be(e),{themeClasses:g}=pe(e),{rtlClasses:k}=Ve(),{InputIcon:p}=Ie(e),i=j(),s=v(()=>e.id||`input-${i}`),c=v(()=>`${s.value}-messages`),{errorMessages:t,isDirty:h,isDisabled:M,isReadonly:S,isPristine:V,isValid:C,isValidating:B,reset:y,resetValidation:u,validate:f,validationClasses:P}=xe(e,"v-input",s),x=v(()=>({id:s,messagesId:c,isDirty:h,isDisabled:M,isReadonly:S,isPristine:V,isValid:C,isValidating:B,reset:y,resetValidation:u,validate:f})),b=v(()=>{var w;return(w=e.errorMessages)!=null&&w.length||!V.value&&t.value.length?t.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return E(()=>{var L,N,K,U;const w=!!(n.prepend||e.prependIcon),G=!!(n.append||e.appendIcon),T=b.value.length>0,Q=!e.hideDetails||e.hideDetails==="auto"&&(T||!!n.details);return m("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,g.value,k.value,P.value,e.class],style:[l.value,e.style]},[w&&m("div",{key:"prepend",class:"v-input__prepend"},[(L=n.prepend)==null?void 0:L.call(n,x.value),e.prependIcon&&m(p,{key:"prepend-icon",name:"prepend"},null)]),n.default&&m("div",{class:"v-input__control"},[(N=n.default)==null?void 0:N.call(n,x.value)]),G&&m("div",{key:"append",class:"v-input__append"},[e.appendIcon&&m(p,{key:"append-icon",name:"append"},null),(K=n.append)==null?void 0:K.call(n,x.value)]),Q&&m("div",{class:"v-input__details"},[m(Se,{id:c.value,active:T,messages:b.value},{message:n.message}),(U=n.details)==null?void 0:U.call(n,x.value)])])}),{reset:y,resetValidation:u,validate:f,isValid:C,errorMessages:t}}});export{ze as V,$e as a,De as b,Ae as c,Fe as d,Re as e,Ie as f,Ce as m,Be as u}; diff --git a/_nuxt/mCWCszvA.js b/_nuxt/mCWCszvA.js new file mode 100644 index 0000000..d382cf7 --- /dev/null +++ b/_nuxt/mCWCszvA.js @@ -0,0 +1 @@ +import{a as W,f as Y,b as Z,c as ee}from"./TjYH8LVs.js";import{a as le,b as te,V as B}from"./l9yxdLf0.js";import{F as ne,aX as N,I as ae,aJ as ue,aI as ie,c as s,r as h,as as oe,L as se,bJ as re,A as u,a1 as b,ae as V,bi as ce,bK as M,au as de,bL as fe}from"./-VvI6Lr7.js";import{V as ve}from"./FoGmEwba.js";const me=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...le({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>N(e).every(f=>f!=null&&typeof f=="object")},...W({clearable:!0})},"VFileInput"),Ie=ae()({name:"VFileInput",inheritAttrs:!1,props:me(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,f){let{attrs:$,emit:I,slots:n}=f;const{t:C}=ue(),a=ie(e,"modelValue",e.modelValue,l=>N(l),l=>e.multiple||Array.isArray(e.modelValue)?l:l[0]),{isFocused:v,focus:x,blur:D}=te(e),g=s(()=>typeof e.showSize!="boolean"?e.showSize:void 0),k=s(()=>(a.value??[]).reduce((l,t)=>{let{size:r=0}=t;return l+r},0)),F=s(()=>M(k.value,g.value)),p=s(()=>(a.value??[]).map(l=>{const{name:t="",size:r=0}=l;return e.showSize?`${t} (${M(r,g.value)})`:t})),j=s(()=>{var t;const l=((t=a.value)==null?void 0:t.length)??0;return e.showSize?C(e.counterSizeString,l,F.value):C(e.counterString,l)}),S=h(),P=h(),i=h(),L=s(()=>v.value||e.active),A=s(()=>["plain","underlined"].includes(e.variant));function y(){var l;i.value!==document.activeElement&&((l=i.value)==null||l.focus()),v.value||x()}function E(l){var t;(t=i.value)==null||t.click()}function J(l){I("mousedown:control",l)}function O(l){var t;(t=i.value)==null||t.click(),I("click:control",l)}function U(l){l.stopPropagation(),y(),de(()=>{a.value=[],fe(e["onClick:clear"],l)})}return oe(a,l=>{(!Array.isArray(l)||!l.length)&&i.value&&(i.value.value="")}),se(()=>{const l=!!(n.counter||e.counter),t=!!(l||n.details),[r,K]=re($),{modelValue:pe,...T}=B.filterProps(e),X=Y(e);return u(B,b({ref:S,modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":A.value},e.class],style:e.style,"onClick:prepend":E},r,T,{centerAffix:!A.value,focused:v.value}),{...n,default:c=>{let{id:m,isDisabled:d,isDirty:z,isReadonly:w,isValid:_}=c;return u(Z,b({ref:P,"prepend-icon":e.prependIcon,onMousedown:J,onClick:O,"onClick:clear":U,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},X,{id:m.value,active:L.value||z.value,dirty:z.value,disabled:d.value,focused:v.value,error:_.value===!1}),{...n,default:q=>{var R;let{props:{class:G,...H}}=q;return u(V,null,[u("input",b({ref:i,type:"file",readonly:w.value,disabled:d.value,multiple:e.multiple,name:e.name,onClick:o=>{o.stopPropagation(),w.value&&o.preventDefault(),y()},onChange:o=>{if(!o.target)return;const Q=o.target;a.value=[...Q.files??[]]},onFocus:y,onBlur:D},H,K),null),u("div",{class:G},[!!((R=a.value)!=null&&R.length)&&!e.hideInput&&(n.selection?n.selection({fileNames:p.value,totalBytes:k.value,totalBytesReadable:F.value}):e.chips?p.value.map(o=>u(ve,{key:o,size:"small",text:o},null)):p.value.join(", "))])])}})},details:t?c=>{var m,d;return u(V,null,[(m=n.details)==null?void 0:m.call(n,c),l&&u(V,null,[u("span",null,null),u(ee,{active:!!((d=a.value)!=null&&d.length),value:j.value,disabled:e.disabled},n.counter)])])}:void 0})}),ce({},S,P,i)}});export{Ie as V}; diff --git a/_nuxt/n5OR3jin.js b/_nuxt/n5OR3jin.js new file mode 100644 index 0000000..f511336 --- /dev/null +++ b/_nuxt/n5OR3jin.js @@ -0,0 +1 @@ +import{F as n,G as o,X as r,I as l,aK as i,L as c,A as u}from"./-VvI6Lr7.js";const m=n({fluid:{type:Boolean,default:!1},...o(),...r()},"VContainer"),C=l()({name:"VContainer",props:m(),setup(e,a){let{slots:s}=a;const{rtlClasses:t}=i();return c(()=>u(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},t.value,e.class],style:e.style},s)),{}}});export{C as V}; diff --git a/_nuxt/o-u2tkmG.js b/_nuxt/o-u2tkmG.js new file mode 100644 index 0000000..e4bbf54 --- /dev/null +++ b/_nuxt/o-u2tkmG.js @@ -0,0 +1 @@ +import{_ as a}from"./blE9-5sg.js";import{am as i,an as s,ao as m,a8 as p,v as _,B as c,A as u,af as f}from"./-VvI6Lr7.js";import{V as l}from"./n5OR3jin.js";import"./DS0W2dGG.js";import"./CJ7Tzvjl.js";import"./FoGmEwba.js";import"./CufEZoaj.js";import"./TjYH8LVs.js";import"./l9yxdLf0.js";import"./VHr5Aleq.js";import"./Dfnfu-Af.js";import"./DBf96Ybk.js";import"./BFbS1nff.js";import"./CRmmW6t3.js";import"./BwUqDjZt.js";const j={__name:"[id]",async setup(d){let t,o;const r=i();[t,o]=s(()=>r.fetch()),await t,o();const e=r.byId(m().params.id);return(v,y)=>{const n=a;return _(),p(l,null,{default:c(()=>[u(n,{inventory:f(e)},null,8,["inventory"])]),_:1})}}};export{j as default}; diff --git a/_nuxt/y4qwzziu.js b/_nuxt/y4qwzziu.js new file mode 100644 index 0000000..780b1fe --- /dev/null +++ b/_nuxt/y4qwzziu.js @@ -0,0 +1 @@ +import{_ as m}from"./BgZFLVLL.js";import{ax as s,an as i,ao as p,a8 as n,B as _,v as c,A as u,af as f}from"./-VvI6Lr7.js";import{V as l}from"./n5OR3jin.js";import"./CpVlVgCe.js";import"./CXnKksxJ.js";import"./TjYH8LVs.js";import"./l9yxdLf0.js";import"./mCWCszvA.js";import"./FoGmEwba.js";import"./CRmmW6t3.js";import"./CufEZoaj.js";import"./VHr5Aleq.js";import"./DBf96Ybk.js";import"./BwUqDjZt.js";const $={__name:"[id]",async setup(d){let t,o;const e=s();[t,o]=i(()=>e.fetch()),await t,o();const r=e.byId(p().params.id);return(x,h)=>{const a=m;return c(),n(l,null,{default:_(()=>[u(a,{item:f(r)},null,8,["item"])]),_:1})}}};export{$ as default}; diff --git a/about/index.html b/about/index.html index 2061efa..b7e33f6 100644 --- a/about/index.html +++ b/about/index.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
(t=new URL(t+".js",n).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(n.map((e=>l[e]||c(e)))).then((e=>(i(...e),r)))}}define(["./workbox-cbf83eee"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"_nuxt/builds/latest.json",revision:"260a1bbe0a8215638df9e15790f8d8c2"},{url:"_nuxt/builds/meta/4752cce3-6eea-4a39-ae9f-034a12cfe4bd.json",revision:null},{url:"manifest.webmanifest",revision:"9e6d491aac42aa7b5d01a77ce21cb3dc"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/")))})); +if(!self.define){let e,s={};const t=(t,n)=>(t=new URL(t+".js",n).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(n.map((e=>l[e]||c(e)))).then((e=>(i(...e),r)))}}define(["./workbox-cbf83eee"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"_nuxt/builds/latest.json",revision:"a1c38e44f5c03e0e870b1c5f3ff46033"},{url:"_nuxt/builds/meta/82b60f10-43b9-48c2-abd3-3a700155b368.json",revision:null},{url:"manifest.webmanifest",revision:"9e6d491aac42aa7b5d01a77ce21cb3dc"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/")))})); diff --git a/tools/gpxstudio/index.html b/tools/gpxstudio/index.html index 2061efa..b7e33f6 100644 --- a/tools/gpxstudio/index.html +++ b/tools/gpxstudio/index.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +