|
|
import{M as Ze,D as X,e as I,r as Pe,n as Je,d as we,c as U,J as Ae,p as ce,h as et,w as tt}from "./vue.runtime.esm.js";/*! * vue-router v4.0.11 * (c) 2021 Eduardo San Martin Morote * @license MIT */const Se=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",B=e=>Se?Symbol(e):"_vr_"+e,nt=B("rvlm"),ke=B("rvd"),ie=B("r"),Ce=B("rl"),ae=B("rvl"),j=typeof window!="undefined";function rt(e){return e.__esModule||Se&&e[Symbol.toStringTag]==="Module"}const A=Object.assign;function le(e,t){const n={};for(const r in t){const s=t[r];n[r]=Array.isArray(s)?s.map(e):e(s)}return n}const D=()=>{},st=/\/$/,ot=e=>e.replace(st,"");function ue(e,t,n="/"){let r,s={},l="",d="";const g=t.indexOf("?"),c=t.indexOf("#",g>-1?g:0);return g>-1&&(r=t.slice(0,g),l=t.slice(g+1,c>-1?c:t.length),s=e(l)),c>-1&&(r=r||t.slice(0,c),d=t.slice(c,t.length)),r=lt(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+d,path:r,query:s,hash:d}}function ct(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function it(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&q(t.matched[r],n.matched[s])&&_e(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!at(e[n],t[n]))return!1;return!0}function at(e,t){return Array.isArray(e)?Oe(e,t):Array.isArray(t)?Oe(t,e):e===t}function Oe(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function lt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,l,d;for(l=0;l<r.length;l++)if(d=r[l],!(s===1||d==="."))if(d==="..")s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Q;(function(e){e.pop="pop",e.push="push"})(Q||(Q={}));var F;(function(e){e.back="back",e.forward="forward",e.unknown=""})(F||(F={}));function ut(e){if(!e)if(j){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ot(e)}const ft=/^[^#]+#/;function ht(e,t){return e.replace(ft,"#")+t}function dt(e,t){const 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)}}const Z=()=>({left:window.pageXOffset,top:window.pageYOffset});function pt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=dt(s,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 xe(e,t){return(history.state?history.state.position-t:-1)+e}const fe=new Map;function mt(e,t){fe.set(e,t)}function gt(e){const t=fe.get(e);return fe.delete(e),t}let yt=()=>location.protocol+"//"+location.host;function Me(e,t){const{pathname:n,search:r,hash:s}=t,l=e.indexOf("#");if(l>-1){let g=s.includes(e.slice(l))?e.slice(l).length:1,c=s.slice(g);return c[0]!=="/"&&(c="/"+c),be(c,"")}return be(n,e)+r+s}function vt(e,t,n,r){let s=[],l=[],d=null;const g=({state:a})=>{const y=Me(e,location),v=n.value,C=t.value;let k=0;if(a){if(n.value=y,t.value=a,d&&d===v){d=null;return}k=C?a.position-C.position:0}else r(y);s.forEach(w=>{w(n.value,v,{delta:k,type:Q.pop,direction:k?k>0?F.forward:F.back:F.unknown})})};function c(){d=n.value}function u(a){s.push(a);const y=()=>{const v=s.indexOf(a);v>-1&&s.splice(v,1)};return l.push(y),y}function i(){const{history:a}=window;!a.state||a.replaceState(A({},a.state,{scroll:Z()}),"")}function f(){for(const a of l)a();l=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",i),{pauseListeners:c,listen:u,destroy:f}}function Ne(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Z():null}}function Rt(e){const{history:t,location:n}=window,r={value:Me(
|