yingsa/admin/node_modules/vue-router/dist/vue-router.global.prod.js
2026-01-20 08:50:50 +08:00

6 lines
27 KiB
JavaScript

/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/
var VueRouter=(function(e,t){let n=typeof document<`u`;function r(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function i(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&r(e.default)}let a=Object.assign;function o(e,t){let n={};for(let r in t){let i=t[r];n[r]=c(i)?i.map(e):e(i)}return n}let s=()=>{},c=Array.isArray;function l(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}let u=/#/g,d=/&/g,f=/\//g,p=/=/g,m=/\?/g,h=/\+/g,ee=/%5B/g,te=/%5D/g,g=/%5E/g,ne=/%60/g,re=/%7B/g,ie=/%7C/g,ae=/%7D/g,_=/%20/g;function v(e){return e==null?``:encodeURI(``+e).replace(ie,`|`).replace(ee,`[`).replace(te,`]`)}function oe(e){return v(e).replace(re,`{`).replace(ae,`}`).replace(g,`^`)}function y(e){return v(e).replace(h,`%2B`).replace(_,`+`).replace(u,`%23`).replace(d,`%26`).replace(ne,"`").replace(re,`{`).replace(ae,`}`).replace(g,`^`)}function b(e){return y(e).replace(p,`%3D`)}function se(e){return v(e).replace(u,`%23`).replace(m,`%3F`)}function ce(e){return se(e).replace(f,`%2F`)}function x(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch(e){}return``+e}let le=/\/$/,S=e=>e.replace(le,``);function ue(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=E(r==null?t:r,n),{fullPath:r+a+o,path:r,query:i,hash:x(o)}}function de(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function fe(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function pe(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&C(t.matched[r],n.matched[i])&&w(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function C(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function w(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!me(e[n],t[n]))return!1;return!0}function me(e,t){return c(e)?T(e,t):c(t)?T(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function T(e,t){return c(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function E(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}let D={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},O=function(e){return e.pop=`pop`,e.push=`push`,e}({}),k=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function A(e){if(!e)if(n){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),S(e)}let he=/^[^#]+#/;function j(e,t){return e.replace(he,`#`)+t}function M(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}let N=()=>({left:window.scrollX,top:window.scrollY});function ge(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=M(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function _e(e,t){return(history.state?history.state.position-t:-1)+e}let P=new Map;function ve(e,t){P.set(e,t)}function ye(e){let t=P.get(e);return P.delete(e),t}let F=()=>location.protocol+`//`+location.host;function I(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),fe(n,``)}return fe(n,e)+r+i}function L(e,t,n,r){let i=[],o=[],s=null,c=({state:a})=>{let o=I(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=o,t.value=a,s&&s===c){s=null;return}u=l?a.position-l.position:0}else r(o);i.forEach(e=>{e(n.value,c,{delta:u,type:O.pop,direction:u?u>0?k.forward:k.back:k.unknown})})};function l(){s=n.value}function u(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t}function d(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(a({},e.state,{scroll:N()}),``)}}function f(){for(let e of o)e();o=[],window.removeEventListener(`popstate`,c),window.removeEventListener(`pagehide`,d),document.removeEventListener(`visibilitychange`,d)}return window.addEventListener(`popstate`,c),window.addEventListener(`pagehide`,d),document.addEventListener(`visibilitychange`,d),{pauseListeners:l,listen:u,destroy:f}}function R(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?N():null}}function z(e){let{history:t,location:n}=window,r={value:I(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:F()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function s(e,n){o(e,a({},t.state,R(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function c(e,n){let s=a({},i.value,t.state,{forward:e,scroll:N()});o(s.current,s,!0),o(e,a({},R(r.value,e,null),{position:s.position+1},n),!1),r.value=e}return{location:r,state:i,push:c,replace:s}}function B(e){e=A(e);let t=z(e),n=L(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=a({location:``,base:e,go:r,createHref:j.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function V(e=``){let t=[],n=[[``,{}]],r=0;e=A(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:O.pop};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:j.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?k.back:k.forward;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,`location`,{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,`state`,{enumerable:!0,get:()=>n[r][1]}),o}function be(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),B(e)}function xe(e){return typeof e==`string`||e&&typeof e==`object`}function Se(e){return typeof e==`string`||typeof e==`symbol`}let H=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Ce=Symbol(``),we=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});H.MATCHER_NOT_FOUND,H.NAVIGATION_GUARD_REDIRECT,H.NAVIGATION_ABORTED,H.NAVIGATION_CANCELLED,H.NAVIGATION_DUPLICATED;function U(e,t){return a(Error(),{type:e,[Ce]:!0},t)}function W(e,t){return e instanceof Error&&Ce in e&&(t==null||!!(e.type&t))}let G=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({});var K=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(K||{});let Te={type:G.Static,value:``},Ee=/[a-zA-Z0-9_]/;function De(e){if(!e)return[[]];if(e===`/`)return[[Te]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=K.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&(n===K.Static?a.push({type:G.Static,value:l}):n===K.Param||n===K.ParamRegExp||n===K.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:G.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),l=``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==K.ParamRegExp){r=n,n=K.EscapeNext;continue}switch(n){case K.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=K.Param):f();break;case K.EscapeNext:f(),n=r;break;case K.Param:c===`(`?n=K.ParamRegExp:Ee.test(c)?f():(d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case K.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=K.ParamRegExpEnd:u+=c;break;case K.ParamRegExpEnd:d(),n=K.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===K.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}let Oe=`[^/]+?`,ke={sensitive:!1,strict:!1,start:!0,end:!0};var q=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(q||{});let Ae=/[.+*?^${}()[\]/\\]/g;function je(e,t){let n=a({},ke,t),r=[],i=n.start?`^`:``,o=[];for(let t of e){let e=t.length?[]:[q.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let a=t[r],s=q.Segment+(n.sensitive?q.BonusCaseSensitive:0);if(a.type===G.Static)r||(i+=`/`),i+=a.value.replace(Ae,`\\$&`),s+=q.Static;else if(a.type===G.Param){let{value:e,repeatable:n,optional:c,regexp:l}=a;o.push({name:e,repeatable:n,optional:c});let u=l||Oe;if(u!==Oe){s+=q.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=q.Dynamic,c&&(s+=q.BonusOptional),n&&(s+=q.BonusRepeatable),u===`.*`&&(s+=q.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=q.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let s=new RegExp(i,n.sensitive?``:`i`);function l(e){let t=e.match(s),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=o[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function u(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===G.Static)n+=e.value;else if(e.type===G.Param){let{value:a,repeatable:o,optional:s}=e,l=a in t?t[a]:``;if(c(l)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let u=c(l)?l.join(`/`):l;if(!u)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=u}}return n||`/`}return{re:s,score:r,keys:o,parse:l,stringify:u}}function Me(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===q.Static+q.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===q.Static+q.Segment?1:-1:0}function Ne(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Me(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Pe(r))return 1;if(Pe(i))return-1}return i.length-r.length}function Pe(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}let Fe={strict:!1,end:!0,sensitive:!1};function Ie(e,t,n){let r=a(je(De(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Le(e,t){let n=[],r=new Map;t=l(Fe,t);function i(e){return r.get(e)}function o(e,n,r){let i=!r,u=ze(e);u.aliasOf=r&&r.record;let f=l(t,e),p=[u];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)p.push(ze(a({},u,{components:r?r.record.components:u.components,path:e,aliasOf:r?r.record:u})))}let m,h;for(let t of p){let{path:a}=t;if(n&&a[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(a&&r+a)}if(m=Ie(t,n,f),r?r.alias.push(m):(h=h||m,h!==m&&h.alias.push(m),i&&e.name&&!Ve(m)&&c(e.name)),Ge(m)&&d(m),u.children){let e=u.children;for(let t=0;t<e.length;t++)o(e[t],m,r&&r.children[t])}r=r||m}return h?()=>{c(h)}:s}function c(e){if(Se(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(c),t.alias.forEach(c))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(c),e.alias.forEach(c))}}function u(){return n}function d(e){let t=Ue(e,n);n.splice(t,0,e),e.record.name&&!Ve(e)&&r.set(e.record.name,e)}function f(e,t){let i,o={},s,c;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw U(H.MATCHER_NOT_FOUND,{location:e});c=i.record.name,o=a(Re(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Re(e.params,i.keys.map(e=>e.name))),s=i.stringify(o)}else if(e.path!=null)s=e.path,i=n.find(e=>e.re.test(s)),i&&(o=i.parse(s),c=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw U(H.MATCHER_NOT_FOUND,{location:e,currentLocation:t});c=i.record.name,o=a({},t.params,e.params),s=i.stringify(o)}let l=[],u=i;for(;u;)l.unshift(u.record),u=u.parent;return{name:c,path:s,params:o,matched:l,meta:He(l)}}e.forEach(e=>o(e));function p(){n.length=0,r.clear()}return{addRoute:o,resolve:f,removeRoute:c,clearRoutes:p,getRoutes:u,getRecordMatcher:i}}function Re(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ze(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Be(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Be(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ve(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function He(e){return e.reduce((e,t)=>a(e,t.meta),{})}function Ue(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ne(e,t[i])<0?r=i:n=i+1}let i=We(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function We(e){let t=e;for(;t=t.parent;)if(Ge(t)&&Ne(e,t)===0)return t}function Ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ke(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(h,` `),i=r.indexOf(`=`),a=x(i<0?r:r.slice(0,i)),o=i<0?null:x(r.slice(i+1));if(a in t){let e=t[a];c(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function qe(e){let t=``;for(let n in e){let r=e[n];if(n=b(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(c(r)?r.map(e=>e&&y(e)):[r&&y(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Je(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=c(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}let J=Symbol(``),Ye=Symbol(``),Y=Symbol(``),X=Symbol(``),Z=Symbol(``);function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Xe(e,n,r){let i=()=>{e[n].delete(r)};(0,t.onUnmounted)(i),(0,t.onDeactivated)(i),(0,t.onActivated)(()=>{e[n].add(r)}),e[n].add(r)}function Ze(e){let n=(0,t.inject)(J,{}).value;n&&Xe(n,`leaveGuards`,e)}function Qe(e){let n=(0,t.inject)(J,{}).value;n&&Xe(n,`updateGuards`,e)}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(U(H.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):xe(e)?c(U(H.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function $e(e,t,n,a,o=e=>e()){let s=[];for(let c of e)for(let e in c.components){let l=c.components[e];if(!(t!==`beforeRouteEnter`&&!c.instances[e]))if(r(l)){let r=(l.__vccOpts||l)[t];r&&s.push($(r,n,a,c,e,o))}else{let r=l();s.push(()=>r.then(r=>{if(!r)throw Error(`Couldn't resolve component "${e}" at "${c.path}"`);let s=i(r)?r.default:r;c.mods[e]=r,c.components[e]=s;let l=(s.__vccOpts||s)[t];return l&&$(l,n,a,c,e,o)()}))}}return s}function et(e){return e.matched.every(e=>e.redirect)?Promise.reject(Error(`Cannot load a route that redirects.`)):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,n)=>{let r=e.components[n];return typeof r==`function`&&!(`displayName`in r)&&t.push(r().then(t=>{if(!t)return Promise.reject(Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));let r=i(t)?t.default:t;e.mods[n]=t,e.components[n]=r})),t},[])))).then(()=>e)}function tt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>C(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>C(e,s))||i.push(s))}return[n,r,i]}function nt(e){let n=(0,t.inject)(Y),r=(0,t.inject)(X),i=(0,t.computed)(()=>{let r=(0,t.unref)(e.to);return n.resolve(r)}),a=(0,t.computed)(()=>{let{matched:e}=i.value,{length:t}=e,n=e[t-1],a=r.matched;if(!n||!a.length)return-1;let o=a.findIndex(C.bind(null,n));if(o>-1)return o;let s=st(e[t-2]);return t>1&&st(n)===s&&a[a.length-1].path!==s?a.findIndex(C.bind(null,e[t-2])):o}),o=(0,t.computed)(()=>a.value>-1&&ot(r.params,i.value.params)),c=(0,t.computed)(()=>a.value>-1&&a.value===r.matched.length-1&&w(r.params,i.value.params));function l(r={}){if(at(r)){let r=n[(0,t.unref)(e.replace)?`replace`:`push`]((0,t.unref)(e.to)).catch(s);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>r),r}return Promise.resolve()}return{route:i,href:(0,t.computed)(()=>i.value.href),isActive:o,isExactActive:c,navigate:l}}function rt(e){return e.length===1?e[0]:e}let it=(0,t.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`},viewTransition:Boolean},useLink:nt,setup(e,{slots:n}){let r=(0,t.reactive)(nt(e)),{options:i}=(0,t.inject)(Y),a=(0,t.computed)(()=>({[ct(e.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[ct(e.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&rt(n.default(r));return e.custom?i:(0,t.h)(`a`,{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function at(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ot(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!c(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function st(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}let ct=(e,t,n)=>e==null?t==null?n:t:e,lt=(0,t.defineComponent)({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:r}){let i=(0,t.inject)(Z),o=(0,t.computed)(()=>e.route||i.value),s=(0,t.inject)(Ye,0),c=(0,t.computed)(()=>{let e=(0,t.unref)(s),{matched:n}=o.value,r;for(;(r=n[e])&&!r.components;)e++;return e}),l=(0,t.computed)(()=>o.value.matched[c.value]);(0,t.provide)(Ye,(0,t.computed)(()=>c.value+1)),(0,t.provide)(J,l),(0,t.provide)(Z,o);let u=(0,t.ref)();return(0,t.watch)(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!C(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let i=o.value,s=e.name,c=l.value,d=c&&c.components[s];if(!d)return ut(r.default,{Component:d,route:i});let f=c.props[s],p=f?f===!0?i.params:typeof f==`function`?f(i):f:null,m=(0,t.h)(d,a({},p,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(c.instances[s]=null)},ref:u}));return ut(r.default,{Component:m,route:i})||m}}});function ut(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}let dt=lt;function ft(e){let r=Le(e.routes,e),i=e.parseQuery||Ke,l=e.stringifyQuery||qe,u=e.history,d=Q(),f=Q(),p=Q(),m=(0,t.shallowRef)(D),h=D;n&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=o.bind(null,e=>``+e),te=o.bind(null,ce),g=o.bind(null,x);function ne(e,t){let n,i;return Se(e)?(n=r.getRecordMatcher(e),i=t):i=e,r.addRoute(i,n)}function re(e){let t=r.getRecordMatcher(e);t&&r.removeRoute(t)}function ie(){return r.getRoutes().map(e=>e.record)}function ae(e){return!!r.getRecordMatcher(e)}function _(e,t){if(t=a({},t||m.value),typeof e==`string`){let n=ue(i,e,t.path),o=r.resolve({path:n.path},t),s=u.createHref(n.fullPath);return a(n,o,{params:g(o.params),hash:x(n.hash),redirectedFrom:void 0,href:s})}let n;if(e.path!=null)n=a({},e,{path:ue(i,e.path,t.path).path});else{let r=a({},e.params);for(let e in r)r[e]==null&&delete r[e];n=a({},e,{params:te(r)}),t.params=te(t.params)}let o=r.resolve(n,t),s=e.hash||``;o.params=ee(g(o.params));let c=de(l,a({},e,{hash:oe(s),path:o.path})),d=u.createHref(c);return a({fullPath:c,hash:s,query:l===qe?Je(e.query):e.query||{}},o,{redirectedFrom:void 0,href:d})}function v(e){return typeof e==`string`?ue(i,e,m.value.path):a({},e)}function y(e,t){if(h!==e)return U(H.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return S(e)}function se(e){return b(a(v(e),{replace:!0}))}function le(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),a({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function S(e,t){let n=h=_(e),r=m.value,i=e.state,o=e.force,s=e.replace===!0,c=le(n,r);if(c)return S(a(v(c),{state:typeof c==`object`?a({},i,c.state):i,force:o,replace:s}),t||n);let u=n;u.redirectedFrom=t;let d;return!o&&pe(l,r,n)&&(d=U(H.NAVIGATION_DUPLICATED,{to:u,from:r}),I(r,r,!0,!1)),(d?Promise.resolve(d):w(u,r)).catch(e=>W(e)?W(e,H.NAVIGATION_GUARD_REDIRECT)?e:F(e):M(e,u,r)).then(e=>{if(e){if(W(e,H.NAVIGATION_GUARD_REDIRECT))return S(a({replace:s},v(e.to),{state:typeof e.to==`object`?a({},i,e.to.state):i,force:o}),t||u)}else e=T(u,r,!0,s,i);return me(u,r,e),e})}function fe(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function C(e){let t=z.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function w(e,t){let n,[r,i,a]=tt(e,t);n=$e(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let o=fe.bind(null,e,t);return n.push(o),V(n).then(()=>{n=[];for(let r of d.list())n.push($(r,e,t));return n.push(o),V(n)}).then(()=>{n=$e(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(o),V(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(c(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t));return n.push(o),V(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=$e(a,`beforeRouteEnter`,e,t,C),n.push(o),V(n))).then(()=>{n=[];for(let r of f.list())n.push($(r,e,t));return n.push(o),V(n)}).catch(e=>W(e,H.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function me(e,t,n){p.list().forEach(r=>C(()=>r(e,t,n)))}function T(e,t,r,i,o){let s=y(e,t);if(s)return s;let c=t===D,l=n?history.state:{};r&&(i||c?u.replace(e.fullPath,a({scroll:c&&l&&l.scroll},o)):u.push(e.fullPath,o)),m.value=e,I(e,t,r,c),F()}let E;function k(){E||(E=u.listen((e,t,r)=>{if(!B.listening)return;let i=_(e),o=le(i,B.currentRoute.value);if(o){S(a(o,{replace:!0,force:!0}),i).catch(s);return}h=i;let c=m.value;n&&ve(_e(c.fullPath,r.delta),N()),w(i,c).catch(e=>W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_CANCELLED)?e:W(e,H.NAVIGATION_GUARD_REDIRECT)?(S(a(v(e.to),{force:!0}),i).then(e=>{W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&!r.delta&&r.type===O.pop&&u.go(-1,!1)}).catch(s),Promise.reject()):(r.delta&&u.go(-r.delta,!1),M(e,i,c))).then(e=>{e=e||T(i,c,!1),e&&(r.delta&&!W(e,H.NAVIGATION_CANCELLED)?u.go(-r.delta,!1):r.type===O.pop&&W(e,H.NAVIGATION_ABORTED|H.NAVIGATION_DUPLICATED)&&u.go(-1,!1)),me(i,c,e)}).catch(s)}))}let A=Q(),he=Q(),j;function M(e,t,n){F(e);let r=he.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function P(){return j&&m.value!==D?Promise.resolve():new Promise((e,t)=>{A.add([e,t])})}function F(e){return j||(j=!e,k(),A.list().forEach(([t,n])=>e?n(e):t()),A.reset()),e}function I(r,i,a,o){let{scrollBehavior:s}=e;if(!n||!s)return Promise.resolve();let c=!a&&ye(_e(r.fullPath,0))||(o||!a)&&history.state&&history.state.scroll||null;return(0,t.nextTick)().then(()=>s(r,i,c)).then(e=>e&&ge(e)).catch(e=>M(e,r,i))}let L=e=>u.go(e),R,z=new Set,B={currentRoute:m,listening:!0,addRoute:ne,removeRoute:re,clearRoutes:r.clearRoutes,hasRoute:ae,getRoutes:ie,resolve:_,options:e,push:b,replace:se,go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:d.add,beforeResolve:f.add,afterEach:p.add,onError:he.add,isReady:P,install(e){e.component(`RouterLink`,it),e.component(`RouterView`,dt),e.config.globalProperties.$router=B,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>(0,t.unref)(m)}),n&&!R&&m.value===D&&(R=!0,b(u.location).catch(e=>{}));let r={};for(let e in D)Object.defineProperty(r,e,{get:()=>m.value[e],enumerable:!0});e.provide(Y,B),e.provide(X,(0,t.shallowReactive)(r)),e.provide(Z,m);let i=e.unmount;z.add(e),e.unmount=function(){z.delete(e),z.size<1&&(h=D,E&&E(),E=null,m.value=D,R=!1,j=!1),i()}}};function V(e){return e.reduce((e,t)=>e.then(()=>C(t)),Promise.resolve())}return B}function pt(){return(0,t.inject)(Y)}function mt(e){return(0,t.inject)(X)}return e.NavigationFailureType=we,e.RouterLink=it,e.RouterView=dt,e.START_LOCATION=D,e.createMemoryHistory=V,e.createRouter=ft,e.createRouterMatcher=Le,e.createWebHashHistory=be,e.createWebHistory=B,e.isNavigationFailure=W,e.loadRouteLocation=et,e.matchedRouteKey=J,e.onBeforeRouteLeave=Ze,e.onBeforeRouteUpdate=Qe,e.parseQuery=Ke,e.routeLocationKey=X,e.routerKey=Y,e.routerViewLocationKey=Z,e.stringifyQuery=qe,e.useLink=nt,e.useRoute=mt,e.useRouter=pt,e.viewDepthKey=Ye,e})({},Vue);