@stonecrop/desktop 0.2.22 โ†’ 0.2.24

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,39 +1,39 @@
1
- (function(F,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(F=typeof globalThis<"u"?globalThis:F||self,s(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,s){"use strict";const Qe=e=>(s.pushScopeId("data-v-b7fdfbec"),e=e(),s.popScopeId(),e),Vo={class:"action-menu-icon"},Mo=[Qe(()=>s.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"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Qe(()=>s.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"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],Bo=Qe(()=>s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),jo=["onclick"],Lo={key:1},Uo=["onClick"],Ho={class:"dropdown-container"},Wo={class:"dropdown"},Fo=["onclick"],zo=["href"],Go={class:"dropdown-item"},Ko=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=s.ref([]),o=s.ref(!1),r=s.ref(null),a=s.ref(!1),c=s.ref(!1);s.onMounted(()=>{n.value=t.elements,i()});const i=()=>{for(let f of n.value)f.elementType==="dropdown"&&(f.show=!1)},l=()=>{a.value=!0,r.value=setTimeout(()=>{a.value&&(o.value=!0)},500)},d=()=>{a.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},u=f=>{const p=!n.value[f].show;i(),n.value[f].show=p};return(f,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[s.createElementVNode("div",Vo,[s.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=h=>c.value=!c.value)},Mo)]),Bo,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(h,g)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:g},[h.elementType=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},s.toDisplayString(h.label),9,jo)):s.createCommentVNode("",!0),h.elementType=="dropdown"?(s.openBlock(),s.createElementBlock("div",Lo,[s.createElementVNode("button",{class:"button-default",onClick:y=>u(g)},s.toDisplayString(h.label),9,Uo),s.withDirectives(s.createElementVNode("div",Ho,[s.createElementVNode("div",Wo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.actions,y=>(s.openBlock(),s.createElementBlock("div",{key:y.label},[y.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},s.toDisplayString(y.label),9,Fo)):y.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:y.link},[s.createElementVNode("button",Go,s.toDisplayString(y.label),1)],8,zo)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,h.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),Xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ut=Xe(Ko,[["__scopeId","data-v-b7fdfbec"]]),qo={};function Jo(e,t){return s.openBlock(),s.createElementBlock("dialog")}const Ht=Xe(qo,[["render",Jo]]),Yo=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Qo=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=s.ref(n.data||{}),a=i=>{let l={};for(const[d,u]of Object.entries(i))["component","fieldtype"].includes(d)||(l[d]=u),d==="rows"&&u&&u.length===0&&(l.rows=r.value[i.fieldname]);return l},c=s.computed({get:()=>n.modelValue.map((i,l)=>s.computed({get(){return i.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(i,l)=>(s.openBlock(),s.createElementBlock("form",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.modelValue,(d,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.component),s.mergeProps({key:u,schema:d,modelValue:c.value[u].value,"onUpdate:modelValue":f=>c.value[u].value=f,data:r.value[d.fieldname],readonly:i.readonly},a(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),Xo=Yo(Qo,[["__scopeId","data-v-74d66cf2"]]);function Ze(e){this.message=e||""}Ze.prototype=Object.create(Error.prototype,{constructor:{value:Ze},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});class ve{constructor(t,n,o,r,a){if(this.name="Stonecrop",ve._root)return ve._root;ve._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,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 Ze(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 r=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:r})}async getRecord(t,n){this.store.$patch({record:{}});const r=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:r})}runAction(t,n,o){const a=this.registry.registry[t.slug].actions.get(n),{initialState:c}=this.workflow;this.workflow.transition(c,{type:n}),a.length>0&&a.forEach(i=>{new Function(i)(o)})}}var Wt=!1;function De(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 et(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Zo(){return Ft().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ft(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const er=typeof Proxy=="function",tr="devtools-plugin:setup",nr="plugin:settings:set";let pe,tt;function or(){var e;return pe!==void 0||(typeof window<"u"&&window.performance?(pe=!0,tt=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(pe=!0,tt=global.perf_hooks.performance):pe=!1),pe}function rr(){return or()?tt.now():Date.now()}class sr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const i=t.settings[c];o[c]=i.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},o);try{const c=localStorage.getItem(r),i=JSON.parse(c);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}a=c},now(){return rr()}},n&&n.on(nr,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...l)=>{this.onQueue.push({method:i,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...l)=>(this.targetQueue.push({method:i,args:l,resolve:()=>{}}),this.fallbacks[i](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:i,args:l,resolve:d})})})}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 nt(e,t){const n=e,o=Ft(),r=Zo(),a=er&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))r.emit(tr,e,t);else{const c=a?new sr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
1
+ (function(F,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(F=typeof globalThis<"u"?globalThis:F||self,s(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,s){"use strict";const Ye=e=>(s.pushScopeId("data-v-f4328a22"),e=e(),s.popScopeId(),e),Do={class:"action-menu-icon"},To=[Ye(()=>s.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"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Ye(()=>s.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"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],Vo=Ye(()=>s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),Bo=["onclick"],Mo={key:1},jo=["onClick"],Lo={class:"dropdown-container"},Uo={class:"dropdown"},Ho=["onclick"],Wo=["href"],Fo={class:"dropdown-item"},zo=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=s.ref([]),o=s.ref(!1),r=s.ref(null),i=s.ref(!1),c=s.ref(!1);s.onMounted(()=>{n.value=t.elements,a()});const a=()=>{for(let f of n.value)f.elementType==="dropdown"&&(f.show=!1)},l=()=>{i.value=!0,r.value=setTimeout(()=>{i.value&&(o.value=!0)},500)},d=()=>{i.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},u=f=>{const p=!n.value[f].show;a(),n.value[f].show=p};return(f,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[s.createElementVNode("div",Do,[s.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=h=>c.value=!c.value)},To)]),Vo,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(h,g)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:h.label},[h.elementType=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},s.toDisplayString(h.label),9,Bo)):s.createCommentVNode("",!0),h.elementType=="dropdown"?(s.openBlock(),s.createElementBlock("div",Mo,[s.createElementVNode("button",{class:"button-default",onClick:y=>u(g)},s.toDisplayString(h.label),9,jo),s.withDirectives(s.createElementVNode("div",Lo,[s.createElementVNode("div",Uo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.actions,y=>(s.openBlock(),s.createElementBlock("div",{key:y.label},[y.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},s.toDisplayString(y.label),9,Ho)):y.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:y.link},[s.createElementVNode("button",Fo,s.toDisplayString(y.label),1)],8,Wo)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,h.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Lt=Qe(zo,[["__scopeId","data-v-f4328a22"]]),Go={};function Ko(e,t){return s.openBlock(),s.createElementBlock("dialog")}const Ut=Qe(Go,[["render",Ko]]),qo=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jo={class:"aform"},Yo=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=s.ref(n.data||{}),i=a=>{let l={};for(const[d,u]of Object.entries(a))["component","fieldtype"].includes(d)||(l[d]=u),d==="rows"&&u&&u.length===0&&(l.rows=r.value[a.fieldname]);return l},c=s.computed({get:()=>n.modelValue.map((a,l)=>s.computed({get(){return a.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(a,l)=>(s.openBlock(),s.createElementBlock("form",Jo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.modelValue,(d,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.component),s.mergeProps({key:u,schema:d,modelValue:c.value[u].value,"onUpdate:modelValue":f=>c.value[u].value=f,data:r.value[d.fieldname],readonly:a.readonly},i(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),Qo=qo(Yo,[["__scopeId","data-v-88047a70"]]);function Xe(e){this.message=e||""}Xe.prototype=Object.create(Error.prototype,{constructor:{value:Xe},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});class ve{constructor(t,n,o,r,i){if(this.name="Stonecrop",ve._root)return ve._root;ve._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=i}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new Xe(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 r=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:r})}async getRecord(t,n){this.store.$patch({record:{}});const r=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:r})}runAction(t,n,o){const i=this.registry.registry[t.slug].actions.get(n),{initialState:c}=this.workflow;this.workflow.transition(c,{type:n}),i.length>0&&i.forEach(a=>{new Function(a)(o)})}}var Ht=!1;function Ae(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 Ze(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Xo(){return Wt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Zo=typeof Proxy=="function",er="devtools-plugin:setup",tr="plugin:settings:set";let pe,et;function nr(){var e;return pe!==void 0||(typeof window<"u"&&window.performance?(pe=!0,et=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(pe=!0,et=global.perf_hooks.performance):pe=!1),pe}function or(){return nr()?et.now():Date.now()}class rr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const a=t.settings[c];o[c]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},o);try{const c=localStorage.getItem(r),a=JSON.parse(c);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}i=c},now(){return or()}},n&&n.on(tr,(c,a)=>{c===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(c,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}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 tt(e,t){const n=e,o=Wt(),r=Xo(),i=Zo&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(er,e,t);else{const c=i?new rr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
2
2
  * pinia v2.1.7
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let _e;const be=e=>_e=e,zt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(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 Te=typeof window<"u",Ee=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Te,Gt=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 ar(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 ot(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){Jt(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Kt(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ve(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Me=typeof navigator=="object"?navigator:{userAgent:""},qt=/Macintosh/.test(Me.userAgent)&&/AppleWebKit/.test(Me.userAgent)&&!/Safari/.test(Me.userAgent),Jt=Te?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!qt?ir:"msSaveOrOpenBlob"in Me?cr:lr:()=>{};function ir(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?Kt(o.href)?ot(e,t,n):(o.target="_blank",Ve(o)):Ve(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Ve(o)},0))}function cr(e,t="download",n){if(typeof e=="string")if(Kt(e))ot(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Ve(o)})}else navigator.msSaveOrOpenBlob(ar(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 ot(e,t,n);const r=e.type==="application/octet-stream",a=/constructor/i.test(String(Gt.HTMLElement))||"safari"in Gt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&a||qt)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let l=i.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);o?o.location.assign(i):location.href=i,o=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function M(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 rt(e){return"_a"in e&&"install"in e}function Yt(){if(!("clipboard"in navigator))return M("Your browser doesn't support the Clipboard API","error"),!0}function Qt(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(M('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ur(e){if(!Yt())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),M("Global state copied to clipboard.")}catch(t){if(Qt(t))return;M("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function dr(e){if(!Yt())try{Xt(e,JSON.parse(await navigator.clipboard.readText())),M("Global state pasted from clipboard.")}catch(t){if(Qt(t))return;M("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function fr(e){try{Jt(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){M("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let X;function pr(){X||(X=document.createElement("input"),X.type="file",X.accept=".json");function e(){return new Promise((t,n)=>{X.onchange=async()=>{const o=X.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},X.oncancel=()=>t(null),X.onerror=n,X.click()})}return e}async function hr(e){try{const n=await pr()();if(!n)return;const{text:o,file:r}=n;Xt(e,JSON.parse(o)),M(`Global state imported from "${r.name}".`)}catch(t){M("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Xt(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 q(e){return{_custom:{display:e}}}const Zt="๐Ÿ Pinia (root)",st="_root";function mr(e){return rt(e)?{id:st,label:Zt}:{id:e.$id,label:e.$id}}function gr(e){if(rt(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 c=o.get(a);return{editable:!1,key:a,value:c._getters.reduce((i,l)=>(i[l]=c[l],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 yr(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:q(e.type),key:q(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function wr(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 Be=[],le="pinia:mutations",L="pinia",{assign:vr}=Object,je=e=>"๐Ÿ "+e;function _r(e,t){nt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,app:e},n=>{typeof n.now!="function"&&M("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:le,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:L,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ur(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await dr(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{fr(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await hr(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?M(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),M(`Store "${o}" reset.`)):M(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const a=o.componentInstance&&o.componentInstance.proxy;if(a&&a._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{o.instanceData.state.push({type:je(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:s.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,d)=>(l[d]=i.$state[d],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:je(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,d)=>{try{l[d]=i[d]}catch(u){l[d]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===L){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):Zt.toLowerCase().includes(o.filter.toLowerCase())):r).map(mr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===L){const r=o.nodeId===st?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=gr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===L){const a=o.nodeId===st?t:t._s.get(o.nodeId);if(!a)return M(`store "${o.nodeId}" not found`,"error");const{path:c}=o;rt(a)?c.unshift("state"):(c.length!==1||!a._customProperties.has(c[0])||c[0]in a.$state)&&c.unshift("$state"),he=!1,o.set(a,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const r=o.type.replace(/^๐Ÿ\s*/,""),a=t._s.get(r);if(!a)return M(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return M(`Invalid path for store "${r}":
5
+ */let _e;const be=e=>_e=e,Ft=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(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 De=typeof window<"u",Ee=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&De,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 sr(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 nt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){qt(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Gt(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Te(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Ve=typeof navigator=="object"?navigator:{userAgent:""},Kt=/Macintosh/.test(Ve.userAgent)&&/AppleWebKit/.test(Ve.userAgent)&&!/Safari/.test(Ve.userAgent),qt=De?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Kt?ir:"msSaveOrOpenBlob"in Ve?ar:cr:()=>{};function ir(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?Gt(o.href)?nt(e,t,n):(o.target="_blank",Te(o)):Te(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Te(o)},0))}function ar(e,t="download",n){if(typeof e=="string")if(Gt(e))nt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Te(o)})}else navigator.msSaveOrOpenBlob(sr(e,n),t)}function cr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return nt(e,t,n);const r=e.type==="application/octet-stream",i=/constructor/i.test(String(zt.HTMLElement))||"safari"in zt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&i||Kt)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);o?o.location.assign(a):location.href=a,o=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function B(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 ot(e){return"_a"in e&&"install"in e}function Jt(){if(!("clipboard"in navigator))return B("Your browser doesn't support the Clipboard API","error"),!0}function Yt(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function lr(e){if(!Jt())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),B("Global state copied to clipboard.")}catch(t){if(Yt(t))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function ur(e){if(!Jt())try{Qt(e,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(t){if(Yt(t))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function dr(e){try{qt(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let X;function fr(){X||(X=document.createElement("input"),X.type="file",X.accept=".json");function e(){return new Promise((t,n)=>{X.onchange=async()=>{const o=X.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},X.oncancel=()=>t(null),X.onerror=n,X.click()})}return e}async function pr(e){try{const n=await fr()();if(!n)return;const{text:o,file:r}=n;Qt(e,JSON.parse(o)),B(`Global state imported from "${r.name}".`)}catch(t){B("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Qt(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 q(e){return{_custom:{display:e}}}const Xt="๐Ÿ Pinia (root)",rt="_root";function hr(e){return ot(e)?{id:rt,label:Xt}:{id:e.$id,label:e.$id}}function mr(e){if(ot(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(i=>({editable:!0,key:i,value:e.state.value[i]})),getters:n.filter(i=>o.get(i)._getters).map(i=>{const c=o.get(i);return{editable:!1,key:i,value:c._getters.reduce((a,l)=>(a[l]=c[l],a),{})}})}}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:q(e.type),key:q(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function yr(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 Be=[],le="pinia:mutations",L="pinia",{assign:wr}=Object,Me=e=>"๐Ÿ "+e;function vr(e,t){tt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,app:e},n=>{typeof n.now!="function"&&B("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:le,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:L,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{lr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ur(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{dr(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await pr(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),B(`Store "${o}" reset.`)):B(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(a=>{o.instanceData.state.push({type:Me(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:s.toRaw(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,d)=>(l[d]=a.$state[d],l),{})}),a._getters&&a._getters.length&&o.instanceData.state.push({type:Me(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,d)=>{try{l[d]=a[d]}catch(u){l[d]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===L){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):Xt.toLowerCase().includes(o.filter.toLowerCase())):r).map(hr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===L){const r=o.nodeId===rt?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=mr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===L){const i=o.nodeId===rt?t:t._s.get(o.nodeId);if(!i)return B(`store "${o.nodeId}" not found`,"error");const{path:c}=o;ot(i)?c.unshift("state"):(c.length!==1||!i._customProperties.has(c[0])||c[0]in i.$state)&&c.unshift("$state"),he=!1,o.set(i,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const r=o.type.replace(/^๐Ÿ\s*/,""),i=t._s.get(r);if(!i)return B(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return B(`Invalid path for store "${r}":
6
6
  ${c}
7
- Only state can be modified.`);c[0]="$state",he=!1,o.set(a,c,o.state.value),he=!0}})})}function br(e,t){Be.includes(je(t.$id))||Be.push(je(t.$id)),nt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,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:c,onError:i,name:l,args:d})=>{const u=en++;n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:q(t.$id),action:q(l),args:d},groupId:u}}),c(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,result:f},groupId:u}})}),i(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,error:f},groupId:u}})})},!0),t._customProperties.forEach(c=>{s.watch(()=>s.unref(t[c]),(i,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(L),he&&n.addTimelineEvent({layerId:le,event:{time:o(),title:"Change",subtitle:c,data:{newValue:i,oldValue:l},groupId:re}})},{deep:!0})}),t.$subscribe(({events:c,type:i},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(L),!he)return;const d={time:o(),title:wr(i),data:vr({store:q(t.$id)},yr(c)),groupId:re};i===Y.patchFunction?d.subtitle="โคต๏ธ":i===Y.patchObject?d.subtitle="๐Ÿงฉ":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:le,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(c=>{r(c),n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:q(t.$id),info:q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&M(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&M(`"${t.$id}" store installed ๐Ÿ†•`)})}let en=0,re;function tn(e,t,n){const o=t.reduce((r,a)=>(r[a]=s.toRaw(e)[a],r),{});for(const r in o)e[r]=function(){const a=en,c=n?new Proxy(e,{get(...l){return re=a,Reflect.get(...l)},set(...l){return re=a,Reflect.set(...l)}}):e;re=a;const i=o[r].apply(c,arguments);return re=void 0,i}}function Er({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,tn(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),tn(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},br(e,t)}function kr(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(a){be(r),r._a=a,a.provide(zt,r),a.config.globalProperties.$pinia=r,Ee&&_r(a,r),o.forEach(c=>n.push(c)),o=[]},use(a){return!this._a&&!Wt?o.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ee&&typeof Proxy<"u"&&r.use(Er),r}function nn(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ce(r)&&ce(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=nn(r,o):e[n]=o}return e}const on=()=>{};function rn(e,t,n,o=on){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Sr=e=>e();function at(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],r=e[n];ce(r)&&ce(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=at(r,o):e[n]=o}return e}const Ir=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Nr(e){return!ce(e)||!e.hasOwnProperty(Ir)}const{assign:z}=Object;function sn(e){return!!(s.isRef(e)&&e.effect)}function an(e,t,n,o){const{state:r,actions:a,getters:c}=t,i=n.state.value[e];let l;function d(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const u=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return z(u,a,Object.keys(c||{}).reduce((f,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),f[p]=s.markRaw(s.computed(()=>{be(n);const h=n._s.get(e);return c[p].call(h,h)})),f),{}))}return l=it(e,d,t,n,o,!0),l}function it(e,t,n={},o,r,a){let c;const i=z({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"&&!Wt&&(l.onTrigger=k=>{d?h=k:d==!1&&!I._hotUpdating&&(Array.isArray(h)?h.push(k):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,f=[],p=[],h;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=s.ref({});let w;function S(k){let b;d=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof k=="function"?(k(o.state.value[e]),b={type:Y.patchFunction,storeId:e,events:h}):(at(o.state.value[e],k),b={type:Y.patchObject,payload:k,storeId:e,events:h});const R=w=Symbol();s.nextTick().then(()=>{w===R&&(d=!0)}),u=!0,me(f,b,o.state.value[e])}const N=a?function(){const{state:b}=n,R=b?b():{};this.$patch(V=>{z(V,R)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:on;function A(){c.stop(),f=[],p=[],o._s.delete(e)}function j(k,b){return function(){be(o);const R=Array.from(arguments),V=[],de=[];function Ae(U){V.push(U)}function Je(U){de.push(U)}me(p,{args:R,name:k,store:I,after:Ae,onError:Je});let Q;try{Q=b.apply(this&&this.$id===e?this:I,R)}catch(U){throw me(de,U),U}return Q instanceof Promise?Q.then(U=>(me(V,U),U)).catch(U=>(me(de,U),Promise.reject(U))):(me(V,Q),Q)}}const G=s.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:rn.bind(null,p),$patch:S,$reset:N,$subscribe(k,b={}){const R=rn(f,k,b.detached,()=>V()),V=c.run(()=>s.watch(()=>o.state.value[e],de=>{(b.flush==="sync"?u:d)&&k({storeId:e,type:Y.direct,events:h},de)},z({},l,b)));return R},$dispose:A},I=s.reactive(process.env.NODE_ENV!=="production"||Ee?z({_hmrPayload:G,_customProperties:s.markRaw(new Set)},K):K);o._s.set(e,I);const J=(o._a&&o._a.runWithContext||Sr)(()=>o._e.run(()=>(c=s.effectScope()).run(t)));for(const k in J){const b=J[k];if(s.isRef(b)&&!sn(b)||s.isReactive(b))process.env.NODE_ENV!=="production"&&r?De(y.value,k,s.toRef(J,k)):a||(g&&Nr(b)&&(s.isRef(b)?b.value=g[k]:at(b,g[k])),o.state.value[e][k]=b),process.env.NODE_ENV!=="production"&&G.state.push(k);else if(typeof b=="function"){const R=process.env.NODE_ENV!=="production"&&r?b:j(k,b);J[k]=R,process.env.NODE_ENV!=="production"&&(G.actions[k]=b),i.actions[k]=b}else process.env.NODE_ENV!=="production"&&sn(b)&&(G.getters[k]=a?n.getters[k]:b,Te&&(J._getters||(J._getters=s.markRaw([]))).push(k))}if(z(I,J),z(s.toRaw(I),J),Object.defineProperty(I,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");S(b=>{z(b,k)})}}),process.env.NODE_ENV!=="production"&&(I._hotUpdate=s.markRaw(k=>{I._hotUpdating=!0,k._hmrPayload.state.forEach(b=>{if(b in I.$state){const R=k.$state[b],V=I.$state[b];typeof R=="object"&&ce(R)&&ce(V)?nn(R,V):k.$state[b]=V}De(I,b,s.toRef(k.$state,b))}),Object.keys(I.$state).forEach(b=>{b in k.$state||et(I,b)}),d=!1,u=!1,o.state.value[e]=s.toRef(k._hmrPayload,"hotState"),u=!0,s.nextTick().then(()=>{d=!0});for(const b in k._hmrPayload.actions){const R=k[b];De(I,b,j(b,R))}for(const b in k._hmrPayload.getters){const R=k._hmrPayload.getters[b],V=a?s.computed(()=>(be(o),R.call(I,I))):R;De(I,b,V)}Object.keys(I._hmrPayload.getters).forEach(b=>{b in k._hmrPayload.getters||et(I,b)}),Object.keys(I._hmrPayload.actions).forEach(b=>{b in k._hmrPayload.actions||et(I,b)}),I._hmrPayload=k._hmrPayload,I._getters=k._getters,I._hotUpdating=!1})),Ee){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(b=>{Object.defineProperty(I,b,z({value:I[b]},k))})}return o._p.forEach(k=>{if(Ee){const b=c.run(()=>k({store:I,app:o._a,pinia:o,options:i}));Object.keys(b||{}).forEach(R=>I._customProperties.add(R)),z(I,b)}else z(I,c.run(()=>k({store:I,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&I.$state&&typeof I.$state=="object"&&typeof I.$state.constructor=="function"&&!I.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);c[0]="$state",he=!1,o.set(i,c,o.state.value),he=!0}})})}function _r(e,t){Be.includes(Me(t.$id))||Be.push(Me(t.$id)),tt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,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:c,onError:a,name:l,args:d})=>{const u=Zt++;n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:q(t.$id),action:q(l),args:d},groupId:u}}),c(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,result:f},groupId:u}})}),a(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,error:f},groupId:u}})})},!0),t._customProperties.forEach(c=>{s.watch(()=>s.unref(t[c]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(L),he&&n.addTimelineEvent({layerId:le,event:{time:o(),title:"Change",subtitle:c,data:{newValue:a,oldValue:l},groupId:re}})},{deep:!0})}),t.$subscribe(({events:c,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(L),!he)return;const d={time:o(),title:yr(a),data:wr({store:q(t.$id)},gr(c)),groupId:re};a===Y.patchFunction?d.subtitle="โคต๏ธ":a===Y.patchObject?d.subtitle="๐Ÿงฉ":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:le,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(c=>{r(c),n.addTimelineEvent({layerId:le,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:q(t.$id),info:q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`"${t.$id}" store installed ๐Ÿ†•`)})}let Zt=0,re;function en(e,t,n){const o=t.reduce((r,i)=>(r[i]=s.toRaw(e)[i],r),{});for(const r in o)e[r]=function(){const i=Zt,c=n?new Proxy(e,{get(...l){return re=i,Reflect.get(...l)},set(...l){return re=i,Reflect.set(...l)}}):e;re=i;const a=o[r].apply(c,arguments);return re=void 0,a}}function br({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,en(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),en(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},_r(e,t)}function Er(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(i){be(r),r._a=i,i.provide(Ft,r),i.config.globalProperties.$pinia=r,Ee&&vr(i,r),o.forEach(c=>n.push(c)),o=[]},use(i){return!this._a&&!Ht?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ee&&typeof Proxy<"u"&&r.use(br),r}function tn(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ce(r)&&ce(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=tn(r,o):e[n]=o}return e}const nn=()=>{};function on(e,t,n,o=nn){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const kr=e=>e();function st(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],r=e[n];ce(r)&&ce(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=st(r,o):e[n]=o}return e}const Sr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Nr(e){return!ce(e)||!e.hasOwnProperty(Sr)}const{assign:z}=Object;function rn(e){return!!(s.isRef(e)&&e.effect)}function sn(e,t,n,o){const{state:r,actions:i,getters:c}=t,a=n.state.value[e];let l;function d(){!a&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const u=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return z(u,i,Object.keys(c||{}).reduce((f,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),f[p]=s.markRaw(s.computed(()=>{be(n);const h=n._s.get(e);return c[p].call(h,h)})),f),{}))}return l=it(e,d,t,n,o,!0),l}function it(e,t,n={},o,r,i){let c;const a=z({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"&&!Ht&&(l.onTrigger=k=>{d?h=k:d==!1&&!N._hotUpdating&&(Array.isArray(h)?h.push(k):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,f=[],p=[],h;const g=o.state.value[e];!i&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=s.ref({});let b;function S(k){let _;d=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof k=="function"?(k(o.state.value[e]),_={type:Y.patchFunction,storeId:e,events:h}):(st(o.state.value[e],k),_={type:Y.patchObject,payload:k,storeId:e,events:h});const R=b=Symbol();s.nextTick().then(()=>{b===R&&(d=!0)}),u=!0,me(f,_,o.state.value[e])}const I=i?function(){const{state:_}=n,R=_?_():{};this.$patch(V=>{z(V,R)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:nn;function A(){c.stop(),f=[],p=[],o._s.delete(e)}function j(k,_){return function(){be(o);const R=Array.from(arguments),V=[],de=[];function Re(U){V.push(U)}function qe(U){de.push(U)}me(p,{args:R,name:k,store:N,after:Re,onError:qe});let Q;try{Q=_.apply(this&&this.$id===e?this:N,R)}catch(U){throw me(de,U),U}return Q instanceof Promise?Q.then(U=>(me(V,U),U)).catch(U=>(me(de,U),Promise.reject(U))):(me(V,Q),Q)}}const G=s.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:on.bind(null,p),$patch:S,$reset:I,$subscribe(k,_={}){const R=on(f,k,_.detached,()=>V()),V=c.run(()=>s.watch(()=>o.state.value[e],de=>{(_.flush==="sync"?u:d)&&k({storeId:e,type:Y.direct,events:h},de)},z({},l,_)));return R},$dispose:A},N=s.reactive(process.env.NODE_ENV!=="production"||Ee?z({_hmrPayload:G,_customProperties:s.markRaw(new Set)},K):K);o._s.set(e,N);const J=(o._a&&o._a.runWithContext||kr)(()=>o._e.run(()=>(c=s.effectScope()).run(t)));for(const k in J){const _=J[k];if(s.isRef(_)&&!rn(_)||s.isReactive(_))process.env.NODE_ENV!=="production"&&r?Ae(y.value,k,s.toRef(J,k)):i||(g&&Nr(_)&&(s.isRef(_)?_.value=g[k]:st(_,g[k])),o.state.value[e][k]=_),process.env.NODE_ENV!=="production"&&G.state.push(k);else if(typeof _=="function"){const R=process.env.NODE_ENV!=="production"&&r?_:j(k,_);J[k]=R,process.env.NODE_ENV!=="production"&&(G.actions[k]=_),a.actions[k]=_}else process.env.NODE_ENV!=="production"&&rn(_)&&(G.getters[k]=i?n.getters[k]:_,De&&(J._getters||(J._getters=s.markRaw([]))).push(k))}if(z(N,J),z(s.toRaw(N),J),Object.defineProperty(N,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");S(_=>{z(_,k)})}}),process.env.NODE_ENV!=="production"&&(N._hotUpdate=s.markRaw(k=>{N._hotUpdating=!0,k._hmrPayload.state.forEach(_=>{if(_ in N.$state){const R=k.$state[_],V=N.$state[_];typeof R=="object"&&ce(R)&&ce(V)?tn(R,V):k.$state[_]=V}Ae(N,_,s.toRef(k.$state,_))}),Object.keys(N.$state).forEach(_=>{_ in k.$state||Ze(N,_)}),d=!1,u=!1,o.state.value[e]=s.toRef(k._hmrPayload,"hotState"),u=!0,s.nextTick().then(()=>{d=!0});for(const _ in k._hmrPayload.actions){const R=k[_];Ae(N,_,j(_,R))}for(const _ in k._hmrPayload.getters){const R=k._hmrPayload.getters[_],V=i?s.computed(()=>(be(o),R.call(N,N))):R;Ae(N,_,V)}Object.keys(N._hmrPayload.getters).forEach(_=>{_ in k._hmrPayload.getters||Ze(N,_)}),Object.keys(N._hmrPayload.actions).forEach(_=>{_ in k._hmrPayload.actions||Ze(N,_)}),N._hmrPayload=k._hmrPayload,N._getters=k._getters,N._hotUpdating=!1})),Ee){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(_=>{Object.defineProperty(N,_,z({value:N[_]},k))})}return o._p.forEach(k=>{if(Ee){const _=c.run(()=>k({store:N,app:o._a,pinia:o,options:a}));Object.keys(_||{}).forEach(R=>N._customProperties.add(R)),z(N,_)}else z(N,c.run(()=>k({store:N,app:o._a,pinia:o,options:a})))}),process.env.NODE_ENV!=="production"&&N.$state&&typeof N.$state=="object"&&typeof N.$state.constructor=="function"&&!N.$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 "${I.$id}".`),g&&a&&n.hydrate&&n.hydrate(I.$state,g),d=!0,u=!0,I}function Cr(e,t,n){let o,r;const a=typeof t=="function";if(typeof e=="string")o=e,r=a?n:t;else if(r=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 c(i,l){const d=s.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&_e&&_e._testing?null:i)||(d?s.inject(zt,null):null),i&&be(i),process.env.NODE_ENV!=="production"&&!_e)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 "${N.$id}".`),g&&i&&n.hydrate&&n.hydrate(N.$state,g),d=!0,u=!0,N}function Ir(e,t,n){let o,r;const i=typeof t=="function";if(typeof e=="string")o=e,r=i?n:t;else if(r=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 c(a,l){const d=s.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&_e&&_e._testing?null:a)||(d?s.inject(Ft,null):null),a&&be(a),process.env.NODE_ENV!=="production"&&!_e)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.`);i=_e,i._s.has(o)||(a?it(o,t,r,i):an(o,r,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const u=i._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+o,p=a?it(f,t,r,i,!0):an(f,z({},r),i,!0);l._hotUpdate(p),delete i.state.value[f],i._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Te){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const p=f.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=u}}return u}return c.$id=o,c}const Or=Cr("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function cn(e){e||(e=s.inject("$registry"));const t=Or(),n=s.ref(new ve(e,t)),o=s.ref(!1);return s.onBeforeMount(async()=>{var r,a;const c=e.router.currentRoute.value,i=(r=c.params.records)==null?void 0:r.toString().toLowerCase(),l=(a=c.params.record)==null?void 0:a.toString().toLowerCase();if(!i&&!l)return;const d=await e.getMeta(i);e.addDoctype(d),n.value.setup(d),i&&(l?await n.value.getRecord(d,l):await n.value.getRecords(d)),n.value.runAction(d,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}/*!
11
+ This will fail in production.`);a=_e,a._s.has(o)||(i?it(o,t,r,a):sn(o,r,a),process.env.NODE_ENV!=="production"&&(c._pinia=a));const u=a._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+o,p=i?it(f,t,r,a,!0):sn(f,z({},r),a,!0);l._hotUpdate(p),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&De){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const p=f.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=u}}return u}return c.$id=o,c}const Or=Ir("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function an(e){e||(e=s.inject("$registry"));const t=Or(),n=s.ref(new ve(e,t)),o=s.ref(!1);return s.onBeforeMount(async()=>{var r,i;const c=e.router.currentRoute.value,a=(r=c.params.records)==null?void 0:r.toString().toLowerCase(),l=(i=c.params.record)==null?void 0:i.toString().toLowerCase();if(!a&&!l)return;const d=await e.getMeta(a);e.addDoctype(d),n.value.setup(d),a&&(l?await n.value.getRecord(d,l):await n.value.getRecords(d)),n.value.runAction(d,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}/*!
12
12
  * vue-router v4.2.5
13
13
  * (c) 2023 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const Z=typeof window<"u";function Pr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const x=Object.assign;function ct(e,t){const n={};for(const o in t){const r=t[o];n[o]=W(r)?r.map(e):e(r)}return n}const ke=()=>{},W=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const xr=/\/$/,$r=e=>e.replace(xr,"");function lt(e,t,n="/"){let o,r={},a="",c="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(o=t.slice(0,l),a=t.slice(l+1,i>-1?i:t.length),r=e(a)),i>-1&&(o=o||t.slice(0,i),c=t.slice(i,t.length)),o=Dr(o??t,n),{fullPath:o+(a&&"?")+a+c,path:o,query:r,hash:c}}function Rr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ln(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function un(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&dn(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 dn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ar(e[n],t[n]))return!1;return!0}function Ar(e,t){return W(e)?fn(e,t):W(t)?fn(t,e):e===t}function fn(e,t){return W(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Dr(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("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let a=n.length-1,c,i;for(c=0;c<o.length;c++)if(i=o[c],i!==".")if(i==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(c-(c===o.length?1:0)).join("/")}var Se;(function(e){e.pop="pop",e.push="push"})(Se||(Se={}));var Ie;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ie||(Ie={}));function Tr(e){if(!e)if(Z){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$r(e)}const Vr=/^[^#]+#/;function Mr(e,t){return e.replace(Vr,"#")+t}function Br(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 Le=()=>({left:window.pageXOffset,top:window.pageYOffset});function jr(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 r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Br(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function pn(e,t){return(history.state?history.state.position-t:-1)+e}const ut=new Map;function Lr(e,t){ut.set(e,t)}function Ur(e){const t=ut.get(e);return ut.delete(e),t}let Hr=()=>location.protocol+"//"+location.host;function hn(e,t){const{pathname:n,search:o,hash:r}=t,a=e.indexOf("#");if(a>-1){let i=r.includes(e.slice(a))?e.slice(a).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),ln(l,"")}return ln(n,e)+o+r}function Wr(e,t,n,o){let r=[],a=[],c=null;const i=({state:p})=>{const h=hn(e,location),g=n.value,y=t.value;let w=0;if(p){if(n.value=h,t.value=p,c&&c===g){c=null;return}w=y?p.position-y.position:0}else o(h);r.forEach(S=>{S(n.value,g,{delta:w,type:Se.pop,direction:w?w>0?Ie.forward:Ie.back:Ie.unknown})})};function l(){c=n.value}function d(p){r.push(p);const h=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return a.push(h),h}function u(){const{history:p}=window;p.state&&p.replaceState(x({},p.state,{scroll:Le()}),"")}function f(){for(const p of a)p();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:f}}function mn(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Le():null}}function Fr(e){const{history:t,location:n}=window,o={value:hn(e,n)},r={value:t.state};r.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,d,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Hr()+e+l;try{t[u?"replaceState":"pushState"](d,"",p),r.value=d}catch(h){process.env.NODE_ENV!=="production"?P("Error with push/replace State",h):console.error(h),n[u?"replace":"assign"](p)}}function c(l,d){const u=x({},t.state,mn(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});a(l,u,!0),o.value=l}function i(l,d){const u=x({},r.value,t.state,{forward:l,scroll:Le()});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:
15
+ */const Z=typeof window<"u";function Cr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const x=Object.assign;function at(e,t){const n={};for(const o in t){const r=t[o];n[o]=W(r)?r.map(e):e(r)}return n}const ke=()=>{},W=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pr=/\/$/,xr=e=>e.replace(Pr,"");function ct(e,t,n="/"){let o,r={},i="",c="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),c=t.slice(a,t.length)),o=Ar(o??t,n),{fullPath:o+(i&&"?")+i+c,path:o,query:r,hash:c}}function $r(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function cn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ln(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&un(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 un(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rr(e[n],t[n]))return!1;return!0}function Rr(e,t){return W(e)?dn(e,t):W(t)?dn(t,e):e===t}function dn(e,t){return W(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Ar(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("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,c,a;for(c=0;c<o.length;c++)if(a=o[c],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(c-(c===o.length?1:0)).join("/")}var Se;(function(e){e.pop="pop",e.push="push"})(Se||(Se={}));var Ne;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ne||(Ne={}));function Dr(e){if(!e)if(Z){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xr(e)}const Tr=/^[^#]+#/;function Vr(e,t){return e.replace(Tr,"#")+t}function Br(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 je=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mr(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 i=document.querySelector(e.el);if(o&&i){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 r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Br(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function fn(e,t){return(history.state?history.state.position-t:-1)+e}const lt=new Map;function jr(e,t){lt.set(e,t)}function Lr(e){const t=lt.get(e);return lt.delete(e),t}let Ur=()=>location.protocol+"//"+location.host;function pn(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),cn(l,"")}return cn(n,e)+o+r}function Hr(e,t,n,o){let r=[],i=[],c=null;const a=({state:p})=>{const h=pn(e,location),g=n.value,y=t.value;let b=0;if(p){if(n.value=h,t.value=p,c&&c===g){c=null;return}b=y?p.position-y.position:0}else o(h);r.forEach(S=>{S(n.value,g,{delta:b,type:Se.pop,direction:b?b>0?Ne.forward:Ne.back:Ne.unknown})})};function l(){c=n.value}function d(p){r.push(p);const h=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return i.push(h),h}function u(){const{history:p}=window;p.state&&p.replaceState(x({},p.state,{scroll:je()}),"")}function f(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:f}}function hn(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?je():null}}function Wr(e){const{history:t,location:n}=window,o={value:pn(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,d,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Ur()+e+l;try{t[u?"replaceState":"pushState"](d,"",p),r.value=d}catch(h){process.env.NODE_ENV!=="production"?P("Error with push/replace State",h):console.error(h),n[u?"replace":"assign"](p)}}function c(l,d){const u=x({},t.state,hn(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});i(l,u,!0),o.value=l}function a(l,d){const u=x({},r.value,t.state,{forward:l,scroll:je()});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://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),a(u.current,u,!0);const f=x({},mn(o.value,l,null),{position:u.position+1},d);a(l,f,!1),o.value=l}return{location:o,state:r,push:i,replace:c}}function zr(e){e=Tr(e);const t=Fr(e),n=Wr(e,t.state,t.location,t.replace);function o(a,c=!0){c||n.pauseListeners(),history.go(a)}const r=x({location:"",base:e,go:o,createHref:Mr.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Gr(e){return typeof e=="string"||e&&typeof e=="object"}function gn(e){return typeof e=="string"||typeof e=="symbol"}const ae={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},dt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var yn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yn||(yn={}));const Kr={1({location:e,currentLocation:t}){return`No match for
19
+ You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),i(u.current,u,!0);const f=x({},hn(o.value,l,null),{position:u.position+1},d);i(l,f,!1),o.value=l}return{location:o,state:r,push:a,replace:c}}function Fr(e){e=Dr(e);const t=Wr(e),n=Hr(e,t.state,t.location,t.replace);function o(i,c=!0){c||n.pauseListeners(),history.go(i)}const r=x({location:"",base:e,go:o,createHref:Vr.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function zr(e){return typeof e=="string"||e&&typeof e=="object"}function mn(e){return typeof e=="string"||typeof e=="symbol"}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ut=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var gn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gn||(gn={}));const Gr={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 "${Jr(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 ge(e,t){return process.env.NODE_ENV!=="production"?x(new Error(Kr[e](t)),{type:e,[dt]:!0},t):x(new Error,{type:e,[dt]:!0},t)}function ee(e,t){return e instanceof Error&&dt in e&&(t==null||!!(e.type&t))}const qr=["params","query","hash"];function Jr(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of qr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const wn="[^/]+?",Yr={sensitive:!1,strict:!1,start:!0,end:!0},Qr=/[.+*?^${}()[\]/\\]/g;function Xr(e,t){const n=x({},Yr,t),o=[];let r=n.start?"^":"";const a=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let f=0;f<d.length;f++){const p=d[f];let h=40+(n.sensitive?.25:0);if(p.type===0)f||(r+="/"),r+=p.value.replace(Qr,"\\$&"),h+=40;else if(p.type===1){const{value:g,repeatable:y,optional:w,regexp:S}=p;a.push({name:g,repeatable:y,optional:w});const N=S||wn;if(N!==wn){h+=10;try{new RegExp(`(${N})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${g}" (${N}): `+j.message)}}let A=y?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;f||(A=w&&d.length<2?`(?:/${A})`:"/"+A),w&&(A+="?"),r+=A,h+=20,w&&(h+=-8),y&&(h+=-20),N===".*"&&(h+=-50)}u.push(h)}o.push(u)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function i(d){const u=d.match(c),f={};if(!u)return null;for(let p=1;p<u.length;p++){const h=u[p]||"",g=a[p-1];f[g.name]=h&&g.repeatable?h.split("/"):h}return f}function l(d){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of p)if(h.type===0)u+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:w}=h,S=g in d?d[g]:"";if(W(S)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const N=W(S)?S.join("/"):S;if(!N)if(w)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);u+=N}}return u||"/"}return{re:c,score:o,keys:a,parse:i,stringify:l}}function Zr(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 es(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const a=Zr(o[n],r[n]);if(a)return a;n++}if(Math.abs(r.length-o.length)===1){if(vn(o))return 1;if(vn(r))return-1}return r.length-o.length}function vn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ts={type:0,value:""},ns=/[a-zA-Z0-9_]/;function os(e){if(!e)return[[]];if(e==="/")return[[ts]];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})/"${d}": ${h}`)}let n=0,o=n;const r=[];let a;function c(){a&&r.push(a),a=[]}let i=0,l,d="",u="";function f(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&f(),c()):l===":"?(f(),n=1):p();break;case 4:p(),n=o;break;case 1:l==="("?n=2:ns.test(l)?p():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),f(),c(),r}function rs(e,t,n){const o=Xr(os(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const c of o.keys)a.has(c.name)&&P(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(c.name)}const r=x(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ss(e,t){const n=[],o=new Map;t=En({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function a(u,f,p){const h=!p,g=as(u);process.env.NODE_ENV!=="production"&&us(g,f),g.aliasOf=p&&p.record;const y=En(t,u),w=[g];if("alias"in u){const A=typeof u.alias=="string"?[u.alias]:u.alias;for(const j of A)w.push(x({},g,{components:p?p.record.components:g.components,path:j,aliasOf:p?p.record:g}))}let S,N;for(const A of w){const{path:j}=A;if(f&&j[0]!=="/"){const G=f.record.path,K=G[G.length-1]==="/"?"":"/";A.path=f.record.path+(j&&K+j)}if(process.env.NODE_ENV!=="production"&&A.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(S=rs(A,f,y),process.env.NODE_ENV!=="production"&&f&&j[0]==="/"&&ds(S,f),p?(p.alias.push(S),process.env.NODE_ENV!=="production"&&ls(p,S)):(N=N||S,N!==S&&N.alias.push(S),h&&u.name&&!bn(S)&&c(u.name)),g.children){const G=g.children;for(let K=0;K<G.length;K++)a(G[K],S,p&&p.children[K])}p=p||S,(S.record.components&&Object.keys(S.record.components).length||S.record.name||S.record.redirect)&&l(S)}return N?()=>{c(N)}:ke}function c(u){if(gn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function i(){return n}function l(u){let f=0;for(;f<n.length&&es(u,n[f])>=0&&(u.record.path!==n[f].record.path||!kn(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!bn(u)&&o.set(u.record.name,u)}function d(u,f){let p,h={},g,y;if("name"in u&&u.name){if(p=o.get(u.name),!p)throw ge(1,{location:u});if(process.env.NODE_ENV!=="production"){const N=Object.keys(u.params||{}).filter(A=>!p.keys.find(j=>j.name===A));N.length&&P(`Discarded invalid param(s) "${N.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}y=p.record.name,h=x(_n(f.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&_n(u.params,p.keys.map(N=>N.name))),g=p.stringify(h)}else if("path"in u)g=u.path,process.env.NODE_ENV!=="production"&&!g.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),p=n.find(N=>N.re.test(g)),p&&(h=p.parse(g),y=p.record.name);else{if(p=f.name?o.get(f.name):n.find(N=>N.re.test(f.path)),!p)throw ge(1,{location:u,currentLocation:f});y=p.record.name,h=x({},f.params,u.params),g=p.stringify(h)}const w=[];let S=p;for(;S;)w.unshift(S.record),S=S.parent;return{name:y,path:g,params:h,matched:w,meta:cs(w)}}return e.forEach(u=>a(u)),{addRoute:a,resolve:d,removeRoute:c,getRoutes:i,getRecordMatcher:r}}function _n(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function as(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:is(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function is(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 bn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function cs(e){return e.reduce((t,n)=>x(t,n.meta),{})}function En(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ft(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function ls(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(ft.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(ft.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 us(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 ds(e,t){for(const n of t.keys)if(!e.keys.find(ft.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 kn(e,t){return t.children.some(n=>n===e||kn(e,n))}const Sn=/#/g,fs=/&/g,ps=/\//g,hs=/=/g,ms=/\?/g,In=/\+/g,gs=/%5B/g,ys=/%5D/g,Nn=/%5E/g,ws=/%60/g,Cn=/%7B/g,vs=/%7C/g,On=/%7D/g,_s=/%20/g;function pt(e){return encodeURI(""+e).replace(vs,"|").replace(gs,"[").replace(ys,"]")}function bs(e){return pt(e).replace(Cn,"{").replace(On,"}").replace(Nn,"^")}function ht(e){return pt(e).replace(In,"%2B").replace(_s,"+").replace(Sn,"%23").replace(fs,"%26").replace(ws,"`").replace(Cn,"{").replace(On,"}").replace(Nn,"^")}function Es(e){return ht(e).replace(hs,"%3D")}function ks(e){return pt(e).replace(Sn,"%23").replace(ms,"%3F")}function Ss(e){return e==null?"":ks(e).replace(ps,"%2F")}function Ne(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}function Is(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const a=o[r].replace(In," "),c=a.indexOf("="),i=Ne(c<0?a:a.slice(0,c)),l=c<0?null:Ne(a.slice(c+1));if(i in t){let d=t[i];W(d)||(d=t[i]=[d]),d.push(l)}else t[i]=l}return t}function Pn(e){let t="";for(let n in e){const o=e[n];if(n=Es(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(W(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 Ns(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=W(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Cs=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),xn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),mt=Symbol(process.env.NODE_ENV!=="production"?"router":""),$n=Symbol(process.env.NODE_ENV!=="production"?"route location":""),gt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ce(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ie(e,t,n,o,r){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((c,i)=>{const l=f=>{f===!1?i(ge(4,{from:n,to:t})):f instanceof Error?i(f):Gr(f)?i(ge(2,{from:t,to:f})):(a&&o.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),c())},d=e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Os(l,t,n):l);let u=Promise.resolve(d);if(e.length<3&&(u=u.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 "${qr(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 ge(e,t){return process.env.NODE_ENV!=="production"?x(new Error(Gr[e](t)),{type:e,[ut]:!0},t):x(new Error,{type:e,[ut]:!0},t)}function ee(e,t){return e instanceof Error&&ut in e&&(t==null||!!(e.type&t))}const Kr=["params","query","hash"];function qr(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of Kr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const yn="[^/]+?",Jr={sensitive:!1,strict:!1,start:!0,end:!0},Yr=/[.+*?^${}()[\]/\\]/g;function Qr(e,t){const n=x({},Jr,t),o=[];let r=n.start?"^":"";const i=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let f=0;f<d.length;f++){const p=d[f];let h=40+(n.sensitive?.25:0);if(p.type===0)f||(r+="/"),r+=p.value.replace(Yr,"\\$&"),h+=40;else if(p.type===1){const{value:g,repeatable:y,optional:b,regexp:S}=p;i.push({name:g,repeatable:y,optional:b});const I=S||yn;if(I!==yn){h+=10;try{new RegExp(`(${I})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${g}" (${I}): `+j.message)}}let A=y?`((?:${I})(?:/(?:${I}))*)`:`(${I})`;f||(A=b&&d.length<2?`(?:/${A})`:"/"+A),b&&(A+="?"),r+=A,h+=20,b&&(h+=-8),y&&(h+=-20),I===".*"&&(h+=-50)}u.push(h)}o.push(u)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function a(d){const u=d.match(c),f={};if(!u)return null;for(let p=1;p<u.length;p++){const h=u[p]||"",g=i[p-1];f[g.name]=h&&g.repeatable?h.split("/"):h}return f}function l(d){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of p)if(h.type===0)u+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:b}=h,S=g in d?d[g]:"";if(W(S)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const I=W(S)?S.join("/"):S;if(!I)if(b)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);u+=I}}return u||"/"}return{re:c,score:o,keys:i,parse:a,stringify:l}}function Xr(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 Zr(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const i=Xr(o[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-o.length)===1){if(wn(o))return 1;if(wn(r))return-1}return r.length-o.length}function wn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const es={type:0,value:""},ts=/[a-zA-Z0-9_]/;function ns(e){if(!e)return[[]];if(e==="/")return[[es]];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})/"${d}": ${h}`)}let n=0,o=n;const r=[];let i;function c(){i&&r.push(i),i=[]}let a=0,l,d="",u="";function f(){d&&(n===0?i.push({type:0,value:d}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&f(),c()):l===":"?(f(),n=1):p();break;case 4:p(),n=o;break;case 1:l==="("?n=2:ts.test(l)?p():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),f(),c(),r}function os(e,t,n){const o=Qr(ns(e.path),n);if(process.env.NODE_ENV!=="production"){const i=new Set;for(const c of o.keys)i.has(c.name)&&P(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),i.add(c.name)}const r=x(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function rs(e,t){const n=[],o=new Map;t=bn({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function i(u,f,p){const h=!p,g=ss(u);process.env.NODE_ENV!=="production"&&ls(g,f),g.aliasOf=p&&p.record;const y=bn(t,u),b=[g];if("alias"in u){const A=typeof u.alias=="string"?[u.alias]:u.alias;for(const j of A)b.push(x({},g,{components:p?p.record.components:g.components,path:j,aliasOf:p?p.record:g}))}let S,I;for(const A of b){const{path:j}=A;if(f&&j[0]!=="/"){const G=f.record.path,K=G[G.length-1]==="/"?"":"/";A.path=f.record.path+(j&&K+j)}if(process.env.NODE_ENV!=="production"&&A.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
+ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(S=os(A,f,y),process.env.NODE_ENV!=="production"&&f&&j[0]==="/"&&us(S,f),p?(p.alias.push(S),process.env.NODE_ENV!=="production"&&cs(p,S)):(I=I||S,I!==S&&I.alias.push(S),h&&u.name&&!_n(S)&&c(u.name)),g.children){const G=g.children;for(let K=0;K<G.length;K++)i(G[K],S,p&&p.children[K])}p=p||S,(S.record.components&&Object.keys(S.record.components).length||S.record.name||S.record.redirect)&&l(S)}return I?()=>{c(I)}:ke}function c(u){if(mn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function a(){return n}function l(u){let f=0;for(;f<n.length&&Zr(u,n[f])>=0&&(u.record.path!==n[f].record.path||!En(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!_n(u)&&o.set(u.record.name,u)}function d(u,f){let p,h={},g,y;if("name"in u&&u.name){if(p=o.get(u.name),!p)throw ge(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(A=>!p.keys.find(j=>j.name===A));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.`)}y=p.record.name,h=x(vn(f.params,p.keys.filter(I=>!I.optional).map(I=>I.name)),u.params&&vn(u.params,p.keys.map(I=>I.name))),g=p.stringify(h)}else if("path"in u)g=u.path,process.env.NODE_ENV!=="production"&&!g.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),p=n.find(I=>I.re.test(g)),p&&(h=p.parse(g),y=p.record.name);else{if(p=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!p)throw ge(1,{location:u,currentLocation:f});y=p.record.name,h=x({},f.params,u.params),g=p.stringify(h)}const b=[];let S=p;for(;S;)b.unshift(S.record),S=S.parent;return{name:y,path:g,params:h,matched:b,meta:as(b)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:d,removeRoute:c,getRoutes:a,getRecordMatcher:r}}function vn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function ss(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:is(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function is(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 _n(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function as(e){return e.reduce((t,n)=>x(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 dt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function cs(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(dt.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(dt.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 ls(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 us(e,t){for(const n of t.keys)if(!e.keys.find(dt.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 En(e,t){return t.children.some(n=>n===e||En(e,n))}const kn=/#/g,ds=/&/g,fs=/\//g,ps=/=/g,hs=/\?/g,Sn=/\+/g,ms=/%5B/g,gs=/%5D/g,Nn=/%5E/g,ys=/%60/g,In=/%7B/g,ws=/%7C/g,On=/%7D/g,vs=/%20/g;function ft(e){return encodeURI(""+e).replace(ws,"|").replace(ms,"[").replace(gs,"]")}function _s(e){return ft(e).replace(In,"{").replace(On,"}").replace(Nn,"^")}function pt(e){return ft(e).replace(Sn,"%2B").replace(vs,"+").replace(kn,"%23").replace(ds,"%26").replace(ys,"`").replace(In,"{").replace(On,"}").replace(Nn,"^")}function bs(e){return pt(e).replace(ps,"%3D")}function Es(e){return ft(e).replace(kn,"%23").replace(hs,"%3F")}function ks(e){return e==null?"":Es(e).replace(fs,"%2F")}function Ie(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}function Ss(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const i=o[r].replace(Sn," "),c=i.indexOf("="),a=Ie(c<0?i:i.slice(0,c)),l=c<0?null:Ie(i.slice(c+1));if(a in t){let d=t[a];W(d)||(d=t[a]=[d]),d.push(l)}else t[a]=l}return t}function Cn(e){let t="";for(let n in e){const o=e[n];if(n=bs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(W(o)?o.map(i=>i&&pt(i)):[o&&pt(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ns(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=W(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Is=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Pn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),ht=Symbol(process.env.NODE_ENV!=="production"?"router":""),xn=Symbol(process.env.NODE_ENV!=="production"?"route location":""),mt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Oe(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ae(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((c,a)=>{const l=f=>{f===!1?a(ge(4,{from:n,to:t})):f instanceof Error?a(f):zr(f)?a(ge(2,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),c())},d=e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Os(l,t,n):l);let u=Promise.resolve(d);if(e.length<3&&(u=u.then(l)),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 d=="object"&&"then"in d)u=u.then(p=>l._called?p:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!l._called){P(f),i(new Error("Invalid navigation guard"));return}}u.catch(f=>i(f))})}function Os(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 yt(e,t,n,o){const r=[];for(const a of e){process.env.NODE_ENV!=="production"&&!a.components&&!a.children.length&&P(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);for(const c in a.components){let i=a.components[c];if(process.env.NODE_ENV!=="production"){if(!i||typeof i!="object"&&typeof i!="function")throw P(`Component "${c}" in record with path "${a.path}" is not a valid component. Received "${String(i)}".`),new Error("Invalid route component");if("then"in i){P(`Component "${c}" in record with path "${a.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=i;i=()=>l}else i.__asyncLoader&&!i.__warnedDefineAsync&&(i.__warnedDefineAsync=!0,P(`Component "${c}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!a.instances[c]))if(Ps(i)){const d=(i.__vccOpts||i)[t];d&&r.push(ie(d,n,o,a,c))}else{let l=i();process.env.NODE_ENV!=="production"&&!("catch"in l)&&(P(`Component "${c}" in record with path "${a.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)),r.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${a.path}"`));const u=Pr(d)?d.default:d;a.components[c]=u;const p=(u.__vccOpts||u)[t];return p&&ie(p,n,o,a,c)()}))}}}return r}function Ps(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rn(e){const t=s.inject(mt),n=s.inject($n),o=s.computed(()=>t.resolve(s.unref(e.to))),r=s.computed(()=>{const{matched:l}=o.value,{length:d}=l,u=l[d-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(se.bind(null,u));if(p>-1)return p;const h=An(l[d-2]);return d>1&&An(u)===h&&f[f.length-1].path!==h?f.findIndex(se.bind(null,l[d-2])):p}),a=s.computed(()=>r.value>-1&&Rs(n.params,o.value.params)),c=s.computed(()=>r.value>-1&&r.value===n.matched.length-1&&dn(n.params,o.value.params));function i(l={}){return $s(l)?t[s.unref(e.replace)?"replace":"push"](s.unref(e.to)).catch(ke):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Z){const l=s.getCurrentInstance();if(l){const d={route:o.value,isActive:a.value,isExactActive:c.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(d),s.watchEffect(()=>{d.route=o.value,d.isActive=a.value,d.isExactActive=c.value},{flush:"post"})}}return{route:o,href:s.computed(()=>o.value.href),isActive:a,isExactActive:c,navigate:i}}const xs=s.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:Rn,setup(e,{slots:t}){const n=s.reactive(Rn(e)),{options:o}=s.inject(mt),r=s.computed(()=>({[Dn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Dn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:s.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}});function $s(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 Rs(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!W(r)||r.length!==o.length||o.some((a,c)=>a!==r[c]))return!1}return!0}function An(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dn=(e,t,n)=>e??t??n,As=s.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"&&Ts();const o=s.inject(gt),r=s.computed(()=>e.route||o.value),a=s.inject(xn,0),c=s.computed(()=>{let d=s.unref(a);const{matched:u}=r.value;let f;for(;(f=u[d])&&!f.components;)d++;return d}),i=s.computed(()=>r.value.matched[c.value]);s.provide(xn,s.computed(()=>c.value+1)),s.provide(Cs,i),s.provide(gt,r);const l=s.ref();return s.watch(()=>[l.value,i.value,e.name],([d,u,f],[p,h,g])=>{u&&(u.instances[f]=d,h&&h!==u&&d&&d===p&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!se(u,h)||!p)&&(u.enterCallbacks[f]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,u=e.name,f=i.value,p=f&&f.components[u];if(!p)return Tn(n.default,{Component:p,route:d});const h=f.props[u],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=S=>{S.component.isUnmounted&&(f.instances[u]=null)},w=s.h(p,x({},g,t,{onVnodeUnmounted:y,ref:l}));if(process.env.NODE_ENV!=="production"&&Z&&w.ref){const S={depth:c.value,name:f.name,path:f.path,meta:f.meta};(W(w.ref)?w.ref.map(A=>A.i):[w.ref.i]).forEach(A=>{A.__vrv_devtools=S})}return Tn(n.default,{Component:w,route:d})||w}}});function Tn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ds=As;function Ts(){const e=s.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>.
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(p=>l._called?p:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!l._called){P(f),a(new Error("Invalid navigation guard"));return}}u.catch(f=>a(f))})}function Os(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 gt(e,t,n,o){const r=[];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 a=i.components[c];if(process.env.NODE_ENV!=="production"){if(!a||typeof a!="object"&&typeof a!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){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 l=a;a=()=>l}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__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(Cs(a)){const d=(a.__vccOpts||a)[t];d&&r.push(ae(d,n,o,i,c))}else{let l=a();process.env.NODE_ENV!=="production"&&!("catch"in l)&&(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.`),l=Promise.resolve(l)),r.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const u=Cr(d)?d.default:d;i.components[c]=u;const p=(u.__vccOpts||u)[t];return p&&ae(p,n,o,i,c)()}))}}}return r}function Cs(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $n(e){const t=s.inject(ht),n=s.inject(xn),o=s.computed(()=>t.resolve(s.unref(e.to))),r=s.computed(()=>{const{matched:l}=o.value,{length:d}=l,u=l[d-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(se.bind(null,u));if(p>-1)return p;const h=Rn(l[d-2]);return d>1&&Rn(u)===h&&f[f.length-1].path!==h?f.findIndex(se.bind(null,l[d-2])):p}),i=s.computed(()=>r.value>-1&&$s(n.params,o.value.params)),c=s.computed(()=>r.value>-1&&r.value===n.matched.length-1&&un(n.params,o.value.params));function a(l={}){return xs(l)?t[s.unref(e.replace)?"replace":"push"](s.unref(e.to)).catch(ke):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Z){const l=s.getCurrentInstance();if(l){const d={route:o.value,isActive:i.value,isExactActive:c.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(d),s.watchEffect(()=>{d.route=o.value,d.isActive=i.value,d.isExactActive=c.value},{flush:"post"})}}return{route:o,href:s.computed(()=>o.value.href),isActive:i,isExactActive:c,navigate:a}}const Ps=s.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:$n,setup(e,{slots:t}){const n=s.reactive($n(e)),{options:o}=s.inject(ht),r=s.computed(()=>({[An(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[An(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:s.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}});function xs(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 $s(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!W(r)||r.length!==o.length||o.some((i,c)=>i!==r[c]))return!1}return!0}function Rn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const An=(e,t,n)=>e??t??n,Rs=s.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"&&Ds();const o=s.inject(mt),r=s.computed(()=>e.route||o.value),i=s.inject(Pn,0),c=s.computed(()=>{let d=s.unref(i);const{matched:u}=r.value;let f;for(;(f=u[d])&&!f.components;)d++;return d}),a=s.computed(()=>r.value.matched[c.value]);s.provide(Pn,s.computed(()=>c.value+1)),s.provide(Is,a),s.provide(mt,r);const l=s.ref();return s.watch(()=>[l.value,a.value,e.name],([d,u,f],[p,h,g])=>{u&&(u.instances[f]=d,h&&h!==u&&d&&d===p&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!se(u,h)||!p)&&(u.enterCallbacks[f]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,u=e.name,f=a.value,p=f&&f.components[u];if(!p)return Dn(n.default,{Component:p,route:d});const h=f.props[u],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=S=>{S.component.isUnmounted&&(f.instances[u]=null)},b=s.h(p,x({},g,t,{onVnodeUnmounted:y,ref:l}));if(process.env.NODE_ENV!=="production"&&Z&&b.ref){const S={depth:c.value,name:f.name,path:f.path,meta:f.meta};(W(b.ref)?b.ref.map(A=>A.i):[b.ref.i]).forEach(A=>{A.__vrv_devtools=S})}return Dn(n.default,{Component:b,route:d})||b}}});function Dn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const As=Rs;function Ds(){const e=s.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>.
26
26
  Use slot props instead:
27
27
 
28
28
  <router-view v-slot="{ Component }">
29
29
  <${o}>
30
30
  <component :is="Component" />
31
31
  </${o}>
32
- </router-view>`)}}function Oe(e,t){const n=x({},e,{matched:e.matched.map(o=>Fs(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Ue(e){return{_custom:{display:e}}}let Vs=0;function Ms(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Vs++;nt({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},r=>{typeof r.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."),r.on.inspectComponent((u,f)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Oe(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:u,componentInstance:f})=>{if(f.__vrv_devtools){const p=f.__vrv_devtools;u.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Vn})}W(f.__vrl_devtools)&&(f.__devtoolsApi=r,f.__vrl_devtools.forEach(p=>{let h=jn,g="";p.isExactActive?(h=Bn,g="This is exactly active"):p.isActive&&(h=Mn,g="This link is active"),u.tags.push({label:p.route.path,textColor:0,tooltip:g,backgroundColor:h})}))}),s.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(i),r.sendInspectorState(i)});const a="router:navigations:"+o;r.addTimelineLayer({id:a,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((u,f)=>{r.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:f.fullPath,logType:"error",time:r.now(),data:{error:u},groupId:f.meta.__navigationId}})});let c=0;t.beforeEach((u,f)=>{const p={guard:Ue("beforeEach"),from:Oe(f,"Current Location during this navigation"),to:Oe(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:a,event:{time:r.now(),title:"Start of navigation",subtitle:u.fullPath,data:p,groupId:u.meta.__navigationId}})}),t.afterEach((u,f,p)=>{const h={guard:Ue("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=Ue("โŒ")):h.status=Ue("โœ…"),h.from=Oe(f,"Current Location during this navigation"),h.to=Oe(u,"Target location"),r.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:u.fullPath,time:r.now(),data:h,logType:p?"warning":"default",groupId:u.meta.__navigationId}})});const i="router-inspector:"+o;r.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const u=d;let f=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);f.forEach(Hn),u.filter&&(f=f.filter(p=>wt(p,u.filter.toLowerCase()))),f.forEach(p=>Un(p,t.currentRoute.value)),u.rootNodes=f.map(Ln)}let d;r.on.getInspectorTree(u=>{d=u,u.app===e&&u.inspectorId===i&&l()}),r.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===i){const p=n.getRoutes().find(h=>h.record.__vd_id===u.nodeId);p&&(u.state={options:js(p)})}}),r.sendInspectorTree(i),r.sendInspectorState(i)})}function Bs(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function js(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}${Bs(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 Vn=15485081,Mn=2450411,Bn=8702998,Ls=2282478,jn=16486972,Us=6710886;function Ln(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Ls}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:jn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Vn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Bn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Mn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Us});let o=n.__vd_id;return o==null&&(o=String(Hs++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Ln)}}let Hs=0;const Ws=/^\/(.*)\/([a-z]*)$/;function Un(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=>Un(o,t))}function Hn(e){e.__vd_match=!1,e.children.forEach(Hn)}function wt(e,t){const n=String(e.re).match(Ws);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(c=>wt(c,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const r=e.record.path.toLowerCase(),a=Ne(r);return!t.startsWith("/")&&(a.includes(t)||r.includes(t))||a.startsWith(t)||r.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(c=>wt(c,t))}function Fs(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function zs(e){const t=ss(e.routes,e),n=e.parseQuery||Is,o=e.stringifyQuery||Pn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const a=Ce(),c=Ce(),i=Ce(),l=s.shallowRef(ae);let d=ae;Z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ct.bind(null,m=>""+m),f=ct.bind(null,Ss),p=ct.bind(null,Ne);function h(m,_){let v,E;return gn(m)?(v=t.getRecordMatcher(m),E=_):E=m,t.addRoute(E,v)}function g(m){const _=t.getRecordMatcher(m);_?t.removeRoute(_):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function w(m){return!!t.getRecordMatcher(m)}function S(m,_){if(_=x({},_||l.value),typeof m=="string"){const C=lt(n,m,_.path),D=t.resolve({path:C.path},_),fe=r.createHref(C.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?P(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):D.matched.length||P(`No match found for location with path "${m}"`)),x(C,D,{params:p(D.params),hash:Ne(C.hash),redirectedFrom:void 0,href:fe})}let v;if("path"in m)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),v=x({},m,{path:lt(n,m.path,_.path).path});else{const C=x({},m.params);for(const D in C)C[D]==null&&delete C[D];v=x({},m,{params:f(C)}),_.params=f(_.params)}const E=t.resolve(v,_),$=m.hash||"";process.env.NODE_ENV!=="production"&&$&&!$.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${$}" with "#${$}".`),E.params=u(p(E.params));const T=Rr(o,x({},m,{hash:bs($),path:E.path})),O=r.createHref(T);return process.env.NODE_ENV!=="production"&&(O.startsWith("//")?P(`Location "${m}" resolved to "${O}". A resolved location cannot start with multiple slashes.`):E.matched.length||P(`No match found for location with path "${"path"in m?m.path:m}"`)),x({fullPath:T,hash:$,query:o===Pn?Ns(m.query):m.query||{}},E,{redirectedFrom:void 0,href:O})}function N(m){return typeof m=="string"?lt(n,m,l.value.path):x({},m)}function A(m,_){if(d!==m)return ge(8,{from:_,to:m})}function j(m){return I(m)}function G(m){return j(x(N(m),{replace:!0}))}function K(m){const _=m.matched[m.matched.length-1];if(_&&_.redirect){const{redirect:v}=_;let E=typeof v=="function"?v(m):v;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=N(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&!("path"in E)&&!("name"in E))throw P(`Invalid redirect found:
32
+ </router-view>`)}}function Ce(e,t){const n=x({},e,{matched:e.matched.map(o=>Ws(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Le(e){return{_custom:{display:e}}}let Ts=0;function Vs(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ts++;tt({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},r=>{typeof r.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."),r.on.inspectComponent((u,f)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:u,componentInstance:f})=>{if(f.__vrv_devtools){const p=f.__vrv_devtools;u.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Tn})}W(f.__vrl_devtools)&&(f.__devtoolsApi=r,f.__vrl_devtools.forEach(p=>{let h=Mn,g="";p.isExactActive?(h=Bn,g="This is exactly active"):p.isActive&&(h=Vn,g="This link is active"),u.tags.push({label:p.route.path,textColor:0,tooltip:g,backgroundColor:h})}))}),s.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(a),r.sendInspectorState(a)});const i="router:navigations:"+o;r.addTimelineLayer({id:i,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((u,f)=>{r.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:f.fullPath,logType:"error",time:r.now(),data:{error:u},groupId:f.meta.__navigationId}})});let c=0;t.beforeEach((u,f)=>{const p={guard:Le("beforeEach"),from:Ce(f,"Current Location during this navigation"),to:Ce(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:i,event:{time:r.now(),title:"Start of navigation",subtitle:u.fullPath,data:p,groupId:u.meta.__navigationId}})}),t.afterEach((u,f,p)=>{const h={guard:Le("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=Le("โŒ")):h.status=Le("โœ…"),h.from=Ce(f,"Current Location during this navigation"),h.to=Ce(u,"Target location"),r.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:r.now(),data:h,logType:p?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+o;r.addInspector({id:a,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const u=d;let f=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);f.forEach(Un),u.filter&&(f=f.filter(p=>yt(p,u.filter.toLowerCase()))),f.forEach(p=>Ln(p,t.currentRoute.value)),u.rootNodes=f.map(jn)}let d;r.on.getInspectorTree(u=>{d=u,u.app===e&&u.inspectorId===a&&l()}),r.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===a){const p=n.getRoutes().find(h=>h.record.__vd_id===u.nodeId);p&&(u.state={options:Ms(p)})}}),r.sendInspectorTree(a),r.sendInspectorState(a)})}function Bs(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Ms(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}${Bs(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 Tn=15485081,Vn=2450411,Bn=8702998,js=2282478,Mn=16486972,Ls=6710886;function jn(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:js}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Mn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Tn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Bn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Vn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Ls});let o=n.__vd_id;return o==null&&(o=String(Us++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(jn)}}let Us=0;const Hs=/^\/(.*)\/([a-z]*)$/;function Ln(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=>Ln(o,t))}function Un(e){e.__vd_match=!1,e.children.forEach(Un)}function yt(e,t){const n=String(e.re).match(Hs);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(c=>yt(c,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const r=e.record.path.toLowerCase(),i=Ie(r);return!t.startsWith("/")&&(i.includes(t)||r.includes(t))||i.startsWith(t)||r.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(c=>yt(c,t))}function Ws(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function Fs(e){const t=rs(e.routes,e),n=e.parseQuery||Ss,o=e.stringifyQuery||Cn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=Oe(),c=Oe(),a=Oe(),l=s.shallowRef(ie);let d=ie;Z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=at.bind(null,m=>""+m),f=at.bind(null,ks),p=at.bind(null,Ie);function h(m,v){let w,E;return mn(m)?(w=t.getRecordMatcher(m),E=v):E=m,t.addRoute(E,w)}function g(m){const v=t.getRecordMatcher(m);v?t.removeRoute(v):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function b(m){return!!t.getRecordMatcher(m)}function S(m,v){if(v=x({},v||l.value),typeof m=="string"){const O=ct(n,m,v.path),D=t.resolve({path:O.path},v),fe=r.createHref(O.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?P(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):D.matched.length||P(`No match found for location with path "${m}"`)),x(O,D,{params:p(D.params),hash:Ie(O.hash),redirectedFrom:void 0,href:fe})}let w;if("path"in m)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=x({},m,{path:ct(n,m.path,v.path).path});else{const O=x({},m.params);for(const D in O)O[D]==null&&delete O[D];w=x({},m,{params:f(O)}),v.params=f(v.params)}const E=t.resolve(w,v),$=m.hash||"";process.env.NODE_ENV!=="production"&&$&&!$.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${$}" with "#${$}".`),E.params=u(p(E.params));const T=$r(o,x({},m,{hash:_s($),path:E.path})),C=r.createHref(T);return process.env.NODE_ENV!=="production"&&(C.startsWith("//")?P(`Location "${m}" resolved to "${C}". A resolved location cannot start with multiple slashes.`):E.matched.length||P(`No match found for location with path "${"path"in m?m.path:m}"`)),x({fullPath:T,hash:$,query:o===Cn?Ns(m.query):m.query||{}},E,{redirectedFrom:void 0,href:C})}function I(m){return typeof m=="string"?ct(n,m,l.value.path):x({},m)}function A(m,v){if(d!==m)return ge(8,{from:v,to:m})}function j(m){return N(m)}function G(m){return j(x(I(m),{replace:!0}))}function K(m){const v=m.matched[m.matched.length-1];if(v&&v.redirect){const{redirect:w}=v;let E=typeof w=="function"?w(m):w;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=I(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&!("path"in E)&&!("name"in E))throw P(`Invalid redirect found:
33
33
  ${JSON.stringify(E,null,2)}
34
- when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return x({query:m.query,hash:m.hash,params:"path"in E?{}:m.params},E)}}function I(m,_){const v=d=S(m),E=l.value,$=m.state,T=m.force,O=m.replace===!0,C=K(v);if(C)return I(x(N(C),{state:typeof C=="object"?x({},$,C.state):$,force:T,replace:O}),_||v);const D=v;D.redirectedFrom=_;let fe;return!T&&un(o,E,v)&&(fe=ge(16,{to:D,from:E}),To(E,E,!0,!1)),(fe?Promise.resolve(fe):k(D,E)).catch(H=>ee(H)?ee(H,2)?H:Bt(H):U(H,D,E)).then(H=>{if(H){if(ee(H,2))return process.env.NODE_ENV!=="production"&&un(o,S(H.to),D)&&_&&(_._count=_._count?_._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${D.fullPath}". Aborting to avoid a Stack Overflow.
35
- 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"))):I(x({replace:O},N(H.to),{state:typeof H.to=="object"?x({},$,H.to.state):$,force:T}),_||D)}else H=R(D,E,!0,O,$);return b(D,E,H),H})}function Do(m,_){const v=A(m,_);return v?Promise.reject(v):Promise.resolve()}function J(m){const _=Ye.values().next().value;return _&&typeof _.runWithContext=="function"?_.runWithContext(m):m()}function k(m,_){let v;const[E,$,T]=Gs(m,_);v=yt(E.reverse(),"beforeRouteLeave",m,_);for(const C of E)C.leaveGuards.forEach(D=>{v.push(ie(D,m,_))});const O=Do.bind(null,m,_);return v.push(O),we(v).then(()=>{v=[];for(const C of a.list())v.push(ie(C,m,_));return v.push(O),we(v)}).then(()=>{v=yt($,"beforeRouteUpdate",m,_);for(const C of $)C.updateGuards.forEach(D=>{v.push(ie(D,m,_))});return v.push(O),we(v)}).then(()=>{v=[];for(const C of T)if(C.beforeEnter)if(W(C.beforeEnter))for(const D of C.beforeEnter)v.push(ie(D,m,_));else v.push(ie(C.beforeEnter,m,_));return v.push(O),we(v)}).then(()=>(m.matched.forEach(C=>C.enterCallbacks={}),v=yt(T,"beforeRouteEnter",m,_),v.push(O),we(v))).then(()=>{v=[];for(const C of c.list())v.push(ie(C,m,_));return v.push(O),we(v)}).catch(C=>ee(C,8)?C:Promise.reject(C))}function b(m,_,v){i.list().forEach(E=>J(()=>E(m,_,v)))}function R(m,_,v,E,$){const T=A(m,_);if(T)return T;const O=_===ae,C=Z?history.state:{};v&&(E||O?r.replace(m.fullPath,x({scroll:O&&C&&C.scroll},$)):r.push(m.fullPath,$)),l.value=m,To(m,_,v,O),Bt()}let V;function de(){V||(V=r.listen((m,_,v)=>{const E=S(m),$=K(E);if($){I(x($,{replace:!0}),E).catch(ke);return}d=E;const T=l.value;Z&&Lr(pn(T.fullPath,v.delta),Le()),k(E,T).catch(O=>ee(O,12)?O:ee(O,2)?(I(O.to,E).then(C=>{ee(C,20)&&!v.delta&&v.type===Se.pop&&r.go(-1,!1)}).catch(ke),Promise.reject()):(v.delta&&r.go(-v.delta,!1),U(O,E,T))).then(O=>{O=O||R(E,T,!1),O&&(v.delta&&!ee(O,8)?r.go(-v.delta,!1):v.type===Se.pop&&ee(O,20)&&r.go(-1,!1)),b(E,T,O)}).catch(ke)}))}let Ae=Ce(),Je=Ce(),Q;function U(m,_,v){Bt(m);const E=Je.list();return E.length?E.forEach($=>$(m,_,v)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function Yi(){return Q&&l.value!==ae?Promise.resolve():new Promise((m,_)=>{Ae.add([m,_])})}function Bt(m){return Q||(Q=!m,de(),Ae.list().forEach(([_,v])=>m?v(m):_()),Ae.reset()),m}function To(m,_,v,E){const{scrollBehavior:$}=e;if(!Z||!$)return Promise.resolve();const T=!v&&Ur(pn(m.fullPath,0))||(E||!v)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>$(m,_,T)).then(O=>O&&jr(O)).catch(O=>U(O,m,_))}const jt=m=>r.go(m);let Lt;const Ye=new Set,Qi={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,hasRoute:w,getRoutes:y,resolve:S,options:e,push:j,replace:G,go:jt,back:()=>jt(-1),forward:()=>jt(1),beforeEach:a.add,beforeResolve:c.add,afterEach:i.add,onError:Je.add,isReady:Yi,install(m){const _=this;m.component("RouterLink",xs),m.component("RouterView",Ds),m.config.globalProperties.$router=_,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(l)}),Z&&!Lt&&l.value===ae&&(Lt=!0,j(r.location).catch($=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",$)}));const v={};for(const $ in ae)Object.defineProperty(v,$,{get:()=>l.value[$],enumerable:!0});m.provide(mt,_),m.provide($n,s.shallowReactive(v)),m.provide(gt,l);const E=m.unmount;Ye.add(m),m.unmount=function(){Ye.delete(m),Ye.size<1&&(d=ae,V&&V(),V=null,l.value=ae,Lt=!1,Q=!1),E()},process.env.NODE_ENV!=="production"&&Z&&Ms(m,_,t)}};function we(m){return m.reduce((_,v)=>_.then(()=>J(v)),Promise.resolve())}return Qi}function Gs(e,t){const n=[],o=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let c=0;c<a;c++){const i=t.matched[c];i&&(e.matched.find(d=>se(d,i))?o.push(i):n.push(i));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}zs({history:zr(),routes:[]});function Ks(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ue=Promise.resolve();function Wn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function qs(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function vt(){return Math.random().toString(36).substring(2)}var Fn=0,_t=0;function He(){var e=new Date().getTime();return e===Fn?(_t++,e*1e3+_t):(Fn=e,_t=0,e*1e3)}var Js=He,Ys="native";function Qs(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Xs(e){e.bc.close(),e.subFns=[]}function Zs(e,t){try{return e.bc.postMessage(t,!1),ue}catch(n){return Promise.reject(n)}}function ea(e,t){e.messagesCallback=t}function ta(){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 na(){return 150}var oa={create:Qs,close:Xs,onMessage:ea,postMessage:Zs,canBeUsed:ta,type:Ys,averageResponseTime:na,microSeconds:Js},zn=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,Gn()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ra(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ra(e){for(var t=Gn()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],a=o[1];if(a<t)e.map.delete(r);else return}}function Gn(){return new Date().getTime()}function bt(){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 sa=He,aa="pubkey.broadcast-channel-0-",te="messages",We={durability:"relaxed"},ia="idb";function Kn(){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 Et(e){e.commit&&e.commit()}function ca(e){var t=Kn(),n=aa+e,o=t.open(n);return o.onupgradeneeded=function(r){var a=r.target.result;a.createObjectStore(te,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,a){o.onerror=function(c){return a(c)},o.onsuccess=function(){r(o.result)}})}function la(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},a=e.transaction([te],"readwrite",We);return new Promise(function(c,i){a.oncomplete=function(){return c()},a.onerror=function(d){return i(d)};var l=a.objectStore(te);l.add(r),Et(a)})}function ua(e,t){var n=e.transaction(te,"readonly",We),o=n.objectStore(te),r=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(a);return new Promise(function(l,d){c.onerror=function(u){return d(u)},c.onsuccess=function(u){l(u.target.result)}})}function i(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(l,d){var u=i();u.onerror=function(f){return d(f)},u.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(r.push(p.value),p.continue()):(Et(n),l(r))}})}function da(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(te,"readwrite",We),o=n.objectStore(te);return Promise.all(t.map(function(r){var a=o.delete(r);return new Promise(function(c){a.onsuccess=function(){return c()}})}))}function fa(e,t){var n=new Date().getTime()-t,o=e.transaction(te,"readonly",We),r=o.objectStore(te),a=[];return new Promise(function(c){r.openCursor().onsuccess=function(i){var l=i.target.result;if(l){var d=l.value;d.time<n?(a.push(d),l.continue()):(Et(o),c(a))}else c(a)}})}function pa(e){return fa(e.db,e.options.idb.ttl).then(function(t){return da(e,t.map(function(n){return n.id}))})}function ha(e,t){return t=bt(t),ca(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:vt(),eMIs:new zn(t.idb.ttl*2),writeBlockPromise:ue,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},qn(o),o})}function qn(e){e.closed||Jn(e).then(function(){return Wn(e.options.idb.fallbackInterval)}).then(function(){return qn(e)})}function ma(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function Jn(e){return e.closed||!e.messagesCallback?ue:ua(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 ma(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),ue})}function ga(e){e.closed=!0,e.db.close()}function ya(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return la(e.db,e.uuid,t)}).then(function(){qs(0,10)===0&&pa(e)}),e.writeBlockPromise}function wa(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,Jn(e)}function va(){return!!Kn()}function _a(e){return e.idb.fallbackInterval*2}var ba={create:ha,close:ga,onMessage:wa,postMessage:ya,canBeUsed:va,type:ia,averageResponseTime:_a,microSeconds:sa},Ea=He,ka="pubkey.broadcastChannel-",Sa="localstorage";function Yn(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Qn(e){return ka+e}function Ia(e,t){return new Promise(function(n){Wn().then(function(){var o=Qn(e.channelName),r={token:vt(),time:new Date().getTime(),data:t,uuid:e.uuid},a=JSON.stringify(r);Yn().setItem(o,a);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=a,window.dispatchEvent(c),n()})})}function Na(e,t){var n=Qn(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ca(e){window.removeEventListener("storage",e)}function Oa(e,t){if(t=bt(t),!Xn())throw new Error("BroadcastChannel: localstorage cannot be used");var n=vt(),o=new zn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Na(e,function(a){r.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<r.messagesCallbackTime||(o.add(a.token),r.messagesCallback(a.data)))}),r}function Pa(e){Ca(e.listener)}function xa(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function Xn(){var e=Yn();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function $a(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Ra={create:Oa,close:Pa,onMessage:xa,postMessage:Ia,canBeUsed:Xn,type:Sa,averageResponseTime:$a,microSeconds:Ea},Aa=He,Da="simulate",kt=new Set;function Ta(e){var t={name:e,messagesCallback:null};return kt.add(t),t}function Va(e){kt.delete(e)}function Ma(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(kt);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Ba(e,t){e.messagesCallback=t}function ja(){return!0}function La(){return 5}var Ua={create:Ta,close:Va,onMessage:Ba,postMessage:Ma,canBeUsed:ja,type:Da,averageResponseTime:La,microSeconds:Aa},Zn=[oa,ba,Ra];function Ha(e){var t=[].concat(e.methods,Zn).filter(Boolean);if(e.type){if(e.type==="simulate")return Ua;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Zn.map(function(r){return r.type})))}var eo=new Set,Wa=0,St=function(t,n){this.id=Wa++,eo.add(this),this.name=t,this.options=bt(n),this.method=Ha(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Fa(this)};St._pubkey=!0,St.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return to(this,"message",t)},postInternal:function(t){return to(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};ro(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,oo(this,"message",n)):this._onML=null},addEventListener:function(t,n){var o=this.method.microSeconds(),r={time:o,fn:n};oo(this,t,r)},removeEventListener:function(t,n){var o=this._addEL[t].find(function(r){return r.fn===n});ro(this,t,o)},close:function(){var t=this;if(!this.closed){eo.delete(this),this.closed=!0;var n=this._prepP?this._prepP:ue;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(o){return o()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function to(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},a=e._prepP?e._prepP:ue;return a.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function Fa(e){var t=e.method.create(e.name,e.options);Ks(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function no(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function oo(e,t,n){e._addEL[t].push(n),za(e)}function ro(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Ga(e)}function za(e){if(!e._iL&&no(e)){var t=function(r){e._addEL[r.type].forEach(function(a){var c=1e5,i=a.time-c;r.time>=i&&a.fn(r.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 Ga(e){if(e._iL&&!no(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}class It extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}}function so(e){return Object(e)!==e}const Ka=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qa(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Ka}function Ja(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ya(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
36
- `: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 ye(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const a=e[r],c=Ya(a);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,ao=-2,io=-3,co=-4,lo=-5,Ct=-6;function uo(e,t){return Qa(JSON.parse(e),t)}function Qa(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(a,c=!1){if(a===Nt)return;if(a===io)return NaN;if(a===co)return 1/0;if(a===lo)return-1/0;if(a===Ct)return-0;if(c)throw new Error("Invalid input");if(a in o)return o[a];const i=n[a];if(!i||typeof i!="object")o[a]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],d=t==null?void 0:t[l];if(d)return o[a]=d(r(i[1]));switch(l){case"Date":o[a]=new Date(i[1]);break;case"Set":const u=new Set;o[a]=u;for(let h=1;h<i.length;h+=1)u.add(r(i[h]));break;case"Map":const f=new Map;o[a]=f;for(let h=1;h<i.length;h+=2)f.set(r(i[h]),r(i[h+1]));break;case"RegExp":o[a]=new RegExp(i[1],i[2]);break;case"Object":o[a]=Object(i[1]);break;case"BigInt":o[a]=BigInt(i[1]);break;case"null":const p=Object.create(null);o[a]=p;for(let h=1;h<i.length;h+=2)p[i[h]]=r(i[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(i.length);o[a]=l;for(let d=0;d<i.length;d+=1){const u=i[d];u!==ao&&(l[d]=r(u))}}else{const l={};o[a]=l;for(const d in i){const u=i[d];l[d]=r(u)}}return o[a]}return r(0)}function fo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const a=[];let c=0;function i(d){if(typeof d=="function")throw new It("Cannot stringify a function",a);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return io;if(d===1/0)return co;if(d===-1/0)return lo;if(d===0&&1/d<0)return Ct;const u=c++;o.set(d,u);for(const{key:p,fn:h}of r){const g=h(d);if(g)return n[u]=`["${p}",${i(g)}]`,u}let f="";if(so(d))f=Ot(d);else switch(Ja(d)){case"Number":case"String":case"Boolean":f=`["Object",${Ot(d)}]`;break;case"BigInt":f=`["BigInt",${d}]`;break;case"Date":f=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:h,flags:g}=d;f=g?`["RegExp",${ye(h)},"${g}"]`:`["RegExp",${ye(h)}]`;break;case"Array":f="[";for(let y=0;y<d.length;y+=1)y>0&&(f+=","),y in d?(a.push(`[${y}]`),f+=i(d[y]),a.pop()):f+=ao;f+="]";break;case"Set":f='["Set"';for(const y of d)f+=`,${i(y)}`;f+="]";break;case"Map":f='["Map"';for(const[y,w]of d)a.push(`.get(${so(y)?Ot(y):"..."})`),f+=`,${i(y)},${i(w)}`;f+="]";break;default:if(!qa(d))throw new It("Cannot stringify arbitrary non-POJOs",a);if(Object.getOwnPropertySymbols(d).length>0)throw new It("Cannot stringify POJOs with symbolic keys",a);if(Object.getPrototypeOf(d)===null){f='["null"';for(const y in d)a.push(`.${y}`),f+=`,${ye(y)},${i(d[y])}`,a.pop();f+="]"}else{f="{";let y=!1;for(const w in d)y&&(f+=","),y=!0,a.push(`.${w}`),f+=`${ye(w)}:${i(d[w])}`,a.pop();f+="}"}}return n[u]=f,u}const l=i(e);return l<0?`${l}`:`[${n.join(",")}]`}function Ot(e){const t=typeof e;return t==="string"?ye(e):e instanceof String?ye(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?Ct.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Xa(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,a=new St(r,{type:o}),c=!1,i=0;s.watch(()=>t[e],u=>{c||(i=Date.now(),a.postMessage({timestamp:i,state:uo(fo(u))})),c=!1},{deep:!0}),a.onmessage=u=>{if(u===void 0){a.postMessage({timestamp:i,state:uo(fo(t[e]))});return}u.timestamp<=i||(c=!0,i=u.timestamp,t[e]=u.state)};let l=()=>a.postMessage(void 0),d=()=>a.close();return n&&l(),{sync:l,unshare:d}}var Za=(e,t)=>Object.keys(t).includes(e),ei=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var a,c;let i=((a=r==null?void 0:r.share)==null?void 0:a.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!i||Object.keys(o.$state).forEach(d=>{var u;l.includes(d)||!Za(d,o.$state)||Xa(d,o,{initialize:((u=r==null?void 0:r.share)==null?void 0:u.initialize)??e,type:n})})};kr().use(ei({enable:!0,initialize:!0}));const po=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=cn(),o=s.ref([]);return s.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((a,c)=>{const l=t.value.store.record[a.fieldname];r[c].value=l}),o.value=r}}),(r,a)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Xo),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c)},null,8,["modelValue"])):s.createCommentVNode("",!0)}});function ti(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function ho(e){return typeof e=="function"?e():s.unref(e)}const ni=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const oi=Object.prototype.toString,ri=e=>oi.call(e)==="[object Object]",si=()=>{};function Fe(e){var t;const n=ho(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Pt=ni?window:void 0;function xt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Pt):[t,n,o,r]=e,!t)return si;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(u=>u()),a.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[Fe(t),ho(r)],([u,f])=>{if(c(),!u)return;const p=ri(f)?{...f}:f;a.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return ti(d),d}function ai(e={}){var t;const{window:n=Pt,deep:o=!0}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var l;let d=r==null?void 0:r.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(l=d==null?void 0:d.shadowRoot)==null?void 0:l.activeElement;return d},c=s.ref(),i=()=>{c.value=a()};return n&&(xt(n,"blur",l=>{l.relatedTarget===null&&i()},!0),xt(n,"focus",i,!0)),i(),c}function ii(e,t={}){const n=ai(t),o=s.computed(()=>Fe(e));return{focused:s.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function ci(e,{window:t=Pt,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const a=t.document,c=Fe(e);if(!c)o.value=!1;else{const i=c.getBoundingClientRect();o.value=i.top<=(t.innerHeight||a.documentElement.clientHeight)&&i.left<=(t.innerWidth||a.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return s.watch(()=>Fe(e),()=>r(),{immediate:!0,flush:"post"}),t&&xt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const ne=e=>{let t=ci(e).value;return t=t&&e.offsetHeight>0,t},oe=e=>e.tabIndex>=0,mo=e=>{const t=e.target;return $t(t)},$t=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?$t(n):n},li=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.firstElementChild;a&&(o=a)}}return o&&(!oe(o)||!ne(o))?Rt(o):o},go=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?Rt(n):n},ui=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.lastElementChild;a&&(o=a)}}return o&&(!oe(o)||!ne(o))?$t(o):o},yo=e=>{const t=e.target;return At(t)},At=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&&(!oe(n)||!ne(n))?At(n):n},wo=e=>{const t=e.target;return Dt(t)},Dt=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&&(!oe(n)||!ne(n))?Dt(n):n},vo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!oe(t)||!ne(t))?Dt(t):t},_o=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!oe(t)||!ne(t))?At(t):t},ze=["alt","control","shift","meta"],di={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Tt={"keydown.up":e=>{const t=mo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=yo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=wo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=li(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=ui(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=_o(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=_o(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=go(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=mo(e);t&&t.focus()}},"keydown.home":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=wo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function bo(e){const t=c=>{let i=null;return c.parent&&(typeof c.parent=="string"?i=document.querySelector(c.parent):c.parent instanceof HTMLElement?i=c.parent:i=c.parent.value),i},n=c=>{const i=t(c);let l=[];if(typeof c.selectors=="string")l=i?Array.from(i.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const i=t(c);let l=[];return c.selectors?l=n(c):i&&(l=Array.from(i.children).filter(d=>oe(d)&&ne(d))),l},r=c=>i=>{const l=di[i.key]||i.key.toLowerCase();if(ze.includes(l))return;const d=c.handlers||Tt;for(const u of Object.keys(d)){const[f,...p]=u.split(".");if(f==="keydown"&&p.includes(l)){const h=d[u],g=p.filter(w=>ze.includes(w)),y=ze.some(w=>{const S=w.charAt(0).toUpperCase()+w.slice(1);return i.getModifierState(S)});if(g.length>0){if(y){for(const w of ze)if(p.includes(w)){const S=w.charAt(0).toUpperCase()+w.slice(1);i.getModifierState(S)&&h(i)}}}else y||h(i)}}},a=[];s.onMounted(()=>{for(const c of e){const i=t(c),l=o(c),d=r(c),u=i?[i]:l;for(const f of u){const{focused:p}=ii(s.ref(f)),h=s.watch(p,g=>{g?f.addEventListener("keydown",d):f.removeEventListener("keydown",d)});a.push(h)}}}),s.onBeforeUnmount(()=>{for(const c of a)c()})}const fi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],pi={key:1},hi=s.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=s.inject(n.tableid),r=s.ref(null),a=s.ref(""),c=s.ref(!1),i=s.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const w=o.columns[n.colIndex].format;return typeof w=="function"?w(y):typeof w=="string"?Function(`"use strict";return (${w})`)()(y):y}else return y}),l=y=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const w=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=w.top+w.height,o.modal.left=w.left,o.modal.width=u.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Tt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),bo([{selectors:r,handlers:y}])}const d=s.computed(()=>o.columns[n.colIndex].align||"center"),u=s.computed(()=>o.columns[n.colIndex].width||"40ch"),f=()=>{r.value&&(a.value=r.value.textContent)},p=()=>{r.value&&r.value.textContent!==a.value&&(a.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,a.value))},h=(y,w)=>w&&y===0&&w>0?`${w}ch`:"inherit",g={textAlign:d.value,width:u.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,w)=>(s.openBlock(),s.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":s.unref(o).columns[y.colIndex].edit,contenteditable:s.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:f,onPaste:p,onBlur:p,onInput:p,onClick:l,onMousedown:l},[s.unref(o).columns[y.colIndex].cellComponent?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o).columns[y.colIndex].cellComponent),s.mergeProps({key:0,value:i.value},s.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(s.openBlock(),s.createElementBlock("span",pi,s.toDisplayString(i.value),1))],40,fi))}}),Pe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},mi=Pe(hi,[["__scopeId","data-v-f3597719"]]),gi=["tabindex"],yi={key:0,tabIndex:-1,class:"list-index"},wi=s.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){s.useCssVars(l=>({"30f057ab":s.unref(r)}));const t=e,n=s.inject(t.tableid),o=s.ref(null),r=n.numberedRowWidth.value,a=()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":"",c=s.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),i=l=>{n.toggleRowExpand(l)};if(t.addNavigation){let l=Tt;typeof t.addNavigation=="object"&&(l={...l,...t.addNavigation}),bo([{selectors:o,handlers:l}])}return(l,d)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:l.tabIndex,class:"table-row"},[s.renderSlot(l.$slots,"index",{},()=>[s.unref(n).config.view==="list"?(s.openBlock(),s.createElementBlock("td",yi,s.toDisplayString(l.rowIndex+1),1)):s.unref(n).config.view==="tree"?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:d[0]||(d[0]=u=>i(l.rowIndex))},s.toDisplayString(a()),1)):s.createCommentVNode("",!0)],!0),s.renderSlot(l.$slots,"default",{},void 0,!0)],8,gi)),[[s.vShow,c.value]])}}),vi=Pe(wi,[["__scopeId","data-v-762810eb"]]);let Ge;const _i=new Uint8Array(16);function bi(){if(!Ge&&(Ge=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ge))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ge(_i)}const B=[];for(let e=0;e<256;++e)B.push((e+256).toString(16).slice(1));function Ei(e,t=0){return B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]}const ki=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Eo={randomUUID:ki};function ko(e,t,n){if(Eo.randomUUID&&!t&&!e)return Eo.randomUUID();e=e||{};const o=e.random||(e.rng||bi)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=o[r];return t}return Ei(o)}function So(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function xe(e){return typeof e=="function"?e():s.unref(e)}const Io=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Si=Object.prototype.toString,Ii=e=>Si.call(e)==="[object Object]",$e=()=>{},Vt=Ni();function Ni(){var e,t;return Io&&((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 No={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Ci(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:$e}))):s.ref(t)}function Re(e){var t;const n=xe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Co=Io?window:void 0;function Ke(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Co):[t,n,o,r]=e,!t)return $e;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(u=>u()),a.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[Re(t),xe(r)],([u,f])=>{if(c(),!u)return;const p=Ii(f)?{...f}:f;a.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return So(d),d}let Oo=!1;function Po(e,t,n={}){const{window:o=Co,ignore:r=[],capture:a=!0,detectIframe:c=!1}=n;if(!o)return $e;Vt&&!Oo&&(Oo=!0,Array.from(o.document.body.children).forEach(u=>u.addEventListener("click",$e)),o.document.documentElement.addEventListener("click",$e));let i=!0;const l=u=>r.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=Re(f);return p&&(u.target===p||u.composedPath().includes(p))}}),d=[Ke(o,"click",u=>{const f=Re(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(i=!l(u)),!i){i=!0;return}t(u)}},{passive:!0,capture:a}),Ke(o,"pointerdown",u=>{const f=Re(e);i=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),c&&Ke(o,"blur",u=>{setTimeout(()=>{var f;const p=Re(e);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const Oi={[No.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Po(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Po(e,o,Object.assign({capture:n},r))}},[No.unmounted](e){e.__onClickOutside_stop()}};function Mt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function xo(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:xo(n)}}function Pi(e){const t=e||window.event,n=t.target;return xo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const qe=new WeakMap;function xi(e,t=!1){const n=s.ref(t);let o=null;s.watch(Ci(e),c=>{const i=Mt(xe(c));if(i){const l=i;qe.get(l)||qe.set(l,l.style.overflow),n.value&&(l.style.overflow="hidden")}},{immediate:!0});const r=()=>{const c=Mt(xe(e));!c||n.value||(Vt&&(o=Ke(c,"touchmove",i=>{Pi(i)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},a=()=>{var c;const i=Mt(xe(e));!i||!n.value||(Vt&&(o==null||o()),i.style.overflow=(c=qe.get(i))!=null?c:"",qe.delete(i),n.value=!1)};return So(a),s.computed({get(){return n.value},set(c){c?r():a()}})}function $i(){let e=!1;const t=s.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=xi(n,o.value);s.watch(t,a=>r.value=a)}}$i();class Ri{constructor(t,n,o,r,a,c){this.id=t||ko(),this.rows=o,this.columns=s.reactive(n),this.config=s.reactive(r),this.table=a||s.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=s.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,a]of this.rows.entries())t[`${n}:${r}`]=a[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const a=this.rows[r];a.parent&&o.add(a.parent),n[r]={childrenOpen:!1,expanded:!1,indent:a.indent||null,isParent:o.has(r),isRoot:a.parent===null||a.parent===void 0,modified:!1,open:a.parent===null||a.parent===void 0,parent:a.parent}}return s.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return s.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}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 Ai={key:0,id:"resizable"},Di={class:"atable-header-row",tabindex:"-1"},Ti={key:0,id:"header-index"},Vi=s.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){s.useCssVars(r=>({"0c61081d":s.unref(n)}));const t=s.inject(e.tableid),n=t.numberedRowWidth.value,o=r=>({minWidth:r.width||"40ch",textAlign:r.align||"center",width:t.config.fullWidth?"auto":null});return(r,a)=>r.columns.length?(s.openBlock(),s.createElementBlock("thead",Ai,[s.createElementVNode("tr",Di,[s.unref(t).zeroColumn?(s.openBlock(),s.createElementBlock("th",Ti)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.columns,(c,i)=>(s.openBlock(),s.createElementBlock("th",{key:i,tabindex:"-1",style:s.normalizeStyle(o(c))},[s.renderSlot(r.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(c.label||String.fromCharCode(i+97).toUpperCase()),1)],!0)],4))),128))])])):s.createCommentVNode("",!0)}}),Mi=Pe(Vi,[["__scopeId","data-v-b0bfa37f"]]),Bi=s.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){s.inject(e.tableid);const t=n=>{n.stopPropagation()};return(n,o)=>(s.openBlock(),s.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[s.renderSlot(n.$slots,"default",{},void 0,!0)],544))}}),ji=Pe(Bi,[["__scopeId","data-v-10a48b2a"]]),Li=s.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,a=new Ri(n.id,n.columns,r,n.config);s.provide(a.id,a),s.watch(()=>a.rows,i=>{o("update:modelValue",i)},{deep:!0});const c=i=>{var l;i.target instanceof Node&&(l=a.modal.parent)!=null&&l.contains(i.target)||a.modal.visible&&(a.modal.visible=!1)};return window.addEventListener("keydown",async i=>{if(i.key==="Escape"&&a.modal.visible){a.modal.visible=!1;const l=a.modal.parent;l&&(await s.nextTick(),l.focus())}}),(i,l)=>s.withDirectives((s.openBlock(),s.createElementBlock("table",{class:"atable",style:s.normalizeStyle({width:s.unref(a).config.fullWidth?"100%":"auto"})},[s.renderSlot(i.$slots,"header",{data:s.unref(a)},()=>[s.createVNode(Mi,{columns:s.unref(a).columns,config:s.unref(a).config,tableid:s.unref(a).id},null,8,["columns","config","tableid"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(i.$slots,"body",{data:s.unref(a)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(a).rows,(d,u)=>(s.openBlock(),s.createBlock(vi,{key:d.id||s.unref(ko)(),row:d,rowIndex:u,tableid:s.unref(a).id},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(a).columns,(f,p)=>(s.openBlock(),s.createBlock(mi,{key:`${p}:${u}`,tableid:s.unref(a).id,col:f,spellcheck:"false",rowIndex:u,colIndex:p+(s.unref(a).zeroColumn?0:-1),component:f.cellComponent,style:s.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:s.unref(a).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))],!0)]),s.renderSlot(i.$slots,"footer",{data:s.unref(a)},void 0,!0),s.renderSlot(i.$slots,"modal",{data:s.unref(a)},()=>[s.withDirectives(s.createVNode(ji,{colIndex:s.unref(a).modal.colIndex,rowIndex:s.unref(a).modal.rowIndex,tableid:s.unref(a).id,style:s.normalizeStyle({left:s.unref(a).modal.left+"px",top:s.unref(a).modal.top+"px",maxWidth:s.unref(a).modal.width+"px"})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(a).modal.component),s.mergeProps({key:`${s.unref(a).modal.rowIndex}:${s.unref(a).modal.colIndex}`,colIndex:s.unref(a).modal.colIndex,rowIndex:s.unref(a).modal.rowIndex,tableid:s.unref(a).id},s.unref(a).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[s.vShow,s.unref(a).modal.visible]])],!0)],4)),[[s.unref(Oi),c]])}}),Ui=Pe(Li,[["__scopeId","data-v-f0f87ebf"]]),$o=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=cn(),o={view:"list"};return(r,a)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Ui),{key:0,columns:s.unref(t).schema.schema.toArray(),rows:s.unref(t).store.records,config:o},null,8,["columns","rows"])):s.createCommentVNode("",!0)}}),Ro=e=>(s.pushScopeId("data-v-18bfde6e"),e=e(),s.popScopeId(),e),Hi={class:"tabs"},Wi={tabindex:"0"},Fi={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"},zi=[Ro(()=>s.createElementVNode("g",null,[s.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
34
+ when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return x({query:m.query,hash:m.hash,params:"path"in E?{}:m.params},E)}}function N(m,v){const w=d=S(m),E=l.value,$=m.state,T=m.force,C=m.replace===!0,O=K(w);if(O)return N(x(I(O),{state:typeof O=="object"?x({},$,O.state):$,force:T,replace:C}),v||w);const D=w;D.redirectedFrom=v;let fe;return!T&&ln(o,E,w)&&(fe=ge(16,{to:D,from:E}),Ao(E,E,!0,!1)),(fe?Promise.resolve(fe):k(D,E)).catch(H=>ee(H)?ee(H,2)?H:Bt(H):U(H,D,E)).then(H=>{if(H){if(ee(H,2))return process.env.NODE_ENV!=="production"&&ln(o,S(H.to),D)&&v&&(v._count=v._count?v._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${D.fullPath}". Aborting to avoid a Stack Overflow.
35
+ 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"))):N(x({replace:C},I(H.to),{state:typeof H.to=="object"?x({},$,H.to.state):$,force:T}),v||D)}else H=R(D,E,!0,C,$);return _(D,E,H),H})}function Ro(m,v){const w=A(m,v);return w?Promise.reject(w):Promise.resolve()}function J(m){const v=Je.values().next().value;return v&&typeof v.runWithContext=="function"?v.runWithContext(m):m()}function k(m,v){let w;const[E,$,T]=zs(m,v);w=gt(E.reverse(),"beforeRouteLeave",m,v);for(const O of E)O.leaveGuards.forEach(D=>{w.push(ae(D,m,v))});const C=Ro.bind(null,m,v);return w.push(C),we(w).then(()=>{w=[];for(const O of i.list())w.push(ae(O,m,v));return w.push(C),we(w)}).then(()=>{w=gt($,"beforeRouteUpdate",m,v);for(const O of $)O.updateGuards.forEach(D=>{w.push(ae(D,m,v))});return w.push(C),we(w)}).then(()=>{w=[];for(const O of T)if(O.beforeEnter)if(W(O.beforeEnter))for(const D of O.beforeEnter)w.push(ae(D,m,v));else w.push(ae(O.beforeEnter,m,v));return w.push(C),we(w)}).then(()=>(m.matched.forEach(O=>O.enterCallbacks={}),w=gt(T,"beforeRouteEnter",m,v),w.push(C),we(w))).then(()=>{w=[];for(const O of c.list())w.push(ae(O,m,v));return w.push(C),we(w)}).catch(O=>ee(O,8)?O:Promise.reject(O))}function _(m,v,w){a.list().forEach(E=>J(()=>E(m,v,w)))}function R(m,v,w,E,$){const T=A(m,v);if(T)return T;const C=v===ie,O=Z?history.state:{};w&&(E||C?r.replace(m.fullPath,x({scroll:C&&O&&O.scroll},$)):r.push(m.fullPath,$)),l.value=m,Ao(m,v,w,C),Bt()}let V;function de(){V||(V=r.listen((m,v,w)=>{const E=S(m),$=K(E);if($){N(x($,{replace:!0}),E).catch(ke);return}d=E;const T=l.value;Z&&jr(fn(T.fullPath,w.delta),je()),k(E,T).catch(C=>ee(C,12)?C:ee(C,2)?(N(C.to,E).then(O=>{ee(O,20)&&!w.delta&&w.type===Se.pop&&r.go(-1,!1)}).catch(ke),Promise.reject()):(w.delta&&r.go(-w.delta,!1),U(C,E,T))).then(C=>{C=C||R(E,T,!1),C&&(w.delta&&!ee(C,8)?r.go(-w.delta,!1):w.type===Se.pop&&ee(C,20)&&r.go(-1,!1)),_(E,T,C)}).catch(ke)}))}let Re=Oe(),qe=Oe(),Q;function U(m,v,w){Bt(m);const E=qe.list();return E.length?E.forEach($=>$(m,v,w)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function za(){return Q&&l.value!==ie?Promise.resolve():new Promise((m,v)=>{Re.add([m,v])})}function Bt(m){return Q||(Q=!m,de(),Re.list().forEach(([v,w])=>m?w(m):v()),Re.reset()),m}function Ao(m,v,w,E){const{scrollBehavior:$}=e;if(!Z||!$)return Promise.resolve();const T=!w&&Lr(fn(m.fullPath,0))||(E||!w)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>$(m,v,T)).then(C=>C&&Mr(C)).catch(C=>U(C,m,v))}const Mt=m=>r.go(m);let jt;const Je=new Set,Ga={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,hasRoute:b,getRoutes:y,resolve:S,options:e,push:j,replace:G,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:i.add,beforeResolve:c.add,afterEach:a.add,onError:qe.add,isReady:za,install(m){const v=this;m.component("RouterLink",Ps),m.component("RouterView",As),m.config.globalProperties.$router=v,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(l)}),Z&&!jt&&l.value===ie&&(jt=!0,j(r.location).catch($=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",$)}));const w={};for(const $ in ie)Object.defineProperty(w,$,{get:()=>l.value[$],enumerable:!0});m.provide(ht,v),m.provide(xn,s.shallowReactive(w)),m.provide(mt,l);const E=m.unmount;Je.add(m),m.unmount=function(){Je.delete(m),Je.size<1&&(d=ie,V&&V(),V=null,l.value=ie,jt=!1,Q=!1),E()},process.env.NODE_ENV!=="production"&&Z&&Vs(m,v,t)}};function we(m){return m.reduce((v,w)=>v.then(()=>J(w)),Promise.resolve())}return Ga}function zs(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let c=0;c<i;c++){const a=t.matched[c];a&&(e.matched.find(d=>se(d,a))?o.push(a):n.push(a));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}Fs({history:Fr(),routes:[]});function Gs(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ue=Promise.resolve();function Hn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Ks(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function wt(){return Math.random().toString(36).substring(2)}var Wn=0,vt=0;function Ue(){var e=new Date().getTime();return e===Wn?(vt++,e*1e3+vt):(Wn=e,vt=0,e*1e3)}var qs=Ue,Js="native";function Ys(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Qs(e){e.bc.close(),e.subFns=[]}function Xs(e,t){try{return e.bc.postMessage(t,!1),ue}catch(n){return Promise.reject(n)}}function Zs(e,t){e.messagesCallback=t}function ei(){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 ti(){return 150}var ni={create:Ys,close:Qs,onMessage:Zs,postMessage:Xs,canBeUsed:ei,type:Js,averageResponseTime:ti,microSeconds:qs},Fn=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,zn()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,oi(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function oi(e){for(var t=zn()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],i=o[1];if(i<t)e.map.delete(r);else return}}function zn(){return new Date().getTime()}function _t(){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 ri=Ue,si="pubkey.broadcast-channel-0-",te="messages",He={durability:"relaxed"},ii="idb";function Gn(){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 bt(e){e.commit&&e.commit()}function ai(e){var t=Gn(),n=si+e,o=t.open(n);return o.onupgradeneeded=function(r){var i=r.target.result;i.createObjectStore(te,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,i){o.onerror=function(c){return i(c)},o.onsuccess=function(){r(o.result)}})}function ci(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},i=e.transaction([te],"readwrite",He);return new Promise(function(c,a){i.oncomplete=function(){return c()},i.onerror=function(d){return a(d)};var l=i.objectStore(te);l.add(r),bt(i)})}function li(e,t){var n=e.transaction(te,"readonly",He),o=n.objectStore(te),r=[],i=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(i);return new Promise(function(l,d){c.onerror=function(u){return d(u)},c.onsuccess=function(u){l(u.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),o.openCursor(i)}catch{return o.openCursor()}}return new Promise(function(l,d){var u=a();u.onerror=function(f){return d(f)},u.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(r.push(p.value),p.continue()):(bt(n),l(r))}})}function ui(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(te,"readwrite",He),o=n.objectStore(te);return Promise.all(t.map(function(r){var i=o.delete(r);return new Promise(function(c){i.onsuccess=function(){return c()}})}))}function di(e,t){var n=new Date().getTime()-t,o=e.transaction(te,"readonly",He),r=o.objectStore(te),i=[];return new Promise(function(c){r.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var d=l.value;d.time<n?(i.push(d),l.continue()):(bt(o),c(i))}else c(i)}})}function fi(e){return di(e.db,e.options.idb.ttl).then(function(t){return ui(e,t.map(function(n){return n.id}))})}function pi(e,t){return t=_t(t),ai(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:wt(),eMIs:new Fn(t.idb.ttl*2),writeBlockPromise:ue,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},Kn(o),o})}function Kn(e){e.closed||qn(e).then(function(){return Hn(e.options.idb.fallbackInterval)}).then(function(){return Kn(e)})}function hi(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function qn(e){return e.closed||!e.messagesCallback?ue:li(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 hi(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),ue})}function mi(e){e.closed=!0,e.db.close()}function gi(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return ci(e.db,e.uuid,t)}).then(function(){Ks(0,10)===0&&fi(e)}),e.writeBlockPromise}function yi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,qn(e)}function wi(){return!!Gn()}function vi(e){return e.idb.fallbackInterval*2}var _i={create:pi,close:mi,onMessage:yi,postMessage:gi,canBeUsed:wi,type:ii,averageResponseTime:vi,microSeconds:ri},bi=Ue,Ei="pubkey.broadcastChannel-",ki="localstorage";function Jn(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Yn(e){return Ei+e}function Si(e,t){return new Promise(function(n){Hn().then(function(){var o=Yn(e.channelName),r={token:wt(),time:new Date().getTime(),data:t,uuid:e.uuid},i=JSON.stringify(r);Jn().setItem(o,i);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=i,window.dispatchEvent(c),n()})})}function Ni(e,t){var n=Yn(e),o=function(i){i.key===n&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",o),o}function Ii(e){window.removeEventListener("storage",e)}function Oi(e,t){if(t=_t(t),!Qn())throw new Error("BroadcastChannel: localstorage cannot be used");var n=wt(),o=new Fn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ni(e,function(i){r.messagesCallback&&i.uuid!==n&&(!i.token||o.has(i.token)||i.data.time&&i.data.time<r.messagesCallbackTime||(o.add(i.token),r.messagesCallback(i.data)))}),r}function Ci(e){Ii(e.listener)}function Pi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function Qn(){var e=Jn();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function xi(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var $i={create:Oi,close:Ci,onMessage:Pi,postMessage:Si,canBeUsed:Qn,type:ki,averageResponseTime:xi,microSeconds:bi},Ri=Ue,Ai="simulate",Et=new Set;function Di(e){var t={name:e,messagesCallback:null};return Et.add(t),t}function Ti(e){Et.delete(e)}function Vi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Et);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Bi(e,t){e.messagesCallback=t}function Mi(){return!0}function ji(){return 5}var Li={create:Di,close:Ti,onMessage:Bi,postMessage:Vi,canBeUsed:Mi,type:Ai,averageResponseTime:ji,microSeconds:Ri},Xn=[ni,_i,$i];function Ui(e){var t=[].concat(e.methods,Xn).filter(Boolean);if(e.type){if(e.type==="simulate")return Li;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Xn.map(function(r){return r.type})))}var Zn=new Set,Hi=0,kt=function(t,n){this.id=Hi++,Zn.add(this),this.name=t,this.options=_t(n),this.method=Ui(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Wi(this)};kt._pubkey=!0,kt.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return eo(this,"message",t)},postInternal:function(t){return eo(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};oo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,no(this,"message",n)):this._onML=null},addEventListener:function(t,n){var o=this.method.microSeconds(),r={time:o,fn:n};no(this,t,r)},removeEventListener:function(t,n){var o=this._addEL[t].find(function(r){return r.fn===n});oo(this,t,o)},close:function(){var t=this;if(!this.closed){Zn.delete(this),this.closed=!0;var n=this._prepP?this._prepP:ue;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(o){return o()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function eo(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},i=e._prepP?e._prepP:ue;return i.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function Wi(e){var t=e.method.create(e.name,e.options);Gs(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function to(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function no(e,t,n){e._addEL[t].push(n),Fi(e)}function oo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),zi(e)}function Fi(e){if(!e._iL&&to(e)){var t=function(r){e._addEL[r.type].forEach(function(i){var c=1e5,a=i.time-c;r.time>=a&&i.fn(r.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 zi(e){if(e._iL&&!to(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}class St extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}}function ro(e){return Object(e)!==e}const Gi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ki(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Gi}function qi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ji(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
36
+ `: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 ye(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const i=e[r],c=Ji(i);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,so=-2,io=-3,ao=-4,co=-5,It=-6;function lo(e,t){return Yi(JSON.parse(e),t)}function Yi(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(i,c=!1){if(i===Nt)return;if(i===io)return NaN;if(i===ao)return 1/0;if(i===co)return-1/0;if(i===It)return-0;if(c)throw new Error("Invalid input");if(i in o)return o[i];const a=n[i];if(!a||typeof a!="object")o[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],d=t==null?void 0:t[l];if(d)return o[i]=d(r(a[1]));switch(l){case"Date":o[i]=new Date(a[1]);break;case"Set":const u=new Set;o[i]=u;for(let h=1;h<a.length;h+=1)u.add(r(a[h]));break;case"Map":const f=new Map;o[i]=f;for(let h=1;h<a.length;h+=2)f.set(r(a[h]),r(a[h+1]));break;case"RegExp":o[i]=new RegExp(a[1],a[2]);break;case"Object":o[i]=Object(a[1]);break;case"BigInt":o[i]=BigInt(a[1]);break;case"null":const p=Object.create(null);o[i]=p;for(let h=1;h<a.length;h+=2)p[a[h]]=r(a[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);o[i]=l;for(let d=0;d<a.length;d+=1){const u=a[d];u!==so&&(l[d]=r(u))}}else{const l={};o[i]=l;for(const d in a){const u=a[d];l[d]=r(u)}}return o[i]}return r(0)}function uo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const i=[];let c=0;function a(d){if(typeof d=="function")throw new St("Cannot stringify a function",i);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return io;if(d===1/0)return ao;if(d===-1/0)return co;if(d===0&&1/d<0)return It;const u=c++;o.set(d,u);for(const{key:p,fn:h}of r){const g=h(d);if(g)return n[u]=`["${p}",${a(g)}]`,u}let f="";if(ro(d))f=Ot(d);else switch(qi(d)){case"Number":case"String":case"Boolean":f=`["Object",${Ot(d)}]`;break;case"BigInt":f=`["BigInt",${d}]`;break;case"Date":f=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:h,flags:g}=d;f=g?`["RegExp",${ye(h)},"${g}"]`:`["RegExp",${ye(h)}]`;break;case"Array":f="[";for(let y=0;y<d.length;y+=1)y>0&&(f+=","),y in d?(i.push(`[${y}]`),f+=a(d[y]),i.pop()):f+=so;f+="]";break;case"Set":f='["Set"';for(const y of d)f+=`,${a(y)}`;f+="]";break;case"Map":f='["Map"';for(const[y,b]of d)i.push(`.get(${ro(y)?Ot(y):"..."})`),f+=`,${a(y)},${a(b)}`;f+="]";break;default:if(!Ki(d))throw new St("Cannot stringify arbitrary non-POJOs",i);if(Object.getOwnPropertySymbols(d).length>0)throw new St("Cannot stringify POJOs with symbolic keys",i);if(Object.getPrototypeOf(d)===null){f='["null"';for(const y in d)i.push(`.${y}`),f+=`,${ye(y)},${a(d[y])}`,i.pop();f+="]"}else{f="{";let y=!1;for(const b in d)y&&(f+=","),y=!0,i.push(`.${b}`),f+=`${ye(b)}:${a(d[b])}`,i.pop();f+="}"}}return n[u]=f,u}const l=a(e);return l<0?`${l}`:`[${n.join(",")}]`}function Ot(e){const t=typeof e;return t==="string"?ye(e):e instanceof String?ye(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?It.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Qi(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,i=new kt(r,{type:o}),c=!1,a=0;s.watch(()=>t[e],u=>{c||(a=Date.now(),i.postMessage({timestamp:a,state:lo(uo(u))})),c=!1},{deep:!0}),i.onmessage=u=>{if(u===void 0){i.postMessage({timestamp:a,state:lo(uo(t[e]))});return}u.timestamp<=a||(c=!0,a=u.timestamp,t[e]=u.state)};let l=()=>i.postMessage(void 0),d=()=>i.close();return n&&l(),{sync:l,unshare:d}}var Xi=(e,t)=>Object.keys(t).includes(e),Zi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var i,c;let a=((i=r==null?void 0:r.share)==null?void 0:i.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!a||Object.keys(o.$state).forEach(d=>{var u;l.includes(d)||!Xi(d,o.$state)||Qi(d,o,{initialize:((u=r==null?void 0:r.share)==null?void 0:u.initialize)??e,type:n})})};Er().use(Zi({enable:!0,initialize:!0}));const fo=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=an(),o=s.ref([]);return s.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((i,c)=>{const l=t.value.store.record[i.fieldname];r[c].value=l}),o.value=r}}),(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Qo),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c)},null,8,["modelValue"])):s.createCommentVNode("",!0)}});function ea(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function po(e){return typeof e=="function"?e():s.unref(e)}const ta=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const na=Object.prototype.toString,oa=e=>na.call(e)==="[object Object]",ra=()=>{};function We(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ct=ta?window:void 0;function Pt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Ct):[t,n,o,r]=e,!t)return ra;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],c=()=>{i.forEach(u=>u()),i.length=0},a=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[We(t),po(r)],([u,f])=>{if(c(),!u)return;const p=oa(f)?{...f}:f;i.push(...n.flatMap(h=>o.map(g=>a(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return ea(d),d}function sa(e={}){var t;const{window:n=Ct,deep:o=!0}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var l;let d=r==null?void 0:r.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(l=d==null?void 0:d.shadowRoot)==null?void 0:l.activeElement;return d},c=s.ref(),a=()=>{c.value=i()};return n&&(Pt(n,"blur",l=>{l.relatedTarget===null&&a()},!0),Pt(n,"focus",a,!0)),a(),c}function ia(e,t={}){const n=sa(t),o=s.computed(()=>We(e));return{focused:s.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function aa(e,{window:t=Ct,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const i=t.document,c=We(e);if(!c)o.value=!1;else{const a=c.getBoundingClientRect();o.value=a.top<=(t.innerHeight||i.documentElement.clientHeight)&&a.left<=(t.innerWidth||i.documentElement.clientWidth)&&a.bottom>=0&&a.right>=0}};return s.watch(()=>We(e),()=>r(),{immediate:!0,flush:"post"}),t&&Pt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const ne=e=>{let t=aa(e).value;return t=t&&e.offsetHeight>0,t},oe=e=>e.tabIndex>=0,ho=e=>{const t=e.target;return xt(t)},xt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?xt(n):n},ca=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.firstElementChild.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.firstElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?$t(o):o},mo=e=>{const t=e.target;return $t(t)},$t=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?$t(n):n},la=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.lastElementChild.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.lastElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?xt(o):o},go=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&&(!oe(n)||!ne(n))?Rt(n):n},yo=e=>{const t=e.target;return At(t)},At=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&&(!oe(n)||!ne(n))?At(n):n},wo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!oe(t)||!ne(t))?At(t):t},vo=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!oe(t)||!ne(t))?Rt(t):t},Fe=["alt","control","shift","meta"],ua={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Dt={"keydown.up":e=>{const t=ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=mo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=yo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=ca(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=la(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=wo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=mo(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=ho(e);t&&t.focus()}},"keydown.home":e=>{const t=wo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function _o(e){const t=c=>{let a=null;return c.parent&&(typeof c.parent=="string"?a=document.querySelector(c.parent):c.parent instanceof HTMLElement?a=c.parent:a=c.parent.value),a},n=c=>{const a=t(c);let l=[];if(typeof c.selectors=="string")l=a?Array.from(a.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const a=t(c);let l=[];return c.selectors?l=n(c):a&&(l=Array.from(a.children).filter(d=>oe(d)&&ne(d))),l},r=c=>a=>{const l=ua[a.key]||a.key.toLowerCase();if(Fe.includes(l))return;const d=c.handlers||Dt;for(const u of Object.keys(d)){const[f,...p]=u.split(".");if(f==="keydown"&&p.includes(l)){const h=d[u],g=p.filter(b=>Fe.includes(b)),y=Fe.some(b=>{const S=b.charAt(0).toUpperCase()+b.slice(1);return a.getModifierState(S)});if(g.length>0){if(y){for(const b of Fe)if(p.includes(b)){const S=b.charAt(0).toUpperCase()+b.slice(1);a.getModifierState(S)&&h(a)}}}else y||h(a)}}},i=[];s.onMounted(()=>{for(const c of e){const a=t(c),l=o(c),d=r(c),u=a?[a]:l;for(const f of u){const{focused:p}=ia(s.ref(f)),h=s.watch(p,g=>{g?f.addEventListener("keydown",d):f.removeEventListener("keydown",d)});i.push(h)}}}),s.onBeforeUnmount(()=>{for(const c of i)c()})}const da=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],fa={key:1},pa=s.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=s.inject(n.tableid),r=s.ref(null),i=s.ref(""),c=s.ref(!1),a=s.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const b=o.columns[n.colIndex].format;return typeof b=="function"?b(y):typeof b=="string"?Function(`"use strict";return (${b})`)()(y):y}else return y}),l=y=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const b=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=b.top+b.height,o.modal.left=b.left,o.modal.width=u.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Dt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),_o([{selectors:r,handlers:y}])}const d=s.computed(()=>o.columns[n.colIndex].align||"center"),u=s.computed(()=>o.columns[n.colIndex].width||"40ch"),f=()=>{r.value&&(i.value=r.value.textContent)},p=()=>{r.value&&r.value.textContent!==i.value&&(i.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,i.value))},h=(y,b)=>b&&y===0&&b>0?`${b}ch`:"inherit",g={textAlign:d.value,width:u.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,b)=>(s.openBlock(),s.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":s.unref(o).columns[y.colIndex].edit,contenteditable:s.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:f,onPaste:p,onBlur:p,onInput:p,onClick:l,onMousedown:l,class:"atable__cell"},[s.unref(o).columns[y.colIndex].cellComponent?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o).columns[y.colIndex].cellComponent),s.mergeProps({key:0,value:a.value},s.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(s.openBlock(),s.createElementBlock("span",fa,s.toDisplayString(a.value),1))],40,da))}}),ha=["tabindex"],ma={key:0,tabIndex:-1,class:"list-index"},ga=s.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=e,n=s.inject(t.tableid),o=s.ref(null);n.numberedRowWidth.value;const r=s.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),i=s.computed(()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":""),c=a=>{n.toggleRowExpand(a)};if(t.addNavigation){let a=Dt;typeof t.addNavigation=="object"&&(a={...a,...t.addNavigation}),_o([{selectors:o,handlers:a}])}return(a,l)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:a.tabIndex,class:"table-row"},[s.renderSlot(a.$slots,"index",{},()=>[s.unref(n).config.view==="list"?(s.openBlock(),s.createElementBlock("td",ma,s.toDisplayString(a.rowIndex+1),1)):s.unref(n).config.view==="tree"?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:l[0]||(l[0]=d=>c(a.rowIndex))},s.toDisplayString(i.value),1)):s.createCommentVNode("",!0)]),s.renderSlot(a.$slots,"default")],8,ha)),[[s.vShow,r.value]])}});function bo(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function Pe(e){return typeof e=="function"?e():s.unref(e)}const Eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ya=Object.prototype.toString,wa=e=>ya.call(e)==="[object Object]",xe=()=>{},Tt=va();function va(){var e,t;return Eo&&((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 ko={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function _a(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:xe}))):s.ref(t)}function $e(e){var t;const n=Pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const So=Eo?window:void 0;function ze(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=So):[t,n,o,r]=e,!t)return xe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],c=()=>{i.forEach(u=>u()),i.length=0},a=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[$e(t),Pe(r)],([u,f])=>{if(c(),!u)return;const p=wa(f)?{...f}:f;i.push(...n.flatMap(h=>o.map(g=>a(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return bo(d),d}let No=!1;function Io(e,t,n={}){const{window:o=So,ignore:r=[],capture:i=!0,detectIframe:c=!1}=n;if(!o)return xe;Tt&&!No&&(No=!0,Array.from(o.document.body.children).forEach(u=>u.addEventListener("click",xe)),o.document.documentElement.addEventListener("click",xe));let a=!0;const l=u=>r.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=$e(f);return p&&(u.target===p||u.composedPath().includes(p))}}),d=[ze(o,"click",u=>{const f=$e(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}t(u)}},{passive:!0,capture:i}),ze(o,"pointerdown",u=>{const f=$e(e);a=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),c&&ze(o,"blur",u=>{setTimeout(()=>{var f;const p=$e(e);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const ba={[ko.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Io(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Io(e,o,Object.assign({capture:n},r))}},[ko.unmounted](e){e.__onClickOutside_stop()}};function Vt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Oo(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:Oo(n)}}function Ea(e){const t=e||window.event,n=t.target;return Oo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ge=new WeakMap;function ka(e,t=!1){const n=s.ref(t);let o=null;s.watch(_a(e),c=>{const a=Vt(Pe(c));if(a){const l=a;Ge.get(l)||Ge.set(l,l.style.overflow),n.value&&(l.style.overflow="hidden")}},{immediate:!0});const r=()=>{const c=Vt(Pe(e));!c||n.value||(Tt&&(o=ze(c,"touchmove",a=>{Ea(a)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{var c;const a=Vt(Pe(e));!a||!n.value||(Tt&&(o==null||o()),a.style.overflow=(c=Ge.get(a))!=null?c:"",Ge.delete(a),n.value=!1)};return bo(i),s.computed({get(){return n.value},set(c){c?r():i()}})}function Sa(){let e=!1;const t=s.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=ka(n,o.value);s.watch(t,i=>r.value=i)}}Sa();let Ke;const Na=new Uint8Array(16);function Ia(){if(!Ke&&(Ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(Na)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));function Oa(e,t=0){return M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+"-"+M[e[t+4]]+M[e[t+5]]+"-"+M[e[t+6]]+M[e[t+7]]+"-"+M[e[t+8]]+M[e[t+9]]+"-"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]}const Ca=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Co={randomUUID:Ca};function Pa(e,t,n){if(Co.randomUUID&&!t&&!e)return Co.randomUUID();e=e||{};const o=e.random||(e.rng||Ia)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=o[r];return t}return Oa(o)}class xa{constructor(t,n,o,r,i,c){this.id=t||Pa(),this.rows=o,this.columns=s.reactive(n),this.config=s.reactive(r),this.table=i||s.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=s.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,i]of this.rows.entries())t[`${n}:${r}`]=i[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const i=this.rows[r];i.parent&&o.add(i.parent),n[r]={childrenOpen:!1,expanded:!1,indent:i.indent||null,isParent:o.has(r),isRoot:i.parent===null||i.parent===void 0,modified:!1,open:i.parent===null||i.parent===void 0,parent:i.parent}}return s.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return s.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}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 $a={key:0,id:"resizable"},Ra={class:"atable-header-row",tabindex:"-1"},Aa={key:0,id:"header-index"},Da=s.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){const t=s.inject(e.tableid);t.numberedRowWidth.value;const n=o=>({minWidth:o.width||"40ch",textAlign:o.align||"center",width:t.config.fullWidth?"auto":null});return(o,r)=>o.columns.length?(s.openBlock(),s.createElementBlock("thead",$a,[s.createElementVNode("tr",Ra,[s.unref(t).zeroColumn?(s.openBlock(),s.createElementBlock("th",Aa)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.columns,(i,c)=>(s.openBlock(),s.createElementBlock("th",{key:i.name,tabindex:"-1",style:s.normalizeStyle(n(i))},[s.renderSlot(o.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(i.label||String.fromCharCode(c+97).toUpperCase()),1)])],4))),128))])])):s.createCommentVNode("",!0)}}),Ta=s.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(s.openBlock(),s.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[s.renderSlot(n.$slots,"default")],544))}}),Va=s.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,i=new xa(n.id,n.columns,r,n.config);s.provide(i.id,i),s.watch(()=>i.rows,a=>{o("update:modelValue",a)},{deep:!0});const c=a=>{var l;a.target instanceof Node&&(l=i.modal.parent)!=null&&l.contains(a.target)||i.modal.visible&&(i.modal.visible=!1)};return window.addEventListener("keydown",async a=>{if(a.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const l=i.modal.parent;l&&(await s.nextTick(),l.focus())}}),(a,l)=>s.withDirectives((s.openBlock(),s.createElementBlock("table",{class:"atable",style:s.normalizeStyle({width:s.unref(i).config.fullWidth?"100%":"auto"})},[s.renderSlot(a.$slots,"header",{data:s.unref(i)},()=>[s.createVNode(Da,{columns:s.unref(i).columns,config:s.unref(i).config,tableid:s.unref(i).id},null,8,["columns","config","tableid"])]),s.createElementVNode("tbody",null,[s.renderSlot(a.$slots,"body",{data:s.unref(i)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).rows,(d,u)=>(s.openBlock(),s.createBlock(ga,{key:d.id,row:d,rowIndex:u,tableid:s.unref(i).id},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).columns,(f,p)=>(s.openBlock(),s.createBlock(pa,{key:f.name,tableid:s.unref(i).id,col:f,spellcheck:"false",rowIndex:u,colIndex:p+(s.unref(i).zeroColumn?0:-1),component:f.cellComponent,style:s.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:s.unref(i).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),s.renderSlot(a.$slots,"footer",{data:s.unref(i)}),s.renderSlot(a.$slots,"modal",{data:s.unref(i)},()=>[s.withDirectives(s.createVNode(Ta,{colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,tableid:s.unref(i).id,style:s.normalizeStyle({left:s.unref(i).modal.left+"px",top:s.unref(i).modal.top+"px",maxWidth:s.unref(i).modal.width+"px"})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(i).modal.component),s.mergeProps({key:`${s.unref(i).modal.rowIndex}:${s.unref(i).modal.colIndex}`,colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,tableid:s.unref(i).id},s.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[s.vShow,s.unref(i).modal.visible]])])],4)),[[s.unref(ba),c]])}}),Po=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=an(),o={view:"list"};return(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Va),{key:0,columns:s.unref(t).schema.schema.toArray(),rows:s.unref(t).store.records,config:o},null,8,["columns","rows"])):s.createCommentVNode("",!0)}}),xo=e=>(s.pushScopeId("data-v-4f7a2d32"),e=e(),s.popScopeId(),e),Ba={class:"tabs"},Ma={tabindex:"0"},ja={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"},La=[xo(()=>s.createElementVNode("g",null,[s.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
37
  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
38
38
  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
39
39
  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
@@ -41,5 +41,5 @@ ${JSON.stringify(E,null,2)}
41
41
  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
42
42
  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
43
43
  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
44
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1))],Gi={tabindex:"0"},Ki={style:{width:"11pt"}},qi=[Ro(()=>s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.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))],Ao=Xe(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{}},setup(e){const t=e,n=s.ref([]),o=s.ref(!0),r=s.ref(!1),a=s.ref(""),c=s.ref(null),i=s.computed(()=>o.value?"unrotated":"rotated");s.onMounted(()=>{n.value=t.breadcrumbs||[]});const l=()=>{o.value=!o.value},d=async()=>{r.value=!r.value,await s.nextTick(()=>{c.value.focus()})},u=h=>{h.preventDefault(),h.stopPropagation()},f=async h=>{h.preventDefault(),h.stopPropagation(),await d()},p=()=>{};return(h,g)=>{const y=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",Hi,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:s.withKeys(l,["enter"])},[s.createElementVNode("a",Wi,[s.createElementVNode("div",{class:s.normalizeClass(i.value)},"ร—",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:p,onKeydown:s.withKeys(p,["enter"]),style:s.normalizeStyle({display:o.value?"block":"none"})},[s.createVNode(y,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",Fi,zi))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:d,onKeydown:s.withKeys(d,["enter"]),style:s.normalizeStyle({display:o.value?"block":"none"})},[s.createElementVNode("a",Gi,[s.createElementVNode("span",{style:s.normalizeStyle({display:r.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",Ki,qi))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=w=>a.value=w),ref_key:"searchinput",ref:c,style:s.normalizeStyle({display:r.value?"block":"none"}),onClick:g[1]||(g[1]=w=>u(w)),onInput:g[2]||(g[2]=w=>u(w)),onBlur:g[3]||(g[3]=w=>f(w)),onKeydown:g[4]||(g[4]=s.withKeys(w=>f(w),["enter"])),type:"text"},null,36),[[s.vModelText,a.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(w,S)=>(s.openBlock(),s.createElementBlock("li",{key:S,style:s.normalizeStyle({display:o.value?"block":"none"})},[s.createVNode(y,{tabindex:"0",to:w.to},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(w.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-18bfde6e"]]),Ji={install:e=>{e.component("ActionSet",Ut),e.component("CommandPalette",Ht),e.component("Doctype",po),e.component("Records",$o),e.component("SheetNav",Ao)}};F.ActionSet=Ut,F.CommandPalette=Ht,F.Doctype=po,F.Records=$o,F.SheetNav=Ao,F.StonecropDesktop=Ji,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
44
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1))],Ua={tabindex:"0"},Ha={style:{width:"11pt"}},Wa=[xo(()=>s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.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))],$o=Qe(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.ref(null),i=s.computed(()=>t.value?"unrotated":"rotated"),c=()=>{t.value=!t.value},a=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},l=f=>{f.preventDefault(),f.stopPropagation()},d=async f=>{f.preventDefault(),f.stopPropagation(),await a()},u=()=>{};return(f,p)=>{const h=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",Ba,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:c,onKeydown:s.withKeys(c,["enter"])},[s.createElementVNode("a",Ma,[s.createElementVNode("div",{class:s.normalizeClass(i.value)},"ร—",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:u,onKeydown:s.withKeys(u,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(h,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",ja,La))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:a,onKeydown:s.withKeys(a,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createElementVNode("a",Ua,[s.createElementVNode("span",{style:s.normalizeStyle({display:n.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",Ha,Wa))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),ref_key:"searchinput",ref:r,style:s.normalizeStyle({display:n.value?"block":"none"}),onClick:p[1]||(p[1]=g=>l(g)),onInput:p[2]||(p[2]=g=>l(g)),onBlur:p[3]||(p[3]=g=>d(g)),onKeydown:p[4]||(p[4]=s.withKeys(g=>d(g),["enter"])),type:"text"},null,36),[[s.vModelText,o.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.breadcrumbs,g=>(s.openBlock(),s.createElementBlock("li",{key:g.title,style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(h,{tabindex:"0",to:g.to},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-4f7a2d32"]]),Fa={install:e=>{e.component("ActionSet",Lt),e.component("CommandPalette",Ut),e.component("Doctype",fo),e.component("Records",Po),e.component("SheetNav",$o)}};F.ActionSet=Lt,F.CommandPalette=Ut,F.Doctype=fo,F.Records=Po,F.SheetNav=$o,F.StonecropDesktop=Fa,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
45
45
  //# sourceMappingURL=desktop.umd.cjs.map