LocalCDN-Firefox-Chrome-Brave/resources/vue-router/4.2.4/vue-router.global.min.jsm

11 lines
40 KiB
JavaScript

var VueRouter=function(e,N){"use strict";const M="undefined"!=typeof window;function f(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const U=Object.assign;function D(e,t){var n={};for(const o in t){var r=t[o];n[o]=B(r)?r.map(e):e(r)}return n}const V=()=>{},B=Array.isArray;function W(e){var t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const s=/\/$/,l=e=>e.replace(s,"");function q(e,t,n="/"){let r,o={},a="",i="";var s=t.indexOf("#");let l=t.indexOf("?");return-1<(l=s<l&&0<=s?-1:l)&&(r=t.slice(0,l),a=t.slice(l+1,-1<s?s:t.length),o=e(a)),-1<s&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),{fullPath:(r=function(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return W(`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;var t=t.split("/"),n=e.split("/"),e=n[n.length-1];".."!==e&&"."!==e||n.push("");let r=t.length-1,o,a;for(o=0;o<n.length;o++)if("."!==(a=n[o])){if(".."!==a)break;1<r&&r--}return t.slice(0,r).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}(null!=r?r:t,n))+(a&&"?")+a+i,path:r,query:o,hash:i}}function c(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function ie(e,t,n){var r=t.matched.length-1,o=n.matched.length-1;return-1<r&&r==o&&G(t.matched[r],n.matched[o])&&v(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function G(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function v(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(n=e[o],r=t[o],!(B(n)?m(n,r):B(r)?m(r,n):n===r))return!1;var n,r;return!0}function m(e,n){return B(n)?e.length===n.length&&e.every((e,t)=>e===n[t]):1===e.length&&e[0]===n}var F,d,t;(t=F=F||{}).pop="pop",t.push="push",(t=d=d||{}).back="back",t.forward="forward";t.unknown="";function g(e){var t;return"/"!==(e=e||(M?(e=(t=document.querySelector("base"))&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,""):"/"))[0]&&"#"!==e[0]&&(e="/"+e),l(e)}const y=/^[^#]+#/;function b(e,t){return e.replace(y,"#")+t}const K=()=>({left:window.pageXOffset,top:window.pageYOffset});function se(t){let e;if("el"in t){var n=t.el,r="string"==typeof n&&n.startsWith("#");if(!("string"!=typeof t.el||r&&document.getElementById(t.el.slice(1))))try{var o=document.querySelector(t.el);if(r&&o)return void W(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`)}catch(e){return void W(`The selector "${t.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).`)}o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return void W(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);e=(r=o,n=t,o=document.documentElement.getBoundingClientRect(),r=r.getBoundingClientRect(),{behavior:n.behavior,left:r.left-o.left-(n.left||0),top:r.top-o.top-(n.top||0)})}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function le(e,t){return(history.state?history.state.position-t:-1)+e}const Q=new Map;let w=()=>location.protocol+"//"+location.host;function _(t,e){var{pathname:e,search:n,hash:r}=e,o=t.indexOf("#");if(-1<o){o=r.includes(t.slice(o))?t.slice(o).length:1;let e=r.slice(o);return c(e="/"!==e[0]?"/"+e:e,"")}return c(e,t)+n+r}function E(a,i,s,l){let c=[],n=[],u=null;const t=({state:e})=>{var t=_(a,location);const n=s.value;var r=i.value;let o=0;if(e){if(s.value=t,i.value=e,u&&u===n)return void(u=null);o=r?e.position-r.position:0}else l(t);c.forEach(e=>{e(s.value,n,{delta:o,type:F.pop,direction:o?0<o?d.forward:d.back:d.unknown})})};function r(){var e=window["history"];e.state&&e.replaceState(U({},e.state,{scroll:K()}),"")}return window.addEventListener("popstate",t),window.addEventListener("beforeunload",r,{passive:!0}),{pauseListeners:function(){u=s.value},listen:function(t){c.push(t);var e=()=>{var e=c.indexOf(t);-1<e&&c.splice(e,1)};return n.push(e),e},destroy:function(){for(const e of n)e();n=[],window.removeEventListener("popstate",t),window.removeEventListener("beforeunload",r)}}}function $(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?K():null}}function C(o){const{history:a,location:i}=window,r={value:_(o,i)},s={value:a.state};function l(e,t,n){var r=o.indexOf("#"),r=-1<r?(i.host&&document.querySelector("base")?o:o.slice(r))+e:w()+o+e;try{a[n?"replaceState":"pushState"](t,"",r),s.value=t}catch(e){W("Error with push/replace State",e),i[n?"replace":"assign"](r)}}return s.value||l(r.value,{back:null,current:r.value,forward:null,position:a.length-1,replaced:!0,scroll:null},!0),{location:r,state:s,push:function(e,t){var n=U({},s.value,a.state,{forward:e,scroll:K()}),n=(a.state||W("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:\n\nhistory.replaceState(history.state, '', url)\n\nYou can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state."),l(n.current,n,!0),U({},$(r.value,e,null),{position:n.position+1},t));l(e,n,!1),r.value=e},replace:function(e,t){l(e,U({},a.state,$(s.value.back,e,s.value.forward,!0),t,{position:s.value.position}),!0),r.value=e}}}function O(e){const t=C(e=g(e)),n=E(e,t.state,t.location,t.replace);e=U({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:b.bind(null,e)},t,n);return Object.defineProperty(e,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(e,"state",{enumerable:!0,get:()=>t.state.value}),e}function ce(e){return"string"==typeof e||"symbol"==typeof e}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},R=Symbol("navigation failure"),x=(e.NavigationFailureType=void 0,(t=e.NavigationFailureType||(e.NavigationFailureType={}))[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated",{[1]({location:e,currentLocation:t}){return`No match for
`+JSON.stringify(e)+(t?"\nwhile being at\n"+JSON.stringify(t):"")},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};for(const n of P)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}(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}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}});function z(e,t){return U(new Error(x[e](t)),{type:e,[R]:!0},t)}function J(e,t){return e instanceof Error&&R in e&&(null==t||!!(e.type&t))}const P=["params","query","hash"];const S="[^/]+?",j={sensitive:!1,strict:!1,start:!0,end:!0},A=/[.+*?^${}()[\]/\\]/g;function I(c,e){var r=U({},j,e),t=[];let o=r.start?"^":"";const a=[];for(const p of c){var i=p.length?[]:[90];r.strict&&!p.length&&(o+="/");for(let n=0;n<p.length;n++){var s=p[n];let t=40+(r.sensitive?.25:0);if(0===s.type)n||(o+="/"),o+=s.value.replace(A,"\\$&"),t+=40;else if(1===s.type){var{value:s,repeatable:l,optional:u,regexp:d}=s;a.push({name:s,repeatable:l,optional:u});const h=d||S;if(h!==S){t+=10;try{new RegExp(`(${h})`)}catch(e){throw new Error(`Invalid custom RegExp for param "${s}" (${h}): `+e.message)}}let e=l?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;n||(e=u&&p.length<2?`(?:/${e})`:"/"+e),u&&(e+="?"),o+=e,t+=20,u&&(t+=-8),l&&(t+=-20),".*"===h&&(t+=-50)}i.push(t)}t.push(i)}r.strict&&r.end&&(t[e=t.length-1][t[e].length-1]+=.7000000000000001),r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const h=new RegExp(o,r.sensitive?"":"i");return{re:h,score:t,keys:a,parse:function(e){var t=e.match(h),n={};if(!t)return null;for(let e=1;e<t.length;e++){var r=t[e]||"",o=a[e-1];n[o.name]=r&&o.repeatable?r.split("/"):r}return n},stringify:function(e){let t="",n=!1;for(const s of c){n&&t.endsWith("/")||(t+="/"),n=!1;for(const l of s)if(0===l.type)t+=l.value;else if(1===l.type){var{value:r,repeatable:o,optional:a}=l,i=r in e?e[r]:"";if(B(i)&&!o)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);o=B(i)?i.join("/"):i;if(!o){if(!a)throw new Error(`Missing required param "${r}"`);s.length<2&&(t.endsWith("/")?t=t.slice(0,-1):n=!0)}t+=o}}return t||"/"}}}function T(e,t){let n=0;for(var r=e.score,o=t.score;n<r.length&&n<o.length;){var a=function(e,t){let n=0;for(;n<e.length&&n<t.length;){var r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}(r[n],o[n]);if(a)return a;n++}if(1===Math.abs(o.length-r.length)){if(L(r))return 1;if(L(o))return-1}return o.length-r.length}function L(e){var t=e[e.length-1];return 0<e.length&&t[t.length-1]<0}const ue={type:0,value:""},de=/[a-zA-Z0-9_]/;function he(e,t,n){var n=I(function(e){if(!e)return[[]];if("/"===e)return[[ue]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(e){throw new Error(`ERR (${n})/"${c}": `+e)}let n=0,r=n;const o=[];let a;function i(){a&&o.push(a),a=[]}let s=0,l,c="",u="";function d(){c&&(0===n?a.push({type:0,value:c}):1===n||2===n||3===n?(1<a.length&&("*"===l||"+"===l)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;s<e.length;)if("\\"===(l=e[s++])&&2!==n)r=n,n=4;else switch(n){case 0:"/"===l?(c&&d(),i()):":"===l?(d(),n=1):h();break;case 4:h(),n=r;break;case 1:"("===l?n=2:de.test(l)?h():(d(),n=0,"*"!==l&&"?"!==l&&"+"!==l&&s--);break;case 2:")"===l?"\\"==u[u.length-1]?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,"*"!==l&&"?"!==l&&"+"!==l&&s--,u="";break;default:t("Unknown state")}return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),o}(e.path),n),r=new Set;for(const o of n.keys)r.has(o.name)&&W(`Found duplicated params with name "${o.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),r.add(o.name);n=U(n,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function pe(e,g){const y=[],b=new Map;function w(e,t,n){var r,o,a,i=!n,s={path:(r=e).path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:function(e){var t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}},l=(r=s,(o=t)&&o.record.name&&!r.name&&!r.path&&W(`The route named "${String(o.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.`),s.aliasOf=n&&n.record,me(g,e)),c=[s];if("alias"in e)for(const v of"string"==typeof e.alias?[e.alias]:e.alias)c.push(U({},s,{components:(n?n.record:s).components,path:v,aliasOf:n?n.record:s}));let u;for(const m of c){var d,h=m["path"];if(t&&"/"!==h[0]&&(d="/"===(d=t.record.path)[d.length-1]?"":"/",m.path=t.record.path+(h&&d+h)),"*"===m.path)throw new Error('Catch all routes ("*") must now be defined using a param with a custom regexp.\nSee more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.');if(a=he(m,t,l),t&&"/"===h[0]&&!function(e,t){for(const n of t.keys)if(!e.keys.find(k.bind(null,n)))return W(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}(a,t),n?(n.alias.push(a),function(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(k.bind(null,n)))return W(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const r of t.keys)if(!r.optional&&!e.keys.find(k.bind(null,r)))return W(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${r.name}"`)}(n,a)):((u=u||a)!==a&&u.alias.push(a),i&&e.name&&!ve(a)&&_(e.name)),s.children){var p=s.children;for(let e=0;e<p.length;e++)w(p[e],a,n&&n.children[e])}if(n=n||a,a.record.components&&Object.keys(a.record.components).length||a.record.name||a.record.redirect){f=void 0;var f=a;let e=0;for(;e<y.length&&0<=T(f,y[e])&&(f.record.path!==y[e].record.path||!function t(n,e){return e.children.some(e=>e===n||t(n,e))}(f,y[e]));)e++;y.splice(e,0,f),f.record.name&&!ve(f)&&b.set(f.record.name,f)}}return u?()=>{_(u)}:V}function _(e){var t;ce(e)?(t=b.get(e))&&(b.delete(e),y.splice(y.indexOf(t),1),t.children.forEach(_),t.alias.forEach(_)):-1<(t=y.indexOf(e))&&(y.splice(t,1),e.record.name&&b.delete(e.record.name),e.children.forEach(_),e.alias.forEach(_))}return g=me({strict:!1,end:!0,sensitive:!1},g),e.forEach(e=>w(e)),{addRoute:w,resolve:function(e,t){let n,r={},o,a;if("name"in e&&e.name){if(!(n=b.get(e.name)))throw z(1,{location:e});var i=Object.keys(e.params||{}).filter(t=>!n.keys.find(e=>e.name===t));i.length&&W(`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.`),a=n.record.name,r=U(fe(t.params,n.keys.filter(e=>!e.optional).map(e=>e.name)),e.params&&fe(e.params,n.keys.map(e=>e.name))),o=n.stringify(r)}else if("path"in e)(o=e.path).startsWith("/")||W(`The Matcher cannot resolve relative paths but received "${o}". Unless you directly called \`matcher.resolve("${o}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),(n=y.find(e=>e.re.test(o)))&&(r=n.parse(o),a=n.record.name);else{if(!(n=t.name?b.get(t.name):y.find(e=>e.re.test(t.path))))throw z(1,{location:e,currentLocation:t});a=n.record.name,r=U({},t.params,e.params),o=n.stringify(r)}var s=[];let l=n;for(;l;)s.unshift(l.record),l=l.parent;return{name:a,path:o,params:r,matched:s,meta:s.reduce((e,t)=>U(e,t.meta),{})}},removeRoute:_,getRoutes:function(){return y},getRecordMatcher:function(e){return b.get(e)}}}function fe(e,t){var n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ve(e){for(;e;){if(e.record.aliasOf)return 1;e=e.parent}}function me(e,t){var n={};for(const r in e)n[r]=(r in t?t:e)[r];return n}function k(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}const ge=/#/g,ye=/&/g,be=/\//g,we=/=/g,_e=/\?/g,ke=/\+/g,Ee=/%5B/g,$e=/%5D/g,Ce=/%5E/g,Oe=/%60/g,Re=/%7B/g,xe=/%7C/g,Pe=/%7D/g,Se=/%20/g;function Y(e){return encodeURI(""+e).replace(xe,"|").replace(Ee,"[").replace($e,"]")}function o(e){return Y(e).replace(ke,"%2B").replace(Se,"+").replace(ge,"%23").replace(ye,"%26").replace(Oe,"`").replace(Re,"{").replace(Pe,"}").replace(Ce,"^")}function je(e){return null==e?"":Y(e).replace(ge,"%23").replace(_e,"%3F").replace(be,"%2F")}function X(t){try{return decodeURIComponent(""+t)}catch(e){W(`Error decoding "${t}". Using original value`)}return""+t}function Ae(e){var t={};if(""!==e&&"?"!==e){var n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){var r=n[e].replace(ke," "),o=r.indexOf("="),a=X(o<0?r:r.slice(0,o)),r=o<0?null:X(r.slice(o+1));if(a in t){let e=t[a];(e=B(e)?e:t[a]=[e]).push(r)}else t[a]=r}}return t}function Z(e){let n="";for(let t in e){var r=e[t];t=o(t).replace(we,"%3D"),null==r?void 0!==r&&(n+=(n.length?"&":"")+t):(B(r)?r.map(e=>e&&o(e)):[r&&o(r)]).forEach(e=>{void 0!==e&&(n+=(n.length?"&":"")+t,null!=e)&&(n+="="+e)})}return n}const a=Symbol("router view location matched"),p=Symbol("router view depth"),ee=Symbol("router"),te=Symbol("route location"),ne=Symbol("router view location");function re(){let n=[];return{add:function(t){return n.push(t),()=>{var e=n.indexOf(t);-1<e&&n.splice(e,1)}},list:()=>n.slice(),reset:function(){n=[]}}}function Ie(e,t,n){var r=()=>{e[t].delete(n)};N.onUnmounted(r),N.onDeactivated(r),N.onActivated(()=>{e[t].add(n)}),e[t].add(n)}function oe(i,s,l,c,u){const d=c&&(c.enterCallbacks[u]=c.enterCallbacks[u]||[]);return()=>new Promise((n,r)=>{const t=e=>{var t;!1===e?r(z(4,{from:l,to:s})):e instanceof Error?r(e):"string"==typeof(t=e)||t&&"object"==typeof t?r(z(2,{from:s,to:e})):(d&&c.enterCallbacks[u]===d&&"function"==typeof e&&d.push(e),n())};var e=i.call(c&&c.instances[u],s,l,function(e,t,n){let r=0;return function(){1==r++&&W(`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,1===r&&e.apply(null,arguments)}}(t,s,l));let o=Promise.resolve(e);if(i.length<3&&(o=o.then(t)),2<i.length){const a=`The "next" callback was never called inside of ${i.name?'"'+i.name+'"':""}:
${i.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if("object"==typeof e&&"then"in e)o=o.then(e=>t._called?e:(W(a),Promise.reject(new Error("Invalid navigation guard"))));else if(void 0!==e&&!t._called)return W(a),void r(new Error("Invalid navigation guard"))}o.catch(e=>r(e))})}function ae(e,n,r,o){var a=[];for(const s of e){s.components||s.children.length||W(`Record with path "${s.path}" is either missing a "component(s)"`+' or "children" property.');for(const l in s.components){let t=s.components[l];if(!t||"object"!=typeof t&&"function"!=typeof t)throw W(`Component "${l}" in record with path "${s.path}" is not`+` a valid component. Received "${String(t)}".`),new Error("Invalid route component");if("then"in t){W(`Component "${l}" in record with path "${s.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 c=t;t=()=>c}else t.__asyncLoader&&!t.__warnedDefineAsync&&(t.__warnedDefineAsync=!0,W(`Component "${l}" in record with path "${s.path}" is defined `+'using "defineAsyncComponent()". '+`Write "() => import('./MyPage.vue')" instead of `+`"defineAsyncComponent(() => import('./MyPage.vue'))".`));if("beforeRouteEnter"===n||s.instances[l])if("object"==typeof(i=t)||"displayName"in i||"props"in i||"__vccOpts"in i){var i=(t.__vccOpts||t)[n];i&&a.push(oe(i,r,o,s,l))}else{let e=t();"catch"in e||(W(`Component "${l}" in record with path "${s.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.`),e=Promise.resolve(e)),a.push(()=>e.then(e=>{return e?(e=f(e)?e.default:e,(e=((s.components[l]=e).__vccOpts||e)[n])&&oe(e,r,o,s,l)()):Promise.reject(new Error(`Couldn't resolve component "${l}" at "${s.path}"`))}))}}}return a}function i(t){const n=N.inject(ee),i=N.inject(te),s=N.computed(()=>n.resolve(N.unref(t.to))),e=N.computed(()=>{var e,t,n=s.value["matched"],r=n["length"],o=n[r-1],a=i.matched;return o&&a.length?!(-1<(e=a.findIndex(G.bind(null,o))))&&(t=Le(n[r-2]),1<r)&&Le(o)===t&&a[a.length-1].path!==t?a.findIndex(G.bind(null,n[r-2])):e:-1}),r=N.computed(()=>-1<e.value&&function(e,t){for(const r in t){var n=t[r];const o=e[r];if("string"==typeof n){if(n!==o)return!1}else if(!B(o)||o.length!==n.length||n.some((e,t)=>e!==o[t]))return!1}return!0}(i.params,s.value.params)),o=N.computed(()=>-1<e.value&&e.value===i.matched.length-1&&v(i.params,s.value.params));if(M){var a=N.getCurrentInstance();if(a){const l={route:s.value,isActive:r.value,isExactActive:o.value};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(l),N.watchEffect(()=>{l.route=s.value,l.isActive=r.value,l.isExactActive=o.value},{flush:"post"})}}return{route:s,href:N.computed(()=>s.value.href),isActive:r,isExactActive:o,navigate:function(e={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),1}}(e)?n[N.unref(t.replace)?"replace":"push"](N.unref(t.to)).catch(V):Promise.resolve()}}}const Te=N.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:i,setup(t,{slots:n}){const r=N.reactive(i(t)),e=N.inject(ee)["options"],o=N.computed(()=>({[Ne(t.activeClass,e.linkActiveClass,"router-link-active")]:r.isActive,[Ne(t.exactActiveClass,e.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{var e=n.default&&n.default(r);return t.custom?e:N.h("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},e)}}});function Le(e){return e?(e.aliasOf||e).path:""}const Ne=(e,t,n)=>null!=e?e:null!=t?t:n;function Me(e,t){return e?1===(e=e(t)).length?e[0]:e:null}const Ue=N.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(i,{attrs:s,slots:l}){var e,t;e=N.getCurrentInstance(),t=e.parent&&e.parent.type.name,e=e.parent&&e.parent.subTree&&e.parent.subTree.type,t&&("KeepAlive"===t||t.includes("Transition"))&&"object"==typeof e&&"RouterView"===e.name&&W('<router-view> can no longer be used directly inside <transition> or <keep-alive>.\nUse slot props instead:\n\n<router-view v-slot="{ Component }">\n'+` <${e="KeepAlive"===t?"keep-alive":"transition"}>
`+` <component :is="Component" />
`+` </${e}>
`+"</router-view>");const n=N.inject(ne),c=N.computed(()=>i.route||n.value),r=N.inject(p,0),u=N.computed(()=>{let e=N.unref(r);for(var t,n=c.value["matched"];(t=n[e])&&!t.components;)e++;return e}),d=N.computed(()=>c.value.matched[u.value]),h=(N.provide(p,N.computed(()=>u.value+1)),N.provide(a,d),N.provide(ne,c),N.ref());return N.watch(()=>[h.value,d.value,i.name],([t,e,n],[r,o])=>{e&&(e.instances[n]=t,o)&&o!==e&&t&&t===r&&(e.leaveGuards.size||(e.leaveGuards=o.leaveGuards),e.updateGuards.size||(e.updateGuards=o.updateGuards)),!t||!e||o&&G(e,o)&&r||(e.enterCallbacks[n]||[]).forEach(e=>e(t))},{flush:"post"}),()=>{var e=c.value;const t=i.name,n=d.value;var r=n&&n.components[t];if(!r)return Me(l.default,{Component:r,route:e});var o=n.props[t],o=o?!0===o?e.params:"function"==typeof o?o(e):o:null,r=N.h(r,U({},o,s,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(n.instances[t]=null)},ref:h}));if(M&&r.ref){const a={depth:u.value,name:n.name,path:n.path,meta:n.meta};(B(r.ref)?r.ref.map(e=>e.i):[r.ref.i]).forEach(e=>{e.__vrv_devtools=a})}return Me(l.default,{Component:r,route:e})||r}}});function De(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const Ve="function"==typeof Proxy,Be="devtools-plugin:setup";let n,r;function We(){return void 0===n&&("undefined"!=typeof window&&window.performance?(n=!0,r=window.performance):"undefined"!=typeof global&&null!=(e=global.perf_hooks)&&e.performance?(n=!0,r=global.perf_hooks.performance):n=!1),(n?r:Date).now();var e}class qe{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;var n={};if(e.settings)for(const l in e.settings){var r=e.settings[l];n[l]=r.defaultValue}const o="__vue-devtools-plugin-settings__"+e.id;let a=Object.assign({},n);try{var i=localStorage.getItem(o),s=JSON.parse(i);Object.assign(a,s)}catch(e){}this.fallbacks={getSettings(){return a},setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(e){}a=e},now(){return We()}},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,n)=>this.target?this.target[n]:"on"===n?this.proxiedOn:Object.keys(this.fallbacks).includes(n)?(...e)=>(this.targetQueue.push({method:n,args:e,resolve:()=>{}}),this.fallbacks[n](...e)):(...t)=>new Promise(e=>{this.targetQueue.push({method:n,args:t,resolve:e})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ge(e,t){var n=e,r=De(),o=De().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Ve&&n.enableEarlyProxy;!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a?(a=a?new qe(n,o):null,(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)):o.emit(Be,e,t)}function u(e,t){var n=U({},e,{matched:e.matched.map(e=>{var t=e,n=["instances","children","aliasOf"],r={};for(const o in t)n.includes(o)||(r[o]=t[o]);return r})});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function h(e){return{_custom:{display:e}}}let Fe=0;function Ke(s,l,c){if(!l.__hasDevtools){l.__hasDevtools=!0;const e=Fe++;Ge({id:"org.vuejs.router"+(e?"."+e:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:s},o=>{"function"!=typeof o.now&&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."),o.on.inspectComponent((e,t)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:u(l.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:r,componentInstance:e})=>{var t;e.__vrv_devtools&&(t=e.__vrv_devtools,r.tags.push({label:(t.name?t.name.toString()+": ":"")+t.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Qe})),B(e.__vrl_devtools)&&(e.__devtoolsApi=o,e.__vrl_devtools.forEach(e=>{let t=Ye,n="";e.isExactActive?(t=ze,n="This is exactly active"):e.isActive&&(t=He,n="This link is active"),r.tags.push({label:e.route.path,textColor:0,tooltip:n,backgroundColor:t})}))}),N.watch(l.currentRoute,()=>{t(),o.notifyComponentUpdate(),o.sendInspectorTree(r),o.sendInspectorState(r)});const a="router:navigations:"+e;o.addTimelineLayer({id:a,label:`Router${e?" "+e:""} Navigations`,color:4237508}),l.onError((e,t)=>{o.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:o.now(),data:{error:e},groupId:t.meta.__navigationId}})});let n=0;l.beforeEach((e,t)=>{t={guard:h("beforeEach"),from:u(t,"Current Location during this navigation"),to:u(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:n++}),o.addTimelineEvent({layerId:a,event:{time:o.now(),title:"Start of navigation",subtitle:e.fullPath,data:t,groupId:e.meta.__navigationId}})}),l.afterEach((e,t,n)=>{var r={guard:h("afterEach")};n?(r.failure={_custom:{type:Error,readOnly:!0,display:n?n.message:"",tooltip:"Navigation Failure",value:n}},r.status=h("❌")):r.status=h("✅"),r.from=u(t,"Current Location during this navigation"),r.to=u(e,"Target location"),o.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:e.fullPath,time:o.now(),data:r,logType:n?"warning":"default",groupId:e.meta.__navigationId}})});const r="router-inspector:"+e;function t(){if(i){const t=i;let e=c.getRoutes().filter(e=>!e.parent);e.forEach(nt),(e=t.filter?e.filter(e=>function t(e,n){const r=String(e.re).match(tt);e.__vd_match=!1;if(!r||r.length<3)return!1;const o=new RegExp(r[1].replace(/\$$/,""),r[2]);if(o.test(n))return e.children.forEach(e=>t(e,n)),("/"!==e.record.path||"/"===n)&&(e.__vd_match=e.re.test(n),!0);const a=e.record.path.toLowerCase();const i=X(a);if(!n.startsWith("/")&&(i.includes(n)||a.includes(n)))return!0;if(i.startsWith(n)||a.startsWith(n))return!0;if(e.record.name&&String(e.record.name).includes(n))return!0;return e.children.some(e=>t(e,n))}(e,t.filter.toLowerCase())):e).forEach(e=>function t(n,r){const e=r.matched.length&&G(r.matched[r.matched.length-1],n.record);n.__vd_exactActive=n.__vd_active=e;e||(n.__vd_active=r.matched.some(e=>G(e,n.record)));n.children.forEach(e=>t(e,r))}(e,l.currentRoute.value)),t.rootNodes=e.map(Ze)}}o.addInspector({id:r,label:"Routes"+(e?" "+e:""),icon:"book",treeFilterPlaceholder:"Search routes"});let i;o.on.getInspectorTree(e=>{(i=e).app===s&&e.inspectorId===r&&t()}),o.on.getInspectorState(t=>{var e;t.app===s&&t.inspectorId===r&&(e=c.getRoutes().find(e=>e.record.__vd_id===t.nodeId))&&(t.state={options:function(e){var t=e["record"],n=[{editable:!1,key:"path",value:t.path}];null!=t.name&&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(e=>{return""+e.name+((e=e).optional?e.repeatable?"*":"?":e.repeatable?"+":"")}).join(" "),tooltip:"Param keys",value:e.keys}}});null!=t.redirect&&n.push({editable:!1,key:"redirect",value:t.redirect});e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(e=>e.record.path)});Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta});return n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(e=>e.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}(e)})}),o.sendInspectorTree(r),o.sendInspectorState(r)})}}const Qe=15485081,He=2450411,ze=8702998,Je=2282478,Ye=16486972,Xe=6710886;function Ze(e){var t=[],n=e["record"];null!=n.name&&t.push({label:String(n.name),textColor:0,backgroundColor:Je}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Ye}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Qe}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:ze}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:He}),n.redirect&&t.push({label:"string"==typeof n.redirect?"redirect: "+n.redirect:"redirects",textColor:16777215,backgroundColor:Xe});let r=n.__vd_id;return null==r&&(r=String(et++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(Ze)}}let et=0;const tt=/^\/(.*)\/([a-z]*)$/;function nt(e){e.__vd_match=!1,e.children.forEach(nt)}return e.RouterLink=Te,e.RouterView=Ue,e.START_LOCATION=H,e.createMemoryHistory=function(e=""){let l=[],c=[""],u=0;function n(e){++u!==c.length&&c.splice(u),c.push(e)}return e={location:"",state:{},base:e=g(e),createHref:b.bind(null,e),replace(e){c.splice(u--,1),n(e)},push(e,t){n(e)},listen(t){return l.push(t),()=>{var e=l.indexOf(t);-1<e&&l.splice(e,1)}},destroy(){l=[],c=[""],u=0},go(e,t=!0){var n=this.location,r=e<0?d.back:d.forward;if(u=Math.max(0,Math.min(u+e,c.length-1)),t){var[o,a,{direction:t,delta:n}]=[this.location,n,{direction:r,delta:e}],i={direction:t,delta:n,type:F.pop};for(const s of l)s(o,a,i)}}},Object.defineProperty(e,"location",{enumerable:!0,get:()=>c[u]}),e},e.createRouter=function(l){const c=pe(l.routes,l),u=l.parseQuery||Ae,d=l.stringifyQuery||Z,h=l.history;if(!h)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const p=re(),f=re(),e=re(),v=N.shallowRef(H);let m=H;M&&l.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=D.bind(null,e=>""+e),y=D.bind(null,je),b=D.bind(null,X);function w(e,t){if(t=U({},t||v.value),"string"==typeof e){var n=q(u,e,t.path);const a=c.resolve({path:n.path},t),s=h.createHref(n.fullPath);return s.startsWith("//")?W(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`):a.matched.length||W(`No match found for location with path "${e}"`),U(n,a,{params:b(a.params),hash:X(n.hash),redirectedFrom:void 0,href:s})}let r;if("path"in e)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&W(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),r=U({},e,{path:q(u,e.path,t.path).path});else{var o=U({},e.params);for(const l in o)null==o[l]&&delete o[l];r=U({},e,{params:y(o)}),t.params=y(t.params)}const a=c.resolve(r,t);var i,n=e.hash||"",t=(n&&!n.startsWith("#")&&W(`A \`hash\` should always start with the character "#". Replace "${n}" with "#${n}".`),a.params=g(b(a.params)),t=d,i=U({},e,{hash:Y(n).replace(Re,"{").replace(Pe,"}").replace(Ce,"^"),path:a.path}),t=i.query?t(i.query):"",i.path+(t&&"?")+t+(i.hash||""));const s=h.createHref(t);return s.startsWith("//")?W(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`):a.matched.length||W(`No match found for location with path "${"path"in e?e.path:e}"`),U({fullPath:t,hash:n,query:d===Z?function(e){var t={};for(const r in e){var n=e[r];void 0!==n&&(t[r]=B(n)?n.map(e=>null==e?null:""+e):null==n?n:""+n)}return t}(e.query):e.query||{}},a,{redirectedFrom:void 0,href:s})}function _(e){return"string"==typeof e?q(u,e,v.value.path):U({},e)}function k(e,t){if(m!==e)return z(8,{from:t,to:e})}function o(e){return $(e)}function E(t){var n=t.matched[t.matched.length-1];if(n&&n.redirect){n=n["redirect"];let e="function"==typeof n?n(t):n;if("string"==typeof e&&((e=e.includes("?")||e.includes("#")?e=_(e):{path:e}).params={}),"path"in e||"name"in e)return U({query:t.query,hash:t.hash,params:"path"in e?{}:t.params},e);throw W(`Invalid redirect found:
${JSON.stringify(e,null,2)}
when navigating to "${t.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect")}}function $(e,t){var n=m=w(e);const r=v.value,o=e.state,a=e.force,i=!0===e.replace;e=E(n);if(e)return $(U(_(e),{state:"object"==typeof e?U({},o,e.state):o,force:a,replace:i}),t||n);const s=n;s.redirectedFrom=t;let l;return!a&&ie(d,r,n)&&(l=z(16,{to:s,from:r}),j(r,r,!0,!1)),(l?Promise.resolve(l):C(s,r)).catch(e=>J(e)?J(e,2)?e:S(e):P(e,s,r)).then(e=>{if(e){if(J(e,2))return ie(d,w(e.to),s)&&t&&30<(t._count=t._count?t._count+1:1)?(W(`Detected a possibly infinite redirection in a navigation guard when going from "${r.fullPath}" to "${s.fullPath}". Aborting to avoid a Stack Overflow.
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"))):$(U({replace:i},_(e.to),{state:"object"==typeof e.to?U({},o,e.to.state):o,force:a}),t||s)}else e=R(s,r,!0,i,o);return O(s,r,e),e})}function a(e){var t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function C(n,r){let o;const[e,t,a]=function(t,n){var r=[],o=[],a=[],i=Math.max(n.matched.length,t.matched.length);for(let e=0;e<i;e++){const s=n.matched[e],l=(s&&(t.matched.find(e=>G(e,s))?o:r).push(s),t.matched[e]);!l||n.matched.find(e=>G(e,l))||a.push(l)}return[r,o,a]}(n,r);o=ae(e.reverse(),"beforeRouteLeave",n,r);for(const s of e)s.leaveGuards.forEach(e=>{o.push(oe(e,n,r))});const i=function(e,t){return(e=k(e,t))?Promise.reject(e):Promise.resolve()}.bind(null,n,r);return o.push(i),L(o).then(()=>{o=[];for(const e of p.list())o.push(oe(e,n,r));return o.push(i),L(o)}).then(()=>{o=ae(t,"beforeRouteUpdate",n,r);for(const e of t)e.updateGuards.forEach(e=>{o.push(oe(e,n,r))});return o.push(i),L(o)}).then(()=>{o=[];for(const e of a)if(e.beforeEnter)if(B(e.beforeEnter))for(const t of e.beforeEnter)o.push(oe(t,n,r));else o.push(oe(e.beforeEnter,n,r));return o.push(i),L(o)}).then(()=>(n.matched.forEach(e=>e.enterCallbacks={}),(o=ae(a,"beforeRouteEnter",n,r)).push(i),L(o))).then(()=>{o=[];for(const e of f.list())o.push(oe(e,n,r));return o.push(i),L(o)}).catch(e=>J(e,8)?e:Promise.reject(e))}function O(t,n,r){e.list().forEach(e=>a(()=>e(t,n,r)))}function R(e,t,n,r,o){var a=k(e,t);if(a)return a;var a=t===H,i=M?history.state:{};n&&(r||a?h.replace(e.fullPath,U({scroll:a&&i&&i.scroll},o)):h.push(e.fullPath,o)),j(v.value=e,t,n,a),S()}let i;function t(){i=i||h.listen((e,t,n)=>{if(T.listening){const o=w(e);var r,e=E(o);if(e)$(U(e,{replace:!0}),o).catch(V);else{m=o;const a=v.value;M&&(e=le(a.fullPath,n.delta),r=K(),Q.set(e,r)),C(o,a).catch(e=>J(e,12)?e:J(e,2)?($(e.to,o).then(e=>{J(e,20)&&!n.delta&&n.type===F.pop&&h.go(-1,!1)}).catch(V),Promise.reject()):(n.delta&&h.go(-n.delta,!1),P(e,o,a))).then(e=>{(e=e||R(o,a,!1))&&(n.delta&&!J(e,8)?h.go(-n.delta,!1):n.type===F.pop&&J(e,20)&&h.go(-1,!1)),O(o,a,e)}).catch(V)}}})}let r=re(),s=re(),x;function P(t,n,r){S(t);var e=s.list();return e.length?e.forEach(e=>e(t,n,r)):(W("uncaught error during route navigation:"),console.error(t)),Promise.reject(t)}function S(n){return x||(x=!n,t(),r.list().forEach(([e,t])=>n?t(n):e()),r.reset()),n}function j(t,n,e,r){const o=l["scrollBehavior"];if(!M||!o)return Promise.resolve();const a=!e&&(i=le(t.fullPath,0),s=Q.get(i),Q.delete(i),s)||(r||!e)&&history.state&&history.state.scroll||null;var i,s;N.nextTick().then(()=>o(t,n,a)).then(e=>e&&se(e)).catch(e=>P(e,t,n))}const n=e=>h.go(e);let A;const I=new Set,T={currentRoute:v,listening:!0,addRoute:function(e,t){let n,r;return r=ce(e)?(n=c.getRecordMatcher(e),t):e,c.addRoute(r,n)},removeRoute:function(e){var t=c.getRecordMatcher(e);t?c.removeRoute(t):W(`Cannot remove non-existent route "${String(e)}"`)},hasRoute:function(e){return!!c.getRecordMatcher(e)},getRoutes:function(){return c.getRoutes().map(e=>e.record)},resolve:w,options:l,push:o,replace:function(e){return o(U(_(e),{replace:!0}))},go:n,back:()=>n(-1),forward:()=>n(1),beforeEach:p.add,beforeResolve:f.add,afterEach:e.add,onError:s.add,isReady:function(){return x&&v.value!==H?Promise.resolve():new Promise((e,t)=>{r.add([e,t])})},install(e){e.component("RouterLink",Te),e.component("RouterView",Ue),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>N.unref(v)}),M&&!A&&v.value===H&&(A=!0,o(h.location).catch(e=>{W("Unexpected error when starting the router:",e)}));var t={};for(const r in H)Object.defineProperty(t,r,{get:()=>v.value[r],enumerable:!0});e.provide(ee,this),e.provide(te,N.shallowReactive(t)),e.provide(ne,v);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(m=H,i&&i(),i=null,v.value=H,A=!1,x=!1),n()},M&&Ke(e,this,c)}};function L(e){return e.reduce((e,t)=>e.then(()=>a(t)),Promise.resolve())}return T},e.createRouterMatcher=pe,e.createWebHashHistory=function(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),e.endsWith("#/")||e.endsWith("#")||W(`A hash base must end with a "#":
"${e}" should be "${e.replace(/#.*$/,"#")}".`),O(e)},e.createWebHistory=O,e.isNavigationFailure=J,e.loadRouteLocation=function(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(r=>r.components&&Promise.all(Object.keys(r.components).reduce((e,t)=>{var n=r.components[t];return"function"!=typeof n||"displayName"in n||e.push(n().then(e=>{if(!e)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${r.path}". Ensure you passed a function that returns a promise.`));e=f(e)?e.default:e;r.components[t]=e})),e},[])))).then(()=>e)},e.matchedRouteKey=a,e.onBeforeRouteLeave=function(e){var t;N.getCurrentInstance()?(t=N.inject(a,{}).value)?Ie(t,"leaveGuards",e):W("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?"):W("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function")},e.onBeforeRouteUpdate=function(e){var t;N.getCurrentInstance()?(t=N.inject(a,{}).value)?Ie(t,"updateGuards",e):W("No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?"):W("getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function")},e.parseQuery=Ae,e.routeLocationKey=te,e.routerKey=ee,e.routerViewLocationKey=ne,e.stringifyQuery=Z,e.useLink=i,e.useRoute=function(){return N.inject(te)},e.useRouter=function(){return N.inject(ee)},e.viewDepthKey=p,e}({},Vue);