(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/** * @vue/shared v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function ds(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Mt=[],Ze=()=>{},bi=()=>!1,Cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sn=e=>e.startsWith("onUpdate:"),pe=Object.assign,hs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lo=Object.prototype.hasOwnProperty,Q=(e,t)=>Lo.call(e,t),H=Array.isArray,It=e=>tn(e)==="[object Map]",_i=e=>tn(e)==="[object Set]",Os=e=>tn(e)==="[object Date]",U=e=>typeof e=="function",ue=e=>typeof e=="string",Xe=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",xi=e=>(Y(e)||U(e))&&U(e.then)&&U(e.catch),wi=Object.prototype.toString,tn=e=>wi.call(e),Bo=e=>tn(e).slice(8,-1),$i=e=>tn(e)==="[object Object]",ps=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ro=/-\w/g,Ne=Tn(e=>e.replace(Ro,t=>t.slice(1).toUpperCase())),No=/\B([A-Z])/g,St=Tn(e=>e.replace(No,"-$1").toLowerCase()),ki=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hn=Tn(e=>e?`on${ki(e)}`:""),Ye=(e,t)=>!Object.is(e,t),un=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ms=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fo=e=>{const t=ue(e)?Number(e):NaN;return isNaN(t)?e:t};let Ls;const En=()=>Ls||(Ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pt(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function lt(e){let t="";if(ue(e))t=e;else if(H(e))for(let n=0;n!!(e&&e.__v_isRef===!0),R=e=>ue(e)?e:e==null?"":H(e)||Y(e)&&(e.toString===wi||!U(e.toString))?Ti(e)?R(e.value):JSON.stringify(e,Ei,2):String(e),Ei=(e,t)=>Ti(t)?Ei(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[jn(s,o)+" =>"]=i,n),{})}:_i(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jn(n))}:Xe(t)?jn(t):Y(t)&&!H(t)&&!$i(t)?String(t):t,jn=(e,t="")=>{var n;return Xe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Se;class Wo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.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;t0&&--this._on===0&&(Se=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(qt){let t=qt;for(qt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jt;){let t=jt;for(jt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Pi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Oi(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),bs(s),Go(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function Xn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Li(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Li(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gt)||(e.globalVersion=Gt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xn(e))))return;e.flags|=2;const t=e.dep,n=ie,s=Fe;ie=e,Fe=!0;try{Pi(e);const i=e.fn(e._value);(t.version===0||Ye(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ie=n,Fe=s,Oi(e),e.flags&=-3}}function bs(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)bs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Go(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Bi=[];function at(){Bi.push(Fe),Fe=!1}function ut(){const e=Bi.pop();Fe=e===void 0?!0:e}function Bs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ie;ie=void 0;try{t()}finally{ie=n}}}let Gt=0;class Jo{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 _s{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,this.__v_skip=!0}track(t){if(!ie||!Fe||ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ie)n=this.activeLink=new Jo(ie,this),ie.deps?(n.prevDep=ie.depsTail,ie.depsTail.nextDep=n,ie.depsTail=n):ie.deps=ie.depsTail=n,Ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ie.depsTail,n.nextDep=void 0,ie.depsTail.nextDep=n,ie.depsTail=n,ie.deps===n&&(ie.deps=s)}return n}trigger(t){this.version++,Gt++,this.notify(t)}notify(t){gs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ys()}}}function Ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const es=new WeakMap,kt=Symbol(""),ts=Symbol(""),Jt=Symbol("");function ye(e,t,n){if(Fe&&ie){let s=es.get(e);s||es.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new _s),i.map=s,i.key=n),i.track()}}function ot(e,t,n,s,i,o){const r=es.get(e);if(!r){Gt++;return}const l=a=>{a&&a.trigger()};if(gs(),t==="clear")r.forEach(l);else{const a=H(e),d=a&&ps(n);if(a&&n==="length"){const c=Number(s);r.forEach((p,y)=>{(y==="length"||y===Jt||!Xe(y)&&y>=c)&&l(p)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),d&&l(r.get(Jt)),t){case"add":a?d&&l(r.get("length")):(l(r.get(kt)),It(e)&&l(r.get(ts)));break;case"delete":a||(l(r.get(kt)),It(e)&&l(r.get(ts)));break;case"set":It(e)&&l(r.get(kt));break}}ys()}function Tt(e){const t=G(e);return t===e?t:(ye(t,"iterate",Jt),Pe(e)?t:t.map(De))}function An(e){return ye(e=G(e),"iterate",Jt),e}function Je(e,t){return ct(e)?Lt(Ct(e)?De(t):t):De(t)}const Qo={__proto__:null,[Symbol.iterator](){return Un(this,Symbol.iterator,e=>Je(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>H(t)?Tt(t):t))},entries(){return Un(this,"entries",e=>(e[1]=Je(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(s=>Je(this,s)),arguments)},find(e,t){return tt(this,"find",e,t,n=>Je(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>Je(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kn(this,"includes",e)},indexOf(...e){return Kn(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return Kn(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return Nt(this,"pop")},push(...e){return Nt(this,"push",e)},reduce(e,...t){return Rs(this,"reduce",e,t)},reduceRight(e,...t){return Rs(this,"reduceRight",e,t)},shift(){return Nt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return Nt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Nt(this,"unshift",e)},values(){return Un(this,"values",e=>Je(this,e))}};function Un(e,t,n){const s=An(e),i=s[t]();return s!==e&&!Pe(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Yo=Array.prototype;function tt(e,t,n,s,i,o){const r=An(e),l=r!==e&&!Pe(e),a=r[t];if(a!==Yo[t]){const p=a.apply(e,o);return l?De(p):p}let d=n;r!==e&&(l?d=function(p,y){return n.call(this,Je(e,p),y,e)}:n.length>2&&(d=function(p,y){return n.call(this,p,y,e)}));const c=a.call(r,d,s);return l&&i?i(c):c}function Rs(e,t,n,s){const i=An(e),o=i!==e&&!Pe(e);let r=n,l=!1;i!==e&&(o?(l=s.length===0,r=function(d,c,p){return l&&(l=!1,d=Je(e,d)),n.call(this,d,Je(e,c),p,e)}):n.length>3&&(r=function(d,c,p){return n.call(this,d,c,p,e)}));const a=i[t](r,...s);return l?Je(e,a):a}function Kn(e,t,n){const s=G(e);ye(s,"iterate",Jt);const i=s[t](...n);return(i===-1||i===!1)&&ks(n[0])?(n[0]=G(n[0]),s[t](...n)):i}function Nt(e,t,n=[]){at(),gs();const s=G(e)[t].apply(e,n);return ys(),ut(),s}const Zo=ds("__proto__,__v_isRef,__isVue"),Ni=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function Xo(e){Xe(e)||(e=String(e));const t=G(this);return ye(t,"has",e),t.hasOwnProperty(e)}class Fi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?ur:ji:o?Hi:Vi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=H(t);if(!i){let a;if(r&&(a=Qo[n]))return a;if(n==="hasOwnProperty")return Xo}const l=Reflect.get(t,n,be(t)?t:s);if((Xe(n)?Ni.has(n):Zo(n))||(i||ye(t,"get",n),o))return l;if(be(l)){const a=r&&ps(n)?l:l.value;return i&&Y(a)?ss(a):a}return Y(l)?i?ss(l):ws(l):l}}class Di extends Fi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];const r=H(t)&&ps(n);if(!this._isShallow){const d=ct(o);if(!Pe(s)&&!ct(s)&&(o=G(o),s=G(s)),!r&&be(o)&&!be(s))return d||(o.value=s),!0}const l=r?Number(n)e,rn=e=>Reflect.getPrototypeOf(e);function ir(e,t,n){return function(...s){const i=this.__v_raw,o=G(i),r=It(o),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=i[e](...s),c=n?ns:t?Lt:De;return!t&&ye(o,"iterate",a?ts:kt),pe(Object.create(d),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:l?[c(p[0]),c(p[1])]:c(p),done:y}}})}}function ln(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function or(e,t){const n={get(i){const o=this.__v_raw,r=G(o),l=G(i);e||(Ye(i,l)&&ye(r,"get",i),ye(r,"get",l));const{has:a}=rn(r),d=t?ns:e?Lt:De;if(a.call(r,i))return d(o.get(i));if(a.call(r,l))return d(o.get(l));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ye(G(i),"iterate",kt),i.size},has(i){const o=this.__v_raw,r=G(o),l=G(i);return e||(Ye(i,l)&&ye(r,"has",i),ye(r,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const r=this,l=r.__v_raw,a=G(l),d=t?ns:e?Lt:De;return!e&&ye(a,"iterate",kt),l.forEach((c,p)=>i.call(o,d(c),d(p),r))}};return pe(n,e?{add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear")}:{add(i){const o=G(this),r=rn(o),l=G(i),a=!t&&!Pe(i)&&!ct(i)?l:i;return r.has.call(o,a)||Ye(i,a)&&r.has.call(o,i)||Ye(l,a)&&r.has.call(o,l)||(o.add(a),ot(o,"add",a,a)),this},set(i,o){!t&&!Pe(o)&&!ct(o)&&(o=G(o));const r=G(this),{has:l,get:a}=rn(r);let d=l.call(r,i);d||(i=G(i),d=l.call(r,i));const c=a.call(r,i);return r.set(i,o),d?Ye(o,c)&&ot(r,"set",i,o):ot(r,"add",i,o),this},delete(i){const o=G(this),{has:r,get:l}=rn(o);let a=r.call(o,i);a||(i=G(i),a=r.call(o,i)),l&&l.call(o,i);const d=o.delete(i);return a&&ot(o,"delete",i,void 0),d},clear(){const i=G(this),o=i.size!==0,r=i.clear();return o&&ot(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ir(i,e,t)}),n}function xs(e,t){const n=or(e,t);return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Q(n,i)&&i in s?n:s,i,o)}const rr={get:xs(!1,!1)},lr={get:xs(!1,!0)},ar={get:xs(!0,!1)};const Vi=new WeakMap,Hi=new WeakMap,ji=new WeakMap,ur=new WeakMap;function cr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fr(e){return e.__v_skip||!Object.isExtensible(e)?0:cr(Bo(e))}function ws(e){return ct(e)?e:$s(e,!1,tr,rr,Vi)}function dr(e){return $s(e,!1,sr,lr,Hi)}function ss(e){return $s(e,!0,nr,ar,ji)}function $s(e,t,n,s,i){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=fr(e);if(o===0)return e;const r=i.get(e);if(r)return r;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function Ct(e){return ct(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ct(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function ks(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function hr(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const De=e=>Y(e)?ws(e):e,Lt=e=>Y(e)?ss(e):e;function be(e){return e?e.__v_isRef===!0:!1}function q(e){return pr(e,!1)}function pr(e,t){return be(e)?e:new mr(e,t)}class mr{constructor(t,n){this.dep=new _s,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||ct(t);t=s?t:G(t),Ye(t,n)&&(this._rawValue=t,this._value=s?t:De(t),this.dep.trigger())}}function vr(e){return be(e)?e.value:e}const gr={get:(e,t,n)=>t==="__v_raw"?e:vr(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function qi(e){return Ct(e)?e:new Proxy(e,gr)}class yr{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _s(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Ii(this,!0),!0}get value(){const t=this.dep.track();return Li(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function br(e,t,n=!1){let s,i;return U(e)?s=e:(s=e.get,i=e.set),new yr(s,i,n)}const an={},mn=new WeakMap;let wt;function _r(e,t=!1,n=wt){if(n){let s=mn.get(n);s||mn.set(n,s=[]),s.push(e)}}function xr(e,t,n=te){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:l,call:a}=n,d=S=>i?S:Pe(S)||i===!1||i===0?rt(S,1):rt(S);let c,p,y,b,E=!1,_=!1;if(be(e)?(p=()=>e.value,E=Pe(e)):Ct(e)?(p=()=>d(e),E=!0):H(e)?(_=!0,E=e.some(S=>Ct(S)||Pe(S)),p=()=>e.map(S=>{if(be(S))return S.value;if(Ct(S))return d(S);if(U(S))return a?a(S,2):S()})):U(e)?t?p=a?()=>a(e,2):e:p=()=>{if(y){at();try{y()}finally{ut()}}const S=wt;wt=c;try{return a?a(e,3,[b]):e(b)}finally{wt=S}}:p=Ze,t&&i){const S=p,z=i===!0?1/0:i;p=()=>rt(S(),z)}const v=zo(),O=()=>{c.stop(),v&&v.active&&hs(v.effects,c)};if(o&&t){const S=t;t=(...z)=>{S(...z),O()}}let A=_?new Array(e.length).fill(an):an;const I=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const z=c.run();if(i||E||(_?z.some((ce,me)=>Ye(ce,A[me])):Ye(z,A))){y&&y();const ce=wt;wt=c;try{const me=[z,A===an?void 0:_&&A[0]===an?[]:A,b];A=z,a?a(t,3,me):t(...me)}finally{wt=ce}}}else c.run()};return l&&l(I),c=new Ai(p),c.scheduler=r?()=>r(I,!1):I,b=S=>_r(S,!1,c),y=c.onStop=()=>{const S=mn.get(c);if(S){if(a)a(S,4);else for(const z of S)z();mn.delete(c)}},t?s?I(!0):A=c.run():r?r(I.bind(null,!0),!0):c.run(),O.pause=c.pause.bind(c),O.resume=c.resume.bind(c),O.stop=O,O}function rt(e,t=1/0,n){if(t<=0||!Y(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))rt(e.value,t,n);else if(H(e))for(let s=0;s{rt(s,t,n)});else if($i(e)){for(const s in e)rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rt(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function nn(e,t,n,s){try{return s?e(...s):e()}catch(i){Mn(i,t,n)}}function Ve(e,t,n,s){if(U(e)){const i=nn(e,t,n,s);return i&&xi(i)&&i.catch(o=>{Mn(o,t,n)}),i}if(H(e)){const i=[];for(let o=0;o>>1,i=we[s],o=Qt(i);o=Qt(n)?we.push(e):we.splice(kr(t),0,e),e.flags|=1,Ki()}}function Ki(){vn||(vn=Ui.then(zi))}function Cr(e){H(e)?Pt.push(...e):ht&&e.id===-1?ht.splice(Et+1,0,e):e.flags&1||(Pt.push(e),e.flags|=1),Ki()}function Ns(e,t,n=ze+1){for(;nQt(n)-Qt(s));if(Pt.length=0,ht){ht.push(...t);return}for(ht=t,Et=0;Ete.id==null?e.flags&2?-1:1/0:e.id;function zi(e){try{for(ze=0;ze{s._d&&xn(-1);const o=gn(t);let r;try{r=e(...i)}finally{gn(o),s._d&&xn(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Oe(e,t){if(Ie===null)return e;const n=Nn(Ie),s=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&U(t)?t.call(s&&s.proxy):t}}const Tr=Symbol.for("v-scx"),Er=()=>cn(Tr);function fn(e,t,n){return Ji(e,t,n)}function Ji(e,t,n=te){const{immediate:s,deep:i,flush:o,once:r}=n,l=pe({},n),a=t&&s||!t&&o!=="post";let d;if(Xt){if(o==="sync"){const b=Er();d=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=Ze,b.resume=Ze,b.pause=Ze,b}}const c=ke;l.call=(b,E,_)=>Ve(b,c,E,_);let p=!1;o==="post"?l.scheduler=b=>{Ce(b,c&&c.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(b,E)=>{E?b():Cs(b)}),l.augmentJob=b=>{t&&(b.flags|=4),p&&(b.flags|=2,c&&(b.id=c.uid,b.i=c))};const y=xr(e,t,l);return Xt&&(d?d.push(y):a&&y()),y}function Ar(e,t,n){const s=this.proxy,i=ue(e)?e.includes(".")?Qi(s,e):()=>s[e]:e.bind(s,s);let o;U(t)?o=t:(o=t.handler,n=t);const r=sn(this),l=Ji(i,o.bind(s),n);return r(),l}function Qi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;ie.__isTeleport,Ge=Symbol("_leaveCb"),Ft=Symbol("_enterCb");function Ir(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return On(()=>{e.isMounted=!0}),oo(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],Zi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},Xi=e=>{const t=e.subTree;return t.component?Xi(t.component):t},Pr={name:"BaseTransition",props:Zi,setup(e,{slots:t}){const n=So(),s=Ir();return()=>{const i=t.default&&no(t.default(),!0);if(!i||!i.length)return;const o=eo(i),r=G(e),{mode:l}=r;if(s.isLeaving)return Wn(o);const a=Fs(o);if(!a)return Wn(o);let d=is(a,r,s,n,p=>d=p);a.type!==$e&&Yt(a,d);let c=n.subTree&&Fs(n.subTree);if(c&&c.type!==$e&&!$t(c,a)&&Xi(n).type!==$e){let p=is(c,r,s,n);if(Yt(c,p),l==="out-in"&&a.type!==$e)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,c=void 0},Wn(o);l==="in-out"&&a.type!==$e?p.delayLeave=(y,b,E)=>{const _=to(s,c);_[String(c.key)]=c,y[Ge]=()=>{b(),y[Ge]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{E(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function eo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==$e){t=n;break}}return t}const Or=Pr;function to(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function is(e,t,n,s,i){const{appear:o,mode:r,persisted:l=!1,onBeforeEnter:a,onEnter:d,onAfterEnter:c,onEnterCancelled:p,onBeforeLeave:y,onLeave:b,onAfterLeave:E,onLeaveCancelled:_,onBeforeAppear:v,onAppear:O,onAfterAppear:A,onAppearCancelled:I}=t,S=String(e.key),z=to(n,e),ce=(K,J)=>{K&&Ve(K,s,9,J)},me=(K,J)=>{const oe=J[1];ce(K,J),H(K)?K.every(N=>N.length<=1)&&oe():K.length<=1&&oe()},ve={mode:r,persisted:l,beforeEnter(K){let J=a;if(!n.isMounted)if(o)J=v||a;else return;K[Ge]&&K[Ge](!0);const oe=z[S];oe&&$t(e,oe)&&oe.el[Ge]&&oe.el[Ge](),ce(J,[K])},enter(K){if(z[S]===e)return;let J=d,oe=c,N=p;if(!n.isMounted)if(o)J=O||d,oe=A||c,N=I||p;else return;let ne=!1;K[Ft]=Re=>{ne||(ne=!0,Re?ce(N,[K]):ce(oe,[K]),ve.delayedLeave&&ve.delayedLeave(),K[Ft]=void 0)};const he=K[Ft].bind(null,!1);J?me(J,[K,he]):he()},leave(K,J){const oe=String(e.key);if(K[Ft]&&K[Ft](!0),n.isUnmounting)return J();ce(y,[K]);let N=!1;K[Ge]=he=>{N||(N=!0,J(),he?ce(_,[K]):ce(E,[K]),K[Ge]=void 0,z[oe]===e&&delete z[oe])};const ne=K[Ge].bind(null,!1);z[oe]=e,b?me(b,[K,ne]):ne()},clone(K){const J=is(K,t,n,s,i);return i&&i(J),J}};return ve}function Wn(e){if(In(e))return e=mt(e),e.children=null,e}function Fs(e){if(!In(e))return Yi(e.type)&&e.children?eo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&U(n.default))return n.default()}}function Yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yt(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 no(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;oUt(_,t&&(H(t)?t[v]:t),n,s,i));return}if(Kt(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ut(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Nn(s.component):s.el,r=i?null:o,{i:l,r:a}=e,d=t&&t.r,c=l.refs===te?l.refs={}:l.refs,p=l.setupState,y=G(p),b=p===te?bi:_=>Ds(c,_)?!1:Q(y,_),E=(_,v)=>!(v&&Ds(c,v));if(d!=null&&d!==a){if(Vs(t),ue(d))c[d]=null,b(d)&&(p[d]=null);else if(be(d)){const _=t;E(d,_.k)&&(d.value=null),_.k&&(c[_.k]=null)}}if(U(a))nn(a,l,12,[r,c]);else{const _=ue(a),v=be(a);if(_||v){const O=()=>{if(e.f){const A=_?b(a)?p[a]:c[a]:E()||!e.k?a.value:c[e.k];if(i)H(A)&&hs(A,o);else if(H(A))A.includes(o)||A.push(o);else if(_)c[a]=[o],b(a)&&(p[a]=c[a]);else{const I=[o];E(a,e.k)&&(a.value=I),e.k&&(c[e.k]=I)}}else _?(c[a]=r,b(a)&&(p[a]=r)):v&&(E(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const A=()=>{O(),bn.delete(e)};A.id=-1,bn.set(e,A),Ce(A,n)}else Vs(e),O()}}}function Vs(e){const t=bn.get(e);t&&(t.flags|=8,bn.delete(e))}En().requestIdleCallback;En().cancelIdleCallback;const Kt=e=>!!e.type.__asyncLoader,In=e=>e.type.__isKeepAlive;function Lr(e,t){io(e,"a",t)}function Br(e,t){io(e,"da",t)}function io(e,t,n=ke){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Pn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)In(i.parent.vnode)&&Rr(s,t,n,i),i=i.parent}}function Rr(e,t,n,s){const i=Pn(t,e,s,!0);Ln(()=>{hs(s[t],i)},n)}function Pn(e,t,n=ke,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{at();const l=sn(n),a=Ve(t,n,e,r);return l(),ut(),a});return s?i.unshift(o):i.push(o),o}}const ft=e=>(t,n=ke)=>{(!Xt||e==="sp")&&Pn(e,(...s)=>t(...s),n)},Nr=ft("bm"),On=ft("m"),Fr=ft("bu"),Dr=ft("u"),oo=ft("bum"),Ln=ft("um"),Vr=ft("sp"),Hr=ft("rtg"),jr=ft("rtc");function qr(e,t=ke){Pn("ec",e,t)}const Ur=Symbol.for("v-ndc");function Ae(e,t,n,s){let i;const o=n,r=H(e);if(r||ue(e)){const l=r&&Ct(e);let a=!1,d=!1;l&&(a=!Pe(e),d=ct(e),e=An(e)),i=new Array(e.length);for(let c=0,p=e.length;ct(l,a,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let a=0,d=l.length;ae?To(e)?Nn(e):os(e.parent):null,Wt=pe(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=>os(e.parent),$root:e=>os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>lo(e),$forceUpdate:e=>e.f||(e.f=()=>{Cs(e.update)}),$nextTick:e=>e.n||(e.n=$r.bind(e.proxy)),$watch:e=>Ar.bind(e)}),zn=(e,t)=>e!==te&&!e.__isScriptSetup&&Q(e,t),Kr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:l,appContext:a}=e;if(t[0]!=="$"){const y=r[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(zn(s,t))return r[t]=1,s[t];if(i!==te&&Q(i,t))return r[t]=2,i[t];if(Q(o,t))return r[t]=3,o[t];if(n!==te&&Q(n,t))return r[t]=4,n[t];rs&&(r[t]=0)}}const d=Wt[t];let c,p;if(d)return t==="$attrs"&&ye(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==te&&Q(n,t))return r[t]=4,n[t];if(p=a.config.globalProperties,Q(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return zn(i,t)?(i[t]=n,!0):s!==te&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:o,type:r}},l){let a;return!!(n[l]||e!==te&&l[0]!=="$"&&Q(e,l)||zn(t,l)||Q(o,l)||Q(s,l)||Q(Wt,l)||Q(i.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hs(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let rs=!0;function Wr(e){const t=lo(e),n=e.proxy,s=e.ctx;rs=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:l,provide:a,inject:d,created:c,beforeMount:p,mounted:y,beforeUpdate:b,updated:E,activated:_,deactivated:v,beforeDestroy:O,beforeUnmount:A,destroyed:I,unmounted:S,render:z,renderTracked:ce,renderTriggered:me,errorCaptured:ve,serverPrefetch:K,expose:J,inheritAttrs:oe,components:N,directives:ne,filters:he}=t;if(d&&zr(d,s,null),r)for(const re in r){const X=r[re];U(X)&&(s[re]=X.bind(n))}if(i){const re=i.call(n,n);Y(re)&&(e.data=ws(re))}if(rs=!0,o)for(const re in o){const X=o[re],et=U(X)?X.bind(n,n):U(X.get)?X.get.bind(n,n):Ze,vt=!U(X)&&U(X.set)?X.set.bind(n):Ze,je=Le({get:et,set:vt});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>je.value,set:B=>je.value=B})}if(l)for(const re in l)ro(l[re],s,n,re);if(a){const re=U(a)?a.call(n):a;Reflect.ownKeys(re).forEach(X=>{Sr(X,re[X])})}c&&js(c,e,"c");function fe(re,X){H(X)?X.forEach(et=>re(et.bind(n))):X&&re(X.bind(n))}if(fe(Nr,p),fe(On,y),fe(Fr,b),fe(Dr,E),fe(Lr,_),fe(Br,v),fe(qr,ve),fe(jr,ce),fe(Hr,me),fe(oo,A),fe(Ln,S),fe(Vr,K),H(J))if(J.length){const re=e.exposed||(e.exposed={});J.forEach(X=>{Object.defineProperty(re,X,{get:()=>n[X],set:et=>n[X]=et,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Ze&&(e.render=z),oe!=null&&(e.inheritAttrs=oe),N&&(e.components=N),ne&&(e.directives=ne),K&&so(e)}function zr(e,t,n=Ze){H(e)&&(e=ls(e));for(const s in e){const i=e[s];let o;Y(i)?"default"in i?o=cn(i.from||s,i.default,!0):o=cn(i.from||s):o=cn(i),be(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function js(e,t,n){Ve(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ro(e,t,n,s){let i=s.includes(".")?Qi(n,s):()=>n[s];if(ue(e)){const o=t[e];U(o)&&fn(i,o)}else if(U(e))fn(i,e.bind(n));else if(Y(e))if(H(e))e.forEach(o=>ro(o,t,n,s));else{const o=U(e.handler)?e.handler.bind(n):t[e.handler];U(o)&&fn(i,o,e)}}function lo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,l=o.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(d=>_n(a,d,r,!0)),_n(a,t,r)),Y(t)&&o.set(t,a),a}function _n(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&_n(e,o,n,!0),i&&i.forEach(r=>_n(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=Gr[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Gr={data:qs,props:Us,emits:Us,methods:Vt,computed:Vt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Vt,directives:Vt,watch:Qr,provide:qs,inject:Jr};function qs(e,t){return t?e?function(){return pe(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Jr(e,t){return Vt(ls(e),ls(t))}function ls(e){if(H(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${St(t)}Modifiers`];function el(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let i=n;const o=t.startsWith("update:"),r=o&&Xr(s,t.slice(7));r&&(r.trim&&(i=n.map(c=>ue(c)?c.trim():c)),r.number&&(i=n.map(ms)));let l,a=s[l=Hn(t)]||s[l=Hn(Ne(t))];!a&&o&&(a=s[l=Hn(St(t))]),a&&Ve(a,e,6,i);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ve(d,e,6,i)}}const tl=new WeakMap;function uo(e,t,n=!1){const s=n?tl:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},l=!1;if(!U(e)){const a=d=>{const c=uo(d,t,!0);c&&(l=!0,pe(r,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(Y(e)&&s.set(e,null),null):(H(o)?o.forEach(a=>r[a]=null):pe(r,o),Y(e)&&s.set(e,r),r)}function Bn(e,t){return!e||!Cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,St(t))||Q(e,t))}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:l,emit:a,render:d,renderCache:c,props:p,data:y,setupState:b,ctx:E,inheritAttrs:_}=e,v=gn(e);let O,A;try{if(n.shapeFlag&4){const S=i||s,z=S;O=Qe(d.call(z,S,c,p,b,y,E)),A=l}else{const S=t;O=Qe(S.length>1?S(p,{attrs:l,slots:r,emit:a}):S(p,null)),A=t.props?l:nl(l)}}catch(S){zt.length=0,Mn(S,e,1),O=ae($e)}let I=O;if(A&&_!==!1){const S=Object.keys(A),{shapeFlag:z}=I;S.length&&z&7&&(o&&S.some(Sn)&&(A=sl(A,o)),I=mt(I,A,!1,!0))}return n.dirs&&(I=mt(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&Yt(I,n.transition),O=I,gn(v),O}const nl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cn(n))&&((t||(t={}))[n]=e[n]);return t},sl=(e,t)=>{const n={};for(const s in e)(!Sn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function il(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:l,patchFlag:a}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ws(s,r,d):!!r;if(a&8){const c=t.dynamicProps;for(let p=0;pObject.create(fo),po=e=>Object.getPrototypeOf(e)===fo;function rl(e,t,n,s=!1){const i={},o=ho();e.propsDefaults=Object.create(null),mo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:dr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function ll(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,l=G(i),[a]=e.propsOptions;let d=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let p=0;p{a=!0;const[y,b]=vo(p,t,!0);pe(r,y),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!a)return Y(e)&&s.set(e,Mt),Mt;if(H(o))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Ts=e=>H(e)?e.map(Qe):[Qe(e)],ul=(e,t,n)=>{if(t._n)return t;const s=yn((...i)=>Ts(t(...i)),n);return s._c=!1,s},go=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ss(i))continue;const o=e[i];if(U(o))t[i]=ul(i,o,s);else if(o!=null){const r=Ts(o);t[i]=()=>r}}},yo=(e,t)=>{const n=Ts(t);e.slots.default=()=>n},bo=(e,t,n)=>{for(const s in t)(n||!Ss(s))&&(e[s]=t[s])},cl=(e,t,n)=>{const s=e.slots=ho();if(e.vnode.shapeFlag&32){const i=t._;i?(bo(s,t,n),n&&Ci(s,"_",i,!0)):go(t,s)}else t&&yo(e,t)},fl=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:bo(i,t,n):(o=!t.$stable,go(t,i)),r=t}else t&&(yo(e,t),r={default:1});if(o)for(const l in i)!Ss(l)&&r[l]==null&&delete i[l]},Ce=vl;function dl(e){return hl(e)}function hl(e,t){const n=En();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:l,createComment:a,setText:d,setElementText:c,parentNode:p,nextSibling:y,setScopeId:b=Ze,insertStaticContent:E}=e,_=(f,h,m,C=null,x=null,$=null,P=void 0,M=null,T=!!h.dynamicChildren)=>{if(f===h)return;f&&!$t(f,h)&&(C=on(f),B(f,x,$,!0),f=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:k,ref:V,shapeFlag:L}=h;switch(k){case Rn:v(f,h,m,C);break;case $e:O(f,h,m,C);break;case dn:f==null&&A(h,m,C,P);break;case le:N(f,h,m,C,x,$,P,M,T);break;default:L&1?z(f,h,m,C,x,$,P,M,T):L&6?ne(f,h,m,C,x,$,P,M,T):(L&64||L&128)&&k.process(f,h,m,C,x,$,P,M,T,Bt)}V!=null&&x?Ut(V,f&&f.ref,$,h||f,!h):V==null&&f&&f.ref!=null&&Ut(f.ref,null,$,f,!0)},v=(f,h,m,C)=>{if(f==null)s(h.el=l(h.children),m,C);else{const x=h.el=f.el;h.children!==f.children&&d(x,h.children)}},O=(f,h,m,C)=>{f==null?s(h.el=a(h.children||""),m,C):h.el=f.el},A=(f,h,m,C)=>{[f.el,f.anchor]=E(f.children,h,m,C,f.el,f.anchor)},I=({el:f,anchor:h},m,C)=>{let x;for(;f&&f!==h;)x=y(f),s(f,m,C),f=x;s(h,m,C)},S=({el:f,anchor:h})=>{let m;for(;f&&f!==h;)m=y(f),i(f),f=m;i(h)},z=(f,h,m,C,x,$,P,M,T)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),f==null)ce(h,m,C,x,$,P,M,T);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),K(f,h,x,$,P,M,T)}finally{k&&k._endPatch()}}},ce=(f,h,m,C,x,$,P,M)=>{let T,k;const{props:V,shapeFlag:L,transition:D,dirs:j}=f;if(T=f.el=r(f.type,$,V&&V.is,V),L&8?c(T,f.children):L&16&&ve(f.children,T,null,C,x,Gn(f,$),P,M),j&&yt(f,null,C,"created"),me(T,f,f.scopeId,P,C),V){for(const ee in V)ee!=="value"&&!Ht(ee)&&o(T,ee,null,V[ee],$,C);"value"in V&&o(T,"value",null,V.value,$),(k=V.onVnodeBeforeMount)&&We(k,C,f)}j&&yt(f,null,C,"beforeMount");const W=pl(x,D);W&&D.beforeEnter(T),s(T,h,m),((k=V&&V.onVnodeMounted)||W||j)&&Ce(()=>{try{k&&We(k,C,f),W&&D.enter(T),j&&yt(f,null,C,"mounted")}finally{}},x)},me=(f,h,m,C,x)=>{if(m&&b(f,m),C)for(let $=0;${for(let k=T;k{const M=h.el=f.el;let{patchFlag:T,dynamicChildren:k,dirs:V}=h;T|=f.patchFlag&16;const L=f.props||te,D=h.props||te;let j;if(m&&bt(m,!1),(j=D.onVnodeBeforeUpdate)&&We(j,m,h,f),V&&yt(h,f,m,"beforeUpdate"),m&&bt(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&c(M,""),k?J(f.dynamicChildren,k,M,m,C,Gn(h,x),$):P||X(f,h,M,null,m,C,Gn(h,x),$,!1),T>0){if(T&16)oe(M,L,D,m,x);else if(T&2&&L.class!==D.class&&o(M,"class",null,D.class,x),T&4&&o(M,"style",L.style,D.style,x),T&8){const W=h.dynamicProps;for(let ee=0;ee{j&&We(j,m,h,f),V&&yt(h,f,m,"updated")},C)},J=(f,h,m,C,x,$,P)=>{for(let M=0;M{if(h!==m){if(h!==te)for(const $ in h)!Ht($)&&!($ in m)&&o(f,$,h[$],null,x,C);for(const $ in m){if(Ht($))continue;const P=m[$],M=h[$];P!==M&&$!=="value"&&o(f,$,M,P,x,C)}"value"in m&&o(f,"value",h.value,m.value,x)}},N=(f,h,m,C,x,$,P,M,T)=>{const k=h.el=f?f.el:l(""),V=h.anchor=f?f.anchor:l("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:j}=h;j&&(M=M?M.concat(j):j),f==null?(s(k,m,C),s(V,m,C),ve(h.children||[],m,V,x,$,P,M,T)):L>0&&L&64&&D&&f.dynamicChildren&&f.dynamicChildren.length===D.length?(J(f.dynamicChildren,D,m,x,$,P,M),(h.key!=null||x&&h===x.subTree)&&_o(f,h,!0)):X(f,h,m,V,x,$,P,M,T)},ne=(f,h,m,C,x,$,P,M,T)=>{h.slotScopeIds=M,f==null?h.shapeFlag&512?x.ctx.activate(h,m,C,P,T):he(h,m,C,x,$,P,T):Re(f,h,T)},he=(f,h,m,C,x,$,P)=>{const M=f.component=$l(f,C,x);if(In(f)&&(M.ctx.renderer=Bt),kl(M,!1,P),M.asyncDep){if(x&&x.registerDep(M,fe,P),!f.el){const T=M.subTree=ae($e);O(null,T,h,m),f.placeholder=T.el}}else fe(M,f,h,m,x,$,P)},Re=(f,h,m)=>{const C=h.component=f.component;if(il(f,h,m))if(C.asyncDep&&!C.asyncResolved){re(C,h,m);return}else C.next=h,C.update();else h.el=f.el,C.vnode=h},fe=(f,h,m,C,x,$,P)=>{const M=()=>{if(f.isMounted){let{next:L,bu:D,u:j,parent:W,vnode:ee}=f;{const Ue=xo(f);if(Ue){L&&(L.el=ee.el,re(f,L,P)),Ue.asyncDep.then(()=>{Ce(()=>{f.isUnmounted||k()},x)});return}}let se=L,de;bt(f,!1),L?(L.el=ee.el,re(f,L,P)):L=ee,D&&un(D),(de=L.props&&L.props.onVnodeBeforeUpdate)&&We(de,W,L,ee),bt(f,!0);const ge=Ks(f),qe=f.subTree;f.subTree=ge,_(qe,ge,p(qe.el),on(qe),f,x,$),L.el=ge.el,se===null&&ol(f,ge.el),j&&Ce(j,x),(de=L.props&&L.props.onVnodeUpdated)&&Ce(()=>We(de,W,L,ee),x)}else{let L;const{el:D,props:j}=h,{bm:W,m:ee,parent:se,root:de,type:ge}=f,qe=Kt(h);bt(f,!1),W&&un(W),!qe&&(L=j&&j.onVnodeBeforeMount)&&We(L,se,h),bt(f,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(ge,f.parent?f.parent.type:void 0);const Ue=f.subTree=Ks(f);_(null,Ue,m,C,f,x,$),h.el=Ue.el}if(ee&&Ce(ee,x),!qe&&(L=j&&j.onVnodeMounted)){const Ue=h;Ce(()=>We(L,se,Ue),x)}(h.shapeFlag&256||se&&Kt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Ce(f.a,x),f.isMounted=!0,h=m=C=null}};f.scope.on();const T=f.effect=new Ai(M);f.scope.off();const k=f.update=T.run.bind(T),V=f.job=T.runIfDirty.bind(T);V.i=f,V.id=f.uid,T.scheduler=()=>Cs(V),bt(f,!0),k()},re=(f,h,m)=>{h.component=f;const C=f.vnode.props;f.vnode=h,f.next=null,ll(f,h.props,C,m),fl(f,h.children,m),at(),Ns(f),ut()},X=(f,h,m,C,x,$,P,M,T=!1)=>{const k=f&&f.children,V=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:j}=h;if(D>0){if(D&128){vt(k,L,m,C,x,$,P,M,T);return}else if(D&256){et(k,L,m,C,x,$,P,M,T);return}}j&8?(V&16&>(k,x,$),L!==k&&c(m,L)):V&16?j&16?vt(k,L,m,C,x,$,P,M,T):gt(k,x,$,!0):(V&8&&c(m,""),j&16&&ve(L,m,C,x,$,P,M,T))},et=(f,h,m,C,x,$,P,M,T)=>{f=f||Mt,h=h||Mt;const k=f.length,V=h.length,L=Math.min(k,V);let D;for(D=0;DV?gt(f,x,$,!0,!1,L):ve(h,m,C,x,$,P,M,T,L)},vt=(f,h,m,C,x,$,P,M,T)=>{let k=0;const V=h.length;let L=f.length-1,D=V-1;for(;k<=L&&k<=D;){const j=f[k],W=h[k]=T?it(h[k]):Qe(h[k]);if($t(j,W))_(j,W,m,null,x,$,P,M,T);else break;k++}for(;k<=L&&k<=D;){const j=f[L],W=h[D]=T?it(h[D]):Qe(h[D]);if($t(j,W))_(j,W,m,null,x,$,P,M,T);else break;L--,D--}if(k>L){if(k<=D){const j=D+1,W=jD)for(;k<=L;)B(f[k],x,$,!0),k++;else{const j=k,W=k,ee=new Map;for(k=W;k<=D;k++){const Te=h[k]=T?it(h[k]):Qe(h[k]);Te.key!=null&&ee.set(Te.key,k)}let se,de=0;const ge=D-W+1;let qe=!1,Ue=0;const Rt=new Array(ge);for(k=0;k=ge){B(Te,x,$,!0);continue}let Ke;if(Te.key!=null)Ke=ee.get(Te.key);else for(se=W;se<=D;se++)if(Rt[se-W]===0&&$t(Te,h[se])){Ke=se;break}Ke===void 0?B(Te,x,$,!0):(Rt[Ke-W]=k+1,Ke>=Ue?Ue=Ke:qe=!0,_(Te,h[Ke],m,null,x,$,P,M,T),de++)}const Ms=qe?ml(Rt):Mt;for(se=Ms.length-1,k=ge-1;k>=0;k--){const Te=W+k,Ke=h[Te],Is=h[Te+1],Ps=Te+1{const{el:$,type:P,transition:M,children:T,shapeFlag:k}=f;if(k&6){je(f.component.subTree,h,m,C);return}if(k&128){f.suspense.move(h,m,C);return}if(k&64){P.move(f,h,m,Bt);return}if(P===le){s($,h,m);for(let L=0;LM.enter($),x);else{const{leave:L,delayLeave:D,afterLeave:j}=M,W=()=>{f.ctx.isUnmounted?i($):s($,h,m)},ee=()=>{$._isLeaving&&$[Ge](!0),L($,()=>{W(),j&&j()})};D?D($,W,ee):ee()}else s($,h,m)},B=(f,h,m,C=!1,x=!1)=>{const{type:$,props:P,ref:M,children:T,dynamicChildren:k,shapeFlag:V,patchFlag:L,dirs:D,cacheIndex:j,memo:W}=f;if(L===-2&&(x=!1),M!=null&&(at(),Ut(M,null,m,f,!0),ut()),j!=null&&(h.renderCache[j]=void 0),V&256){h.ctx.deactivate(f);return}const ee=V&1&&D,se=!Kt(f);let de;if(se&&(de=P&&P.onVnodeBeforeUnmount)&&We(de,h,f),V&6)Dn(f.component,m,C);else{if(V&128){f.suspense.unmount(m,C);return}ee&&yt(f,null,h,"beforeUnmount"),V&64?f.type.remove(f,h,m,Bt,C):k&&!k.hasOnce&&($!==le||L>0&&L&64)?gt(k,h,m,!1,!0):($===le&&L&384||!x&&V&16)&>(T,h,m),C&&F(f)}const ge=W!=null&&j==null;(se&&(de=P&&P.onVnodeUnmounted)||ee||ge)&&Ce(()=>{de&&We(de,h,f),ee&&yt(f,null,h,"unmounted"),ge&&(f.el=null)},m)},F=f=>{const{type:h,el:m,anchor:C,transition:x}=f;if(h===le){Fn(m,C);return}if(h===dn){S(f);return}const $=()=>{i(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:P,delayLeave:M}=x,T=()=>P(m,$);M?M(f.el,$,T):T()}else $()},Fn=(f,h)=>{let m;for(;f!==h;)m=y(f),i(f),f=m;i(h)},Dn=(f,h,m)=>{const{bum:C,scope:x,job:$,subTree:P,um:M,m:T,a:k}=f;Gs(T),Gs(k),C&&un(C),x.stop(),$&&($.flags|=8,B(P,f,h,m)),M&&Ce(M,h),Ce(()=>{f.isUnmounted=!0},h)},gt=(f,h,m,C=!1,x=!1,$=0)=>{for(let P=$;P{if(f.shapeFlag&6)return on(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=y(f.anchor||f.el),m=h&&h[Mr];return m?y(m):h};let Vn=!1;const As=(f,h,m)=>{let C;f==null?h._vnode&&(B(h._vnode,null,null,!0),C=h._vnode.component):_(h._vnode||null,f,h,null,null,null,m),h._vnode=f,Vn||(Vn=!0,Ns(C),Wi(),Vn=!1)},Bt={p:_,um:B,m:je,r:F,mt:he,mc:ve,pc:X,pbc:J,n:on,o:e};return{render:As,hydrate:void 0,createApp:Zr(As)}}function Gn({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 bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _o(e,t,n=!1){const s=e.children,i=t.children;if(H(s)&&H(i))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function xo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xo(t)}function Gs(e){if(e)for(let t=0;te.__isSuspense;function vl(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Cr(e)}const le=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),dn=Symbol.for("v-stc"),zt=[];let Ee=null;function g(e=!1){zt.push(Ee=e?null:[])}function gl(){zt.pop(),Ee=zt[zt.length-1]||null}let Zt=1;function xn(e,t=!1){Zt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function ko(e){return e.dynamicChildren=Zt>0?Ee||Mt:null,gl(),Zt>0&&Ee&&Ee.push(e),e}function w(e,t,n,s,i,o){return ko(u(e,t,n,s,i,o,!0))}function xe(e,t,n,s,i){return ko(ae(e,t,n,s,i,!0))}function wn(e){return e?e.__v_isVNode===!0:!1}function $t(e,t){return e.type===t.type&&e.key===t.key}const Co=({key:e})=>e??null,hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||be(e)||U(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function u(e,t=null,n=null,s=0,i=null,o=e===le?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Co(t),ref:t&&hn(t),scopeId:Gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ie};return l?(Es(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=ue(n)?8:16),Zt>0&&!r&&Ee&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ee.push(a),a}const ae=yl;function yl(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Ur)&&(e=$e),wn(e)){const l=mt(e,t,!0);return n&&Es(l,n),Zt>0&&!o&&Ee&&(l.shapeFlag&6?Ee[Ee.indexOf(e)]=l:Ee.push(l)),l.patchFlag=-2,l}if(El(e)&&(e=e.__vccOpts),t){t=bl(t);let{class:l,style:a}=t;l&&!ue(l)&&(t.class=lt(l)),Y(a)&&(ks(a)&&!H(a)&&(a=pe({},a)),t.style=pt(a))}const r=ue(e)?1:$o(e)?128:Yi(e)?64:Y(e)?4:U(e)?2:0;return u(e,t,n,s,i,r,o,!0)}function bl(e){return e?ks(e)||po(e)?pe({},e):e:null}function mt(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:l,transition:a}=e,d=t?_l(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Co(d),ref:t&&t.ref?n&&o?H(o)?o.concat(hn(t)):[o,hn(t)]:hn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Yt(c,a.clone(c)),c}function He(e=" ",t=0){return ae(Rn,null,e,t)}function $n(e,t){const n=ae(dn,null,e);return n.staticCount=t,n}function Z(e="",t=!1){return t?(g(),xe($e,null,e)):ae($e,null,e)}function Qe(e){return e==null||typeof e=="boolean"?ae($e):H(e)?ae(le,null,e.slice()):wn(e)?it(e):ae(Rn,null,String(e))}function it(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function Es(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Es(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!po(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else U(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function _l(...e){const t={};for(let n=0;nke||Ie;let kn,us;{const e=En(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};kn=t("__VUE_INSTANCE_SETTERS__",n=>ke=n),us=t("__VUE_SSR_SETTERS__",n=>Xt=n)}const sn=e=>{const t=ke;return kn(e),e.scope.on(),()=>{e.scope.off(),kn(t)}},Js=()=>{ke&&ke.scope.off(),kn(null)};function To(e){return e.vnode.shapeFlag&4}let Xt=!1;function kl(e,t=!1,n=!1){t&&us(t);const{props:s,children:i}=e.vnode,o=To(e);rl(e,s,o,t),cl(e,i,n||t);const r=o?Cl(e,t):void 0;return t&&us(!1),r}function Cl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kr);const{setup:s}=n;if(s){at();const i=e.setupContext=s.length>1?Tl(e):null,o=sn(e),r=nn(s,e,0,[e.props,i]),l=xi(r);if(ut(),o(),(l||e.sp)&&!Kt(e)&&so(e),l){if(r.then(Js,Js),t)return r.then(a=>{Qs(e,a)}).catch(a=>{Mn(a,e,0)});e.asyncDep=r}else Qs(e,r)}else Eo(e)}function Qs(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=qi(t)),Eo(e)}function Eo(e,t,n){const s=e.type;e.render||(e.render=s.render||Ze);{const i=sn(e);at();try{Wr(e)}finally{ut(),i()}}}const Sl={get(e,t){return ye(e,"get",""),e[t]}};function Tl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sl),slots:e.slots,emit:e.emit,expose:t}}function Nn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qi(hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wt)return Wt[n](e)},has(t,n){return n in t||n in Wt}})):e.proxy}function El(e){return U(e)&&"__vccOpts"in e}const Le=(e,t)=>br(e,t,Xt);function Al(e,t,n){try{xn(-1);const s=arguments.length;return s===2?Y(t)&&!H(t)?wn(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&wn(n)&&(n=[n]),ae(e,t,n))}finally{xn(1)}}const Ml="3.5.31";/** * @vue/runtime-dom v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let cs;const Ys=typeof window<"u"&&window.trustedTypes;if(Ys)try{cs=Ys.createPolicy("vue",{createHTML:e=>e})}catch{}const Ao=cs?e=>cs.createHTML(e):e=>e,Il="http://www.w3.org/2000/svg",Pl="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,Zs=st&&st.createElement("template"),Ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?st.createElementNS(Il,e):t==="mathml"?st.createElementNS(Pl,e):n?st.createElement(e,{is:n}):st.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Zs.innerHTML=Ao(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Zs.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",Dt="animation",en=Symbol("_vtc"),Mo={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},Ll=pe({},Zi,Mo),Bl=e=>(e.displayName="Transition",e.props=Ll,e),fs=Bl((e,{slots:t})=>Al(Or,Rl(e),t)),_t=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Rl(e){const t={};for(const N in e)N in Mo||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:d=r,appearToClass:c=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,E=Nl(i),_=E&&E[0],v=E&&E[1],{onBeforeEnter:O,onEnter:A,onEnterCancelled:I,onLeave:S,onLeaveCancelled:z,onBeforeAppear:ce=O,onAppear:me=A,onAppearCancelled:ve=I}=t,K=(N,ne,he,Re)=>{N._enterCancelled=Re,xt(N,ne?c:l),xt(N,ne?d:r),he&&he()},J=(N,ne)=>{N._isLeaving=!1,xt(N,p),xt(N,b),xt(N,y),ne&&ne()},oe=N=>(ne,he)=>{const Re=N?me:A,fe=()=>K(ne,N,he);_t(Re,[ne,fe]),ei(()=>{xt(ne,N?a:o),nt(ne,N?c:l),Xs(Re)||ti(ne,s,_,fe)})};return pe(t,{onBeforeEnter(N){_t(O,[N]),nt(N,o),nt(N,r)},onBeforeAppear(N){_t(ce,[N]),nt(N,a),nt(N,d)},onEnter:oe(!1),onAppear:oe(!0),onLeave(N,ne){N._isLeaving=!0;const he=()=>J(N,ne);nt(N,p),N._enterCancelled?(nt(N,y),ii(N)):(ii(N),nt(N,y)),ei(()=>{N._isLeaving&&(xt(N,p),nt(N,b),Xs(S)||ti(N,s,v,he))}),_t(S,[N,he])},onEnterCancelled(N){K(N,!1,void 0,!0),_t(I,[N])},onAppearCancelled(N){K(N,!0,void 0,!0),_t(ve,[N])},onLeaveCancelled(N){J(N),_t(z,[N])}})}function Nl(e){if(e==null)return null;if(Y(e))return[Jn(e.enter),Jn(e.leave)];{const t=Jn(e);return[t,t]}}function Jn(e){return Fo(e)}function nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[en]||(e[en]=new Set)).add(t)}function xt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[en];n&&(n.delete(t),n.size||(e[en]=void 0))}function ei(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fl=0;function ti(e,t,n,s){const i=e._endId=++Fl,o=()=>{i===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:l,propCount:a}=Dl(e,t);if(!r)return s();const d=r+"end";let c=0;const p=()=>{e.removeEventListener(d,y),o()},y=b=>{b.target===e&&++c>=a&&p()};setTimeout(()=>{c(n[E]||"").split(", "),i=s(`${dt}Delay`),o=s(`${dt}Duration`),r=ni(i,o),l=s(`${Dt}Delay`),a=s(`${Dt}Duration`),d=ni(l,a);let c=null,p=0,y=0;t===dt?r>0&&(c=dt,p=r,y=o.length):t===Dt?d>0&&(c=Dt,p=d,y=a.length):(p=Math.max(r,d),c=p>0?r>d?dt:Dt:null,y=c?c===dt?o.length:a.length:0);const b=c===dt&&/\b(?:transform|all)(?:,|$)/.test(s(`${dt}Property`).toString());return{type:c,timeout:p,propCount:y,hasTransform:b}}function ni(e,t){for(;e.lengthsi(n)+si(e[s])))}function si(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ii(e){return(e?e.ownerDocument:document).body.offsetHeight}function Vl(e,t,n){const s=e[en];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),Hl=Symbol("_vsh"),jl=Symbol(""),ql=/(?:^|;)\s*display\s*:/;function Ul(e,t,n){const s=e.style,i=ue(n);let o=!1;if(n&&!i){if(t)if(ue(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&pn(s,l,"")}else for(const r in t)n[r]==null&&pn(s,r,"");for(const r in n)r==="display"&&(o=!0),pn(s,r,n[r])}else if(i){if(t!==n){const r=s[jl];r&&(n+=";"+r),s.cssText=n,o=ql.test(n)}}else t&&e.removeAttribute("style");oi in e&&(e[oi]=o?s.display:"",e[Hl]&&(s.display="none"))}const ri=/\s*!important$/;function pn(e,t,n){if(H(n))n.forEach(s=>pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Kl(e,t);ri.test(n)?e.setProperty(St(s),n.replace(ri,""),"important"):e[s]=n}}const li=["Webkit","Moz","ms"],Qn={};function Kl(e,t){const n=Qn[t];if(n)return n;let s=Ne(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=ki(s);for(let i=0;iYn||(Jl.then(()=>Yn=0),Yn=Date.now());function Yl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ve(Zl(s,n.value),t,5,[s])};return n.value=e,n.attached=Ql(),n}function Zl(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xl=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?Vl(e,s,r):t==="style"?Ul(e,n,s):Cn(t)?Sn(t)||zl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ea(e,t,s,r))?(ci(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ui(e,t,s,r,o,t!=="value")):e._isVueCE&&(ta(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(s)))?ci(e,Ne(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ui(e,t,s,r))};function ea(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&hi(t)&&U(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return hi(t)&&ue(n)?!1:t in e}function ta(e,t){const n=e._def.props;if(!n)return!1;const s=Ne(t);return Array.isArray(n)?n.some(i=>Ne(i)===s):Object.keys(n).some(i=>Ne(i)===s)}const pi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>un(t,n):t};function na(e){e.target.composing=!0}function mi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zn=Symbol("_assign");function vi(e,t,n){return t&&(e=e.trim()),n&&(e=ms(e)),e}const Be={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Zn]=pi(i);const o=s||i.props&&i.props.type==="number";At(e,t?"change":"input",r=>{r.target.composing||e[Zn](vi(e.value,n,o))}),(n||o)&&At(e,"change",()=>{e.value=vi(e.value,n,o)}),t||(At(e,"compositionstart",na),At(e,"compositionend",mi),At(e,"change",mi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},r){if(e[Zn]=pi(r),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?ms(e.value):e.value,a=t??"";if(l===a)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===a)||(e.value=a)}},sa=["ctrl","shift","alt","meta"],ia={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)=>sa.some(n=>e[`${n}Key`]&&!t.includes(n))},oa=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...o)=>{for(let r=0;r{const t=la().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=ca(s);if(!i)return;const o=t._component;!U(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,ua(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function ua(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ca(e){return ue(e)?document.querySelector(e):e}const fa={class:"zone-name-overlay",style:{"align-items":"center","text-align":"center"}},da={class:"summary-bar",style:{width:"100%"}},ha={class:"summary-item"},pa={class:"summary-value"},ma={__name:"PurchaseView",props:{shopName:{type:String,default:""},price:{type:Number,default:0}},emits:["purchase"],setup(e){function t(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(n,s)=>(g(),w("div",fa,[s[3]||(s[3]=u("div",{style:{width:"56px",height:"56px","border-radius":"14px",background:"linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02))",border:"1px solid rgba(74, 222, 128, 0.12)",display:"flex","align-items":"center","justify-content":"center","margin-bottom":"4px"}},[u("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#4ade80","stroke-width":"1.5"},[u("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),u("polyline",{points:"9 22 9 12 15 12 15 22"})])],-1)),u("h3",null,R(e.shopName),1),s[4]||(s[4]=u("p",null,"Dieser Shop steht zum Verkauf. Kaufe ihn und werde der Besitzer!",-1)),u("div",da,[u("div",ha,[u("div",pa,"$"+R(t(e.price)),1),s[1]||(s[1]=u("div",{class:"summary-label"},"Kaufpreis",-1))])]),u("button",{class:"shop-btn green",onClick:s[0]||(s[0]=i=>n.$emit("purchase")),style:{width:"100%"}},[...s[2]||(s[2]=[u("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})],-1),He(" Shop kaufen ",-1)])])]))}},va={class:"product-detail"},ga={class:"detail-hero"},ya=["src"],ba={class:"detail-hero-info"},_a={class:"name"},xa={class:"price"},wa={class:"detail-section"},$a={class:"detail-row"},ka={class:"value"},Ca={class:"detail-row"},Sa={class:"value total"},Ta={class:"quantity-section"},Ea={class:"quantity-row"},Aa={class:"quantity-value"},Ma=["max"],Ia={class:"quantity-max"},Pa={__name:"ProductDetail",props:{product:{type:Object,required:!0}},emits:["back","buy"],setup(e,{emit:t}){const n=e,s=t,i=q(1),o=Le(()=>n.product.quantity===-1),r=Le(()=>o.value?100:n.product.quantity);function l(c){return`https://cfx-nui-codem-inventory/html/itemimages/${(c||"example").replace(/\.png$/i,"")}.png`}function a(c){c.target.src.endsWith("example.png")||(c.target.src="./items/example.png")}function d(){s("buy",{itemName:n.product.item_name,quantity:i.value})}return(c,p)=>(g(),w("div",va,[u("button",{class:"back-btn",onClick:p[0]||(p[0]=y=>c.$emit("back"))},[...p[4]||(p[4]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"15 18 9 12 15 6"})],-1),He(" Zurück ",-1)])]),u("div",ga,[u("img",{src:l(e.product.image||e.product.item_name),onError:a,class:"detail-hero-img"},null,40,ya),u("div",ba,[u("div",_a,R(e.product.item_label),1),u("div",xa,"$"+R(e.product.price)+" pro Stück",1)])]),u("div",wa,[u("div",$a,[p[5]||(p[5]=u("span",{class:"label"},"Auf Lager",-1)),u("span",ka,R(o.value?"Unbegrenzt":e.product.quantity+"x"),1)]),u("div",Ca,[p[6]||(p[6]=u("span",{class:"label"},"Gesamt",-1)),u("span",Sa,"$"+R(e.product.price*i.value),1)])]),u("div",Ta,[u("div",Ea,[p[7]||(p[7]=u("span",{class:"quantity-label"},"Menge",-1)),u("button",{class:"qty-btn",onClick:p[1]||(p[1]=y=>i.value=Math.max(1,i.value-1))},"-"),u("span",Aa,R(i.value),1),u("button",{class:"qty-btn",onClick:p[2]||(p[2]=y=>i.value=Math.min(r.value,i.value+1))},"+"),Oe(u("input",{type:"range",class:"shop-slider",min:1,max:r.value,"onUpdate:modelValue":p[3]||(p[3]=y=>i.value=y)},null,8,Ma),[[Be,i.value,void 0,{number:!0}]]),u("span",Ia,"max "+R(r.value),1)])]),u("button",{class:"shop-btn green",onClick:d},[p[8]||(p[8]=u("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"9",cy:"21",r:"1"}),u("circle",{cx:"20",cy:"21",r:"1"}),u("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})],-1)),He(" Kaufen - $"+R(e.product.price*i.value),1)])]))}},Oa={class:"shop-sidebar"},La=["onClick"],Ba={class:"sidebar-icon"},Ra={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Na={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fa={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Da={key:3,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Va={key:4,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ha={key:5,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ja={key:6,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},qa={__name:"CategorySidebar",props:{categories:{type:Array,default:()=>[]},activeCategory:{type:String,default:""}},emits:["select"],setup(e){return(t,n)=>(g(),w("div",Oa,[u("button",{class:lt(["sidebar-btn",{active:e.activeCategory===""}]),onClick:n[0]||(n[0]=s=>t.$emit("select",""))},[...n[1]||(n[1]=[$n(' Alle ',2)])],2),(g(!0),w(le,null,Ae(e.categories,s=>(g(),w("button",{key:s.id,class:lt(["sidebar-btn",{active:e.activeCategory===s.id}]),onClick:i=>t.$emit("select",s.id)},[u("span",Ba,[s.icon==="utensils"?(g(),w("svg",Ra,[...n[2]||(n[2]=[u("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),u("path",{d:"M7 2v20"},null,-1),u("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):s.icon==="package"?(g(),w("svg",Na,[...n[3]||(n[3]=[u("path",{d:"M16.5 9.4l-9-5.19"},null,-1),u("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},null,-1),u("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),u("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):s.icon==="shield"?(g(),w("svg",Fa,[...n[4]||(n[4]=[u("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):s.icon==="crosshairs"?(g(),w("svg",Da,[...n[5]||(n[5]=[$n('',6)])])):s.icon==="pills"?(g(),w("svg",Va,[...n[6]||(n[6]=[u("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),u("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):s.icon==="wrench"?(g(),w("svg",Ha,[...n[7]||(n[7]=[u("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",ja,[...n[8]||(n[8]=[u("circle",{cx:"12",cy:"12",r:"10"},null,-1)])]))]),He(" "+R(s.label),1)],10,La))),128))]))}},Ua={class:"home-grid-container"},Ka={class:"home-grid"},Wa=["onClick"],za={key:0,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Ga={key:1,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1"},Ja={key:2,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Qa={key:3,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Ya={key:4,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Za={key:5,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Xa={key:6,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1"},eu={class:"tile-content"},tu={class:"tile-icon"},nu={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},su={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},iu={key:2,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ou={key:3,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ru={key:4,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},lu={key:5,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},au={key:6,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},uu={class:"tile-label"},cu={key:0,class:"tile-count"},fu={__name:"HomeGrid",props:{categories:{type:Array,default:()=>[]},shelves:{type:Array,default:()=>[]}},emits:["select"],setup(e){const t=e;function n(r){return t.shelves.filter(l=>l.category===r).length}function s(r){const l={};return r.color&&(l["--tile-color"]=r.color,l["--tile-glow"]=r.color+"40"),r.height&&(l["min-height"]=r.height+"px"),l}function i(r){return r.image?{backgroundImage:`url(${r.image})`}:{}}function o(r){const l=r.color||"#f59e0b";return{background:`radial-gradient(ellipse at 70% 30%, ${l}18 0%, transparent 60%), linear-gradient(135deg, ${l}10 0%, rgba(10,10,14,0.95) 100%)`}}return(r,l)=>(g(),w("div",Ua,[u("div",Ka,[(g(!0),w(le,null,Ae(e.categories,a=>(g(),w("div",{key:a.id,class:lt(["category-tile",[a.gridSize||"small",{"has-image":!!a.image}]]),style:pt(s(a)),onClick:d=>r.$emit("select",a.id)},[u("div",{class:"tile-bg",style:pt(i(a))},null,4),a.image?Z("",!0):(g(),w("div",{key:0,class:"tile-gradient",style:pt(o(a))},null,4)),a.image?Z("",!0):(g(),w("div",{key:1,class:"tile-fallback-icon",style:pt({color:a.color||"var(--accent)"})},[a.icon==="utensils"?(g(),w("svg",za,[...l[0]||(l[0]=[u("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),u("path",{d:"M7 2v20"},null,-1),u("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):a.icon==="package"?(g(),w("svg",Ga,[...l[1]||(l[1]=[u("path",{d:"M16.5 9.4l-9-5.19M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"},null,-1),u("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),u("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):a.icon==="shield"?(g(),w("svg",Ja,[...l[2]||(l[2]=[u("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):a.icon==="crosshairs"?(g(),w("svg",Qa,[...l[3]||(l[3]=[$n('',6)])])):a.icon==="pills"?(g(),w("svg",Ya,[...l[4]||(l[4]=[u("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),u("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):a.icon==="wrench"?(g(),w("svg",Za,[...l[5]||(l[5]=[u("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",Xa,[...l[6]||(l[6]=[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)])]))],4)),u("div",eu,[u("div",tu,[a.icon==="utensils"?(g(),w("svg",nu,[...l[7]||(l[7]=[u("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),u("path",{d:"M7 2v20"},null,-1),u("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):a.icon==="package"?(g(),w("svg",su,[...l[8]||(l[8]=[u("path",{d:"M16.5 9.4l-9-5.19M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"},null,-1),u("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),u("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):a.icon==="shield"?(g(),w("svg",iu,[...l[9]||(l[9]=[u("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):a.icon==="crosshairs"?(g(),w("svg",ou,[...l[10]||(l[10]=[$n('',6)])])):a.icon==="pills"?(g(),w("svg",ru,[...l[11]||(l[11]=[u("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),u("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):a.icon==="wrench"?(g(),w("svg",lu,[...l[12]||(l[12]=[u("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",au,[...l[13]||(l[13]=[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)])]))]),u("span",uu,R(a.label),1),n(a.id)>0?(g(),w("span",cu,R(n(a.id)),1)):Z("",!0)])],14,Wa))),128))])]))}},du={class:"customer-view-wrapper"},hu={key:"grid",class:"home-view"},pu={key:"browse",class:"customer-split"},mu={class:"customer-content"},vu={key:1},gu={class:"search-bar"},yu={key:0,class:"product-grid"},bu=["onClick"],_u=["src"],xu={class:"grid-item-name"},wu={class:"grid-item-price"},$u={key:1,class:"empty-state"},ku={__name:"CustomerView",props:{shelves:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]}},emits:["buy"],setup(e){const t=e,n=q(""),s=q(null),i=q(""),o=q(!0);function r(b){i.value=b,s.value=null,o.value=!1}function l(b){i.value=b,s.value=null}function a(){o.value=!0,i.value="",s.value=null,n.value=""}fn(()=>t.categories,()=>{o.value=!0,i.value="",s.value=null,n.value=""});const d=Le(()=>{let b=t.shelves;if(i.value&&(b=b.filter(E=>E.category===i.value)),n.value.trim()){const E=n.value.toLowerCase();b=b.filter(_=>(_.item_label||_.item_name).toLowerCase().includes(E))}return b});function c(b){return`https://cfx-nui-codem-inventory/html/itemimages/${(b||"example").replace(/\.png$/i,"")}.png`}function p(b){b.target.src.endsWith("example.png")||(b.target.src="./items/example.png")}function y(b){b.key==="Escape"&&(s.value?(s.value=null,b.stopPropagation()):o.value||(a(),b.stopPropagation()))}return On(()=>window.addEventListener("keydown",y)),Ln(()=>window.removeEventListener("keydown",y)),(b,E)=>(g(),w("div",du,[ae(fs,{name:"fade",mode:"out-in"},{default:yn(()=>[o.value?(g(),w("div",hu,[ae(fu,{categories:e.categories,shelves:e.shelves,onSelect:r},null,8,["categories","shelves"])])):(g(),w("div",pu,[e.categories.length>0?(g(),xe(qa,{key:0,categories:e.categories,activeCategory:i.value,onSelect:l},null,8,["categories","activeCategory"])):Z("",!0),u("div",mu,[s.value?(g(),xe(Pa,{key:0,product:s.value,onBack:E[0]||(E[0]=_=>s.value=null),onBuy:E[1]||(E[1]=_=>b.$emit("buy",_))},null,8,["product"])):(g(),w("div",vu,[u("button",{class:"back-to-grid-btn",onClick:a},[...E[3]||(E[3]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u("polyline",{points:"15 18 9 12 15 6"})],-1),He(" Zurück ",-1)])]),u("div",gu,[E[4]||(E[4]=u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(u("input",{type:"text","onUpdate:modelValue":E[2]||(E[2]=_=>n.value=_),placeholder:"Produkt suchen..."},null,512),[[Be,n.value]])]),d.value.length?(g(),w("div",yu,[(g(!0),w(le,null,Ae(d.value,_=>(g(),w("div",{key:_.item_name,class:"grid-item",onClick:v=>s.value=_},[u("img",{src:c(_.image||_.item_name),onError:p,class:"grid-item-img"},null,40,_u),u("div",xu,R(_.item_label),1),u("div",wu,"$"+R(_.price),1)],8,bu))),128))])):(g(),w("div",$u,R(n.value?"Kein Produkt gefunden":"Keine Produkte verfügbar"),1))]))])]))]),_:1})]))}},Cu={class:"tab-bar"},Su=["onClick"],Io={__name:"TabBar",props:{tabs:{type:Array,required:!0},activeTab:{type:String,required:!0}},emits:["setTab"],setup(e){return(t,n)=>(g(),w("div",Cu,[(g(!0),w(le,null,Ae(e.tabs,s=>(g(),w("button",{key:s.id,class:lt(["tab-btn",{active:e.activeTab===s.id}]),onClick:i=>t.$emit("setTab",s.id)},R(s.label),11,Su))),128))]))}},Tu={class:"summary-bar",style:{"margin-bottom":"14px"}},Eu={class:"summary-item"},Au={class:"summary-value"},Mu={class:"summary-item"},Iu={class:"summary-value"},Pu={class:"summary-item"},Ou={class:"summary-value"},Lu={key:1,class:"detail-section"},Bu=["src"],Ru={class:"sale-row-info"},Nu={class:"sale-item"},Fu={class:"sale-meta"},Du={class:"sale-total"},Vu={key:2,class:"empty-state"},Hu={__name:"DashboardTab",props:{shop:{type:Object,default:()=>({})},history:{type:Array,default:()=>[]}},emits:["loadHistory"],setup(e,{emit:t}){const n=e,s=t,i=q(!1),o=Le(()=>n.history.reduce((p,y)=>p+(y.total||0),0));function r(){i.value=!0,s("loadHistory")}function l(p){return`https://cfx-nui-codem-inventory/html/itemimages/${(p||"example").replace(/\.png$/i,"")}.png`}function a(p){p.target.src.endsWith("example.png")||(p.target.src="./items/example.png")}function d(p){return p?new Date(p).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}):""}function c(p){return(p||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(p,y)=>(g(),w("div",null,[u("div",Tu,[u("div",Eu,[u("div",Au,"$"+R(c(e.shop.vault_money||0)),1),y[0]||(y[0]=u("div",{class:"summary-label"},"Tresor",-1))]),u("div",Mu,[u("div",Iu,R(e.history.length),1),y[1]||(y[1]=u("div",{class:"summary-label"},"Verkaeufe",-1))]),u("div",Pu,[u("div",Ou,"$"+R(c(o.value)),1),y[2]||(y[2]=u("div",{class:"summary-label"},"Umsatz",-1))])]),y[3]||(y[3]=u("div",{class:"section-title"},[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"12",cy:"12",r:"10"}),u("polyline",{points:"12 6 12 12 16 14"})]),He(" Letzte Verkaeufe ")],-1)),i.value?Z("",!0):(g(),w("button",{key:0,class:"shop-btn ghost small",onClick:r,style:{"margin-bottom":"10px"}}," Verkaeufe laden ")),i.value&&e.history.length?(g(),w("div",Lu,[(g(!0),w(le,null,Ae(e.history.slice(0,10),b=>(g(),w("div",{key:b.id,class:"sale-row"},[u("img",{src:l(b.item_name),onError:a,class:"sale-row-img"},null,40,Bu),u("div",Ru,[u("div",Nu,R(b.quantity)+"x "+R(b.item_label),1),u("div",Fu,R(b.buyer_name)+" · "+R(d(b.sold_at)),1)]),u("div",Du,"$"+R(c(b.total)),1)]))),128))])):Z("",!0),i.value&&!e.history.length?(g(),w("div",Vu,"Noch keine Verkaeufe")):Z("",!0)]))}},ju={class:"summary-bar",style:{"margin-bottom":"10px"}},qu={class:"summary-item"},Uu={class:"summary-value"},Ku={class:"summary-item"},Wu={class:"summary-value"},zu={key:0,class:"order-category-tabs"},Gu=["onClick"],Ju={class:"search-bar"},Qu={key:1,class:"product-list"},Yu=["src"],Zu={class:"listing-card-info"},Xu={class:"listing-name"},ec={class:"listing-meta"},tc={style:{display:"flex","align-items":"center",gap:"6px","flex-shrink":"0"}},nc=["onClick"],sc={class:"quantity-value",style:{"min-width":"22px","font-size":"13px"}},ic=["onClick"],oc={key:2,class:"empty-state"},rc=["disabled"],lc={__name:"OrderTab",props:{defaultItems:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]},vaultMoney:{type:Number,default:0}},emits:["order"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q({}),r=q(""),l=Le(()=>{let v=n.defaultItems;if(r.value&&(v=v.filter(O=>O.category===r.value)),i.value.trim()){const O=i.value.toLowerCase();v=v.filter(A=>A.item_label.toLowerCase().includes(O)||A.item_name.toLowerCase().includes(O))}return v}),a=Le(()=>{let v=0;for(const O of n.defaultItems){const A=o.value[O.item_name]||0;v+=O.price*A}return v});function d(v){return o.value[v]||0}function c(v){o.value[v]=(o.value[v]||0)+1}function p(v){(o.value[v]||0)>0&&o.value[v]--}function y(v){return`https://cfx-nui-codem-inventory/html/itemimages/${(v||"example").replace(/\.png$/i,"")}.png`}function b(v){v.target.src.endsWith("example.png")||(v.target.src="./items/example.png")}function E(v){return v.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}function _(){const v=[];for(const O of n.defaultItems){const A=o.value[O.item_name]||0;A>0&&v.push({name:O.item_name,quantity:A})}v.length!==0&&(s("order",{items:v}),o.value={})}return(v,O)=>(g(),w("div",null,[u("div",ju,[u("div",qu,[u("div",Uu,"$"+R(E(e.vaultMoney)),1),O[2]||(O[2]=u("div",{class:"summary-label"},"Tresor",-1))]),u("div",Ku,[u("div",Wu,"$"+R(E(a.value)),1),O[3]||(O[3]=u("div",{class:"summary-label"},"Warenkorb",-1))])]),e.categories.length>0?(g(),w("div",zu,[u("button",{class:lt(["order-cat-btn",{active:r.value===""}]),onClick:O[0]||(O[0]=A=>r.value="")},"Alle",2),(g(!0),w(le,null,Ae(e.categories,A=>(g(),w("button",{key:A.id,class:lt(["order-cat-btn",{active:r.value===A.id}]),onClick:I=>r.value=A.id},R(A.label),11,Gu))),128))])):Z("",!0),u("div",Ju,[O[4]||(O[4]=u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(u("input",{type:"text","onUpdate:modelValue":O[1]||(O[1]=A=>i.value=A),placeholder:"Item suchen..."},null,512),[[Be,i.value]])]),l.value.length?(g(),w("div",Qu,[(g(!0),w(le,null,Ae(l.value,A=>(g(),w("div",{key:A.item_name,class:"listing-card"},[u("img",{src:y(A.image||A.item_name),onError:b,class:"product-card-img"},null,40,Yu),u("div",Zu,[u("div",Xu,R(A.item_label),1),u("div",ec,"$"+R(A.price)+" / Stück",1)]),u("div",tc,[u("button",{class:"qty-btn",onClick:I=>p(A.item_name)},"-",8,nc),u("span",sc,R(d(A.item_name)),1),u("button",{class:"qty-btn",onClick:I=>c(A.item_name)},"+",8,ic)])]))),128))])):(g(),w("div",oc,R(i.value?"Nichts gefunden":"Keine Items verfügbar"),1)),u("button",{class:"shop-btn",style:{"margin-top":"10px"},disabled:a.value===0||a.value>e.vaultMoney,onClick:_},[O[5]||(O[5]=u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),u("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),u("path",{d:"M16 10a4 4 0 0 1-8 0"})],-1)),He(" "+R(a.value>e.vaultMoney?"Tresor reicht nicht ($"+E(a.value)+")":"Bestellen ($"+E(a.value)+")"),1)],8,rc)]))}},ac={key:0,class:"product-list"},uc=["src"],cc={class:"listing-card-info"},fc={class:"listing-name"},dc={class:"listing-meta"},hc={class:"listing-card-actions"},pc=["onClick"],mc=["onClick"],vc=["onClick"],gc={key:1,class:"empty-state"},yc={key:2,style:{"margin-top":"10px"}},bc={class:"product-list"},_c=["onClick"],xc=["src"],wc={class:"product-card-info"},$c={class:"product-name"},kc={class:"product-meta"},Cc={key:3,class:"detail-section",style:{"margin-top":"10px"}},Sc={class:"quantity-label",style:{"margin-bottom":"6px"}},Tc={style:{display:"flex",gap:"6px","margin-top":"8px"}},Ec={key:4,class:"detail-section",style:{"margin-top":"10px"}},Ac={class:"quantity-label",style:{"margin-bottom":"6px"}},Mc={style:{"margin-bottom":"6px"}},Ic={class:"quantity-section",style:{padding:"0",border:"none","margin-bottom":"6px"}},Pc={class:"quantity-row"},Oc={class:"quantity-value"},Lc={class:"quantity-max"},Bc={style:{display:"flex",gap:"6px"}},Rc=["disabled"],Po={__name:"ShelvesTab",props:{shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]}},emits:["moveToShelves","moveToStorage","updatePrice","removeFromShelves"],setup(e,{emit:t}){const n=t,s=q(null),i=q(0),o=q(null),r=q(100),l=q(1);function a(E){return`https://cfx-nui-codem-inventory/html/itemimages/${(E||"example").replace(/\.png$/i,"")}.png`}function d(E){E.target.src.endsWith("example.png")||(E.target.src="./items/example.png")}function c(E){s.value=E,i.value=E.price,o.value=null}function p(){!s.value||!i.value||(n("updatePrice",{itemName:s.value.item_name,price:i.value}),s.value=null)}function y(E){o.value=E,r.value=100,l.value=1,s.value=null}function b(){!o.value||!r.value||(n("moveToShelves",{itemName:o.value.item_name,quantity:l.value,price:r.value}),o.value=null)}return(E,_)=>(g(),w("div",null,[e.shelves.length?(g(),w("div",ac,[(g(!0),w(le,null,Ae(e.shelves,v=>(g(),w("div",{key:v.item_name,class:"listing-card"},[u("img",{src:a(v.item_name),onError:d,class:"product-card-img"},null,40,uc),u("div",cc,[u("div",fc,R(v.item_label),1),u("div",dc,"$"+R(v.price)+" · "+R(v.quantity)+"x",1)]),u("div",hc,[u("button",{class:"listing-action-btn",onClick:O=>c(v),title:"Preis ändern"},"$",8,pc),u("button",{class:"listing-action-btn",onClick:O=>E.$emit("moveToStorage",{itemName:v.item_name,quantity:v.quantity}),title:"Ins Lager"},[..._[6]||(_[6]=[u("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,mc),u("button",{class:"listing-action-btn danger",onClick:O=>E.$emit("removeFromShelves",{itemName:v.item_name}),title:"Entfernen"},[..._[7]||(_[7]=[u("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"3 6 5 6 21 6"}),u("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})],-1)])],8,vc)])]))),128))])):(g(),w("div",gc,"Keine Items im Regal")),e.storage.length&&!s.value?(g(),w("div",yc,[_[9]||(_[9]=u("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Vom Lager hinzufuegen",-1)),u("div",bc,[(g(!0),w(le,null,Ae(e.storage,v=>(g(),w("div",{key:"s-"+v.item_name,class:"product-card",onClick:O=>y(v)},[u("img",{src:a(v.item_name),onError:d,class:"product-card-img"},null,40,xc),u("div",wc,[u("div",$c,R(v.item_label),1),u("div",kc,R(v.quantity)+"x im Lager",1)]),_[8]||(_[8]=u("svg",{class:"product-card-arrow",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"9 18 15 12 9 6"})],-1))],8,_c))),128))])])):Z("",!0),s.value?(g(),w("div",Cc,[u("div",Sc,"Neuer Preis für "+R(s.value.item_label),1),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":_[0]||(_[0]=v=>i.value=v),min:"1",max:"9999999"},null,512),[[Be,i.value,void 0,{number:!0}]]),u("div",Tc,[u("button",{class:"shop-btn small",onClick:p},"Speichern"),u("button",{class:"shop-btn small red",onClick:_[1]||(_[1]=v=>s.value=null)},"Abbrechen")])])):Z("",!0),o.value?(g(),w("div",Ec,[u("div",Ac,R(o.value.item_label)+" auf Regal stellen",1),u("div",Mc,[_[10]||(_[10]=u("div",{class:"quantity-label",style:{"margin-bottom":"4px"}},"Preis ($)",-1)),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":_[2]||(_[2]=v=>r.value=v),min:"1",max:"9999999"},null,512),[[Be,r.value,void 0,{number:!0}]])]),u("div",Ic,[u("div",Pc,[_[11]||(_[11]=u("span",{class:"quantity-label"},"Menge",-1)),u("button",{class:"qty-btn",onClick:_[3]||(_[3]=v=>l.value=Math.max(1,l.value-1))},"-"),u("span",Oc,R(l.value),1),u("button",{class:"qty-btn",onClick:_[4]||(_[4]=v=>l.value=Math.min(o.value.quantity,l.value+1))},"+"),u("span",Lc,"max "+R(o.value.quantity),1)])]),u("div",Bc,[u("button",{class:"shop-btn small",disabled:!r.value||r.value<1,onClick:b},"Einstellen",8,Rc),u("button",{class:"shop-btn small red",onClick:_[5]||(_[5]=v=>o.value=null)},"Abbrechen")])])):Z("",!0)]))}},Nc={key:0,class:"product-list"},Fc=["src"],Dc={class:"listing-card-info"},Vc={class:"listing-name"},Hc={class:"listing-meta"},jc={key:0,class:"listing-card-actions"},qc=["onClick"],Uc={key:1,class:"empty-state"},Kc={key:2,style:{"margin-top":"10px"}},Wc={key:1},zc={class:"search-bar"},Gc={key:0,class:"product-list scrollable-list"},Jc=["onClick"],Qc=["src"],Yc={class:"product-card-info"},Zc={class:"product-name"},Xc={class:"product-meta"},ef={key:1,class:"empty-state"},tf={key:3,class:"detail-section",style:{"margin-top":"10px"}},nf={class:"quantity-label",style:{"margin-bottom":"6px"}},sf={class:"quantity-section",style:{padding:"0",border:"none"}},of={class:"quantity-row"},rf={class:"quantity-value"},lf={class:"quantity-max"},af={style:{display:"flex",gap:"6px","margin-top":"8px"}},uf={key:4,class:"detail-section",style:{"margin-top":"10px"}},cf={class:"quantity-label",style:{"margin-bottom":"6px"}},ff={style:{"margin-bottom":"6px"}},df={class:"quantity-section",style:{padding:"0",border:"none","margin-bottom":"6px"}},hf={class:"quantity-row"},pf={class:"quantity-value"},mf={class:"quantity-max"},vf={style:{display:"flex",gap:"6px"}},gf=["disabled"],Oo={__name:"StorageTab",props:{storage:{type:Array,default:()=>[]},playerItems:{type:Array,default:()=>[]},viewOnly:{type:Boolean,default:!1}},emits:["addToStorage","moveToShelves"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q(!1),r=q(null),l=q(1),a=q(null),d=q(100),c=q(1),p=Le(()=>{const A=n.playerItems.filter(S=>S.amount>0);if(!i.value.trim())return A;const I=i.value.toLowerCase();return A.filter(S=>(S.label||S.name).toLowerCase().includes(I))});function y(A){return`https://cfx-nui-codem-inventory/html/itemimages/${(A||"example").replace(/\.png$/i,"")}.png`}function b(A){A.target.src.endsWith("example.png")||(A.target.src="./items/example.png")}function E(A){r.value=A,l.value=1,o.value=!1}function _(){r.value&&(s("addToStorage",{itemName:r.value.name,itemLabel:r.value.label,quantity:l.value}),r.value=null)}function v(A){a.value=A,d.value=100,c.value=1}function O(){!a.value||!d.value||(s("moveToShelves",{itemName:a.value.item_name,quantity:c.value,price:d.value}),a.value=null)}return(A,I)=>(g(),w("div",null,[e.storage.length?(g(),w("div",Nc,[(g(!0),w(le,null,Ae(e.storage,S=>(g(),w("div",{key:S.item_name,class:"listing-card"},[u("img",{src:y(S.item_name),onError:b,class:"product-card-img"},null,40,Fc),u("div",Dc,[u("div",Vc,R(S.item_label),1),u("div",Hc,R(S.quantity)+"x eingelagert",1)]),e.viewOnly?Z("",!0):(g(),w("div",jc,[u("button",{class:"listing-action-btn",onClick:z=>v(S),title:"Auf Regal stellen"},[...I[10]||(I[10]=[u("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,qc)]))]))),128))])):(g(),w("div",Uc,"Lager ist leer")),!e.viewOnly&&!a.value?(g(),w("div",Kc,[o.value?Z("",!0):(g(),w("button",{key:0,class:"create-zone-btn",onClick:I[0]||(I[0]=S=>o.value=!0)},[...I[11]||(I[11]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M12 5v14M5 12h14"})],-1),He(" Aus Inventar einlagern ",-1)])])),o.value?(g(),w("div",Wc,[u("div",zc,[I[12]||(I[12]=u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(u("input",{type:"text","onUpdate:modelValue":I[1]||(I[1]=S=>i.value=S),placeholder:"Item suchen..."},null,512),[[Be,i.value]])]),p.value.length?(g(),w("div",Gc,[(g(!0),w(le,null,Ae(p.value,S=>(g(),w("div",{key:S.name,class:"product-card",onClick:z=>E(S)},[u("img",{src:y(S.name),onError:b,class:"product-card-img"},null,40,Qc),u("div",Yc,[u("div",Zc,R(S.label),1),u("div",Xc,R(S.amount)+"x vorhanden",1)]),I[13]||(I[13]=u("svg",{class:"product-card-arrow",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"9 18 15 12 9 6"})],-1))],8,Jc))),128))])):(g(),w("div",ef,R(i.value?"Nichts gefunden":"Inventar leer"),1)),u("button",{class:"shop-btn small red",onClick:I[2]||(I[2]=S=>o.value=!1),style:{"margin-top":"6px"}},"Schliessen")])):Z("",!0)])):Z("",!0),r.value?(g(),w("div",tf,[u("div",nf,R(r.value.label)+" einlagern",1),u("div",sf,[u("div",of,[I[14]||(I[14]=u("span",{class:"quantity-label"},"Menge",-1)),u("button",{class:"qty-btn",onClick:I[3]||(I[3]=S=>l.value=Math.max(1,l.value-1))},"-"),u("span",rf,R(l.value),1),u("button",{class:"qty-btn",onClick:I[4]||(I[4]=S=>l.value=Math.min(r.value.amount,l.value+1))},"+"),u("span",lf,"max "+R(r.value.amount),1)])]),u("div",af,[u("button",{class:"shop-btn small",onClick:_},"Einlagern"),u("button",{class:"shop-btn small red",onClick:I[5]||(I[5]=S=>r.value=null)},"Abbrechen")])])):Z("",!0),a.value?(g(),w("div",uf,[u("div",cf,R(a.value.item_label)+" auf Regal stellen",1),u("div",ff,[I[15]||(I[15]=u("div",{class:"quantity-label",style:{"margin-bottom":"4px"}},"Preis ($)",-1)),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":I[6]||(I[6]=S=>d.value=S),min:"1",max:"9999999"},null,512),[[Be,d.value,void 0,{number:!0}]])]),u("div",df,[u("div",hf,[I[16]||(I[16]=u("span",{class:"quantity-label"},"Menge",-1)),u("button",{class:"qty-btn",onClick:I[7]||(I[7]=S=>c.value=Math.max(1,c.value-1))},"-"),u("span",pf,R(c.value),1),u("button",{class:"qty-btn",onClick:I[8]||(I[8]=S=>c.value=Math.min(a.value.quantity,c.value+1))},"+"),u("span",mf,"max "+R(a.value.quantity),1)])]),u("div",vf,[u("button",{class:"shop-btn small",disabled:!d.value,onClick:O},"Einstellen",8,gf),u("button",{class:"shop-btn small red",onClick:I[9]||(I[9]=S=>a.value=null)},"Abbrechen")])])):Z("",!0)]))}},yf={class:"summary-bar",style:{"margin-bottom":"16px"}},bf={class:"summary-item"},_f={class:"summary-value"},xf={class:"detail-section",style:{"margin-bottom":"16px"}},wf=["max"],$f={style:{display:"flex",gap:"6px","margin-top":"10px"}},kf=["disabled"],Cf={key:0,class:"product-list"},Sf=["src"],Tf={class:"listing-card-info"},Ef={class:"listing-name"},Af={class:"listing-meta"},Mf={key:1,class:"empty-state"},If={__name:"VaultTab",props:{shop:{type:Object,default:()=>({})},storage:{type:Array,default:()=>[]}},emits:["withdraw"],setup(e,{emit:t}){const n=t,s=q(0);function i(){!s.value||s.value<1||(n("withdraw",{amount:s.value}),s.value=0)}function o(a){return`https://cfx-nui-codem-inventory/html/itemimages/${(a||"example").replace(/\.png$/i,"")}.png`}function r(a){a.target.src.endsWith("example.png")||(a.target.src="./items/example.png")}function l(a){return(a||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(a,d)=>(g(),w("div",null,[u("div",yf,[u("div",bf,[u("div",_f,"$"+R(l(e.shop.vault_money||0)),1),d[2]||(d[2]=u("div",{class:"summary-label"},"Tresor Guthaben",-1))])]),d[3]||(d[3]=u("div",{class:"section-title"},[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]),He(" Geld abheben ")],-1)),u("div",xf,[Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":d[0]||(d[0]=c=>s.value=c),max:e.shop.vault_money||0,min:"1",placeholder:"Betrag eingeben..."},null,8,wf),[[Be,s.value,void 0,{number:!0}]]),u("div",$f,[u("button",{class:"shop-btn small",disabled:!s.value||s.value<1||s.value>(e.shop.vault_money||0),onClick:i}," $"+R(l(s.value||0))+" abheben ",9,kf),u("button",{class:"shop-btn small ghost",onClick:d[1]||(d[1]=c=>s.value=e.shop.vault_money||0)},"Alles")])]),d[4]||(d[4]=u("div",{class:"section-title"},[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})]),He(" Lager Uebersicht ")],-1)),e.storage.length?(g(),w("div",Cf,[(g(!0),w(le,null,Ae(e.storage,c=>(g(),w("div",{key:c.item_name,class:"listing-card"},[u("img",{src:o(c.item_name),onError:r,class:"product-card-img"},null,40,Sf),u("div",Tf,[u("div",Ef,R(c.item_label),1),u("div",Af,R(c.quantity)+"x eingelagert",1)])]))),128))])):(g(),w("div",Mf,"Lager ist leer"))]))}},Pf={key:0,class:"product-list"},Of={class:"listing-card-info"},Lf={class:"listing-name"},Bf={class:"listing-meta"},Rf={class:"listing-card-actions"},Nf=["onClick"],Ff={key:1,class:"empty-state"},Df={class:"detail-section",style:{"margin-top":"10px"}},Vf=["disabled"],Hf={__name:"EmployeesTab",props:{employees:{type:Array,default:()=>[]}},emits:["addEmployee","removeEmployee"],setup(e,{emit:t}){const n=t,s=q(null);function i(){s.value&&(n("addEmployee",{serverId:s.value}),s.value=null)}return(o,r)=>(g(),w("div",null,[e.employees.length?(g(),w("div",Pf,[(g(!0),w(le,null,Ae(e.employees,l=>(g(),w("div",{key:l.identifier,class:"listing-card"},[r[2]||(r[2]=u("div",{class:"emp-avatar"},[u("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),u("circle",{cx:"12",cy:"7",r:"4"})])],-1)),u("div",Of,[u("div",Lf,R(l.name),1),u("div",Bf,R(l.identifier),1)]),u("div",Rf,[u("button",{class:"listing-action-btn danger",onClick:a=>o.$emit("removeEmployee",{identifier:l.identifier}),title:"Entlassen"},[...r[1]||(r[1]=[u("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"3 6 5 6 21 6"}),u("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})],-1)])],8,Nf)])]))),128))])):(g(),w("div",Ff,"Keine Mitarbeiter")),u("div",Df,[r[3]||(r[3]=u("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Mitarbeiter hinzufuegen",-1)),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":r[0]||(r[0]=l=>s.value=l),placeholder:"Spieler Server-ID...",min:"1"},null,512),[[Be,s.value,void 0,{number:!0}]]),u("button",{class:"shop-btn small",disabled:!s.value,onClick:i,style:{"margin-top":"8px"}}," Einstellen ",8,Vf)])]))}},jf={class:"confirm-box"},qf={class:"confirm-actions"},yi={__name:"ConfirmModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"Bestaetigung"},message:{type:String,default:"Bist du sicher?"}},emits:["confirm","cancel"],setup(e){return(t,n)=>e.visible?(g(),w("div",{key:0,class:"confirm-overlay",onClick:n[2]||(n[2]=oa(s=>t.$emit("cancel"),["self"]))},[u("div",jf,[u("h3",null,R(e.title),1),u("p",null,R(e.message),1),u("div",qf,[u("button",{class:"shop-btn small red",onClick:n[0]||(n[0]=s=>t.$emit("cancel"))},"Abbrechen"),u("button",{class:"shop-btn small",onClick:n[1]||(n[1]=s=>t.$emit("confirm"))},"Bestätigen")])])])):Z("",!0)}},Uf={class:"detail-section",style:{"margin-bottom":"14px"}},Kf=["disabled"],Wf={class:"detail-section",style:{"margin-bottom":"14px"}},zf=["disabled"],Gf={class:"detail-section"},Jf={style:{"font-size":"12px",color:"#71717a","margin-bottom":"8px"}},Qf={__name:"SettingsTab",props:{shop:{type:Object,default:()=>({})}},emits:["rename","sellToPlayer","sellToServer"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q(null),r=q(null),l=q(!1),a=q(!1),d=Le(()=>n.shop.sell_back_percentage||.7),c=Le(()=>Math.round(d.value*100)),p=Le(()=>Math.floor((n.shop.config_price||0)*d.value));function y(){const _=i.value.trim();_.length<2||(s("rename",{name:_}),i.value="")}function b(){l.value=!1,s("sellToPlayer",{serverId:o.value,price:r.value})}function E(){a.value=!1,s("sellToServer")}return(_,v)=>(g(),w("div",null,[u("div",Uf,[v[7]||(v[7]=u("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Shop Name",-1)),Oe(u("input",{type:"text",class:"text-input","onUpdate:modelValue":v[0]||(v[0]=O=>i.value=O),maxlength:"50",placeholder:"Neuer Name..."},null,512),[[Be,i.value]]),u("button",{class:"shop-btn small",disabled:!i.value.trim()||i.value.trim().length<2,onClick:y,style:{"margin-top":"8px"}}," Umbenennen ",8,Kf)]),u("div",Wf,[v[8]||(v[8]=u("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"An Spieler verkaufen",-1)),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":v[1]||(v[1]=O=>o.value=O),placeholder:"Spieler Server-ID...",min:"1",style:{"margin-bottom":"6px"}},null,512),[[Be,o.value,void 0,{number:!0}]]),Oe(u("input",{type:"number",class:"price-input","onUpdate:modelValue":v[2]||(v[2]=O=>r.value=O),placeholder:"Verkaufspreis ($)...",min:"1"},null,512),[[Be,r.value,void 0,{number:!0}]]),u("button",{class:"shop-btn small",disabled:!o.value||!r.value||r.value<1,onClick:v[3]||(v[3]=O=>l.value=!0),style:{"margin-top":"8px"}}," Verkaufen für$"+R(r.value||0),9,zf)]),u("div",Gf,[v[9]||(v[9]=u("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"An Server zurückgeben",-1)),u("p",Jf," Du erhältst $"+R(p.value)+" ("+R(c.value)+"% vom Kaufpreis) + Tresor-Guthaben. Alle Lager- und Regal-Items werden dir zurückgegeben. ",1),u("button",{class:"shop-btn small red",onClick:v[4]||(v[4]=O=>a.value=!0)}," An Server verkaufen ")]),ae(yi,{visible:l.value,title:"Shop verkaufen",message:"Wirklich an Spieler ID "+o.value+" verkaufen für$"+(r.value||0)+"?",onConfirm:b,onCancel:v[5]||(v[5]=O=>l.value=!1)},null,8,["visible","message"]),ae(yi,{visible:a.value,title:"An Server verkaufen",message:"Wirklich den Shop für$"+p.value+" an den Server zurückgeben? Alle Mitarbeiter werden entlassen.",onConfirm:E,onCancel:v[6]||(v[6]=O=>a.value=!1)},null,8,["visible","message"])]))}},Yf={style:{flex:"1",display:"flex","flex-direction":"column","min-height":"0",overflow:"hidden"}},Zf={class:"shop-body"},Xf={__name:"OwnerView",props:{shop:{type:Object,default:()=>({})},shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]},employees:{type:Array,default:()=>[]},playerItems:{type:Array,default:()=>[]},history:{type:Array,default:()=>[]},defaultItems:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]}},emits:["moveToShelves","moveToStorage","updatePrice","removeFromShelves","addToStorage","withdraw","addEmployee","removeEmployee","rename","sellToPlayer","sellToServer","loadHistory","order"],setup(e){const t=q("dashboard"),n=[{id:"dashboard",label:"Dashboard"},{id:"order",label:"Nachbestellen"},{id:"shelves",label:"Regale"},{id:"storage",label:"Lager"},{id:"vault",label:"Tresor"},{id:"employees",label:"Mitarbeiter"},{id:"settings",label:"Einstellungen"}];return(s,i)=>(g(),w("div",Yf,[ae(Io,{tabs:n,activeTab:t.value,onSetTab:i[0]||(i[0]=o=>t.value=o)},null,8,["activeTab"]),u("div",Zf,[t.value==="dashboard"?(g(),xe(Hu,{key:0,shop:e.shop,history:e.history,onLoadHistory:i[1]||(i[1]=o=>s.$emit("loadHistory"))},null,8,["shop","history"])):Z("",!0),t.value==="order"?(g(),xe(lc,{key:1,defaultItems:e.defaultItems,categories:e.categories,vaultMoney:e.shop.vault_money||0,onOrder:i[2]||(i[2]=o=>s.$emit("order",o))},null,8,["defaultItems","categories","vaultMoney"])):Z("",!0),t.value==="shelves"?(g(),xe(Po,{key:2,shelves:e.shelves,storage:e.storage,onMoveToShelves:i[3]||(i[3]=o=>s.$emit("moveToShelves",o)),onMoveToStorage:i[4]||(i[4]=o=>s.$emit("moveToStorage",o)),onUpdatePrice:i[5]||(i[5]=o=>s.$emit("updatePrice",o)),onRemoveFromShelves:i[6]||(i[6]=o=>s.$emit("removeFromShelves",o))},null,8,["shelves","storage"])):Z("",!0),t.value==="storage"?(g(),xe(Oo,{key:3,storage:e.storage,playerItems:e.playerItems,onAddToStorage:i[7]||(i[7]=o=>s.$emit("addToStorage",o)),onMoveToShelves:i[8]||(i[8]=o=>s.$emit("moveToShelves",o))},null,8,["storage","playerItems"])):Z("",!0),t.value==="vault"?(g(),xe(If,{key:4,shop:e.shop,storage:e.storage,onWithdraw:i[9]||(i[9]=o=>s.$emit("withdraw",o))},null,8,["shop","storage"])):Z("",!0),t.value==="employees"?(g(),xe(Hf,{key:5,employees:e.employees,onAddEmployee:i[10]||(i[10]=o=>s.$emit("addEmployee",o)),onRemoveEmployee:i[11]||(i[11]=o=>s.$emit("removeEmployee",o))},null,8,["employees"])):Z("",!0),t.value==="settings"?(g(),xe(Qf,{key:6,shop:e.shop,onRename:i[12]||(i[12]=o=>s.$emit("rename",o)),onSellToPlayer:i[13]||(i[13]=o=>s.$emit("sellToPlayer",o)),onSellToServer:i[14]||(i[14]=o=>s.$emit("sellToServer"))},null,8,["shop"])):Z("",!0)])]))}},ed={class:"shop-body"},td={__name:"EmployeeView",props:{shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]}},emits:["moveToShelves"],setup(e){const t=q("shelves"),n=[{id:"shelves",label:"Regale"},{id:"storage",label:"Lager"}];return(s,i)=>(g(),w("div",null,[ae(Io,{tabs:n,activeTab:t.value,onSetTab:i[0]||(i[0]=o=>t.value=o)},null,8,["activeTab"]),u("div",ed,[t.value==="shelves"?(g(),xe(Po,{key:0,shelves:e.shelves,storage:e.storage,onMoveToShelves:i[1]||(i[1]=o=>s.$emit("moveToShelves",o))},null,8,["shelves","storage"])):Z("",!0),t.value==="storage"?(g(),xe(Oo,{key:1,storage:e.storage,playerItems:[],viewOnly:!0},null,8,["storage"])):Z("",!0)])]))}},nd={class:"shop-header"},sd={class:"header-left"},id={key:"purchase",class:"shop-body"},od={key:"customer",class:"shop-body-split"},rd={__name:"App",setup(e){const t=q(!1),n=q(""),s=q(""),i=q(""),o=q(0),r=q({}),l=q([]),a=q([]),d=q([]),c=q([]),p=q([]),y=q([]),b=q([]),E=q({});function _(){return window.GetParentResourceName?window.GetParentResourceName():"mercyv-shops"}function v(B,F={}){return fetch(`https://${_()}/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)})}const O=Le(()=>{const B=E.value,F={};return B.accent&&(F["--accent"]=B.accent,F["--accent-dim"]=A(B.accent,.12),F["--accent-subtle"]=A(B.accent,.05),F["--border-accent"]=A(B.accent,.15)),B.accentLight&&(F["--accent-light"]=B.accentLight),B.surfaceBase&&(F["--surface-base"]=B.surfaceBase),B.gridTileHeight&&(F["--grid-tile-height"]=B.gridTileHeight+"px"),F});function A(B,F){if(!B||!B.startsWith("#"))return B;const Fn=parseInt(B.slice(1,3),16),Dn=parseInt(B.slice(3,5),16),gt=parseInt(B.slice(5,7),16);return`rgba(${Fn}, ${Dn}, ${gt}, ${F})`}function I(B){B.theme&&(E.value=B.theme),B.categories&&(b.value=B.categories)}function S(){t.value=!1,v("close")}function z(){v("purchaseShop",{shopId:s.value})}function ce(B){v("buyProduct",B)}function me(B){v("addToStorage",B)}function ve(B){v("moveToShelves",B)}function K(B){v("moveToStorage",B)}function J(B){v("updateShelfPrice",B)}function oe(B){v("removeFromShelves",B)}function N(B){v("withdrawVault",B)}function ne(B){v("addEmployee",B)}function he(B){v("removeEmployee",B)}function Re(B){v("renameShop",B)}function fe(B){v("sellToPlayer",B)}function re(){v("sellToServer")}function X(){v("getHistory")}function et(B){v("orderItems",B)}function vt(B){const F=B.data;switch(F.type){case"openPurchase":t.value=!0,n.value="purchase",s.value=F.shopId||"",i.value=F.shopName||"Shop",o.value=F.price||0,I(F);break;case"openCustomer":t.value=!0,n.value="customer",s.value=F.shopId||"",i.value=F.shopName||"Shop",l.value=F.shelves||[],I(F);break;case"openOwner":t.value=!0,n.value="owner",s.value=F.shopId||"",r.value=F.shop||{},i.value=F.shop&&F.shop.shop_name||"Shop",l.value=F.shelves||[],a.value=F.storage||[],d.value=F.employees||[],c.value=F.playerItems||[],p.value=[],y.value=F.defaultItems||[],I(F);break;case"openEmployee":t.value=!0,n.value="employee",s.value=F.shopId||"",r.value=F.shop||{},i.value=F.shop&&F.shop.shop_name||"Shop",l.value=F.shelves||[],a.value=F.storage||[],I(F);break;case"close":t.value=!1;break;case"updateShelves":l.value=F.shelves||[];break;case"updateHistory":p.value=F.history||[];break;case"refreshAll":F.shop&&(r.value=F.shop,i.value=F.shop.shop_name||i.value),F.shelves&&(l.value=F.shelves),F.storage&&(a.value=F.storage),F.employees&&(d.value=F.employees);break}}function je(B){B.key==="Escape"&&t.value&&S()}return On(()=>{window.addEventListener("message",vt),window.addEventListener("keydown",je)}),Ln(()=>{window.removeEventListener("message",vt),window.removeEventListener("keydown",je)}),(B,F)=>(g(),xe(fs,{name:"overlay"},{default:yn(()=>[t.value?(g(),w("div",{key:0,class:"shop-overlay",style:pt(O.value)},[u("div",nd,[u("div",sd,[F[0]||(F[0]=u("div",{class:"header-icon"},[u("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[u("path",{d:"M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z"}),u("polyline",{points:"9 22 9 12 15 12 15 22"})])],-1)),u("h2",null,R(i.value),1)]),u("button",{class:"close-btn",onClick:S},[...F[1]||(F[1]=[u("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[u("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])]),ae(fs,{name:"fade",mode:"out-in"},{default:yn(()=>[n.value==="purchase"?(g(),w("div",id,[ae(ma,{shopName:i.value,price:o.value,onPurchase:z},null,8,["shopName","price"])])):n.value==="customer"?(g(),w("div",od,[ae(ku,{shelves:l.value,categories:b.value,onBuy:ce},null,8,["shelves","categories"])])):n.value==="owner"?(g(),xe(Xf,{key:"owner",shop:r.value,shelves:l.value,storage:a.value,employees:d.value,playerItems:c.value,history:p.value,defaultItems:y.value,categories:b.value,onMoveToShelves:ve,onMoveToStorage:K,onUpdatePrice:J,onRemoveFromShelves:oe,onAddToStorage:me,onWithdraw:N,onAddEmployee:ne,onRemoveEmployee:he,onRename:Re,onSellToPlayer:fe,onSellToServer:re,onLoadHistory:X,onOrder:et},null,8,["shop","shelves","storage","employees","playerItems","history","defaultItems","categories"])):n.value==="employee"?(g(),xe(td,{key:"employee",shelves:l.value,storage:a.value,onMoveToShelves:ve},null,8,["shelves","storage"])):Z("",!0)]),_:1})],4)):Z("",!0)]),_:1}))}};aa(rd).mount("#app");