import{H as j,I as B,l as K,x as F}from"./vue.esm-bundler-ClpepJn5.js";function W(){return T().__VUE_DEVTOOLS_GLOBAL_HOOK__}function T(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const z=typeof Proxy=="function",J="devtools-plugin:setup",Y="plugin:settings:set";class X{constructor(t,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=i;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(n),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}s=o}},i&&i.on(Y,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...u)=>{this.onQueue.push({method:a,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...u)=>(this.targetQueue.push({method:a,args:u,resolve:()=>{}}),this.fallbacks[a](...u)):(...u)=>new Promise(l=>{this.targetQueue.push({method:a,args:u,resolve:l})})})}async setRealTarget(t){this.target=t;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function q(e,t){const i=e,r=T(),n=W(),s=z&&i.enableEarlyProxy;if(n&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))n.emit(J,e,t);else{const o=s?new X(i,n):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
 * vuex v4.1.0
 * (c) 2022 Evan You
 * @license MIT
 */var Z="store";function m(e,t){Object.keys(e).forEach(function(i){return t(e[i],i)})}function A(e){return e!==null&&typeof e=="object"}function tt(e){return e&&typeof e.then=="function"}function et(e,t){return function(){return e(t)}}function G(e,t,i){return t.indexOf(e)<0&&(i&&i.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function L(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;y(e,i,[],e._modules.root,!0),E(e,i,t)}function E(e,t,i){var r=e._state,n=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,o={},a={},u=B(!0);u.run(function(){m(s,function(l,c){o[c]=et(l,e),a[c]=F(function(){return o[c]()}),Object.defineProperty(e.getters,c,{get:function(){return a[c].value},enumerable:!0})})}),e._state=K({data:t}),e._scope=u,e.strict&&st(e),r&&i&&e._withCommit(function(){r.data=null}),n&&n.stop()}function y(e,t,i,r,n){var s=!i.length,o=e._modules.getNamespace(i);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!s&&!n){var a=C(t,i.slice(0,-1)),u=i[i.length-1];e._withCommit(function(){a[u]=r.state})}var l=r.context=rt(e,o,i);r.forEachMutation(function(c,f){var h=o+f;it(e,h,c,l)}),r.forEachAction(function(c,f){var h=c.root?f:o+f,d=c.handler||c;nt(e,h,d,l)}),r.forEachGetter(function(c,f){var h=o+f;ot(e,h,c,l)}),r.forEachChild(function(c,f){y(e,t,i.concat(f),c,n)})}function rt(e,t,i){var r=t==="",n={dispatch:r?e.dispatch:function(s,o,a){var u=b(s,o,a),l=u.payload,c=u.options,f=u.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,l)},commit:r?e.commit:function(s,o,a){var u=b(s,o,a),l=u.payload,c=u.options,f=u.type;(!c||!c.root)&&(f=t+f),e.commit(f,l,c)}};return Object.defineProperties(n,{getters:{get:r?function(){return e.getters}:function(){return M(e,t)}},state:{get:function(){return C(e.state,i)}}}),n}function M(e,t){if(!e._makeLocalGettersCache[t]){var i={},r=t.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,r)===t){var s=n.slice(r);Object.defineProperty(i,s,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[t]=i}return e._makeLocalGettersCache[t]}function it(e,t,i,r){var n=e._mutations[t]||(e._mutations[t]=[]);n.push(function(o){i.call(e,r.state,o)})}function nt(e,t,i,r){var n=e._actions[t]||(e._actions[t]=[]);n.push(function(o){var a=i.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return tt(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):a})}function ot(e,t,i,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(s){return i(r.state,r.getters,s.state,s.getters)})}function st(e){j(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function C(e,t){return t.reduce(function(i,r){return i[r]},e)}function b(e,t,i){return A(e)&&e.type&&(i=t,t=e,e=e.type),{type:e,payload:t,options:i}}var at="vuex bindings",I="vuex:mutations",O="vuex:actions",g="vuex",ct=0;function ut(e,t){q({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[at]},function(i){i.addTimelineLayer({id:I,label:"Vuex Mutations",color:x}),i.addTimelineLayer({id:O,label:"Vuex Actions",color:x}),i.addInspector({id:g,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===g)if(r.filter){var n=[];D(n,t._modules.root,r.filter,""),r.rootNodes=n}else r.rootNodes=[$(t._modules.root,"")]}),i.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===g){var n=r.nodeId;M(t,n),r.state=dt(vt(t._modules,n),n==="root"?t.getters:t._makeLocalGettersCache,n)}}),i.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===g){var n=r.nodeId,s=r.path;n!=="root"&&(s=n.split("/").filter(Boolean).concat(s)),t._withCommit(function(){r.set(t._state.data,s,r.state.value)})}}),t.subscribe(function(r,n){var s={};r.payload&&(s.payload=r.payload),s.state=n,i.notifyComponentUpdate(),i.sendInspectorTree(g),i.sendInspectorState(g),i.addTimelineEvent({layerId:I,event:{time:Date.now(),title:r.type,data:s}})}),t.subscribeAction({before:function(r,n){var s={};r.payload&&(s.payload=r.payload),r._id=ct++,r._time=Date.now(),s.state=n,i.addTimelineEvent({layerId:O,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:s}})},after:function(r,n){var s={},o=Date.now()-r._time;s.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},r.payload&&(s.payload=r.payload),s.state=n,i.addTimelineEvent({layerId:O,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:s}})}})})}var x=8702998,ft=6710886,lt=16777215,N={label:"namespaced",textColor:lt,backgroundColor:ft};function P(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function $(e,t){return{id:t||"root",label:P(t),tags:e.namespaced?[N]:[],children:Object.keys(e._children).map(function(i){return $(e._children[i],t+i+"/")})}}function D(e,t,i,r){r.includes(i)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[N]:[]}),Object.keys(t._children).forEach(function(n){D(e,t._children[n],i,r+n+"/")})}function dt(e,t,i){t=i==="root"?t:t[i];var r=Object.keys(t),n={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(r.length){var s=ht(t);n.getters=Object.keys(s).map(function(o){return{key:o.endsWith("/")?P(o):o,editable:!1,value:S(function(){return s[o]})}})}return n}function ht(e){var t={};return Object.keys(e).forEach(function(i){var r=i.split("/");if(r.length>1){var n=t,s=r.pop();r.forEach(function(o){n[o]||(n[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),n=n[o]._custom.value}),n[s]=S(function(){return e[i]})}else t[i]=S(function(){return e[i]})}),t}function vt(e,t){var i=t.split("/").filter(function(r){return r});return i.reduce(function(r,n,s){var o=r[n];if(!o)throw new Error('Missing module "'+n+'" for path "'+t+'".');return s===i.length-1?o:o._children},t==="root"?e:e.root._children)}function S(e){try{return e()}catch(t){return t}}var p=function(t,i){this.runtime=i,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},V={namespaced:{configurable:!0}};V.namespaced.get=function(){return!!this._rawModule.namespaced};p.prototype.addChild=function(t,i){this._children[t]=i};p.prototype.removeChild=function(t){delete this._children[t]};p.prototype.getChild=function(t){return this._children[t]};p.prototype.hasChild=function(t){return t in this._children};p.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};p.prototype.forEachChild=function(t){m(this._children,t)};p.prototype.forEachGetter=function(t){this._rawModule.getters&&m(this._rawModule.getters,t)};p.prototype.forEachAction=function(t){this._rawModule.actions&&m(this._rawModule.actions,t)};p.prototype.forEachMutation=function(t){this._rawModule.mutations&&m(this._rawModule.mutations,t)};Object.defineProperties(p.prototype,V);var _=function(t){this.register([],t,!1)};_.prototype.get=function(t){return t.reduce(function(i,r){return i.getChild(r)},this.root)};_.prototype.getNamespace=function(t){var i=this.root;return t.reduce(function(r,n){return i=i.getChild(n),r+(i.namespaced?n+"/":"")},"")};_.prototype.update=function(t){k([],this.root,t)};_.prototype.register=function(t,i,r){var n=this;r===void 0&&(r=!0);var s=new p(i,r);if(t.length===0)this.root=s;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],s)}i.modules&&m(i.modules,function(a,u){n.register(t.concat(u),a,r)})};_.prototype.unregister=function(t){var i=this.get(t.slice(0,-1)),r=t[t.length-1],n=i.getChild(r);n&&n.runtime&&i.removeChild(r)};_.prototype.isRegistered=function(t){var i=this.get(t.slice(0,-1)),r=t[t.length-1];return i?i.hasChild(r):!1};function k(e,t,i){if(t.update(i),i.modules)for(var r in i.modules){if(!t.getChild(r))return;k(e.concat(r),t.getChild(r),i.modules[r])}}function gt(e){return new v(e)}var v=function(t){var i=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var n=t.strict;n===void 0&&(n=!1);var s=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new _(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var o=this,a=this,u=a.dispatch,l=a.commit;this.dispatch=function(h,d){return u.call(o,h,d)},this.commit=function(h,d,Q){return l.call(o,h,d,Q)},this.strict=n;var c=this._modules.root.state;y(this,c,[],this._modules.root),E(this,c),r.forEach(function(f){return f(i)})},w={state:{configurable:!0}};v.prototype.install=function(t,i){t.provide(i||Z,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&ut(t,this)};w.state.get=function(){return this._state.data};w.state.set=function(e){};v.prototype.commit=function(t,i,r){var n=this,s=b(t,i,r),o=s.type,a=s.payload,u={type:o,payload:a},l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(c){return c(u,n.state)}))};v.prototype.dispatch=function(t,i){var r=this,n=b(t,i),s=n.type,o=n.payload,a={type:s,payload:o},u=this._actions[s];if(u){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch{}var l=u.length>1?Promise.all(u.map(function(c){return c(o)})):u[0](o);return new Promise(function(c,f){l.then(function(h){try{r._actionSubscribers.filter(function(d){return d.after}).forEach(function(d){return d.after(a,r.state)})}catch{}c(h)},function(h){try{r._actionSubscribers.filter(function(d){return d.error}).forEach(function(d){return d.error(a,r.state,h)})}catch{}f(h)})})}};v.prototype.subscribe=function(t,i){return G(t,this._subscribers,i)};v.prototype.subscribeAction=function(t,i){var r=typeof t=="function"?{before:t}:t;return G(r,this._actionSubscribers,i)};v.prototype.watch=function(t,i,r){var n=this;return j(function(){return t(n.state,n.getters)},i,Object.assign({},r))};v.prototype.replaceState=function(t){var i=this;this._withCommit(function(){i._state.data=t})};v.prototype.registerModule=function(t,i,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,i),y(this,this.state,t,this._modules.get(t),r.preserveState),E(this,this.state)};v.prototype.unregisterModule=function(t){var i=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=C(i.state,t.slice(0,-1));delete r[t[t.length-1]]}),L(this)};v.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};v.prototype.hotUpdate=function(t){this._modules.update(t),L(this,!0)};v.prototype._withCommit=function(t){var i=this._committing;this._committing=!0,t(),this._committing=i};Object.defineProperties(v.prototype,w);var mt=U(function(e,t){var i={};return R(t).forEach(function(r){var n=r.key,s=r.val;i[n]=function(){var a=this.$store.state,u=this.$store.getters;if(e){var l=H(this.$store,"mapState",e);if(!l)return;a=l.context.state,u=l.context.getters}return typeof s=="function"?s.call(this,a,u):a[s]},i[n].vuex=!0}),i}),bt=U(function(e,t){var i={};return R(t).forEach(function(r){var n=r.key,s=r.val;s=e+s,i[n]=function(){if(!(e&&!H(this.$store,"mapGetters",e)))return this.$store.getters[s]},i[n].vuex=!0}),i});function R(e){return pt(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function pt(e){return Array.isArray(e)||A(e)}function U(e){return function(t,i){return typeof t!="string"?(i=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,i)}}function H(e,t,i){var r=e._modulesNamespaceMap[i];return r}export{bt as a,gt as c,mt as m};