%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.145.47.148
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/ui/vue/router/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/ui/vue/router//router.min.js
(function(t){if(t.VueRouter){return}(function(t,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e():typeof define==="function"&&define.amd?define(e):t.VueRouter=e();if(!t.VueRouter){t.VueRouter=e()}})(this,function(){"use strict";function e(t,e){if(!t){throw new Error("[vue-router] "+e)}}function r(t,e){if("development"!=="production"&&!t){typeof console!=="undefined"&&console.warn("[vue-router] "+e)}}function n(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function a(t,e){for(var r in e){t[r]=e[r]}return t}var i={name:"RouterView",functional:true,props:{name:{type:String,default:"default"}},render:function t(e,r){var n=r.props;var i=r.children;var u=r.parent;var s=r.data;s.routerView=true;var f=u.$createElement;var c=n.name;var p=u.$route;var h=u._routerViewCache||(u._routerViewCache={});var l=0;var v=false;while(u&&u._routerRoot!==u){if(u.$vnode&&u.$vnode.data.routerView){l++}if(u._inactive){v=true}u=u.$parent}s.routerViewDepth=l;if(v){return f(h[c],s,i)}var d=p.matched[l];if(!d){h[c]=null;return f()}var y=h[c]=d.components[c];s.registerRouteInstance=function(t,e){var r=d.instances[c];if(e&&r!==t||!e&&r===t){d.instances[c]=e}};(s.hook||(s.hook={})).prepatch=function(t,e){d.instances[c]=e.componentInstance};var m=s.props=o(p,d.props&&d.props[c]);if(m){m=s.props=a({},m);var g=s.attrs=s.attrs||{};for(var b in m){if(!y.props||!(b in y.props)){g[b]=m[b];delete m[b]}}}return f(y,s,i)}};function o(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:undefined;default:{r(false,'props in "'+t.path+'" is a '+typeof e+", "+"expecting an object, function or boolean.")}}}var u=/[!'()*]/g;var s=function(t){return"%"+t.charCodeAt(0).toString(16)};var f=/%2C/g;var c=function(t){return encodeURIComponent(t).replace(u,s).replace(f,",")};var p=decodeURIComponent;function h(t,e,n){if(e===void 0)e={};var a=n||l;var i;try{i=a(t||"")}catch(t){"development"!=="production"&&r(false,t.message);i={}}for(var o in e){i[o]=e[o]}return i}function l(t){var e={};t=t.trim().replace(/^(\?|#|&)/,"");if(!t){return e}t.split("&").forEach(function(t){var r=t.replace(/\+/g," ").split("=");var n=p(r.shift());var a=r.length>0?p(r.join("=")):null;if(e[n]===undefined){e[n]=a}else if(Array.isArray(e[n])){e[n].push(a)}else{e[n]=[e[n],a]}});return e}function v(t){var e=t?Object.keys(t).map(function(e){var r=t[e];if(r===undefined){return""}if(r===null){return c(e)}if(Array.isArray(r)){var n=[];r.forEach(function(t){if(t===undefined){return}if(t===null){n.push(c(e))}else{n.push(c(e)+"="+c(t))}});return n.join("&")}return c(e)+"="+c(r)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function y(t,e,r,n){var a=n&&n.options.stringifyQuery;var i=e.query||{};try{i=m(i)}catch(t){}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:x(e,a),matched:t?b(t):[]};if(r){o.redirectedFrom=x(r,a)}return Object.freeze(o)}function m(t){if(Array.isArray(t)){return t.map(m)}else if(t&&typeof t==="object"){var e={};for(var r in t){e[r]=m(t[r])}return e}else{return t}}var g=y(null,{path:"/"});function b(t){var e=[];while(t){e.unshift(t);t=t.parent}return e}function x(t,e){var r=t.path;var n=t.query;if(n===void 0)n={};var a=t.hash;if(a===void 0)a="";var i=e||v;return(r||"/")+i(n)+a}function R(t,e){if(e===g){return t===e}else if(!e){return false}else if(t.path&&e.path){return t.path.replace(d,"")===e.path.replace(d,"")&&t.hash===e.hash&&k(t.query,e.query)}else if(t.name&&e.name){return t.name===e.name&&t.hash===e.hash&&k(t.query,e.query)&&k(t.params,e.params)}else{return false}}function k(t,e){if(t===void 0)t={};if(e===void 0)e={};if(!t||!e){return t===e}var r=Object.keys(t);var n=Object.keys(e);if(r.length!==n.length){return false}return r.every(function(r){var n=t[r];var a=e[r];if(typeof n==="object"&&typeof a==="object"){return k(n,a)}return String(n)===String(a)})}function E(t,e){return t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))===0&&(!e.hash||t.hash===e.hash)&&w(t.query,e.query)}function w(t,e){for(var r in e){if(!(r in t)){return false}}return true}var O=[String,Object];var j=[String,Array];var C={name:"RouterLink",props:{to:{type:O,required:true},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:j,default:"click"}},render:function t(e){var r=this;var n=this.$router;var i=this.$route;var o=n.resolve(this.to,i,this.append);var u=o.location;var s=o.route;var f=o.href;var c={};var p=n.options.linkActiveClass;var h=n.options.linkExactActiveClass;var l=p==null?"router-link-active":p;var v=h==null?"router-link-exact-active":h;var d=this.activeClass==null?l:this.activeClass;var m=this.exactActiveClass==null?v:this.exactActiveClass;var g=u.path?y(null,u,null,n):s;c[m]=R(i,g);c[d]=this.exact?c[m]:E(i,g);var b=function(t){if(A(t)){if(r.replace){n.replace(u)}else{n.push(u)}}};var x={click:A};if(Array.isArray(this.event)){this.event.forEach(function(t){x[t]=b})}else{x[this.event]=b}var k={class:c};if(this.tag==="a"){k.on=x;k.attrs={href:f}}else{var w=_(this.$slots.default);if(w){w.isStatic=false;var O=w.data=a({},w.data);O.on=x;var j=w.data.attrs=a({},w.data.attrs);j.href=f}else{k.on=x}}return e(this.tag,k,this.$slots.default)}};function A(t){if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey){return}if(t.defaultPrevented){return}if(t.button!==undefined&&t.button!==0){return}if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e)){return}}if(t.preventDefault){t.preventDefault()}return true}function _(t){if(t){var e;for(var r=0;r<t.length;r++){e=t[r];if(e.tag==="a"){return e}if(e.children&&(e=_(e.children))){return e}}}}var S;function T(t){if(T.installed&&S===t){return}T.installed=true;S=t;var e=function(t){return t!==undefined};var r=function(t,r){var n=t.$options._parentVnode;if(e(n)&&e(n=n.data)&&e(n=n.registerRouteInstance)){n(t,r)}};t.mixin({beforeCreate:function n(){if(e(this.$options.router)){this._routerRoot=this;this._router=this.$options.router;this._router.init(this);t.util.defineReactive(this,"_route",this._router.history.current)}else{this._routerRoot=this.$parent&&this.$parent._routerRoot||this}r(this,this)},destroyed:function t(){r(this)}});Object.defineProperty(t.prototype,"$router",{get:function t(){return this._routerRoot._router}});Object.defineProperty(t.prototype,"$route",{get:function t(){return this._routerRoot._route}});t.component("RouterView",i);t.component("RouterLink",C);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}var $=typeof t!=="undefined";function q(t,e,r){var n=t.charAt(0);if(n==="/"){return t}if(n==="?"||n==="#"){return e+t}var a=e.split("/");if(!r||!a[a.length-1]){a.pop()}var i=t.replace(/^\//,"").split("/");for(var o=0;o<i.length;o++){var u=i[o];if(u===".."){a.pop()}else if(u!=="."){a.push(u)}}if(a[0]!==""){a.unshift("")}return a.join("/")}function L(t){var e="";var r="";var n=t.indexOf("#");if(n>=0){e=t.slice(n);t=t.slice(0,n)}var a=t.indexOf("?");if(a>=0){r=t.slice(a+1);t=t.slice(0,a)}return{path:t,query:r,hash:e}}function P(t){return t.replace(/\/\//g,"/")}var U=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"};var V=rt;var M=D;var I=F;var B=K;var H=et;var z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,e){var r=[];var n=0;var a=0;var i="";var o=e&&e.delimiter||"/";var u;while((u=z.exec(t))!=null){var s=u[0];var f=u[1];var c=u.index;i+=t.slice(a,c);a=c+s.length;if(f){i+=f[1];continue}var p=t[a];var h=u[2];var l=u[3];var v=u[4];var d=u[5];var y=u[6];var m=u[7];if(i){r.push(i);i=""}var g=h!=null&&p!=null&&p!==h;var b=y==="+"||y==="*";var x=y==="?"||y==="*";var R=u[2]||o;var k=v||d;r.push({name:l||n++,prefix:h||"",delimiter:R,optional:x,repeat:b,partial:g,asterisk:!!m,pattern:k?W(k):m?".*":"[^"+Q(R)+"]+?"})}if(a<t.length){i+=t.substr(a)}if(i){r.push(i)}return r}function F(t,e){return K(D(t,e))}function N(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function J(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function K(t){var e=new Array(t.length);for(var r=0;r<t.length;r++){if(typeof t[r]==="object"){e[r]=new RegExp("^(?:"+t[r].pattern+")$")}}return function(r,n){var a="";var i=r||{};var o=n||{};var u=o.pretty?N:encodeURIComponent;for(var s=0;s<t.length;s++){var f=t[s];if(typeof f==="string"){a+=f;continue}var c=i[f.name];var p;if(c==null){if(f.optional){if(f.partial){a+=f.prefix}continue}else{throw new TypeError('Expected "'+f.name+'" to be defined')}}if(U(c)){if(!f.repeat){throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(c)+"`")}if(c.length===0){if(f.optional){continue}else{throw new TypeError('Expected "'+f.name+'" to not be empty')}}for(var h=0;h<c.length;h++){p=u(c[h]);if(!e[s].test(p)){throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`")}a+=(h===0?f.prefix:f.delimiter)+p}continue}p=f.asterisk?J(c):u(c);if(!e[s].test(p)){throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"')}a+=f.prefix+p}return a}}function Q(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function W(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function X(t,e){t.keys=e;return t}function Y(t){return t.sensitive?"":"i"}function G(t,e){var r=t.source.match(/\((?!\?)/g);if(r){for(var n=0;n<r.length;n++){e.push({name:n,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,asterisk:false,pattern:null})}}return X(t,e)}function Z(t,e,r){var n=[];for(var a=0;a<t.length;a++){n.push(rt(t[a],e,r).source)}var i=new RegExp("(?:"+n.join("|")+")",Y(r));return X(i,e)}function tt(t,e,r){return et(D(t,r),e,r)}function et(t,e,r){if(!U(e)){r=e||r;e=[]}r=r||{};var n=r.strict;var a=r.end!==false;var i="";for(var o=0;o<t.length;o++){var u=t[o];if(typeof u==="string"){i+=Q(u)}else{var s=Q(u.prefix);var f="(?:"+u.pattern+")";e.push(u);if(u.repeat){f+="(?:"+s+f+")*"}if(u.optional){if(!u.partial){f="(?:"+s+"("+f+"))?"}else{f=s+"("+f+")?"}}else{f=s+"("+f+")"}i+=f}}var c=Q(r.delimiter||"/");var p=i.slice(-c.length)===c;if(!n){i=(p?i.slice(0,-c.length):i)+"(?:"+c+"(?=$))?"}if(a){i+="$"}else{i+=n&&p?"":"(?="+c+"|$)"}return X(new RegExp("^"+i,Y(r)),e)}function rt(t,e,r){if(!U(e)){r=e||r;e=[]}r=r||{};if(t instanceof RegExp){return G(t,e)}if(U(t)){return Z(t,e,r)}return tt(t,e,r)}V.parse=M;V.compile=I;V.tokensToFunction=B;V.tokensToRegExp=H;var nt=Object.create(null);function at(t,e,n){try{var a=nt[t]||(nt[t]=V.compile(t));return a(e||{},{pretty:true})}catch(t){{r(false,"missing param for "+n+": "+t.message)}return""}}function it(t,e,r,n){var a=e||[];var i=r||Object.create(null);var o=n||Object.create(null);t.forEach(function(t){ot(a,i,o,t)});for(var u=0,s=a.length;u<s;u++){if(a[u]==="*"){a.push(a.splice(u,1)[0]);s--;u--}}return{pathList:a,pathMap:i,nameMap:o}}function ot(t,n,a,i,o,u){var s=i.path;var f=i.name;{e(s!=null,'"path" is required in a route configuration.');e(typeof i.component!=="string",'route config "component" for path: '+String(s||f)+" cannot be a "+"string id. Use an actual component instead.")}var c=i.pathToRegexpOptions||{};var p=st(s,o,c.strict);if(typeof i.caseSensitive==="boolean"){c.sensitive=i.caseSensitive}var h={path:p,regex:ut(p,c),components:i.components||{default:i.component},instances:{},name:f,parent:o,matchAs:u,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(t){return/^\/?$/.test(t.path)})){r(false,"Named Route '"+i.name+"' has a default child route. "+"When navigating to this named route (:to=\"{name: '"+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(e){var r=u?P(u+"/"+e.path):undefined;ot(t,n,a,e,h,r)})}if(i.alias!==undefined){var l=Array.isArray(i.alias)?i.alias:[i.alias];l.forEach(function(e){var r={path:e,children:i.children};ot(t,n,a,r,o,h.path||"/")})}if(!n[h.path]){t.push(h.path);n[h.path]=h}if(f){if(!a[f]){a[f]=h}else if("development"!=="production"&&!u){r(false,"Duplicate named routes definition: "+'{ name: "'+f+'", path: "'+h.path+'" }')}}}function ut(t,e){var n=V(t,[],e);{var a=Object.create(null);n.keys.forEach(function(e){r(!a[e.name],'Duplicate param keys in route with path: "'+t+'"');a[e.name]=true})}return n}function st(t,e,r){if(!r){t=t.replace(/\/$/,"")}if(t[0]==="/"){return t}if(e==null){return t}return P(e.path+"/"+t)}function ft(t,e,n,i){var o=typeof t==="string"?{path:t}:t;if(o.name||o._normalized){return o}if(!o.path&&o.params&&e){o=a({},o);o._normalized=true;var u=a(a({},e.params),o.params);if(e.name){o.name=e.name;o.params=u}else if(e.matched.length){var s=e.matched[e.matched.length-1].path;o.path=at(s,u,"path "+e.path)}else{r(false,"relative params navigation requires a current route.")}return o}var f=L(o.path||"");var c=e&&e.path||"/";var p=f.path?q(f.path,c,n||o.append):c;var l=h(f.query,o.query,i&&i.options.parseQuery);var v=o.hash||f.hash;if(v&&v.charAt(0)!=="#"){v="#"+v}return{_normalized:true,path:p,query:l,hash:v}}function ct(t,n){var a=it(t);var i=a.pathList;var o=a.pathMap;var u=a.nameMap;function s(t){it(t,i,o,u)}function f(t,e,a){var s=ft(t,e,false,n);var f=s.name;if(f){var c=u[f];{r(c,"Route with name '"+f+"' does not exist")}if(!c){return h(null,s)}var p=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if(typeof s.params!=="object"){s.params={}}if(e&&typeof e.params==="object"){for(var l in e.params){if(!(l in s.params)&&p.indexOf(l)>-1){s.params[l]=e.params[l]}}}if(c){s.path=at(c.path,s.params,'named route "'+f+'"');return h(c,s,a)}}else if(s.path){s.params={};for(var v=0;v<i.length;v++){var d=i[v];var y=o[d];if(pt(y.regex,s.path,s.params)){return h(y,s,a)}}}return h(null,s)}function c(t,a){var i=t.redirect;var o=typeof i==="function"?i(y(t,a,null,n)):i;if(typeof o==="string"){o={path:o}}if(!o||typeof o!=="object"){{r(false,"invalid redirect option: "+JSON.stringify(o))}return h(null,a)}var s=o;var c=s.name;var p=s.path;var l=a.query;var v=a.hash;var d=a.params;l=s.hasOwnProperty("query")?s.query:l;v=s.hasOwnProperty("hash")?s.hash:v;d=s.hasOwnProperty("params")?s.params:d;if(c){var m=u[c];{e(m,'redirect failed: named route "'+c+'" not found.')}return f({_normalized:true,name:c,query:l,hash:v,params:d},undefined,a)}else if(p){var g=ht(p,t);var b=at(g,d,'redirect route with path "'+g+'"');return f({_normalized:true,path:b,query:l,hash:v},undefined,a)}else{{r(false,"invalid redirect option: "+JSON.stringify(o))}return h(null,a)}}function p(t,e,r){var n=at(r,e.params,'aliased route with path "'+r+'"');var a=f({_normalized:true,path:n});if(a){var i=a.matched;var o=i[i.length-1];e.params=a.params;return h(o,e)}return h(null,e)}function h(t,e,r){if(t&&t.redirect){return c(t,r||e)}if(t&&t.matchAs){return p(t,e,t.matchAs)}return y(t,e,r,n)}return{match:f,addRoutes:s}}function pt(t,e,r){var n=e.match(t);if(!n){return false}else if(!r){return true}for(var a=1,i=n.length;a<i;++a){var o=t.keys[a-1];var u=typeof n[a]==="string"?decodeURIComponent(n[a]):n[a];if(o){r[o.name||"pathMatch"]=u}}return true}function ht(t,e){return q(t,e.parent?e.parent.path:"/",true)}var lt=Object.create(null);function vt(){t.history.replaceState({key:At()},"",t.location.href.replace(t.location.origin,""));t.addEventListener("popstate",function(t){yt();if(t.state&&t.state.key){_t(t.state.key)}})}function dt(t,r,n,a){if(!t.app){return}var i=t.options.scrollBehavior;if(!i){return}{e(typeof i==="function","scrollBehavior must be a function")}t.app.$nextTick(function(){var o=mt();var u=i.call(t,r,n,a?o:null);if(!u){return}if(typeof u.then==="function"){u.then(function(t){Et(t,o)}).catch(function(t){{e(false,t.toString())}})}else{Et(u,o)}})}function yt(){var e=At();if(e){lt[e]={x:t.pageXOffset,y:t.pageYOffset}}}function mt(){var t=At();if(t){return lt[t]}}function gt(t,e){var r=document.documentElement;var n=r.getBoundingClientRect();var a=t.getBoundingClientRect();return{x:a.left-n.left-e.x,y:a.top-n.top-e.y}}function bt(t){return kt(t.x)||kt(t.y)}function xt(e){return{x:kt(e.x)?e.x:t.pageXOffset,y:kt(e.y)?e.y:t.pageYOffset}}function Rt(t){return{x:kt(t.x)?t.x:0,y:kt(t.y)?t.y:0}}function kt(t){return typeof t==="number"}function Et(e,r){var n=typeof e==="object";if(n&&typeof e.selector==="string"){var a=document.querySelector(e.selector);if(a){var i=e.offset&&typeof e.offset==="object"?e.offset:{};i=Rt(i);r=gt(a,i)}else if(bt(e)){r=xt(e)}}else if(n&&bt(e)){r=xt(e)}if(r){t.scrollTo(r.x,r.y)}}var wt=$&&function(){var e=t.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 t.history&&"pushState"in t.history}();var Ot=$&&t.performance&&t.performance.now?t.performance:Date;var jt=Ct();function Ct(){return Ot.now().toFixed(3)}function At(){return jt}function _t(t){jt=t}function St(e,r){yt();var n=t.history;try{if(r){n.replaceState({key:jt},"",e)}else{jt=Ct();n.pushState({key:jt},"",e)}}catch(n){t.location[r?"replace":"assign"](e)}}function Tt(t){St(t,true)}function $t(t,e,r){var n=function(a){if(a>=t.length){r()}else{if(t[a]){e(t[a],function(){n(a+1)})}else{n(a+1)}}};n(0)}function qt(t){return function(e,a,i){var o=false;var u=0;var s=null;Lt(t,function(t,e,a,f){if(typeof t==="function"&&t.cid===undefined){o=true;u++;var c=Mt(function(e){if(Vt(e)){e=e.default}t.resolved=typeof e==="function"?e:S.extend(e);a.components[f]=e;u--;if(u<=0){i()}});var p=Mt(function(t){var e="Failed to resolve async component "+f+": "+t;"development"!=="production"&&r(false,e);if(!s){s=n(t)?t:new Error(e);i(s)}});var h;try{h=t(c,p)}catch(t){p(t)}if(h){if(typeof h.then==="function"){h.then(c,p)}else{var l=h.component;if(l&&typeof l.then==="function"){l.then(c,p)}}}}});if(!o){i()}}}function Lt(t,e){return Pt(t.map(function(t){return Object.keys(t.components).map(function(r){return e(t.components[r],t.instances[r],t,r)})}))}function Pt(t){return Array.prototype.concat.apply([],t)}var Ut=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";function Vt(t){return t.__esModule||Ut&&t[Symbol.toStringTag]==="Module"}function Mt(t){var e=false;return function(){var r=[],n=arguments.length;while(n--)r[n]=arguments[n];if(e){return}e=true;return t.apply(this,r)}}var It=function t(e,r){this.router=e;this.base=Bt(r);this.current=g;this.pending=null;this.ready=false;this.readyCbs=[];this.readyErrorCbs=[];this.errorCbs=[]};It.prototype.listen=function t(e){this.cb=e};It.prototype.onReady=function t(e,r){if(this.ready){e()}else{this.readyCbs.push(e);if(r){this.readyErrorCbs.push(r)}}};It.prototype.onError=function t(e){this.errorCbs.push(e)};It.prototype.transitionTo=function t(e,r,n){var a=this;var i=this.router.match(e,this.current);this.confirmTransition(i,function(){a.updateRoute(i);r&&r(i);a.ensureURL();if(!a.ready){a.ready=true;a.readyCbs.forEach(function(t){t(i)})}},function(t){if(n){n(t)}if(t&&!a.ready){a.ready=true;a.readyErrorCbs.forEach(function(e){e(t)})}})};It.prototype.confirmTransition=function t(e,a,i){var o=this;var u=this.current;var s=function(t){if(n(t)){if(o.errorCbs.length){o.errorCbs.forEach(function(e){e(t)})}else{r(false,"uncaught error during route navigation:");console.error(t)}}i&&i(t)};if(R(e,u)&&e.matched.length===u.matched.length){this.ensureURL();return s()}var f=Ht(this.current.matched,e.matched);var c=f.updated;var p=f.deactivated;var h=f.activated;var l=[].concat(Ft(p),this.router.beforeHooks,Nt(c),h.map(function(t){return t.beforeEnter}),qt(h));this.pending=e;var v=function(t,r){if(o.pending!==e){return s()}try{t(e,u,function(t){if(t===false||n(t)){o.ensureURL(true);s(t)}else if(typeof t==="string"||typeof t==="object"&&(typeof t.path==="string"||typeof t.name==="string")){s();if(typeof t==="object"&&t.replace){o.replace(t)}else{o.push(t)}}else{r(t)}})}catch(t){s(t)}};$t(l,v,function(){var t=[];var r=function(){return o.current===e};var n=Kt(h,t,r);var i=n.concat(o.router.resolveHooks);$t(i,v,function(){if(o.pending!==e){return s()}o.pending=null;a(e);if(o.router.app){o.router.app.$nextTick(function(){t.forEach(function(t){t()})})}})})};It.prototype.updateRoute=function t(e){var r=this.current;this.current=e;this.cb&&this.cb(e);this.router.afterHooks.forEach(function(t){t&&t(e,r)})};function Bt(t){if(!t){if($){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/";t=t.replace(/^https?:\/\/[^\/]+/,"")}else{t="/"}}if(t.charAt(0)!=="/"){t="/"+t}return t.replace(/\/$/,"")}function Ht(t,e){var r;var n=Math.max(t.length,e.length);for(r=0;r<n;r++){if(t[r]!==e[r]){break}}return{updated:e.slice(0,r),activated:e.slice(r),deactivated:t.slice(r)}}function zt(t,e,r,n){var a=Lt(t,function(t,n,a,i){var o=Dt(t,e);if(o){return Array.isArray(o)?o.map(function(t){return r(t,n,a,i)}):r(o,n,a,i)}});return Pt(n?a.reverse():a)}function Dt(t,e){if(typeof t!=="function"){t=S.extend(t)}return t.options[e]}function Ft(t){return zt(t,"beforeRouteLeave",Jt,true)}function Nt(t){return zt(t,"beforeRouteUpdate",Jt)}function Jt(t,e){if(e){return function r(){return t.apply(e,arguments)}}}function Kt(t,e,r){return zt(t,"beforeRouteEnter",function(t,n,a,i){return Qt(t,a,i,e,r)})}function Qt(t,e,r,n,a){return function i(o,u,s){return t(o,u,function(t){s(t);if(typeof t==="function"){n.push(function(){Wt(t,e.instances,r,a)})}})}}function Wt(t,e,r,n){if(e[r]&&!e[r]._isBeingDestroyed){t(e[r])}else if(n()){setTimeout(function(){Wt(t,e,r,n)},16)}}var Xt=function(e){function r(r,n){var a=this;e.call(this,r,n);var i=r.options.scrollBehavior;var o=wt&&i;if(o){vt()}var u=Yt(this.base);t.addEventListener("popstate",function(t){var e=a.current;var n=Yt(a.base);if(a.current===g&&n===u){return}a.transitionTo(n,function(t){if(o){dt(r,t,e,true)}})})}if(e)r.__proto__=e;r.prototype=Object.create(e&&e.prototype);r.prototype.constructor=r;r.prototype.go=function e(r){t.history.go(r)};r.prototype.push=function t(e,r,n){var a=this;var i=this;var o=i.current;this.transitionTo(e,function(t){St(P(a.base+t.fullPath));dt(a.router,t,o,false);r&&r(t)},n)};r.prototype.replace=function t(e,r,n){var a=this;var i=this;var o=i.current;this.transitionTo(e,function(t){Tt(P(a.base+t.fullPath));dt(a.router,t,o,false);r&&r(t)},n)};r.prototype.ensureURL=function t(e){if(Yt(this.base)!==this.current.fullPath){var r=P(this.base+this.current.fullPath);e?St(r):Tt(r)}};r.prototype.getCurrentLocation=function t(){return Yt(this.base)};return r}(It);function Yt(e){var r=decodeURI(t.location.pathname);if(e&&r.indexOf(e)===0){r=r.slice(e.length)}return(r||"/")+t.location.search+t.location.hash}var Gt=function(e){function r(t,r,n){e.call(this,t,r);if(n&&Zt(this.base)){return}te()}if(e)r.__proto__=e;r.prototype=Object.create(e&&e.prototype);r.prototype.constructor=r;r.prototype.setupListeners=function e(){var r=this;var n=this.router;var a=n.options.scrollBehavior;var i=wt&&a;if(i){vt()}t.addEventListener(wt?"popstate":"hashchange",function(){var t=r.current;if(!te()){return}r.transitionTo(ee(),function(e){if(i){dt(r.router,e,t,true)}if(!wt){ae(e.fullPath)}})})};r.prototype.push=function t(e,r,n){var a=this;var i=this;var o=i.current;this.transitionTo(e,function(t){ne(t.fullPath);dt(a.router,t,o,false);r&&r(t)},n)};r.prototype.replace=function t(e,r,n){var a=this;var i=this;var o=i.current;this.transitionTo(e,function(t){ae(t.fullPath);dt(a.router,t,o,false);r&&r(t)},n)};r.prototype.go=function e(r){t.history.go(r)};r.prototype.ensureURL=function t(e){var r=this.current.fullPath;if(ee()!==r){e?ne(r):ae(r)}};r.prototype.getCurrentLocation=function t(){return ee()};return r}(It);function Zt(e){var r=Yt(e);if(!/^\/#/.test(r)){t.location.replace(P(e+"/#"+r));return true}}function te(){var t=ee();if(t.charAt(0)==="/"){return true}ae("/"+t);return false}function ee(){var e=t.location.href;var r=e.indexOf("#");return r===-1?"":decodeURI(e.slice(r+1))}function re(e){var r=t.location.href;var n=r.indexOf("#");var a=n>=0?r.slice(0,n):r;return a+"#"+e}function ne(e){if(wt){St(re(e))}else{t.location.hash=e}}function ae(e){if(wt){Tt(re(e))}else{t.location.replace(re(e))}}var ie=function(t){function e(e,r){t.call(this,e,r);this.stack=[];this.index=-1}if(t)e.__proto__=t;e.prototype=Object.create(t&&t.prototype);e.prototype.constructor=e;e.prototype.push=function t(e,r,n){var a=this;this.transitionTo(e,function(t){a.stack=a.stack.slice(0,a.index+1).concat(t);a.index++;r&&r(t)},n)};e.prototype.replace=function t(e,r,n){var a=this;this.transitionTo(e,function(t){a.stack=a.stack.slice(0,a.index).concat(t);r&&r(t)},n)};e.prototype.go=function t(e){var r=this;var n=this.index+e;if(n<0||n>=this.stack.length){return}var a=this.stack[n];this.confirmTransition(a,function(){r.index=n;r.updateRoute(a)})};e.prototype.getCurrentLocation=function t(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"};e.prototype.ensureURL=function t(){};return e}(It);var oe=function t(r){if(r===void 0)r={};this.app=null;this.apps=[];this.options=r;this.beforeHooks=[];this.resolveHooks=[];this.afterHooks=[];this.matcher=ct(r.routes||[],this);var n=r.mode||"hash";this.fallback=n==="history"&&!wt&&r.fallback!==false;if(this.fallback){n="hash"}if(!$){n="abstract"}this.mode=n;switch(n){case"history":this.history=new Xt(this,r.base);break;case"hash":this.history=new Gt(this,r.base,this.fallback);break;case"abstract":this.history=new ie(this,r.base);break;default:{e(false,"invalid mode: "+n)}}};var ue={currentRoute:{configurable:true}};oe.prototype.match=function t(e,r,n){return this.matcher.match(e,r,n)};ue.currentRoute.get=function(){return this.history&&this.history.current};oe.prototype.init=function t(r){var n=this;"development"!=="production"&&e(T.installed,"not installed. Make sure to call `Vue.use(VueRouter)` "+"before creating root instance.");this.apps.push(r);if(this.app){return}this.app=r;var a=this.history;if(a instanceof Xt){a.transitionTo(a.getCurrentLocation())}else if(a instanceof Gt){var i=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),i,i)}a.listen(function(t){n.apps.forEach(function(e){e._route=t})})};oe.prototype.beforeEach=function t(e){return se(this.beforeHooks,e)};oe.prototype.beforeResolve=function t(e){return se(this.resolveHooks,e)};oe.prototype.afterEach=function t(e){return se(this.afterHooks,e)};oe.prototype.onReady=function t(e,r){this.history.onReady(e,r)};oe.prototype.onError=function t(e){this.history.onError(e)};oe.prototype.push=function t(e,r,n){this.history.push(e,r,n)};oe.prototype.replace=function t(e,r,n){this.history.replace(e,r,n)};oe.prototype.go=function t(e){this.history.go(e)};oe.prototype.back=function t(){this.go(-1)};oe.prototype.forward=function t(){this.go(1)};oe.prototype.getMatchedComponents=function t(e){var r=e?e.matched?e:this.resolve(e).route:this.currentRoute;if(!r){return[]}return[].concat.apply([],r.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})}))};oe.prototype.resolve=function t(e,r,n){var a=ft(e,r||this.history.current,n,this);var i=this.match(a,r);var o=i.redirectedFrom||i.fullPath;var u=this.history.base;var s=fe(u,o,this.mode);return{location:a,route:i,href:s,normalizedTo:a,resolved:i}};oe.prototype.addRoutes=function t(e){this.matcher.addRoutes(e);if(this.history.current!==g){this.history.transitionTo(this.history.getCurrentLocation())}};Object.defineProperties(oe.prototype,ue);function se(t,e){t.push(e);return function(){var r=t.indexOf(e);if(r>-1){t.splice(r,1)}}}function fe(t,e,r){var n=r==="hash"?"#"+e:e;return t?P(t+"/"+n):n}oe.install=T;oe.version="3.0.2";if($&&t.Vue){t.Vue.use(oe)}return oe})})(window);
//# sourceMappingURL=router.map.js

Youez - 2016 - github.com/yon3zu
LinuXploit