var Rl = {}; /** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function ln(e) { const t = /* @__PURE__ */ Object.create(null); for (const n of e.split(",")) t[n] = 1; return (n) => n in t; } const Ee = Rl.NODE_ENV !== "production" ? Object.freeze({}) : {}, Zn = Rl.NODE_ENV !== "production" ? Object.freeze([]) : [], Ue = () => { }, af = () => !1, Hr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), vo = (e) => e.startsWith("onUpdate:"), xe = Object.assign, ai = (e, t) => { const n = e.indexOf(t); n > -1 && e.splice(n, 1); }, lf = Object.prototype.hasOwnProperty, ce = (e, t) => lf.call(e, t), G = Array.isArray, Rn = (e) => Mo(e) === "[object Map]", kl = (e) => Mo(e) === "[object Set]", X = (e) => typeof e == "function", Se = (e) => typeof e == "string", cn = (e) => typeof e == "symbol", _e = (e) => e !== null && typeof e == "object", li = (e) => (_e(e) || X(e)) && X(e.then) && X(e.catch), Pl = Object.prototype.toString, Mo = (e) => Pl.call(e), ci = (e) => Mo(e).slice(8, -1), $o = (e) => Mo(e) === "[object Object]", ui = (e) => Se(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Or = /* @__PURE__ */ ln( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ), cf = /* @__PURE__ */ ln( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ), Uo = (e) => { const t = /* @__PURE__ */ Object.create(null); return (n) => t[n] || (t[n] = e(n)); }, uf = /-(\w)/g, Ge = Uo( (e) => e.replace(uf, (t, n) => n ? n.toUpperCase() : "") ), ff = /\B([A-Z])/g, dt = Uo( (e) => e.replace(ff, "-$1").toLowerCase() ), At = Uo((e) => e.charAt(0).toUpperCase() + e.slice(1)), Dn = Uo( (e) => e ? `on${At(e)}` : "" ), yn = (e, t) => !Object.is(e, t), _r = (e, ...t) => { for (let n = 0; n < e.length; n++) e[n](...t); }, No = (e, t, n, r = !1) => { Object.defineProperty(e, t, { configurable: !0, enumerable: !1, writable: r, value: n }); }, df = (e) => { const t = parseFloat(e); return isNaN(t) ? e : t; }, Yi = (e) => { const t = Se(e) ? Number(e) : NaN; return isNaN(t) ? e : t; }; let zi; const Wr = () => zi || (zi = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}); function sn(e) { if (G(e)) { const t = {}; for (let n = 0; n < e.length; n++) { const r = e[n], o = Se(r) ? _f(r) : sn(r); if (o) for (const s in o) t[s] = o[s]; } return t; } else if (Se(e) || _e(e)) return e; } const pf = /;(?![^(]*\))/g, mf = /:([^]+)/, hf = /\/\*[^]*?\*\//g; function _f(e) { const t = {}; return e.replace(hf, "").split(pf).forEach((n) => { if (n) { const r = n.split(mf); r.length > 1 && (t[r[0].trim()] = r[1].trim()); } }), t; } function Yt(e) { let t = ""; if (Se(e)) t = e; else if (G(e)) for (let n = 0; n < e.length; n++) { const r = Yt(e[n]); r && (t += r + " "); } else if (_e(e)) for (const n in e) e[n] && (t += n + " "); return t.trim(); } function ls(e) { if (!e) return null; let { class: t, style: n } = e; return t && !Se(t) && (e.class = Yt(t)), n && (e.style = sn(n)), e; } const gf = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", bf = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view", Ef = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics", yf = /* @__PURE__ */ ln(gf), vf = /* @__PURE__ */ ln(bf), Nf = /* @__PURE__ */ ln(Ef), wf = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Of = /* @__PURE__ */ ln(wf); function Vl(e) { return !!e || e === ""; } const Fl = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => Se(e) ? e : e == null ? "" : G(e) || _e(e) && (e.toString === Pl || !X(e.toString)) ? Fl(e) ? Ce(e.value) : JSON.stringify(e, Ml, 2) : String(e), Ml = (e, t) => Fl(t) ? Ml(e, t.value) : Rn(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce( (n, [r, o], s) => (n[cs(r, s) + " =>"] = o, n), {} ) } : kl(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => cs(n)) } : cn(t) ? cs(t) : _e(t) && !G(t) && !$o(t) ? String(t) : t, cs = (e, t = "") => { var n; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check cn(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e ); }; var we = { VITE_PROXY_URL: "https://proxy.farmapolis.es/v1", VITE_STATS_URL: "https://proxy.farmapolis.es/v1", VITE_FARMAPOLIS_URL: "https://hub.farmapolis.es", VITE_TRANSLATIONS_URL: "/micro-frontends-translations/master/widgets-farmapolis/locales" }; function zt(e, ...t) { console.warn(`[Vue warn] ${e}`, ...t); } let yt; class $l { constructor(t = !1) { this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = yt, !t && yt && (this.index = (yt.scopes || (yt.scopes = [])).push( this ) - 1); } get active() { return this._active; } pause() { if (this._active) { this._isPaused = !0; let t, n; if (this.scopes) for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].pause(); for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].pause(); } } /** * Resumes the effect scope, including all child scopes and effects. */ resume() { if (this._active && this._isPaused) { this._isPaused = !1; let t, n; if (this.scopes) for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].resume(); for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].resume(); } } run(t) { if (this._active) { const n = yt; try { return yt = this, t(); } finally { yt = n; } } else we.NODE_ENV !== "production" && zt("cannot run an inactive effect scope."); } /** * This should only be called on non-detached scopes * @internal */ on() { yt = this; } /** * This should only be called on non-detached scopes * @internal */ off() { yt = this.parent; } stop(t) { if (this._active) { this._active = !1; let n, r; for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop(); for (this.effects.length = 0, n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n](); if (this.cleanups.length = 0, this.scopes) { for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].stop(!0); this.scopes.length = 0; } if (!this.detached && this.parent && !t) { const o = this.parent.scopes.pop(); o && o !== this && (this.parent.scopes[this.index] = o, o.index = this.index); } this.parent = void 0; } } } function Tf(e) { return new $l(e); } function Sf() { return yt; } let me; const us = /* @__PURE__ */ new WeakSet(); class Ul { constructor(t) { this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, yt && yt.active && yt.effects.push(this); } pause() { this.flags |= 64; } resume() { this.flags & 64 && (this.flags &= -65, us.has(this) && (us.delete(this), this.trigger())); } /** * @internal */ notify() { this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Hl(this); } run() { if (!(this.flags & 1)) return this.fn(); this.flags |= 2, Xi(this), Wl(this); const t = me, n = Rt; me = this, Rt = !0; try { return this.fn(); } finally { we.NODE_ENV !== "production" && me !== this && zt( "Active effect was not restored correctly - this is likely a Vue internal bug." ), Bl(this), me = t, Rt = n, this.flags &= -3; } } stop() { if (this.flags & 1) { for (let t = this.deps; t; t = t.nextDep) pi(t); this.deps = this.depsTail = void 0, Xi(this), this.onStop && this.onStop(), this.flags &= -2; } } trigger() { this.flags & 64 ? us.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty(); } /** * @internal */ runIfDirty() { As(this) && this.run(); } get dirty() { return As(this); } } let jl = 0, Tr, Sr; function Hl(e, t = !1) { if (e.flags |= 8, t) { e.next = Sr, Sr = e; return; } e.next = Tr, Tr = e; } function fi() { jl++; } function di() { if (--jl > 0) return; if (Sr) { let t = Sr; for (Sr = void 0; t; ) { const n = t.next; t.next = void 0, t.flags &= -9, t = n; } } let e; for (; Tr; ) { let t = Tr; for (Tr = void 0; t; ) { const n = t.next; if (t.next = void 0, t.flags &= -9, t.flags & 1) try { t.trigger(); } catch (r) { e || (e = r); } t = n; } } if (e) throw e; } function Wl(e) { for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t; } function Bl(e) { let t, n = e.depsTail, r = n; for (; r; ) { const o = r.prevDep; r.version === -1 ? (r === n && (n = o), pi(r), Cf(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o; } e.deps = t, e.depsTail = n; } function As(e) { for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (Kl(t.dep.computed) || t.dep.version !== t.version)) return !0; return !!e._dirty; } function Kl(e) { if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Dr)) return; e.globalVersion = Dr; const t = e.dep; if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !As(e)) { e.flags &= -3; return; } const n = me, r = Rt; me = e, Rt = !0; try { Wl(e); const o = e.fn(e._value); (t.version === 0 || yn(o, e._value)) && (e._value = o, t.version++); } catch (o) { throw t.version++, o; } finally { me = n, Rt = r, Bl(e), e.flags &= -3; } } function pi(e, t = !1) { const { dep: n, prevSub: r, nextSub: o } = e; if (r && (r.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r, e.nextSub = void 0), we.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = o), n.subs === e && (n.subs = r, !r && n.computed)) { n.computed.flags &= -5; for (let s = n.computed.deps; s; s = s.nextDep) pi(s, !0); } !t && !--n.sc && n.map && n.map.delete(n.key); } function Cf(e) { const { prevDep: t, nextDep: n } = e; t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0); } let Rt = !0; const ql = []; function un() { ql.push(Rt), Rt = !1; } function fn() { const e = ql.pop(); Rt = e === void 0 ? !0 : e; } function Xi(e) { const { cleanup: t } = e; if (e.cleanup = void 0, t) { const n = me; me = void 0; try { t(); } finally { me = n; } } } let Dr = 0; class Af { constructor(t, n) { this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; } } class mi { constructor(t) { this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, we.NODE_ENV !== "production" && (this.subsHead = void 0); } track(t) { if (!me || !Rt || me === this.computed) return; let n = this.activeLink; if (n === void 0 || n.sub !== me) n = this.activeLink = new Af(me, this), me.deps ? (n.prevDep = me.depsTail, me.depsTail.nextDep = n, me.depsTail = n) : me.deps = me.depsTail = n, Gl(n); else if (n.version === -1 && (n.version = this.version, n.nextDep)) { const r = n.nextDep; r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = me.depsTail, n.nextDep = void 0, me.depsTail.nextDep = n, me.depsTail = n, me.deps === n && (me.deps = r); } return we.NODE_ENV !== "production" && me.onTrack && me.onTrack( xe( { effect: me }, t ) ), n; } trigger(t) { this.version++, Dr++, this.notify(t); } notify(t) { fi(); try { if (we.NODE_ENV !== "production") for (let n = this.subsHead; n; n = n.nextSub) n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger( xe( { effect: n.sub }, t ) ); for (let n = this.subs; n; n = n.prevSub) n.sub.notify() && n.sub.dep.notify(); } finally { di(); } } } function Gl(e) { if (e.dep.sc++, e.sub.flags & 4) { const t = e.dep.computed; if (t && !e.dep.subs) { t.flags |= 20; for (let r = t.deps; r; r = r.nextDep) Gl(r); } const n = e.dep.subs; n !== e && (e.prevSub = n, n && (n.nextSub = e)), we.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e; } } const wo = /* @__PURE__ */ new WeakMap(), kn = Symbol( we.NODE_ENV !== "production" ? "Object iterate" : "" ), Ds = Symbol( we.NODE_ENV !== "production" ? "Map keys iterate" : "" ), Lr = Symbol( we.NODE_ENV !== "production" ? "Array iterate" : "" ); function $e(e, t, n) { if (Rt && me) { let r = wo.get(e); r || wo.set(e, r = /* @__PURE__ */ new Map()); let o = r.get(n); o || (r.set(n, o = new mi()), o.map = r, o.key = n), we.NODE_ENV !== "production" ? o.track({ target: e, type: t, key: n }) : o.track(); } } function Wt(e, t, n, r, o, s) { const i = wo.get(e); if (!i) { Dr++; return; } const a = (l) => { l && (we.NODE_ENV !== "production" ? l.trigger({ target: e, type: t, key: n, newValue: r, oldValue: o, oldTarget: s }) : l.trigger()); }; if (fi(), t === "clear") i.forEach(a); else { const l = G(e), c = l && ui(n); if (l && n === "length") { const u = Number(r); i.forEach((f, m) => { (m === "length" || m === Lr || !cn(m) && m >= u) && a(f); }); } else switch ((n !== void 0 || i.has(void 0)) && a(i.get(n)), c && a(i.get(Lr)), t) { case "add": l ? c && a(i.get("length")) : (a(i.get(kn)), Rn(e) && a(i.get(Ds))); break; case "delete": l || (a(i.get(kn)), Rn(e) && a(i.get(Ds))); break; case "set": Rn(e) && a(i.get(kn)); break; } } di(); } function Df(e, t) { const n = wo.get(e); return n && n.get(t); } function Gn(e) { const t = oe(e); return t === e ? t : ($e(t, "iterate", Lr), at(e) ? t : t.map(Je)); } function jo(e) { return $e(e = oe(e), "iterate", Lr), e; } const Lf = { __proto__: null, [Symbol.iterator]() { return fs(this, Symbol.iterator, Je); }, concat(...e) { return Gn(this).concat( ...e.map((t) => G(t) ? Gn(t) : t) ); }, entries() { return fs(this, "entries", (e) => (e[1] = Je(e[1]), e)); }, every(e, t) { return Zt(this, "every", e, t, void 0, arguments); }, filter(e, t) { return Zt(this, "filter", e, t, (n) => n.map(Je), arguments); }, find(e, t) { return Zt(this, "find", e, t, Je, arguments); }, findIndex(e, t) { return Zt(this, "findIndex", e, t, void 0, arguments); }, findLast(e, t) { return Zt(this, "findLast", e, t, Je, arguments); }, findLastIndex(e, t) { return Zt(this, "findLastIndex", e, t, void 0, arguments); }, // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement forEach(e, t) { return Zt(this, "forEach", e, t, void 0, arguments); }, includes(...e) { return ds(this, "includes", e); }, indexOf(...e) { return ds(this, "indexOf", e); }, join(e) { return Gn(this).join(e); }, // keys() iterator only reads `length`, no optimisation required lastIndexOf(...e) { return ds(this, "lastIndexOf", e); }, map(e, t) { return Zt(this, "map", e, t, void 0, arguments); }, pop() { return gr(this, "pop"); }, push(...e) { return gr(this, "push", e); }, reduce(e, ...t) { return Ji(this, "reduce", e, t); }, reduceRight(e, ...t) { return Ji(this, "reduceRight", e, t); }, shift() { return gr(this, "shift"); }, // slice could use ARRAY_ITERATE but also seems to beg for range tracking some(e, t) { return Zt(this, "some", e, t, void 0, arguments); }, splice(...e) { return gr(this, "splice", e); }, toReversed() { return Gn(this).toReversed(); }, toSorted(e) { return Gn(this).toSorted(e); }, toSpliced(...e) { return Gn(this).toSpliced(...e); }, unshift(...e) { return gr(this, "unshift", e); }, values() { return fs(this, "values", Je); } }; function fs(e, t, n) { const r = jo(e), o = r[t](); return r !== e && !at(e) && (o._next = o.next, o.next = () => { const s = o._next(); return s.value && (s.value = n(s.value)), s; }), o; } const If = Array.prototype; function Zt(e, t, n, r, o, s) { const i = jo(e), a = i !== e && !at(e), l = i[t]; if (l !== If[t]) { const f = l.apply(e, s); return a ? Je(f) : f; } let c = n; i !== e && (a ? c = function(f, m) { return n.call(this, Je(f), m, e); } : n.length > 2 && (c = function(f, m) { return n.call(this, f, m, e); })); const u = l.call(i, c, r); return a && o ? o(u) : u; } function Ji(e, t, n, r) { const o = jo(e); let s = n; return o !== e && (at(e) ? n.length > 3 && (s = function(i, a, l) { return n.call(this, i, a, l, e); }) : s = function(i, a, l) { return n.call(this, i, Je(a), l, e); }), o[t](s, ...r); } function ds(e, t, n) { const r = oe(e); $e(r, "iterate", Lr); const o = r[t](...n); return (o === -1 || o === !1) && Oo(n[0]) ? (n[0] = oe(n[0]), r[t](...n)) : o; } function gr(e, t, n = []) { un(), fi(); const r = oe(e)[t].apply(e, n); return di(), fn(), r; } const xf = /* @__PURE__ */ ln("__proto__,__v_isRef,__isVue"), Yl = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(cn) ); function Rf(e) { cn(e) || (e = String(e)); const t = oe(this); return $e(t, "has", e), t.hasOwnProperty(e); } class zl { constructor(t = !1, n = !1) { this._isReadonly = t, this._isShallow = n; } get(t, n, r) { if (n === "__v_skip") return t.__v_skip; const o = this._isReadonly, s = this._isShallow; if (n === "__v_isReactive") return !o; if (n === "__v_isReadonly") return o; if (n === "__v_isShallow") return s; if (n === "__v_raw") return r === (o ? s ? tc : ec : s ? Zl : Ql).get(t) || // receiver is not the reactive proxy, but has the same prototype // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0; const i = G(t); if (!o) { let l; if (i && (l = Lf[n])) return l; if (n === "hasOwnProperty") return Rf; } const a = Reflect.get( t, n, // if this is a proxy wrapping a ref, return methods using the raw ref // as receiver so that we don't have to call `toRaw` on the ref in all // its class methods Ie(t) ? t : r ); return (cn(n) ? Yl.has(n) : xf(n)) || (o || $e(t, "get", n), s) ? a : Ie(a) ? i && ui(n) ? a : a.value : _e(a) ? o ? nc(a) : Br(a) : a; } } class Xl extends zl { constructor(t = !1) { super(!1, t); } set(t, n, r, o) { let s = t[n]; if (!this._isShallow) { const l = an(s); if (!at(r) && !an(r) && (s = oe(s), r = oe(r)), !G(t) && Ie(s) && !Ie(r)) return l ? !1 : (s.value = r, !0); } const i = G(t) && ui(n) ? Number(n) < t.length : ce(t, n), a = Reflect.set( t, n, r, Ie(t) ? t : o ); return t === oe(o) && (i ? yn(r, s) && Wt(t, "set", n, r, s) : Wt(t, "add", n, r)), a; } deleteProperty(t, n) { const r = ce(t, n), o = t[n], s = Reflect.deleteProperty(t, n); return s && r && Wt(t, "delete", n, void 0, o), s; } has(t, n) { const r = Reflect.has(t, n); return (!cn(n) || !Yl.has(n)) && $e(t, "has", n), r; } ownKeys(t) { return $e( t, "iterate", G(t) ? "length" : kn ), Reflect.ownKeys(t); } } class Jl extends zl { constructor(t = !1) { super(!0, t); } set(t, n) { return we.NODE_ENV !== "production" && zt( `Set operation on key "${String(n)}" failed: target is readonly.`, t ), !0; } deleteProperty(t, n) { return we.NODE_ENV !== "production" && zt( `Delete operation on key "${String(n)}" failed: target is readonly.`, t ), !0; } } const kf = /* @__PURE__ */ new Xl(), Pf = /* @__PURE__ */ new Jl(), Vf = /* @__PURE__ */ new Xl(!0), Ff = /* @__PURE__ */ new Jl(!0), Ls = (e) => e, no = (e) => Reflect.getPrototypeOf(e); function Mf(e, t, n) { return function(...r) { const o = this.__v_raw, s = oe(o), i = Rn(s), a = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, c = o[e](...r), u = n ? Ls : t ? Is : Je; return !t && $e( s, "iterate", l ? Ds : kn ), { // iterator protocol next() { const { value: f, done: m } = c.next(); return m ? { value: f, done: m } : { value: a ? [u(f[0]), u(f[1])] : u(f), done: m }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function ro(e) { return function(...t) { if (we.NODE_ENV !== "production") { const n = t[0] ? `on key "${t[0]}" ` : ""; zt( `${At(e)} operation ${n}failed: target is readonly.`, oe(this) ); } return e === "delete" ? !1 : e === "clear" ? void 0 : this; }; } function $f(e, t) { const n = { get(o) { const s = this.__v_raw, i = oe(s), a = oe(o); e || (yn(o, a) && $e(i, "get", o), $e(i, "get", a)); const { has: l } = no(i), c = t ? Ls : e ? Is : Je; if (l.call(i, o)) return c(s.get(o)); if (l.call(i, a)) return c(s.get(a)); s !== i && s.get(o); }, get size() { const o = this.__v_raw; return !e && $e(oe(o), "iterate", kn), Reflect.get(o, "size", o); }, has(o) { const s = this.__v_raw, i = oe(s), a = oe(o); return e || (yn(o, a) && $e(i, "has", o), $e(i, "has", a)), o === a ? s.has(o) : s.has(o) || s.has(a); }, forEach(o, s) { const i = this, a = i.__v_raw, l = oe(a), c = t ? Ls : e ? Is : Je; return !e && $e(l, "iterate", kn), a.forEach((u, f) => o.call(s, c(u), c(f), i)); } }; return xe( n, e ? { add: ro("add"), set: ro("set"), delete: ro("delete"), clear: ro("clear") } : { add(o) { !t && !at(o) && !an(o) && (o = oe(o)); const s = oe(this); return no(s).has.call(s, o) || (s.add(o), Wt(s, "add", o, o)), this; }, set(o, s) { !t && !at(s) && !an(s) && (s = oe(s)); const i = oe(this), { has: a, get: l } = no(i); let c = a.call(i, o); c ? we.NODE_ENV !== "production" && Qi(i, a, o) : (o = oe(o), c = a.call(i, o)); const u = l.call(i, o); return i.set(o, s), c ? yn(s, u) && Wt(i, "set", o, s, u) : Wt(i, "add", o, s), this; }, delete(o) { const s = oe(this), { has: i, get: a } = no(s); let l = i.call(s, o); l ? we.NODE_ENV !== "production" && Qi(s, i, o) : (o = oe(o), l = i.call(s, o)); const c = a ? a.call(s, o) : void 0, u = s.delete(o); return l && Wt(s, "delete", o, void 0, c), u; }, clear() { const o = oe(this), s = o.size !== 0, i = we.NODE_ENV !== "production" ? Rn(o) ? new Map(o) : new Set(o) : void 0, a = o.clear(); return s && Wt( o, "clear", void 0, void 0, i ), a; } } ), [ "keys", "values", "entries", Symbol.iterator ].forEach((o) => { n[o] = Mf(o, e, t); }), n; } function Ho(e, t) { const n = $f(e, t); return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get( ce(n, o) && o in r ? n : r, o, s ); } const Uf = { get: /* @__PURE__ */ Ho(!1, !1) }, jf = { get: /* @__PURE__ */ Ho(!1, !0) }, Hf = { get: /* @__PURE__ */ Ho(!0, !1) }, Wf = { get: /* @__PURE__ */ Ho(!0, !0) }; function Qi(e, t, n) { const r = oe(n); if (r !== n && t.call(e, r)) { const o = ci(e); zt( `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` ); } } const Ql = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(); function Bf(e) { switch (e) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0; } } function Kf(e) { return e.__v_skip || !Object.isExtensible(e) ? 0 : Bf(ci(e)); } function Br(e) { return an(e) ? e : Wo( e, !1, kf, Uf, Ql ); } function qf(e) { return Wo( e, !1, Vf, jf, Zl ); } function nc(e) { return Wo( e, !0, Pf, Hf, ec ); } function qt(e) { return Wo( e, !0, Ff, Wf, tc ); } function Wo(e, t, n, r, o) { if (!_e(e)) return we.NODE_ENV !== "production" && zt( `value cannot be made ${t ? "readonly" : "reactive"}: ${String( e )}` ), e; if (e.__v_raw && !(t && e.__v_isReactive)) return e; const s = o.get(e); if (s) return s; const i = Kf(e); if (i === 0) return e; const a = new Proxy( e, i === 2 ? r : n ); return o.set(e, a), a; } function Pn(e) { return an(e) ? Pn(e.__v_raw) : !!(e && e.__v_isReactive); } function an(e) { return !!(e && e.__v_isReadonly); } function at(e) { return !!(e && e.__v_isShallow); } function Oo(e) { return e ? !!e.__v_raw : !1; } function oe(e) { const t = e && e.__v_raw; return t ? oe(t) : e; } function Gf(e) { return !ce(e, "__v_skip") && Object.isExtensible(e) && No(e, "__v_skip", !0), e; } const Je = (e) => _e(e) ? Br(e) : e, Is = (e) => _e(e) ? nc(e) : e; function Ie(e) { return e ? e.__v_isRef === !0 : !1; } function he(e) { return rc(e, !1); } function Yf(e) { return rc(e, !0); } function rc(e, t) { return Ie(e) ? e : new zf(e, t); } class zf { constructor(t, n) { this.dep = new mi(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : oe(t), this._value = n ? t : Je(t), this.__v_isShallow = n; } get value() { return we.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(), this._value; } set value(t) { const n = this._rawValue, r = this.__v_isShallow || at(t) || an(t); t = r ? t : oe(t), yn(t, n) && (this._rawValue = t, this._value = r ? t : Je(t), we.NODE_ENV !== "production" ? this.dep.trigger({ target: this, type: "set", key: "value", newValue: t, oldValue: n }) : this.dep.trigger()); } } function ee(e) { return Ie(e) ? e.value : e; } const Xf = { get: (e, t, n) => t === "__v_raw" ? e : ee(Reflect.get(e, t, n)), set: (e, t, n, r) => { const o = e[t]; return Ie(o) && !Ie(n) ? (o.value = n, !0) : Reflect.set(e, t, n, r); } }; function oc(e) { return Pn(e) ? e : new Proxy(e, Xf); } class Jf { constructor(t, n, r) { this._object = t, this._key = n, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0; } get value() { const t = this._object[this._key]; return this._value = t === void 0 ? this._defaultValue : t; } set value(t) { this._object[this._key] = t; } get dep() { return Df(oe(this._object), this._key); } } class Qf { constructor(t) { this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0; } get value() { return this._value = this._getter(); } } function Zf(e, t, n) { return Ie(e) ? e : X(e) ? new Qf(e) : _e(e) && arguments.length > 1 ? ed(e, t, n) : he(e); } function ed(e, t, n) { const r = e[t]; return Ie(r) ? r : new Jf(e, t, n); } class td { constructor(t, n, r) { this.fn = t, this.setter = n, this._value = void 0, this.dep = new mi(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Dr - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r; } /** * @internal */ notify() { if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion me !== this) return Hl(this, !0), !0; } get value() { const t = we.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(); return Kl(this), t && (t.version = this.dep.version), this._value; } set value(t) { this.setter ? this.setter(t) : we.NODE_ENV !== "production" && zt("Write operation failed: computed value is readonly"); } } function nd(e, t, n = !1) { let r, o; return X(e) ? r = e : (r = e.get, o = e.set), new td(r, o, n); } const oo = {}, To = /* @__PURE__ */ new WeakMap(); let Ln; function rd(e, t = !1, n = Ln) { if (n) { let r = To.get(n); r || To.set(n, r = []), r.push(e); } else we.NODE_ENV !== "production" && !t && zt( "onWatcherCleanup() was called when there was no active watcher to associate with." ); } function od(e, t, n = Ee) { const { immediate: r, deep: o, once: s, scheduler: i, augmentJob: a, call: l } = n, c = (C) => { (n.onWarn || zt)( "Invalid watch source: ", C, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types." ); }, u = (C) => o ? C : at(C) || o === !1 || o === 0 ? bn(C, 1) : bn(C); let f, m, _, b, y = !1, S = !1; if (Ie(e) ? (m = () => e.value, y = at(e)) : Pn(e) ? (m = () => u(e), y = !0) : G(e) ? (S = !0, y = e.some((C) => Pn(C) || at(C)), m = () => e.map((C) => { if (Ie(C)) return C.value; if (Pn(C)) return u(C); if (X(C)) return l ? l(C, 2) : C(); we.NODE_ENV !== "production" && c(C); })) : X(e) ? t ? m = l ? () => l(e, 2) : e : m = () => { if (_) { un(); try { _(); } finally { fn(); } } const C = Ln; Ln = f; try { return l ? l(e, 3, [b]) : e(b); } finally { Ln = C; } } : (m = Ue, we.NODE_ENV !== "production" && c(e)), t && o) { const C = m, M = o === !0 ? 1 / 0 : o; m = () => bn(C(), M); } const E = Sf(), O = () => { f.stop(), E && E.active && ai(E.effects, f); }; if (s && t) { const C = t; t = (...M) => { C(...M), O(); }; } let T = S ? new Array(e.length).fill(oo) : oo; const L = (C) => { if (!(!(f.flags & 1) || !f.dirty && !C)) if (t) { const M = f.run(); if (o || y || (S ? M.some((R, W) => yn(R, T[W])) : yn(M, T))) { _ && _(); const R = Ln; Ln = f; try { const W = [ M, // pass undefined as the old value when it's changed for the first time T === oo ? void 0 : S && T[0] === oo ? [] : T, b ]; l ? l(t, 3, W) : ( // @ts-expect-error t(...W) ), T = M; } finally { Ln = R; } } } else f.run(); }; return a && a(L), f = new Ul(m), f.scheduler = i ? () => i(L, !1) : L, b = (C) => rd(C, !1, f), _ = f.onStop = () => { const C = To.get(f); if (C) { if (l) l(C, 4); else for (const M of C) M(); To.delete(f); } }, we.NODE_ENV !== "production" && (f.onTrack = n.onTrack, f.onTrigger = n.onTrigger), t ? r ? L(!0) : T = f.run() : i ? i(L.bind(null, !0), !0) : f.run(), O.pause = f.pause.bind(f), O.resume = f.resume.bind(f), O.stop = O, O; } function bn(e, t = 1 / 0, n) { if (t <= 0 || !_e(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e))) return e; if (n.add(e), t--, Ie(e)) bn(e.value, t, n); else if (G(e)) for (let r = 0; r < e.length; r++) bn(e[r], t, n); else if (kl(e) || Rn(e)) e.forEach((r) => { bn(r, t, n); }); else if ($o(e)) { for (const r in e) bn(e[r], t, n); for (const r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && bn(e[r], t, n); } return e; } var w = { VITE_PROXY_URL: "https://proxy.farmapolis.es/v1", VITE_STATS_URL: "https://proxy.farmapolis.es/v1", VITE_FARMAPOLIS_URL: "https://hub.farmapolis.es", VITE_TRANSLATIONS_URL: "/micro-frontends-translations/master/widgets-farmapolis/locales" }; const Vn = []; function co(e) { Vn.push(e); } function uo() { Vn.pop(); } let ps = !1; function $(e, ...t) { if (ps) return; ps = !0, un(); const n = Vn.length ? Vn[Vn.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = sd(); if (r) lr( r, n, 11, [ // eslint-disable-next-line no-restricted-syntax e + t.map((s) => { var i, a; return (a = (i = s.toString) == null ? void 0 : i.call(s)) != null ? a : JSON.stringify(s); }).join(""), n && n.proxy, o.map( ({ vnode: s }) => `at <${Xo(n, s.type)}>` ).join(` `), o ] ); else { const s = [`[Vue warn]: ${e}`, ...t]; o.length && s.push(` `, ...id(o)), console.warn(...s); } fn(), ps = !1; } function sd() { let e = Vn[Vn.length - 1]; if (!e) return []; const t = []; for (; e; ) { const n = t[0]; n && n.vnode === e ? n.recurseCount++ : t.push({ vnode: e, recurseCount: 0 }); const r = e.component && e.component.parent; e = r && r.vnode; } return t; } function id(e) { const t = []; return e.forEach((n, r) => { t.push(...r === 0 ? [] : [` `], ...ad(n)); }), t; } function ad({ vnode: e, recurseCount: t }) { const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, o = ` at <${Xo( e.component, e.type, r )}`, s = ">" + n; return e.props ? [o, ...ld(e.props), s] : [o + s]; } function ld(e) { const t = [], n = Object.keys(e); return n.slice(0, 3).forEach((r) => { t.push(...sc(r, e[r])); }), n.length > 3 && t.push(" ..."), t; } function sc(e, t, n) { return Se(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Ie(t) ? (t = sc(e, oe(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : X(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = oe(t), n ? t : [`${e}=`, t]); } const hi = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush", 15: "component update", 16: "app unmount cleanup function" }; function lr(e, t, n, r) { try { return r ? e(...r) : e(); } catch (o) { Kr(o, t, n); } } function Xt(e, t, n, r) { if (X(e)) { const o = lr(e, t, n, r); return o && li(o) && o.catch((s) => { Kr(s, t, n); }), o; } if (G(e)) { const o = []; for (let s = 0; s < e.length; s++) o.push(Xt(e[s], t, n, r)); return o; } else w.NODE_ENV !== "production" && $( `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}` ); } function Kr(e, t, n, r = !0) { const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Ee; if (t) { let a = t.parent; const l = t.proxy, c = w.NODE_ENV !== "production" ? hi[n] : `https://vuejs.org/error-reference/#runtime-${n}`; for (; a; ) { const u = a.ec; if (u) { for (let f = 0; f < u.length; f++) if (u[f](e, l, c) === !1) return; } a = a.parent; } if (s) { un(), lr(s, null, 10, [ e, l, c ]), fn(); return; } } cd(e, n, o, r, i); } function cd(e, t, n, r = !0, o = !1) { if (w.NODE_ENV !== "production") { const s = hi[t]; if (n && co(n), $(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && uo(), r) throw e; console.error(e); } else { if (o) throw e; console.error(e); } } const it = []; let Ht = -1; const er = []; let _n = null, Jn = 0; const ic = /* @__PURE__ */ Promise.resolve(); let So = null; const ud = 100; function ac(e) { const t = So || ic; return e ? t.then(this ? e.bind(this) : e) : t; } function fd(e) { let t = Ht + 1, n = it.length; for (; t < n; ) { const r = t + n >>> 1, o = it[r], s = Ir(o); s < e || s === e && o.flags & 2 ? t = r + 1 : n = r; } return t; } function Bo(e) { if (!(e.flags & 1)) { const t = Ir(e), n = it[it.length - 1]; !n || // fast path when the job id is larger than the tail !(e.flags & 2) && t >= Ir(n) ? it.push(e) : it.splice(fd(t), 0, e), e.flags |= 1, lc(); } } function lc() { So || (So = ic.then(fc)); } function cc(e) { G(e) ? er.push(...e) : _n && e.id === -1 ? _n.splice(Jn + 1, 0, e) : e.flags & 1 || (er.push(e), e.flags |= 1), lc(); } function Zi(e, t, n = Ht + 1) { for (w.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()); n < it.length; n++) { const r = it[n]; if (r && r.flags & 2) { if (e && r.id !== e.uid || w.NODE_ENV !== "production" && _i(t, r)) continue; it.splice(n, 1), n--, r.flags & 4 && (r.flags &= -2), r(), r.flags & 4 || (r.flags &= -2); } } } function uc(e) { if (er.length) { const t = [...new Set(er)].sort( (n, r) => Ir(n) - Ir(r) ); if (er.length = 0, _n) { _n.push(...t); return; } for (_n = t, w.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), Jn = 0; Jn < _n.length; Jn++) { const n = _n[Jn]; w.NODE_ENV !== "production" && _i(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2); } _n = null, Jn = 0; } } const Ir = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id; function fc(e) { w.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()); const t = w.NODE_ENV !== "production" ? (n) => _i(e, n) : Ue; try { for (Ht = 0; Ht < it.length; Ht++) { const n = it[Ht]; if (n && !(n.flags & 8)) { if (w.NODE_ENV !== "production" && t(n)) continue; n.flags & 4 && (n.flags &= -2), lr( n, n.i, n.i ? 15 : 14 ), n.flags & 4 || (n.flags &= -2); } } } finally { for (; Ht < it.length; Ht++) { const n = it[Ht]; n && (n.flags &= -2); } Ht = -1, it.length = 0, uc(e), So = null, (it.length || er.length) && fc(e); } } function _i(e, t) { const n = e.get(t) || 0; if (n > ud) { const r = t.i, o = r && Si(r.type); return Kr( `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10 ), !0; } return e.set(t, n + 1), !1; } let Gt = !1; const fo = /* @__PURE__ */ new Map(); w.NODE_ENV !== "production" && (Wr().__VUE_HMR_RUNTIME__ = { createRecord: ms(dc), rerender: ms(md), reload: ms(hd) }); const Un = /* @__PURE__ */ new Map(); function dd(e) { const t = e.type.__hmrId; let n = Un.get(t); n || (dc(t, e.type), n = Un.get(t)), n.instances.add(e); } function pd(e) { Un.get(e.type.__hmrId).instances.delete(e); } function dc(e, t) { return Un.has(e) ? !1 : (Un.set(e, { initialDef: Co(t), instances: /* @__PURE__ */ new Set() }), !0); } function Co(e) { return zc(e) ? e.__vccOpts : e; } function md(e, t) { const n = Un.get(e); n && (n.initialDef.render = t, [...n.instances].forEach((r) => { t && (r.render = t, Co(r.type).render = t), r.renderCache = [], Gt = !0, r.update(), Gt = !1; })); } function hd(e, t) { const n = Un.get(e); if (!n) return; t = Co(t), ea(n.initialDef, t); const r = [...n.instances]; for (let o = 0; o < r.length; o++) { const s = r[o], i = Co(s.type); let a = fo.get(i); a || (i !== n.initialDef && ea(i, t), fo.set(i, a = /* @__PURE__ */ new Set())), a.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (a.add(s), s.ceReload(t.styles), a.delete(s)) : s.parent ? Bo(() => { Gt = !0, s.parent.update(), Gt = !1, a.delete(s); }) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn( "[HMR] Root or manually mounted instance modified. Full reload required." ), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(i); } cc(() => { fo.clear(); }); } function ea(e, t) { xe(e, t); for (const n in e) n !== "__file" && !(n in t) && delete e[n]; } function ms(e) { return (t, n) => { try { return e(t, n); } catch (r) { console.error(r), console.warn( "[HMR] Something went wrong during Vue component hot-reload. Full reload required." ); } }; } let Bt, Nr = [], xs = !1; function qr(e, ...t) { Bt ? Bt.emit(e, ...t) : xs || Nr.push({ event: e, args: t }); } function pc(e, t) { var n, r; Bt = e, Bt ? (Bt.enabled = !0, Nr.forEach(({ event: o, args: s }) => Bt.emit(o, ...s)), Nr = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((s) => { pc(s, t); }), setTimeout(() => { Bt || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, xs = !0, Nr = []); }, 3e3)) : (xs = !0, Nr = []); } function _d(e, t) { qr("app:init", e, t, { Fragment: Ae, Text: cr, Comment: pt, Static: Cr }); } function gd(e) { qr("app:unmount", e); } const bd = /* @__PURE__ */ gi( "component:added" /* COMPONENT_ADDED */ ), mc = /* @__PURE__ */ gi( "component:updated" /* COMPONENT_UPDATED */ ), Ed = /* @__PURE__ */ gi( "component:removed" /* COMPONENT_REMOVED */ ), yd = (e) => { Bt && typeof Bt.cleanupBuffer == "function" && // remove the component if it wasn't buffered !Bt.cleanupBuffer(e) && Ed(e); }; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function gi(e) { return (t) => { qr( e, t.appContext.app, t.uid, t.parent ? t.parent.uid : void 0, t ); }; } const vd = /* @__PURE__ */ hc( "perf:start" /* PERFORMANCE_START */ ), Nd = /* @__PURE__ */ hc( "perf:end" /* PERFORMANCE_END */ ); function hc(e) { return (t, n, r) => { qr(e, t.appContext.app, t.uid, t, n, r); }; } function wd(e, t, n) { qr( "component:emit", e.appContext.app, e, t, n ); } let qe = null, _c = null; function Ao(e) { const t = qe; return qe = e, _c = e && e.type.__scopeId || null, t; } function Ze(e, t = qe, n) { if (!t || e._n) return e; const r = (...o) => { r._d && ma(-1); const s = Ao(t); let i; try { i = e(...o); } finally { Ao(s), r._d && ma(1); } return w.NODE_ENV !== "production" && mc(t), i; }; return r._n = !0, r._c = !0, r._d = !0, r; } function gc(e) { cf(e) && $("Do not use built-in directive ids as custom directive id: " + e); } function Cn(e, t, n, r) { const o = e.dirs, s = t && t.dirs; for (let i = 0; i < o.length; i++) { const a = o[i]; s && (a.oldValue = s[i].value); let l = a.dir[r]; l && (un(), Xt(l, n, 8, [ e.el, a, e, t ]), fn()); } } const Od = Symbol("_vte"), Td = (e) => e.__isTeleport; function bi(e, t) { e.shapeFlag & 6 && e.component ? (e.transition = t, bi(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t; } /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function Ko(e, t) { return X(e) ? ( // #8236: extend call and options.name access are considered side-effects // by Rollup, so we have to wrap it in a pure-annotated IIFE. xe({ name: e.name }, t, { setup: e }) ) : e; } function bc(e) { e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0]; } const Sd = /* @__PURE__ */ new WeakSet(); function Do(e, t, n, r, o = !1) { if (G(e)) { e.forEach( (b, y) => Do( b, t && (G(t) ? t[y] : t), n, r, o ) ); return; } if (tr(r) && !o) { r.shapeFlag & 512 && r.type.__asyncResolved && r.component.subTree.component && Do(e, t, n, r.component.subTree); return; } const s = r.shapeFlag & 4 ? Ti(r.component) : r.el, i = o ? null : s, { i: a, r: l } = e; if (w.NODE_ENV !== "production" && !a) { $( "Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function." ); return; } const c = t && t.r, u = a.refs === Ee ? a.refs = {} : a.refs, f = a.setupState, m = oe(f), _ = f === Ee ? () => !1 : (b) => w.NODE_ENV !== "production" && (ce(m, b) && !Ie(m[b]) && $( `Template ref "${b}" used on a non-ref value. It will not work in the production build.` ), Sd.has(m[b])) ? !1 : ce(m, b); if (c != null && c !== l && (Se(c) ? (u[c] = null, _(c) && (f[c] = null)) : Ie(c) && (c.value = null)), X(l)) lr(l, a, 12, [i, u]); else { const b = Se(l), y = Ie(l); if (b || y) { const S = () => { if (e.f) { const E = b ? _(l) ? f[l] : u[l] : l.value; o ? G(E) && ai(E, s) : G(E) ? E.includes(s) || E.push(s) : b ? (u[l] = [s], _(l) && (f[l] = u[l])) : (l.value = [s], e.k && (u[e.k] = l.value)); } else b ? (u[l] = i, _(l) && (f[l] = i)) : y ? (l.value = i, e.k && (u[e.k] = i)) : w.NODE_ENV !== "production" && $("Invalid template ref type:", l, `(${typeof l})`); }; i ? (S.id = -1, Et(S, n)) : S(); } else w.NODE_ENV !== "production" && $("Invalid template ref type:", l, `(${typeof l})`); } } Wr().requestIdleCallback; Wr().cancelIdleCallback; const tr = (e) => !!e.type.__asyncLoader, Ei = (e) => e.type.__isKeepAlive; function Cd(e, t) { Ec(e, "a", t); } function Ad(e, t) { Ec(e, "da", t); } function Ec(e, t, n = je) { const r = e.__wdc || (e.__wdc = () => { let o = n; for (; o; ) { if (o.isDeactivated) return; o = o.parent; } return e(); }); if (qo(t, r, n), n) { let o = n.parent; for (; o && o.parent; ) Ei(o.parent.vnode) && Dd(r, t, n, o), o = o.parent; } } function Dd(e, t, n, r) { const o = qo( t, e, r, !0 /* prepend */ ); yi(() => { ai(r[t], o); }, n); } function qo(e, t, n = je, r = !1) { if (n) { const o = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => { un(); const a = Yr(n), l = Xt(t, n, e, i); return a(), fn(), l; }); return r ? o.unshift(s) : o.push(s), s; } else if (w.NODE_ENV !== "production") { const o = Dn(hi[e].replace(/ hook$/, "")); $( `${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` ); } } const dn = (e) => (t, n = je) => { (!Rr || e === "sp") && qo(e, (...r) => t(...r), n); }, Ld = dn("bm"), Go = dn("m"), Id = dn( "bu" ), xd = dn("u"), Yo = dn( "bum" ), yi = dn("um"), Rd = dn( "sp" ), kd = dn("rtg"), Pd = dn("rtc"); function Vd(e, t = je) { qo("ec", e, t); } const Fd = "components", yc = Symbol.for("v-ndc"); function ta(e) { return Se(e) ? Md(Fd, e, !1) || e : e || yc; } function Md(e, t, n = !0, r = !1) { const o = qe || je; if (o) { const s = o.type; { const a = Si( s, !1 ); if (a && (a === t || a === Ge(t) || a === At(Ge(t)))) return s; } const i = ( // local registration // check instance[type] first which is resolved for options API na(o[e] || s[e], t) || // global registration na(o.appContext[e], t) ); return !i && r ? s : (w.NODE_ENV !== "production" && n && !i && $(`Failed to resolve ${e.slice(0, -1)}: ${t} If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`), i); } else w.NODE_ENV !== "production" && $( `resolve${At(e.slice(0, -1))} can only be used in render() or setup().` ); } function na(e, t) { return e && (e[t] || e[Ge(t)] || e[At(Ge(t))]); } function vn(e, t, n, r) { let o; const s = n, i = G(e); if (i || Se(e)) { const a = i && Pn(e); let l = !1; a && (l = !at(e), e = jo(e)), o = new Array(e.length); for (let c = 0, u = e.length; c < u; c++) o[c] = t( l ? Je(e[c]) : e[c], c, void 0, s ); } else if (typeof e == "number") { w.NODE_ENV !== "production" && !Number.isInteger(e) && $(`The v-for range expect an integer value but got ${e}.`), o = new Array(e); for (let a = 0; a < e; a++) o[a] = t(a + 1, a, void 0, s); } else if (_e(e)) if (e[Symbol.iterator]) o = Array.from( e, (a, l) => t(a, l, void 0, s) ); else { const a = Object.keys(e); o = new Array(a.length); for (let l = 0, c = a.length; l < c; l++) { const u = a[l]; o[l] = t(e[u], u, l, s); } } else o = []; return o; } function $d(e, t) { for (let n = 0; n < t.length; n++) { const r = t[n]; if (G(r)) for (let o = 0; o < r.length; o++) e[r[o].name] = r[o].fn; else r && (e[r.name] = r.key ? (...o) => { const s = r.fn(...o); return s && (s.key = r.key), s; } : r.fn); } return e; } function Fn(e, t, n = {}, r, o) { if (qe.ce || qe.parent && tr(qe.parent) && qe.parent.ce) return t !== "default" && (n.name = t), Q(), et( Ae, null, [ye("slot", n, r && r())], 64 ); let s = e[t]; w.NODE_ENV !== "production" && s && s.length > 1 && ($( "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template." ), s = () => []), s && s._c && (s._d = !1), Q(); const i = s && vc(s(n)), a = n.key || // slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that i && i.key, l = et( Ae, { key: (a && !cn(a) ? a : `_${t}`) + // #7256 force differentiate fallback content from actual content (!i && r ? "_fb" : "") }, i || (r ? r() : []), i && e._ === 1 ? 64 : -2 ); return s && s._c && (s._d = !0), l; } function vc(e) { return e.some((t) => jn(t) ? !(t.type === pt || t.type === Ae && !vc(t.children)) : !0) ? e : null; } const Rs = (e) => e ? qc(e) ? Ti(e) : Rs(e.parent) : null, Mn = ( // Move PURE marker to new line to workaround compiler discarding it // due to type annotation /* @__PURE__ */ xe(/* @__PURE__ */ Object.create(null), { $: (e) => e, $el: (e) => e.vnode.el, $data: (e) => e.data, $props: (e) => w.NODE_ENV !== "production" ? qt(e.props) : e.props, $attrs: (e) => w.NODE_ENV !== "production" ? qt(e.attrs) : e.attrs, $slots: (e) => w.NODE_ENV !== "production" ? qt(e.slots) : e.slots, $refs: (e) => w.NODE_ENV !== "production" ? qt(e.refs) : e.refs, $parent: (e) => Rs(e.parent), $root: (e) => Rs(e.root), $host: (e) => e.ce, $emit: (e) => e.emit, $options: (e) => Tc(e), $forceUpdate: (e) => e.f || (e.f = () => { Bo(e.update); }), $nextTick: (e) => e.n || (e.n = ac.bind(e.proxy)), $watch: (e) => bp.bind(e) }) ), vi = (e) => e === "_" || e === "$", hs = (e, t) => e !== Ee && !e.__isScriptSetup && ce(e, t), Nc = { get({ _: e }, t) { if (t === "__v_skip") return !0; const { ctx: n, setupState: r, data: o, props: s, accessCache: i, type: a, appContext: l } = e; if (w.NODE_ENV !== "production" && t === "__isVue") return !0; let c; if (t[0] !== "$") { const _ = i[t]; if (_ !== void 0) switch (_) { case 1: return r[t]; case 2: return o[t]; case 4: return n[t]; case 3: return s[t]; } else { if (hs(r, t)) return i[t] = 1, r[t]; if (o !== Ee && ce(o, t)) return i[t] = 2, o[t]; if ( // only cache other properties when instance has declared (thus stable) // props (c = e.propsOptions[0]) && ce(c, t) ) return i[t] = 3, s[t]; if (n !== Ee && ce(n, t)) return i[t] = 4, n[t]; ks && (i[t] = 0); } } const u = Mn[t]; let f, m; if (u) return t === "$attrs" ? ($e(e.attrs, "get", ""), w.NODE_ENV !== "production" && xo()) : w.NODE_ENV !== "production" && t === "$slots" && $e(e, "get", t), u(e); if ( // css module (injected by vue-loader) (f = a.__cssModules) && (f = f[t]) ) return f; if (n !== Ee && ce(n, t)) return i[t] = 4, n[t]; if ( // global properties m = l.config.globalProperties, ce(m, t) ) return m[t]; w.NODE_ENV !== "production" && qe && (!Se(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading // to infinite warning loop t.indexOf("__v") !== 0) && (o !== Ee && vi(t[0]) && ce(o, t) ? $( `Property ${JSON.stringify( t )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.` ) : e === qe && $( `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.` )); }, set({ _: e }, t, n) { const { data: r, setupState: o, ctx: s } = e; return hs(o, t) ? (o[t] = n, !0) : w.NODE_ENV !== "production" && o.__isScriptSetup && ce(o, t) ? ($(`Cannot mutate