import{an as t,e,am as n,aw as s,a as o,f as a,z as c,b as r,ax as i,ac as u,g as f,b as p,n as l,_ as h,j as d}from"./@vue-7f120f92.js"; /*! * pinia v2.1.7 * (c) 2023 eduardo san martin morote * @license mit */ let y;const v=t=>y=t,b=symbol();function _(t){return t&&"object"==typeof t&&"[object object]"===object.prototype.tostring.call(t)&&"function"!=typeof t.tojson}var j,o;function $(){const s=t(!0),o=s.run((()=>e({})));let a=[],c=[];const r=n({install(t){v(r),r._a=t,t.provide(b,r),t.config.globalproperties.$pinia=r,c.foreach((t=>a.push(t))),c=[]},use(t){return this._a?a.push(t):c.push(t),this},_p:a,_a:null,_e:s,_s:new map,state:o});return r}(o=j||(j={})).direct="direct",o.patchobject="patch object",o.patchfunction="patch function";const g=()=>{};function m(t,e,n,s=g){t.push(e);const o=()=>{const n=t.indexof(e);n>-1&&(t.splice(n,1),s())};return!n&&f()&&p(o),o}function p(t,...e){t.slice().foreach((t=>{t(...e)}))}const s=t=>t();function w(t,e){t instanceof map&&e instanceof map&&e.foreach(((e,n)=>t.set(n,e))),t instanceof set&&e instanceof set&&e.foreach(t.add,t);for(const n in e){if(!e.hasownproperty(n))continue;const s=e[n],o=t[n];_(o)&&_(s)&&t.hasownproperty(n)&&!r(s)&&!i(s)?t[n]=w(o,s):t[n]=s}return t}const e=symbol();const{assign:x}=object;function a(n,s,o={},f,p,h){let d;const y=x({actions:{}},o),b={deep:!0};let o,$,a,i=[],m=[];const f=f.state.value[n];let k;function b(t){let e;o=$=!1,"function"==typeof t?(t(f.state.value[n]),e={type:j.patchfunction,storeid:n,events:a}):(w(f.state.value[n],t),e={type:j.patchobject,payload:t,storeid:n,events:a});const s=k=symbol();l().then((()=>{k===s&&(o=!0)})),$=!0,p(i,e,f.state.value[n])}h||f||(f.state.value[n]={}),e({});const c=h?function(){const{state:t}=o,e=t?t():{};this.$patch((t=>{x(t,e)}))}:g;function j(t,e){return function(){v(f);const s=array.from(arguments),o=[],a=[];let c;p(m,{args:s,name:t,store:w,after:function(t){o.push(t)},onerror:function(t){a.push(t)}});try{c=e.apply(this&&this.$id===n?this:w,s)}catch(r){throw p(a,r),r}return c instanceof promise?c.then((t=>(p(o,t),t))).catch((t=>(p(a,t),promise.reject(t)))):(p(o,c),c)}}const n={_p:f,$id:n,$onaction:m.bind(null,m),$patch:b,$reset:c,$subscribe(t,e={}){const s=m(i,t,e.detached,(()=>o())),o=d.run((()=>a((()=>f.state.value[n]),(s=>{("sync"===e.flush?$:o)&&t({storeid:n,type:j.direct,events:a},s)}),x({},b,e))));return s},$dispose:function(){d.stop(),i=[],m=[],f._s.delete(n)}},w=c(n);f._s.set(n,w);const z=(f._a&&f._a.runwithcontext||s)((()=>f._e.run((()=>(d=t()).run(s)))));for(const t in z){const e=z[t];if(r(e)&&(!r(z=e)||!z.effect)||i(e))h||(!f||_(q=e)&&q.hasownproperty(e)||(r(e)?e.value=f[t]:w(e,f[t])),f.state.value[n][t]=e);else if("function"==typeof e){const n=j(t,e);z[t]=n,y.actions[t]=e}}var q,z;return x(w,z),x(u(w),z),object.defineproperty(w,"$state",{get:()=>f.state.value[n],set:t=>{b((e=>{x(e,t)}))}}),f._p.foreach((t=>{x(w,d.run((()=>t({store:w,app:f._a,pinia:f,options:y}))))})),f&&h&&o.hydrate&&o.hydrate(w.$state,f),o=!0,$=!0,w}function i(t,e,a){let c,r;const i="function"==typeof e;function u(t,a){const u=s();(t=t||(u?o(b,null):null))&&v(t),(t=y)._s.has(c)||(i?a(c,e,r,t):function(t,e,s,o){const{state:a,actions:c,getters:r}=e,i=s.state.value[t];let u;u=a(t,(function(){i||(s.state.value[t]=a?a():{});const e=h(s.state.value[t]);return x(e,c,object.keys(r||{}).reduce(((e,o)=>(e[o]=n(d((()=>{v(s);const e=s._s.get(t);return r[o].call(e,e)}))),e)),{}))}),e,s,0,!0)}(c,r,t));return t._s.get(c)}return"string"==typeof t?(c=t,r=i?a:e):(r=t,c=t.id),u.$id=c,u}export{$ as c,i as d};