Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue/router/dist/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue/router/dist/router.bundle.min.js |
(function(e,t){"use strict"; /*! * vue-router v3.6.5 * (c) 2021 Evan You * @license MIT * * @source: https://unpkg.com/vue-router@3.5.3/dist/vue-router.esm.browser.js */function r(e,t){if(!e){throw new Error("[vue-router] ".concat(t))}}function n(e,t){if(!e){typeof console!=="undefined"&&console.warn("[vue-router] ".concat(t))}}function a(e,t){for(var r in t){e[r]=t[r]}return e}var i=/[!'()*]/g;var o=function e(t){return"%"+t.charCodeAt(0).toString(16)};var s=/%2C/g;var u=function e(t){return encodeURIComponent(t).replace(i,o).replace(s,",")};function c(e){try{return decodeURIComponent(e)}catch(t){{n(false,'Error decoding "'.concat(e,'". Leaving it intact.'))}}return e}function f(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2?arguments[2]:undefined;var a=r||h;var i;try{i=a(e||"")}catch(e){n(false,e.message);i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(l):l(s)}return i}var l=function e(t){return t==null||babelHelpers["typeof"](t)==="object"?t:String(t)};function h(e){var t={};e=e.trim().replace(/^(\?|#|&)/,"");if(!e){return t}e.split("&").forEach((function(e){var r=e.replace(/\+/g," ").split("=");var n=c(r.shift());var a=r.length>0?c(r.join("=")):null;if(t[n]===undefined){t[n]=a}else if(Array.isArray(t[n])){t[n].push(a)}else{t[n]=[t[n],a]}}));return t}function p(e){var t=e?Object.keys(e).map((function(t){var r=e[t];if(r===undefined){return""}if(r===null){return u(t)}if(Array.isArray(r)){var n=[];r.forEach((function(e){if(e===undefined){return}if(e===null){n.push(u(t))}else{n.push(u(t)+"="+u(e))}}));return n.join("&")}return u(t)+"="+u(r)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?".concat(t):""}var v=/\/?$/;function d(e,t,r,n){var a=n&&n.options.stringifyQuery;var i=t.query||{};try{i=y(i)}catch(e){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:i,params:t.params||{},fullPath:b(t,a),matched:e?g(e):[]};if(r){o.redirectedFrom=b(r,a)}return Object.freeze(o)}function y(e){if(Array.isArray(e)){return e.map(y)}else if(e&&babelHelpers["typeof"](e)==="object"){var t={};for(var r in e){t[r]=y(e[r])}return t}else{return e}}var m=d(null,{path:"/"});function g(e){var t=[];while(e){t.unshift(e);e=e.parent}return t}function b(e,t){var r=e.path,n=e.query,a=n===void 0?{}:n,i=e.hash,o=i===void 0?"":i;var s=t||p;return(r||"/")+s(a)+o}function w(e,t,r){if(t===m){return e===t}else if(!t){return false}else if(e.path&&t.path){return e.path.replace(v,"")===t.path.replace(v,"")&&(r||e.hash===t.hash&&k(e.query,t.query))}else if(e.name&&t.name){return e.name===t.name&&(r||e.hash===t.hash&&k(e.query,t.query)&&k(e.params,t.params))}else{return false}}function k(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!e||!t)return e===t;var r=Object.keys(e).sort();var n=Object.keys(t).sort();if(r.length!==n.length){return false}return r.every((function(r,a){var i=e[r];var o=n[a];if(o!==r)return false;var s=t[r];if(i==null||s==null)return i===s;if(babelHelpers["typeof"](i)==="object"&&babelHelpers["typeof"](s)==="object"){return k(i,s)}return String(i)===String(s)}))}function R(e,t){return e.path.replace(v,"/").indexOf(t.path.replace(v,"/"))===0&&(!t.hash||e.hash===t.hash)&&x(e.query,t.query)}function x(e,t){for(var r in t){if(!(r in e)){return false}}return true}function C(e){for(var t=0;t<e.matched.length;t++){var r=e.matched[t];for(var n in r.instances){var a=r.instances[n];var i=r.enteredCbs[n];if(!a||!i)continue;delete r.enteredCbs[n];for(var o=0;o<i.length;o++){if(!a._isBeingDestroyed)i[o](a)}}}}var E={name:"RouterView",functional:true,props:{name:{type:String,default:"default"}},render:function e(t,r){var n=r.props,i=r.children,o=r.parent,s=r.data;s.routerView=true;var u=o.$createElement;var c=n.name;var f=o.$route;var l=o._routerViewCache||(o._routerViewCache={});var h=0;var p=false;while(o&&o._routerRoot!==o){var v=o.$vnode?o.$vnode.data:{};if(v.routerView){h++}if(v.keepAlive&&o._directInactive&&o._inactive){p=true}o=o.$parent}s.routerViewDepth=h;if(p){var d=l[c];var y=d&&d.component;if(y){if(d.configProps){A(y,s,d.route,d.configProps)}return u(y,s,i)}else{return u()}}var m=f.matched[h];var g=m&&m.components[c];if(!m||!g){l[c]=null;return u()}l[c]={component:g};s.registerRouteInstance=function(e,t){var r=m.instances[c];if(t&&r!==e||!t&&r===e){m.instances[c]=t}};(s.hook||(s.hook={})).prepatch=function(e,t){m.instances[c]=t.componentInstance};s.hook.init=function(e){if(e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[c]){m.instances[c]=e.componentInstance}C(f)};var b=m.props&&m.props[c];if(b){a(l[c],{route:f,configProps:b});A(g,s,f,b)}return u(g,s,i)}};function A(e,t,r,n){var i=t.props=O(r,n);if(i){i=t.props=a({},i);var o=t.attrs=t.attrs||{};for(var s in i){if(!e.props||!(s in e.props)){o[s]=i[s];delete i[s]}}}}function O(e,t){switch(babelHelpers["typeof"](t)){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:undefined;default:{n(false,'props in "'.concat(e.path,'" is a ').concat(babelHelpers["typeof"](t),", ")+"expecting an object, function or boolean.")}}}function H(e,t,r){var n=e.charAt(0);if(n==="/"){return e}if(n==="?"||n==="#"){return t+e}var a=t.split("/");if(!r||!a[a.length-1]){a.pop()}var i=e.replace(/^\//,"").split("/");for(var o=0;o<i.length;o++){var s=i[o];if(s===".."){a.pop()}else if(s!=="."){a.push(s)}}if(a[0]!==""){a.unshift("")}return a.join("/")}function j(e){var t="";var r="";var n=e.indexOf("#");if(n>=0){t=e.slice(n);e=e.slice(0,n)}var a=e.indexOf("?");if(a>=0){r=e.slice(a+1);e=e.slice(0,a)}return{path:e,query:r,hash:t}}function S(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var P=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"};var T=Q;var $=I;var L=V;var _=N;var q=Y;var U=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function I(e,t){var r=[];var n=0;var a=0;var i="";var o=t&&t.delimiter||"/";var s;while((s=U.exec(e))!=null){var u=s[0];var c=s[1];var f=s.index;i+=e.slice(a,f);a=f+u.length;if(c){i+=c[1];continue}var l=e[a];var h=s[2];var p=s[3];var v=s[4];var d=s[5];var y=s[6];var m=s[7];if(i){r.push(i);i=""}var g=h!=null&&l!=null&&l!==h;var b=y==="+"||y==="*";var w=y==="?"||y==="*";var k=s[2]||o;var R=v||d;r.push({name:p||n++,prefix:h||"",delimiter:k,optional:w,repeat:b,partial:g,asterisk:!!m,pattern:R?D(R):m?".*":"[^"+F(k)+"]+?"})}if(a<e.length){i+=e.substr(a)}if(i){r.push(i)}return r}function V(e,t){return N(I(e,t),t)}function B(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function M(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function N(e,t){var r=new Array(e.length);for(var n=0;n<e.length;n++){if(babelHelpers["typeof"](e[n])==="object"){r[n]=new RegExp("^(?:"+e[n].pattern+")$",J(t))}}return function(t,n){var a="";var i=t||{};var o=n||{};var s=o.pretty?B:encodeURIComponent;for(var u=0;u<e.length;u++){var c=e[u];if(typeof c==="string"){a+=c;continue}var f=i[c.name];var l;if(f==null){if(c.optional){if(c.partial){a+=c.prefix}continue}else{throw new TypeError('Expected "'+c.name+'" to be defined')}}if(P(f)){if(!c.repeat){throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`")}if(f.length===0){if(c.optional){continue}else{throw new TypeError('Expected "'+c.name+'" to not be empty')}}for(var h=0;h<f.length;h++){l=s(f[h]);if(!r[u].test(l)){throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`")}a+=(h===0?c.prefix:c.delimiter)+l}continue}l=c.asterisk?M(f):s(f);if(!r[u].test(l)){throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"')}a+=c.prefix+l}return a}}function F(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function z(e,t){e.keys=t;return e}function J(e){return e&&e.sensitive?"":"i"}function X(e,t){var r=e.source.match(/\((?!\?)/g);if(r){for(var n=0;n<r.length;n++){t.push({name:n,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,asterisk:false,pattern:null})}}return z(e,t)}function K(e,t,r){var n=[];for(var a=0;a<e.length;a++){n.push(Q(e[a],t,r).source)}var i=new RegExp("(?:"+n.join("|")+")",J(r));return z(i,t)}function W(e,t,r){return Y(I(e,r),t,r)}function Y(e,t,r){if(!P(t)){r=t||r;t=[]}r=r||{};var n=r.strict;var a=r.end!==false;var i="";for(var o=0;o<e.length;o++){var s=e[o];if(typeof s==="string"){i+=F(s)}else{var u=F(s.prefix);var c="(?:"+s.pattern+")";t.push(s);if(s.repeat){c+="(?:"+u+c+")*"}if(s.optional){if(!s.partial){c="(?:"+u+"("+c+"))?"}else{c=u+"("+c+")?"}}else{c=u+"("+c+")"}i+=c}}var f=F(r.delimiter||"/");var l=i.slice(-f.length)===f;if(!n){i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"}if(a){i+="$"}else{i+=n&&l?"":"(?="+f+"|$)"}return z(new RegExp("^"+i,J(r)),t)}function Q(e,t,r){if(!P(t)){r=t||r;t=[]}r=r||{};if(e instanceof RegExp){return X(e,t)}if(P(e)){return K(e,t,r)}return W(e,t,r)}T.parse=$;T.compile=L;T.tokensToFunction=_;T.tokensToRegExp=q;var G=Object.create(null);function Z(e,t,r){t=t||{};try{var a=G[e]||(G[e]=T.compile(e));if(typeof t.pathMatch==="string")t[0]=t.pathMatch;return a(t,{pretty:true})}catch(e){{n(typeof t.pathMatch==="string","missing param for ".concat(r,": ").concat(e.message))}return""}finally{delete t[0]}}function ee(e,t,r,i){var o=typeof e==="string"?{path:e}:e;if(o._normalized){return o}else if(o.name){o=a({},e);var s=o.params;if(s&&babelHelpers["typeof"](s)==="object"){o.params=a({},s)}return o}if(!o.path&&o.params&&t){o=a({},o);o._normalized=true;var u=a(a({},t.params),o.params);if(t.name){o.name=t.name;o.params=u}else if(t.matched.length){var c=t.matched[t.matched.length-1].path;o.path=Z(c,u,"path ".concat(t.path))}else{n(false,"relative params navigation requires a current route.")}return o}var l=j(o.path||"");var h=t&&t.path||"/";var p=l.path?H(l.path,h,r||o.append):h;var v=f(l.query,o.query,i&&i.options.parseQuery);var d=o.hash||l.hash;if(d&&d.charAt(0)!=="#"){d="#".concat(d)}return{_normalized:true,path:p,query:v,hash:d}}var te=[String,Object];var re=[String,Array];var ne=function e(){};var ae;var ie;var oe;var se={name:"RouterLink",props:{to:{type:te,required:true},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:re,default:"click"}},render:function e(t){var r=this;var i=this.$router;var o=this.$route;var s=i.resolve(this.to,o,this.append),u=s.location,c=s.route,f=s.href;var l={};var h=i.options.linkActiveClass;var p=i.options.linkExactActiveClass;var v=h==null?"router-link-active":h;var y=p==null?"router-link-exact-active":p;var m=this.activeClass==null?v:this.activeClass;var g=this.exactActiveClass==null?y:this.exactActiveClass;var b=c.redirectedFrom?d(null,ee(c.redirectedFrom),null,i):c;l[g]=w(o,b,this.exactPath);l[m]=this.exact||this.exactPath?l[g]:R(o,b);var k=l[g]?this.ariaCurrentValue:null;var x=function e(t){if(ue(t)){if(r.replace){i.replace(u,ne)}else{i.push(u,ne)}}};var C={click:ue};if(Array.isArray(this.event)){this.event.forEach((function(e){C[e]=x}))}else{C[this.event]=x}var E={class:l};var A=!this.$scopedSlots.$hasNormal&&this.$scopedSlots["default"]&&this.$scopedSlots["default"]({href:f,route:c,navigate:x,isActive:l[m],isExactActive:l[g]});if(A){if(!this.custom){!ae&&n(false,'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\n<router-link v-slot="{ navigate, href }" custom></router-link>\n');ae=true}if(A.length===1){return A[0]}else if(A.length>1||!A.length){{n(false,'<router-link> with to="'.concat(this.to,"\" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element."))}return A.length===0?t():t("span",{},A)}}{if("tag"in this.$options.propsData&&!ie){n(false,"<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.");ie=true}if("event"in this.$options.propsData&&!oe){n(false,"<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.");oe=true}}if(this.tag==="a"){E.on=C;E.attrs={href:f,"aria-current":k}}else{var O=ce(this.$slots["default"]);if(O){O.isStatic=false;var H=O.data=a({},O.data);H.on=H.on||{};for(var j in H.on){var S=H.on[j];if(j in C){H.on[j]=Array.isArray(S)?S:[S]}}for(var P in C){if(P in H.on){H.on[P].push(C[P])}else{H.on[P]=x}}var T=O.data.attrs=a({},O.data.attrs);T.href=f;T["aria-current"]=k}else{E.on=C}}return t(this.tag,E,this.$slots["default"])}};function ue(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(e.button!==undefined&&e.button!==0)return;if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}if(e.preventDefault){e.preventDefault()}return true}function ce(e){if(e){var t;for(var r=0;r<e.length;r++){t=e[r];if(t.tag==="a"){return t}if(t.children&&(t=ce(t.children))){return t}}}}var fe;function le(e){if(le.installed&&fe===e)return;le.installed=true;fe=e;var t=function e(t){return t!==undefined};var r=function e(r,n){var a=r.$options._parentVnode;if(t(a)&&t(a=a.data)&&t(a=a.registerRouteInstance)){a(r,n)}};e.mixin({beforeCreate:function n(){if(t(this.$options.router)){this._routerRoot=this;this._router=this.$options.router;this._router.init(this);e.util.defineReactive(this,"_route",this._router.history.current)}else{this._routerRoot=this.$parent&&this.$parent._routerRoot||this}r(this,this)},destroyed:function e(){r(this)}});Object.defineProperty(e.prototype,"$router",{get:function e(){return this._routerRoot._router}});Object.defineProperty(e.prototype,"$route",{get:function e(){return this._routerRoot._route}});e.component("RouterView",E);e.component("RouterLink",se);var n=e.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}var he=typeof window!=="undefined";function pe(e,t,r,a,i){var o=t||[];var s=r||Object.create(null);var u=a||Object.create(null);e.forEach((function(e){ve(o,s,u,e,i)}));for(var c=0,f=o.length;c<f;c++){if(o[c]==="*"){o.push(o.splice(c,1)[0]);f--;c--}}{var l=o.filter((function(e){return e&&e.charAt(0)!=="*"&&e.charAt(0)!=="/"}));if(l.length>0){var h=l.map((function(e){return"- ".concat(e)})).join("\n");n(false,"Non-nested routes must include a leading slash character. Fix the following routes: \n".concat(h))}}return{pathList:o,pathMap:s,nameMap:u}}function ve(e,t,a,i,o,s){var u=i.path,c=i.name;{r(u!=null,'"path" is required in a route configuration.');r(typeof i.component!=="string",'route config "component" for path: '.concat(String(u||c)," cannot be a ")+"string id. Use an actual component instead.");n(!/[^\u0000-\u007F]+/.test(u),'Route with path "'.concat(u,'" contains unencoded characters, make sure ')+"your path is correctly encoded before passing it to the router. Use "+"encodeURI to encode static segments of your path.")}var f=i.pathToRegexpOptions||{};var l=ye(u,o,f.strict);if(typeof i.caseSensitive==="boolean"){f.sensitive=i.caseSensitive}var h={path:l,regex:de(l,f),components:i.components||{default:i.component},alias:i.alias?typeof i.alias==="string"?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:i.props==null?{}:i.components?i.props:{default:i.props}};if(i.children){{if(i.name&&!i.redirect&&i.children.some((function(e){return/^\/?$/.test(e.path)}))){n(false,"Named Route '".concat(i.name,"' has a default child route. ")+"When navigating to this named route (:to=\"{name: '".concat(i.name,"'}\"), ")+"the default child route will not be rendered. Remove the name from "+"this route and use the name of the default child route for named "+"links instead.")}}i.children.forEach((function(r){var n=s?S("".concat(s,"/").concat(r.path)):undefined;ve(e,t,a,r,h,n)}))}if(!t[h.path]){e.push(h.path);t[h.path]=h}if(i.alias!==undefined){var p=Array.isArray(i.alias)?i.alias:[i.alias];for(var v=0;v<p.length;++v){var d=p[v];if(d===u){n(false,'Found an alias with the same value as the path: "'.concat(u,'". You have to remove that alias. It will be ignored in development.'));continue}var y={path:d,children:i.children};ve(e,t,a,y,o,h.path||"/")}}if(c){if(!a[c]){a[c]=h}else if(!s){n(false,"Duplicate named routes definition: "+'{ name: "'.concat(c,'", path: "').concat(h.path,'" }'))}}}function de(e,t){var r=T(e,[],t);{var a=Object.create(null);r.keys.forEach((function(t){n(!a[t.name],'Duplicate param keys in route with path: "'.concat(e,'"'));a[t.name]=true}))}return r}function ye(e,t,r){if(!r)e=e.replace(/\/$/,"");if(e[0]==="/")return e;if(t==null)return e;return S("".concat(t.path,"/").concat(e))}function me(e,t){var a=pe(e),i=a.pathList,o=a.pathMap,s=a.nameMap;function u(e){pe(e,i,o,s)}function c(e,t){var r=babelHelpers["typeof"](e)!=="object"?s[e]:undefined;pe([t||e],i,o,s,r);if(r&&r.alias.length){pe(r.alias.map((function(e){return{path:e,children:[t]}})),i,o,s,r)}}function f(){return i.map((function(e){return o[e]}))}function l(e,r,a){var u=ee(e,r,false,t);var c=u.name;if(c){var f=s[c];{n(f,"Route with name '".concat(c,"' does not exist"))}if(!f)return v(null,u);var l=f.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if(babelHelpers["typeof"](u.params)!=="object"){u.params={}}if(r&&babelHelpers["typeof"](r.params)==="object"){for(var h in r.params){if(!(h in u.params)&&l.indexOf(h)>-1){u.params[h]=r.params[h]}}}u.path=Z(f.path,u.params,'named route "'.concat(c,'"'));return v(f,u,a)}else if(u.path){u.params={};for(var p=0;p<i.length;p++){var d=i[p];var y=o[d];if(ge(y.regex,u.path,u.params)){return v(y,u,a)}}}return v(null,u)}function h(e,a){var i=e.redirect;var o=typeof i==="function"?i(d(e,a,null,t)):i;if(typeof o==="string"){o={path:o}}if(!o||babelHelpers["typeof"](o)!=="object"){{n(false,"invalid redirect option: ".concat(JSON.stringify(o)))}return v(null,a)}var u=o;var c=u.name,f=u.path;var h=a.query,p=a.hash,y=a.params;h=u.hasOwnProperty("query")?u.query:h;p=u.hasOwnProperty("hash")?u.hash:p;y=u.hasOwnProperty("params")?u.params:y;if(c){var m=s[c];{r(m,'redirect failed: named route "'.concat(c,'" not found.'))}return l({_normalized:true,name:c,query:h,hash:p,params:y},undefined,a)}else if(f){var g=be(f,e);var b=Z(g,y,'redirect route with path "'.concat(g,'"'));return l({_normalized:true,path:b,query:h,hash:p},undefined,a)}else{{n(false,"invalid redirect option: ".concat(JSON.stringify(o)))}return v(null,a)}}function p(e,t,r){var n=Z(r,t.params,'aliased route with path "'.concat(r,'"'));var a=l({_normalized:true,path:n});if(a){var i=a.matched;var o=i[i.length-1];t.params=a.params;return v(o,t)}return v(null,t)}function v(e,r,n){if(e&&e.redirect){return h(e,n||r)}if(e&&e.matchAs){return p(e,r,e.matchAs)}return d(e,r,n,t)}return{match:l,addRoute:c,getRoutes:f,addRoutes:u}}function ge(e,t,r){var n=t.match(e);if(!n){return false}else if(!r){return true}for(var a=1,i=n.length;a<i;++a){var o=e.keys[a-1];if(o){r[o.name||"pathMatch"]=typeof n[a]==="string"?c(n[a]):n[a]}}return true}function be(e,t){return H(e,t.parent?t.parent.path:"/",true)}var we=he&&window.performance&&window.performance.now?window.performance:Date;function ke(){return we.now().toFixed(3)}var Re=ke();function xe(){return Re}function Ce(e){return Re=e}var Ee=Object.create(null);function Ae(){if("scrollRestoration"in window.history){window.history.scrollRestoration="manual"}var e=window.location.protocol+"//"+window.location.host;var t=window.location.href.replace(e,"");var r=a({},window.history.state);r.key=xe();window.history.replaceState(r,"",t);window.addEventListener("popstate",je);return function(){window.removeEventListener("popstate",je)}}function Oe(e,t,n,a){if(!e.app){return}var i=e.options.scrollBehavior;if(!i){return}{r(typeof i==="function","scrollBehavior must be a function")}e.app.$nextTick((function(){var o=Se();var s=i.call(e,t,n,a?o:null);if(!s){return}if(typeof s.then==="function"){s.then((function(e){Ue(e,o)}))["catch"]((function(e){{r(false,e.toString())}}))}else{Ue(s,o)}}))}function He(){var e=xe();if(e){Ee[e]={x:window.pageXOffset,y:window.pageYOffset}}}function je(e){He();if(e.state&&e.state.key){Ce(e.state.key)}}function Se(){var e=xe();if(e){return Ee[e]}}function Pe(e,t){var r=document.documentElement;var n=r.getBoundingClientRect();var a=e.getBoundingClientRect();return{x:a.left-n.left-t.x,y:a.top-n.top-t.y}}function Te(e){return _e(e.x)||_e(e.y)}function $e(e){return{x:_e(e.x)?e.x:window.pageXOffset,y:_e(e.y)?e.y:window.pageYOffset}}function Le(e){return{x:_e(e.x)?e.x:0,y:_e(e.y)?e.y:0}}function _e(e){return typeof e==="number"}var qe=/^#\d/;function Ue(e,t){var r=babelHelpers["typeof"](e)==="object";if(r&&typeof e.selector==="string"){var n=qe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(n){var a=e.offset&&babelHelpers["typeof"](e.offset)==="object"?e.offset:{};a=Le(a);t=Pe(n,a)}else if(Te(e)){t=$e(e)}}else if(r&&Te(e)){t=$e(e)}if(t){if("scrollBehavior"in document.documentElement.style){window.scrollTo({left:t.x,top:t.y,behavior:e.behavior})}else{window.scrollTo(t.x,t.y)}}}var Ie=he&&function(){var e=window.navigator.userAgent;if((e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1){return false}return window.history&&typeof window.history.pushState==="function"}();function Ve(e,t){He();var r=window.history;try{if(t){var n=a({},r.state);n.key=xe();r.replaceState(n,"",e)}else{r.pushState({key:Ce(ke())},"",e)}}catch(r){window.location[t?"replace":"assign"](e)}}function Be(e){Ve(e,true)}var Me={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ne(e,t){return Je(e,t,Me.redirected,'Redirected when going from "'.concat(e.fullPath,'" to "').concat(Ke(t),'" via a navigation guard.'))}function Fe(e,t){var r=Je(e,t,Me.duplicated,'Avoided redundant navigation to current location: "'.concat(e.fullPath,'".'));r.name="NavigationDuplicated";return r}function De(e,t){return Je(e,t,Me.cancelled,'Navigation cancelled from "'.concat(e.fullPath,'" to "').concat(t.fullPath,'" with a new navigation.'))}function ze(e,t){return Je(e,t,Me.aborted,'Navigation aborted from "'.concat(e.fullPath,'" to "').concat(t.fullPath,'" via a navigation guard.'))}function Je(e,t,r,n){var a=new Error(n);a._isRouter=true;a.from=e;a.to=t;a.type=r;return a}var Xe=["params","query","hash"];function Ke(e){if(typeof e==="string")return e;if("path"in e)return e.path;var t={};Xe.forEach((function(r){if(r in e)t[r]=e[r]}));return JSON.stringify(t,null,2)}function We(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ye(e,t){return We(e)&&e._isRouter&&(t==null||e.type===t)}function Qe(e,t,r){var n=function n(a){if(a>=e.length){r()}else{if(e[a]){t(e[a],(function(){n(a+1)}))}else{n(a+1)}}};n(0)}function Ge(e){return function(t,r,a){var i=false;var o=0;var s=null;Ze(e,(function(e,t,r,u){if(typeof e==="function"&&e.cid===undefined){i=true;o++;var c=nt((function(t){if(rt(t)){t=t["default"]}e.resolved=typeof t==="function"?t:fe.extend(t);r.components[u]=t;o--;if(o<=0){a()}}));var f=nt((function(e){var t="Failed to resolve async component ".concat(u,": ").concat(e);n(false,t);if(!s){s=We(e)?e:new Error(t);a(s)}}));var l;try{l=e(c,f)}catch(e){f(e)}if(l){if(typeof l.then==="function"){l.then(c,f)}else{var h=l.component;if(h&&typeof h.then==="function"){h.then(c,f)}}}}}));if(!i)a()}}function Ze(e,t){return et(e.map((function(e){return Object.keys(e.components).map((function(r){return t(e.components[r],e.instances[r],e,r)}))})))}function et(e){return Array.prototype.concat.apply([],e)}var tt=typeof Symbol==="function"&&babelHelpers["typeof"](Symbol.toStringTag)==="symbol";function rt(e){return e.__esModule||tt&&e[Symbol.toStringTag]==="Module"}function nt(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++){n[a]=arguments[a]}return e.apply(this,n)}}var at=function(){function e(t,r){babelHelpers.classCallCheck(this,e);this.router=t;this.base=it(r);this.current=m;this.pending=null;this.ready=false;this.readyCbs=[];this.readyErrorCbs=[];this.errorCbs=[];this.listeners=[]}babelHelpers.createClass(e,[{key:"listen",value:function e(t){this.cb=t}},{key:"onReady",value:function e(t,r){if(this.ready){t()}else{this.readyCbs.push(t);if(r){this.readyErrorCbs.push(r)}}}},{key:"onError",value:function e(t){this.errorCbs.push(t)}},{key:"transitionTo",value:function e(t,r,n){var a=this;var i;try{i=this.router.match(t,this.current)}catch(e){this.errorCbs.forEach((function(t){t(e)}));throw e}var o=this.current;this.confirmTransition(i,(function(){a.updateRoute(i);r&&r(i);a.ensureURL();a.router.afterHooks.forEach((function(e){e&&e(i,o)}));if(!a.ready){a.ready=true;a.readyCbs.forEach((function(e){e(i)}))}}),(function(e){if(n){n(e)}if(e&&!a.ready){if(!Ye(e,Me.redirected)||o!==m){a.ready=true;a.readyErrorCbs.forEach((function(t){t(e)}))}}}))}},{key:"confirmTransition",value:function e(t,r,a){var i=this;var o=this.current;this.pending=t;var s=function e(t){if(!Ye(t)&&We(t)){if(i.errorCbs.length){i.errorCbs.forEach((function(e){e(t)}))}else{{n(false,"uncaught error during route navigation:")}console.error(t)}}a&&a(t)};var u=t.matched.length-1;var c=o.matched.length-1;if(w(t,o)&&u===c&&t.matched[u]===o.matched[c]){this.ensureURL();if(t.hash){Oe(this.router,o,t,false)}return s(Fe(o,t))}var f=ot(this.current.matched,t.matched),l=f.updated,h=f.deactivated,p=f.activated;var v=[].concat(ct(h),this.router.beforeHooks,ft(l),p.map((function(e){return e.beforeEnter})),Ge(p));var d=function e(r,n){if(i.pending!==t){return s(De(o,t))}try{r(t,o,(function(e){if(e===false){i.ensureURL(true);s(ze(o,t))}else if(We(e)){i.ensureURL(true);s(e)}else if(typeof e==="string"||babelHelpers["typeof"](e)==="object"&&(typeof e.path==="string"||typeof e.name==="string")){s(Ne(o,t));if(babelHelpers["typeof"](e)==="object"&&e.replace){i.replace(e)}else{i.push(e)}}else{n(e)}}))}catch(e){s(e)}};Qe(v,d,(function(){var e=ht(p);var n=e.concat(i.router.resolveHooks);Qe(n,d,(function(){if(i.pending!==t){return s(De(o,t))}i.pending=null;r(t);if(i.router.app){i.router.app.$nextTick((function(){C(t)}))}}))}))}},{key:"updateRoute",value:function e(t){this.current=t;this.cb&&this.cb(t)}},{key:"setupListeners",value:function e(){}},{key:"teardown",value:function e(){this.listeners.forEach((function(e){e()}));this.listeners=[];this.current=m;this.pending=null}}]);return e}();function it(e){if(!e){if(he){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/";e=e.replace(/^https?:\/\/[^\/]+/,"")}else{e="/"}}if(e.charAt(0)!=="/"){e="/"+e}return e.replace(/\/$/,"")}function ot(e,t){var r;var n=Math.max(e.length,t.length);for(r=0;r<n;r++){if(e[r]!==t[r]){break}}return{updated:t.slice(0,r),activated:t.slice(r),deactivated:e.slice(r)}}function st(e,t,r,n){var a=Ze(e,(function(e,n,a,i){var o=ut(e,t);if(o){return Array.isArray(o)?o.map((function(e){return r(e,n,a,i)})):r(o,n,a,i)}}));return et(n?a.reverse():a)}function ut(e,t){if(typeof e!=="function"){e=fe.extend(e)}return e.options[t]}function ct(e){return st(e,"beforeRouteLeave",lt,true)}function ft(e){return st(e,"beforeRouteUpdate",lt)}function lt(e,t){if(t){return function r(){return e.apply(t,arguments)}}}function ht(e){return st(e,"beforeRouteEnter",(function(e,t,r,n){return pt(e,r,n)}))}function pt(e,t,r){return function n(a,i,o){return e(a,i,(function(e){if(typeof e==="function"){if(!t.enteredCbs[r]){t.enteredCbs[r]=[]}t.enteredCbs[r].push(e)}o(e)}))}}var vt=function(e){babelHelpers.inherits(t,e);function t(e,r){var n;babelHelpers.classCallCheck(this,t);n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,r));n._startLocation=dt(n.base);return n}babelHelpers.createClass(t,[{key:"setupListeners",value:function e(){var t=this;if(this.listeners.length>0){return}var r=this.router;var n=r.options.scrollBehavior;var a=Ie&&n;if(a){this.listeners.push(Ae())}var i=function e(){var n=t.current;var i=dt(t.base);if(t.current===m&&i===t._startLocation){return}t.transitionTo(i,(function(e){if(a){Oe(r,e,n,true)}}))};window.addEventListener("popstate",i);this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},{key:"go",value:function e(t){window.history.go(t)}},{key:"push",value:function e(t,r,n){var a=this;var i=this.current;this.transitionTo(t,(function(e){Ve(S(a.base+e.fullPath));Oe(a.router,e,i,false);r&&r(e)}),n)}},{key:"replace",value:function e(t,r,n){var a=this;var i=this.current;this.transitionTo(t,(function(e){Be(S(a.base+e.fullPath));Oe(a.router,e,i,false);r&&r(e)}),n)}},{key:"ensureURL",value:function e(t){if(dt(this.base)!==this.current.fullPath){var r=S(this.base+this.current.fullPath);t?Ve(r):Be(r)}}},{key:"getCurrentLocation",value:function e(){return dt(this.base)}}]);return t}(at);function dt(e){var t=window.location.pathname;var r=t.toLowerCase();var n=e.toLowerCase();if(e&&(r===n||r.indexOf(S(n+"/"))===0)){t=t.slice(e.length)}return(t||"/")+window.location.search+window.location.hash}var yt=function(e){babelHelpers.inherits(t,e);function t(e,r,n){var a;babelHelpers.classCallCheck(this,t);a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,r));if(n&&mt(a.base)){return babelHelpers.possibleConstructorReturn(a)}gt();return a}babelHelpers.createClass(t,[{key:"setupListeners",value:function e(){var t=this;if(this.listeners.length>0){return}var r=this.router;var n=r.options.scrollBehavior;var a=Ie&&n;if(a){this.listeners.push(Ae())}var i=function e(){var r=t.current;if(!gt()){return}t.transitionTo(bt(),(function(e){if(a){Oe(t.router,e,r,true)}if(!Ie){Rt(e.fullPath)}}))};var o=Ie?"popstate":"hashchange";window.addEventListener(o,i);this.listeners.push((function(){window.removeEventListener(o,i)}))}},{key:"push",value:function e(t,r,n){var a=this;var i=this.current;this.transitionTo(t,(function(e){kt(e.fullPath);Oe(a.router,e,i,false);r&&r(e)}),n)}},{key:"replace",value:function e(t,r,n){var a=this;var i=this.current;this.transitionTo(t,(function(e){Rt(e.fullPath);Oe(a.router,e,i,false);r&&r(e)}),n)}},{key:"go",value:function e(t){window.history.go(t)}},{key:"ensureURL",value:function e(t){var r=this.current.fullPath;if(bt()!==r){t?kt(r):Rt(r)}}},{key:"getCurrentLocation",value:function e(){return bt()}}]);return t}(at);function mt(e){var t=dt(e);if(!/^\/#/.test(t)){window.location.replace(S(e+"/#"+t));return true}}function gt(){var e=bt();if(e.charAt(0)==="/"){return true}Rt("/"+e);return false}function bt(){var e=window.location.href;var t=e.indexOf("#");if(t<0)return"";e=e.slice(t+1);return e}function wt(e){var t=window.location.href;var r=t.indexOf("#");var n=r>=0?t.slice(0,r):t;return"".concat(n,"#").concat(e)}function kt(e){if(Ie){Ve(wt(e))}else{window.location.hash=e}}function Rt(e){if(Ie){Be(wt(e))}else{window.location.replace(wt(e))}}var xt=function(e){babelHelpers.inherits(t,e);function t(e,r){var n;babelHelpers.classCallCheck(this,t);n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,r));n.stack=[];n.index=-1;return n}babelHelpers.createClass(t,[{key:"push",value:function e(t,r,n){var a=this;this.transitionTo(t,(function(e){a.stack=a.stack.slice(0,a.index+1).concat(e);a.index++;r&&r(e)}),n)}},{key:"replace",value:function e(t,r,n){var a=this;this.transitionTo(t,(function(e){a.stack=a.stack.slice(0,a.index).concat(e);r&&r(e)}),n)}},{key:"go",value:function e(t){var r=this;var n=this.index+t;if(n<0||n>=this.stack.length){return}var a=this.stack[n];this.confirmTransition(a,(function(){var e=r.current;r.index=n;r.updateRoute(a);r.router.afterHooks.forEach((function(t){t&&t(a,e)}))}),(function(e){if(Ye(e,Me.duplicated)){r.index=n}}))}},{key:"getCurrentLocation",value:function e(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"}},{key:"ensureURL",value:function e(){}}]);return t}(at);var Ct=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);{n(this instanceof e,"Router must be called with the new operator.")}this.app=null;this.apps=[];this.options=t;this.beforeHooks=[];this.resolveHooks=[];this.afterHooks=[];this.matcher=me(t.routes||[],this);var a=t.mode||"hash";this.fallback=a==="history"&&!Ie&&t.fallback!==false;if(this.fallback){a="hash"}if(!he){a="abstract"}this.mode=a;switch(a){case"history":this.history=new vt(this,t.base);break;case"hash":this.history=new yt(this,t.base,this.fallback);break;case"abstract":this.history=new xt(this,t.base);break;default:{r(false,"invalid mode: ".concat(a))}}}babelHelpers.createClass(e,[{key:"match",value:function e(t,r,n){return this.matcher.match(t,r,n)}},{key:"init",value:function e(t){var n=this;r(le.installed,"not installed. Make sure to call `Vue.use(VueRouter)` "+"before creating root instance.");this.apps.push(t);t.$once("hook:destroyed",(function(){var e=n.apps.indexOf(t);if(e>-1)n.apps.splice(e,1);if(n.app===t)n.app=n.apps[0]||null;if(!n.app)n.history.teardown()}));if(this.app){return}this.app=t;var a=this.history;if(a instanceof vt||a instanceof yt){var i=function e(t){var r=a.current;var i=n.options.scrollBehavior;var o=Ie&&i;if(o&&"fullPath"in t){Oe(n,t,r,false)}};var o=function e(t){a.setupListeners();i(t)};a.transitionTo(a.getCurrentLocation(),o,o)}a.listen((function(e){n.apps.forEach((function(t){t._route=e}))}))}},{key:"beforeEach",value:function e(t){return Et(this.beforeHooks,t)}},{key:"beforeResolve",value:function e(t){return Et(this.resolveHooks,t)}},{key:"afterEach",value:function e(t){return Et(this.afterHooks,t)}},{key:"onReady",value:function e(t,r){this.history.onReady(t,r)}},{key:"onError",value:function e(t){this.history.onError(t)}},{key:"push",value:function e(t,r,n){var a=this;if(!r&&!n&&typeof Promise!=="undefined"){return new Promise((function(e,r){a.history.push(t,e,r)}))}else{this.history.push(t,r,n)}}},{key:"replace",value:function e(t,r,n){var a=this;if(!r&&!n&&typeof Promise!=="undefined"){return new Promise((function(e,r){a.history.replace(t,e,r)}))}else{this.history.replace(t,r,n)}}},{key:"go",value:function e(t){this.history.go(t)}},{key:"back",value:function e(){this.go(-1)}},{key:"forward",value:function e(){this.go(1)}},{key:"getMatchedComponents",value:function e(t){var r=t?t.matched?t:this.resolve(t).route:this.currentRoute;if(!r){return[]}return[].concat.apply([],r.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))})))}},{key:"resolve",value:function e(t,r,n){r=r||this.history.current;var a=ee(t,r,n,this);var i=this.match(a,r);var o=i.redirectedFrom||i.fullPath;var s=this.history.base;var u=At(s,o,this.mode);return{location:a,route:i,href:u,normalizedTo:a,resolved:i}}},{key:"getRoutes",value:function e(){return this.matcher.getRoutes()}},{key:"addRoute",value:function e(t,r){this.matcher.addRoute(t,r);if(this.history.current!==m){this.history.transitionTo(this.history.getCurrentLocation())}}},{key:"addRoutes",value:function e(t){{n(false,"router.addRoutes() is deprecated and has been removed in Vue Router 4. Use router.addRoute() instead.")}this.matcher.addRoutes(t);if(this.history.current!==m){this.history.transitionTo(this.history.getCurrentLocation())}}},{key:"currentRoute",get:function e(){return this.history&&this.history.current}}]);return e}();function Et(e,t){e.push(t);return function(){var r=e.indexOf(t);if(r>-1)e.splice(r,1)}}function At(e,t,r){var n=r==="hash"?"#"+t:t;return e?S(e+"/"+n):n}Ct.install=le;Ct.version="3.6.5";Ct.isNavigationFailure=Ye;Ct.NavigationFailureType=Me;Ct.RouterLink=se;Ct.RouterView=E;Ct.START_LOCATION=m;Ct.create=function(e){return new Ct(e)};t.VueVendor.use(Ct);e.VueRouter=Ct})(this.BX=this.BX||{},BX); //# sourceMappingURL=router.bundle.map.js