diff --git a/dist/build.js b/dist/build.js index 62d3304..e478d67 100644 --- a/dist/build.js +++ b/dist/build.js @@ -1,12 +1,12 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=89)}([function(e,t,n){"use strict";function r(e){return"[object Array]"===k.call(e)}function i(e){return"[object ArrayBuffer]"===k.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function c(e){return"number"==typeof e}function u(e){return"undefined"==typeof e}function l(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===k.call(e)}function f(e){return"[object File]"===k.call(e)}function d(e){return"[object Blob]"===k.call(e)}function h(e){return"[object Function]"===k.call(e)}function v(e){return l(e)&&h(e.pipe)}function m(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function _(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function y(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||r(e)||(e=[e]),r(e))for(var n=0,i=e.length;nn.parts.length&&(r.parts.length=n.parts.length)}else{for(var o=[],i=0;i=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){u.headers[e]={}}),o.forEach(["post","put","patch"],function(e){u.headers[e]=o.merge(c)}),e.exports=u}).call(t,n(60))},function(e,t,n){"use strict";function r(e,t){e||"undefined"!=typeof console&&console.warn("[vue-router] "+t)}function i(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:r(!1,'props in "'+e.path+'" is a '+typeof t+", expecting an object, function or boolean.")}}function o(e,t){if(void 0===t&&(t={}),e){var n;try{n=a(e)}catch(e){n={}}for(var r in t)n[r]=t[r];return n}return t}function a(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=je(n.shift()),i=n.length>0?je(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function s(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return Pe(t);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(e){void 0!==e&&(null===e?r.push(Pe(t)):r.push(Pe(t)+"="+Pe(e)))}),r.join("&")}return Pe(t)+"="+Pe(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}function c(e,t,n){var r={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:t.query||{},params:t.params||{},fullPath:l(t),matched:e?u(e):[]};return n&&(r.redirectedFrom=l(n)),Object.freeze(r)}function u(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function l(e){var t=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;return void 0===r&&(r=""),(t||"/")+s(n)+r}function p(e,t){return t===Me?e===t:!!t&&(e.path&&t.path?e.path.replace(Le,"")===t.path.replace(Le,"")&&e.hash===t.hash&&f(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&f(e.query,t.query)&&f(e.params,t.params)))}function f(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return String(e[n])===String(t[n])})}function d(e,t){return 0===e.path.replace(Le,"/").indexOf(t.path.replace(Le,"/"))&&(!t.hash||e.hash===t.hash)&&h(e.query,t.query)}function h(e,t){for(var n in t)if(!(n in e))return!1;return!0}function v(e){if(!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.target&&e.target.getAttribute){var t=e.target.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function m(e){if(e)for(var t,n=0;n=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function b(e){return e.replace(/\/\//g,"/")}function x(e,t,n){var r=t||Object.create(null),i=n||Object.create(null);return e.forEach(function(e){w(r,i,e)}),{pathMap:r,nameMap:i}}function w(e,t,n,r,i){var o=n.path,a=n.name,s={path:k(o,r),components:n.components||{default:n.component},instances:{},name:a,parent:r,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(n){var r=i?b(i+"/"+n.path):void 0;w(e,t,n,s,r)}),void 0!==n.alias)if(Array.isArray(n.alias))n.alias.forEach(function(i){var o={path:i,children:n.children};w(e,t,o,r,s.path)});else{var c={path:n.alias,children:n.children};w(e,t,c,r,s.path)}e[s.path]||(e[s.path]=s),a&&(t[a]||(t[a]=s))}function k(e,t){return e=e.replace(/\/$/,""),"/"===e[0]?e:null==t?e:b(t.path+"/"+e)}function C(e,t){for(var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";null!=(n=Ke.exec(e));){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(o,l),o=l+c.length,u)a+=u[1];else{var p=e[o],f=n[2],d=n[3],h=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var _=null!=f&&null!=p&&p!==f,y="+"===m||"*"===m,b="?"===m||"*"===m,x=n[2]||s,w=h||v;r.push({name:d||i++,prefix:f||"",delimiter:x,optional:b,repeat:y,partial:_,asterisk:!!g,pattern:w?E(w):g?".*":"[^"+O(x)+"]+?"})}}return o-1&&(r.params[c]=t.params[c]);if(o)return r.path=D(o.path,r.params,'named route "'+i+'"'),a(o,r,n)}else if(r.path){r.params={};for(var p in u)if(B(p,r.params,r.path))return a(u[p],r,n)}return a(null,r)}function i(e,t){var i=e.redirect,o="function"==typeof i?i(c(e,t)):i;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return a(null,t);var s=o,u=s.name,p=s.path,f=t.query,d=t.hash,h=t.params;if(f=s.hasOwnProperty("query")?s.query:f,d=s.hasOwnProperty("hash")?s.hash:d,h=s.hasOwnProperty("params")?s.params:h,u){l[u];return n({_normalized:!0,name:u,query:f,hash:d,params:h},void 0,t)}if(p){var v=H(p,e),m=D(v,h,'redirect route with path "'+v+'"');return n({_normalized:!0,path:m,query:f,hash:d},void 0,t)}return r(!1,"invalid redirect option: "+JSON.stringify(o)),a(null,t)}function o(e,t,r){var i=D(r,t.params,'aliased route with path "'+r+'"'),o=n({_normalized:!0,path:i});if(o){var s=o.matched,c=s[s.length-1];return t.params=o.params,a(c,t)}return a(null,t)}function a(e,t,n){return e&&e.redirect?i(e,n||t):e&&e.matchAs?o(e,t,e.matchAs):c(e,t,n)}var s=x(e),u=s.pathMap,l=s.nameMap;return{match:n,addRoutes:t}}function B(e,t,n){var r=F(e),i=r.regexp,o=r.keys,a=n.match(i);if(!a)return!1;if(!t)return!0;for(var s=1,c=a.length;s=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}function oe(e){if(!e)if(Fe){var t=document.querySelector("base");e=t?t.getAttribute("href"):"/"}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function ae(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n=0?t:0)+"#"+e)}function $e(e,t,n){var r="hash"===n?"#"+t:t;return e?b(e+"/"+r):r}var Te,Se={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),l=0,p=!1;o;)o.$vnode&&o.$vnode.data.routerView&&l++,o._inactive&&(p=!0),o=o.$parent;if(a.routerViewDepth=l,p)return e(u[s],a,r);var f=c.matched[l];if(!f)return u[s]=null,e();var d=u[s]=f.components[s],h=a.hook||(a.hook={});return h.init=function(e){f.instances[s]=e.child},h.prepatch=function(e,t){f.instances[s]=t.child},h.destroy=function(e){f.instances[s]===e.child&&(f.instances[s]=void 0)},a.props=i(c,f.props&&f.props[s]),e(d,a,r)}},Ae=/[!'()*]/g,Oe=function(e){return"%"+e.charCodeAt(0).toString(16)},Ee=/%2C/g,Pe=function(e){return encodeURIComponent(e).replace(Ae,Oe).replace(Ee,",")},je=decodeURIComponent,Le=/\/?$/,Me=c(null,{path:"/"}),Ie=[String,Object],Re=[String,Array],Ne={name:"router-link",props:{to:{type:Ie,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:Re,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},l=this.activeClass||n.options.linkActiveClass||"router-link-active",f=o.path?c(null,o):a;u[l]=this.exact?p(r,f):d(r,f);var h=function(e){v(e)&&(t.replace?n.replace(o):n.push(o))},g={click:v};Array.isArray(this.event)?this.event.forEach(function(e){g[e]=h}):g[this.event]=h;var _={class:u};if("a"===this.tag)_.on=g,_.attrs={href:s};else{var y=m(this.$slots.default);if(y){y.isStatic=!1;var b=Te.util.extend,x=y.data=b({},y.data);x.on=g;var w=y.data.attrs=b({},y.data.attrs);w.href=s}else _.on=g}return e(this.tag,_,this.$slots.default)}},Fe="undefined"!=typeof window,De=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},qe=De,Ue=N,ze=C,Be=$,He=A,Ve=R,Ke=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ue.parse=ze,Ue.compile=Be,Ue.tokensToFunction=He,Ue.tokensToRegExp=Ve;var Je=Object.create(null),Qe=Object.create(null),Ze=Object.create(null),Ge=Fe&&function(){var e=window.navigator.userAgent;return(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)&&(window.history&&"pushState"in window.history)}(),We=Fe&&window.performance&&window.performance.now?window.performance:Date,Xe=Y(),Ye=function(e,t){this.router=e,this.base=oe(t),this.current=Me,this.pending=null,this.ready=!1,this.readyCbs=[]};Ye.prototype.listen=function(e){this.cb=e},Ye.prototype.onReady=function(e){this.ready?e():this.readyCbs.push(e)},Ye.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(e){e(i)}))},n)},Ye.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=function(){n&&n()};if(p(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o();var a=ae(this.current.matched,e.matched),s=a.updated,c=a.deactivated,u=a.activated,l=[].concat(ue(c),this.router.beforeHooks,le(s),u.map(function(e){return e.beforeEnter}),ve(u));this.pending=e;var f=function(t,n){return r.pending!==e?o():void t(e,i,function(e){e===!1?(r.ensureURL(!0),o()):"string"==typeof e||"object"==typeof e?("object"==typeof e&&e.replace?r.replace(e):r.push(e),o()):n(e)})};ie(l,f,function(){var n=[],i=function(){return r.current===e},a=fe(u,n,i);ie(a,f,function(){return r.pending!==e?o():(r.pending=null,t(e),void(r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(e){return e()})})))})})},Ye.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(n){n&&n(e,t)})};var et=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior;i&&V(),window.addEventListener("popstate",function(e){r.transitionTo(ye(r.base),function(e){i&&K(t,e,r.current,!0)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){ne(b(r.base+e.fullPath)),K(r.router,e,r.current,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){re(b(r.base+e.fullPath)),K(r.router,e,r.current,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(ye(this.base)!==this.current.fullPath){var t=b(this.base+this.current.fullPath);e?ne(t):re(t)}},t.prototype.getCurrentLocation=function(){return ye(this.base)},t}(Ye),tt=function(e){function t(t,n,r){e.call(this,t,n),r&&be(this.base)||xe()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;window.addEventListener("hashchange",function(){xe()&&e.transitionTo(we(),function(e){Ce(e.fullPath)})})},t.prototype.push=function(e,t,n){this.transitionTo(e,function(e){ke(e.fullPath),t&&t(e)},n)},t.prototype.replace=function(e,t,n){this.transitionTo(e,function(e){Ce(e.fullPath),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;we()!==t&&(e?ke(t):Ce(t))},t.prototype.getCurrentLocation=function(){return we()},t}(Ye),nt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){t.index=n,t.updateRoute(r)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ye),rt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.afterHooks=[],this.matcher=z(e.routes||[]);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ge,this.fallback&&(t="hash"),Fe||(t="abstract"),this.mode=t,t){case"history":this.history=new et(this,e.base);break;case"hash":this.history=new tt(this,e.base,this.fallback);break;case"abstract":this.history=new nt(this,e.base)}},it={currentRoute:{}};rt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},it.currentRoute.get=function(){return this.history&&this.history.current},rt.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof et)n.transitionTo(n.getCurrentLocation());else if(n instanceof tt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},rt.prototype.beforeEach=function(e){this.beforeHooks.push(e)},rt.prototype.afterEach=function(e){this.afterHooks.push(e)},rt.prototype.onReady=function(e){this.history.onReady(e)},rt.prototype.push=function(e,t,n){this.history.push(e,t,n)},rt.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},rt.prototype.go=function(e){this.history.go(e)},rt.prototype.back=function(){this.go(-1)},rt.prototype.forward=function(){this.go(1)},rt.prototype.getMatchedComponents=function(e){var t=e?this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},rt.prototype.resolve=function(e,t,n){var r=q(e,t||this.history.current,n),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=$e(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},rt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Me&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(rt.prototype,it),rt.install=g,rt.version="2.2.1",Fe&&window.Vue&&window.Vue.use(rt),e.exports=rt},function(e,t,n){"use strict";var r=n(0),i=n(28),o=n(31),a=n(37),s=n(35),c=n(12),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(30);e.exports=function(e){return new Promise(function(t,l){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";f.Authorization="Basic "+u(m+":"+g)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};i(t,l,o),d=null}},d.onerror=function(){l(c("Network Error",e)),d=null},d.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var _=n(33),y=(e.withCredentials||s(e.url))&&e.xsrfCookieName?_.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(e){if("json"!==d.responseType)throw e}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),l(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t,n,i){var o=new Error(e);return r(o,t,n,i)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;rn.parts.length&&(r.parts.length=n.parts.length)}else{for(var o=[],i=0;i=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){u.headers[e]={}}),o.forEach(["post","put","patch"],function(e){u.headers[e]=o.merge(c)}),e.exports=u}).call(t,n(60))},function(e,t,n){"use strict";function r(e,t){e||"undefined"!=typeof console&&console.warn("[vue-router] "+t)}function i(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:r(!1,'props in "'+e.path+'" is a '+typeof t+", expecting an object, function or boolean.")}}function o(e,t){if(void 0===t&&(t={}),e){var n;try{n=a(e)}catch(e){n={}}for(var r in t)n[r]=t[r];return n}return t}function a(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=Pe(n.shift()),i=n.length>0?Pe(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function s(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return Le(t);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(e){void 0!==e&&(null===e?r.push(Le(t)):r.push(Le(t)+"="+Le(e)))}),r.join("&")}return Le(t)+"="+Le(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}function c(e,t,n){var r={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:t.query||{},params:t.params||{},fullPath:l(t),matched:e?u(e):[]};return n&&(r.redirectedFrom=l(n)),Object.freeze(r)}function u(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function l(e){var t=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;return void 0===r&&(r=""),(t||"/")+s(n)+r}function p(e,t){return t===Me?e===t:!!t&&(e.path&&t.path?e.path.replace(je,"")===t.path.replace(je,"")&&e.hash===t.hash&&f(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&f(e.query,t.query)&&f(e.params,t.params)))}function f(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return String(e[n])===String(t[n])})}function d(e,t){return 0===e.path.replace(je,"/").indexOf(t.path.replace(je,"/"))&&(!t.hash||e.hash===t.hash)&&h(e.query,t.query)}function h(e,t){for(var n in t)if(!(n in e))return!1;return!0}function v(e){if(!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.target&&e.target.getAttribute){var t=e.target.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function m(e){if(e)for(var t,n=0;n=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function b(e){return e.replace(/\/\//g,"/")}function x(e,t,n){var r=t||Object.create(null),i=n||Object.create(null);return e.forEach(function(e){w(r,i,e)}),{pathMap:r,nameMap:i}}function w(e,t,n,r,i){var o=n.path,a=n.name,s={path:k(o,r),components:n.components||{default:n.component},instances:{},name:a,parent:r,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(n){var r=i?b(i+"/"+n.path):void 0;w(e,t,n,s,r)}),void 0!==n.alias)if(Array.isArray(n.alias))n.alias.forEach(function(i){var o={path:i,children:n.children};w(e,t,o,r,s.path)});else{var c={path:n.alias,children:n.children};w(e,t,c,r,s.path)}e[s.path]||(e[s.path]=s),a&&(t[a]||(t[a]=s))}function k(e,t){return e=e.replace(/\/$/,""),"/"===e[0]?e:null==t?e:b(t.path+"/"+e)}function C(e,t){for(var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";null!=(n=Ke.exec(e));){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(o,l),o=l+c.length,u)a+=u[1];else{var p=e[o],f=n[2],d=n[3],h=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var _=null!=f&&null!=p&&p!==f,y="+"===m||"*"===m,b="?"===m||"*"===m,x=n[2]||s,w=h||v;r.push({name:d||i++,prefix:f||"",delimiter:x,optional:b,repeat:y,partial:_,asterisk:!!g,pattern:w?E(w):g?".*":"[^"+O(x)+"]+?"})}}return o-1&&(r.params[c]=t.params[c]);if(o)return r.path=D(o.path,r.params,'named route "'+i+'"'),a(o,r,n)}else if(r.path){r.params={};for(var p in u)if(B(p,r.params,r.path))return a(u[p],r,n)}return a(null,r)}function i(e,t){var i=e.redirect,o="function"==typeof i?i(c(e,t)):i;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return a(null,t);var s=o,u=s.name,p=s.path,f=t.query,d=t.hash,h=t.params;if(f=s.hasOwnProperty("query")?s.query:f,d=s.hasOwnProperty("hash")?s.hash:d,h=s.hasOwnProperty("params")?s.params:h,u){l[u];return n({_normalized:!0,name:u,query:f,hash:d,params:h},void 0,t)}if(p){var v=H(p,e),m=D(v,h,'redirect route with path "'+v+'"');return n({_normalized:!0,path:m,query:f,hash:d},void 0,t)}return r(!1,"invalid redirect option: "+JSON.stringify(o)),a(null,t)}function o(e,t,r){var i=D(r,t.params,'aliased route with path "'+r+'"'),o=n({_normalized:!0,path:i});if(o){var s=o.matched,c=s[s.length-1];return t.params=o.params,a(c,t)}return a(null,t)}function a(e,t,n){return e&&e.redirect?i(e,n||t):e&&e.matchAs?o(e,t,e.matchAs):c(e,t,n)}var s=x(e),u=s.pathMap,l=s.nameMap;return{match:n,addRoutes:t}}function B(e,t,n){var r=F(e),i=r.regexp,o=r.keys,a=n.match(i);if(!a)return!1;if(!t)return!0;for(var s=1,c=a.length;s=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}function oe(e){if(!e)if(Fe){var t=document.querySelector("base");e=t?t.getAttribute("href"):"/"}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function ae(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n=0?t:0)+"#"+e)}function $e(e,t,n){var r="hash"===n?"#"+t:t;return e?b(e+"/"+r):r}var Te,Se={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),l=0,p=!1;o;)o.$vnode&&o.$vnode.data.routerView&&l++,o._inactive&&(p=!0),o=o.$parent;if(a.routerViewDepth=l,p)return e(u[s],a,r);var f=c.matched[l];if(!f)return u[s]=null,e();var d=u[s]=f.components[s],h=a.hook||(a.hook={});return h.init=function(e){f.instances[s]=e.child},h.prepatch=function(e,t){f.instances[s]=t.child},h.destroy=function(e){f.instances[s]===e.child&&(f.instances[s]=void 0)},a.props=i(c,f.props&&f.props[s]),e(d,a,r)}},Ae=/[!'()*]/g,Oe=function(e){return"%"+e.charCodeAt(0).toString(16)},Ee=/%2C/g,Le=function(e){return encodeURIComponent(e).replace(Ae,Oe).replace(Ee,",")},Pe=decodeURIComponent,je=/\/?$/,Me=c(null,{path:"/"}),Ie=[String,Object],Ne=[String,Array],Re={name:"router-link",props:{to:{type:Ie,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:Ne,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},l=this.activeClass||n.options.linkActiveClass||"router-link-active",f=o.path?c(null,o):a;u[l]=this.exact?p(r,f):d(r,f);var h=function(e){v(e)&&(t.replace?n.replace(o):n.push(o))},g={click:v};Array.isArray(this.event)?this.event.forEach(function(e){g[e]=h}):g[this.event]=h;var _={class:u};if("a"===this.tag)_.on=g,_.attrs={href:s};else{var y=m(this.$slots.default);if(y){y.isStatic=!1;var b=Te.util.extend,x=y.data=b({},y.data);x.on=g;var w=y.data.attrs=b({},y.data.attrs);w.href=s}else _.on=g}return e(this.tag,_,this.$slots.default)}},Fe="undefined"!=typeof window,De=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},qe=De,Ue=R,ze=C,Be=$,He=A,Ve=N,Ke=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ue.parse=ze,Ue.compile=Be,Ue.tokensToFunction=He,Ue.tokensToRegExp=Ve;var Je=Object.create(null),Qe=Object.create(null),Ze=Object.create(null),Ge=Fe&&function(){var e=window.navigator.userAgent;return(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)&&(window.history&&"pushState"in window.history)}(),We=Fe&&window.performance&&window.performance.now?window.performance:Date,Xe=Y(),Ye=function(e,t){this.router=e,this.base=oe(t),this.current=Me,this.pending=null,this.ready=!1,this.readyCbs=[]};Ye.prototype.listen=function(e){this.cb=e},Ye.prototype.onReady=function(e){this.ready?e():this.readyCbs.push(e)},Ye.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(e){e(i)}))},n)},Ye.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=function(){n&&n()};if(p(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o();var a=ae(this.current.matched,e.matched),s=a.updated,c=a.deactivated,u=a.activated,l=[].concat(ue(c),this.router.beforeHooks,le(s),u.map(function(e){return e.beforeEnter}),ve(u));this.pending=e;var f=function(t,n){return r.pending!==e?o():void t(e,i,function(e){e===!1?(r.ensureURL(!0),o()):"string"==typeof e||"object"==typeof e?("object"==typeof e&&e.replace?r.replace(e):r.push(e),o()):n(e)})};ie(l,f,function(){var n=[],i=function(){return r.current===e},a=fe(u,n,i);ie(a,f,function(){return r.pending!==e?o():(r.pending=null,t(e),void(r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(e){return e()})})))})})},Ye.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(n){n&&n(e,t)})};var et=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior;i&&V(),window.addEventListener("popstate",function(e){r.transitionTo(ye(r.base),function(e){i&&K(t,e,r.current,!0)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){ne(b(r.base+e.fullPath)),K(r.router,e,r.current,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){re(b(r.base+e.fullPath)),K(r.router,e,r.current,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(ye(this.base)!==this.current.fullPath){var t=b(this.base+this.current.fullPath);e?ne(t):re(t)}},t.prototype.getCurrentLocation=function(){return ye(this.base)},t}(Ye),tt=function(e){function t(t,n,r){e.call(this,t,n),r&&be(this.base)||xe()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;window.addEventListener("hashchange",function(){xe()&&e.transitionTo(we(),function(e){Ce(e.fullPath)})})},t.prototype.push=function(e,t,n){this.transitionTo(e,function(e){ke(e.fullPath),t&&t(e)},n)},t.prototype.replace=function(e,t,n){this.transitionTo(e,function(e){Ce(e.fullPath),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;we()!==t&&(e?ke(t):Ce(t))},t.prototype.getCurrentLocation=function(){return we()},t}(Ye),nt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){t.index=n,t.updateRoute(r)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ye),rt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.afterHooks=[],this.matcher=z(e.routes||[]);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ge,this.fallback&&(t="hash"),Fe||(t="abstract"),this.mode=t,t){case"history":this.history=new et(this,e.base);break;case"hash":this.history=new tt(this,e.base,this.fallback);break;case"abstract":this.history=new nt(this,e.base)}},it={currentRoute:{}};rt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},it.currentRoute.get=function(){return this.history&&this.history.current},rt.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof et)n.transitionTo(n.getCurrentLocation());else if(n instanceof tt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},rt.prototype.beforeEach=function(e){this.beforeHooks.push(e)},rt.prototype.afterEach=function(e){this.afterHooks.push(e)},rt.prototype.onReady=function(e){this.history.onReady(e)},rt.prototype.push=function(e,t,n){this.history.push(e,t,n)},rt.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},rt.prototype.go=function(e){this.history.go(e)},rt.prototype.back=function(){this.go(-1)},rt.prototype.forward=function(){this.go(1)},rt.prototype.getMatchedComponents=function(e){var t=e?this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},rt.prototype.resolve=function(e,t,n){var r=q(e,t||this.history.current,n),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=$e(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},rt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Me&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(rt.prototype,it),rt.install=g,rt.version="2.2.1",Fe&&window.Vue&&window.Vue.use(rt),e.exports=rt},function(e,t,n){"use strict";var r=n(0),i=n(28),o=n(31),a=n(37),s=n(35),c=n(12),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(30);e.exports=function(e){return new Promise(function(t,l){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";f.Authorization="Basic "+u(m+":"+g)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};i(t,l,o),d=null}},d.onerror=function(){l(c("Network Error",e)),d=null},d.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var _=n(33),y=(e.withCredentials||s(e.url))&&e.xsrfCookieName?_.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(e){if("json"!==d.responseType)throw e}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),l(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t,n,i){var o=new Error(e);return r(o,t,n,i)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r-1)return e.splice(n,1)}}function a(e,t){return ai.call(e,t)}function s(e){return"string"==typeof e||"number"==typeof e}function c(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function u(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function l(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function p(e,t){for(var n in t)e[n]=t[n];return e}function f(e){return null!==e&&"object"==typeof e}function d(e){return fi.call(e)===di}function h(e){for(var t={},n=0;n1?l(n):n;for(var r=l(arguments,1),i=0,o=n.length;i=0&&Xi[n].id>e.id;)n--;Xi.splice(Math.max(n,no)+1,0,e)}else Xi.push(e);eo||(eo=!0,Ai(Te))}}function Ae(e){oo.clear(),Oe(e,oo)}function Oe(e,t){var n,r,i=Array.isArray(e);if((i||f(e))&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Oe(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)Oe(e[r[n]],t)}}function Ee(e){e._watchers=[];var t=e.$options;t.props&&Pe(e,t.props),t.methods&&Ie(e,t.methods),t.data?je(e):S(e._data={},!0),t.computed&&Le(e,t.computed),t.watch&&Re(e,t.watch)}function Pe(e,t){var n=e.$options.propsData||{},r=e.$options._propKeys=Object.keys(t),i=!e.$parent;Ni.shouldConvert=i;for(var o=function(i){var o=r[i];A(e,o,D(o,t,n,e))},a=0;a-1:e.test(t)}function Ge(e,t){for(var n in e){var r=e[n];if(r){var i=Qe(r.componentOptions);i&&!t(i)&&(We(r),e[n]=null)}}}function We(e){e&&(e.componentInstance._inactive||Ce(e.componentInstance,"deactivated"),e.componentInstance.$destroy())}function Xe(e){var t={};t.get=function(){return mi},Object.defineProperty(e,"config",t),e.util=Ui,e.set=O,e.delete=E,e.nextTick=Ai,e.options=Object.create(null),mi._assetTypes.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,p(e.options.components,lo),He(e),Ve(e),Ke(e),Je(e)}function Ye(e){for(var t=e.data,n=e,r=e;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(t=et(r.data,t));for(;n=n.parent;)n.data&&(t=et(t,n.data));return tt(t)}function et(e,t){return{staticClass:nt(e.staticClass,t.staticClass),class:e.class?[e.class,t.class]:t.class}}function tt(e){var t=e.class,n=e.staticClass;return n||t?nt(n,rt(t)):""}function nt(e,t){return e?t?e+" "+t:e:t||""}function rt(e){var t="";if(!e)return t;if("string"==typeof e)return e;if(Array.isArray(e)){for(var n,r=0,i=e.length;r-1?So[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:So[e]=/HTMLUnknownElement/.test(t.toString())}function at(e){if("string"==typeof e){if(e=document.querySelector(e),!e)return document.createElement("div")}return e}function st(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&"multiple"in t.data.attrs&&n.setAttribute("multiple","multiple"),n)}function ct(e,t){return document.createElementNS(wo[e],t)}function ut(e){return document.createTextNode(e)}function lt(e){return document.createComment(e)}function pt(e,t,n){e.insertBefore(t,n)}function ft(e,t){e.removeChild(t)}function dt(e,t){e.appendChild(t)}function ht(e){return e.parentNode}function vt(e){return e.nextSibling}function mt(e){return e.tagName}function gt(e,t){e.textContent=t}function _t(e,t,n){e.setAttribute(t,n)}function yt(e,t){var n=e.data.ref;if(n){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?o(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(i)<0?a[n].push(i):a[n]=[i]:a[n]=i}}function bt(e){return null==e}function xt(e){return null!=e}function wt(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&!e.data==!t.data}function kt(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,xt(i)&&(o[i]=r);return o}function Ct(e){function t(e){return new zi(S.tagName(e).toLowerCase(),{},[],void 0,e)}function n(e,t){function n(){0===--n.listeners&&r(e)}return n.listeners=t,n}function r(e){var t=S.parentNode(e);t&&S.removeChild(t,e)}function o(e,t,n,r,i){if(e.isRootInsert=!i,!a(e,t,n,r)){var o=e.data,s=e.children,c=e.tag;xt(c)?(e.elm=e.ns?S.createElementNS(e.ns,c):S.createElement(c,e),h(e),p(e,s,t),xt(o)&&d(e,t),l(n,e.elm,r)):e.isComment?(e.elm=S.createComment(e.text),l(n,e.elm,r)):(e.elm=S.createTextNode(e.text),l(n,e.elm,r))}}function a(e,t,n,r){var i=e.data;if(xt(i)){var o=xt(e.componentInstance)&&i.keepAlive;if(xt(i=i.hook)&&xt(i=i.init)&&i(e,!1,n,r),xt(e.componentInstance))return c(e,t),o&&u(e,t,n,r),!0}}function c(e,t){e.data.pendingInsert&&t.push.apply(t,e.data.pendingInsert),e.elm=e.componentInstance.$el,f(e)?(d(e,t),h(e)):(yt(e),t.push(e))}function u(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,xt(i=o.data)&&xt(i=i.transition)){for(i=0;i<$.activate.length;++i)$.activate[i](Eo,o);t.push(o);break}l(n,e.elm,r)}function l(e,t,n){e&&(n?S.insertBefore(e,t,n):S.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var r=0;rf?(u=bt(n[m+1])?null:n[m+1].elm,v(e,u,n,p,m,r)):p>m&&g(e,t,l,f)}function b(e,t,n,r){if(e!==t){if(t.isStatic&&e.isStatic&&t.key===e.key&&(t.isCloned||t.isOnce))return t.elm=e.elm,void(t.componentInstance=e.componentInstance);var i,o=t.data,a=xt(o);a&&xt(i=o.hook)&&xt(i=i.prepatch)&&i(e,t);var s=t.elm=e.elm,c=e.children,u=t.children;if(a&&f(t)){for(i=0;i<$.update.length;++i)$.update[i](e,t);xt(i=o.hook)&&xt(i=i.update)&&i(e,t)}bt(t.text)?xt(c)&&xt(u)?c!==u&&y(s,c,u,n,r):xt(u)?(xt(e.text)&&S.setTextContent(s,""),v(s,null,u,0,u.length-1,n)):xt(c)?g(s,c,0,c.length-1):xt(e.text)&&S.setTextContent(s,""):e.text!==t.text&&S.setTextContent(s,t.text),a&&xt(i=o.hook)&&xt(i=i.postpatch)&&i(e,t)}}function x(e,t,n){if(n&&e.parent)e.parent.data.pendingInsert=t;else for(var r=0;r-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Vt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function Kt(e){Yo(function(){Yo(e)})}function Jt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Ht(e,t)}function Qt(e,t){e._transitionClasses&&o(e._transitionClasses,t),Vt(e,t)}function Zt(e,t,n){var r=Gt(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Jo?Go:Xo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Jo,l=a,p=o.length):t===Qo?u>0&&(n=Qo,l=u,p=c.length):(l=Math.max(a,u),n=l>0?a>u?Jo:Qo:null,p=n?n===Jo?o.length:c.length:0);var f=n===Jo&&ea.test(r[Zo+"Property"]);return{type:n,timeout:l,propCount:p,hasTransform:f}}function Wt(e,t){for(;e.length1,j=n._enterCb=nn(function(){E&&(Qt(n,$),Qt(n,C)),j.cancelled?(E&&Qt(n,k),O&&O(n)):A&&A(n),n._enterCb=null});e.data.show||ie(e.data.hook||(e.data.hook={}),"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),S&&S(n,j)},"transition-insert"),T&&T(n),E&&(Jt(n,k),Jt(n,C),Kt(function(){Jt(n,$),Qt(n,k),j.cancelled||P||Zt(n,o,j)})),e.data.show&&(t&&t(),S&&S(n,j)),E||P||j()}}}function en(e,t){function n(){g.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),l&&l(r),v&&(Jt(r,s),Jt(r,u),Kt(function(){Jt(r,c),Qt(r,s),g.cancelled||m||Zt(r,a,g)})),p&&p(r,g),v||m||g())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=tn(e.data.transition);if(!i)return t();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,c=i.leaveToClass,u=i.leaveActiveClass,l=i.beforeLeave,p=i.leave,f=i.afterLeave,d=i.leaveCancelled,h=i.delayLeave,v=o!==!1&&!wi,m=p&&(p._length||p.length)>1,g=r._leaveCb=nn(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),v&&(Qt(r,c),Qt(r,u)),g.cancelled?(v&&Qt(r,s),d&&d(r)):(t(),f&&f(r)),r._leaveCb=null});h?h(n):n()}}function tn(e){if(e){if("object"==typeof e){var t={};return e.css!==!1&&p(t,ta(e.name||"v")),p(t,e),t}return"string"==typeof e?ta(e):void 0}}function nn(e){var t=!1;return function(){t||(t=!0,e())}}function rn(e,t){t.data.show||Yt(t)}function on(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(g(sn(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function an(e,t){for(var n=0,r=t.length;n',n.innerHTML.indexOf(t)>0}function xn(e){return ha=ha||document.createElement("div"),ha.innerHTML=e,ha.textContent}function wn(e,t){return t&&(e=e.replace(ss,"\n")),e.replace(os,"<").replace(as,">").replace(cs,"&").replace(us,'"')}function kn(e,t){function n(t){p+=t,e=e.substring(t)}function r(){var t=e.match($a);if(t){var r={tagName:t[1],attrs:[],start:p};n(t[0].length);for(var i,o;!(i=e.match(Ta))&&(o=e.match(wa));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=p,r}}function i(e){var n=e.tagName,r=e.unarySlash;u&&("p"===s&&_a(n)&&o(s),ga(n)&&s===n&&o(n));for(var i=l(n)||"html"===n&&"head"===s||!!r,a=e.attrs.length,p=new Array(a),f=0;f=0&&c[i].lowerCasedTag!==o;i--);else i=0;if(i>=0){for(var a=c.length-1;a>=i;a--)t.end&&t.end(c[a].tag,n,r);c.length=i,s=i&&c[i-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,r):"p"===o&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var a,s,c=[],u=t.expectHTML,l=t.isUnaryTag||hi,p=0;e;){if(a=e,s&&rs(s)){var f=s.toLowerCase(),d=is[f]||(is[f]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=0,v=e.replace(d,function(e,n,r){return h=r.length,"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""});p+=e.length-v.length,e=v,o(f,p-h,p)}else{var m=e.indexOf("<");if(0===m){if(Oa.test(e)){var g=e.indexOf("-->");if(g>=0){n(g+3);continue}}if(Ea.test(e)){var _=e.indexOf("]>");if(_>=0){n(_+2);continue}}var y=e.match(Aa);if(y){n(y[0].length);continue}var b=e.match(Sa);if(b){var x=p;n(b[0].length),o(b[1],x,p);continue}var w=r();if(w){i(w);continue}}var k=void 0,C=void 0,$=void 0;if(m>0){for(C=e.slice(m);!(Sa.test(C)||$a.test(C)||Oa.test(C)||Ea.test(C)||($=C.indexOf("<",1),$<0));)m+=$,C=e.slice(m);k=e.substring(0,m),n(m)}m<0&&(k=e,e=""),t.chars&&k&&t.chars(k)}if(e===a&&t.chars){t.chars(e);break}}o()}function Cn(e){function t(){(a||(a=[])).push(e.slice(h,i).trim()),h=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,p=0,f=0,d=0,h=0;for(i=0;i=0&&(m=e.charAt(v)," "===m);v--);m&&/[\w$]/.test(m)||(l=!0)}}else void 0===o?(h=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==h&&t(),a)for(i=0;ia&&o.push(JSON.stringify(e.slice(a,i)));var s=Cn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=ja}function Fn(e){return 34===e||39===e}function Dn(e){var t=1;for(Ra=Ia;!Nn();)if(e=Rn(),Fn(e))qn(e);else if(91===e&&t++,93===e&&t--,0===t){Na=Ia;break}}function qn(e){for(var t=e;!Nn()&&(e=Rn(),e!==t););}function Un(e,t){Fa=t.warn||Sn,Da=t.getTagNamespace||hi,qa=t.mustUseProp||hi,Ua=t.isPreTag||hi,za=An(t.modules,"preTransformNode"),Ba=An(t.modules,"transformNode"),Ha=An(t.modules,"postTransformNode"),Va=t.delimiters;var n,r,i=[],o=t.preserveWhitespace!==!1,a=!1,s=!1;return kn(e,{expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,o,c){function u(e){}var l=r&&r.ns||Da(e);xi&&"svg"===l&&(o=or(o));var p={type:1,tag:e,attrsList:o,attrsMap:rr(o),parent:r,children:[]};l&&(p.ns=l),ir(p)&&!Ti()&&(p.forbidden=!0);for(var f=0;f-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),jn(e,"click","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function Jr(e,t,n){var r=n&&n.number,i=Ln(e,"value")||"null";i=r?"_n("+i+")":i,On(e,"checked","_q("+t+","+i+")"),jn(e,"click",Gr(t,i),null,!0)}function Qr(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=o||xi&&"range"===r?"change":"input",u=!o&&"range"!==r,l="input"===e.tag||"textarea"===e.tag,p=l?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";p=a||"number"===r?"_n("+p+")":p;var f=Gr(t,p);l&&u&&(f="if($event.target.composing)return;"+f),On(e,"value",l?"_s("+t+")":"("+t+")"),jn(e,c,f,null,!0),(s||a||"number"===r)&&jn(e,"blur","$forceUpdate()")}function Zr(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==e.attrsMap.multiple?"[0]":""),o=Gr(t,i);jn(e,"change",o,null,!0)}function Gr(e,t){var n=In(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function Wr(e,t){t.value&&On(e,"textContent","_s("+t.value+")")}function Xr(e,t){t.value&&On(e,"innerHTML","_s("+t.value+")")}function Yr(e,t){return t=t?p(p({},Ms),t):Ms,qr(e,t)}function ei(e,t,n){var r=(t&&t.warn||Ei,t&&t.delimiters?String(t.delimiters)+e:e);if(Ls[r])return Ls[r];var i={},o=Yr(e,t);i.render=ti(o.render);var a=o.staticRenderFns.length;i.staticRenderFns=new Array(a);for(var s=0;s0,ki=bi&&bi.indexOf("edge/")>0,Ci=bi&&bi.indexOf("android")>0,$i=bi&&/iphone|ipad|ipod|ios/.test(bi),Ti=function(){return void 0===ri&&(ri=!yi&&"undefined"!=typeof t&&"server"===t.process.env.VUE_ENV),ri},Si=yi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ai=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1&&(t[n[0].trim()]=n[1].trim())}}),t}),qo=/^--/,Uo=/\s*!important$/,zo=function(e,t,n){qo.test(t)?e.style.setProperty(t,n):Uo.test(n)?e.style.setProperty(t,n.replace(Uo,""),"important"):e.style[Ho(t)]=n},Bo=["Webkit","Moz","ms"],Ho=c(function(e){if(fo=fo||document.createElement("div"),e=ci(e),"filter"!==e&&e in fo.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,ba=/(?:=)/,xa=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],wa=new RegExp("^\\s*"+ya.source+"(?:\\s*("+ba.source+")\\s*(?:"+xa.join("|")+"))?"),ka="[a-zA-Z_][\\w\\-\\.]*",Ca="((?:"+ka+"\\:)?"+ka+")",$a=new RegExp("^<"+Ca),Ta=/^\s*(\/?)>/,Sa=new RegExp("^<\\/"+Ca+"[^>]*>"),Aa=/^]+>/i,Oa=/^/g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""});p+=e.length-v.length,e=v,o(f,p-h,p)}else{var m=e.indexOf("<");if(0===m){if(Oa.test(e)){var g=e.indexOf("-->");if(g>=0){n(g+3);continue}}if(Ea.test(e)){var _=e.indexOf("]>");if(_>=0){n(_+2);continue}}var y=e.match(Aa);if(y){n(y[0].length);continue}var b=e.match(Sa);if(b){var x=p;n(b[0].length),o(b[1],x,p);continue}var w=r();if(w){i(w);continue}}var k=void 0,C=void 0,$=void 0;if(m>0){for(C=e.slice(m);!(Sa.test(C)||$a.test(C)||Oa.test(C)||Ea.test(C)||($=C.indexOf("<",1),$<0));)m+=$,C=e.slice(m);k=e.substring(0,m),n(m)}m<0&&(k=e,e=""),t.chars&&k&&t.chars(k)}if(e===a&&t.chars){t.chars(e);break}}o()}function Cn(e){function t(){(a||(a=[])).push(e.slice(h,i).trim()),h=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,p=0,f=0,d=0,h=0;for(i=0;i=0&&(m=e.charAt(v)," "===m);v--);m&&/[\w$]/.test(m)||(l=!0)}}else void 0===o?(h=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==h&&t(),a)for(i=0;ia&&o.push(JSON.stringify(e.slice(a,i)));var s=Cn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=Pa}function Fn(e){return 34===e||39===e}function Dn(e){var t=1;for(Na=Ia;!Rn();)if(e=Nn(),Fn(e))qn(e);else if(91===e&&t++,93===e&&t--,0===t){Ra=Ia;break}}function qn(e){for(var t=e;!Rn()&&(e=Nn(),e!==t););}function Un(e,t){Fa=t.warn||Sn,Da=t.getTagNamespace||hi,qa=t.mustUseProp||hi,Ua=t.isPreTag||hi,za=An(t.modules,"preTransformNode"),Ba=An(t.modules,"transformNode"),Ha=An(t.modules,"postTransformNode"),Va=t.delimiters;var n,r,i=[],o=t.preserveWhitespace!==!1,a=!1,s=!1;return kn(e,{expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,o,c){function u(e){}var l=r&&r.ns||Da(e);xi&&"svg"===l&&(o=or(o));var p={type:1,tag:e,attrsList:o,attrsMap:rr(o),parent:r,children:[]};l&&(p.ns=l),ir(p)&&!Ti()&&(p.forbidden=!0);for(var f=0;f-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Pn(e,"click","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function Jr(e,t,n){var r=n&&n.number,i=jn(e,"value")||"null";i=r?"_n("+i+")":i,On(e,"checked","_q("+t+","+i+")"),Pn(e,"click",Gr(t,i),null,!0)}function Qr(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=o||xi&&"range"===r?"change":"input",u=!o&&"range"!==r,l="input"===e.tag||"textarea"===e.tag,p=l?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";p=a||"number"===r?"_n("+p+")":p;var f=Gr(t,p);l&&u&&(f="if($event.target.composing)return;"+f),On(e,"value",l?"_s("+t+")":"("+t+")"),Pn(e,c,f,null,!0),(s||a||"number"===r)&&Pn(e,"blur","$forceUpdate()")}function Zr(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==e.attrsMap.multiple?"[0]":""),o=Gr(t,i);Pn(e,"change",o,null,!0)}function Gr(e,t){var n=In(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function Wr(e,t){t.value&&On(e,"textContent","_s("+t.value+")")}function Xr(e,t){t.value&&On(e,"innerHTML","_s("+t.value+")")}function Yr(e,t){return t=t?p(p({},Ms),t):Ms,qr(e,t)}function ei(e,t,n){var r=(t&&t.warn||Ei,t&&t.delimiters?String(t.delimiters)+e:e);if(js[r])return js[r];var i={},o=Yr(e,t);i.render=ti(o.render);var a=o.staticRenderFns.length;i.staticRenderFns=new Array(a);for(var s=0;s0,ki=bi&&bi.indexOf("edge/")>0,Ci=bi&&bi.indexOf("android")>0,$i=bi&&/iphone|ipad|ipod|ios/.test(bi),Ti=function(){return void 0===ri&&(ri=!yi&&"undefined"!=typeof t&&"server"===t.process.env.VUE_ENV),ri},Si=yi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ai=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1&&(t[n[0].trim()]=n[1].trim())}}),t}),qo=/^--/,Uo=/\s*!important$/,zo=function(e,t,n){qo.test(t)?e.style.setProperty(t,n):Uo.test(n)?e.style.setProperty(t,n.replace(Uo,""),"important"):e.style[Ho(t)]=n},Bo=["Webkit","Moz","ms"],Ho=c(function(e){if(fo=fo||document.createElement("div"),e=ci(e),"filter"!==e&&e in fo.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,ba=/(?:=)/,xa=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],wa=new RegExp("^\\s*"+ya.source+"(?:\\s*("+ba.source+")\\s*(?:"+xa.join("|")+"))?"),ka="[a-zA-Z_][\\w\\-\\.]*",Ca="((?:"+ka+"\\:)?"+ka+")",$a=new RegExp("^<"+Ca),Ta=/^\s*(\/?)>/,Sa=new RegExp("^<\\/"+Ca+"[^>]*>"),Aa=/^]+>/i,Oa=/^');\n\n if (commentEnd >= 0) {\n advance(commentEnd + 3);\n continue\n }\n }\n\n // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment\n if (conditionalComment.test(html)) {\n var conditionalEnd = html.indexOf(']>');\n\n if (conditionalEnd >= 0) {\n advance(conditionalEnd + 2);\n continue\n }\n }\n\n // Doctype:\n var doctypeMatch = html.match(doctype);\n if (doctypeMatch) {\n advance(doctypeMatch[0].length);\n continue\n }\n\n // End tag:\n var endTagMatch = html.match(endTag);\n if (endTagMatch) {\n var curIndex = index;\n advance(endTagMatch[0].length);\n parseEndTag(endTagMatch[1], curIndex, index);\n continue\n }\n\n // Start tag:\n var startTagMatch = parseStartTag();\n if (startTagMatch) {\n handleStartTag(startTagMatch);\n continue\n }\n }\n\n var text = (void 0), rest$1 = (void 0), next = (void 0);\n if (textEnd > 0) {\n rest$1 = html.slice(textEnd);\n while (\n !endTag.test(rest$1) &&\n !startTagOpen.test(rest$1) &&\n !comment.test(rest$1) &&\n !conditionalComment.test(rest$1)\n ) {\n // < in plain text, be forgiving and treat it as text\n next = rest$1.indexOf('<', 1);\n if (next < 0) { break }\n textEnd += next;\n rest$1 = html.slice(textEnd);\n }\n text = html.substring(0, textEnd);\n advance(textEnd);\n }\n\n if (textEnd < 0) {\n text = html;\n html = '';\n }\n\n if (options.chars && text) {\n options.chars(text);\n }\n } else {\n var stackedTag = lastTag.toLowerCase();\n var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\\\s\\\\S]*?)(]*>)', 'i'));\n var endTagLength = 0;\n var rest = html.replace(reStackedTag, function (all, text, endTag) {\n endTagLength = endTag.length;\n if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') {\n text = text\n .replace(//g, '$1')\n .replace(//g, '$1');\n }\n if (options.chars) {\n options.chars(text);\n }\n return ''\n });\n index += html.length - rest.length;\n html = rest;\n parseEndTag(stackedTag, index - endTagLength, index);\n }\n\n if (html === last && options.chars) {\n options.chars(html);\n break\n }\n }\n\n // Clean up any remaining tags\n parseEndTag();\n\n function advance (n) {\n index += n;\n html = html.substring(n);\n }\n\n function parseStartTag () {\n var start = html.match(startTagOpen);\n if (start) {\n var match = {\n tagName: start[1],\n attrs: [],\n start: index\n };\n advance(start[0].length);\n var end, attr;\n while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {\n advance(attr[0].length);\n match.attrs.push(attr);\n }\n if (end) {\n match.unarySlash = end[1];\n advance(end[0].length);\n match.end = index;\n return match\n }\n }\n }\n\n function handleStartTag (match) {\n var tagName = match.tagName;\n var unarySlash = match.unarySlash;\n\n if (expectHTML) {\n if (lastTag === 'p' && isNonPhrasingTag(tagName)) {\n parseEndTag(lastTag);\n }\n if (canBeLeftOpenTag(tagName) && lastTag === tagName) {\n parseEndTag(tagName);\n }\n }\n\n var unary = isUnaryTag$$1(tagName) || tagName === 'html' && lastTag === 'head' || !!unarySlash;\n\n var l = match.attrs.length;\n var attrs = new Array(l);\n for (var i = 0; i < l; i++) {\n var args = match.attrs[i];\n // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778\n if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('\"\"') === -1) {\n if (args[3] === '') { delete args[3]; }\n if (args[4] === '') { delete args[4]; }\n if (args[5] === '') { delete args[5]; }\n }\n var value = args[3] || args[4] || args[5] || '';\n attrs[i] = {\n name: args[1],\n value: decodeAttr(\n value,\n options.shouldDecodeNewlines\n )\n };\n }\n\n if (!unary) {\n stack.push({ tag: tagName, lowerCasedTag: tagName.toLowerCase(), attrs: attrs });\n lastTag = tagName;\n unarySlash = '';\n }\n\n if (options.start) {\n options.start(tagName, attrs, unary, match.start, match.end);\n }\n }\n\n function parseEndTag (tagName, start, end) {\n var pos, lowerCasedTagName;\n if (start == null) { start = index; }\n if (end == null) { end = index; }\n\n if (tagName) {\n lowerCasedTagName = tagName.toLowerCase();\n }\n\n // Find the closest opened tag of the same type\n if (tagName) {\n for (pos = stack.length - 1; pos >= 0; pos--) {\n if (stack[pos].lowerCasedTag === lowerCasedTagName) {\n break\n }\n }\n } else {\n // If no tag name is provided, clean shop\n pos = 0;\n }\n\n if (pos >= 0) {\n // Close all the open elements, up the stack\n for (var i = stack.length - 1; i >= pos; i--) {\n if (options.end) {\n options.end(stack[i].tag, start, end);\n }\n }\n\n // Remove the open elements from the stack\n stack.length = pos;\n lastTag = pos && stack[pos - 1].tag;\n } else if (lowerCasedTagName === 'br') {\n if (options.start) {\n options.start(tagName, [], true, start, end);\n }\n } else if (lowerCasedTagName === 'p') {\n if (options.start) {\n options.start(tagName, [], false, start, end);\n }\n if (options.end) {\n options.end(tagName, start, end);\n }\n }\n }\n}\n\n/* */\n\nfunction parseFilters (exp) {\n var inSingle = false;\n var inDouble = false;\n var inTemplateString = false;\n var inRegex = false;\n var curly = 0;\n var square = 0;\n var paren = 0;\n var lastFilterIndex = 0;\n var c, prev, i, expression, filters;\n\n for (i = 0; i < exp.length; i++) {\n prev = c;\n c = exp.charCodeAt(i);\n if (inSingle) {\n if (c === 0x27 && prev !== 0x5C) { inSingle = false; }\n } else if (inDouble) {\n if (c === 0x22 && prev !== 0x5C) { inDouble = false; }\n } else if (inTemplateString) {\n if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }\n } else if (inRegex) {\n if (c === 0x2f && prev !== 0x5C) { inRegex = false; }\n } else if (\n c === 0x7C && // pipe\n exp.charCodeAt(i + 1) !== 0x7C &&\n exp.charCodeAt(i - 1) !== 0x7C &&\n !curly && !square && !paren\n ) {\n if (expression === undefined) {\n // first filter, end of expression\n lastFilterIndex = i + 1;\n expression = exp.slice(0, i).trim();\n } else {\n pushFilter();\n }\n } else {\n switch (c) {\n case 0x22: inDouble = true; break // \"\n case 0x27: inSingle = true; break // '\n case 0x60: inTemplateString = true; break // `\n case 0x28: paren++; break // (\n case 0x29: paren--; break // )\n case 0x5B: square++; break // [\n case 0x5D: square--; break // ]\n case 0x7B: curly++; break // {\n case 0x7D: curly--; break // }\n }\n if (c === 0x2f) { // /\n var j = i - 1;\n var p = (void 0);\n // find first non-whitespace prev char\n for (; j >= 0; j--) {\n p = exp.charAt(j);\n if (p !== ' ') { break }\n }\n if (!p || !/[\\w$]/.test(p)) {\n inRegex = true;\n }\n }\n }\n }\n\n if (expression === undefined) {\n expression = exp.slice(0, i).trim();\n } else if (lastFilterIndex !== 0) {\n pushFilter();\n }\n\n function pushFilter () {\n (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());\n lastFilterIndex = i + 1;\n }\n\n if (filters) {\n for (i = 0; i < filters.length; i++) {\n expression = wrapFilter(expression, filters[i]);\n }\n }\n\n return expression\n}\n\nfunction wrapFilter (exp, filter) {\n var i = filter.indexOf('(');\n if (i < 0) {\n // _f: resolveFilter\n return (\"_f(\\\"\" + filter + \"\\\")(\" + exp + \")\")\n } else {\n var name = filter.slice(0, i);\n var args = filter.slice(i + 1);\n return (\"_f(\\\"\" + name + \"\\\")(\" + exp + \",\" + args)\n }\n}\n\n/* */\n\nvar defaultTagRE = /\\{\\{((?:.|\\n)+?)\\}\\}/g;\nvar regexEscapeRE = /[-.*+?^${}()|[\\]\\/\\\\]/g;\n\nvar buildRegex = cached(function (delimiters) {\n var open = delimiters[0].replace(regexEscapeRE, '\\\\$&');\n var close = delimiters[1].replace(regexEscapeRE, '\\\\$&');\n return new RegExp(open + '((?:.|\\\\n)+?)' + close, 'g')\n});\n\nfunction parseText (\n text,\n delimiters\n) {\n var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;\n if (!tagRE.test(text)) {\n return\n }\n var tokens = [];\n var lastIndex = tagRE.lastIndex = 0;\n var match, index;\n while ((match = tagRE.exec(text))) {\n index = match.index;\n // push text token\n if (index > lastIndex) {\n tokens.push(JSON.stringify(text.slice(lastIndex, index)));\n }\n // tag token\n var exp = parseFilters(match[1].trim());\n tokens.push((\"_s(\" + exp + \")\"));\n lastIndex = index + match[0].length;\n }\n if (lastIndex < text.length) {\n tokens.push(JSON.stringify(text.slice(lastIndex)));\n }\n return tokens.join('+')\n}\n\n/* */\n\nfunction baseWarn (msg) {\n console.error((\"[Vue parser]: \" + msg));\n}\n\nfunction pluckModuleFunction (\n modules,\n key\n) {\n return modules\n ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })\n : []\n}\n\nfunction addProp (el, name, value) {\n (el.props || (el.props = [])).push({ name: name, value: value });\n}\n\nfunction addAttr (el, name, value) {\n (el.attrs || (el.attrs = [])).push({ name: name, value: value });\n}\n\nfunction addDirective (\n el,\n name,\n rawName,\n value,\n arg,\n modifiers\n) {\n (el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });\n}\n\nfunction addHandler (\n el,\n name,\n value,\n modifiers,\n important\n) {\n // check capture modifier\n if (modifiers && modifiers.capture) {\n delete modifiers.capture;\n name = '!' + name; // mark the event as captured\n }\n if (modifiers && modifiers.once) {\n delete modifiers.once;\n name = '~' + name; // mark the event as once\n }\n var events;\n if (modifiers && modifiers.native) {\n delete modifiers.native;\n events = el.nativeEvents || (el.nativeEvents = {});\n } else {\n events = el.events || (el.events = {});\n }\n var newHandler = { value: value, modifiers: modifiers };\n var handlers = events[name];\n /* istanbul ignore if */\n if (Array.isArray(handlers)) {\n important ? handlers.unshift(newHandler) : handlers.push(newHandler);\n } else if (handlers) {\n events[name] = important ? [newHandler, handlers] : [handlers, newHandler];\n } else {\n events[name] = newHandler;\n }\n}\n\nfunction getBindingAttr (\n el,\n name,\n getStatic\n) {\n var dynamicValue =\n getAndRemoveAttr(el, ':' + name) ||\n getAndRemoveAttr(el, 'v-bind:' + name);\n if (dynamicValue != null) {\n return parseFilters(dynamicValue)\n } else if (getStatic !== false) {\n var staticValue = getAndRemoveAttr(el, name);\n if (staticValue != null) {\n return JSON.stringify(staticValue)\n }\n }\n}\n\nfunction getAndRemoveAttr (el, name) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n return val\n}\n\nvar len;\nvar str;\nvar chr;\nvar index$1;\nvar expressionPos;\nvar expressionEndPos;\n\n/**\n * parse directive model to do the array update transform. a[idx] = val => $$a.splice($$idx, 1, val)\n *\n * for loop possible cases:\n *\n * - test\n * - test[idx]\n * - test[test1[idx]]\n * - test[\"a\"][idx]\n * - xxx.test[a[a].test1[idx]]\n * - test.xxx.a[\"asa\"][test1[idx]]\n *\n */\n\nfunction parseModel (val) {\n str = val;\n len = str.length;\n index$1 = expressionPos = expressionEndPos = 0;\n\n if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {\n return {\n exp: val,\n idx: null\n }\n }\n\n while (!eof()) {\n chr = next();\n /* istanbul ignore if */\n if (isStringStart(chr)) {\n parseString(chr);\n } else if (chr === 0x5B) {\n parseBracket(chr);\n }\n }\n\n return {\n exp: val.substring(0, expressionPos),\n idx: val.substring(expressionPos + 1, expressionEndPos)\n }\n}\n\nfunction next () {\n return str.charCodeAt(++index$1)\n}\n\nfunction eof () {\n return index$1 >= len\n}\n\nfunction isStringStart (chr) {\n return chr === 0x22 || chr === 0x27\n}\n\nfunction parseBracket (chr) {\n var inBracket = 1;\n expressionPos = index$1;\n while (!eof()) {\n chr = next();\n if (isStringStart(chr)) {\n parseString(chr);\n continue\n }\n if (chr === 0x5B) { inBracket++; }\n if (chr === 0x5D) { inBracket--; }\n if (inBracket === 0) {\n expressionEndPos = index$1;\n break\n }\n }\n}\n\nfunction parseString (chr) {\n var stringQuote = chr;\n while (!eof()) {\n chr = next();\n if (chr === stringQuote) {\n break\n }\n }\n}\n\n/* */\n\nvar dirRE = /^v-|^@|^:/;\nvar forAliasRE = /(.*?)\\s+(?:in|of)\\s+(.*)/;\nvar forIteratorRE = /\\((\\{[^}]*\\}|[^,]*),([^,]*)(?:,([^,]*))?\\)/;\nvar bindRE = /^:|^v-bind:/;\nvar onRE = /^@|^v-on:/;\nvar argRE = /:(.*)$/;\nvar modifierRE = /\\.[^.]+/g;\n\nvar decodeHTMLCached = cached(decode);\n\n// configurable state\nvar warn$1;\nvar platformGetTagNamespace;\nvar platformMustUseProp;\nvar platformIsPreTag;\nvar preTransforms;\nvar transforms;\nvar postTransforms;\nvar delimiters;\n\n/**\n * Convert HTML string to AST.\n */\nfunction parse (\n template,\n options\n) {\n warn$1 = options.warn || baseWarn;\n platformGetTagNamespace = options.getTagNamespace || no;\n platformMustUseProp = options.mustUseProp || no;\n platformIsPreTag = options.isPreTag || no;\n preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');\n transforms = pluckModuleFunction(options.modules, 'transformNode');\n postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');\n delimiters = options.delimiters;\n var stack = [];\n var preserveWhitespace = options.preserveWhitespace !== false;\n var root;\n var currentParent;\n var inVPre = false;\n var inPre = false;\n var warned = false;\n parseHTML(template, {\n expectHTML: options.expectHTML,\n isUnaryTag: options.isUnaryTag,\n shouldDecodeNewlines: options.shouldDecodeNewlines,\n start: function start (tag, attrs, unary) {\n // check namespace.\n // inherit parent ns if there is one\n var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);\n\n // handle IE svg bug\n /* istanbul ignore if */\n if (isIE && ns === 'svg') {\n attrs = guardIESVGBug(attrs);\n }\n\n var element = {\n type: 1,\n tag: tag,\n attrsList: attrs,\n attrsMap: makeAttrsMap(attrs),\n parent: currentParent,\n children: []\n };\n if (ns) {\n element.ns = ns;\n }\n\n if (isForbiddenTag(element) && !isServerRendering()) {\n element.forbidden = true;\n \"production\" !== 'production' && warn$1(\n 'Templates should only be responsible for mapping the state to the ' +\n 'UI. Avoid placing tags with side-effects in your templates, such as ' +\n \"<\" + tag + \">\" + ', as they will not be parsed.'\n );\n }\n\n // apply pre-transforms\n for (var i = 0; i < preTransforms.length; i++) {\n preTransforms[i](element, options);\n }\n\n if (!inVPre) {\n processPre(element);\n if (element.pre) {\n inVPre = true;\n }\n }\n if (platformIsPreTag(element.tag)) {\n inPre = true;\n }\n if (inVPre) {\n processRawAttrs(element);\n } else {\n processFor(element);\n processIf(element);\n processOnce(element);\n processKey(element);\n\n // determine whether this is a plain element after\n // removing structural attributes\n element.plain = !element.key && !attrs.length;\n\n processRef(element);\n processSlot(element);\n processComponent(element);\n for (var i$1 = 0; i$1 < transforms.length; i$1++) {\n transforms[i$1](element, options);\n }\n processAttrs(element);\n }\n\n function checkRootConstraints (el) {\n if (false) {\n if (el.tag === 'slot' || el.tag === 'template') {\n warned = true;\n warn$1(\n \"Cannot use <\" + (el.tag) + \"> as component root element because it may \" +\n 'contain multiple nodes:\\n' + template\n );\n }\n if (el.attrsMap.hasOwnProperty('v-for')) {\n warned = true;\n warn$1(\n 'Cannot use v-for on stateful component root element because ' +\n 'it renders multiple elements:\\n' + template\n );\n }\n }\n }\n\n // tree management\n if (!root) {\n root = element;\n checkRootConstraints(root);\n } else if (!stack.length) {\n // allow root elements with v-if, v-else-if and v-else\n if (root.if && (element.elseif || element.else)) {\n checkRootConstraints(element);\n addIfCondition(root, {\n exp: element.elseif,\n block: element\n });\n } else if (false) {\n warned = true;\n warn$1(\n \"Component template should contain exactly one root element:\" +\n \"\\n\\n\" + template + \"\\n\\n\" +\n \"If you are using v-if on multiple elements, \" +\n \"use v-else-if to chain them instead.\"\n );\n }\n }\n if (currentParent && !element.forbidden) {\n if (element.elseif || element.else) {\n processIfConditions(element, currentParent);\n } else if (element.slotScope) { // scoped slot\n currentParent.plain = false;\n var name = element.slotTarget || 'default';(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;\n } else {\n currentParent.children.push(element);\n element.parent = currentParent;\n }\n }\n if (!unary) {\n currentParent = element;\n stack.push(element);\n }\n // apply post-transforms\n for (var i$2 = 0; i$2 < postTransforms.length; i$2++) {\n postTransforms[i$2](element, options);\n }\n },\n\n end: function end () {\n // remove trailing whitespace\n var element = stack[stack.length - 1];\n var lastNode = element.children[element.children.length - 1];\n if (lastNode && lastNode.type === 3 && lastNode.text === ' ') {\n element.children.pop();\n }\n // pop stack\n stack.length -= 1;\n currentParent = stack[stack.length - 1];\n // check pre state\n if (element.pre) {\n inVPre = false;\n }\n if (platformIsPreTag(element.tag)) {\n inPre = false;\n }\n },\n\n chars: function chars (text) {\n if (!currentParent) {\n if (false) {\n warned = true;\n warn$1(\n 'Component template requires a root element, rather than just text:\\n\\n' + template\n );\n }\n return\n }\n // IE textarea placeholder bug\n /* istanbul ignore if */\n if (isIE &&\n currentParent.tag === 'textarea' &&\n currentParent.attrsMap.placeholder === text) {\n return\n }\n var children = currentParent.children;\n text = inPre || text.trim()\n ? decodeHTMLCached(text)\n // only preserve whitespace if its not right after a starting tag\n : preserveWhitespace && children.length ? ' ' : '';\n if (text) {\n var expression;\n if (!inVPre && text !== ' ' && (expression = parseText(text, delimiters))) {\n children.push({\n type: 2,\n expression: expression,\n text: text\n });\n } else if (text !== ' ' || children[children.length - 1].text !== ' ') {\n currentParent.children.push({\n type: 3,\n text: text\n });\n }\n }\n }\n });\n return root\n}\n\nfunction processPre (el) {\n if (getAndRemoveAttr(el, 'v-pre') != null) {\n el.pre = true;\n }\n}\n\nfunction processRawAttrs (el) {\n var l = el.attrsList.length;\n if (l) {\n var attrs = el.attrs = new Array(l);\n for (var i = 0; i < l; i++) {\n attrs[i] = {\n name: el.attrsList[i].name,\n value: JSON.stringify(el.attrsList[i].value)\n };\n }\n } else if (!el.pre) {\n // non root node in pre blocks with no attributes\n el.plain = true;\n }\n}\n\nfunction processKey (el) {\n var exp = getBindingAttr(el, 'key');\n if (exp) {\n if (false) {\n warn$1(\"