import{e as H,r as M,m as V,b as G,i as x,d as B,f as $,g as T,o as tt,t as et}from"./vendor-vue-reactivity-CheHbvBM.js";import{C as st,D as nt,w as ot,n as ct,e as rt}from"./vendor-vue-runtime-core-DwK6Ry68.js";/*!
 * pinia v3.0.1
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */let J;const E=t=>J=t,K=Symbol();function k(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var w;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(w||(w={}));function St(){const t=H(!0),c=t.run(()=>M({}));let s=[],e=[];const a=V({install(r){E(a),a._a=r,r.provide(K,a),r.config.globalProperties.$pinia=a,e.forEach(u=>s.push(u)),e=[]},use(r){return this._a?s.push(r):e.push(r),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return a}const q=()=>{};function A(t,c,s,e=q){t.push(c);const a=()=>{const r=t.indexOf(c);r>-1&&(t.splice(r,1),e())};return!s&&T()&&tt(a),a}function C(t,...c){t.slice().forEach(s=>{s(...c)})}const ut=t=>t(),D=Symbol(),I=Symbol();function L(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],a=t[s];k(a)&&k(e)&&t.hasOwnProperty(s)&&!x(e)&&!B(e)?t[s]=L(a,e):t[s]=e}return t}const at=Symbol();function ft(t){return!k(t)||!t.hasOwnProperty(at)}const{assign:h}=Object;function it(t){return!!(x(t)&&t.effect)}function lt(t,c,s,e){const{state:a,actions:r,getters:u}=c,P=s.state.value[t];let y;function b(){P||(s.state.value[t]=a?a():{});const S=et(s.state.value[t]);return h(S,r,Object.keys(u||{}).reduce((v,m)=>(v[m]=V(rt(()=>{E(s);const _=s._s.get(t);return u[m].call(_,_)})),v),{}))}return y=z(t,b,c,s,e,!0),y}function z(t,c,s={},e,a,r){let u;const P=h({actions:{}},s),y={deep:!0};let b,S,v=[],m=[],_;const d=e.state.value[t];!r&&!d&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:w.patchFunction,storeId:t,events:_}):(L(e.state.value[t],o),n={type:w.patchObject,payload:o,storeId:t,events:_});const f=W=Symbol();ct().then(()=>{W===f&&(b=!0)}),S=!0,C(v,n,e.state.value[t])}const Q=r?function(){const{state:n}=s,f=n?n():{};this.$patch(j=>{h(j,f)})}:q;function U(){u.stop(),v=[],m=[],e._s.delete(t)}const F=(o,n="")=>{if(D in o)return o[I]=n,o;const f=function(){E(e);const j=Array.from(arguments),O=[],R=[];function Y(i){O.push(i)}function Z(i){R.push(i)}C(m,{args:j,name:f[I],store:l,after:Y,onError:Z});let g;try{g=o.apply(this&&this.$id===t?this:l,j)}catch(i){throw C(R,i),i}return g instanceof Promise?g.then(i=>(C(O,i),i)).catch(i=>(C(R,i),Promise.reject(i))):(C(O,g),g)};return f[D]=!0,f[I]=n,f},X={_p:e,$id:t,$onAction:A.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const f=A(v,o,n.detached,()=>j()),j=u.run(()=>ot(()=>e.state.value[t],O=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:w.direct,events:_},O)},h({},y,n)));return f},$dispose:U},l=G(X);e._s.set(t,l);const p=(e._a&&e._a.runWithContext||ut)(()=>e._e.run(()=>(u=H()).run(()=>c({action:F}))));for(const o in p){const n=p[o];if(x(n)&&!it(n)||B(n))r||(d&&ft(n)&&(x(n)?n.value=d[o]:L(n,d[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const f=F(n,o);p[o]=f,P.actions[o]=n}}return h(l,p),h($(l),p),Object.defineProperty(l,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{h(n,o)})}}),e._p.forEach(o=>{h(l,u.run(()=>o({store:l,app:e._a,pinia:e,options:P})))}),d&&r&&s.hydrate&&s.hydrate(l.$state,d),b=!0,S=!0,l}/*! #__NO_SIDE_EFFECTS__ */function vt(t,c,s){let e;const a=typeof c=="function";e=a?s:c;function r(u,P){const y=nt();return u=u||(y?st(K,null):null),u&&E(u),u=J,u._s.has(t)||(a?z(t,c,e,u):lt(t,e,u)),u._s.get(t)}return r.$id=t,r}export{St as c,vt as d};
//# sourceMappingURL=vendor-pinia-BSPefQhS.js.map
