@stonecrop/desktop 0.2.63 → 0.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,53 @@
1
- (function(H,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(H=typeof globalThis<"u"?globalThis:H||self,r(H["@stonecrop/desktop"]={},H.Vue))})(this,function(H,r){"use strict";const qo={class:"action-menu-icon"},Go=["onclick"],Jo={key:1},Ko=["onClick"],Yo={class:"dropdown-container"},Qo={class:"dropdown"},Xo=["onclick"],Zo=["href"],er={class:"dropdown-item"},tr=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),a=r.ref(!1),s=r.ref(!1);r.onMounted(()=>{i()});const i=()=>{for(const u of t.value)u.elementType==="dropdown"&&(u.show=!1)},c=()=>{a.value=!0,o.value=setTimeout(()=>{a.value&&(n.value=!0)},500)},p=()=>{a.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},l=u=>{const d=!t.value[u].show;i(),t.value[u].show=d};return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:c,onMouseleave:p},[r.createElementVNode("div",qo,[r.createElementVNode("div",{id:"chevron",onClick:d[0]||(d[0]=f=>s.value=!s.value)},d[1]||(d[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),d[2]||(d[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,Go)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",Jo,[r.createElementVNode("button",{class:"button-default",onClick:g=>l(h)},r.toDisplayString(f.label),9,Ko),r.withDirectives(r.createElementVNode("div",Yo,[r.createElementVNode("div",Qo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,g=>(r.openBlock(),r.createElementBlock("div",{key:g.label},[g.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:g.action,class:"dropdown-item"},r.toDisplayString(g.label),9,Xo)):g.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:g.link},[r.createElementVNode("button",er,r.toDisplayString(g.label),1)],8,Zo)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),nt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},Gt=nt(tr,[["__scopeId","data-v-4fb5c934"]]),nr={};function or(e,t){return r.openBlock(),r.createElementBlock("dialog")}const Jt=nt(nr,[["render",or]]),rr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar={class:"aform"},sr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),a=i=>{let c={};for(const[p,l]of Object.entries(i))["component","fieldtype"].includes(p)||(c[p]=l),p==="rows"&&l&&l.length===0&&(c.rows=o.value[i.fieldname]);return c},s=r.computed({get:()=>e.modelValue.map((i,c)=>r.computed({get(){return i.value},set:p=>{e.modelValue[c].value=p,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,c)=>(r.openBlock(),r.createElementBlock("form",ar,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.modelValue,(p,l)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.component),r.mergeProps({key:l,schema:p,modelValue:s.value[l].value,"onUpdate:modelValue":u=>s.value[l].value=u,data:o.value[p.fieldname],readonly:i.readonly,ref_for:!0},a(p)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ir=rr(sr,[["__scopeId","data-v-d9ce3008"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var cr=Object.defineProperty,lr=(e,t,n)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t,n)=>lr(e,typeof t!="symbol"?t+"":t,n);function ot(e){this.message=e||""}ot.prototype=Object.create(Error.prototype,{constructor:{value:ot},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class et{constructor(t,n,o,a,s){if(q(this,"name","Stonecrop"),q(this,"registry"),q(this,"schema"),q(this,"workflow"),q(this,"actions"),q(this,"store"),et._root)return et._root;et._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=a,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ot(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const a=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),a.length>0&&a.forEach(i=>{new Function(i)(o)})}};q(Kt,"_root");let ur=Kt;var Yt=!1;function Be(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function rt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function dr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pr=typeof Proxy=="function",fr="devtools-plugin:setup",hr="plugin:settings:set";let _e,at;function mr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,at=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,at=globalThis.perf_hooks.performance):_e=!1),_e}function gr(){return mr()?at.now():Date.now()}class yr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const i in t.settings){const c=t.settings[i];o[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(s,c)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}s=i},now(){return gr()}},n&&n.on(hr,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...p)=>{this.onQueue.push({method:c,args:p})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...p)=>(this.targetQueue.push({method:c,args:p,resolve:()=>{}}),this.fallbacks[c](...p)):(...p)=>new Promise(l=>{this.targetQueue.push({method:c,args:p,resolve:l})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function st(e,t){const n=e,o=Qt(),a=dr(),s=pr&&n.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(fr,e,t);else{const i=s?new yr(n,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
2
- * pinia v2.2.2
1
+ (function(J,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(J=typeof globalThis<"u"?globalThis:J||self,r(J["@stonecrop/desktop"]={},J.Vue))})(this,function(J,r){"use strict";const ur={class:"action-menu-icon"},dr=["onclick"],pr={key:1},fr=["onClick"],hr={class:"dropdown-container"},mr={class:"dropdown"},gr=["onclick"],yr=["href"],wr={class:"dropdown-item"},br=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),s=r.ref(!1),a=r.ref(!1);r.onMounted(()=>{i()});const i=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},c=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},l=()=>{s.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},p=d=>{const u=!t.value[d].show;i(),t.value[d].show=u};return(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:c,onMouseleave:l},[r.createElementVNode("div",ur,[r.createElementVNode("div",{id:"chevron",onClick:u[0]||(u[0]=f=>a.value=!a.value)},u[1]||(u[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),u[2]||(u[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,dr)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",pr,[r.createElementVNode("button",{class:"button-default",onClick:m=>p(h)},r.toDisplayString(f.label),9,fr),r.withDirectives(r.createElementVNode("div",hr,[r.createElementVNode("div",mr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,m=>(r.openBlock(),r.createElementBlock("div",{key:m.label},[m.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},r.toDisplayString(m.label),9,gr)):m.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:m.link},[r.createElementVNode("button",wr,r.toDisplayString(m.label),1)],8,yr)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),ut=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},sn=ut(br,[["__scopeId","data-v-4fb5c934"]]),vr={};function Er(e,t){return r.openBlock(),r.createElementBlock("dialog")}const an=ut(vr,[["render",Er]]),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kr={class:"aform"},Nr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),s=i=>{let c={};for(const[l,p]of Object.entries(i))["component","fieldtype"].includes(l)||(c[l]=p),l==="rows"&&p&&p.length===0&&(c.rows=o.value[i.fieldname]);return c},a=r.computed({get:()=>e.modelValue.map((i,c)=>r.computed({get(){return i.value},set:l=>{e.modelValue[c].value=l,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,c)=>(r.openBlock(),r.createElementBlock("form",kr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.modelValue,(l,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.component),r.mergeProps({key:p,schema:l,modelValue:a.value[p].value,"onUpdate:modelValue":d=>a.value[p].value=d,data:o.value[l.fieldname],readonly:i.readonly,ref_for:!0},s(l)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),$r=_r(Nr,[["__scopeId","data-v-d9ce3008"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Or=Object.defineProperty,Sr=(e,t,n)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>Sr(e,typeof t!="symbol"?t+"":t,n);function dt(e){this.message=e||""}dt.prototype=Object.create(Error.prototype,{constructor:{value:dt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const cn=class ct{constructor(t,n,o,s,a){if(Y(this,"name","Stonecrop"),Y(this,"registry"),Y(this,"schema"),Y(this,"workflow"),Y(this,"actions"),Y(this,"store"),ct._root)return ct._root;ct._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=s,this.actions=a}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new dt(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const s=this.registry.registry[t.slug].actions.get(n),{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),s.length>0&&s.forEach(i=>{new Function(i)(o)})}};Y(cn,"_root");let xr=cn;var ln=!1;function He(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function pt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Cr(){return un().__VUE_DEVTOOLS_GLOBAL_HOOK__}function un(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Pr=typeof Proxy=="function",Vr="devtools-plugin:setup",Dr="plugin:settings:set";let xe,ft;function Ir(){var e;return xe!==void 0||(typeof window<"u"&&window.performance?(xe=!0,ft=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(xe=!0,ft=globalThis.perf_hooks.performance):xe=!1),xe}function Rr(){return Ir()?ft.now():Date.now()}class Ar{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const i in t.settings){const c=t.settings[i];o[i]=c.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},o);try{const i=localStorage.getItem(s),c=JSON.parse(i);Object.assign(a,c)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}a=i},now(){return Rr()}},n&&n.on(Dr,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...l)=>{this.onQueue.push({method:c,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...l)=>(this.targetQueue.push({method:c,args:l,resolve:()=>{}}),this.fallbacks[c](...l)):(...l)=>new Promise(p=>{this.targetQueue.push({method:c,args:l,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ht(e,t){const n=e,o=un(),s=Cr(),a=Pr&&n.enableEarlyProxy;if(s&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Vr,e,t);else{const i=a?new Ar(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
2
+ * pinia v2.3.0
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let ke;const $e=e=>ke=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function le(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Y;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Y||(Y={}));const ue=typeof window<"u",Zt=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function wr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function it(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){nn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function en(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Le(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Me=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Me.userAgent)&&/AppleWebKit/.test(Me.userAgent)&&!/Safari/.test(Me.userAgent),nn=ue?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?br:"msSaveOrOpenBlob"in Me?vr:Er:()=>{};function br(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?en(o.href)?it(e,t,n):(o.target="_blank",Le(o)):Le(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Le(o)},0))}function vr(e,t="download",n){if(typeof e=="string")if(en(e))it(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Le(o)})}else navigator.msSaveOrOpenBlob(wr(e,n),t)}function Er(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return it(e,t,n);const a=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s||tn)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let p=c.result;if(typeof p!="string")throw o=null,new Error("Wrong reader.result type");p=i?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=p:location.assign(p),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function L(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function ct(e){return"_a"in e&&"install"in e}function on(){if(!("clipboard"in navigator))return L("Your browser doesn't support the Clipboard API","error"),!0}function rn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(L('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function _r(e){if(!on())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),L("Global state copied to clipboard.")}catch(t){if(rn(t))return;L("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function kr(e){if(!on())try{an(e,JSON.parse(await navigator.clipboard.readText())),L("Global state pasted from clipboard.")}catch(t){if(rn(t))return;L("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function $r(e){try{nn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){L("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Z;function Sr(){Z||(Z=document.createElement("input"),Z.type="file",Z.accept=".json");function e(){return new Promise((t,n)=>{Z.onchange=async()=>{const o=Z.files;if(!o)return t(null);const a=o.item(0);return t(a?{text:await a.text(),file:a}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function Or(e){try{const t=await Sr()();if(!t)return;const{text:n,file:o}=t;an(e,JSON.parse(n)),L(`Global state imported from "${o.name}".`)}catch(t){L("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function an(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function J(e){return{_custom:{display:e}}}const sn="🍍 Pinia (root)",We="_root";function Nr(e){return ct(e)?{id:We,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(ct(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>o.get(a)._getters).map(a=>{const s=o.get(a);return{editable:!1,key:a,value:s._getters.reduce((i,c)=>(i[c]=s[c],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Cr(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:J(e.type),key:J(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Ir(e){switch(e){case Y.direct:return"mutation";case Y.patchFunction:return"$patch";case Y.patchObject:return"$patch";default:return"unknown"}}let he=!0;const Ue=[],de="pinia:mutations",M="pinia",{assign:Pr}=Object,ze=e=>"🍍 "+e;function Dr(e,t){st({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,app:e},n=>{typeof n.now!="function"&&L("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:de,label:"Pinia 🍍",color:15064968}),n.addInspector({id:M,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{_r(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await kr(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$r(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Or(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const a=t._s.get(o);a?typeof a.$reset!="function"?L(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),L(`Store "${o}" reset.`)):L(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,a)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const i=o.componentInstance.proxy._pStores;Object.values(i).forEach(c=>{o.instanceData.state.push({type:ze(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((p,l)=>(p[l]=c.$state[l],p),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:ze(c.$id),key:"getters",editable:!1,value:c._getters.reduce((p,l)=>{try{p[l]=c[l]}catch(u){p[l]=u}return p},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===M){let a=[t];a=a.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):a).map(Nr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const a=o.nodeId===We?t:t._s.get(o.nodeId);if(!a)return;a&&(o.nodeId!==We&&(globalThis.$store=r.toRaw(a)),o.state=xr(a))}}),n.on.editInspectorState((o,a)=>{if(o.app===e&&o.inspectorId===M){const s=o.nodeId===We?t:t._s.get(o.nodeId);if(!s)return L(`store "${o.nodeId}" not found`,"error");const{path:i}=o;ct(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),he=!1,o.set(s,i,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const a=o.type.replace(/^🍍\s*/,""),s=t._s.get(a);if(!s)return L(`store "${a}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return L(`Invalid path for store "${a}":
5
+ */let Ce;const Pe=e=>Ce=e,dn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function he(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var te;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(te||(te={}));const le=typeof window<"u",pn=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function mt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){mn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function fn(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function qe(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Ge=typeof navigator=="object"?navigator:{userAgent:""},hn=/Macintosh/.test(Ge.userAgent)&&/AppleWebKit/.test(Ge.userAgent)&&!/Safari/.test(Ge.userAgent),mn=le?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!hn?jr:"msSaveOrOpenBlob"in Ge?Br:Lr:()=>{};function jr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?fn(o.href)?mt(e,t,n):(o.target="_blank",qe(o)):qe(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){qe(o)},0))}function Br(e,t="download",n){if(typeof e=="string")if(fn(e))mt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){qe(o)})}else navigator.msSaveOrOpenBlob(Tr(e,n),t)}function Lr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return mt(e,t,n);const s=e.type==="application/octet-stream",a=/constructor/i.test(String(pn.HTMLElement))||"safari"in pn,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&a||hn)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let l=c.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function F(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function gt(e){return"_a"in e&&"install"in e}function gn(){if(!("clipboard"in navigator))return F("Your browser doesn't support the Clipboard API","error"),!0}function yn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(F('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Mr(e){if(!gn())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),F("Global state copied to clipboard.")}catch(t){if(yn(t))return;F("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Wr(e){if(!gn())try{wn(e,JSON.parse(await navigator.clipboard.readText())),F("Global state pasted from clipboard.")}catch(t){if(yn(t))return;F("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Ur(e){try{mn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){F("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ne;function Fr(){ne||(ne=document.createElement("input"),ne.type="file",ne.accept=".json");function e(){return new Promise((t,n)=>{ne.onchange=async()=>{const o=ne.files;if(!o)return t(null);const s=o.item(0);return t(s?{text:await s.text(),file:s}:null)},ne.oncancel=()=>t(null),ne.onerror=n,ne.click()})}return e}async function zr(e){try{const t=await Fr()();if(!t)return;const{text:n,file:o}=t;wn(e,JSON.parse(n)),F(`Global state imported from "${o.name}".`)}catch(t){F("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function wn(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function Z(e){return{_custom:{display:e}}}const bn="🍍 Pinia (root)",Je="_root";function Hr(e){return gt(e)?{id:Je,label:bn}:{id:e.$id,label:e.$id}}function qr(e){if(gt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const a=o.get(s);return{editable:!1,key:s,value:a._getters.reduce((i,c)=>(i[c]=a[c],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Gr(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Z(e.type),key:Z(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Jr(e){switch(e){case te.direct:return"mutation";case te.patchFunction:return"$patch";case te.patchObject:return"$patch";default:return"unknown"}}let we=!0;const Ye=[],me="pinia:mutations",z="pinia",{assign:Yr}=Object,Ke=e=>"🍍 "+e;function Kr(e,t){ht({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ye,app:e},n=>{typeof n.now!="function"&&F("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:me,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Mr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Wr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ur(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=t._s.get(o);s?typeof s.$reset!="function"?F(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),F(`Store "${o}" reset.`)):F(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,s)=>{const a=o.componentInstance&&o.componentInstance.proxy;if(a&&a._pStores){const i=o.componentInstance.proxy._pStores;Object.values(i).forEach(c=>{o.instanceData.state.push({type:Ke(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((l,p)=>(l[p]=c.$state[p],l),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:Ke(c.$id),key:"getters",editable:!1,value:c._getters.reduce((l,p)=>{try{l[p]=c[p]}catch(d){l[p]=d}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===z){let s=[t];s=s.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?s.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):bn.toLowerCase().includes(o.filter.toLowerCase())):s).map(Hr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const s=o.nodeId===Je?t:t._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==Je&&(globalThis.$store=r.toRaw(s)),o.state=qr(s))}}),n.on.editInspectorState((o,s)=>{if(o.app===e&&o.inspectorId===z){const a=o.nodeId===Je?t:t._s.get(o.nodeId);if(!a)return F(`store "${o.nodeId}" not found`,"error");const{path:i}=o;gt(a)?i.unshift("state"):(i.length!==1||!a._customProperties.has(i[0])||i[0]in a.$state)&&i.unshift("$state"),we=!1,o.set(a,i,o.state.value),we=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const s=o.type.replace(/^🍍\s*/,""),a=t._s.get(s);if(!a)return F(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return F(`Invalid path for store "${s}":
6
6
  ${i}
7
- Only state can be modified.`);i[0]="$state",he=!1,o.set(s,i,o.state.value),he=!0}})})}function Vr(e,t){Ue.includes(ze(t.$id))||Ue.push(ze(t.$id)),st({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:c,name:p,args:l})=>{const u=cn++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛫 "+p,subtitle:"start",data:{store:J(t.$id),action:J(p),args:l},groupId:u}}),i(d=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛬 "+p,subtitle:"end",data:{store:J(t.$id),action:J(p),args:l,result:d},groupId:u}})}),c(d=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"💥 "+p,subtitle:"end",data:{store:J(t.$id),action:J(p),args:l,error:d},groupId:u}})})},!0),t._customProperties.forEach(i=>{r.watch(()=>r.unref(t[i]),(c,p)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:i,data:{newValue:c,oldValue:p},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:i,type:c},p)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!he)return;const l={time:o(),title:Ir(c),data:Pr({store:J(t.$id)},Cr(i)),groupId:ae};c===Y.patchFunction?l.subtitle="⤵️":c===Y.patchObject?l.subtitle="🧩":i&&!Array.isArray(i)&&(l.subtitle=i.type),i&&(l.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:de,event:l})},{detached:!0,flush:"sync"});const a=t._hotUpdate;t._hotUpdate=r.markRaw(i=>{a(i),n.addTimelineEvent({layerId:de,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:J(t.$id),info:J("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&L(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&L(`"${t.$id}" store installed 🆕`)})}let cn=0,ae;function ln(e,t,n){const o=t.reduce((a,s)=>(a[s]=r.toRaw(e)[s],a),{});for(const a in o)e[a]=function(){const s=cn,i=n?new Proxy(e,{get(...p){return ae=s,Reflect.get(...p)},set(...p){return ae=s,Reflect.set(...p)}}):e;ae=s;const c=o[a].apply(i,arguments);return ae=void 0,c}}function Ar({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){ln(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(a){o.apply(this,arguments),ln(t,Object.keys(a._hmrPayload.actions),!!t._isOptionsAPI)}}Vr(e,t)}}function Tr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const a=r.markRaw({install(s){$e(a),a._a=s,s.provide(Xt,a),s.config.globalProperties.$pinia=a,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue&&Dr(s,a),o.forEach(i=>n.push(i)),o=[]},use(s){return!this._a&&!Yt?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy<"u"&&a.use(Ar),a}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const a=e[n];le(a)&&le(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=un(a,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const a=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(a),a}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Rr=e=>e(),fn=Symbol(),lt=Symbol();function ut(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],a=e[n];le(a)&&le(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=ut(a,o):e[n]=o}return e}const jr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Br(e){return!le(e)||!e.hasOwnProperty(jr)}const{assign:G}=Object;function hn(e){return!!(r.isRef(e)&&e.effect)}function mn(e,t,n,o){const{state:a,actions:s,getters:i}=t,c=n.state.value[e];let p;function l(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=a?a():{});const u=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(a?a():{}).value):r.toRefs(n.state.value[e]);return G(u,s,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=r.markRaw(r.computed(()=>{$e(n);const h=n._s.get(e);return i[f].call(h,h)})),d),{}))}return p=dt(e,l,t,n,o,!0),p}function dt(e,t,n={},o,a,s){let i;const c=G({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const p={deep:!0};process.env.NODE_ENV!=="production"&&!Yt&&(p.onTrigger=E=>{l?h=E:l==!1&&!$._hotUpdating&&(Array.isArray(h)?h.push(E):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,u,d=[],f=[],h;const g=o.state.value[e];!s&&!g&&(process.env.NODE_ENV==="production"||!a)&&(o.state.value[e]={});const y=r.ref({});let _;function O(E){let v;l=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof E=="function"?(E(o.state.value[e]),v={type:Y.patchFunction,storeId:e,events:h}):(ut(o.state.value[e],E),v={type:Y.patchObject,payload:E,storeId:e,events:h});const A=_=Symbol();r.nextTick().then(()=>{_===A&&(l=!0)}),u=!0,me(d,v,o.state.value[e])}const S=s?function(){const{state:E}=n,v=E?E():{};this.$patch(A=>{G(A,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:dn;function C(){i.stop(),d=[],f=[],o._s.delete(e)}const j=(E,v="")=>{if(fn in E)return E[lt]=v,E;const A=function(){$e(o);const F=Array.from(arguments),K=[],Re=[];function je(W){K.push(W)}function Xe(W){Re.push(W)}me(f,{args:F,name:A[lt],store:$,after:je,onError:Xe});let X;try{X=E.apply(this&&this.$id===e?this:$,F)}catch(W){throw me(Re,W),W}return X instanceof Promise?X.then(W=>(me(K,W),W)).catch(W=>(me(Re,W),Promise.reject(W))):(me(K,X),X)};return A[fn]=!0,A[lt]=v,A},I=r.markRaw({actions:{},getters:{},state:[],hotState:y}),T={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:O,$reset:S,$subscribe(E,v={}){const A=pn(d,E,v.detached,()=>F()),F=i.run(()=>r.watch(()=>o.state.value[e],K=>{(v.flush==="sync"?u:l)&&E({storeId:e,type:Y.direct,events:h},K)},G({},p,v)));return A},$dispose:C},$=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue?G({_hmrPayload:I,_customProperties:r.markRaw(new Set)},T):T);o._s.set(e,$);const Q=(o._a&&o._a.runWithContext||Rr)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:j}))));for(const E in Q){const v=Q[E];if(r.isRef(v)&&!hn(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&a?Be(y.value,E,r.toRef(Q,E)):s||(g&&Br(v)&&(r.isRef(v)?v.value=g[E]:ut(v,g[E])),o.state.value[e][E]=v),process.env.NODE_ENV!=="production"&&I.state.push(E);else if(typeof v=="function"){const A=process.env.NODE_ENV!=="production"&&a?v:j(v,E);Q[E]=A,process.env.NODE_ENV!=="production"&&(I.actions[E]=v),c.actions[E]=v}else process.env.NODE_ENV!=="production"&&hn(v)&&(I.getters[E]=s?n.getters[E]:v,ue&&(Q._getters||(Q._getters=r.markRaw([]))).push(E))}if(G($,Q),G(r.toRaw($),Q),Object.defineProperty($,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?y.value:o.state.value[e],set:E=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");O(v=>{G(v,E)})}}),process.env.NODE_ENV!=="production"&&($._hotUpdate=r.markRaw(E=>{$._hotUpdating=!0,E._hmrPayload.state.forEach(v=>{if(v in $.$state){const A=E.$state[v],F=$.$state[v];typeof A=="object"&&le(A)&&le(F)?un(A,F):E.$state[v]=F}Be($,v,r.toRef(E.$state,v))}),Object.keys($.$state).forEach(v=>{v in E.$state||rt($,v)}),l=!1,u=!1,o.state.value[e]=r.toRef(E._hmrPayload,"hotState"),u=!0,r.nextTick().then(()=>{l=!0});for(const v in E._hmrPayload.actions){const A=E[v];Be($,v,j(A,v))}for(const v in E._hmrPayload.getters){const A=E._hmrPayload.getters[v],F=s?r.computed(()=>($e(o),A.call($,$))):A;Be($,v,F)}Object.keys($._hmrPayload.getters).forEach(v=>{v in E._hmrPayload.getters||rt($,v)}),Object.keys($._hmrPayload.actions).forEach(v=>{v in E._hmrPayload.actions||rt($,v)}),$._hmrPayload=E._hmrPayload,$._getters=E._getters,$._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const E={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty($,v,G({value:$[v]},E))})}return o._p.forEach(E=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const v=i.run(()=>E({store:$,app:o._a,pinia:o,options:c}));Object.keys(v||{}).forEach(A=>$._customProperties.add(A)),G($,v)}else G($,i.run(()=>E({store:$,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&$.$state&&typeof $.$state=="object"&&typeof $.$state.constructor=="function"&&!$.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);i[0]="$state",we=!1,o.set(a,i,o.state.value),we=!0}})})}function Qr(e,t){Ye.includes(Ke(t.$id))||Ye.push(Ke(t.$id)),ht({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ye,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:c,name:l,args:p})=>{const d=vn++;n.addTimelineEvent({layerId:me,event:{time:o(),title:"🛫 "+l,subtitle:"start",data:{store:Z(t.$id),action:Z(l),args:p},groupId:d}}),i(u=>{ue=void 0,n.addTimelineEvent({layerId:me,event:{time:o(),title:"🛬 "+l,subtitle:"end",data:{store:Z(t.$id),action:Z(l),args:p,result:u},groupId:d}})}),c(u=>{ue=void 0,n.addTimelineEvent({layerId:me,event:{time:o(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:Z(t.$id),action:Z(l),args:p,error:u},groupId:d}})})},!0),t._customProperties.forEach(i=>{r.watch(()=>r.unref(t[i]),(c,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),we&&n.addTimelineEvent({layerId:me,event:{time:o(),title:"Change",subtitle:i,data:{newValue:c,oldValue:l},groupId:ue}})},{deep:!0})}),t.$subscribe(({events:i,type:c},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!we)return;const p={time:o(),title:Jr(c),data:Yr({store:Z(t.$id)},Gr(i)),groupId:ue};c===te.patchFunction?p.subtitle="⤵️":c===te.patchObject?p.subtitle="🧩":i&&!Array.isArray(i)&&(p.subtitle=i.type),i&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:me,event:p})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=r.markRaw(i=>{s(i),n.addTimelineEvent({layerId:me,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Z(t.$id),info:Z("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&F(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&F(`"${t.$id}" store installed 🆕`)})}let vn=0,ue;function En(e,t,n){const o=t.reduce((s,a)=>(s[a]=r.toRaw(e)[a],s),{});for(const s in o)e[s]=function(){const a=vn,i=n?new Proxy(e,{get(...l){return ue=a,Reflect.get(...l)},set(...l){return ue=a,Reflect.set(...l)}}):e;ue=a;const c=o[s].apply(i,arguments);return ue=void 0,c}}function Xr({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){En(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(s){o.apply(this,arguments),En(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)}}Qr(e,t)}}function Zr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const s=r.markRaw({install(a){Pe(s),s._a=a,a.provide(dn,s),a.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le&&Kr(a,s),o.forEach(i=>n.push(i)),o=[]},use(a){return!this._a&&!ln?o.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le&&typeof Proxy<"u"&&s.use(Xr),s}function _n(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];he(s)&&he(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=_n(s,o):e[n]=o}return e}const kn=()=>{};function Nn(e,t,n,o=kn){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function be(e,...t){e.slice().forEach(n=>{n(...t)})}const es=e=>e(),$n=Symbol(),yt=Symbol();function wt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];he(s)&&he(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=wt(s,o):e[n]=o}return e}const ts=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ns(e){return!he(e)||!e.hasOwnProperty(ts)}const{assign:K}=Object;function On(e){return!!(r.isRef(e)&&e.effect)}function Sn(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return K(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{Pe(n);const h=n._s.get(e);return i[f].call(h,h)})),u),{}))}return l=bt(e,p,t,n,o,!0),l}function bt(e,t,n={},o,s,a){let i;const c=K({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!ln&&(l.onTrigger=v=>{p?h=v:p==!1&&!w._hotUpdating&&(Array.isArray(h)?h.push(v):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],h;const m=o.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const E=r.ref({});let O;function N(v){let g;p=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof v=="function"?(v(o.state.value[e]),g={type:te.patchFunction,storeId:e,events:h}):(wt(o.state.value[e],v),g={type:te.patchObject,payload:v,storeId:e,events:h});const b=O=Symbol();r.nextTick().then(()=>{O===b&&(p=!0)}),d=!0,be(u,g,o.state.value[e])}const x=a?function(){const{state:v}=n,g=v?v():{};this.$patch(b=>{K(b,g)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:kn;function I(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(v,g="")=>{if($n in v)return v[yt]=g,v;const b=function(){Pe(o);const V=Array.from(arguments),L=[],ee=[];function ce(M){L.push(M)}function Oe(M){ee.push(M)}be(f,{args:V,name:b[yt],store:w,after:ce,onError:Oe});let X;try{X=v.apply(this&&this.$id===e?this:w,V)}catch(M){throw be(ee,M),M}return X instanceof Promise?X.then(M=>(be(L,M),M)).catch(M=>(be(ee,M),Promise.reject(M))):(be(L,X),X)};return b[$n]=!0,b[yt]=g,b},$=r.markRaw({actions:{},getters:{},state:[],hotState:E}),C={_p:o,$id:e,$onAction:Nn.bind(null,f),$patch:N,$reset:x,$subscribe(v,g={}){const b=Nn(u,v,g.detached,()=>V()),V=i.run(()=>r.watch(()=>o.state.value[e],L=>{(g.flush==="sync"?d:p)&&v({storeId:e,type:te.direct,events:h},L)},K({},l,g)));return b},$dispose:I},w=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le?K({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,w);const j=(o._a&&o._a.runWithContext||es)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const v in j){const g=j[v];if(r.isRef(g)&&!On(g)||r.isReactive(g))process.env.NODE_ENV!=="production"&&s?He(E.value,v,r.toRef(j,v)):a||(m&&ns(g)&&(r.isRef(g)?g.value=m[v]:wt(g,m[v])),o.state.value[e][v]=g),process.env.NODE_ENV!=="production"&&$.state.push(v);else if(typeof g=="function"){const b=process.env.NODE_ENV!=="production"&&s?g:B(g,v);j[v]=b,process.env.NODE_ENV!=="production"&&($.actions[v]=g),c.actions[v]=g}else process.env.NODE_ENV!=="production"&&On(g)&&($.getters[v]=a?n.getters[v]:g,le&&(j._getters||(j._getters=r.markRaw([]))).push(v))}if(K(w,j),K(r.toRaw(w),j),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?E.value:o.state.value[e],set:v=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");N(g=>{K(g,v)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(v=>{w._hotUpdating=!0,v._hmrPayload.state.forEach(g=>{if(g in w.$state){const b=v.$state[g],V=w.$state[g];typeof b=="object"&&he(b)&&he(V)?_n(b,V):v.$state[g]=V}He(w,g,r.toRef(v.$state,g))}),Object.keys(w.$state).forEach(g=>{g in v.$state||pt(w,g)}),p=!1,d=!1,o.state.value[e]=r.toRef(v._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const g in v._hmrPayload.actions){const b=v[g];He(w,g,B(b,g))}for(const g in v._hmrPayload.getters){const b=v._hmrPayload.getters[g],V=a?r.computed(()=>(Pe(o),b.call(w,w))):b;He(w,g,V)}Object.keys(w._hmrPayload.getters).forEach(g=>{g in v._hmrPayload.getters||pt(w,g)}),Object.keys(w._hmrPayload.actions).forEach(g=>{g in v._hmrPayload.actions||pt(w,g)}),w._hmrPayload=v._hmrPayload,w._getters=v._getters,w._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le){const v={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(g=>{Object.defineProperty(w,g,K({value:w[g]},v))})}return o._p.forEach(v=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le){const g=i.run(()=>v({store:w,app:o._a,pinia:o,options:c}));Object.keys(g||{}).forEach(b=>w._customProperties.add(b)),K(w,g)}else K(w,i.run(()=>v({store:w,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
8
  state: () => new MyClass()
9
- Found in store "${$.$id}".`),g&&s&&n.hydrate&&n.hydrate($.$state,g),l=!0,u=!0,$}function Lr(e,t,n){let o,a;const s=typeof t=="function";o=e,a=s?n:t;function i(c,p){const l=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&ke&&ke._testing?null:c)||(l?r.inject(Xt,null):null),c&&$e(c),process.env.NODE_ENV!=="production"&&!ke)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
9
+ Found in store "${w.$id}".`),m&&a&&n.hydrate&&n.hydrate(w.$state,m),p=!0,d=!0,w}/*! #__NO_SIDE_EFFECTS__ */function os(e,t,n){let o,s;const a=typeof t=="function";o=e,s=a?n:t;function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Ce&&Ce._testing?null:c)||(p?r.inject(dn,null):null),c&&Pe(c),process.env.NODE_ENV!=="production"&&!Ce)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
10
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
11
- This will fail in production.`);c=ke,c._s.has(o)||(s?dt(o,t,a,c):mn(o,a,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const u=c._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const d="__hot:"+o,f=s?dt(d,t,a,c,!0):mn(d,G({},a),c,!0);p._hotUpdate(f),delete c.state.value[d],c._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ue){const d=r.getCurrentInstance();if(d&&d.proxy&&!p){const f=d.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=u}}return u}return i.$id=o,i}const Mr=Lr("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function gn(e){e||(e=r.inject("$registry"));const t=Mr(),n=r.ref(new ur(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var a,s;const i=e.router.currentRoute.value,c=(a=i.params.records)==null?void 0:a.toString().toLowerCase(),p=(s=i.params.record)==null?void 0:s.toString().toLowerCase();if(!c&&!p)return;const l=await e.getMeta(c);e.addDoctype(l),n.value.setup(l),c&&(p?await n.value.getRecord(l,p):await n.value.getRecords(l)),n.value.runAction(l,"LOAD",p?[p]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}q(class tt{constructor(t,n){if(q(this,"name"),q(this,"router"),q(this,"registry"),q(this,"getMeta"),tt._root)return tt._root;tt._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
12
- * vue-router v4.4.5
11
+ This will fail in production.`);c=Ce,c._s.has(o)||(a?bt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?bt(u,t,s,c,!0):Sn(u,K({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&le){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=d}}return d}return i.$id=o,i}const rs=os("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));const t=rs(),n=r.ref(new xr(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var s,a;const i=e.router.currentRoute.value,c=(s=i.params.records)==null?void 0:s.toString().toLowerCase(),l=(a=i.params.record)==null?void 0:a.toString().toLowerCase();if(!c&&!l)return;const p=await e.getMeta(c);e.addDoctype(p),n.value.setup(p),c&&(l?await n.value.getRecord(p,l):await n.value.getRecords(p)),n.value.runAction(p,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}Y(class lt{constructor(t,n){if(Y(this,"name"),Y(this,"router"),Y(this,"registry"),Y(this,"getMeta"),lt._root)return lt._root;lt._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
12
+ * vue-router v4.5.0
13
13
  * (c) 2024 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const ee=typeof document<"u";function yn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yn(e.default)}const D=Object.assign;function pt(e,t){const n={};for(const o in t){const a=t[o];n[o]=z(a)?a.map(e):e(a)}return n}const Se=()=>{},z=Array.isArray;function N(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const wn=/#/g,Ur=/&/g,zr=/\//g,Fr=/=/g,Hr=/\?/g,bn=/\+/g,qr=/%5B/g,Gr=/%5D/g,vn=/%5E/g,Jr=/%60/g,En=/%7B/g,Kr=/%7C/g,_n=/%7D/g,Yr=/%20/g;function ft(e){return encodeURI(""+e).replace(Kr,"|").replace(qr,"[").replace(Gr,"]")}function Qr(e){return ft(e).replace(En,"{").replace(_n,"}").replace(vn,"^")}function ht(e){return ft(e).replace(bn,"%2B").replace(Yr,"+").replace(wn,"%23").replace(Ur,"%26").replace(Jr,"`").replace(En,"{").replace(_n,"}").replace(vn,"^")}function Xr(e){return ht(e).replace(Fr,"%3D")}function Zr(e){return ft(e).replace(wn,"%23").replace(Hr,"%3F")}function ea(e){return e==null?"":Zr(e).replace(zr,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&N(`Error decoding "${e}". Using original value`)}return""+e}const ta=/\/$/,na=e=>e.replace(ta,"");function mt(e,t,n="/"){let o,a={},s="",i="";const c=t.indexOf("#");let p=t.indexOf("?");return c<p&&c>=0&&(p=-1),p>-1&&(o=t.slice(0,p),s=t.slice(p+1,c>-1?c:t.length),a=e(s)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=aa(o??t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:a,hash:ge(i)}}function oa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $n(e,t,n){const o=t.matched.length-1,a=n.matched.length-1;return o>-1&&o===a&&se(t.matched[o],n.matched[a])&&Sn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function se(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ra(e[n],t[n]))return!1;return!0}function ra(e,t){return z(e)?On(e,t):z(t)?On(t,e):e===t}function On(e,t){return z(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function aa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return N(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),a=o[o.length-1];(a===".."||a===".")&&o.push("");let s=n.length-1,i,c;for(i=0;i<o.length;i++)if(c=o[i],c!==".")if(c==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Oe;(function(e){e.pop="pop",e.push="push"})(Oe||(Oe={}));var Ne;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ne||(Ne={}));function sa(e){if(!e)if(ee){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),na(e)}const ia=/^[^#]+#/;function ca(e,t){return e.replace(ia,"#")+t}function la(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Fe=()=>({left:window.scrollX,top:window.scrollY});function ua(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const s=document.querySelector(e.el);if(o&&s){N(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{N(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const a=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a){process.env.NODE_ENV!=="production"&&N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=la(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nn(e,t){return(history.state?history.state.position-t:-1)+e}const gt=new Map;function da(e,t){gt.set(e,t)}function pa(e){const t=gt.get(e);return gt.delete(e),t}let fa=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:a}=t,s=e.indexOf("#");if(s>-1){let i=a.includes(e.slice(s))?e.slice(s).length:1,c=a.slice(i);return c[0]!=="/"&&(c="/"+c),kn(c,"")}return kn(n,e)+o+a}function ha(e,t,n,o){let a=[],s=[],i=null;const c=({state:f})=>{const h=xn(e,location),g=n.value,y=t.value;let _=0;if(f){if(n.value=h,t.value=f,i&&i===g){i=null;return}_=y?f.position-y.position:0}else o(h);a.forEach(O=>{O(n.value,g,{delta:_,type:Oe.pop,direction:_?_>0?Ne.forward:Ne.back:Ne.unknown})})};function p(){i=n.value}function l(f){a.push(f);const h=()=>{const g=a.indexOf(f);g>-1&&a.splice(g,1)};return s.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(D({},f.state,{scroll:Fe()}),"")}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:p,listen:l,destroy:d}}function Cn(e,t,n,o=!1,a=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:a?Fe():null}}function ma(e){const{history:t,location:n}=window,o={value:xn(e,n)},a={value:t.state};a.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(p,l,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+p:fa()+e+p;try{t[u?"replaceState":"pushState"](l,"",f),a.value=l}catch(h){process.env.NODE_ENV!=="production"?N("Error with push/replace State",h):console.error(h),n[u?"replace":"assign"](f)}}function i(p,l){const u=D({},t.state,Cn(a.value.back,p,a.value.forward,!0),l,{position:a.value.position});s(p,u,!0),o.value=p}function c(p,l){const u=D({},a.value,t.state,{forward:p,scroll:Fe()});process.env.NODE_ENV!=="production"&&!t.state&&N(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
15
+ */const oe=typeof document<"u";function Cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ss(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cn(e.default)}const A=Object.assign;function vt(e,t){const n={};for(const o in t){const s=t[o];n[o]=G(s)?s.map(e):e(s)}return n}const Ve=()=>{},G=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pn=/#/g,as=/&/g,is=/\//g,cs=/=/g,ls=/\?/g,Vn=/\+/g,us=/%5B/g,ds=/%5D/g,Dn=/%5E/g,ps=/%60/g,In=/%7B/g,fs=/%7C/g,Rn=/%7D/g,hs=/%20/g;function Et(e){return encodeURI(""+e).replace(fs,"|").replace(us,"[").replace(ds,"]")}function ms(e){return Et(e).replace(In,"{").replace(Rn,"}").replace(Dn,"^")}function _t(e){return Et(e).replace(Vn,"%2B").replace(hs,"+").replace(Pn,"%23").replace(as,"%26").replace(ps,"`").replace(In,"{").replace(Rn,"}").replace(Dn,"^")}function gs(e){return _t(e).replace(cs,"%3D")}function ys(e){return Et(e).replace(Pn,"%23").replace(ls,"%3F")}function ws(e){return e==null?"":ys(e).replace(is,"%2F")}function ve(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}const bs=/\/$/,vs=e=>e.replace(bs,"");function kt(e,t,n="/"){let o,s={},a="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(o=t.slice(0,l),a=t.slice(l+1,c>-1?c:t.length),s=e(a)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=ks(o??t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:s,hash:ve(i)}}function Es(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function An(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tn(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&de(t.matched[o],n.matched[s])&&jn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function de(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_s(e[n],t[n]))return!1;return!0}function _s(e,t){return G(e)?Bn(e,t):G(t)?Bn(t,e):e===t}function Bn(e,t){return G(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let a=n.length-1,i,c;for(i=0;i<o.length;i++)if(c=o[i],c!==".")if(c==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}const pe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var De;(function(e){e.pop="pop",e.push="push"})(De||(De={}));var Ie;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ie||(Ie={}));function Ns(e){if(!e)if(oe){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vs(e)}const $s=/^[^#]+#/;function Os(e,t){return e.replace($s,"#")+t}function Ss(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Qe=()=>({left:window.scrollX,top:window.scrollY});function xs(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const a=document.querySelector(e.el);if(o&&a){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Ss(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ln(e,t){return(history.state?history.state.position-t:-1)+e}const Nt=new Map;function Cs(e,t){Nt.set(e,t)}function Ps(e){const t=Nt.get(e);return Nt.delete(e),t}let Vs=()=>location.protocol+"//"+location.host;function Mn(e,t){const{pathname:n,search:o,hash:s}=t,a=e.indexOf("#");if(a>-1){let i=s.includes(e.slice(a))?e.slice(a).length:1,c=s.slice(i);return c[0]!=="/"&&(c="/"+c),An(c,"")}return An(n,e)+o+s}function Ds(e,t,n,o){let s=[],a=[],i=null;const c=({state:f})=>{const h=Mn(e,location),m=n.value,E=t.value;let O=0;if(f){if(n.value=h,t.value=f,i&&i===m){i=null;return}O=E?f.position-E.position:0}else o(h);s.forEach(N=>{N(n.value,m,{delta:O,type:De.pop,direction:O?O>0?Ie.forward:Ie.back:Ie.unknown})})};function l(){i=n.value}function p(f){s.push(f);const h=()=>{const m=s.indexOf(f);m>-1&&s.splice(m,1)};return a.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(A({},f.state,{scroll:Qe()}),"")}function u(){for(const f of a)f();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:p,destroy:u}}function Wn(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Qe():null}}function Is(e){const{history:t,location:n}=window,o={value:Mn(e,n)},s={value:t.state};s.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Vs()+e+l;try{t[d?"replaceState":"pushState"](p,"",f),s.value=p}catch(h){process.env.NODE_ENV!=="production"?P("Error with push/replace State",h):console.error(h),n[d?"replace":"assign"](f)}}function i(l,p){const d=A({},t.state,Wn(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});a(l,d,!0),o.value=l}function c(l,p){const d=A({},s.value,t.state,{forward:l,scroll:Qe()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
16
16
 
17
17
  history.replaceState(history.state, '', url)
18
18
 
19
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),s(u.current,u,!0);const d=D({},Cn(o.value,p,null),{position:u.position+1},l);s(p,d,!1),o.value=p}return{location:o,state:a,push:c,replace:i}}function ga(e){e=sa(e);const t=ma(e),n=ha(e,t.state,t.location,t.replace);function o(s,i=!0){i||n.pauseListeners(),history.go(s)}const a=D({location:"",base:e,go:o,createHref:ca.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function He(e){return typeof e=="string"||e&&typeof e=="object"}function In(e){return typeof e=="string"||typeof e=="symbol"}const yt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Pn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pn||(Pn={}));const ya={1({location:e,currentLocation:t}){return`No match for
19
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),a(d.current,d,!0);const u=A({},Wn(o.value,l,null),{position:d.position+1},p);a(l,u,!1),o.value=l}return{location:o,state:s,push:c,replace:i}}function Rs(e){e=Ns(e);const t=Is(e),n=Ds(e,t.state,t.location,t.replace);function o(a,i=!0){i||n.pauseListeners(),history.go(a)}const s=A({location:"",base:e,go:o,createHref:Os.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Xe(e){return typeof e=="string"||e&&typeof e=="object"}function Un(e){return typeof e=="string"||typeof e=="symbol"}const $t=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Fn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fn||(Fn={}));const As={1({location:e,currentLocation:t}){return`No match for
20
20
  ${JSON.stringify(e)}${t?`
21
21
  while being at
22
- `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ba(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ye(e,t){return process.env.NODE_ENV!=="production"?D(new Error(ya[e](t)),{type:e,[yt]:!0},t):D(new Error,{type:e,[yt]:!0},t)}function te(e,t){return e instanceof Error&&yt in e&&(t==null||!!(e.type&t))}const wa=["params","query","hash"];function ba(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of wa)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Dn="[^/]+?",va={sensitive:!1,strict:!1,start:!0,end:!0},Ea=/[.+*?^${}()[\]/\\]/g;function _a(e,t){const n=D({},va,t),o=[];let a=n.start?"^":"";const s=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(a+="/");for(let d=0;d<l.length;d++){const f=l[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(a+="/"),a+=f.value.replace(Ea,"\\$&"),h+=40;else if(f.type===1){const{value:g,repeatable:y,optional:_,regexp:O}=f;s.push({name:g,repeatable:y,optional:_});const S=O||Dn;if(S!==Dn){h+=10;try{new RegExp(`(${S})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${g}" (${S}): `+j.message)}}let C=y?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;d||(C=_&&l.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),a+=C,h+=20,_&&(h+=-8),y&&(h+=-20),S===".*"&&(h+=-50)}u.push(h)}o.push(u)}if(n.strict&&n.end){const l=o.length-1;o[l][o[l].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const i=new RegExp(a,n.sensitive?"":"i");function c(l){const u=l.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",g=s[f-1];d[g.name]=h&&g.repeatable?h.split("/"):h}return d}function p(l){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===0)u+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:_}=h,O=g in l?l[g]:"";if(z(O)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const S=z(O)?O.join("/"):O;if(!S)if(_)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);u+=S}}return u||"/"}return{re:i,score:o,keys:s,parse:c,stringify:p}}function ka(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vn(e,t){let n=0;const o=e.score,a=t.score;for(;n<o.length&&n<a.length;){const s=ka(o[n],a[n]);if(s)return s;n++}if(Math.abs(a.length-o.length)===1){if(An(o))return 1;if(An(a))return-1}return a.length-o.length}function An(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $a={type:0,value:""},Sa=/[a-zA-Z0-9_]/;function Oa(e){if(!e)return[[]];if(e==="/")return[[$a]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${l}": ${h}`)}let n=0,o=n;const a=[];let s;function i(){s&&a.push(s),s=[]}let c=0,p,l="",u="";function d(){l&&(n===0?s.push({type:0,value:l}):n===1||n===2||n===3?(s.length>1&&(p==="*"||p==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:u,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=p}for(;c<e.length;){if(p=e[c++],p==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:p==="/"?(l&&d(),i()):p===":"?(d(),n=1):f();break;case 4:f(),n=o;break;case 1:p==="("?n=2:Sa.test(p)?f():(d(),n=0,p!=="*"&&p!=="?"&&p!=="+"&&c--);break;case 2:p===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+p:n=3:u+=p;break;case 3:d(),n=0,p!=="*"&&p!=="?"&&p!=="+"&&c--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),i(),a}function Na(e,t,n){const o=_a(Oa(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const i of o.keys)s.has(i.name)&&N(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(i.name)}const a=D(o,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function xa(e,t){const n=[],o=new Map;t=Bn({strict:!1,end:!0,sensitive:!1},t);function a(d){return o.get(d)}function s(d,f,h){const g=!h,y=Rn(d);process.env.NODE_ENV!=="production"&&Da(y,f),y.aliasOf=h&&h.record;const _=Bn(t,d),O=[y];if("alias"in d){const j=typeof d.alias=="string"?[d.alias]:d.alias;for(const I of j)O.push(Rn(D({},y,{components:h?h.record.components:y.components,path:I,aliasOf:h?h.record:y})))}let S,C;for(const j of O){const{path:I}=j;if(f&&I[0]!=="/"){const T=f.record.path,$=T[T.length-1]==="/"?"":"/";j.path=f.record.path+(I&&$+I)}if(process.env.NODE_ENV!=="production"&&j.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=Na(j,f,_),process.env.NODE_ENV!=="production"&&f&&I[0]==="/"&&Va(S,f),h?(h.alias.push(S),process.env.NODE_ENV!=="production"&&Pa(h,S)):(C=C||S,C!==S&&C.alias.push(S),g&&d.name&&!jn(S)&&i(d.name)),Ln(S)&&p(S),y.children){const T=y.children;for(let $=0;$<T.length;$++)s(T[$],S,h&&h.children[$])}h=h||S}return C?()=>{i(C)}:Se}function i(d){if(In(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function c(){return n}function p(d){const f=Aa(d,n);n.splice(f,0,d),d.record.name&&!jn(d)&&o.set(d.record.name,d)}function l(d,f){let h,g={},y,_;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw ye(1,{location:d});if(process.env.NODE_ENV!=="production"){const C=Object.keys(d.params||{}).filter(j=>!h.keys.find(I=>I.name===j));C.length&&N(`Discarded invalid param(s) "${C.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}_=h.record.name,g=D(Tn(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Tn(d.params,h.keys.map(C=>C.name))),y=h.stringify(g)}else if(d.path!=null)y=d.path,process.env.NODE_ENV!=="production"&&!y.startsWith("/")&&N(`The Matcher cannot resolve relative paths but received "${y}". Unless you directly called \`matcher.resolve("${y}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(C=>C.re.test(y)),h&&(g=h.parse(y),_=h.record.name);else{if(h=f.name?o.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw ye(1,{location:d,currentLocation:f});_=h.record.name,g=D({},f.params,d.params),y=h.stringify(g)}const O=[];let S=h;for(;S;)O.unshift(S.record),S=S.parent;return{name:_,path:y,params:g,matched:O,meta:Ia(O)}}e.forEach(d=>s(d));function u(){n.length=0,o.clear()}return{addRoute:s,resolve:l,removeRoute:i,clearRoutes:u,getRoutes:c,getRecordMatcher:a}}function Tn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Rn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ca(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ca(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function jn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ia(e){return e.reduce((t,n)=>D(t,n.meta),{})}function Bn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function wt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Pa(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(wt.bind(null,n)))return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(wt.bind(null,n)))return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Da(e,t){t&&t.record.name&&!e.name&&!e.path&&N(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Va(e,t){for(const n of t.keys)if(!e.keys.find(wt.bind(null,n)))return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Aa(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Vn(e,t[s])<0?o=s:n=s+1}const a=Ta(e);return a&&(o=t.lastIndexOf(a,o-1),process.env.NODE_ENV!=="production"&&o<0&&N(`Finding ancestor route "${a.record.path}" failed for "${e.record.path}"`)),o}function Ta(e){let t=e;for(;t=t.parent;)if(Ln(t)&&Vn(e,t)===0)return t}function Ln({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ra(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const a=n[o].replace(bn," "),s=a.indexOf("="),i=ge(s<0?a:a.slice(0,s)),c=s<0?null:ge(a.slice(s+1));if(i in t){let p=t[i];z(p)||(p=t[i]=[p]),p.push(c)}else t[i]=c}return t}function Mn(e){let t="";for(let n in e){const o=e[n];if(n=Xr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(z(o)?o.map(a=>a&&ht(a)):[o&&ht(o)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=z(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return t}const Ba=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Wn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),bt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Un=Symbol(process.env.NODE_ENV!=="production"?"route location":""),vt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function xe(){let e=[];function t(o){return e.push(o),()=>{const a=e.indexOf(o);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ce(e,t,n,o,a,s=i=>i()){const i=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((c,p)=>{const l=f=>{f===!1?p(ye(4,{from:n,to:t})):f instanceof Error?p(f):He(f)?p(ye(2,{from:t,to:f})):(i&&o.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),c())},u=s(()=>e.call(o&&o.instances[a],t,n,process.env.NODE_ENV!=="production"?La(l,t,n):l));let d=Promise.resolve(u);if(e.length<3&&(d=d.then(l)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
22
+ `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${js(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function Ee(e,t){return process.env.NODE_ENV!=="production"?A(new Error(As[e](t)),{type:e,[$t]:!0},t):A(new Error,{type:e,[$t]:!0},t)}function re(e,t){return e instanceof Error&&$t in e&&(t==null||!!(e.type&t))}const Ts=["params","query","hash"];function js(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ts)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const zn="[^/]+?",Bs={sensitive:!1,strict:!1,start:!0,end:!0},Ls=/[.+*?^${}()[\]/\\]/g;function Ms(e,t){const n=A({},Bs,t),o=[];let s=n.start?"^":"";const a=[];for(const p of e){const d=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let u=0;u<p.length;u++){const f=p[u];let h=40+(n.sensitive?.25:0);if(f.type===0)u||(s+="/"),s+=f.value.replace(Ls,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:E,optional:O,regexp:N}=f;a.push({name:m,repeatable:E,optional:O});const x=N||zn;if(x!==zn){h+=10;try{new RegExp(`(${x})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${m}" (${x}): `+B.message)}}let I=E?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;u||(I=O&&p.length<2?`(?:/${I})`:"/"+I),O&&(I+="?"),s+=I,h+=20,O&&(h+=-8),E&&(h+=-20),x===".*"&&(h+=-50)}d.push(h)}o.push(d)}if(n.strict&&n.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function c(p){const d=p.match(i),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",m=a[f-1];u[m.name]=h&&m.repeatable?h.split("/"):h}return u}function l(p){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:m,repeatable:E,optional:O}=h,N=m in p?p[m]:"";if(G(N)&&!E)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const x=G(N)?N.join("/"):N;if(!x)if(O)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);d+=x}}return d||"/"}return{re:i,score:o,keys:a,parse:c,stringify:l}}function Ws(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Hn(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const a=Ws(o[n],s[n]);if(a)return a;n++}if(Math.abs(s.length-o.length)===1){if(qn(o))return 1;if(qn(s))return-1}return s.length-o.length}function qn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Us={type:0,value:""},Fs=/[a-zA-Z0-9_]/;function zs(e){if(!e)return[[]];if(e==="/")return[[Us]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,o=n;const s=[];let a;function i(){a&&s.push(a),a=[]}let c=0,l,p="",d="";function u(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function f(){p+=l}for(;c<e.length;){if(l=e[c++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(p&&u(),i()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:Fs.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),u(),i(),s}function Hs(e,t,n){const o=Ms(zs(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const i of o.keys)a.has(i.name)&&P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(i.name)}const s=A(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function qs(e,t){const n=[],o=new Map;t=Kn({strict:!1,end:!0,sensitive:!1},t);function s(u){return o.get(u)}function a(u,f,h){const m=!h,E=Jn(u);process.env.NODE_ENV!=="production"&&Ks(E,f),E.aliasOf=h&&h.record;const O=Kn(t,u),N=[E];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const $ of B)N.push(Jn(A({},E,{components:h?h.record.components:E.components,path:$,aliasOf:h?h.record:E})))}let x,I;for(const B of N){const{path:$}=B;if(f&&$[0]!=="/"){const C=f.record.path,w=C[C.length-1]==="/"?"":"/";B.path=f.record.path+($&&w+$)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(x=Hs(B,f,O),process.env.NODE_ENV!=="production"&&f&&$[0]==="/"&&Xs(x,f),h?(h.alias.push(x),process.env.NODE_ENV!=="production"&&Ys(h,x)):(I=I||x,I!==x&&I.alias.push(x),m&&u.name&&!Yn(x)&&(process.env.NODE_ENV!=="production"&&Qs(u,f),i(u.name))),Qn(x)&&l(x),E.children){const C=E.children;for(let w=0;w<C.length;w++)a(C[w],x,h&&h.children[w])}h=h||x}return I?()=>{i(I)}:Ve}function i(u){if(Un(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){const f=Zs(u,n);n.splice(f,0,u),u.record.name&&!Yn(u)&&o.set(u.record.name,u)}function p(u,f){let h,m={},E,O;if("name"in u&&u.name){if(h=o.get(u.name),!h)throw Ee(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(B=>!h.keys.find($=>$.name===B));I.length&&P(`Discarded invalid param(s) "${I.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}O=h.record.name,m=A(Gn(f.params,h.keys.filter(I=>!I.optional).concat(h.parent?h.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Gn(u.params,h.keys.map(I=>I.name))),E=h.stringify(m)}else if(u.path!=null)E=u.path,process.env.NODE_ENV!=="production"&&!E.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${E}". Unless you directly called \`matcher.resolve("${E}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(I=>I.re.test(E)),h&&(m=h.parse(E),O=h.record.name);else{if(h=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!h)throw Ee(1,{location:u,currentLocation:f});O=h.record.name,m=A({},f.params,u.params),E=h.stringify(m)}const N=[];let x=h;for(;x;)N.unshift(x.record),x=x.parent;return{name:O,path:E,params:m,matched:N,meta:Js(N)}}e.forEach(u=>a(u));function d(){n.length=0,o.clear()}return{addRoute:a,resolve:p,removeRoute:i,clearRoutes:d,getRoutes:c,getRecordMatcher:s}}function Gn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Jn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Gs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Yn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Js(e){return e.reduce((t,n)=>A(t,n.meta),{})}function Kn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ot(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ys(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Ot.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Ot.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ks(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Qs(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function Xs(e,t){for(const n of t.keys)if(!e.keys.find(Ot.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Zs(e,t){let n=0,o=t.length;for(;n!==o;){const a=n+o>>1;Hn(e,t[a])<0?o=a:n=a+1}const s=ea(e);return s&&(o=t.lastIndexOf(s,o-1),process.env.NODE_ENV!=="production"&&o<0&&P(`Finding ancestor route "${s.record.path}" failed for "${e.record.path}"`)),o}function ea(e){let t=e;for(;t=t.parent;)if(Qn(t)&&Hn(e,t)===0)return t}function Qn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ta(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const s=n[o].replace(Vn," "),a=s.indexOf("="),i=ve(a<0?s:s.slice(0,a)),c=a<0?null:ve(s.slice(a+1));if(i in t){let l=t[i];G(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function Xn(e){let t="";for(let n in e){const o=e[n];if(n=gs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(G(o)?o.map(s=>s&&_t(s)):[o&&_t(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function na(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=G(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const oa=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),St=Symbol(process.env.NODE_ENV!=="production"?"router":""),eo=Symbol(process.env.NODE_ENV!=="production"?"route location":""),xt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Re(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fe(e,t,n,o,s,a=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const p=f=>{f===!1?l(Ee(4,{from:n,to:t})):f instanceof Error?l(f):Xe(f)?l(Ee(2,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),c())},d=a(()=>e.call(o&&o.instances[s],t,n,process.env.NODE_ENV!=="production"?ra(p,t,n):p));let u=Promise.resolve(d);if(e.length<3&&(u=u.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
24
24
  ${e.toString()}
25
- . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof u=="object"&&"then"in u)d=d.then(h=>l._called?h:(N(f),Promise.reject(new Error("Invalid navigation guard"))));else if(u!==void 0&&!l._called){N(f),p(new Error("Invalid navigation guard"));return}}d.catch(f=>p(f))})}function La(e,t,n){let o=0;return function(){o++===1&&N(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function Et(e,t,n,o,a=s=>s()){const s=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&N(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const c in i.components){let p=i.components[c];if(process.env.NODE_ENV!=="production"){if(!p||typeof p!="object"&&typeof p!="function")throw N(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(p)}".`),new Error("Invalid route component");if("then"in p){N(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const l=p;p=()=>l}else p.__asyncLoader&&!p.__warnedDefineAsync&&(p.__warnedDefineAsync=!0,N(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(yn(p)){const l=(p.__vccOpts||p)[t];l&&s.push(ce(l,n,o,i,c,a))}else{let l=p();process.env.NODE_ENV!=="production"&&!("catch"in l)&&(N(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),l=Promise.resolve(l)),s.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);const d=Wr(u)?u.default:u;i.mods[c]=u,i.components[c]=d;const f=(d.__vccOpts||d)[t];return f&&ce(f,n,o,i,c,a)()}))}}}return s}function zn(e){const t=r.inject(bt),n=r.inject(Un);let o=!1,a=null;const s=r.computed(()=>{const u=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||u!==a)&&(He(u)||(o?N(`Invalid value for prop "to" in useLink()
26
- - to:`,u,`
27
- - previous to:`,a,`
28
- - props:`,e):N(`Invalid value for prop "to" in useLink()
29
- - to:`,u,`
30
- - props:`,e)),a=u,o=!0),t.resolve(u)}),i=r.computed(()=>{const{matched:u}=s.value,{length:d}=u,f=u[d-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(se.bind(null,f));if(g>-1)return g;const y=Fn(u[d-2]);return d>1&&Fn(f)===y&&h[h.length-1].path!==y?h.findIndex(se.bind(null,u[d-2])):g}),c=r.computed(()=>i.value>-1&&za(n.params,s.value.params)),p=r.computed(()=>i.value>-1&&i.value===n.matched.length-1&&Sn(n.params,s.value.params));function l(u={}){return Ua(u)?t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const u=r.getCurrentInstance();if(u){const d={route:s.value,isActive:c.value,isExactActive:p.value,error:null};u.__vrl_devtools=u.__vrl_devtools||[],u.__vrl_devtools.push(d),r.watchEffect(()=>{d.route=s.value,d.isActive=c.value,d.isExactActive=p.value,d.error=He(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:r.computed(()=>s.value.href),isActive:c,isExactActive:p,navigate:l}}const Ma=r.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zn,setup(e,{slots:t}){const n=r.reactive(zn(e)),{options:o}=r.inject(bt),a=r.computed(()=>({[Hn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Hn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},s)}}}),Wa=Ma;function Ua(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function za(e,t){for(const n in t){const o=t[n],a=e[n];if(typeof o=="string"){if(o!==a)return!1}else if(!z(a)||a.length!==o.length||o.some((s,i)=>s!==a[i]))return!1}return!0}function Fn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Hn=(e,t,n)=>e??t??n,Fa=r.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&qa();const o=r.inject(vt),a=r.computed(()=>e.route||o.value),s=r.inject(Wn,0),i=r.computed(()=>{let l=r.unref(s);const{matched:u}=a.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),c=r.computed(()=>a.value.matched[i.value]);r.provide(Wn,r.computed(()=>i.value+1)),r.provide(Ba,c),r.provide(vt,a);const p=r.ref();return r.watch(()=>[p.value,c.value,e.name],([l,u,d],[f,h,g])=>{u&&(u.instances[d]=l,h&&h!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!se(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=a.value,u=e.name,d=c.value,f=d&&d.components[u];if(!f)return qn(n.default,{Component:f,route:l});const h=d.props[u],g=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=r.h(f,D({},g,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:p}));if(process.env.NODE_ENV!=="production"&&ee&&y.ref){const _={depth:i.value,name:d.name,path:d.path,meta:d.meta};(z(y.ref)?y.ref.map(O=>O.i):[y.ref.i]).forEach(O=>{O.__vrv_devtools=_})}return qn(n.default,{Component:y,route:l})||y}}});function qn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ha=Fa;function qa(){const e=r.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";N(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
25
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof d=="object"&&"then"in d)u=u.then(h=>p._called?h:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!p._called){P(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function ra(e,t,n){let o=0;return function(){o++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function Ct(e,t,n,o,s=a=>a()){const a=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const c in i.components){let l=i.components[c];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=l;l=()=>p}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(Cn(l)){const p=(l.__vccOpts||l)[t];p&&a.push(fe(p,n,o,i,c,s))}else{let p=l();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(P(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),a.push(()=>p.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);const u=ss(d)?d.default:d;i.mods[c]=d,i.components[c]=u;const f=(u.__vccOpts||u)[t];return f&&fe(f,n,o,i,c,s)()}))}}}return a}function to(e){const t=r.inject(St),n=r.inject(eo);let o=!1,s=null;const a=r.computed(()=>{const d=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||d!==s)&&(Xe(d)||(o?P(`Invalid value for prop "to" in useLink()
26
+ - to:`,d,`
27
+ - previous to:`,s,`
28
+ - props:`,e):P(`Invalid value for prop "to" in useLink()
29
+ - to:`,d,`
30
+ - props:`,e)),s=d,o=!0),t.resolve(d)}),i=r.computed(()=>{const{matched:d}=a.value,{length:u}=d,f=d[u-1],h=n.matched;if(!f||!h.length)return-1;const m=h.findIndex(de.bind(null,f));if(m>-1)return m;const E=no(d[u-2]);return u>1&&no(f)===E&&h[h.length-1].path!==E?h.findIndex(de.bind(null,d[u-2])):m}),c=r.computed(()=>i.value>-1&&la(n.params,a.value.params)),l=r.computed(()=>i.value>-1&&i.value===n.matched.length-1&&jn(n.params,a.value.params));function p(d={}){if(ca(d)){const u=t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Ve);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&oe){const d=r.getCurrentInstance();if(d){const u={route:a.value,isActive:c.value,isExactActive:l.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(u),r.watchEffect(()=>{u.route=a.value,u.isActive=c.value,u.isExactActive=l.value,u.error=Xe(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:r.computed(()=>a.value.href),isActive:c,isExactActive:l,navigate:p}}function sa(e){return e.length===1?e[0]:e}const aa=r.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:to,setup(e,{slots:t}){const n=r.reactive(to(e)),{options:o}=r.inject(St),s=r.computed(()=>({[oo(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[oo(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&sa(t.default(n));return e.custom?a:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},a)}}}),ia=aa;function ca(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function la(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!G(s)||s.length!==o.length||o.some((a,i)=>a!==s[i]))return!1}return!0}function no(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oo=(e,t,n)=>e??t??n,ua=r.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&pa();const o=r.inject(xt),s=r.computed(()=>e.route||o.value),a=r.inject(Zn,0),i=r.computed(()=>{let p=r.unref(a);const{matched:d}=s.value;let u;for(;(u=d[p])&&!u.components;)p++;return p}),c=r.computed(()=>s.value.matched[i.value]);r.provide(Zn,r.computed(()=>i.value+1)),r.provide(oa,c),r.provide(xt,s);const l=r.ref();return r.watch(()=>[l.value,c.value,e.name],([p,d,u],[f,h,m])=>{d&&(d.instances[u]=p,h&&h!==d&&p&&p===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),p&&d&&(!h||!de(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=s.value,d=e.name,u=c.value,f=u&&u.components[d];if(!f)return ro(n.default,{Component:f,route:p});const h=u.props[d],m=h?h===!0?p.params:typeof h=="function"?h(p):h:null,E=r.h(f,A({},m,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(u.instances[d]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&oe&&E.ref){const O={depth:i.value,name:u.name,path:u.path,meta:u.meta};(G(E.ref)?E.ref.map(N=>N.i):[E.ref.i]).forEach(N=>{N.__vrv_devtools=O})}return ro(n.default,{Component:E,route:p})||E}}});function ro(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const da=ua;function pa(){const e=r.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
31
31
  Use slot props instead:
32
32
 
33
33
  <router-view v-slot="{ Component }">
34
34
  <${o}>
35
35
  <component :is="Component" />
36
36
  </${o}>
37
- </router-view>`)}}function Ce(e,t){const n=D({},e,{matched:e.matched.map(o=>os(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function qe(e){return{_custom:{display:e}}}let Ga=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ga++;st({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},a=>{typeof a.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),a.on.inspectComponent((u,d)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),a.on.visitComponentTree(({treeNode:u,componentInstance:d})=>{if(d.__vrv_devtools){const f=d.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Gn})}z(d.__vrl_devtools)&&(d.__devtoolsApi=a,d.__vrl_devtools.forEach(f=>{let h=f.route.path,g=Yn,y="",_=0;f.error?(h=f.error,g=Za,_=es):f.isExactActive?(g=Kn,y="This is exactly active"):f.isActive&&(g=Jn,y="This link is active"),u.tags.push({label:h,textColor:_,tooltip:y,backgroundColor:g})}))}),r.watch(t.currentRoute,()=>{p(),a.notifyComponentUpdate(),a.sendInspectorTree(c),a.sendInspectorState(c)});const s="router:navigations:"+o;a.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((u,d)=>{a.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:a.now(),data:{error:u},groupId:d.meta.__navigationId}})});let i=0;t.beforeEach((u,d)=>{const f={guard:qe("beforeEach"),from:Ce(d,"Current Location during this navigation"),to:Ce(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:i++}),a.addTimelineEvent({layerId:s,event:{time:a.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),t.afterEach((u,d,f)=>{const h={guard:qe("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=qe("❌")):h.status=qe("✅"),h.from=Ce(d,"Current Location during this navigation"),h.to=Ce(u,"Target location"),a.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:u.fullPath,time:a.now(),data:h,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const c="router-inspector:"+o;a.addInspector({id:c,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function p(){if(!l)return;const u=l;let d=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);d.forEach(Zn),u.filter&&(d=d.filter(f=>_t(f,u.filter.toLowerCase()))),d.forEach(f=>Xn(f,t.currentRoute.value)),u.rootNodes=d.map(Qn)}let l;a.on.getInspectorTree(u=>{l=u,u.app===e&&u.inspectorId===c&&p()}),a.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===c){const d=n.getRoutes().find(f=>f.record.__vd_id===u.nodeId);d&&(u.state={options:Ya(d)})}}),a.sendInspectorTree(c),a.sendInspectorState(c)})}function Ka(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Ya(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${Ka(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Gn=15485081,Jn=2450411,Kn=8702998,Qa=2282478,Yn=16486972,Xa=6710886,Za=16704226,es=12131356;function Qn(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Qa}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Yn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Gn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Kn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Jn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Xa});let o=n.__vd_id;return o==null&&(o=String(ts++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Qn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Xn(e,t){const n=t.matched.length&&se(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>se(o,e.record))),e.children.forEach(o=>Xn(o,t))}function Zn(e){e.__vd_match=!1,e.children.forEach(Zn)}function _t(e,t){const n=String(e.re).match(ns);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>_t(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),a=ge(o);return!t.startsWith("/")&&(a.includes(t)||o.includes(t))||a.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>_t(s,t))}function os(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function rs(e){const t=xa(e.routes,e),n=e.parseQuery||Ra,o=e.stringifyQuery||Mn,a=e.history;if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const s=xe(),i=xe(),c=xe(),p=r.shallowRef(ie);let l=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=pt.bind(null,m=>""+m),d=pt.bind(null,ea),f=pt.bind(null,ge);function h(m,b){let w,k;return In(m)?(w=t.getRecordMatcher(m),process.env.NODE_ENV!=="production"&&!w&&N(`Parent route "${String(m)}" not found when adding child route`,b),k=b):k=m,t.addRoute(k,w)}function g(m){const b=t.getRecordMatcher(m);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&N(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function _(m){return!!t.getRecordMatcher(m)}function O(m,b){if(b=D({},b||p.value),typeof m=="string"){const x=mt(n,m,b.path),R=t.resolve({path:x.path},b),fe=a.createHref(x.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?N(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):R.matched.length||N(`No match found for location with path "${m}"`)),D(x,R,{params:f(R.params),hash:ge(x.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!He(m))return N(`router.resolve() was passed an invalid location. This will fail in production.
38
- - Location:`,m),O({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&N(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=D({},m,{path:mt(n,m.path,b.path).path});else{const x=D({},m.params);for(const R in x)x[R]==null&&delete x[R];w=D({},m,{params:d(x)}),b.params=d(b.params)}const k=t.resolve(w,b),V=m.hash||"";process.env.NODE_ENV!=="production"&&V&&!V.startsWith("#")&&N(`A \`hash\` should always start with the character "#". Replace "${V}" with "#${V}".`),k.params=u(f(k.params));const B=oa(o,D({},m,{hash:Qr(V),path:k.path})),P=a.createHref(B);return process.env.NODE_ENV!=="production"&&(P.startsWith("//")?N(`Location "${m}" resolved to "${P}". A resolved location cannot start with multiple slashes.`):k.matched.length||N(`No match found for location with path "${m.path!=null?m.path:m}"`)),D({fullPath:B,hash:V,query:o===Mn?ja(m.query):m.query||{}},k,{redirectedFrom:void 0,href:P})}function S(m){return typeof m=="string"?mt(n,m,p.value.path):D({},m)}function C(m,b){if(l!==m)return ye(8,{from:b,to:m})}function j(m){return $(m)}function I(m){return j(D(S(m),{replace:!0}))}function T(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let k=typeof w=="function"?w(m):w;if(typeof k=="string"&&(k=k.includes("?")||k.includes("#")?k=S(k):{path:k},k.params={}),process.env.NODE_ENV!=="production"&&k.path==null&&!("name"in k))throw N(`Invalid redirect found:
39
- ${JSON.stringify(k,null,2)}
40
- when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return D({query:m.query,hash:m.hash,params:k.path!=null?{}:m.params},k)}}function $(m,b){const w=l=O(m),k=p.value,V=m.state,B=m.force,P=m.replace===!0,x=T(w);if(x)return $(D(S(x),{state:typeof x=="object"?D({},V,x.state):V,force:B,replace:P}),b||w);const R=w;R.redirectedFrom=b;let fe;return!B&&$n(o,k,w)&&(fe=ye(16,{to:R,from:k}),Ho(k,k,!0,!1)),(fe?Promise.resolve(fe):v(R,k)).catch(U=>te(U)?te(U,2)?U:Ft(U):W(U,R,k)).then(U=>{if(U){if(te(U,2))return process.env.NODE_ENV!=="production"&&$n(o,O(U.to),R)&&b&&(b._count=b._count?b._count+1:1)>30?(N(`Detected a possibly infinite redirection in a navigation guard when going from "${k.fullPath}" to "${R.fullPath}". Aborting to avoid a Stack Overflow.
41
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):$(D({replace:P},S(U.to),{state:typeof U.to=="object"?D({},V,U.to.state):V,force:B}),b||R)}else U=F(R,k,!0,P,V);return A(R,k,U),U})}function Q(m,b){const w=C(m,b);return w?Promise.reject(w):Promise.resolve()}function E(m){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[k,V,B]=as(m,b);w=Et(k.reverse(),"beforeRouteLeave",m,b);for(const x of k)x.leaveGuards.forEach(R=>{w.push(ce(R,m,b))});const P=Q.bind(null,m,b);return w.push(P),Ee(w).then(()=>{w=[];for(const x of s.list())w.push(ce(x,m,b));return w.push(P),Ee(w)}).then(()=>{w=Et(V,"beforeRouteUpdate",m,b);for(const x of V)x.updateGuards.forEach(R=>{w.push(ce(R,m,b))});return w.push(P),Ee(w)}).then(()=>{w=[];for(const x of B)if(x.beforeEnter)if(z(x.beforeEnter))for(const R of x.beforeEnter)w.push(ce(R,m,b));else w.push(ce(x.beforeEnter,m,b));return w.push(P),Ee(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=Et(B,"beforeRouteEnter",m,b,E),w.push(P),Ee(w))).then(()=>{w=[];for(const x of i.list())w.push(ce(x,m,b));return w.push(P),Ee(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function A(m,b,w){c.list().forEach(k=>E(()=>k(m,b,w)))}function F(m,b,w,k,V){const B=C(m,b);if(B)return B;const P=b===ie,x=ee?history.state:{};w&&(k||P?a.replace(m.fullPath,D({scroll:P&&x&&x.scroll},V)):a.push(m.fullPath,V)),p.value=m,Ho(m,b,w,P),Ft()}let K;function Re(){K||(K=a.listen((m,b,w)=>{const k=O(m),V=T(k);if(V){$(D(V,{replace:!0}),k).catch(Se);return}l=k;const B=p.value;ee&&da(Nn(B.fullPath,w.delta),Fe()),v(k,B).catch(P=>te(P,12)?P:te(P,2)?($(P.to,k).then(x=>{te(x,20)&&!w.delta&&w.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&a.go(-w.delta,!1),W(P,k,B))).then(P=>{P=P||F(k,B,!1),P&&(w.delta&&!te(P,8)?a.go(-w.delta,!1):w.type===Oe.pop&&te(P,20)&&a.go(-1,!1)),A(k,B,P)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function W(m,b,w){Ft(m);const k=Xe.list();return k.length?k.forEach(V=>V(m,b,w)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function yc(){return X&&p.value!==ie?Promise.resolve():new Promise((m,b)=>{je.add([m,b])})}function Ft(m){return X||(X=!m,Re(),je.list().forEach(([b,w])=>m?w(m):b()),je.reset()),m}function Ho(m,b,w,k){const{scrollBehavior:V}=e;if(!ee||!V)return Promise.resolve();const B=!w&&pa(Nn(m.fullPath,0))||(k||!w)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>V(m,b,B)).then(P=>P&&ua(P)).catch(P=>W(P,m,b))}const Ht=m=>a.go(m);let qt;const Ze=new Set,wc={currentRoute:p,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:y,resolve:O,options:e,push:j,replace:I,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:i.add,afterEach:c.add,onError:Xe.add,isReady:yc,install(m){const b=this;m.component("RouterLink",Wa),m.component("RouterView",Ha),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(p)}),ee&&!qt&&p.value===ie&&(qt=!0,j(a.location).catch(V=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",V)}));const w={};for(const V in ie)Object.defineProperty(w,V,{get:()=>p.value[V],enumerable:!0});m.provide(bt,b),m.provide(Un,r.shallowReactive(w)),m.provide(vt,p);const k=m.unmount;Ze.add(m),m.unmount=function(){Ze.delete(m),Ze.size<1&&(l=ie,K&&K(),K=null,p.value=ie,qt=!1,X=!1),k()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function Ee(m){return m.reduce((b,w)=>b.then(()=>E(w)),Promise.resolve())}return wc}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const c=t.matched[i];c&&(e.matched.find(l=>se(l,c))?o.push(c):n.push(c));const p=e.matched[i];p&&(t.matched.find(l=>se(l,p))||a.push(p))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function Ge(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var cs=Ge,ls="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:ls,averageResponseTime:ms,microSeconds:cs},no=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,oo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var ws=Ge,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(i){return s(i)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(i,c){s.oncomplete=function(){return i()},s.onerror=function(l){return c(l)};var p=s.objectStore(ne);p.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(s);return new Promise(function(p,l){i.onerror=function(u){return l(u)},i.onsuccess=function(u){p(u.target.result)}})}function c(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(p,l){var u=c();u.onerror=function(d){return l(d)},u.onsuccess=function(d){var f=d.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),p(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(i){s.onsuccess=function(){return i()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(i){a.openCursor().onsuccess=function(c){var p=c.target.result;if(p){var l=p.value;l.time<n?(s.push(l),p.continue()):(Ot(o),i(s))}else i(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(e){return e.closed||!e.messagesCallback?we:ks(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return xs(o,e)}).sort(function(o,a){return o.time-a.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Ts=Ge,Rs="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function co(e){return Rs+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=co(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=s,window.dispatchEvent(i),n()})})}function Ls(e,t){var n=co(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!lo())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function lo(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:lo,type:js,averageResponseTime:Fs,microSeconds:Ts},qs=Ge,Gs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.messagesCallback(t)}),n()},5)})}function Qs(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Qs,postMessage:Ys,canBeUsed:Xs,type:Gs,averageResponseTime:Zs,microSeconds:qs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var i=e.method.postMessage(e._state,a);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,i=a.time-s;o.time>=i&&a.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ai(e){if(e._iL&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function ci(e){return Object.prototype.toString.call(e).slice(8,-1)}function li(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function be(e){let t="",n=0;const o=e.length;for(let a=0;a<o;a+=1){const s=e[a],i=li(s);i&&(t+=e.slice(n,a)+i,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,i=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(i)throw new Error("Invalid input");if(s in o)return o[s];const c=n[s];if(!c||typeof c!="object")o[s]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const p=c[0];switch(p){case"Date":o[s]=new Date(c[1]);break;case"Set":const l=new Set;o[s]=l;for(let f=1;f<c.length;f+=1)l.add(a(c[f]));break;case"Map":const u=new Map;o[s]=u;for(let f=1;f<c.length;f+=2)u.set(a(c[f]),a(c[f+1]));break;case"RegExp":o[s]=new RegExp(c[1],c[2]);break;case"Object":o[s]=Object(c[1]);break;case"BigInt":o[s]=BigInt(c[1]);break;case"null":const d=Object.create(null);o[s]=d;for(let f=1;f<c.length;f+=2)d[c[f]]=a(c[f+1]);break;default:throw new Error(`Unknown type ${p}`)}}else{const p=new Array(c.length);o[s]=p;for(let l=0;l<c.length;l+=1){const u=c[l];u!==wo&&(p[l]=a(u))}}else{const p={};o[s]=p;for(const l in c){const u=c[l];p[l]=a(u)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const l in t)a.push({key:l,fn:t[l]});const s=[];let i=0;function c(l){if(typeof l=="function")throw new Ct("Cannot stringify a function",s);if(o.has(l))return o.get(l);if(l===void 0)return It;if(Number.isNaN(l))return bo;if(l===1/0)return vo;if(l===-1/0)return Eo;if(l===0&&1/l<0)return Pt;const u=i++;o.set(l,u);for(const{key:f,fn:h}of a){const g=h(l);if(g)return n[u]=`["${f}",${c(g)}]`,u}let d="";if(yo(l))d=Dt(l);else switch(ci(l)){case"Number":case"String":case"Boolean":d=`["Object",${Dt(l)}]`;break;case"BigInt":d=`["BigInt",${l}]`;break;case"Date":d=`["Date","${isNaN(l.getDate())?"":l.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=l;d=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":d="[";for(let g=0;g<l.length;g+=1)g>0&&(d+=","),g in l?(s.push(`[${g}]`),d+=c(l[g]),s.pop()):d+=wo;d+="]";break;case"Set":d='["Set"';for(const g of l)d+=`,${c(g)}`;d+="]";break;case"Map":d='["Map"';for(const[g,y]of l)s.push(`.get(${yo(g)?Dt(g):"..."})`),d+=`,${c(g)},${c(y)}`,s.pop();d+="]";break;default:if(!ii(l))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(l).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(l)===null){d='["null"';for(const g in l)s.push(`.${g}`),d+=`,${be(g)},${c(l[g])}`,s.pop();d+="]"}else{d="{";let g=!1;for(const y in l)g&&(d+=","),g=!0,s.push(`.${y}`),d+=`${be(y)}:${c(l[y])}`,s.pop();d+="}"}}return n[u]=d,u}const p=c(e);return p<0?`${p}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),i=!1,c=0;r.watch(()=>t[e],u=>{i||(c=Date.now(),s.postMessage({timestamp:c,state:_o(ko(u))})),i=!1},{deep:!0}),s.onmessage=u=>{if(u===void 0){s.postMessage({timestamp:c,state:_o(ko(t[e]))});return}u.timestamp<=c||(i=!0,c=u.timestamp,t[e]=u.state)};let p=()=>s.postMessage(void 0),l=()=>s.close();return n&&p(),{sync:p,unshare:l}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,i;let c=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,p=((i=a==null?void 0:a.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(l=>{var u;p.includes(l)||!pi(l,o.$state)||di(l,o,{initialize:((u=a==null?void 0:a.share)==null?void 0:u.initialize)??e,type:n})})};Tr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,i)=>{const p=t.value.store.record[s.fieldname];a[i].value=p}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[Pe(t),Vt(a)],([u,d])=>{if(i(),!u)return;const f=bi(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return So(l),l}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const i=_i(()=>o&&"MutationObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),l=r.watch(()=>p.value,f=>{c(),i.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),d=()=>{l(),c()};return So(d),{isSupported:i,stop:d,takeRecords:u}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var l;let u=s==null?void 0:s.activeElement;if(o)for(;u!=null&&u.shadowRoot;)u=(l=u==null?void 0:u.shadowRoot)==null?void 0:l.activeElement;return u},c=r.ref(),p=()=>{c.value=i()};return n&&(De(n,"blur",l=>{l.relatedTarget===null&&p()},!0),De(n,"focus",p,!0)),a&&ki(s,l=>{l.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===c.value&&p()})},{childList:!0,subtree:!0}),p(),c}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),i=$i(t);return!n||!i.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,i=Pe(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||s.documentElement.clientHeight)&&c.left<=(t.innerWidth||s.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,Oo=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Tt(o):o},No=e=>{const t=e.target;return Tt(t)},Tt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Tt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?Rt(n):n},Co=e=>{const t=e.target;return jt(t)},jt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?jt(n):n},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let p=[];if(typeof i.selectors=="string")p=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const l of i.selectors)l instanceof HTMLElement?p.push(l):p.push(l.$el);else if(i.selectors instanceof HTMLElement)p.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const l of i.selectors.value)l instanceof HTMLElement?p.push(l):p.push(l.$el);else p.push(i.selectors.value);return p},o=i=>{const c=t(i);let p=[];return i.selectors?p=n(i):c&&(p=Array.from(c.children).filter(l=>re(l)&&oe(l))),p},a=i=>c=>{const p=Pi[c.key]||c.key.toLowerCase();if(Ke.includes(p))return;const l=i.handlers||Bt;for(const u of Object.keys(l)){const[d,...f]=u.split(".");if(d==="keydown"&&f.includes(p)){const h=l[u],g=f.filter(_=>Ke.includes(_)),y=Ke.some(_=>{const O=_.charAt(0).toUpperCase()+_.slice(1);return c.getModifierState(O)});if(g.length>0){if(y){for(const _ of Ke)if(f.includes(_)){const O=_.charAt(0).toUpperCase()+_.slice(1);c.getModifierState(O)&&h(c)}}}else y||h(c)}}},s=[];r.onMounted(()=>{for(const i of e){const c=t(i),p=o(i),l=a(i),u=c?[c]:p;for(const d of u){const{focused:f}=Ni(r.ref(d)),h=r.watch(f,g=>{g?d.addEventListener("keydown",l):d.removeEventListener("keydown",l)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of s)i()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ti=e=>Ai.call(e)==="[object Object]",Ri=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[ve(t),Ye(a)],([u,d])=>{if(i(),!u)return;const f=Ti(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return Lt(l),l}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function To(e,t,n={}){const{window:o=Mt,...a}=n;let s;const i=Ao(()=>o&&"MutationObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),l=r.watch(()=>p.value,f=>{c(),i.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),d=()=>{l(),c()};return Lt(d),{isSupported:i,stop:d,takeRecords:u}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const i=Ao(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const d=Ye(e);return Array.isArray(d)?d.map(f=>ve(f)):[ve(d)]}),l=r.watch(p,d=>{if(c(),i.value&&o){s=new ResizeObserver(t);for(const f of d)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{c(),l()};return Lt(u),{isSupported:i,stop:u}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:i="sync"}=t,c=r.ref(0),p=r.ref(0),l=r.ref(0),u=r.ref(0),d=r.ref(0),f=r.ref(0),h=r.ref(0),g=r.ref(0);function y(){const O=ve(e);if(!O){n&&(c.value=0,p.value=0,l.value=0,u.value=0,d.value=0,f.value=0,h.value=0,g.value=0);return}const S=O.getBoundingClientRect();c.value=S.height,p.value=S.bottom,l.value=S.left,u.value=S.right,d.value=S.top,f.value=S.width,h.value=S.x,g.value=S.y}function _(){i==="sync"?y():i==="next-frame"&&requestAnimationFrame(()=>y())}return Mi(e,_),r.watch(()=>ve(e),O=>!O&&_()),To(e,_,{attributeFilter:["style","class"]}),a&&Vo("scroll",_,{capture:!0,passive:!0}),o&&Vo("resize",_,{passive:!0}),Bi(()=>{s&&_()}),{height:c,bottom:p,left:l,right:u,top:d,width:f,x:h,y:g,update:_}}const Ui=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},zi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Fi=["innerHTML"],Hi={key:2},qi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("cell"),{bottom:o,left:a}=Wi(n),s=t.cellData(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),p=t.table,l=t.columns[e.colIndex],u=t.rows[e.rowIndex],d=l.align||"center",f=l.width||"40ch",h=r.computed(()=>typeof y.value=="string"?Ui(y.value):!1),g=r.computed(()=>{var I;return{textAlign:d,width:f,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:j(e.colIndex,(I=t.display[e.rowIndex])==null?void 0:I.indent)}}),y=r.computed(()=>{const I=t.cellData(e.colIndex,e.rowIndex);return _(I)}),_=I=>{const T=l.format;return T?typeof T=="function"?T(I,{table:p,row:u,column:l}):typeof T=="string"?Function(`"use strict";return (${T})`)()(I,{table:p,row:u,column:l}):I:I},O=()=>{l.mask,l.modalComponent&&(t.modal.visible=!0,t.modal.colIndex=e.colIndex,t.modal.rowIndex=e.rowIndex,t.modal.parent=n.value,t.modal.top=o.value,t.modal.left=a.value,t.modal.width=f,typeof l.modalComponent=="function"?t.modal.component=l.modalComponent({table:p,row:u,column:l}):t.modal.component=l.modalComponent,t.modal.componentProps=l.modalComponentExtraProps)};if(e.addNavigation){let I={...Bt,"keydown.f2":O,"keydown.alt.up":O,"keydown.alt.down":O,"keydown.alt.left":O,"keydown.alt.right":O};typeof e.addNavigation=="object"&&(I={...I,...e.addNavigation}),Do([{selectors:n,handlers:I}])}const S=()=>{n.value&&(i.value=n.value.textContent)},C=()=>{n.value&&(l.format?c.value=n.value.textContent!==_(s):c.value=n.value.textContent!==s,n.value.textContent!==i.value&&(i.value=n.value.textContent,n.value.dispatchEvent(new Event("change")),l.format||t.setCellData(e.rowIndex,e.colIndex,i.value)))},j=(I,T)=>T&&I===0&&T>0?`${T}ch`:"inherit";return(I,T)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":I.colIndex,"data-rowindex":I.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:I.tabIndex,spellcheck:!1,style:r.normalizeStyle(g.value),onFocus:S,onPaste:C,onBlur:C,onInput:C,onClick:O,onMousedown:O,class:r.normalizeClass(["atable-cell",I.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:y.value},r.unref(l).cellComponentProps),null,16,["value"])):h.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:y.value},null,8,Fi)):(r.openBlock(),r.createElementBlock("span",Hi,r.toDisplayString(y.value),1))],46,zi))}}),Gi=["tabindex"],Ji=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(c=>c.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),i=c=>{t.toggleRowExpand(c)};if(e.addNavigation){let c=Bt;typeof e.addNavigation=="object"&&(c={...c,...e.addNavigation}),Do([{selectors:n,handlers:c}])}return(c,p)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:c.tabIndex,class:"table-row"},[r.unref(t).config.view!=="uncounted"?r.renderSlot(c.$slots,"index",{key:0},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(c.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:p[0]||(p[0]=l=>i(c.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(c.$slots,"default")],8,Gi)),[[r.vShow,a.value]])}});function Ro(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ki=Object.prototype.toString,Yi=e=>Ki.call(e)==="[object Object]",Ae=()=>{},Wt=Qi();function Qi(){var e,t;return jo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Te(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[Te(t),Ve(a)],([u,d])=>{if(i(),!u)return;const f=Yi(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return Ro(l),l}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(u=>u.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let c=!0;const p=u=>a.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Te(d);return f&&(u.target===f||u.composedPath().includes(f))}}),l=[Qe(o,"click",u=>{const d=Te(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(c=!p(u)),!c){c=!0;return}t(u)}},{passive:!0,capture:s}),Qe(o,"pointerdown",u=>{const d=Te(e);c=!p(u)&&!!(d&&!u.composedPath().includes(d))},{passive:!0}),i&&Qe(o,"blur",u=>{setTimeout(()=>{var d;const f=Te(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>l.forEach(u=>u())}const Zi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Uo(n)}}function ec(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function tc(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Xi(e),c=>{const p=Ut(Ve(c));if(p){const l=p;if(zt.get(l)||zt.set(l,l.style.overflow),l.style.overflow!=="hidden"&&(a=l.style.overflow),l.style.overflow==="hidden")return n.value=!0;if(n.value)return l.style.overflow="hidden"}},{immediate:!0});const s=()=>{const c=Ut(Ve(e));!c||n.value||(Wt&&(o=Qe(c,"touchmove",p=>{ec(p)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Ut(Ve(e));!c||!n.value||(Wt&&(o==null||o()),c.style.overflow=a,zt.delete(c),n.value=!1)};return Ro(i),r.computed({get(){return n.value},set(c){c?s():i()}})}function nc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=tc(n,o.value);r.watch(t,s=>a.value=s)}}nc();class oc{constructor(t,n,o,a,s,i){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(i),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{rowModified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,rowModified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){const a=`${n}:${t}`,s=this.columns[n];return this.table[a]!==o&&(this.display[t].rowModified=!0),this.table[a]=o,this.rows[t][s.name]=o,this.table[a]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const rc={key:0,id:"resizable"},ac={class:"atable-header-row",tabindex:"-1"},sc=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",rc,[r.createElementVNode("tr",ac,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[n.value?"sticky-index":"",r.unref(t).config.view==="tree"?"tree-index":"",r.unref(t).config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(i,c)=>(r.openBlock(),r.createElementBlock("th",{key:i.name,tabindex:"-1",style:r.normalizeStyle(o(i)),class:r.normalizeClass(i.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(i.label||String.fromCharCode(c+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),ic=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),cc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=n,a=r.useTemplateRef("table"),s=e.modelValue?e.modelValue:e.rows,i=new oc(e.id,e.columns,s,e.config);r.provide(i.id,i),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&To(a,c,{childList:!0,subtree:!0}))});const c=()=>{const l=a.value,u=l.rows[0],d=l.rows[1],f=u?Array.from(u.cells):[];for(const[h,g]of f.entries()){const y=d.cells[h];y&&(g.style.width=`${y.offsetWidth}px`)}for(const h of l.rows){let g=0;const y=[];for(const _ of h.cells)(_.classList.contains("sticky-column")||_.classList.contains("sticky-index"))&&(_.style.left=`${g}px`,g+=_.offsetWidth,y.push(_));y.length>0&&y[y.length-1].classList.add("sticky-column-edge")}},p=l=>{var u;l.target instanceof Node&&(u=i.modal.parent)!=null&&u.contains(l.target)||i.modal.visible&&(i.modal.visible=!1)};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const u=i.modal.parent;u&&r.nextTick().then(()=>{u.focus()})}}),t({tableData:i}),(l,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(sc,{columns:r.unref(i).columns,tableid:r.unref(i).id},null,8,["columns","tableid"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,f)=>(r.openBlock(),r.createBlock(Ji,{key:d.id,row:d,rowIndex:f,tableid:r.unref(i).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(h,g)=>(r.openBlock(),r.createBlock(qi,{key:h.name,tableid:r.unref(i).id,col:h,spellcheck:"false",pinned:h.pinned,rowIndex:f,colIndex:g,component:h.cellComponent,style:r.normalizeStyle({textAlign:(h==null?void 0:h.align)||"center",minWidth:(h==null?void 0:h.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(ic,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,tableid:r.unref(i).id,style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,tableid:r.unref(i).id},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4)),[[r.unref(Zi),p]])}}),lc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},uc=lc(cc,[["__scopeId","data-v-183c4dd3"]]),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(uc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),dc={class:"tabs"},pc={tabindex:"0"},fc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},hc={tabindex:"0"},mc={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},p=d=>{d.preventDefault(),d.stopPropagation()},l=async d=>{d.preventDefault(),d.stopPropagation(),await c()},u=()=>{};return(d,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",dc,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",pc,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:u,onKeydown:r.withKeys(u,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",fc,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
37
+ </router-view>`)}}function Ae(e,t){const n=A({},e,{matched:e.matched.map(o=>ka(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Ze(e){return{_custom:{display:e}}}let fa=0;function ha(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=fa++;ht({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((d,u)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ae(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:d,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:so})}G(u.__vrl_devtools)&&(u.__devtoolsApi=s,u.__vrl_devtools.forEach(f=>{let h=f.route.path,m=co,E="",O=0;f.error?(h=f.error,m=ba,O=va):f.isExactActive?(m=io,E="This is exactly active"):f.isActive&&(m=ao,E="This link is active"),d.tags.push({label:h,textColor:O,tooltip:E,backgroundColor:m})}))}),r.watch(t.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(c),s.sendInspectorState(c)});const a="router:navigations:"+o;s.addTimelineLayer({id:a,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,u)=>{s.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:s.now(),data:{error:d},groupId:u.meta.__navigationId}})});let i=0;t.beforeEach((d,u)=>{const f={guard:Ze("beforeEach"),from:Ae(u,"Current Location during this navigation"),to:Ae(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:a,event:{time:s.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,u,f)=>{const h={guard:Ze("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Ze("❌")):h.status=Ze("✅"),h.from=Ae(u,"Current Location during this navigation"),h.to=Ae(d,"Target location"),s.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:d.fullPath,time:s.now(),data:h,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const c="router-inspector:"+o;s.addInspector({id:c,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!p)return;const d=p;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(po),d.filter&&(u=u.filter(f=>Pt(f,d.filter.toLowerCase()))),u.forEach(f=>uo(f,t.currentRoute.value)),d.rootNodes=u.map(lo)}let p;s.on.getInspectorTree(d=>{p=d,d.app===e&&d.inspectorId===c&&l()}),s.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===c){const u=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);u&&(d.state={options:ga(u)})}}),s.sendInspectorTree(c),s.sendInspectorState(c)})}function ma(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function ga(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${ma(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const so=15485081,ao=2450411,io=8702998,ya=2282478,co=16486972,wa=6710886,ba=16704226,va=12131356;function lo(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:ya}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:co}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:so}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:io}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:ao}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:wa});let o=n.__vd_id;return o==null&&(o=String(Ea++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(lo)}}let Ea=0;const _a=/^\/(.*)\/([a-z]*)$/;function uo(e,t){const n=t.matched.length&&de(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>de(o,e.record))),e.children.forEach(o=>uo(o,t))}function po(e){e.__vd_match=!1,e.children.forEach(po)}function Pt(e,t){const n=String(e.re).match(_a);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Pt(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),s=ve(o);return!t.startsWith("/")&&(s.includes(t)||o.includes(t))||s.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Pt(a,t))}function ka(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function Na(e){const t=qs(e.routes,e),n=e.parseQuery||ta,o=e.stringifyQuery||Xn,s=e.history;if(process.env.NODE_ENV!=="production"&&!s)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=Re(),i=Re(),c=Re(),l=r.shallowRef(pe);let p=pe;oe&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=vt.bind(null,y=>""+y),u=vt.bind(null,ws),f=vt.bind(null,ve);function h(y,k){let _,S;return Un(y)?(_=t.getRecordMatcher(y),process.env.NODE_ENV!=="production"&&!_&&P(`Parent route "${String(y)}" not found when adding child route`,k),S=k):S=y,t.addRoute(S,_)}function m(y){const k=t.getRecordMatcher(y);k?t.removeRoute(k):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(y)}"`)}function E(){return t.getRoutes().map(y=>y.record)}function O(y){return!!t.getRecordMatcher(y)}function N(y,k){if(k=A({},k||l.value),typeof y=="string"){const D=kt(n,y,k.path),W=t.resolve({path:D.path},k),ye=s.createHref(D.fullPath);return process.env.NODE_ENV!=="production"&&(ye.startsWith("//")?P(`Location "${y}" resolved to "${ye}". A resolved location cannot start with multiple slashes.`):W.matched.length||P(`No match found for location with path "${y}"`)),A(D,W,{params:f(W.params),hash:ve(D.hash),redirectedFrom:void 0,href:ye})}if(process.env.NODE_ENV!=="production"&&!Xe(y))return P(`router.resolve() was passed an invalid location. This will fail in production.
38
+ - Location:`,y),N({});let _;if(y.path!=null)process.env.NODE_ENV!=="production"&&"params"in y&&!("name"in y)&&Object.keys(y.params).length&&P(`Path "${y.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),_=A({},y,{path:kt(n,y.path,k.path).path});else{const D=A({},y.params);for(const W in D)D[W]==null&&delete D[W];_=A({},y,{params:u(D)}),k.params=u(k.params)}const S=t.resolve(_,k),T=y.hash||"";process.env.NODE_ENV!=="production"&&T&&!T.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`),S.params=d(f(S.params));const U=Es(o,A({},y,{hash:ms(T),path:S.path})),R=s.createHref(U);return process.env.NODE_ENV!=="production"&&(R.startsWith("//")?P(`Location "${y}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):S.matched.length||P(`No match found for location with path "${y.path!=null?y.path:y}"`)),A({fullPath:U,hash:T,query:o===Xn?na(y.query):y.query||{}},S,{redirectedFrom:void 0,href:R})}function x(y){return typeof y=="string"?kt(n,y,l.value.path):A({},y)}function I(y,k){if(p!==y)return Ee(8,{from:k,to:y})}function B(y){return w(y)}function $(y){return B(A(x(y),{replace:!0}))}function C(y){const k=y.matched[y.matched.length-1];if(k&&k.redirect){const{redirect:_}=k;let S=typeof _=="function"?_(y):_;if(typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=x(S):{path:S},S.params={}),process.env.NODE_ENV!=="production"&&S.path==null&&!("name"in S))throw P(`Invalid redirect found:
39
+ ${JSON.stringify(S,null,2)}
40
+ when navigating to "${y.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return A({query:y.query,hash:y.hash,params:S.path!=null?{}:y.params},S)}}function w(y,k){const _=p=N(y),S=l.value,T=y.state,U=y.force,R=y.replace===!0,D=C(_);if(D)return w(A(x(D),{state:typeof D=="object"?A({},T,D.state):T,force:U,replace:R}),k||_);const W=_;W.redirectedFrom=k;let ye;return!U&&Tn(o,S,_)&&(ye=Ee(16,{to:W,from:S}),lr(S,S,!0,!1)),(ye?Promise.resolve(ye):g(W,S)).catch(H=>re(H)?re(H,2)?H:nn(H):M(H,W,S)).then(H=>{if(H){if(re(H,2))return process.env.NODE_ENV!=="production"&&Tn(o,N(H.to),W)&&k&&(k._count=k._count?k._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${S.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
41
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):w(A({replace:R},x(H.to),{state:typeof H.to=="object"?A({},T,H.to.state):T,force:U}),k||W)}else H=V(W,S,!0,R,T);return b(W,S,H),H})}function j(y,k){const _=I(y,k);return _?Promise.reject(_):Promise.resolve()}function v(y){const k=it.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(y):y()}function g(y,k){let _;const[S,T,U]=$a(y,k);_=Ct(S.reverse(),"beforeRouteLeave",y,k);for(const D of S)D.leaveGuards.forEach(W=>{_.push(fe(W,y,k))});const R=j.bind(null,y,k);return _.push(R),Se(_).then(()=>{_=[];for(const D of a.list())_.push(fe(D,y,k));return _.push(R),Se(_)}).then(()=>{_=Ct(T,"beforeRouteUpdate",y,k);for(const D of T)D.updateGuards.forEach(W=>{_.push(fe(W,y,k))});return _.push(R),Se(_)}).then(()=>{_=[];for(const D of U)if(D.beforeEnter)if(G(D.beforeEnter))for(const W of D.beforeEnter)_.push(fe(W,y,k));else _.push(fe(D.beforeEnter,y,k));return _.push(R),Se(_)}).then(()=>(y.matched.forEach(D=>D.enterCallbacks={}),_=Ct(U,"beforeRouteEnter",y,k,v),_.push(R),Se(_))).then(()=>{_=[];for(const D of i.list())_.push(fe(D,y,k));return _.push(R),Se(_)}).catch(D=>re(D,8)?D:Promise.reject(D))}function b(y,k,_){c.list().forEach(S=>v(()=>S(y,k,_)))}function V(y,k,_,S,T){const U=I(y,k);if(U)return U;const R=k===pe,D=oe?history.state:{};_&&(S||R?s.replace(y.fullPath,A({scroll:R&&D&&D.scroll},T)):s.push(y.fullPath,T)),l.value=y,lr(y,k,_,R),nn()}let L;function ee(){L||(L=s.listen((y,k,_)=>{const S=N(y),T=C(S);if(T){w(A(T,{replace:!0,force:!0}),S).catch(Ve);return}p=S;const U=l.value;oe&&Cs(Ln(U.fullPath,_.delta),Qe()),g(S,U).catch(R=>re(R,12)?R:re(R,2)?(w(A(x(R.to),{force:!0}),S).then(D=>{re(D,20)&&!_.delta&&_.type===De.pop&&s.go(-1,!1)}).catch(Ve),Promise.reject()):(_.delta&&s.go(-_.delta,!1),M(R,S,U))).then(R=>{R=R||V(S,U,!1),R&&(_.delta&&!re(R,8)?s.go(-_.delta,!1):_.type===De.pop&&re(R,20)&&s.go(-1,!1)),b(S,U,R)}).catch(Ve)}))}let ce=Re(),Oe=Re(),X;function M(y,k,_){nn(y);const S=Oe.list();return S.length?S.forEach(T=>T(y,k,_)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(y)),Promise.reject(y)}function q(){return X&&l.value!==pe?Promise.resolve():new Promise((y,k)=>{ce.add([y,k])})}function nn(y){return X||(X=!y,ee(),ce.list().forEach(([k,_])=>y?_(y):k()),ce.reset()),y}function lr(y,k,_,S){const{scrollBehavior:T}=e;if(!oe||!T)return Promise.resolve();const U=!_&&Ps(Ln(y.fullPath,0))||(S||!_)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>T(y,k,U)).then(R=>R&&xs(R)).catch(R=>M(R,y,k))}const on=y=>s.go(y);let rn;const it=new Set,Wc={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:O,getRoutes:E,resolve:N,options:e,push:B,replace:$,go:on,back:()=>on(-1),forward:()=>on(1),beforeEach:a.add,beforeResolve:i.add,afterEach:c.add,onError:Oe.add,isReady:q,install(y){const k=this;y.component("RouterLink",ia),y.component("RouterView",da),y.config.globalProperties.$router=k,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(l)}),oe&&!rn&&l.value===pe&&(rn=!0,B(s.location).catch(T=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",T)}));const _={};for(const T in pe)Object.defineProperty(_,T,{get:()=>l.value[T],enumerable:!0});y.provide(St,k),y.provide(eo,r.shallowReactive(_)),y.provide(xt,l);const S=y.unmount;it.add(y),y.unmount=function(){it.delete(y),it.size<1&&(p=pe,L&&L(),L=null,l.value=pe,rn=!1,X=!1),S()},process.env.NODE_ENV!=="production"&&oe&&ha(y,k,t)}};function Se(y){return y.reduce((k,_)=>k.then(()=>v(_)),Promise.resolve())}return Wc}function $a(e,t){const n=[],o=[],s=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const c=t.matched[i];c&&(e.matched.find(p=>de(p,c))?o.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(p=>de(p,l))||s.push(l))}return[n,o,s]}Na({history:Rs(),routes:[]});function Oa(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var _e=Promise.resolve();function fo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Sa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Vt(){return Math.random().toString(36).substring(2)}var ho=0,Dt=0;function et(){var e=new Date().getTime();return e===ho?(Dt++,e*1e3+Dt):(ho=e,Dt=0,e*1e3)}var xa=et,Ca="native";function Pa(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Va(e){e.bc.close(),e.subFns=[]}function Da(e,t){try{return e.bc.postMessage(t,!1),_e}catch(n){return Promise.reject(n)}}function Ia(e,t){e.messagesCallback=t}function Ra(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Aa(){return 150}var Ta={create:Pa,close:Va,onMessage:Ia,postMessage:Da,canBeUsed:Ra,type:Ca,averageResponseTime:Aa,microSeconds:xa},mo=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,go()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ja(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ja(e){for(var t=go()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var s=o[0],a=o[1];if(a<t)e.map.delete(s);else return}}function go(){return new Date().getTime()}function It(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var Ba=et,La="pubkey.broadcast-channel-0-",se="messages",tt={durability:"relaxed"},Ma="idb";function yo(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Rt(e){e.commit&&e.commit()}function Wa(e){var t=yo(),n=La+e,o=t.open(n);return o.onupgradeneeded=function(s){var a=s.target.result;a.createObjectStore(se,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,a){o.onerror=function(i){return a(i)},o.onsuccess=function(){s(o.result)}})}function Ua(e,t,n){var o=new Date().getTime(),s={uuid:t,time:o,data:n},a=e.transaction([se],"readwrite",tt);return new Promise(function(i,c){a.oncomplete=function(){return i()},a.onerror=function(p){return c(p)};var l=a.objectStore(se);l.add(s),Rt(a)})}function Fa(e,t){var n=e.transaction(se,"readonly",tt),o=n.objectStore(se),s=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(a);return new Promise(function(l,p){i.onerror=function(d){return p(d)},i.onsuccess=function(d){l(d.target.result)}})}function c(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(l,p){var d=c();d.onerror=function(u){return p(u)},d.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(s.push(f.value),f.continue()):(Rt(n),l(s))}})}function za(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(se,"readwrite",tt),o=n.objectStore(se);return Promise.all(t.map(function(s){var a=o.delete(s);return new Promise(function(i){a.onsuccess=function(){return i()}})}))}function Ha(e,t){var n=new Date().getTime()-t,o=e.transaction(se,"readonly",tt),s=o.objectStore(se),a=[];return new Promise(function(i){s.openCursor().onsuccess=function(c){var l=c.target.result;if(l){var p=l.value;p.time<n?(a.push(p),l.continue()):(Rt(o),i(a))}else i(a)}})}function qa(e){return Ha(e.db,e.options.idb.ttl).then(function(t){return za(e,t.map(function(n){return n.id}))})}function Ga(e,t){return t=It(t),Wa(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Vt(),eMIs:new mo(t.idb.ttl*2),writeBlockPromise:_e,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},wo(o),o})}function wo(e){e.closed||bo(e).then(function(){return fo(e.options.idb.fallbackInterval)}).then(function(){return wo(e)})}function Ja(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function bo(e){return e.closed||!e.messagesCallback?_e:Fa(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ja(o,e)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),_e})}function Ya(e){e.closed=!0,e.db.close()}function Ka(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return Ua(e.db,e.uuid,t)}).then(function(){Sa(0,10)===0&&qa(e)}),e.writeBlockPromise}function Qa(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,bo(e)}function Xa(){return!!yo()}function Za(e){return e.idb.fallbackInterval*2}var ei={create:Ga,close:Ya,onMessage:Qa,postMessage:Ka,canBeUsed:Xa,type:Ma,averageResponseTime:Za,microSeconds:Ba},ti=et,ni="pubkey.broadcastChannel-",oi="localstorage";function vo(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Eo(e){return ni+e}function ri(e,t){return new Promise(function(n){fo().then(function(){var o=Eo(e.channelName),s={token:Vt(),time:new Date().getTime(),data:t,uuid:e.uuid},a=JSON.stringify(s);vo().setItem(o,a);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=a,window.dispatchEvent(i),n()})})}function si(e,t){var n=Eo(e),o=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ai(e){window.removeEventListener("storage",e)}function ii(e,t){if(t=It(t),!_o())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Vt(),o=new mo(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:o};return s.listener=si(e,function(a){s.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<s.messagesCallbackTime||(o.add(a.token),s.messagesCallback(a.data)))}),s}function ci(e){ai(e.listener)}function li(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function _o(){var e=vo();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function ui(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var di={create:ii,close:ci,onMessage:li,postMessage:ri,canBeUsed:_o,type:oi,averageResponseTime:ui,microSeconds:ti},pi=et,fi="simulate",At=new Set;function hi(e){var t={name:e,messagesCallback:null};return At.add(t),t}function mi(e){At.delete(e)}function gi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(At);o.filter(function(s){return s.name===e.name}).filter(function(s){return s!==e}).filter(function(s){return!!s.messagesCallback}).forEach(function(s){return s.messagesCallback(t)}),n()},5)})}function yi(e,t){e.messagesCallback=t}function wi(){return!0}function bi(){return 5}var vi={create:hi,close:mi,onMessage:yi,postMessage:gi,canBeUsed:wi,type:fi,averageResponseTime:bi,microSeconds:pi},ko=[Ta,ei,di];function Ei(e){var t=[].concat(e.methods,ko).filter(Boolean);if(e.type){if(e.type==="simulate")return vi;var n=t.find(function(s){return s.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(s){return s.type!=="idb"}));var o=t.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(ko.map(function(s){return s.type})))}var No=new Set,_i=0,Tt=function(e,t){this.id=_i++,No.add(this),this.name=e,this.options=It(t),this.method=Ei(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,ki(this)};Tt._pubkey=!0,Tt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return $o(this,"message",e)},postInternal:function(e){return $o(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};xo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,So(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};So(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});xo(this,e,n)},close:function(){var e=this;if(!this.closed){No.delete(this),this.closed=!0;var t=this._prepP?this._prepP:_e;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function $o(e,t,n){var o=e.method.microSeconds(),s={time:o,type:t,data:n},a=e._prepP?e._prepP:_e;return a.then(function(){var i=e.method.postMessage(e._state,s);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function ki(e){var t=e.method.create(e.name,e.options);Oa(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function Oo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function So(e,t,n){e._addEL[t].push(n),Ni(e)}function xo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),$i(e)}function Ni(e){if(!e._iL&&Oo(e)){var t=function(o){e._addEL[o.type].forEach(function(s){var a=1e5,i=s.time-a;o.time>=i&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function $i(e){if(e._iL&&!Oo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let jt=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function Co(e){return Object(e)!==e}const Oi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Si(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Oi}function xi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ci(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function ke(e){let t="",n=0;const o=e.length;for(let s=0;s<o;s+=1){const a=e[s],i=Ci(a);i&&(t+=e.slice(n,s)+i,n=s+1)}return`"${n===0?e:t+e.slice(n)}"`}const Bt=-1,Po=-2,Vo=-3,Do=-4,Io=-5,Lt=-6;function Ro(e,t){return Pi(JSON.parse(e))}function Pi(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function s(a,i=!1){if(a===Bt)return;if(a===Vo)return NaN;if(a===Do)return 1/0;if(a===Io)return-1/0;if(a===Lt)return-0;if(i)throw new Error("Invalid input");if(a in o)return o[a];const c=n[a];if(!c||typeof c!="object")o[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0];switch(l){case"Date":o[a]=new Date(c[1]);break;case"Set":const p=new Set;o[a]=p;for(let f=1;f<c.length;f+=1)p.add(s(c[f]));break;case"Map":const d=new Map;o[a]=d;for(let f=1;f<c.length;f+=2)d.set(s(c[f]),s(c[f+1]));break;case"RegExp":o[a]=new RegExp(c[1],c[2]);break;case"Object":o[a]=Object(c[1]);break;case"BigInt":o[a]=BigInt(c[1]);break;case"null":const u=Object.create(null);o[a]=u;for(let f=1;f<c.length;f+=2)u[c[f]]=s(c[f+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(c.length);o[a]=l;for(let p=0;p<c.length;p+=1){const d=c[p];d!==Po&&(l[p]=s(d))}}else{const l={};o[a]=l;for(const p in c){const d=c[p];l[p]=s(d)}}return o[a]}return s(0)}function Ao(e,t){const n=[],o=new Map,s=[];for(const p in t)s.push({key:p,fn:t[p]});const a=[];let i=0;function c(p){if(typeof p=="function")throw new jt("Cannot stringify a function",a);if(o.has(p))return o.get(p);if(p===void 0)return Bt;if(Number.isNaN(p))return Vo;if(p===1/0)return Do;if(p===-1/0)return Io;if(p===0&&1/p<0)return Lt;const d=i++;o.set(p,d);for(const{key:f,fn:h}of s){const m=h(p);if(m)return n[d]=`["${f}",${c(m)}]`,d}let u="";if(Co(p))u=Mt(p);else switch(xi(p)){case"Number":case"String":case"Boolean":u=`["Object",${Mt(p)}]`;break;case"BigInt":u=`["BigInt",${p}]`;break;case"Date":u=`["Date","${isNaN(p.getDate())?"":p.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=p;u=h?`["RegExp",${ke(f)},"${h}"]`:`["RegExp",${ke(f)}]`;break;case"Array":u="[";for(let m=0;m<p.length;m+=1)m>0&&(u+=","),m in p?(a.push(`[${m}]`),u+=c(p[m]),a.pop()):u+=Po;u+="]";break;case"Set":u='["Set"';for(const m of p)u+=`,${c(m)}`;u+="]";break;case"Map":u='["Map"';for(const[m,E]of p)a.push(`.get(${Co(m)?Mt(m):"..."})`),u+=`,${c(m)},${c(E)}`,a.pop();u+="]";break;default:if(!Si(p))throw new jt("Cannot stringify arbitrary non-POJOs",a);if(Object.getOwnPropertySymbols(p).length>0)throw new jt("Cannot stringify POJOs with symbolic keys",a);if(Object.getPrototypeOf(p)===null){u='["null"';for(const m in p)a.push(`.${m}`),u+=`,${ke(m)},${c(p[m])}`,a.pop();u+="]"}else{u="{";let m=!1;for(const E in p)m&&(u+=","),m=!0,a.push(`.${E}`),u+=`${ke(E)}:${c(p[E])}`,a.pop();u+="}"}}return n[d]=u,d}const l=c(e);return l<0?`${l}`:`[${n.join(",")}]`}function Mt(e){const t=typeof e;return t==="string"?ke(e):e instanceof String?ke(e.toString()):e===void 0?Bt.toString():e===0&&1/e<0?Lt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Vi(e,t,{initialize:n,type:o}){let s=`${t.$id}-${e.toString()}`,a=new Tt(s,{type:o}),i=!1,c=0;r.watch(()=>t[e],d=>{i||(c=Date.now(),a.postMessage({timestamp:c,state:Ro(Ao(d))})),i=!1},{deep:!0}),a.onmessage=d=>{if(d===void 0){a.postMessage({timestamp:c,state:Ro(Ao(t[e]))});return}d.timestamp<=c||(i=!0,c=d.timestamp,t[e]=d.state)};let l=()=>a.postMessage(void 0),p=()=>a.close();return n&&l(),{sync:l,unshare:p}}var Di=(e,t)=>Object.keys(t).includes(e),Ii=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:s})=>{var a,i;let c=((a=s==null?void 0:s.share)==null?void 0:a.enable)??t,l=((i=s==null?void 0:s.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(p=>{var d;l.includes(p)||!Di(p,o.$state)||Vi(p,o,{initialize:((d=s==null?void 0:s.share)==null?void 0:d.initialize)??e,type:n})})};Zr().use(Ii({enable:!0,initialize:!0}));const To=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=xn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let s=t.value.schema.schema.toArray();s.forEach((a,i)=>{const l=t.value.store.record[a.fieldname];s[i].value=l}),o.value=s}}),(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref($r),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var Ri=!1;function nt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Wt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
43
+ * pinia v2.3.0
44
+ * (c) 2024 Eduardo San Martin Morote
45
+ * @license MIT
46
+ */let Te;const ot=e=>Te=e,Ai=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ge(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var je;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(je||(je={}));const Be=typeof window<"u";function jo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];ge(s)&&ge(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=jo(s,o):e[n]=o}return e}const Bo=()=>{};function Lo(e,t,n,o=Bo){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function Ne(e,...t){e.slice().forEach(n=>{n(...t)})}const Ti=e=>e(),Mo=Symbol(),Ut=Symbol();function Ft(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];ge(s)&&ge(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ft(s,o):e[n]=o}return e}const ji=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Bi(e){return!ge(e)||!e.hasOwnProperty(ji)}const{assign:Q}=Object;function Wo(e){return!!(r.isRef(e)&&e.effect)}function Uo(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Q(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{ot(n);const h=n._s.get(e);return i[f].call(h,h)})),u),{}))}return l=zt(e,p,t,n,o,!0),l}function zt(e,t,n={},o,s,a){let i;const c=Q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Ri&&(l.onTrigger=g=>{p?h=g:p==!1&&!w._hotUpdating&&(Array.isArray(h)?h.push(g):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],h;const m=o.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const E=r.ref({});let O;function N(g){let b;p=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof g=="function"?(g(o.state.value[e]),b={type:je.patchFunction,storeId:e,events:h}):(Ft(o.state.value[e],g),b={type:je.patchObject,payload:g,storeId:e,events:h});const V=O=Symbol();r.nextTick().then(()=>{O===V&&(p=!0)}),d=!0,Ne(u,b,o.state.value[e])}const x=a?function(){const{state:b}=n,V=b?b():{};this.$patch(L=>{Q(L,V)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Bo;function I(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,b="")=>{if(Mo in g)return g[Ut]=b,g;const V=function(){ot(o);const L=Array.from(arguments),ee=[],ce=[];function Oe(q){ee.push(q)}function X(q){ce.push(q)}Ne(f,{args:L,name:V[Ut],store:w,after:Oe,onError:X});let M;try{M=g.apply(this&&this.$id===e?this:w,L)}catch(q){throw Ne(ce,q),q}return M instanceof Promise?M.then(q=>(Ne(ee,q),q)).catch(q=>(Ne(ce,q),Promise.reject(q))):(Ne(ee,M),M)};return V[Mo]=!0,V[Ut]=b,V},$=r.markRaw({actions:{},getters:{},state:[],hotState:E}),C={_p:o,$id:e,$onAction:Lo.bind(null,f),$patch:N,$reset:x,$subscribe(g,b={}){const V=Lo(u,g,b.detached,()=>L()),L=i.run(()=>r.watch(()=>o.state.value[e],ee=>{(b.flush==="sync"?d:p)&&g({storeId:e,type:je.direct,events:h},ee)},Q({},l,b)));return V},$dispose:I},w=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be?Q({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,w);const v=(o._a&&o._a.runWithContext||Ti)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in v){const b=v[g];if(r.isRef(b)&&!Wo(b)||r.isReactive(b))process.env.NODE_ENV!=="production"&&s?nt(E.value,g,r.toRef(v,g)):a||(m&&Bi(b)&&(r.isRef(b)?b.value=m[g]:Ft(b,m[g])),o.state.value[e][g]=b),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof b=="function"){const V=process.env.NODE_ENV!=="production"&&s?b:B(b,g);v[g]=V,process.env.NODE_ENV!=="production"&&($.actions[g]=b),c.actions[g]=b}else process.env.NODE_ENV!=="production"&&Wo(b)&&($.getters[g]=a?n.getters[g]:b,Be&&(v._getters||(v._getters=r.markRaw([]))).push(g))}if(Q(w,v),Q(r.toRaw(w),v),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?E.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");N(b=>{Q(b,g)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(g=>{w._hotUpdating=!0,g._hmrPayload.state.forEach(b=>{if(b in w.$state){const V=g.$state[b],L=w.$state[b];typeof V=="object"&&ge(V)&&ge(L)?jo(V,L):g.$state[b]=L}nt(w,b,r.toRef(g.$state,b))}),Object.keys(w.$state).forEach(b=>{b in g.$state||Wt(w,b)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const b in g._hmrPayload.actions){const V=g[b];nt(w,b,B(V,b))}for(const b in g._hmrPayload.getters){const V=g._hmrPayload.getters[b],L=a?r.computed(()=>(ot(o),V.call(w,w))):V;nt(w,b,L)}Object.keys(w._hmrPayload.getters).forEach(b=>{b in g._hmrPayload.getters||Wt(w,b)}),Object.keys(w._hmrPayload.actions).forEach(b=>{b in g._hmrPayload.actions||Wt(w,b)}),w._hmrPayload=g._hmrPayload,w._getters=g._getters,w._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(b=>{Object.defineProperty(w,b,Q({value:w[b]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const b=i.run(()=>g({store:w,app:o._a,pinia:o,options:c}));Object.keys(b||{}).forEach(V=>w._customProperties.add(V)),Q(w,b)}else Q(w,i.run(()=>g({store:w,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
47
+ state: () => new MyClass()
48
+ Found in store "${w.$id}".`),m&&a&&n.hydrate&&n.hydrate(w.$state,m),p=!0,d=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Li(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Te&&Te._testing?null:c)||(p?r.inject(Ai,null):null),c&&ot(c),process.env.NODE_ENV!=="production"&&!Te)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
49
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
50
+ This will fail in production.`);c=Te,c._s.has(o)||(a?zt(o,t,s,c):Uo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?zt(u,t,s,c,!0):Uo(u,Q({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&Be){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=d}}return d}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ht(e){return typeof e=="function"?e():r.unref(e)}const Mi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wi=e=>e!=null,Ui=Object.prototype.toString,Fi=e=>Ui.call(e)==="[object Object]",zi=()=>{},Le=Mi?window:void 0;function Me(e){var t;const n=Ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function We(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Le):[t,n,o,s]=e,!t)return zi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[Me(t),Ht(s)],([d,u])=>{if(i(),!d)return;const f=Fi(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Fo(p),p}function Hi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function qi(e){const t=Hi();return r.computed(()=>(t.value,!!e()))}function Gi(e,t,n={}){const{window:o=Le,...s}=n;let a;const i=qi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=Ht(e),h=(Array.isArray(f)?f:[f]).map(Me).filter(Wi);return new Set(h)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return Fo(u),{isSupported:i,stop:u,takeRecords:d}}function Ji(e={}){var t;const{window:n=Le,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var p;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(p=d==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;return d},c=r.ref(),l=()=>{c.value=i()};return n&&(We(n,"blur",p=>{p.relatedTarget===null&&l()},!0),We(n,"focus",l,!0)),s&&Gi(a,p=>{p.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const Yi="focusin",Ki="focusout";function Qi(e,t={}){const{window:n=Le}=t,o=r.computed(()=>Me(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=Ji(t);return!n||!i.value?{focused:a}:(We(o,Yi,()=>s.value=!0),We(o,Ki,()=>s.value=!1),{focused:a})}function Xi(e,{window:t=Le,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Me(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Me(e),()=>s(),{immediate:!0,flush:"post"}),t&&We(n||t,"scroll",s,{capture:!1,passive:!0}),o}const ae=e=>{let t=Xi(e).value;return t=t&&e.offsetHeight>0,t},ie=e=>e.tabIndex>=0,zo=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ie(n)||!ae(n))?qt(n):n},Zi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!ie(o)||!ae(o))?Gt(o):o},Ho=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ie(n)||!ae(n))?Gt(n):n},ec=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!ie(o)||!ae(o))?qt(o):o},qo=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!ie(n)||!ae(n))?Jt(n):n},Go=e=>{const t=e.target;return Yt(t)},Yt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!ie(n)||!ae(n))?Yt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!ie(t)||!ae(t))?Yt(t):t},Yo=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!ie(t)||!ae(t))?Jt(t):t},rt=["alt","control","shift","meta"],tc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Kt={"keydown.up":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Zi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=ec(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Ko(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?l.push(p):l.push(p.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?l.push(p):l.push(p.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(p=>ie(p)&&ae(p))),l},s=i=>c=>{const l=tc[c.key]||c.key.toLowerCase();if(rt.includes(l))return;const p=i.handlers||Kt;for(const d of Object.keys(p)){const[u,...f]=d.split(".");if(u==="keydown"&&f.includes(l)){const h=p[d],m=f.filter(O=>rt.includes(O)),E=rt.some(O=>{const N=O.charAt(0).toUpperCase()+O.slice(1);return c.getModifierState(N)});if(m.length>0){if(E){for(const O of rt)if(f.includes(O)){const N=O.charAt(0).toUpperCase()+O.slice(1);c.getModifierState(N)&&h(c)}}}else E||h(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),p=s(i),d=c?[c]:l;for(const u of d){const{focused:f}=Qi(r.ref(u)),h=r.watch(f,m=>{m?u.addEventListener("keydown",p):u.removeEventListener("keydown",p)});a.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function Qo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ue(e){return typeof e=="function"?e():r.unref(e)}const Xo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nc=Object.prototype.toString,oc=e=>nc.call(e)==="[object Object]",Fe=()=>{},Qt=rc();function rc(){var e,t;return Xo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Zo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function sc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Fe}))):r.ref(t)}function ze(e){var t;const n=Ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const er=Xo?window:void 0;function st(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=er):[t,n,o,s]=e,!t)return Fe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[ze(t),Ue(s)],([d,u])=>{if(i(),!d)return;const f=oc(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Qo(p),p}let tr=!1;function nr(e,t,n={}){const{window:o=er,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return Fe;Qt&&!tr&&(tr=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Fe)),o.document.documentElement.addEventListener("click",Fe));let c=!0;const l=d=>s.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=ze(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[st(o,"click",d=>{const u=ze(e);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(c=!l(d)),!c){c=!0;return}t(d)}},{passive:!0,capture:a}),st(o,"pointerdown",d=>{const u=ze(e);c=!l(d)&&!!(u&&!d.composedPath().includes(u))},{passive:!0}),i&&st(o,"blur",d=>{setTimeout(()=>{var u;const f=ze(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>p.forEach(d=>d())}const ac={[Zo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=nr(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=nr(e,o,Object.assign({capture:n},s))}},[Zo.unmounted](e){e.__onClickOutside_stop()}};function Xt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function or(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:or(n)}}function ic(e){const t=e||window.event,n=t.target;return or(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Zt=new WeakMap;function cc(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(sc(e),c=>{const l=Xt(Ue(c));if(l){const p=l;if(Zt.get(p)||Zt.set(p,p.style.overflow),p.style.overflow!=="hidden"&&(s=p.style.overflow),p.style.overflow==="hidden")return n.value=!0;if(n.value)return p.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=Xt(Ue(e));!c||n.value||(Qt&&(o=st(c,"touchmove",l=>{ic(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Xt(Ue(e));!c||!n.value||(Qt&&(o==null||o()),c.style.overflow=s,Zt.delete(c),n.value=!1)};return Qo(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function lc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=cc(n,o.value);r.watch(t,a=>s.value=a)}}lc();function en(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function at(e){return typeof e=="function"?e():r.unref(e)}const uc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dc=e=>e!=null,pc=Object.prototype.toString,fc=e=>pc.call(e)==="[object Object]",hc=()=>{};function mc(e){return r.getCurrentInstance()}function gc(e,t=!0,n){mc()?r.onMounted(e,n):t?e():r.nextTick(e)}const tn=uc?window:void 0;function $e(e){var t;const n=at(e);return(t=n==null?void 0:n.$el)!=null?t:n}function rr(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tn):[t,n,o,s]=e,!t)return hc;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[$e(t),at(s)],([d,u])=>{if(i(),!d)return;const f=fc(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return en(p),p}function yc(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function sr(e){const t=yc();return r.computed(()=>(t.value,!!e()))}function ar(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=at(e),h=(Array.isArray(f)?f:[f]).map($e).filter(dc);return new Set(h)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return en(u),{isSupported:i,stop:u,takeRecords:d}}function wc(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const u=at(e);return Array.isArray(u)?u.map(f=>$e(f)):[$e(u)]}),p=r.watch(l,u=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const f of u)f&&a.observe(f,s)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return en(d),{isSupported:i,stop:d}}function bc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),p=r.ref(0),d=r.ref(0),u=r.ref(0),f=r.ref(0),h=r.ref(0),m=r.ref(0);function E(){const N=$e(e);if(!N){n&&(c.value=0,l.value=0,p.value=0,d.value=0,u.value=0,f.value=0,h.value=0,m.value=0);return}const x=N.getBoundingClientRect();c.value=x.height,l.value=x.bottom,p.value=x.left,d.value=x.right,u.value=x.top,f.value=x.width,h.value=x.x,m.value=x.y}function O(){i==="sync"?E():i==="next-frame"&&requestAnimationFrame(()=>E())}return wc(e,O),r.watch(()=>$e(e),N=>!N&&O()),ar(e,O,{attributeFilter:["style","class"]}),s&&rr("scroll",O,{capture:!0,passive:!0}),o&&rr("resize",O,{passive:!0}),gc(()=>{a&&O()}),{height:c,bottom:l,left:p,right:d,top:u,width:f,x:h,y:m,update:O}}const vc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},Ec=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],_c=["innerHTML"],kc={key:2},Nc=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=bc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=e.store.getCellDisplayValue(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],p=e.store.rows[e.rowIndex],d=l.align||"center",u=l.width||"40ch",f=r.computed(()=>typeof a=="string"?vc(a):!1),h=r.computed(()=>{var N;return{textAlign:d,width:u,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(N=e.store.display[e.rowIndex])==null?void 0:N.indent)}}),m=()=>{l.mask,l.modalComponent&&e.store.$patch(N=>{N.modal.visible=!0,N.modal.colIndex=e.colIndex,N.modal.rowIndex=e.rowIndex,N.modal.parent=t.value,N.modal.top=n.value,N.modal.left=o.value,N.modal.width=u,typeof l.modalComponent=="function"?N.modal.component=l.modalComponent({table:N.table,row:p,column:l}):N.modal.component=l.modalComponent,N.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let N={...Kt,"keydown.f2":m,"keydown.alt.up":m,"keydown.alt.down":m,"keydown.alt.left":m,"keydown.alt.right":m};typeof e.addNavigation=="object"&&(N={...N,...e.addNavigation}),Ko([{selectors:t,handlers:N}])}const E=()=>{t.value&&(i.value=t.value.textContent)},O=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(N,x)=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":N.colIndex,"data-rowindex":N.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:N.tabIndex,spellcheck:!1,style:r.normalizeStyle(h.value),onFocus:E,onPaste:O,onBlur:O,onInput:O,onClick:m,class:r.normalizeClass(["atable-cell",N.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:r.unref(a)},r.unref(l).cellComponentProps),null,16,["value"])):f.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:r.unref(a)},null,8,_c)):(r.openBlock(),r.createElementBlock("span",kc,r.toDisplayString(r.unref(a)),1))],46,Ec)),[[r.unref(ac),N.store.closeModal]])}}),$c=["tabindex"],Oc=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Kt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Ko([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,$c)),[[r.vShow,r.unref(n)]])}}),Sc={key:0,id:"resizable"},xc={class:"atable-header-row",tabindex:"-1"},Cc=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",Sc,[r.createElementVNode("tr",xc,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),Pc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Vc=e=>{const t=e.id||crypto.randomUUID();return Li(`table-${t}`,()=>{const n=()=>{const $={};for(const[C,w]of s.value.entries())for(const[j,v]of a.value.entries())$[`${C}:${j}`]=v[w.name];return $},o=$=>{const C=[Object.assign({},{rowModified:!1})];if($&&"0:0"in $)return $;const w=new Set;for(let j=a.value.length-1;j>=0;j--){const v=a.value[j];v.parent&&w.add(v.parent),C[j]={childrenOpen:!1,expanded:!1,indent:v.indent||null,isParent:w.has(j),isRoot:v.parent===null||v.parent===void 0,rowModified:!1,open:v.parent===null||v.parent===void 0,parent:v.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),p=r.ref(e.modal||{visible:!1}),d=r.computed(()=>s.value.some($=>$.pinned)),u=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),f=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),h=($,C)=>c.value[`${$}:${C}`],m=($,C,w)=>{const j=`${$}:${C}`,v=s.value[$];c.value[j]!==w&&(l.value[C].rowModified=!0),c.value[j]=w,a.value[C][v.name]=w},E=$=>({minWidth:$.width||"40ch",textAlign:$.align||"center",width:i.value.fullWidth?"auto":null}),O=$=>i.value.view!=="tree"||l.value[$].isRoot||l.value[$].open,N=$=>i.value.view!=="tree"?"":l.value[$].isRoot||l.value[$].isParent?l.value[$].childrenOpen?"-":"+":"",x=$=>{if(i.value.view==="tree"){l.value[$].childrenOpen=!l.value[$].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===$&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&x(C))}else i.value.view==="list-expansion"&&(l.value[$].expanded=!l.value[$].expanded)},I=($,C)=>{const w=h($,C);return B($,C,w)},B=($,C,w)=>{const j=s.value[$],v=a.value[C],g=j.format;return g?typeof g=="function"?g(w,{table:c.value,row:v,column:j}):typeof g=="string"?Function(`"use strict";return (${g})`)()(w,{table:c.value,row:v,column:j}):w:w};return{columns:s,rows:a,config:i,table:c,display:l,modal:p,hasPinnedColumns:d,numberedRowWidth:u,zeroColumn:f,closeModal:$=>{var C;$.target instanceof Node&&(C=p.value.parent)!=null&&C.contains($.target)||p.value.visible&&(p.value.visible=!1)},getCellData:h,getCellDisplayValue:I,getFormattedValue:B,getHeaderCellStyle:E,getIndent:($,C)=>C&&$===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:N,isRowVisible:O,setCellData:m,toggleRowExpand:x}})()},Dc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Vc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:p,args:d})=>{if(l==="setCellData"){const[u,f,h]=d,m=p.getCellData(u,f);o("cellUpdate",[u,f,h,m])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&ar(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,p=l.rows[0],d=l.rows[1],u=p?Array.from(p.cells):[];for(const[f,h]of u.entries()){const m=d.cells[f];m&&(h.style.width=`${m.offsetWidth}px`)}for(const f of l.rows){let h=0;const m=[];for(const E of f.cells)(E.classList.contains("sticky-column")||E.classList.contains("sticky-index"))&&(E.style.left=`${h}px`,h+=E.offsetWidth,m.push(E));m.length>0&&m[m.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const p=i.modal.parent;p&&r.nextTick().then(()=>{p.focus()})}}),t({store:i}),(l,p)=>(r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(Cc,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,u)=>(r.openBlock(),r.createBlock(Oc,{key:d.id,row:d,rowIndex:u,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(f,h)=>(r.openBlock(),r.createBlock(Nc,{key:f.name,store:r.unref(i),col:f,spellcheck:"false",pinned:f.pinned,rowIndex:u,colIndex:h,component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(Pc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4))}}),Ic=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Rc=Ic(Dc,[["__scopeId","data-v-20244978"]]),ir=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Rc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),Ac={class:"tabs"},Tc={tabindex:"0"},jc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Bc={tabindex:"0"},Lc={style:{width:"11pt"}},cr=ut(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=u=>{u.preventDefault(),u.stopPropagation()},p=async u=>{u.preventDefault(),u.stopPropagation(),await c()},d=()=>{};return(u,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",Ac,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Tc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",jc,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
43
51
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
44
52
  c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
45
53
  v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0
@@ -47,5 +55,5 @@ ${JSON.stringify(k,null,2)}
47
55
  c0-2.162,0.854-4.235,2.39-5.755c1.528-1.52,3.585-2.374,5.739-2.374c0.008,0,0.008,0,0.016,0l45.105,0.089l-79.855-79.863
48
56
  c-1.528-1.528-2.382-3.593-2.382-5.747V66.628h-31.498v26.645c0,3.284-1.975,6.251-5.015,7.511
49
57
  c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
50
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",hc,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",mc,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=g=>p(g)),onInput:f[2]||(f[2]=g=>p(g)),onBlur:f[3]||(f[3]=g=>l(g)),onKeydown:f[4]||(f[4]=r.withKeys(g=>l(g),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.breadcrumbs,g=>(r.openBlock(),r.createElementBlock("li",{key:g.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:g.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),gc={install:e=>{e.component("ActionSet",Gt),e.component("CommandPalette",Jt),e.component("Doctype",$o),e.component("Records",zo),e.component("SheetNav",Fo)}};H.ActionSet=Gt,H.CommandPalette=Jt,H.Doctype=$o,H.Records=zo,H.SheetNav=Fo,H.StonecropDesktop=gc,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
58
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",Bc,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",Lc,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>l(m)),onInput:f[2]||(f[2]=m=>l(m)),onBlur:f[3]||(f[3]=m=>p(m)),onKeydown:f[4]||(f[4]=r.withKeys(m=>p(m),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.breadcrumbs,m=>(r.openBlock(),r.createElementBlock("li",{key:m.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:m.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Mc={install:e=>{e.component("ActionSet",sn),e.component("CommandPalette",an),e.component("Doctype",To),e.component("Records",ir),e.component("SheetNav",cr)}};J.ActionSet=sn,J.CommandPalette=an,J.Doctype=To,J.Records=ir,J.SheetNav=cr,J.StonecropDesktop=Mc,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
51
59
  //# sourceMappingURL=desktop.umd.cjs.map